Question about modules

Wolfgang Denk wd at denx.de
Wed Mar 5 01:25:53 EST 2003


In message <Pine.LNX.4.33.0303040826250.2281-100000 at localhost.localdomain> you wrote:
>
> Modules are generally easier to debug.

I'm not sure if I want to agree here.

First, you have to learn how to use GDB to deal with the symbol table
of a dynamically loaded module. Second, did you ever  try  to  set  a
breakpoint in the init function of a dynamically loaded module? It is
possible  to  do that, but you need a certain level of understanding,
and if your boot loader supports download over ethernet it is usually
easier and faster to debug this situation with  a  statically  linked
driver.


You are right however as far  as  the  modify-compile-load-run-unload
development cycle is concerned.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
If I can have honesty, it's easier to overlook mistakes.
	-- Kirk, "Space Seed", stardate 3141.9

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list