grub-devel
[Top][All Lists]
Advanced

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

Re: How can I debug the function of malloc_in_range?


From: Daniel Kiper
Subject: Re: How can I debug the function of malloc_in_range?
Date: Wed, 2 Oct 2019 15:18:02 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Aug 07, 2019 at 10:18:52AM +0800, Zhang wrote:
> 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

Please try grub_dprintf() instead of grub_printf(). However, be
careful. You are dealing with memory allocators...

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]