2002-10-11 Martin M. Hunt <hunt@redhat.com>
authorMartin Hunt <hunt@redhat.com>
Fri, 11 Oct 2002 17:50:10 +0000 (17:50 +0000)
committerMartin Hunt <hunt@redhat.com>
Fri, 11 Oct 2002 17:50:10 +0000 (17:50 +0000)
* utils.c (string_to_core_addr): After turning string into
a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
which will do necessary sign-extension, etc.

gdb/ChangeLog
gdb/utils.c

index 77b5fb20c1f65c43d34829a574f96b04779e3ee2..8a7710991a02856e5ded408d054b98bc6da57b2c 100644 (file)
@@ -1,3 +1,9 @@
+2002-10-11  Martin M. Hunt  <hunt@redhat.com>
+
+       * utils.c (string_to_core_addr): After turning string into
+       a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
+       which will do necessary sign-extension, etc.
+
 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
 
        * c-exp.y (THIS): Delete token and grammar rule.
index 9aab625f63cf51fb20ab30e016a4001bec57a06b..d1b4c994570486f92b5d59aeb009bf3674189168 100644 (file)
@@ -2649,6 +2649,8 @@ string_to_core_addr (const char *my_string)
            internal_error (__FILE__, __LINE__, "invalid decimal");
        }
     }
+  if (INTEGER_TO_ADDRESS_P ())
+    addr = INTEGER_TO_ADDRESS (builtin_type_void_data_ptr, &addr); 
   return addr;
 }
 
This page took 0.030754 seconds and 4 git commands to generate.