Made changes to shared library support and added more of the support needed

for AIX/IA-64.
This commit is contained in:
Kevin Buettner
2001-02-22 03:01:27 +00:00
parent 33d01f331b
commit d7fa2ae254
15 changed files with 471 additions and 22 deletions

9
gdb/config/ia64/aix.mh Normal file
View File

@@ -0,0 +1,9 @@
# Host: Intel IA-64 running AIX
XM_FILE= xm-aix.h
XDEPFILES=
NAT_FILE= nm-aix.h
NATDEPFILES= corelow.o core-regset.o solib.o solib-aix5.o fork-child.o \
procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o \
ia64-aix-nat.o

4
gdb/config/ia64/aix.mt Normal file
View File

@@ -0,0 +1,4 @@
# Target: Intel IA-64 running AIX
TDEPFILES= ia64-tdep.o ia64-linux-tdep.o ia64-aix-tdep.o
TM_FILE= tm-aix.h

View File

@@ -1,5 +1,5 @@
# Target: Intel IA-64 running GNU/Linux
TDEPFILES= ia64-tdep.o ia64-linux-tdep.o solib.o solib-svr4.o
TDEPFILES= ia64-tdep.o ia64-aix-tdep.o ia64-linux-tdep.o solib.o solib-svr4.o
TM_FILE= tm-linux.h
GDBSERVER_DEPFILES= low-linux.o

34
gdb/config/ia64/nm-aix.h Normal file
View File

@@ -0,0 +1,34 @@
/* Native support for AIX, for GDB, the GNU debugger.
Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef NM_AIX_H
#define NM_AIX_H
#include "nm-sysv4.h"
#ifndef MONTEREY
#define MONTEREY 1
#endif
/* Type of the operation code for sending control messages to the
/proc/PID/ctl file */
#define PROC_CTL_WORD_TYPE int
#endif /* #ifndef NM_AIX_H */

32
gdb/config/ia64/tm-aix.h Normal file
View File

@@ -0,0 +1,32 @@
/* Definitions to target GDB to GNU/Linux on IA-64 running AIX.
Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef TM_AIX_H
#define TM_AIX_H
#include "ia64/tm-ia64.h"
#include "tm-sysv4.h"
#define TARGET_ELF64
extern int ia64_aix_in_sigtramp (CORE_ADDR pc, char *func_name);
#define IN_SIGTRAMP(pc,func_name) ia64_aix_in_sigtramp (pc, func_name)
#endif /* #ifndef TM_AIX_H */

33
gdb/config/ia64/xm-aix.h Normal file
View File

@@ -0,0 +1,33 @@
/* Native support for AIX, for GDB, the GNU debugger.
Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef XM_AIX_H
#define XM_AIX_H
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* Pick up more stuff from the generic SVR4 host include file. */
#include "xm-sysv4.h"
#define GDB_GREGSET_T prgregset_t
#define GDB_FPREGSET_T prfpregset_t
#endif /* #ifndef XM_AIX_H */