an error in gdb insight

Fernando Nasser fnasser@cygnus.com
Thu Jul 27 06:06:00 GMT 2000


kings wrote:
> 
> program.
> Then the source of my program appear in the source window.
> I open the console window  and set all the arguments by set args.

So far so good...

> finally, i type run and press enter.

Don't do that!  That is not a real console, you know, it is just a 
little hack so people can issue commands that have not yet been added to the
GUI (probably because they don't fit in a GUI model).

You *must* use the Target Settings dialog and the options from the Run menu.

I will take note of the problem you found trying to use "run" on the console
window but it probably won't be easy to fix and won't given a very high priority
either.  But it will be listed in the bug database nevertheless.

Thanks for bringing this to our attention.

Regards.

kings wrote:
> 
> The date in my computer is correct and the date in the letter i mail to
> others is correct too.
> 
> My program was divided into two file testv2.c and testv3.c.
> I compile each file by
> gcc -g -c testv2.c
> gcc -g -c testv3.c
> and at last
> gcc -g -o testv2 testv2.o testv3.o
> 
> In the beginning, i type gdb.
> After all the source window appear, i open the executable file of my
> program.
> Then the source of my program appear in the source window.
> I open the console window  and set all the arguments by set args.
> finally, i type run and press enter.
> And the error message appear.
> 
> > starting program: /usr4/student/kings/mchang/testv2 12 34 56 78 90
> > Error: procfs: target_wait (wait_for_stop) line 3677,
> > /proc/05589:Interrupted system call.
> 
> But if i use gdb -nw to start gdb without GUI.
> I can debug my program normally.
> It means that if i do all the procedure above there are no error message
> apear.
> I can set arguments, run program and stop the program in the breakpoint i
> set.
> 
> The version of my compile is gcc 2.95.2
> Sparc-Sun-Solaris
> X11R5
> gdb 2000423
> 
> Thank you for your help heartily.
> 
> ----- Original Message -----
> From: Fernando Nasser <fnasser@cygnus.com>
> To: kings <kings@ms29.url.com.tw>
> Cc: <gdb@sourceware.cygnus.com>
> Sent: Tuesday, July 25, 2000 11:52 PM
> Subject: Re: an error in gdb insight
> 
> Please fix the date in your computer.  Your messages are dated 1999!
> 
> kings wrote:
> >
> > Dear maintainer:
> >
> > when i run my program in console window. There is an error message.
> >
> 
> What do you mean by "run my program in console window"?
> 
> Be precise or we can't help you.
> 
> > starting program: /usr4/student/kings/mchang/testv2 12 34 56 78 90
> > Error: procfs: target_wait (wait_for_stop) line 3677,
> > /proc/05589:Interrupted system call.
> >
> > my computer is sparc-sun-solaris with X11R5 and gdb -v is gdb 20000423
> >
> > Does it matter? What should i do?
> >
> 
> It means that gdb encountered a problem when trying to start and get hold of
> the program you're trying to debug.
> 
> What is *exactly* the command line you used to compile/link your program and
> what is the compiler version?
> 
> > PS: If i use gdb -nw. everything work normally.
> 
> That would be strange, depending on the answer to the previous questions.
> 


-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@cygnus.com


More information about the Gdb mailing list