X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fi386aix-nat.c;h=6bf3d69c5f27126e77b900a81f8708c4859cc414;hb=d14573e31eb6c22006d00de0be5336cfbc69257a;hp=15e02b0fb401b6e0125a74a77a077050c1f85649;hpb=dfd4c728fa4aad5c2975966d280d3ae976dce121;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/i386aix-nat.c b/gdb/i386aix-nat.c index 15e02b0fb4..6bf3d69c5f 100644 --- a/gdb/i386aix-nat.c +++ b/gdb/i386aix-nat.c @@ -15,7 +15,7 @@ GNU General Public License for more details. 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "defs.h" #include "frame.h" @@ -35,7 +35,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include -#include +#include "gdb_stat.h" #include #include @@ -47,11 +47,12 @@ extern int errno; #include #endif -#include "ieee-float.h" +#include "floatformat.h" #include "target.h" -extern struct ext_format ext_format_i387; +static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR)); + /* this table must line up with REGISTER_NAMES in tm-i386v.h */ /* symbols like 'EAX' come from */ @@ -313,12 +314,12 @@ static int core_regmap[] = CD_DS, CD_ES, CD_FS, CD_GS, }; -void +static void fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr) char *core_reg_sect; unsigned core_reg_size; int which; - unsigned int reg_addr; /* ignored */ + CORE_ADDR reg_addr; /* ignored */ { if (which == 0) @@ -342,3 +343,20 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr) fprintf_unfiltered (gdb_stderr, "Couldn't read float regs from core file\n"); } } + + +/* Register that we are able to handle i386aix core file formats. + FIXME: is this really bfd_target_unknown_flavour? */ + +static struct core_fns i386aix_core_fns = +{ + bfd_target_unknown_flavour, + fetch_core_registers, + NULL +}; + +void +_initialize_core_i386aix () +{ + add_core_fns (&i386aix_core_fns); +}