This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Let dwarf2 CFI's execute_stack_op be used outside of CFI
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 4 Apr 2002 15:30:06 -0500
- Subject: Re: [PATCH] Let dwarf2 CFI's execute_stack_op be used outside of CFI
- References: <npsn6knubd.fsf@zwingli.cygnus.com> <Pine.LNX.4.44.0204041523150.17957-100000@dberlin.org>
On Thu, Apr 04, 2002 at 03:24:44PM -0500, Daniel Berlin wrote:
> So i'm implementing this, and want to know
> ...
> > /* Return the value N values down from the top of CONTEXT's stack.
> > This raises an error if there aren't at least N+1 values on the stack. */
> > ADDR_TYPE dwarf_expr_fetch (struct dwarf_expr_context *context, int n);
> >
>
> How would you like me to raise the error?
> Should i add an error handling function to the dwarf_expr_context struct?
> Or just call "error", under the assumption that any libdwarf library we
> write would have error functions of it's own (all the libdwarf's do), and
> that it'll be the typical printf arguments error function.
[If you go for the latter, please document it clearly in some
header....]
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer