Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Unreasonable expectation in gdb.base/break.exp
@ 2006-04-04 23:02 David S. Miller
  2006-04-04 23:05 ` Daniel Jacobowitz
  0 siblings, 1 reply; 7+ messages in thread
From: David S. Miller @ 2006-04-04 23:02 UTC (permalink / raw)
  To: gdb


When compiled with optimizations enabled, this testcase
expects that stopping at main() will result in the place
being somewhere within the source file of main().

This is not necessarily the case.

In my case on sparc-*-linux*, the instruction that starts
main() in this situation is part of the inline expansion of
strtol(), via the inline expansion of atoi(), in the
stdlib.h header file so that is the place GDB reports that
it is at when the breakpoint on main() is hit.

This causes the break.exp testcase to fail.

I think this is perfectly reasonable and correct behavior on
both gdb's and gcc's part, and this check in break.exp should
be made a little bit more leanient.

Any objections?


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-04-05  5:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04 23:02 Unreasonable expectation in gdb.base/break.exp David S. Miller
2006-04-04 23:05 ` Daniel Jacobowitz
2006-04-04 23:08   ` David S. Miller
2006-04-04 23:12     ` Daniel Jacobowitz
2006-04-04 23:20       ` David S. Miller
2006-04-05  1:37         ` Daniel Jacobowitz
2006-04-05  5:11           ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox