Commit Graph
15 Commits
Author SHA1 Message Date
Linus Torvalds 4fbd0a81a0 Merge tag 'for_linux-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb
Pull kgdb/kdb updates from Jason Wessel:
 "KGDB/KDB New:
   - KDB: improved searching
   - No longer enter debug core on panic if panic timeout is set

  KGDB/KDB regressions / cleanups
   - fix pdf doc build errors
   - prevent junk characters on kdb console from printk levels"

* tag 'for_linux-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb:
  kgdb, docs: Fix <para> pdfdocs build errors
  debug: prevent entering debug mode on panic/exception.
  kdb: Const qualifier for kdb_getstr's prompt argument
  kdb: Provide forward search at more prompt
  kdb: Fix a prompt management bug when using | grep
  kdb: Remove stack dump when entering kgdb due to NMI
  kdb: Avoid printing KERN_ levels to consoles
  kdb: Fix off by one error in kdb_cpu()
  kdb: fix incorrect counts in KDB summary command output
2015-02-20 15:13:29 -08:00
Rajaneesh Acharya dd8f30cc05 kgdb, docs: Fix <para> pdfdocs build errors
kgdb.pdf failed to build from 'make pdfdocs' giving errors such as:

jade:... Documentation/DocBook/kgdb.xml:200:8:E:
document type does not allow element "para" here; missing one of
"footnote", "caution", "important", "note", "tip", "warning",
"blockquote", "informalexample" start-tag

Fixing minor <para> and <sect> issues allows kgdb.pdf to be generated
under Fedora20.

Originally submitted by [email protected] in 2011, discussed here:
http://permalink.gmane.org/gmane.linux.documentation/3954
as patch:
 The following are the enhancements that removed the errors
 while issuing "make pdfdocs"

[[email protected]: Improved commit message and ported to 3.18.1]
Signed-off-by: Graham Whaley <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
2015-02-19 12:39:04 -06:00
Graham Whaley bb485c289c kgdb,docs: Fix typo and minor style issues
Fix up a number of small typos, duplications and formatting issues.

Signed-off-by: Graham Whaley <[email protected]>
Reviewed-by: Daniel Thompson <[email protected]>
[jc: did s/kgdbdoc/kgdboc/]
Signed-off-by: Jonathan Corbet <[email protected]>
2015-02-04 16:17:37 -05:00
Kees Cook 0335cb469a Documentation: remove depends on CONFIG_EXPERIMENTAL
The CONFIG_EXPERIMENTAL config item has not carried much meaning for a
while now and is almost always enabled by default. As agreed during the
Linux kernel summit, remove it from any "depends on" lines in Kconfigs.

CC: Rob Landley <[email protected]>
CC: Jiri Kosina <[email protected]>
CC: Masanari Iida <[email protected]>
CC: Jason Wessel <[email protected]>
CC: Richard L Maliszewski <[email protected]>
CC: Gang Wei <[email protected]>
CC: Shane Wang <[email protected]>
CC: Harry Wei <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Acked-by: Jason Wessel <[email protected]>
2013-01-11 11:38:03 -08:00
Jason Wessel bec4d62ead kgdb,debug_core: add the ability to control the reboot notifier
Sometimes it is desirable to stop the kernel debugger before allowing
a system to reboot either with kdb or kgdb.  This patch adds the
ability to turn the reboot notifier on and off or enter the debugger
and stop kernel execution before rebooting.

It is possible to change the setting after booting the kernel with the
following:

echo 1 > /sys/module/debug_core/parameters/kgdbreboot

It is also possible to change this setting using kdb / kgdb to
manipulate the variable directly.

Using KDB:
   mm kgdbreboot 1

Using gdb:
   set kgdbreboot=1

Reported-by: Jan Kiszka <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
2012-03-22 15:07:16 -05:00
Jason Wessel 4aad8f51d0 kdb: Add kdb kernel module sample
Add an example of how to add a dynamic kdb shell command via a kernel
module.

Signed-off-by: Jason Wessel <[email protected]>
2010-10-29 13:14:39 -05:00
Jason Wessel 65b5ac1479 kgdb,docs: Update the kgdb docs to include kms
Update the kgdb docs to include information about kernel mode setting support.

[Randy Dunlap <[email protected]>: grammatical corrections]

CC: Randy Dunlap <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
2010-08-05 10:53:11 -05:00
Jason Wessel 84c08fd61e kgdb,docs: Update the kgdb docs to include kdb
Update the kgdb docs to reflect the new directory structure and API.

Merge in the kdb shell information.

[Randy Dunlap <[email protected]>: grammatical corrections]

CC: Randy Dunlap <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
2010-05-20 21:04:24 -05:00
Frank Rowand d34a792da9 kgdb: gdb documentation fix
gdb command "set remote debug 1" is not valid, change to correct command.

Signed-off-by: Frank Rowand <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
2009-05-15 07:56:25 -05:00
Jason Wessel a9b60bf4c2 kgdb: fix kgdb_validate_break_address to perform a mem write
A regression to the kgdb core was found in the case of using the
CONFIG_DEBUG_RODATA kernel option.  When this option is on, a breakpoint
cannot be written into any readonly memory page.  When an external
debugger requests a breakpoint to get set, the
kgdb_validate_break_address() was only checking to see if the address
to place the breakpoint was readable and lacked a write check.

This patch changes the validate routine to try reading (via the
breakpoint set request) and also to try immediately writing the break
point.  If either fails, an error is correctly returned and the
debugger behaves correctly.  Then an end user can make the
descision to use hardware breakpoints.

Also update the documentation to reflect that using
CONFIG_DEBUG_RODATA will inhibit the use of software breakpoints.

Signed-off-by: Jason Wessel <[email protected]>
2008-08-01 08:39:34 -05:00
Jason Wessel 5f5ddfb360 kgdb: remove the requirement for CONFIG_FRAME_POINTER
There is no technical reason that the kgdb core requires frame
pointers.  It is up to the end user of KGDB to decide if they need
them or not.

[ [email protected]: removed frame pointers on mips ]

Signed-off-by: Jason Wessel <[email protected]>
2008-08-01 08:39:34 -05:00
Jason Wessel a606b5e24b kgdb: documentation update - remove kgdboe
kgdboe is not presently included kgdb, and there should be no
references to it.

Also fix the tcp port terminal connection example.

Signed-off-by: Jason Wessel <[email protected]>
2008-06-24 10:52:55 -05:00
[email protected] f92509371e kgdb: minor documentation fixes
Two minor fixes to the kgdb documentation.

Signed-off-by: Grzegorz Chwesewicz, Chilan <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
2008-05-05 07:13:21 -05:00
Jason Wessel 225a4424ad kgdb: documentation fixes
Minor cleanups to kgdb docs.

Signed-off-by: Jason Wessel <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
2008-04-17 20:05:43 +02:00
Jason Wessel e3e2aaf7dc kgdb: add documentation
Add in the kgdb documentation for kgdb.

Signed-off-by: Jason Wessel <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
2008-04-17 20:05:42 +02:00