CLion Remove GDB Server possible issues...

已完成

Hi,

I use the last CLion : CL-193.5233.144, built on December 6, 201

But with previous version it was the same :

1 - When debugging start, IDE do not handle break on startup and assume that program is started

  > I need to click on "pause" and click on "start" to start my application...

2 - When i click on "stop", IDE assume that application stopped.

  > I need to do a "killall" using my binary name on the target to really stop it

 

I don't test break points and interactive debugging for the moment...

 

Regards,

 

Dev : Ubuntu 18 stable / 64 bits / x64

Target : Buildroot/Linux/Xenomai 32 bits / Arm v7

Toolchain : gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf with GNU gdb (GDB) 8.2 (the last one)

 

0
Avatar
Permanently deleted user

> IDE do not handle break on startup and assume that program is started

 

Could clarify that?

0
Avatar
Permanently deleted user

Hi,

Short explication : debugger is not synchronized with GDB initial state.

The story : I click on "bugs" icon, debugger connects to target, start the application on the target.

> On the target the application is started but break ( if it's like under eclipse on the first line of main).

> On the IDE the "debug area" (lower left) display stop & pause button (enabled) and disable : "play & restart", so it supposes the application is running and not break somewhere.

> Hack : I need to click on "pause" wait until IDE synchronize is UI with the debugger. Finally IDE display my code and the break location somewhere on my code (not main), and it enable "play\continue" (and disable pause).

At this state I can click on "play\continue" and the debugger seems works normally.

But when I finally click on "stop", the debugger console indicates "detach process" and do not allow me to really stop the application, i need to execute a "killall myapp" on a console to really stop the application...

Regards,

PS : If need i can reserve some time to test 'patch'...

0
Avatar
Permanently deleted user

No solution & no answer after more than one month ?

0
Avatar
Permanently deleted user

Could you please divide that to several separate tickets with precise description and steps to reproduce: https://youtrack.jetbrains.com/issues/CPP.

Thanks in advance.

 

 

 

0

请先登录再写评论。