aboutsummaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-05-30 11:08:39 -0400
committerPetr Machata <pmachata@redhat.com>2012-08-29 19:03:18 +0200
commit4d4e1b853db0c97b7c7f023bc301e3c3eee58ce4 (patch)
treef851d5aa8f1f2ea32210f86f9c65226e9570aaef /proc.c
parent82b1977bfdc0c31be26454257db28a1cb497fbf2 (diff)
downloadltrace-4d4e1b853db0c97b7c7f023bc301e3c3eee58ce4.tar.gz
Track elf class in struct Process
Technically only s390 needs this at the moment, but it seems general enough that it should be alongside the e_machine flag. Eventually it is desirable to replace both fields with either a backend-provided ABI enum, or with an ABI object that would implement the interesting back end calls.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index b280df8..bf26180 100644
--- a/proc.c
+++ b/proc.c
@@ -270,6 +270,7 @@ process_clone(struct Process *retp, struct Process *proc, pid_t pid)
retp->tracesysgood = proc->tracesysgood;
retp->e_machine = proc->e_machine;
+ retp->e_class = proc->e_class;
/* For non-leader processes, that's all we need to do. */
if (retp->leader != retp)