This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFA: gdbarch_free
- To: Jim Blandy <jimb at cygnus dot com>
- Subject: Re: RFA: gdbarch_free
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 29 Feb 2000 12:02:18 +1100
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <200002282302.SAA13215@zwingli.cygnus.com>
Jim Blandy wrote:
>
> There are no uses for this yet, except in some code that's not ready
> for release yet.
>
> 2000-02-28 Jim Blandy <jimb@redhat.com>
>
> * gdbarch.sh: Emit a definition and declaration for gdbarch_free,
> a companion to gdbarch_alloc, which allows a gdbarch init function
> to free partially-built gdbarch structures.
> * gdbarch.c, gdbarch.h: Regenerated.
Jim,
Can you expand a little.
From memory, I figured that if an _initialize* function failed to create
a gdbarch the process was somewhat hosed and calling internal_error()
was probably the best thing to do.
Andrew