Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-12-15 Thread Sergei Shtylyov
Hello, I wrote: An initial work around might be the attached patch. It seems both an overkill as it's x86 specific -- we already have kernel-side breakpoint info mirrored in hw_breakpoint[], so I don't see why would we need another array... Maybe initally we should just hedge the

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-10-09 Thread Pete/Piet Delaney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sergei Shtylyov wrote: Hello. Jason Wessel wrote: Hm... yet the kernel I was booting was UP. The same happened with SMP kernel I've just tried. Now I'm confused. :-/ something was broken WRT handling of the h/w breask as being per-CPU

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-10-07 Thread Sergei Shtylyov
Hello. Jason Wessel wrote: Hm... yet the kernel I was booting was UP. The same happened with SMP kernel I've just tried. Now I'm confused. :-/ something was broken WRT handling of the h/w breask as being per-CPU resource but not seeing anything obvious... The piece that clears DR7

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-08-05 Thread Jason Wessel
Sergei Shtylyov wrote: Hm... yet the kernel I was booting was UP. The same happened with SMP kernel I've just tried. Now I'm confused. :-/ something was broken WRT handling of the h/w breask as being per-CPU resource but not seeing anything obvious... The piece that clears DR7 is

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-30 Thread Sergei Shtylyov
Hello, I wrote: BTW, I'm having starnge things happening with h/w breakpoints on i386 -- when I hit initial breakpoint, and enter: (gdb) hb sys_sync (gdb) c and then enter 'sync' after login (even several times), the breakpoint is not hit. It only starts being hit after I press Ctrl-C

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-30 Thread Jason Wessel
Sergei Shtylyov wrote: Hello, I wrote: BTW, I'm having starnge things happening with h/w breakpoints on i386 -- when I hit initial breakpoint, and enter: (gdb) hb sys_sync (gdb) c and then enter 'sync' after login (even several times), the breakpoint is not hit. It only starts being

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-30 Thread Sergei Shtylyov
Hello, I wrote: BTW, I'm having starnge things happening with h/w breakpoints on i386 -- when I hit initial breakpoint, and enter: (gdb) hb sys_sync (gdb) c and then enter 'sync' after login (even several times), the breakpoint is not hit. It only starts being hit after I press Ctrl-C in

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-30 Thread Sergei Shtylyov
Jason Wessel wrote: BTW, I'm having starnge things happening with h/w breakpoints on i386 -- when I hit initial breakpoint, and enter: (gdb) hb sys_sync (gdb) c and then enter 'sync' after login (even several times), the breakpoint is not hit. It only starts being hit after I press

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-29 Thread Jason Wessel
Sergei Shtylyov wrote: Fix the correct_hw_break() method for both i386 and x86_64 to update DR3 and the corresponding bits in DR7. While at it: - somewhat clarify the code setting the enable/type/length fileds in DR7; - initilize the 'correctit' variable right when declaring it; - fix the

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-29 Thread Sergei Shtylyov
Hello. Jason Wessel wrote: Fix the correct_hw_break() method for both i386 and x86_64 to update DR3 and the corresponding bits in DR7. While at it: - somewhat clarify the code setting the enable/type/length fileds in DR7; - initilize the 'correctit' variable right when declaring it; -

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-29 Thread Sergei Shtylyov
Hello, I wrote: BTW, I'm having starnge things happening with h/w breakpoints on i386 -- when I hit initial breakpoint, and enter: (gdb) hb sys_sync (gdb) c and then enter 'sync' after login (even several times), the breakpoint is not hit. It only starts being hit after I press Ctrl-C

Re: [Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-29 Thread Sergei Shtylyov
Jason Wessel wrote: BTW, I'm having starnge things happening with h/w breakpoints on i386 -- when I hit initial breakpoint, and enter: (gdb) hb sys_sync (gdb) c and then enter 'sync' after login (even several times), the breakpoint is not hit. It only starts being hit after I press

[Kgdb-bugreport] [PATCH] i386/x86_64 h/w breakpoints: do update DR3 (take 3)

2007-07-22 Thread Sergei Shtylyov
Fix the correct_hw_break() method for both i386 and x86_64 to update DR3 and the corresponding bits in DR7. While at it: - somewhat clarify the code setting the enable/type/length fileds in DR7; - initilize the 'correctit' variable right when declaring it; - fix the mangled initializer for the