This is the mail archive of the gdb-patches@sources.redhat.com 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: [PATCH] Outwit compiler dead code elimination in break.exp test


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.
 > 


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