This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix bug in add_alias_cmd
- From: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 08 Jun 2009 09:37:18 -0600
- Subject: Re: [RFA] Fix bug in add_alias_cmd
- References: <006001c9e6be$6fad8fb0$4f08af10$@u-strasbg.fr>
- Reply-to: tromey at redhat dot com
>>>>> "Pierre" == Pierre Muller <muller@ics.u-strasbg.fr> writes:
Pierre> This is due to "bu" being an alias command of "ubreak"
Pierre> for xdb options, but "ubreak" doesn't seem to exist anywhere
Pierre> and I found no trace of it anywhere is the sources :(
Pierre> I fact after looking at the sources, it appears to me
Pierre> that the assertion itself is wrong.
Pierre> prehookee should also be NULL, as the other pointers tested.
Pierre> This small patch fixes it.
Pierre> OK to commit?
Yes, thanks.
IMO, you could have put this patch in under the "obvious" rule.
Pierre> PS: What should we do about
Pierre> Could I also remove that line
Pierre> if (xdb_commands)
Pierre> {
Pierre> add_com_alias ("ba", "break", class_breakpoint, 1);
Pierre> add_com_alias ("bu", "ubreak", class_breakpoint, 1);
Pierre> }
You can just delete the "bu" line.
If you want you could do some archaeology to see whether ubreak ever
existed and, if so, when and why it was removed.
Tom