[RFA] Move printing of TLS related error messages to dwarf2loc.c

Kevin Buettner kevinb@redhat.com
Thu Mar 10 20:43:00 GMT 2005


On Wed, 9 Mar 2005 15:20:43 -0500
Daniel Jacobowitz <drow@false.org> wrote:

> 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.

You're right.  It is more readable.

See:

    http://sources.redhat.com/ml/gdb-patches/2005-03/msg00171.html

Kevin



More information about the Gdb-patches mailing list