[Click] RE : Debugging in click
Roman Chertov
rchertov at purdue.edu
Mon Feb 18 05:56:48 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
sam barker wrote:
> Hi,
> No didnt do that.Now how do start the click in debug.
>
> Do I just say gdb click file.config
Provided you run userlevel click you then do.
>gdb click
Once in gdb you set the breakpoints for the element "b fame:line_num"
Then you say "run file.config"
> When I set the break points where does it break in config file or elements
> file.
It will break in the element code.
> I am sorry for these questions,but I really dont have much experience in g++
> and gdb
I suggest looking at some gdb tutorials online.
Roman
> Cheers
>
> On Feb 15, 2008 6:20 PM, Lionel Debroux <lionel_debroux at yahoo.fr> wrote:
>
>> Hi Sam,
>>
>>> I have wrote some elements and recompiled click.Then with a
>>> config file I had started click.
>
>
>>> After a few seconds
>>> I get the error segmentation fault core dumped.
>>>
>>> The packets are not going into element since I have put a
>>> click chatter statement in the push method.
>>>
>>> Is there a debugging mode so that I can step through and see
>>> whats happening
>> Have you tried compiling click with -g3 GCC option (more debugging
>> info), and using GDB/DDD/Insight ?
>> The "core" file should help, too, but it won't be too useful if you
>> didn't compile click with a high amount of debugging information.
>>
>>
>> Regards,
>> Lionel Debroux.
>>
>>
>>
>> ____________________________________________________________________________________________
>> Yahoo! Mail innove : interface hyper pratique, messenger intégré, couleurs
>> - http://mail.yahoo.fr
>>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHuWRwT8ksiSCF2AYRAovkAJ0YelBI0xiz7achj9KtvBqHpt/PAwCgyxDr
t+mBoWdHQ+3XrLEFj8vP2Qw=
=gnzA
-----END PGP SIGNATURE-----
More information about the click
mailing list