[PATCH 2/3] Eliminate the 'the_core_target' global

Tom Tromey tom@tromey.com
Fri May 4 15:59:00 GMT 2018

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> Currently, core_file_command calls 'the_core_target->detach()' even if
Pedro> the core target is not open and pushed on the target stack.  If it is
Pedro> indeed not open, then the practical effect is that
Pedro> core_target::detach() prints "No core file now.".  That is preserved
Pedro> by printing that directly from within core_file_command if not
Pedro> debugging a core.

I read this patch & it seemed fine to me.


More information about the Gdb-patches mailing list