From: Fred Fish Date: Sat, 9 Nov 1991 21:43:47 +0000 (+0000) Subject: Re-enable compilation of register_addr() stub whenever it is not supplied X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8aca810c2a3ace1b5dc799f86216a8e011f27f04;p=binutils-gdb.git Re-enable compilation of register_addr() stub whenever it is not supplied by coredep.c, since it is referenced by fetch_core_registers(). This is still a temporary kludge. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 91a0f8e6610..028a81b3585 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 9 13:37:57 1991 Fred Fish (fnf at cygnus.com) + + * elfread.c: Re-enable compilation of register_addr() stub + whenever it is not supplied by coredep.c + Sat Nov 9 00:40:32 1991 John Gilmore (gnu at cygnus.com) Add tracking of object files (that contain symbols) to gdb. diff --git a/gdb/elfread.c b/gdb/elfread.c index c99bfc4dbc3..b442e65ca62 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -63,9 +63,12 @@ struct elfinfo { unsigned int lnsize; /* Size of dwarf line number section */ }; -#if 0 -/* FIXME - crude hack to resolve undefined global. This function is - part of support for corefiles, which is not yet implemented. */ +#ifndef REGISTER_U_ADDR + +/* FIXME - crude hack to resolve undefined global. If REGISTER_U_ADDR + is defined, this function gets compiled into coredep.c. If not, + it is left unresolved, so we need to resolve it until corefile + support for ELF corefiles is finished. */ unsigned int DEFUN(register_addr, (regno, blockend), @@ -74,6 +77,7 @@ DEFUN(register_addr, (regno, blockend), { error ("Fetching registers from corefiles unimplemented."); } + #endif /* We are called once per section from elf_symfile_read. We