diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-01-21 22:23:27 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-01-21 22:23:27 +0000 |
commit | 1a6ed454ee8dfe44332dab88841d18fb1a5f8d28 (patch) | |
tree | 2d3ef57c183e01deba67d91cb0edfd101f3b7378 /gdb/solib.c | |
parent | a8a100ea6a7a876e652479d6b7a8b0f2e53931c7 (diff) | |
download | gdb-1a6ed454ee8dfe44332dab88841d18fb1a5f8d28.tar.gz |
* solib.c (info_sharedlibrary_command): Avoid internal_error.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index d21cf4611af..cd81274c9d8 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); |