summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-13 15:25:03 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-13 15:25:03 +0000
commit368daf44ff6aecb522952872a44bcf9e26b836f3 (patch)
treec8ede82204d992e9082ea639d380180e18949307 /src/target
parentc6fe02930cf170067e7b6c68d8fbd8e3bc13e915 (diff)
downloadopenocd_libswd-368daf44ff6aecb522952872a44bcf9e26b836f3.tar.gz
openocd_libswd-368daf44ff6aecb522952872a44bcf9e26b836f3.tar.bz2
openocd_libswd-368daf44ff6aecb522952872a44bcf9e26b836f3.tar.xz
openocd_libswd-368daf44ff6aecb522952872a44bcf9e26b836f3.zip
big endian software breakpoint bogus error messages fixed
git-svn-id: svn://svn.berlios.de/openocd/trunk@1167 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm7_9_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index 4fd97c5c..8814636b 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -231,7 +231,7 @@ int arm7_9_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
return retval;
}
- if ((retval = target->type->read_memory(target, breakpoint->address, 4, 1, (u8 *)&verify)) != ERROR_OK)
+ if ((retval = target_read_u32(target, breakpoint->address, &verify)) != ERROR_OK)
{
return retval;
}
@@ -255,7 +255,7 @@ int arm7_9_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
return retval;
}
- if ((retval = target->type->read_memory(target, breakpoint->address, 2, 1, (u8 *)&verify)) != ERROR_OK)
+ if ((retval = target_read_u16(target, breakpoint->address, &verify)) != ERROR_OK)
{
return retval;
}