Bug 497167 - [console] Direct IO to an eclipse console for a new process created directly from the gdb console
Summary: [console] Direct IO to an eclipse console for a new process created directly ...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 303808
  Show dependency tree
 
Reported: 2016-07-01 19:35 EDT by Marc Khouzam CLA
Modified: 2020-09-04 15:18 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2016-07-01 19:35:32 EDT
If the user starts a new process directly from the GDB console, for example like this:

  add-inferior -exec /home/user/a.out
  inferior 2
  start

CDT handled the new process and adds it to the debug view.  However, that process is not hooked to an eclipse console.

It would be nice to automatically redirect the process's IO to an eclipse console in this case.

I think we could do this by using the MI event =thread-group-added, and creating a PTY for the new process and setting it in GDB.  By the time the user starts the process, the IO will go to an eclipse console.