diff mbox

[uclibc-ng-devel] uClibc-ng - small C library for embedded systems branch master updated. v1.0.17-13-g57f820b

Message ID 20160921150549.7446B1015D@helium.openadk.org
State Not Applicable
Headers show

Commit Message

wbx Sept. 21, 2016, 3:05 p.m. UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".

The branch, master has been updated
       via  57f820bab9108550907f03828d61525c833004a4 (commit)
      from  f1d7505e40654a185843bdc8f1cf1fd00ab55c04 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 57f820bab9108550907f03828d61525c833004a4
Author: Waldemar Brodkorb <wbx@uclibc-ng.org>
Date:   Wed Sep 21 17:00:38 2016 +0200

    microblaze: fixup headers to make gdb compile happy
    
    Add some definitions and fix some types to make gdb compile
    happy.

-----------------------------------------------------------------------

Summary of changes:
 libc/sysdeps/linux/microblaze/sys/procfs.h | 16 ++++++++--------
 libc/sysdeps/linux/microblaze/sys/ptrace.h | 20 ++++++++++++++++++++
 2 files changed, 28 insertions(+), 8 deletions(-)



hooks/post-receive
diff mbox

Patch

diff --git a/libc/sysdeps/linux/microblaze/sys/procfs.h b/libc/sysdeps/linux/microblaze/sys/procfs.h
index eca7828..c98b28e 100644
--- a/libc/sysdeps/linux/microblaze/sys/procfs.h
+++ b/libc/sysdeps/linux/microblaze/sys/procfs.h
@@ -91,10 +91,10 @@  struct elf_prstatus
 	short	pr_cursig;		/* Current signal */
 	unsigned long pr_sigpend;	/* Set of pending signals */
 	unsigned long pr_sighold;	/* Set of held signals */
-	__kernel_pid_t	pr_pid;
-	__kernel_pid_t	pr_ppid;
-	__kernel_pid_t	pr_pgrp;
-	__kernel_pid_t	pr_sid;
+	__pid_t	pr_pid;
+	__pid_t	pr_ppid;
+	__pid_t	pr_pgrp;
+	__pid_t	pr_sid;
 	struct timeval pr_utime;	/* User time */
 	struct timeval pr_stime;	/* System time */
 	struct timeval pr_cutime;	/* Cumulative user time */
@@ -112,9 +112,9 @@  struct elf_prpsinfo
 	char	pr_zomb;	/* zombie */
 	char	pr_nice;	/* nice val */
 	unsigned long pr_flag;	/* flags */
-	__kernel_uid_t	pr_uid;
-	__kernel_gid_t	pr_gid;
-	__kernel_pid_t	pr_pid, pr_ppid, pr_pgrp, pr_sid;
+	unsigned short int pr_uid;
+	unsigned short int pr_gid;
+	int pr_pid, pr_ppid, pr_pgrp, pr_sid;
 	/* Lots missing */
 	char	pr_fname[16];	/* filename of executable */
 	char	pr_psargs[ELF_PRARGSZ];	/* initial part of arg list */
@@ -134,7 +134,7 @@  typedef elf_fpregset_t prfpregset_t;
 
 /* We don't have any differences between processes and threads,
    therefore have only one PID type.  */
-typedef __kernel_pid_t lwpid_t;
+typedef __pid_t lwpid_t;
 
 /* Process status and info.  In the end we do provide typedefs for them.  */
 typedef struct elf_prstatus prstatus_t;
diff --git a/libc/sysdeps/linux/microblaze/sys/ptrace.h b/libc/sysdeps/linux/microblaze/sys/ptrace.h
index a81f971..f09ce25 100644
--- a/libc/sysdeps/linux/microblaze/sys/ptrace.h
+++ b/libc/sysdeps/linux/microblaze/sys/ptrace.h
@@ -68,6 +68,26 @@  enum __ptrace_request
   PTRACE_SINGLESTEP = 9,
 #define PT_STEP PTRACE_SINGLESTEP
 
+  /* Get all general purpose registers used by a processes.
+     This is not supported on all machines.  */
+   PTRACE_GETREGS = 12,
+#define PT_GETREGS PTRACE_GETREGS
+
+  /* Set all general purpose registers used by a processes.
+     This is not supported on all machines.  */
+   PTRACE_SETREGS = 13,
+#define PT_SETREGS PTRACE_SETREGS
+
+  /* Get all floating point registers used by a processes.
+     This is not supported on all machines.  */
+   PTRACE_GETFPREGS = 14,
+#define PT_GETFPREGS PTRACE_GETFPREGS
+
+  /* Set all floating point registers used by a processes.
+     This is not supported on all machines.  */
+   PTRACE_SETFPREGS = 15,
+#define PT_SETFPREGS PTRACE_SETFPREGS
+
   /* Attach to a process that is already running. */
   PTRACE_ATTACH = 16,
 #define PT_ATTACH PTRACE_ATTACH