I am trying to debug an application which runs on another target(remote) machine. I can run this application on remote machine and debug my code under admin user privileges. But I need to start gdbserver and my application under root privilages to understand exact behavior so I couldn't start gdbserver and application with root. Is there anybody can help me?
Asked
Active
Viewed 126 times
1 Answers
0
I haven't done it with recent Eclipse version but here are my notes for this. Not sure of all menu/tab names (I'm not working with English version)
on target you must run gdb server specifying port
target # gdbserver :3210 ./mytest
on dev platform
eclipse config: (/ means sub-menu or tab except if quoted)
run / 'debug configuration' / 'C/C++ remote application' /
main-tab / set : Manual remote debugging (lower part)
debugger-tab / main-tab / set gdb debugger:
debugger-tab / connection-tab / set: tcp , ip(target ip) , port(3210)
Hope this helps

jo_
- 8,324
- 1
- 18
- 14
-
thanks for your answer but I couldn't understand which part is regarding with root privilages? – golazo Nov 26 '18 at 15:05
-