From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin M. Hunt" To: Subject: [RFA] info_sharedlibrary_command patch Date: Mon, 19 Feb 2001 16:52:00 -0000 Message-id: X-SW-Source: 2001-02/msg00395.html info_sharedlibrary_command() currently casts all addresses to long before printing them. Obviously this fails if pointers are larger than longs. 2001-02-19 Martin M. Hunt * solib.c (info_sharedlibrary_command): Don't assume pointers are the same size of long, call longest_local_hex_string_custom(). Index: solib.c =================================================================== RCS file: /cvs/src/src/gdb/solib.c,v retrieving revision 1.34 diff -u -p -r1.34 solib.c --- solib.c 2001/02/19 11:47:16 1.34 +++ solib.c 2001/02/20 00:19:51 @@ -638,14 +638,14 @@ info_sharedlibrary_command (char *ignore 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");