On Sat, Aug 10, 2019 at 5:35 AM Heinrich Schuchardt <xypron.g...@gmx.de> wrote:
>
> On the sandbox provide the relocation offset. This value can be used for
> debugging with GDB using the `add-symbol-file u-boot <reloc off>' command.
>
> Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de>
> ---
>  cmd/bdinfo.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
> index 86c17dc427..560c039d37 100644
> --- a/cmd/bdinfo.c
> +++ b/cmd/bdinfo.c
> @@ -395,6 +395,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char 
> * const argv[])
>
>         print_bi_boot_params(bd);
>         print_bi_dram(bd);
> +       print_num("reloc off", (uintptr_t)(gd->reloc_off + gd->arch.ram_buf));

Shouldn't we print gd->relocaddr directly?

>         print_eth_ip_addr();
>
>  #if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
> --

Regards,
Bin
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to