This is the mail archive of the gdb-patches@sourceware.org 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: [patchv3 1/5] Mostly code cleanup: Constification


On Tue, 17 Sep 2013 00:22:12 +0200, Doug Evans wrote:
> Jan Kratochvil writes:
>  > -	catch_command_errors (symbol_file_add_main, symarg,
>  > -			      !batch_flag, RETURN_MASK_ALL);
>  > +	{
>  > +	  volatile struct gdb_exception e;
>  > +
>  > +	  TRY_CATCH (e, RETURN_MASK_ALL)
>  > +	    {
>  > +	      symbol_file_add_main (symarg, !batch_flag);
>  > +	    }
>  > +	  exception_print (gdb_stderr, e);
>  > +	}
>  >      }
>  >  
>  >    if (corearg && pidarg)
> 
> There is catch_command_errors_const.
> Would that work here?

It would work here.  But I thought catch_command_errors* is deprecated in
favor of TRY_CATCH.  Maybe I could split this patch in two, but the end would
be the same.


Jan


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