开发者

Something wrong with my gdb or KDevelop IDE?

I have Ubuntu 9.04 and KDevelop IDE.

When I am trying to debug C++ console app, it tells me:

GDB cannot use the tty* or pty* devices. Check the settings on /dev/tty* and /dev/pty* As root you may need to "chmod ug+rw" tty* and pty* devices and/or add the user to the tty group u开发者_开发问答sing "usermod -G tty username".

I installed gcc and gdb, and project compiles OK. Do you have any suggestions? (My apologizes if it is a noobie question)


Have you tried what is being suggested? It seems that you have a permission or a group configuration issue on the character device gdb is trying to use to write things back to you.

Here's what to do:

  • If you know the root password of your system, issue the following commands at a terminal/shell prompt:

    su -

    you will be asked to enter the root password

    chmod ug+rw /dev/tty*

    exit

  • If you know what a sudoer is and if you are one, issue the following command:

    sudo chmod ug+rw /dev/tty*

Then try debug your program again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜