From: Christopher Faylor <cgf@redhat.com>
To: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: cygwin@cygwin.com, gdb@sources.redhat.com, jimb@redhat.com
Subject: Re: gdb run < file
Date: Thu, 28 Jun 2001 19:05:00 -0000 [thread overview]
Message-ID: <20010628220602.A3596@redhat.com> (raw)
In-Reply-To: <20010627.235700.01365880.Takaaki.Ota@am.sony.com>
I'm sorry but I don't think that this is the correct way to deal with
this. I think that gdb normally handles things like redirection and
globbing by starting inferior processes via the user's shell. Then it
uses some kind of "follow fork" method to notice when the process is
finally started.
It just occurred to me that Windows has the capability (check out the
CreateProcess call) to do this so I think it makes sense to use gdb's
standard method for dealing with this problem.
I don't have any specific pointers since I'm not familiar with the code
in question, but I've Cc'ed the gdb mailing list in case someone can
offer advice.
I should point out that you'll need to have an assignment on file with
the FSF for your changes to be officially incorporated into gdb.
I've Cc'ed the person responsible for gdb assignments in this email.
cgf
On Wed, Jun 27, 2001 at 11:57:00PM -0700, Tak Ota wrote:
>Since this is the first time for me to look at gdb source it took a
>while to get to the right place to tackle. Thank to Source Navigator,
>eventually I found win32-nat.c was the one I needed to fix. The fix
>itself is quite straight forward.
>
>Please see the patch to win32-nat.c in gdb-20010428-1 at the end of
>this message. I am not quite satisfied with the argument parsing part
>but at least it fulfills what I wanted. Please improve it if you have
>better idea.
>
>However I have verified this works, my testing environment is fairly
>limited. Please verify it in various different configuration.
>
>-Tak
>
>On Wed, 27 Jun 2001 02:50:36 -0400, Christopher Faylor <cgf@redhat.com> wrote:
>
>> On Tue, Jun 26, 2001 at 11:44:02PM -0700, Tak Ota wrote:
>> >I encountered a problem in gdb.
>> >
>> >(gdb) run < file
>> >
>> >does not change the process stdin to the file.
>>
>> Yep. That's a limitation in windows gdb.
>>
>> >I just started looking into gdb source code for the first time in my
>> >left. For now I found top.c has command loop but the size of the code
>> >is so overwhelming. So I thought reporting the incident first may
>> >solve the problem way before I can find the cause and fix.
>>
>> No one is working on this, currently. If you can provide a fix it would
>> be appreciated. I don't know of any easy way to get this functionality,
>> though.
next parent reply other threads:[~2001-06-28 19:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20010626.234402.21347360.Takaaki.Ota@am.sony.com>
[not found] ` <20010627025036.B20160@redhat.com>
[not found] ` <20010627.235700.01365880.Takaaki.Ota@am.sony.com>
2001-06-28 19:05 ` Christopher Faylor [this message]
2001-06-28 21:45 ` Tak Ota
2001-06-29 0:20 ` Eli Zaretskii
2001-06-29 13:53 ` Christopher Faylor
2001-06-29 13:55 ` Christopher Faylor
2001-06-29 23:36 ` Eli Zaretskii
2001-06-30 10:25 ` Christopher Faylor
2001-06-30 17:23 ` Tak Ota
2001-06-30 22:20 ` Tak Ota
2001-07-01 1:20 ` Eli Zaretskii
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=20010628220602.A3596@redhat.com \
--to=cgf@redhat.com \
--cc=Takaaki.Ota@am.sony.com \
--cc=cygwin@cygwin.com \
--cc=gdb@sources.redhat.com \
--cc=jimb@redhat.com \
/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