From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: <gdb-patches@sourceware.org>
Subject: [RFC] windows-nat.c: New oddity after copy console information for new console patch.
Date: Tue, 01 Jun 2010 06:57:00 -0000 [thread overview]
Message-ID: <000001cb0157$ae2e6610$0a8b3230$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <20100530171041.GB8605@ednor.casa.cgf.cx>
> -----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
prev parent reply other threads:[~2010-06-01 6:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-21 22:37 [RFA] windows-nat.c: Copy console information for new console Pierre Muller
2010-05-25 21:01 ` Christopher Faylor
2010-05-26 8:07 ` Pierre Muller
2010-05-26 17:20 ` Christopher Faylor
2010-05-27 7:14 ` Pierre Muller
2010-05-27 12:59 ` Pierre Muller
2010-05-27 15:43 ` Christopher Faylor
2010-05-28 15:28 ` Pierre Muller
2010-05-30 18:00 ` Christopher Faylor
2010-06-01 6:57 ` Pierre Muller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001cb0157$ae2e6610$0a8b3230$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox