[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] object oriented programming vs debug oriented programing (Ex: debugging dm code with kgdb)
- From: Piet Delaney <piet bluelane com>
- To: dm-devel redhat com
- Subject: [dm-devel] object oriented programming vs debug oriented programing (Ex: debugging dm code with kgdb)
- Date: Mon, 09 Oct 2006 17:25:09 -0700
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]