From: Ludovic Brenta <ludovic@ludovic-brenta.org>
To: <gdb@sourceware.org>
Subject: Inspecting environment variables from a core dump?
Date: Wed, 20 Apr 2011 09:37:00 -0000 [thread overview]
Message-ID: <1fd75d649d5b52f429ef7a945ed1d8c5@localhost> (raw)
Hello,
After searching the GDB documentation, mailing list and bug database I
have not found an answer to my question, so as a last resort I post it
here.
Does a core dump contain the environment of the program that dumped core?
If so, how can I inspect the environment variables? "show environment"
shows the environment that GDB is running in, not the environment of the
debuggee.
(context: I am analyzing a core dump that was produced on another machine
and I supect the bug was caused by a bad environment variable).
Thanks for any help.
--
Ludovic Brenta.
next reply other threads:[~2011-04-20 9:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 9:37 Ludovic Brenta [this message]
2011-04-20 9:56 ` Andreas Schwab
2011-04-20 12:28 ` Ludovic Brenta
2011-05-08 8:05 ` Paul Pluzhnikov
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=1fd75d649d5b52f429ef7a945ed1d8c5@localhost \
--to=ludovic@ludovic-brenta.org \
--cc=gdb@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