[Buildroot] Segmentation fault while trying to remote debug with GDB and GDBServer

Arnout Vandecappelle arnout at mind.be
Wed Mar 5 06:42:04 UTC 2014


On 02/03/14 17:20, Thomas Petazzoni wrote:
> Hello,
> 
> On Sun, 2 Mar 2014 17:10:08 +0100, Thomas Petazzoni wrote:
> 
>> The Eclipse plugin does set the solib-path (see
>> https://github.com/mbats/eclipse-buildroot-toolchain-plugin/blob/master/org.buildroot.cdt.toolchain/src/org/buildroot/cdt/toolchain/BuildrootLaunchConfigurationTabGroup.java#L70),
>> but that is apparently insufficient for gdb to find the correct dynamic
>> linker, especially when the host and target architectures are identical.
>>
>> Since there is apparently no way in Eclipse to set a gdb sysroot, I
>> believe the only solution is for the Eclipse plugin to generate a
>> simple gdbinit file:
>>
>> set sysroot /path/to/staging/directory
>>
>> and then instruct Eclipse to use it.
> 
> Or now that I think of it, maybe Buildroot should itself generate this
> gdbinit file. It may be useful even for users not using Eclipse.

 Even better: buildroot should generate a wrapper (yet another one!) that
passes -ex 'set sysroot ...' when calling cross-gdb.

 Can someone add that to the todo list on the wiki? (I'm currently offline.)

 Regards,
 Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F


More information about the buildroot mailing list