Article View: gnu.gdb.bug
Article #309Re: bug in gdb 3.3 on iPSC/2
From: Mark Nagel
Date: Sat, 28 Oct 1989 17:23
Date: Sat, 28 Oct 1989 17:23
25 lines
1524 bytes
1524 bytes
kingdon@ai.mit.edu (Jim Kingdon) writes: > [GDB cannot find number of arguments for main on i386 because > FRAME_CHAIN_VALID doesn't allow get_prev_frame_info to go into > start.] >I fixed this in the working GDB (i.e. the fix will be in the next >release) by just not having FRAME_NUM_ARGS return the number of >arguments (i.e. return -1) when get_prev_frame_info returns 0. This >is pretty much harmless because main is not a varadic function, so if >you have debugging symbols GDB will know how many arguments it has >from the debugging symbols. If someone wants to see all 3 arguments >to main, no matter how it is declared in the source, it would require >something like a really_get_prev_frame_info in addition to >get_prev_frame_info. I applied this fix to FRAME_NUM_ARGS and gdb works fine now (except for that unknown symbol type, but that's minor). Thanks a lot for the help! -- Mark Nagel UC Irvine Department of ICS +----------------------------------------+ ARPA: nagel@ics.uci.edu | radiation: smog with an attitude | UUCP: ucbvax!ucivax!nagel +----------------------------------------+
Technical Details
Message-ID:
<1989Oct28.102328.2415@paris.ics.uci.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ucla-cs!uci-ics!nagelReferences:
<616@wang.UUCP> <8910271528.AA07038@hobbes.ai.mit.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ucla-cs!uci-ics!nagel From: nagel@ics.uci.edu (Mark Nagel) Newsgroups: gnu.gdb.bug Subject: Re: bug in gdb 3.3 on iPSC/2 Message-ID: <1989Oct28.102328.2415@paris.ics.uci.edu> Date: 28 Oct 89 17:23:28 GMT References: <616@wang.UUCP> <8910271528.AA07038@hobbes.ai.mit.edu> Distribution: gnu Lines: 25