Should push_target pop all targets?

Andrew Cagney cagney@gnu.org
Fri Oct 17 18:51:00 GMT 2003


> On GNU/Linux, attach breaks (yet the exact same test passes on BSD ...)

I believe this happens:

(gdb) attach pid
-> calls attach_command()
    -> calls ... find_default_run_target's attach
    -> calls exec_file_attach()
       -> calls push_target (&exec_ops)
          pops the "run" target

outch!

Andrew




More information about the Gdb mailing list