* [Buildroot] [PATCH] package/gdb: fix uClibc build whitout MMU
@ 2015-04-10 21:12 Romain Naour
2015-04-11 7:43 ` Thomas Petazzoni
2015-04-11 18:23 ` Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Romain Naour @ 2015-04-10 21:12 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/9e4/9e4df085319e346803c26c65478accb27eb950ae
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
.../0001-gdbserver-fix-uClibc-whithout-MMU.patch | 34 ++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch
diff --git a/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch b/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch
new file mode 100644
index 0000000..42168df
--- /dev/null
+++ b/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch
@@ -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
+
--
1.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/gdb: fix uClibc build whitout MMU
2015-04-10 21:12 [Buildroot] [PATCH] package/gdb: fix uClibc build whitout MMU Romain Naour
@ 2015-04-11 7:43 ` Thomas Petazzoni
2015-04-11 7:59 ` Romain Naour
2015-04-11 18:23 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-04-11 7:43 UTC (permalink / raw)
To: buildroot
Dear Romain Naour,
On Fri, 10 Apr 2015 23:12:09 +0200, Romain Naour wrote:
> diff --git a/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch b/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch
> new file mode 100644
> index 0000000..42168df
> --- /dev/null
> +++ b/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch
> @@ -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.
Is this an upstream gdb patch?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/gdb: fix uClibc build whitout MMU
2015-04-11 7:43 ` Thomas Petazzoni
@ 2015-04-11 7:59 ` Romain Naour
0 siblings, 0 replies; 4+ messages in thread
From: Romain Naour @ 2015-04-11 7:59 UTC (permalink / raw)
To: buildroot
Hi Thomas,
Le 11/04/2015 09:43, Thomas Petazzoni a ?crit :
> Dear Romain Naour,
>
> On Fri, 10 Apr 2015 23:12:09 +0200, Romain Naour wrote:
>
>> diff --git a/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch b/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch
>> new file mode 100644
>> index 0000000..42168df
>> --- /dev/null
>> +++ b/package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch
>> @@ -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.
>
> Is this an upstream gdb patch?
Not yet, I'm waiting for reply on gdb-patches mailing list:
https://sourceware.org/ml/gdb-patches/2015-04/msg00415.html
https://sourceware.org/ml/gdb-patches/2015-04/msg00416.html
Best regards,
Romain
>
> Thanks,
>
> Thomas
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/gdb: fix uClibc build whitout MMU
2015-04-10 21:12 [Buildroot] [PATCH] package/gdb: fix uClibc build whitout MMU Romain Naour
2015-04-11 7:43 ` Thomas Petazzoni
@ 2015-04-11 18:23 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-04-11 18:23 UTC (permalink / raw)
To: buildroot
Dear Romain Naour,
On Fri, 10 Apr 2015 23:12:09 +0200, Romain Naour wrote:
> Fixes:
> http://autobuild.buildroot.net/results/9e4/9e4df085319e346803c26c65478accb27eb950ae
>
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> ---
> .../0001-gdbserver-fix-uClibc-whithout-MMU.patch | 34 ++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
> create mode 100644 package/gdb/7.8.2/0001-gdbserver-fix-uClibc-whithout-MMU.patch
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-11 18:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10 21:12 [Buildroot] [PATCH] package/gdb: fix uClibc build whitout MMU Romain Naour
2015-04-11 7:43 ` Thomas Petazzoni
2015-04-11 7:59 ` Romain Naour
2015-04-11 18:23 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.