This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Python Scripting Question
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