This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
generic/gdbtk-interp.c: Fix up for the interp_init_ftype change
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: insight at sourceware dot org
- Cc: gdb-patches at sourceware dot org, "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Tue, 18 Mar 2008 18:43:49 +0000 (GMT)
- Subject: generic/gdbtk-interp.c: Fix up for the interp_init_ftype change
Hello,
Here is a fix that makes the Insight interpreter build again after the
recent change to interp_init_ftype.
2008-03-18 Maciej W. Rozycki <macro@mips.com>
* generic/gdbtk-interp.c (gdbtk_interpreter_init): New parameter
top_level.
Applied as obvious.
Maciej
gdb-gdbtk-interp.diff
Index: binutils-quilt/src/gdb/gdbtk/generic/gdbtk-interp.c
===================================================================
--- binutils-quilt.orig/src/gdb/gdbtk/generic/gdbtk-interp.c 2008-03-18 18:05:41.000000000 +0000
+++ binutils-quilt/src/gdb/gdbtk/generic/gdbtk-interp.c 2008-03-18 18:09:14.000000000 +0000
@@ -1,7 +1,7 @@
/* Insight Definitions for GDB, the GNU debugger.
Written by Keith Seitz <kseitz@sources.redhat.com>
- Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2008 Free Software Foundation, Inc.
This file is part of Insight.
@@ -62,7 +62,7 @@
}
static void *
-gdbtk_interpreter_init (void)
+gdbtk_interpreter_init (int top_level)
{
/* Disable interpreter-exec. It causes us big trouble right now. */
struct cmd_list_element *cmd = NULL;