diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-08-02 23:48:37 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-08-02 23:48:37 +0000 |
commit | a0b3c4fd32cf8336bf7b69f373ef86d5c54035f6 (patch) | |
tree | cf8f31bccdd267252e6b3c9636a1d323397673e2 /gdb/infttrace.c | |
parent | 30727aa6d12fb866494020c0b62ab265a2bdcdfe (diff) | |
download | gdb-a0b3c4fd32cf8336bf7b69f373ef86d5c54035f6.zip gdb-a0b3c4fd32cf8336bf7b69f373ef86d5c54035f6.tar.gz gdb-a0b3c4fd32cf8336bf7b69f373ef86d5c54035f6.tar.bz2 |
import gdb-1999-08-02 snapshot
Diffstat (limited to 'gdb/infttrace.c')
-rw-r--r-- | gdb/infttrace.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gdb/infttrace.c b/gdb/infttrace.c index dae4ad4..c76c5132 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -1403,13 +1403,12 @@ get_process_first_stopped_thread_id (pid, thread_state) { int tt_status; - tt_status = call_real_ttrace ( - TT_PROC_GET_FIRST_LWP_STATE, - (pid_t) pid, - (lwpid_t) TT_NIL, - (TTRACE_ARG_TYPE) thread_state, - (TTRACE_ARG_TYPE) sizeof (*thread_state), - TT_NIL); + tt_status = call_real_ttrace (TT_PROC_GET_FIRST_LWP_STATE, + (pid_t) pid, + (lwpid_t) TT_NIL, + (TTRACE_ARG_TYPE) thread_state, + (TTRACE_ARG_TYPE) sizeof (*thread_state), + TT_NIL); if (errno) { @@ -4330,7 +4329,7 @@ thread_fake_step (tid, signal) p = find_thread_info (tid); if (p != NULL) { - if (p->have_signal && signal == NULL) + if (p->have_signal && signal == TARGET_SIGNAL_0) { /* Pass on a saved signal. */ @@ -5875,6 +5874,11 @@ _initialize_infttrace () errno = 0; memory_page_dictionary.page_size = sysconf (_SC_PAGE_SIZE); + /* We do a lot of casts from pointers to TTRACE_ARG_TYPE; make sure + this is okay. */ + if (sizeof (TTRACE_ARG_TYPE) < sizeof (void *)) + abort (); + if (errno || (memory_page_dictionary.page_size <= 0)) perror_with_name ("sysconf"); } |