Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




26.12. Miscellaneous gdb commands in gdb/mi

26.12.1. The -gdb-exitCommand Synopsis


Exit gdb immediately. gdb Command

Approximately corresponds to quit. Example


26.12.2. The -gdb-setCommand Synopsis


Set an internal gdb variable. gdb Command

The corresponding gdb command is set. Example

-gdb-set $foo=3

26.12.3. The -gdb-showCommand Synopsis


Show the current value of a gdb variable. gdb command

The corresponding gdb command is show. Example

-gdb-show annotate

26.12.4. The -gdb-versionCommand Synopsis


Show version information for gdb. Used mostly in testing. gdb Command

There's no equivalent gdb command. gdb by default shows this information when you start an interactive session. Example

~GNU gdb 5.2.1
~Copyright 2000 Free Software Foundation, Inc.
~GDB is free software, covered by the GNU General Public License, and
~you are welcome to change it and/or distribute copies of it under
~ certain conditions.
~Type "show copying" to see the conditions.
~There is absolutely no warranty for GDB.  Type "show warranty" for
~ details.
~This GDB was configured as
 "--host=sparc-sun-solaris2.5.1 --target=ppc-eabi".

26.12.5. The -interpreter-execCommand

26.12.6. Synopsis

-interpreter-exec interpreter command

Execute the specified command in the given interpreter.

26.12.7. gdb Command

The corresponding gdb command is interpreter-exec.

26.12.8. Example

-interpreter-exec console "break main"
&"During symbol reading, couldn't parse type; debugger out of date?.\n"
&"During symbol reading, bad structure-type format.\n"
~"Breakpoint 1 at 0x8074fc6: file ../../src/gdb/main.c, line 743.\n"

  Published under the terms of the GNU General Public License Design by Interspire