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