* Re: Help needed with sparc [not found] <200201232315.g0NNFw309706@banach.math.purdue.edu> @ 2002-01-23 18:20 ` Alexandre Oliva 2002-01-23 18:26 ` Andrew Cagney 2002-01-23 18:27 ` Michael Snyder 0 siblings, 2 replies; 5+ messages in thread From: Alexandre Oliva @ 2002-01-23 18:20 UTC (permalink / raw) To: Brad Lucier; +Cc: jsturm, atpoquet, gcc, gdb-patches [-- Attachment #1: Type: text/plain, Size: 704 bytes --] On Jan 23, 2002, Brad Lucier <lucier@math.purdue.edu> wrote: > Re: >> You must use a 64-bit gdb to debug 64-bit Solaris executables. > Which version of gdb? I got the following message when trying to > configure 5.1: > env CC='cc -xildoff -xarch=v9' ./configure sparcv9-sun-solaris2.8 > ... > checking for X... libraries /pkgs/XFree86-3.3.3.1/lib, headers /pkgs/XFree86-3.3.3.1/include > configure: error: *** Gdb does not support host sparcv9-sun-solaris2.8 gdb's configure recognizes sparc64-sun-solaris2.8, but not sparcv9-sun-solaris2.8. Here's a patch that I've had for a while that addresses this inconsistency in GDB WRT other packages. I'm not sure I've posted it before. Ok to install? [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: gdb-sparcv9.patch --] [-- Type: text/x-patch, Size: 1401 bytes --] Index: gdb/configure.host =================================================================== RCS file: /cvs/src/src/gdb/configure.host,v retrieving revision 1.23 diff -u -p -r1.23 configure.host --- gdb/configure.host 2001/07/10 20:41:54 1.23 +++ gdb/configure.host 2001/11/18 03:52:47 @@ -18,7 +18,7 @@ m68*) gdb_host_cpu=m68k ;; m88*) gdb_host_cpu=m88k ;; mips*) gdb_host_cpu=mips ;; powerpc*) gdb_host_cpu=powerpc ;; -sparc64) gdb_host_cpu=sparc ;; +sparcv9|sparc64) gdb_host_cpu=sparc ;; s390*) gdb_host_cpu=s390 ;; *) gdb_host_cpu=$host_cpu ;; @@ -154,6 +154,7 @@ sparc-*-sunos4*) gdb_host=sun4os4 ;; sparc-*-sunos5*) gdb_host=sun4sol2 ;; sparc-*-*) gdb_host=sun4os4 ;; sparc64-*-linux*) gdb_host=linux ;; +sparcv9-*-* | \ sparc64-*-*) gdb_host=sun4sol2 ;; strongarm-*-*) gdb_host=arm ;; Index: gdb/configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.35 diff -u -p -r1.35 configure.tgt --- gdb/configure.tgt 2001/08/12 03:39:11 1.35 +++ gdb/configure.tgt 2001/11/18 03:52:47 @@ -293,6 +293,7 @@ sparc86x-*-*) gdb_target=sparclite ;; # deleted though presumably it should be eventually. #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; sparc64-*-linux*) gdb_target=sp64linux ;; +sparcv9-*-* | \ sparc64-*-*) gdb_target=sp64 ;; # OBSOLETE tic80-*-*) gdb_target=tic80 [-- Attachment #3: Type: text/plain, Size: 289 bytes --] -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist *Please* write to mailing lists, not to me ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help needed with sparc 2002-01-23 18:20 ` Help needed with sparc Alexandre Oliva @ 2002-01-23 18:26 ` Andrew Cagney 2002-01-23 18:48 ` Alexandre Oliva 2002-01-23 18:27 ` Michael Snyder 1 sibling, 1 reply; 5+ messages in thread From: Andrew Cagney @ 2002-01-23 18:26 UTC (permalink / raw) To: Alexandre Oliva; +Cc: Brad Lucier, jsturm, atpoquet, gcc, gdb-patches Yes, but with tweeks: > Index: gdb/configure.host > =================================================================== > RCS file: /cvs/src/src/gdb/configure.host,v > retrieving revision 1.23 > diff -u -p -r1.23 configure.host > --- gdb/configure.host 2001/07/10 20:41:54 1.23 > +++ gdb/configure.host 2001/11/18 03:52:47 > @@ -18,7 +18,7 @@ m68*) gdb_host_cpu=m68k ;; > m88*) gdb_host_cpu=m88k ;; > mips*) gdb_host_cpu=mips ;; > powerpc*) gdb_host_cpu=powerpc ;; > -sparc64) gdb_host_cpu=sparc ;; > +sparcv9|sparc64) gdb_host_cpu=sparc ;; > s390*) gdb_host_cpu=s390 ;; > *) gdb_host_cpu=$host_cpu ;; > > @@ -154,6 +154,7 @@ sparc-*-sunos4*) gdb_host=sun4os4 ;; > sparc-*-sunos5*) gdb_host=sun4sol2 ;; > sparc-*-*) gdb_host=sun4os4 ;; > sparc64-*-linux*) gdb_host=linux ;; > +sparcv9-*-* | \ > sparc64-*-*) gdb_host=sun4sol2 ;; sparc64-*-* | sparcv9-*-*) .... > strongarm-*-*) gdb_host=arm ;; > Index: gdb/configure.tgt > =================================================================== > RCS file: /cvs/src/src/gdb/configure.tgt,v > retrieving revision 1.35 > diff -u -p -r1.35 configure.tgt > --- gdb/configure.tgt 2001/08/12 03:39:11 1.35 > +++ gdb/configure.tgt 2001/11/18 03:52:47 > @@ -293,6 +293,7 @@ sparc86x-*-*) gdb_target=sparclite ;; > # deleted though presumably it should be eventually. > #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; > sparc64-*-linux*) gdb_target=sp64linux ;; > +sparcv9-*-* | \ > sparc64-*-*) gdb_target=sp64 ;; Ditto. > # OBSOLETE tic80-*-*) gdb_target=tic80 (the patch is very old) Andrew ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help needed with sparc 2002-01-23 18:26 ` Andrew Cagney @ 2002-01-23 18:48 ` Alexandre Oliva 0 siblings, 0 replies; 5+ messages in thread From: Alexandre Oliva @ 2002-01-23 18:48 UTC (permalink / raw) To: Andrew Cagney; +Cc: Brad Lucier, jsturm, atpoquet, gcc, gdb-patches [-- Attachment #1: Type: text/plain, Size: 300 bytes --] On Jan 24, 2002, Andrew Cagney <ac131313@cygnus.com> wrote: > Yes, but with tweeks: Thanks for the quick review, here's what I'm checking in. I was not sure whether you wanted blanks in the first hunk too, and since I couldn't find other occurrences without blanks, I went ahead and put them in. [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: gdb-sparcv9.patch --] [-- Type: text/x-patch, Size: 1685 bytes --] Index: gdb/ChangeLog from Alexandre Oliva <aoliva@redhat.com> * configure.host: Accept sparcv9 as alias for sparc64. * configure.tgt: Likewise. Index: gdb/configure.host =================================================================== RCS file: /cvs/src/src/gdb/configure.host,v retrieving revision 1.32 diff -u -p -r1.32 configure.host --- gdb/configure.host 2002/01/20 09:10:27 1.32 +++ gdb/configure.host 2002/01/24 02:45:12 @@ -18,7 +18,7 @@ m68*) gdb_host_cpu=m68k ;; m88*) gdb_host_cpu=m88k ;; mips*) gdb_host_cpu=mips ;; powerpc*) gdb_host_cpu=powerpc ;; -sparc64) gdb_host_cpu=sparc ;; +sparcv9 | sparc64) gdb_host_cpu=sparc ;; s390*) gdb_host_cpu=s390 ;; x86_64*) gdb_host_cpu=i386 ;; *) gdb_host_cpu=$host_cpu ;; @@ -145,7 +145,7 @@ sparc-*-sunos4*) gdb_host=sun4os4 ;; sparc-*-sunos5*) gdb_host=sun4sol2 ;; sparc-*-*) gdb_host=sun4os4 ;; sparc64-*-linux*) gdb_host=linux ;; -sparc64-*-*) gdb_host=sun4sol2 ;; +sparcv9-*-* | sparc64-*-*) gdb_host=sun4sol2 ;; strongarm-*-*) gdb_host=arm ;; xscale-*-*) gdb_host=arm ;; Index: gdb/configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.50 diff -u -p -r1.50 configure.tgt --- gdb/configure.tgt 2002/01/20 09:10:27 1.50 +++ gdb/configure.tgt 2002/01/24 02:45:13 @@ -278,7 +278,7 @@ sparc86x-*-*) gdb_target=sparclite ;; # deleted though presumably it should be eventually. #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; sparc64-*-linux*) gdb_target=sp64linux ;; -sparc64-*-*) gdb_target=sp64 ;; +sparcv9-*-* | sparc64-*-*) gdb_target=sp64 ;; xstormy16-*-*) gdb_target=xstormy16 ;; [-- Attachment #3: Type: text/plain, Size: 472 bytes --] > (the patch is very old) Yes, indeed. I wrote it long ago, but I guess I hadn't posted yet because I hadn't written a ChangeLog entry. Sorry that the first patch was missing it. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist *Please* write to mailing lists, not to me ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help needed with sparc 2002-01-23 18:20 ` Help needed with sparc Alexandre Oliva 2002-01-23 18:26 ` Andrew Cagney @ 2002-01-23 18:27 ` Michael Snyder 2002-01-23 18:39 ` Alexandre Oliva 1 sibling, 1 reply; 5+ messages in thread From: Michael Snyder @ 2002-01-23 18:27 UTC (permalink / raw) To: Alexandre Oliva; +Cc: Brad Lucier, jsturm, atpoquet, gcc, gdb-patches Alexandre Oliva wrote: > > On Jan 23, 2002, Brad Lucier <lucier@math.purdue.edu> wrote: > > > Re: > >> You must use a 64-bit gdb to debug 64-bit Solaris executables. > > > Which version of gdb? I got the following message when trying to > > configure 5.1: > > > env CC='cc -xildoff -xarch=v9' ./configure sparcv9-sun-solaris2.8 > > ... > > checking for X... libraries /pkgs/XFree86-3.3.3.1/lib, headers /pkgs/XFree86-3.3.3.1/include > > configure: error: *** Gdb does not support host sparcv9-sun-solaris2.8 > > gdb's configure recognizes sparc64-sun-solaris2.8, but not > sparcv9-sun-solaris2.8. Here's a patch that I've had for a while that > addresses this inconsistency in GDB WRT other packages. I'm not sure > I've posted it before. Ok to install? Inconsistency WRT other packages? The only configure script in which I can find the string "sparcv9" (and admitedly I've only searched the developer tools) is ld. But I don't have a problem with it... ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help needed with sparc 2002-01-23 18:27 ` Michael Snyder @ 2002-01-23 18:39 ` Alexandre Oliva 0 siblings, 0 replies; 5+ messages in thread From: Alexandre Oliva @ 2002-01-23 18:39 UTC (permalink / raw) To: Michael Snyder; +Cc: Brad Lucier, jsturm, atpoquet, gcc, gdb-patches On Jan 24, 2002, Michael Snyder <msnyder@redhat.com> wrote: > Inconsistency WRT other packages? The only configure script in > which I can find the string "sparcv9" (and admitedly I've only > searched the developer tools) is ld. Packages that don't care often match sparc*. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist *Please* write to mailing lists, not to me ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-01-24 2:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200201232315.g0NNFw309706@banach.math.purdue.edu>
2002-01-23 18:20 ` Help needed with sparc Alexandre Oliva
2002-01-23 18:26 ` Andrew Cagney
2002-01-23 18:48 ` Alexandre Oliva
2002-01-23 18:27 ` Michael Snyder
2002-01-23 18:39 ` Alexandre Oliva
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox