From: Jose Flavio Aguilar Paulino <jflavio@br.ibm.com>
To: Frysk <frysk@sourceware.org>
Subject: Frysk-sys patch for Power32/64
Date: Mon, 15 Oct 2007 01:49:00 -0000 [thread overview]
Message-ID: <1192416456.6703.1.camel@kandinsky.prado> (raw)
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
A small patch to fix some compiling problems for Power.
--
Jose Flavio Aguilar Paulino
(jflavio@br.ibm.com)
http://www.j-fap.com
System / Software Engineer
Toolchain Team
LTC, Linux Technology Center
IBM Brazil
[-- Attachment #2: frysk_sys_power_patch --]
[-- Type: text/x-patch, Size: 2133 bytes --]
Index: frysk/frysk-sys/lib/dwfl/cni/ElfPrpsinfo.cxx
===================================================================
--- frysk.orig/frysk-sys/lib/dwfl/cni/ElfPrpsinfo.cxx
+++ frysk/frysk-sys/lib/dwfl/cni/ElfPrpsinfo.cxx
@@ -64,13 +64,13 @@ typedef struct elf_prpsinfo32 { /* Inf
unsigned char pr_zomb; /* Zombie */
signed char pr_nice; /* Nice val */
uint32_t pr_flag; /* Flags */
- uint16_t pr_uid; /* User ID */
- uint16_t pr_gid; /* Group ID */
# if defined __powerpc__ || defined __powerpc64__
uint32_t pr_uid; /* User ID */
uint32_t pr_gid; /* Group ID */
+# else
+ uint16_t pr_uid; /* User ID */
+ uint16_t pr_gid; /* Group ID */
# endif
-
pid_t pr_pid; /* Process ID */
pid_t pr_ppid; /* Parent's process ID */
pid_t pr_pgrp; /* Group ID */
@@ -85,11 +85,12 @@ typedef struct elf_prpsinfo64 { /* Inf
unsigned char pr_zomb; /* Zombie */
signed char pr_nice; /* Nice val */
unsigned long pr_flag; /* Flags */
- uint32_t pr_uid; /* User ID */
- uint32_t pr_gid; /* Group ID */
# if defined __powerpc__ || defined __powerpc64__
uint32_t pr_uid; /* User ID */
uint32_t pr_gid; /* Group ID */
+# else
+ uint32_t pr_uid; /* User ID */
+ uint32_t pr_gid; /* Group ID */
# endif
pid_t pr_pid; /* Process ID */
next reply other threads:[~2007-10-15 1:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-15 1:49 Jose Flavio Aguilar Paulino [this message]
2007-10-15 9:44 ` Phil Muldoon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1192416456.6703.1.camel@kandinsky.prado \
--to=jflavio@br.ibm.com \
--cc=frysk@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).