Hi Amit,

I applied module.patch and Iam using gdbmod-2.4 only.
I humbly request you to just go thru the following commands,Iam using,  
and please let me know where Iam going wrong.

log:
----------------------------------------------------------
kiran:/deb-etch/home/savon/main/2.6.12# ./gdbmod-2.4 obj-i386/vmlinux

GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db 
library "/lib/tls/i686/cmov/libthread_db.so.1".


(gdb) set remotebaud 19200

(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
breakpoint () at /home/savon/main/2.6.12/kernel/kgdb.c:1875
1875            atomic_set(&kgdb_setting_breakpoint, 0);
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Reply contains invalid hex digit 116

(gdb) set solib-search-path 
/deb-etch/home/savon/main/2.6.12/obj-i386/drivers/char/pcf/
Ignoring packet error, continuing...
Reply contains invalid hex digit 116
--------------------------------------------------

To make sure , whether speed settings are fine,
I have checked the string "+$S05#b8" on target machine.It is very much there.
Also , if Iam using "gdb" , then this "packet errors" are not coming.

Please provide me with pointers to proceed further.
 My setup:
----------
-Iam using kgdb-2.4 for kernel-2.6.12.
-host and target machine are x86.
-on target, kernel cmdline is 
"/vmlinuz-2.6.12.11-sipera_9 root=/dev/sda3 ro kgdb8250=io,3f8,19200,4"

Thanks in Advance,
K.Kiran Kumar





Hi Kiran,

The word "Shared libraries" represents modules. gdb was originally
 written
for applications. We've used it's shared library facility for modules

Are you using gdbmod? If yes, have you applied module.patch?
-Amit

On 7/17/07, kiran kumar <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> @Amit
> I tried the "info shared library" /"info shared"  command, but "No
 shared
> libraries are loaded at this time" message is coming. Iam little bit
> hesitant to ask this, but shared libraries are different from modules
> ...right?
>
>
> Can anybody provide me with some pointers to proceed further?What are
 the
> steps I should follow ,so that my module gets detected by gdb?
>
> Thanks in Advance,
> -Kiran

       
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
-------------------------------------------------------------------------
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