Does GDB have an option to keep symbols loaded after detaching?

Srinath Avadhanula <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAKMNpPH3gZgXiNG0adv9_qnfL9yMEUyrh4236YZi5Q2rmb+b=w@mail.gmail.com>
Hi,

Is there a way to tell GDB to keep all the shared library symbols
loaded when it detaches from the inferior?

That way if we attach to a new instance of the same executable with no
(or very minor) modifications to any of the shared libraries, it
should attach much quicker.

As a comparison, I see that LLDB does seem to re-attach much faster
than the first time attach. GDB takes almost the same time every time.

Regards,
Srinath
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.