View Single Post
Old 16 December 2015, 21:55   #1
Dr. MefistO
Registered User

 
Join Date: Jan 2015
Location: Belarus
Posts: 44
Step commands in debugger are throwing exceptions in console

"z" or "t" command after landing at some breakpoint, doesn't work. It throws many exceptions in debugger console, looses current state, and program continues executes without a debugger, then finishes its execution.

Could you fix that annoying behavior?

Quote:
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 25, PC=00F86462
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 27, PC=00FE4F50
Exception 26, PC=00FE4F50
Exception 27, PC=00FE4F50
Exception 26, PC=00FE4F50
Exception 27, PC=00FE4F50
Exception 27, PC=00FE4F50
Exception 27, PC=00FE4F50
Exception 27, PC=00FE4F50
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 26, PC=00E2235E
Exception 8, PC=00F86BB4
Exception 25, PC=00F86462
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 8, PC=00F86BB4
Exception 27, PC=00FE4F50
Exception 26, PC=00FE4F50
Exception 27, PC=00FE4F50
Exception 27, PC=00FE4F50
After some investigation:
Code:
/* ORSR.W #<data>.W */
uae_u32 REGPARAM2 CPUFUNC(op_007c_11)(uae_u32 opcode)
{
	int count_cycles = 0;
{if (!regs.s) { Exception (8); goto l_110018; }
After execution breakpoints, regs.s equals to zero here. And because exception_debugging variable is set to 1 after breakpoint, it shows these exceptions.

It is strange, that on the same commands, stepping doesn't execute "uae_u32 REGPARAM2 CPUFUNC(op_007c_11)(uae_u32 opcode)" function. It looks like the execution context of other threads breaks with execution context of my program.

Last edited by Dr. MefistO; 16 December 2015 at 22:29.
Dr. MefistO is offline  
AdSense AdSense  
 
Page generated in 0.08950 seconds with 9 queries