/* Target-dependent code for FreeBSD/i386.
- Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2003-2014 Free Software Foundation, Inc.
This file is part of GDB.
#include "osabi.h"
#include "regcache.h"
-#include "gdb_assert.h"
-
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "bsd-uthread.h"
+#include "fbsd-tdep.h"
#include "solib-svr4.h"
/* FreeBSD 3.0-RELEASE or later. */
i386fbsd_supply_uthread (struct regcache *regcache,
int regnum, CORE_ADDR addr)
{
- char buf[4];
+ gdb_byte buf[4];
int i;
gdb_assert (regnum >= -1);
i386fbsd_collect_uthread (const struct regcache *regcache,
int regnum, CORE_ADDR addr)
{
- char buf[4];
+ gdb_byte buf[4];
int i;
gdb_assert (regnum >= -1);
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ /* Generic FreeBSD support. */
+ fbsd_init_abi (info, gdbarch);
+
/* Inherit stuff from older releases. We assume that FreeBSD
4.0-RELEASE always uses ELF. */
i386fbsd_init_abi (info, gdbarch);