Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [6.2.1] internal-error: Invalid or unsupported encoding
@ 2004-10-22 14:52 Albert Chin
  2004-10-25  9:52 ` Mark Kettenis
  0 siblings, 1 reply; 3+ messages in thread
From: Albert Chin @ 2004-10-22 14:52 UTC (permalink / raw)
  To: gdb

$ uname -a
SunOS gax 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-V250
$ g++ -v
Reading specs from
/opt/TWWfsw/gcc332/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: /opt/build/gcc-3.3.2/configure --enable-nls
--with-included-gettext --enable-shared --enable-libgcj
--enable-threads --datadir=/opt/TWWfsw/gcc332/share
--with-local-prefix=/opt/TWWfsw/gcc332 --prefix=/opt/TWWfsw/gcc332
Thread model: posix
gcc version 3.3.2 (TWW)
$ gdb --version
GNU gdb 6.2.1
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. -lmy
$ ./a.out
func

$ gdb a.out
GNU gdb 6.2.1
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:1136: 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) 

Is this PR1618?

Making libmy a shared library works fine.

-- 
albert chin (china@thewrittenword.com)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [6.2.1] internal-error: Invalid or unsupported encoding
  2004-10-22 14:52 [6.2.1] internal-error: Invalid or unsupported encoding Albert Chin
@ 2004-10-25  9:52 ` Mark Kettenis
  2004-10-26  7:51   ` Albert Chin
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2004-10-25  9:52 UTC (permalink / raw)
  To: gdb

   Date: Fri, 22 Oct 2004 06:24:30 -0500
   From: Albert Chin <gdb@mlists.thewrittenword.com>

   dwarf2-frame.c:1136: 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) 

   Is this PR1618?

No it isn't.  At least I think it isn't.  Please would you be so kind
to file a bug report for this one?

Can you find out what assembler are you using?

$ g++ -g -v static.cc -L. -my

should tell you what assembler GCC is using.

I think I know what the problem is, so you might see a fix soon.

Thanks,

Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [6.2.1] internal-error: Invalid or unsupported encoding
  2004-10-25  9:52 ` Mark Kettenis
@ 2004-10-26  7:51   ` Albert Chin
  0 siblings, 0 replies; 3+ messages in thread
From: Albert Chin @ 2004-10-26  7:51 UTC (permalink / raw)
  To: gdb

On Sun, Oct 24, 2004 at 08:50:26PM +0200, Mark Kettenis wrote:
>    Date: Fri, 22 Oct 2004 06:24:30 -0500
>    From: Albert Chin <gdb@mlists.thewrittenword.com>
> 
>    dwarf2-frame.c:1136: 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) 
> 
>    Is this PR1618?
> 
> No it isn't.  At least I think it isn't.  Please would you be so kind
> to file a bug report for this one?

PR1797.

> Can you find out what assembler are you using?
> 
> $ g++ -g -v static.cc -L. -my
> 
> should tell you what assembler GCC is using.

We are using the Sun assembler, /usr/ccs/bin/as.

-- 
albert chin (china@thewrittenword.com)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-25 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-22 14:52 [6.2.1] internal-error: Invalid or unsupported encoding Albert Chin
2004-10-25  9:52 ` Mark Kettenis
2004-10-26  7:51   ` Albert Chin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox