NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/57328: crash(8) doesn't support `show page'



>Number:         57328
>Category:       bin
>Synopsis:       crash(8) doesn't support `show page'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 07 12:40:01 +0000 2023
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetBSD Foundb{0}> 
>Environment:
crashing and burning
>Description:
static void
db_page_print_cmd(db_expr_t addr, bool have_addr,
    db_expr_t count, const char *modif)
{
#ifdef _KERNEL /* XXX CRASH(8) */
	bool full = false;

	if (modif[0] == 'f')
		full = true;

	uvm_page_printit((struct vm_page *)(uintptr_t) addr, full, db_printf);
#else
	db_kernelonly();
#endif
}

>How-To-Repeat:
# crash
...
crash> show page 0x1234
db_page_print_cmd: can only be used in-kernel.
>Fix:
Yes, please!



Home | Main Index | Thread Index | Old Index