public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>, Kris Warkentin <kewarken@qnx.com>
Cc: Quality Quorum <qqi@theworld.com>,
	"Gdb@Sources.Redhat.Com" <gdb@sources.redhat.com>
Subject: Re: (remote) hellishly slow single stepping over library calls
Date: Sat, 17 May 2003 03:39:00 -0000	[thread overview]
Message-ID: <3EC5AECB.1080106@redhat.com> (raw)
In-Reply-To: <20030516192900.GA2984@nevyn.them.org>

> On Fri, May 16, 2003 at 03:24:30PM -0400, Kris Warkentin wrote:
> 
>> > > Would this problem also exist with the normal remote protocol?  (stupid
>> > > users...clicking step instead of next....;-)
> 
>> >
>> > What about using the T-format with a value of PC to report status, instead
>> > of using the S-format, for the purpose.
> 
>> 
>> We're not using gdb's remote protocol but rather our own.  I see from
>> remote.c though that T-format is just an expedited reply with just a signal
>> and the appropriate registers.  I'm assuming that each target would be in
>> charge of knowing what it needs to put in these replies and when to use
>> them.
> 
> 
> Yes, that's how it works.
> 
> 
>> I'll look into implementing that sort of thing on our end.
> 
> 
> It should be pretty straightforward to do.  When you get the right
> registers, it's quite effective, too.

Something useful here would be a mod to regcache.[hc] to track the 
registers requested (after a flush/invalidate) (via regcache_raw_read) 
rather than the registers supplied (via supply_register) (displayed via 
maint print raw-registers)

That, and a few single steps, would pretty quickly tell you what is needed.

The other way is to watch the output of 'set debug target'.

Andrew


      parent reply	other threads:[~2003-05-17  3:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-16 18:25 Kris Warkentin
2003-05-16 18:50 ` Theodore A. Roth
2003-05-16 18:57   ` Kris Warkentin
2003-05-16 19:15 ` Quality Quorum
2003-05-16 19:24   ` Kris Warkentin
2003-05-16 19:29     ` Daniel Jacobowitz
2003-05-16 20:04       ` Kris Warkentin
2003-05-16 23:10         ` Quality Quorum
2003-05-17  3:39       ` Andrew Cagney [this message]

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=3EC5AECB.1080106@redhat.com \
    --to=ac131313@redhat.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=kewarken@qnx.com \
    --cc=qqi@theworld.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).