Esecuzione del debug di applicazioni C++ su dispositivi VxWorks

Nota: inserire tutte le dipendenze delle librerie sulla scheda SD. Il debug non funziona da altre posizioni, come ad esempio una directory NFS montata.

Qt Creator copia solo i file binari dell'applicazione e gli altri file distribuibili nella directory principale della scheda SD. Non conserva né crea la struttura delle directory sulla scheda SD.

Per eseguire il debug delle applicazioni Qt, aggiungere la seguente riga alla configurazione del build del codice sorgente VxWorks (VSB):

vxprj vsb config -s -add "_WRS_CONFIG_TCF_GDB_RSP=y"

Per avviare automaticamente il server GDB sul dispositivo, aggiungere le seguenti righe alla configurazione del progetto dell’immagine VxWorks (VIP):

"INCLUDE_DEBUG_AGENT"
"INCLUDE_DEBUG_AGENT_START"
"INCLUDE_STANDALONE_SYM_TBL"

Per ulteriori informazioni, consultare Qt per VxWorks.

Per configurare il debug:

  1. Attivare un kit VxWorks per il progetto.
  2. Vai su " Projects " > " Run Settings".
  3. Impostare Priority e Stack size.

    Impostazioni di esecuzione per VxWorks

  4. In Environment, impostare la variabile LD_LIBRARY_PATH sul percorso delle librerie presenti sulla scheda SD. Se il percorso della scheda SD non è /sd0a, impostare VX_SDCARD_PATH sul percorso corretto.

Per avviare il debug, premere F5 oppure andare su Debug > Start Debugging > Start Debugging of Startup Project.

Vedi anche Attivare i kit per un progetto, Abilitare e disabilitare i plugin, Procedura: VxWorks, Debug, Sviluppo per VxWorks e Qt per VxWorks.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.