From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 339 invoked by alias); 10 Aug 2013 02:57:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 325 invoked by uid 89); 10 Aug 2013 02:57:52 -0000 X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mail-ve0-f172.google.com) (209.85.128.172) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 10 Aug 2013 02:57:52 +0000 Received: by mail-ve0-f172.google.com with SMTP id oz10so4475444veb.3 for ; Fri, 09 Aug 2013 19:57:44 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.220.15.132 with SMTP id k4mr2000112vca.45.1376103464465; Fri, 09 Aug 2013 19:57:44 -0700 (PDT) Received: by 10.220.53.132 with HTTP; Fri, 9 Aug 2013 19:57:44 -0700 (PDT) Date: Sat, 10 Aug 2013 02:57:00 -0000 Message-ID: Subject: Re: [PATCH 4/5] powerpc64-aix ptrace64 when defined. From: David Edelsohn To: Raunaq 12 Cc: Tom Tromey , Ulrich Weigand , GDB Patches , Mark Kettenis Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-08/txt/msg00286.txt.bz2 [Trying again because GMail insists on sending HTML which sourceware.org rejects.] > When GDB is compiled in 64 BIT mode ptrace and ptracex calls are not defined on AIX. So, instead we check if ptrace64 is defined, if it is then we call that instead of ptrace/x. Have you tested the patch in both 32 bit mode and 64 bit mode for both host GDB and target debugee? I tried the earlier version of this patch from last year and experienced problems debugging in 32 bit mode (I no longer could debug GCC). ptrace, ptracex and ptrace64 are defined in syscalls.exp ptrace64 syscall3264 # 32 ptrace syscall32 ptracex syscall32 As you wrote, ptrace and ptracex are 32 bit only APIs; ptrace64 is available as 32 bit and 64 bit API. ptrace64 is suppose to support 32 bit debugee targets, but I experienced problems. A configure probe of ptrace64 will compile and link in 32 bit mode and configure will discover it as available when building 32 bit GDB. Is your intention to always use ptrace64 when it is available or only to use it for GDB built and hosted on 64 bit mode? Thanks, David