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