listings under info and under show in the Index point to all the
???.
info This command (abbreviated i) is for describing the state of your program. For example, you can list the arguments given to your program with info args, list the registers currently in use with info registers, or list the breakpoints you have set with info breakpoints. You can get a complete list of the info
set You can assign the result of an expression to an environment variable with set. For example, you can set the GDB prompt to a
show In contrast to info, show is for describing the state of GDB itself. You can change most of the things you can show, by using the related command set; for example, you can control what number system is used for displays with set radix, or simply inquire which is currently in use with show radix.
To display all the settable parameters and their current values, you can use show with no arguments; you may also use info set. Both commands produce the same display.
Here are three miscellaneous show subcommands, all of which are exceptional in lacking corresponding set commands:
show version Show what version of GDB is running. You should include this information in GDB
show copying Display information about permission for copying GDB.
show warranty Display the GNU “NO WARRANTY” statement, or a warranty, if your version of GDB comes with one.
3.3 Getting help | 37 |