This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
symtab/1191: getting 'const value length mismatch' complaints
- From: carlton at bactrian dot org
- To: gdb-gnats at sources dot redhat dot com
- Date: 25 Apr 2003 18:14:37 -0000
- Subject: symtab/1191: getting 'const value length mismatch' complaints
- Reply-to: carlton at bactrian dot org
>Number: 1191
>Category: symtab
>Synopsis: getting 'const value length mismatch' complaints
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 25 18:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: carlton at bactrian dot org
>Release: GNU gdb 2003-04-25-cvs
>Organization:
>Environment:
GCC 3.2, DWARF 2, i686-pc-linux-gnu
>Description:
I just noticed that, when I set the complaints level to
1 and try to debug C++ programs using std::strings, I get
the following message:
During symbol reading, const value length mismatch for '_ZNSs4nposE', got 8, expected 4.
In case you're curious, that symbol is:
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::npos
>How-To-Repeat:
Create the following program:
#include <iostream>
#include <string>
int main()
{
std::string s("foo");
std::cout << s;
return 0;
}
Then:
papaya$ g++ -g foo.cc
papaya$ /extra/gdb/mirror/src/gdb/gdb a.out
GNU gdb 2003-04-25-cvs
Copyright 2003 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) set complaints 1
(gdb) b main
During symbol reading, const value length mismatch for '_ZNSs4nposE', got 8, expected 4.
Breakpoint 1 at 0x80486d9: file foo.cc, line 6.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: