archergdb can't use output command to print Fortran allocatable arrays

xunxun xunxun1982@gmail.com
Wed Nov 23 06:36:00 GMT 2011


Hi, all

   I don't know what email list can be written about the archergdb
brach archer-jankratochvil-vl, so I email to gdb directly.

   When I use archergdb to print Fortran allocatable arrays, I found
that I can't use the output command:

  for example,

  program main
   implicit none

   integer :: aaa=1
   real(8) :: bbb=3.d0
   real(8), allocatable :: ccc(:,:)
   allocate(ccc(4,5))
   ccc=3.4
   write(*,*) "Hello World!"
   deallocate(ccc)
   stop
 end program main

 break after ccc=3.4

 run

 If I type

 1) p ccc
     $3 = (( 3.4000000953674316, 3.4000000953674316,
3.4000000953674316, 3.4000000953674316) ( 3.4000000953674316,
3.4000000953674316, 3.4000000953674316, 3.4000000953674316) (
3.4000000953674316, 3.4000000953674316, 3.4000000953674316,
3.4000000953674316) ( 3.4000000953674316, 3.4000000953674316,
3.4000000953674316, 3.4000000953674316) ( 3.4000000953674316,
3.4000000953674316, 3.4000000953674316, 3.4000000953674316) )

 2) pt ccc
    type = real(kind=8) (4,5)

 3) whatis ccc
    type = real(kind=8) (4,5)

 4) output ccc
    Cannot resolve DW_OP_push_object_address for a missing object

  It's obviours wrong when using the output command.

  Can this issure be fixed?

  Thanks.

-- 
Best Regards,
xunxun



More information about the Gdb mailing list