* Move binrz meson directives to binrz/ dir * Move rizin-shell-parser to a subproject * Move bochs to a meson subproject * Move rzqnx to meson subproject * Move winkd to a meson subproject * Move rzar to a meson subproject * Move rzw32dbg_wrap to a meson subproject * Move ptrace-wrap to a meson subproject * Move rzgdb to a meson subproject * Rename w32dbg_wrap to rzw32dbg_wrap * Update CODEOWNERS * Remove old references to shlr * Move shlr/heap stuff in core and remove shlr/arm * Move spp to a meson subproject * Remove last references to shlr * Remove use_webui option * Move include files directives to librz/include/meson.build * Move librz meson directives into librz/meson.build * Handle d/ directories inside the specific module meson.build * Move plugins listing to specific module meson.build * Move rzheap to its own subproject * Fix js linter and licenses * Use meson.override_dependency for all rz_ modules
38 lines
936 B
C
38 lines
936 B
C
// SPDX-FileCopyrightText: 2016 madprogrammer
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
/*! \file */
|
|
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include "libqnxr.h"
|
|
#include "gdb_signals.h"
|
|
|
|
#define LONGEST st64
|
|
#define ULONGEST ut64
|
|
|
|
#ifndef ARRAY_SIZE
|
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
|
#endif
|
|
|
|
#define EXTRACT_SIGNED_INTEGER(addr, len) \
|
|
extract_signed_integer((const ut8 *)addr, len, 0)
|
|
#define EXTRACT_UNSIGNED_INTEGER(addr, len) \
|
|
extract_unsigned_integer((const ut8 *)addr, len, 0)
|
|
|
|
int errnoconvert(int x);
|
|
|
|
enum target_signal target_signal_from_nto(int sig);
|
|
|
|
LONGEST extract_signed_integer(const ut8 *addr, int len, int be);
|
|
ULONGEST extract_unsigned_integer(const ut8 *addr, int len, int be);
|
|
|
|
int i386nto_regset_id(int regno);
|
|
int i386nto_reg_offset(int regnum);
|
|
int i386nto_register_area(int regno, int regset, unsigned *off);
|
|
|
|
ptid_t ptid_build(st32 pid, st64 tid);
|
|
|
|
#endif
|