* Stop sign ignored while debugging linux pgm
@ 2005-03-25 19:53 geneSmith
2005-03-26 0:14 ` geneSmith
0 siblings, 1 reply; 2+ messages in thread
From: geneSmith @ 2005-03-25 19:53 UTC (permalink / raw)
To: insight
I have a program (written by someone else) that I need to look at with
gdb. The program runs in a tight loop looking for a keypress and
servicing tcp/ip events with select. When the program runs under insight
it seems to remove all the oxygen from the insight gui in that the STOP
button and other menus are ineffective. The program itself responds to
the keypresses appropriately. Also, if a window covers the insight gui
with the program running under its control it never get redrawn.
When the program runs stand-alone (with insight/gdb) it does not respond
to ctrl-c. Do I possibly need some sort of SIGINT handler?
When I write my own program just looping forever on printf it responds
to the STOP button (SIGINT) as expected and stops the program
executation as I would expect. But the other program program does not.
Tks,
-gene
--
Lit up like Levy's
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Stop sign ignored while debugging linux pgm
2005-03-25 19:53 Stop sign ignored while debugging linux pgm geneSmith
@ 2005-03-26 0:14 ` geneSmith
0 siblings, 0 replies; 2+ messages in thread
From: geneSmith @ 2005-03-26 0:14 UTC (permalink / raw)
To: insight
geneSmith wrote, On 3/25/2005 2:52 PM:
> I have a program (written by someone else) that I need to look at with
> gdb. The program runs in a tight loop looking for a keypress and
> servicing tcp/ip events with select. When the program runs under insight
> it seems to remove all the oxygen from the insight gui in that the STOP
> button and other menus are ineffective. The program itself resesponds to
> the keypresses appropriately. Also, if a window covers the insight gui
> with the program running under its control it never get redrawn.
>
> When the program runs stand-alone (without insight/gdb) it does not respond
> to ctrl-c. Do I possibly need some sort of SIGINT handler?
>
> When I write my own test program just looping forever on printf it responds
> to the STOP button (SIGINT) as expected and stops the program
> executation as I would expect. But the other program does not.
>
> Tks,
> -gene
Found that program had termios flag ISIG forced off. If left on can now
at least do ctrl-c in program's xterm and cause insight to halt which is
good. However, STOP button (and other menu items in insight) still
disabled while program is running. Would be nice if STOP button worked
but having ctrl-c respond is next best thing.
-gene
ps: Corrected a couple typos in original post above.
--
Lit up like Levy's
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-26 0:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-25 19:53 Stop sign ignored while debugging linux pgm geneSmith
2005-03-26 0:14 ` geneSmith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).