aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-01-21 22:23:27 +0000
committerDaniel Jacobowitz <drow@false.org>2006-01-21 22:23:27 +0000
commit84eb3c4faebe0d2443ef27e5f20b6464b9441ca5 (patch)
tree5ca2ca1accef214034d244ac7478b9c5c3a8244e /gdb/solib.c
parent839c27b7cf6bb1e49ed824ea028e07bdd8ba36bf (diff)
downloadgdb-84eb3c4faebe0d2443ef27e5f20b6464b9441ca5.zip
gdb-84eb3c4faebe0d2443ef27e5f20b6464b9441ca5.tar.gz
gdb-84eb3c4faebe0d2443ef27e5f20b6464b9441ca5.tar.bz2
* solib.c (info_sharedlibrary_command): Avoid internal_error.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index d21cf46..cd81274 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -698,16 +698,8 @@ info_sharedlibrary_command (char *ignore, int from_tty)
int header_done = 0;
int addr_width;
- if (TARGET_PTR_BIT == 32)
- addr_width = 8 + 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);
- }
+ /* "0x", a little whitespace, and two hex digits per byte of pointers. */
+ addr_width = 4 + (TARGET_PTR_BIT / 4);
update_solib_list (from_tty, 0);