Re: m68k/cpu32 TRAP instruction?

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

 



On Sat, Oct 06, 2018 at 11:51:33AM +0800, Xi Ruoyao wrote:
> >   Simply crashing leaves you without any clue. You have no idea where to look
> >   for the bug. The crash could even be by a power outage. That's not exactly
> >   improving the situation.
> 
> You have GDB.

I'd happily do this. But unfortunately, this is an embedded system, and it
doesn't have a debug interface.

So gdb won't help very much here.

> >   Issuing a diagnostic "Oops, NULL-dereference at adsf.c:123" would improve
> >   the situation: you know where to look for the fix.
> 
> You have -fsanitize=undefined.

Ah! This seems to be exactly what I was looking for!

Unfortunatly, the linker complains that it can't find -lubsan.

Do I need to do something special to enable the build/install of the sanitizer
runtime library on an embedded target? AFAICS, the sanitizer should be built
by default?

-- 
Josef Wolf
jw@xxxxxxxxxxxxx



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux