From 39efb398a9e7bdd98f5f838ab2ea23e758bbddce Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 9 Sep 2003 03:14:02 +0000 Subject: [PATCH] 2003-09-08 Andrew Cagney * gnu-nat.c: Remove "inline" function attribute. * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto. --- gdb/ChangeLog | 5 +++++ gdb/alpha-tdep.c | 2 +- gdb/gnu-nat.c | 22 +++++++++++----------- gdb/macroexp.c | 4 ++-- gdb/ppc-linux-tdep.c | 2 +- 5 files changed, 20 insertions(+), 15 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7bb6fdd25d..adddd3c66e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-09-08 Andrew Cagney + + * gnu-nat.c: Remove "inline" function attribute. + * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto. + 2003-09-08 Kevin Buettner * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index d6e95ca6b8..df55bfbed3 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -189,7 +189,7 @@ alpha_lds (void *out, const void *in) /* Similarly, this represents exactly the conversion performed by the STS instruction. */ -static inline void +static void alpha_sts (void *out, const void *in) { ULONGEST reg, mem; diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 9b63616488..a75b16921d 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -98,12 +98,12 @@ void inf_validate_procs (struct inf *inf); void inf_steal_exc_ports (struct inf *inf); void inf_restore_exc_ports (struct inf *inf); struct proc *inf_tid_to_proc (struct inf *inf, int tid); -inline void inf_set_threads_resume_sc (struct inf *inf, - struct proc *run_thread, - int run_others); -inline int inf_set_threads_resume_sc_for_signal_thread (struct inf *inf); -inline void inf_suspend (struct inf *inf); -inline void inf_resume (struct inf *inf); +void inf_set_threads_resume_sc (struct inf *inf, + struct proc *run_thread, + int run_others); +int inf_set_threads_resume_sc_for_signal_thread (struct inf *inf); +void inf_suspend (struct inf *inf); +void inf_resume (struct inf *inf); void inf_set_step_thread (struct inf *inf, struct proc *proc); void inf_detach (struct inf *inf); void inf_attach (struct inf *inf, int pid); @@ -1077,7 +1077,7 @@ inf_validate_procs (struct inf *inf) /* Makes sure that INF's thread list is synced with the actual process. */ -inline int +int inf_update_procs (struct inf *inf) { if (!inf->task) @@ -1090,7 +1090,7 @@ inf_update_procs (struct inf *inf) /* Sets the resume_sc of each thread in inf. That of RUN_THREAD is set to 0, and others are set to their run_sc if RUN_OTHERS is true, and otherwise their pause_sc. */ -inline void +void inf_set_threads_resume_sc (struct inf *inf, struct proc *run_thread, int run_others) { @@ -1108,7 +1108,7 @@ inf_set_threads_resume_sc (struct inf *inf, /* Cause INF to continue execution immediately; individual threads may still be suspended (but their suspend counts will be updated). */ -inline void +void inf_resume (struct inf *inf) { struct proc *thread; @@ -1133,7 +1133,7 @@ inf_resume (struct inf *inf) /* Cause INF to stop execution immediately; individual threads may still be running. */ -inline void +void inf_suspend (struct inf *inf) { struct proc *thread; @@ -1179,7 +1179,7 @@ inf_set_step_thread (struct inf *inf, struct proc *thread) /* Set up the thread resume_sc's so that only the signal thread is running (plus whatever other thread are set to always run). Returns true if we did so, or false if we can't find a signal thread. */ -inline int +int inf_set_threads_resume_sc_for_signal_thread (struct inf *inf) { if (inf->signal_thread) diff --git a/gdb/macroexp.c b/gdb/macroexp.c index 992c466900..e39f81ac0b 100644 --- a/gdb/macroexp.c +++ b/gdb/macroexp.c @@ -145,7 +145,7 @@ resize_buffer (struct macro_buffer *b, int n) /* Append the character C to the buffer B. */ -static inline void +static void appendc (struct macro_buffer *b, int c) { int new_len = b->len + 1; @@ -159,7 +159,7 @@ appendc (struct macro_buffer *b, int c) /* Append the LEN bytes at ADDR to the buffer B. */ -static inline void +static void appendmem (struct macro_buffer *b, char *addr, int len) { int new_len = b->len + len; diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 5c8f695d0f..3134132345 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -188,7 +188,7 @@ ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name) return (pc == handler || pc == handler + 4); } -static inline int +static int insn_is_sigreturn (unsigned long pcinsn) { switch(pcinsn) -- 2.34.1