[patch/rfc] Deprecate throw_reason

Andrew Cagney cagney@gnu.org
Wed Jan 19 21:14:00 GMT 2005


Eli Zaretskii wrote:
>>Date: Tue, 18 Jan 2005 15:56:20 -0500
>>From: Andrew Cagney <cagney@gnu.org>
>>
>>Index: breakpoint.c
>>===================================================================
>>RCS file: /cvs/src/src/gdb/breakpoint.c,v
>>retrieving revision 1.195
>>diff -p -u -r1.195 breakpoint.c
>>--- breakpoint.c	18 Jan 2005 17:04:27 -0000	1.195
>>+++ breakpoint.c	18 Jan 2005 20:40:05 -0000
>>@@ -5144,7 +5144,7 @@ break_command_1 (char *arg, int flag, in
>> 	     error.  */
>> 
>> 	  if (pending_break_support == AUTO_BOOLEAN_FALSE)
>>-	    throw_reason (RETURN_ERROR);
>>+	    deprecated_throw_reason (RETURN_ERROR);
> 
> 
> It's IMHO not nice that we have deprecated_something in a core-GDB
> source file such as breakpoint.c.  Can we replace this with a
> party-line code?

Yes, we most certainly can, and will.  But in the interum, I'll check 
this in.

Andrew

>>--- utils.c	14 Jan 2005 21:34:36 -0000	1.145
>>+++ utils.c	18 Jan 2005 20:40:07 -0000
> 
> 
> Same here.
> 



More information about the Gdb-patches mailing list