Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2010-04-29 18:58:38 +0000
committereutarass2010-04-29 18:58:38 +0000
commit2f58bad2965ca3e781516503ed398a8c534c9452 (patch)
tree17983e539de12927a06107364cffab3f1e82fcb0 /system/GNU/Linux/context-linux.c
parent691dc9fa4510488517a504170d9a2f2264759f13 (diff)
downloadorg.eclipse.tcf.agent-2f58bad2965ca3e781516503ed398a8c534c9452.tar.gz
org.eclipse.tcf.agent-2f58bad2965ca3e781516503ed398a8c534c9452.tar.xz
org.eclipse.tcf.agent-2f58bad2965ca3e781516503ed398a8c534c9452.zip
TCF Agent:
1. stepping_over_bp moved from context.h into breakpoints service private data 2. fixed: symbols service should reload symbol information when object file modification time changes. 3. fixed: sometimes run control service reports wrong context suspend reason when debugging with TCF symbols server
Diffstat (limited to 'system/GNU/Linux/context-linux.c')
-rw-r--r--system/GNU/Linux/context-linux.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/system/GNU/Linux/context-linux.c b/system/GNU/Linux/context-linux.c
index aa0e181e..83150587 100644
--- a/system/GNU/Linux/context-linux.c
+++ b/system/GNU/Linux/context-linux.c
@@ -67,24 +67,18 @@
#define USE_ESRCH_WORKAROUND 1
#define USE_PTRACE_SYSCALL 0
+static const int PTRACE_FLAGS =
#if USE_PTRACE_SYSCALL
-# define PTRACE_FLAGS ( \
- PTRACE_O_TRACESYSGOOD | \
- PTRACE_O_TRACEFORK | \
- PTRACE_O_TRACEVFORK | \
- PTRACE_O_TRACECLONE | \
- PTRACE_O_TRACEEXEC | \
- PTRACE_O_TRACEVFORKDONE | \
- PTRACE_O_TRACEEXIT)
-#else
-# define PTRACE_FLAGS ( \
- PTRACE_O_TRACEFORK | \
- PTRACE_O_TRACEVFORK | \
- PTRACE_O_TRACECLONE | \
- PTRACE_O_TRACEEXEC | \
- PTRACE_O_TRACEVFORKDONE | \
- PTRACE_O_TRACEEXIT)
+ PTRACE_O_TRACESYSGOOD |
#endif
+ PTRACE_O_TRACEFORK |
+ PTRACE_O_TRACEVFORK |
+ PTRACE_O_TRACECLONE |
+ PTRACE_O_TRACEEXEC |
+ PTRACE_O_TRACEVFORKDONE |
+ PTRACE_O_TRACEEXIT;
+
+/* TODO: when inferior forks, the new process inherits breakpoints - need to account for that in BP service */
typedef struct ContextExtension {
ContextAttachCallBack * attach_callback;

Back to the top