From a43ad351c8feab741f0f8228ce9699ac50387200 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Tue, 20 Feb 2001 18:07:17 +0000 Subject: [PATCH] 2001-02-20 Martin M. Hunt * solib.c (info_sharedlibrary_command): Don't assume pointers are the same size of long, call longest_local_hex_string_custom(). --- gdb/ChangeLog | 3 +++ gdb/solib.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 57f844968fe..2f007912f48 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2001-02-20 Martin M. Hunt + * solib.c (info_sharedlibrary_command): Don't assume pointers + are the same size of long, call longest_local_hex_string_custom(). + * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so extract_signed_integer() should be called instead of extract_address(). diff --git a/gdb/solib.c b/gdb/solib.c index 5fdb9a1d148..07d72ec121e 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -638,14 +638,14 @@ info_sharedlibrary_command (char *ignore, int from_tty) printf_unfiltered ("%-*s", addr_width, so->textsection != NULL - ? local_hex_string_custom ( - (unsigned long) so->textsection->addr, + ? longest_local_hex_string_custom ( + (LONGEST) so->textsection->addr, addr_fmt) : ""); printf_unfiltered ("%-*s", addr_width, so->textsection != NULL - ? local_hex_string_custom ( - (unsigned long) so->textsection->endaddr, + ? longest_local_hex_string_custom ( + (LONGEST) so->textsection->endaddr, addr_fmt) : ""); printf_unfiltered ("%-12s", so->symbols_loaded ? "Yes" : "No"); -- 2.30.2