Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)
Example
(gdb)
-environment-directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb
^done
(gdb)
The -environment-path command
Synopsis
-environment-path ( pathdir )+
Add directories pathdir to beginning of search path for object files.
GDB command
The corresponding GDB command is 'path'.
Example
(gdb)
-environment-path /kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb
^done
(gdb)
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)
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
GDB/MI program control 251