Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5496 | leency | 1 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
2 | #ifndef __dj_include_debug_v2load_h_ |
||
3 | #define __dj_include_debug_v2load_h_ |
||
4 | |||
5 | #ifdef __cplusplus |
||
6 | extern "C" { |
||
7 | #endif |
||
8 | |||
9 | #ifndef __dj_ENFORCE_ANSI_FREESTANDING |
||
10 | |||
11 | #ifndef __STRICT_ANSI__ |
||
12 | |||
13 | #ifndef _POSIX_SOURCE |
||
14 | |||
15 | #include |
||
16 | |||
17 | typedef struct { |
||
18 | unsigned first_addr; |
||
19 | unsigned last_addr; |
||
20 | } AREAS; |
||
21 | |||
22 | typedef enum { |
||
23 | A_text, |
||
24 | A_data, |
||
25 | A_bss, |
||
26 | A_arena, |
||
27 | A_stack |
||
28 | } AREA_TYPES; |
||
29 | |||
30 | #define areas _v2load_areas |
||
31 | #define MAX_AREA 5 |
||
32 | |||
33 | extern AREAS areas[MAX_AREA]; |
||
34 | |||
35 | int v2loadimage(const char *program, const char *cmdline, jmp_buf load_state); |
||
36 | |||
37 | #endif /* !_POSIX_SOURCE */ |
||
38 | #endif /* !__STRICT_ANSI__ */ |
||
39 | #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ |
||
40 | |||
41 | #ifndef __dj_ENFORCE_FUNCTION_CALLS |
||
42 | #endif /* !__dj_ENFORCE_FUNCTION_CALLS */ |
||
43 | |||
44 | #ifdef __cplusplus |
||
45 | } |
||
46 | #endif |
||
47 | |||
48 | #endif /* !__dj_include_debug_v2load_h_ */ |