From owner-freebsd-mips@FreeBSD.ORG Fri May 23 20:15:56 2008 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCBB51065671 for ; Fri, 23 May 2008 20:15:56 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9FF948FC12 for ; Fri, 23 May 2008 20:15:56 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (server.baldwin.cx [208.65.91.234]) by elvis.mu.org (Postfix) with ESMTP id B924B1A4D8E for ; Fri, 23 May 2008 12:58:08 -0700 (PDT) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m4NJvx9l019394 for ; Fri, 23 May 2008 15:57:59 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: mips@freebsd.org Date: Fri, 23 May 2008 15:26:55 -0400 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805231526.55969.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 23 May 2008 15:57:59 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/7222/Fri May 23 08:53:12 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Patch for kgdb X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2008 20:15:56 -0000 These are the changes I mentioned earlier to David to catch the kgdb mips support up to the recent changes to kgdb. What is there now won't compile (binary can't link) and also won't work. --- //depot/vendor/freebsd/src/gnu/usr.bin/gdb/kgdb/trgt_mips.c 2008/05/20 23:42:06 +++ //depot/user/jhb/kgdb/gnu/usr.bin/gdb/kgdb/trgt_mips.c 2008/05/23 19:12:28 @@ -54,7 +54,7 @@ struct kthr *kt; struct pcb pcb; - kt = kgdb_thr_lookup_tid(ptid_get_tid(inferior_ptid)); + kt = kgdb_thr_lookup_tid(ptid_get_pid(inferior_ptid)); if (kt == NULL) return; if (kvm_read(kvm, kt->pcb, &pcb, sizeof(pcb)) != sizeof(pcb)) { @@ -82,6 +82,11 @@ fprintf_unfiltered(gdb_stderr, "XXX: %s\n", __func__); } +void +kgdb_trgt_new_objfile(struct objfile *objfile) +{ +} + struct kgdb_frame_cache { CORE_ADDR pc; CORE_ADDR sp; -- John Baldwin