[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFA] gdb-comm.exp: set breakpoints after load

From: Jie Zhang
Subject: [RFA] gdb-comm.exp: set breakpoints after load
Date: Tue, 19 Jan 2010 16:05:26 +0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100114 Lightning/1.0b1 Shredder/3.0

gdb-comm.exp sets breakpoints on exit and abort before load. The problem is that GDB tries to skip prologue according to what it reads from memory, which might contain random data since the executable has not been loaded into memory. In my case, sometimes skip_prologue might skip one or two more instructions, which happens to be an exception instruction and will trap the processor into an exception event loop after running the executable before hit the breakpoints. The attached patch changes gdb-comm.exp to set breakpoints after load.


Attachment: dejagnu-gdb-comm-break-after-load.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]