Line 23... |
Line 23... |
#define LABELS_HASH_SIZE 119
|
#define LABELS_HASH_SIZE 119
|
|
|
/* Structure for holding one label per particular memory location */
|
/* Structure for holding one label per particular memory location */
|
struct label_entry {
|
struct label_entry {
|
char *name;
|
char *name;
|
unsigned long addr;
|
oraddr_t addr;
|
struct label_entry *next;
|
struct label_entry *next;
|
};
|
};
|
|
|
struct breakpoint_entry {
|
struct breakpoint_entry {
|
unsigned long addr;
|
oraddr_t addr;
|
struct breakpoint_entry *next;
|
struct breakpoint_entry *next;
|
};
|
};
|
|
|
/* Label handling */
|
/* Label handling */
|
void init_labels();
|
void init_labels();
|
void add_label (unsigned long addr, char *name);
|
void add_label (oraddr_t addr, char *name);
|
struct label_entry *get_label (unsigned long addr);
|
struct label_entry *get_label (oraddr_t addr);
|
struct label_entry *find_label (char *name);
|
struct label_entry *find_label (char *name);
|
|
|
/* Searches mem array for a particular label and returns label's address.
|
/* Searches mem array for a particular label and returns label's address.
|
If label does not exist, returns 0. */
|
If label does not exist, returns 0. */
|
unsigned long eval_label (char *name);
|
oraddr_t eval_label (char *name);
|
|
|
/* Breakpoint handling */
|
/* Breakpoint handling */
|
void breakpoints_init ();
|
void breakpoints_init ();
|
void add_breakpoint (unsigned long addr);
|
void add_breakpoint (oraddr_t addr);
|
void remove_breakpoint (unsigned long addr);
|
void remove_breakpoint (oraddr_t addr);
|
void print_breakpoints ();
|
void print_breakpoints ();
|
int has_breakpoint (unsigned long addr);
|
int has_breakpoint (oraddr_t addr);
|
void init_breakpoints ();
|
void init_breakpoints ();
|
|
|
extern struct breakpoint_entry *breakpoints;
|
extern struct breakpoint_entry *breakpoints;
|
#define CHECK_BREAKPOINTS (breakpoints)
|
#define CHECK_BREAKPOINTS (breakpoints)
|
|
|