mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-27 19:44:18 +01:00
idaapi.dbg_get_registers() was crashing with registers that had a custom format
This commit is contained in:
parent
2c33ce00c5
commit
67c94b2f02
@ -214,7 +214,8 @@ static PyObject *dbg_get_registers()
|
||||
PyObject *py_bits;
|
||||
|
||||
// Does this register have bit strings?
|
||||
if ( ri.bit_strings != NULL )
|
||||
// (Make sure it does not use custom formats because bit_string would be the format name)
|
||||
if ( ri.bit_strings != NULL && (ri.flags & REGISTER_CUSTFMT) == 0 )
|
||||
{
|
||||
int nbits = (int)b2a_width((int)get_dtyp_size(ri.dtyp), 0) * 4;
|
||||
py_bits = PyList_New(nbits);
|
||||
|
Loading…
Reference in New Issue
Block a user