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