GDB scripting - execute command only if not debugging core file -
i'm adding features find useful gdb startup script. few of startup commands apply "live" targets, or have components make sense live targets. i'd able test presence (or absence) of core file, , skip or amend these commands appropriate.
i looked around in python api, couldn't find tells me whether inferior core file or live program. i'm fine scripting solution works in either gdb or in python gdb scripting interface.
it doesn't there way that.
i'd expect attribute on gdb.inferior
, there isn't one.
file feature request in gdb bugzilla.
Comments
Post a Comment