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