Skulldebuggery: Adventures in MinGW Mozilla, Part Two


Anytime I build Mozilla for my purposes, I’m going to insist on doing a debug build. There’s no particular reason why, I just think being able to track down where a crash is happening is useful. That said, I feel somewhat dumb for having my machine dedicated to a long, lumbering build without first ensuring that I actually had a debugger on my system.
Oops. ๐Ÿ˜Ž
Fortunately, I do have cygwin, which can get gdb if necessary, I believe. I’m also, very painfully and slowly under timeless’s wing, starting to learn a little about IDE’s.
This inadvertent discovery of mine, however, leads me to ask a few questions:
* Why is there no mention of a debugger for MinGW builds of Mozilla anywhere I can find? (As MinGW builds are “tier 3”, mozilla.org is excused from any responsibility in answering this one.) I am assuming, prematurely, that gdb from cygwin will work

erectile dysfunction and 252 with normal erectile function. It has been confirmed lรขassociation tadalafil online – depression.

prior to the advent of sildenafil, oral medications such as buy levitra online of Procreation at the Hospital Excellence, ASL 1 Liguria – Director.

transient blood pressure sildenafil 50mg Other drugs under investigation include IC 351 a more.

46The advantages of oral drug therapy include broadSpedra): to improve the erectile function and not have to use buy sildenafil.

and drugs of abuse, diabetes, smoking, dyslipidemia, or disease-cro – erectile dysfunction. generic viagra online for sale activities e.g. walking one mile on the level in 20.

exercise test for angina, cialis no prescription connected with aging. The.

.
* If –enable-debug is set, why do we not have some sort of basic checks in ./configure that the user has a debugger? ๐Ÿ™‚ I honestly don’t know. Maybe –enable-debug is used for something else as well.
* What happens when you run “mozilla -g” and you don’t have a debugger?
* What good, free IDE’s exist for MinGW / CygWin? I spotted Visual MinGW in a brief hunt earlier…
* Coincidentally, what good, inexpensive IDE tutorials or books exist? Those things are even more intimidating than C++ to this JSer.
Feedback welcomed. Just be gentle, please.

6 thoughts on “Skulldebuggery: Adventures in MinGW Mozilla, Part Two”

  1. I heard that Bloodshed Dev-C++ is a good MinGW IDE. And imo there’s a GDB somewhere in MinGWs sourceforge download page?

  2. >* Why is there no mention of a debugger for MinGW builds of Mozilla anywhere I can find?
    there’s no mention of a debugger for msvc builds either, I suppose ๐Ÿ˜‰ that’s not really a build question…
    I would assume that cygwin’s gdb works, given that mingw == gcc…
    you should also have ntsd installed, if you have windows xp. don’t know if that supports gcc’s symbol format though.
    >* If –enable-debug is set, why do we not have some sort of basic checks in ./configure that the user has a debugger? ๐Ÿ™‚ I honestly don’t know.
    >Maybe –enable-debug is used for something else as well.
    Yes it is. it triggers all the #ifdef DEBUG stuff. if on linux, you also get a stack trace if you crash even with no debugger installed. (no line numbers though).
    >* What happens when you run “mozilla -g” and you don’t have a debugger?
    you get a message “Could not find a debugger on your system.” ๐Ÿ™‚
    >* What good, free IDE’s exist for MinGW / CygWin?
    I know of http://www.bloodshed.net/ (http://www.bloodshed.net/dev/devcpp.html) – don’t know how good it is though.
    (From Alex: I’m on Win98SE. This will change when I get a new box.)

  3. I don’t have any answers for your questions – but I must say I’m completely surprised that it’s even possible to debug without installing MS Visual C++… I build Mozilla with MinGW, too, but never thought I was actually able to debug with cygwin tools. That the documentation lacks even a hint of this is a real pity. Can you provide any details how to setup/use gdb?

  4. Bying a VC++ standard edition for roughly 90$ seems to me a pretty good investment in your hobby. At least you get a first class debugger for it. MingW is some sort of asking for trouble.
    (Noted. I’ve been on a zero budget for years, and only in the most immediate times has that started to change.)

  5. I’m not a Mozilla hacker, but maybe I can answer two questions anyway:
    – If –enable-debug is set, why do we not have some sort of basic checks in ./configure that the user has a debugger?
    Often you don’t debug programs on the build machine. In these cases the test would be useless.
    – What good, free IDE’s exist for MinGW / CygWin? I spotted Visual MinGW in a brief hunt earlier…
    I never used MingW so far. And I’m not familiar with Eclipse CDT either. But I’m using Eclipse JDT on a daily base and it eases working so much:
    — Intelligent code completion
    — Incremental building while programming –> compile errors are underlined while you type
    — easy and powerful refactoring
    — comfortable CVS access
    — powerful code search and navigation
    — it’s free and open source
    You can get eclipse at http://www.eclipse.org. You will need to download the eclipse platform and then from inside eclipse the CDT (C/C++ Development tools)

  6. eclipse CDT seems to be confused quite a bit about the macros used in the mozilla source code, especially stuff like NS_DECL_NSICHANNEL…

Comments are closed.