configuring CL for GDB on gcc 4.8
Posted: Sat Nov 30, 2013 3:25 pm
Hi Eran,
I installed gcc/g++ 4.8 on Debian stable (gcc borrowed from unstable) and created a new entry in build_settings.xml, first duplicating the g++ entry, then replacing gcc and g++ fields with full paths to their 4.8 equivalents. It builds and runs fine but gdb retrieves the wrong symbols.
and fails to create a "this" watch:
One online posts mention a new dward format but there's no clear answer, is there a CL field I missed? Is this a lost cause?
thx a lot!
-- p
I installed gcc/g++ 4.8 on Debian stable (gcc borrowed from unstable) and created a new entry in build_settings.xml, first duplicating the g++ entry, then replacing gcc and g++ fields with full paths to their 4.8 equivalents. It builds and runs fine but gdb retrieves the wrong symbols.
Code: Select all
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>&"warning: Could not load shared library symbols for linux-vdso.so.1.\nDo you need \"set solib-search-path\" or \"set sysroot\"?"
DEBUG>>&"\n"
Code: Select all
DEBUG>>00000028^done,BreakpointTable={nr_rows="1",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="18",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="0x00000000004217ce",file="/home/plaufenb/development/inhance_depot/DDT3/Client/src/LuaDDTmain.cpp",fullname="/home/plaufenb/development/inhance_depot/DDT3/Client/src/LuaDDTmain.cpp",line="148",times="1",original-location="/home/plaufenb/development/inhance_depot/DDT3/Client/src/LuaDDTmain.cpp:148"}]}
DEBUG>>00000030-data-disassemble -s "$pc -100" -e "$pc + 100" -- 0
DEBUG>>00000031-data-disassemble -s "$pc" -e "$pc + 1" -- 0
DEBUG>>00000029^error,msg="-var-create: unable to create variable object"
-var-create: unable to create variable object
thx a lot!
-- p