From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13692 invoked by alias); 23 Dec 2009 17:31:54 -0000 Received: (qmail 13680 invoked by uid 22791); 23 Dec 2009 17:31:53 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f217.google.com (HELO mail-gx0-f217.google.com) (209.85.217.217) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Dec 2009 17:31:47 +0000 Received: by gxk9 with SMTP id 9so17610935gxk.8 for ; Wed, 23 Dec 2009 09:31:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.144.2 with SMTP id w2mr16249352ann.158.1261589506078; Wed, 23 Dec 2009 09:31:46 -0800 (PST) Date: Wed, 23 Dec 2009 17:31:00 -0000 Message-ID: Subject: [Patch, trivial] Fix PR 11110 From: Dmitry Gorbachev To: gdb-patches Content-Type: text/plain; charset=UTF-8 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-12/txt/msg00360.txt.bz2 This patch fixes a duplicate definition of deprecated_trace_find_hook and deprecated_trace_start_stop_hook. 2009-12-23 Dmitry Gorbachev PR gdb/11110 * tracepoint.h (deprecated_trace_find_hook) (deprecated_trace_start_stop_hook): Declare extern. * tracepoint.c (deprecated_trace_find_hook) (deprecated_trace_start_stop_hook): Define. --- gdb/tracepoint.c +++ gdb/tracepoint.c @@ -69,6 +69,10 @@ large. (400 - 31)/2 == 184 */ #define MAX_AGENT_EXPR_LEN 184 +/* A hook used to notify the UI of tracepoint operations. */ + +void (*deprecated_trace_find_hook) (char *arg, int from_tty); +void (*deprecated_trace_start_stop_hook) (int start, int from_tty); extern void (*deprecated_readline_begin_hook) (char *, ...); extern char *(*deprecated_readline_hook) (char *); --- gdb/tracepoint.h +++ gdb/tracepoint.h @@ -39,8 +39,8 @@ /* A hook used to notify the UI of tracepoint operations. */ -void (*deprecated_trace_find_hook) (char *arg, int from_tty); -void (*deprecated_trace_start_stop_hook) (int start, int from_tty); +extern void (*deprecated_trace_find_hook) (char *arg, int from_tty); +extern void (*deprecated_trace_start_stop_hook) (int start, int from_tty); int get_traceframe_number (void); void free_actions (struct breakpoint *);