aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-nat.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-03-03 22:38:38 +0000
committerJason Molenda <jmolenda@apple.com>1998-03-03 22:38:38 +0000
commit716e3a4f19379266610804523609c919d1e6b1d5 (patch)
treedd2a587cff6298c9d3c0a5f38331c859a53799d0 /gdb/alpha-nat.c
parentdd15abd5a64ab105f43da24c148bc54ba16514fc (diff)
downloadgdb-716e3a4f19379266610804523609c919d1e6b1d5.zip
gdb-716e3a4f19379266610804523609c919d1e6b1d5.tar.gz
gdb-716e3a4f19379266610804523609c919d1e6b1d5.tar.bz2
Tue Mar 3 14:37:02 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* alpha-nat.c (fetch_osf_core_registers): Renamed from fetch_aout_core_registers. (alpha_osf_core_fns): Renamed from alpha_aout_core_fns, change flavour to bfd_target_unknown_flavour for OSF core files.
Diffstat (limited to 'gdb/alpha-nat.c')
-rw-r--r--gdb/alpha-nat.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index 4da9cbe..609d687 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -1,5 +1,5 @@
/* Low level Alpha interface, for GDB when running native.
- Copyright 1993, 1995, 1996 Free Software Foundation, Inc.
+ Copyright 1993, 1995, 1996, 1998 Free Software Foundation, Inc.
This file is part of GDB.
@@ -30,7 +30,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#endif
#include <sys/user.h>
-static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+static void fetch_osf_core_registers PARAMS ((char *,
+ unsigned, int, CORE_ADDR));
+static void fetch_elf_core_registers PARAMS ((char *,
+ unsigned, int, CORE_ADDR));
/* Size of elements in jmpbuf */
@@ -81,7 +84,7 @@ get_longjmp_target (pc)
*/
static void
-fetch_aout_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
+fetch_osf_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
char *core_reg_sect;
unsigned core_reg_size;
int which;
@@ -268,10 +271,12 @@ fill_fpregset (fpregsetp, regno)
/* Register that we are able to handle alpha core file formats. */
-static struct core_fns alpha_aout_core_fns =
+static struct core_fns alpha_osf_core_fns =
{
- bfd_target_aout_flavour,
- fetch_aout_core_registers,
+ /* This really is bfd_target_unknown_flavour. */
+
+ bfd_target_unknown_flavour,
+ fetch_osf_core_registers,
NULL
};
@@ -285,6 +290,6 @@ static struct core_fns alpha_elf_core_fns =
void
_initialize_core_alpha ()
{
- add_core_fns (&alpha_aout_core_fns);
+ add_core_fns (&alpha_osf_core_fns);
add_core_fns (&alpha_elf_core_fns);
}