From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5219 invoked by alias); 20 Apr 2011 12:28:12 -0000 Received: (qmail 5207 invoked by uid 22791); 20 Apr 2011 12:28:11 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,SARE_SUB_ENC_UTF8 X-Spam-Check-By: sourceware.org Received: from rmap1.bookmyname.com (HELO webmail.free.org) (88.191.249.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Apr 2011 12:27:57 +0000 Received: by webmail.free.org (Postfix, from userid 80) id 3C51D507A8B4; Wed, 20 Apr 2011 14:24:07 +0200 (CEST) To: Subject: Re: Inspecting environment variables from a core =?UTF-8?Q?=20dump=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Wed, 20 Apr 2011 12:28:00 -0000 From: Ludovic Brenta In-Reply-To: References: <1fd75d649d5b52f429ef7a945ed1d8c5@localhost> Message-ID: <102a959df9a18135271bc2ddd5ae9eb1@localhost> X-Sender: ludovic@ludovic-brenta.org User-Agent: RoundCube Webmail/0.4-beta X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Origin-Web-Site: webmail.bookmyname.com 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/msg00110.txt.bz2 Andreas Schwab wrote: > 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. Thanks but: (gdb) p environ $13 = 0 (gdb) whatis environ type = Am I simply out of luck or doing something wrong? -- Ludovic Brenta.