[sr-dev] debugger moduel - get config line number

smititelu stefan.mititelu at 1and1.ro
Thu Jan 14 13:10:53 CET 2016


Hi,

I'm trying to get the line number when a config function is called. 
Looking at the *fixup_dbg_pv_dump*():
"
     dbg_sip_msg_action = dbg_fixup_get_action(param, param_no);
     _dbg_sip_msg_cline = dbg_sip_msg_action->cline;
"
The above works as long as the config function is called with at least 1 
parameter. When the config function is called with no parameters (param 
== NULL), this will segfault at the moment, due to invalid access at the 
second line.

The question is, is there a straightforward way to get the config number 
of a config function with no parametersx? Else, I could just return a 
negative value meaning that the config line is unknown.

Regards,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160114/60d4d016/attachment.html>


More information about the sr-dev mailing list