$_ and info breakpoint
Daniel Jacobowitz
drow@false.org
Mon Jul 9 11:56:00 GMT 2007
On Sun, Jul 08, 2007 at 11:16:49AM +1200, Nick Roberts wrote:
> The convenience variable `$_' and the default
> examining-address for the `x' command are set to the address of
> the last breakpoint listed
I didn't know this was there, but if it's a documented feature, we
should probably leave it be. But it's not documented for -break-list
and I can't see any reason why it should be.
> 1) That "info breakpoint" doesn't set $_. At least -break-list shouldn't do
> this.
Is changing -break-list enough to fix your problem? If so, I
recommend that; either by separating -break-list and info break into
different functions, or by the old hack of ui_out_is_mi_like_p.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb
mailing list