[Rock-dev] [rock] #404: Orocos: alternative possibility to start gdb (documentation)

rock noreply at opendfki.de
Mon Jan 6 16:31:49 CET 2014


#404: Orocos: alternative possibility to start gdb (documentation)
-------------------------+------------------------------------------------
 Reporter:  mzenzes      |      Owner:  rock-dev-mailing-list
     Type:  enhancement  |     Status:  new
 Priority:  minor        |  Milestone:
Component:  base         |   Keywords:  documentation,orocos,gdb,debugging
-------------------------+------------------------------------------------
 As mentioned in the [http://rock-
 robotics.org/stable/documentation/runtime/debugging.html "documentation"],
 `gdb` can be started by orocos as part of a ruby script, using
 `gdbserver`.

 This will fail in larger Tasks due to timeouts while `gdb` is loading the
 libraries.

 Starting (and renaming) the Task with `gdb` in a separate shell prior to
 executing `ruby` allows loading of libraries without risking a timeout. So
 the following is possible as well:

 independent shell, prior to starting ruby:
 {{{
 $ gdb /path/to/orogen_default_my_project_Task
 (gdb) run --rename orogen_default_my_project__Task:task
 ... (takes some time)
 }}}

 modified ruby script, based on the one in the link above. Not explicitly
 starting "task" because it is already running -- access via orocos still
 possible:
 {{{
 Orocos.run 'my_deployment' do
 ...
    t1 = Orocos.name_service.get 'task'
 ...
 end
 }}}

-- 
Ticket URL: <http://rock.opendfki.de/ticket/404>
rock <http://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list