~ubuntu-branches/ubuntu/saucy/radare/saucy

« back to all changes in this revision

Viewing changes to src/print.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Reichel
  • Date: 2009-05-22 19:01:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090522190100-qqp4aja112976t5v
Tags: 20090522-1
* new hg checkout
 - added 'cX' command to compare like 'cc' does but using two side hexdiff dump format
 - specify pointer & data size in pm with %<size>
 - add graph.weight
 - fix 'c' command (missing radare_read(0))
 - added /P search command that searchs for proximity in bytelevel distance
 - added more 'ag' and 'gu' commands to readline autocompletion.
 - fix build of debugger for non-linux systems
 - fixed code analysis at startup
 - more work in graphs (graph.split)
 - fixups in x86 code analysis

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define _INCLUDE_PRINT_H_
3
3
 
4
4
#include "types.h"
 
5
#include "list.h"
5
6
 
6
7
#define PRINT_BIN(x) D cons_printf("%d%d%d%d%d%d%d%d  ",\
7
8
(x&128)?1:0, (x&64)?1:0, (x&32)?1:0, (x&16)?1:0,\
23
24
        FMT_HEXBS,FMT_REGEXP, FMT_SHORT, FMT_VISUAL,FMT_ASHC,      FMT_DISAS, FMT_UDIS,
24
25
        FMT_PRINT, FMT_ASCP,  FMT_ASC0,  FMT_WASC0, FMT_DBG,       FMT_ANAL, FMT_CODE,
25
26
        FMT_CODEGRAPH, FMT_ZOOM, FMT_USER, FMT_LSB, FMT_MEMORY,    FMT_PERCENT, FMT_REF,
26
 
        FMT_7BIT, FMT_87BIT,  FMT_DOUBLE
 
27
        FMT_7BIT, FMT_87BIT,  FMT_DOUBLE, FMT_BASE64, FMT_EBASE64
27
28
} print_fmt_t;
28
29
 
29
30
#include "cons.h"
45
46
        char *sizeb;
46
47
} format_info_t;
47
48
 
 
49
typedef struct {
 
50
        char *name;
 
51
        char *fmt;
 
52
        struct list_head list;
 
53
} print_mem_t;
 
54
extern struct list_head print_mems;
 
55
 
48
56
extern format_info_t formats[];
49
57
extern print_fmt_t last_print_format;
50
58
print_fmt_t format_get (char fmt);
54
62
void print_color_byte_i(int i, char *str, int c);
55
63
void radare_dump_and_process(int type, int size);
56
64
void print_zoom(u64 from, u64 to, char *byte, int enable);
 
65
void print_mem(u64 addr, const u8 *buf, u64 len, const char *fmt, int endian);
57
66
 
58
67
#endif