* Continued MIPS kernel debugging symbols problem...
@ 2001-09-13 19:43 Steven J. Hill
2001-09-13 21:27 ` Daniel Jacobowitz
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Steven J. Hill @ 2001-09-13 19:43 UTC (permalink / raw)
To: binutils, gdb, linux-mips
Greetings.
I have tried everything I can to get Linux kernel debugging
symbols to work properly. I apologize for posting to so
many lists too, but I really need to get this working. I
traded a few emails with HJ Lu and he referred me to the
following messages/threads:
http://sources.redhat.com/ml/gdb/2001-08/msg00053.html
http://sources.redhat.com/ml/gdb/2001-08/msg00079.html
http://sources.redhat.com/ml/gdb/2001-08/msg00084.html
I did read them a few times and it appears that all the
necessary changes are in the current gdb and insight CVS
repositories. I checked out the latest sources a half
hour ago and compiled both gdb and insight using the
configuration line:
configure --prefix=/opt/tools --target=mipsel-linux-elf
since my target is a NEC 5432 running in LE mode. I had
also tried 'mips-linux-elf' targets earlier in the day
with no difference. I am still getting the following
mismatch in symbols:
--------------------------------------------------------------------
(gdb) target remote /dev/ttyS1
Remote debugging using /dev/ttyS1
0x80012828 in breakinst () at af_packet.c:1879
1879 sock_unregister(PF_PACKET);
(gdb) bt
#0 0x80012828 in breakinst () at af_packet.c:1879
#1 0x8001a0d4 in sys_create_module (name_user=0x10001dc8 "cfi_probe",
size=8176) at module.c:305
(gdb) c
Continuing.
--------------------------------------------------------------------
I compiled my kernel with a toolchain that used the following
versions of tools:
binutils-2.11.90.0.31 (HJLu patches applied)
gcc-3.0.1 (stock)
glibc-2.2.3 (minor build patches)
Things are still not working and I would greatly appreciate some
direction. I've blown a whole day this and am a bit frazzled.
Thanks a bunch in advance.
-Steve
--
Steven J. Hill - Embedded SW Engineer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Continued MIPS kernel debugging symbols problem...
2001-09-13 19:43 Continued MIPS kernel debugging symbols problem Steven J. Hill
@ 2001-09-13 21:27 ` Daniel Jacobowitz
2001-09-14 7:05 ` Andrew Cagney
2001-09-14 8:07 ` H . J . Lu
2001-09-20 5:21 ` Amit S. Kale
2 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2001-09-13 21:27 UTC (permalink / raw)
To: Steven J. Hill; +Cc: binutils, gdb, linux-mips
On Thu, Sep 13, 2001 at 09:34:18PM -0500, Steven J. Hill wrote:
> configure --prefix=/opt/tools --target=mipsel-linux-elf
>
> since my target is a NEC 5432 running in LE mode. I had
> also tried 'mips-linux-elf' targets earlier in the day
> with no difference. I am still getting the following
> mismatch in symbols:
(Could you try building a mipsel-unknown-linux-gnu debugger/compiler
instead? Does it make any difference? I don't expect it to.)
> I compiled my kernel with a toolchain that used the following
> versions of tools:
>
> binutils-2.11.90.0.31 (HJLu patches applied)
> gcc-3.0.1 (stock)
> glibc-2.2.3 (minor build patches)
If you'll post a binary that you're having trouble debugging, I'll try
to find time in the next couple of days to see what GDB is doing wrong.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Continued MIPS kernel debugging symbols problem...
2001-09-13 21:27 ` Daniel Jacobowitz
@ 2001-09-14 7:05 ` Andrew Cagney
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Cagney @ 2001-09-14 7:05 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Steven J. Hill, binutils, gdb, linux-mips
>
> If you'll post a binary that you're having trouble debugging, I'll try
> to find time in the next couple of days to see what GDB is doing wrong.
PUT UP FOR FTP!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Continued MIPS kernel debugging symbols problem...
2001-09-13 19:43 Continued MIPS kernel debugging symbols problem Steven J. Hill
2001-09-13 21:27 ` Daniel Jacobowitz
@ 2001-09-14 8:07 ` H . J . Lu
2001-09-20 5:21 ` Amit S. Kale
2 siblings, 0 replies; 5+ messages in thread
From: H . J . Lu @ 2001-09-14 8:07 UTC (permalink / raw)
To: Steven J. Hill; +Cc: binutils, gdb, linux-mips
On Thu, Sep 13, 2001 at 09:34:18PM -0500, Steven J. Hill wrote:
> I did read them a few times and it appears that all the
> necessary changes are in the current gdb and insight CVS
> repositories. I checked out the latest sources a half
> hour ago and compiled both gdb and insight using the
> configuration line:
>
> configure --prefix=/opt/tools --target=mipsel-linux-elf
^^^^^^^^^^^^^^^
I don't know if it will configure anything for Linux/mips. I use
mipsel-linux.
H.J.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Continued MIPS kernel debugging symbols problem...
2001-09-13 19:43 Continued MIPS kernel debugging symbols problem Steven J. Hill
2001-09-13 21:27 ` Daniel Jacobowitz
2001-09-14 8:07 ` H . J . Lu
@ 2001-09-20 5:21 ` Amit S. Kale
2 siblings, 0 replies; 5+ messages in thread
From: Amit S. Kale @ 2001-09-20 5:21 UTC (permalink / raw)
To: sjhill; +Cc: binutils, gdb, linux-mips
Hi,
If you are debugging linux kernel modules, you may find
the loadmodule.sh script from http://kgdb.sourceforge.net/
useful to get a gdb script to load module object files.
"Steven J. Hill" wrote:
>
> Greetings.
>
> I have tried everything I can to get Linux kernel debugging
> symbols to work properly. I apologize for posting to so
> many lists too, but I really need to get this working. I
> traded a few emails with HJ Lu and he referred me to the
> following messages/threads:
>
> http://sources.redhat.com/ml/gdb/2001-08/msg00053.html
> http://sources.redhat.com/ml/gdb/2001-08/msg00079.html
> http://sources.redhat.com/ml/gdb/2001-08/msg00084.html
>
> I did read them a few times and it appears that all the
> necessary changes are in the current gdb and insight CVS
> repositories. I checked out the latest sources a half
> hour ago and compiled both gdb and insight using the
> configuration line:
>
> configure --prefix=/opt/tools --target=mipsel-linux-elf
>
> since my target is a NEC 5432 running in LE mode. I had
> also tried 'mips-linux-elf' targets earlier in the day
> with no difference. I am still getting the following
> mismatch in symbols:
>
> --------------------------------------------------------------------
> (gdb) target remote /dev/ttyS1
> Remote debugging using /dev/ttyS1
> 0x80012828 in breakinst () at af_packet.c:1879
> 1879 sock_unregister(PF_PACKET);
> (gdb) bt
> #0 0x80012828 in breakinst () at af_packet.c:1879
> #1 0x8001a0d4 in sys_create_module (name_user=0x10001dc8 "cfi_probe",
> size=8176) at module.c:305
> (gdb) c
> Continuing.
> --------------------------------------------------------------------
>
> I compiled my kernel with a toolchain that used the following
> versions of tools:
>
> binutils-2.11.90.0.31 (HJLu patches applied)
> gcc-3.0.1 (stock)
> glibc-2.2.3 (minor build patches)
>
> Things are still not working and I would greatly appreciate some
> direction. I've blown a whole day this and am a bit frazzled.
> Thanks a bunch in advance.
>
> -Steve
>
> --
> Steven J. Hill - Embedded SW Engineer
--
Amit Kale
Veritas Software India ( http://www.veritasindia.com/ )
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-09-20 5:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-13 19:43 Continued MIPS kernel debugging symbols problem Steven J. Hill
2001-09-13 21:27 ` Daniel Jacobowitz
2001-09-14 7:05 ` Andrew Cagney
2001-09-14 8:07 ` H . J . Lu
2001-09-20 5:21 ` Amit S. Kale
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).