* Makefile.in (SFILES): Add common/target-common.c. Add common/target-common.h to headers. (COMMON_OBS): Add target-common.o. (target-common.o): New target. * linux-nat.h (resume_kind): Move to common/target-common.h. * target.c (target_waitstatus_to_string): Move to common/target-common.c. * target.h: Include target-common.h. (target_waitkind): Move to common/target-common.h. (target_waitstatus): Likewise. (TARGET_WNOHANG): Likewise. * common/target-common.c: New file. * common/target-common.h: New file. gdb/gdbserver/ * Makefile.in (SFILES): /common/target-common.c. (OBS): Add target-common.o. (server_h): Add $(srcdir)/../common/target-common.h. (target-common.o): New target. * server.c (queue_stop_reply_callback): Free status string after use. * target.c (target_waitstatus_to_string): Remove. * target.h: Include target-common.h. (resume_kind): Likewise. (target_waitkind): Likewise. (target_waitstatus): Likewise. (TARGET_WNOHANG): Likewise. |
||
|---|---|---|
| .. | ||
| agent.c | ||
| agent.h | ||
| ax.def | ||
| btrace-common.h | ||
| buffer.c | ||
| buffer.h | ||
| common-utils.c | ||
| common-utils.h | ||
| create-version.sh | ||
| filestuff.c | ||
| filestuff.h | ||
| format.c | ||
| format.h | ||
| gdb_assert.h | ||
| gdb_dirent.h | ||
| gdb_locale.h | ||
| gdb_signals.h | ||
| gdb_stat.h | ||
| gdb_string.h | ||
| gdb_thread_db.h | ||
| gdb_vecs.c | ||
| gdb_vecs.h | ||
| gdb_wait.h | ||
| glibc_thread_db.h | ||
| host-defs.h | ||
| i386-cpuid.h | ||
| i386-gcc-cpuid.h | ||
| i386-xstate.h | ||
| linux-btrace.c | ||
| linux-btrace.h | ||
| linux-osdata.c | ||
| linux-osdata.h | ||
| linux-procfs.c | ||
| linux-procfs.h | ||
| linux-ptrace.c | ||
| linux-ptrace.h | ||
| ptid.c | ||
| ptid.h | ||
| queue.h | ||
| signals.c | ||
| target-common.c | ||
| target-common.h | ||
| vec.c | ||
| vec.h | ||
| version.h | ||
| xml-utils.c | ||
| xml-utils.h | ||