Package: gdb
Version: 7.2-1
Severity: normal
consider following program
typedef struct {
int x;int y[];
} a;
a z;
a* y=&z;
int main(){
}
gdb writes wrong pointer when inspecting y.
(gdb) p y
$1 = (a *) 0x600848
(gdb) p *y
$2 = {x = 0, y = 0x600848}
(gdb) p y.y
$3 = 0x60084c
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF8, LC_CTYPE=en_US.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gdb depends on:
ii gdbserver 7.2-1 The GNU Debugger (remote server)
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libncurses5 5.9-1 shared libraries for terminal hand
ii libpython2.6 2.6.6-10 Shared Python runtime library (ver
ii libreadline6 6.1-3 GNU readline and history libraries
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
gdb recommends no packages.
Versions of packages gdb suggests:
pn gdb-doc <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]