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