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