> On 2 Mar 2018, at 12:21, Yao Qi wrote: > > On Fri, Mar 2, 2018 at 12:09 PM, Alan Hayward wrote: >>> Any idea on why TYPE_TARGET_TYPE (func_type) is NULL? (because >>> there is no strcmp debug info?) >>> >> >> The cast to (int) is causing this - remove the cast and it finds the type. >> I’m assuming that’s causing it to drop the debug info. > > It sounds like a bug to me. If this bug "TYPE_TARGET_TYPE (func_type) becomes > NULL caused by cast" is fixed, the GDB segfault will go away accordingly. > > To be clear, your patch here is fine to me. My suggestion is that we'd better > dig it deeper. > Agreed. I’ll raise a new bug, and have a look into it too whilst I’m in the area. Alan.&j!z޶׎{Yb֫rnr