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