duane> i am debugging some changes to the "target_script" command and trying to restore some previous functionality that I think was broken during the recent changes.
Oyvind> Which specifically? OLD>The old -(june time frame, before the big TCL switch) OLD> target.c - line 1530 supports the command line: OLD> target_script N gdb_program_config FILENAME OLD> OLD>And stores the filename directly in the target struct. OLD> And matching, in gdb_server.c - gdb_program_handler() OLD> it invokes the script as needed. The difference is/was: "gdb_program" vrs "gdb_program_config" NEW> file gdb_server.c - function gdb_program_handler() - invokes the NEW> script by name "gdb_program" - *NOT* "gdb_program_config" NEW> NEW> This calls the function in target.c. target_invoke_script() NEW> which attempts to invoke "target_0_gdb_program" NEW> by way of command_run_linef() NEW> NEW> Which - is/or-was created in 'startup.tcl' NEW> From what I can tell, in the canned config files - only the STR7xx series targets use this. -Duane. _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development