bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb doesn't recognize local variables in debian with amd 64 bits


From: jacob navia
Subject: gdb doesn't recognize local variables in debian with amd 64 bits
Date: Sat, 18 Dec 2004 09:08:44 +0000
User-agent: KNode/0.8.1

The gdb debugger will not recognize local variables when debugging in
the amd 64 target (64 bit machine).

How to reproduce:
----------------

int main(int argc,char *argv[])
{
 argc++;
}
address@hidden:~/ants/test/gcc# gcc -gstabs t0.c
address@hidden:~/ants/test/gcc# gdb a.out
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".

(gdb) b main
Breakpoint 1 at 0x400483: file t0.c, line 3.
(gdb) run
Starting program: /home/ants/lcc64/test/gcc/a.out 

Breakpoint 1, main (argc=Cannot access memory at address 0x80bffff9dc
) at t0.c:3
3               argc++;
(gdb) print argc
Cannot access memory at address 0x80bffff9dc
(gdb) 

This happens with all local variables and arguments.

jacob

-- 
lcc-win32: http://www.cs.virginia.edu/~lcc-win32


reply via email to

[Prev in Thread] Current Thread [Next in Thread]