* python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 Mar 2010 19:28:13 +0000 (19:28 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 Mar 2010 19:28:13 +0000 (19:28 +0000)
address as UnsignedLongLong, not LongLong.

gdb/ChangeLog
gdb/python/py-lazy-string.c

index e159d5512df716d205b86754a97466599f7d2075..16107074431d71ab633a735f6c78ea42b7ae5123 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
+       address as UnsignedLongLong, not LongLong.
+
 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
             Pedro Alves  <pedro@codesourcery.com>
 
index c8452735bb633664b1d55f0d827ea619349c65ac..8309527527da83767e0f4e00980de3863b17129d 100644 (file)
@@ -187,7 +187,7 @@ gdbpy_extract_lazy_string (PyObject *string, struct type **str_type,
     goto error;
 
   *length = PyLong_AsLong (py_len);
-  addr = PyLong_AsLongLong (py_addr);
+  addr = PyLong_AsUnsignedLongLong (py_addr);
 
   /* If the user supplies Py_None an encoding, set encoding to NULL.
      This will trigger the resulting LA_PRINT_CALL to automatically