|
Re: i386 Hardware watchpoints using kgdb-2-2.6.14.tar.gz: msg#00041linux.kernel.debugging.kgdb.bugs
Sorry to Tom for the duplicate, I wound up sending this to him instead of the list originally: Hi again, a couple of things... First, I did pick up the kprobes patch Tom subsequently posted. It applied with a couple of trivial conflicts to the kgdb-patched 2.6.14.3 kernel that I'm using. I did not include the second patch which adds kwatch-points--it's a neat feature but not directly related to kgdb. Do you want a copy of the resulting debug register allocation patch? Second, I'm almost done with the hardware break/watchpoint work. It only remains to make it use the debug register allocation mechanism rather than do its own. Along the way I was left wondering why kernel/kgdb.c has that funky dual mechanism for hooking in hardware breakpoints. You have the weakly declared kgdb_set_hw_break and friends, which are used only by i386/x86_64/ia64, and you also have pointers to {set,remove}_hw_breakpoint available through kgdb_ops, which is currently only used by ia64. Is one of those mechanisms deprecated? I chose for the moment to use the call through kgdb_ops. OK, I lied, there is actually a third issue. You can't, in kernel/kgdb.c, just pass the ASCII type code from the Z packet to kgdb_ops->set_hw_breakpoint() without having the compiler complain. The procedure wants a value there that's an enum kgdb_bptype. So, I added a static translation array to pass such a value. The i386 callee then has to use a similar array to change the enum to something specific to the field in i386's dr7. Anyone have a problem with that? This breaks the current ia64 routines, of course. I can supply the corresponding fix but have no way to test it myself. --Dennis Tom Rini wrote: On Fri, Dec 16, 2005 at 10:39:42AM +0530, Amit Kale wrote: ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: BUG: soft lockup detected on CPU#: 00041, George Anzinger |
|---|---|
| Next by Date: | Re: SMP barriers missing?: 00041, Jim Blandy |
| Previous by Thread: | BUG: soft lockup detected on CPU#i: 00041, Girish Shilamkar |
| Next by Thread: | Re: i386 Hardware watchpoints using kgdb-2-2.6.14.tar.gz: 00041, Bob Picco |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |