Rizin
unix-like reverse engineering framework and cli tools
cmd_descs_generate.Arg Class Reference

Public Member Functions

def __init__ (self, cd, c)
 
def __str__ (self)
 
def get_cstructure (self)
 
def decl (self)
 

Public Attributes

 cd
 
 name
 
 flags
 
 optional
 
 no_space
 
 type
 
 default_value
 
 choices
 
 choices_cb
 

Private Member Functions

def _get_choices_cname (self)
 
def _get_union (self)
 

Detailed Description

Definition at line 152 of file cmd_descs_generate.py.

Constructor & Destructor Documentation

◆ __init__()

def cmd_descs_generate.Arg.__init__ (   self,
  cd,
  c 
)

Definition at line 153 of file cmd_descs_generate.py.

153  def __init__(self, cd, c):
154  if "name" not in c or "type" not in c:
155  print("Argument of %s should have `name`/`type` fields" % (cd.name,))
156  sys.exit(1)
157 
158  self.cd = cd
159  # RzCmdDescArg fields
160  self.name = c.pop("name")
161  self.flags = c.pop("flags", None)
162  self.optional = c.pop("optional", None)
163  self.no_space = c.pop("no_space", None)
164  self.type = c.pop("type")
165  self.default_value = (
166  str(c.pop("default_value")) if "default_value" in c else None
167  )
168  self.choices = c.pop("choices", None)
169  self.choices_cb = c.pop("choices_cb", None)
170  if c.keys():
171  print(
172  "Argument %s for command %s has unrecognized properties: %s."
173  % (self.name, self.cd.name, c.keys())
174  )
175  sys.exit(1)
176 
177  if self.default_value is not None and self.optional is not None:
178  print(
179  "Argument %s for command %s has both optional and default_value."
180  % (self.name, self.cd.name)
181  )
182  sys.exit(1)
183 

Member Function Documentation

◆ __str__()

def cmd_descs_generate.Arg.__str__ (   self)

Definition at line 200 of file cmd_descs_generate.py.

200  def __str__(self):
201  flags = (
202  DESC_HELP_ARG_TEMPLATE_FLAGS.format(flags=self.flags)
203  if self.flags is not None and self.flags != ""
204  else ""
205  )
206  optional = (
207  DESC_HELP_ARG_TEMPLATE_OPTIONAL.format(
208  optional="true" if self.optional else "false"
209  )
210  if self.optional is not None
211  else ""
212  )
213  no_space = (
214  DESC_HELP_ARG_TEMPLATE_NO_SPACE.format(
215  no_space="true" if self.no_space else "false"
216  )
217  if self.no_space is not None
218  else ""
219  )
220  default_value = (
221  DESC_HELP_ARG_TEMPLATE_DEFAULT_VALUE.format(
222  default_value=strornull(self.default_value)
223  )
224  if self.default_value is not None
225  else ""
226  )
227  return DESC_HELP_ARG_TEMPLATE.format(
228  name=strornull(self.name),
229  type=self.type,
230  flags=flags,
231  optional=optional,
232  no_space=no_space,
233  default_value=default_value,
234  union=self._get_union(),
235  )
236 

References cmd_descs_generate.Arg._get_union(), cmd_descs_generate.Arg.default_value, rz_cmd_desc_arg_t.default_value, base_class_type_info_t.flags, ExtInstruction.flags, arc_opcode.flags, arc_operand_value.flags, arc_operand.flags, aarch64_operand.flags, aarch64_opcode.flags, aarch64_sys_reg.flags, aarch64_sys_ins_reg.flags, aarch64_opnd_info.flags, aarch64_opnd_info::.flags, HexInsnTemplate.flags, bfd_link_info.flags, disassemble_info.flags, property_table_entry_t.flags, bfd_section.flags, bfd_symbol.flags, bfd.flags, bfd_preserve.flags, pa_opcode.flags, lanai_opcode.flags, powerpc_opcode.flags, powerpc_operand.flags, powerpc_macro.flags, sparc_opcode.flags, xtensa_operand_internal_struct.flags, xtensa_opcode_internal_struct.flags, xtensa_interface_internal_struct.flags, xtensa_state_internal_struct.flags, snes_op_t.flags, rz_bflt_hdr_t.flags, rz_bin_elf_section_t.flags, java_module_open_t.flags, java_module_export_t.flags, java_module_require_t.flags, LE_object_entry_s.flags, LE_object_page_entry_s.flags, section_t.flags, mach_header.flags, mach_header_64.flags, segment_command.flags, segment_command_64.flags, section.flags, section_64.flags, dylib_reference.flags, _RELOC.flags, _SEGMENT.flags, Pe_image_metadata_methoddef.flags, Pe_image_metadata_typedef.flags, Pe_image_clr_methodheader.flags, rz_bin_pe_section_t.flags, pyc_code_object.flags, rz_bin_te_section_t.flags, rz_bin_wasm_resizable_limits_t.flags, xbe_section.flags, xbe_lib.flags, cmd_descs_generate.Arg.flags, rz_analysis_esil_t.flags, rz_asm_t.flags, rz_bin_section_t.flags, rz_bin_field_t.flags, rz_cmd_desc_arg_t.flags, rz_config_node_t.flags, rz_core_t.flags, rz_flags_at_offset_t.flags, rz_malloc_state_32.flags, rz_malloc_state_64.flags, rz_malloc_state_tcache_32.flags, rz_malloc_state_tcache_64.flags, rz_malloc_state.flags, dbi_stream_header_t.flags, RzRegProfileDef.flags, rz_reg_item_t.flags, rz_print_t.flags, capstone.M680x.OpIndexed.flags, capstone.M680x.UnionOpInfo.flags, capstone.M680x.OpInfo.flags, m680x_op_idx.flags, cs_m680x.flags, mscabd_cabinet.flags, uv_stdio_container_s.flags, uv_process_options_s.flags, uv_thread_options_s.flags, uv__loop_internal_fields_s.flags, uv__fd_info_s.flags, uv__ipc_frame_header_t.flags, zip_stat.flags, zip_win32_file_operations.flags, zip.flags, zip_extra_field.flags, ef.flags, mpca_grammar_st_t.flags, parse_ctx.flags, _HeapBlockBasicInfo.flags, DShMsg_notify_t::.flags, DShMsg_notify_t.flags, dslinkmap.flags, dspidlist::tidinfo.flags, Profile.flags, lzma_mt.flags, lzma_index_iter.flags, lzma_auto_coder.flags, block_header_info.flags, inflate_state.flags, rz_test_cmd_test_t.name, _opcodes_tag_.name, dwarf_function_t.name, dwarf_variable_t.name, optype.name, name, i8051_cpu_model.name, i8051_map_entry.name, class_type_info_t.name, si_class_type_info_t.name, vmi_class_type_info_t.name, rtti_type_descriptor_t.name, ExtInstruction.name, ExtAuxRegister.name, ExtCoreRegister.name, arc_operand_value.name, aarch64_operand.name, aarch64_opcode.name, aarch64_name_value_pair.name, aarch64_sys_reg.name, aarch64_sys_ins_reg.name, ArmOp.name, avr_decoder_t.name, dalvik_opcodes_t.name, gb_opcode.name, opcode_t.name, bfd_sym_chain.name, bfd_link_order_reloc.name, bfd_elf_version_tree.name, disasm_options_t.name, bfd_elf_section_data.name, Elf_External_Note.name, carsym.name, orl.name, _symbol_info.name, bfd_link_needed_list.name, coff_comdat_info.name, bfd_section.name, reloc_howto_struct.name, bfd_symbol.name, bfd_target.name, cris_spec_reg.name, cris_support_reg.name, cris_cond15.name, cris_opcode.name, pa_opcode.name, lanai_opcode.name, mips_opcode.name, nios2_opcode.name, nios2_reg.name, powerpc_opcode.name, powerpc_macro.name, sparc_opcode_arch.name, sparc_opcode.name, tricore_opcode.name, pcp_opcode.name, tricore_core_register.name, xtensa_format_internal_struct.name, xtensa_slot_internal_struct.name, xtensa_operand_internal_struct.name, xtensa_opcode_internal_struct.name, xtensa_regfile_internal_struct.name, xtensa_interface_internal_struct.name, xtensa_funcUnit_internal_struct.name, xtensa_state_internal_struct.name, xtensa_sysreg_internal_struct.name, mcore_ops.name, mcore_t.name, mips_cp0sel_name.name, mips_abi_choice.name, mips_arch_choice.name, insn_extra_t.name, insn_t.name, ppcps_t.name, ps_opcode_t.name, vle_t.name, e_vle_t.name, se_vle_t.name, ppc_t.name, riscv_opcode.name, snes_op_t.name, arg.name, spc700_op_t.name, vot.name, z80_opcode.name, label.name, infile.name, name.name, includedir.name, bytecode_t.name, rz_asm_lm32_opcode.name, rz_asm_lm32_csr_t.name, rz_asm_lm32_reg_t.name, macro.name, stack.name, JNINativeMethod.name, JavaVMAttachArgs.name, rz_bin_elf_section_t.name, rz_bin_elf_symbol_t.name, class_translation.name, ver_flags_translation.name, type_translation.name, flag_translation.name, symbol_bind_translation.name, symbol_type_translation.name, rz_coresym_cache_element_segment_t.name, rz_coresym_cache_element_section_t.name, rz_coresym_cache_element_symbol_t.name, section_t.name, symbol_t.name, reloc_t.name, import_t.name, lib_t.name, fvmlib.name, dylib.name, prebound_dylib_command.name, dylinker_command.name, fvmfile_command.name, rz_ne_resource_entry.name, rz_ne_resource.name, OMF_symbol.name, Pe_image_metadata_methoddef.name, Pe_image_metadata_typedef.name, _PE_RESOURCE.name, xbe_lib.name, rz_bin_pe_section_t.name, rz_bin_pe_import_t.name, rz_bin_pe_export_t.name, rz_bin_pe_lib_t.name, pyc_code_object.name, rz_bin_wasm_name_t.name, rz_bin_wasm_section_t.name, rz_bin_wasm_code_t.name, rz_bin_te_section_t.name, symbols_metadata_t.name, _RKext.name, _RKmodInfo.name, GDataGlobal.name, PeImageSectionHeader.name, Tpi_Type_String.name, Tpi_LF_Array.name, Tpi_LF_Structure.name, Tpi_LF_Structure_19.name, Tpi_LF_Union.name, Tpi_LF_Enum.name, Tpi_LF_Enumerate.name, Tpi_LF_NestType.name, Tpi_LF_Method.name, Tpi_LF_Member.name, Tpi_LF_StaticMember.name, Tpi_LF_OneMethod.name, namealiases_pair.name, RzCoreFileData.name, RzCoreLinkData.name, il_print_t.name, ts_data_symbol_map.name, MsgDigestCaller.name, cmd_descs_generate.Arg.name, cmd_descs_generate.Detail.name, cmd_descs_generate.CmdDesc.name, map_string_value_t.name, RzCoreVisualViewGraphItem.name, linux_map_entry.name, elf_note_types.name, _window.name, _xnu_thread.name, local_pure_var_t.name, rz_analysis_type_var_t.name, rz_analysis_type_ptr_t.name, rz_analysis_type_array_t.name, rz_analysis_type_struct_t.name, rz_analysis_type_union_t.name, rz_analysis_diff_t.name, rz_analysis_function_t.name, rz_analysis_func_arg_t.name, rz_analysis_type_t.name, rz_analysis_var_t.name, rz_analysis_var_global_t.name, rz_analysis_var_field_t.name, rz_analysis_esil_interrupt_handler_t.name, rz_analysis_il_init_state_var_t.name, rz_analysis_plugin_t.name, rz_asm_plugin_t.name, rz_bin_xtr_plugin_t.name, rz_bin_plugin_t.name, rz_bin_virtual_file_t.name, rz_bin_map_t.name, rz_bin_section_t.name, rz_bin_class_t.name, rz_bin_symbol_t.name, rz_bin_import_t.name, rz_bin_field_t.name, rz_bin_mem_t.name, rz_bin_resource_t.name, rz_bin_dwarf_line_file_entry_t.name, rz_bp_plugin_t.name, rz_bp_item_t.name, rz_cmd_macro_label_t.name, rz_cmd_macro_item_t.name, rz_cmd_desc_detail_t.name, rz_cmd_desc_arg_t.name, rz_cmd_desc_t.name, rz_config_node_t.name, rz_panels_menu_item.name, rz_panels_t.name, rz_core_plugin_t.name, rz_core_visual_tab_t.name, rz_bin_sym_names_t.name, rz_crypto_plugin_t.name, rz_debug_map_t.name, rz_debug_snap_t.name, rz_debug_plugin_t.name, rz_egg_plugin_t.name, rz_egg_lang_t.name, rz_flag_zone_item_t.name, rz_flag_item_t.name, rz_flirt_function_t.name, rz_flirt_sig_info_t.name, rz_hash_plugin_t.name, rz_il_var_t.name, rz_il_op_args_let_t.name, rz_il_reg_binding_item_t.name, rz_io_desc_t.name, rz_io_plugin_t.name, rz_io_map_t.name, rz_lang_plugin_t.name, rz_lang_def_t.name, rz_main_t.name, rz_parse_plugin_t.name, rz_platform_item_t.name, RzRegProfileDef.name, rz_reg_item_t.name, rz_reg_t.name, rz_syscall_item_t.name, rz_sysreg_item_t.name, rz_syscall_plugin_t.name, rz_syscall_arch_plugin_t.name, rz_type_enum_case_t.name, rz_type_struct_member_t.name, rz_type_union_member_t.name, rz_base_type_t.name, rz_callable_arg_t.name, rz_callable_at.name, rz_type_t::.name, rz_type_t.name, rz_code_annotation_t::.name, rz_code_annotation_t.name, rz_event_class_t.name, rz_space_t.name, rz_spaces_t.name, RzTableColumnType.name, RzTableColumn.name, RzListInfo.name, RUtfBlock.name, gport.name, rz_io_zip_uri_const_t.name, rz_io_zfo_t.name, RzIODescasd.name, names.name, type_tbl_s.name, record::header.name, diff_function_t.name, rz_oid_list_t.name, rz_lib_type_name_t.name, cclass.name, cname.name, rerr.name, sdb_t.name, sdb_ns_t.name, setup_cython.custom_build.name, opcode_struct.name, test_group_name.GroupTest.name, name_map.name, demangle_operator_info.name, demangle_builtin_type_info.name, demangle_component.name, demangle_component::.name, Type.name, option.name, mspack_file_p.name, uv_interface_address_s.name, uv_dirent_s.name, uv_env_item_s.name, uv__sysctl_args.name, zip_stat.name, zip_hash_entry.name, archive.name, ef.name, entry.name, enum_map_t.name, mpc_parser_t.name, mpca_stmt_t.name, RZARFP.name, cpp_macro_t.name, Tag.name, Proc.name, io_backend_t.name, WindModule.name, redisNodeFlags.name, name_id_map.name, option_map.name, tar_header.name, WindProc.name, dspidlist.name, dsmapinfo.name, gdb_reg.name, gdbr_xml_flags_t.name, gdbr_xml_reg_t.name, registers_t.name, DShMsg_notify_t.name, DShMsg_notify_t::.name, file.name, bin.name, gz_header_s.name, cmd_descs_generate.Arg.no_space, rz_cmd_desc_arg_t.no_space, cmd_descs_generate.Arg.optional, rz_cmd_desc_arg_t.optional, cmd_descs_generate.strornull(), rz_test_test_t.type, _cpu_const_tag.type, _opcodes_tag_.type, dwarf_variable_t.type, FindCtx.type, CollectCtx.type, optype.type, class_type_info_t.type, si_class_type_info_t.type, vmi_class_type_info_t.type, _8051_op_t.type, amd29k_instr_s.type, arc_operand_value.type, aarch64_opnd_info.type, ArmOp.type, operand_t.type, cr16_cmd.type, ebc_index.type, gb_opcode.type, HexOp.type, HexInsnTemplate.type, arg_t.type, bfd_link_hash_table.type, bfd_link_order.type, bfd_link_hash_entry.type, elf_link_hash_entry.type, bfd_elf_special_section.type, obj_attribute.type, Elf_External_Note.type, elf_internal_note.type, _symbol_info.type, reloc_howto_struct.type, bytecode_t.type, lh5801_insn.type, rz_asm_lm32_opcode.type, mcore_mask.type, mcore_ops.type, mcore_field_t.type, mcore_t.type, mcs96_op_t.type, type, msp430_cmd.type, insn_type_descr_t.type, insn_extra_t.type, insn_t.type, ppcps_field_t.type, vle_field_t.type, field_t.type, e_vle_t.type, ppc_t.type, propeller_cmd.type, pyc_opcode_object.type, rsp_operand_decoder.type, rsp_operand.type, v810_cmd.type, v850_cmd.type, WasmOp.type, z80_opcode.type, infile.type, reference.type, rz_bin_elf_section_t.type, rz_bin_elf_symbol_t.type, rz_bin_elf_reloc_t.type, type_translation.type, symbol_type_translation.type, java_attribute_t.type, rz_bin_le_obj_s.type, LE_entry_bundle_header_s.type, symbol_t.type, reloc_t.type, blob_index_t.type, _RELOC.type, OMF_record.type, rz_bin_pe_string_t.type, _PE_RESOURCE.type, pyc_object.type, rz_bin_te_string_t.type, rz_bin_wasm_local_entry_t.type, rz_bin_wasm_custom_name_entry_t.type, _CFValue.type, _CFValueDict.type, _CFValueArray.type, _CFValueString.type, _CFValueInteger.type, _CFValueData.type, _CFValueBool.type, _CFValueNULL.type, Tpi_Type_MethodListMember.type, Tpi_LF_SimpleType.type, HintNode.type, autocmplt_data_t.type, __rebase_struct.type, cmd_descs_generate.Arg.type, cmd_descs_generate.CmdDesc.type, RzAnalysisMetaUserItem.type, rz_analysis_type_var_t.type, rz_analysis_type_ptr_t.type, rz_analysis_type_array_t.type, rz_analysis_type_struct_t.type, rz_analysis_type_union_t.type, rz_analysis_diff_t.type, rz_analysis_function_t.type, rz_analysis_type_t.type, rz_analysis_meta_item_t.type, rz_analysis_addr_hint_record_t.type, rz_analysis_hint_t.type, rz_analysis_var_access_t.type, rz_analysis_var_t.type, rz_analysis_var_global_t.type, rz_analysis_value_t.type, rz_analysis_op_t.type, rz_analysis_cond_t.type, rz_analysis_ref_t.type, rz_analysis_refline_t.type, rz_analysis_esil_word_t.type, rz_analysis_esil_operation_t.type, rz_bin_addr_t.type, rz_bin_hash_t.type, rz_bin_file_hash_t.type, rz_bin_info_t.type, rz_bin_xtr_metadata_t.type, rz_bin_section_t.type, rz_bin_symbol_t.type, rz_bin_import_t.type, rz_bin_reloc_t.type, rz_bin_string_t.type, rz_bin_field_t.type, rz_bin_resource_t.type, RzBinDwarfLineOp.type, rz_bp_plugin_t.type, rz_cmd_desc_arg_t.type, rz_cmd_desc_t.type, rz_core_autocomplete_t.type, rz_core_item_t.type, rz_debug_reason_t.type, rz_debug_signal_t.type, rz_debug_desc_t.type, rz_diff_op_t.type, rz_egg_plugin_t.type, rz_flirt_info_t.type, RTcache_64.type, RTcache_32.type, rz_arena_list_item.type, rz_heap_bin.type, rz_il_effect_label_t.type, rz_il_sort_pure_t.type, rz_il_val_t.type, rz_il_vm_event_t.type, rz_lang_def_t.type, rz_lib_plugin_t.type, rz_lib_handler_t.type, rz_lib_struct_t.type, RzRegProfileDef.type, rz_reg_item_t.type, rz_search_keyword_t.type, rz_sysreg_item_t.type, rz_type_struct_member_t.type, rz_type_union_member_t.type, rz_base_type_t.type, rz_callable_arg_t.type, rz_type_t::.type, rz_type_t.type, rz_code_annotation_t.type, rz_code_annotation_t::.type, rz_event_callback_handle_t.type, rz_event_meta_t.type, rz_json_t.type, rz_panel_model_t.type, SpcAttributeTypeAndOptionalValue.type, RzAsmToken.type, RzAsmTokenPattern.type, RzDetectedString.type, RzTableColumn.type, rz_heap_block.type, type_tbl_s.type, names.type, diff_context_t.type, ParserTypePair.type, TypeFormatPair.type, m68k_info.type, OperandSpecifier.type, capstone.Arm.OpShift.type, capstone.Arm.Operand.type, capstone.Arm64.OpShift.type, capstone.Arm64.Operand.type, capstone.M680x.Operand.type, capstone.Mips.Operand.type, capstone.Ppc.Operand.type, capstone.Sparc.Operand.type, capstone.Systemz.Operand.type, capstone.X86.Operand.type, capstone.Xcore.Operand.type, cs_arm_op.type, cs_arm64_op.type, cs_m680x_op.type, cs_m68k_op.type, m68k_op_size.type, cs_mips_op.type, cs_ppc_op.type, cs_sparc_op.type, cs_sysz_op.type, cs_tms320c64x_op.type, cs_x86_op.type, cs_xcore_op.type, demangle_component.type, demangle_component::.type, m_filename.type, uv_dirent_s.type, _zip_err_info.type, mpc_input_t.type, mpc_parser_t.type, ptrace_wrap_request_t.type, TSParseAction.type, gdbr_xml_flags_t.type, gdbr_xml_reg_t.type, W32DbgWParams.type, io_backend_t.type, _DmpCtx.type, TSQueryPredicateStep.type, and lzma_options_delta.type.

◆ _get_choices_cname()

def cmd_descs_generate.Arg._get_choices_cname (   self)
private

Definition at line 184 of file cmd_descs_generate.py.

184  def _get_choices_cname(self):
185  if self.type == "RZ_CMD_ARG_TYPE_CHOICES":
186  return self.cd.cname + "_" + compute_cname(self.name) + "_choices"
187 
188  raise Exception("_get_choices_cname should be called on ARG_TYPE_CHOICES only")
189 
def compute_cname(name)

References arm_cs_context_t.cd, autocmplt_data_t.cd, cmd_descs_generate.Arg.cd, cmd_descs_generate.Detail.cd, cmd_descs_util.compute_cname(), rz_test_cmd_test_t.name, _opcodes_tag_.name, dwarf_function_t.name, dwarf_variable_t.name, optype.name, name, i8051_cpu_model.name, i8051_map_entry.name, class_type_info_t.name, si_class_type_info_t.name, vmi_class_type_info_t.name, rtti_type_descriptor_t.name, ExtInstruction.name, ExtAuxRegister.name, ExtCoreRegister.name, arc_operand_value.name, aarch64_operand.name, aarch64_opcode.name, aarch64_name_value_pair.name, aarch64_sys_reg.name, aarch64_sys_ins_reg.name, ArmOp.name, avr_decoder_t.name, dalvik_opcodes_t.name, gb_opcode.name, opcode_t.name, bfd_sym_chain.name, bfd_link_order_reloc.name, bfd_elf_version_tree.name, disasm_options_t.name, bfd_elf_section_data.name, _RKmodInfo.name, Elf_External_Note.name, carsym.name, orl.name, _symbol_info.name, bfd_link_needed_list.name, coff_comdat_info.name, bfd_section.name, reloc_howto_struct.name, bfd_symbol.name, bfd_target.name, cris_spec_reg.name, cris_support_reg.name, cris_cond15.name, cris_opcode.name, pa_opcode.name, lanai_opcode.name, mips_opcode.name, nios2_opcode.name, nios2_reg.name, powerpc_opcode.name, powerpc_macro.name, sparc_opcode_arch.name, sparc_opcode.name, tricore_opcode.name, pcp_opcode.name, tricore_core_register.name, xtensa_format_internal_struct.name, xtensa_slot_internal_struct.name, xtensa_operand_internal_struct.name, xtensa_opcode_internal_struct.name, xtensa_regfile_internal_struct.name, xtensa_interface_internal_struct.name, xtensa_funcUnit_internal_struct.name, xtensa_state_internal_struct.name, xtensa_sysreg_internal_struct.name, mcore_ops.name, mcore_t.name, mips_cp0sel_name.name, mips_abi_choice.name, mips_arch_choice.name, insn_extra_t.name, insn_t.name, ppcps_t.name, ps_opcode_t.name, vle_t.name, e_vle_t.name, se_vle_t.name, ppc_t.name, riscv_opcode.name, snes_op_t.name, arg.name, spc700_op_t.name, vot.name, z80_opcode.name, label.name, infile.name, name.name, includedir.name, bytecode_t.name, rz_asm_lm32_opcode.name, rz_asm_lm32_csr_t.name, rz_asm_lm32_reg_t.name, macro.name, stack.name, JNINativeMethod.name, JavaVMAttachArgs.name, rz_bin_elf_section_t.name, rz_bin_elf_symbol_t.name, class_translation.name, ver_flags_translation.name, type_translation.name, flag_translation.name, symbol_bind_translation.name, symbol_type_translation.name, rz_coresym_cache_element_segment_t.name, rz_coresym_cache_element_section_t.name, rz_coresym_cache_element_symbol_t.name, section_t.name, symbol_t.name, reloc_t.name, import_t.name, lib_t.name, fvmlib.name, dylib.name, prebound_dylib_command.name, dylinker_command.name, fvmfile_command.name, rz_ne_resource_entry.name, rz_ne_resource.name, OMF_symbol.name, Pe_image_metadata_methoddef.name, Pe_image_metadata_typedef.name, rz_bin_pe_section_t.name, rz_bin_pe_import_t.name, rz_bin_pe_export_t.name, rz_bin_pe_lib_t.name, _PE_RESOURCE.name, pyc_code_object.name, xbe_lib.name, PeImageSectionHeader.name, rz_bin_wasm_name_t.name, rz_bin_wasm_section_t.name, rz_bin_wasm_code_t.name, rz_bin_te_section_t.name, symbols_metadata_t.name, _RKext.name, GDataGlobal.name, Tpi_Type_String.name, Tpi_LF_Array.name, Tpi_LF_Structure.name, Tpi_LF_Structure_19.name, Tpi_LF_Union.name, Tpi_LF_Enum.name, Tpi_LF_Enumerate.name, Tpi_LF_NestType.name, Tpi_LF_Method.name, Tpi_LF_Member.name, Tpi_LF_StaticMember.name, Tpi_LF_OneMethod.name, namealiases_pair.name, RzCoreFileData.name, RzCoreLinkData.name, il_print_t.name, ts_data_symbol_map.name, MsgDigestCaller.name, cmd_descs_generate.Arg.name, cmd_descs_generate.Detail.name, cmd_descs_generate.CmdDesc.name, map_string_value_t.name, RzCoreVisualViewGraphItem.name, linux_map_entry.name, elf_note_types.name, _window.name, _xnu_thread.name, local_pure_var_t.name, rz_analysis_type_var_t.name, rz_analysis_type_ptr_t.name, rz_analysis_type_array_t.name, rz_analysis_type_struct_t.name, rz_analysis_type_union_t.name, rz_analysis_diff_t.name, rz_analysis_function_t.name, rz_analysis_func_arg_t.name, rz_analysis_type_t.name, rz_analysis_var_t.name, rz_analysis_var_global_t.name, rz_analysis_var_field_t.name, rz_analysis_esil_interrupt_handler_t.name, rz_analysis_il_init_state_var_t.name, rz_analysis_plugin_t.name, rz_asm_plugin_t.name, rz_bin_xtr_plugin_t.name, rz_bin_plugin_t.name, rz_bin_virtual_file_t.name, rz_bin_map_t.name, rz_bin_section_t.name, rz_bin_class_t.name, rz_bin_symbol_t.name, rz_bin_import_t.name, rz_bin_field_t.name, rz_bin_mem_t.name, rz_bin_resource_t.name, rz_bin_dwarf_line_file_entry_t.name, rz_bp_plugin_t.name, rz_bp_item_t.name, rz_cmd_macro_label_t.name, rz_cmd_macro_item_t.name, rz_cmd_desc_detail_t.name, rz_cmd_desc_arg_t.name, rz_cmd_desc_t.name, rz_config_node_t.name, rz_panels_menu_item.name, rz_panels_t.name, rz_core_plugin_t.name, rz_core_visual_tab_t.name, rz_bin_sym_names_t.name, rz_crypto_plugin_t.name, rz_debug_map_t.name, rz_debug_snap_t.name, rz_debug_plugin_t.name, rz_egg_plugin_t.name, rz_egg_lang_t.name, rz_flag_zone_item_t.name, rz_flag_item_t.name, rz_flirt_function_t.name, rz_flirt_sig_info_t.name, rz_hash_plugin_t.name, rz_il_var_t.name, rz_il_op_args_let_t.name, rz_il_reg_binding_item_t.name, rz_io_desc_t.name, rz_io_plugin_t.name, rz_io_map_t.name, rz_lang_plugin_t.name, rz_lang_def_t.name, rz_main_t.name, rz_parse_plugin_t.name, rz_platform_item_t.name, RzRegProfileDef.name, rz_reg_item_t.name, rz_reg_t.name, rz_syscall_item_t.name, rz_sysreg_item_t.name, rz_syscall_plugin_t.name, rz_syscall_arch_plugin_t.name, rz_type_enum_case_t.name, rz_type_struct_member_t.name, rz_type_union_member_t.name, rz_base_type_t.name, rz_callable_arg_t.name, rz_callable_at.name, rz_type_t.name, rz_type_t::.name, rz_code_annotation_t.name, rz_code_annotation_t::.name, rz_event_class_t.name, rz_space_t.name, rz_spaces_t.name, RzTableColumnType.name, RzTableColumn.name, RzListInfo.name, RUtfBlock.name, gport.name, rz_io_zip_uri_const_t.name, rz_io_zfo_t.name, RzIODescasd.name, names.name, type_tbl_s.name, diff_function_t.name, rz_oid_list_t.name, rz_lib_type_name_t.name, cclass.name, cname.name, rerr.name, sdb_t.name, sdb_ns_t.name, setup_cython.custom_build.name, opcode_struct.name, test_group_name.GroupTest.name, name_map.name, demangle_operator_info.name, demangle_builtin_type_info.name, demangle_component::.name, demangle_component.name, Type.name, option.name, mspack_file_p.name, uv_interface_address_s.name, uv_dirent_s.name, uv_env_item_s.name, uv__sysctl_args.name, zip_stat.name, zip_hash_entry.name, archive.name, ef.name, entry.name, enum_map_t.name, mpc_parser_t.name, mpca_stmt_t.name, RZARFP.name, WindProc.name, dspidlist.name, dsmapinfo.name, gdb_reg.name, gdbr_xml_flags_t.name, gdbr_xml_reg_t.name, registers_t.name, DShMsg_notify_t.name, DShMsg_notify_t::.name, record::header.name, cpp_macro_t.name, Tag.name, Proc.name, io_backend_t.name, WindModule.name, redisNodeFlags.name, name_id_map.name, option_map.name, tar_header.name, file.name, bin.name, gz_header_s.name, rz_test_test_t.type, _cpu_const_tag.type, _opcodes_tag_.type, dwarf_variable_t.type, FindCtx.type, CollectCtx.type, optype.type, class_type_info_t.type, si_class_type_info_t.type, vmi_class_type_info_t.type, _8051_op_t.type, amd29k_instr_s.type, arc_operand_value.type, aarch64_opnd_info.type, ArmOp.type, operand_t.type, cr16_cmd.type, ebc_index.type, gb_opcode.type, HexOp.type, HexInsnTemplate.type, arg_t.type, bfd_link_hash_table.type, bfd_link_order.type, bfd_link_hash_entry.type, elf_link_hash_entry.type, bfd_elf_special_section.type, obj_attribute.type, bytecode_t.type, Elf_External_Note.type, elf_internal_note.type, _symbol_info.type, reloc_howto_struct.type, lh5801_insn.type, rz_asm_lm32_opcode.type, mcore_mask.type, mcore_ops.type, mcore_field_t.type, mcore_t.type, mcs96_op_t.type, type, msp430_cmd.type, insn_type_descr_t.type, insn_extra_t.type, insn_t.type, ppcps_field_t.type, vle_field_t.type, field_t.type, e_vle_t.type, ppc_t.type, propeller_cmd.type, pyc_opcode_object.type, rsp_operand_decoder.type, rsp_operand.type, v810_cmd.type, v850_cmd.type, WasmOp.type, z80_opcode.type, infile.type, reference.type, rz_bin_elf_section_t.type, rz_bin_elf_symbol_t.type, rz_bin_elf_reloc_t.type, type_translation.type, symbol_type_translation.type, java_attribute_t.type, rz_bin_le_obj_s.type, LE_entry_bundle_header_s.type, symbol_t.type, reloc_t.type, blob_index_t.type, _RELOC.type, OMF_record.type, rz_bin_pe_string_t.type, _PE_RESOURCE.type, pyc_object.type, rz_bin_te_string_t.type, rz_bin_wasm_local_entry_t.type, rz_bin_wasm_custom_name_entry_t.type, _CFValue.type, _CFValueDict.type, _CFValueArray.type, _CFValueString.type, _CFValueInteger.type, _CFValueData.type, _CFValueBool.type, _CFValueNULL.type, Tpi_Type_MethodListMember.type, Tpi_LF_SimpleType.type, HintNode.type, autocmplt_data_t.type, __rebase_struct.type, cmd_descs_generate.Arg.type, cmd_descs_generate.CmdDesc.type, RzAnalysisMetaUserItem.type, rz_analysis_type_var_t.type, rz_analysis_type_ptr_t.type, rz_analysis_type_array_t.type, rz_analysis_type_struct_t.type, rz_analysis_type_union_t.type, rz_analysis_diff_t.type, rz_analysis_function_t.type, rz_analysis_type_t.type, rz_analysis_meta_item_t.type, rz_analysis_addr_hint_record_t.type, rz_analysis_hint_t.type, rz_analysis_var_access_t.type, rz_analysis_var_t.type, rz_analysis_var_global_t.type, rz_analysis_value_t.type, rz_analysis_op_t.type, rz_analysis_cond_t.type, rz_analysis_ref_t.type, rz_analysis_refline_t.type, rz_analysis_esil_word_t.type, rz_analysis_esil_operation_t.type, rz_bin_addr_t.type, rz_bin_hash_t.type, rz_bin_file_hash_t.type, rz_bin_info_t.type, rz_bin_xtr_metadata_t.type, rz_bin_section_t.type, rz_bin_symbol_t.type, rz_bin_import_t.type, rz_bin_reloc_t.type, rz_bin_string_t.type, rz_bin_field_t.type, rz_bin_resource_t.type, RzBinDwarfLineOp.type, rz_bp_plugin_t.type, rz_cmd_desc_arg_t.type, rz_cmd_desc_t.type, rz_core_autocomplete_t.type, rz_core_item_t.type, rz_debug_reason_t.type, rz_debug_signal_t.type, rz_debug_desc_t.type, rz_diff_op_t.type, rz_egg_plugin_t.type, rz_flirt_info_t.type, RTcache_64.type, RTcache_32.type, rz_arena_list_item.type, rz_heap_bin.type, rz_il_effect_label_t.type, rz_il_sort_pure_t.type, rz_il_val_t.type, rz_il_vm_event_t.type, rz_lang_def_t.type, rz_lib_plugin_t.type, rz_lib_handler_t.type, rz_lib_struct_t.type, RzRegProfileDef.type, rz_reg_item_t.type, rz_search_keyword_t.type, rz_sysreg_item_t.type, rz_type_struct_member_t.type, rz_type_union_member_t.type, rz_base_type_t.type, rz_callable_arg_t.type, rz_type_t.type, rz_type_t::.type, rz_code_annotation_t.type, rz_code_annotation_t::.type, rz_event_callback_handle_t.type, rz_event_meta_t.type, rz_json_t.type, rz_panel_model_t.type, SpcAttributeTypeAndOptionalValue.type, RzAsmToken.type, RzAsmTokenPattern.type, RzDetectedString.type, RzTableColumn.type, rz_heap_block.type, type_tbl_s.type, names.type, diff_context_t.type, ParserTypePair.type, TypeFormatPair.type, m68k_info.type, OperandSpecifier.type, capstone.Arm.OpShift.type, capstone.Arm.Operand.type, capstone.Arm64.OpShift.type, capstone.Arm64.Operand.type, capstone.M680x.Operand.type, capstone.Mips.Operand.type, capstone.Ppc.Operand.type, capstone.Sparc.Operand.type, capstone.Systemz.Operand.type, capstone.X86.Operand.type, capstone.Xcore.Operand.type, cs_arm_op.type, cs_arm64_op.type, cs_m680x_op.type, cs_m68k_op.type, m68k_op_size.type, cs_mips_op.type, cs_ppc_op.type, cs_sparc_op.type, cs_sysz_op.type, cs_tms320c64x_op.type, cs_x86_op.type, cs_xcore_op.type, demangle_component.type, demangle_component::.type, m_filename.type, uv_dirent_s.type, _zip_err_info.type, mpc_input_t.type, mpc_parser_t.type, ptrace_wrap_request_t.type, TSParseAction.type, gdbr_xml_flags_t.type, gdbr_xml_reg_t.type, W32DbgWParams.type, io_backend_t.type, _DmpCtx.type, TSQueryPredicateStep.type, and lzma_options_delta.type.

Referenced by cmd_descs_generate.Arg._get_union(), and cmd_descs_generate.Arg.get_cstructure().

◆ _get_union()

def cmd_descs_generate.Arg._get_union (   self)
private

Definition at line 190 of file cmd_descs_generate.py.

190  def _get_union(self):
191  if self.type == "RZ_CMD_ARG_TYPE_CHOICES":
192  if self.choices_cb is None:
193  return DESC_HELP_ARG_UNION_CHOICES.format(
194  choices=self._get_choices_cname()
195  )
196  return DESC_HELP_ARG_UNION_CHOICES_CB.format(choices_cb=self.choices_cb)
197 
198  return ""
199 

References cmd_descs_generate.Arg._get_choices_cname(), cmd_descs_generate.Arg.choices_cb, rz_cmd_desc_arg_t.choices_cb, rz_test_test_t.type, _cpu_const_tag.type, _opcodes_tag_.type, dwarf_variable_t.type, FindCtx.type, CollectCtx.type, optype.type, class_type_info_t.type, si_class_type_info_t.type, vmi_class_type_info_t.type, _8051_op_t.type, amd29k_instr_s.type, arc_operand_value.type, aarch64_opnd_info.type, ArmOp.type, operand_t.type, cr16_cmd.type, ebc_index.type, gb_opcode.type, HexOp.type, HexInsnTemplate.type, arg_t.type, bfd_link_hash_table.type, bfd_link_order.type, bfd_link_hash_entry.type, elf_link_hash_entry.type, bfd_elf_special_section.type, obj_attribute.type, elf_internal_note.type, _symbol_info.type, reloc_howto_struct.type, bytecode_t.type, Elf_External_Note.type, lh5801_insn.type, rz_asm_lm32_opcode.type, mcore_mask.type, mcore_ops.type, mcore_field_t.type, mcore_t.type, mcs96_op_t.type, type, msp430_cmd.type, insn_type_descr_t.type, insn_extra_t.type, insn_t.type, ppcps_field_t.type, vle_field_t.type, field_t.type, e_vle_t.type, ppc_t.type, propeller_cmd.type, pyc_opcode_object.type, rsp_operand_decoder.type, rsp_operand.type, v810_cmd.type, v850_cmd.type, WasmOp.type, z80_opcode.type, infile.type, reference.type, rz_bin_elf_section_t.type, rz_bin_elf_symbol_t.type, rz_bin_elf_reloc_t.type, type_translation.type, symbol_type_translation.type, java_attribute_t.type, rz_bin_le_obj_s.type, LE_entry_bundle_header_s.type, symbol_t.type, reloc_t.type, blob_index_t.type, _RELOC.type, OMF_record.type, rz_bin_pe_string_t.type, _PE_RESOURCE.type, pyc_object.type, rz_bin_te_string_t.type, rz_bin_wasm_local_entry_t.type, rz_bin_wasm_custom_name_entry_t.type, _CFValue.type, _CFValueDict.type, _CFValueArray.type, _CFValueString.type, _CFValueInteger.type, _CFValueData.type, _CFValueBool.type, _CFValueNULL.type, Tpi_Type_MethodListMember.type, Tpi_LF_SimpleType.type, HintNode.type, autocmplt_data_t.type, __rebase_struct.type, cmd_descs_generate.Arg.type, cmd_descs_generate.CmdDesc.type, RzAnalysisMetaUserItem.type, rz_analysis_type_var_t.type, rz_analysis_type_ptr_t.type, rz_analysis_type_array_t.type, rz_analysis_type_struct_t.type, rz_analysis_type_union_t.type, rz_analysis_diff_t.type, rz_analysis_function_t.type, rz_analysis_type_t.type, rz_analysis_meta_item_t.type, rz_analysis_addr_hint_record_t.type, rz_analysis_hint_t.type, rz_analysis_var_access_t.type, rz_analysis_var_t.type, rz_analysis_var_global_t.type, rz_analysis_value_t.type, rz_analysis_op_t.type, rz_analysis_cond_t.type, rz_analysis_ref_t.type, rz_analysis_refline_t.type, rz_analysis_esil_word_t.type, rz_analysis_esil_operation_t.type, rz_bin_addr_t.type, rz_bin_hash_t.type, rz_bin_file_hash_t.type, rz_bin_info_t.type, rz_bin_xtr_metadata_t.type, rz_bin_section_t.type, rz_bin_symbol_t.type, rz_bin_import_t.type, rz_bin_reloc_t.type, rz_bin_string_t.type, rz_bin_field_t.type, rz_bin_resource_t.type, RzBinDwarfLineOp.type, rz_bp_plugin_t.type, rz_cmd_desc_arg_t.type, rz_cmd_desc_t.type, rz_core_autocomplete_t.type, rz_core_item_t.type, rz_debug_reason_t.type, rz_debug_signal_t.type, rz_debug_desc_t.type, rz_diff_op_t.type, rz_egg_plugin_t.type, rz_flirt_info_t.type, RTcache_64.type, RTcache_32.type, rz_arena_list_item.type, rz_heap_bin.type, rz_il_effect_label_t.type, rz_il_sort_pure_t.type, rz_il_val_t.type, rz_il_vm_event_t.type, rz_lang_def_t.type, rz_lib_plugin_t.type, rz_lib_handler_t.type, rz_lib_struct_t.type, RzRegProfileDef.type, rz_reg_item_t.type, rz_search_keyword_t.type, rz_sysreg_item_t.type, rz_type_struct_member_t.type, rz_type_union_member_t.type, rz_base_type_t.type, rz_callable_arg_t.type, rz_type_t::.type, rz_type_t.type, rz_code_annotation_t.type, rz_code_annotation_t::.type, rz_event_callback_handle_t.type, rz_event_meta_t.type, rz_json_t.type, rz_panel_model_t.type, SpcAttributeTypeAndOptionalValue.type, RzAsmToken.type, RzAsmTokenPattern.type, RzDetectedString.type, RzTableColumn.type, rz_heap_block.type, type_tbl_s.type, names.type, diff_context_t.type, ParserTypePair.type, TypeFormatPair.type, m68k_info.type, OperandSpecifier.type, capstone.Arm.OpShift.type, capstone.Arm.Operand.type, capstone.Arm64.OpShift.type, capstone.Arm64.Operand.type, capstone.M680x.Operand.type, capstone.Mips.Operand.type, capstone.Ppc.Operand.type, capstone.Sparc.Operand.type, capstone.Systemz.Operand.type, capstone.X86.Operand.type, capstone.Xcore.Operand.type, cs_arm_op.type, cs_arm64_op.type, cs_m680x_op.type, cs_m68k_op.type, m68k_op_size.type, cs_mips_op.type, cs_ppc_op.type, cs_sparc_op.type, cs_sysz_op.type, cs_tms320c64x_op.type, cs_x86_op.type, cs_xcore_op.type, demangle_component.type, demangle_component::.type, m_filename.type, uv_dirent_s.type, _zip_err_info.type, mpc_input_t.type, mpc_parser_t.type, ptrace_wrap_request_t.type, TSParseAction.type, gdbr_xml_flags_t.type, gdbr_xml_reg_t.type, W32DbgWParams.type, io_backend_t.type, _DmpCtx.type, TSQueryPredicateStep.type, and lzma_options_delta.type.

Referenced by cmd_descs_generate.Arg.__str__().

◆ decl()

def cmd_descs_generate.Arg.decl (   self)

Definition at line 250 of file cmd_descs_generate.py.

250  def decl(self):
251  if self.type == "RZ_CMD_ARG_TYPE_CHOICES" and self.choices_cb is not None:
252  return "RZ_IPI char **%s(RzCore *core);" % (self.choices_cb,)
253  return None
254 
255 

References cmd_descs_generate.Arg.choices_cb, rz_cmd_desc_arg_t.choices_cb, rz_test_test_t.type, _cpu_const_tag.type, _opcodes_tag_.type, dwarf_variable_t.type, FindCtx.type, CollectCtx.type, optype.type, class_type_info_t.type, si_class_type_info_t.type, vmi_class_type_info_t.type, _8051_op_t.type, amd29k_instr_s.type, arc_operand_value.type, aarch64_opnd_info.type, ArmOp.type, operand_t.type, cr16_cmd.type, ebc_index.type, gb_opcode.type, HexOp.type, HexInsnTemplate.type, arg_t.type, bfd_link_hash_table.type, bfd_link_order.type, bfd_link_hash_entry.type, elf_link_hash_entry.type, bfd_elf_special_section.type, obj_attribute.type, Elf_External_Note.type, elf_internal_note.type, _symbol_info.type, reloc_howto_struct.type, bytecode_t.type, lh5801_insn.type, rz_asm_lm32_opcode.type, mcore_mask.type, mcore_ops.type, mcore_field_t.type, mcore_t.type, mcs96_op_t.type, type, msp430_cmd.type, insn_type_descr_t.type, insn_extra_t.type, insn_t.type, ppcps_field_t.type, vle_field_t.type, field_t.type, e_vle_t.type, ppc_t.type, propeller_cmd.type, pyc_opcode_object.type, rsp_operand_decoder.type, rsp_operand.type, v810_cmd.type, v850_cmd.type, WasmOp.type, z80_opcode.type, infile.type, reference.type, rz_bin_elf_section_t.type, rz_bin_elf_symbol_t.type, rz_bin_elf_reloc_t.type, type_translation.type, symbol_type_translation.type, java_attribute_t.type, rz_bin_le_obj_s.type, LE_entry_bundle_header_s.type, symbol_t.type, reloc_t.type, blob_index_t.type, _RELOC.type, OMF_record.type, rz_bin_pe_string_t.type, _PE_RESOURCE.type, pyc_object.type, rz_bin_te_string_t.type, rz_bin_wasm_local_entry_t.type, rz_bin_wasm_custom_name_entry_t.type, _CFValue.type, _CFValueDict.type, _CFValueArray.type, _CFValueString.type, _CFValueInteger.type, _CFValueData.type, _CFValueBool.type, _CFValueNULL.type, Tpi_Type_MethodListMember.type, Tpi_LF_SimpleType.type, HintNode.type, autocmplt_data_t.type, __rebase_struct.type, cmd_descs_generate.Arg.type, cmd_descs_generate.CmdDesc.type, RzAnalysisMetaUserItem.type, rz_analysis_type_var_t.type, rz_analysis_type_ptr_t.type, rz_analysis_type_array_t.type, rz_analysis_type_struct_t.type, rz_analysis_type_union_t.type, rz_analysis_diff_t.type, rz_analysis_function_t.type, rz_analysis_type_t.type, rz_analysis_meta_item_t.type, rz_analysis_addr_hint_record_t.type, rz_analysis_hint_t.type, rz_analysis_var_access_t.type, rz_analysis_var_t.type, rz_analysis_var_global_t.type, rz_analysis_value_t.type, rz_analysis_op_t.type, rz_analysis_cond_t.type, rz_analysis_ref_t.type, rz_analysis_refline_t.type, rz_analysis_esil_word_t.type, rz_analysis_esil_operation_t.type, rz_bin_addr_t.type, rz_bin_hash_t.type, rz_bin_file_hash_t.type, rz_bin_info_t.type, rz_bin_xtr_metadata_t.type, rz_bin_section_t.type, rz_bin_symbol_t.type, rz_bin_import_t.type, rz_bin_reloc_t.type, rz_bin_string_t.type, rz_bin_field_t.type, rz_bin_resource_t.type, RzBinDwarfLineOp.type, rz_bp_plugin_t.type, rz_cmd_desc_arg_t.type, rz_cmd_desc_t.type, rz_core_autocomplete_t.type, rz_core_item_t.type, rz_debug_reason_t.type, rz_debug_signal_t.type, rz_debug_desc_t.type, rz_diff_op_t.type, rz_egg_plugin_t.type, rz_flirt_info_t.type, RTcache_64.type, RTcache_32.type, rz_arena_list_item.type, rz_heap_bin.type, rz_il_effect_label_t.type, rz_il_sort_pure_t.type, rz_il_val_t.type, rz_il_vm_event_t.type, rz_lang_def_t.type, rz_lib_plugin_t.type, rz_lib_handler_t.type, rz_lib_struct_t.type, RzRegProfileDef.type, rz_reg_item_t.type, rz_search_keyword_t.type, rz_sysreg_item_t.type, rz_type_struct_member_t.type, rz_type_union_member_t.type, rz_base_type_t.type, rz_callable_arg_t.type, rz_type_t.type, rz_type_t::.type, rz_code_annotation_t.type, rz_code_annotation_t::.type, rz_event_callback_handle_t.type, rz_event_meta_t.type, rz_json_t.type, rz_panel_model_t.type, SpcAttributeTypeAndOptionalValue.type, RzAsmToken.type, RzAsmTokenPattern.type, RzDetectedString.type, RzTableColumn.type, rz_heap_block.type, type_tbl_s.type, names.type, diff_context_t.type, ParserTypePair.type, TypeFormatPair.type, m68k_info.type, OperandSpecifier.type, capstone.Arm.OpShift.type, capstone.Arm.Operand.type, capstone.Arm64.OpShift.type, capstone.Arm64.Operand.type, capstone.M680x.Operand.type, capstone.Mips.Operand.type, capstone.Ppc.Operand.type, capstone.Sparc.Operand.type, capstone.Systemz.Operand.type, capstone.X86.Operand.type, capstone.Xcore.Operand.type, cs_arm_op.type, cs_arm64_op.type, cs_m680x_op.type, cs_m68k_op.type, m68k_op_size.type, cs_mips_op.type, cs_ppc_op.type, cs_sparc_op.type, cs_sysz_op.type, cs_tms320c64x_op.type, cs_x86_op.type, cs_xcore_op.type, demangle_component.type, demangle_component::.type, m_filename.type, uv_dirent_s.type, _zip_err_info.type, mpc_input_t.type, mpc_parser_t.type, ptrace_wrap_request_t.type, TSParseAction.type, gdbr_xml_flags_t.type, gdbr_xml_reg_t.type, W32DbgWParams.type, io_backend_t.type, _DmpCtx.type, TSQueryPredicateStep.type, and lzma_options_delta.type.

◆ get_cstructure()

def cmd_descs_generate.Arg.get_cstructure (   self)

Definition at line 237 of file cmd_descs_generate.py.

237  def get_cstructure(self):
238  if self.type == "RZ_CMD_ARG_TYPE_CHOICES" and self.choices_cb is None:
239  return DESC_HELP_ARG_CHOICES.format(
240  cname=self._get_choices_cname(),
241  choices=", ".join(
242  [
243  '"%s"' % (x,) if x != "NULL" else x
244  for x in self.choices + ["NULL"]
245  ]
246  ),
247  )
248  return ""
249 

References cmd_descs_generate.Arg._get_choices_cname(), cmd_descs_generate.Arg.choices, rz_cmd_desc_arg_t.choices, cmd_descs_generate.Arg.choices_cb, rz_cmd_desc_arg_t.choices_cb, rz_test_test_t.type, _cpu_const_tag.type, _opcodes_tag_.type, dwarf_variable_t.type, FindCtx.type, CollectCtx.type, optype.type, class_type_info_t.type, si_class_type_info_t.type, vmi_class_type_info_t.type, _8051_op_t.type, amd29k_instr_s.type, arc_operand_value.type, aarch64_opnd_info.type, ArmOp.type, operand_t.type, cr16_cmd.type, ebc_index.type, gb_opcode.type, HexOp.type, HexInsnTemplate.type, arg_t.type, bfd_link_hash_table.type, bfd_link_order.type, bfd_link_hash_entry.type, elf_link_hash_entry.type, bfd_elf_special_section.type, obj_attribute.type, Elf_External_Note.type, elf_internal_note.type, _symbol_info.type, reloc_howto_struct.type, bytecode_t.type, lh5801_insn.type, rz_asm_lm32_opcode.type, mcore_mask.type, mcore_ops.type, mcore_field_t.type, mcore_t.type, mcs96_op_t.type, type, msp430_cmd.type, insn_type_descr_t.type, insn_extra_t.type, insn_t.type, ppcps_field_t.type, vle_field_t.type, field_t.type, e_vle_t.type, ppc_t.type, propeller_cmd.type, pyc_opcode_object.type, rsp_operand_decoder.type, rsp_operand.type, v810_cmd.type, v850_cmd.type, WasmOp.type, z80_opcode.type, infile.type, reference.type, rz_bin_elf_section_t.type, rz_bin_elf_symbol_t.type, rz_bin_elf_reloc_t.type, type_translation.type, symbol_type_translation.type, java_attribute_t.type, rz_bin_le_obj_s.type, LE_entry_bundle_header_s.type, symbol_t.type, reloc_t.type, blob_index_t.type, _RELOC.type, OMF_record.type, rz_bin_pe_string_t.type, _PE_RESOURCE.type, pyc_object.type, rz_bin_te_string_t.type, rz_bin_wasm_local_entry_t.type, rz_bin_wasm_custom_name_entry_t.type, _CFValue.type, _CFValueDict.type, _CFValueArray.type, _CFValueString.type, _CFValueInteger.type, _CFValueData.type, _CFValueBool.type, _CFValueNULL.type, Tpi_Type_MethodListMember.type, Tpi_LF_SimpleType.type, HintNode.type, autocmplt_data_t.type, __rebase_struct.type, cmd_descs_generate.Arg.type, cmd_descs_generate.CmdDesc.type, RzAnalysisMetaUserItem.type, rz_analysis_type_var_t.type, rz_analysis_type_ptr_t.type, rz_analysis_type_array_t.type, rz_analysis_type_struct_t.type, rz_analysis_type_union_t.type, rz_analysis_diff_t.type, rz_analysis_function_t.type, rz_analysis_type_t.type, rz_analysis_meta_item_t.type, rz_analysis_addr_hint_record_t.type, rz_analysis_hint_t.type, rz_analysis_var_access_t.type, rz_analysis_var_t.type, rz_analysis_var_global_t.type, rz_analysis_value_t.type, rz_analysis_op_t.type, rz_analysis_cond_t.type, rz_analysis_ref_t.type, rz_analysis_refline_t.type, rz_analysis_esil_word_t.type, rz_analysis_esil_operation_t.type, rz_bin_addr_t.type, rz_bin_hash_t.type, rz_bin_file_hash_t.type, rz_bin_info_t.type, rz_bin_xtr_metadata_t.type, rz_bin_section_t.type, rz_bin_symbol_t.type, rz_bin_import_t.type, rz_bin_reloc_t.type, rz_bin_string_t.type, rz_bin_field_t.type, rz_bin_resource_t.type, RzBinDwarfLineOp.type, rz_bp_plugin_t.type, rz_cmd_desc_arg_t.type, rz_cmd_desc_t.type, rz_core_autocomplete_t.type, rz_core_item_t.type, rz_debug_reason_t.type, rz_debug_signal_t.type, rz_debug_desc_t.type, rz_diff_op_t.type, rz_egg_plugin_t.type, rz_flirt_info_t.type, RTcache_64.type, RTcache_32.type, rz_arena_list_item.type, rz_heap_bin.type, rz_il_effect_label_t.type, rz_il_sort_pure_t.type, rz_il_val_t.type, rz_il_vm_event_t.type, rz_lang_def_t.type, rz_lib_plugin_t.type, rz_lib_handler_t.type, rz_lib_struct_t.type, RzRegProfileDef.type, rz_reg_item_t.type, rz_search_keyword_t.type, rz_sysreg_item_t.type, rz_type_struct_member_t.type, rz_type_union_member_t.type, rz_base_type_t.type, rz_callable_arg_t.type, rz_type_t::.type, rz_type_t.type, rz_code_annotation_t.type, rz_code_annotation_t::.type, rz_event_callback_handle_t.type, rz_event_meta_t.type, rz_json_t.type, rz_panel_model_t.type, SpcAttributeTypeAndOptionalValue.type, RzAsmToken.type, RzAsmTokenPattern.type, RzDetectedString.type, RzTableColumn.type, rz_heap_block.type, type_tbl_s.type, names.type, diff_context_t.type, ParserTypePair.type, TypeFormatPair.type, m68k_info.type, OperandSpecifier.type, capstone.Arm.OpShift.type, capstone.Arm.Operand.type, capstone.Arm64.OpShift.type, capstone.Arm64.Operand.type, capstone.M680x.Operand.type, capstone.Mips.Operand.type, capstone.Ppc.Operand.type, capstone.Sparc.Operand.type, capstone.Systemz.Operand.type, capstone.X86.Operand.type, capstone.Xcore.Operand.type, cs_arm_op.type, cs_arm64_op.type, cs_m680x_op.type, cs_m68k_op.type, m68k_op_size.type, cs_mips_op.type, cs_ppc_op.type, cs_sparc_op.type, cs_sysz_op.type, cs_tms320c64x_op.type, cs_x86_op.type, cs_xcore_op.type, demangle_component.type, demangle_component::.type, m_filename.type, uv_dirent_s.type, _zip_err_info.type, mpc_input_t.type, mpc_parser_t.type, ptrace_wrap_request_t.type, TSParseAction.type, gdbr_xml_flags_t.type, gdbr_xml_reg_t.type, W32DbgWParams.type, io_backend_t.type, _DmpCtx.type, TSQueryPredicateStep.type, and lzma_options_delta.type.

Member Data Documentation

◆ cd

◆ choices

cmd_descs_generate.Arg.choices

Definition at line 168 of file cmd_descs_generate.py.

Referenced by cmd_descs_generate.Arg.get_cstructure().

◆ choices_cb

cmd_descs_generate.Arg.choices_cb

◆ default_value

cmd_descs_generate.Arg.default_value

Definition at line 165 of file cmd_descs_generate.py.

Referenced by cmd_descs_generate.Arg.__str__().

◆ flags

cmd_descs_generate.Arg.flags

Definition at line 161 of file cmd_descs_generate.py.

Referenced by cmd_descs_generate.Arg.__str__().

◆ name

◆ no_space

cmd_descs_generate.Arg.no_space

Definition at line 163 of file cmd_descs_generate.py.

Referenced by cmd_descs_generate.Arg.__str__().

◆ optional

cmd_descs_generate.Arg.optional

Definition at line 162 of file cmd_descs_generate.py.

Referenced by cmd_descs_generate.Arg.__str__().

◆ type


The documentation for this class was generated from the following file: