Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From 59432cbfe267ad89b7cfc73dcd702b8282ef4e9d Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@openwide.fr>
|
||||
Date: Fri, 10 Apr 2015 22:58:07 +0200
|
||||
Subject: [PATCH] gdbserver: fix uClibc whithout MMU.
|
||||
|
||||
Since commit d86d4aafd4fa22fa4cccb83253fb187b03f97f48, the pid
|
||||
must be retrieved from current_inferior.
|
||||
|
||||
The change has not been made in the function linux_read_offsets().
|
||||
|
||||
Fixes:
|
||||
http://autobuild.buildroot.net/results/9e4/9e4df085319e346803c26c65478accb27eb950ae/build-end.log
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
|
||||
---
|
||||
gdb/gdbserver/linux-low.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
|
||||
index 1a40897..71d078a 100644
|
||||
--- a/gdb/gdbserver/linux-low.c
|
||||
+++ b/gdb/gdbserver/linux-low.c
|
||||
@@ -4933,7 +4933,7 @@ static int
|
||||
linux_read_offsets (CORE_ADDR *text_p, CORE_ADDR *data_p)
|
||||
{
|
||||
unsigned long text, text_end, data;
|
||||
- int pid = lwpid_of (get_thread_lwp (current_inferior));
|
||||
+ int pid = lwpid_of (current_inferior);
|
||||
|
||||
errno = 0;
|
||||
|
||||
--
|
||||
1.9.3
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From deb44829ecc1dd38275af0fcf91acd319e227a89 Mon Sep 17 00:00:00 2001
|
||||
From: Max Filippov <jcmvbkbc@gmail.com>
|
||||
Date: Fri, 17 Apr 2015 03:07:41 +0300
|
||||
Subject: [PATCH 1/2] gdbserver/xtensa: drop xtensa_usrregs_info
|
||||
|
||||
xtensa_usrregs_info refers to undefined variables xtensa_num_regs and
|
||||
xtensa_regmap. Drop xtensa_usrregs_info and replace pointer to usrregs
|
||||
in regs_info with NULL since all registers are read/set through regsets.
|
||||
|
||||
2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
|
||||
gdb/gdbserver/
|
||||
* linux-xtensa-low.c (xtensa_usrregs_info): Remove.
|
||||
(regs_info): Replace usrregs pointer with NULL.
|
||||
|
||||
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
|
||||
---
|
||||
Backported from: deb44829ecc1dd38275af0fcf91acd319e227a89
|
||||
Changes to ChangeLog are dropped.
|
||||
|
||||
gdb/gdbserver/linux-xtensa-low.c | 8 +-------
|
||||
2 files changed, 6 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/gdb/gdbserver/linux-xtensa-low.c b/gdb/gdbserver/linux-xtensa-low.c
|
||||
index f7fafaf..e786da5 100644
|
||||
--- a/gdb/gdbserver/linux-xtensa-low.c
|
||||
+++ b/gdb/gdbserver/linux-xtensa-low.c
|
||||
@@ -186,16 +186,10 @@ static struct regsets_info xtensa_regsets_info =
|
||||
NULL, /* disabled_regsets */
|
||||
};
|
||||
|
||||
-static struct usrregs_info xtensa_usrregs_info =
|
||||
- {
|
||||
- xtensa_num_regs,
|
||||
- xtensa_regmap,
|
||||
- };
|
||||
-
|
||||
static struct regs_info regs_info =
|
||||
{
|
||||
NULL, /* regset_bitmap */
|
||||
- &xtensa_usrregs_info,
|
||||
+ NULL, /* usrregs */
|
||||
&xtensa_regsets_info
|
||||
};
|
||||
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
From a2d5a9d76f2366ed93095fc5a63eafa06b22f808 Mon Sep 17 00:00:00 2001
|
||||
From: Max Filippov <jcmvbkbc@gmail.com>
|
||||
Date: Fri, 17 Apr 2015 02:52:50 +0300
|
||||
Subject: [PATCH 2/2] gdbserver/xtensa: fix typo in XCHAL_HAVE_LOOPS
|
||||
|
||||
This fixes lbeg/lend/lcount registers handling through gdbserver.
|
||||
|
||||
2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
|
||||
gdb/gdbserver/
|
||||
* linux-xtensa-low.c (xtensa_fill_gregset)
|
||||
(xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
|
||||
XCHAL_HAVE_LOOP.
|
||||
|
||||
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
|
||||
---
|
||||
Backported from: a2d5a9d76f2366ed93095fc5a63eafa06b22f808
|
||||
Changes to ChangeLog are dropped.
|
||||
|
||||
gdb/gdbserver/linux-xtensa-low.c | 4 ++--
|
||||
2 files changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gdb/gdbserver/linux-xtensa-low.c b/gdb/gdbserver/linux-xtensa-low.c
|
||||
index e786da5..4daccee 100644
|
||||
--- a/gdb/gdbserver/linux-xtensa-low.c
|
||||
+++ b/gdb/gdbserver/linux-xtensa-low.c
|
||||
@@ -59,7 +59,7 @@ xtensa_fill_gregset (struct regcache *regcache, void *buf)
|
||||
|
||||
/* Loop registers, if hardware has it. */
|
||||
|
||||
-#if XCHAL_HAVE_LOOP
|
||||
+#if XCHAL_HAVE_LOOPS
|
||||
collect_register_by_name (regcache, "lbeg", (char*)&rset[R_LBEG]);
|
||||
collect_register_by_name (regcache, "lend", (char*)&rset[R_LEND]);
|
||||
collect_register_by_name (regcache, "lcount", (char*)&rset[R_LCOUNT]);
|
||||
@@ -94,7 +94,7 @@ xtensa_store_gregset (struct regcache *regcache, const void *buf)
|
||||
|
||||
/* Loop registers, if hardware has it. */
|
||||
|
||||
-#if XCHAL_HAVE_LOOP
|
||||
+#if XCHAL_HAVE_LOOPS
|
||||
supply_register_by_name (regcache, "lbeg", (char*)&rset[R_LBEG]);
|
||||
supply_register_by_name (regcache, "lend", (char*)&rset[R_LEND]);
|
||||
supply_register_by_name (regcache, "lcount", (char*)&rset[R_LCOUNT]);
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
Reference in New Issue
Block a user