This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Should push_target pop all targets?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]