Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Problem with new step-bt test?
@ 2006-08-09 22:05 Daniel Jacobowitz
  2006-08-09 23:40 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-08-09 22:05 UTC (permalink / raw)
  To: gdb

(gdb) PASS: gdb.base/step-bt.exp: step second instruction
bt
#0  hello () at /space/fsf/commit/src/gdb/testsuite/gdb.base/step-bt.c:27
#1  0x00000000004004d1 in main () at
/space/fsf/commit/src/gdb/testsuite/gdb.base/step-bt.c:33
(gdb) FAIL: gdb.base/step-bt.exp: backtrace after second instruction step
testcase /space/fsf/commit/src/gdb/testsuite/gdb.base/step-bt.exp completed
in 2 seconds

I figure that ought to be a PASS output, right?  I think the problem is that
the two hex patterns need to be optional, but I haven't tried it.

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: Problem with new step-bt test?
  2006-08-09 22:05 Problem with new step-bt test? Daniel Jacobowitz
@ 2006-08-09 23:40 ` Joel Brobecker
  2006-08-10  0:28   ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2006-08-09 23:40 UTC (permalink / raw)
  To: gdb

> (gdb) PASS: gdb.base/step-bt.exp: step second instruction
> bt
> #0  hello () at /space/fsf/commit/src/gdb/testsuite/gdb.base/step-bt.c:27
> #1  0x00000000004004d1 in main () at
> /space/fsf/commit/src/gdb/testsuite/gdb.base/step-bt.c:33
> (gdb) FAIL: gdb.base/step-bt.exp: backtrace after second instruction step
> testcase /space/fsf/commit/src/gdb/testsuite/gdb.base/step-bt.exp completed
> in 2 seconds
> 
> I figure that ought to be a PASS output, right?  I think the problem is that
> the two hex patterns need to be optional, but I haven't tried it.

Yes, it should be only PASSes! It's strange because I definitely
ran the testcase before checking in. Normally, the hex address is
printed if we're "inside" a line of code, right? After a step or two,
we should be still inside the prologue, so I figured we should see
them printed. But I don't have any objection into making them optional.

I can do that sometime later tonight.

-- 
Joel


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

* Re: Problem with new step-bt test?
  2006-08-09 23:40 ` Joel Brobecker
@ 2006-08-10  0:28   ` Daniel Jacobowitz
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-08-10  0:28 UTC (permalink / raw)
  To: gdb

On Wed, Aug 09, 2006 at 04:40:06PM -0700, Joel Brobecker wrote:
> printed if we're "inside" a line of code, right? After a step or two,
> we should be still inside the prologue, so I figured we should see
> them printed.

That's the faulty assumption: prologues can be pretty short, in fact.

> I can do that sometime later tonight.

Thanks!

-- 
Daniel Jacobowitz
CodeSourcery


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

end of thread, other threads:[~2006-08-10  0:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-09 22:05 Problem with new step-bt test? Daniel Jacobowitz
2006-08-09 23:40 ` Joel Brobecker
2006-08-10  0:28   ` Daniel Jacobowitz

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