[lldb-dev] No machine instructions loaded for symbols or target (python api)

2015-11-17 Thread kwadwo amankwa via lldb-dev
Hi, I'm building an application on windows using the python api. I need to be able to access a code symbols instructions but when I launch the process the symbol has no instructions. I can manually read the symbols address space but the symbol also has no end_addr set which makes it difficult

Re: [lldb-dev] No machine instructions loaded for symbols or target (python api)

2015-11-17 Thread Greg Clayton via lldb-dev
It sounds like the symbols in the symbol table don't have valid sizes when they really should. What kind of executable are you debugging? A PECOFF file? If so, you should take a look at and fix the code in: Symtab * ObjectFilePECOFF::GetSymtab() What we do for mach-o is to parse the symbol

Re: [lldb-dev] No machine instructions loaded for symbols or target (python api)

2015-11-17 Thread kwadwo amankwa via lldb-dev
Ok I see what you're saying. I was trying to use the next symbol address as a delimeter but I realised they were not in order. It is a PECOFF binary that I'm debugging so I will take a look at the code suggested below. Thanks , Que On 17/11/15 18:07, Greg Clayton wrote: It sounds like the