diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f3a358e66a..b897516a7d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-12-15 Catalin Udma + + PR gdb/15684 + * memattr.c (mem_info_command): Remove "unsigned long" casts. + 2014-12-13 Doug Evans * utils.c (make_hex_string): Fix off-by-one error. diff --git a/gdb/memattr.c b/gdb/memattr.c index 25e455495e..9d2a2d452b 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -447,9 +447,9 @@ mem_info_command (char *args, int from_tty) m->number, m->enabled_p ? 'y' : 'n'); if (gdbarch_addr_bit (target_gdbarch ()) <= 32) - tmp = hex_string_custom ((unsigned long) m->lo, 8); + tmp = hex_string_custom (m->lo, 8); else - tmp = hex_string_custom ((unsigned long) m->lo, 16); + tmp = hex_string_custom (m->lo, 16); printf_filtered ("%s ", tmp); @@ -458,14 +458,14 @@ mem_info_command (char *args, int from_tty) if (m->hi == 0) tmp = "0x100000000"; else - tmp = hex_string_custom ((unsigned long) m->hi, 8); + tmp = hex_string_custom (m->hi, 8); } else { if (m->hi == 0) tmp = "0x10000000000000000"; else - tmp = hex_string_custom ((unsigned long) m->hi, 16); + tmp = hex_string_custom (m->hi, 16); } printf_filtered ("%s ", tmp);