Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Unknown type reported on Solaris x86 for char[xxx]
@ 1999-04-22 14:09 Cristian Diaconu
  1999-04-22 14:55 ` Cristian Diaconu
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Diaconu @ 1999-04-22 14:09 UTC (permalink / raw)
  To: 'Cygnus GDB-bugs', 'Cygnus - GDB'

This could be a problem with egcs/gcc,  but it manifests itself in gdb,
therefore I present it here in hope of someone cross-referencing it if
needed.

I work on Solaris x86 with egcs 1.1.2 and gdb 4.17. (The same behavior is
evident with gdb 4.18.) I also have a Linux workstation. The following code
produces different results:

Class A
{
public:
   char m_char[25];
};

int main()
{
   A a;
   return 0;
}

I load this program in gdb and break on main. When I issue "ptype b" command
in gdb, on Solaris I get the following output:

*	ptype a
struct A {
   <unknown type>
};

On Linux however, the output is:
Class A {
   Char m_char[25];
};

Any help is greatly appreciated.

Thank you

Cristian Diaconu


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

end of thread, other threads:[~1999-04-22 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-22 14:09 Unknown type reported on Solaris x86 for char[xxx] Cristian Diaconu
1999-04-22 14:55 ` Cristian Diaconu

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