This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 7/8] Add truncate_repeat_arguments function


>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> The "x" and "list" commands have special repetition behavior:
Tom> repeating the command doesn't re-run it with the same arguments, but
Tom> rather advances (through memory or the program listing).

I found a couple more functions that do something similar, but not
purely truncating their arguments.  Both show_commands and show_values
do:

  if (from_tty && num_exp)
    {
      num_exp[0] = '+';
      num_exp[1] = '\0';
    }

I'm rewriting this patch to allow those uses as well... so you might as
well skip this patch if you're reviewing.  However, I think the other
patches in the series are still ok to read.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]