* remote.c (remote_write_bytes): Take a const buffer argument.
[deliverable/binutils-gdb.git] / gdb / i386obsd-nat.c
index b2cdc2a7e585afe9bf1995e8676518a40fb3fc15..6c7bd50a153008ac7a93f6962d433c541d7c1b6c 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for OpenBSD/i386.
-   Copyright 2002 Free Software Foundation, Inc.
+
+   Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301, USA.  */
 
 #include "defs.h"
 
 #include <sys/param.h>
 #include <sys/sysctl.h>
 
+#include "i386-tdep.h"
+
 /* Prevent warning from -Wmissing-prototypes.  */
 void _initialize_i386obsd_nat (void);
 
@@ -44,16 +47,13 @@ _initialize_i386obsd_nat (void)
     int mib[2];
     size_t len;
 
-    extern CORE_ADDR i386obsd_sigtramp_start;
-    extern CORE_ADDR i386obsd_sigtramp_end;
-
     mib[0] = CTL_VM;
     mib[1] = VM_PSSTRINGS;
     len = sizeof (_ps);
     if (sysctl (mib, 2, &_ps, &len, NULL, 0) == 0)
       {
-       i386obsd_sigtramp_start = (CORE_ADDR)_ps.val - 128;
-       i386obsd_sigtramp_end = (CORE_ADDR)_ps.val;
+       i386obsd_sigtramp_start_addr = (u_long) _ps.val - 128;
+       i386obsd_sigtramp_end_addr = (u_long) _ps.val;
       }
   }
 #endif
This page took 0.024487 seconds and 4 git commands to generate.