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: [RFA] Move printing of TLS related error messages to dwarf2loc.c


On Mon, Feb 07, 2005 at 02:45:36PM -0700, Kevin Buettner wrote:
> +    {
> +      struct get_thread_local_address_args args;
> +      struct exception ex;
> +      int objfile_is_library = (debaton->objfile->flags & OBJF_SHARED);
> +
> +      args.ptid = inferior_ptid;
> +      args.objfile = debaton->objfile;
> +      args.offset = offset;
> +
> +      ex = catch_exception (uiout, get_thread_local_address, &args,
> +                            RETURN_MASK_ALL);

Would you mind redoing this using the new TRY_CATCH?  It's ever so much
more readable.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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