HP gnu source-level debugger 5992-4701 Uživatelský manuál Strana 207

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 206
14.18 Invoking GDB Before a Program Aborts
This -crashdebug option enables GDB to monitor the execution of a process or a
program. It invokes GDB when the program execution is about to abort. Once the
debugger is invoked, you can debug the application using the normal debugger
commands. This option enables you to debug a live process instead of getting a core
dump if the program is about to abort.
You can examine the state of the process, make changes to the state and continue
program execution, force a core dump, or terminate execution. It enables you to control
program execution under the debugger if the program is about to abort. You can load
a new process or attach to a running process for monitoring.
To monitor a new process, enter the following command:
gdb -crashdebug <command> <options>
To monitor a running process, attach to the process using the following command:
gdb -crashdebug -pid <pid>
14.19 Aborting a Command Line Call
When a command line call is issued and it is interrupted by a breakpoint or a signal
before completing the program execution, the abort command enables the user to abort
the command line call without allowing the signal to modify the state of the debugged
process.
When a signal interrupts program execution, it can modify the process state of the de-
bugged program and result in an abrupt termination of the program (due to addressing
errors from a call that is not a part of the source program). In such cases, the abort
command is particularly useful in exiting the command line call without modifying
the process state of the debugged program.
The following example illustrates the use of the abort command:
(gdb) break main
Breakpoint 1 at 0x2c74: file .../address_error.c, line 41.
(gdb) run
Starting program: ./address_error
Breakpoint 1, main () at ./address_error.c:41
41 fun (count, count*1.1);
(gdb) p fun(10, 1.1)
Program received signal SIGBUS, Bus error
si_code: 0 - BUS_UNKNOWN - Unknown Error.
0x2c38 in fun (i=10, f=0) at ./address_error.c:37
37 count = *p;
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (fun) will be abandoned.
(gdb) bt
#0 0x2c38 in fun (i=10, f=0) at ../address_error.c:37
#1 0x1920 in _sr4export+0x8 ()
#2 <function called from gdb>
#3 0x2c74 in main () at ./address_error.c:40
(gdb) abort
14.18 Invoking GDB Before a Program Aborts 207
Zobrazit stránku 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 368 369

Komentáře k této Příručce

Žádné komentáře

Asg-jergens 66104 EZ-3080 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Ausrüstung Asg-jergens 66104 EZ-3080.
Wir stellen 1 PDF-Handbücher Asg-jergens 66104 EZ-3080 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Ausrüstung Asg-jergens

Modelle Dokumententyp
ASG-SD2500-35PL-SY-NC Bedienungsanleitung   ASG Jergens ASG-SD2500-35PL-SY-NC User Manual, 2 Seiten
66137 EZ-9000RP Bedienungsanleitung   ASG Jergens 66137 EZ-9000RP User Manual, 2 Seiten
68416 Filter/Regulator Bedienungsanleitung   ASG Jergens 68416 Filter/Regulator User Manual, 1 Seiten
66102 EZ-3000 Bedienungsanleitung   ASG Jergens 66102 EZ-3000 User Manual, 2 Seiten
67241 NSB-12 NSB Bedienungsanleitung   ASG Jergens 67241 NSB-12 NSB User Manual, 2 Seiten
65006 Tool Support Stands Bedienungsanleitung   ASG Jergens 65006 Tool Support Stands User Manual, 1 Seiten
65060 Pneumatically-Assisted Articulating Torque A Bedienungsanleitung   ASG Jergens 65060 Pneumatically-Assisted Articulating Torque Arm User Manual, 2 Seiten
66134 EZ-870 Bedienungsanleitung   ASG Jergens 66134 EZ-870 User Manual, 2 Seiten
ASG-SD2500-50RP-SY Bedienungsanleitung   ASG Jergens ASG-SD2500-50RP-SY User Manual, 2 Seiten
ASG-SD2500-35RP-SY Bedienungsanleitung   ASG Jergens ASG-SD2500-35RP-SY User Manual, 2 Seiten
64033 HM-10 Bedienungsanleitung   ASG Jergens 64033 HM-10 User Manual, 2 Seiten
67402 NJL-2323 Bedienungsanleitung   ASG Jergens 67402 NJL-2323 User Manual, 2 Seiten
67346 Optional Rail Assembly for NJL- Series Bedienungsanleitung   ASG Jergens 67346 Optional Rail Assembly for NJL- Series User Manual, 1 Seiten
ASG-SD2500-10PS-SY-NC Bedienungsanleitung   ASG Jergens ASG-SD2500-10PS-SY-NC User Manual, 2 Seiten
ASG-SD2500-35PS-SY-NC Bedienungsanleitung   ASG Jergens ASG-SD2500-35PS-SY-NC User Manual, 2 Seiten
66106 EZ-3150 Bedienungsanleitung   ASG Jergens 66106 EZ-3150 User Manual [en] [de] [fr] , 2 Seiten
64011 HP-10 Bedienungsanleitung   ASG Jergens 64011 HP-10 User Manual, 2 Seiten
ASG-SD2500-10PL-SY Bedienungsanleitung   ASG Jergens ASG-SD2500-10PL-SY User Manual, 2 Seiten
65046 Articulating Torque Arm Bedienungsanleitung   ASG Jergens 65046 Articulating Torque Arm User Manual, 2 Seiten
67327 Optional Rail Assembly for Quicher NSB & Bedienungsanleitung   ASG Jergens 67327 Optional Rail Assembly for Quicher NSB & NJ-Series User Manual, 1 Seiten