I've never found KGDB or JTAG debugging very useful for user space applications. On Xtensa, with JTAG and GDB, we did use the PC and a bit of the context is user space to understand The context of a TLB miss. That was a bit helpful for cache alias issues.
ARM has a $100,000 Corsight debugger which has the ability to profile both the Kernel and user space applications; perhaps debugging the application was also supported; Ir was pretty slick. Perhaps that demo was done on a M-series Chip. At an ARM lecture they mentioned that the M-series handles Exception In a why which is compatible with the C-ABI. This makes it so that exceptions can be Back-traced with gdb; perhaps even across the user-space to kernel exceptions. -piet -- Pete/Piet Delaney O: +1 408 935-1813 C: +1 408 646-8557 H: +1 408 243-8872 Home Email: piet.dela...@gmail.com -----Original Message----- From: joaoandrefe...@sapo.pt [mailto:joaoandrefe...@sapo.pt] Sent: Monday, October 20, 2014 9:26 AM To: kgdb-bugreport@lists.sourceforge.net Subject: [Kgdb-bugreport] Can KGDB also debug applications? Hello all, again, I'm using KGDB to interrupt and debug the linux kernel on a target machine, and I'm noq wondering if I can do the same at application level, i.e. interrupt / debug a application (not a kernel module) of my choice, that would be running on the target machine. I know that supposedly GDB is intended to debug applications and KGDB the kernel, but this is a feature that quite I'm interested in, and despite the intensive search, I haven't reached a conclusion. What I found was the mention of the typical scenarios where GDB debugs applications, and KGDB the kernel. Thanks for reading, João ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Kgdb-bugreport mailing list Kgdb-bugreport@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Kgdb-bugreport mailing list Kgdb-bugreport@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport