X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fi386obsd-nat.c;h=6c7bd50a153008ac7a93f6962d433c541d7c1b6c;hb=a783673bd6247d3fcbf2cfe54fe7574d36b97691;hp=17ef922b82a04eae1e2ab0487ce57d8f29c45a53;hpb=e5e4acad5bfb2b27319f31ed99d8fea050040eb0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/i386obsd-nat.c b/gdb/i386obsd-nat.c index 17ef922b82..6c7bd50a15 100644 --- a/gdb/i386obsd-nat.c +++ b/gdb/i386obsd-nat.c @@ -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. @@ -15,14 +16,16 @@ 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 #include +#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 i386nbsd_sigtramp_start; - extern CORE_ADDR i386nbsd_sigtramp_end; - mib[0] = CTL_VM; mib[1] = VM_PSSTRINGS; len = sizeof (_ps); if (sysctl (mib, 2, &_ps, &len, NULL, 0) == 0) { - i386nbsd_sigtramp_start = (CORE_ADDR)_ps.val - 128; - i386nbsd_sigtramp_end = (CORE_ADDR)_ps.val; + i386obsd_sigtramp_start_addr = (u_long) _ps.val - 128; + i386obsd_sigtramp_end_addr = (u_long) _ps.val; } } #endif