This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: GDB 5.0 won't build on GNU/Linux/sparc
- To: Alexandre Oliva <aoliva at cygnus dot com>
- Subject: Re: GDB 5.0 won't build on GNU/Linux/sparc
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 21 May 2000 10:29:19 +1000
- CC: gdb-patches at sourceware dot cygnus dot com, Kevin Buettner <kevinb at cygnus dot com>
- Organization: Cygnus Solutions
- References: <oraehlelgf.fsf@tamanduatei.dcc.unicamp.br>
Alexandre Oliva wrote:
>
> gdb/sparc-tdep.c contains code in supply_gregset() and fill_gregset()
> that will only compile on Solaris/sparc. glibc doesn't define
> prgreg_t, R_I7, R_PS, R_PC, R_nPC nor R_Y. In fact, registers from i0
> to i7 aren't even available in glibc's gregset. The solution is to
> disable USE_PROC_FS, which can be accomplished by #including the
> generic config/nm-linux.h from config/sparc/nm-linux.h, as all other
> architecture-specific `nm-linux.h's do (actually, it's also missing
> from config/powerpc/nm-linux.h). Unfortunately, I don't have access to a
> GNU/Linux/powerpc platform to test the second change. On
> GNU/Linux/sparc, it builds correctly, but it still doesn't work :-(
> child_resume is called with step==1, and aborts because
> SOFTWARE_SINGLE_STEP_P is also 1. I'm investigating. Meanwhile, ok
> to install? Release branch?
Just the Linux/SPARC part of this patch is approved for the 5.0 branch.
It's up to Kevin Buettner decide what to do with the ppc part (w.r.t
5.0).
Thanks!
Andrew