From 12a43f69338d1b7eeedefb092ff88c55e6ab9401 Mon Sep 17 00:00:00 2001 From: uweigand Date: Sat, 6 Mar 2010 04:28:12 +0000 Subject: [PATCH] * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract address as UnsignedLongLong, not LongLong. --- gdb/ChangeLog | 5 +++++ gdb/python/py-lazy-string.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e159d5512d..1610707443 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-05 Ulrich Weigand + + * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract + address as UnsignedLongLong, not LongLong. + 2010-03-05 Kevin Buettner Pedro Alves diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c index c8452735bb..8309527527 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 -- 2.11.0