- remove build warnings

- add missing svn props

git-svn-id: svn://svn.berlios.de/openocd/trunk@1062 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
ntfreak 2008-10-14 20:58:28 +00:00
parent 347db1b736
commit d58229e73b
7 changed files with 39 additions and 35 deletions

View File

@ -37,6 +37,7 @@
#include "jtag.h" #include "jtag.h"
#include "breakpoints.h" #include "breakpoints.h"
#include "flash.h" #include "flash.h"
#include "target.h"
#include "target_request.h" #include "target_request.h"
#include "configuration.h" #include "configuration.h"
@ -305,7 +306,7 @@ int gdb_put_packet_inner(connection_t *connection, char *buffer, int len)
break; break;
if ((retval = gdb_get_char(connection, &reply)) != ERROR_OK) if ((retval = gdb_get_char(connection, &reply)) != ERROR_OK)
return retval; return retval;
if( reply == '$' ){ if( reply == '$' ){
// fix a problem with some IAR tools // fix a problem with some IAR tools
gdb_putback_char( connection, reply ); gdb_putback_char( connection, reply );
LOG_DEBUG("Unexpected start of new packet"); LOG_DEBUG("Unexpected start of new packet");
@ -787,7 +788,7 @@ int gdb_new_connection(connection_t *connection)
return ERROR_OK; return ERROR_OK;
} }
void gdb_connection_closed(connection_t *connection) int gdb_connection_closed(connection_t *connection)
{ {
gdb_service_t *gdb_service = connection->service->priv; gdb_service_t *gdb_service = connection->service->priv;
gdb_connection_t *gdb_connection = connection->priv; gdb_connection_t *gdb_connection = connection->priv;
@ -817,6 +818,8 @@ void gdb_connection_closed(connection_t *connection)
log_remove_callback(gdb_log_callback, connection); log_remove_callback(gdb_log_callback, connection);
target_call_event_callbacks(gdb_service->target, TARGET_EVENT_GDB_DETACH ); target_call_event_callbacks(gdb_service->target, TARGET_EVENT_GDB_DETACH );
return ERROR_OK;
} }
void gdb_send_error(connection_t *connection, u8 the_error) void gdb_send_error(connection_t *connection, u8 the_error)

View File

@ -470,7 +470,7 @@ void arm9tdmi_change_to_arm(target_t *target, u32 *r0, u32 *pc)
if((retval = jtag_execute_queue()) != ERROR_OK) if((retval = jtag_execute_queue()) != ERROR_OK)
{ {
return retval; return;
} }
/* fix program counter: /* fix program counter:

View File

@ -632,12 +632,12 @@ int armv7m_blank_check_memory(struct target_s *target, u32 address, u32 count, u
u16 erase_check_code[] = u16 erase_check_code[] =
{ {
/* loop: */ /* loop: */
0xF810, 0x3B01, /* ldrb r3, [r0], #1 */ 0xF810, 0x3B01, /* ldrb r3, [r0], #1 */
0xEA02, 0x0203, /* and r2, r2, r3 */ 0xEA02, 0x0203, /* and r2, r2, r3 */
0x3901, /* subs r1, r1, #1 */ 0x3901, /* subs r1, r1, #1 */
0xD1F9, /* bne loop */ 0xD1F9, /* bne loop */
/* end: */ /* end: */
0xE7FE, /* b end */ 0xE7FE, /* b end */
}; };
/* make sure we have a working area */ /* make sure we have a working area */

View File

@ -236,7 +236,7 @@ int mips_m4k_assert_reset(target_t *target)
mips_ejtag_t *ejtag_info = &mips32->ejtag_info; mips_ejtag_t *ejtag_info = &mips32->ejtag_info;
LOG_DEBUG("target->state: %s", LOG_DEBUG("target->state: %s",
Jim_Nvp_value2name_simple( nvp_target_state, target->state )->name); Jim_Nvp_value2name_simple( nvp_target_state, target->state )->name);
if (!(jtag_reset_config & RESET_HAS_SRST)) if (!(jtag_reset_config & RESET_HAS_SRST))
{ {
@ -278,12 +278,12 @@ int mips_m4k_assert_reset(target_t *target)
mips32_invalidate_core_regs(target); mips32_invalidate_core_regs(target);
if (target->reset_halt) if (target->reset_halt)
{ {
int retval; int retval;
if ((retval = target_halt(target))!=ERROR_OK) if ((retval = target_halt(target))!=ERROR_OK)
return retval; return retval;
} }
return ERROR_OK; return ERROR_OK;
@ -292,7 +292,7 @@ int mips_m4k_assert_reset(target_t *target)
int mips_m4k_deassert_reset(target_t *target) int mips_m4k_deassert_reset(target_t *target)
{ {
LOG_DEBUG("target->state: %s", LOG_DEBUG("target->state: %s",
Jim_Nvp_value2name_simple( nvp_target_state, target->state )->name); Jim_Nvp_value2name_simple( nvp_target_state, target->state )->name);
/* deassert reset lines */ /* deassert reset lines */
jtag_add_reset(0, 0); jtag_add_reset(0, 0);

View File

@ -350,6 +350,7 @@ extern int target_register_user_commands(struct command_context_s *cmd_ctx);
extern int target_init(struct command_context_s *cmd_ctx); extern int target_init(struct command_context_s *cmd_ctx);
extern int target_examine(void); extern int target_examine(void);
extern int handle_target(void *priv); extern int handle_target(void *priv);
extern int target_process_reset(struct command_context_s *cmd_ctx, enum target_reset_mode reset_mode);
extern int target_register_event_callback(int (*callback)(struct target_s *target, enum target_event event, void *priv), void *priv); extern int target_register_event_callback(int (*callback)(struct target_s *target, enum target_event event, void *priv), void *priv);
extern int target_unregister_event_callback(int (*callback)(struct target_s *target, enum target_event event, void *priv), void *priv); extern int target_unregister_event_callback(int (*callback)(struct target_s *target, enum target_event event, void *priv), void *priv);