]> git.sur5r.net Git - openocd/blobdiff - src/target/target.h
armv4_5: add algorithms instruction breakpoint support
[openocd] / src / target / target.h
index 0292945d2c6e34a802f1889b7b64294fa54d97f8..4a48e5aad6c08c892d16e57d9d3d3fde1b74e83c 100644 (file)
@@ -452,6 +452,14 @@ const char *target_state_name( struct target *target );
  */
 int target_alloc_working_area(struct target *target,
                uint32_t size, struct working_area **area);
+/* Same as target_alloc_working_area, except that no error is logged
+ * when ERROR_TARGET_RESOURCE_NOT_AVAILABLE is returned.
+ *
+ * This allows the calling code to *try* to allocate target memory
+ * and have a fallback to another behavior(slower?).
+ */
+int target_alloc_working_area_try(struct target *target,
+               uint32_t size, struct working_area **area);
 int target_free_working_area(struct target *target, struct working_area *area);
 void target_free_all_working_areas(struct target *target);