[PATCH] Outwit compiler dead code elimination in break.exp test

Fred Fish fnf@public.ninemoons.com
Mon Dec 1 16:39:00 GMT 2003


>  > > Why this? The line numbers were not really hardcoded.
>  > However I can revert that part of the patch if that is an issue.
> If the pass/fil messages are unique within the .exp files, then ok.

The messages will now be something like:

  PASS: gdb.base/break.exp: set to-be-silent break bp_location1

instead of:

  PASS: gdb.base/break.exp: set to-be-silent break 83

and of course bp_location1 can always be matched back up with the
actual line number and specific test that failed.

-Fred



More information about the Gdb-patches mailing list