Article View: gnu.gdb.bug
Article #10027[jta@nic.funet.fi: Ideas]
From: Richard Stallman
Date: Tue, 16 Oct 1990 16:49
Date: Tue, 16 Oct 1990 16:49
33 lines
2053 bytes
2053 bytes
Return-Path: <jta@nic.funet.fi> From: Juha Takala <jta@nic.funet.fi> To: rms@ai.mit.edu (Richard Stallman) Date: Tue, 16 Oct 1990 13:52:05 +0200 In-reply-to: rms@AI.MIT.EDU's message of 14 Oct 90 20:31:00 GMT Subject: Ideas From: rms@AI.MIT.EDU (Richard Stallman) Newsgroups: gnu.gdb.bug I was reading a manual for another debugger and found the following ideas: .... * Have a way to set a breakpoint at the exit from a named function. (This might not work on machines that use individual return instructions, unless you want to scan the function for such instructions. But we could fix this by making GCC use only one common return point when -O is not used.) Could this be made by patching the return addres in the stack? Change the addres to some internal debugger routine, put the breakpoint there, and restore the stack etc. This does not work if we can't find room for the code where to "return", but when compiled with '-g' that code might be one extra library function. Well, this works only when we are inside the function already, so that the address is on the stack... But if we patch the entry into the function to do the work (to set the breakpoint), that might work... Hmmm. -- Juha Takala (jta@sah.vtt.fi) tel.: +358-0-456 6415 fax: +358-0-435 67014 Technical Research Centre, Laboratory of Electrical and Automation Engineering Otakaari 7 B, 02150 Espoo, FINLAND
Technical Details
Message-ID:
<9010161649.AA17647@pogo>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!AI.MIT.EDU!rmsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,adfb25252e74a681,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-10-16 09:49:25 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!AI.MIT.EDU!rms From: rms@AI.MIT.EDU (Richard Stallman) Newsgroups: gnu.gdb.bug Subject: [jta@nic.funet.fi: Ideas] Message-ID: <9010161649.AA17647@pogo> Date: 16 Oct 90 16:49:25 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33 Approved: bug-gdb@prep.ai.mit.edu Posted: Tue Oct 16 17:49:25 1990