• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gdb/7.11.1/0002-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
Thomas PetazzoniThomas Petazzoni committed 3142e7a8ea605 Apr 2018
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 7438f3e5a41adf54cf82cd82d3d52244e77d7d05 Mon Sep 17 00:00:00 2001
2
From: Khem Raj <raj.khem@gmail.com>
3
Date: Sat, 6 Aug 2016 17:32:50 -0700
4
Subject: [PATCH] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems
5
​
6
Upstream-Status: Pending
7
​
8
Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
---
11
 gdb/gdbserver/linux-ppc-low.c | 6 ++++++
12
 gdb/nat/ppc-linux.h           | 6 ++++++
13
 2 files changed, 12 insertions(+)
14
​
15
diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c
16
index 2145c50..777905d 100644
17
--- a/gdb/gdbserver/linux-ppc-low.c
18
+++ b/gdb/gdbserver/linux-ppc-low.c
19
@@ -21,7 +21,13 @@
20
 #include "linux-low.h"
21
 
22
 #include <elf.h>
23
+#if !defined(__GLIBC__)
24
+# define pt_regs uapi_pt_regs
25
+#endif
26
 #include <asm/ptrace.h>
27
+#if !defined(__GLIBC__)
28
+# undef pt_regs
29
+#endif
30
 
31
 #include "nat/ppc-linux.h"
32
 
33
diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h
34
index 85fbcd8..cbec9c5 100644
35
--- a/gdb/nat/ppc-linux.h
36
+++ b/gdb/nat/ppc-linux.h
37
@@ -18,7 +18,13 @@
38
 #ifndef PPC_LINUX_H
39
 #define PPC_LINUX_H 1
40
 
41
+#if !defined(__GLIBC__)
42
+# define pt_regs uapi_pt_regs
43
+#endif
44
 #include <asm/ptrace.h>
45
+#if !defined(__GLIBC__)
46
+# undef pt_regs
47
+#endif
48
 #include <asm/cputable.h>
49
 
50
 /* This sometimes isn't defined.  */
51
-- 
52
2.7.4
53
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.