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