aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-04-09 15:01:33 +0100
committerPedro Alves <palves@redhat.com>2014-04-09 16:12:33 +0100
commit2eec7d5ba1928301955f4da013072c3e2f69f4a0 (patch)
treed7fafd3b437daed15218e079d42e06f03b84c571
parent00c06fdc57ab89d14789b5207763410a79c39a11 (diff)
downloadgdb-2eec7d5ba1928301955f4da013072c3e2f69f4a0.zip
gdb-2eec7d5ba1928301955f4da013072c3e2f69f4a0.tar.gz
gdb-2eec7d5ba1928301955f4da013072c3e2f69f4a0.tar.bz2
[GDBserver] Fix SH/Linux build.
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.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index eab7e8d..60244ef 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 2d8d5f5..c847c62 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -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;