about summary refs log tree commit diff stats
path: root/dev/c/system.html
diff options
context:
space:
mode:
Diffstat (limited to 'dev/c/system.html')
-rw-r--r--dev/c/system.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev/c/system.html b/dev/c/system.html
index 65eede1..c91dc34 100644
--- a/dev/c/system.html
+++ b/dev/c/system.html
@@ -145,6 +145,29 @@
             -ex 'target remote localhost:1234'
         </pre>
 
+        <pre>
+	(gdb) info thread
+	  Id   Target Id         Frame
+	* 1    Thread 1 (CPU#0 [running]) start_kernel () at init/main.c:480
+	</pre>
+
+	<pre>
+	(gdb) info frame
+	Stack level 0, frame at 0xffffffff81e03f90:
+	 rip = 0xffffffff81f4db2d in start_kernel (init/main.c:480); saved rip = 0xffffffff81f4d28e
+	 called by frame at 0xffffffff81e03fa0
+	 source language c.
+	 Arglist at 0xffffffff81e03f80, args:
+	 Locals at 0xffffffff81e03f80, Previous frame's sp is 0xffffffff81e03f90
+	 Saved registers:
+	  rip at 0xffffffff81e03f88
+	</pre>
+
+	<pre>
+	(gdb) print $rip
+	$2 = (void (*)()) 0xffffffff81f4db2d &lt;start_kernel&gt;
+	(gdb)
+	</pre>
 
         <a href="../index.html">Development Index</a>
         <p>