kgdb: Fix double-free bug
authorJohn Marino <dragonflybsd@marino.st>
Sun, 1 Jan 2012 12:00:29 +0000 (13:00 +0100)
committerCharlie Root <root@akane.zefyris.com>
Sun, 1 Jan 2012 13:49:19 +0000 (14:49 +0100)
commit7f357fef10b5ba09ef6123cf559206c73e3d290c
tree8797101cd4ac4ddd8e24fafe0a3212a235a508f4
parent1dd5c540cc7405989fdd2d4fb33fcdf5f2c19b1a
kgdb: Fix double-free bug

It was a mistake to reuse target sections for each inferior.  Leaving the
default section for each program space eliminates the redundant xfrees.
The exec.c function "resize_table_sections" code was painful to look at with
unused variables and unnecessary memory reallocations, so it was altered
at the same time.
contrib/gdb-7/README.DRAGONFLY
contrib/gdb-7/gdb/exec.c
gnu/usr.bin/gdb/kgdb/trgt.c