@@ -1377,7 +1377,7 @@ impl Drop for CoreArchitectureList {
13771377 }
13781378}
13791379
1380- #[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
1380+ #[ derive( Copy , Clone , Eq , PartialEq , Hash ) ]
13811381pub struct CoreArchitecture {
13821382 pub ( crate ) handle : * mut BNArchitecture ,
13831383}
@@ -1895,6 +1895,20 @@ impl Architecture for CoreArchitecture {
18951895 }
18961896}
18971897
1898+ impl Debug for CoreArchitecture {
1899+ fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
1900+ f. debug_struct ( "CoreArchitecture" )
1901+ . field ( "name" , & self . name ( ) )
1902+ . field ( "endianness" , & self . endianness ( ) )
1903+ . field ( "address_size" , & self . address_size ( ) )
1904+ . field ( "default_integer_size" , & self . default_integer_size ( ) )
1905+ . field ( "instruction_alignment" , & self . instruction_alignment ( ) )
1906+ . field ( "max_instr_len" , & self . max_instr_len ( ) )
1907+ . field ( "opcode_display_len" , & self . opcode_display_len ( ) )
1908+ . finish ( )
1909+ }
1910+ }
1911+
18981912macro_rules! cc_func {
18991913 ( $get_name: ident, $get_api: ident, $set_name: ident, $set_api: ident) => {
19001914 fn $get_name( & self ) -> Option <Ref <CoreCallingConvention >> {
0 commit comments