This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: target_terminal_ours and target_terminal_ours_for_output


On Oct 28, 12:35pm, Elena Zannoni wrote:

> I was looking at Jeff's patch, and noticed that we have two target
> methods, called to_target_terminal_ours and
> to_target_terminal_ours_for_output.  We then have two functions
> target_terminal_ours and target_terminal_ours_for_output (in inflow.c)
> which behave exaclty the same (look at the parameter of
> terminal_ours_1 not being used at all).
> 
> I cannot find any target that sets these pair of methods differently,
> i.e. there is no difference between the two, ever.
> 
> Should one of the two be deleted?  At some point the two functions in
> inflow.c used to differ, but in 1993 the difference was deleted,
> i.e. the parameter of terminal_ours_1 stopped being used.
> Seems this is something that should be cleaned up.

I agree.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]