Home
last modified time | relevance | path

Searched refs:print (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.9/docs/kernel/debug/
Ddebug-kernel-with-gdb.md179 - **print 和 display**
181   您可以通过`print`或者`p`来打印变量值。
183   `print`命令用于打印变量或表达式的值。它允许您在调试过程中查看程序中的数据。
186 print <variable> # 打印对应变量名的值,例如:print my_variable 或者 p my_variable
188 print <expression> # 打印合法表达式的值,例如:print a+b 或者 p a+b
191 (gdb) print order
199 &emsp;&emsp;您可以使用`display`命令来持续追踪变量或者表达式,`display`命令用于设置需要持续跟踪并在每次程序停止时显示的表达式。它类似于print命令,但与print不同…
215 display命令非常有用,因为它允许您在调试过程中持续监视表达式的值,而无需每次都手动输入print命令。它特别适用于那些您希望持续跟踪的变量或表达式。
226 请注意,print和display命令只会在程序暂停执行时评估变量或表达式的值。如果程序正在运行,您需要通过设置断点或使用其他调试命令来暂停程序,然后才能使用print命令查看数据的值,displa…
231 &emsp;&emsp;您可以设置输出格式来获取更多您需要的信息,例如:`print /a var`
[all …]
/DragonOS-0.1.9/kernel/src/arch/x86_64/interrupt/
Dtrap.rs4 arch::CurrentIrqArch, exception::InterruptArch, kerror, kwarn, mm::VirtAddr, print,
338 print!("Page Not Present,\t"); in do_page_fault()
341 print!("Write Access,\t"); in do_page_fault()
343 print!("Read Access,\t"); in do_page_fault()
347 print!("Fault in user(3),\t"); in do_page_fault()
349 print!("Fault in supervisor(0,1,2),\t"); in do_page_fault()
353 print!("Reserved bit violation cause fault,\t"); in do_page_fault()
357 print!("Instruction fetch cause fault,\t"); in do_page_fault()
359 print!("\n"); in do_page_fault()
/DragonOS-0.1.9/kernel/src/arch/riscv64/init/
Dmod.rs10 print, println,
70 (0..n_spaces).for_each(|_| print!(" ")); in print_node()
73 (0..n_spaces + 4).for_each(|_| print!(" ")); in print_node()
/DragonOS-0.1.9/kernel/src/libs/
Dprintk.rs23 macro_rules! print { macro
30 $crate::print!("\n");
32 ($($arg:tt)*) => ($crate::print!("{}\n", format_args!($($arg)*)));
/DragonOS-0.1.9/.github/workflows/
Dcache-toolchain.yml86 custom_toolchain_dir="$(dirname $(rustc --print sysroot))/${custom_toolchain}"
91 cp -r $(dirname $(rustc --print sysroot))/${fork_toolchain_from} ${custom_toolchain_dir}
/DragonOS-0.1.9/
DLICENSE105 interactive use in the most ordinary way, to print or display an
111 does not normally print such an announcement, your work based on
112 the Program is not required to print an announcement.)
/DragonOS-0.1.9/kernel/src/syscall/
Dmod.rs1054 print!("\x1B[38;2;{fr};{fg};{fb};48;2;{br};{bg};{bb}m{s}\x1B[0m"); in put_string()