3 ms·
> The hard part is correlating that back to the source code, since I don't know of a way in gdb to get that assembly output with the C/C++ source as comments.
by comex 7y ago
> The hard part is correlating that back to the source code, since I don't know of a way in gdb to get that assembly output with the C/C++ source as comments.
objdump -S can do that.
- AnimalMuppet 7y agoThanks. I've been looking for something like that off and on for the better part of 10 years.
- coherentpony 7y agoJust be careful about the operand order differences between objdump and whatever your compiler spits out. They're not necessarily the same syntax.