public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix find_and_open_source link error
@ 2008-04-21 20:16 Keith Seitz
  0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2008-04-21 20:16 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

Hi,

A recent change in gdb has rendered a function invisible to insight, so 
I've found a suitable replacement and committed the attached patch.

Keith

ChangeLog
2008-04-21  Keith Seitz  <keiths@redhat.com>

         * generic/gdbtk-cmds.c (symtab_to_filename): Call gdb's
         open_source_file instead of find_and_open_source.

[-- Attachment #2: find_and_open_source.patch --]
[-- Type: text/x-patch, Size: 1306 bytes --]

Index: generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.98
diff -u -p -r1.98 gdbtk-cmds.c
--- generic/gdbtk-cmds.c	3 Mar 2008 23:25:03 -0000	1.98
+++ generic/gdbtk-cmds.c	21 Apr 2008 20:14:30 -0000
@@ -1,5 +1,5 @@
 /* Tcl/Tk command definitions for Insight.
-   Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2007
+   Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2007, 2008
    Free Software Foundation, Inc.
 
    Written by Stu Grossman <grossman@cygnus.com> of Cygnus Support.
@@ -3004,13 +3004,9 @@ gdb_CA_to_TAS (ClientData clientData, Tc
  * with something similar, but different enough to break
  * Insight.
  */
-int find_and_open_source (struct objfile *objfile, const char *filename,
-			  const char *dirname, char **fullname);
-
 char *
 symtab_to_filename (struct symtab *s)
 {
-
   int r;
 
   if (!s)
@@ -3018,8 +3014,7 @@ symtab_to_filename (struct symtab *s)
 
   /* Don't check s->fullname here, the file could have been 
      deleted/moved/..., look for it again */
-  r = find_and_open_source (s->objfile, s->filename, s->dirname,
-			    &s->fullname);
+  r = open_source_file (s);
   if (r)
     close (r);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-21 20:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-21 20:16 [PATCH] Fix find_and_open_source link error Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).