This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
PATCH corefiles reading on alpha-linux
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: PATCH corefiles reading on alpha-linux
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Thu, 2 Mar 2000 18:18:27 -0500 (EST)
gdb/config/alpha/alpha-linux.mh lists core-regset.o as one of
the NATDEPFILES.
This causes _initialize_core_regset() to be called, and this in turn
calls add_core_fns with bfd_target_elf_flavour.
Later on, _initialize_core_alpha() adds another core function
structure with the same flavour. When a core file is loaded, this
causes a warning to be printed, because both function sets match the
expected bfd flavour.
I am going to check this in. OK?
Elena
Index: alpha-linux.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/alpha-linux.mh,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 alpha-linux.mh
*** alpha-linux.mh 1999/12/22 21:45:12 1.1.1.3
--- alpha-linux.mh 2000/03/02 23:15:59
***************
*** 2,8 ****
XDEPFILES= ser-tcp.o
XM_FILE= xm-alphalinux.h
NAT_FILE= nm-linux.h
! NATDEPFILES= infptrace.o inftarg.o corelow.o core-regset.o alpha-nat.o \
fork-child.o solib.o linux-thread.o lin-thread.o
LOADLIBES = -ldl -rdynamic
--- 2,8 ----
XDEPFILES= ser-tcp.o
XM_FILE= xm-alphalinux.h
NAT_FILE= nm-linux.h
! NATDEPFILES= infptrace.o inftarg.o corelow.o alpha-nat.o \
fork-child.o solib.o linux-thread.o lin-thread.o
LOADLIBES = -ldl -rdynamic
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.95
diff -c -r1.95 ChangeLog
*** ChangeLog 2000/03/02 15:44:27 1.95
--- ChangeLog 2000/03/02 23:17:32
***************
*** 1,3 ****
--- 1,8 ----
+ 2000-03-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
+
+ * config/alpha/alpha-linux.mh: Remove core-regset.o fron the
+ NATDEPFILES list.
+