gdb and interrupts

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

gdb and interrupts

Postby ralisi » Sun Apr 27, 2014 1:01 pm

I am trying to debug my Interrupt routines with gdb but the interrupts dont work while using the debugger.

My current interrupt-routine is just a simple "increment a counter". When running without gdb, I can see that the counter is getting incremented (so my isr works) or when I put it into an endless loop, the execution stops.

When I run my code with gdb, no matter what, the interrupt is never getting handled.

I tried E_USER_INT and E_TIMER0_INT.

Is there any way to make sure that the interrupts are getting triggered in the debugger as well?

I try to use E_USER_INT as a syscall. In some thread I found that there is another function "swi" but according to the current documentation, it got renamend to USER_INT, right?
ralisi
 
Posts: 15
Joined: Fri Apr 11, 2014 12:00 pm

Re: gdb and interrupts

Postby timpart » Mon Apr 28, 2014 7:01 pm

timpart
 
Posts: 302
Joined: Mon Dec 17, 2012 3:25 am
Location: UK

Re: gdb and interrupts

Postby ralisi » Mon Apr 28, 2014 9:11 pm

Yeah, I am trying to implement an operating system on the device.

I am actually using the e_irq_set(0,0,E_USER_INT); but this fails to work while using gdb. e_signal however is a function for the arm and not the epiphany, if I am not mistaken.
ralisi
 
Posts: 15
Joined: Fri Apr 11, 2014 12:00 pm

Re: gdb and interrupts

Postby ralisi » Tue May 06, 2014 3:19 pm

Is it possible to trigger interrupts while using gdb and debug their routines?
ralisi
 
Posts: 15
Joined: Fri Apr 11, 2014 12:00 pm

Re: gdb and interrupts

Postby jeremybennett » Tue May 06, 2014 4:53 pm

User avatar
jeremybennett
 
Posts: 61
Joined: Mon Dec 17, 2012 9:06 am


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 14 guests