How can I debug the function of malloc_in_range?
Hi All,
I want to study the function malloc_in_range of the grub2.02. So I set the followings in the grub.cfg.
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal_input serial console
terminal_output serial console
set debug=all
But when I add some grub_printf to the function of malloc_in_range, the serial and VGA both display messy code.
So how can I debug the function of malloc_in_range
Quoted 8 lines · Zhang
Hi All,
I want to study the functionmalloc_in_rangeof the grub2.02. So I set the followings in the grub.cfg.serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal_inputserial console
Quoted 7 lines
terminal_outputserial consoleset debug=all
But when I add some
grub_printfto the function ofmalloc_in_range, the serial and VGA both display messy code.So how can I debug the function of
malloc_in_range
Please try grub_dprintf() instead of grub_printf(). However, be careful. You are dealing with memory allocators...
Daniel