diff options
author | Pedro Alves <palves@redhat.com> | 2012-05-24 17:03:28 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-05-24 17:03:28 +0000 |
commit | 22203bbfb7c46db2901fa8a10d604bfc38dabfc7 (patch) | |
tree | d20b1f8775341e054750ffb49eae4fdc1c93f0ca /gdb/gdbarch.c | |
parent | a493e3e2e429e4832b8620bd920ad07d0c2892d7 (diff) | |
download | gdb-22203bbfb7c46db2901fa8a10d604bfc38dabfc7.zip gdb-22203bbfb7c46db2901fa8a10d604bfc38dabfc7.tar.gz gdb-22203bbfb7c46db2901fa8a10d604bfc38dabfc7.tar.bz2 |
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
* arch-utils.c (default_gdb_signal_to_host): Rename to ...
(default_gdb_signal_to_target): ... this. Add comment.
(default_gdb_signal_from_host): Rename to ...
(default_gdb_signal_from_target): ... this. Add comment.
* arch-utils.h (default_gdb_signal_to_host): Rename to ...
(default_gdb_signal_to_target): ... this.
(default_gdb_signal_from_host): Rename to ...
(default_gdb_signal_from_target): ... this.
* corelow.c (core_open): Adjust to naming change. Replace comment.
* gdbarch.sh (gdb_signal_from_host): Rename to ...
(gdb_signal_from_target): ... this. Adjust to
default_gdb_signal_from_host naming change. Extend comment.
(gdb_signal_to_host): Rename to ...
(gdb_signal_to_target): ... this. Adjust to
default_gdb_signal_to_host naming change.
* gdbarch.h, gdbarch.c: Renegerate.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 1287485..3ebe835 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -260,7 +260,7 @@ struct gdbarch int sofun_address_maybe_missing; gdbarch_process_record_ftype *process_record; gdbarch_process_record_signal_ftype *process_record_signal; - gdbarch_gdb_signal_from_host_ftype *gdb_signal_from_host; + gdbarch_gdb_signal_from_target_ftype *gdb_signal_from_target; gdbarch_get_siginfo_type_ftype *get_siginfo_type; gdbarch_record_special_symbol_ftype *record_special_symbol; gdbarch_get_syscall_number_ftype *get_syscall_number; @@ -427,7 +427,7 @@ struct gdbarch startup_gdbarch = 0, /* sofun_address_maybe_missing */ 0, /* process_record */ 0, /* process_record_signal */ - default_gdb_signal_from_host, /* gdb_signal_from_host */ + default_gdb_signal_from_target, /* gdb_signal_from_target */ 0, /* get_siginfo_type */ 0, /* record_special_symbol */ 0, /* get_syscall_number */ @@ -536,7 +536,7 @@ gdbarch_alloc (const struct gdbarch_info *info, gdbarch->displaced_step_free_closure = NULL; gdbarch->displaced_step_location = NULL; gdbarch->relocate_instruction = NULL; - gdbarch->gdb_signal_from_host = default_gdb_signal_from_host; + gdbarch->gdb_signal_from_target = default_gdb_signal_from_target; gdbarch->has_shared_address_space = default_has_shared_address_space; gdbarch->fast_tracepoint_valid_at = default_fast_tracepoint_valid_at; gdbarch->auto_charset = default_auto_charset; @@ -727,7 +727,7 @@ verify_gdbarch (struct gdbarch *gdbarch) /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */ /* Skip verify of process_record, has predicate. */ /* Skip verify of process_record_signal, has predicate. */ - /* Skip verify of gdb_signal_from_host, invalid_p == 0 */ + /* Skip verify of gdb_signal_from_target, invalid_p == 0 */ /* Skip verify of get_siginfo_type, has predicate. */ /* Skip verify of record_special_symbol, has predicate. */ /* Skip verify of get_syscall_number, has predicate. */ @@ -996,8 +996,8 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: gcore_bfd_target = %s\n", pstring (gdbarch->gcore_bfd_target)); fprintf_unfiltered (file, - "gdbarch_dump: gdb_signal_from_host = <%s>\n", - host_address_to_string (gdbarch->gdb_signal_from_host)); + "gdbarch_dump: gdb_signal_from_target = <%s>\n", + host_address_to_string (gdbarch->gdb_signal_from_target)); fprintf_unfiltered (file, "gdbarch_dump: gen_return_address = <%s>\n", host_address_to_string (gdbarch->gen_return_address)); @@ -3788,20 +3788,20 @@ set_gdbarch_process_record_signal (struct gdbarch *gdbarch, } enum gdb_signal -gdbarch_gdb_signal_from_host (struct gdbarch *gdbarch, int signo) +gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch, int signo) { gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->gdb_signal_from_host != NULL); + gdb_assert (gdbarch->gdb_signal_from_target != NULL); if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_gdb_signal_from_host called\n"); - return gdbarch->gdb_signal_from_host (gdbarch, signo); + fprintf_unfiltered (gdb_stdlog, "gdbarch_gdb_signal_from_target called\n"); + return gdbarch->gdb_signal_from_target (gdbarch, signo); } void -set_gdbarch_gdb_signal_from_host (struct gdbarch *gdbarch, - gdbarch_gdb_signal_from_host_ftype gdb_signal_from_host) +set_gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch, + gdbarch_gdb_signal_from_target_ftype gdb_signal_from_target) { - gdbarch->gdb_signal_from_host = gdb_signal_from_host; + gdbarch->gdb_signal_from_target = gdb_signal_from_target; } int |