* job control stuff in tracepoint.c
@ 2001-07-12 5:17 Mark Kettenis
2001-07-12 10:59 ` Elena Zannoni
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mark Kettenis @ 2001-07-12 5:17 UTC (permalink / raw)
To: gdb; +Cc: ezannoni
Ok, I'm looking into cleaning up some host-dependent stuff;
autoconfigifying bits and so on.
I'm currently looking into stuff dealing with job-control signals
(SIGTSTP. sigprocmask, sigsetmask). In that context we also do some
really wierd stuff with a macro called STOP_SIGNAL. The reason for
its existence has been eliminated (broken job-control handling on the
Convex, support for which has been removed), yet it still exists. I'd
like to eleminate STOP_SIGNAL (and revert to using SIGTSTP where
appropriate), but when I did that I discovered that STOP_SIGNAL is
used in tracepoint.c wheras it isn't defined at all, not even to
SIGTSTP. Replacing #ifdef STOP_SIGNAL, with #ifdef SIGTSTP leads to
compilation failure since the variable job_control isn't declared.
I'm not quite sure what the code is trying to do. Something with
redisplaying the prompt when running asynchronously? Elena, can you
shed some light on this?
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: job control stuff in tracepoint.c
2001-07-12 5:17 job control stuff in tracepoint.c Mark Kettenis
@ 2001-07-12 10:59 ` Elena Zannoni
2001-07-12 11:53 ` Obsolete support in core; Was: " Andrew Cagney
2001-07-12 13:06 ` Elena Zannoni
2 siblings, 0 replies; 4+ messages in thread
From: Elena Zannoni @ 2001-07-12 10:59 UTC (permalink / raw)
To: Mark Kettenis; +Cc: gdb, ezannoni
Mark Kettenis writes:
> Ok, I'm looking into cleaning up some host-dependent stuff;
> autoconfigifying bits and so on.
>
> I'm currently looking into stuff dealing with job-control signals
> (SIGTSTP. sigprocmask, sigsetmask). In that context we also do some
> really wierd stuff with a macro called STOP_SIGNAL. The reason for
> its existence has been eliminated (broken job-control handling on the
> Convex, support for which has been removed), yet it still exists. I'd
> like to eleminate STOP_SIGNAL (and revert to using SIGTSTP where
> appropriate), but when I did that I discovered that STOP_SIGNAL is
> used in tracepoint.c wheras it isn't defined at all, not even to
> SIGTSTP. Replacing #ifdef STOP_SIGNAL, with #ifdef SIGTSTP leads to
> compilation failure since the variable job_control isn't declared.
>
> I'm not quite sure what the code is trying to do. Something with
> redisplaying the prompt when running asynchronously? Elena, can you
> shed some light on this?
>
> Mark
Sure, I'll look into it. (Got a late start today).
Elena
^ permalink raw reply [flat|nested] 4+ messages in thread
* Obsolete support in core; Was: job control stuff in tracepoint.c
2001-07-12 5:17 job control stuff in tracepoint.c Mark Kettenis
2001-07-12 10:59 ` Elena Zannoni
@ 2001-07-12 11:53 ` Andrew Cagney
2001-07-12 13:06 ` Elena Zannoni
2 siblings, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2001-07-12 11:53 UTC (permalink / raw)
To: gdb
> The reason for
> its existence has been eliminated (broken job-control handling on the
> Convex, support for which has been removed), yet it still exists.
For the record, either way, it doesn't matter. As far as I'm concerned,
if someone finds a nasty hack that is there for an obsolete target,
eliminating it is still an obvious fix.
There is a corollary, if someone finds nasty target/host dependant code
then one way of fixing it is to obsolete that system :-) Suggestions
for host/target combinations welcome (ChrisF, sorry *-pe has already
been nominated :-)
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: job control stuff in tracepoint.c
2001-07-12 5:17 job control stuff in tracepoint.c Mark Kettenis
2001-07-12 10:59 ` Elena Zannoni
2001-07-12 11:53 ` Obsolete support in core; Was: " Andrew Cagney
@ 2001-07-12 13:06 ` Elena Zannoni
2 siblings, 0 replies; 4+ messages in thread
From: Elena Zannoni @ 2001-07-12 13:06 UTC (permalink / raw)
To: Mark Kettenis; +Cc: gdb, ezannoni
Mark Kettenis writes:
> Ok, I'm looking into cleaning up some host-dependent stuff;
> autoconfigifying bits and so on.
>
> I'm currently looking into stuff dealing with job-control signals
> (SIGTSTP. sigprocmask, sigsetmask). In that context we also do some
> really wierd stuff with a macro called STOP_SIGNAL. The reason for
> its existence has been eliminated (broken job-control handling on the
> Convex, support for which has been removed), yet it still exists. I'd
> like to eleminate STOP_SIGNAL (and revert to using SIGTSTP where
> appropriate), but when I did that I discovered that STOP_SIGNAL is
> used in tracepoint.c wheras it isn't defined at all, not even to
> SIGTSTP. Replacing #ifdef STOP_SIGNAL, with #ifdef SIGTSTP leads to
> compilation failure since the variable job_control isn't declared.
>
> I'm not quite sure what the code is trying to do. Something with
> redisplaying the prompt when running asynchronously? Elena, can you
> shed some light on this?
>
> Mark
OK. Nothing specifically required this code in async, except to keep
compatibility with the behavior in sync mode. The code about SIGTSTP
in event-top.c is a clone (with async modifications) of what was in
top.c already.
The fact that tracepoint.c doesn't know about job_control is because
it doesn't have an #include "terminal.h" (neither does inflow.c). The
reason I touched that code in tracepoint.c is because I needed to make
it work with the async model. Michael Snyder was the original author
of tracepoint.c.
(I looked at our internal repository history, and I didn't find
anyhting enlightening).
Actually, my guess is that this code in tracepoint.c was cloned from
top.c, command_line_input().
Given this, if you think it can be cleaned up, I would say go ahead.
Elena
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-07-12 13:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-12 5:17 job control stuff in tracepoint.c Mark Kettenis
2001-07-12 10:59 ` Elena Zannoni
2001-07-12 11:53 ` Obsolete support in core; Was: " Andrew Cagney
2001-07-12 13:06 ` Elena Zannoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox