Tuesday, July 20, 2021

Digest for comp.lang.c++@googlegroups.com - 4 updates in 1 topic

red floyd <no.spam.here@its.invalid>: Jul 19 05:55PM -0700

On 7/19/2021 12:15 PM, Paulo da Silva wrote:
> -nx which tells eclipse to not read any command from .gdbinit file!
 
> Does anyone here have used eclipse for such purpose that could perhaps help?
 
> Thank you.
 
Have you tried starting the program in a terminal, and then attaching
the eclipse debugger to the PID of that process?
Paulo da Silva <p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt>: Jul 20 02:25AM +0100

Às 01:55 de 20/07/21, red floyd escreveu:
 
>> Thank you.
 
> Have you tried starting the program in a terminal, and then attaching
> the eclipse debugger to the PID of that process?
 
How do I do that?
Insert some sleep at the beginning, launch it and then use "Attach to
Application" in the Debug Configurations?
I'll try that, but it's weird for a thing that should be simple.
Thanks
Paulo da Silva <p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt>: Jul 20 02:33AM +0100

Às 02:25 de 20/07/21, Paulo da Silva escreveu:
> Application" in the Debug Configurations?
> I'll try that, but it's weird for a thing that should be simple.
> Thanks
 
It failed!
A popup message appears:
 
Error in final launch sequence:
 
Failure to attach to process: testC [56830]
Error:
Failed to execute MI command:
-target-attach 56830
 
Error message from debugger back end:
ptrace: Operação não permitida. (Tr. from pt: Operation not
allowed/permited)
"Öö Tiib" <ootiib@hot.ee>: Jul 20 03:36AM -0700

On Tuesday, 20 July 2021 at 04:33:23 UTC+3, Paulo da Silva wrote:
 
> Error message from debugger back end:
> ptrace: Operação não permitida. (Tr. from pt: Operation not
> allowed/permited)
 
Perhaps your IDE is misconfigured. Debugger must be set up
there:
<https://help.eclipse.org/2021-06/index.jsp?topic=%2Forg.eclipse.cdt.debug.application.doc%2Ftasks%2Fcdt_t_run_dbg.htm>
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: