anjuta r3521 - in trunk: . plugins/debug-manager



Author: sgranjoux
Date: Fri Jan 25 21:56:40 2008
New Revision: 3521
URL: http://svn.gnome.org/viewvc/anjuta?rev=3521&view=rev

Log:
	* plugins/debug-manager/stack_trace.c:
	Probably fix #510028: crash debugger when having a relative filename
	in stack trace


Modified:
   trunk/ChangeLog
   trunk/plugins/debug-manager/stack_trace.c

Modified: trunk/plugins/debug-manager/stack_trace.c
==============================================================================
--- trunk/plugins/debug-manager/stack_trace.c	(original)
+++ trunk/plugins/debug-manager/stack_trace.c	Fri Jan 25 21:56:40 2008
@@ -290,8 +290,16 @@
 		adr = g_strdup_printf ("0x%lx", frame->address);
 		if (frame->file)
 		{
-			uri = gnome_vfs_get_uri_from_local_path(frame->file);
-			file = strrchr(uri, '/') + 1;
+			if (g_path_is_absolute (frame->file))
+			{					
+				uri = gnome_vfs_get_uri_from_local_path(frame->file);
+				file = strrchr(uri, '/') + 1;
+			}
+			else
+			{
+				uri = NULL;
+				file = frame->file;
+			}
 		}
 		else
 		{



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