This patch adjusts the offset from 0 to 1 to allow the display of arrays in Fortran using variable objects. Currently given: DIMENSION I(4) DATA I/1,2,3,4/ (gdb) -var-create - * I ^done,name="var1",numchild="4",type="integer (4)" (gdb) -var-list-children var1 &"warning: array or string index out of range\n" ^done,numchild="4",children={child={name="var1.0",exp="0",numchild="0",type="integer"},child={name="var1.1",exp="1",numchild="0",type="integer"},child={name="var1.2",exp="2",numchild="0",type="integer"},child={name="var1.3",exp="3",numchild="0",type="integer"}} (gdb) This patch changes the output to: (gdb) -var-create - * I ^done,name="var1",numchild="4",type="integer (4)" (gdb) -var-list-children var1 ^done,numchild="4",children=[child={name="var1.1",exp="1",numchild="0",type="integer"},child={name="var1.2",exp="2",numchild="0",type="integer"},child={name="var1.3",exp="3",numchild="0",type="integer"},child={name="var1.4",exp="4",numchild="0",type="integer"}] (gdb) It doesn't add any new methods for finding values in Fortran but allows for this to be done later (hopefully someone else will pick this up). It should be safe to apply as it doesn't change behaviour for existing languages. In addition to the patch below, I attach the watch windows from my mode (gdb-ui.el) in Emacs 22.0.50 (in CVS) for Fortran and C to show the different offsets. gdb-mi.el in the GDB repository would work similarly. Nick