This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/279: Severe debugging problems (gdb vs gcc 3.1)
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 8 Dec 2002 21:48:01 -0000
- Subject: Re: gdb/279: Severe debugging problems (gdb vs gcc 3.1)
- Reply-to: Michael Elizabeth Chastain <mec at shout dot net>
The following reply was made to PR gdb/279; it has been noted by GNATS.
From: Michael Elizabeth Chastain <mec@shout.net>
To: gdb-gnats@sources.redhat.com, schmid@snake.iap.physik.tu-darmstadt.de
Cc:
Subject: Re: gdb/279: Severe debugging problems (gdb vs gcc 3.1)
Date: Sun, 8 Dec 2002 15:42:13 -0600
This was an informative bug report, thanks.
This bug is fixed in gdb 5.2.91 and the current gdb cvs HEAD.
You can pick up gdb 5.2.91 at:
ftp://sources.redhat.com/pub/gdb/snapshots/branch/gdb-5.2.91.tar.bz2
I tested this with:
target => native
host => i686-pc-linux-gnu%rh-8
gdb => 5.2.91, HEAD%20021206
gcc => 3.2.1
binutils => 2.13.1
glibc => 2.2.93-5-rh
gformat => dwarf-2, stabs+
Michael C
===
Script started on Sun Dec 8 16:27:40 2002
bash-2.05b$ g++ -v
Reading specs from /berman/migchain/install/native/gcc-3.2.1-binutils-2.13.1/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs
Configured with: /berman/migchain/source/gcc-3.2.1/configure --prefix=/berman/migchain/install/native/gcc-3.2.1-binutils-2.13.1 --disable-shared --with-gnu-as --with-as=/berman/migchain/install/native/binutils-2.13.1/bin/as --with-gnu-ld --with-ld=/berman/migchain/install/native/binutils-2.13.1/bin/ld
Thread model: posix
gcc version 3.2.1
bash-2.05b$ g++ -gdwarf-2 -o t1-321-2131-dwarf2.exe t1.C
bash-2.05b$ g++ -gstabs+ -o t1-321-2131-stabs+.exe t1.C
bash-2.05b$ /berman/migchain/install/native/gdb-5.2.91/bin/gdb t1-321-2131-dwarf2.exe
GNU gdb 5.2.91
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) break main
Breakpoint 1 at 0x8049678: file t1.C, line 5.
(gdb) run
Starting program: /berman/home/mec/gdb-pr-279/t1-321-2131-dwarf2.exe
Breakpoint 1, main () at t1.C:5
5 std::locale Locale("");
(gdb) next
6 int i;
(gdb) info locals
Locale = {static none = 0, static ctype = 1, static numeric = 2,
static collate = 4, static time = 8, static monetary = 16,
static messages = 32, static all = 63, _M_impl = 0x80a86a0,
static _S_classic = 0x809ff40, static _S_global = 0x809ff40,
static _S_categories_size = 6, static _S_extra_categories_size = 0,
static _S_categories = {0x808bf24 "LC_CTYPE", 0x808bf2d "LC_NUMERIC",
0x808bf38 "LC_COLLATE", 0x808bf43 "LC_TIME", 0x808bf4b "LC_MONETARY",
0x808bf57 "LC_MESSAGES"}}
i = 134785221
(gdb) print Locale
$1 = {static none = 0, static ctype = 1, static numeric = 2,
static collate = 4, static time = 8, static monetary = 16,
static messages = 32, static all = 63, _M_impl = 0x80a86a0,
static _S_classic = 0x809ff40, static _S_global = 0x809ff40,
static _S_categories_size = 6, static _S_extra_categories_size = 0,
static _S_categories = {0x808bf24 "LC_CTYPE", 0x808bf2d "LC_NUMERIC",
0x808bf38 "LC_COLLATE", 0x808bf43 "LC_TIME", 0x808bf4b "LC_MONETARY",
0x808bf57 "LC_MESSAGES"}}
(gdb) quit
The program is running. Exit anyway? (y or n) y
bash-2.05b$ /berman/migchain/install/native/gdb-5.2.91/bin/gdb t1-321-2131-stabs+.exe
GNU gdb 5.2.91
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) break main
Breakpoint 1 at 0x8049678: file t1.C, line 5.
(gdb) run
Starting program: /berman/home/mec/gdb-pr-279/t1-321-2131-stabs+.exe
Breakpoint 1, main () at t1.C:5
5 std::locale Locale("");
(gdb) next
6 int i;
(gdb) info locals
Locale = {static none = 0, static ctype = 1, static numeric = 2,
static collate = 4, static time = 8, static monetary = 16,
static messages = 32, static all = 63, _M_impl = 0x80a86a0,
static _S_classic = 0x809ff40, static _S_global = 0x809ff40,
static _S_categories_size = 6, static _S_extra_categories_size = 0,
static _S_categories = {0x808bf24 "LC_CTYPE", 0x808bf2d "LC_NUMERIC",
0x808bf38 "LC_COLLATE", 0x808bf43 "LC_TIME", 0x808bf4b "LC_MONETARY",
0x808bf57 "LC_MESSAGES"}}
i = 134785221
(gdb) print Locale
$1 = {static none = 0, static ctype = 1, static numeric = 2,
static collate = 4, static time = 8, static monetary = 16,
static messages = 32, static all = 63, _M_impl = 0x80a86a0,
static _S_classic = 0x809ff40, static _S_global = 0x809ff40,
static _S_categories_size = 6, static _S_extra_categories_size = 0,
static _S_categories = {0x808bf24 "LC_CTYPE", 0x808bf2d "LC_NUMERIC",
0x808bf38 "LC_COLLATE", 0x808bf43 "LC_TIME", 0x808bf4b "LC_MONETARY",
0x808bf57 "LC_MESSAGES"}}
(gdb) quit
The program is running. Exit anyway? (y or n) y
bash-2.05b$ /berman/fsf/_today_/berman/native/install/gdb/HEAD/bin/gdb t1-321-2131-dwarf2.exe
GNU gdb 2002-12-07-cvs
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) break main
Breakpoint 1 at 0x8049678: file t1.C, line 5.
(gdb) run
Starting program: /berman/home/mec/gdb-pr-279/t1-321-2131-dwarf2.exe
Breakpoint 1, main () at t1.C:5
5 std::locale Locale("");
(gdb) next
6 int i;
(gdb) info locals
Locale = {static none = 0, static ctype = 1, static numeric = 2,
static collate = 4, static time = 8, static monetary = 16,
static messages = 32, static all = 63, _M_impl = 0x80a86a0,
static _S_classic = 0x809ff40, static _S_global = 0x809ff40,
static _S_categories_size = 6, static _S_extra_categories_size = 0,
static _S_categories = {0x808bf24 "LC_CTYPE", 0x808bf2d "LC_NUMERIC",
0x808bf38 "LC_COLLATE", 0x808bf43 "LC_TIME", 0x808bf4b "LC_MONETARY",
0x808bf57 "LC_MESSAGES"}}
i = 134785221
(gdb) print Locale
$1 = {static none = 0, static ctype = 1, static numeric = 2,
static collate = 4, static time = 8, static monetary = 16,
static messages = 32, static all = 63, _M_impl = 0x80a86a0,
static _S_classic = 0x809ff40, static _S_global = 0x809ff40,
static _S_categories_size = 6, static _S_extra_categories_size = 0,
static _S_categories = {0x808bf24 "LC_CTYPE", 0x808bf2d "LC_NUMERIC",
0x808bf38 "LC_COLLATE", 0x808bf43 "LC_TIME", 0x808bf4b "LC_MONETARY",
0x808bf57 "LC_MESSAGES"}}
(gdb) quit
The program is running. Exit anyway? (y or n) y
bash-2.05b$ /berman/fsf/_today_/berman/native/install/gdb/HEAD/bin/gdb t1-321-2131-stabs+.exe
GNU gdb 2002-12-07-cvs
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) break main
Breakpoint 1 at 0x8049678: file t1.C, line 5.
(gdb) run
Starting program: /berman/home/mec/gdb-pr-279/t1-321-2131-stabs+.exe
Breakpoint 1, main () at t1.C:5
5 std::locale Locale("");
(gdb) next
6 int i;
(gdb) info locals
Locale = {static none = 0, static ctype = 1, static numeric = 2,
static collate = 4, static time = 8, static monetary = 16,
static messages = 32, static all = 63, _M_impl = 0x80a86a0,
static _S_classic = 0x809ff40, static _S_global = 0x809ff40,
static _S_categories_size = 6, static _S_extra_categories_size = 0,
static _S_categories = {0x808bf24 "LC_CTYPE", 0x808bf2d "LC_NUMERIC",
0x808bf38 "LC_COLLATE", 0x808bf43 "LC_TIME", 0x808bf4b "LC_MONETARY",
0x808bf57 "LC_MESSAGES"}}
i = 134785221
(gdb) print Locale
$1 = {static none = 0, static ctype = 1, static numeric = 2,
static collate = 4, static time = 8, static monetary = 16,
static messages = 32, static all = 63, _M_impl = 0x80a86a0,
static _S_classic = 0x809ff40, static _S_global = 0x809ff40,
static _S_categories_size = 6, static _S_extra_categories_size = 0,
static _S_categories = {0x808bf24 "LC_CTYPE", 0x808bf2d "LC_NUMERIC",
0x808bf38 "LC_COLLATE", 0x808bf43 "LC_TIME", 0x808bf4b "LC_MONETARY",
0x808bf57 "LC_MESSAGES"}}
(gdb) quit
The program is running. Exit anyway? (y or n) y
bash-2.05b$ exit
exit
Script done on Sun Dec 8 16:32:06 2002