All of lore.kernel.org
 help / color / mirror / Atom feed
* Unwinding stop on irq handler or across it?
@ 2017-05-17 16:04 Yao Qi
  2017-05-23 12:49 ` Johannes Stoelp
  0 siblings, 1 reply; 2+ messages in thread
From: Yao Qi @ 2017-05-17 16:04 UTC (permalink / raw)
  To: linux-arm-kernel


Hi,
When use GDB debug Linux kernel, GDB can't stop on unwinding from an irq
handler,

#0  gic_handle_irq (regs=0xffffffc07d9c7e30) at drivers/irqchip/irq-gic.c:263
#1  0xffffffc000083ce4 in el1_irq () at arch/arm64/kernel/entry.S:346
#2  0xffffffc000083ce4 in el1_irq () at arch/arm64/kernel/entry.S:346
#3  0xffffffc000083ce4 in el1_irq () at arch/arm64/kernel/entry.S:346
....

This problem can be fixed by either adding .cfi directives in entry.S
or adding some Linux awareness into GDB.  I want to know what is the
expected behavior?  Is it reasonable that stack unwinding stops on irq
handler, like el1_irq in this case? or something else?

-- 
Yao (??)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Unwinding stop on irq handler or across it?
  2017-05-17 16:04 Unwinding stop on irq handler or across it? Yao Qi
@ 2017-05-23 12:49 ` Johannes Stoelp
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Stoelp @ 2017-05-23 12:49 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

> Hi,
> When use GDB debug Linux kernel, GDB can't stop on unwinding from an irq handler,

> #0  gic_handle_irq (regs=0xffffffc07d9c7e30) at drivers/irqchip/irq-gic.c:263
> #1  0xffffffc000083ce4 in el1_irq () at arch/arm64/kernel/entry.S:346
> #2  0xffffffc000083ce4 in el1_irq () at arch/arm64/kernel/entry.S:346
> #3  0xffffffc000083ce4 in el1_irq () at arch/arm64/kernel/entry.S:346 ....

> This problem can be fixed by either adding .cfi directives in entry.S or adding some Linux awareness into GDB.  I want to know what is the expected behavior?  Is it reasonable that stack unwinding stops on irq handler, like el1_irq in this case? or something else?

> Yao (??)

I'm really interested in finding a solution to this issue, do you have any comments on Yao's mail?

Best,
Johannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-23 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17 16:04 Unwinding stop on irq handler or across it? Yao Qi
2017-05-23 12:49 ` Johannes Stoelp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.