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

  • 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 329
The -environment-pwd command
Synopsis
-environment-pwd
Show the current working directory.
GDB command
The corresponding GDB command is 'pwd'.
Example
(gdb)
-environment-pwd
~Working directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb.
^done
(gdb)
21.7 GDB/MI program control
Program termination As a result of execution, the inferior program can run to
completion, if it does not encounter any breakpoints. In this case the output will include
an exit code, if the program has exited exceptionally.
Examples Program exited normally:
(gdb)
-exec-run
^running
(gdb)
x = 55
*stopped,reason="exited-normally"
(gdb)
Program exited exceptionally:
(gdb)
-exec-run
^running
(gdb)
x = 55
*stopped,reason="exited",exit-code="01"
(gdb)
Another way the program can terminate is if it receives a signal such as SIGINT. In this
case, GDB/MI displays this:
(gdb)
*stopped,reason="exited-signalled",signal-name="SIGINT",
signal-meaning="Interrupt"
330 The GDB/MI Interface
Zobrazit stránku 329
1 2 ... 325 326 327 328 329 330 331 332 333 334 335 ... 368 369

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

Žádné komentáře