Re: Need help with debug.

  • From: "Andriy Grytsenko" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "andriy.grytsenko" for DMARC)
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 23 May 2020 11:53:59 +0300

Hi!

On Sat, 23 May 2020 at 00:25, <mejedi@xxxxxxxxx> wrote:

Can you capture a core dump? Disclaimer - I have zero experience with

embedded, but a quick google search reveals that Gdb is capable of handling
a core dump from a foreign architecture.
http://disse.cting.org/2013/01/15/2013-01-15-core-dump-analysis-in-crosscompiled-env


I suppose I can try to catch a core dump. And I can try to feed it to gdb.
Thank you for an advice.


In the past I had successfully debugged a crash in LuaJIT interpreter on
x86. The approach that worked was looking at disassembly and correlating
that with dynasm sources to understand what was currently in registers to
spot anomalies.


So dynasm sources are more or less the real assembler of target
architecture (in our case it's MIPS), right?


Good luck, it seems like this is going to be tricky.


Yeah, it's why I asked to help here. Thank you very much.

With best regards,
Andriy.

Other related posts: