GDB/en: Difference between revisions

Jump to navigation Jump to search
3 bytes removed ,  3 months ago
Updating to match new version of source page
(Updating to match new version of source page)
 
(Updating to match new version of source page)
 
Line 12: Line 12:
=== Finding a bug with the debugger ===
=== Finding a bug with the debugger ===
In this section, the following program is used:
In this section, the following program is used:
{{
{{File
File
|name= program.cpp  
|name= program.cpp  
|lines=yes
|lines=yes
Line 81: Line 80:
(gdb) core-file core.18246
(gdb) core-file core.18246
[New LWP 18246]
[New LWP 18246]
Core was generated by `./program'.
Core was generated by './program'.
Program terminated with signal 11, Segmentation fault.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000400c17 in main (argc{{=}}1, argv{{=}}0x7fff2315c848) at
#0  0x0000000000400c17 in main (argc{{=}}1, argv{{=}}0x7fff2315c848) at
Line 135: Line 134:
A debugging session is active.
A debugging session is active.


Inferior 1 [process 12691] will be detached.
Inferior 1 [process 12691] will be detached.


Quit anyway? (y or n) y
Quit anyway? (y or n) y
Detaching from program: /usr/lib64/firefox/firefox, process 12691
Detaching from program: /usr/lib64/firefox/firefox, process 12691
}}
}}


== Advanced usage ==
== Advanced usage ==
38,760

edits

Navigation menu