Unable to set a structure member's custom type, it always is 'int'
See original GitHub issue@arizvisa hi, I have to come and ask you questions, I don’t know what went wrong, I can’t set the member’s custom type , it awaly is ‘int’:
import idaapi
import idc
st1 =structure.by_name('TTDBTextInfoGroup')
struct_name = 'TTDBTextInfoGroup*'
f1 = st1.members.by(offset=0)
print f1.typeinfo.dstr()
ordinal = f1.typeinfo.get_ordinal()
f1.typeinfo.set_numbered_type(idaapi.cvar.idati,ordinal,BTF_STRUCT, struct_name)
print f1.typeinfo.dstr()
_Originally posted by @gool123456 in https://github.com/arizvisa/ida-minsc/issues/61#issuecomment-664488530_
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (16 by maintainers)
Top Results From Across the Web
What are the two names of the struct, and why can't I put the ...
NODE is not the name of the struct. It's a typedef , i.e. an alias for the struct. In the first case, the...
Read more >Structured Data Types in C Explained - freeCodeCamp
Nesting a structure means having one or more structure variables inside another structure. Like we declare an int member or char member, we...
Read more >Structs - C# language specification - Microsoft Learn
This chapter defines struct declarations. In many cases, the descriptions are defined using the differences between classes and structs.
Read more >Making Our Own Types and Typeclasses - Learn You a Haskell
In this chapter, we'll learn how to make our own and how to put them to work! Algebraic data types intro. So far,...
Read more >Structs, USTRUCTS(), They're Awesome - UE4: Guidebook
Structs enable you to create custom variable types to organize your data, by relating other c++ or UE4 ... Always make USTRUCT variables...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay. Try PR #63 again. I also cleaned up the typeinfo so that it’s properly emitted when displaying the structure member or listing them with
struc.list()
.@arizvisa Show Error :