2001-02-20 Martin M. Hunt <hunt@redhat.com>
authorMartin Hunt <hunt@redhat.com>
Tue, 20 Feb 2001 18:07:17 +0000 (18:07 +0000)
committerMartin Hunt <hunt@redhat.com>
Tue, 20 Feb 2001 18:07:17 +0000 (18:07 +0000)
* solib.c (info_sharedlibrary_command): Don't assume pointers
are the same size of long, call longest_local_hex_string_custom().

gdb/ChangeLog
gdb/solib.c

index 57f844968fe6e9d9ccbe63f91abd4f46c936a410..2f007912f4890e3e2b7dfc135dc61ab2a51d7e1d 100644 (file)
@@ -1,5 +1,8 @@
 2001-02-20  Martin M. Hunt  <hunt@redhat.com>
 
+       * 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().
index 5fdb9a1d14857937923a44eef9557740d62ade89..07d72ec121e3cb5298553d5a05a9cb5a46c6b81e 100644 (file)
@@ -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");