All of lore.kernel.org
 help / color / mirror / Atom feed
* object oriented programming vs debug oriented programing (Ex: debugging dm code with kgdb)
@ 2006-10-10  0:25 Piet Delaney
  0 siblings, 0 replies; only message in thread
From: Piet Delaney @ 2006-10-10  0:25 UTC (permalink / raw)
  To: dm-devel

Are the devlopers of the device mapping code awair
of how difficult they are making debugging of the
code with kgdb?

Doing object programing like style programming in
C has a major downside. Code that manages the
struct dm_table is in dm_table.c and thus code
in dm_ioctl.c can mess with the structure. 

Unfortunately when useing kgdb on the code you
can see the struct dm_table stuff via pointers
becasue struct dm_table has been declared as
an empty structure.

It would be very helpfull for kgdb users if the
declaration of dm_table was made in dm.h, at least
for KGDB kernels, just to make the code easier to
follow with kgdb.

-piet

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-10  0:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-10  0:25 object oriented programming vs debug oriented programing (Ex: debugging dm code with kgdb) Piet Delaney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.