diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:44:23 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:44:23 +0000 |
commit | a97b0ac8cf1c8a5148d8c79908a0ef9378891e31 (patch) | |
tree | e6cb06d4368752a06a3b14a3e1645b05e493cf6d /gdb/ada-tasks.c | |
parent | d80b854b33baf5ebc3940cd5928dc06c8708750d (diff) | |
download | gdb-a97b0ac8cf1c8a5148d8c79908a0ef9378891e31.zip gdb-a97b0ac8cf1c8a5148d8c79908a0ef9378891e31.tar.gz gdb-a97b0ac8cf1c8a5148d8c79908a0ef9378891e31.tar.bz2 |
* ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead
of current_gdbarch.
* aix-thread.c (pd_enable): Likewise.
* amd64-linux-nat.c (ps_get_thread_area): Likewise.
* bsd-uthread.c (bsd_uthread_activate): Likewise.
* linux-nat.c (linux_nat_info_proc_cmd): Likewise.
* linux-thread-db.c (enable_thread_event): Likewise.
* monitor.c (monitor_write_memory, monitor_read_memory): Likewise.
* nto-procfs.c (procfs_open): Likewise.
* procfs.c (invalidate_cache, procfs_insert_watchpoint,
info_proc_mappings, info_mappings_callback): Likewise.
* record.c (record_open): Likewise.
* rs6000-nat.c (ARCH64): Likewise.
* solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
(darwin_bfd_open): Likewise.
* memattr.c (mem_info_command): Likewise.
* windows-nat.c (win32_resume): Use current regcache architecture
instead of current_gdbarch.
* dbug-rom.c (dbug_regname): Remove check against number of
registers in current_gdbarch.
* solib-pa64.c (read_dynamic_info): Remove unused variable.
Diffstat (limited to 'gdb/ada-tasks.c')
-rw-r--r-- | gdb/ada-tasks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index c0d2ed5..34a289a 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -609,7 +609,7 @@ static int read_known_tasks_array (void) { const int target_ptr_byte = - gdbarch_ptr_bit (current_gdbarch) / TARGET_CHAR_BIT; + gdbarch_ptr_bit (target_gdbarch) / TARGET_CHAR_BIT; const CORE_ADDR known_tasks_addr = get_known_tasks_addr (); const int known_tasks_size = target_ptr_byte * MAX_NUMBER_OF_KNOWN_TASKS; gdb_byte *known_tasks = alloca (known_tasks_size); @@ -632,7 +632,7 @@ read_known_tasks_array (void) for (i = 0; i < MAX_NUMBER_OF_KNOWN_TASKS; i++) { struct type *data_ptr_type = - builtin_type (current_gdbarch)->builtin_data_ptr; + builtin_type (target_gdbarch)->builtin_data_ptr; CORE_ADDR task_id = extract_typed_address (known_tasks + i * target_ptr_byte, data_ptr_type); |