This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFA] Add rs6000-core.c/.o to the list of optional backend files...
- From: Joel Brobecker <brobecker at adacore dot com>
- To: binutils at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Wed, 24 Nov 2010 15:51:45 -0800
- Subject: [RFA] Add rs6000-core.c/.o to the list of optional backend files...
I just spent a couple of hours trying to figure out why my debugger
would no longer load core files properly on powerpc-aix. I had just
updated the sources and done a rebuild.
It turns out that there was a change in struct bfd_section since the
last time I did an update, and that change affects rs6000-core.c.
So that file should have been recompiled, but it did not, leading
rs6000-core to have a different view of that structure than the
rest of the BFD world. This in turn caused rs6000-core to store
the section file offset at the wrong location in the struct. We then
ended up loading the section from the wrong location in the core file,
etc...
This makes sure that rs6000-core.c gets recompiled whenever any of its
dependencies get changed. I am not very familiar with automake, but
it seemed to have done the trick.
bfd/ChangeLog:
* Makefile.am (OPTIONAL_BACKENDS): Add rs6000-core.lo.
(OPTIONAL_BACKENDS_CFILES): Add rs6000-core.c.
* Makefile.in: Regenerate.
I tested this on x86_64-linux by rebuilding BFD and GDB. I think that
the most important part is to verify that the generated Makefile.in
not has the include of rs6000-core.Plo.
OK to commit?
---
bfd/Makefile.am | 2 ++
bfd/Makefile.in | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 03c5fc7..da14d57 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -651,6 +651,7 @@ OPTIONAL_BACKENDS = \
irix-core.lo \
lynx-core.lo \
osf-core.lo \
+ rs6000-core.lo \
sco5-core.lo \
trad-core.lo
@@ -661,6 +662,7 @@ OPTIONAL_BACKENDS_CFILES = \
irix-core.c \
lynx-core.c \
osf-core.c \
+ rs6000-core.c \
sco5-core.c \
trad-core.c
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 7d3dfab..c452dd7 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -950,6 +950,7 @@ OPTIONAL_BACKENDS = \
irix-core.lo \
lynx-core.lo \
osf-core.lo \
+ rs6000-core.lo \
sco5-core.lo \
trad-core.lo
@@ -960,6 +961,7 @@ OPTIONAL_BACKENDS_CFILES = \
irix-core.c \
lynx-core.c \
osf-core.c \
+ rs6000-core.c \
sco5-core.c \
trad-core.c
@@ -1460,6 +1462,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reloc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reloc16.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/riscix.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rs6000-core.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sco5-core.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/section.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple.Plo@am__quote@
--
1.7.1