This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] dummy frame handling cleanup, plus inferior fun call signal handling improvement


On Thursday 04 December 2008 22:32:12, Doug Evans wrote:
> In the original code, is there a case when stop_pc != registers.pc?

Here,

<stopped at 0x1234, thread 1>
 (gdb) set $pc = 0xf00
 (gdb) call func()

But here it isn't (!=):

<stopped at 0x1234, thread 1>
 (gdb) set $pc = 0xf00
 (gdb) thread 2
 (gdb) thread 1
<stop_pc is set to 0x1234>
 (gdb) call func()

Don't you love globals?  :-)  I bet that if we got rid of
stop_pc most people wouldn't notice a difference.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]