Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » eclipse Live Kernel dbg(why eclipse debugger differ than GDB)
eclipse Live Kernel dbg [message #1721802] Sun, 31 January 2016 06:26
vlad solov is currently offline vlad solovFriend
Messages: 2
Registered: January 2016
Junior Member
index.php/fa/24827/0/Hello,
I tried to use eclipse for live kernel debugging.
I have a working set-up what work great with gdb by command line, hope to make it work with eclipse also...

<hw-set-up>
2 x86 pc connected by serial line (using moxa to usb)
After recompiling the kernel with all the debug options:
first pc is the dev station running eclipse while debugging vmlinux,
and the other is the target machine running the bzimage kernel with initrd;

<working with GDB>
on the target pc :
echo 1 > /proc/sys/kernel/sysrq
echo g > /proc/sysrq-trigger
and on the dev pc (gdb ):
//=====================================================//
//=====================================================//
> gdb vmlinux
......
.............
(gdb) target remote /dev/ttyMXUSB1
Remote debugging using /dev/ttyMXUSB1
kgdb_breakpoint () at kernel/debug/debug_core.c:1051
1051 wmb(); /* Sync point after breakpoint */
(gdb) l
1046 noinline void kgdb_breakpoint(void)
1047 {
1048 atomic_inc(&kgdb_setting_breakpoint);
1049 wmb(); /* Sync point before breakpoint */
1050 arch_kgdb_breakpoint();
1051 wmb(); /* Sync point after breakpoint */
1052 atomic_dec(&kgdb_setting_breakpoint);
1053 }
1054 EXPORT_SYMBOL_GPL(kgdb_breakpoint);
1055
(gdb) c
Continuing.
//=====================================================//
//=====================================================//

as you can see , GDB work great!!!

***************************
However using eclipse:
***************************
config debug options:
index.php/fa/24827/0/
index.php/fa/24828/0/
index.php/fa/24829/0/

but after doing the same sequence like with GDB eclipse show something like this and failed to stop or show the code:

index.php/fa/24830/0/

?????????????????????????????????????
?????? Any ideas please ??????????
?????????????????????????????????????
  • Attachment: ecldbg1.png
    (Size: 85.89KB, Downloaded 1099 times)
  • Attachment: ecldbg2.png
    (Size: 85.42KB, Downloaded 1104 times)
  • Attachment: ecldbg3.png
    (Size: 98.97KB, Downloaded 992 times)
  • Attachment: ecldbg5.png
    (Size: 192.87KB, Downloaded 1186 times)
Previous Topic:The User Operation is waiting for background work to complete
Next Topic:ARM Cross compiler error
Goto Forum:
  


Current Time: Thu Apr 25 15:39:19 GMT 2024

Powered by FUDForum. Page generated in 0.02900 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top