Re: Question about CMake Apps Module remote debugging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Theo,

@Sebastien may have more information about XDS but the ini template file that you are talking was meant to debug shared libraries, yes. You have to change it to be able to debug the native application. Example of a native app execution through the application framework:

/usr/bin/afb-daemon \
    --name afbd-radio@0.1 \
    --rootdir=/var/local/lib/afm/applications/radio/0.1 \
    --workdir=/home/0/app-data/radio \
    --verbose \
    --verbose \
    --monitoring \
    --port=31041 \
    --token=HELLO \
    --roothttp=. \
    --ws-client=unix:/run/user/0/apis/ws/windowmanager \
    --ws-client=unix:/run/user/0/apis/ws/homescreen \
    --ws-client=unix:/run/user/0/apis/ws/radio \
    --exec /var/local/lib/afm/applications/radio/0.1/bin/radio <port> <token>

I personally never used that to debug a native app but you can gave it a try :)

Best regards.

On 25/03/2019 14:17, Theo BUENO via automotive-discussions wrote:

Hi,

 

I am getting into AGL app development mainly for testing purposes, so I am evaluating the CMake apps module helper provided for binder and native app developement.

 

I am developing a native test application that makes use of several of the stock AGL bindings, which I have validated to work correctly on my platform (custom freescale board on Guppy 7.0.0).

 

I am specifically having an issue with gdb remote debugging using xds-gdb.

It is my assumption that the provided template that generates an ini configuration (gdb-on-target.ini.in) file for xds-gdb only works to debug bindings (shared libraries) and not native applications (executables).

 

As the documentation on the matter ( https://docs-next.iot.bzh/docs/en/master/devguides/reference/xds/part-1/5-2_debug-first-app-cmd.html ) seems slightly outdated ( mentions the former and deprecated "app-templates" package ), I am seeking for your advice.

 

Am I correct to assume that, as of now, there is no "official" configuration to remote debug native apps provided in the CMake apps module helper ?

 

Thanks, and best regards,

Théo Bueno.


_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions
-- 
Romain Forlot - Embedded Engineer - IoT.bzh
romain.forlot@xxxxxxx - www.iot.bzh - +33675142438
null
_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux