* solib.c (info_sharedlibrary_command): Avoid internal_error.
This commit is contained in:
parent
839c27b7cf
commit
84eb3c4fae
@ -1,3 +1,7 @@
|
|||||||
|
2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* solib.c (info_sharedlibrary_command): Avoid internal_error.
|
||||||
|
|
||||||
2006-01-21 Mark Kettenis <kettenis@gnu.org>
|
2006-01-21 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* i386-tdep.c (i386_mxcsr_type): New variable.
|
* i386-tdep.c (i386_mxcsr_type): New variable.
|
||||||
|
12
gdb/solib.c
12
gdb/solib.c
@ -698,16 +698,8 @@ info_sharedlibrary_command (char *ignore, int from_tty)
|
|||||||
int header_done = 0;
|
int header_done = 0;
|
||||||
int addr_width;
|
int addr_width;
|
||||||
|
|
||||||
if (TARGET_PTR_BIT == 32)
|
/* "0x", a little whitespace, and two hex digits per byte of pointers. */
|
||||||
addr_width = 8 + 4;
|
addr_width = 4 + (TARGET_PTR_BIT / 4);
|
||||||
else if (TARGET_PTR_BIT == 64)
|
|
||||||
addr_width = 16 + 4;
|
|
||||||
else
|
|
||||||
{
|
|
||||||
internal_error (__FILE__, __LINE__,
|
|
||||||
_("TARGET_PTR_BIT returned unknown size %d"),
|
|
||||||
TARGET_PTR_BIT);
|
|
||||||
}
|
|
||||||
|
|
||||||
update_solib_list (from_tty, 0);
|
update_solib_list (from_tty, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user