Re: Debugging




jg wrote:
> Hi,
>
> I am trying to debug a program using DDD/GDB, however I am unable to
> step into subroutines/functions that are contained within modules, or
> display any variables contained within functions.
>
> I am using DDD version 3.3.1, the code has been built with ifc version
> 7.1
>
> The contained procedures are all in seperate source files, however when
> I do a listing of available source code from within DDD none of these
> show up, all that shows up is the top level source files containing the
> module definition.
>
> Any help/advice appreciated.
>
> Jon

I have had similar problems. Part of it seemed to be that gdb didn't
automatically pick up the directory where the source was like it did my
C-files. I manually added it with the directory command in gdb. Also,
as other posts have said, make sure you compile ALL sources with -g.
And for fortran, everything must be in lowercase no matter how it's
written in the source.

.



Relevant Pages

  • [Un] Unangband 0.6.0 final released
    ... is now available for download. ... The source files are available at ... time to the beta release as well as Andrew Sidwell for assisting with debugging ... source code available to help me finish the adoption of the 4GAI code. ...
    (rec.games.roguelike.angband)
  • Re: where is reports.vb class
    ... They should be in your client's source code. ... Search for files with those names in the source files you were supplied with. ... > whaka, whaka. ... >> Microsoft MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How Can I Define Global Classes In Web Application ?
    ... You can place source code in the App_Code directory. ... Any source files you place there will be compiled. ... You can compile them yourself and place the generated ... assembly/assemblies in the /bin directory. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Still not clear about global functions
    ... > I suppose they can't be done from source files? ... but it's not good to publish source code. ... > I can't see how you can get around having a global function here, ... > say that they are really against the idea of OOP. ...
    (microsoft.public.dotnet.framework.aspnet)
  • db displays wrong line (source code) while executing.
    ... db displays wrong line (source code) while executing. ... GNU gdb 6.3 ... Copyright 2004 Free Software Foundation, ... There is absolutely no warranty for GDB. ...
    (comp.os.linux.misc)