[RTEMS Project] #4740: Teach libdebugger to wait for GDB to connect and ask to continue

RTEMS trac trac at rtems.org
Mon Oct 17 20:30:38 UTC 2022


#4740: Teach libdebugger to wait for GDB to connect and ask to continue
------------------------------+--------------------------
 Reporter:  Kévin Le Gouguec  |       Owner:  Chris Johns
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:
Component:  lib/debugger      |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |  Blocked By:
 Blocking:                    |
------------------------------+--------------------------

Comment (by Chris Johns):

 I took a closer look at the debug server code and saw a simpler solution.
 I have have added a new call:
 {{{
 /**
  * Suspend all running threads including the caller if not
  * excluded. Returns when the debugger has connected and continued.
  *
  * If wait is true and there is no remote connected wait then break.
  */
 extern int rtems_debugger_break(bool wait);
 }}}
 I think this is simpler and cleaner to implement and use and it also lets
 users make the call anytime to break the target.

 The patch can be found here
 https://lists.rtems.org/pipermail/devel/2022-October/073581.html

--
Ticket URL: <http://devel.rtems.org/ticket/4740#comment:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list