[PATCH 2.6.27-rc3 20/29] mdb: export the console redirection handle



export the console redirection handle to allow
the debugger screen to becoime visible again during exceptions. Export
of this variable allows the debugger to switch to the current screen
in order to enable the debugging console on systems with a redirected
system console.


Signed-off-by: Jeffrey Vernon Merkey (jmerkey@xxxxxxxxxxxxxxxxxxxxx)

--- a/drivers/char/vt.c 2008-08-13 14:22:15.000000000 -0600
+++ b/drivers/char/vt.c 2008-08-13 11:56:03.000000000 -0600
@@ -188,6 +188,10 @@
int want_console = -1;
int kmsg_redirect;

+#if defined(CONFIG_MDB_MODULE)
+EXPORT_SYMBOL_GPL(kmsg_redirect);
+#endif
+
/*
* For each existing display, we have a pointer to console currently visible
* on that display, allowing consoles other than fg_console to be refreshed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: mtx_lock_do_what_i_mean()
    ... kernel from anything to which we have a TTY attached. ... things that go into the message buffer to the console becomes 1) ... debugger is a problem all by itself... ... still normally goes to the same device as user and kernel i/o, ...
    (freebsd-arch)
  • Re: ethercons: ethernet console driver for 5-current
    ... >> bit of time exploring the FreeBSD console code. ... >> implementing ethernet console support for FreeBSD. ... Since the debugger suspends scheduling, ... polling of the network interface in an interrupt-thread-free environment, ...
    (freebsd-current)
  • Re: Reboot instead of debugger/dump from X11? (Re: an accidental way to pull the plug)
    ... when the panic took place on the normal text console, ... when it took place with X11 ... > happening during even normal failure modes when X11 is running for me. ... debugger on panic, ...
    (freebsd-current)
  • Re: Used 8/16-track tape recorders
    ... the debugger on your application and watch what it's doing. ... That's like saying you can open up your console, ... and they are built JUST LIKE Windows inside. ... C'est suisse, et tres, tres precis." ...
    (rec.audio.pro)
  • Re: Big problems with 7.1 locking up :-(
    ... This is happening across several different servers, all of which are slight variants on the DL360, so I dont think it is something perculiar to me. ... If it still hangs rather than panicking, are you able to break into the debugger on the console? ... If you're using a video console and not able to get to the debugger, would it be possible to configure a serial console and use that -- serial breaks are often more successful at getting to the debugger than keyboard breaks. ...
    (freebsd-stable)