funny variable names in gdb



Hi,
after a bit of tinketing i'm finally able to see my source code but:

variables such as:
CPU_2=0
get funny names as illustrated below:


(gdb) info variable cpu_2
All variables matching regular expression "cpu_2":

File globals.f90:
real8 globals_MP_cpu_2;
real8 globals_MP_cpu_2a;

where does that MP come from ??? & what happened to the case ?
also what do i make out of the following information

(gdb) info variable n_vec
All variables matching regular expression "n_vec":

File globals.f90:
struct array1 globals_MP_n_vec;
real8 globals_MP_n_vec.data[11];
(gdb) print globals_MP_n_vec@2
$3 = {{
offset = 0x2c9138 "?",
rank = 1,
esize = 8,
base = 0x2c9138,
info = {8, 0, 10}
}, {
offset = 0x3ff00000 <Address 0x3ff00000 out of bounds>,
rank = 0,
esize = 1072693248,
base = 0x0,
info = {0, 0, 0}
}}
(gdb)

--- platform info ------------
compiler: g95 Options: -g3 -gstabs -pg -ftrace=full
OS: Mac OS X
front-end: ddd
importrant libraries: MPI
I am able to view the source code in ddd

.



Relevant Pages

  • Re: Debugging
    ... > I do a listing of available source code from within DDD none of these ... all that shows up is the top level source files containing the ... I manually added it with the directory command in gdb. ...
    (comp.lang.fortran)
  • 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)
  • Re: Specialized debugger
    ... > command line driven probably like gdb without nearly so much functionality. ... the source code, you could just shove the tracing commands straight into ... using a macro, to trap the calls. ...
    (comp.programming)
  • Debugging with nasm
    ... I wrote a little ASM progie with Nasm and output a ELF executable. ... I tried debugging it with DDD and GDB, but none of both is able to display ... If I type "list" in GDB, not only the source code not gets displayed but ...
    (comp.lang.asm.x86)
  • Debugging with Nasm
    ... I wrote a little ASM progie with Nasm and output a ELF executable. ... I tried debugging it with DDD and GDB, but none of both is able to display ... If I type "list" in GDB, not only the source code not gets displayed but ...
    (alt.lang.asm)