Using gdb to convert addresses to lines

Per the OP, the command in GDB to find the source line of code from an address is:

info line *0x10045740

Edit: Replaced “info symbol 0x10045740” which won’t work under certain conditions (thanks @Thomasa88).

Leave a Comment