diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2010-10-06 23:04:23 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2010-10-06 23:04:23 +0200 |
commit | b4479c6803f6cb8f13c96b53fd71b6a27b0b4a8e (patch) | |
tree | 12415f52a9a295e126e888e3ba48137c6cd13db3 /hurd | |
parent | 8aeb8dc4e09d65e0ad6cf7334982ecdb730b42b4 (diff) |
hurd/debugging/trap_in_the_kernel: New.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/debugging.mdwn | 4 | ||||
-rw-r--r-- | hurd/debugging/trap_in_the_kernel.mdwn | 27 |
2 files changed, 30 insertions, 1 deletions
diff --git a/hurd/debugging.mdwn b/hurd/debugging.mdwn index 36ab769a..4085244b 100644 --- a/hurd/debugging.mdwn +++ b/hurd/debugging.mdwn @@ -1,4 +1,5 @@ -[[!meta copyright="Copyright © 2007, 2008 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2007, 2008, 2010 Free Software Foundation, +Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this @@ -20,3 +21,4 @@ is included in the section entitled * [[glibc]] * [[translator]]s + * [[trap_in_the_kernel]] diff --git a/hurd/debugging/trap_in_the_kernel.mdwn b/hurd/debugging/trap_in_the_kernel.mdwn new file mode 100644 index 00000000..11f989e3 --- /dev/null +++ b/hurd/debugging/trap_in_the_kernel.mdwn @@ -0,0 +1,27 @@ +[[!meta copyright="Copyright © 2010 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +[[!tag open_issue_gnumach open_issue_documentation]] + +IRC, #hurd, September 2010 + + <diegonc> when an application executes an out instruction in user mode, how is + kernel mode entered? general protection trap? + <youpi> some sort of trap, yes + <youpi> I'd rather think about illegal instruction, but yes + <diegonc> hm.. so to debug what happens inside that instruction I'll have to + break at the trap handler. Can I instruct kdb to stop only when a given task + caused the trap? + <youpi> applications usually don't trap, so what I usually do is to uncomment + the test at the end of user_trap() before the call to kdb_trap() + <diegonc> "if (debug_all_traps_with_kdb && .. " <- that test? + <youpi> yes + <youpi> so comment the test to make kdb_trap() called all the time + <diegonc> oh, I understand now :) |