[PATCH] Outwit compiler dead code elimination in break.exp test
Elena Zannoni
ezannoni@redhat.com
Mon Dec 1 14:58:00 GMT 2003
Fred Fish writes:
> > If you're there, rather than being the second person this month to
> > update the line numbers, could you convert it to gdb_get_line_number?
>
> OK, here is an updated patch.
>
> -Fred
>
> 2003-11-29 Fred Fish <fnf@redhat.com>
>
> * gdb.base/break.c (globalvar): Add.
> (marker1, marker2, marker3, marker4): Set globalvar.
> Add additional "set breakpoint NN here" comments.
> * gdb.base/condbreak.exp: Use $bp_locationNN variables instead
> of hardcoded line numbers. Emit bp_locationNN markers in pass
> and fail messages instead of line numbers.
Why this? The line numbers were not really hardcoded.
> * gdb.base/break.exp: Ditto.
> * gdb.base/define.exp: Ditto.
> * gdb.base/ena-dis-br.exp: Ditto.
> * gdb.base/maint.exp: Ditto.
> * gdb.base/until.exp: Ditto.
>
More information about the Gdb-patches
mailing list