Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Communication through GDB Console

Ok... Thank you all for the info. 

I too could notice the same as I debugged through the code. The gdb
output itself contained the confirmation message "(Delete all
breakpoints? (y or n) [answered Y; input not from terminal])" which
means Eclipse has nothing to do with it.

Thanks,
Malu


-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Vladimir Prus
Sent: Monday, February 04, 2013 1:52 PM
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] Communication through GDB Console

On 01.02.2013 17:43, Dave Korn wrote:
> On 01/02/2013 05:56, Malu Sasi wrote:
>
>> If I set the command "d br" (delete breakpoints) from gdb console 
>> view, GDB will ask for confirmation whether to delete all breakpoints
or not.
>> But before we could handle this, eclipse itself handle this value
"Y".
>> Please see trace below:
>
>> 134,959 56-interpreter-exec console "d br"
>> 134,966 ~"Delete all breakpoints? (y or n) [answered Y; input not 
>> from terminal]\n"
>> 134,967 =breakpoint-deleted,id="3"
>> 134,967 =breakpoint-deleted,id="4"
>> 134,967 =breakpoint-deleted,id="5"
>> 134,967 56^done
>> 134,967 (gdb)
>
>> I would like to know if this confirmation can be handled by us rather

>> than allowing eclipse to reply.
>
>    It's not actually Eclipse that does that, it's the behaviour of GDB

> when it's not being run in an interactive terminal.  You'd have to 
> build a custom version of GDB from sources to change it - look at the 
> routine
> defaulted_query() in gdb/utils.c if you want to give that a try.

And then, MI does not provide any mechanisms to implement queries like
that either, so it would have to be modified as well.

--
Vladimir Prus
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.



Back to the top