* m68k-tdep.c (m68k_ps_type): New.
[external/binutils.git] / gdb / ChangeLog
1 2007-06-30  Andreas Schwab  <schwab@suse.de>
2
3         * m68k-tdep.c (m68k_ps_type): New.
4         (m68k_init_types): New.
5         (m68k_register_type): Use m68k_ps_type for PS register.
6         (_initialize_m68k_tdep): Call m68k_init_types.
7
8         * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
9         from the generic m68k arch.
10
11 2007-06-28  Michael Snyder  <msnyder@access-company.com>
12
13         * m2-typeprint.c (m2_print_type): Move pointer ref after null test
14         (Coverity).
15
16         * linux-thread-db.c (thread_db_get_thread_local_address): Add
17         gdb_assert before using return value of find_thread_pid (Coverity).
18
19         * source.c (unset_substitute_path_command): Plug leak (Coverity).
20
21         * cli/cli-script.c (build_command_line): Add null pointer guard 
22         (Coverity).
23         
24 2007-06-27  Daniel Jacobowitz  <dan@codesourcery.com>
25
26         * linux-thread-db.c (thread_db_attach): Delete.
27         (thread_db_detach): Typo fix.  Call target_mourn_inferior
28         instead of fixing up proc_handle.
29         (have_threads_callback, have_threads): New functions.
30         (thread_db_wait): Remove dead proc_handle.pid check.  Only
31         translate PTIDs if we have registered threads.  Check for new
32         threads if we have none.
33         (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
34         (find_new_threads_callback): Only enable event reporting if TID == 0.
35         (same_ptid_callback): New.
36         (thread_db_get_thread_local_address): Check for new threads.
37         (init_thread_db_ops): Don't set to_attach, to_create_inferior,
38         or to_post_startup_inferior.
39
40 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
41
42         * infrun.c (adjust_pc_after_break): Do not assume software single-step
43         is always active if SOFTWARE_SINGLE_STEP_P is true.
44         (resume): Use gdbarch_software_single_step[_p] instead of
45         SOFTWARE_SINGLE_STEP[_P].
46         (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
47
48         * gdbarch.sh (software_single_step): Remove target macro.
49         * gdbarch.h, gdbarch.c: Regenerate.
50
51 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
52
53         * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
54         DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
55         (struct gdbarch_swap, struct gdbarch_swap_registration, 
56         struct gdbarch_swap_registry, gdbarch_swap_registry,
57         current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
58         current_gdbarch_swap_in_hack): Remove.
59         (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
60         (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
61         and current_gdbarch_swap_out_hack, update current_gdbarch directly.
62         (deprecated_current_gdbarch_select_hack): Likewise.
63         * gdbarch.h, gdbarch.c: Regenerate.
64
65 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
66
67         * infrun.c (clear_proceed_status): Clean up stop_registers.
68         (normal_stop): Allocate regcache for stop_registers.
69         (struct inferior_status): Remove stop_registers member.
70         (save_inferior_status): Do not save stop_registers.
71         (restore_inferior_status): Do not restore stop_registers.
72         (discard_inferior_status): Do not discard stop_registers.
73         (build_infrun): Remove.
74         (_initialize_infrun): Do not swap stop_registers.
75
76 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
77
78         * remote.c (remote_address_masked): If remote_address_size is zero,
79         default to target address size.
80         (build_remote_gdbarch_data): Remove.
81         (_initialize_remote): Do not swap remote_address_size.
82
83 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
84
85         * gdbtypes.h (builtin_type_true_char, builtin_type_void,
86         builtin_type_char, builtin_type_short, builtin_type_int,
87         builtin_type_long, builtin_type_signed_char,
88         builtin_type_unsigned_char, builtin_type_unsigned_short,
89         builtin_type_unsigned_int, builtin_type_unsigned_long,
90         builtin_type_float, builtin_type_double, builtin_type_long_double,
91         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
92         builtin_type_bool, builtin_type_long_long,
93         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
94         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
95         variable declaration with compatibility macro.
96         * gdbtypes.c (builtin_type_true_char, builtin_type_void,
97         builtin_type_char, builtin_type_short, builtin_type_int,
98         builtin_type_long, builtin_type_signed_char,
99         builtin_type_unsigned_char, builtin_type_unsigned_short,
100         builtin_type_unsigned_int, builtin_type_unsigned_long,
101         builtin_type_float, builtin_type_double, builtin_type_long_double,
102         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
103         builtin_type_bool, builtin_type_long_long,
104         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
105         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
106         (build_gdbtypes): Remove.
107         (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
108         opaque-type-resolution command here.   Do not call 
109         deprecated_register_gdbarch_swap.
110
111 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
112
113         * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
114         nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
115         * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
116
117         * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
118         (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
119         (write_exp_msymbol): Use builtin nodebug_ types instead of them.
120         (build_parse): Remove.
121         (_initialize_parse): Do not call build_parse.  Do not register
122         msym_ types for gdbarch-swapping.
123
124         * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
125         instead of creating private type.
126
127         * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
128         (_initialize_xcoffread): Do not initialized them.
129         (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
130
131         * mdebugread.c (nodebug_func_symbol_type): Remove.
132         (nodebug_var_symbol_type): Remove.
133         (_initialize_mdebugread): Do not initialize them.
134         (parse_symbol): Use builtin nodebug_ type instead of them.
135         (parse_procedure): Likewise.
136
137 2007-06-21  Chris Dearman  <chris@mips.com>
138
139         * printcmd.c (do_one_display): If display/i, start with an initial
140         line feed to avoid bad layout if there is a branch delay slot.
141
142 2007-06-21  Nigel Stephens  <nigel@mips.com>
143             Maciej W. Rozycki  <macro@mips.com>
144
145         * disasm.c (gdb_print_insn): Return the number of branch delay
146         slot instructions too.
147         * disasm.h (gdb_print_insn): Update prototype.
148         * printcmd.c (branch_delay_insns): New variable to record the
149         number of delay slot instructions after disassembling a branch.
150         (print_formatted): Record the number of branch delay slot
151         instructions.
152         (do_examine): When disassembling, if the last instruction
153         disassembled has any branch delay slots, then bump the count so
154         that they get disassembled too.
155         * tui/tui-disasm.c (tui_disassemble): Update the call to
156         gdb_print_insn().
157         * NEWS: Document the new behaviour.
158
159 2007-06-21  Andreas Schwab  <schwab@suse.de>
160
161         * regcache.c (write_pc_pid): Restore missing else.
162
163 2007-06-20  Ulrich Weigand  <uweigand@de.ibm.com>
164
165         * regcache.c (regcache_print): Use get_current_regcache ()
166         instead of current_regcache.
167
168 2007-06-20  H.J. Lu  <hongjiu.lu@intel.com>
169
170         PR 4606
171         * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
172         instead of bfd_make_section_anyway.
173         (gcore_create_callback): Likewise.  Also set SEC_NEVER_LOAD
174         when clearing SEC_LOAD.
175
176 2007-06-19  Joseph Myers  <joseph@codesourcery.com>
177
178         * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
179         registers for big-endian.
180
181 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
182
183         * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
184         * disasm.c (dump_insns, gdb_print_insn): Likewise.
185         * gdbarch.c, gdbarch.h: Regenerate.
186
187 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
188
189         * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
190         gdbarch_believe_pcc_promotion.
191         * stabsread.c (define_symbol): Likewise.
192         Remove unnecessary definition.
193         * coffread.c (process_coff_symbol): Remove unnecessary code.
194         * gdbarch.c, gdbarch.h: Regenerate.
195
196 2007-06-19  Daniel Jacobowitz  <dan@codesourcery.com>
197
198         * configure.ac: Do not use ${objdir}.
199         * configure: Regenerated.
200
201 2007-06-18  Ulrich Weigand  <uweigand@de.ibm.com>
202
203         * gdbarch.sh (deprecated_register_size): Remove.
204         * gdbarch.h, gdbarch.c: Regenerate.
205
206         * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
207         by INT_REGISTER_SIZE.
208         (thumb_get_next_pc, arm_return_in_memory): Likewise.
209         (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
210         * ia64-tdep.c (ia64_gdbarch_init): Do not call
211         set_gdbarch_deprecated_register_size.
212
213 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
214
215         * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
216         gdbarch_deprecated_fp_regnum.
217         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
218         * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
219         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
220         * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
221         (comment).
222         * gdbarch.c, gdbarch.h: Regenerate.
223
224 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
225
226         * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
227         gdbarch_extract_return_value.
228         * value.c (generic_use_struct_convention): Likewise (comment).
229         * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
230         * arch-utils.c (legacy_return_value): Likewise.
231         * arch-utils.h (legacy_return_value): Likewise (comment).
232         * gdbarch.sh (STORE_RETURN_VALUE): Replace by
233         gdbarch_store_return_value.
234         * stack.c (return_command): Likewise (comment).
235         * arch-utils.h (legacy_return_value): Likewise (comment).
236         * arch-utils.c (legacy_return_value): Likewise.
237         * gdbarch.c, gdbarch.h: Regenerate.
238
239 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
240
241         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
242         gdbarch_deprecated_use_struct_convention.
243         * arch-utils.c (legacy_return_value): Likewise.
244         * gdbarch.c, gdbarch.h: Regenerate.
245
246 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
247
248         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
249         gdbarch_deprecated_function_start_offset.
250         * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
251         * linespec.c (minsym_found): Likewise.
252         * infrun.c (handle_inferior_event): Likewise.
253         * infcall.c (find_function_addr): Likewise.
254         * cli/cli-cmds.c (disassemble_command): Likewise.
255         * gdbarch.c, gdbarch.h: Regenerate.
256
257 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
258
259         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
260         gdbarch_deprecated_reg_struct_has_addr.
261         * infcall.c (call_function_by_hand): Likewise.
262         (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
263         * gdbarch_deprecated_reg_struct_has_addr_p.
264         * infcall.c (call_function_by_hand): Likewise.
265         * gdbarch.c, gdbarch.h: Regenerate.
266
267 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
268
269         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
270         * sh-tdep.c (sh_extract_struct_value_address): Remove.
271         (sh_gdbarch_init): Remove
272         set_gdbarch_deprecated_extract_struct_value_address.
273         * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
274         (sh64_gdbarch_init): Remove
275         set_gdbarch_deprecated_extract_struct_value_address.
276         * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
277         (ia64_gdbarch_init): Remove
278         set_gdbarch_deprecated_extract_struct_value_address.
279         * frv-tdep.c (frv_extract_struct_value_address): Remove.
280         (frv_gdbarch_init): Remove
281         set_gdbarch_deprecated_extract_struct_value_address.
282         * gdbarch.c, gdbarch.h: Regenerate.
283
284 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
285
286         * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
287         * v850-tdep.c (v850_unwind_sp): Likewise.
288         * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
289         * stack.c (frame_info): Likewise.
290         * stabsread.c (define_symbol): Likewise.
291         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
292         (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
293         (sh_unwind_sp): Likewise.
294         * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
295         (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
296         * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
297         (rs6000_frame_cache): Likewise.
298         * rs6000-nat.c (store_register): Likewise.
299         * remote-mips.c (mips_wait): Likewise.
300         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
301         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
302         (ppc64_sysv_abi_push_dummy_call): Likewise.
303         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
304         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
305         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
306         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
307         * m32r-rom.c (m32r_supply_register): Likewise.
308         * frame.c (frame_sp_unwind): Likewise.
309         * mips-tdep.c (mips_insn16_frame_cache)
310         (mips_insn32_frame_cache): Likewise (comment).
311         * m68klinux-nat.c (supply_gregset): Likewise.
312         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
313         * ia64-tdep.c (ia64_frame_prev_register): Likewise.
314         * i386-tdep.c (i386_get_longjmp_target): Likewise.
315         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
316         * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
317         (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
318         (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
319         (cris_register_type, crisv32_register_type)
320         (cris_dwarf2_frame_init_reg): Likewise.
321         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
322         * amd64-tdep.c (amd64_frame_prev_register): Likewise.
323         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
324         * libunwind-frame.c (libunwind_frame_cache): Likewise.
325
326         * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
327         * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
328         * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
329         (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
330         (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
331         * v850-tdep.c (v850_unwind_pc): Likewise.
332         * stack.c (frame_info): Likewise.
333         * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
334         (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
335         (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
336         (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
337         (sh_dsp_show_regs): Likewise.
338         * shnbsd-tdep.c (shnbsd_supply_gregset)
339         (shnbsd_collect_gregset): Likewise.
340         * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
341         * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
342         (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
343         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
344         (6000_register_reggroup_p, rs6000_unwind_pc)
345         (rs6000_frame_cache): Likewise.
346         * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
347         (rs6000_store_inferior_registers): Likewise.
348         * remote-mips.c (mips_wait, mips_load): Likewise.
349         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
350         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
351         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
352         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
353         * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
354         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
355         * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
356         (store_ppc_registers, fill_gregset): Likewise.
357         * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
358         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
359         * mipsnbsd-nat.c (getregs_supplies): Likewise.
360         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
361         * m68klinux-nat.c (supply_gregset): Likewise.
362         * irix5-nat.c (fill_gregset): Likewise.
363         * i386-tdep.c (i386_unwind_pc): Likewise.
364         * i386-linux-nat.c (i386_linux_resume): Likewise.
365         * frame.c (get_prev_frame_1): Likewise.
366         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
367         * dbug-rom.c (dbug_supply_register): Likewise.
368         * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
369         (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
370         (cris_register_type, crisv32_register_type, crisv32_register_name)
371         (cris_dwarf2_frame_init_reg, find_step_target)
372         (cris_software_single_step, cris_supply_gregset)
373         (cris_regnums): Likewise.
374         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
375         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
376         (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
377         * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
378         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
379
380         * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
381         * dbug-rom.c (dbug_supply_register): Likewise.
382         * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
383         (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
384         * win32-nat.c (win32_resume): Likewise.
385         * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
386         * m68k-tdep.c (m68k_register_type): Likewise.
387         * m68klinux-nat.c (supply_gregset): Likewise.
388
389         * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
390         * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
391         (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
392         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
393         (fv_reg_base_num, dr_reg_base_num): Likewise.
394         * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
395         (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
396         (sh64_extract_return_value, sh64_store_return_value)
397         (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
398         (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
399         * procfs.c (procfs_fetch_registers, procfs_store_registers)
400         (invalidate_cache): Likewise.
401         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
402         * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
403         (mipsnbsd_fill_fpreg): Likewise.
404         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
405         (mipsnbsd_store_inferior_registers): Likewise.
406         * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
407         (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
408         * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
409         * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
410         * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
411         (fill_fpregset): Likewise.
412         * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
413         * i386-tdep.h (struct_return): Likewise (comment).
414         * i386-nto-tdep.c (i386nto_register_area): Likewise.
415         * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
416         (go32_store_registers): Likewise.
417         * alpha-tdep.c (alpha_next_pc): Likewise.
418         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
419         * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
420         (alphabsd_store_inferior_registers): Likewise.
421         * core-regset.c (fetch_core_registers): Likewise.
422         * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
423
424         * gdbarch.c, gdbarch.h: Regenerate.
425
426 2007-06-18  Daniel Jacobowitz  <dan@codesourcery.com>
427
428         * coffread.c (coff_sym_fns): Add default_symfile_segments.
429         * dbxread.c (start_psymtab): Check HAVE_ELF.
430         (aout_sym_fns): Likewise.
431         * elfread.c (elf_symfile_segments): New.
432         (elf_sym_fns): Add elf_symfile_segments.
433         * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
434         * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
435         Skip if there is no symfile_objfile.  Handle TextSeg and DataSeg.
436         * somread.c (som_sym_fns): Use default_symfile_segments.
437         * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
438         (init_objfile_sect_indices): Call symfile_find_segment_sections.
439         (default_symfile_segments): New function.
440         (syms_from_objfile): Update call to find_sym_fns.
441         (symfile_get_segment_data, free_symfile_segment_data): New.
442         (symfile_map_offsets_to_segments): New.
443         (symfile_find_segment_sections): New.
444         * symfile.h (struct symfile_segment_data): New.
445         (struct sym_fns): Add sym_segments.
446         (default_symfile_segments, symfile_get_segment_data)
447         (free_symfile_segment_data): New prototypes.
448         (symfile_map_offsets_to_segments): Likewise.
449         * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
450         * Makefile.in (COMMON_OBS): Remove elfread.o.
451         (elf_internal_h): New.
452         (elfread.o): Update.
453         * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
454         compiled.
455         * config.in, configure: Regenerated.
456         * NEWS: Mention qOffsets changes.
457
458 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
459
460         * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
461         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
462         Replace global variable declaration with compatibility macro.
463         (struct builtin_m2_type): New data type.
464         (builtin_m2_type): Add prototype.
465         * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
466         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
467         Remove global variables.
468         (m2_language_arch_info): Use builtin_m2_type instead of variables.
469         (build_m2_types): New function.
470         (m2_type_data): New variable.
471         (builtin_m2_type): New function.
472         (_initialize_m2_language): Do not build data types.  Register
473         m2_type_data per-gdbarch data.
474
475 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
476
477         * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
478         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
479         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
480         builtin_type_f_real_s8, builtin_type_f_real_s16,
481         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
482         builtin_type_f_complex_s32, builtin_type_f_void): Replace global
483         variable declaration with compatibility macro.
484         (struct builtin_f_type): New data type.
485         (builtin_f_type): Add prototype.
486         * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
487         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
488         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
489         builtin_type_f_real_s8, builtin_type_f_real_s16,
490         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
491         builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
492         (f_language_arch_info): Use builtin_f_type instead of variables.
493         (build_fortran_types): Build builtin_f_type structure instead of
494         setting global type variables.
495         (f_type_data): New variable.
496         (builtin_f_type): New function.
497         (_initialize_f_language): Do not call build_fortran_types.  Do not
498         swap global type variables.  Register f_type_data per-gdbarch data.
499
500 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
501
502         * f-lang.c (_initialize_f_language): Do not initialize or
503         swap builtin_type_string.
504
505 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
506
507         * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
508         value_of_builtin_frame_reg): Remove.
509         (_initialize_frame_reg): Do not swap builtin_type_frame_reg.  Remove
510         inactive call to value_of_builtin_frame_reg.
511
512 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
513
514         * gdbarch.sh (bfd_vma_bit): Remove.
515         * gdbarch.c, gdbarch.h: Regenerate.
516
517         * gdbtypes.h (builtin_bfd_vma_type): Remove.
518         * gdbtypes.h (builtin_bfd_vma_type): Remove.
519         (build_gdbtypes): Do not initialize it.
520         (_initialize_gdbtypes): Do not swap it.
521
522 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
523
524         * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float, 
525         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
526         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
527         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
528         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
529         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
530         builtin_type_vec64, builtin_type_vec128): Remove.
531         (init_simd_type): Remove.
532         (init_vector_type): Make global.
533         (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
534         (build_gdbtypes): Do not build vector types.
535         (_initialize_gdbtypes): Do not swap vector types.
536         * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float, 
537         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
538         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
539         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
540         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
541         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
542         builtin_type_vec64, builtin_type_vec128): Remove declarations.
543         (init_vector_type): Add prototype.
544
545         * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
546         i386_sse_type members.
547         (i386_mmx_type, i386_sse_type): Change from variables to functions.
548         * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
549         (i386_init_types): Do not build vector types.
550         (i386_mmx_type, i386_sse_type): New functions.
551         (i386_register_type): Call them instead of using global variables.
552         (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
553         * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
554         of using global variable.
555
556         * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
557         and ppc_builtin_type_vec128 members.
558         * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
559         (rs6000_builtin_type_vec128): Likewise.
560         (rs6000_register_type): Call them instead of using builtin_type_vec64
561         and builtin_type_vec128.
562         (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
563
564         * spu-tdep.c (struct gdbarch_tdep): New data type.
565         (spu_builtin_type_vec128): Remove variable.
566         (spu_builtin_type_vec128): New function.
567         (spu_register_type): Call it instead of using global variable.
568         (spu_gdbarch_init): Allocate tdep structure.
569         (spu_init_vector_type): Remove function.
570         (_initialize_spu_tdep): Do not call it.
571
572 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
573
574         * amd64-tdep.c (struct amd64_register_info): Remove.
575         (amd64_register_info): Remove.
576         (amd64_register_names): New static variable.
577         (AMD64_NUM_REGS): Use amd64_register_names instead of
578         amd64_register_info.
579         (amd64_register_name): Likewise.
580         (amd64_register_type): Do not refer to amd64_register_info.
581
582         * s390-tdep.c (struct s390_register_info): Remove.
583         (s390_register_info): Remove.
584         (s390_register_name): Do not refer to s390_register_info.
585         (s390_register_type): Likewise.
586
587         * sparc64-tdep.c (struct sparc64_register_info): Remove.
588         (sparc64_register_info, sparc64_pseudo_register_info): Remove.
589         (sparc64_register_names, sparc64_pseudo_register_names): New.
590         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
591         sparc64_register_names and sparc64_pseudo_register_names instead of
592         sparc64_register_info and sparc64_pseudo_register_info.
593         (sparc64_register_name): Likewise.
594         (sparc64_register_type): Do not refer to sparc64_register_info
595         and sparc64_pseudo_register_info.
596
597 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
598
599         * c-lang.c (cplus_builtin_types): Remove.
600         (enum cplus_primitive_types): New data type.
601         (cplus_language_arch_info): New function.
602         (cplus_language_defn): Set la_language_arch_info member.  Do not set
603         la_builtin_type_vector and string_char_type members.
604
605         * f-lang.c (f_builtin_types): Remove.
606         (enum f_primitive_types): New data type.
607         (f_language_arch_info): New function.
608         (f_language_de): Set la_language_arch_info member.  Do not set
609         la_builtin_type_vector and string_char_type members.
610
611         * m2-lang.c (m2_builtin_types): Remove.
612         (enum m2_primitive_types): New data type.
613         (m2_language_arch_info): New function.
614         (m2_language_defn): Set la_language_arch_info member.  Do not set
615         la_builtin_type_vector and string_char_type members.
616
617         * objc-lang.c (objc_builtin_types): Remove.
618         (objc_language): Set la_language_arch_info member.  Do not set
619         la_builtin_type_vector and string_char_type members.
620
621         * p-lang.c (pascal_builtin_types): Remove.
622         (enum pascal_primitive_types): New data type.
623         (pascal_language_arch_info): New function.
624         (pascal_language_defn): Set la_language_arch_info member.  Do not set
625         la_builtin_type_vector and string_char_type members.
626
627 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
628
629         * regcache.c (struct regcache): Add ptid_t member.
630         (regcache_xmalloc): Initialize it.
631         (regcache_cpy_no_passthrough): Do not refer to current_regcache.
632         (regcache_dup): Likewise.
633         (regcache_dup_no_passthrough): Likewise.
634         (current_regcache): Make static.
635         (registers_ptid): Remove variable.
636         (get_thread_regcache): New function.
637         (get_current_regcache): New function.
638         (registers_changed): Implement by freeing current regcache.
639         (regcache_raw_read): Do not refer to current_regcache.  Set 
640         inferior_ptid to regcache->ptid while calling target routines.
641         (regcache_raw_write): Likewise.
642         (regcache_raw_supply): Do not refer to current_regcache.
643         (read_pc_pid): Use thread regcache.  Do not modify inferior_ptid.
644         (write_pc_pid): Likewise.
645         (build_regcache): Remove.
646         (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
647         or deprecated_register_gdbarch_swap.  Do not initialize
648         registers_ptid.
649         * regcache.h (get_current_regcache): Add prototype.
650         (get_thread_regcache): Likewise.
651         (current_regcache): Remove declaration.
652
653         * corelow.c (core_open): Replace current_regcache by
654         get_current_regcache ().
655         * frame.c (frame_pop): Likewise.
656         (put_frame_register): Likewise.
657         (get_current_frame, create_new_frame): Likewise.
658         * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
659         * stack.c (return_command): Likewise.
660         * infcall.c (call_function_by_hand): Likewise.
661         * infrun.c (resume): Likewise.
662         (save_inferior_status, restore_inferior_status): Likewise.
663         * linux-fork.c (fork_load_infrun_state): Likewise.
664         (fork_save_infrun_state): Likewise.
665         * win32-nat.c (win32_resume): Likewise.
666         * i386fbsd-nat.c (i386fbsd_resume): Likewise.
667         * monitor.c (monitor_wait): Likewise.
668         * remote.c (remote_wait): Likewise.
669         * remote-mips.c (mips_wait): Likewise.
670
671         * bsd-kvm.c (bsd_kvm_open): Likewise
672         (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
673         * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
674         * i386-linux-nat.c (i386_linux_resume): Likewise.
675         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
676         (ia64_linux_stopped_data_address): Likewise.
677
678         * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
679         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
680         * mep-tdep.c (current_me_module, current_options): Likewise.
681         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
682
683         * linux-nat.c (linux_nat_do_thread_registers): Use thread
684         regcache instead of current_regcache.  Call target_fetch_registers.
685         (linux_nat_corefile_thread_callback): Update call site.
686         (linux_nat_do_registers): Likewise.
687         * procfs.c (procfs_do_thread_registers): Use thread regcache instead
688         of current_regcache.
689         (procfs_make_note_section): Likewise.
690         * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
691         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
692         * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
693         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
694
695 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
696
697         * regcache.c (read_register, read_register_pid): Remove.
698         (write_register, write_register_pid): Likewise.
699         * regcache.h (read_register, read_register_pid): Remove prototype.
700         (write_register, write_register_pid): Likewise.
701
702 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
703
704         * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
705         (write_pc): Likewise.  Remove default implementation, add predicate.
706         * gdbarch.c, gdbarch.h: Regenerate.
707         * regcache.c (read_pc_pid): Use current regcache instead of calling
708         read_register_pid.
709         (write_pc_pid): Check gdbarch_write_pc predicate, implement default
710         case inline.
711         (generic_target_write_pc): Remove.
712         * inferior.h (generic_target_write_pc): Remove.
713         * frv-tdep.c (frv_gdbarch_init): Do not install it.
714         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
715         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
716         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
717         * sh-tdep.c (sh_gdbarch_init): Likewise.
718         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
719
720         * avr-tdep.c (avr_read_pc): Add REGCACHE argument.  Remove PTID
721         argument.  Use REGCACHE instead of calling read_register_pid.
722         * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
723         * hppa-tdep.c (hppa_read_pc): Likewise.
724         * hppa-tdep.h (hppa_read_pc): Likewise.
725         * ia64-tdep.c (ia64_read_pc): Likewise.
726         * m32r-tdep.c (m32r_read_pc): Likewise.
727         * mep-tdep.c (mep_read_pc): Likewise.
728         * mn10300-tdep.c (mn10300_read_pc): Likewise.
729         * spu-tdep.c (spu_read_pc): Likewise.
730
731         * arm-tdep.c (arm_write_pc): Add REGCACHE argument.  Remove PTID
732         argument.  Use REGCACHE instead of calling write_register_pid.
733         * avr-tdep.c (avr_write_pc): Likewise.
734         * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
735         * hppa-tdep.c (hppa_write_pc): Likewise.
736         * hppa-tdep.h (hppa_write_pc): Likewise.
737         * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
738         * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
739         * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
740         * ia64-tdep.c (ia64_write_pc): Likewise.
741         * ia64-tdep.h (ia64_write_pc): Likewise.
742         * m32r-tdep.c (m32r_write_pc): Likewise.
743         * m88k-tdep.c (m88k_write_pc): Likewise.
744         * mep-tdep.c (mep_write_pc): Likewise.
745         * mips-tdep.c (mips_write_pc): Likewise.
746         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
747         * mn10300-tdep.c (mn10300_write_pc): Likewise.
748         * sparc-tdep.c (sparc_write_pc): Likewise.
749         * spu-tdep.c (spu_write_pc): Likewise.
750
751         * mips-tdep.c (read_signed_register): Remove.
752         (read_signed_register_pid): Likewise.
753         (mips_read_pc): Add REGCACHE argument.  Remove PTID argument.
754         Use REGCACHE instead of calling read_signed_register_pid.
755
756 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
757
758         * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
759         * gdbarch.c, gdbarch.h: Regenerate.
760         * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
761         (push_dummy_code): Likewise.  Pass it to callee.
762         (call_function_by_hand): Pass current regcache to push_dummy_code.
763
764         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
765         argument.  Use it instead of current_regcache.
766
767         * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
768         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
769
770 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
771
772         * gdbarch.sh (get_longjmp_target): Add FRAME argument.
773         * gdbarch.c, gdbarch.h: Regenerate.
774         * infrun.c (handle_inferior_event): Pass current frame to
775         gdbarch_get_longjmp_target.
776
777         * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
778         Read registers from FRAME instead of using read_register.
779         Use get_frame_arch instead of current_gdbarch.
780         * arm-tdep.c (arm_get_longjmp_target): Likewise.
781         * i386-tdep.c (i386_get_longjmp_target): Likewise.
782         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
783         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
784         (mips64_linux_get_longjmp_target): Likewise.
785         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
786
787 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
788
789         * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
790         * gdbarch.c, gdbarch.h: Regenerate.
791         * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
792         * arch-utils.h (generic_skip_trampoline_code): Likewise.
793         * infrun.c (handle_inferior_event): Pass current frame to
794         gdbarch_skip_trampoline_code and skip_language_trampoline.
795
796         * language.c (unk_lang_trampoline): Add FRAME argument.
797         (skip_language_trampoline): Add FRAME argument.  Pass it to
798         skip_trampoline callback.
799         * language.h: Add forward declaration of struct frame_info.
800         (struct language_defn): Add FRAME argument to skip_trampoline.
801         (skip_language_trampoline): Add FRAME argument.
802         * cp-abi.c (cplus_skip_trampoline): Add FRAME argument.  Pass it
803         to skip_trampoline callback.
804         * cp-abi.h: Add forward declaration of struct frame_info.
805         (cplus_skip_trampoline): Add FRAME argument.
806         (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
807         * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument.  Pass it
808         to gdbarch_skip_trampoline_code.
809         * objc-lang.c (objc_skip_trampoline): Add FRAME argument.  Pass it
810         to gdbarch_skip_trampoline_code.
811
812         * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
813         * symtab.h (find_solib_trampoline_target): Likewise.
814         * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
815         find_solib_trampoline_target.
816
817         * arm-tdep.c (arm_skip_stub): Add FRAME argument.  Read registers
818         from FRAME instead of calling read_register.
819
820         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
821         argument.  Read registers from FRAME instead of using read_register.
822         * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
823         * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
824
825         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
826         argument.
827
828         * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
829
830         * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument.  Read
831         registers from FRAME instead of using read_signed_register.
832
833         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
834         argument.
835         (ppc64_standard_linkage_target): Likewise.  Read registers from FRAME
836         instead of using read_register.
837         (ppc64_skip_trampoline_code): Add FRAME argument.  Pass it to
838         ppc64_standard_linkage_target.
839         * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
840         Pass it to find_solib_trampoline_target.  Read registers from FRAME
841         instead of using read_register.
842
843         * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
844         argument.
845
846 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
847
848         * gdbarch.sh (software_single_step): Replace REGCACHE argument by
849         FRAME argument.
850         * gdbarch.c, gdbarch.h: Regenerate.
851         * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
852
853         * alpha-tdep.c (alpha_next_pc): Add FRAME argument.  Retrieve
854         registers from FRAME instead of using read_register.
855         (alpha_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
856         to alpha_next_pc.  Use get_frame_pc instead of read_pc.
857         * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
858         argument by FRAME.
859
860         * arm-tdep.c (shifted_reg_val): Add FRAME argument.  Read registers
861         from FRAME instead of using read_register.
862         (thumb_get_next_pc): Likewise.
863         (arm_get_next_pc): Likewise.
864         (arm_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
865         to arm_get_next_pc.  Use get_frame_pc instead of read_register.
866         * arm-tdep.h (arm_software_single_step): Replace REGCACHE
867         argument by FRAME.
868
869         * cris-tdep.c (find_step_target): Add FRAME argument.  Read registers
870         from FRAME instead of using read_register.
871         (cris_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
872         to find_step_target.
873
874         * mips-tdep.c (mips32_next_pc): Add FRAME argument.  Read registers
875         from FRAME instead of using read_register / read_signed_register.
876         (extended_mips16_next_pc): Likewise.
877         (mips16_next_pc): Likewise.
878         (mips_next_pc): Likewise.
879         (mips_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
880         to mips_next_pc.  Use get_frame_pc instead of read_pc.
881         * mips-tdep.h (mips_software_single_step): Replace REGCACHE
882         argument by FRAME.
883
884         * rs6000-tdep.c (branch_dest): Add FRAME argument.  Use it instead
885         of current frame.  Read registers from FRAME.
886         (deal_with_atomic_sequence): Add FRAME argument.  Pass it to
887         branch_dest.  Use get_frame_pc instead of read_pc.
888         (rs6000_software_single_step): Likewise.
889         (bl_to_blrl_insn_p): Do not call branch_dest.
890         * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
891         argument by FRAME.
892
893         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
894         Read registers from FRAME instead of current regcache.
895         * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
896         * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
897         * sparc-tdep.c (sparc_address_from_register): Remove.
898         (sparc_analyze_control_transfer): Pass FRAME argument instead of
899         GDBARCH.  Pass FRAME to step_trap callback.
900         (sparc_step_trap): Add FRAME argument.
901         (space_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
902         to sparc_analyze_control_transfer.  Read registers from FRAME instead
903         of calling sparc_address_from_register.
904         * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
905         step_trap callback.
906         (sparc_address_from_register): Remove prototype.
907         (sparc_software_single_step): Replace REGCACHE argument by FRAME.
908         (sparcnbsd_step_trap): Add FRAME argument.
909
910         * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
911         by FRAME.  Read registers from FRAME instead of REGCACHE.
912
913 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
914
915         * arm-tdep.c (arm_print_float_info): Use register value from FRAME
916         instead of calling read_register.
917
918         * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
919         calling write_register.
920
921         * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
922         calling write_register.
923
924         * ia64-tdep.c (find_func_descr): Add REGCACHE parameter.  Use it
925         instead of calling read_register.
926         (ia64_push_dummy_call): Update call to find_func_descr.  Use REGCACHE
927         instead of calling read_register and write_register.
928
929         * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
930         instead of current_regcache.
931
932         * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
933         of calling write_register.
934         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
935         parameter instead of current_regcache.
936
937         * mips-tdep.c (mips2_fp_compat): Add FRAME parameter.  Use it 
938         instead of calling read_register.
939         (mips_read_fp_register_double, mips_print_fp_register): Update calls.
940         (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
941         (mips_n32n64_push_dummy_call): Likewise.
942         (mips_o32_push_dummy_call): Likewise.
943         (mips_o64_push_dummy_call): Likewise.
944
945         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
946         parameter instead of current_regcache.
947
948         * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
949         Use it instead of read_register and write_register.
950         (xtensa_register_read_masked): Likewise.
951         (xtensa_pseudo_register_read): Update call.
952         (xtensa_pseudo_register_write): Likewise.
953         (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
954         instead of calling read_register.
955         (xtensa_push_dummy_call): Update comment.
956
957 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
958
959         * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
960         by frame_unwind_register_signed calls.
961         (mips32_scan_prologue): Likewise.  Skip analysis of alloca stack
962         frame allocations when called with NULL NEXT_FRAME parameter.
963         (read_next_frame_reg): Remove.
964
965         * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter.  Use it
966         instead of reading the FPSCR register.
967         (sh_frame_cache): Pass unwound FPSCR register value to
968         sh_analyze_prologue.
969         (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
970
971         * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter.  Use it
972         instead of reading the CTBP register.
973         (v850_frame_cache): Pass unwound CTBP register value to
974         v850_analyze_prologue.
975
976 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
977
978         * sh-tdep.h (sh_show_regs): Add FRAME parameter.
979         * sh-tdep.c (sh_show_regs): Likewise.
980         (sh_show_regs_command): Pass current frame to sh_show_regs routine.
981         (sh_generic_show_regs): Add FRAME parameter.  Use register
982         values from that frame instead of calling read_register.
983         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
984         sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
985         sh_dsp_show_regs): Likewise.
986         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
987         sh64_show_regs): Likewise.
988
989 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
990
991         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
992         current regcache instead of calling read_register.
993
994 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
995
996         * mep-tdep.c (current_me_module): Read from current regcache
997         instead of calling read_register.
998         (current_options): Likewise.
999
1000 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
1001
1002         * cris-tdep.c (cris_stopped_data_address): Read register values
1003         from current frame instead of calling read_register.
1004         * frv-tdep.c (frv_stopped_data_address): Likewise.
1005
1006 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
1007
1008         * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
1009         instead of write_register (PC_REGNUM, ...).
1010
1011 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
1012
1013         * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
1014         explaining why the PC adjustment code is necessary.
1015
1016 2007-06-15  Vladimir Prus  <vladimir@codesourcery.com>
1017
1018         * m68k-tdep.h (enum m68k_flavour): New. 
1019         (struct gdbarch_tdep): New fields
1020         float_return, flavour and fpregs_present.
1021         * m68k-tdep.c (m68k_register_type): Use
1022         fpregs_present and conditionalize floating
1023         registers type on flavour.
1024         (m68k_register_names): New.
1025         (m68k_register_name): Use the above.
1026         (m68k_convert_register_p): Consult fpregs_present.
1027         (m68k_register_to_value, m68k_value_to_register):
1028         Use register_type to obtain the type of floating
1029         point registers.
1030         (m68k_svr4_extract_return_value): Check tdep->float_return.
1031         Use register_type to get the type of floating
1032         point regiters.
1033         (m68k_svr4_store_return_value): Likewise.
1034         (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
1035         (m68k_analyze_register_saves): Likewise.
1036         (m68k_gdbarch_init): Extract infromation
1037         from XML description, if present.  Guess coldfire by
1038         looking at the file, if present. Conditionalize
1039         setting of long double format.  Set decr_pc_after_break
1040         to 2 on coldfire and fido.  Enable XML-driven
1041         register description.
1042         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
1043         size of tdep->fpreg_type, as opposed to hardcoded value.
1044         * Makefile.in (m68k-tdep.o): Update dependencies.
1045         
1046 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
1047
1048         * NEWS: Mention "info spu" commands and qXfer:spu:read and
1049         qXfer:spu:write remote packet types.
1050
1051 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
1052
1053         * xml-tdesc.c (tdesc_start_target): New.
1054         (target_attributes): New.
1055         (tdesc_elements): Use it.
1056         * features/gdb-target.dtd: Add #FIXED version attribute for
1057         <target>.
1058
1059 2007-06-13  Arthur Huillet  <arthur.huillet@free.fr>
1060
1061         * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
1062
1063 2007-06-13  Claudio Fontana <claudio.fontana@gmail.com>
1064
1065         * fork-child.c (fork_inferior): Update comment.
1066
1067 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
1068
1069         * features/Makefile: Generate regformats for mips-linux and
1070         mips64-linux.
1071         * features/sort-regs.xsl: Correct typo.
1072         * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
1073         * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
1074         files.
1075
1076 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
1077
1078         * config/mips/linux.mh (TDEP_XML): New.
1079         * features/mips-linux.xml, features/mips64-linux.xml: New files.
1080         * mips-linux-nat.c (mips_linux_register_addr): Handle
1081         MIPS_RESTART_REGNUM.
1082         (mips64_linux_register_addr): Likewise.
1083         (super_xfer_partial, mips_linux_xfer_partial): New.
1084         (_initialize_mips_linux_nat): Add them to the target_ops.
1085         * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
1086         (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
1087         (mips_linux_o32_sigframe_init)
1088         (mips_linux_n32n64_sigframe_init): Likewise.
1089         (mips_linux_write_pc, mips_linux_restart_reg_p): New.
1090         (mips_linux_init_abi): Use mips_linux_write_pc.  Check for the
1091         "org.gnu.gdb.mips.linux" feature.
1092         * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
1093         (mips_linux_restart_reg_p): New prototype.
1094         * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
1095         initialization routine.
1096         * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
1097
1098 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
1099
1100         * Makefile.in (mips-tdep.o): Update.
1101         * mips-tdep.c (struct register_alias, mips_o32_aliases)
1102         (mips_n32_n64_aliases, mips_register_aliases): New.
1103         (mips_register_name): Call tdesc_register_name.
1104         (mips_tdesc_register_reggroup_p): New.
1105         (mips_pseudo_register_type, value_of_mips_user_reg): New.
1106         (mips_gdbarch_init): Add target-described register support.
1107         Register aliases for register names.
1108         * target-descriptions.c (tdesc_register_name): Make global.
1109         (tdesc_register_in_reggroup_p): New function, broken out from
1110         tdesc_register_reggroup_p.
1111         (tdesc_register_reggroup_p): Use it.
1112         * target-descriptions.h (tdesc_register_name)
1113         (tdesc_register_in_reggroup_p): New prototypes.
1114         * NEWS: Correct formatting.  Mention MIPS register support.
1115         * features/mips-cp0.xml, features/mips-fpu.xml,
1116         features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
1117         features/mips64-cpu.xml: New files.
1118
1119 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
1120
1121         * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
1122         * valops.c (value_cast): Likewise.
1123         * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
1124         * ui-out.c (ui_out_field_core_addr): Likewise.
1125         * tracepoint.c (tracepoints_info): Likewise.
1126         * symtab.c (print_msymbol_info): Likewise.
1127         * solib-irix.c (irix_current_sos)
1128         (irix_open_symbol_file_object): Likewise.
1129         * remote.c (build_remote_gdbarch_data): Likewise.
1130         * prologue-value.c (make_pv_area): Likewise.
1131         * procfs.c (info_mappings_callback): Likewise.
1132         * printcmd.c (print_scalar_formatted)
1133         (deprecated_print_address_numeric): Likewise.
1134         * memattr.c (mem_info_command): Likewise.
1135         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1136         * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
1137         * exec.c (print_section_info): Likewise.
1138         * dwarf2read.c (read_subrange_type): Likewise.
1139         * dwarf2loc.c (find_location_expression): Likewise.
1140         * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
1141         (signed_address_type, execute_stack_op): Likewise.
1142         * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
1143         * gdbarch.c, gdbarch.h: Regenerate.
1144
1145 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
1146
1147         * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
1148         * arch-utils.c (show_architecture): Likewise.
1149         * remote-mips.c (mips_open): Likewise
1150         * nto-tdep.c (nto_find_and_open_solib)
1151         (nto_init_solib_absolute_prefix): Likewise.
1152         * nto-procfs (procfs_open): Likewise.
1153         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
1154         * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
1155         * gdbarch.c, gdbarch.h: Regenerate.
1156
1157 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
1158
1159         * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
1160         * gdbtypes.c (build_flt): Likewise.
1161         * gdbarch.c, gdbarch.h: Regenerate.
1162
1163 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
1164
1165         * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
1166         gdbarch_breakpoint_from_pc.
1167         * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
1168         * remote.c (remote_insert_breakpoint)
1169         (remote_insert_hw_breakpoint): Likewise.
1170         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1171         * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
1172         * breakpoint.h (bp_target_info): Likewise (comment).
1173         * breakpoint.c (read_memory_nobpt): Likewise.
1174         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1175         (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
1176         * gdbarch.c, gdbarch.h: Regenerate.
1177
1178 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
1179
1180         * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
1181         * solib-svr4.c (svr4_truncate_ptr): Likewise.
1182         * solib-pa64.c (read_dynamic_info): Likewise.
1183         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1184         * solib.c (info_sharedlibrary_command): Likewise.
1185         * s390-nat.c (SUBOFF): Likewise.
1186         * p-valprint.c (pascal_val_print): Likewise.
1187         * procfs.c (info_proc_mappings): Likewise.
1188         * printcmd.c (decode_format): Likewise.
1189         * nto-tdep.c (nto_truncate_ptr): Likewise.
1190         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1191         (mips64_linux_get_longjmp_target): Likewise.
1192         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1193         * jv-valprint.c (java_value_print): Likewise.
1194         * jv-lang.c (get_java_object_header_size): Likewise.
1195         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1196         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1197         (hppa_hpux_unwind_adjust_stub): Likewise.
1198         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1199         * gdbtypes.c (make_pointer_type, make_reference_type)
1200         (smash_to_memberptr_type): Likewise.
1201         * gdbarch.c, gdbarch.h: Regenerate.
1202
1203 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
1204
1205         * mips-tdep.c (mips_print_register): Remove unused ALL argument.
1206         (print_gp_register_row): Stop before printing a register bigger
1207         than the ABI register size.
1208         (mips_print_registers_info): Update call to mips_print_register.
1209
1210 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
1211
1212         * expression.h (enum exp_opcode): Document a register name for
1213         OP_REGISTER.
1214         * parse.c (write_dollar_variable): Write the register name for
1215         OP_REGISTER.
1216         (operator_length_standard): Expect the register name following
1217         OP_REGISTER.
1218         * ada-lang.c (resolve_subexp): Likewise.
1219         * ax-gdb.c (gen_expr): Likewise.
1220         * eval.c (evaluate_subexp_standard): Likewise.
1221         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1222         Likewise.
1223         * tracepoint.c (encode_actions): Likewise.
1224
1225 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
1226
1227         * utils.c (set_screen_size): Use INT_MAX for default columns.
1228
1229 2007-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
1230
1231         * remote.c (remote_protocol_features): Add qXfer:spu:read and
1232         qXfer:spu:write packet types.
1233
1234 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
1235
1236         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
1237         * gdbarch.c, gdbarch.h: Regenerate.
1238
1239 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
1240
1241         * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
1242         gdbarch_stab_reg_to_regnum.
1243         * stabsread.c (define_symbol): Likewise.
1244         * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
1245         gdbarch_ecoff_reg_to_regnum.
1246         * mdebugread.c (parse_symbol): Likewise.
1247         * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
1248         * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
1249         gdbarch_dwarf_reg_to_regnum.
1250         * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
1251         * coffread.c (process_coff_symbol): Likewise.
1252         * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
1253         gdbarch_dwarf2_reg_to_regnum.
1254         * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
1255         (locexpr_describe_location): Likewise.
1256         * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
1257         (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
1258         * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
1259         * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
1260         * gdbarch.c, gdbarch.h: Regenerate.
1261
1262 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
1263
1264         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
1265         gdbarch_smash_text_address.
1266         * somread.c (som_symtab_read): Likewise.
1267         * elfread.c (record_minimal_symbol): Likewise.
1268         * dbxread.c (process_one_symbol): Likewise.
1269         * coffread.c (coff_symtab_read): Likewise.
1270         * gdbarch.c, gdbarch.h: Regenerate.
1271
1272 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
1273
1274         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
1275         * findvar.c (value_from_register): Likewise.
1276         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
1277         * valops.c (value_assign): Likewise.
1278         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
1279         gdbarch_convert_register_p.
1280         * findvar.c (value_from_register): Likewise.
1281         * valops.c (value_assign): Likewise.
1282         * gdbarch.c, gdbarch.h: Regenerate.
1283
1284 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
1285
1286         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
1287         gdbarch_register_sim_regno.
1288         * sim-regno.h (sim_regno): Likewise (comment).
1289         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1290         * gdbarch.c, gdbarch.h: Regenerate.
1291
1292 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
1293
1294         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
1295         gdbarch_virtual_frame_pointer.
1296         * tracepoint.c (encode_actions): Likewise.
1297         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
1298         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
1299         * gdbarch.c, gdbarch.h: Regenerate.
1300
1301 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
1302
1303         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
1304         * p-lang.c (pascal_create_fundamental_type): Likewise.
1305         * objc-lang.c (objc_create_fundamental_type): Likewise.
1306         * mdebugread.c (_initialize_mdebugread): Likewise.
1307         * m2-lang.c (m2_create_fundamental_type)
1308         (_initialize_m2_language): Likewise.
1309         * gdbtypes.c (build_gdbtypes): Likewise.
1310         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1311         * doublest.c (floatformat_from_length): Likewise.
1312         * c-lang.c (c_create_fundamental_type): Likewise.
1313         * ada-lang.c (ada_create_fundamental_type)
1314         (ada_language_arch_info): Likewise.
1315         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
1316         * value.c (unpack_double): Likewise (comment).
1317         * gdbtypes.c (build_gdbtypes): Likewise.
1318         * doublest.c (floatformat_from_length): Likewise.
1319         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
1320         * valarith.c (value_binop): Likewise.
1321         * p-lang.c (pascal_create_fundamental_type): Likewise.
1322         * objc-lang.c (objc_create_fundamental_type): Likewise.
1323         * mdebugread.c (_initialize_mdebugread): Likewise.
1324         * m2-lang.c (m2_create_fundamental_type): Likewise.
1325         * gdbtypes.c (build_gdbtypes): Likewise.
1326         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1327         * doublest.c (floatformat_from_length): Likewise.
1328         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
1329         * c-lang.c (c_create_fundamental_type): Likewise.
1330         * ada-lex.l (processReal): Likewise.
1331         * ada-lang.c (ada_create_fundamental_type)
1332         (ada_language_arch_info): Likewise.
1333         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
1334         * value.c (unpack_double): Likewise (comment).
1335         * gdbtypes.c (build_gdbtypes): Likewise.
1336         * doublest.c (floatformat_from_length): Likewise.
1337         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
1338         gdbarch_long_double_bit.
1339         * p-lang.c (pascal_create_fundamental_type): Likewise.
1340         * objc-lang.c (objc_create_fundamental_type): Likewise.
1341         * m2-lang.c (m2_create_fundamental_type): Likewise.
1342         * gdbtypes.c (build_gdbtypes): Likewise.
1343         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1344         * doublest.c (floatformat_from_length): Likewise.
1345         * c-lang.c (c_create_fundamental_type): Likewise.
1346         * ada-lex.l (processReal): Likewise.
1347         * ada-lang.c (ada_create_fundamental_type)
1348         (ada_language_arch_info): Likewise.
1349         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
1350         gdbarch_long_double_format.
1351         * gdbtypes.c (build_gdbtypes): Likewise.
1352         * doublest.c (floatformat_from_length): Likewise.
1353         * gdbarch.c, gdbarch.h: Regenerate.
1354
1355 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
1356
1357         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
1358         * ada-lang.c (ada_create_fundamental_type)
1359         (ada_language_arch_info): Likewise.
1360         * c-lang.c (c_create_fundamental_type): Likewise.
1361         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1362         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1363         * m2-lang.c (m2_create_fundamental_type): Likewise.
1364         * objc-lang.c (objc_create_fundamental_type): Likewise.
1365         * p-lang.c (pascal_create_fundamental_type): Likewise.
1366         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
1367         * c-exp.y (parse_number): Likewise.
1368         * objc-exp.y (parse_number): Likewise.
1369         * ada-lex.l (processInt): Likewise.
1370         * f-exp.y (parse_number): Likewise.
1371         * p-exp.y (parse_number): Likewise.
1372         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
1373         (gdbtypes_post_init, build_gdbtypes): Likewise.
1374         * p-lang.c (pascal_create_fundamental_type): Likewise.
1375         * parse.c (build_parse): Likewise.
1376         * xcoffread.c (_initialize_xcoffread): Likewise.
1377         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
1378         (read_range_type): Likewise.
1379         * objc-lang.c (objc_create_fundamental_type): Likewise.
1380         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
1381         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
1382         (m2_create_fundamental_type): Likewise.
1383         * c-lang.c (c_create_fundamental_type): Likewise.
1384         * coffread.c (coff_read_enum_type): Likewise.
1385         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
1386         * dwarf2read.c (new_symbol): Likewise.
1387         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
1388         * c-exp.y (parse_number): Likewise.
1389         * objc-exp.y (parse_number): Likewise.
1390         * ada-lex.l (processInt): Likewise.
1391         * f-exp.y (parse_number): Likewise.
1392         * p-exp.y (parse_number): Likewise.
1393         * valarith.c (value_binop): Likewise.
1394         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
1395         * ada-lang.c (ada_create_fundamental_type)
1396         (ada_language_arch_info): Likewise.
1397         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1398         * symfile.c (TARGET_LONG_BYTES): Likewise.
1399         * p-lang.c (pascal_create_fundamental_type): Likewise.
1400         * objc-lang.c (objc_create_fundamental_type): Likewise.
1401         * m2-lang.c (m2_create_fundamental_type): Likewise.
1402         * f-lang.c (f_create_fundamental_type): Likewise.
1403         * c-lang.c (c_create_fundamental_type): Likewise.
1404         * coffread.c (decode_base_type): Likewise.
1405         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
1406         * c-exp.y (parse_number): Likewise.
1407         * objc-exp.y (parse_number): Likewise.
1408         * p-exp.y (parse_number): Likewise.
1409         * ada-lang.c (ada_create_fundamental_type)
1410         (ada_language_arch_info): Likewise.
1411         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
1412         * stabsread.c (read_range_type): Likewise.
1413         * p-lang.c (pascal_create_fundamental_type): Likewise.
1414         * objc-lang.c (objc_create_fundamental_type): Likewise.
1415         * m2-lang.c (m2_create_fundamental_type): Likewise.
1416         * f-lang.c (f_create_fundamental_type): Likewise.
1417         * c-lang.c (c_create_fundamental_type): Likewise.
1418         * gdbarch.c, gdbarch.h: Regenerate.
1419
1420 2007-06-12  Andreas Schwab  <schwab@suse.de>
1421
1422         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
1423         (struct frame_unwind): Add dealloc_cache.
1424         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
1425
1426         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
1427         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
1428         (libunwind_frame_unwind): Set dealloc_cache.
1429         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
1430
1431 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
1432             Markus Deuling  <deuling@de.ibm.com>
1433
1434         * remote.c (remote_write_qxfer): New function.
1435         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
1436         (remote_read_qxfer): Do not cache empty objects.
1437         (_initialize_remote): Add PACKET_qXfer_spu_read and
1438         PACKET_qXfer_spu_write.
1439
1440 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
1441
1442         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
1443         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
1444
1445         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
1446         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
1447         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
1448         * spu-tdep.c (infospucmdlist): New variable.
1449         (spu_register_name): Handle additional pseudo registers.
1450         (spu_register_type): Likewise.
1451         (spu_pseudo_register_read): Likewise.
1452         (spu_pseudo_register_write): Likewise.
1453         (spu_pseudo_register_read_spu): New function.
1454         (spu_pseudo_register_write_spu): Likewise.
1455         (info_spu_event_command): New function.
1456         (info_spu_signal_command): Likewise.
1457         (info_spu_mailbox_list): Likewise.
1458         (info_spu_mailbox_command): Likewise.
1459         (spu_mfc_get_bitfield): Likewise.
1460         (info_spu_dma_cmdlist): Likewise.
1461         (info_spu_dma_command): Likewise.
1462         (info_spu_proxydma_command): Likewise.
1463         (info_spu_command): Likewise.
1464         (_initialize_spu_tdep): Install "info spu" commands.
1465
1466 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
1467
1468         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
1469         accessing non-seekable spufs files.
1470
1471 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1472
1473         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
1474         gdbarch_skip_trampoline_code.
1475         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1476         * objc-lang.c (objc_skip_trampoline)
1477         (objc_submethod_helper_data): Likewise.
1478         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
1479         * infrun.c (handle_inferior_event): Likewise.
1480         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
1481         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
1482         gdbarch_in_solib_return_trampoline.
1483         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1484         * infrun.c (handle_inferior_event): Likewise.
1485         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
1486         * gdbarch.c, gdbarch.h: Regenerate.
1487
1488 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1489
1490         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
1491         * symtab.c (find_function_start_sal, in_prologue): Likewise.
1492         * linespec.c (minsym_found): Likewise.
1493         * infrun.c (step_into_function): Likewise.
1494         * gdbarch.c, gdbarch.h: Regenerate.
1495
1496 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1497
1498         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
1499         * valops.c (value_allocate_space_in_inferior): Likewise.
1500         * gdbarch.c, gdbarch.h: Regenerate.
1501
1502 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1503
1504         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
1505         gdbarch_memory_insert_breakpoint.
1506         * mem-break.c (memory_insert_breakpoint): Likewise.
1507         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
1508         gdbarch_memory_remove_breakpoint.
1509         * mem-break.c (memory_remove_breakpoint): Likewise.
1510         * gdbarch.c, gdbarch.h: Regenerate.
1511
1512 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1513
1514         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
1515         gdbarch_fetch_tls_load_module_address.
1516         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
1517         gdbarch_fetch_tls_load_module_address_p.
1518         * gdbarch.c, gdbarch.h: Regenerate.
1519
1520 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1521
1522         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
1523         gdbarch_decr_pc_after_break.
1524         * tracepoint.c (trace_dump_command): Likewise.
1525         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1526         * linux-thread-db.c (check_event): Likewise.
1527         * linux-nat.c (cancel_breakpoints_callback): Likewise.
1528         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
1529         * frame.h: Likewise (comment).
1530         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
1531         * aix-thread.c (aix_thread_wait): Likewise.
1532         * gdbarch.c, gdbarch.h: Regenerate.
1533
1534 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1535
1536         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
1537         gdbarch_address_class_type_flags.
1538         * dwarf2read.c (read_tag_pointer_type): Likewise.
1539         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
1540         gdbarch_address_class_type_flags_p.
1541         * dwarf2read.c (read_tag_pointer_type): Likewise.
1542         * gdbarch.c, gdbarch.h: Regenerate.
1543
1544 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1545
1546         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
1547         * value.c (value_as_address): Likewise (comment).
1548         * remote-mips.c (common_breakpoint): Likewise.
1549         * regcache.c (read_pc_pid): Likewise.
1550         * printcmd.c (do_one_display): Likewise.
1551         * monitor.c (monitor_write_memory, monitor_read_memory)
1552         (monitor_insert_breakpoint): Likewise.
1553         * mips-tdep.c (heuristic_proc_start): Likewise.
1554         * infrun.c (insert_step_resume_breakpoint_at_frame)
1555         (insert_step_resume_breakpoint_at_caller): Likewise.
1556         * buildsym.c (record_line): Likewise.
1557         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
1558         (arm_get_next_pc): Likewise.
1559         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1560         (store_regs): Likewise.
1561         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1562         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
1563         * gdbarch.c, gdbarch.h: Regenerate.
1564
1565 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
1566
1567         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
1568         * tracepoint.c (scope_info): Likewise.
1569         * target.c (debug_print_register): Likewise.
1570         * stack.c (frame_info): Likewise.
1571         * sh-tdep.c (sh_register_reggroup_p): Likewise.
1572         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
1573         (sh64_media_print_registers_info)
1574         (sh64_compact_print_registers_info): Likewise.
1575         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
1576         * remote-sim.c (gdbsim_fetch_register): Likewise.
1577         * remote.c (packet_reg): Likewise (comment).
1578         * reggroups.c (default_register_reggroup_p): Likewise.
1579         * regcache.c (regcache_dump): Likewise.
1580         * printcmd.c (address_info): Likewise.
1581         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1582         * mt-dep.c (mt_registers_info): Likewise.
1583         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
1584         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
1585         (mips_read_fp_register_double, mips_print_fp_register)
1586         (mips_print_register, print_gp_register_row, mips_print_registers_info)
1587         (mips_register_sim_regno): Likewise.
1588         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
1589         * inf-ptrace.c (inf_ptrace_fetch_register)
1590         (inf_ptrace_store_register): Likewise.
1591         * infcmd.c (default_print_registers_info): Likewise.
1592         * ia64-linux-nat.c (ia64_linux_fetch_register)
1593         (ia64_linux_store_register): Likewise.
1594         * i386-linux-nat.c (fetch_register, store_register): Likewise.
1595         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1596         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1597         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
1598         (hppa_hpux_store_register): Likewise.
1599         * findvar.c (locate_var_value): Likewise.
1600         * dwarf2loc.c (locexpr_describe_location): Likewise.
1601         * dwarf2-frame.c (execute_cfa_program): Likewise.
1602         * arm-tdep.c (arm_push_dummy_call): Likewise.
1603         * arch-utils.c (legacy_register_sim_regno): Likewise.
1604         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
1605         * alpha-nat.c (fetch_osf_core_registers): Likewise.
1606         * mi/mi-main.c (mi_cmd_data_list_register_names)
1607         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
1608         (mi_cmd_data_write_register_values): Likewise.
1609         * gdbarch.c, gdbarch.h: Regenerate.
1610
1611 2007-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
1612
1613         * target-memory.c (blocks_to_erase): Correct off-by-one error.
1614
1615 2007-06-06  Vladimir Prus  <vladimir@codesourcery.com>
1616         
1617         * remote.c (process_g_packet): Don't check size.
1618         * gdbarch.sh: Remove register_bytes_ok.
1619         * gdbarch.c: Regenerated.
1620         * gdbarch.h: Regenerated.
1621         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
1622         (m68k_register_bytes_ok): Remove.
1623         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
1624         
1625 2007-06-06  Andreas Schwab  <schwab@suse.de>
1626
1627         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
1628         (destroy_addr_space_name): Define.
1629         (libunwind_load): Get address of destroy_addr_space function.
1630         (libunwind_frame_cache): Destroy unw_addr_space_t object before
1631         returning unsuccessfully.
1632         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
1633         returning.
1634         (libunwind_sigtramp_frame_sniffer): Likewise.
1635         (libunwind_get_reg_special): Likewise.
1636
1637 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1638
1639         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
1640         gdbarch_fetch_pointer_argument.
1641         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
1642         * gdbarch.c, gdbarch.h: Regenerate.
1643
1644 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1645
1646         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
1647         gdbarch_have_nonsteppable_watchpoint.
1648         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
1649         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
1650         gdbarch_cannot_step_breakpoint.
1651         * infrun.c (resume): Likewise.
1652         * gdbarch.c, gdbarch.h: Regenerate.
1653
1654 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1655
1656         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
1657         * stack.c (print_frame_args): Likewise.
1658         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
1659         * stack.c (print_args_stub, frame_info): Likewise.
1660         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
1661         * stack.c (print_args_stub, frame_info): Likewise.
1662         * gdbarch.c, gdbarch.h: Regenerate.
1663
1664 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1665
1666         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
1667         gdbarch_coff_make_msymbol_special.
1668         * coffread.c (coff_symtab_read): Likewise.
1669         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
1670         gdbarch_elf_make_msymbol_special.
1671         * elfread.c (elf_symtab_read): Likewise.
1672         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
1673         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
1674         * gdbarch.c, gdbarch.h: Regenerate.
1675
1676 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1677
1678         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
1679         gdbarch_frame_red_zone_size.
1680         * gdbarch.c, gdbarch.h: Regenerate.
1681
1682 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1683
1684         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
1685         * infcall.c (call_function_by_hand): Likewise.
1686         * gcore.c (derive_stack_segment): Likewise.
1687         * frame.c (frame_id_inner): Likewise.
1688         * arch-utils.c (core_addr_lessthan): Likewise (comment).
1689         * ada-lang.c (ensure_lval): Likewise.
1690         * gdbarch.c, gdbarch.h: Regenerate.
1691
1692 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1693
1694         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
1695         gdbarch_address_to_pointer.
1696         * findvar.c (store_typed_address): Likewise.
1697         * gdbtypes.c (make_pointer_type): Likewise (comment).
1698         * procfs.c (procfs_address_to_host_pointer): Likewise.
1699         * std-regs.c (value_of_builtin_frame_reg): Likewise.
1700         (value_of_builtin_frame_fp_reg): Likewise.
1701         (value_of_builtin_frame_pc_reg): Likewise.
1702         * utils.c (paddress): Likewise (comment).
1703         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1704         gdbarch_pointer_to_address.
1705         * findvar.c (extract_typed_address): Likewise.
1706         * gdbtypes.c (make_pointer_type): Likewise (comment).
1707         * valops.c (value_cast): Likewise (comment).
1708         * gdbarch.c, gdbarch.h: Regenerate.
1709
1710 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
1711
1712         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1713         * infrun.c (handle_inferior_event): Likewise.
1714         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1715         gdbarch_get_longjmp_target_p.
1716         * breakpoint.c (breakpoint_re_set): Likewise.
1717         * infrun.c (handle_inferior_event): Likewise.
1718         * gdbarch.c, gdbarch.h: Regenerate.
1719
1720 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
1721
1722         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1723         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1724         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1725         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1726         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1727         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1728         find_stub_with_shl_get, cover_find_stub_with_shl_get,
1729         initialize_hp_cxx_exception_support, child_enable_exception_callback,
1730         current_ex_event, child_get_current_exception_event): Remove.
1731         (hppa_hpux_inferior_created): Remove.
1732         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1733
1734         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1735         (deprecated_exception_support_initialized): Remove.
1736         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1737         (deprecated_exception_support_initialized): Remove.
1738         (breakpoint_init_inferior): Remove handling of non-zero
1739         deprecated_exception_catchpoints_are_fragile.
1740
1741         * symtab.h (deprecated_hp_som_som_object_present): Remove.
1742         * symtab.c (deprecated_hp_som_som_object_present): Remove.
1743         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1744         deprecated_hp_som_som_object_present.
1745         * eval.c (evaluate_subexp_standard): Likewise.
1746         * valops.c (value_cast): Likewise.
1747
1748         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1749         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1750         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1751
1752 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
1753
1754         * objfiles.h (ImportEntry, ExportEntry): Remove types.
1755         (struct objfile): Remove import_list, import_list_size,
1756         export_list, export_list_size members.
1757         (is_in_import_list): Remove prototype.
1758         * objfiles.c (is_in_import_list): Remove.
1759         * somread.c (init_import_symbols, init_export_symbols): Remove.
1760         (som_symfile_read): Do not call init_import_symbols.  Do not
1761         set objfile->export_list and objfile->export_list_size.
1762
1763 2007-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
1764
1765         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1766         Use the original objfile if necessary.
1767
1768 2007-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
1769
1770         * defs.h (ldirname): New prototype.
1771         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1772         missing.
1773         * utils.c (ldirname): New function.
1774         * xml-tdesc.c (file_read_description_xml): Use ldirname.
1775
1776 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
1777
1778         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1779
1780 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
1781
1782         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1783
1784 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
1785
1786         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1787
1788 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
1789
1790         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1791         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1792         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1793         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1794         (ppc_linux_in_sigtramp, insn_is_sigreturn,
1795         ppc_linux_at_sigtramp_return_path): Remove.
1796
1797 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1798
1799         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1800         (xtensa_register_write_masked, xtensa_register_read_masked)
1801         (xtensa_extract_return_value, xtensa_store_return_value
1802         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
1803         TARGET_BYTE_ORDER by gdbarch_byte_order.
1804         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1805         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1806         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1807         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1808         (sh64_push_dummy_call, sh64_extract_return_value)
1809         (sh64_store_return_value, sh64_register_convert_to_virtual)
1810         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1811         (sh64_pseudo_register_write, sh64_do_fp_register)
1812         (sh64_frame_prev_register): Likewise.
1813         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1814         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1815         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1816         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1817         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1818         * ppc-linux-nat.c (store_register): Likewise.
1819         * nto-tdep.c (nto_find_and_open_solib)
1820         (nto_init_solib_absolute_prefix): Likewise.
1821         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1822         (mips_convert_register_p, mips_eabi_push_dummy_call)
1823         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1824         (mips_o32_push_dummy_call, mips_o32_return_value)
1825         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
1826         (mips_read_fp_register_single, mips_read_fp_register_double)
1827         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
1828         (mips_breakpoint_from_pc): Likewise.
1829         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
1830         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
1831         (mips_linux_o32_sigframe_init): Likewise.
1832         * m32r-tdep.c (m32r_memory_insert_breakpoint)
1833         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
1834         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
1835         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
1836         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1837         * coffread.c (process_coff_symbol): Likewise.
1838         * arm-tdep.c (convert_from_extended, convert_to_extended)
1839         (gdb_print_insn_arm): Likewise.
1840
1841 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1842
1843         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
1844         * i386-tdep.c (i386_dbx_reg_to_regnum)
1845         (i386_svr4_reg_to_regnum): Likewise.
1846         * inf-ptrace.c (inf_ptrace_fetch_registers)
1847         (inf_ptrace_store_registers): Likewise.
1848         * corelow.c (get_core_registers): Likewise.
1849         * i386-linux-nat.c (supply_gregset, fill_gregset)
1850         (i386_linux_fetch_inferior_registers)
1851         (i386_linux_store_inferior_registers): Likewise.
1852         * remote.c (init_remote_state,packet_reg_from_regnum)
1853         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
1854         (remote_prepare_to_store,store_registers_using_G)
1855         (remote_store_registers,remote_arch_state): Likewise.
1856         * tracepoint.c (encode_actions): Likewise.
1857         * mi/mi-main.c (mi_cmd_data_list_register_names)
1858         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1859         (mi_cmd_data_write_register_values): Likewise.
1860         * tui/tui-regs.c (tui_show_register_group)
1861         (tui_show_register_group): Likewise.
1862         * xtensa-tdep.h (FP_ALIAS): Likewise.
1863         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
1864         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
1865         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
1866         * win32-nat.c (do_win32_fetch_inferior_registers)
1867         (do_win32_store_inferior_registers,fetch_elf_core_registers
1868         * user-regs.h: Likewise (comment).
1869         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1870         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1871         * target-descriptions.h: Likewise (comment).
1872         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
1873         * target.c (debug_print_register): Likewise.
1874         * stack.c (frame_info): Likewise.
1875         * stabsread.c (define_symbol): Likewise.
1876         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
1877         (sh64_media_print_registers_info)
1878         (sh64_compact_print_registers_info): Likewise.
1879         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1880         * rs6000-nat.c (fetch_register,store_register): Likewise.
1881         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
1882         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
1883         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
1884         * remote-m32r-sdi.c (m32r_fetch_registers)
1885         (m32r_store_registers): Likewise.
1886         * reggroups.c (default_register_reggroup_p): Likewise.
1887         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
1888         (regcache_restore,regcache_dump): Likewise.
1889         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
1890         * mips-tdep.c (mips_xfer_register,mips_register_name)
1891         (mips_register_reggroup_p,mips_pseudo_register_read)
1892         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
1893         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
1894         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
1895         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
1896         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
1897         (print_gp_register_row,mips_print_registers_info)
1898         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1899         (mips_register_sim_regno): Likewise.
1900         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1901         (mips_linux_n32n64_sigframe_init): Likewise.
1902         * mips-linux-nat.c (mips_linux_register_addr)
1903         (mips64_linux_register_addr): Likewise.
1904         * findvar.c (value_of_register): Likewise.
1905         * infcmd.c (default_print_registers_info,registers_info)
1906         (print_vector_info,print_float_info): Likewise.
1907         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
1908         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1909         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1910         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
1911         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1912         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
1913         (ia64_cannot_store_register,ia64_linux_fetch_registers)
1914         (ia64_linux_store_registers): Likewise.
1915         * hpux-thread.c (hpux_thread_fetch_registers)
1916         (hpux_thread_store_registers): Likewise.
1917         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
1918         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
1919         (h8300_register_type): Likewise.
1920         * dwarf2-frame.c (dwarf2_frame_cache)
1921         (dwarf2_frame_state_alloc_regs): Likewise.
1922         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
1923         (cris_cannot_store_register,crisv32_cannot_fetch_register)
1924         (crisv32_cannot_store_register,cris_register_name): Likewise.
1925         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1926         * arch-utils.c (legacy_register_sim_regno)
1927         (legacy_virtual_frame_pointer): Likewise.
1928         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
1929         * arm-tdep.h: Likewise (comment).
1930         * frv-tdep.c (frv_register_sim_regno): Likewise.
1931         * m68klinux-nat.c (old_fetch_inferior_registers)
1932         (old_store_inferior_registers): Likewise.
1933         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1934         * irix5-nat.c (fetch_core_registers): Likewise.
1935         * hppa-tdep.c (hppa_frame_cache): Likewise.
1936         * hppa-linux-nat.c (hppa_linux_register_addr)
1937         (hppa_linux_fetch_inferior_registers)
1938         (hppa_linux_store_inferior_registers): Likewise.
1939         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
1940         (hppa_hpux_store_inferior_registers): Likewise.
1941         * amd64-nat.c (amd64_native_gregset_reg_offset)
1942         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
1943         * dbug-rom.c (dbug_regname): Likewise.
1944         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
1945         (HARD_PAGE_REGNUM (comment)): Likewise.
1946         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
1947         * i386-tdep.c (i386_dbx_reg_to_regnum)
1948         (i386_svr4_reg_to_regnum): Likewise.
1949         * mi/mi-main.c (mi_cmd_data_list_register_names)
1950         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1951         (mi_cmd_data_write_register_values): Likewise.
1952         * gdbarch.c, gdbarch.h: Regenerate.
1953         * tui/tui-regs.c (tui_show_register_group): Likewise.
1954         * xtensa-tdep.h (FP_ALIAS): Likewise.
1955         * user-regs.h: Likewise (comment).
1956         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1957         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1958         * target-descriptions.h: Likewise (comment).
1959         * target.c (debug_print_register): Likewise.
1960         * stack.c (frame_info): Likewise.
1961         * stabsread.c (define_symbol): Likewise.
1962         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
1963         (sh64_compact_print_registers_info): Likewise.
1964         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1965         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
1966         (regcache_restore,regcache_dump): Likewise.
1967         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
1968         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1969         (mips_stab_reg_to_regnum): Likewise.
1970         * findvar.c (value_of_register): Likewise.
1971         * infcmd.c (default_print_registers_info,registers_info)
1972         (print_vector_info,print_float_info): Likewise.
1973         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1974         * h8300-tdep.c (h8300_register_type): Likewise.
1975         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1976         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
1977         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
1978         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
1979         * parse.c: Remove comment.
1980         * gdbarch.c, gdbarch.h: Regenerate
1981
1982 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
1983
1984         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
1985         gdbarch_cannot_fetch_register.
1986         * alpha-nat.c (fetch_osf_core_registers): Likewise.
1987         * hppa-linux-nat.c (fetch_register): Likewise.
1988         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1989         * m68klinux-nat.c (fetch_register): Likewise.
1990         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
1991         Likewise.
1992         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
1993         gdbarch_cannot_store_register.
1994         * hppa-linux-nat.c (store_register): Likewise.
1995         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
1996         * regcache.c (regcache_raw_write): Likewise.
1997         * m68klinux-nat.c (store_register): Likewise.
1998         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
1999         * gdbarch.c, gdbarch.h: Regenerate.
2000
2001 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
2002
2003         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
2004         * gdbarch.c, gdbarch.h: Regenerate.
2005
2006 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
2007
2008         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
2009         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2010         * gdbarch.c, gdbarch.h: Regenerate.
2011
2012 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
2013
2014         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
2015         * ax-gdb.c (gen_bitfield_ref): Likewise.
2016         * mi/mi-main.c (get_register): Likewise.
2017         * findvar.c (default_value_from_register, extract_signed_integer)
2018         (extract_unsigned_integer, extract_long_unsigned_integer)
2019         (store_signed_integer, store_unsigned_integer): Likewise.
2020         * regcache.c (regcache_dump): Likewise.
2021         * value.c (lookup_internalvar, value_of_internalvar)
2022         (set_internalvar): Likewise.
2023         * defs.h: Likewise.
2024         * valprint.c (print_binary_chars, print_octal_chars)
2025         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
2026         * infcmd.c (default_print_registers_info): Likewise.
2027         * arch-utils.c (selected_byte_order, show_endian): Likewise.
2028         * stabsread.c (define_symbol): Likewise.
2029         * doublest.c (floatformat_from_length, floatformat_from_type)
2030         (extract_typed_floating, store_typed_floating): Likewise.
2031         * gdbarch.c, gdbarch.h: Regenerate.
2032
2033 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
2034
2035         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
2036         gdbarch_call_dummy_location.
2037         * infcall.c (call_function_by_hand): Likewise.
2038         * inferior.h: Change comment.
2039         * arch-utils.c: Change comment.
2040         * gdbarch.c, gdbarch.h: Regenerate.
2041
2042 2007-05-28  Joel Brobecker  <brobecker@adacore.com>
2043
2044         * solib-aix5.c: Delete.
2045         * Makefile.in (solib-aix5.o): Delete rule.
2046
2047 2007-05-23  Daniel Jacobowitz  <dan@codesourcery.com>
2048
2049         * breakpoint.h (enum bpstat_what_main_action): Remove
2050         BPSTAT_WHAT_THROUGH_SIGTRAMP.
2051         * infrun.c (process_event_stop_test): Do not check for it.
2052
2053 2007-05-22  Chris Dearman  <chris@mips.com>
2054             Maciej W. Rozycki  <macro@mips.com>
2055
2056         * ser-unix.c (show_serial_hwflow): New function.
2057         (hardwire_raw): Add hardware flow control support.
2058         (_initialize_ser_hardwire): Add "set/show remoteflow".
2059         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
2060         * NEWS: Document the new command.
2061
2062 2007-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
2063
2064         * config/i386/tm-linux.h (sys_quotactl): Do not define.
2065         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
2066         define for i[[3456]]86-*-linux* native configurations.
2067         * config.in, configure: Regenerate.
2068
2069 2007-05-19  Joel Brobecker  <brobecker@adacore.com>
2070
2071         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
2072         a core file. Add comment in the function description.
2073
2074 2007-05-18  Caroline Tice  <ctice@apple.com>
2075
2076         * c-valprint.c (c_value_print):  If the initialized field of the
2077         value struct is 0, print out "[uninitialized]" before the value.
2078         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
2079         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
2080         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
2081         ctx->initialized appropriately. Verify no location op follows
2082         DW_OP_GNU_uninit.
2083         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
2084         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
2085         set_value_initialized.
2086         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
2087         (decode_locdesc): Add case for DW_OP_GNU_uninit.
2088         * value.c (struct value):  New field, initialized.
2089         (allocate_value): Initialize new field.
2090         (set_value_initialized): New function.
2091         (value_initialized): New function.
2092         * value.h (value_initialized): New extern declaration.
2093         (set_value_initialized): Likewise.
2094         
2095 2007-05-18  Caroline Tice  <ctice@apple.com>
2096
2097         * MAINTAINERS (Write After Approval): Add self.
2098         
2099 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
2100
2101         * gdbtypes.c (make_reference_type): Preserve the type chain
2102         and set the length of all the variants of the pointer type.
2103
2104 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
2105
2106         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
2107         and set the length of all the variants of the pointer type.
2108
2109 2007-05-17  Maciej W. Rozycki  <macro@mips.com>
2110
2111         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
2112         comment.
2113         (mips_o64_push_dummy_call): Reformat a comment.
2114
2115 2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>
2116
2117         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
2118         (score_prologue_frame_base_address): Return fp to keep gdb print
2119         local variables correctly when debugging information is stabs.
2120
2121         (score_analyze_prologue): For software watchpoint, fetch all the
2122         instructions from range [startaddr, pc] once and identify them locally
2123         to reduce memory access.
2124         (score_malloc_and_get_memblock, score_free_memblock)
2125         (score_adjust_memblock_ptr): New functions.
2126         (score_fetch_inst): Fetch single instruction or mutiple instructions.
2127
2128         (score_target_can_use_watch, score_stopped_by_watch)
2129         (score_target_insert_watchpoint, score_target_remove_watchpoint)
2130         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
2131         New functions for remote & local hw-watchpoint and hw-breakpoint.
2132
2133 2007-05-16  Alfred M. Szmidt  <ams@gnu.org>
2134
2135         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
2136         declarations as well.
2137
2138 2007-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
2139
2140         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
2141         * config/arm/tm-embed.h: Delete file.
2142
2143         * arm-tdep.h (arm_software_single_step): Declare.
2144         * arm-tdep.c (arm_software_single_step): Make global.
2145         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
2146         from here to ...
2147         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
2148         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
2149         * armobsd-tdep.c (armobsd_init_abi): ... here ...
2150         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
2151
2152         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
2153         allow defines to be overriden by TM file.
2154         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
2155         change default to {0xbe,0xbe}.
2156         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
2157         arm_obsd_thumb_be_breakpoint): New global variables.
2158         (armobsd_init_abi): Override tdep->thumb_breakpoint and
2159         tdep->thumb_breakpoint_size.
2160         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
2161         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
2162         tdep->thumb_breakpoint_size.
2163
2164         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
2165
2166 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
2167
2168         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
2169         saved-gpreg-size".
2170
2171         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
2172         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
2173         (mips_stack_argsize_string, mips_stack_argsize): Delete.
2174         (mips_abi_regsize): Simplify.
2175         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2176         (mips_n32n64_return_value, mips_o32_push_dummy_call)
2177         (mips_o32_return_value, mips_o64_push_dummy_call)
2178         (mips_o64_return_value): Propogate constant register sizes.  Use the
2179         ABI register size instead of mips_stack_argsize.
2180         (mips_dump_tdep): Don't print mips_stack_argsize.
2181         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
2182         settings.
2183
2184 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
2185
2186         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
2187         * config/mips/tm-linux.h: Delete.
2188         * mips-linux-tdep.c (mips_svr4_so_ops): New.
2189         (mips_linux_in_dynsym_resolve_code): Make static.  Use
2190         svr4_in_dynsym_resolve_code.
2191         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
2192         set_solib_ops.
2193         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
2194         global.
2195         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
2196         * Makefile.in (mips-linux-tdep.o): Update.
2197         * solib.c (set_solib_ops): New.
2198         (current_target_so_ops): Update comment.
2199         * solib.h (set_solib_ops): New prototype.
2200
2201 2007-05-16  Chris Dearman  <chris@mips.com>
2202
2203         * printcmd.c (do_examine): Fix typos in a comment.
2204
2205 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
2206
2207         * configure.ac: Allow sysroots to be relocated under $prefix as
2208         well as $exec_prefix.
2209         * configure: Regenerate.
2210
2211 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
2212
2213         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
2214         (offsetof): Do not define.
2215         (find_stub_with_shl_get): Use numerical value 3 instead of
2216         symbolic value TYPE_PROCEDURE.
2217
2218 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
2219
2220         * gdb_proc_service.h (paddr_t): Delete typedef.
2221         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
2222         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
2223         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
2224         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
2225         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
2226         * Makefile.in (proc-service.o): Update.
2227
2228 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
2229
2230         * Makefile.in (mips-tdep.o): Update.
2231         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
2232         unwinder.
2233
2234 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
2235
2236         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
2237         instead of store_typed_address.
2238         * value.c (pack_long): New.
2239         (value_from_longest): Use it.
2240         * value.h (pack_long): New prototype.
2241
2242 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
2243
2244         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
2245         DW_EH_PE_signed if appropriate.
2246
2247 2007-05-14  Paul Brook  <paul@codesourcery.com>
2248             Daniel Jacobowitz  <dan@codesourcery.com>
2249
2250         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
2251         function.
2252         (dwarf_decode_lines): Check for line info without a file.
2253
2254 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
2255
2256         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
2257         as hexadecimal.
2258
2259 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
2260
2261         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
2262         STRUCTOP_STRUCT.
2263         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
2264         STRUCTOP_STRUCT.
2265         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
2266
2267 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
2268
2269         * gdbarch.sh (read_sp): Remove.
2270         * gdbarch.c, gdbarch.h: Regenerate.
2271         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
2272
2273         * avr-tdep.c (avr_read_sp): Remove.
2274         (avr_unwind_sp): New function.
2275         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
2276         * mips-tdep.c (mips_read_sp): Remove.
2277         (mips_unwind_sp): New function.
2278         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
2279         * score-tdep.c (score_read_unsigned_register): Remove.
2280         (score_read_sp): Remove.
2281         (score_unwind_sp): New function.
2282         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
2283
2284 2007-05-14  Maxim Grigoriev  <maxim2405@gmail.com>
2285
2286         * buildsym.c (start_subfile): Handle absolute pathnames
2287         while comparing subfile names.
2288
2289 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
2290
2291         * hppa-hpux-tdep.c: Include "regcache.h".
2292         * hppa-linux-tdep.c: Likewise.
2293         * hppa-tdep.c: Include "gdb_stdint.h".
2294         (find_unwind_entry): Cast host pointer to uintptr_t before passing
2295         it to paddr_nz.
2296         * Makefile.in: Update dependencies.
2297
2298 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
2299
2300         * blockframe.c: Remove obsolete comments.
2301         * alpha-nat.c (fetch_osf_core_registers): Update comment.
2302         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
2303         * hppa-tdep.h (enum hppa_regnum): Likewise.
2304         * mips-tdep.h: Likewise.
2305         * m68hc11-tdep.c: Likewise.
2306
2307 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
2308
2309         * inferior.h (read_sp): Remove prototype.
2310         * regcache.c (read_sp): Remove.
2311         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
2312         * infcall.c (call_function_by_hand): Likewise.
2313         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
2314         of calling read_sp.
2315         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2316
2317 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2318
2319         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
2320         instead of read_register and read_register_pid.
2321
2322         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
2323         argument instead of PTID.  Use regcache functions instead of
2324         read_register_pid.
2325         (ia64_linux_insert_watchpoint): Update call.
2326         (ia64_linux_stopped_data_address): Use regcache functions
2327         instead of read_register_pid and write_register_pid.
2328
2329 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2330
2331         * libunwind-frame.h (struct regcache): Add forward declaration.
2332         (libunwind_get_reg_special): Add REGCACHE argument.
2333         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
2334         argument.  Pass it to unw_init_remote_p.
2335
2336         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
2337         libunwind_get_reg_special.
2338         (ia64_access_reg): Remove "write" case.
2339         (ia64_access_fpreg): Likewise.  Read from next_frame passed
2340         as callback argument instead of from current_regcache.
2341         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
2342         passed as callback argument instead of from current_regcache.
2343         (ia64_access_rse_fpreg): New function.
2344         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
2345
2346 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2347
2348         * NEWS: Mention SPU overlay support.
2349
2350 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2351
2352         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
2353
2354 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2355
2356         * breakpoint.c (remove_breakpoint): Do not remove software
2357         breakpoints in unmapped overlay sections.
2358
2359 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2360
2361         * spu-tdep.c: Include "observer.h".
2362         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
2363         (spu_overlay_data): New variable.
2364         (struct spu_overlay_table): New type.
2365         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
2366         spu_overlay_new_objfile): New functions.
2367         (spu_gdbarch_init): Install spu_overlay_update.
2368         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
2369         allocate spu_overlay_data objfile data.
2370
2371 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2372
2373         * gdbarch.sh (overlay_update): New gdbarch function.
2374         (struct obj_section): Add forward declaration.
2375         * gdbarch.c, gdbarch.h: Regenerate.
2376
2377         * symfile.c (simple_overlay_update): Make global.
2378         (target_overlay_update): Remove variable.
2379         (overlay_is_mapped): Call gdbarch_overlay_update instead of
2380         target_overlay_update.
2381         (overlay_load_command): Likewise.
2382         * symfile.h (struct obj_section): Add forward declaration.
2383         (simple_overlay_update): Add prototype.
2384
2385         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
2386
2387 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2388
2389         * observer.sh: Add "struct objfile" forward declaration.
2390         * target.h (deprecated_target_new_objfile_hook): Remove.
2391         * symfile.c (deprecated_target_new_objfile_hook): Remove.
2392         (clear_symtab_users): Call observer_notify_new_objfile.
2393         (symbol_file_add_with_addrs_or_offsets): Likewise.
2394         * rs6000-nat.c: Include "observer.h".
2395         (vmap_ldinfo): Call observer_notify_new_objfile.
2396         (xcoff_relocate_core): Likewise.
2397         * remote.c (remote_new_objfile_chain): Remove.
2398         (remote_new_objfile): Do not call remote_new_objfile_chain.
2399         (_initialize_remote): Use observer_attach_new_objfile.
2400         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
2401         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
2402         (_initialize_tui_hooks): Use observer_attach_new_objfile.
2403         * aix-thread.c: Include "observer.h".
2404         (target_new_objfile_chain): Remove.
2405         (new_objfile): Do not call target_new_objfile_chain.
2406         (_initialize_aix_thread): Use observer_attach_new_objfile.
2407         * hpux-thread.c: Include "observer.h"
2408         (target_new_objfile_chain): Remove.
2409         (hpux_thread_new_objfile): Make static.  Do not call
2410         target_new_objfile_chain.
2411         (_initialize_hpux_thread): Use observer_attach_new_objfile.
2412         * linux-thread-db.c: Include "observer.h".
2413         (target_new_objfile_chain): Remove.
2414         (thread_db_new_objfile): Do not call target_new_objfile_chain.
2415         (_initialize_thread_db): Use observer_attach_new_objfile.
2416         * sol-thread.c: Include "observer.h".
2417         (target_new_objfile_chain): Remove.
2418         (sol_thread_new_objfile): Make static.  Do not call
2419         target_new_objfile_chain.
2420         (_initialize_sol_thread): Use observer_attach_new_objfile.
2421         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
2422         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
2423         $(observer_h).
2424
2425 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2426
2427         * gdbarch.sh (remote_translate_xfer_address): Remove.
2428         * gdbarch.h, gdbarch.c: Regenerate.
2429         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
2430         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
2431         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
2432         call gdbarch_remote_translate_xfer_address.
2433         * frv-tdep.c (frv_gdbarch_init): Do not call
2434         set_gdbarch_remote_translate_xfer_address.
2435         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
2436         (ia64_gdbarch_init): Do not install it.
2437
2438 2007-05-11  Bob Wilson  <bob.wilson@acm.org>
2439
2440         * NEWS: Mention change in handling the -tui option.
2441
2442 2007-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
2443
2444         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
2445         typo.
2446
2447 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
2448
2449         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
2450         (breakpoint_inserted_here_p): Call it.
2451         (software_breakpoint_inserted_here_p): Likewise.
2452
2453 2007-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
2454
2455         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
2456         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
2457         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
2458         (inf_ptrace_store_register): Likewise.
2459         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
2460         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
2461
2462         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
2463
2464         * linux-nat.c (linux_trad_target): Adapt parameter list.
2465         * linux-nat.h (linux_trad_target): Likewise.
2466
2467         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
2468
2469         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
2470         (mips_linux_cannot_store_register): Likewise.
2471         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
2472         Return (CORE_ADDR) -1 for registers that cannot be fetched or
2473         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
2474         (mips64_linux_register_addr): Likewise.
2475         (mips_linux_register_u_offset): Adapt parameter list.  Pass
2476         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
2477
2478         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2479         * config/mips/nm-linux.h: Delete file.
2480
2481 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
2482
2483         * remote.c (remote_detach): Error out if remote can't detach.
2484
2485 2007-05-10  Luis Machado  <luisgpm@br.ibm.com>
2486
2487         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
2488         instruction's opcode in the "opcode" variable and declares new
2489         variable "closing_insn".
2490
2491 2007-05-10  Chris Dearman  <chris@mips.com>
2492             Maciej W. Rozycki  <macro@mips.com>
2493
2494         * cli/cli-setshow.c (do_setshow_command): Remove trailing
2495         whitespace when setting a var_filename.
2496
2497 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
2498         
2499         * main.c (captured_main): Recognize -tui option and print an error
2500         message when the TUI is not configured.
2501         
2502 2007-05-09  Andreas Schwab  <schwab@suse.de>
2503
2504         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
2505         set removed members.
2506         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2507
2508 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
2509
2510         * gdbarch.sh (deprecated_store_struct_return): Remove.
2511         * gdbarch.c, gdbarch.h: Regenerate.
2512         * frv-tdep.c (frv_store_struct_return): Remove.
2513         (frv_gdbarch_init): Do not install it.
2514
2515 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
2516
2517         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
2518         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
2519         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
2520
2521 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
2522
2523         * spu-linux-nat.c: Include "gdb_stdint.h".
2524         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
2525         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
2526         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
2527         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
2528         (spu_child_wait): Mark up string for translation.
2529
2530 2007-05-08  Paul Gilliam  <pgilliam@us.ibm.com>
2531             Luis Machado  <luisgpm@br.ibm.com>
2532
2533         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
2534         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
2535         BC_INSTRUCTION): Define.
2536         (deal_with_atomic_sequence): New function.
2537         (rs6000_software_single_step): Call deal_with_atomic_sequence.
2538         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
2539         gdbarch_software_single_step routine.
2540
2541 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
2542
2543         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
2544         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
2545         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
2546         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
2547         spu_child_post_attach, spu_fetch_inferior_registers,
2548         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
2549         memory addresses as ULONGEST, not CORE_ADDR.
2550
2551 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
2552
2553         * gdbarch.sh: Add skip_permanent_breakpoint callback.
2554         * gdbarch.h, gdbarch.c: Regenerate.
2555
2556         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
2557         (resume): Call gdbarch_skip_permanent_breakpoint instead of
2558         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
2559
2560         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
2561         Add REGCACHE argument.  Use it instead of read/write_register.
2562         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
2563
2564         * config/pa/tm-hppah.h: Delete file.
2565         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
2566         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
2567
2568 2007-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
2569
2570         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
2571         * NEWS: Mention improved C++ thunk support.
2572         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
2573         * cp-abi.c (cplus_skip_trampoline): New.
2574         * cp-abi.h (cplus_skip_trampoline): New prototype.
2575         (struct cp_abi_ops): Add skip_trampoline member.
2576         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
2577         (init_gnuv3_ops): Set skip_trampoline.
2578
2579 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
2580
2581         * rs6000-tdep.c (struct frame_extra_info): Delete.
2582
2583 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
2584
2585         * linux-thread-db.c: Update some FIXME comments.
2586         (thread_db_xfer_partial): Delete.
2587         (init_thread_db_ops): Do not set to_xfer_partial.
2588
2589 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2590
2591         * inftarg.c, infptrace.c: Remove files.
2592         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
2593         (inftarg.o, infptrace.o): Remove rules.
2594         * gdbcore.h (register_addr): Remove prototype.
2595         * inferior.h (kill_inferior, store_inferior_registers,
2596         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
2597         call_ptrace, pre_fork_inferior): Remove prototypes.
2598         * target.h (child_xfer_memory, child_pid_to_exec_file, 
2599         child_core_file_to_sym_file, child_post_attach,
2600         child_post_startup_inferior, child_acknowledge_created_inferior,
2601         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
2602         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
2603         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
2604         child_follow_fork, child_reported_exec_events_per_exec_call,
2605         child_has_exited, child_thread_alive): Remove prototypes.
2606
2607 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2608
2609         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
2610         (sparc_store_inferior_registers): Likewise.
2611         * sparc-nat.c (fetch_inferior_registers): Rename to ...
2612         (sparc_fetch_inferior_registers): ... this.
2613         (store_inferior_registers): Rename to ...
2614         (sparc_store_inferior_registers): ... this.
2615         (sparc_target): Update callback names.
2616         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
2617         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
2618
2619 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2620
2621         * linux-nat.c (child_post_attach): Rename to ...
2622         (linux_child_post_attach): ... this.  Make static.
2623         (child_follow_fork): Rename to ...
2624         (linux_child_follow_fork): ... this.  Make static.
2625         (child_insert_fork_catchpoint): Rename to ...
2626         (linux_child_insert_fork_catchpoint): ... this.  Make static.
2627         (child_insert_vfork_catchpoint): Rename to ...
2628         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
2629         (child_insert_exec_catchpoint): Rename to ...
2630         (linux_child_insert_exec_catchpoint): ... this.  Make static.
2631         (child_pid_to_exec_file): Rename to ...
2632         (linux_child_pid_to_exec_file): ... this.  Make static.
2633         Add prototype.
2634         (linux_handle_extended_wait): Update call.
2635         (linux_xfer_partial): Update callback routine names.
2636
2637 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2638
2639         * configure.host (alpha*-*-osf[12]*): Remove support.
2640         * NEWS: Mention removed configurations.
2641
2642         * config/alpha/alpha-osf1.mh: Delete file.
2643         * config/alpha/alpha-osf2.mh: Delete file.
2644         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
2645         and infptrace.o.
2646         * config/alpha/nm-osf.h: Delete file.
2647         * config/alpha/nm-osf2.h: Delete file.
2648         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
2649         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
2650         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
2651
2652         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
2653         (register_addr, kernel_u_size): Remove.
2654         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
2655
2656 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2657
2658         * regcache.c (regcache_invalidate): New function.
2659         (register_cached): Remove.
2660         (set_register_cached): Remove.
2661         (deprecated_registers_fetched): Remove.
2662         (registers_changed): Use regcache_invalidate instead
2663         of set_register_cached.
2664         (regcache_raw_read): Update comment.
2665
2666         * regcache.h (regcache_invalidate): Add prototype.
2667         (register_cached): Remove.
2668         (set_register_cached): Remove.
2669         (deprecated_registers_fetched): Remove.
2670
2671         * findvar.c (value_of_register): Do not call register_cached.
2672         * frame.c (frame_register): Likewise.
2673         * tui/tui-regs.c (tui_get_register): Likewise.
2674
2675         * remote.c (fetch_register_using_p): Do not call set_register_cached.
2676         (process_g_packet): Likewise.
2677         (remote_fetch_registers): Likewise.
2678         * remote-sim.c (gdbsim_fetch_register): Likewise.
2679         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
2680         by regcache_invalidate.
2681         (mt_pseudo_register_write): Likewise.
2682         * sh-tdep.c (sh_pseudo_register_write): Likewise.
2683
2684         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
2685         call by loop over regcache_raw_supply (..., NULL).
2686
2687 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2688
2689         * target.h (struct target_ops): Add REGCACHE parameter to
2690         to_prepare_to_store.
2691         (target_prepare_to_store): Likewise.
2692         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
2693         (update_current_target): Adapt prepare_to_store de_fault rule.
2694
2695         * regcache.c (regcache_raw_write): Pass regcache to
2696         target_prepare_to_store.
2697
2698         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
2699         Do not call CHILD_PREPARE_TO_STORE.
2700         * gnu-nat.c (gnu_prepare_to_store): Likewise.
2701         * procfs.c (procfs_prepare_to_store): Likewise.
2702
2703         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2704         * go32-nat.c (go32_prepare_to_store): Likewise.
2705         * monitor.c (monitor_prepare_to_store): Likewise.
2706         * nto-procfs.c (procfs_prepare_to_store): Likewise.
2707         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2708         * remote-mips.c (mips_prepare_to_store): Likewise.
2709         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2710         * win32-nat.c (win32_prepare_to_store): Likewise.
2711
2712         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2713         Use it instead of current_regcache.
2714
2715         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2716         parameter.  Pass it on to next target.
2717         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2718
2719 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2720
2721         * target.h (struct regcache): Add forward declaration.
2722         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2723         and to_store_registers target operations.
2724         (target_fetch_registers, target_store_registers): Update.
2725
2726         * regcache.c (regcache_raw_read): Replace register_cached by
2727         regcache_valid_p.  Pass regcache to target_fetch_registers.
2728         (regcache_raw_write): Pass regcache to target_store_registers.
2729
2730         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2731         store_regs, store_wmmx_regs): Replace register_cached by
2732         regcache_valid_p.
2733
2734         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2735         to target_fetch_registers calls.
2736         * corelow.c (core_open): Likewise.
2737         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2738         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2739         ps_lsetfpregs): Likewise.
2740         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2741         ps_lsetfpregs): Likewise.
2742         * win32-nat.c (win32_resume): Likewise.
2743         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2744         to target_store_registers call.
2745         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2746
2747         * inferior.h (store_inferior_registers): Update prototype.
2748         (fetch_inferior_registers): Likewise.
2749         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2750         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2751         Update function pointer signatures.
2752
2753         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2754         use it instead of current_regcache, update calls.
2755         (aix_thread_store_registers): Likewise.
2756         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2757         (alphabsd_store_inferior_registers): Likewise.
2758         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2759         (amd64bsd_store_inferior_registers): Likewise.
2760         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2761         (amd64_linux_store_inferior_registers): Likewise.
2762         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2763         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2764         fetch_wmmx_regs, store_wmmx_regs): Likewise.
2765         (arm_linux_fetch_inferior_registers): Likewise.
2766         (arm_linux_store_inferior_registers): Likewise.
2767         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2768         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2769         (store_register, store_regs, store_fp_register, store_fp_regs,
2770         armnbsd_store_registers): Likewise.
2771         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2772         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2773         (bsd_uthread_store_registers): Likewise.
2774         * corelow.c (get_core_registers): Likewise.
2775         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2776         go32_store_registers): Likewise.
2777         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2778         (hppabsd_store_registers): Likewise.
2779         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2780         (hppa_hpux_fetch_inferior_registers): Likewise.
2781         (hppa_hpux_store_register): Likewise.
2782         (hppa_hpux_store_inferior_registers): Likewise.
2783         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2784         (hppa_linux_fetch_inferior_registers): Likewise.
2785         (hppa_linux_store_inferior_registers): Likewise.
2786         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2787         (hpux_thread_store_registers): Likewise.
2788         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2789         (i386bsd_store_inferior_registers): Likewise.
2790         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2791         gnu_store_registers): Likewise.
2792         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2793         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2794         Likewise.
2795         (i386_linux_fetch_inferior_registers): Likewise.
2796         (i386_linux_store_inferior_registers): Likewise.
2797         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2798         (ia64_linux_fetch_registers): Likewise.
2799         (ia64_linux_store_register): Likewise.
2800         (ia64_linux_store_registers): Likewise.
2801         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2802         (inf_child_store_inferior_registers): Likewise.
2803         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2804         (inf_ptrace_fetch_registers): Likewise.
2805         (inf_ptrace_store_register): Likewise.
2806         (inf_ptrace_store_registers): Likewise.
2807         * infptrace.c (fetch_register, store_register): Likewise.
2808         (fetch_inferior_registers, store_inferior_registers): Likewise.
2809         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2810         (m32r_linux_fetch_inferior_registers): Likewise.
2811         (m32r_linux_store_inferior_registers): Likewise.
2812         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2813         (m68kbsd_store_inferior_registers): Likewise.
2814         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2815         store_register, old_store_inferior_registers, fetch_regs, store_regs,
2816         fetch_fpregs, store_fpregs): Likewise.
2817         (m68k_linux_fetch_inferior_registers): Likewise.
2818         (m68k_linux_store_inferior_registers): Likewise.
2819         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2820         (m88kbsd_store_inferior_registers): Likewise.
2821         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2822         (mips64obsd_store_inferior_registers): Likewise.
2823         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2824         (mips64_linux_regsets_store_registers): Likewise.
2825         (mips64_linux_fetch_registers): Likewise.
2826         (mips64_linux_store_registers): Likewise.
2827         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2828         (mipsnbsd_store_inferior_registers): Likewise.
2829         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
2830         (monitor_fetch_registers, monitor_store_registers): Likewise.
2831         * nto-procfs.c (procfs_fetch_registers): Likewise.
2832         (procfs_store_registers): Likewise.
2833         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
2834         fetch_register, supply_vrregset, fetch_altivec_registers,
2835         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
2836         (store_altivec_register, store_spe_register, store_register, 
2837         fill_vrregset, store_altivec_registers, store_ppc_registers,
2838         ppc_linux_store_inferior_registers): Likewise.
2839         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
2840         (ppcnbsd_store_inferior_registers): Likewise.
2841         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
2842         (ppcobsd_store_registers): Likewise.
2843         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2844         * remote.c (fetch_register_using_p, process_g_packet,
2845         fetch_registers_using_g, remote_fetch_registers): Likewise.
2846         (store_register_using_P, store_registers_using_G, 
2847         remote_store_registers): Likewise.
2848         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
2849         m32r_store_register, m32r_store_register): Likewise.
2850         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
2851         * remote-sim.c (gdbsim_fetch_register): Likewise.
2852         (gdbsim_store_register): Likewise.
2853         * rs6000-nat.c (fetch_register, store_register): Likewise.
2854         (rs6000_fetch_inferior_registers): Likewise.
2855         (rs6000_store_inferior_registers): Likewise.
2856         * s390-nat.c (fetch_regs, store_regs): Likewise.
2857         (fetch_fpregs, store_fpregs): Likewise.
2858         (s390_linux_fetch_inferior_registers): Likewise.
2859         (s390_linux_store_inferior_registers): Likewise.
2860         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2861         (shnbsd_store_inferior_registers): Likewise.
2862         * sol-thread.c (sol_thread_fetch_registers): Likewise.
2863         (sol_thread_store_registers): Likewise.
2864         * sparc-nat.c (fetch_inferior_registers): Likewise.
2865         (store_inferior_registers): Likewise.
2866         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2867         (spu_store_inferior_registers): Likewise.
2868         * target.c (debug_print_register): Likewise.
2869         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
2870         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
2871         (vaxbsd_store_inferior_registers): Likewise.
2872         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
2873         (win32_fetch_inferior_registers): Likewise.
2874         (win32_store_inferior_registers): Likewise.
2875
2876 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2877
2878         * gdbcore.h (struct regcache): Add forward declaration.
2879         (struct core_fns): Add REGCACHE argument to core_read_registers
2880         callback.
2881         * corelow.c (get_core_register_section): Add REGCACHE argument,
2882         use it instead of current_regcache, pass it to core_read_registers
2883         callback.
2884         (get_core_registers): Add current_regcache as parameter to
2885         get_core_register_section calls.
2886
2887         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
2888         use it instead of current_regcache.
2889         * armnbsd-nat.c (fetch_core_registers): Likewise.
2890         (fetch_elfcore_registers): Likewise.
2891         * core-regset.c (fetch_core_registers): Likewise.
2892         * cris-tdep.c (fetch_core_registers): Likewise.
2893         * irix5-nat.c (fetch_core_registers): Likewise.
2894         * m68klinux-nat.c (fetch_core_registers): Likewise.
2895         * mips-linux-tdep.c (fetch_core_registers): Likewise.
2896         * win32-nat.c (fetch_elf_core_registers): Likewise.
2897
2898 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2899
2900         * gregset.h (struct regcache): Add forward declaration.
2901         (supply_gregset): Add REGCACHE parameter, make GREGS const.
2902         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
2903         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
2904         (fill_gregset): Add REGCACHE parameter.
2905         (fill_fpregset): Likewise.
2906         (fill_fpxregset): Likewise.
2907
2908         Update all definitions accordingly:
2909         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
2910         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
2911         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
2912         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
2913         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
2914         (supply_gregset): Add REGCACHE parameter, use it instead of 
2915         current_regcache.  Make GREGSETP parameter const, adapt casts.
2916         (supply_fpregset): Add REGCACHE parameter, use it instead of
2917         current_regcache.  Make FPREGSETP parameter const, adapt casts.
2918         (fill_gregset): Add REGCACHE parameter, use it instead of
2919         current_regcache.
2920         (fill_fpregset): Likewise.
2921
2922         Update all callers to pass in current_regcache as the new argument:
2923         * core-regset.c: Include "regcache.h".
2924         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
2925         * procfs.c: Include "regcache.h".
2926         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
2927         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
2928         (procfs_do_thread_registers): Likewise.
2929         (procfs_make_note_section): Likewise.
2930         * proc-service.c: Include "regcache.h".
2931         (ps_lgetregs): Update fill_gregset call.
2932         (ps_lsetregs): Update supply_gregset call.
2933         (ps_lgetfpregs): Update fill_fpregset call.
2934         (ps_lsetfpregs): Update supply_fpregset call.
2935         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
2936         supply_fpregset calls.
2937         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
2938         (ps_lgetregs): Update fill_gregset call.
2939         (ps_lsetregs): Update supply_gregset call.
2940         (ps_lgetfpregs): Update fill_fpregset call.
2941         (ps_lsetfpregs): Update supply_fpregset call.
2942         
2943         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
2944         fill_fpregset, and fill_fpxregset calls.
2945         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
2946         (store_regs): Update fill_gregset call.
2947         (fetch_fpregs): Update supply_fpregset call.
2948         (store_fpregs): Update fill_fpregset call.
2949         (fetch_fpxregs): Update supply_fpxregset call.
2950         (store_fpxregs): Update fill_fpxregset call.
2951         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
2952         (store_regs): Update fill_gregset call.
2953         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
2954         (store_regs): Update fill_gregset call.
2955         (fetch_fpregs): Update supply_fpregset call.
2956         (store_fpregs): Update fill_fpregset call.
2957         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
2958         * s390-nat.c (fetch_regs): Update supply_gregset call.
2959         (store_regs): Update fill_gregset call.
2960         (fetch_fpregs): Update supply_fpregset call.
2961         (store_fpregs): Update fill_fpregset call.
2962
2963         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
2964         dependencies.
2965
2966 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2967
2968         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
2969         it instead of current_regcache.
2970         (parse_register_dump): Add REGCACHE parameter, pass it to 
2971         supply_register callback.
2972         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
2973         parse_register_dump.
2974         (monitor_dump_regs): Add REGCACHE parameter, pass it to
2975         parse_register_dump and dumpregs callback.
2976         (monitor_wait): Pass current_regcache to parse_register_dump and
2977         monitor_dump_regs.
2978         (monitor_fetch_register): Pass current_regcache to
2979         monitor_supply_register.
2980         (monitor_fetch_registers): Pass current_regcache to
2981         monitor_dump_regs.
2982         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
2983         supply_register and dumpregs callbacks.
2984         (monitor_supply_register, monitor_dump_reg_block): Update
2985         prototypes.
2986         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
2987         it to monitor_supply_register.
2988         * dink32-rom.c (dink32_supply_register): Likewise.
2989         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
2990         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
2991         instead of current_regcache.
2992
2993 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2994
2995         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
2996         Add REGCACHE parameter.  Use it instead of current_regcache.
2997         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
2998         i386nto_supply_gregset and i386nto_supply_fpregset.
2999         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
3000         of current_regcache.
3001
3002         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
3003         nto_supply_ helper functions.
3004         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
3005
3006         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
3007
3008         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
3009         supply_greget, supply_fpregset, supply_altregset, supply_regset,
3010         and regset_fill member function pointers.
3011         (nto_dummy_supply_regset): Adapt prototype.
3012
3013 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3014
3015         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
3016         instead of current_regcache.  Make REGS const.
3017         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
3018         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
3019         prototypes.
3020         * shnbsd-nat.c: Include "regcache.h".
3021         (shnbsd_fetch_inferior_registers): Pass current_regcache to
3022         shnbsd_supply_reg.
3023         (shnbsd_store_inferior_registers): Pass current_regcache to
3024         shnbsd_fill_reg.
3025         * Makefile.in (shbsd-nat.o): Update dependencies.
3026
3027 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3028
3029         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
3030         instead of current_regcache.
3031         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
3032         Make GREGSETP const, remove superfluous casts.
3033         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3034         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
3035         superfluous casts.
3036         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3037         (supply_64bit_reg): Likewise
3038         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
3039         Make GREGSETP const, adapt casts accordingly.
3040         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3041         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
3042         casts accordingly.
3043         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3044         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
3045         helper routines.
3046         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
3047         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
3048         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
3049         Adapt prototypes.
3050         * mips-linux-nat.c: Include "regcache.h".
3051         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3052         current_regcache to mips{64}_(supply|fill)_ helper routines.
3053         (mips64_linux_regsets_fetch_registers): Likewise.
3054         (mips64_linux_regsets_store_registers): Likewise.
3055
3056         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
3057         REGCACHE argument; replace current_regcache.  Make REGS const.
3058         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
3059         replace current_regcache.
3060         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
3061         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
3062         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
3063         mipsnbsd_store_inferior_registers): Pass current_regcache to
3064         mipsnbsd_(supply|fill)_... helper routines.
3065
3066         * Makefile.in (mips-linux-nat.o): Update dependencies.
3067
3068 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3069
3070         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
3071         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
3072         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
3073         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
3074         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
3075         * i386gnu-nat.c (store_fpregs): Likewise.
3076         * i386v4-nat.c (fill_fpregset): Likewise.
3077         * go32-nat.c (store_register, go32_store_registers): Likewise.
3078
3079 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3080
3081         * cris-tdep.c (supply_gregset): Rename to ...
3082         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
3083         instead of current_regcache.
3084         (fetch_core_registers): Update call.  Pass current_regcache.
3085
3086 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3087
3088         * arnmnbsd-nat.c (supply_gregset): Rename to ...
3089         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
3090         Use it instead of current_regcache.
3091         (supply_fparegset): Rename to ...
3092         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
3093         Use it instead of current_regcache.
3094         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
3095         (fetch_core_registers, fetch_elfcore_registers): Likewise.
3096
3097 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3098
3099         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
3100         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
3101         use it instead of current_regcache.
3102         * alpha-tdep.h (struct regcache): Add forward declaration.
3103         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
3104         alpha_fill_fp_regs): Update prototypes.
3105
3106         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
3107         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
3108         * alpha-linux-nat.c: Include "regcache.h".
3109         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3110         current_regcache to alpha_supply/fill_ routines.
3111
3112         * alphabsd-tdep.c: Include "regcache.h".
3113         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
3114         pass it to alpha_supply_ routines.  Make REGS const.
3115         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
3116         pass it to alpha_fill_ routines.
3117         * alphabsd-tdep.h (struct regcache): Add forward declaration.
3118         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
3119         alphabsd_fill_fpreg): Update prototypes.
3120
3121         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
3122         fill_fpregset, alphabsd_fetch_inferior_registers,
3123         alphabsd_store_inferior_registers): Pass current_regcache to
3124         alphabsd_supply/fill_ routines.
3125
3126         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
3127         dependencies.
3128
3129 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3130
3131         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
3132         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
3133         instead of current_regcache.
3134         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
3135         REGCACHE parameter, pass it to supply_ routines.
3136         (aix_thread_fetch_registers): Pass current_regcache to
3137         fetch_regs_user_thread and fetch_regs_kernel_thread.
3138
3139         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
3140         Add REGCACHE parameter, use it instead of current_regcache.
3141         Call regcache_valid_p instead of register_cached.
3142         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
3143         Also, pass REGCACHE to fill_ routines.
3144         (aix_thread_store_registers): Pass current_regcache to
3145         store_regs_user_thread and store_regs_kernel_thread.
3146
3147 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3148
3149         * m32r-linux-nat.c (supply_gregset): Do not modify contents
3150         pointed to by GREGSETP.
3151
3152 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3153
3154         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
3155         of regcache_raw_read_signed.
3156         (fill_fpregset): Use regcache_raw_collect instead of
3157         regcache_raw_read.
3158
3159 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
3160
3161         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
3162         point arguments, test explicitly for use of the EABI32 ABI
3163         instead of inferring this condition from tests on register
3164         sizes.
3165
3166 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
3167
3168         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
3169         prior to allocating its location.
3170
3171 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
3172
3173         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
3174         based on mips_abi_regsize() whose result is known in advance.
3175         (mips_o64_push_dummy_call): Likewise.
3176
3177 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
3178
3179         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
3180         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
3181
3182         * mips-linux-nat.c: Include "gregset.h".
3183         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
3184         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
3185         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3186         fill_fpregset): Move to mips-linux-nat.c.
3187
3188         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
3189
3190 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3191
3192         * regcache.c (deprecated_read_register_gen): Remove, inline ...
3193         (read_register): ... here.
3194         (deprecated_write_register_gen): Remove, inline ...
3195         (write_register): ... here.
3196         * regcache.h (deprecated_read_register_gen): Remove prototype.
3197         (deprecated_write_register_gen): Likewise.
3198
3199         * remote-sim.c (gdbsim_store_register): Replace call to
3200         deprecated_read_register_gen with regcache_cooked_read.
3201         * target.c (debug_print_register): Replace calls to
3202         deprecated_read_register_gen and read_register with
3203         regcache_cooked_read.
3204
3205 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3206
3207         * hpux-thread.c (hpux_thread_store_registers): Use
3208         regcache_raw_collect, not regcache_raw_read.
3209         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
3210         not regcache_raw_write.
3211
3212 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3213
3214         * gdbarch.sh: Remove deprecated_register_byte.
3215         * gdbarch.c, gdbarch.h: Regenerate.
3216         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
3217         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
3218
3219         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
3220         * regcache.c (regcache_valid_p): Allow to query cooked registers in
3221         read-only register caches.  Make REGCACHE parameter const.
3222         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
3223
3224         * mi/mi-main.c (old_regs): Remove.
3225         (mi_setup_architecture_data, _initialize_mi_main): Remove.
3226         (register_changed_p): Reimplement to compare two register caches.
3227         (mi_cmd_data_list_changed_registers): Update caller.
3228         * mi/mi-main.h (mi_setup_architecture_data): Remove.
3229         * mi/mi-interp.c (mi_interpreter_init): Do not call
3230         mi_setup_architecture_data.
3231
3232 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3233
3234         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
3235         inline definition at the places the macros are used.
3236         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
3237
3238 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3239
3240         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
3241         "gdb_string.h".
3242         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
3243         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
3244         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
3245         (rs6000_aix_regset_from_core_section): New function.
3246         (rs6000_aix_init_osabi): Register it.
3247         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
3248         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
3249         * rs6000-nat.c (CoreRegs): Do not define type.
3250         (fetch_core_registers, rs6000_core_fns): Remove.
3251         (_initialize_core_rs6000): Do not register it.  Rename to ...
3252         (_initialize_rs6000_nat): ... this.
3253         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
3254
3255 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
3256
3257         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
3258         (dwarf2_read_address): Sign extend return address as required by
3259         target architecture.
3260
3261 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
3262
3263         * solib-frv.c (lm_base): Bail out if the main executable has
3264         not been relocated.
3265
3266 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
3267
3268         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
3269         of FPCR register in fpregset.
3270
3271 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
3272
3273         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
3274         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
3275
3276 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
3277
3278         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
3279         * rs6000-nat.c (rs6000_wait): New function.
3280         (_initialize_core_rs6000): Install it as to_wait target method.
3281         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
3282
3283 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
3284
3285         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
3286         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
3287         * rs6000-nat.c (super_create_inferior): New variable.
3288         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
3289         original version of create_inferior via super_create_inferior.
3290         (_initialize_core_rs6000): Install to_create_inferior target method.
3291
3292 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
3293
3294         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
3295         (aix_thread_xfer_partial): ... this.
3296         (init_aix_thread_ops): Install to_xfer_partial instead
3297         of deprecated_xfer_memory target method.
3298
3299         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
3300         and inftarg.o, add inf-ptrace.o.
3301         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
3302         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
3303         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
3304         (fetch_inferior_registers): Rename to ...
3305         (rs6000_fetch_inferior_registers): ... this.  Make static.
3306         (store_inferior_registers): Rename to ...
3307         (rs6000_store_inferior_registers): ... this.  Make static.
3308         (read_word, child_xfer_memory): Remove.
3309         (rs6000_xfer_partial): New function.
3310         (kernel_u_size): Remove.
3311         (_initialize_core_rs6000): Add inf_ptrace-based target.
3312         * Makefile.in (rs6000-nat.o): Update dependencies.
3313
3314 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
3315
3316         * inf-ptrace.c: Include "gdb_stdint.h".
3317         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
3318         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
3319         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
3320         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
3321         (inf_ptrace_store_register): Likewise.
3322         * Makefile.in (inf-ptrace.o): Update dependencies.
3323
3324 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
3325
3326         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
3327         * configure.tgt (rs6000-*-*): Likewise.
3328         * config/rs6000/aix4.mh: Delete file.
3329         * config/rs6000/aix4.mt: Delete file.
3330         * config/rs6000/rs6000.mh: Delete file.
3331         * config/rs6000/rs6000.mt: Delete file.
3332
3333         * config/powerpc/nm-aix.h: Delete file.
3334         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
3335
3336 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
3337
3338         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
3339         Remove obsolete part of comment.
3340         (store_regs_user_thread): Use uint32_t temporaries when calling
3341         fill_sprs32.
3342         (store_regs_kernel_thread): Likewise.  Add assertion to verify
3343         correct size of struct ptsprs members.
3344         (aix_thread_xfer_memory): Fix type of myaddr.
3345         (aix_thread_extra_thread_info): Fix compiler warning.
3346         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
3347         (fetch_register, store_register): Adapt callers.
3348
3349 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
3350
3351         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
3352
3353 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3354
3355         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
3356         and "regcache.h".
3357         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
3358         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
3359         (alpha_linux_regset_from_core_section): New function.
3360         (alpha_linux_init_abi): Install it.
3361         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
3362         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
3363         <sys/procfs.h>, and "gregset.h".
3364         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
3365         Move from config/alpha/nm-linux.h.
3366         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
3367         from alpha-nat.c.
3368         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
3369         * alpha-nat.c: Remove #ifdef __linux__ section.
3370         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
3371         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
3372         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
3373         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
3374         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
3375         (NATDEPFILES): Remove alpha-nat.o.
3376         * config/alpha/nm-linux.h: Delete file.
3377         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
3378         * Makefile.in (alpha-linux-nat.o): Update dependencies.
3379         (alpha-linux-tdep.o): Likewise.
3380
3381 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3382
3383         * mips-linux-nat.c: No longer include "gdbcore.h".
3384         (mips_linux_register_addr): Move from mips-linux-tdep.c.
3385         (mips64_linux_register_addr): Likewise.
3386         (mips_linux_register_u_offset): Call mips_linux_register_addr or
3387         mips64_linux_register_addr instead of register_addr.
3388         * mips-linux-tdep.c (mips_linux_register_addr,
3389         mips64_linux_register_addr): Move to mips-linux-nat.c.
3390         (register_addr): Remove.
3391         (register_addr_data, init_register_addr_data): Remove.
3392         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
3393         (set_mips_linux_register_addr): Remove.
3394         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
3395         * Makefile.in (mips-linux-nat.o): Update dependencies.
3396
3397 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3398
3399         * linux-nat.c (linux_register_u_offset): Remove.
3400         (linux_target_install_ops): New function.
3401         (linux_target): Use it.
3402         (linux_trad_target): New function.
3403         * linux-nat.h (linux_trad_target): Declare.
3404
3405         * alpha-linux-nat.c: Include "gdbcore.h".
3406         (alpha_linux_register_u_offset): New function.
3407         (_initialize_alpha_linux_nat): Use linux_trad_target.
3408
3409         * mips-linux-nat.c: Include "gdbcore.h".
3410         (mips_linux_register_u_offset): New function.
3411         (_initialize_mips_linux_nat): Use linux_trad_target.
3412
3413         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3414         * config/arm/nm-linux.h: Delete file.
3415
3416         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
3417         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
3418
3419         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3420         * config/ia64/nm-linux.h: Delete file.
3421
3422         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3423         * config/m32r/nm-linux.h: Delete file.
3424
3425         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3426         * config/m68k/nm-linux.h: Delete file.
3427
3428         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3429         * config/pa/nm-linux.h: Delete file.
3430
3431         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3432         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
3433         * config/powerpc/nm-linux.h: Delete file.
3434
3435         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
3436         * config/s390/nm-linux.h: Delete file.
3437
3438         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3439         * config/sparc/linux64.mh (NAT_FILE): Likewise.
3440         * config/sparc/nm-linux.h: Delete file.
3441
3442         * Makefile.in (alpha-linux-nat.o): Update dependencies.
3443         (mips-linux-nat.o): Likewise.
3444
3445 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3446
3447         * core-aout.c: Delete file.
3448         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
3449         (core-aout.o): Delete rule.
3450         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
3451
3452         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
3453
3454         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
3455         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
3456         KERNEL_U_ADDR): Remove.
3457
3458         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
3459         (cannot_fetch_register, cannot_store_register): Remove.
3460         (fetch_register): Inline cannot_fetch_register and register_addr.
3461         (store_register): Inline cannot_store_register and register_addr.
3462         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
3463         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3464         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
3465         Remove.
3466
3467         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
3468         (fetch_register): Inline register_addr.
3469         (store_register): Inline register_addr.
3470         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
3471         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3472         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
3473
3474         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
3475         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
3476         REGISTER_U_ADDR): Remove.
3477
3478         * hppa-linux-nat.c (register_addr): Rename to ...
3479         (hppa_linux_register_addr): ... this.  Make static.
3480         (fetch_register, store_register): Adapt callers.
3481         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
3482
3483         * ppc-linux-nat.c (kernel_u_size): Remove.
3484         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
3485
3486         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
3487         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
3488         (NAT_FILE): Remove.
3489         * config/vax/nm-vax.h: Delete file.
3490
3491 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
3492
3493         * MAINTAINERS (Write After Approval): Add myself.
3494
3495 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
3496
3497         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
3498         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
3499         (m68k_linux_sigcontext_reg_offset): Fix typo.
3500         (target_is_uclinux): New.
3501         (m68k_linux_inferior_created): New.
3502         (m68k_linux_get_sigtramp_info):  Check for uClinux or
3503         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
3504         uClinux.
3505         (_initialize_m68k_linux_tdep): Register
3506         m68k_linux_inferior_created.
3507
3508 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
3509
3510         * win32-nat.c (win32_detach): Remove delete_command call.
3511         Resume inferior with win32_resume instead of win32_continue.
3512
3513 2007-04-19  Jerome Guitton  <guitton@adacore.com>
3514
3515         * ser-mingw.c (fd_is_file): New function.
3516         (file_select_thread): New function.
3517         (ser_console_wait_handle): Add special handling for files.
3518
3519 2007-04-18  Denis Pilat  <denis.pilat@st.com>
3520
3521         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
3522         when missing from DW_TAG_subrange_type.  Remove the handling of null
3523         return from die_type.
3524
3525 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
3526
3527         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
3528         change to rearrange some brackets.
3529         (mips_n32n64_push_dummy_call): Likewise.
3530         (mips_o32_push_dummy_call): Likewise.
3531         (mips_o64_push_dummy_call): Likewise.
3532
3533 2007-04-18  Denis Pilat  <denis.pilat@st.com>
3534
3535         * infcmd.c (post_create_inferior): Start with a call to 
3536         target_terminal_ours.
3537
3538 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
3539
3540         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
3541         brackets.
3542         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
3543         expressions.
3544         (mips_o32_push_dummy_call): Likewise.
3545         (mips_o64_push_dummy_call): Likewise.
3546
3547 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
3548
3549         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3550         comment.
3551
3552 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
3553
3554         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3555         comment.
3556         (mips_o32_push_dummy_call): Likewise.
3557
3558 2007-04-17  Andreas Schwab  <schwab@suse.de>
3559
3560         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
3561         sal to be bigger than the end of the function.
3562
3563 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
3564             Nigel Stephens  <nigel@mips.com>
3565
3566         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
3567         argument alignment requirements when calculating stack space
3568         required.  When aligning an arg register to eight bytes
3569         boundary, align stack_offset too.  Write floating-point
3570         arguments to the appropriate integer register if need go there.
3571         (mips_o64_push_dummy_call): Likewise.
3572
3573 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
3574
3575         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
3576         "sig" arguments, add "regcache" argument.
3577         * gdbarch.c, gdbarch.h: Regenerate.
3578
3579         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
3580         (handle_inferior_event): Call remove_single_step_breakpoints directly
3581         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
3582
3583         * alpha-tdep.c (alpha_software_single_step): Update argument list.
3584         Remove handling of !insert_breakpoints_p case.
3585         * arm-tdep.c (arm_software_single_step): Likewise.
3586         * cris-tdep.c (cris_software_single_step): Likewise.
3587         * mips-tdep.c (mips_software_single_step): Likewise.
3588         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3589         * sparc-tdep.c (sparc_software_single_step): Likewise.
3590         * spu-tdep.c (spu_software_single_step): Likewise.
3591
3592         * alpha-tdep.h (alpha_software_single_step): Update prototype.
3593         * mips-tdep.h (mips_software_single_step): Likewise.
3594         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3595         * sparc-tdep.h (sparc_software_single_step): Likewise.
3596
3597 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
3598
3599         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
3600         when removing single-step breakpoints.
3601
3602 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
3603
3604         * varobj.h (varobj_set_frozen): New
3605         (varobj_get_frozen): New.
3606         (varobj_update): New parameter explicit.
3607         * varobj.c (struct varobj): New fields frozen
3608         and not_fetched.
3609         (varobj_set_frozen, varobj_get_frozen): New.
3610         (install_new_value): Don't fetch values for 
3611         frozen variable object, or children thereof.  Allow
3612         a frozen variable object to have non-fetched value.
3613         (varobj_update): Allow updating child variables.
3614         Don't traverse frozen children.
3615         (new_variable): Initialize the frozen field.
3616         (c_value_of_variable): Return NULL for frozen
3617         variable without any value yet. 
3618         * mi/mi-cmd-var.c (varobj_update_one): New parameter
3619         'explicit'.
3620         (mi_cmd_var_create): Output the 'frozen' field,
3621         as soon as testsuite is adjusted to expect that field.
3622         (mi_cmd_var_set_frozen): New.
3623         (mi_cmd_var_update): Pass the 'explicit' parameter to
3624         varobj_update_one.
3625         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
3626         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
3627         
3628 2007-04-13  Paul Brook  <paul@codesourcery.com>
3629
3630         * target-descriptions.c (tdesc_named_type): Add ieee_single and
3631         ieee_double.
3632         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
3633
3634 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3635
3636         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
3637         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
3638         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
3639         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
3640         * Makefile.in: Remove references to deleted files.
3641         * README: Do not mention deleted ROM monitor interfaces.
3642         * defs.h (enum language): Delete language_scm.
3643         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
3644         (dump_subexp_body_standard): Likewise.
3645         * parse.c (operator_length_standard): Likewise.
3646         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
3647         * remote-mips.c: Do not include remote-utils.h.
3648         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
3649         throughout.
3650         * value.c: Do not include scm-lang.h.
3651         (unpack_long): Delete scm_unpack call.
3652         * config/h8300/h8300.mt, config/mips/embed.mt,
3653         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
3654         config/sh/embed.mt, config/sh/linux.mt: Remove references to
3655         deleted files.
3656         * NEWS: Mention removed files.
3657
3658 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3659
3660         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
3661         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
3662
3663 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3664
3665         * NEWS: Mention removal of HP aCC support.
3666
3667 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3668
3669         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
3670         first entry for static executables.
3671         (breakpoint_addr): Delete unused variable.
3672         (elf_locate_base): Search for _r_debug in static executables.
3673         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
3674         also.
3675
3676 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3677
3678         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
3679         (bpstat_what, print_one_breakpoint, allocate_bp_location)
3680         (mention): Remove bp_through_sigtramp support.
3681         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
3682
3683 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3684
3685         * breakpoint.c (bpstat_what): Give step-resume higher priority than
3686         shlib events.
3687
3688 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
3689
3690         * infrun.c: Doc fixes.
3691         (handle_inferior_event): Clarify debug message.
3692         (insert_step_resume_breakpoint_at_sal): Print a debug message.
3693
3694 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
3695
3696         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
3697
3698 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
3699
3700         * config/m68k/tm-monitor.h: Delete file.
3701         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3702         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3703         call moved to ...
3704         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3705         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3706
3707 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
3708
3709         * gdbarch.sh (software_single_step): Change the return type
3710         from void to int and reformatted some comments to <= 80
3711         columns.
3712         * gdbarch.c, gdbarch.h: Regenerated.
3713         * alpha-tdep.c (alpha_software_single_step): Likewise.
3714         * alpha-tdep.h (alpha_software_single_step): Likewise.
3715         * arm-tdep.c (arm_software_single_step): Likewise.
3716         * cris-tdep.c (cris_software_single_step): Likewise.
3717         * mips-tdep.c (mips_software_single_step): Likewise.
3718         * mips-tdep.h (mips_software_single_step): Likewise.
3719         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3720         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3721         * sparc-tdep.c (sparc_software_single_step): Likewise.
3722         * sparc-tdep.h (sparc_software_single_step): Likewise.
3723         * spu-tdep.c (spu_software_single_step): Likewise.
3724         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3725         and act accordingly.
3726
3727 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
3728
3729         * configure.ac (build_warnings): Add -Wno-char-subscripts.
3730         * configure: Regenerate.
3731         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3732
3733 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3734
3735         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3736
3737 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3738
3739         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3740         macros.
3741         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3742         distinct on the TYPE_STUB_SUPPORTED debug targets.
3743         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3744
3745 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
3746
3747         * sparc-tdep.c (X_RS2): New macro.
3748         (sparc_skip_stack_check): New function.
3749         (sparc_analyze_prologue): Adjust PC past stack probing
3750         sequence if necessary.
3751
3752 2007-04-10  Andreas Schwab  <schwab@suse.de>
3753
3754         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3755         register.
3756
3757 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
3758
3759         * breakpoint.c (gdb_breakpoint_query): Really return an
3760         enum gdb_rc.
3761         (gdb_breakpoint): Likewise.
3762         * thread.c (gdb_list_thread_ids): Likewise.
3763         (gdb_thread_select): Likewise.
3764         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3765         (mi_cmd_thread_list_ids): Remove bogus initialization.
3766
3767 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
3768
3769         * Makefile.in (SFILES): Remove hpacc-abi.c.
3770         (COMMON_OBS): Remove hpacc-abi.o.
3771         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3772         (hpacc-abi.o, hpread.o): Delete rules.
3773         * somread.c: Delete extern declarations from hpread.c.
3774         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3775         (som_symfile_finish): Do not call hpread_symfile_finish.
3776         (som_symfile_init): Do not call hpread_symfile_init.
3777         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3778         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3779         * hpacc-abi.c, hpread.c: Deleted.
3780
3781 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
3782
3783         * solib-svr4.c (enable_break): Simplify return value.
3784         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3785
3786 2007-04-10  Andreas Schwab  <schwab@suse.de>
3787
3788         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3789         l_ld_size, l_next_size, l_prev_size, l_name_size.
3790
3791         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3792         to extract addresses from link map.
3793         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3794         (LM_NEXT): Likewise.
3795         (LM_NAME): Likewise.
3796         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3797         (elf_locate_base): Likewise.
3798         (open_symbol_file_object): Likewise.
3799         (svr4_fetch_objfile_link_map): Likewise.
3800         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3801         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3802         l_ld_size.
3803         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3804         (svr4_lp64_fetch_link_map_offsets): Likewise.
3805
3806         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3807         removed members.  Set l_ld_offset to -1 if not present.
3808
3809 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
3810         
3811         Pass stderr of program run with "target remote |"
3812         via gdb_stderr.
3813         * serial.c (serial_open): Set error_fd to -1.
3814         * serial.h (struct serial): New field error_fd.
3815         (struct serial_opts): New field avail.
3816         * ser-pipe.c (pipe_open): Create another pair
3817         of sockets.  Pass stderr to gdb.
3818         * ser-mingw.c (pipe_windows_open): Pass
3819         PEX_STDERR_TO_PIPE to pex_run.  Initialize
3820         sd->error_fd.
3821         (pipe_avail): New.
3822         (_initialize_ser_windows): Hook pipe_avail.
3823         * ser-base.c (generic_readchar): Check if there's
3824         anything in stderr channel and route that to gdb_stderr.
3825
3826 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
3827
3828         * dbxread.c (read_ofile_symtab): Move current_objfile
3829         clearing to after end_stabs.
3830
3831 2007-04-01  Andreas Schwab  <schwab@suse.de>
3832
3833         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
3834         gdbarch instead of current_gdbarch.
3835
3836 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
3837
3838         * varobj.c (varobj_create): Keep varobj value
3839         NULL when evaluating the type.
3840         
3841 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
3842
3843         * NEWS: Mention new Windows CE support.
3844
3845 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
3846
3847         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
3848         the obsoletion stanza.
3849         * NEWS: Mention deleted targets.
3850
3851         * config/sh/tm-wince.h: Remove.
3852         * config/sh/wince.mt: Remove.
3853         * config/mips/tm-wince.h: Remove.
3854         * config/mips/wince.mt: Remove.
3855
3856         * wince.c: Remove.
3857         * wince-stub.c: Remove.
3858         * wince-stub.h: Remove.
3859         * Makefile.in (wince.o): Remove rule.
3860         (wince-stub.o): Likewise.
3861
3862         * mips-tdep.c (mips_next_pc): Make static.
3863         * mips-tdep.h (mips_next_pc): Remove declaration.
3864         * arm-tdep.c (arm_pc_is_thumb): Make static.
3865         (thumb_get_next_pc): Likewise.
3866         (arm_get_next_pc): Likewise.
3867         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
3868         (arm_pc_is_thumb): Likewise.
3869         (thumb_get_next_pc): Likewise.
3870         (arm_get_next_pc): Likewise.
3871
3872 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
3873
3874         * MAINTAINERS: Remove d10v entry.
3875         * Makefile.in (SFILES): Remove dwarfread.c.
3876         (COMMON_OBS): Remove dwarfread.o.
3877         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
3878         (remote-est.o, rom68k-rom.o): Delete.
3879         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
3880         target est, target rom68k, and DWARF 1.
3881         * configure.tgt: Mark d10v as removed.
3882         * dwarf2read.c: Doc update.
3883         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
3884         and lnsize.
3885         (elf_locate_sections): Do not set them.
3886         (elf_symfile_read): Do not call dwarf_build_psymtabs.
3887         * symfile.h (dwarf_build_psymtabs): Delete prototype.
3888         * config/m68k/monitor.mt (TDEPFILES): Prune.
3889         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
3890         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
3891
3892 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
3893
3894         * doublest.c (convert_floatformat_to_doublest): Use
3895         floatformat_classify.
3896         (floatformat_is_nan): Rename to...
3897         (floatformat_classify): ...this.  Return more information.
3898         * doublest.h (enum float_kind): New.
3899         (floatformat_is_nan): Replace prototype...
3900         (floatformat_classify): ...with this one.
3901         * valprint.c (print_floating): Use floatformat_classify.  Handle
3902         infinity.
3903
3904 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
3905
3906         * README: Mention ISO C library requirement.
3907
3908 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
3909
3910         * Makefile.in (SFILES): Remove nlmread.c.
3911         (COMMON_OBS): Remove nlmread.o.
3912         (nlmread.o): Delete rule.
3913         * README: Delete reference to remote-st.c.
3914         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
3915         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
3916         GDB_OSABI_LYNXOS.
3917         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
3918         (_initialize_i386_tdep): Do not reference them.
3919         * nlmread.c: Delete file.
3920         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
3921         * target.c: Doc update.
3922         * thread.c: Delete commented include.
3923         * config/alpha/tm-alpha.h: Doc update.
3924
3925 2007-03-30  Chris Dearman  <chris@mips.com>
3926
3927         * utils.c (string_to_core_addr): Comment typo.
3928
3929 2007-03-30  Chris Dearman  <chris@mips.com>
3930
3931         * mips-tdep.c: Comment typo.
3932
3933 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
3934
3935         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
3936         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3937         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3938         * config/powerpc/nm-ppc64-linux.h: Remove file.
3939         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
3940         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
3941         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
3942         * infptrace.c (call_ptrace): Likewise.
3943         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
3944         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
3945         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
3946         (store_register): Likewise.
3947
3948 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
3949
3950         * Makefile.in (varobj.o): Add missing dependency.
3951
3952 2007-03-29  Michael Snyder  <msnyder@access-company.com>
3953
3954         * MAINTAINERS: Update my email address.
3955
3956 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
3957
3958         Add support for exception handling with multiple versions of
3959         the Ada runtime:
3960         * ada-lang.c: Update general comments on how Ada exception catchpoints
3961         are implemented.
3962         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
3963         (__gnat_raise_nodefer_with_msg): Delete.
3964         (ada_unhandled_exception_name_addr_ftype): New type.
3965         (exception_support_info): New type.
3966         (ada_unhandled_exception_name_addr): Add forward declaration.
3967         (ada_unhandled_exception_name_addr_from_raise): Likewise.
3968         (default_exception_support_info): New constant.
3969         (exception_support_info_fallback): Likewise.
3970         (exception_info): New global variable.
3971         (ada_exception_support_info_sniffer): New function.
3972         (ada_executable_changed_observer): Likewise.
3973         (ada_unhandled_exception_name_addr_from_raise): Renamed from
3974         ada_unhandled_exception_name_addr.
3975         (ada_unhandled_exception_name_addr): Reimplement to match the
3976         latest Ada runtime implementation.
3977         (error_breakpoint_runtime_sym_not_found): Delete.
3978         (ada_exception_sym_name): Get the exception sym name from
3979         exception_info rather than hardcoding it.
3980         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
3981         Update error handling.
3982         * Makefile.in (ada-lang.o): Add dependency on observer.h.
3983
3984 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
3985
3986         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
3987         (remote-st.o, uw-thread.o): Delete.
3988         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
3989         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3990         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
3991         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
3992         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
3993         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
3994         rs6000-*-lynxos* to an obsoletion stanza.
3995         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3996         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
3997         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
3998         i[34567]86-*-netware*.
3999         * NEWS: Mention deleted targets.
4000
4001         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
4002         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
4003         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
4004         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
4005         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
4006         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
4007         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
4008         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
4009         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
4010         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
4011         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
4012         config/rs6000/tm-rs6000ly.h: Delete files.
4013
4014 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
4015
4016         * defs.h (deprecated_registers_changed_hook): Delete declaration.
4017         * interps.c (clear_interpreter_hooks): Do not clear
4018         deprecated_registers_changed_hook.
4019         * regcache.c (registers_changed): Do not call it.
4020         * top.c (deprecated_registers_changed_hook): Do not define it.
4021         * mi/mi-interp.c (mi_command_loop): Do not clear it.
4022         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
4023         (tui_remove_hooks): Do not remove it.
4024         (tui_selected_frame_level_changed_hook): Check for negative level.
4025         Use get_selected_frame.
4026         (tui_registers_changed_hook): Deleted.
4027
4028 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
4029
4030         * stabsread.c (add_undefined_type): Add extra parameter.
4031         Now handles nameless types separately.
4032         (struct nat): New type.
4033         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
4034         New static variables.
4035         (read_type): Update calls to add_undefined_type.
4036         (add_undefined_type_noname): New function.
4037         (add_undefined_type_1): Renames from add_undefined_type.
4038         (cleanup_undefined_types_noname): New function.
4039         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
4040         (cleanup_undefined_types): New handles nameless types separately.
4041         (_initialize_stabsread): Initialize our new static constants.
4042
4043 2007-03-29  Denis Pilat  <denis.pilat@st.com>
4044
4045         * configure.ac: Test for signal.h.
4046         * configure, config.in: Regenerate.
4047
4048 2007-03-29  Denis Pilat  <denis.pilat@st.com>
4049
4050         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
4051         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
4052
4053 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
4054
4055         * arm-wince-tdep.c: New.
4056         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
4057         (MT_CFLAGS): Delete.
4058         (TM_CLIBS): Delete.
4059         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
4060         solib-legacy.o, solib-svr4.o, and remove wince.o.
4061         * configure.tgt (arm*-*-mingw32ce*): Add.
4062         * signals/signals.c [HAVE_SIGNAL_H]: Check.
4063         (do_target_signal_to_host): Silence 'not used' warning.
4064         * config/arm/tm-wince.h: Remove.
4065
4066 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
4067
4068         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
4069         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
4070
4071         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
4072         * config/ia64/tm-linux.h: Remove file.
4073         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
4074         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
4075         legacy_pc_in_sigtramp.
4076         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
4077         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
4078         Remove func_name argument.
4079         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
4080
4081         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
4082         * target.c (update_current_target): Add to_have_steppable_watchpoint.
4083         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
4084         (HAVE_STEPPABLE_WATCHPOINT): Define.
4085
4086         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
4087         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
4088         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
4089         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
4090         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
4091         target_insert_watchpoint, target_remove_watchpoint): Remove.
4092         (FETCH_INFERIOR_REGISTERS): Define.
4093         * ia64-linux-nat.c (ia64_register_addr): Make static.
4094         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
4095         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
4096         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
4097         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
4098         (ia64_linux_stopped_by_watchpoint): Make static.
4099         (ia64_linux_can_use_hw_breakpoint): New function.
4100         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
4101         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
4102         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
4103
4104 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
4105
4106         * linespec.c: Include language.h.
4107         (find_methods): Add language parameter.  Call
4108         lookup_symbol_in_language.  Pass language down.
4109         (add_matching_methods): Likewise.  Call
4110         lookup_symbol_in_language.
4111         (add_constructors): Likewise.
4112         (find_method): Pass sym_class to collect_methods.
4113         (collect_methods): Add sym_class parameter.  Pass language
4114         down.
4115         * symtab.c (lookup_symbol): Rename to ...
4116         (lookup_symbol_in_language): ... this.  Add language
4117         parameter.  Use passed language instead of current_language.
4118         (lookup_symbol): New as wrapper around
4119         lookup_symbol_in_language.
4120         (lookup_symbol_aux): Add language parameter.  Use passed
4121         language instead of current_language.
4122         (search_symbols): Indent.
4123         * symtab.h (enum language): Forward declare.
4124         (lookup_symbol_in_language): Declare.
4125         (lookup_symbol): Update description.
4126         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
4127         * ada-lang.c (restore_language): Remove.
4128         (lookup_symbol_in_language): Remove.
4129
4130 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
4131
4132         * breakpoint.c (bpstat_num): Add int *num parameter.
4133         * breakpoint.h (bpstat_num): Likewise.
4134         * infcmd.c (continue_command): Adjust to new bpstat_num
4135         interface.
4136         (program_info): Likewise.
4137
4138 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
4139
4140         * config/sh/tm-sh.h: Remove file.
4141         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
4142         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
4143         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4144         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
4145
4146 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
4147
4148         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
4149         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
4150         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
4151         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
4152         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
4153         sequence if target_shortname is "remote".
4154
4155 2007-03-27  Anton Blanchard  <anton@samba.org>
4156
4157         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
4158         instead of wordsize when looking for the LR in a stack frame.
4159
4160 2007-03-27  Andreas Schwab  <schwab@suse.de>
4161             Daniel Jacobowitz  <dan@codesourcery.com>
4162
4163         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
4164         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
4165         argument.  Update all callers.
4166         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
4167         (dwarf2_frame_set_eh_frame_regnum): Rename to...
4168         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
4169         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
4170         (dwarf2_frame_set_adjust_regnum): ...this.
4171         (dwarf2_frame_eh_frame_regnum): Delete prototype.
4172         * rs6000-tdep.c: Include "dwarf2-frame.h".
4173         (rs6000_adjust_frame_regnum): Define.
4174         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
4175         Register rs6000_adjust_frame_regnum.
4176
4177         * Makefile.in (rs6000-tdep.o): Update dependencies.
4178
4179 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
4180
4181         * Makefile.in: Add support for a "pdf" target.
4182
4183 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
4184
4185         * amd64-tdep.c (amd64_init_frame_cache): New function.
4186         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
4187
4188 2007-03-26  Nigel Stephens  <nigel@mips.com>
4189             Maciej W. Rozycki  <macro@mips.com>
4190
4191         * ui-out.c (ui_out_field_core_addr): Truncate address to
4192         TARGET_ADDR_BIT size before printing.
4193
4194 2007-03-22  Nigel Stephens  <nigel@mips.com>
4195             Maciej W. Rozycki  <macro@mips.com>
4196
4197         * remote-mips.c (mips_xfer_memory): Update prototype.
4198
4199 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
4200
4201         * symfile.h: #include "symtab.h"
4202
4203 2007-03-22  Denis Pilat  <denis.pilat@st.com>
4204
4205         * utils.c (pagination_on_command, pagination_off_command):
4206         Remove useless prototypes.
4207
4208 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4209
4210         Fix PR pascal/2232.
4211         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
4212         instead of TYPE_NAME for object base class name.
4213
4214
4215 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
4216
4217         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
4218         Specify frame type in calls to frame_func_unwind().
4219
4220 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
4221
4222         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
4223         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
4224         (refine_prologue_limit): Delete.
4225         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
4226         Assume lim_pc is set.  Correct check for incomplete prologues.
4227         Do not skip clobbers of the frame pointer.
4228         * symtab.c (skip_prologue_using_sal): Fail if there is only one
4229         sal.
4230
4231 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
4232
4233         * frame.c (frame_pop): Check to see whether there's a frame to
4234         which we can pop first.
4235
4236 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
4237
4238         * MAINTAINERS (Write After Approval): Add myself.
4239
4240 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
4241
4242         * infrun.c (breakpoints_failed): Remove unnecessary variable.
4243         (handle_inferior_event): Remove unnecessary braces.
4244         * breakpoint.c (bpstat_what): Remove wrong comment.
4245
4246 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
4247
4248         * spu-tdep.c (spu_in_function_epilogue_p): New function.
4249         (spu_gdbarch_init): Install it.
4250
4251 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
4252
4253         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
4254         object types, not 0.
4255
4256 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
4257
4258         * spu-tdep.c (spu_frame_align): New function.
4259         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
4260
4261 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
4262
4263         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
4264         (spu_software_single_step): Likewise.
4265         (spu_read_pc, spu_write_pc): New functions.
4266         (spu_gdbarch_init): Install them.
4267
4268 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
4269
4270         * cli/cli-dump.c (struct callback_data): load_offset needs to 
4271         have signed long type.
4272
4273 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
4274
4275         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
4276         Revert the previous change that had some unexpected side-effects
4277         on mips32.
4278         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
4279         function to get the address of the calling instruction.
4280
4281 2007-03-07  Denis Pilat  <denis.pilat@st.com>
4282
4283         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
4284         get_selected_frame by deprecated_safe_get_selected_frame.
4285
4286 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
4287
4288         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
4289         "gdb_string.h".  Don't include "nbsd-tdep.h".
4290         (SIZEOF_STRUCT_REG): Remove.
4291         (SHNBSD_SIZEOF_GREGS): New.
4292         (shnbsd_supply_gregset, shnbsd_collect_gregset)
4293         (shnbsd_regset_from_core_section): New functions.
4294         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
4295         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
4296         shnbsd_supply_gregset, shnbsd_collect_gregset.
4297         (shnbsd_gregset): New variable.
4298         (shnbsd_init_abi): Set regset_from_core_section.
4299         (GDB_OSABI_NETBSD_CORE): New define.
4300         (shnbsd_core_osabi_sniffer): New function.
4301         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
4302         * Makefile.in (shnbsd-tdep.o): Update dependencies.
4303         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
4304         nbsd-tdep.o.
4305         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
4306
4307 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
4308
4309         * gdbtypes.c (replace_type): Fix typo that caused us to not update
4310         length of the types referenced by the new type CV ring.
4311
4312 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
4313
4314         * frame.c (frame_pop, frame_observer_target_changed): Call
4315         reinit_frame_cache.
4316         (flush_cached_frames): Rename to reinit_frame_cache and delete
4317         old implementation.
4318         * frame.h (flush_cached_frames): Delete prototype and update comment.
4319
4320         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
4321         reinit_frame_cache instead of flush_cached_frames.  Do not call
4322         select_frame after reinit_frame_cache.
4323         * corelow.c (core_open): Likewise.
4324         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
4325         * infrun.c (prepare_to_proceed, context_switch)
4326         (handle_inferior_event): Likewise.
4327         * linux-fork.c (fork_load_infrun_state): Likewise.
4328         * ocd.c (ocd_start_remote): Likewise.
4329         * remote-e7000.c (e7000_start_remote): Likewise.
4330         * remote-mips.c (device): Likewise.
4331         * thread.c (switch_to_thread): Likewise.
4332         * tracepoint.c (finish_tfind_command): Likewise.
4333         * gdbarch.c: Regenerated.
4334
4335 2007-02-28  Jerome Guitton  <guitton@adacore.com>
4336             Joel Brobecker  <brobecker@adacore.com>
4337
4338         * gdbtypes.c (check_typedef): Do not replace stub type if
4339         the resolved type is not defined in the same objfile.
4340
4341 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
4342
4343         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
4344
4345 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
4346
4347         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
4348         symbol for Ada units when the symbol is defined using 't' rather
4349         than 'Tt' as symbol descriptor.
4350
4351 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
4352
4353         * config/mips/tm-nbsd.h: Delete file.
4354         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4355         * config/sh/tm-nbsd.h: Delete file.
4356         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
4357
4358 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
4359
4360         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
4361         unused WRONG_PARAM value since it was recently deleted.
4362
4363 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
4364
4365         * varobj.c (varobj_update): Free temporary vectors.
4366
4367 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
4368
4369         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
4370         * config/powerpc/tm-linux.h: Delete file.
4371         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
4372         (PROCESS_LINENUMBER_HOOK): Do not undefine.
4373         (TEXT_SEGMENT_BASE): Do not redefine.
4374         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
4375         from config/rs6000/tm-rs6000.h.
4376         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4377         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
4378         (TEXT_SEGMENT_BASE): Remove.
4379         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
4380         (rs6000_in_solib_return_trampoline): Remove.
4381         (SKIP_TRAMPOLINE_CODE): Remove.
4382         (rs6000_skip_trampoline_code): Remove.
4383         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
4384         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4385         (FP0_REGNUM): Remove.
4386         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
4387         (rs6000_set_host_arch_hook): Remove.
4388         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
4389         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
4390         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
4391         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
4392         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
4393         * rs6000-nat.c: Include "rs6000-tdep.h".
4394         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
4395         (set_host_arch): Rename to ...
4396         (rs6000_create_inferior): ... this.  Make public.
4397         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
4398         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
4399         (rs6000_create_inferior): Remove.
4400         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
4401         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
4402         set_gdbarch_in_solib_return_trampoline, and
4403         set_gdbarch_skip_trampoline_code.
4404         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
4405         from config/rs6000/tm-rs6000.h.
4406
4407 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
4408
4409         * buildsym.c (record_producer): Do nothing if no producer is provided.
4410
4411 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
4412
4413         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
4414         to check changelist is non-NULL.  Call error if the frontend tries
4415         to update a non-root variable.
4416
4417         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
4418
4419 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
4420
4421         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
4422         (dwarf2_frame_sniffer): Update.
4423         (dwarf2_signal_frame_this_id): New function.
4424         (dwarf2_signal_frame_unwind): Use it.
4425         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
4426         * frame.c (frame_func_unwind): Add this_type argument.
4427         (get_frame_func): Update.
4428         (frame_unwind_address_in_block): Add this_type argument and check it.
4429         Fix a typo.
4430         (get_frame_address_in_block): Update.
4431         * frame.h (enum frame_type): Move higher in the file.
4432         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
4433         argument.
4434
4435         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
4436         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
4437         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
4438         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
4439         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
4440         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
4441         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
4442         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
4443         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
4444         frame_func_unwind and frame_unwind_address_in_block to specify
4445         the frame type.  Use frame_unwind_address_in_block instead of
4446         frame_pc_unwind in sniffers.
4447
4448 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
4449
4450         * frame.c (deprecated_selected_frame): Rename to...
4451         (selected_frame): ...this.  Make static.
4452         (get_selected_frame, select_frame): Update.
4453         * frame.h (deprected_select_frame): Delete.
4454         (deprecated_safe_get_selected_frame): Update comments.
4455
4456         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
4457         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
4458         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
4459         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
4460         tui/tui.c: Replace references to deprecated_selected_frame.
4461
4462 2007-02-27  Fred Fish  <fnf@specifix.com>
4463
4464         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
4465         directly decrement the stack pointer, accumulate their operand into 
4466         the stack offset, and mark the function as not being frameless.
4467
4468 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4469
4470         * arch-utils.c (selected_byte_order): New.
4471         * arch-utils.h (selected_byte_order): New prototype.
4472         * remote-sim.c (gdbsim_open): Use selected_byte_order.
4473
4474 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4475
4476         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
4477         (default_symfile_offsets): Check VMA here.  Update section VMAs.
4478
4479 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4480
4481         * remote.c (init_remote_state): Add special handling for placeholder
4482         registers.
4483
4484 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4485
4486         * Makefile.in (XMLFILES): Include $(TDEP_XML).
4487         (filenames_h): New variable.
4488         (clean): Clean up xml-builtin.c and stamp-xml.
4489         (arm-linux-nat.o): Update.
4490         * config/arm/linux.mh (TDEP_XML): Define.
4491         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
4492         (arm_linux_has_wmmx_registers): New.
4493         (GET_THREAD_ID): Fix typo.
4494         (IWMMXT_REGS_SIZE): Define.
4495         (fetch_wmmx_regs, store_wmmx_regs): New.
4496         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
4497         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
4498         (super_xfer_partial, arm_linux_xfer_partial): New.
4499         (_initialize_arm_linux_nat): Use them.
4500         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
4501         (xml_builtin_xfer_partial): New function.
4502         * xml-support.h (xml_builtin_xfer_partial): New prototype.
4503         * NEWS: Update mention of iWMMXt support.
4504
4505 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4506
4507         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
4508         if there are no FPA registers.
4509         (arm_dwarf_reg_to_regnum): New function.
4510         (arm_register_type, arm_register_name): Return minimal values for
4511         unsupported registers.
4512         (arm_register_sim_regno): Handle iWMMXt registers.
4513         (arm_gdbarch_init): Record missing FPA registers if indicated by
4514         a target description.  Recognize iWMMXt registers.  Only register
4515         "info float" for FPA.  Use ARM_NUM_REGS.  Register
4516         arm_dwarf_reg_to_regnum.
4517         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
4518         constants.
4519         (struct gdbarch_tdep): Add have_fpa_registers.
4520         * features/xscale-iwmmxt.xml: Update capitalization.
4521         * regformats/arm-with-iwmmxt.dat: Regenerated.
4522
4523 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
4524
4525         * NEWS (New targets): Add entry for the Toshiba Media Processor.
4526
4527 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
4528
4529         * MAINTAINERS (mep): New target.
4530
4531 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
4532
4533         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
4534         Richard Sandiford:
4535         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
4536         (mep-tdep.o): New rule.
4537         * configure.tgt (mep-*-*): New target.
4538         * mep-tdep.c: New file.
4539         * config/mep/mep.mt: New file.
4540
4541 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
4542
4543         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
4544         BREAKPOINT_HIT and STOP_UNKNOWN.
4545
4546 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
4547
4548         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
4549
4550 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
4551
4552         * gdb_expat.h (XMLCALL): Define if not already defined.
4553
4554 2007-02-20  Andreas Schwab  <schwab@suse.de>
4555
4556         * Makefile.in (symfile.o): Update dependencies.
4557
4558 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
4559
4560         * MAINTAINERS: Disable -Werror for cris simulator.  Build
4561         sparc64-solaris2.10 instead of the broken sparc-elf.
4562         * solib-frv.c: Include "solib.h".
4563         * Makefile.in (solib-frv.o): Update.
4564         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
4565         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
4566         (xtensa_frame_this_id, xtensa_frame_prev_register)
4567         (xtensa_push_dummy_call): Use %p.
4568
4569 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
4570
4571         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4572         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
4573         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4574         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
4575         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
4576         (sparc-linux-tdep.o): Update.
4577
4578 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
4579
4580         * xtensa-tdep.h (xtensa_reg_mask_t): New.
4581         (xtensa_mask_t): Change mask field to be a separate array.
4582         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
4583         (xtensa_pseudo_register_write, xtensa_unwind_pc)
4584         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
4585         (xtensa_breakpoint_from_pc): Remove implicit type casting.
4586         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
4587         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
4588         (mask14, mask15): Rename to
4589         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
4590         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
4591         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
4592         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
4593         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
4594         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
4595         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
4596         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
4597         (xtensa_submask14, xtensa_submask15): New.
4598         (rmap): Follow strict aliasing rules doing static initialization.
4599
4600 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
4601
4602         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
4603         handling from here...
4604         (tdesc_register_type): ...to here.
4605         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
4606         * features/arm-core.xml: Use code_ptr and data_ptr.
4607
4608 2007-02-13  Denis Pilat  <denis.pilat@st.com>
4609
4610         * varobj.h (enum varobj_update_error): New enum.
4611         * varobj.c (struct varobj_root): Add is_valid member.
4612         (varobj_get_type): Check for invalid varobj.
4613         (varobj_get_attributes): Likewise.
4614         (variable_editable):Likewise.
4615         (varobj_update): Likewise.  Use varobj_update_error.
4616         (new_root_variable): Set root varobj as valid by default.
4617         (varobj_invalidate): New function.
4618         * symfile.c (clear_symtab_users): Use varobj_invalidate.
4619         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
4620         Use varobj_update_error.
4621
4622 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
4623
4624         Fix PR pascal/2223.
4625         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
4626         Pascal language marker.
4627         * dwarf2read.c (set_cu_language): Likewise.
4628
4629 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
4630
4631         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
4632         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
4633         instead of target_terminal_init since inferior_ptid isn't set yet.
4634
4635 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
4636
4637         * MAINTAINERS (Write After Approval): Add myself.
4638
4639 2007-02-09  Fred Fish  <fnf@specifix.com>
4640
4641         Based on work by Apple Computer, Inc.
4642         * event-top.c (async_request_quit): Call quit() whenever either
4643         quit_flag is set or immediate_quit is set.
4644
4645 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4646
4647         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
4648         type to a pointer to const struct block.
4649         (ada_lookup_symbol_list): Don't cast away constness when calling
4650         remove_out_of_scope_renamings.
4651
4652 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4653
4654         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
4655         address of 'filename'; it is always non null.
4656
4657 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
4658
4659         * exec.c (add_to_section_table): Do not discard empty sections.
4660
4661 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4662
4663         * features/Makefile, features/arm-with-iwmmxt.xml,
4664         features/gdbserver-regs.xsl, features/number-regs.xsl,
4665         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
4666         * regformats/arm-with-iwmmxt.dat: Generate.
4667         * NEWS: Mention iWMMXt.
4668
4669 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4670
4671         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
4672         (xml-tdesc.o): Update.
4673         * xml-support.c: Add a comment.
4674         (gdb_xml_enums_boolean): New variable.
4675         (gdb_xml_parse_attr_enum): Use strcasecmp.
4676         * xml-support.h (gdb_xml_enums_boolean): Declare.
4677         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
4678         next_regnum, and current_union.
4679         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
4680         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
4681         (field_attributes, union_children, reg_attributes, union_attributes)
4682         (vector_attributes, feature_attributes, feature_children): New.
4683         (target_children): Make static.  Add <feature>.
4684         (tdesc_elements): Make static.
4685         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
4686         (struct tdesc_feature, tdesc_feature_p): New types.
4687         (struct target_desc): Add features member.
4688         (struct tdesc_arch_data, tdesc_data): New.
4689         (target_find_description): Clarify error message.  Warn about
4690         ignored register descriptions.
4691         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4692         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
4693         (tdesc_data_cleanup, tdesc_numbered_register)
4694         (tdesc_numbered_register_choices, tdesc_find_register)
4695         (tdesc_register_name, tdesc_register_type)
4696         (tdesc_remote_register_number, tdesc_register_reggroup_p)
4697         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
4698         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
4699         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
4700         (tdesc_create_feature, tdesc_record_type): New.
4701         (free_target_description): Free features.
4702         (_initialize_target_descriptions): Initialize tdesc_data.
4703         * arch-utils.c (default_remote_register_number): New.
4704         * arch-utils.h (default_remote_register_number): New prototype.
4705         * target-descriptions.h (set_tdesc_pseudo_register_name)
4706         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4707         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4708         (tdesc_numbered_register, tdesc_numbered_register_choices)
4709         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4710         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4711         (tdesc_create_reg): Declare.
4712         * gdbarch.sh (remote_register_number): New entry.
4713         * gdbarch.c, gdbarch.h: Regenerate.
4714         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4715         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4716
4717         * arm-tdep.c (arm_register_aliases): New.
4718         (arm_register_name_strings): Rename to...
4719         (arm_register_names): ...this.  Make const.  Delete the old version.
4720         (current_option, arm_register_byte): Delete.
4721         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
4722         (value_of_arm_user_reg): New.
4723         (arm_gdbarch_init): Verify any described registers.  Call
4724         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
4725         for standard register names.
4726         (_initialize_arm_tdep): Do not adjust arm_register_names.
4727         * user-regs.c (struct user_reg): Add baton member.
4728         (append_user_reg, user_reg_add_builtin, user_regs_init)
4729         (user_reg_add, value_of_user_reg): Use a baton for user
4730         register functions.
4731         * std-regs.c: Update.
4732         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4733         (user_reg_add): Add baton argument.
4734         * NEWS: Mention target description register support.
4735         * features/arm-core.xml, features/arm-fpa.xml: New.
4736         * eval.c (evaluate_subexp_standard): Allow ptype $register
4737         when the program is not running.
4738
4739 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
4740
4741         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
4742
4743 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4744
4745         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4746         info->disassembler_options to "any".
4747
4748 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4749
4750         * varobj.c (install_new_value): Only call value_get_print_value
4751         if changeable.
4752
4753 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4754
4755         Reported by timeless@gmail.com:
4756         * gdb/target.c (target_flash_erase): Do not return void value.
4757         (target_flash_done): Likewise.
4758         * gdb/cli/cli-cmds.c (source_command): Likewise.
4759
4760 2007-02-08  Fred Fish  <fnf@specifix.com>
4761
4762         Based on work by Apple Computer, Inc.
4763         * event-top.c (handle_sigint): Set quit_flag.
4764         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
4765         if quit_flag has already been reset.
4766
4767 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4768
4769         * ser-mingw.c (pipe_windows_close): Move variable initialization back
4770         up.
4771
4772 2007-02-08  Fred Fish  <fnf@specifix.com>
4773
4774         * defs.h (request_quit): Remove declaration.
4775         * utils.c (request_quit): Remove definition.
4776
4777 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
4778             Jan Kratochvil  <jan.kratochvil@redhat.com>
4779             Daniel Jacobowitz  <dan@codesourcery.com>
4780
4781         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4782         (skip_prologue): Allow bl->blrl used by PIC code.
4783
4784 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
4785             Daniel Jacobowitz  <dan@codesourcery.com>
4786
4787         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4788         initialize tmp_obstack.
4789         * p-valprint.c (pascal_object_print_value_fields)
4790         (pascal_object_print_value): Likewise.
4791
4792 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
4793
4794         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4795
4796 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
4797
4798         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4799         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4800
4801 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
4802
4803         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4804         (xml_cache): New.
4805         (tdesc_parse_xml): Cache expanded descriptions.
4806
4807 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
4808
4809         * Makefile.in (XMLFILES): New.
4810         (COMMON_OBS): Add xml-builtin.o.
4811         (xml-builtin.c, stamp-xml): New rules.
4812         (xml-tdesc.o): Update.
4813         * features/feature_to_c.sh: New file.
4814         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4815         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4816         (gdb_xml_start_element): Initialize scope after possibly reallocating
4817         scopes.  Move cleanup later.  Handle the XInclude description
4818         specially.
4819         (gdb_xml_end_element): Only parse the body if there is a current element.
4820         Call XML_DefaultCurrent if there is no element.
4821         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4822         (struct xinclude_parsing_data, xinclude_start_include)
4823         (xinclude_end_include, xml_xinclude_default)
4824         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
4825         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
4826         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
4827         * xml-support.h (xml_fetch_another, xml_process_xincludes)
4828         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
4829         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
4830         XInclude directives.  Use the compiled in DTD.
4831         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
4832         directory name.  Do not warn here.
4833         (file_read_description_xml): Update call.  Warn here instead.  Pass
4834         a dirname as baton.
4835         (fetch_available_features_from_target): New.
4836         (target_read_description_xml): Use it.
4837         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
4838         to handle XInclude.
4839         * features/xinclude.dtd: New file.
4840
4841 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
4842
4843         * linux-thread-db.c (check_for_thread_db): Return early if we have
4844         no libthread_db support.
4845
4846 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
4847
4848         * mi/mi-parse.h: Include <sys/time.h>.
4849
4850 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
4851
4852         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
4853         instead of print_variable_value to print values.
4854
4855 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
4856
4857         * mi/mi-main.c: Numerous formatting changes.
4858         (mi_cmd_data_write_register_values): Replace clause inadvertantly
4859         removed in my previous change.
4860
4861 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
4862
4863         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
4864         Use 1000000L instead of 1000000.
4865
4866 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
4867
4868             Based on work by Apple Computer, Inc.
4869
4870         * configure.ac: Test for sys/resource.h and getrusage.
4871         * configure, config.in: Regenerate.
4872
4873         * mi/mi-main.c: Include <sys/resource.h> if present.
4874         (rusage): Declare if HAVE_GETRUSAGE.
4875         (current_command_ts, do_timings): New static variables.
4876         (timestamp, print_diff_now, print_diff, timeval_diff):
4877         New static timing functions.
4878         (mi_cmd_enable_timings): New function for new MI command.
4879         (captured_mi_execute_command, mi_execute_async_cli_command): 
4880         Call timing functions.
4881
4882         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
4883         -enable-timings.
4884
4885         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
4886
4887         * mi/mi-parse.h: (mi_timestamp): New structure.
4888         (mi_parse): Add mi_timestamp* member.
4889
4890 2007-02-02  Denis Pilat  <denis.pilat@st.com>
4891
4892         * thread.c (make_cleanup_restore_current_thread): New function.
4893         (info_threads_command): Use of make_cleanup_restore_current_thread
4894         to restore the current thread and the selected frame.
4895         (restore_selected_frame): New function.
4896         (struct current_thread_cleanup): Add frame_id field.
4897         (do_restore_current_thread_cleanup): Add restoring of the selected
4898         frame.
4899         (make_cleanup_restore_current_thread): Likewise.
4900         (thread_apply_all_command): backup the selected frame while 
4901         entering the function and restore it at exit.
4902         (thread_apply_command): Likewise.
4903
4904 2007-02-02  Denis Pilat  <denis.pilat@st.com>
4905
4906         * MAINTAINERS (Write After Approval): Add myself to the list.
4907
4908 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4909
4910         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
4911         (m32r_store_register): Ditto.
4912
4913 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
4914
4915         * ser-mingw.c (pipe_windows_open)
4916         (pipe_windows_read, pipe_windows_write): Declare
4917         variables at the top of the function.
4918
4919 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
4920
4921         * doublest.c (floatformat_from_length): Use the right element from
4922         gdbarch floatformats.
4923         (floatformat_from_type, extract_typed_floating)
4924         (store_typed_floating): Likewise.
4925         * doublest.h: Remove declarations for undefined floatformat arrays.
4926         * gdbarch.sh (float_format, double_format, long_double_format): Change
4927         to pairs.
4928         (pformat): Update for pairs.
4929         * gdbarch.c, gdbarch.h: Regenerated.
4930         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
4931         (floatformats_ieee_double_littlebyte_bigword)
4932         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
4933         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
4934         (floatformats_vax_d): New variables.
4935         (builtin_type_ieee_single, builtin_type_ieee_double)
4936         (builtin_type_arm_ext, builtin_type_ia64_spill)
4937         (builtin_type_ia64_quad): Replace arrays with individual types.
4938         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
4939         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
4940         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
4941         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
4942         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
4943         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
4944         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
4945         unused and endian-specific types.
4946         (recursive_dump_type): Update for floatformat pairs.
4947         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
4948         (build_gdbtypes): Use build_flt.
4949         (_initialize_gdbtypes): Update set of initialized types.
4950         * gdbtypes.h: Update declarations to match gdbtypes.c.
4951         (struct main_type): Store a pointer to two floatformats.
4952         * arch-utils.c (default_float_format, default_double_format): Delete.
4953         * arch-utils.h (default_float_format, default_double_format): Delete.
4954
4955         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4956         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
4957         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
4958         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
4959         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
4960
4961 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
4962
4963         * target.c (maintenance_print_target_stack): New function.
4964         (initialize_targets): Add new "maintenance print target-stack"
4965         command.
4966
4967 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
4968
4969         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
4970
4971 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
4972
4973         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
4974         (struct dwarf2_loclist_baton): Likewise.
4975
4976 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
4977
4978         * cli/cli-script.c: Include breakpoint.h.
4979         (build_command_line): Require arguments only for if and while
4980         commands.
4981         (get_command_line, execute_user_command, execute_control_command):
4982         Fix wording of warning messages.
4983         (print_command_lines): Print breakpoint commands.
4984         (execute_control_command): Call commands_from_control_command to
4985         handle the `commands' command inside a body of a flow-control
4986         command.
4987         (read_next_line): Recognize the `commands' command and build a
4988         command line structure for it.
4989         (recurse_read_control_structure, read_command_lines): Handle
4990         `commands' similarly to `if' and `while'.
4991
4992         * breakpoint.c (get_number_trailer): Document the special meaning
4993         of NULL as the first argument PP.
4994         (commands_from_control_command): New function.
4995
4996         * breakpoint.h (commands_from_control_command): Add prototype.
4997
4998         * defs.h (commands_control): New enumerated value for enum
4999         command_control_type.
5000
5001 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
5002
5003         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
5004         (ada_exception_sal): Update accordingly.
5005
5006 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
5007
5008         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
5009         * NEWS: Describe CHAR array vs. string identifcation rules.
5010
5011 2007-01-25  Paul Brook  <paul@codesourcery.com>
5012
5013         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
5014
5015 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
5016
5017         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
5018         expression is empty, bother to return the 'optimized out' value we
5019         construct.  (Thanks to Carl Burch.)
5020
5021 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
5022
5023         * varobj.c (c_value_of_root, c_value_of_child)
5024         (cplus_describe_child): Don't call release_value.
5025
5026 2007-01-24  Thiemo Seufer  <ths@mips.com>
5027
5028         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
5029         initialization.
5030
5031 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
5032
5033         Refactor getting children name, value and type access 
5034         for varobjs in C++.
5035         * varobj.c (get_type_deref): Remove.
5036         (adjust_value_for_child_access): New.
5037         (c_number_of_children): Use the above.
5038         (c_describe_child): Likewise.
5039         (enum accessibility): New.
5040         (match_accessibility): New function.
5041         (cplus_describe_child): New function.
5042         (cplus_name_of_child, cplus_value_of_child)
5043         (cplus_type_of_child): Reimplement in terms
5044         of cplus_describe_child.
5045         (cplus_number_of_children): Use 
5046         adjust_value_for_child_access.
5047         
5048 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
5049
5050         Fix computation of the 'editable' attribute and
5051         value changeability for for references.
5052         * varobj.c (get_value_type): New function.
5053         (c_variable_editable): Use get_value_type.
5054         (varobj_value_is_changeable): Likewise.
5055                 
5056 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
5057
5058         * source.c (find_and_open_source): Try rewriting the source
5059         path inside filename if dirname is NULL.
5060
5061 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
5062
5063         * dwarf2read.c (add_partial_symbol): Create an extra partial
5064         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
5065         (new_symbol): Likewise for symbols.
5066
5067 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
5068
5069         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
5070
5071 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
5072         
5073         * value.c (value_primitive_field): Copy the full 'location' 
5074         contents, instead of assuming that copying ADDRESS will 
5075         bring over everything in the union.  Remove obsolete comment.
5076         
5077 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
5078
5079         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
5080         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
5081         (m32c_m16c_pointer_to_address): Separate code from declarations.
5082
5083 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
5084
5085         * target.c (update_current_target): Correct typo.
5086
5087 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
5088
5089         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
5090         declaration.
5091
5092 2007-01-11  Andrew Cagney  <cagney@redhat.com>
5093             Daniel Jacobowitz  <dan@codesourcery.com>
5094             Jan Kratochvil  <jan.kratochvil@redhat.com>
5095
5096         * dwarf2-frame.c (execute_cfa_program): New support of
5097         `DW_CFA_GNU_negative_offset_extended'.
5098
5099 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
5100
5101         * NEWS: Mention flash support for "load" and new remote packets.
5102
5103 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
5104
5105         * breakpoint.c (delete_command): Skip redundant loop iterations.
5106
5107 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
5108
5109         * gdbarch.sh (register_type): Update comment.
5110         * gdbarch.h: Regenerated.
5111         * arch-utils.c (generic_register_size): Call register_type.
5112         * ia64-tdep.c (ia64_extract_return_value): Likewise.
5113         * m32c-tdep.c (check_for_saved): Likewise.
5114         * mips-tdep.c (mips_print_register, print_gp_register_row)
5115         (mips_print_registers_info): Likewise.
5116         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
5117         Likewise.
5118         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
5119         (sh64_do_register, sh64_print_register)
5120         (sh64_media_print_registers_info): Likewise.
5121         * tui/tui-regs.c (tui_register_format): Likewise.
5122
5123 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
5124
5125         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
5126
5127         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
5128         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
5129         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
5130         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5131         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
5132         (make_symbol_completion_list): Likewise.
5133
5134 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5135             Daniel Jacobowitz  <dan@codesourcery.com>
5136
5137         * buildsym.c (end_symtab): Use preallocated symtab if available.
5138         Fill in SYMBOL_SYMTAB.
5139         * buildsym.h (struct subfile): Add symtab member.
5140         * dwarf2read.c (struct dwarf2_cu): Add line_header.
5141         (struct file_entry): Add symtab.
5142         (free_cu_line_header): New function.
5143         (read_file_scope): Use it.  Save line_header in the cu.  Process
5144         lines before DIEs.
5145         (add_file_name): Initialize new symtab member.
5146         (dwarf_decode_lines): Create symtabs for included files.
5147         (new_symbol): Set SYMBOL_SYMTAB.
5148         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
5149         (search_symbols): Likewise.
5150         * symtab.h (struct symbol): Add symtab member.
5151         (SYMBOL_SYMTAB): Define.
5152
5153 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
5154
5155         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
5156
5157 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
5158
5159         * arch-utils.c (show_endian): Correct reversed condition.
5160
5161 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5162
5163         * MAINTAINERS (Write After Approval): Add myself.
5164
5165 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
5166             Vladimir Prus  <vladimir@codesourcery.com>
5167
5168         Fix 'selected frame' varobjs.
5169         * varobj.c (struct varobj): Remove the error field.
5170         (varobj_set_value): Don't check var->error.
5171         (install_new_value): Don't set var->error.
5172         (varobj_update): Always pass the new value
5173         of the root via install_new_value.
5174         (create_child): Don't set error field.
5175         (new_variable): Likewise.
5176         (c_value_of_root): Always reevaluate the value
5177         of selected frame varobjs in the selected frame.
5178         Don't call reinit_frame_cache.
5179
5180 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
5181
5182         * source.c (_initialize_source): Improve the help text of
5183         the substitute-path commands.
5184
5185 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
5186
5187         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
5188         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
5189         (frv_skip_prologue): Remove prototypes.
5190         (frv_adjust_breakpoint_address): Renamed from
5191         frv_gdbarch_adjust_breakpoint_address.
5192         (frv_gdbarch_init): Adjust.
5193
5194 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
5195
5196         * gdbarch.sh (deprecated_extract_return_value)
5197         (deprecated_store_return_value): Remove.
5198         (extract_return_value, store_return_value): Remove default values.
5199         * gdbarch.c, gdbarch.h: Regenerate.
5200         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
5201         (legacy_store_return_value): Remove.
5202         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
5203         Remove.
5204
5205         * mi/mi-main.c: Remove obsolete comment.
5206
5207         * regcache.c, regcache.h (deprecated_register_bytes)
5208         (deprecated_read_register_bytes)
5209         (deprecated_write_register_bytes): Remove.
5210
5211         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
5212         Don't forget to move destination pointer.
5213
5214 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
5215
5216         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
5217
5218 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
5219
5220         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
5221         past entry function with recent newlib.
5222
5223 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
5224
5225         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
5226         introduction.  Specify -var-update more exactly.
5227
5228 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
5229
5230         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
5231
5232 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
5233
5234         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
5235         the Global Maintainers' invitation to be a global maintainer.
5236
5237 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
5238
5239         * infrun.c (singlestep_pc): New variable.
5240         (resume): Set singlestep_pc.
5241         (context_switch): Add a debugging message.  Flush the frame cache.
5242         (handle_inferior_event): Add debugging messages.  Handle thread
5243         hops when a software single step has completed.  Let context_switch
5244         handle flushing the frame cache.
5245
5246 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
5247
5248         * NEWS: Mention target descriptions, "set tdesc filename",
5249         "unset tdesc filename", "show tdesc filename", and
5250         qXfer:features:read.
5251         * arch-utils.c (choose_architecture_for_target): New function.
5252         (gdbarch_info_fill): Call it.
5253         * target-descriptions.c (struct property): Make members non-const.
5254         (struct target_desc): Add arch member.
5255         (target_description_filename): New variable.
5256         (target_find_description): Try via XML first.
5257         (tdesc_architecture): New.
5258         (free_target_description, make_cleanup_free_target_description): New.
5259         (set_tdesc_property): Call xstrdup.
5260         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
5261         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
5262         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
5263         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
5264         * target-descriptions.h (tdesc_architecture)
5265         (make_cleanup_free_target_description, set_tdesc_architecture): New
5266         prototypes.
5267         * Makefile.in (SFILES): Add xml-tdesc.c.
5268         (COMMON_OBS): Add xml-tdesc.o.
5269         (target-descriptions.o): Update.
5270         (xml-tdesc.o): New rule.
5271         * xml-tdesc.c, xml-tdesc.h: New files.
5272         * remote.c (PACKET_qXfer_features): New enum.
5273         (remote_protocol_features): Add qXfer:features:read.
5274         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
5275         (_initialize_remote): Register qXfer:features:read.
5276         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
5277         * features/gdb-target.dtd: New file.
5278
5279 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
5280
5281         * copyright.sh: Clarify error.
5282
5283 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5284
5285         * symtab.c (matching_bfd_sections): Fix VMA matching for
5286         prelinked objects.
5287
5288 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5289
5290         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
5291         nested symbols.
5292
5293 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
5294
5295         Updated copyright notices for most files.
5296
5297 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
5298
5299         * copyright.sh (prunes): Add step-line.inp and step-line.c.
5300
5301 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
5302
5303         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
5304         exec_prefix.
5305         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
5306         '${prefix}'.
5307         * configure, config.in: Regenerate.
5308         * defs.h (debug_file_directory): Declare.
5309         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
5310         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
5311         relocate it if DEBUGDIR_RELOCATABLE.
5312         * symfile.c (debug_file_directory): Make non-static.
5313         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
5314         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
5315         (_initialize_symfile): Don't initialize debug_file_directory here.
5316
5317 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
5318
5319         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
5320         statements.
5321
5322 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
5323
5324         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
5325         frame_unwind_register to recurse.
5326         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
5327         (alpha_heuristic_frame_prev_register): Likewise.
5328         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
5329         * m32c-tdep.c (m32c_prev_register): Likewise.
5330         * frame.c (frame_register_unwind_location): Remove FIXME.
5331
5332 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
5333             Eli Zaretskii  <eliz@gnu.org>
5334
5335         * copyright.sh: New file.
5336
5337 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
5338
5339         * configure.ac: Check for XML_StopParser.
5340         * xml-support.c (gdb_xml_body_text): Check for an error.
5341         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
5342         (gdb_xml_end_element_wrapper): Likewise.
5343         * config.in, configure: Regenerated.
5344
5345 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
5346
5347         * varobj.c (install_new_value): Always update print_value.
5348         (value_get_print_value): Immediately return NULL for missing
5349         values.
5350
5351 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
5352
5353         * configure.ac: Tighten pattern for extracting value of
5354         DEPRECATED_TM_FILE from the target makefile fragment.
5355         * configure: Regenerated.
5356
5357 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
5358
5359         * linux-nat.c (struct simple_pid_list): Add status.
5360         (add_to_pid_list): Record the PID's status.
5361         (linux_record_stopped_pid): Likewise.  Make static.
5362         (pull_pid_from_list): Return the saved status.
5363         (linux_nat_handle_extended): Deleted.
5364         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
5365         Make static.  Handle non-SIGSTOP for a new thread's first signal.
5366         (flush_callback): Handle unexpected pending signals.
5367         (linux_nat_wait): Update calls to changed functions.
5368         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
5369         Remove prototypes for newly static functions.
5370
5371 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
5372
5373         * gdbarch.sh (value_from_register): New gdbarch function.
5374         * gdbarch.c, gdbarch.h: Regenerate.
5375         * findvar.c (default_value_from_register): New function.
5376         (value_from_register): Use gdbarch_value_from_register.
5377         * value.h (default_value_from_register): Declare.
5378         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
5379         spu_value_to_register): Remove.
5380         (spu_value_from_register): New function.
5381         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5382         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5383         Call set_gdbarch_value_from_register.
5384         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
5385         s390_value_to_register): Remove.
5386         (s390_value_from_register): New function.
5387         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5388         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5389         Call set_gdbarch_value_from_register.
5390
5391 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
5392
5393         * NEWS: Add "set sysroot" and "show sysroot".
5394         * solib.c (solib_absolute_prefix): Delete.  Replace
5395         all uses with gdb_sysroot.
5396         (_initialize_solib): Add "set sysroot" and "show sysroot".
5397         Make "solib-absolute-prefix" an alias to it.
5398
5399 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
5400
5401         * frame.c (get_frame_register_bytes): New function.
5402         (put_frame_register_bytes): Likewise.
5403         * frame.h (get_frame_register_bytes): Declare.
5404         (put_frame_register_bytes): Likewise.
5405         * findvar.c (value_from_register): Always construct lval_register
5406         values.  Use get_frame_register_bytes.
5407         * valops.c (value_assign): Use get_frame_register_bytes and
5408         put_frame_register_bytes.
5409
5410 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
5411
5412         * MAINTAINERS: Update Stan Shebs' email address.
5413
5414 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
5415
5416         * ada-lang.c (is_known_support_routine): Improve the implementation.
5417
5418 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
5419
5420         * ada-lang.c: Add include of source.h.
5421         (is_known_support_routine): Improve the check verifying that the file
5422         associated to this frame exists.
5423         * Makefile.in (ada-lang.o): Add dependency on source.h.
5424
5425 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
5426
5427         * ax-general.c (ax_const_l): Select proper opcode for the given
5428         value.
5429
5430 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
5431
5432         * varobj.c (c_value_of_root): Don't select frame if variable
5433         object is out of scope.
5434
5435 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
5436
5437         * varobj.c (struct varobj): New member print_value.
5438         (install_new_value): Compare last printed value with current one
5439         instead of contents.
5440         (new_variable): Initialize var->print_value to NULL.
5441         (free_variable): Free var->print_value.
5442         (value_get_print_value): New function derived from
5443         c_value_of_variable.
5444         (c_value_of_variable): Use value_get_print_value.
5445
5446 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
5447
5448         * i386-tdep.c (i386_analyze_stack_align): Add comment.
5449
5450 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
5451
5452         * NEWS: Add entries for new catch commands.
5453
5454 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
5455
5456         * dwarf2read.c (partial_die_info): Add field has_byte_size.
5457         (add_partial_symbol): Correct identification of external references.
5458         (process_structure_scope): Likewise.
5459         (read_partial_die): Handle DW_AT_byte_size attribute.
5460
5461 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
5462
5463         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
5464
5465 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
5466
5467         * varobj.c (get_type_deref): Fix variable objects for references to
5468         pointers.
5469
5470 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5471
5472         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
5473         with no symbols.
5474
5475 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5476
5477         * memory-map.c (struct_memory_map_parsing_data): Remove most
5478         members.  Make property_name an array.
5479         (free_memory_map_parsing_data, memory_map_start_element)
5480         (memory_map_end_element, memory_map_character_data): Delete.
5481         (memory_map_start_memory, memory_map_end_memory)
5482         (memory_map_start_property, memory_map_end_property): New functions.
5483         (property_attributes, memory_children, memory_type_enum)
5484         (memory_attributes, memory_map_children, memory_map_elements): New.
5485         (parse_memory_map): Rewrite.
5486         * xml-support.c (debug_xml): New.
5487         (xml_get_required_attribute, xml_get_integer_attribute)
5488         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
5489         Delete.
5490         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
5491         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
5492         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
5493         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
5494         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
5495         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
5496         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
5497         New.
5498         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
5499         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
5500         (enum gdb_xml_element_flag, struct gdb_xml_element)
5501         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
5502         (struct gdb_xml_enum): New.
5503         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
5504         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
5505         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
5506         (xml_get_required_attribute, xml_get_integer_attribute)
5507         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
5508         * Makefile.in (xml_support_h, xml-support.o): Update.
5509
5510 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5511
5512         * Makefile.in (eval.o): Update dependencies.
5513         * eval.c: Include "ui-out.h" and "exceptions.h".
5514         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
5515         Use value_zero if an error occurs when avoiding side effects.
5516         * varobj.c (c_value_of_root): Initialize new_val.
5517
5518 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5519
5520         * varobj.c (varobj_list_children): Stop if the number of children is
5521         unknown.
5522         (c_number_of_children):
5523
5524 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
5525
5526         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
5527         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
5528         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
5529         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
5530         sizeof, instead of hardcoded constants.
5531
5532 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5533
5534         * CONTRIBUTE: Use sourceware.org.
5535
5536 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5537
5538         * buildsym.c (start_subfile): Handle producer.
5539         (record_producer): New function.
5540         * buildsym.h (struct subfile): Include producer.
5541         (record_producer): New prototype.
5542         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
5543         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
5544         armcc_cfa_offsets_reversed.
5545         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
5546         (dwarf2_frame_find_quirks): New function.
5547         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
5548         (decode_frame_entry_1): Record the CIE version.  Record the
5549         augmentation.  Skip armcc augmentations.
5550         * dwarf2read.c (read_file_scope): Save the producer.
5551         * symtab.h (struct symtab): Rename unused version member to
5552         producer.
5553
5554 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
5555
5556         * configure.ac (build_warnings): Use -Wall and
5557         -Wdeclaration-after-statement.
5558         * configure: Regenerated.
5559
5560 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
5561
5562         Simplify access to variours properties of child
5563         variable objects in C.
5564         * varobj.c (value_struct_element_index): New function.
5565         (c_describe_child): New function.
5566         (c_name_of_child, c_value_of_child)
5567         (c_type_of_child): Rewrite to use c_describe_child.
5568
5569 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
5570
5571         gdb/
5572         * varobj.c: Include "vec.h". 
5573         (varobj_p): New typedef, declare vector of those.
5574         (struct varobj): Use vector for the 'children' member.
5575         (child_exists): Remove.
5576         (save_child_in_parent): Remove.
5577         (remove_child_from_parent): Remove.
5578         (struct varobj_child): Remove.
5579         (struct vstack): Remove.
5580         (vpush, vpop): Remove.
5581         (varobj_list_children): Adjust to work work vector.
5582         (varobj_update): Likewise. Use vectors for
5583         working stack and result.
5584         (delete_variable_1): Likewise.
5585         * Makefile.in (varobj.o): Update dependencies.
5586
5587 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
5588
5589         Port from Apple's version.
5590         gdb/
5591         * varobj.c (type_changeable): Rename to...
5592         (varobj_value_is_changeable_p): ...this. Adjust all callers.
5593         (is_root_p): New function. Use it everywhere.
5594
5595 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
5596
5597         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
5598         then plain 'fixup'.
5599
5600 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
5601
5602         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
5603
5604 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
5605
5606         * hpread.c (hpread_type_lookup): Fix compilation failure.
5607
5608 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
5609
5610         * NEWS: New port to S+core.
5611         * MAINTAINERS (Write After Approval, Responsible Maintainers):
5612         Add myself.
5613
5614         * Makefile.in: Add dependencies for S+core files.
5615         * configure.tgt (score*, score-*-*): Add S+core target.
5616         * config/score/embed.mt: New file.
5617         * score-tdep.c: New file.
5618         * score-tdep.h: New file.
5619
5620 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
5621
5622         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
5623         the appropriate type rather than a bogus void type.
5624
5625 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
5626
5627         * ada-lang.h (ada_find_printable_frame): Remove.
5628         (ada_exception_catchpoint_p, ada_decode_exception_location)
5629         (ada_decode_assert_location): Add declaration.
5630         * ada-lang.c: Add include of annotate.h and valprint.h.
5631         (exception_catchpoint_kind): New enum.
5632         (function_name_from_pc, is_known_support_routine)
5633         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
5634         (ada_exception_name_addr_1, ada_exception_name_addr)
5635         (print_it_exception, print_one_exception, print_mention_exception)
5636         (print_it_catch_exception, print_one_catch_exception)
5637         (print_mention_catch_exception, catch_exception_breakpoint_ops)
5638         (print_it_catch_exception_unhandled)
5639         (print_one_catch_exception_unhandled)
5640         (print_mention_catch_exception_unhandled, print_it_catch_assert)
5641         (print_one_catch_assert, print_mention_catch_assert)
5642         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
5643         (ada_get_next_arg, catch_ada_exception_command_split)
5644         (ada_exception_sym_name, ada_exception_sym_name)
5645         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
5646         (ada_parse_catchpoint_condition, ada_exception_sal)
5647         (ada_decode_exception_location)
5648         (ada_decode_assert_location): New function.
5649         (catch_exception_unhandled_breakpoint_ops): New global variable.
5650         (catch_assert_breakpoint_ops): New global variable.
5651         * breakpoint.c: Add include of ada-lang.h.
5652         (print_one_breakpoint): Do not print the condition for Ada
5653         exception catchpoints.
5654         (create_ada_exception_breakpoint): New function.
5655         (catch_ada_exception_command, catch_assert_command): New function.
5656         (catch_command_1): Add support for the new "catch exception" and
5657         "catch assert" commands.
5658         (_initialize_breakpoint): Add help description for the new catch
5659         commands.
5660         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
5661         valprint.h.
5662         (breakpoint.o): Add dependency on ada-lang.h.
5663
5664 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
5665
5666         * coffread.c (cs_to_section): If bfd_section is found, always
5667         return its section index.
5668         (coff_symtab_read): Determine the minimal_symbol_type using the
5669         bfd_section flags.
5670
5671 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5672             Daniel Jacobowitz  <dan@codesourcery.com>
5673
5674         * Makefile.in (top.o): Update.
5675         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
5676         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
5677         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
5678         New.
5679         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
5680
5681 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
5682
5683         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
5684         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
5685
5686 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
5687
5688         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
5689         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
5690         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
5691         greater than or equal to zero.
5692         * m2-typeprint.c (m2_array): Likewise.
5693         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5694         * gdbtypes.c (copy_type_recursive): Correct == typo.
5695         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
5696         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
5697         greater than zero.
5698         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
5699         (default_macro_scope): Remove unused variable.
5700         * prologue-value.h (pv_area_find_reg): Don't name an argument
5701         "register".
5702         * remote-fileio.c (remote_fio_func_map): Add missing braces.
5703         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5704         type.
5705         (cleanup_sigint_signal_handler): Remove casts.
5706         * valprint.c (val_print): Use a volatile local for the modified
5707         argument.
5708         * varobj.c (languages): Remove extra array dimension.
5709         (varobj_create): Correct access to languages array.
5710         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5711         missing braces.
5712         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5713         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5714         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5715         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5716         (mi_cmd_data_write_memory): Likewise.
5717         * signals/signals.c (target_signal_to_string): Cast to int before
5718         comparing.
5719         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5720         Update all callers.
5721
5722 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
5723
5724         * NEWS: Mention pointer to member improvements.
5725         * Makefile.in (gnu-v3-abi.o): Delete special rule.
5726         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5727         * ada-valprint.c (ada_print_scalar): Update for new type codes.
5728         * c-typeprint.c (c_print_type): Update for new type codes.
5729         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5730         (c_type_print_base): Likewise.
5731         (c_type_print_args): Rewrite.
5732         * c-valprint.c (c_val_print): Update for new type codes.  Remove
5733         support for references to members.  Treat methods like functions.
5734         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5735         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5736         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5737         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5738         (struct cp_abi_ops): Add corresponding members.
5739         * cp-valprint.c (cp_print_class_method): Delete.
5740         (cp_find_class_member): New function.
5741         (cp_print_class_member): Use it.  Simplify support for bogus
5742         member pointers.
5743         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5744         lookup_methodptr_type.
5745         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5746         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5747         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
5748         pointer support.
5749         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
5750         references returned by user defined operators.
5751         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5752         (f_type_print_varspec_suffix): Remove support for member pointers.
5753         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5754         and adjusted.
5755         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5756         (lookup_methodptr_type): New.
5757         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5758         (recursive_dump_type): Update for new types.
5759         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5760         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5761         (lookup_memberptr_type, lookup_methodptr_type)
5762         (smash_to_memberptr_type): New prototypes.
5763         (smash_to_method_type): Formatting fix.
5764         (lookup_member_type, smash_to_member_type): Delete prototypes.
5765         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5766         Do not rely on debug information for the vptr or the method's
5767         enclosing type.  Handle function descriptors for IA64.
5768         (gnuv3_virtual_fn_field): Rewrite using the new functions.
5769         (gnuv3_find_method_in, gnuv3_print_method_ptr)
5770         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5771         (gnuv3_method_ptr_to_value): New.
5772         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5773         * hpread.c (hpread_type_lookup): Update for new types.
5774         * infcall.c (value_arg_coerce): Likewise.
5775         * m2-typeprint.c (m2_print_type): Remove explicit support
5776         for member pointers.
5777         * m2-valprint.c (m2_val_print): Likewise.
5778         * p-typeprint.c (pascal_type_print_varspec_prefix)
5779         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5780         * p-valprint.c (pascal_val_print): Likewise.
5781         (pascal_object_print_class_method, pascal_object_print_class_member):
5782         Delete.
5783         * p-lang.h (pascal_object_print_class_method)
5784         (pascal_object_print_class_member): Delete prototypes.
5785         * stabsread.c (read_type): Update for new types.
5786         * typeprint.c (print_type_scalar): Likewise.
5787         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5788         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5789         argument.  Construct a pointer to member if the address of a
5790         function or data member is requested.
5791         (value_cast_pointers): Don't modify the input value.
5792         (value_cast): Adjust pointer to member handling for new types.
5793         Allow null pointer to member constants.  Don't modify the input
5794         value.
5795         (value_ind): Remove pointer to member check.  Handle function
5796         descriptors for function pointers.
5797         (value_struct_elt, value_find_oload_method_list, check_field):
5798         Remove pointer to member checks.
5799         * value.c (unpack_long): Allow pointers to data members.
5800         (value_from_longest): Allow member pointers.
5801         * value.h (value_aggregate_elt): Add want_address.
5802         * varobj.c (c_variable_editable): Remove check for members.
5803         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5804         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5805         in virtual tables.
5806         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5807         * c-lang.h (cp_print_class_method): Delete prototype.
5808         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5809         * mips-tdep.c (mips_gdbarch_init): Likewise.
5810         * gdbarch.c, gdbarch.h: Regenerated.
5811
5812 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
5813
5814         * rs6000-tdep.c (rs6000_use_struct_convention)
5815         (rs6000_extract_return_value, rs6000_store_return_value)
5816         (rs6000_extract_struct_value_address): Remove.
5817         (rs6000_return_value): New function.
5818         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5819         store_return_value, deprecated_extract_struct_value_address and
5820         deprecated_use_struct_convention.  Use rs6000_return_value
5821         instead.
5822
5823 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
5824
5825         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
5826         -display-disable, -display-enable, -display-insert and
5827         -display-list.
5828
5829 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
5830
5831         * breakpoint.c (remove_breakpoint): Remove dead code.
5832
5833 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
5834
5835         * varobj.c: Include block.h.
5836         (c_value_of_root): Check scope within nested statements.
5837
5838 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
5839
5840         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
5841         regcache_cooked_write_signed instead of
5842         deprecated_write_register_bytes.
5843
5844 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
5845
5846         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
5847
5848 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
5849
5850         Followed the Start of New Year Procedure:
5851         * ChangeLog-2006: New file, containing all the entries for 2006.
5852         * ChangeLog: Removed all 2006 entries, and changed the reference
5853         to the previous ChangeLog to point to ChangeLog 2006.
5854         * top.c (print_gdb_version): Update copyright year.
5855
5856 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
5857
5858         * Makefile.in (remote-sds.o): Remove.
5859         * remote-sds.c: Delete.
5860
5861 For older changes see ChangeLog-2006.
5862 \f
5863 Local Variables:
5864 mode: change-log
5865 left-margin: 8
5866 fill-column: 74
5867 version-control: never
5868 End: