diff options
Diffstat (limited to 'gdbserver/linux-low.h')
-rw-r--r-- | gdbserver/linux-low.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdbserver/linux-low.h b/gdbserver/linux-low.h index 27cc964..4284fb3 100644 --- a/gdbserver/linux-low.h +++ b/gdbserver/linux-low.h @@ -127,6 +127,9 @@ struct process_info_private /* &_r_debug. 0 if not yet determined. -1 if no PT_DYNAMIC in Phdrs. */ CORE_ADDR r_debug; + + /* The /proc/pid/mem file used for reading/writing memory. */ + int mem_fd; }; struct lwp_info; @@ -163,10 +166,6 @@ public: void store_registers (regcache *regcache, int regno) override; - int prepare_to_access_memory () override; - - void done_accessing_memory () override; - int read_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len) override; @@ -544,6 +543,10 @@ private: data. */ process_info *add_linux_process (int pid, int attached); + /* Same as add_linux_process, but don't open the /proc/PID/mem file + yet. */ + process_info *add_linux_process_no_mem_file (int pid, int attached); + /* Add a new thread. */ lwp_info *add_lwp (ptid_t ptid); |