aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 252a75d..8a1fdc6 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -93,6 +93,8 @@ struct entry_info
CORE_ADDR entry_point;
+#define INVALID_ENTRY_POINT (~0) /* ~0 will not be in any file, we hope. */
+
/* Start (inclusive) and end (exclusive) of function containing the
entry point. */
@@ -110,6 +112,15 @@ struct entry_info
CORE_ADDR main_func_lowpc;
CORE_ADDR main_func_highpc;
+/* Use these values when any of the above ranges is invalid. */
+
+/* We use these values because it guarantees that there is no number that is
+ both >= LOWPC && < HIGHPC. It is also highly unlikely that 3 is a valid
+ module or function start address (as opposed to 0). */
+
+#define INVALID_ENTRY_LOWPC (3)
+#define INVALID_ENTRY_HIGHPC (1)
+
};