From: Andrew Cagney <ac131313@cygnus.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa] Mips heuristic_proc_desc vs. the stack pointer.
Date: Wed, 07 Nov 2001 17:56:00 -0000 [thread overview]
Message-ID: <3BF979F7.4090207@cygnus.com> (raw)
In-Reply-To: <20011116162423.A30736@nevyn.them.org>
> As HJ noticed, we try to read the stack pointer in heuristic_proc_desc. I'm
> not sure why this normally works and fails with linuxthread support, but I'm
> convinced it's sometimes wrong. If we are called from after_prologue(), the
> stack pointer has nothing to do with the function we're trying to generate a
> desc for. We shouldn't try to read it in this case. The uses of it in
> *_heuristic_proc_desc are harmless.
Regarding the threads, are you saying things still sometimes break with
your patch applied? I suspect there was the usual GDB internal thread
coherency problem where different parts of GDB were debugging different
threads.
> Is this OK, Andrew?
Yes, but can you please adjust the following before committing:
> * mips-tdep.c (find_proc_desc): Add read_sp argument. Update all
> callers.
Given the updates were not identical / mechanical, could you please list
each making it clear that after_prologue() was the exception.
Can you please add a comment to after_prologue() explaining why the SP
shouldn't be fetched in that case.
Can the argument be called read_sp_p (say?) rather than read_sp. There
is a global function read_sp that is hiding behind that variable.
> (heuristic_proc_desc): Likewise. Do not read SP if read_sp == 0.
enjoy, Andrew
next prev parent reply other threads:[~2001-11-19 21:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-07 7:32 Daniel Jacobowitz
2001-11-07 17:56 ` Andrew Cagney [this message]
2001-11-07 18:19 ` Daniel Jacobowitz
2001-11-07 18:41 ` Andrew Cagney
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=3BF979F7.4090207@cygnus.com \
--to=ac131313@cygnus.com \
--cc=drow@mvista.com \
--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