From: Michael Snyder <msnyder@vmware.com>
To: Daniel Gutson <dgutson@codesourcery.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gcore registers storing fix
Date: Sun, 08 Nov 2009 20:04:00 -0000 [thread overview]
Message-ID: <4AF72404.1070808@vmware.com> (raw)
In-Reply-To: <4AF4A505.4010600@codesourcery.com>
Daniel Gutson wrote:
> The attached patch attempts to solve a bug that caused the gcore command
> to produce core files containing incorrect registers information. The
> problem caused incomplete backtraces when the files were read back into GDB.
>
> I tested this patch with the gdb testsuite, and my addition to the
> gcore-thread.exp test case.
>
> If OK, please commit it for me since I don't have write access.
What host configuration is this for?
At first glance, the procfs change looks ok (but I'm no longer
up to date on procfs). I have some doubt about the test change.
You say in your comment, "The threads should be standing at a
known function, rather than ??". I'm not sure how we can know
that. The threads may have been stopped anywhere, and it's
always possible to find a library with no symbols.
> 2009-11-06 Daniel Gutson <dgutson@codesourcery.com>
>
> gdb/
> * procfs.c (procfs_do_thread_registers): Added a call to fetch
> register values before saving them in the core file
> through the gcore command.
> (procfs_corefile_thread_callback): removed the backup of
> inferior_ptid before calling procfs_do_thread_registers since
> the function already saves and restores it before returning.
>
> gdb/testsuite/gdb.threads/
> * gcore-thread.exp: Added a test case in order to check
> if the core dump contains the registers values, and symbol
> lookup is working properly.
>
next prev parent reply other threads:[~2009-11-08 20:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 22:37 Daniel Gutson
2009-11-08 20:04 ` Michael Snyder [this message]
2009-11-09 14:59 ` Daniel Gutson
2009-11-09 15:31 ` Daniel Jacobowitz
2009-11-09 18:17 ` Daniel Gutson
2009-11-09 18:25 ` Daniel Jacobowitz
2009-11-09 18:36 ` Daniel Gutson
2009-11-09 20:10 ` Daniel Jacobowitz
2009-11-09 20:32 ` Daniel Gutson
2009-11-09 20:33 ` Daniel Jacobowitz
2009-11-09 20:37 ` Daniel Gutson
2009-11-10 21:00 ` Daniel Jacobowitz
2009-11-09 19:10 ` Michael Snyder
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=4AF72404.1070808@vmware.com \
--to=msnyder@vmware.com \
--cc=dgutson@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/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