From: Andreas Schwab <schwab@linux-m68k.org>
To: Ludovic Brenta <ludovic@ludovic-brenta.org>
Cc: <gdb@sourceware.org>
Subject: Re: Inspecting environment variables from a core dump?
Date: Wed, 20 Apr 2011 09:56:00 -0000 [thread overview]
Message-ID: <m2vcy9p7pv.fsf@igel.home> (raw)
In-Reply-To: <1fd75d649d5b52f429ef7a945ed1d8c5@localhost> (Ludovic Brenta's message of "Wed, 20 Apr 2011 11:33:38 +0200")
Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> Does a core dump contain the environment of the program that dumped core?
A core dump contains the whole used address space of the program, and
the environment is of course part of it.
> If so, how can I inspect the environment variables?
The environment is always stored in the variable environ.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2011-04-20 9:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 9:37 Ludovic Brenta
2011-04-20 9:56 ` Andreas Schwab [this message]
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=m2vcy9p7pv.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=gdb@sourceware.org \
--cc=ludovic@ludovic-brenta.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