Thread (1 message) 1 message, 1 author, 2003-03-04

Re: Question about modules

From: Wolfgang Denk <hidden>
Date: 2003-03-04 14:25:53

In message [ref] 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@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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help