From owner-svn-src-head@freebsd.org Wed Apr 20 20:22:50 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 09CB6B16AB0; Wed, 20 Apr 2016 20:22:50 +0000 (UTC) (envelope-from wma@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C042B1DC7; Wed, 20 Apr 2016 20:22:49 +0000 (UTC) (envelope-from wma@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3KKMmmu073685; Wed, 20 Apr 2016 20:22:48 GMT (envelope-from wma@FreeBSD.org) Received: (from wma@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3KKMmee073678; Wed, 20 Apr 2016 20:22:48 GMT (envelope-from wma@FreeBSD.org) Message-Id: <201604202022.u3KKMmee073678@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wma set sender to wma@FreeBSD.org using -f From: Wojciech Macek Date: Wed, 20 Apr 2016 20:22:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298363 - head/gnu/usr.bin/gdb/kgdb X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 20:22:50 -0000 Author: wma Date: Wed Apr 20 20:22:48 2016 New Revision: 298363 URL: https://svnweb.freebsd.org/changeset/base/298363 Log: Add missing function prototypes in KGDB This fixes the build broken by r298358 Modified: head/gnu/usr.bin/gdb/kgdb/main.c head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c head/gnu/usr.bin/gdb/kgdb/trgt_i386.c head/gnu/usr.bin/gdb/kgdb/trgt_mips.c head/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c head/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c head/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c Modified: head/gnu/usr.bin/gdb/kgdb/main.c ============================================================================== --- head/gnu/usr.bin/gdb/kgdb/main.c Wed Apr 20 19:21:26 2016 (r298362) +++ head/gnu/usr.bin/gdb/kgdb/main.c Wed Apr 20 20:22:48 2016 (r298363) @@ -474,9 +474,7 @@ main(int argc, char *argv[]) add_arg(&args, NULL); init_ui_hook = kgdb_init; -#if TARGET_CPUARCH == arm frame_tdep_pc_fixup = kgdb_trgt_pc_fixup; -#endif kgdb_sniffer_kluge = kgdb_trgt_trapframe_sniffer; return (gdb_main(&args)); Modified: head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c ============================================================================== --- head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c Wed Apr 20 19:21:26 2016 (r298362) +++ head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c Wed Apr 20 20:22:48 2016 (r298363) @@ -195,3 +195,16 @@ kgdb_trgt_trapframe_sniffer(struct frame /* printf("%s: %lx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} Modified: head/gnu/usr.bin/gdb/kgdb/trgt_i386.c ============================================================================== --- head/gnu/usr.bin/gdb/kgdb/trgt_i386.c Wed Apr 20 19:21:26 2016 (r298362) +++ head/gnu/usr.bin/gdb/kgdb/trgt_i386.c Wed Apr 20 20:22:48 2016 (r298363) @@ -385,3 +385,16 @@ kgdb_trgt_trapframe_sniffer(struct frame /* printf("%s: %llx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} Modified: head/gnu/usr.bin/gdb/kgdb/trgt_mips.c ============================================================================== --- head/gnu/usr.bin/gdb/kgdb/trgt_mips.c Wed Apr 20 19:21:26 2016 (r298362) +++ head/gnu/usr.bin/gdb/kgdb/trgt_mips.c Wed Apr 20 20:22:48 2016 (r298363) @@ -238,3 +238,16 @@ kgdb_trgt_trapframe_sniffer(struct frame #endif return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} Modified: head/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c ============================================================================== --- head/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c Wed Apr 20 19:21:26 2016 (r298362) +++ head/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c Wed Apr 20 20:22:48 2016 (r298363) @@ -199,3 +199,16 @@ kgdb_trgt_trapframe_sniffer(struct frame /* printf("%s: %llx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} Modified: head/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c ============================================================================== --- head/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c Wed Apr 20 19:21:26 2016 (r298362) +++ head/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c Wed Apr 20 20:22:48 2016 (r298363) @@ -196,3 +196,16 @@ kgdb_trgt_trapframe_sniffer(struct frame /* printf("%s: %llx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} Modified: head/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c ============================================================================== --- head/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c Wed Apr 20 19:21:26 2016 (r298362) +++ head/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c Wed Apr 20 20:22:48 2016 (r298363) @@ -203,3 +203,16 @@ kgdb_trgt_trapframe_sniffer(struct frame /* printf("%s: %lx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +}