[olsr-dev] using gdb on the plugins
Jens Nachtigall
(spam-protected)
Mon Nov 15 15:39:59 CET 2004
Hi Christoffer,
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 :(
Kind regards,
Jens
> 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.
>
> Regards,
> Christoffer Andersson
> Thales Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb.output
Type: text/x-diff
Size: 5023 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20041115/b885da01/attachment.diff>
More information about the Olsr-dev
mailing list