Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "ILG.Robert" <R.ILG@bachmann.info>
To: "yao@codesourcery.com" <yao@codesourcery.com>,
	       "palves@redhat.com"	<palves@redhat.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: Extending RSP with vCont;n and vCont;f
Date: Wed, 23 Oct 2013 07:19:00 -0000	[thread overview]
Message-ID: <7E3A266F5548C442BC08FA3038B5197C6844C410@ATFKEX06.bachmann.at> (raw)

As the question concerning the proposed patch has passed silently within the mass of requests, I dare to post it again.

How does GDB cope with read-only code, that does not allow to insert breakpoints?

Here the problem is described in more detail:
> All the same "finish" is needed in order to handle the GDB "finish" correctly. 
> Remember that our target cannot insert breakpoints to system code, like 
> other targets cannot alter read-only memory. So if you trigger the system 
> to call a call-back function of your code, you cannot step back. The Stack 
> would look like this: 
> MyCode1-->SystemCode2-->...-->Systemcode4-->MyCode5. 
> As you cannot insert a breakpoint to SystemCode4 there is no way to 
> "finish" until MyCode1. In such a case GDB or the target need to realize 
> that the code in between cannot be controlled with breakpoints and 
> therefore the breakpoint needs to be set to the return address of MyCode1 
> - skipping all code in between. GDB does not skip unknown code at the 
> moment, so the question is whether skipping unknown Code has to be done 
> by GDB or by the target (remote by using "finish").
>
> So the real questions are:
> Is it intended to skip unknown/read-only code in GDB?
> If yes, has it to be solved within GDB or within the target?

Thanks.

             reply	other threads:[~2013-10-23  7:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23  7:19 ILG.Robert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-11-08  8:18 ILG.Robert
2013-10-04 12:53 ILG.Robert
2013-10-06  7:58 ` Yao Qi
2013-10-07 12:05   ` Pedro Alves
2013-10-03  5:04 ILG.Robert
2013-10-02 15:08 ILG.Robert
2013-10-02 16:25 ` Eli Zaretskii
2013-10-04  6:49 ` Yao Qi

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=7E3A266F5548C442BC08FA3038B5197C6844C410@ATFKEX06.bachmann.at \
    --to=r.ilg@bachmann.info \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=yao@codesourcery.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