aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-07-27 02:03:45 +0000
committerKevin Buettner <kevinb@redhat.com>2002-07-27 02:03:45 +0000
commit790c9cf0393e9f29eb9c581e6521815035af74d4 (patch)
tree7ef954c186f602ad2788c94038c099dcbe4ca736 /gdb
parent9647fa4995eeedb1bb8f77048110871213170747 (diff)
downloadgdb-790c9cf0393e9f29eb9c581e6521815035af74d4.zip
gdb-790c9cf0393e9f29eb9c581e6521815035af74d4.tar.gz
gdb-790c9cf0393e9f29eb9c581e6521815035af74d4.tar.bz2
* utils.c (host_pointer_to_address, address_to_host_pointer):
Change internal_error() message to indicate function responsible for the error.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/utils.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 88b6573..2ff1169 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2002-07-26 Kevin Buettner <kevinb@redhat.com>
+ * utils.c (host_pointer_to_address, address_to_host_pointer):
+ Change internal_error() message to indicate function responsible
+ for the error.
+
+2002-07-26 Kevin Buettner <kevinb@redhat.com>
+
* ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
calls to local_hex_string_custom().
diff --git a/gdb/utils.c b/gdb/utils.c
index b2d9eca..50cab72 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -2464,7 +2464,7 @@ host_pointer_to_address (void *ptr)
{
if (sizeof (ptr) != TYPE_LENGTH (builtin_type_void_data_ptr))
internal_error (__FILE__, __LINE__,
- "core_addr_to_void_ptr: bad cast");
+ "host_pointer_to_address: bad cast");
return POINTER_TO_ADDRESS (builtin_type_void_data_ptr, &ptr);
}
@@ -2474,7 +2474,7 @@ address_to_host_pointer (CORE_ADDR addr)
void *ptr;
if (sizeof (ptr) != TYPE_LENGTH (builtin_type_void_data_ptr))
internal_error (__FILE__, __LINE__,
- "core_addr_to_void_ptr: bad cast");
+ "address_to_host_pointer: bad cast");
ADDRESS_TO_POINTER (builtin_type_void_data_ptr, &ptr, addr);
return ptr;
}