This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Outwit compiler dead code elimination in break.exp test
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: fnf at ninemoons dot com
- Cc: drow at mvista dot com (Daniel Jacobowitz),fnf at public dot ninemoons dot com (Fred Fish), gdb-patches at sources dot redhat dot com
- Date: Mon, 1 Dec 2003 09:58:08 -0500
- Subject: Re: [PATCH] Outwit compiler dead code elimination in break.exp test
- References: <20031130010728.GA26601@nevyn.them.org><200312010045.hB10jRfd009645@fred.ninemoons.com>
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.
>