set tname [target number $target_num]
if { 0 == [string compare $eventname "reset"] } {
- $tname configure -event reset-init "script $scriptname"
- return
+ $tname configure -event reset-init "script $scriptname"
+ return
}
if { 0 == [string compare $eventname "post_reset"] } {
- $tname configure -event reset-init "script $scriptname"
- return
+ $tname configure -event reset-init "script $scriptname"
+ return
}
if { 0 == [string compare $eventname "pre_reset"] } {
- $tname configure -event reset-start "script $scriptname"
- return
+ $tname configure -event reset-start "script $scriptname"
+ return
}
if { 0 == [string compare $eventname "gdb_program_config"] } {
- $tname configure -event old-gdb_program_config "script $scriptname"
- return
+ $tname configure -event old-gdb_program_config "script $scriptname"
+ return
}
return -code error "Unknown target (old) event: $eventname (try $tname configure -event NAME)"
retval = target_read_buffer(target, addr, len, buffer);
- if ((retval == ERROR_TARGET_DATA_ABORT) && (!gdb_report_data_abort))
+ if ((retval!=ERROR_OK)&&!gdb_report_data_abort)
{
/* TODO : Here we have to lie and send back all zero's lest stack traces won't work.
* At some point this might be fixed in GDB, in which case this code can be removed.