1. 08 Mar, 2019 1 commit
  2. 23 Jan, 2019 1 commit
  3. 16 Oct, 2018 1 commit
  4. 01 Aug, 2018 1 commit
  5. 03 Mar, 2018 1 commit
  6. 21 Feb, 2018 2 commits
  7. 08 Dec, 2016 4 commits
    • Marc Schink's avatar
      helper: Code cleanup for hexify() · 69ff7354
      Marc Schink authored
      
      
      Simplify hexify() and do not longer use 0 as special case for the
      parameter 'count' to determine the string length of the binary input.
      Instead, use strlen() outside of the function if needed.
      Additionally, fix the return value and return the length of the
      converted string. The old function always returned 2 * count.
      
      Also, use more appropriate data types for the function parameters and
      add a small documentation.
      
      Change-Id: I133a8ab786b8f7c1296afcaf9c0a0b43881e5112
      Signed-off-by: default avatarMarc Schink <openocd-dev@marcschink.de>
      Reviewed-on: http://openocd.zylin.com/3793
      
      
      Tested-by: jenkins
      Reviewed-by: default avatarTomas Vanek <vanekt@fbl.cz>
      69ff7354
    • Steven Stallion's avatar
      gdb_server: support qXfer:threads:read packet · 50dd7207
      Steven Stallion authored
      
      
      This patch adds support for the qXfer:threads:read packet. In addition
      to providing a more efficient method of updating thread state, recent
      versions of GDB (7.11.1 and up) can also report remote thread names.
      While thread names are not enabled in this patch due to its limited
      applicability at the moment, it can be enabled at a later date with
      little effort.
      
      As a part of revamping how threads are presented to GDB, extra info
      strings for each of the supported RTOSes were updated to match
      conventions present in the GDB source code. For more information, see
      remote_threads_extra_info() in remote.c. This results in a much smoother
      experience when interacting with GDB.
      
      It is also worth mentioning that use of qXfer:threads:read works around
      a number of regressions in older versions of GDB regarding remote thread
      display. Trust me, it's great.
      
      Change-Id: I97dd6a93c342ceb9b9d0023b6359db0e5604c6e6
      Signed-off-by: default avatarSteven Stallion <stallion@squareup.com>
      Reviewed-on: http://openocd.zylin.com/3559
      
      
      Tested-by: jenkins
      Reviewed-by: default avatarTomas Vanek <vanekt@fbl.cz>
      Reviewed-by: default avatarPaul Fertser <fercerpav@gmail.com>
      50dd7207
    • Steven Stallion's avatar
      rtos: add support for uC/OS-III · 1eae39b4
      Steven Stallion authored
      
      
      This patch introduces RTOS support for uC/OS-III. Currently, only
      FPU-less ARM Cortex-M targets are supported. Due to the configurability
      of the RTOS, an OpenOCD-specific file must be linked along with the
      project to determine the correct offsets within the OS_TCB structure.
      
      In addition to the above, a crash was fixed in rtos_get_gdb_reg_list
      such that RTOS support could be used between resets without restarting
      OpenOCD and support for the Hg packet was cleaned up.
      
      Change-Id: Ide004a689e6b886185df665c00fb644629eb31d1
      Signed-off-by: default avatarSteven Stallion <stallion@squareup.com>
      Reviewed-on: http://openocd.zylin.com/3556
      
      
      Tested-by: jenkins
      Reviewed-by: default avatarPaul Fertser <fercerpav@gmail.com>
      1eae39b4
    • Matthias Welwarsky's avatar
      Add -defer-examine option to target create command · 53a936af
      Matthias Welwarsky authored
      
      
      The '-defer-examine' option to target create allows declaring targets
      that are present on the chain, but not fully functional.  They will
      be skipped by the initial arp_examine as well as arp_examine after
      reset.
      
      Manual examine using 'arp_examine' is needed to examine them, with the
      idea that some kind of actions is neeed to bring them to a state where
      examine will succeed (if at all possible).
      
      In order to allow value less options to target command, I had to relax
      the goi.argc check in jim_target_configure().
      
      Change-Id: I9bf4e8d27eb6476dd9353d15f48965a8cfd5c122
      Signed-off-by: default avatarEsben Haabendal <esben@haabendal.dk>
      Signed-off-by: default avatarMatthias Welwarsky <matthias.welwarsky@sysgo.com>
      Reviewed-on: http://openocd.zylin.com/3076
      
      
      Tested-by: jenkins
      Reviewed-by: default avatarTomas Vanek <vanekt@fbl.cz>
      53a936af
  8. 17 Oct, 2016 1 commit
    • Marc Schink's avatar
      helper: Make unhexify() robust on invalid data · 674141e8
      Marc Schink authored
      
      
      The current implementation is not suitable for user provided data
      because it does not detect invalid inputs in many cases. For example,
      the string "aa0xbb" is successfully converted to the 3 bytes: 0xaa,
      0x00 and 0xbb. An other example is "aabi" which is successfully
      converted to the 2 bytes: 0xaa and 0x0b. Both are obviously incorrect.
      
      Make unhexify() robust on invalid data and use more appropriate data
      types for its parameters. Also, add a small documentation for the
      function.
      
      Change-Id: Idb799beb86fc608b066c8a76365021ed44c7f890
      Signed-off-by: default avatarMarc Schink <openocd-dev@marcschink.de>
      Reviewed-on: http://openocd.zylin.com/3792
      
      
      Tested-by: jenkins
      Reviewed-by: default avatarTomas Vanek <vanekt@fbl.cz>
      674141e8
  9. 14 Aug, 2016 1 commit
  10. 24 May, 2016 1 commit
  11. 29 Feb, 2016 1 commit
  12. 30 Oct, 2015 1 commit
    • Andrew Ruder's avatar
      rtos: turn stack alignment into a function pointer · 9413a7a8
      Andrew Ruder authored
      
      
      Some targets (Cortex M) require more complicated calculations for
      turning the stored stack pointer back into a process stack pointer.
      For example, the Cortex M stores a bit in the auto-stacked xPSR
      indicating that alignment had to be performed and an additional 4
      byte padding is present before the exception stacking.  This change
      only sets up the framework for Cortex-M unstacking and does not
      add Cortex-M support.
      
      Note: this also fixes the alignment calculation nearly addressed by
      change #2301 entitled rtos/rtos.c: fix stack alignment calculation.
      Updated calculation is in rtos_generic_stack_align.
      
      Change-Id: I0f662cad0df81cbe5866219ad0fef980dcb3e44f
      Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
      Cc: Paul Fertser <fercerpav@gmail.com>
      Cc: Andreas Fritiofson <andreas.fritiofson@gmail.com>
      Cc: Evan Hunter <evanhunter920@gmail.com>
      Cc: Jon Burgess <jburgess777@gmail.com>
      Reviewed-on: http://openocd.zylin.com/3002
      
      Reviewed-by: default avatarAndreas Fritiofson <andreas.fritiofson@gmail.com>
      Tested-by: jenkins
      9413a7a8
  13. 24 Apr, 2015 1 commit
  14. 14 Apr, 2015 1 commit
  15. 09 Mar, 2015 1 commit
  16. 24 Nov, 2014 1 commit
  17. 06 Oct, 2014 1 commit
  18. 30 Mar, 2014 1 commit
  19. 04 Mar, 2014 3 commits
  20. 04 Feb, 2014 1 commit
  21. 26 Jul, 2013 1 commit
  22. 01 Jul, 2013 1 commit
  23. 05 Jun, 2013 1 commit
  24. 10 May, 2013 1 commit
  25. 24 Mar, 2013 1 commit
  26. 26 Feb, 2013 1 commit
  27. 27 Jan, 2013 3 commits
  28. 28 Oct, 2012 3 commits
  29. 16 Oct, 2012 1 commit
    • Matthias Blaicher's avatar
      rtos: Add ChibiOS/RT support · 14e12c39
      Matthias Blaicher authored
      
      
      This patch adds ChibiOS/RT support. This patch requires at least
      ChibiOS/RT development version starting from SVN revision 4734.
      
      Note, that the Thread structures depend not only on the target
      but also on the ChibiOS configuration at build time.
      To correct this ChibiOS includes a new "memory signature" which
      specifies the offsets.
      
      Special thanks go to Peter Stuge and Spencer Oliver for their
      continous input and feedback to this patch.
      
      Change-Id: I842bf7ba6c2309a4efe93d29ea6cd0784a8b22a3
      Signed-off-by: default avatarMatthias Blaicher <matthias@blaicher.com>
      Reviewed-on: http://openocd.zylin.com/901
      
      
      Tested-by: jenkins
      Reviewed-by: default avatarPeter Stuge <peter@stuge.se>
      14e12c39
  30. 09 Oct, 2012 1 commit