From owner-freebsd-stable Wed Oct 24 0:40:52 2001 Delivered-To: freebsd-stable@freebsd.org Received: from cmailg1.svr.pol.co.uk (cmailg1.svr.pol.co.uk [195.92.195.171]) by hub.freebsd.org (Postfix) with ESMTP id C737637B405 for ; Wed, 24 Oct 2001 00:40:48 -0700 (PDT) Received: from modem-137.clown-sweetlips.dialup.pol.co.uk ([62.136.248.137] helo=teatown.freeserve.co.uk) by cmailg1.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 15wIed-0002TY-00; Wed, 24 Oct 2001 08:40:47 +0100 Received: (from martin@localhost) by teatown.freeserve.co.uk (8.9.3/8.9.3) id IAA12231; Wed, 24 Oct 2001 08:36:56 +0100 (BST) (envelope-from martin) From: Martin Hopkins MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15318.28567.950904.849451@whittard.home> Date: Wed, 24 Oct 2001 08:36:55 +0100 (BST) To: mitko@rila.bg Cc: stable@FreeBSD.ORG Subject: Re: gdb and function arguments In-Reply-To: <200110240656.f9O6u6X12318@earth.rila.bg> References: <200110240656.f9O6u6X12318@earth.rila.bg> X-Mailer: VM 6.75 under Emacs 19.34.1 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> "Dimitar" == Dimitar Peikov writes: Dimitar> Any idea why gdb doesn't show properly function arguments when debugging? It Dimitar> seems that is buggy behaviour since few weeks I guess. I use GCC 2.95.3 and Dimitar> gdb 4.18 from yesterdays STABLE snapshot. Dimitar> <<<< gdb output <<<< Dimitar> (gdb) r Dimitar> Starting program: /usr/home/mitko/compile/fsa/src/fsm/examples/3state_automata Dimitar> Breakpoint 1, main (argc=671514624, argv=0x0) at 3state_automata.c:20 Dimitar> 20 tspool = fsa_tempspool_new(3, ASCII_SIZE, FALSE); Dimitar> (gdb) s Dimitar> fsa_tempspool_new (in_statescount=671488704, in_letterscount=0, Dimitar> in_isdetermined=671426728) at src/tempspool.c:18 Dimitar> 18 fsa_log(DEBUG_CLASS_TSPOOL, "entered fsa_tempspool_new\n"); Dimitar> (gdb) The program is running. Exit anyway? (y or n) y I noticed this a while ago when using dwarf-2 debug symbols, switching to stabs made it much happier. Unfortunately I've not had a chance to look into it any further, Sorry I can't be more helpful... Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message