From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17052 invoked by alias); 10 Jun 2009 20:54:28 -0000 Received: (qmail 17043 invoked by uid 22791); 10 Jun 2009 20:54:27 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from ugmailsb.ugent.be (HELO ugmailsb.ugent.be) (157.193.71.46) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Jun 2009 20:54:20 +0000 Received: from localhost (localhost [127.0.0.1]) by ugmailsb.ugent.be (Postfix) with ESMTP id A63282AB294 for ; Wed, 10 Jun 2009 22:54:17 +0200 (CEST) Received: from ugmailsb.ugent.be ([127.0.0.1]) by localhost (ugmailsb.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IW-caXwpKe0h for ; Wed, 10 Jun 2009 22:54:17 +0200 (CEST) Received: from cedar.ugent.be (cedar.ugent.be [157.193.49.14]) by ugmailsb.ugent.be (Postfix) with ESMTP id 48E6B2AB298 for ; Wed, 10 Jun 2009 22:54:16 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAL+6L0qdwc4w/2dsb2JhbADRBIQNBQ Received: from mail.elis.ugent.be ([157.193.206.48]) by relays9.ugent.be with ESMTP; 10 Jun 2009 22:53:41 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.elis.ugent.be (Postfix) with ESMTP id 22F4E918F1D for ; Wed, 10 Jun 2009 22:53:41 +0200 (CEST) Received: from mail.elis.ugent.be ([127.0.0.1]) by localhost (mail.elis.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ggerqD6G5r2q for ; Wed, 10 Jun 2009 22:53:38 +0200 (CEST) Received: from firefly.lan (unknown [91.176.14.27]) by mail.elis.ugent.be (Postfix) with ESMTP id 03F05918F12 for ; Wed, 10 Jun 2009 22:53:37 +0200 (CEST) Message-Id: From: Jonas Maebe To: gdb-patches ml Content-Type: multipart/mixed; boundary=Apple-Mail-11-72044863 Mime-Version: 1.0 (Apple Message framework v926) Subject: [patch] Fix Darwin/x86 compilation Date: Wed, 10 Jun 2009 20:54:00 -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 X-SW-Source: 2009-06/txt/msg00274.txt.bz2 --Apple-Mail-11-72044863 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Content-length: 536 Hello, Current gdb head does not compile for Darwin due to the changes in this commit: commit 60d99cc097f1fb9932bb8f52c24e4efc00a6b742 Author: Pedro Alves Date: Thu May 21 15:48:41 2009 +0000 The attached patch fixes compilation for Darwin. Jonas 2009-06-10 Jonas Maebe Fix Darwin compilation error caused by signature change of darwin_wait. * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to darwin_wait (blocking wait). (darwin_kill_inferior): Likewise --Apple-Mail-11-72044863 Content-Disposition: attachment; filename=fix-darwin_wait-compilation.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="fix-darwin_wait-compilation.patch" Content-Transfer-Encoding: 7bit Content-length: 810 diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 8c20bd9..3246881 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -688,7 +688,7 @@ darwin_stop_inferior (struct target_ops *ops, darwin_inferior *inf) if (res != 0) warning (_("cannot kill: %s\n"), safe_strerror (errno)); - ptid = darwin_wait (ops, inferior_ptid, &wstatus); + ptid = darwin_wait (ops, inferior_ptid, &wstatus, 0); gdb_assert (wstatus.kind = TARGET_WAITKIND_STOPPED); } @@ -720,7 +720,7 @@ darwin_kill_inferior (struct target_ops *ops) kret = task_resume (darwin_inf->task); MACH_CHECK_ERROR (kret); - ptid = darwin_wait (ops, inferior_ptid, &wstatus); + ptid = darwin_wait (ops, inferior_ptid, &wstatus, 0); /* This double wait seems required... */ res = waitpid (darwin_inf->pid, &status, 0); --Apple-Mail-11-72044863 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1 --Apple-Mail-11-72044863--