On Mon, Sep 08, 2008 at 08:34:32PM +0200, Matthias Klose wrote:
> Package: gdb
> Version: 6.8-3
> 
> gdb reports incorrect sizeof:
> $ gdb
> GNU gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> (gdb) p sizeof(int)
> $1 = 4
> (gdb) p sizeof(long)
> $2 = 4
> (gdb) p sizeof(void *)
> $3 = 4
> (gdb) quit

This is just how a biarch capable GDB works:

(gdb) show architecture
The target architecture is set automatically (currently i386)

There's no way to specify which variant ends up as the default.
Is it causing a problem?

-- 
Daniel Jacobowitz
CodeSourcery



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to