Remove 'run cleanup chain'

Vladimir Prus vladimir@codesourcery.com
Wed Nov 14 12:54:00 GMT 2007


GDB now has a special 'run cleanup chain', but it seems to
be not really needed.

This cleanup chain is only used to call clear_solib in response
to 'run' command. However:
   - Just calling clear_solib is much simpler
   - We need to call clear_solib for attach, too, and it's done
   via direct call, so it's better to have run be similar to
   attach.

There's comment in jv-lang.c that hints that the run cleanup can
be useful, but is broken, and the code containing the
comment is not actually used itself.

So, it seems to me that carrying this general code for the
sake of a single client that is only complicated as result is not good,
here's a patch to remove run cleanup chain. OK?

- Volodya
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_cleanup.diff
Type: text/x-diff
Size: 5076 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20071114/09cd83e5/attachment.bin>


More information about the Gdb-patches mailing list