Article View: gnu.gdb.bug
Article #244display of functions as parameters
From: Ivan Godard
Date: Fri, 25 Aug 1989 08:40
Date: Fri, 25 Aug 1989 08:40
31 lines
1770 bytes
1770 bytes
When a function takes other another function as a parameter the display of the
parameter does not give the function name but an irrelevancy. In the example
gdb display below, the actual function name is 'WriteFill' but it displays as
'_SIG_PF'. However, when the parameter is called gdb finds the correct name.
example follows:
-----------------------------------------------------------------------------
(gdb) n
1: x/i $pc 0xa43a <_ExtFirst+18>: movel 16(fp),-(sp)
(gdb)
1: x/i $pc 0xa478 <_ExtFirst+80>: movel 16(fp),-(sp)
(gdb)
1: x/i $pc 0xa4a2 <_ExtFirst+122>: unlk fp
(gdb)
0xa4a4 in _ExtFirst (who=(row *) 0x34, anIndex=17610, stride=131944) (row.c line 248)
1: x/i $pc 0xa4a4 <_ExtFirst+124>: rts //=================== BAD VALUE NAME
(gdb) V
0x39e4 in WriteDisk (size=52, Data=(_SIG_PF) 0x44ca, p=(pointer) 0x20368, commit=1 '\001') (disk.c line 487)
1: x/i $pc 0x39e4 <WriteDisk+140>: addaw #12,sp
(gdb) s
WriteFill (r={start = 0x201b6, length = 52}, p=(row *) 0x20368) (location.c line 415)
1: x/i $pc 0x44d0 <WriteFill+6>: movel 12(fp),-(sp)
(gdb)
------------------------------------------------------------------------------
end of example
Note that the parameter name is correct, only the parameter value name is
wrong.
Ivan
Technical Details
Message-ID:
<8908250840.AA25399@curly>Path:
arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!tut.cis.ohio-state.edu!CURLY.SAMSUNG.COM!godardShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!tut.cis.ohio-state.edu!CURLY.SAMSUNG.COM!godard From: godard@CURLY.SAMSUNG.COM (Ivan Godard) Newsgroups: gnu.gdb.bug Subject: display of functions as parameters Message-ID: <8908250840.AA25399@curly> Date: 25 Aug 89 08:40:34 GMT Article-I.D.: curly.8908250840.AA25399 Sender: daemon@tut.cis.ohio-state.edu Reply-To: <godard@curly.samsung.com> Distribution: gnu Organization: GNUs Not Usenet Lines: 31