This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] linux-nat.c (linux_nat_thread_address_space): Delete dead code.


Hi.
Committed as obvious.

2014-08-10  Doug Evans  <xdje42@gmail.com>

	* linux-nat.c (linux_nat_thread_address_space): Delete dead code.

diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 7189af1..1e8991d 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4836,7 +4836,6 @@ linux_nat_thread_address_space (struct target_ops *t, ptid_t ptid)
   struct inferior *inf;
   int pid;
 
-  pid = ptid_get_lwp (ptid);
   if (ptid_get_lwp (ptid) == 0)
     {
       /* An (lwpid,0,0) ptid.  Look up the lwp object to get at the


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]