Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Christopher Faylor <me@cgf.cx>
To: mark@codesourcery.com, paul@codesourcery.com, gdb@sourceware.org
Subject: Re: Windows support in GDB
Date: Sun, 01 May 2005 21:41:00 -0000	[thread overview]
Message-ID: <20050501214128.GA23129@trixie.casa.cgf.cx> (raw)
In-Reply-To: <01c54e87$Blat.v2.4$40320aa0@zahav.net.il>

On Sun, May 01, 2005 at 10:51:02PM +0300, Eli Zaretskii wrote:
>> Date: Fri, 29 Apr 2005 12:58:31 -0400
>> From: Kris Warkentin <kewarken@qnx.com>
>> CC: mark@codesourcery.com,  paul@codesourcery.com,  gdb@sourceware.org
>> 
>> It isn't just an issue of gdb not working with native paths because,
>> as you say, it _usually_ does.  It's a question of consistency.
>
>Indeed.
>
>In fact, any serious use of GDB will almost instantly bump into such a
>consistency (or lack thereof) issue.  For example, will the `edit' and
>`shell' commands work if I don't have a Cygwin Bash installed and GDB
>is configured to invoke that Bash as the shell?

And, if they don't, what's the solution?  You fix it so they will work.
Presumably, if there is no /bin/sh.exe available, you'd use a fallback.
You could even implement a switch to force cygwin's gdb into "windows
path mode".

Problems like "what happens when there is no cygwin shell available?"
are fixable.  They are likely to be fixable without the necessity of
sprinkling ifdefs all over gdb or even making changes to the configury.
I don't think that they can be used as a justification for a windows
port.

No matter how you slice it, changes to get gdb working on native windows
are at least mildly intrusive.  Maybe compatibility changes to make a
cygwin-based gdb work better would be equally intrusive or time
consuming.  I *suspect* however, that fixing cygwin's gdb to better
handle windows paths is probably a lot less work than what Mark did.  I
think I can say with some assurance that there would be no need to
modify readline at all, for instance.

So, I don't think that any observations about the way that gdb currently
works under cygwin should be considered fodder for why a native windows
port is required.  Mark expended some effort to produce a native windows
port rather than fix any problems that cropped up with cygwin gdb.
That's fine and dandy.  He gave his valid reasons for doing this and it
is solely his perogative.  I don't think we need to search for (fixable)
limitations in cygwin's gdb as a rationale for why a windows port is
needed.

cgf


  reply	other threads:[~2005-05-01 21:41 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-29 15:32 Mark Kettenis
2005-04-29 15:32 ` Daniel Jacobowitz
2005-04-29 16:08   ` Christopher Faylor
2005-04-29 16:31     ` Mark Mitchell
2005-04-29 16:36       ` Christopher Faylor
2005-04-29 16:47         ` Mark Mitchell
2005-04-29 16:56           ` Christopher Faylor
2005-04-29 17:05             ` Mark Mitchell
2005-04-29 17:16               ` Christopher Faylor
2005-05-01 20:13             ` Eli Zaretskii
2005-05-01 19:50           ` Eli Zaretskii
2005-04-29 16:52       ` Dave Korn
2005-04-29 16:57         ` Mark Mitchell
2005-04-29 17:00           ` Dave Korn
2005-04-30 16:18           ` Mark Kettenis
2005-04-30 20:37             ` Christopher Faylor
2005-05-01 20:05       ` Eli Zaretskii
2005-05-01 20:06         ` Mark Mitchell
2005-05-01 20:24           ` Eli Zaretskii
2005-04-29 16:32     ` Kris Warkentin
2005-04-29 16:40       ` Christopher Faylor
2005-04-29 17:00         ` Kris Warkentin
2005-05-01 19:55           ` Eli Zaretskii
2005-05-01 21:41             ` Christopher Faylor [this message]
2005-05-02 19:03               ` Eli Zaretskii
2005-05-02 19:56                 ` Christopher Faylor
2005-04-29 16:48     ` Daniel Jacobowitz
2005-04-29 17:33       ` Christopher Faylor
2005-04-29 17:58         ` Daniel Jacobowitz
2005-04-29 19:08           ` Christopher Faylor
2005-04-29 19:36             ` Daniel Jacobowitz
2005-04-29 22:01               ` Christopher Faylor
2005-05-02 15:41   ` Andrew Cagney
2005-05-02 15:45     ` Daniel Jacobowitz
2005-04-29 16:04 ` Kris Warkentin
2005-04-29 16:23 ` Mark Mitchell
2005-04-29 16:46   ` Christopher Faylor
2005-04-29 16:50     ` Mark Mitchell

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=20050501214128.GA23129@trixie.casa.cgf.cx \
    --to=me@cgf.cx \
    --cc=gdb@sourceware.org \
    --cc=mark@codesourcery.com \
    --cc=paul@codesourcery.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