From patchwork Wed Sep 21 15:05:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wbx X-Patchwork-Id: 672923 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sfNHC4N9jz9snm for ; Thu, 22 Sep 2016 01:05:56 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id A53AD1015D; Wed, 21 Sep 2016 17:05:51 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: by helium.openadk.org (Postfix, from userid 1000) id 7446B1015D; Wed, 21 Sep 2016 17:05:49 +0200 (CEST) MIME-Version: 1.0 To: devel@uclibc-ng.org X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: f1d7505e40654a185843bdc8f1cf1fd00ab55c04 X-Git-Newrev: 57f820bab9108550907f03828d61525c833004a4 Auto-Submitted: auto-generated Message-Id: <20160921150549.7446B1015D@helium.openadk.org> Date: Wed, 21 Sep 2016 17:05:49 +0200 (CEST) From: wbx@helium.openadk.org (wbx) Subject: [uclibc-ng-devel] uClibc-ng - small C library for embedded systems branch master updated. v1.0.17-13-g57f820b X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" 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 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 --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