aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-03-05 19:28:13 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-03-05 19:28:13 +0000
commitaab48ede0952a825edc78bef75200680466cb5dd (patch)
tree9ba277b9db8086e64c3e673eacd01700c011934a
parent8eeafb51abfec5e184ac86ddcd402cc3676afab0 (diff)
downloadgdb-aab48ede0952a825edc78bef75200680466cb5dd.zip
gdb-aab48ede0952a825edc78bef75200680466cb5dd.tar.gz
gdb-aab48ede0952a825edc78bef75200680466cb5dd.tar.bz2
* python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
address as UnsignedLongLong, not LongLong.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/python/py-lazy-string.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e159d55..1610707 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c
index c845273..8309527 100644
--- a/gdb/python/py-lazy-string.c
+++ b/gdb/python/py-lazy-string.c
@@ -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