]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 Mar 2010 19:31:08 +0000 (19:31 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 Mar 2010 19:31:08 +0000 (19:31 +0000)
address as UnsignedLongLong, not LongLong.

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

index 89fa1c2701398a5c6af6da022a97e519ad38cce7..ba8f337a83cf3e26a118fc296d317398a87e1c4f 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-04  Tom Tromey  <tromey@redhat.com>
 
        * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
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