From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11074 invoked by alias); 20 Apr 2011 09:56:13 -0000 Received: (qmail 11065 invoked by uid 22791); 20 Apr 2011 09:56:13 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Apr 2011 09:55:58 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 2C1191C01F2A; Wed, 20 Apr 2011 11:55:57 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 0305E1C000E6; Wed, 20 Apr 2011 11:55:57 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id OWXof2IdUyiO; Wed, 20 Apr 2011 11:55:57 +0200 (CEST) Received: from igel.home (ppp-88-217-113-77.dynamic.mnet-online.de [88.217.113.77]) by mail.mnet-online.de (Postfix) with ESMTP; Wed, 20 Apr 2011 11:55:56 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 4FCC9CA2A0; Wed, 20 Apr 2011 11:55:56 +0200 (CEST) From: Andreas Schwab To: Ludovic Brenta Cc: Subject: Re: Inspecting environment variables from a core dump? References: <1fd75d649d5b52f429ef7a945ed1d8c5@localhost> X-Yow: I can see you GUYS an' GALS need a LOT of HELP...You're all very STUPID!! I used to be STUPID, too..before I started watching UHF-TV!! Date: Wed, 20 Apr 2011 09:56:00 -0000 In-Reply-To: <1fd75d649d5b52f429ef7a945ed1d8c5@localhost> (Ludovic Brenta's message of "Wed, 20 Apr 2011 11:33:38 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00108.txt.bz2 Ludovic Brenta 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."