From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18769 invoked by alias); 17 Mar 2005 16:06:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18565 invoked from network); 17 Mar 2005 16:06:21 -0000 Received: from unknown (HELO netlx010.civ.utwente.nl) (130.89.1.92) by sourceware.org with SMTP; 17 Mar 2005 16:06:21 -0000 Received: from weblx058.utsp.utwente.nl (weblx058.utsp.utwente.nl [130.89.1.228]) by netlx010.civ.utwente.nl (8.11.7/HKD) with SMTP id j2HFxf615724; Thu, 17 Mar 2005 16:59:41 +0100 From: "M.M. Kettenis" Subject: Re: gdb and gdbserver support for MIPS NPTL MIME-Version: 1.0 Message-Id: <7320225758197692@weblx058.utsp.utwente.nl> Date: Thu, 17 Mar 2005 16:06:00 -0000 To: Daniel Jacobowitz , gdb-patches@sources.redhat.com In-reply-to: <20050317152208.GA31661@nevyn.them.org> Content-Description: Message body Content-Type: text/plain; charset="US-ASCII"; format=flowed Content-Transfer-Encoding: Quoted-Printable X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-MailScanner-From: m.m.kettenis@alumnus.utwente.nl X-SW-Source: 2005-03/txt/msg00227.txt.bz2 Daniel Jacobowitz wrote: > This patch provides ps_get_thread_area for both mips-linux-gdb and > mips-linux gdbserver. I haven't checked it in yet, because the > corresponding kernel changes and glibc changes are still pending; I'll ch= eck > it in when they've been approved. Just wanted to get it off my hard driv= e. The code include that should be avoided if possible. Is it still possible to change your glibc patches such that you can avoid it? > Index: gdb/gdb/gdbserver/linux-mips-low.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- gdb.orig/gdb/gdbserver/linux-mips-low.c 2002-06-11 13:32:39.000000000= -0400 > +++ gdb/gdb/gdbserver/linux-mips-low.c 2005-02-13 21:59:15.000000000 -0500 > @@ -22,6 +22,26 @@ > #include "server.h" > #include "linux-low.h" > > +#include > + > +/* Correct for all GNU/Linux targets (for quite some time). */ > +#define GDB_GREGSET_T elf_gregset_t > +#define GDB_FPREGSET_T elf_fpregset_t > + > +#ifndef HAVE_ELF_FPREGSET_T > +/* Make sure we have said types. Not all platforms bring in > + via . */ > +#ifdef HAVE_LINUX_ELF_H > +#include > +#endif > +#endif > +