Bug 8946 - dwarf2-frame.c:1133: internal-error: Invalid or unsupported encoding
Summary: dwarf2-frame.c:1133: internal-error: Invalid or unsupported encoding
Status: RESOLVED DUPLICATE of bug 8902
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 6.3
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 23:18 UTC by chad_smith
Modified: 2009-09-14 16:05 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chad_smith 2005-01-07 23:18:00 UTC
[Converted from Gnats 1841]

NOTE --> Except for the gdb version, this is identical to PR1797.

$ gdb a.out
GNU gdb 6.3
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 "sparc-sun-solaris2.8"...
dwarf2-frame.c:1133: internal-error: Invalid or unsupported encoding
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

Release:
gdb-6.3

Environment:
Solaris 2.8/SPARC
gdb 6.3 compiled with gcc 3.4.2
gcc 3.4.2 using the SUN linker and assembler

How-To-Repeat:
$ g++ -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.4.2

$ uname -a
SunOS sunburn 5.8 Generic_108528-17 sun4u sparc SUNW,Ultra-80

$ gcc --version
gcc (GCC) 3.4.2
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gdb --version
GNU gdb 6.3
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 "sparc-sun-solaris2.8".

$ cat libmy.cc
#include <stdio.h>

int func()
{
  return printf("func\n");
}

$ cat static.cc
#include <stdio.h>

extern int func();

int main()
{
  func();
}

$ g++ -g -fPIC -c -o libmy.o libmy.cc
$ ar cr libmy.a libmy.o
$ ranlib libmy.a
$ g++ -g static.cc -L. 僕my
Comment 1 Tom Tromey 2009-09-14 16:05:42 UTC

*** This bug has been marked as a duplicate of 8902 ***