using gdb on windows



One reason that I keep silverfrost's f95 suite around is that if I can get
a program to compile, I can step through it with a debugger that I invoke
on one of the pull-downs. I'd like to emulate this capability with gcc's
gdb.

I googled for "gfortran debugger" and found a lot of information that was
often more relevant to the linux crowd. I *did* find this from a previous
exchange with FX:

I read all the time about gfortran and gdb questions that seem to get
solid answers. I believe they are available for linux.

OK then, a brief summary: gfortran is the GNU Fortran compiler, part of
GCC (the GNU Compiler Collection). GCC happens to be the system compiler
on Linux and most other free software operating systems, which means it's
widely used on these OS. gdb is the GNU debugger, also the default
debugger on Linux and other free software OS.

But that doesn't mean it's restricted to Linux. Both GCC (and gfortran)
and gdb are known to work on (free|net|open)bsd, Solaris, MacOS X,
Windows, AIX, Irix, HP-UX, Tru64 and probably others.

!end excerpt

I can't quite seem to get out of the starting blocks on this one, and it's
becoming more relevant as the programs one wants to step through have more
f03 than ever. I tried "gdb [executable name]" and didn't get a bite on
the command line. Is this perhaps addressed in gfortran.pdf?

Thanks in advance,
--
ron Ford
.



Relevant Pages

  • Re: Testing ham radio software on Sun hardware.
    ... Is that like the way Micro$oft adheres to the W3C standards? ... It sometimes means code built with gcc will not compile on better compilers. ... The other issue is that people often write code that works on Linux, but makes use of Linux specific header files. ... If anyone has some open-source UNIX or Linux code they would like to test on a Sun, using a commercially produced C compiler, let me know. ...
    (uk.radio.amateur)
  • Re: how to install ruby in home folder ?.
    ... i am using linux ubuntu 7.04. ... configure:1892: checking build system type ... configure:2245: checking for gcc ... configure:2563: checking for C compiler default output file name ...
    (comp.lang.ruby)
  • Re: Use of C99 int types
    ... > those that actually are part of the C-implementation for Linux. ... the kernel definitions are part of /usr/include). ... The kernel uses __foobar stuff provided by the compiler because it has ... > the Gimp and GCC run on completely different architectures aswell. ...
    (Linux-Kernel)
  • Re: function pointers
    ... I am using gcc under ... gdb, and the compiler, exactly like in 1986 when I first started using ... when running on linux, I usually use gedit or kedit. ... There is only one debugger: ...
    (comp.lang.c)
  • Re: Use of C99 int types
    ... the compiler. ... > Except the kernel wants to be optimized and work and use what features ... And where exactly are linux and libc when compiling code for an ... Just to make the bloody point GCC is not dependent on Linux in any way ...
    (Linux-Kernel)