This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with gdb on Sun Blade 1000


Those symptoms don't look familiar to me.  There may no be any way to
fix the problem other than actually sitting down at the right kind of
machine and debugging GDB.  I don't know of any other Blade users
on this list (not that I've asked), so you may be the logical one to
pursue it.

"Jay A. St. Pierre" <Jay.St.Pierre@Colorado.EDU> writes:

> I have been completely unsuccessful in getting gdb to work on the
> 2 Blade 1000's and 2 Blade 2000's we have.  It does work on
> another Blade 1000 in a different cluster, but when I copy over
> the entire gnu toolset (/usr/local/gnu) from that cluster to
> ours, it still doesn't work.  Obviously there is some
> configuration or environment difference, but I haven't been able
> to find it.
> 
> Please let me know if you have any ideas.
> 
> -Jay
> 
> On Thu, 19 Sep 2002, Jay A. St. Pierre wrote:
> 
> > I have compiled gdb 5.2.1 on a Sun Blade 1000 (Solaris 2.8) using
> > both gcc 2.95.3 and 3.2.  It is unable to debug code compiled
> > with either gcc 2.95.3 or 3.2.
> >
> > For example, trying to debug "hello world":
> >
> > -------begin hello.c------
> > #include <stdio.h>
> >
> > int main(void)
> > {
> >   printf("hello world.\n");
> >   printf("Hello\n");
> >   printf("World\n");
> > }
> > --------end hello.c-------
> >
> > When trying to use gdb (compiled with gcc 3.2) to debug the
> > executable "hello" (compiled with gcc 3.2), I get the following:
> >
> > -------begin gdb session-----
> > GNU gdb 5.2.1
> > 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 "sparc-sun-solaris2.8"...
> > (gdb) b 6
> > Breakpoint 1 at 0x10698: file hello.c, line 6.
> > (gdb) run
> > Starting program: /home/stpierre/tmp/hello
> >
> > Program received signal SIGTRAP, Trace/breakpoint trap.
> > 0xff3b29c0 in ?? ()
> > (gdb) cont
> > Continuing.
> > hello world.
> >
> > Breakpoint 1, main () at hello.c:6
> > 6         printf("Hello\n");
> > (gdb) next
> >
> > Program received signal SIGILL, Illegal instruction.
> > main () at hello.c:6
> > 6         printf("Hello\n");
> > (gdb) next
> >
> > Program terminated with signal SIGILL, Illegal instruction.
> > The program no longer exists.
> > (gdb)
> > ------end gdb session------
> >
> > I ran a "make check" on gdb, and it failed its tests miserably.
> > The summary and log files from the test can be found at
> > http://osl-www.colorado.edu/~stpierre/gdb
> >
> > I also compiled gdb-5.2.1 on a Sun Enterprise 3000 running
> > Solaris 2.6 and was able to successfully debug hello.c (both gdb
> > and hello compiled with gcc-3.2).  Running this binary on the
> > Blade failed in the same way the natively compiled gdb failed.
> >
> > I would greatly appreciate some advice on how to get gdb to work
> > on the Blade.  Thank you.
> >
> > -Jay
> >
> >


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]