; -------------------------------------------------------------------------------- ; @Title: Script to debug a Linux process from the start ; @Description: ; Application Debugging (AutoLoader version) ; ; This script waits for an application to be started, ; loads the symbols and halts the application at main() or the selected label ; ; NOTE: Linux and the Linux awareness must be up. ; ; Start this script with the process name as argument to ; run the script as command line version or use /dialog ; to run the script in a dialog. ; ; Examples: ; do app_debug hello ; waits for "hello" to be started ; do app_debug /dialog ; opens a dialog window ; ; Prerequisites: ; - Linux must be booted ; - Linux awareness must be configured ; - Symbol Autoloader must be configured ; ; @Keywords: Linux process awareness ; @Author: DIE ; @Copyright: (C) 1989-2019 Lauterbach GmbH, licensed for use with TRACE32(R) only ; -------------------------------------------------------------------------------- ; $Id: app_debug_linux.cmm 5599 2020-08-20 13:18:38Z amerkle $ ; Define local macros LOCAL &cmdline &proc_cmd LOCAL &process &dialog &exec &timeout LOCAL &breaklabel LOCAL &machname &TASK &EXT LOCAL &breakaddr &breakaddr="P:0" &exec=FALSE() &machname="" ; Get the script parameters (" /term /timeout /stopat