This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] hppa target cross-build fixes
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 13 May 2007 15:04:32 +0200 (CEST)
- Subject: [commit] hppa target cross-build fixes
Hello,
attempting to cross-build the hppa targets I ran into a number of build
problems. Fixed by the attached patch.
Tested by building the modified source files. Committed to mainline.
Bye,
Ulrich
ChangeLog:
* hppa-hpux-tdep.c: Include "regcache.h".
* hppa-linux-tdep.c: Likewise.
* hppa-tdep.c: Include "gdb_stdint.h".
(find_unwind_entry): Cast host pointer to uintptr_t before passing
it to paddr_nz.
* Makefile.in: Update dependencies.
diff -urNp gdb-orig/gdb/hppa-hpux-tdep.c gdb-head/gdb/hppa-hpux-tdep.c
--- gdb-orig/gdb/hppa-hpux-tdep.c 2007-05-09 19:50:42.000000000 +0200
+++ gdb-head/gdb/hppa-hpux-tdep.c 2007-05-13 14:52:53.279392239 +0200
@@ -35,6 +35,7 @@
#include "solib-som.h"
#include "solib-pa64.h"
#include "regset.h"
+#include "regcache.h"
#include "exceptions.h"
#include "gdb_string.h"
diff -urNp gdb-orig/gdb/hppa-linux-tdep.c gdb-head/gdb/hppa-linux-tdep.c
--- gdb-orig/gdb/hppa-linux-tdep.c 2007-05-09 19:50:42.000000000 +0200
+++ gdb-head/gdb/hppa-linux-tdep.c 2007-05-13 14:52:29.509225537 +0200
@@ -31,6 +31,7 @@
#include "dwarf2-frame.h"
#include "value.h"
#include "regset.h"
+#include "regcache.h"
#include "hppa-tdep.h"
#include "elf/common.h"
diff -urNp gdb-orig/gdb/hppa-tdep.c gdb-head/gdb/hppa-tdep.c
--- gdb-orig/gdb/hppa-tdep.c 2007-05-09 19:50:42.000000000 +0200
+++ gdb-head/gdb/hppa-tdep.c 2007-05-13 14:53:44.479729918 +0200
@@ -31,6 +31,7 @@
#include "completer.h"
#include "osabi.h"
#include "gdb_assert.h"
+#include "gdb_stdint.h"
#include "arch-utils.h"
/* For argument passing to the inferior */
#include "symtab.h"
@@ -502,7 +503,7 @@ find_unwind_entry (CORE_ADDR pc)
{
if (hppa_debug)
fprintf_unfiltered (gdb_stdlog, "0x%s (cached) }\n",
- paddr_nz ((CORE_ADDR) ui->cache));
+ paddr_nz ((uintptr_t) ui->cache));
return ui->cache;
}
@@ -520,7 +521,7 @@ find_unwind_entry (CORE_ADDR pc)
ui->cache = &ui->table[middle];
if (hppa_debug)
fprintf_unfiltered (gdb_stdlog, "0x%s }\n",
- paddr_nz ((CORE_ADDR) ui->cache));
+ paddr_nz ((uintptr_t) ui->cache));
return &ui->table[middle];
}
diff -urNp gdb-orig/gdb/Makefile.in gdb-head/gdb/Makefile.in
--- gdb-orig/gdb/Makefile.in 2007-05-11 21:57:52.000000000 +0200
+++ gdb-head/gdb/Makefile.in 2007-05-13 14:57:51.677748854 +0200
@@ -2065,19 +2065,19 @@ hppa-hpux-tdep.o: hppa-hpux-tdep.c $(def
$(osabi_h) $(frame_h) $(frame_unwind_h) $(trad_frame_h) $(symtab_h) \
$(objfiles_h) $(inferior_h) $(infcall_h) $(observer_h) \
$(hppa_tdep_h) $(solib_som_h) $(solib_pa64_h) $(regset_h) \
- $(exceptions_h) $(gdb_string_h)
+ $(regcache_h) $(exceptions_h) $(gdb_string_h)
hppa-linux-nat.o: hppa-linux-nat.c $(defs_h) $(gdbcore_h) $(regcache_h) \
$(gdb_string_h) $(inferior_h) $(hppa_tdep_h) $(gregset_h) \
$(target_h) $(linux_nat_h)
hppa-linux-tdep.o: hppa-linux-tdep.c $(defs_h) $(gdbcore_h) $(osabi_h) \
$(target_h) $(objfiles_h) $(solib_svr4_h) $(glibc_tdep_h) \
$(frame_unwind_h) $(trad_frame_h) $(dwarf2_frame_h) $(value_h) \
- $(hppa_tdep_h) $(elf_common_h) $(regset_h)
+ $(hppa_tdep_h) $(elf_common_h) $(regset_h) $(regcache_h)
hppa-tdep.o: hppa-tdep.c $(defs_h) $(bfd_h) $(inferior_h) $(regcache_h) \
- $(completer_h) $(osabi_h) $(gdb_assert_h) $(arch_utils_h) \
- $(symtab_h) $(dis_asm_h) $(trad_frame_h) $(frame_unwind_h) \
- $(frame_base_h) $(gdbcore_h) $(gdbcmd_h) $(objfiles_h) \
- $(hppa_tdep_h) $(gdbtypes_h)
+ $(completer_h) $(osabi_h) $(gdb_assert_h) $(gdb_stdint_h) \
+ $(arch_utils_h) $(symtab_h) $(dis_asm_h) $(trad_frame_h) \
+ $(frame_unwind_h) $(frame_base_h) $(gdbcore_h) $(gdbcmd_h) \
+ $(objfiles_h) $(hppa_tdep_h) $(gdbtypes_h)
hpux-thread.o: hpux-thread.c $(defs_h) $(gdbthread_h) $(target_h) \
$(inferior_h) $(regcache_h) $(gdb_stat_h) $(gdbcore_h) \
$(hppa_tdep_h) $(observer_h)
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com