Re: [PATCH v1 07/10] gdb/linux-tdep: migrate linux_find_memory_regions_full to file_reader_t
Matthieu Longo <[email protected]> Mon, 27 Jul 2026 18:14:24 +0100
| Newsgroups | gmane.comp.gdb.patches |
|---|---|
| Message-ID | <[email protected]> |
On 21/07/2026 22:47, Luis wrote: > > On 07/07/2026 16:48, Matthieu Longo wrote: >> The previous implementation of linux_find_memory_regions_full could >> still return success even when none of the /proc/PID/[s]maps files >> existed, or all reads returned 0 bytes (this last case can happen on >> Linux when the thread-group leader has exited). >> As a result, the function could incorrectly succeed, allowing core >> dump generation via the gcore command. >> This logical defect was allowing, by chance, the function to return >> success and hence, allowing fortuitously the codedump generation via > > Typo: codedump -> coredump > Fixed. Matthieu