Re: [Kgdb-bugreport] [PATCH] hvc_console: Add kdb support

2011-08-01 Thread Anton Blanchard
Hi, Add poll_get_char and poll_put_char for kdb. Enable kdb at boot with: Did you mean ...for kgdb. Enable kgdb at boot.. ? I thought kdb and kgdb shared some infrastructure now, but your patch and comments seem to be all about kgdb. No I do mean kdb :) From the Documentation:

[Kgdb-bugreport] [PATCH] hvc_console: Add kdb support

2011-08-01 Thread Anton Blanchard
Add poll_get_char and poll_put_char for kdb. Enable kdb at boot with: kgdboc=hvc0 or at runtime with: echo hvc0 /sys/module/kgdboc/parameters/kgdboc Signed-off-by: Anton Blanchard an...@samba.org --- A couple of things: - I needed to enable CONFIG_KGDB_SERIAL_CONSOLE in order to enable

Re: [Kgdb-bugreport] The AJays tech USB debug dongle used for Linux kernel debug

2011-08-01 Thread Gary Huang
Hello, I don't know if it is the right place to ask this question. Who knows how to setup Linux kernel source level debug with NET20DC USB EHCI? I got the information from the paper State_Of_kernel_debugging_LinuxCon2010.pdf by Jason Wessel. But I could not get the more information about the

[Kgdb-bugreport] KGDB over console

2011-08-01 Thread shaiju shaiju
Hi, Can I use the same port for both kgdb and console ? Regards, shaiju -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect

Re: [Kgdb-bugreport] [PATCH] hvc_console: Add kdb support

2011-08-01 Thread Josh Boyer
On Wed, Jul 13, 2011 at 1:44 AM, Anton Blanchard an...@samba.org wrote: Add poll_get_char and poll_put_char for kdb. Enable kdb at boot with: Did you mean ...for kgdb. Enable kgdb at boot.. ? I thought kdb and kgdb shared some infrastructure now, but your patch and comments seem to be all

[Kgdb-bugreport] [PATCH 1/4] kdb: cleanup unused variables missed in the original kdb merge

2011-08-01 Thread Jason Wessel
The BTARGS and BTSYMARG variables do not have any function in the mainline version of kdb. Reported-by: Tim Bird tim.b...@am.sony.com Signed-off-by: Jason Wessel jason.wes...@windriver.com --- kernel/debug/kdb/kdb_bt.c |5 ++--- kernel/debug/kdb/kdb_cmds |4

[Kgdb-bugreport] [GIT PULL] kgdb/kdb updates for 3.1

2011-08-01 Thread Jason Wessel
Linus, please pull the for_linus branch to pick up the minor kgdb/kdb cleanups accumulated in the last few months. git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_linus Thanks, Jason. --- The following changes since commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe:

[Kgdb-bugreport] [PATCH 2/4] kdb, kgdb: Implement switch and pass buffer from kdb - gdb

2011-08-01 Thread Jason Wessel
When switching from kdb mode to kgdb mode packets were getting lost depending on the size of the fifo queue of the serial chip. When gdb initially connects if it is in kdb mode it should entirely send any character buffer over to the gdbstub when switching connections. Previously kdb was

[Kgdb-bugreport] [PATCH 4/4] kdb, kgdb: Allow arbitrary kgdb magic knock sequences

2011-08-01 Thread Jason Wessel
The first packet that gdb sends when the kernel is in kdb mode seems to change with every release of gdb. Instead of continuing to add many different gdb packets, change kdb to automatically look for any thing that looks like a gdb packet. Example 1 cold start test: echo g /proc/sysrq-trigger

[Kgdb-bugreport] [PATCH 3/4] kdb: Remove all references to DOING_KGDB2

2011-08-01 Thread Jason Wessel
The DOING_KGDB2 was originally a state variable for one of the two ways to automatically transition from kdb to kgdb. Purge all these variables and just use one single state for the transition. Signed-off-by: Jason Wessel jason.wes...@windriver.com --- kernel/debug/kdb/kdb_debugger.c |4

Re: [Kgdb-bugreport] KGDB over console

2011-08-01 Thread Dongdong Deng
You can try the agent-proxy, it is maintained by Jason too, git clone git://git.kernel.org/pub/scm/utils/kernel/kgdb/agent-proxy.git Readme: http://git.kernel.org/?p=utils/kernel/kgdb/agent-proxy.git;a=blob;f=README.TXT;h=07fa7f00949017652f7bbc645bdfa2948a8f0262;hb=HEAD Example: