From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27495 invoked by alias); 20 Apr 2011 09:37:43 -0000 Received: (qmail 27485 invoked by uid 22791); 20 Apr 2011 09:37:43 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=BAYES_40,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 09:37:29 +0000 Received: by webmail.free.org (Postfix, from userid 80) id B8E56507A8B9; Wed, 20 Apr 2011 11:33:38 +0200 (CEST) To: Subject: Inspecting environment variables from a core =?UTF-8?Q?dump=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Wed, 20 Apr 2011 09:37:00 -0000 From: Ludovic Brenta Message-ID: <1fd75d649d5b52f429ef7a945ed1d8c5@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/msg00107.txt.bz2 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.