* debugging modules
@ 2001-09-27 7:05 ibm405gp
2001-09-27 7:36 ` Scott Anderson
0 siblings, 1 reply; 3+ messages in thread
From: ibm405gp @ 2001-09-27 7:05 UTC (permalink / raw)
To: linuxppc-embedded@lists.linuxppc.org
Hello,
I want to develop a driver for a graphic card on a Walnut board.
>From now on, I've linked my source with the Linux kernel and debugged it
using a BDI2000.
I saw in a previous message that I would be able to debug modules
instead of generating the kernel each time.
Can somebody give me the procedure to follow?
thanks,
Laurent Mohin, Acterna
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: debugging modules
2001-09-27 7:05 debugging modules ibm405gp
@ 2001-09-27 7:36 ` Scott Anderson
2001-09-27 14:02 ` Peter Desnoyers
0 siblings, 1 reply; 3+ messages in thread
From: Scott Anderson @ 2001-09-27 7:36 UTC (permalink / raw)
To: ibm405gp, linuxppc-embedded@lists.linuxppc.org
on 9/27/01 12:05 AM, ibm405gp at ibm405.linux@laposte.net wrote:
> I saw in a previous message that I would be able to debug modules
> instead of generating the kernel each time.
> Can somebody give me the procedure to follow?
I'll give you a quick pointer, but maybe someone else will give you
a better more detailed procedure. The key is the add-symbol-file
command in gdb. It takes an object file and an address. Using
insmod -m (I believe - I'm aware from the office right now), you
can get the address of where a module gets loaded. Then you use
add-symbol-file to teach gdb about this module and where it's at.
Scott
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: debugging modules
2001-09-27 7:36 ` Scott Anderson
@ 2001-09-27 14:02 ` Peter Desnoyers
0 siblings, 0 replies; 3+ messages in thread
From: Peter Desnoyers @ 2001-09-27 14:02 UTC (permalink / raw)
Cc: ibm405gp, linuxppc-embedded@lists.linuxppc.org
Take a look in Documentation/i386/kgdb. (a couple of the build options
may be different for PPC, but the gdb instructions are the same)
> on 9/27/01 12:05 AM, ibm405gp at ibm405.linux@laposte.net wrote:
> > I saw in a previous message that I would be able to debug modules
> > instead of generating the kernel each time.
> > Can somebody give me the procedure to follow?
>
--
.....................................................................
Peter Desnoyers (781) 457-1165 pdesnoyers@chinook.com
Chinook Communications (617) 661-1979 pjd@fred.cambridge.ma.us
100 Hayden Ave, Lexington MA 02421
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-27 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-27 7:05 debugging modules ibm405gp
2001-09-27 7:36 ` Scott Anderson
2001-09-27 14:02 ` Peter Desnoyers
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 NNTP newsgroup(s).