Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@wins.uva.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Move KERNEL_U_ADDR from i386/xm-linux.h to i386/nm-linux.h
Date: Sat, 14 Jul 2001 04:58:00 -0000	[thread overview]
Message-ID: <200107141158.f6EBw3c03609@delius.kettenis.local> (raw)

KERNEL_U_ADDR certainly doesn't belong in xm-linux.h.

Comitted.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
	* config/i386/nm-linux.h: ...to here.  Change comments about user
	area/struct a bit.

Index: config/i386/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-linux.h,v
retrieving revision 1.12
diff -u -p -r1.12 nm-linux.h
--- config/i386/nm-linux.h 2001/07/13 05:19:30 1.12
+++ config/i386/nm-linux.h 2001/07/14 11:54:08
@@ -29,18 +29,23 @@
 #include "i386/nm-i386.h"
 #include "nm-linux.h"
 
-/* Return sizeof user struct to callers in less machine dependent
-   routines.  */
+/* Support for the user area.  */
 
+/* Return the size of the user struct.  */
 extern int kernel_u_size (void);
 #define KERNEL_U_SIZE kernel_u_size()
 
+/* This is the amount to substract from u.u_ar0 to get the offset in
+   the core file of the register values.  */
+#define KERNEL_U_ADDR 0
+
+/* Offset of the registers within the user area.  */
 #define U_REGS_OFFSET 0
 
 extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regnum);
 #define REGISTER_U_ADDR(addr, blockend, regnum) \
   (addr) = register_u_addr (blockend, regnum)
-
+\f
 /* Provide access to the i386 hardware debugging registers.  */
 
 extern void i386_linux_dr_set_control (unsigned long control);
Index: config/i386/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-linux.h,v
retrieving revision 1.5
diff -u -p -r1.5 xm-linux.h
--- config/i386/xm-linux.h 2001/07/14 11:12:52 1.5
+++ config/i386/xm-linux.h 2001/07/14 11:54:08
@@ -26,10 +26,6 @@
 
 #define HOST_LONG_DOUBLE_FORMAT &floatformat_i387_ext
 
-/* This is the amount to subtract from u.u_ar0
-   to get the offset in the core file of the register values.  */
-#define KERNEL_U_ADDR 0x0
-
 #define NEED_POSIX_SETPGID
 
 /* Need R_OK etc, but USG isn't defined.  */


                 reply	other threads:[~2001-07-14  4:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200107141158.f6EBw3c03609@delius.kettenis.local \
    --to=kettenis@wins.uva.nl \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox