]> git.sur5r.net Git - openocd/commitdiff
gdb_report_data_abort now ignores all target read errors, including address space...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 24 Oct 2008 07:18:13 +0000 (07:18 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 24 Oct 2008 07:18:13 +0000 (07:18 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1099 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/startup.tcl
src/server/gdb_server.c

index fad7412ca20fa25eba3ca5ee3505dee8a369c70f..c98a9cf529636ce8a6bb08d88a7d8f6d0f36d827 100644 (file)
@@ -119,23 +119,23 @@ proc target_script {target_num eventname scriptname} {
     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)"
index 52f256a5741222978ce127fd6561a555ce3ce5de..0ebe56cb49c32fdc0de18c4d8856669e3c02c2bd 100644 (file)
@@ -1138,7 +1138,7 @@ int gdb_read_memory_packet(connection_t *connection, target_t *target, char *pac
 
        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.