Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debug configuration problem: GDB Hardware debugging - ARM -Qemu (How to configure the Debug configuration (GDB Hardware debugging).)
Debug configuration problem: GDB Hardware debugging - ARM -Qemu [message #625518] Wed, 22 September 2010 05:06 Go to previous message
Eclipse UserFriend
I run Eclipse Helios (20100617-1415O) with CDT v7.0 under Ubuntu 9.10

I've created simple C application, compiled it in Eclipse with Sourcery_G++_Lite
ARM tool-chain and succesfully debugged it manually OUTSIDE Eclipse against
Qemu VersatilePB simulator running on the same computer.

Now I want to debug it inside Eclipse, so I tried to configure Debug configuration
(GDB Hardware Debugging). Unfortunately all my attempts failed and debugging inside Eclipse doesn't start.

Can anyone give a tips how to configure properly GDB Hardware Debugging or recommend good tutorial about this topic.

Here is console aoutput I am getting in Eclipse when try to start debug session,
any ideas what went wrong?

Thanks

22-gdb-set confirm off
22^done
(gdb)
23-gdb-set width 0
23^done
(gdb)
24-gdb-set height 0
24^done
(gdb)
25-interpreter-exec console echo
25^done
(gdb)
26-gdb-show prompt
26^done,value="(gdb) "
(gdb)
27-gdb-set new-console on
27^error,msg="No symbol table is loaded. Use the \"file\" command."
(gdb)
28 symbol-file /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf
&"symbol-file /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf\n"
28^done
(gdb)
29 set solib-absolute-prefix nonexistantpath
&"set solib-absolute-prefix nonexistantpath\n"
29^done
(gdb)
30 set solib-search-path /home/dave/Programs/CodeSourcery/Sourcery_G++_Lite/arm-none- linux-gnueabi/libc/lib
&"set solib-search-path /home/dave/Programs/CodeSourcery/Sourcery_G++_Lite/arm-none- linux-gnueabi/libc/lib\n "
30^done
(gdb)
31 file /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf
&"file /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf\n"
31^done
(gdb)
32 target extended-remote localhost:1234
symbol-file /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf
set solib-absolute-prefix nonexistantpath
set solib-search-path /home/dave/Programs/CodeSourcery/Sourcery_G++_Lite/arm-none- linux-gnueabi/libc/lib
file /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf
target extended-remote localhost:1234
&"target extended-remote localhost:1234\n"
32^done
(gdb)
33 set remote exec-file /usr/bin/AppBase.elf
&"set remote exec-file /usr/bin/AppBase.elf\n"
33^done
(gdb)
set remote exec-file /usr/bin/AppBase.elf
34 load /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf
&"load /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf \n"
~"Loading section .interp, size 0x13 lma 0x8134\n"
Loading section .interp, size 0x13 lma 0x8134
&"Load failed\n"
34^error,msg="Load failed"
load /home/dave/Embedded/appdev/AppBase/Debug/AppBase.elf
Load failed
(gdb)
35-environment-directory /home/dave/Embedded/appdev/AppBase /home/dave/Embedded/appdev/AppBase/Debug
35^done,source-path=" /home/dave/Embedded/appdev/AppBase:/home/dave/Embedded/appde v/AppBase/Debug:$cdir:$cwd "
(gdb)
36 info threads
&"info threads\n"
36^done
(gdb)
37-data-list-register-names
37^error,msg="No registers."
(gdb)
38-data-list-register-names
38^error,msg="No registers."
(gdb)
39-break-insert AppBase.c:19
39^done,bkpt={number="1",type="breakpoint",disp="keep",enabled= "y",addr="0x000084b4",func="main",file="../AppBase.c",fullname= "/home/dave/Embedded/appdev/AppBase/AppBase.c",line="19",times= "0",original-location="AppBase.c:19"}
(gdb)
tbreak main
40 tbreak main
&"tbreak main\n"
~"Temporary breakpoint 2 at 0x84b4: file ../AppBase.c, line 19.\n"
Temporary breakpoint 2 at 0x84b4: file ../AppBase.c, line 19.
40^done
(gdb)
41-break-list
41^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width= "7",alignment="-1",col_name="number",colhdr="Num"},{width= "14",alignment="-1",col_name="type",colhdr="Type"},{width= "4",alignment="-1",col_name="disp",colhdr="Disp"},{width= "3",alignment="-1",col_name="enabled",colhdr="Enb"},{width= "10",alignment="-1",col_name="addr",colhdr="Address"},{width= "40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number= "1",type="breakpoint",disp="keep",enabled="y",addr="0x000084b4 ",func="main",file="../AppBase.c",fullname="/home/dave/Embedded/appdev/AppBase/AppBase.c ",line="19",times="0",original-location="AppBase.c:19"},bkpt={number= "2",type="breakpoint",disp="del",enabled="y",addr="0x000084b4 ",func="main",file="../AppBase.c",fullname="/home/dave/Embedded/appdev/AppBase/AppBase.c ",line="19",times="0",original-location="main"}]}
(gdb)
 
Read Message
Read Message
Read Message
Previous Topic:Creating Static Libraries
Next Topic:Extending GNU GCC Toolchain
Goto Forum:
  


Current Time: Mon Jul 21 19:57:03 EDT 2025

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

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

Back to the top