public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Frysk-sys patch for Power32/64
@ 2007-10-15  1:49 Jose Flavio Aguilar Paulino
  2007-10-15  9:44 ` Phil Muldoon
  0 siblings, 1 reply; 2+ messages in thread
From: Jose Flavio Aguilar Paulino @ 2007-10-15  1:49 UTC (permalink / raw)
  To: Frysk

[-- 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                                */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Frysk-sys patch for Power32/64
  2007-10-15  1:49 Frysk-sys patch for Power32/64 Jose Flavio Aguilar Paulino
@ 2007-10-15  9:44 ` Phil Muldoon
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Muldoon @ 2007-10-15  9:44 UTC (permalink / raw)
  To: Jose Flavio Aguilar Paulino; +Cc: Frysk

Jose Flavio Aguilar Paulino wrote:
> A small patch to fix some compiling problems for Power.
>
>   
This looks fine. Can you go ahead and check it in?

Regards

Phil

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-15  9:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-15  1:49 Frysk-sys patch for Power32/64 Jose Flavio Aguilar Paulino
2007-10-15  9:44 ` Phil Muldoon

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).