Fix a build failure on pa-hpux:

* gdb_ptrace.h (PT_SYSCALL): Define here if not already defined.
        * inf-ttrace.c (inf_ttrace_wait): Fix compilation failure
        introduced after field syscall_id inside struct target_waitstatus
        has been renamed into syscall_number.
This commit is contained in:
Joel Brobecker
2009-09-17 19:19:59 +00:00
parent ec7e75e760
commit 01dedca21d
3 changed files with 21 additions and 2 deletions

View File

@@ -1104,7 +1104,7 @@ inf_ttrace_wait (struct target_ops *ops,
inf_ttrace_disable_page_protections (tts.tts_pid);
}
ourstatus->kind = TARGET_WAITKIND_SYSCALL_ENTRY;
ourstatus->value.syscall_id = tts.tts_scno;
ourstatus->value.syscall_number = tts.tts_scno;
break;
case TTEVT_SYSCALL_RETURN:
@@ -1119,7 +1119,7 @@ inf_ttrace_wait (struct target_ops *ops,
inf_ttrace_num_lwps_in_syscall--;
}
ourstatus->kind = TARGET_WAITKIND_SYSCALL_RETURN;
ourstatus->value.syscall_id = tts.tts_scno;
ourstatus->value.syscall_number = tts.tts_scno;
break;
default: