alleyoop r316 - in trunk: . src



Author: fejj
Date: Sun Feb  8 18:06:19 2009
New Revision: 316
URL: http://svn.gnome.org/viewvc/alleyoop?rev=316&view=rev

Log:
2009-02-08  Jeffrey Stedfast  <fejj novell com>

	* configure.in: Bumped version to 0.9.4

	* src/alleyoop.c: Get rid of the SymTab context - we don't
	actually want this anymore. Valgrind already gives us all we can
	hope to get from the debugging symbols for filename lookups.

	* src/vgtoolview.c (vg_tool_view_set_symtab): Removed.

	* src/vgdefaultview.c (resolve_full_path): Removed our own symtab
	lookups to try and get the source filename. If that debugging
	symbol information is available, Valgrind will give it to us, no
	need to do the same work for no added gain.

	* src/getopts.c (getopts_get_next_opt): When we get to the end of
	a group of short options, make sure to advance past any argument
	args that the short options may have consumed.

	* src/symtab.[c,h]: Removed.

	* src/ldd.[c,h]: Removed.



Removed:
   trunk/src/ldd.c
   trunk/src/ldd.h
   trunk/src/symtab.c
   trunk/src/symtab.h
Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/configure.in
   trunk/src/Makefile.am
   trunk/src/alleyoop.c
   trunk/src/alleyoop.h
   trunk/src/getopts.c
   trunk/src/getopts.h
   trunk/src/gimli.c
   trunk/src/gimli.h
   trunk/src/legolas.c
   trunk/src/legolas.h
   trunk/src/list.c
   trunk/src/list.h
   trunk/src/main.c
   trunk/src/menu-utils.c
   trunk/src/menu-utils.h
   trunk/src/parser.c
   trunk/src/parser.h
   trunk/src/prefs.c
   trunk/src/prefs.h
   trunk/src/process.c
   trunk/src/process.h
   trunk/src/vgcachegrindprefs.c
   trunk/src/vgcachegrindprefs.h
   trunk/src/vgdefaultview.c
   trunk/src/vgdefaultview.h
   trunk/src/vgerror.c
   trunk/src/vgerror.h
   trunk/src/vggeneralprefs.c
   trunk/src/vggeneralprefs.h
   trunk/src/vghelgrindprefs.c
   trunk/src/vghelgrindprefs.h
   trunk/src/vgio.c
   trunk/src/vgio.h
   trunk/src/vgmemcheckprefs.c
   trunk/src/vgmemcheckprefs.h
   trunk/src/vgrule-editor.c
   trunk/src/vgrule-editor.h
   trunk/src/vgrule-list.c
   trunk/src/vgrule-list.h
   trunk/src/vgrule.c
   trunk/src/vgrule.h
   trunk/src/vgrulepattern.c
   trunk/src/vgrulepattern.h
   trunk/src/vgsearchbar.c
   trunk/src/vgsearchbar.h
   trunk/src/vgstrpool.c
   trunk/src/vgstrpool.h
   trunk/src/vgtoolprefs.c
   trunk/src/vgtoolprefs.h
   trunk/src/vgtoolview.c
   trunk/src/vgtoolview.h

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Sun Feb  8 18:06:19 2009
@@ -1,3 +1,15 @@
+Alleyoop 0.9.4, 2009-02-08
+--------------------------
+
+Bugs Fixed:
+
+  - Got rid of custom debugging symbol lookup code which was
+    unnecessary and broke the build on recent Linux distributions like
+    openSUSE 11.1
+
+  - Fixed some bugs in the Valgrind error parser.
+
+
 Alleyoop 0.9.3, 2006-08-14
 --------------------------
 

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Sun Feb  8 18:06:19 2009
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(alleyoop, 0.9.3)
+AM_INIT_AUTOMAKE(alleyoop, 0.9.4)
 AM_MAINTAINER_MODE
 AM_CONFIG_HEADER(config.h)
 
@@ -54,31 +54,6 @@
 AC_PATH_PROG(GVIM, gvim, gvim, /usr/bin $PATH)
 AC_DEFINE_UNQUOTED(GVIM_PATH, "$GVIM", [Path to the GNOME vim editor.])
 
-dnl check for libiberty
-AC_CHECK_LIB(iberty, cplus_demangle,:, 
-  AC_CHECK_LIB(iberty, cplus_demangle_opname, ,
-    AC_ERROR([*** libiberty required to build Alleyoop.]), -ldl))
-
-dnl check for libbfd
-AC_CHECK_LIB(bfd, bfd_get_error, [LIBS="$LIBS -Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"], 
-  AC_ERROR([*** libbfd required to build Alleyoop.]),
-  -liberty)
-
-dnl check for bfd_get_section_size_before_reloc() in libbfd
-AC_MSG_CHECKING(for bfd_get_section_size_before_reloc)
-AC_TRY_LINK([
-	#include <bfd.h>
-	], [
-	asection *section;
-	
-	bfd_get_section_size_before_reloc (section);
-	],
-	AC_MSG_RESULT(yes)
-	AC_DEFINE(HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC, [], [Define if libbfd contains the function bfd_get_section_size_before_reloc])
-,
-	AC_MSG_RESULT(no)
-)
-
 AM_PATH_GLIB_2_0
 
 dnl we need gconftool-2 in order to install the schema

Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am	(original)
+++ trunk/src/Makefile.am	Sun Feb  8 18:06:19 2009
@@ -14,8 +14,6 @@
 	alleyoop.h		\
 	getopts.c		\
 	getopts.h		\
-	ldd.c			\
-	ldd.h			\
 	legolas.c		\
 	legolas.h		\
 	list.c			\
@@ -28,8 +26,6 @@
 	prefs.h			\
 	process.c		\
 	process.h		\
-	symtab.c		\
-	symtab.h		\
 	vgcachegrindprefs.c	\
 	vgcachegrindprefs.h	\
 	vgdefaultview.c		\

Modified: trunk/src/alleyoop.c
==============================================================================
--- trunk/src/alleyoop.c	(original)
+++ trunk/src/alleyoop.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -116,7 +116,6 @@
 {
 	grind->argv = NULL;
 	grind->srcdir = NULL;
-	grind->symtab = NULL;
 	
 	grind->view = NULL;
 	
@@ -139,9 +138,6 @@
 	if (grind->gio)
 		g_io_channel_unref (grind->gio);
 	
-	if (grind->symtab)
-		symtab_free (grind->symtab);
-	
 	G_OBJECT_CLASS (parent_class)->finalize (obj);
 }
 
@@ -548,7 +544,7 @@
 	
 	grind = (Alleyoop *) user_data;
 	if (grind->about == NULL) {
-		grind->about = gnome_about_new ("Alleyoop", VERSION, "Copyright 2003-2006 Jeffrey Stedfast <fejj novell com>",
+		grind->about = gnome_about_new ("Alleyoop", VERSION, "Copyright 2003-2009 Jeffrey Stedfast <fejj novell com>",
 						_("Alleyoop is a Valgrind front-end for the GNOME environment."),
 						(const char **) authors, NULL, _(translation), NULL);
 		
@@ -669,21 +665,6 @@
 	return TRUE;
 }
 
-static SymTab *
-load_symtab (const char *progname)
-{
-	SymTab *symtab;
-	char *filename;
-	
-	if (!(filename = vg_tool_view_scan_path (progname)))
-		return NULL;
-	
-	symtab = symtab_new (filename);
-	g_free (filename);
-	
-	return symtab;
-}
-
 GtkWidget *
 alleyoop_new (const char *tool, const char **argv, const char **srcdir)
 {
@@ -708,9 +689,6 @@
 	grind->argv = argv;
 	grind->srcdir = srcdir;
 	
-	if (argv && argv[0] != NULL)
-		grind->symtab = load_symtab (argv[0]);
-	
 	/* now construct the UI */
 	gnome_app_create_menus_with_data ((GnomeApp *) grind, alleyoop_menu, grind);
 	
@@ -736,7 +714,6 @@
 	grind->view = widget = vg_default_view_new ();
 	vg_tool_view_set_argv ((VgToolView *) widget, argv);
 	vg_tool_view_set_srcdir ((VgToolView *) widget, srcdir);
-	vg_tool_view_set_symtab ((VgToolView *) widget, grind->symtab);
 	gtk_widget_show (widget);
 	gnome_app_set_contents ((GnomeApp *) grind, widget);
 	

Modified: trunk/src/alleyoop.h
==============================================================================
--- trunk/src/alleyoop.h	(original)
+++ trunk/src/alleyoop.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -26,7 +26,6 @@
 
 #include "vgerror.h"
 #include "process.h"
-#include "symtab.h"
 
 #define ALLEYOOP_TYPE            (alleyoop_get_type ())
 #define ALLEYOOP(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), ALLEYOOP_TYPE, Alleyoop))
@@ -44,7 +43,6 @@
 	const char *tool;
 	const char **argv;
 	const char **srcdir;
-	SymTab *symtab;
 	
 	GtkWidget *view;
 	

Modified: trunk/src/getopts.c
==============================================================================
--- trunk/src/getopts.c	(original)
+++ trunk/src/getopts.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -618,6 +618,9 @@
 				
 				return GETOPTS_ERROR_BAD_OPTION;
 			}
+			
+			if (ctx->argindex > ctx->index)
+				ctx->index = ctx->argindex;
 		} else if (ctx->flags & GETOPTS_FLAG_BREAK_ON_FIRST_NONARG) {
 			break;
 		} else {
@@ -724,7 +727,7 @@
 }
 
 
-char **
+const char **
 getopts_get_args (GetOptsContext *ctx, int *nargs)
 {
 	int i, n;
@@ -738,7 +741,7 @@
 	if (nargs)
 		*nargs = n;
 	
-	return ctx->args;
+	return (const char **) ctx->args;
 }
 
 

Modified: trunk/src/getopts.h
==============================================================================
--- trunk/src/getopts.h	(original)
+++ trunk/src/getopts.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -129,7 +129,7 @@
 
 int getopts_get_next_index (GetOptsContext *ctx);
 
-char **getopts_get_args (GetOptsContext *ctx, int *nargs);
+const char **getopts_get_args (GetOptsContext *ctx, int *nargs);
 
 void getopts_perror (GetOptsContext *ctx, int err);
 

Modified: trunk/src/gimli.c
==============================================================================
--- trunk/src/gimli.c	(original)
+++ trunk/src/gimli.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/gimli.h
==============================================================================
--- trunk/src/gimli.h	(original)
+++ trunk/src/gimli.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/legolas.c
==============================================================================
--- trunk/src/legolas.c	(original)
+++ trunk/src/legolas.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/legolas.h
==============================================================================
--- trunk/src/legolas.h	(original)
+++ trunk/src/legolas.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/list.c
==============================================================================
--- trunk/src/list.c	(original)
+++ trunk/src/list.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/list.h
==============================================================================
--- trunk/src/list.h	(original)
+++ trunk/src/list.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c	(original)
+++ trunk/src/main.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/menu-utils.c
==============================================================================
--- trunk/src/menu-utils.c	(original)
+++ trunk/src/menu-utils.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/menu-utils.h
==============================================================================
--- trunk/src/menu-utils.h	(original)
+++ trunk/src/menu-utils.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/parser.c
==============================================================================
--- trunk/src/parser.c	(original)
+++ trunk/src/parser.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/parser.h
==============================================================================
--- trunk/src/parser.h	(original)
+++ trunk/src/parser.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/prefs.c
==============================================================================
--- trunk/src/prefs.c	(original)
+++ trunk/src/prefs.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/prefs.h
==============================================================================
--- trunk/src/prefs.h	(original)
+++ trunk/src/prefs.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/process.c
==============================================================================
--- trunk/src/process.c	(original)
+++ trunk/src/process.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/process.h
==============================================================================
--- trunk/src/process.h	(original)
+++ trunk/src/process.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgcachegrindprefs.c
==============================================================================
--- trunk/src/vgcachegrindprefs.c	(original)
+++ trunk/src/vgcachegrindprefs.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgcachegrindprefs.h
==============================================================================
--- trunk/src/vgcachegrindprefs.h	(original)
+++ trunk/src/vgcachegrindprefs.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgdefaultview.c
==============================================================================
--- trunk/src/vgdefaultview.c	(original)
+++ trunk/src/vgdefaultview.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -375,7 +375,7 @@
 	VgToolView *tool = (VgToolView *) view;
 	GtkTreeIter iter;
 	
-	if (!tool->symtab && !tool->srcdir)
+	if (!tool->srcdir)
 		return;
 	
 	gtk_tree_store_append (model, &iter, root);
@@ -868,17 +868,10 @@
 	return buf;
 }
 
-static int
-str_ends_with (const char *str, const char *match)
-{
-	return !(strcmp (str + strlen (str) - strlen (match), match));
-}
-
 static char *
 resolve_full_path (VgToolView *tool, VgErrorStack *stack)
 {
 	const char *filename;
-	SymTabSymbol *sym;
 	char *path;
 	
 	if (!(filename = stack->info.src.filename))
@@ -887,20 +880,6 @@
 	if (*filename == '/')
 		return g_strdup (filename);
 	
-	if (tool->symtab && (sym = symtab_resolve_addr (tool->symtab, (void *) stack->addr, FALSE))) {
-		if (sym->filename != NULL) {
-			if (*sym->filename == '/' && str_ends_with (sym->filename, filename)) {
-				path = g_strdup (sym->filename);
-				symtab_symbol_free (sym);
-				return path;
-			} else {
-				w(g_warning ("symtab_resolve_addr() found the wrong symbol for 0x%.8x", stack->addr));
-			}
-		}
-		
-		symtab_symbol_free (sym);
-	}
-	
 	if (tool->srcdir) {
 		unsigned int buflen;
 		const char *dir;

Modified: trunk/src/vgdefaultview.h
==============================================================================
--- trunk/src/vgdefaultview.h	(original)
+++ trunk/src/vgdefaultview.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -30,7 +30,6 @@
 
 #include "vgtoolview.h"
 #include "vgerror.h"
-#include "symtab.h"
 
 #ifdef __cplusplus
 extern "C" {

Modified: trunk/src/vgerror.c
==============================================================================
--- trunk/src/vgerror.c	(original)
+++ trunk/src/vgerror.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgerror.h
==============================================================================
--- trunk/src/vgerror.h	(original)
+++ trunk/src/vgerror.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vggeneralprefs.c
==============================================================================
--- trunk/src/vggeneralprefs.c	(original)
+++ trunk/src/vggeneralprefs.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vggeneralprefs.h
==============================================================================
--- trunk/src/vggeneralprefs.h	(original)
+++ trunk/src/vggeneralprefs.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vghelgrindprefs.c
==============================================================================
--- trunk/src/vghelgrindprefs.c	(original)
+++ trunk/src/vghelgrindprefs.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vghelgrindprefs.h
==============================================================================
--- trunk/src/vghelgrindprefs.h	(original)
+++ trunk/src/vghelgrindprefs.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgio.c
==============================================================================
--- trunk/src/vgio.c	(original)
+++ trunk/src/vgio.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgio.h
==============================================================================
--- trunk/src/vgio.h	(original)
+++ trunk/src/vgio.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgmemcheckprefs.c
==============================================================================
--- trunk/src/vgmemcheckprefs.c	(original)
+++ trunk/src/vgmemcheckprefs.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgmemcheckprefs.h
==============================================================================
--- trunk/src/vgmemcheckprefs.h	(original)
+++ trunk/src/vgmemcheckprefs.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgrule-editor.c
==============================================================================
--- trunk/src/vgrule-editor.c	(original)
+++ trunk/src/vgrule-editor.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgrule-editor.h
==============================================================================
--- trunk/src/vgrule-editor.h	(original)
+++ trunk/src/vgrule-editor.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgrule-list.c
==============================================================================
--- trunk/src/vgrule-list.c	(original)
+++ trunk/src/vgrule-list.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgrule-list.h
==============================================================================
--- trunk/src/vgrule-list.h	(original)
+++ trunk/src/vgrule-list.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgrule.c
==============================================================================
--- trunk/src/vgrule.c	(original)
+++ trunk/src/vgrule.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgrule.h
==============================================================================
--- trunk/src/vgrule.h	(original)
+++ trunk/src/vgrule.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgrulepattern.c
==============================================================================
--- trunk/src/vgrulepattern.c	(original)
+++ trunk/src/vgrulepattern.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgrulepattern.h
==============================================================================
--- trunk/src/vgrulepattern.h	(original)
+++ trunk/src/vgrulepattern.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgsearchbar.c
==============================================================================
--- trunk/src/vgsearchbar.c	(original)
+++ trunk/src/vgsearchbar.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgsearchbar.h
==============================================================================
--- trunk/src/vgsearchbar.h	(original)
+++ trunk/src/vgsearchbar.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgstrpool.c
==============================================================================
--- trunk/src/vgstrpool.c	(original)
+++ trunk/src/vgstrpool.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgstrpool.h
==============================================================================
--- trunk/src/vgstrpool.h	(original)
+++ trunk/src/vgstrpool.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgtoolprefs.c
==============================================================================
--- trunk/src/vgtoolprefs.c	(original)
+++ trunk/src/vgtoolprefs.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgtoolprefs.h
==============================================================================
--- trunk/src/vgtoolprefs.h	(original)
+++ trunk/src/vgtoolprefs.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by

Modified: trunk/src/vgtoolview.c
==============================================================================
--- trunk/src/vgtoolview.c	(original)
+++ trunk/src/vgtoolview.c	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -103,7 +103,6 @@
 vg_tool_view_init (VgToolView *view)
 {
 	view->argv = NULL;
-	view->symtab = NULL;
 	view->srcdir = NULL;
 	view->rules = NULL;
 }
@@ -139,15 +138,6 @@
 }
 
 
-void
-vg_tool_view_set_symtab (VgToolView *view, SymTab *symtab)
-{
-	g_return_if_fail (VG_IS_TOOL_VIEW (view));
-	
-	view->symtab = symtab;
-}
-
-
 static void
 tool_view_clear (VgToolView *view)
 {

Modified: trunk/src/vgtoolview.h
==============================================================================
--- trunk/src/vgtoolview.h	(original)
+++ trunk/src/vgtoolview.h	Sun Feb  8 18:06:19 2009
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Alleyoop
- *  Copyright (C) 2003-2006 Jeffrey Stedfast
+ *  Copyright (C) 2003-2009 Jeffrey Stedfast
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -23,8 +23,6 @@
 
 #include <gtk/gtk.h>
 
-#include "symtab.h"
-
 #ifdef __cplusplus
 extern "C" {
 #pragma }
@@ -46,8 +44,6 @@
 	const char **argv;    /* argv of program to debug */
 	const char **srcdir;  /* list of src dirs to check for src files */
 	
-	SymTab *symtab;
-	
 	GtkWidget *rules;
 };
 
@@ -79,7 +75,6 @@
 
 void vg_tool_view_set_argv (VgToolView *view, const char **argv);
 void vg_tool_view_set_srcdir (VgToolView *view, const char **srcdir);
-void vg_tool_view_set_symtab (VgToolView *view, SymTab *symtab);
 
 void vg_tool_view_clear (VgToolView *view);
 void vg_tool_view_reset (VgToolView *view);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]