From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,e90011b4d4f2d166 X-Google-Attributes: gidfc89c,public X-Google-Thread: 1025b4,e90011b4d4f2d166 X-Google-Attributes: gid1025b4,public X-Google-Thread: fee84,e90011b4d4f2d166 X-Google-Attributes: gidfee84,public From: lucia@savvy.zko.dec.com (Tim Lucia) Subject: Re: Debugger problems on DEC Alpha "DEC3000_500" Date: 1995/07/07 Message-ID: <3tjb0k$bl0@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 105828677 distribution: world references: <3tj4a0$bes@fstgds15.tu-graz.ac.at> organization: Digital Equipment Corporation reply-to: lucia@zko.dec.com newsgroups: gnu.misc.discuss,comp.unix.osf.osf1,comp.unix.programmer In article <3tj4a0$bes@fstgds15.tu-graz.ac.at>, heidrun@fmechds01.tu-graz.ac.at (Heidrun Kirchweger) writes: |>I work on a DEC Alpha "DEC3000_500" and get a lot |>of troubles debugging Fortran code with dbx and gdb 4.14 |> |>System: |>DEC OSF/1 V3.0 (Rev. 347); Mon Feb 27 10:32:32 MET 1995 |>DEC OSF/1 V3.0 Worksystem Software (Rev. 347) |> |>The debuggers show error messages or false values like the following: |> |>gdb: |>---- |>#1 0x1203e6c60 in vhelv_ (NELE= |>Error accessing memory address 0xffffffffffffffec: Invalid argument. |> |>#3 0x1204005e8 in vhptpl_ (PHIO= |>Error accessing memory address 0xffffffffffffffec: Invalid argument. |> |>But NELE and PHIO have the correct values if I put a print statement |>in my code. |> |>Breakpoint 1, vhptpl_ (PHIO=0.0944537073, PHIN=0.106241979, IBORD=622770257921, |> IBPE=(300647710765), IBPF=(17179869188), NPBN=4294967304, NHEX=(1241245548833), |> IBVE=(523986010126), IBVF=(8589934594), DIFFM=0.472291797) at vhptpl.f:68 |> |>These values are ridiculous, because print-Statements in the code show the |>correct values. Strangely the same error occurs with dbx: |> |>dbx: |>---- |> 1 vhelv(NELE = [bad address (0xffffffffffffffec)], VX = [bad address (0xea60)], |>VY = [bad address (0x3cf4cd37)], VZ = [bad address (0x0)], FBND = (...)) |>["vhelv.f":29, 0x1203e6c5c] |> |> 3 vhptpl(PHIO = [bad address (0xffffffffffffffec)], PHIN = [bad address (0xea60)], |>IBORD = [bad address (0x3cf4cd37)], IBPE = [bad address (0x0)], IBPF = [1] |> -1040915918 , NPBN = 916501059, NHEX = [1] 289 |> |>If I debug on a DECstation 5100 everything works fine, and the correct |>values are shown. |> |>Is this a known bug, and are there fixes to it? |> |>Another question: Is there a switch in gdb so that it works |>case-insensitive? |> |>-- |> ,-~~-.___. Heidrun Kirchweger ,-~~-.___. |> / | ' \ Department of Mechanics / ()=(() \ |>( ) 0 TU Graz, Austria ( | 0 \,`/ / |> \_/-, ,----' \_,\, ,----' _).. `_ |> ==== // A collection of ##XXXxxxxxxx ( __ -\ |> / \-'~; /~~~(O) 3-d images / ---'~; '`. |> / __/~| / | can be viewed at: / __/~|- ( \>_-_, |> =( _____| (_________| =(_______| _||_ ~-/ |> http://fmechds01.tu-graz.ac.at/heidrun/heidrun.html |> Which Fortran compiler (f77 or f90) and what version are you using? Can you post (or mail me) some sample code to look at? Have you tried DECladebug on it? DECladebug has very good (and ever getting better) support for Fortran. >From the symptoms, I'd say that dbx & gdb are decoding the parameters NELE and PHIO incorrectly. The large hex number (actually, a small negative offset) generally indicate parameters passed on the stack, rather than in registers. I'd need to see the symbol type and storage class information to be sure. Are they dynamic arrays by any chance? Regards, Tim -- Timothy J. Lucia - DECladebug Email: mailto:lucia@zko.dec.com Digital Equipment Corporation Phone: 603.881.2615 110 Spitbrook Road ZKO2-3/K06 Fax: 603.881.0120 Nashua, NH USA 03062-2698 I'd rather be fishing, thanks.