From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11951 invoked by alias); 15 Oct 2007 01:49:11 -0000 Received: (qmail 11548 invoked by uid 22791); 15 Oct 2007 01:49:11 -0000 X-Spam-Status: No, hits=0.2 required=5.0 tests=BAYES_50,DK_POLICY_SIGNSOME,DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: sourceware.org Received: from igw2.br.ibm.com (HELO igw2.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 15 Oct 2007 01:49:09 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw2.br.ibm.com (Postfix) with ESMTP id 6CB7317F49C for ; Sun, 14 Oct 2007 23:46:53 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l9F1n5fj3215572 for ; Sun, 14 Oct 2007 23:49:05 -0200 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l9F1n5x3008549 for ; Sun, 14 Oct 2007 22:49:05 -0300 Received: from [9.67.77.74] (wecm-9-67-77-74.wecm.ibm.com [9.67.77.74]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l9F1n3mF008528 for ; Sun, 14 Oct 2007 22:49:04 -0300 Subject: Frysk-sys patch for Power32/64 From: Jose Flavio Aguilar Paulino To: Frysk Content-Type: multipart/mixed; boundary="=-P1uG/snjPasCu7mMMEeK" Date: Mon, 15 Oct 2007 01:49:00 -0000 Message-Id: <1192416456.6703.1.camel@kandinsky.prado> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00049.txt.bz2 --=-P1uG/snjPasCu7mMMEeK Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 214 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 --=-P1uG/snjPasCu7mMMEeK Content-Disposition: attachment; filename=frysk_sys_power_patch Content-Type: text/x-patch; name=frysk_sys_power_patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2133 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 */ --=-P1uG/snjPasCu7mMMEeK--