New Windows version of OpenOCD r100 available

Hello,

a new compiled Windows version is available here:

http://www.yagarto.de/howto/openocd/index.html

Here you will find a small tutorial and the link for the OpenOCD.

Best regards,

Michael

i have found a bug with rev100 on svn

It breaks gdb (insight).

line 706 of gdbserver.c needs changing to:

gdb_str_to_target(target, hex_buf, reg_packet);

The patch has been sent to Domonic.

Cheers

Spen

Hello Spen,

yes I know, we have found yesterday some more bugs.

This was corrected with a patch from Dominic.

But many thanks for the information.

Index: server/gdb_server.c

===================================================================

— server/gdb_server.c (revision 100)

+++ server/gdb_server.c (working copy)

@@ -491,7 +491,7 @@

if (str_len % 2)

{

  • ERROR(“BUG: gdb value with uneven number of characters encountered”);
  • ERROR(“BUG: gdb value with uneven number of characters encountered: %s”, str);

exit(-1);

}

@@ -703,7 +703,7 @@

hex_buf = buf_to_str(reg_list[reg_num]->value, reg_list[reg_num]->size, 16);

  • gdb_str_to_target(target, reg_packet, hex_buf);
  • gdb_str_to_target(target, hex_buf, reg_packet);

gdb_put_packet(connection, reg_packet, CEIL(reg_list[reg_num]->size, 8) * 2);

@@ -917,6 +917,7 @@

buffer = tmp;

  • }*

+ retval = ERROR_OK;

  • switch (len)*
  • {*
    _ /* handle sized writes */_
    @@ -985,6 +986,7 @@
  • return ERROR_SERVER_REMOTE_CLOSED;*
  • }*

+ retval = ERROR_OK;

  • if( len ) {*

  • buffer = malloc(len);*
    The patch was not inlcuded in the SVN now.
    Best regards,
    Michael