[DIscussion] some thought about call a editor set the commands of breakpoints and tracepoints

Hui Zhu hui@codesourcery.com
Mon Mar 18 09:33:00 GMT 2013


On 03/18/13 10:24, Yao Qi wrote:
> On 03/09/2013 12:16 AM, Hui Zhu wrote:
>> So I thought why not let gdb call a editor set the commands of
>> breakpoints and tracepoints?
>> For example:
>> commands -e 1
>> Then editor come out, the original commands of 1 is inside there.  You
>> can just change some lines in there to change the commands.
>
> FWIW, GDB already has a command 'edit' which is to invoke editor to edit source file http://sourceware.org/gdb/current/onlinedocs/gdb/Edit.html
>
> It may be extended to edit breakpoint commands.
>

I am not sure about that.  This "source" is the "source" of the code.  Not the "source" command of GDB.  I'm afraid it will confuse the user.

Thanks,
Hui



More information about the Gdb mailing list