Onde eu faço set gnutarget format-name
?
No seu arquivo gdb.ini
ou .gdbinit
conforme apropriado.
The
.gdbinit
FileUpon startup, GDB reads and executes an initialization file named
.gdbinit
. It can contain any command (eg set and break), and more. For example, "set listsize" and "set prompt" can go into .gdbinit. There are two locations where GDB will look for this file (in order):
- In your home directory
- In the current directory
You can put commands to be executed for all your programming projects in
$HOME/.gdbinit
and project-specific commands in$PWD/.gdbinit
.You can comment your
.gdbinit
files with bash's#
. And blank lines, of course, are ignored.
Tutorial do Peter em gdb: Inicialização, Listagem e Execução
Exemplo:
Um exemplo de arquivo gdb.ini
Here you have a sample
gdb.ini
file listing, which gives better results when usinggdb
. Under linux you should put this in a.gdbinit
file in your home directory or the current directory.set print demangle off set gnutarget auto set verbose on set complaints 1000 dir ./rtl/dosv2 set language c++ set print vtbl on set print object on set print sym on set print pretty on disp /i $eip define pst set $pos=&$arg0 set $strlen = {byte}$pos print {char}&$arg0.st@($strlen+1) end document pst Print out a Pascal string end