[Pdbg] [PATCH] libpdbg: Parse "compatible" property of fdt nodes

Reza Arbab arbab at linux.ibm.com
Wed Feb 26 08:46:19 AEDT 2020


On Wed, 2020-02-19 at 11:17 -0600, Reza Arbab wrote:
> Assertion failed: !target_is_virtual(node) (libpdbg/device.c:
> pdbg_targets_init_virtual: 660)
> Aborted

I think I figured it out.

I'm building static binaries. Don't ask. :) The hwunit registration 
functions in libpdbg have __attribute__((constructor)). Since nothing 
references those functions directly, they aren't linked into in the 
binary and never run. Then, since no hwunits are registered, all the 
calls to pdbg_hwunit_find_compatible() find nothing.

And yadda yadda yadda... we fail the assert. Long story short, this is 
self-inflicted. Sorry for the noise!

-- 
Reza Arbab


More information about the Pdbg mailing list