anjuta r4346 - in trunk: . plugins/build-basic-autotools plugins/debug-manager



Author: sgranjoux
Date: Fri Oct 17 20:12:15 2008
New Revision: 4346
URL: http://svn.gnome.org/viewvc/anjuta?rev=4346&view=rev

Log:
	* plugins/debug-manager/start.c,
	plugins/build-basic-autotools/plugin.c:
	Debugger was unable to start if build and source directory are
	different


Modified:
   trunk/ChangeLog
   trunk/plugins/build-basic-autotools/plugin.c
   trunk/plugins/debug-manager/start.c

Modified: trunk/plugins/build-basic-autotools/plugin.c
==============================================================================
--- trunk/plugins/build-basic-autotools/plugin.c	(original)
+++ trunk/plugins/build-basic-autotools/plugin.c	Fri Oct 17 20:12:15 2008
@@ -1364,10 +1364,8 @@
 	gchar *target;
 	BuildProgram *prog;
 	
-		
-	src_dir = g_path_get_dirname (filename);
-	build_dir = build_dir_from_source (plugin, src_dir);
-	g_free (src_dir);
+	/* the file of this command is a target, no need to use source directory */		
+	build_dir = g_path_get_dirname (filename);
 	target = g_path_get_basename (filename);
 
 	prog = build_program_new_with_command (build_dir,

Modified: trunk/plugins/debug-manager/start.c
==============================================================================
--- trunk/plugins/debug-manager/start.c	(original)
+++ trunk/plugins/debug-manager/start.c	Fri Oct 17 20:12:15 2008
@@ -938,9 +938,9 @@
 		load_target (this, this->build_target);
 		start_target (this);
 	}
-	else if (err->code == IANJUTA_BUILDER_FAILED)
+	else
 	{
-		/* Target is not up to date */
+		/* Target is not up to date or an error happens with make -q */
 		this->build_handle = ianjuta_builder_build (IANJUTA_BUILDER (builder), this->build_target, on_build_finished, this, NULL);
 		return;
 	}



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