DeBUG
with GDB
<< CONTENTS
>>
USER-DEFINED MAN
PAGES
user-defined
User-defined
commands.
COMMANDS
The
commands in this class are those defined by the user.
Use the
"define" command to define a command.
New command
defining and documentation:
gdb> define clr
Type commands for definition of "clr".
End with a line saying just "end".
>shell clear
>end
< <gdb> Shell clear will erase all gdb
window messages>
gdb> document clr
Type commands for definition of "clr".
End with a line saying just "end".
> It is used to clear the gdb
window contents
> end
gdb > clr
< it will erase gdb windown prev. messages
>
gdb > help clr
It is used to clear the gdb window contents
User-defined
commands making as Default:
To start gdb with your user-defined commands then create a file called ".gdbinit"
with these informations of commands.
------------------- .gdbinit ------------
define clr
shell clear
end
document clr
It is used to clear gdb window
messages
end
-----------------------------------------------
gdb -q
gdb> help clr
It is used to clear gdb window messages
HELP USER-DEFINED
Muthukumar Kandasamy <[email protected]>