Debugging with GDB (February 2008)

Table Of Contents
Chapter 21: The gdb/mi Interface 305
GDB command
The corresponding GDB command is set’.
Example
(gdb)
-gdb-set $foo=3
^done
(gdb)
The -gdb-show command
Synopsis
-gdb-show
Show the current value of a GDB variable.
GDB command
The corresponding GDB command is show’.
Example
(gdb)
-gdb-show annotate
^done,value="0"
(gdb)
The -gdb-version Command
Synopsis
-gdb-version
Show version information for GDB. Used mostly in testing.
GDB command
The corresponding GDB command is show version’.
Example
(gdb)
-gdb-version
~GNU gdb 5.2.1
~Copyright 2000 Free Software Foundation, Inc.