[olsr-dev] using gdb on the plugins
Mon Nov 15 15:39:59 CET 2004
I said as you told me. However, still the same, that I cannot step line
by line through the plugin's source code.
I attached a log file showing what I did within gdb. Maybe someone could
try to reproduce this. I've already been trying to get around this for
some hours. And google only tells me about a bunch of mail threads,
which I did not find very helpful so far :(
> I have been able to make it work by simply adding a break in the
> olsrd code first and then adding a break in the plugin code. Olsr
> must be running and have the plugin loaded before the gdb recognises
> the plugins. Simply adding a break in the plugin code from gdb did
> not work.
> First add a break in olsrd, I usually break in net_output,
> when I know OLSR is running and my plugin has been loaded.
> Then you can add a breakpoint in your plugin code and tell gdb to
> continue. You may have to tell gdb where your plugin code is or cd to
> it. I use DDD debugger, so I am not a specialist in gdb commands. I
> quite like the GUI of DDD.
> Anyway, this should enable you to break in the plugin code.
> Christoffer Andersson
> Thales Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5023 bytes
Desc: not available
More information about the Olsr-dev