🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1253

gdb doesn't see the correct arguments on function breakpoint

#1253
From: Marc Horowitz
Date: Mon, 05 Oct 1992 08:55
10 lines
794 bytes
decstation, ultrix 4.2A
gcc 2.2.2
gdb 4.6

If I set a breakpoint on a function, and put a display one of the
arguments, when the breakpoint occurs, the value displayed is
incorrect until I "next" once.  It should be correct immediately, so I
can "break foo if arg == 42" or something like that.

		Marc
Technical Details
Message-ID: <9210050855.AA23047@ninja>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!athena.mit.edu!marc

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!athena.mit.edu!marc
From: marc@athena.mit.edu (Marc Horowitz)
Subject: gdb doesn't see the correct arguments on function breakpoint
Message-ID: <9210050855.AA23047@ninja>
Sender: gnulists@ai.mit.edu
Reply-To: Marc Horowitz <marc@mit.edu>
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 5 Oct 1992 08:55:41 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 11