From: Ulrich Weigand Date: Fri, 5 Mar 2010 19:31:08 +0000 (+0000) Subject: * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract X-Git-Tag: gdb_7_1-2010-03-18-release~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e31a2650d15d18f921392e31cefa23b26fed1db6;p=thirdparty%2Fbinutils-gdb.git * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract address as UnsignedLongLong, not LongLong. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 89fa1c27013..ba8f337a83c 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-04 Tom Tromey * dwarf2read.c (skip_one_die) : Use offset size diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c index c8452735bb6..8309527527d 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