Use external editor in 'commands' command
Alfredo Ortega
ortegaalfredo@gmail.com
Wed Jan 14 21:48:00 GMT 2009
Hi all,
I have made a small patch to the 'commands' command to allow the use
of an external editor to add or modify commands. This is convenient if
you are dealing with many commands per breakpoint.
The editor follows the behavior of the 'edit' command (/bin/ex by
default, or the 'EDITOR' environment variable)
Tested on i686-pc-linux-gnu, please tell me what do you think about it.
2009-01-14 Alfredo Ortega <ortegaalfredo@gmail.com>
* breakpoint.c (commands_command,_initialize_breakpoint):
Add the 'edit' keyword to the 'commands' command to allow the
use of an external editor to add or modify commands.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commands.diff
Type: text/x-patch
Size: 3633 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20090114/f6bbd529/attachment.bin>
More information about the Gdb-patches
mailing list