Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@codesourcery.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Joel Brobecker <brobecker@adacore.com>, <gdb-patches@sourceware.org>
Subject: Re: one-too-many location in breakpoint
Date: Thu, 08 Dec 2011 18:56:00 -0000	[thread overview]
Message-ID: <alpine.DEB.1.10.1112081556410.5354@tp.orcam.me.uk> (raw)
In-Reply-To: <m3obvun9vl.fsf@fleche.redhat.com>

On Tue, 29 Nov 2011, Tom Tromey wrote:

> Tom> I fixed all the other problems.  I'm running a regression test to make
> Tom> sure I didn't make something else break while doing this.  If all goes
> Tom> well I will send out refreshed patches.
> 
> I needed a couple of test suite changes to account for the different
> output.  Otherwise all is well.
> 
> This includes a test addition for the iterate_over_symbols change.
> 
> I didn't write a new test for the "normal_menu" problem.

 Just as a heads-up, this has regressed on the mips-sde-elf target (both 
MIPS32 and MIPS16 multilibs) as follows:

break A::outer::foo  (char*)  const if (a == 3)
No symbol "a" in current context.
(gdb) FAIL: gdb.cp/ovsrch.exp: break A::outer::foo  (char*)  const if (a == 3)
break 'A::outer::foo  (char*)  const' if (a == 3)
No symbol "a" in current context.
(gdb) FAIL: gdb.cp/ovsrch.exp: break 'A::outer::foo  (char*)  const' if (a == 3)
[...]
break A::outer::foo  (int)  const if (a == 3)
No symbol "a" in current context.
(gdb) FAIL: gdb.cp/ovsrch.exp: break A::outer::foo  (int)  const if (a == 3)
break 'A::outer::foo  (int)  const' if (a == 3)
No symbol "a" in current context.
(gdb) FAIL: gdb.cp/ovsrch.exp: break 'A::outer::foo  (int)  const' if (a == 3)
[...]
break A::B::inner::foo  (char*)  const if (a == 3)
No symbol "a" in current context.
(gdb) FAIL: gdb.cp/ovsrch.exp: break A::B::inner::foo  (char*)  const if (a == 3)
break 'A::B::inner::foo  (char*)  const' if (a == 3)
No symbol "a" in current context.
(gdb) FAIL: gdb.cp/ovsrch.exp: break 'A::B::inner::foo  (char*)  const' if (a == 3)
[...]
break A::B::inner::foo  (int)  const if (a == 3)
No symbol "a" in current context.
(gdb) FAIL: gdb.cp/ovsrch.exp: break A::B::inner::foo  (int)  const if (a == 3)
break 'A::B::inner::foo  (int)  const' if (a == 3)
No symbol "a" in current context.
(gdb) FAIL: gdb.cp/ovsrch.exp: break 'A::B::inner::foo  (int)  const' if (a == 3)

No regressions on mips-linux-gnu though.

 This is SDE code:

800011e8 <A::stop_here()>:
800011e8:	27bdfff8 	addiu	sp,sp,-8
800011ec:	afbe0004 	sw	s8,4(sp)
800011f0:	03a0f021 	move	s8,sp
800011f4:	03c0e821 	move	sp,s8
800011f8:	8fbe0004 	lw	s8,4(sp)
800011fc:	27bd0008 	addiu	sp,sp,8
80001200:	03e00008 	jr	ra
80001204:	00000000 	nop

(breakpoint at 800011f4), and this is Linux code:

00400790 <A::stop_here()>:
  400790:	27bdfff8 	addiu	sp,sp,-8
  400794:	afbe0004 	sw	s8,4(sp)
  400798:	03a0f021 	move	s8,sp
  40079c:	03c0e821 	move	sp,s8
  4007a0:	8fbe0004 	lw	s8,4(sp)
  4007a4:	27bd0008 	addiu	sp,sp,8
  4007a8:	03e00008 	jr	ra
  4007ac:	00000000 	nop

(breakpoint at 40079c).  And I fail to see "a" being defined anywhere 
throughout gdb.cp/ovsrch*, so I am curious as to why it succeeds for any 
target (including mips-linux-gnu) in the first place.

 I can see you made this adjustment:

-    gdb_test "break ${class}::foo if (a == 3)" "Breakpoint (\[0-9\]).*"
+    gdb_test "break ${class}::hibob if (a_param == 3)" "Breakpoint

but there's this definition elsewhere in this test case:

    set conditional1 "if (a == 3)"

as well, that you have left intact.  Should it be adjusted accordingly?  
Why is this condition accepted for some targets and not for some others 
anyway?

 Thoughts?

  Maciej


  parent reply	other threads:[~2011-12-08 18:40 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 16:39 GDB 7.4 branching status? (2011-11-23) Joel Brobecker
2011-11-23 16:56 ` Tristan Gingold
2011-11-23 18:47 ` Tom Tromey
2011-11-23 23:24   ` Joel Brobecker
2011-11-24 10:56     ` Jerome Guitton
2011-11-24 16:33       ` Joel Brobecker
2011-11-28 16:17         ` Tom Tromey
2011-11-28 21:29         ` Tom Tromey
2011-11-29  2:28           ` Joel Brobecker
2011-11-29  2:49           ` iterate_over_symbols should be a wrapper? (was: "Re: GDB 7.4 branching status? (2011-11-23)") Joel Brobecker
2011-11-29 15:27             ` iterate_over_symbols should be a wrapper? Tom Tromey
2011-11-29  3:07           ` partial-symtab symbol sorting (was: "Re: GDB 7.4 branching status? (2011-11-23)") Joel Brobecker
2011-11-29  8:41             ` Pierre Muller
2011-11-29 14:51             ` partial-symtab symbol sorting Tom Tromey
     [not found]             ` <47228.5772244961$1322556128@news.gmane.org>
2011-11-29 14:55               ` Tom Tromey
2011-11-29  3:11           ` multiple-location breakpoint output (was: "Re: GDB 7.4 branching status? (2011-11-23)") Joel Brobecker
2011-11-29 15:06             ` multiple-location breakpoint output Tom Tromey
2011-11-29  3:14           ` decode_digits_line_mode (was: "Re: GDB 7.4 branching status? (2011-11-23)") Joel Brobecker
2011-11-29 14:56             ` decode_digits_line_mode Tom Tromey
2011-11-29  3:19           ` [RFA/commit/testcase] "info line" should not skip prologues (was: "Re: GDB 7.4 branching status? (2011-11-23)") Joel Brobecker
2011-11-29 15:03             ` [RFA/commit/testcase] "info line" should not skip prologues Tom Tromey
2011-11-29 17:00               ` Joel Brobecker
2011-11-29  3:22           ` GDB 7.4 branching status? (2011-11-23) Joel Brobecker
2011-11-29 15:38             ` Tom Tromey
2011-11-29  3:29           ` set multiple-symbol ask/cancel not working (was: "Re: GDB 7.4 branching status? (2011-11-23)") Joel Brobecker
2011-11-29 16:14             ` set multiple-symbol ask/cancel not working Tom Tromey
2011-11-29 16:57               ` Tom Tromey
2011-11-29 17:06                 ` Joel Brobecker
2011-11-30 16:41                   ` Tom Tromey
2011-11-29  3:33           ` one-too-many location in breakpoint (was: "Re: GDB 7.4 branching status? (2011-11-23)") Joel Brobecker
2011-11-29 16:15             ` one-too-many location in breakpoint Tom Tromey
2011-11-29 16:59               ` Tom Tromey
2011-11-30  5:59                 ` Joel Brobecker
2011-11-30 16:41                   ` Tom Tromey
2011-12-05 12:04                 ` Pedro Alves
2011-12-05 12:17                   ` Pedro Alves
2011-12-08 18:56                 ` Maciej W. Rozycki [this message]
2011-12-09  8:47                   ` Joel Brobecker
2011-11-24  0:58 ` GDB 7.4 branching status? (2011-11-23) Yao Qi
2011-11-24 17:17 ` Maciej W. Rozycki
2011-11-24 17:27   ` Joel Brobecker
2011-12-03  1:19     ` Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.1.10.1112081556410.5354@tp.orcam.me.uk \
    --to=macro@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox