From: Randolph Chung <randolph@tausq.org>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFC/hppa] Change handling of stubs in the return path
Date: Tue, 07 Dec 2004 01:43:00 -0000 [thread overview]
Message-ID: <20041206234820.GT6359@tausq.org> (raw)
In-Reply-To: <20041206233728.GA32454@nevyn.them.org>
> When you step one instruction out of the function, you go from "frame
> A, called by frame B" to "frame C, called by frame B". Does GDB get
> confused by this? Try using "step"; it may decide that frame C was
> called by frame A, and resume.
>
> I guess that doesn't matter. What usually happens in this case is GDB
> loses control; but if it does, it will just hit the dummy frame
> breakpoint, so who cares?
are you talking about the function called by gdb case [1]? or the normal
function-called-shared-library-function case [2]?
but it doesn't matter, it works :) although in the case of [1], when
stepping out of A, you will step through C (this is arguably a bug,
because gdb doesn't consider __gcc_plt_stub a solib return trampoline)
in the case of [2], we step out of A, into C, gdb automatically skips C
because it is a solib return trampoline, so we end up directly back in B
without stopping in C.
> I meant the missing space after _stub.
ah, ok. fixed.
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
prev parent reply other threads:[~2004-12-06 23:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-06 22:37 Randolph Chung
2004-12-06 23:27 ` Daniel Jacobowitz
2004-12-06 23:37 ` Randolph Chung
2004-12-06 23:42 ` Daniel Jacobowitz
2004-12-07 1:43 ` Randolph Chung [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=20041206234820.GT6359@tausq.org \
--to=randolph@tausq.org \
--cc=gdb-patches@sources.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