Re: Debugging RLM modules

2008-02-03 Thread Ali Majdzadeh
Hello Doug
Thanks a lot for your usefull points. I am going to give it a try.

Kind Regards
Ali

2008/2/3, Doug Hardie <[EMAIL PROTECTED]>:
>
>
> On Feb 2, 2008, at 01:14, Alan DeKok wrote:
>
> > Ali Majdzadeh wrote:
> >> Is there any way to debug an RLM module using gdb?
> >
> >  Yes.  The modules are just shared libraries.  See the gdb manual for
> > how to deal with shared libraries.
>
> Some additional info may be helpful.  You can attach to a running
> radiusd with gdb and the -i option and set breakpoints for the module
> you want to debug.  However, if this is an operational server you will
> quickly get into big issues.  You really ought to get either another
> instance running or use a test server and start it with gdb -i radiusd
> -X. Then set your breakpoints and run the test.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Debugging RLM modules

2008-02-02 Thread Alan DeKok
Doug Hardie wrote:
>>  Yes.  The modules are just shared libraries.  See the gdb manual for
>> how to deal with shared libraries.
> 
> Some additional info may be helpful.

  Many of my "unhelpful" answers are intended to get people to read the
documentation, and to think for themselves.  If people are spoon-fed
answers, they will come back asking for more.

  If you're prepared to answer endless questions about topics already
covered in the documentation, be my guest.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Debugging RLM modules

2008-02-02 Thread Doug Hardie


On Feb 2, 2008, at 01:14, Alan DeKok wrote:


Ali Majdzadeh wrote:

Is there any way to debug an RLM module using gdb?


 Yes.  The modules are just shared libraries.  See the gdb manual for
how to deal with shared libraries.


Some additional info may be helpful.  You can attach to a running  
radiusd with gdb and the -i option and set breakpoints for the module  
you want to debug.  However, if this is an operational server you will  
quickly get into big issues.  You really ought to get either another  
instance running or use a test server and start it with gdb -i radiusd  
-X. Then set your breakpoints and run the test.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Debugging RLM modules

2008-02-02 Thread Alan DeKok
Ali Majdzadeh wrote:
> Is there any way to debug an RLM module using gdb?

  Yes.  The modules are just shared libraries.  See the gdb manual for
how to deal with shared libraries.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Debugging RLM modules

2008-02-01 Thread Ali Majdzadeh
Hello All
Is there any way to debug an RLM module using gdb?

Kind Regards
Ali Majdzadeh Kohbanani
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html