Python Scripting Question
Daniel Jacobowitz
drow@false.org
Mon Nov 9 17:44:00 GMT 2009
On Mon, Nov 09, 2009 at 09:41:54AM -0700, Tom Tromey wrote:
> It isn't clear to me that gdb commands are allowed to overwrite their
> argument strings, though. Are they? disassemble_command does do this,
> but it seems wrong to me -- won't it permanently modify the command
> stored in a command script?
Is it this bit?
/* Two arguments. */
*space_index = '\0';
I don't think we should let commands modify their argument string.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb
mailing list