mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 18:41:27 +00:00
* 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.
This commit is contained in:
@@ -357,6 +357,19 @@ gdbarch_alloc (const struct gdbarch_info *info,
|
||||
}
|
||||
|
||||
|
||||
/* Free a gdbarch struct. This should never happen in normal
|
||||
operation --- once you've created a gdbarch, you keep it around.
|
||||
However, if an architecture's init function encounters an error
|
||||
building the structure, it may need to clean up a partially
|
||||
constructed gdbarch. */
|
||||
void
|
||||
gdbarch_free (struct gdbarch *arch)
|
||||
{
|
||||
/* At the moment, this is trivial. */
|
||||
free (arch);
|
||||
}
|
||||
|
||||
|
||||
/* Ensure that all values in a GDBARCH are reasonable. */
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user