aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-04-16 15:53:47 +0200
committerTom de Vries <tdevries@suse.de>2024-04-16 15:53:47 +0200
commit06e967dbc9b75a4a3c1b15b54360cf1abbf9c2bd (patch)
tree6e4a4137a7b51c19937e94038188b55abf29ccc3 /binutils
parent2d4c39a885d4d12325d0a9be9e014e75a295fb25 (diff)
downloadgdb-06e967dbc9b75a4a3c1b15b54360cf1abbf9c2bd.zip
gdb-06e967dbc9b75a4a3c1b15b54360cf1abbf9c2bd.tar.gz
gdb-06e967dbc9b75a4a3c1b15b54360cf1abbf9c2bd.tar.bz2
[gdb/python] Throw MemoryError in inferior.read_memory if malloc fails
PR python/31631 reports a gdb internal error when doing: ... (gdb) python gdb.selected_inferior().read_memory (0, 0xffffffffffffffff) utils.c:709: internal-error: virtual memory exhausted. A problem internal to GDB has been detected, further debugging may prove unreliable. ... Fix this by throwing a python MemoryError, such that we have instead: ... (gdb) python gdb.selected_inferior().read_memory (0, 0xffffffffffffffff) Python Exception <class 'MemoryError'>: Error occurred in Python. (gdb) ... Likewise for DAP. Tested on x86_64-linux. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31631
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions