Re: [RFA] Remove REALTIME_HI/LO macros from target headers

Ulrich Weigand
2006-11-28T19:50:05Z

Daniel Jacobowitz wrote:
> On Tue, Nov 28, 2006 at 08:39:44PM +0100, Ulrich Weigand wrote:
> > Here's the follow-on patch to remove the definition from nm-linux.h
> > as well; tested on s390-ibm-linux and s390x-ibm-linux. OK?
>
> OK. I suspect a lot of the rest of nm-linux.h is obsolete too...

Committed, thanks.

Actually, it looks like just those two lines are obsolete:

struct target_ops;
#undef USE_PROC_FS

To get rid of this:

extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose);
#define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose))

extern void lin_thread_get_thread_signals (sigset_t *mask);
#define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)

would require to find some better way for linux-thread-db.c
and linux-nat.c to talk to each other, and to get rid of this:

/* Use elf_gregset_t and elf_fpregset_t, rather than
gregset_t and fpregset_t. */

#define GDB_GREGSET_T elf_gregset_t
#define GDB_FPREGSET_T elf_fpregset_t

would probably require some autoconf magic.

Bye,