This is the mail archive of the gdb-patches@sourceware.org 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]

[RFC] windows-nat.c: New oddity after copy console information for new console patch.



> -----Message d'origine-----
> De?: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Christopher Faylor
> Envoyé?: Sunday, May 30, 2010 7:11 PM
> À?: gdb-patches@sourceware.org; Pierre Muller
> Objet?: Re: [RFA] windows-nat.c: Copy console information for new
> console
> 
> On Fri, May 28, 2010 at 12:16:59PM +0200, Pierre Muller wrote:
> >> >> From Christopher Faylor
> >> >> I actually thought fairly carefully about flags.  If you have a
> >> >> function
> >> >> which controls console info, then the function should set the
> flags
> >> >> appropriately to deal with the console info.
> >> >
> >> >
> >> >  As you prefer,
> >> >here is a new version that also takes DWORD *flags as parameter.
> >> >  I also tried to explain a little bit better
> >> >what the function tries to do.
> >>
> >> Thanks.  Looks good.  I forgot to say:  Thanks for doing this.  It
> >> looks like
> >> a nice improvement.
> >
> >  Hi Christopher,
> >  does this mean that you want to test it
> >a little bit more before you give some more detailed
> >review or should I understand this as an approval?
> 
> Wow.  You like to go back and forth don't you?

  Not really, but I prefer to ask once more rather
than doing something wrong.
> Just apply it already.

 Applied yesterday...
But I just noticed a strange, probably unwanted effect of my patch:
I you debug a GUI application that starts its main window at default size,
this size is now different depending on the
state on the `new-console' switch:
 - if new-console is off, the default size is chosen by the system
(probably as before my patch),
 - if new-console is on, the size of the start window will be forced
by the settings of dwXSize and dwYSize fields of the STARTUPINFO
structure together with the STARTF_USESIZE flag.

  Should we change this?
  We could condition the call to windows_set_console_info 
on the fact that the executable to start is not a GUI application, 
but I am not sure how to check this within GDB code.

  Suggestions most welcome,


Pierre Muller
Pascal language support maintainer for GDB

  


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