public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: mar.krzeminski <mar.krzeminski@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-Boot malloc implementation on arm - problem after relocation
Date: Wed, 7 Oct 2015 20:25:35 +0200	[thread overview]
Message-ID: <5615639F.6000102@gmail.com> (raw)
In-Reply-To: <5615588D.2050808@suse.de>



W dniu 07.10.2015 o 19:38, Andreas F?rber pisze:
> Hi Marcin,
>
> Am 07.10.2015 um 15:58 schrieb Marcin Krzemi?ski:
>> Since I use qemu it
>> is very hard to debug with gdb u-boot after relocation( or I do not know
>> how to do it), so I am almost blind.
> QEMU has a built-in gdb stub that you can just connect to as gdb remote
> target, similar to how you would connect to a JTAG adapter's gdb server.
> See documentation of qemu-system-arm -gdb and -s options.
>
> It should behave the same as with a physical remote target, otherwise
> please report to qemu-devel or a suitable bug tracker.
>
> Regards,
> Andreas
>
Hi Andreas,

I am debugging under qemu, and I can debug easily just to a moment 
before relocation.
If I reload symbols to my relocation address qemu does not stop at 
breakpoints (after I reinserted them).
As I understand qemus list there is a problem with relocated code. 
Anyway, you're right I'll ask.
Regarding my problem, debugging with prints showed me that it fails when 
malloc tries to extend top area,
and the top pointer seem to be in SDRAM.
If I do not use malloc before relocation (with enabled malloc_f) all 
seems to work just fine.

Regards,
Marcin

  reply	other threads:[~2015-10-07 18:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07 13:58 [U-Boot] U-Boot malloc implementation on arm - problem after relocation Marcin Krzemiński
2015-10-07 17:38 ` Andreas Färber
2015-10-07 18:25   ` mar.krzeminski [this message]
2015-10-08 13:29     ` Marcin Krzemiński

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5615639F.6000102@gmail.com \
    --to=mar.krzeminski@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox