[RTEMS Project] #3733: Add general reg support to libdebugger

RTEMS trac trac at rtems.org
Fri Apr 5 06:13:28 UTC 2019


#3733: Add general reg support to libdebugger
---------------------------+-------------------------
  Reporter:  Chris Johns   |      Owner:  Chris Johns
      Type:  enhancement   |     Status:  new
  Priority:  normal        |  Milestone:  5.1
 Component:  lib/debugger  |    Version:  5
  Severity:  normal        |   Keywords:
Blocked By:                |   Blocking:
---------------------------+-------------------------
 Testing master on a Zynq reports:
 {{{
 (gdb) target remote 10.10.5.45:1122
 Remote debugging using 10.10.5.45:1122
 Truncated register 19 in remote 'g' packet
 }}}
 It looks to me like gdb is now smart enough to know this ARM arch has a
 NEON and floating point registers:
 {{{
 (gdb) maint print registers
 Name         Nr  Rel Offset    Size  Type
  r0            0    0      0       4 uint32_t
  r1            1    1      4       4 uint32_t
  r2            2    2      8       4 uint32_t
  r3            3    3     12       4 uint32_t
  r4            4    4     16       4 uint32_t
  r5            5    5     20       4 uint32_t
  r6            6    6     24       4 uint32_t
  r7            7    7     28       4 uint32_t
  r8            8    8     32       4 uint32_t
  r9            9    9     36       4 uint32_t
  r10          10   10     40       4 uint32_t
  r11          11   11     44       4 uint32_t
  r12          12   12     48       4 uint32_t
  sp           13   13     52       4 *1
  lr           14   14     56       4 uint32_t
  pc           15   15     60       4 *1
  f0           16   16     64      12 _arm_ext
  f1           17   17     76      12 _arm_ext
  f2           18   18     88      12 _arm_ext
  f3           19   19    100      12 _arm_ext
  f4           20   20    112      12 _arm_ext
  f5           21   21    124      12 _arm_ext
  f6           22   22    136      12 _arm_ext
  f7           23   23    148      12 _arm_ext
  fps          24   24    160       4 uint32_t
  cpsr         25   25    164       4 uint32_t
 }}}
 The target support in libdebugger is a simple array of 32bit ints. This
 needs to change to handle registers at various offsets. The lack of fp
 regs was a simplification at the time I first implement this server. Loos
 like I need to sort this out.

--
Ticket URL: <http://devel.rtems.org/ticket/3733>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list