Skip to contentSkip to conversation

package/gdb: gdbserver: add missing header

PATCH New Romain Naour 2 participants 3 messages Jul 23, 2016 – Jul 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gdb: gdbserver: add missing header

Backport upstream patch for musl toolchains

Fixes:
http://autobuild.buildroot.net/results/564/56443134388ee6c4a13add10cc53eff6f47f244e

---
 .../7.10.1/0005-target.h-include-sys-types.h.patch | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/gdb/7.10.1/0005-target.h-include-sys-types.h.patch
package/gdb/7.10.1/0005-target.h-include-sys-types.h.patch new file +30 -0
new file mode 100644
index 0000000..ba5419d
@@ -0,0 +1,30 @@
+From cd68d0ebe7748a5448c86eb021b717df6fe83f35 Mon Sep 17 00:00:00 2001
+From: Doug Evans <[email protected]>
+Date: Sun, 22 Nov 2015 17:24:03 -0800
+Subject: [PATCH] target.h: #include <sys/types.h>.
+
+For musl.
+
+[Romain:
+  rebase on gdb 7.10.1 from upstream (7.11)
+  remove ChangeLog entry]
+Signed-off-by: Romain Naour <[email protected]>
+---
+ gdb/gdbserver/target.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
+index 9a40867..6af043c 100644
+--- a/gdb/gdbserver/target.h
++++ b/gdb/gdbserver/target.h
+@@ -21,6 +21,7 @@
+ #ifndef TARGET_H
+ #define TARGET_H
+ 
++#include <sys/types.h> /* for mode_t */
+ #include "target/target.h"
+ #include "target/resume.h"
+ #include "target/wait.h"
+-- 
+2.5.5
+
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 package/gdb: gdbserver: add missing header

Hello,

Quoted 10 lines · Romain Naour

Backport upstream patch for musl toolchains

Fixes:
http://autobuild.buildroot.net/results/564/56443134388ee6c4a13add10cc53eff6f47f244e

---
 .../7.10.1/0005-target.h-include-sys-types.h.patch | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/gdb/7.10.1/0005-target.h-include-sys-types.h.patch

Applied to master, thanks. Is this patch also needed for gdb 7.9 ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 package/gdb: gdbserver: add missing header

Hi Thomas,

Le 24/07/2016 ? 15:45, Thomas Petazzoni a ?crit :

Quoted 8 lines

Hello,

Quoted 5 lines · Romain Naour

Backport upstream patch for musl toolchains

Fixes:
http://autobuild.buildroot.net/results/564/56443134388ee6c4a13add10cc53eff6f47f244e

Quoted 7 lines
Quoted 5 lines
---
 .../7.10.1/0005-target.h-include-sys-types.h.patch | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/gdb/7.10.1/0005-target.h-include-sys-types.h.patch

Applied to master, thanks. Is this patch also needed for gdb 7.9 ?

No, gdb 7.9 build fine with musl toolchains.

Best regards,
Romain

Quoted 5 lines

Thanks!

Thomas