Re: [git pull] kgdb-light -v10

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Tuesday, February 12, 2008 - 9:25 am

On Tue, 12 Feb 2008, Andi Kleen wrote:

Quite frankly, if kgdb starts doing somethign "fancy", there is no way 
I'll merge it.

This includes things like having "breakpoint reservations" (discussed 
earlier) and just generally trying to add lots of infrastructure to make 
kgdb "fit in" to the kernel.

The fact is, not having kgdb enabled should have _zero_ impact on the 
kernel, but the implication is also that when you *do* enable kgdb, that 
shouldn't change anything visible either: the rest of the kernel should 
simply not _possibly_ be able to even tell or care (which is why 
breakpoint reservations are out - they are against the whole point of 
debugging a unmodified kernel).

So kgdb in my opinion will *have* to step on some other kernel 
infrastructure. I also think that things like timeouts are not something 
the client should do - if a kgdb lock never gets through, then it should 
be the debugging end that should just react to ^C and tough titties: it's 
not like there's a whole lot to be done.

In other words: I think the kgdb patches have become a lot more palatable 
over the last week, but I think so exactly because they have gotten 
smaller and less invasive. Anything that evokes any discussion AT ALL 
should just be removed. It really should be that simple.

[ The exception being that I think hw breakpoint support should be added 
  back in - never mind that it won't work if the "native kernel" also uses 
  them. Tough.

  If the debugger screws up the hw breakpoint state, that's a debugger 
  error. I'd hope that the remote debugger *defaults* to just re-writing 
  the instruction stream for that reason, but if you want to do a data 
  breakpoint, you simply *have* to use the hw breakpoints for kgdb.

  And you just need to live with the fact that it simply won't be possible 
  to do if the client wants to use hw breakpoints too. If the client 
  starts using hw breakpoints - tough titties, it takes them. ]

So keep the damn thing really simple, and don't try to handle every 
possible thing. We expect the debugger side to have a person with some 
flexibility on it.

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kgdb in git-x86#mm review, Andi Kleen, (Sun Feb 10, 6:53 pm)
Re: kgdb in git-x86#mm review, Frank Ch. Eigler, (Mon Feb 11, 8:32 am)
Re: kgdb in git-x86#mm review, Mark Lord, (Mon Feb 11, 9:03 am)
Re: kgdb in git-x86#mm review, Andi Kleen, (Mon Feb 11, 9:11 am)
Re: [git pull] kgdb-light -v8,, Jan Kiszka, (Mon Feb 11, 9:41 am)
Re: [git pull] kgdb-light -v8,, Ingo Molnar, (Mon Feb 11, 9:54 am)
[git pull] kgdb-light -v9, Ingo Molnar, (Mon Feb 11, 4:03 pm)
Re: [git pull] kgdb-light -v9, Sam Ravnborg, (Tue Feb 12, 2:35 am)
Re: [git pull] kgdb-light -v9, Andi Kleen, (Tue Feb 12, 3:03 am)
Re: [git pull] kgdb-light -v9, Roland McGrath, (Tue Feb 12, 3:26 am)
Re: [git pull] kgdb-light -v9, Ingo Molnar, (Tue Feb 12, 3:34 am)
[git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 4:27 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 5:19 am)
Re: [git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 5:38 am)
Re: [git pull] kgdb-light -v10, Domenico Andreoli, (Tue Feb 12, 6:18 am)
Re: [git pull] kgdb-light -v10, Jason Wessel, (Tue Feb 12, 6:30 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 6:50 am)
Re: [git pull] kgdb-light -v10, Jason Wessel, (Tue Feb 12, 6:59 am)
Re: [git pull] kgdb-light -v10, Jason Wessel, (Tue Feb 12, 7:35 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 7:39 am)
Re: [git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 8:16 am)
Re: [git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 8:28 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 8:28 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 8:36 am)
Re: [git pull] kgdb-light -v10, Domenico Andreoli, (Tue Feb 12, 8:45 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 9:11 am)
Re: [git pull] kgdb-light -v10, Jason Wessel, (Tue Feb 12, 9:21 am)
Re: [git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 9:24 am)
Re: [git pull] kgdb-light -v10, Linus Torvalds, (Tue Feb 12, 9:25 am)
Re: [git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 9:42 am)
Re: [git pull] kgdb-light -v10, Linus Torvalds, (Tue Feb 12, 9:46 am)
Re: [git pull] kgdb-light -v10, Jason Wessel, (Tue Feb 12, 9:48 am)
Re: [git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 10:01 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 10:01 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 10:07 am)
Re: [git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 10:10 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 10:10 am)
Re: [git pull] kgdb-light -v10, Linus Torvalds, (Tue Feb 12, 11:11 am)
Re: [git pull] kgdb-light -v10, Andrew Morton, (Tue Feb 12, 11:20 am)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 11:20 am)
Re: [git pull] kgdb-light -v10, Linus Torvalds, (Tue Feb 12, 12:01 pm)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 12:16 pm)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 12:22 pm)
Re: [git pull] kgdb-light -v10, Frank Ch. Eigler, (Tue Feb 12, 12:34 pm)
Re: [git pull] kgdb-light -v10, Andi Kleen, (Tue Feb 12, 1:16 pm)
Re: [git pull] kgdb-light -v10, Ingo Molnar, (Tue Feb 12, 2:01 pm)
Re: [RFC][PATCH] modular kgdb-light, Jason Wessel, (Fri Feb 15, 1:24 pm)
Re: [git pull] kgdb-light -v10, Jason Wessel, (Fri Feb 15, 1:36 pm)