On Thursday 05 July 2007 23:50, Piet Delaney wrote:
> kiran kumar wrote:
> > Hi all,
> >
> > I am trying to setup KGDB for remote debugging. I have applied
> > kgdb-2.4patch, to kernel-2.6.12 manually(without using patch command) .
> >
> > Iam able to debug the kernel, set the breakpoints. but iam struck at
> > debuging the modules.
> >
> > To debug modules , Iam using gdbmod-2.4 , prebuilt version available at
> > linsyssoftcom.
> >
> > On development machine,Iam setting the corresponding path  for
> > my_module.ko  at gdb prompt, using set solib-search-path
> > /home/kiran/my_modules/
> >
> > On target machine, Iam doing
> > insmod my_module.ko
> >
> > But with this , Iam unable to set breakpoints or debug the modules.
> >
> > Can anybody tell me , what I have missed  ?
> > How to provide the modules symbols and offset to gdb?
> > Please excuse me , if it is not the right place to place my query, but
> > help me. Thanks in Advance,
>
> Amit has a script to extract the symbols from the modules and
> provide them to gdb. They use to be on his web site.
>
>     http://kgdb.linsyssoft.com/
>
> If you dig around maybe you will still be able to find it.
> I used it on linux-2.4 and it worked fine.

This script is not required with gdbmod. gdbmod has capabilities for detecting 
and loading module object files.
-Amit

>
> -piet
>
> > K.Kiran Kumar
> >
> >
> >
> >
> > ---------------------------------
> > Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user
> > panel and lay it on us.
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Kgdb-bugreport mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Kgdb-bugreport mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to