Rizin
unix-like reverse engineering framework and cli tools
cmd_regs_meta.inc
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 Florian Märkl <info@florianmaerkl.de>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
14 #define HANDLER__(prefix, name) rz_##prefix##_##name##_handler
15 #define HANDLER_(prefix, name) HANDLER__(prefix, name)
16 #define HANDLER(name) HANDLER_(CMD_REGS_PREFIX, name)
17 
18 RZ_IPI RzCmdStatus HANDLER(regs)(RzCore *core, int argc, const char **argv, RzCmdStateOutput *state) {
19  return rz_regs_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv, state);
20 }
21 
22 RZ_IPI RzCmdStatus HANDLER(regs_columns)(RzCore *core, int argc, const char **argv) {
23  return rz_regs_columns_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
24 }
25 
26 RZ_IPI RzCmdStatus HANDLER(regs_references)(RzCore *core, int argc, const char **argv, RzOutputMode mode) {
27  return rz_regs_references_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv, mode);
28 }
29 
30 RZ_IPI RzCmdStatus HANDLER(regs_valgroup)(RzCore *core, int argc, const char **argv) {
31  return rz_regs_valgroup_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
32 }
33 
34 RZ_IPI RzCmdStatus HANDLER(reg_arenas)(RzCore *core, int argc, const char **argv) {
35  return rz_reg_arenas_handler(core, core->CMD_REGS_REG_PATH, argc, argv);
36 }
37 
38 RZ_IPI RzCmdStatus HANDLER(reg_arenas_push)(RzCore *core, int argc, const char **argv) {
39  return rz_reg_arenas_push_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
40 }
41 
42 RZ_IPI RzCmdStatus HANDLER(reg_arenas_pop)(RzCore *core, int argc, const char **argv) {
43  return rz_reg_arenas_pop_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
44 }
45 
46 RZ_IPI RzCmdStatus HANDLER(reg_arenas_swap)(RzCore *core, int argc, const char **argv) {
47  return rz_reg_arenas_swap_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
48 }
49 
50 RZ_IPI RzCmdStatus HANDLER(reg_arenas_zero)(RzCore *core, int argc, const char **argv) {
51  return rz_reg_arenas_zero_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
52 }
53 
54 RZ_IPI RzCmdStatus HANDLER(reg_arenas_hexdump)(RzCore *core, int argc, const char **argv) {
55  return rz_reg_arenas_hexdump_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
56 }
57 
58 RZ_IPI RzCmdStatus HANDLER(reg_arenas_stack_size)(RzCore *core, int argc, const char **argv) {
59  return rz_reg_arenas_stack_size_handler(core, core->CMD_REGS_REG_PATH, argc, argv);
60 }
61 
62 RZ_IPI RzCmdStatus HANDLER(reg_arenas_write_hex)(RzCore *core, int argc, const char **argv) {
63  return rz_reg_arenas_write_hex_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
64 }
65 
66 RZ_IPI RzCmdStatus HANDLER(regs_args)(RzCore *core, int argc, const char **argv, RzOutputMode mode) {
67  return rz_regs_args_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv, mode);
68 }
69 
70 RZ_IPI RzCmdStatus HANDLER(reg_types)(RzCore *core, int argc, const char **argv) {
71  return rz_reg_types_handler(core, core->CMD_REGS_REG_PATH, argc, argv);
72 }
73 
74 RZ_IPI RzCmdStatus HANDLER(reg_roles)(RzCore *core, int argc, const char **argv) {
75  return rz_reg_roles_handler(core, core->CMD_REGS_REG_PATH, argc, argv);
76 }
77 
78 RZ_IPI RzCmdStatus HANDLER(reg_flags)(RzCore *core, int argc, const char **argv) {
79  return rz_reg_flags_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv, false);
80 }
81 
82 RZ_IPI RzCmdStatus HANDLER(reg_flags_unset)(RzCore *core, int argc, const char **argv) {
83  return rz_reg_flags_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv, true);
84 }
85 
86 RZ_IPI RzCmdStatus HANDLER(reg_profile)(RzCore *core, int argc, const char **argv, RzCmdStateOutput *state) {
87  return rz_reg_profile_handler(core, core->CMD_REGS_REG_PATH, argc, argv, state);
88 }
89 
90 RZ_IPI RzCmdStatus HANDLER(reg_profile_comments)(RzCore *core, int argc, const char **argv) {
91  return rz_reg_profile_comments_handler(core, core->CMD_REGS_REG_PATH, argc, argv);
92 }
93 
94 RZ_IPI RzCmdStatus HANDLER(reg_profile_open)(RzCore *core, int argc, const char **argv) {
95  return rz_reg_profile_open_handler(core, core->CMD_REGS_REG_PATH, argc, argv);
96 }
97 
98 RZ_IPI RzCmdStatus HANDLER(reg_profile_gdb)(RzCore *core, int argc, const char **argv) {
99  return rz_reg_profile_gdb_handler(core, core->CMD_REGS_REG_PATH, argc, argv);
100 }
101 
102 RZ_IPI RzCmdStatus HANDLER(reg_cond)(RzCore *core, int argc, const char **argv) {
103  return rz_reg_cond_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
104 }
105 
106 RZ_IPI RzCmdStatus HANDLER(reg_cc)(RzCore *core, int argc, const char **argv) {
107  return rz_reg_cc_handler(core, core->CMD_REGS_REG_PATH, argc, argv);
108 }
109 
110 RZ_IPI RzCmdStatus HANDLER(regs_diff)(RzCore *core, int argc, const char **argv) {
111  return rz_regs_diff_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
112 }
113 
114 RZ_IPI RzCmdStatus HANDLER(regs_prev)(RzCore *core, int argc, const char **argv, RzCmdStateOutput *state) {
115  return rz_regs_prev_handler(core, core->CMD_REGS_REG_PATH, argc, argv, state);
116 }
117 
118 RZ_IPI RzCmdStatus HANDLER(regs_fpu)(RzCore *core, int argc, const char **argv) {
119  return rz_regs_fpu_handler(core, core->CMD_REGS_REG_PATH, CMD_REGS_SYNC, argc, argv);
120 }
121 
122 #undef HANDLER
123 #undef HANDLER_
124 #undef HANDLER__
static char * regs[]
Definition: analysis_sh.c:203
#define RZ_IPI
Definition: analysis_wasm.c:11
#define CMD_REGS_SYNC
RZ_IPI RzCmdStatus rz_reg_profile_comments_handler(RzCore *core, RzReg *reg, int argc, const char **argv)
Definition: cmd_regs.c:749
RZ_IPI RzCmdStatus rz_reg_cond_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:776
RZ_IPI RzCmdStatus rz_reg_arenas_zero_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:529
RZ_IPI RzCmdStatus rz_regs_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv, RzCmdStateOutput *state)
Definition: cmd_regs.c:283
RZ_IPI RzCmdStatus rz_reg_profile_gdb_handler(RzCore *core, RzReg *reg, int argc, const char **argv)
Definition: cmd_regs.c:762
RZ_IPI RzCmdStatus rz_reg_roles_handler(RzCore *core, RzReg *reg, int argc, const char **argv)
Definition: cmd_regs.c:647
RZ_IPI RzCmdStatus rz_reg_types_handler(RzCore *core, RzReg *reg, int argc, const char **argv)
Definition: cmd_regs.c:640
RZ_IPI RzCmdStatus rz_regs_fpu_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:824
RZ_IPI RzCmdStatus rz_regs_args_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv, RzOutputMode mode)
Definition: cmd_regs.c:614
RZ_IPI RzCmdStatus rz_reg_arenas_hexdump_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:544
RZ_IPI RzCmdStatus rz_regs_columns_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:298
RZ_IPI RzCmdStatus rz_regs_valgroup_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:471
RZ_IPI RzCmdStatus rz_reg_arenas_push_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:500
RZ_IPI RzCmdStatus rz_reg_arenas_swap_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:518
RZ_IPI RzCmdStatus rz_regs_diff_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:806
RZ_IPI RzCmdStatus rz_reg_arenas_write_hex_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:572
RZ_IPI RzCmdStatus rz_reg_arenas_handler(RzCore *core, RzReg *reg, int argc, const char **argv)
Definition: cmd_regs.c:483
RZ_IPI RzCmdStatus rz_regs_prev_handler(RzCore *core, RzReg *reg, int argc, const char **argv, RzCmdStateOutput *state)
Definition: cmd_regs.c:816
RZ_IPI RzCmdStatus rz_regs_references_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv, RzOutputMode mode)
Definition: cmd_regs.c:392
RZ_IPI RzCmdStatus rz_reg_arenas_pop_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv)
Definition: cmd_regs.c:511
RZ_IPI RzCmdStatus rz_reg_profile_handler(RzCore *core, RzReg *reg, int argc, const char **argv, RzCmdStateOutput *state)
Definition: cmd_regs.c:699
RZ_IPI RzCmdStatus rz_reg_cc_handler(RzCore *core, RzReg *reg, int argc, const char **argv)
Definition: cmd_regs.c:797
RZ_IPI RzCmdStatus rz_reg_arenas_stack_size_handler(RzCore *core, RzReg *reg, int argc, const char **argv)
Definition: cmd_regs.c:567
RZ_IPI RzCmdStatus rz_reg_profile_open_handler(RzCore *core, RzReg *reg, int argc, const char **argv)
Definition: cmd_regs.c:756
RZ_IPI RzCmdStatus rz_reg_flags_handler(RzCore *core, RzReg *reg, RzCmdRegSync sync_cb, int argc, const char **argv, bool unset)
Definition: cmd_regs.c:658
const char int mode
Definition: ioapi.h:137
static static fork const void static count static fd const char const char static newpath char char argv
Definition: sflib.h:40
enum rz_cmd_status_t RzCmdStatus
RzOutputMode
Enum to describe the way data are printed.
Definition: rz_types.h:38
Represent the output state of a command handler.
Definition: rz_cmd.h:91
Definition: dis.h:43