aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorWeimin Pan <weimin.pan@oracle.com>2017-08-25 19:33:25 -0500
committerPedro Alves <palves@redhat.com>2017-08-31 10:07:17 +0200
commit654670a4f0928e3eddc6395d6804deb2e61a0614 (patch)
tree189acc6ae9d307b8d7cbfeda6c6643328af8d271 /gdb/ChangeLog
parentaf471f828cc74d65b50a7531ba2c69522266cfe9 (diff)
downloadgdb-654670a4f0928e3eddc6395d6804deb2e61a0614.zip
gdb-654670a4f0928e3eddc6395d6804deb2e61a0614.tar.gz
gdb-654670a4f0928e3eddc6395d6804deb2e61a0614.tar.bz2
Unbreak gdb build on 32-bit host with ADI support
The problem of failing to build with arm-linux-gnueabihf-g++-4.8 was that type CORE_ADDR is of "unsigned long" on a 64-bit machine so it's OK to use %lx but is of type "unsigned long long" on a 32 bit system. Fixed the problem in three places - (1) use a temp variable of type CORE_ADDR as argument 3 when calling target_auxv_search() then assign its value to "blksize" and "nbits" in 2 calls; (2) redo adi_normalize_address() using masks and xor operators to calculate normalized address; (3) call paddress() to print CORE_ADDR in either printf_filtered() or error(). Thank you, Pedro, for all your suggestions. gdb/ChangeLog: 2017-08-31 Weimin Pan <weimin.pan@oracle.com> * sparc64-tdep.c (adi_stat_t): Fix comment formatting. (adi_available): Use a temp variable of type CORE_ADDR as argument 3 when calling target_auxv_search. (adi_normalize_address): Use masks and xor operators to calculate normalized address. (adi_read_versions, adi_write_versions, adi_print_versions) (do_examine, do_assign): Use paddress.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5559bc2..1d50e2c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2017-08-31 Weimin Pan <weimin.pan@oracle.com>
+
+ * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
+ (adi_available): Use a temp variable of type CORE_ADDR as argument
+ 3 when calling target_auxv_search.
+ (adi_normalize_address): Use masks and xor operators to calculate
+ normalized address.
+ (adi_read_versions, adi_write_versions, adi_print_versions)
+ (do_examine, do_assign): Use paddress.
+
2017-08-29 John Baldwin <jhb@FreeBSD.org>
* mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.