gdb and /dev/ptyp1 bug

I tried to debug a program with gdb
and faced out the following problem when doing the following:

$ gdb myprog
break main
run

Accessing /dev/ptyp1
“No such file or directory”

Perhaps there is such a thing called /dev/ptyp1 in /dev !

What should I do ?

Fred

May be that “No such file or directory” error refers to your program. Try adding
dot slash in front of it, i.e.

$gdb ./myprog


On Sat, 13 Jan 2001 01:37:55 -0500, “Fred” <fprog@users.sourceforge.net> wrote:

I tried to debug a program with gdb
and faced out the following problem when doing the following:

$ gdb myprog
break main
run

Accessing /dev/ptyp1
“No such file or directory”

Perhaps there is such a thing called /dev/ptyp1 in /dev !

What should I do ?

Fred