This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix a goof in the profiling code


On Mon, Jan 27, 2003 at 02:36:25PM -0500, Andrew Cagney wrote:
> >+  warning ("Profiling support is not available on this system.");
> 
> FYI,
> 
> that should error().

I thought about this at the time and settled on warning, but my
reasoning was pretty bogus now that I think about it.  OK, changed.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-01-27  Daniel Jacobowitz  <drow@mvista.com>

	* maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
	(maintenance_set_profile_cmd): Use error () instead of warning ().

Index: maint.c
===================================================================
RCS file: /cvs/src/src/gdb/maint.c,v
retrieving revision 1.32
diff -u -p -r1.32 maint.c
--- maint.c	27 Jan 2003 14:36:56 -0000	1.32
+++ maint.c	27 Jan 2003 20:25:14 -0000
@@ -692,7 +692,7 @@ maintenance_set_profile_cmd (char *args,
 static void
 maintenance_set_profile_cmd (char *args, int from_tty, struct cmd_list_element *c)
 {
-  warning ("Profiling support is not available on this system.");
+  error ("Profiling support is not available on this system.");
 }
 #endif
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]