A couple of gdb tricks

If you run a command with arguments in gdb like this

>run -a -b -c

The next time you go to run, gdb will assume you want the same arguments.   You can work around this by running:

>run —

Which tells the standard options to not process anything after the double dash as an option.

Also, If you have a stack track but not a complete core dump, you can find the line that corresponds with an address (say 0x80808881) in the trace  by using

info symbol 0x80808881

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.