[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb-patches
Subject: Re: [PATCH] gdb: attach to a process when the executable has been deleted
From: Tom Tromey <tom () tromey ! com>
Date: 2024-01-29 18:46:43
Message-ID: 87cytkgep8.fsf () tromey ! com
[Download RAW message or body]
>>>>> "Andrew" == Andrew Burgess <aburgess@redhat.com> writes:
Andrew> Bug PR gdb/28313 describes attaching to a process when the executable
Andrew> has been deleted. The bug is for S390 and describes how a user sees a
Andrew> message 'PC not saved'.
...
Andrew> I propose that we add an `access` call to linux_proc_pid_to_exec_file
Andrew> to check that the target file exists and can be read. If the target
Andrew> can't be read then we should fall back to /proc/PID/exe (assuming that
Andrew> /proc/PID/exe can be read).
Thank you. This makes sense to me.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic