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