[GDBserver] Fix SH/Linux build.
authorPedro Alves <palves@redhat.com>
Wed, 9 Apr 2014 14:01:33 +0000 (15:01 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 9 Apr 2014 15:12:33 +0000 (16:12 +0100)
 sh-linux-gnu-gcc (...) src/gdb/gdbserver/linux-low.c
 .../src/gdb/gdbserver/linux-low.c: In function 'linux_read_loadmap':
 .../src/gdb/gdbserver/linux-low.c:5284:13: error: 'struct lwp_info' has no member named 'entry'
 make[1]: *** [linux-low.o] Error 1

gdb/gdbserver/
2014-04-09  Pedro Alves  <palves@redhat.com>

* linux-low.c (linux_read_loadmap): Pass current_inferior directly
to lwpid_of.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index eab7e8dff717dcf3aa628557f45af63eb92e5c01..60244ef224e5f505060826ced62a73d90b9f1bc8 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-09  Pedro Alves  <palves@redhat.com>
+
+       * linux-low.c (linux_read_loadmap): Pass current_inferior directly
+       to lwpid_of.
+
 2014-02-27  Pedro Alves  <palves@redhat.com>
 
        PR 12702
index 2d8d5f5504d0ba44151375b7c3d8640a403dd8b7..c847c62f72a0cdd72139dd34185f799615f7e200 100644 (file)
@@ -5272,7 +5272,7 @@ static int
 linux_read_loadmap (const char *annex, CORE_ADDR offset,
                    unsigned char *myaddr, unsigned int len)
 {
-  int pid = lwpid_of (get_thread_lwp (current_inferior));
+  int pid = lwpid_of (current_inferior);
   int addr = -1;
   struct target_loadmap *data = NULL;
   unsigned int actual_length, copy_length;