From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8505 invoked by alias); 2 Nov 2005 18:28:36 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 8469 invoked by uid 22791); 2 Nov 2005 18:28:31 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 02 Nov 2005 18:28:31 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jA2ISOPr012662; Wed, 2 Nov 2005 13:28:24 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jA2ISNV09853; Wed, 2 Nov 2005 13:28:23 -0500 Received: from theseus.home..redhat.com (vpn26-17.sfbay.redhat.com [172.16.26.17]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id jA2ISIkA031711; Wed, 2 Nov 2005 13:28:19 -0500 To: "MCG LU Fengcheng" Cc: Subject: Re: Why are NOT the function parametters in the stack. They are in the register! References: <7E98B33B3500C0409DBEC5C0E3FDEF120230B583@htmail.sbell.com.cn> From: Jim Blandy Date: Wed, 02 Nov 2005 18:28:00 -0000 In-Reply-To: <7E98B33B3500C0409DBEC5C0E3FDEF120230B583@htmail.sbell.com.cn> (MCG LU Fengcheng's message of "Wed, 2 Nov 2005 14:07:26 +0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-11/txt/msg00044.txt.bz2 "MCG LU Fengcheng" writes: > Hello all > In the PrintTrace, traceType and fmt are both NULL. It's impossible. I always give the valid pointer for the traceType and fmt. Did you compile your code with optimization? Try compiling without optimization and see if things behave more reasonably. When the optimizer changes the program's code, it doesn't always accurately describe to GDB what it has done. When this happens, GDB can run into troubles finding variables' values (among other things).