* utils.c (host_pointer_to_address, address_to_host_pointer):
authorKevin Buettner <kevinb@redhat.com>
Sat, 27 Jul 2002 02:03:45 +0000 (02:03 +0000)
committerKevin Buettner <kevinb@redhat.com>
Sat, 27 Jul 2002 02:03:45 +0000 (02:03 +0000)
Change internal_error() message to indicate function responsible
for the error.

gdb/ChangeLog
gdb/utils.c

index 88b6573fe2d1f6fe477b1dd5cec0ea7abaa188a8..2ff1169c5f2d7536c91145750f346ea1f4514dcd 100644 (file)
@@ -1,3 +1,9 @@
+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
index b2d9ecafdb3a2135c53522ac8cf8d757720fb640..50cab720602ff4476211725b8293cae955cce5fb 100644 (file)
@@ -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;
 }