zero pain (finding the function in C)
Adrian Lees (1349) 122 posts |
The ‘Sherlock’ module has morphed into something more than mere symbolic disassembly etc, it now has the ability to produce state/memory dumps when an exception occurs, and then to redirect its normal *commands to a reloaded image of that failure on the developer’s machine, to – hopefully – work out what happened. It is close also to acquiring support for ASD in builds that include that, and thus providing source-level information on where a failure occurred. My aim is to build something that will help other developers/maintainers; so, please, do you have any suggestions/ideas how it can be improved? |
Jeff Doggett (257) 234 posts |
Sorry that I’m late to this thread! A method that I often use to find bugs in my code when calling (say) strcmp() would be to do something like this: In a header file:
Then in a handy place:
(Sorry about the bad formatting, bloody textile!) |
Rick Murray (539) 13840 posts |
Umm… assert() ? |
Jeff Doggett (257) 234 posts |
Doesn’t help as the assert gives the file/line where the assert is, not the caller. The original problem was to find which of many calls to strcmp was the culprit. |