Author Topic: warning: GDB: Failed to set controlling terminal: Operation not permitted  (Read 6410 times)

rockysynergy

  • Guest
Hi,

My operating system is  fedora 22. When I try to debug the C code. I got warning saying "warning: GDB: Failed to set controlling terminal: Operation not permitted". How can I fix this please?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5249
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Did you search before you ask?
There are many same questions on the internet or in our forum, such as:
GDB: Failed to set controlling terminal
error when running gdb
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.