CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,867

    Anyone familiar with Cygwin?

    For the past year or so I've been involved in a large Linux project. Like all OS's, Linux is an acquired taste (and, sad to say, it hasn't really suited my tastes at all). Nevertheless, I'm stuck with it.

    One thing that particularly grates is the difficulty of doing single-step debugging within a multithreaded app. For those with an enquiring mind this article describes a fundamental feature (weakness?) of POSIX that effectively makes it incompatible with multithreaded debugging. That item refers specifically to gdb - but I've tried other Linux debuggers too and they're all just as bad. The problem is basically within POSIX.

    Single-stepping is such an integral part of the way I work that I've even considered installing Cygwin (under Windows) and debugging my code within Windows. Cygwin (if I understand it correctly) emulates a POSIX environment within Windows (thereby allowing POSIX dependent apps to be built with Linux tools (e.g. gcc/minGW) but run under Windows). But does Cygwin emulate POSIX "warts and all?" In other words, if I were to try this route, would I be on a fool's errand? Would I still end up with the same problems?

    I just wondered if there's anyone here who uses Cygwin - and what are your experiences with single-step debugging?
    Last edited by John E; March 9th, 2008 at 01:51 PM.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured