Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: "Thomas,Stephen" <stephen.thomas@superh.com>
Cc: gdb@sources.redhat.com, "Bowers,
	Antony" <antony.bowers@superh.com>,
	"McGoogan,Sean" <sean.mcgoogan@superh.com>
Subject: Re: Dummy Breakpoint Priority
Date: Thu, 26 Jun 2003 17:47:00 -0000	[thread overview]
Message-ID: <3EFB318E.8030809@redhat.com> (raw)
In-Reply-To: <9FF3133289A7A84E81E2ED8F5E56B379604398@sh-uk-ex01.uk.w2k.superh.com>

> Hi,
> 
> I am currently porting gdb to the new SuperH SH5 architecture. I have just hit a problem, which sounds exactly the same as that reported on 31 Aug 2001 (by Jiri Smid, titled 'Dummy Breakpoint Priority').
> 
> When a target function is called from the command line, a special dummy breakpoint is inserted at the program entry point. (We have CALL_DUMMY_LOCATION defined as AT_ENTRY_POINT). Trouble is, when the program is statically linked, gdb has already placed an internal breakpoint at _start, of type bp_shlib_event. On return from the function, this causes bpstat_what() in breakpoint.c to return an action which causes gdb to carry on executing (what.main_action = BPSTAT_WHAT_CHECK_SHLIBS).
> 
> The reply to Jiri Smid's mail asked why solib-svr4.c was setting a bp on the entry point. But it looks like this is the normal thing for gdb to do - I verified that x86 gdb does the same thing (it doesn't suffer from this problem though because it doesn't use AT_ENTRY_POINT).

Are you sure that the i386 isn't using at AT_ENTRY_POINT?

> So please can anyone tell me what the resolution of this problem was?
> NB: Please reply using 'Reply All' as I am leaving SuperH shortly...

I'm puzzled to.

Andrew



  reply	other threads:[~2003-06-26 17:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-26 12:00 Thomas,Stephen
2003-06-26 17:47 ` Andrew Cagney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-06-27  9:24 Thomas,Stephen
2001-08-31  3:49 dummy breakpoint priority Jiri Smid
2001-08-31  8:42 ` Kevin Buettner

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=3EFB318E.8030809@redhat.com \
    --to=ac131313@redhat.com \
    --cc=antony.bowers@superh.com \
    --cc=gdb@sources.redhat.com \
    --cc=sean.mcgoogan@superh.com \
    --cc=stephen.thomas@superh.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