Tom de Vries
06e967dbc9
[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
2024-04-16 15:53:47 +02:00
..
2024-04-16 15:53:47 +02:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-02-20 10:42:25 -05:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-04-16 15:53:47 +02:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-01-19 00:18:00 -05:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-03-26 21:13:22 -04:00
2024-04-02 11:21:39 -06:00
2024-03-14 08:57:00 -06:00
2024-03-26 21:13:22 -04:00
2024-01-12 15:49:57 +00:00