Re: kgdb support in vanilla 2.6.2
From: Amit S. Kale (amitkale_at_emsyssoft.com)
Date: 03/03/04
- Previous message: Amit S. Kale: "Re: [Kgdb-bugreport] [KGDB][RFC] Send a fuller T packet"
- In reply to: George Anzinger: "Re: kgdb support in vanilla 2.6.2"
- Next in thread: Tom Rini: "Re: kgdb support in vanilla 2.6.2"
- Reply: Tom Rini: "Re: kgdb support in vanilla 2.6.2"
- Reply: George Anzinger: "Re: kgdb support in vanilla 2.6.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: George Anzinger <george@mvista.com>, Andrew Morton <akpm@osdl.org> Date: Wed, 3 Mar 2004 10:38:39 +0530
On Wednesday 03 Mar 2004 5:22 am, George Anzinger wrote:
> Andrew Morton wrote:
> > George Anzinger <george@mvista.com> wrote:
> >> Often it is not clear just why we are in the stub, given that
> >>we trap such things as kernel page faults, NMI watchdog, BUG macros and
> >> such.
> >
> > Yes, that can be confusing. A little printk on the console prior to
> > entering the debugger would be nice.
>
> That assumes that one can do a printk and not run into a lock. Far better
> IMNSHO is to provide a simple way to get it from gdb. One can then even
> provide a gdb macro to print the relevant source line and its surrounds. I
> my lighter moments I call this the comefrom macro :) In my kgdb it would
> look like:
>
> l * kgdb_info.called_from
How about echoing "Waiting for gdb connection" stright into the serial line
without any encoding? Since gdb won't be connected to the other end, and many
a times a minicom could be running at the other end, it'll give a user an
indication of kgdb being ready.
-- Amit Kale EmSysSoft (http://www.emsyssoft.com) KGDB: Linux Kernel Source Level Debugger (http://kgdb.sourceforge.net) - 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/
- Previous message: Amit S. Kale: "Re: [Kgdb-bugreport] [KGDB][RFC] Send a fuller T packet"
- In reply to: George Anzinger: "Re: kgdb support in vanilla 2.6.2"
- Next in thread: Tom Rini: "Re: kgdb support in vanilla 2.6.2"
- Reply: Tom Rini: "Re: kgdb support in vanilla 2.6.2"
- Reply: George Anzinger: "Re: kgdb support in vanilla 2.6.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|