Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2011-03-30 18:50:39 +0000
committereutarass2011-03-30 18:50:39 +0000
commitb626eba6c9dadace28b6376a5b8b53b5fc7ed900 (patch)
tree13553f278dfe0dda8fd6727f066cedb3f601c234 /services/tcf_elf.h
parent989d3ae1dcf88d128d12366291dfe85ee948360f (diff)
downloadorg.eclipse.tcf.agent-b626eba6c9dadace28b6376a5b8b53b5fc7ed900.tar.gz
org.eclipse.tcf.agent-b626eba6c9dadace28b6376a5b8b53b5fc7ed900.tar.xz
org.eclipse.tcf.agent-b626eba6c9dadace28b6376a5b8b53b5fc7ed900.zip
TCF Agent:
1. added support for debugging a code running in compatibility mode, like 32-bit code on 64-bit CPU. 2. fixed: register variable values are always returned as 8 bytes regardless of actual size. 3. improved text for some error messages. 4. added support for big-endian values in expression evaluator.
Diffstat (limited to 'services/tcf_elf.h')
-rw-r--r--services/tcf_elf.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/services/tcf_elf.h b/services/tcf_elf.h
index 521b95de..04f3e24b 100644
--- a/services/tcf_elf.h
+++ b/services/tcf_elf.h
@@ -335,6 +335,16 @@ typedef struct {
#endif
+#ifndef EM_X86_64
+#define EM_X86_64 62
+#endif
+#ifndef EM_PPC
+#define EM_PPC 20
+#endif
+#ifndef EM_PPC64
+#define EM_PPC64 21
+#endif
+
typedef struct ElfX_Sym {
union {
Elf32_Sym Elf32;
@@ -367,11 +377,12 @@ struct ELF_File {
ErrorReport * error;
int fd;
- int big_endian; /* 0 - least significant first, 1 - most significat first */
- int byte_swap; /* > 0 if file endianness not same as the agent endianness */
- int elf64;
- int type;
- int machine;
+ uint8_t big_endian; /* 0 - least significant first, 1 - most significat first */
+ uint8_t byte_swap; /* > 0 if file endianness not same as the agent endianness */
+ uint8_t elf64;
+ uint16_t type;
+ uint16_t machine;
+ uint8_t os_abi;
unsigned section_cnt;
ELF_Section * sections;

Back to the top