Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: duplicate test message style?
@ 2004-07-08  3:23 Michael Elizabeth Chastain
  2004-07-08  6:18 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Elizabeth Chastain @ 2004-07-08  3:23 UTC (permalink / raw)
  To: cagney, mec.gnu; +Cc: gdb

ac> PASS: gdb.base/sigbpt.exp: nopass SIGSEGV; stepi bp before segv
ac> PASS: gdb.base/sigbpt.exp: nopass SIGSEGV, stepi bp before segv
ac> PASS: gdb.base/sigbpt.exp: nopass SIGSEGV for stepi bp before segv

This rubs me the wrong way because it's a distinction that humans
would not make.

ac> PASS: gdb.base/sigbpt.exp: nopass SIGSEGV; stepi bp before segv
ac> PASS: gdb.base/sigbpt.exp: set breakpoint 0 of 1; stepi bp before segv
ac> PASS: gdb.base/sigbpt.exp: stepi out of handler; stepi bp before segv
ac> PASS: gdb.base/sigbpt.exp: clear breakpoint 0 of 1; stepi bp before segv

This is okay.

ac> PASS: gdb.base/sigbpt.exp: stepi bp before segv; nopass SIGSEGV
ac> PASS: gdb.base/sigbpt.exp: stepi bp before segv; set breakpoint 0 of 1
ac> PASS: gdb.base/sigbpt.exp: stepi bp before segv; stepi out of handler
ac> PASS: gdb.base/sigbpt.exp: stepi bp before segv; clear breakpoint 0 of 1

This is also okay.

So if you have a preference, between the two, pick the one you want.

I have a slight preference for the second form.  Here's why.  If I ever
notice the message, it's usually a context where I need to dig in and
and analyze it.  I think it would be a little easier for me to search
off the "outer; inner" style rather than the "inner; outer style".
But both of them are pretty searchable so either is okay.

Michael C


^ permalink raw reply	[flat|nested] 4+ messages in thread
* duplicate test message style?
@ 2004-07-07 21:41 Andrew Cagney
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2004-07-07 21:41 UTC (permalink / raw)
  To: Michael Elizabeth Chastain; +Cc: gdb

Michael,

To stop those duplicate messages I add a suffix to each test, although 
not consistently.  I've used various separators - ",", ";", "for" - vis:

PASS: gdb.base/sigbpt.exp: nopass SIGSEGV; stepi bp before segv
PASS: gdb.base/sigbpt.exp: nopass SIGSEGV, stepi bp before segv
PASS: gdb.base/sigbpt.exp: nopass SIGSEGV for stepi bp before segv

I should do this consistently.  How do either of:

PASS: gdb.base/sigbpt.exp: nopass SIGSEGV; stepi bp before segv
PASS: gdb.base/sigbpt.exp: set breakpoint 0 of 1; stepi bp before segv
PASS: gdb.base/sigbpt.exp: stepi out of handler; stepi bp before segv
PASS: gdb.base/sigbpt.exp: clear breakpoint 0 of 1; stepi bp before segv

or:

PASS: gdb.base/sigbpt.exp: stepi bp before segv; nopass SIGSEGV
PASS: gdb.base/sigbpt.exp: stepi bp before segv; set breakpoint 0 of 1
PASS: gdb.base/sigbpt.exp: stepi bp before segv; stepi out of handler
PASS: gdb.base/sigbpt.exp: stepi bp before segv; clear breakpoint 0 of 1

grab you?  That is a ``;'' separator with the common text either first 
or second.

Andrew


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

end of thread, other threads:[~2004-07-08 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-08  3:23 duplicate test message style? Michael Elizabeth Chastain
2004-07-08  6:18 ` Joel Brobecker
2004-07-08 14:22   ` Andrew Cagney
  -- strict thread matches above, loose matches on Subject: below --
2004-07-07 21:41 Andrew Cagney

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