Bug 285320 - [console] Print prompt in gdb console
Summary: [console] Print prompt in gdb console
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 6.0   Edit
Hardware: PC Linux
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 15:26 EDT by Marc Khouzam CLA
Modified: 2020-09-04 15:22 EDT (History)
4 users (show)

See Also:


Attachments
Prototype (3.28 KB, patch)
2009-07-31 15:26 EDT, Marc Khouzam CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2009-07-31 15:26:25 EDT
Created attachment 143188 [details]
Prototype

There has been requests to have the (gdb) prompt shown in the gdb console.  The trick is to only show the prompt when the user is interacting with the gdb console, not when the prompt is triggered by MI commands.

The attached patch is a prototype to do this.  I ran out of time to fully test it.  The code needs cleaning up too.
Comment 1 Jan Kratochvil CLA 2010-11-28 21:51:42 EST
Isn't this a DUPLICATE of Bug 78368?
Comment 2 Marc Khouzam CLA 2010-11-29 09:24:26 EST
(In reply to comment #1)
> Isn't this a DUPLICATE of Bug 78368?

Kind of, but actually not.  The bug 78368 is for the CDI GDB integration, while this bug is for the DSF GDB integration.  The two patches should be similar, but affect different classes.