summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* retire unused code.oharboe2008-03-111-20/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@494 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* JTAG_END_STATE is now retired. It is no longer queued.oharboe2008-03-111-22/+10
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@493 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - fixed jtag_add_reset(). It no longer causes jtag_execute_queue() tooharboe2008-03-113-82/+96
| | | | | | | | | | | fail for two of it's return codes. A little bit weird, but compatible with existing codebase. - tightend up error handling. Since the jtag_xxx() is a queue that is either executed as things are added(hw queue) or a software queue, then errors can only be caught during jtag_execute_queue(). No error code is therefore returned from the queuing fn's. git-svn-id: svn://svn.berlios.de/openocd/trunk@492 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy: telnet line buffer size checking, history does not store ↵oharboe2008-03-111-67/+87
| | | | | | repeating lines, improved history printing, log callback tweak git-svn-id: svn://svn.berlios.de/openocd/trunk@491 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* backed out changes from 483.oharboe2008-03-101-93/+14
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@490 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* more target scripts wip.oharboe2008-03-102-0/+68
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@489 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* more target scripts wip.oharboe2008-03-102-1/+15
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@488 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy: hopefully perfection for async output and prompt/partially ↵oharboe2008-03-101-13/+24
| | | | | | typed command line handling. git-svn-id: svn://svn.berlios.de/openocd/trunk@487 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy: the attached patch refines PRESTO support and makes it work ↵oharboe2008-03-101-105/+123
| | | | | | with libftdi. git-svn-id: svn://svn.berlios.de/openocd/trunk@486 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* prettier async outputoharboe2008-03-101-0/+5
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@485 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - fixed a problem with big endian XScale and GDB register packets.oharboe2008-03-101-27/+6
| | | | | | | | | - hmm..... did I screw up? Was XScale and not gdb_server busted here? My thinking was that OpenOCD has a canonical internal representation of registers that match GDB's expectations git-svn-id: svn://svn.berlios.de/openocd/trunk@484 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - the jtag chain is examined and validated after GDB & telnet serversoharboe2008-03-106-37/+105
| | | | | | | | | | | | | | | | | | are up and running. The examination and validation is actually "optional" from the point of view of GDB + telnet servers. Multiple targets should work fine with this. - jtag_speed is dropped(divisor is increased), if jtag examination and validation fails. - the chain is validated 10x to catch the worst jtag_speed offences - added LOG_SILENT that can be used to shut up log. Feeble ersatz for try+catch. - GDB register packets are now always replied in order to make sure that GDB connect works. If the target is not halted, then these packets contain dummy values. git-svn-id: svn://svn.berlios.de/openocd/trunk@483 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - Fixed various error handling when looking for memory leaksoharboe2008-03-102-58/+60
| | | | | | | | | | | | | - Fixed memory leak in gdb_server.c - pushed "Error:" statements up into fn's that know something about what went wrong - load_image now fails if target_write_memory() fails - only issue an asynchronous halt() upon connect of GDB. Synchronous halt/reset doesn't really work as what's required to initialize the target might involve a special monitor sequence for the target in question - syntax error handling improved(fewer exit()'s) git-svn-id: svn://svn.berlios.de/openocd/trunk@482 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - LOG_SILENT can be used to silence the log(needed in upcoming patches)oharboe2008-03-101-0/+7
| | | | | | | - ERROR_FAIL - added to emphasize that information about what went wrong is contained in Error: log statements and not in a 32 bit return value. git-svn-id: svn://svn.berlios.de/openocd/trunk@481 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* added stm32.cfg to install listoharboe2008-03-101-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@480 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Michael Bruck: fix warningoharboe2008-03-091-0/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@479 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - add stm32 target scriptntfreak2008-03-091-0/+23
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@478 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - added more TARGET_HALTED checks for the read/write_memory handlersntfreak2008-03-082-7/+152
| | | | | | | - added new commands arm11 mrc and arm11 mcr to generate these instructions during debug Thanks Michael Bruck git-svn-id: svn://svn.berlios.de/openocd/trunk@477 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* typo.oharboe2008-03-081-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@476 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - Improves error handling upon GDB connectoharboe2008-03-0712-43/+41
| | | | | | | | | | | | | | | | | | - switch to synchronous halt during connect. This fixes the bug where poll() was not invoked between halt() and servicing the 'g' register packet - halt() no longer returns error code when target is already halted, just logs a warning. Only the halt() implementation can say anything meaningful about why a halt() failed, so error messages are pushed up to halt() - fixed soft_reset_halt infinite loop bug in arm7_9_common.c. The rest of the implementations are still busted. - by using USER() instead of command_print() the log gets the source + line #. Nice. - no longer invoke exit() if soft_reset_halt fails. A reset can often fix the problem. git-svn-id: svn://svn.berlios.de/openocd/trunk@475 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Asynchronous output information from e.g. a halt is now displayed again.oharboe2008-03-071-4/+6
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@474 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - fix cross endian ELF loadingvpalatin2008-03-071-3/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@473 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - The elf loader incorrectly assumed that the program header always follows ↵ntfreak2008-03-071-0/+9
| | | | | | the ELF header. (Thanks Michael Bruck) git-svn-id: svn://svn.berlios.de/openocd/trunk@472 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Michael Bruck: fixed warningsoharboe2008-03-078-16/+28
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@471 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Edgar Grimberg, fix arm926ejs_examine_debug_reason return value.oharboe2008-03-071-1/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@470 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Added some timeout handling to XScale so OpenOCD doesn't getoharboe2008-03-071-23/+58
| | | | | | completely stuck when the target needs a reset. git-svn-id: svn://svn.berlios.de/openocd/trunk@469 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* minor corrections for target scripts.oharboe2008-03-074-78/+78
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@468 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - correct spelling typo in stm32x flash driverntfreak2008-03-071-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@467 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy, the patch fixes an issue with PRESTO & FTD2XX under Linux.oharboe2008-03-071-45/+73
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@466 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* alloc_printf and alloc_vprintfoharboe2008-03-073-11/+19
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@465 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* wi-9c target scriptsoharboe2008-03-072-0/+92
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@464 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Removed code that inserted prompt after printing asynchronous information. ↵oharboe2008-03-072-14/+0
| | | | | | Current implementation was broken beyond repair. git-svn-id: svn://svn.berlios.de/openocd/trunk@463 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - added str912/str710_program.scriptmifi2008-03-073-34/+54
| | | | | | - added test infos from r459 git-svn-id: svn://svn.berlios.de/openocd/trunk@462 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* removed excessive debug output. Perhaps a debug_level 4 should be ↵oharboe2008-03-071-2/+0
| | | | | | introduced? Hopefully it can be avoided as this was the only case where debug output was going through the roof. git-svn-id: svn://svn.berlios.de/openocd/trunk@461 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Cosmetic fixes from Uwe Hermannoharboe2008-03-071-19/+19
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@460 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy: va_copy should always be paired with va_end.oharboe2008-03-061-0/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@459 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* retiredoharboe2008-03-061-7/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@458 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* use jtag_execute_queue() instead of jtag->execute_queue()oharboe2008-03-061-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@457 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* tms is never referenced, confusing old code left behind probably.oharboe2008-03-061-10/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@456 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* comment.oharboe2008-03-061-1/+4
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@455 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy: faster alloc_printf()oharboe2008-03-061-14/+13
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@454 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy: performance tweak of gdb_put_packet_inner() removing malloc ↵oharboe2008-03-061-36/+32
| | | | | | and avoiding memcpy of larger blocks of data, git-svn-id: svn://svn.berlios.de/openocd/trunk@453 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Michael Bruck:oharboe2008-03-062-7/+31
| | | | | | | | - force simulate_reset_on_next_halt when target state is initially detected - print out method of debug entry - fix VCR activation (didn't work before) git-svn-id: svn://svn.berlios.de/openocd/trunk@452 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Michael Bruck: 64 bit va_list fix for crashoharboe2008-03-061-2/+5
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@451 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* make debug code w.r.t. incorrect args for bypass stricter.oharboe2008-03-061-2/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@450 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* warnings & comments fixes.oharboe2008-03-052-5/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@449 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - This speeds up dcc arm7_9 bulk write a little bit and exercises the ↵oharboe2008-03-055-9/+65
| | | | | | | | | | | jtag_add_dr_out() codepath - added a check to jtag_add_pathmove() for legal path transitions - tweaked jtag.h docs a little bit - made some jtag bypass tests _DEBUG_JTAG_IO_ git-svn-id: svn://svn.berlios.de/openocd/trunk@448 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* added jtag_add_dr_out(). Better for hw fifo, same for software fifo.oharboe2008-03-054-107/+194
| | | | | | | | Passes 94kBytes/s regression test. Works with str912, which relies on bypass git-svn-id: svn://svn.berlios.de/openocd/trunk@447 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy: memory leak in at91sam7 flash driver, possible incorrect ↵oharboe2008-03-055-156/+117
| | | | | | | | pointer conversion in gpnvm command handling, uninitialized buffer issue in handle_flash_info_command in flash.c, some formatting. git-svn-id: svn://svn.berlios.de/openocd/trunk@446 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* * fixed malloc corruption in target->debug_reasonoharboe2008-03-055-116/+130
| | | | | | | | | | | | | | | * GDB remote server will now remain online even if the target is in a funny state, e.g. if it requires a reset, it is running while GDB is not in the continue or step packet, e.g. via monitor resume/halt commands in GDB script. * Added some _DEBUG_GDB_IO_ debug tools * Fixed a couple of GDB server lockups, e.g. when O packets detect a severed connection * added ACK upon connection (send +). * added keep-alive messages to reset so GDB protocol remains happy. * fixed crash when timing out connection to GDB git-svn-id: svn://svn.berlios.de/openocd/trunk@445 b42882b7-edfa-0310-969c-e2dbd0fdcd60