|
h/w watchpoint pointer initialization patch.: msg#00130linux.kernel.debugging.kgdb.bugs
Hi, While debugging cvs gdb, I put a h/w watch point, when this watch point hits gdb calls target_insert_watchpoint macro. This macro definition is present in target.h as bellow: #define target_insert_watchpoint(addr, len, type) \ (*current_target.to_insert_watchpoint) (addr, len, type) In case of remote debugging *current_target.to_insert_watchpoint points to remote_target_insert_watchpoint function, but while native debugging it should points to <host_arch>_insert_watchpoint (e.g. i386_insert_watchpoint) instead it points to return_minus_one function. This patch removes declaration of macros in file gdb/config/i386/nm- i386.h for insertion and removal of h/w watchpoints. Instead it initializes register access methods in gdb/i386-linux-nat.c file. That fixes the above problem. I have committed this patch at gdb/hw_watchpt_pointer_initialization.patch. thanks - Jitendra
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: kgdb on arm for 2.6: 00130, Lance Spaulding |
|---|---|
| Next by Date: | kgdb documentation in pdf format: 00130, Mayur Sonukale |
| Previous by Thread: | kgdb on kernel 2.6.14i: 00130, elise guedin |
| Next by Thread: | kgdb documentation in pdf format: 00130, Mayur Sonukale |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |