1. 08 Jul, 2008 1 commit
  2. 07 Jul, 2008 1 commit
  3. 06 Jul, 2008 2 commits
    • ntfreak's avatar
      - fixed build issues with win32 · 655e4f88
      ntfreak authored
      - fixed build warnings for last commit
      - set svn props for last commit
      
      git-svn-id: svn://svn.berlios.de/openocd/trunk@760 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      655e4f88
    • oharboe's avatar
      src/helper/configuration.h · dc796a20
      oharboe authored
      	- Log output handlers now get a "const char *line"
      	- Added "const" to parameter.
      
      src/helper/command.c
      src/helper/command.h
      	- New function:  'command_output_text()'
      	- Log output handlers now get a "const char *line"
       
      src/helper/options.c
      	- Log output handlers now get a "const char *line"
      
      src/server/telnet_server.c
      	- DO not transmit NULL bytes via TELNET.
      	- Log output handlers now get a "const char *line"
      	
      src/server/gdb_server.c
      	- Log output handlers now get a "const char *line"
      	
      	*** THIS INCLUDES PORTIONS OF A PATCH FROM Oyvind sent 
      	previously to the mailing list for TCL users try
      
      src/target/target.c
      	*** THIS INCLUDES PORTIONS OF A PATCH FROM Oyvind sent 
      	previously to the mailing list for TCL users try
      	
      src/target/target.h
      	*** THIS INCLUDES PORTIONS OF A PATCH FROM Oyvind sent 
      	previously to the mailing list for TCL users try
      
      src/openocd.c
          - **MAJOR** Work: New TCL/Jim function: mem2array
      	- **MAJOR** Work: Redirect Tcl/Jim stdio output to remote users.
      	- Previously: TCL output did not go to GDB.
      	- Previously: TCL output did not go to TELNET
      	- Previously: TCL output only goes to control console.
      	- This fixes that problem.
      	+ Created callbacks:
      		+openocd_jim_fwrite()	
      		+openocd_jim_fread()
      		+openocd_jim_vfprintf()
      		+openocd_jim_fflush()
      		+openocd_jim_fgets()
      
      src/Makefile.am
      	- New TCL files.
      	- Future note: This should be more automated.  As the list of
      	  'tcl' files grows maintaning this list will suck.
      
      src/Jim.c
      	- ** THIS INCLUDES A PREVIOUS PATCH I SENT EARLIER **
      	- that impliments many [format] specifies JIM did not support.
      	- Jim_FormatString() - **MAJOR** work.
      	- Previously only supported "%s" "%d" and "%c"
      	- And what support existed had bugs.
      	- NEW: *MANY* formating parameters are now supported.
      	- TODO: The "precision" specifier is not supported.
      
      	** NEW ** This patch.
      	
      	- Jim_StringToWide() test if no conversion occured.
      	- Jim_StringToIndex() test if no conversion occured.
      	- Jim_StringToDouble() test if no conversion occured.
      
      	** NEW ** This Patch. Major Work.
      	- Previously output from JIM did not get sent to GDB
      	- Ditto: Output to Telnet session.
      	- Above items are now fixed - By introducing callbacks
      	  new function pointers in the "interp" structure.
      
      	- Helpers that call the callbacks.
      	
      	- New function: Jim_fprintf()
      	- New function: Jim_vfprintf()
      	- New function: Jim_fwrite()
      	- New function: Jim_fread()
      	- New function: Jim_fflush()
      	- New function: Jim_fgets()
      
      	By default: the output is to STDIO as previous.
      	The "openocd.c" - redirects the output as needed.
      	
      	- Jim_Panic() - Send panic to both STDERR and the interps
      	specified STDERR output as a 2nd choice.
      
      	- Now JIM's "stdin/stdout/stderr" paramters are "void *"
      	and are no longer "FILE *".
      
      src/Jim.h
      	- **MAJOR**
      	-  New JIM STDIO callbacks in the "interp" structure.
      	-  change: "stdin/stdout/stderr" are now "void *" cookies.
      	-  New JIM stdio helper functions.
      
      
      
      git-svn-id: svn://svn.berlios.de/openocd/trunk@755 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      dc796a20
  4. 02 Jul, 2008 1 commit
  5. 25 Jun, 2008 2 commits
  6. 27 May, 2008 2 commits
  7. 21 May, 2008 1 commit
  8. 19 May, 2008 2 commits
  9. 09 May, 2008 1 commit
  10. 15 Apr, 2008 2 commits
  11. 11 Apr, 2008 4 commits
  12. 09 Apr, 2008 1 commit
  13. 07 Apr, 2008 1 commit
    • oharboe's avatar
      · 2b7504c2
      oharboe authored
      - only if "reset halt" or "reset init" are issued will the reset vector be set up
      - If communication fails during assert between assert/deassert and during
      assert, warnings are printed. The warning suggests using srst_only if the
      clock locks up as that would allow the reset vector to be set up before
      asserting reset.
      
      git-svn-id: svn://svn.berlios.de/openocd/trunk@544 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      2b7504c2
  14. 04 Apr, 2008 2 commits
  15. 03 Apr, 2008 1 commit
    • oharboe's avatar
      · d3f0549f
      oharboe authored
      - Work on fixing erase check. Many implementations are plain broken.
      Wrote a default flash erase check fn which uses CFI's target algorithm
      w/fallback to memory reads. 
      - "flash info" no longer prints erase status as it is stale. 
      - "flash erase_check" now prints erase status. erase check can take a 
      *long* time. Work in progress
      - arm7/9 with seperate srst & trst now supports reset init/halt
      after a power outage. arm7/9 no longer makes any assumptions
      about state of target when reset is asserted.
      - fixes for srst & trst capable arm7/9 with reset init/halt
      - prepare_reset_halt retired. This code needs to be inside
      assert_reset anyway
      - haven't been able to get stm32 write algorithm to work. Fallback
      flash write does work. Haven't found a version of openocd trunk
      where this works.
      - added target_free_all_working_areas_restore() which can
      let be of restoring backups. This is needed when asserting
      reset as the target must be assumed to be an unknown state.
      Added some comments to working areas API
      - str9 reset script fixes
      - some guidelines
      - fixed dangling callbacks upon reset timeout 
      
      
      git-svn-id: svn://svn.berlios.de/openocd/trunk@536 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      d3f0549f
  16. 02 Apr, 2008 1 commit
  17. 31 Mar, 2008 1 commit
  18. 25 Mar, 2008 1 commit
  19. 21 Mar, 2008 1 commit
  20. 14 Mar, 2008 1 commit
  21. 13 Mar, 2008 1 commit
  22. 10 Mar, 2008 1 commit
    • oharboe's avatar
      - Fixed various error handling when looking for memory leaks · 0424155d
      oharboe authored
      - 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
      0424155d
  23. 07 Mar, 2008 1 commit
    • oharboe's avatar
      · c78b4fe4
      oharboe authored
      - Improves error handling upon GDB connect
      - 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
      c78b4fe4
  24. 05 Mar, 2008 2 commits
    • oharboe's avatar
      warnings & comments fixes. · 087ccf3b
      oharboe authored
      git-svn-id: svn://svn.berlios.de/openocd/trunk@449 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      087ccf3b
    • oharboe's avatar
      * fixed malloc corruption in target->debug_reason · 6d950146
      oharboe authored
      	* 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
      6d950146
  25. 04 Mar, 2008 1 commit
  26. 29 Feb, 2008 3 commits
    • oharboe's avatar
      Tweaked logging output. · d3f09192
      oharboe authored
      TODO is retired(hopelessly out of date).
      
      git-svn-id: svn://svn.berlios.de/openocd/trunk@400 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      d3f09192
    • oharboe's avatar
      - clean up target output strings a bit · 3a3fc300
      oharboe authored
      - open_file_from_path() now uses logging feature
      - open_file_from_path() no longer uses paths for anything but "r" mode. Fixes 
        bug  waiting to happen.
      
      
      git-svn-id: svn://svn.berlios.de/openocd/trunk@389 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      3a3fc300
    • oharboe's avatar
      Michael Bruck: · 4febcd83
      oharboe authored
      arm11
      
      --- Added burst memory transfer mode
      
      This does not explicitly query command execution but rather uses a small
      delay produced by the FT2232 on certain TAP commands.
      
      A potential failure of this process is detected afterwards and the
      program terminates with an error.
      
      'arm11 memwrite burst disable'
        can be used to switch this feature off.
      
      'arm11 memwrite error_fatal disable'
        can be used to prevent the program to exit on an memory write error
      
      
      --- Added support for interrupt breaking via VCR register
      
      Use 'arm11 vcr' command to set.
      
      
      --- Cleaned up the handling of
      
      halt/resume/step/poll, target->state, target->debug_reason,
      target_call_event_callbacks() at least as far as I could guess the
      intended behaviour from other targets.
      
      Did some overall positive tests with GDB.
      
      
      --- Added support for breakpoints
      
      Hardware breakpoints only. All breakpoints will be treated as hardware
      breakpoints.
      
      All ARM11's seem to have at least 6 hardware breakpoints.
      
      --- Stepping over BKPT added
      
      Modification to PC without touching the target.
      
      --- Stepping over a B or BL to self will do nothing
      
      
      git-svn-id: svn://svn.berlios.de/openocd/trunk@385 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      4febcd83
  27. 25 Feb, 2008 2 commits