Re: [Kgdb-bugreport] [KGDB PATCH][7/7] Move debugger_entry()

From: Tom Rini (trini_at_kernel.crashing.org)
Date: 02/28/04

  • Next message: Linus Torvalds: "Linux 2.6.4-rc1"
    Date:	Fri, 27 Feb 2004 16:08:38 -0700
    To: George Anzinger <george@mvista.com>
    
    

    On Fri, Feb 27, 2004 at 02:53:49PM -0800, George Anzinger wrote:
    > Tom Rini wrote:
    > >Hello. When we use kgdboe, we can't use it until do_basic_setup() is done.
    > >So we have two options, not allow kgdboe to use the initial breakpoint
    > >or move debugger_entry() to be past the point where kgdboe will be usable.
    > >I've opted for the latter, as if an earlier breakpoint is needed you can
    > >still use serial and throw kgdb_schedule_breakpoint/breakpoint where
    > >desired.
    >
    > Please don't do this. How about configuring it along with the connection
    > method. I really don't want to have to modify the kernel just to get in
    > early.

    This is 'early'. Keep in mind that this version of KGDB already isn't
    breaking in nearly as early as the one in -mm (this version is currently
    doing it just before do_basic_setup()). And keep in mind that the goal
    of this version right now is to get something clean and small that can
    somehow slip into Linus' tree. Changes to the non-lite
    core/i386/whatever to allow for much earlier access is fine.

    -- 
    Tom Rini
    http://gate.crashing.org/~trini/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Linus Torvalds: "Linux 2.6.4-rc1"

    Relevant Pages

    • Re: PPC KGDB changes and some help?
      ... > Tom Rini wrote: ... > able to do a breakpoint() as the first line of C code in the kernel. ... as would other arches which need to do some setup. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Kgdb-bugreport] [KGDB PATCH][7/7] Move debugger_entry()
      ... Tom Rini wrote: ... > or move debugger_entryto be past the point where kgdboe will be usable. ... > I've opted for the latter, as if an earlier breakpoint is needed you can ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH][0/6] A different KGDB stub
      ... Tom Rini wrote: ... > you can try and connect at any point, which will schedule a breakpoint ... only sysrq-g could get the breakpoint. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH][0/6] A different KGDB stub
      ... a breakpoint at the first line of C code is untested. ... > I don't think runtime selection is very important, ... I think CONFIG_KGDB_SYSRQ can die since with the 8250 and enet drivers ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: hardware breakpoints questions
      ... doesn't have to know anything about the hardware details. ... request for setting a breakpoint. ... On i386 architecture the primary function of the debug registers is to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)