View Print function code from within GDB - Stack Overflow At the moment, using the disassemble command I can print out the memory addresses for the user, but i want to print the actual source code instead Can this be done in gdb?
Debugging with GDB - Examining Source Files Print the starting and ending addresses of the compiled code for source line linespec You can specify source lines in any of the ways understood by the list command (see section Printing source lines)
Debugging a running PHP process by attaching GDB – Tideways Besides gdb, we also need debug symbols for PHP These debug symbols allow gdb to map the processor instructions back to the statements and variables in the C source code of PHP
Dynamic Printf Debugging with GDB - Abstract Expression When you add calls to printf() to your source code, you can just put the printf() inside an if block and your problem is solved With dprintf you first add your dynamic print Then you make the resulting breakpoint conditional by using the gdb command condition
Source (Debugging with GDB) - sourceware. org GDB can print parts of your program’s source, since the debugging information recorded in the program tells GDB what source files were used to build it When your program stops, GDB spontaneously prints the line where it stopped
A 101 on debugging php internals with gdb - Will Gallego When gdb starts, it loads the php debug package along with the main php core library If you see lots of ???? in your backtrace, it means it hasn’t loaded this symbol library The php core has a debug library already built to download as do most extensions If you’re rolling PHP yourself, make sure to include the –enable-debug option
Debugging with GDB - Print Settings - GNU Then you can determine the name and source file location of the variable where it points, using `p a pointer' This interprets the address in symbolic form For example, here GDB shows that a variable ptt points at another variable t, defined in `hi2 c': (gdb) set print symbol-filename on (gdb) p a ptt $4 = 0xe008 <t in hi2 c>