I am attempting to debug a program and have run up against a problem printing out array values. When stopped in a subroutine, I get the following response for arrays local to the sub-routine that have already been initialized or used (heap or stack allocated):
(idb) print array
(1)
(2)
(3)
(4)
(5)
etc ...
Interestingly, arrays that are part of structures/defined types print fine, as do scalars. Is this a Mac OS X issue that someone else has seem before or solved, or am I doing something weird? I compile for debugging with the following flags (ifort/idb 10.1.015, Mac OS X 10.5.4):
-g -m64 -O0 -extend_source -CB -traceback -fpe:0 -debug all
Any info on this would help me immensely!
Thanks,
Ben
(idb) print array
(1)
(2)
(3)
(4)
(5)
etc ...
Interestingly, arrays that are part of structures/defined types print fine, as do scalars. Is this a Mac OS X issue that someone else has seem before or solved, or am I doing something weird? I compile for debugging with the following flags (ifort/idb 10.1.015, Mac OS X 10.5.4):
-g -m64 -O0 -extend_source -CB -traceback -fpe:0 -debug all
Any info on this would help me immensely!
Thanks,
Ben
連結已複製
1 回應