Trying to debug a program using DDD/GDB that requires Sudo to run
by Senitar from LinuxQuestions.org on (#5FXZ3)
Hi,
I am a linux novice. I have a Raspberry Pi 4 purchased from CanaKit. The program I have created requires Sudo to run since it attempts to change the scheduler for a threat that it spawns. When I tried to debug it using DDD I get a privilege violation since it seems GDB does not start the program as Sudo. After searching the web for hours, I have not found anything that explains how to get DDD to do this.
Any help will be greatly appreciated
Joe


I am a linux novice. I have a Raspberry Pi 4 purchased from CanaKit. The program I have created requires Sudo to run since it attempts to change the scheduler for a threat that it spawns. When I tried to debug it using DDD I get a privilege violation since it seems GDB does not start the program as Sudo. After searching the web for hours, I have not found anything that explains how to get DDD to do this.
Any help will be greatly appreciated
Joe