1 2007-07-12 Kevin Buettner <kevinb@redhat.com>
3 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4 (mep_analyze_prologue): Add case for BRA instruction.
6 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
8 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
10 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
12 * breakpoint.c: Include "top.h".
13 (breakpoint_1): Don't set convenience variable $_ if server prefix
15 (_initialize_breakpoint): Describe this behaviour in command help.
17 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19 * solib-target.c (library_list_start_segment): Cast address to
22 2007-07-06 Mark Kettenis <kettenis@gnu.org>
24 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
25 for terminated processes.
27 2007-07-05 Michael Snyder <msnyder@access-company.com>
29 * event-top.c (cli_command_loop): Prompt string can (and should)
30 be freed after call to readline (Coverity). Also move local var
31 declarations into block where they are used.
33 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
34 should) be freed after call to readline (Coverity). Also move
35 local var declarations into block where they are used.
37 2007-07-03 Andreas Schwab <schwab@suse.de>
39 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
42 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
43 Thiago Bauermann <bauerman@br.ibm.com>
44 Joseph S. Myers <joseph@codesourcery.com>
45 Daniel Jacobowitz <dan@codesourcery.com>
47 * remote.c (remote_check_symbols): Use
48 gdbarch_convert_from_func_ptr_addr.
49 * infcall.c (find_function_addr): Handle function descriptors
50 without debugging information.
51 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
52 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
53 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
54 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
55 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
56 allow SEC_CODE and SEC_DATA.
57 (enable_break): Update calls. Pass current_target to solib_add.
58 Use gdbarch_convert_from_func_ptr_addr.
60 2007-07-03 Ilko Iliev <iliev@ronetix.at>
61 Daniel Jacobowitz <dan@codesourcery.com>
63 * symfile.c (print_transfer_performance): Avoid integer overflow.
66 2007-07-03 Markus Deuling <deuling@de.ibm.com>
68 * cp-namespace.c (lookup_symbol_file): Add block to
69 lookup_symbol_global call.
70 * Makefile.in (solist_h): Add dependency on symtab header.
71 (symtab.o): Add dependency on solist header.
72 * solib.c (solib_global_lookup): New function.
73 * solib-svr4.c (scan_dyntag): Likewise.
74 (elf_locate_base): Call helper routine scan_dyntag.
75 (elf_lookup_lib_symbol): New function.
76 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
77 * solist.h (symtab.h): New include.
78 (struct target_so_ops): New member lookup_lib_global_symbol.
79 (solib_global_lookup): New prototype.
80 * symtab.c: New include solist.h.
81 (lookup_objfile_from_block): New function.
82 (lookup_global_symbol_from_objfile): New function.
83 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
84 (lookup_symbol_global): Call library-specific lookup procedure.
85 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
87 * NEWS: Document framework.
89 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
91 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
94 * cli/cli-script.c (build_command_line): Update NULL check.
96 2007-07-02 Michael Snyder <msnyder@access-company.com>
98 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
100 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
102 * Makefile.in (XMLFILES): Add library-list.dtd.
103 (ALLDEPFILES): Add solib-target.o.
104 (solib-target.o): New rule.
105 * remote.c (PACKET_qXfer_libraries): New constant.
106 (remote_protocol_features): Add qXfer:libraries:read.
107 (remote_wait): Recognize library stop replies.
108 (remote_async_wait): Likewise. Fix typo.
109 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
110 (init_remote_async_ops): Fix typo.
111 (_initialize_remote): Register "set remote library-info-packet".
112 * solib-som.c (som_current_sos): Set addr_low and addr_high.
113 * solib-target.c: New file.
114 * solib.c (solib_map_sections): Use addr_low and addr_high instead
116 (info_sharedlibrary_command): Likewise.
117 (solib_add_library, solib_remove_library): New.
118 * solist.h (struct so_list): Replace textsection with addr_low and
120 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
121 * NEWS: Describe new qXfer:libraries:read and shared library
123 * features/library-list.dtd: New.
125 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
127 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
128 (start_remote): Use STOP_QUIETLY_REMOTE.
129 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
130 support on a SOLIB_ADD definition. Update breakpoints_inserted.
131 Update to match shared library event breakpoint support. Only
132 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
133 (normal_stop): Handle TARGET_WAITKIND_LOADED.
134 * fork-child.c (startup_inferior): Do not set
135 inferior_ignoring_startup_exec_events
136 * inferior.h (inferior_ignoring_startup_exec_events): Delete
138 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
140 2007-07-02 Markus Deuling <deuling@de.ibm.com>
142 * breakpoint.c (insert_bp_location): Remove dead code
143 (DISABLE_UNSETTABLE_BREAK).
144 (disable_breakpoints_in_shlibs)
145 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
147 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
149 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
150 Call insert_bp_location.
152 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
154 * core-regset.c (fetch_core_registers): Work around gcc 3.4
157 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
159 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
162 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
164 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
165 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
166 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
167 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
168 to display_gdb_prompt.
170 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
173 * target.c (memory_xfer_partial): Do not continue past targets with
176 2007-06-30 Andreas Schwab <schwab@suse.de>
178 * m68k-tdep.c (m68k_ps_type): New.
179 (m68k_init_types): New.
180 (m68k_register_type): Use m68k_ps_type for PS register.
181 (_initialize_m68k_tdep): Call m68k_init_types.
183 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
184 from the generic m68k arch.
186 2007-06-28 Michael Snyder <msnyder@access-company.com>
188 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
191 * linux-thread-db.c (thread_db_get_thread_local_address): Add
192 gdb_assert before using return value of find_thread_pid (Coverity).
194 * source.c (unset_substitute_path_command): Plug leak (Coverity).
196 * cli/cli-script.c (build_command_line): Add null pointer guard
199 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
201 * linux-thread-db.c (thread_db_attach): Delete.
202 (thread_db_detach): Typo fix. Call target_mourn_inferior
203 instead of fixing up proc_handle.
204 (have_threads_callback, have_threads): New functions.
205 (thread_db_wait): Remove dead proc_handle.pid check. Only
206 translate PTIDs if we have registered threads. Check for new
207 threads if we have none.
208 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
209 (find_new_threads_callback): Only enable event reporting if TID == 0.
210 (same_ptid_callback): New.
211 (thread_db_get_thread_local_address): Check for new threads.
212 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
213 or to_post_startup_inferior.
215 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
217 * infrun.c (adjust_pc_after_break): Do not assume software single-step
218 is always active if SOFTWARE_SINGLE_STEP_P is true.
219 (resume): Use gdbarch_software_single_step[_p] instead of
220 SOFTWARE_SINGLE_STEP[_P].
221 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
223 * gdbarch.sh (software_single_step): Remove target macro.
224 * gdbarch.h, gdbarch.c: Regenerate.
226 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
228 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
229 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
230 (struct gdbarch_swap, struct gdbarch_swap_registration,
231 struct gdbarch_swap_registry, gdbarch_swap_registry,
232 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
233 current_gdbarch_swap_in_hack): Remove.
234 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
235 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
236 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
237 (deprecated_current_gdbarch_select_hack): Likewise.
238 * gdbarch.h, gdbarch.c: Regenerate.
240 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
242 * infrun.c (clear_proceed_status): Clean up stop_registers.
243 (normal_stop): Allocate regcache for stop_registers.
244 (struct inferior_status): Remove stop_registers member.
245 (save_inferior_status): Do not save stop_registers.
246 (restore_inferior_status): Do not restore stop_registers.
247 (discard_inferior_status): Do not discard stop_registers.
248 (build_infrun): Remove.
249 (_initialize_infrun): Do not swap stop_registers.
251 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
253 * remote.c (remote_address_masked): If remote_address_size is zero,
254 default to target address size.
255 (build_remote_gdbarch_data): Remove.
256 (_initialize_remote): Do not swap remote_address_size.
258 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
260 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
261 builtin_type_char, builtin_type_short, builtin_type_int,
262 builtin_type_long, builtin_type_signed_char,
263 builtin_type_unsigned_char, builtin_type_unsigned_short,
264 builtin_type_unsigned_int, builtin_type_unsigned_long,
265 builtin_type_float, builtin_type_double, builtin_type_long_double,
266 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
267 builtin_type_bool, builtin_type_long_long,
268 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
269 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
270 variable declaration with compatibility macro.
271 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
272 builtin_type_char, builtin_type_short, builtin_type_int,
273 builtin_type_long, builtin_type_signed_char,
274 builtin_type_unsigned_char, builtin_type_unsigned_short,
275 builtin_type_unsigned_int, builtin_type_unsigned_long,
276 builtin_type_float, builtin_type_double, builtin_type_long_double,
277 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
278 builtin_type_bool, builtin_type_long_long,
279 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
280 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
281 (build_gdbtypes): Remove.
282 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
283 opaque-type-resolution command here. Do not call
284 deprecated_register_gdbarch_swap.
286 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
288 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
289 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
290 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
292 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
293 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
294 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
295 (build_parse): Remove.
296 (_initialize_parse): Do not call build_parse. Do not register
297 msym_ types for gdbarch-swapping.
299 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
300 instead of creating private type.
302 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
303 (_initialize_xcoffread): Do not initialized them.
304 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
306 * mdebugread.c (nodebug_func_symbol_type): Remove.
307 (nodebug_var_symbol_type): Remove.
308 (_initialize_mdebugread): Do not initialize them.
309 (parse_symbol): Use builtin nodebug_ type instead of them.
310 (parse_procedure): Likewise.
312 2007-06-21 Chris Dearman <chris@mips.com>
314 * printcmd.c (do_one_display): If display/i, start with an initial
315 line feed to avoid bad layout if there is a branch delay slot.
317 2007-06-21 Nigel Stephens <nigel@mips.com>
318 Maciej W. Rozycki <macro@mips.com>
320 * disasm.c (gdb_print_insn): Return the number of branch delay
321 slot instructions too.
322 * disasm.h (gdb_print_insn): Update prototype.
323 * printcmd.c (branch_delay_insns): New variable to record the
324 number of delay slot instructions after disassembling a branch.
325 (print_formatted): Record the number of branch delay slot
327 (do_examine): When disassembling, if the last instruction
328 disassembled has any branch delay slots, then bump the count so
329 that they get disassembled too.
330 * tui/tui-disasm.c (tui_disassemble): Update the call to
332 * NEWS: Document the new behaviour.
334 2007-06-21 Andreas Schwab <schwab@suse.de>
336 * regcache.c (write_pc_pid): Restore missing else.
338 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
340 * regcache.c (regcache_print): Use get_current_regcache ()
341 instead of current_regcache.
343 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
346 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
347 instead of bfd_make_section_anyway.
348 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
349 when clearing SEC_LOAD.
351 2007-06-19 Joseph Myers <joseph@codesourcery.com>
353 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
354 registers for big-endian.
356 2007-06-19 Markus Deuling <deuling@de.ibm.com>
358 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
359 * disasm.c (dump_insns, gdb_print_insn): Likewise.
360 * gdbarch.c, gdbarch.h: Regenerate.
362 2007-06-19 Markus Deuling <deuling@de.ibm.com>
364 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
365 gdbarch_believe_pcc_promotion.
366 * stabsread.c (define_symbol): Likewise.
367 Remove unnecessary definition.
368 * coffread.c (process_coff_symbol): Remove unnecessary code.
369 * gdbarch.c, gdbarch.h: Regenerate.
371 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
373 * configure.ac: Do not use ${objdir}.
374 * configure: Regenerated.
376 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
378 * gdbarch.sh (deprecated_register_size): Remove.
379 * gdbarch.h, gdbarch.c: Regenerate.
381 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
382 by INT_REGISTER_SIZE.
383 (thumb_get_next_pc, arm_return_in_memory): Likewise.
384 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
385 * ia64-tdep.c (ia64_gdbarch_init): Do not call
386 set_gdbarch_deprecated_register_size.
388 2007-06-18 Markus Deuling <deuling@de.ibm.com>
390 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
391 gdbarch_deprecated_fp_regnum.
392 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
393 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
394 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
395 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
397 * gdbarch.c, gdbarch.h: Regenerate.
399 2007-06-18 Markus Deuling <deuling@de.ibm.com>
401 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
402 gdbarch_extract_return_value.
403 * value.c (generic_use_struct_convention): Likewise (comment).
404 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
405 * arch-utils.c (legacy_return_value): Likewise.
406 * arch-utils.h (legacy_return_value): Likewise (comment).
407 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
408 gdbarch_store_return_value.
409 * stack.c (return_command): Likewise (comment).
410 * arch-utils.h (legacy_return_value): Likewise (comment).
411 * arch-utils.c (legacy_return_value): Likewise.
412 * gdbarch.c, gdbarch.h: Regenerate.
414 2007-06-18 Markus Deuling <deuling@de.ibm.com>
416 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
417 gdbarch_deprecated_use_struct_convention.
418 * arch-utils.c (legacy_return_value): Likewise.
419 * gdbarch.c, gdbarch.h: Regenerate.
421 2007-06-18 Markus Deuling <deuling@de.ibm.com>
423 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
424 gdbarch_deprecated_function_start_offset.
425 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
426 * linespec.c (minsym_found): Likewise.
427 * infrun.c (handle_inferior_event): Likewise.
428 * infcall.c (find_function_addr): Likewise.
429 * cli/cli-cmds.c (disassemble_command): Likewise.
430 * gdbarch.c, gdbarch.h: Regenerate.
432 2007-06-18 Markus Deuling <deuling@de.ibm.com>
434 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
435 gdbarch_deprecated_reg_struct_has_addr.
436 * infcall.c (call_function_by_hand): Likewise.
437 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
438 * gdbarch_deprecated_reg_struct_has_addr_p.
439 * infcall.c (call_function_by_hand): Likewise.
440 * gdbarch.c, gdbarch.h: Regenerate.
442 2007-06-18 Markus Deuling <deuling@de.ibm.com>
444 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
445 * sh-tdep.c (sh_extract_struct_value_address): Remove.
446 (sh_gdbarch_init): Remove
447 set_gdbarch_deprecated_extract_struct_value_address.
448 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
449 (sh64_gdbarch_init): Remove
450 set_gdbarch_deprecated_extract_struct_value_address.
451 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
452 (ia64_gdbarch_init): Remove
453 set_gdbarch_deprecated_extract_struct_value_address.
454 * frv-tdep.c (frv_extract_struct_value_address): Remove.
455 (frv_gdbarch_init): Remove
456 set_gdbarch_deprecated_extract_struct_value_address.
457 * gdbarch.c, gdbarch.h: Regenerate.
459 2007-06-18 Markus Deuling <deuling@de.ibm.com>
461 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
462 * v850-tdep.c (v850_unwind_sp): Likewise.
463 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
464 * stack.c (frame_info): Likewise.
465 * stabsread.c (define_symbol): Likewise.
466 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
467 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
468 (sh_unwind_sp): Likewise.
469 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
470 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
471 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
472 (rs6000_frame_cache): Likewise.
473 * rs6000-nat.c (store_register): Likewise.
474 * remote-mips.c (mips_wait): Likewise.
475 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
476 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
477 (ppc64_sysv_abi_push_dummy_call): Likewise.
478 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
479 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
480 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
481 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
482 * m32r-rom.c (m32r_supply_register): Likewise.
483 * frame.c (frame_sp_unwind): Likewise.
484 * mips-tdep.c (mips_insn16_frame_cache)
485 (mips_insn32_frame_cache): Likewise (comment).
486 * m68klinux-nat.c (supply_gregset): Likewise.
487 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
488 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
489 * i386-tdep.c (i386_get_longjmp_target): Likewise.
490 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
491 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
492 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
493 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
494 (cris_register_type, crisv32_register_type)
495 (cris_dwarf2_frame_init_reg): Likewise.
496 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
497 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
498 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
499 * libunwind-frame.c (libunwind_frame_cache): Likewise.
501 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
502 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
503 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
504 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
505 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
506 * v850-tdep.c (v850_unwind_pc): Likewise.
507 * stack.c (frame_info): Likewise.
508 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
509 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
510 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
511 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
512 (sh_dsp_show_regs): Likewise.
513 * shnbsd-tdep.c (shnbsd_supply_gregset)
514 (shnbsd_collect_gregset): Likewise.
515 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
516 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
517 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
518 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
519 (6000_register_reggroup_p, rs6000_unwind_pc)
520 (rs6000_frame_cache): Likewise.
521 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
522 (rs6000_store_inferior_registers): Likewise.
523 * remote-mips.c (mips_wait, mips_load): Likewise.
524 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
525 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
526 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
527 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
528 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
529 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
530 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
531 (store_ppc_registers, fill_gregset): Likewise.
532 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
533 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
534 * mipsnbsd-nat.c (getregs_supplies): Likewise.
535 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
536 * m68klinux-nat.c (supply_gregset): Likewise.
537 * irix5-nat.c (fill_gregset): Likewise.
538 * i386-tdep.c (i386_unwind_pc): Likewise.
539 * i386-linux-nat.c (i386_linux_resume): Likewise.
540 * frame.c (get_prev_frame_1): Likewise.
541 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
542 * dbug-rom.c (dbug_supply_register): Likewise.
543 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
544 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
545 (cris_register_type, crisv32_register_type, crisv32_register_name)
546 (cris_dwarf2_frame_init_reg, find_step_target)
547 (cris_software_single_step, cris_supply_gregset)
548 (cris_regnums): Likewise.
549 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
550 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
551 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
552 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
553 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
555 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
556 * dbug-rom.c (dbug_supply_register): Likewise.
557 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
558 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
559 * win32-nat.c (win32_resume): Likewise.
560 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
561 * m68k-tdep.c (m68k_register_type): Likewise.
562 * m68klinux-nat.c (supply_gregset): Likewise.
564 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
565 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
566 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
567 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
568 (fv_reg_base_num, dr_reg_base_num): Likewise.
569 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
570 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
571 (sh64_extract_return_value, sh64_store_return_value)
572 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
573 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
574 * procfs.c (procfs_fetch_registers, procfs_store_registers)
575 (invalidate_cache): Likewise.
576 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
577 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
578 (mipsnbsd_fill_fpreg): Likewise.
579 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
580 (mipsnbsd_store_inferior_registers): Likewise.
581 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
582 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
583 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
584 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
585 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
586 (fill_fpregset): Likewise.
587 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
588 * i386-tdep.h (struct_return): Likewise (comment).
589 * i386-nto-tdep.c (i386nto_register_area): Likewise.
590 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
591 (go32_store_registers): Likewise.
592 * alpha-tdep.c (alpha_next_pc): Likewise.
593 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
594 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
595 (alphabsd_store_inferior_registers): Likewise.
596 * core-regset.c (fetch_core_registers): Likewise.
597 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
599 * gdbarch.c, gdbarch.h: Regenerate.
601 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
603 * coffread.c (coff_sym_fns): Add default_symfile_segments.
604 * dbxread.c (start_psymtab): Check HAVE_ELF.
605 (aout_sym_fns): Likewise.
606 * elfread.c (elf_symfile_segments): New.
607 (elf_sym_fns): Add elf_symfile_segments.
608 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
609 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
610 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
611 * somread.c (som_sym_fns): Use default_symfile_segments.
612 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
613 (init_objfile_sect_indices): Call symfile_find_segment_sections.
614 (default_symfile_segments): New function.
615 (syms_from_objfile): Update call to find_sym_fns.
616 (symfile_get_segment_data, free_symfile_segment_data): New.
617 (symfile_map_offsets_to_segments): New.
618 (symfile_find_segment_sections): New.
619 * symfile.h (struct symfile_segment_data): New.
620 (struct sym_fns): Add sym_segments.
621 (default_symfile_segments, symfile_get_segment_data)
622 (free_symfile_segment_data): New prototypes.
623 (symfile_map_offsets_to_segments): Likewise.
624 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
625 * Makefile.in (COMMON_OBS): Remove elfread.o.
626 (elf_internal_h): New.
628 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
630 * config.in, configure: Regenerated.
631 * NEWS: Mention qOffsets changes.
633 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
635 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
636 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
637 Replace global variable declaration with compatibility macro.
638 (struct builtin_m2_type): New data type.
639 (builtin_m2_type): Add prototype.
640 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
641 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
642 Remove global variables.
643 (m2_language_arch_info): Use builtin_m2_type instead of variables.
644 (build_m2_types): New function.
645 (m2_type_data): New variable.
646 (builtin_m2_type): New function.
647 (_initialize_m2_language): Do not build data types. Register
648 m2_type_data per-gdbarch data.
650 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
652 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
653 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
654 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
655 builtin_type_f_real_s8, builtin_type_f_real_s16,
656 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
657 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
658 variable declaration with compatibility macro.
659 (struct builtin_f_type): New data type.
660 (builtin_f_type): Add prototype.
661 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
662 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
663 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
664 builtin_type_f_real_s8, builtin_type_f_real_s16,
665 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
666 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
667 (f_language_arch_info): Use builtin_f_type instead of variables.
668 (build_fortran_types): Build builtin_f_type structure instead of
669 setting global type variables.
670 (f_type_data): New variable.
671 (builtin_f_type): New function.
672 (_initialize_f_language): Do not call build_fortran_types. Do not
673 swap global type variables. Register f_type_data per-gdbarch data.
675 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
677 * f-lang.c (_initialize_f_language): Do not initialize or
678 swap builtin_type_string.
680 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
682 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
683 value_of_builtin_frame_reg): Remove.
684 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
685 inactive call to value_of_builtin_frame_reg.
687 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
689 * gdbarch.sh (bfd_vma_bit): Remove.
690 * gdbarch.c, gdbarch.h: Regenerate.
692 * gdbtypes.h (builtin_bfd_vma_type): Remove.
693 * gdbtypes.h (builtin_bfd_vma_type): Remove.
694 (build_gdbtypes): Do not initialize it.
695 (_initialize_gdbtypes): Do not swap it.
697 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
699 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
700 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
701 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
702 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
703 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
704 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
705 builtin_type_vec64, builtin_type_vec128): Remove.
706 (init_simd_type): Remove.
707 (init_vector_type): Make global.
708 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
709 (build_gdbtypes): Do not build vector types.
710 (_initialize_gdbtypes): Do not swap vector types.
711 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
712 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
713 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
714 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
715 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
716 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
717 builtin_type_vec64, builtin_type_vec128): Remove declarations.
718 (init_vector_type): Add prototype.
720 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
721 i386_sse_type members.
722 (i386_mmx_type, i386_sse_type): Change from variables to functions.
723 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
724 (i386_init_types): Do not build vector types.
725 (i386_mmx_type, i386_sse_type): New functions.
726 (i386_register_type): Call them instead of using global variables.
727 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
728 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
729 of using global variable.
731 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
732 and ppc_builtin_type_vec128 members.
733 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
734 (rs6000_builtin_type_vec128): Likewise.
735 (rs6000_register_type): Call them instead of using builtin_type_vec64
736 and builtin_type_vec128.
737 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
739 * spu-tdep.c (struct gdbarch_tdep): New data type.
740 (spu_builtin_type_vec128): Remove variable.
741 (spu_builtin_type_vec128): New function.
742 (spu_register_type): Call it instead of using global variable.
743 (spu_gdbarch_init): Allocate tdep structure.
744 (spu_init_vector_type): Remove function.
745 (_initialize_spu_tdep): Do not call it.
747 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
749 * amd64-tdep.c (struct amd64_register_info): Remove.
750 (amd64_register_info): Remove.
751 (amd64_register_names): New static variable.
752 (AMD64_NUM_REGS): Use amd64_register_names instead of
754 (amd64_register_name): Likewise.
755 (amd64_register_type): Do not refer to amd64_register_info.
757 * s390-tdep.c (struct s390_register_info): Remove.
758 (s390_register_info): Remove.
759 (s390_register_name): Do not refer to s390_register_info.
760 (s390_register_type): Likewise.
762 * sparc64-tdep.c (struct sparc64_register_info): Remove.
763 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
764 (sparc64_register_names, sparc64_pseudo_register_names): New.
765 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
766 sparc64_register_names and sparc64_pseudo_register_names instead of
767 sparc64_register_info and sparc64_pseudo_register_info.
768 (sparc64_register_name): Likewise.
769 (sparc64_register_type): Do not refer to sparc64_register_info
770 and sparc64_pseudo_register_info.
772 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
774 * c-lang.c (cplus_builtin_types): Remove.
775 (enum cplus_primitive_types): New data type.
776 (cplus_language_arch_info): New function.
777 (cplus_language_defn): Set la_language_arch_info member. Do not set
778 la_builtin_type_vector and string_char_type members.
780 * f-lang.c (f_builtin_types): Remove.
781 (enum f_primitive_types): New data type.
782 (f_language_arch_info): New function.
783 (f_language_de): Set la_language_arch_info member. Do not set
784 la_builtin_type_vector and string_char_type members.
786 * m2-lang.c (m2_builtin_types): Remove.
787 (enum m2_primitive_types): New data type.
788 (m2_language_arch_info): New function.
789 (m2_language_defn): Set la_language_arch_info member. Do not set
790 la_builtin_type_vector and string_char_type members.
792 * objc-lang.c (objc_builtin_types): Remove.
793 (objc_language): Set la_language_arch_info member. Do not set
794 la_builtin_type_vector and string_char_type members.
796 * p-lang.c (pascal_builtin_types): Remove.
797 (enum pascal_primitive_types): New data type.
798 (pascal_language_arch_info): New function.
799 (pascal_language_defn): Set la_language_arch_info member. Do not set
800 la_builtin_type_vector and string_char_type members.
802 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
804 * regcache.c (struct regcache): Add ptid_t member.
805 (regcache_xmalloc): Initialize it.
806 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
807 (regcache_dup): Likewise.
808 (regcache_dup_no_passthrough): Likewise.
809 (current_regcache): Make static.
810 (registers_ptid): Remove variable.
811 (get_thread_regcache): New function.
812 (get_current_regcache): New function.
813 (registers_changed): Implement by freeing current regcache.
814 (regcache_raw_read): Do not refer to current_regcache. Set
815 inferior_ptid to regcache->ptid while calling target routines.
816 (regcache_raw_write): Likewise.
817 (regcache_raw_supply): Do not refer to current_regcache.
818 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
819 (write_pc_pid): Likewise.
820 (build_regcache): Remove.
821 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
822 or deprecated_register_gdbarch_swap. Do not initialize
824 * regcache.h (get_current_regcache): Add prototype.
825 (get_thread_regcache): Likewise.
826 (current_regcache): Remove declaration.
828 * corelow.c (core_open): Replace current_regcache by
829 get_current_regcache ().
830 * frame.c (frame_pop): Likewise.
831 (put_frame_register): Likewise.
832 (get_current_frame, create_new_frame): Likewise.
833 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
834 * stack.c (return_command): Likewise.
835 * infcall.c (call_function_by_hand): Likewise.
836 * infrun.c (resume): Likewise.
837 (save_inferior_status, restore_inferior_status): Likewise.
838 * linux-fork.c (fork_load_infrun_state): Likewise.
839 (fork_save_infrun_state): Likewise.
840 * win32-nat.c (win32_resume): Likewise.
841 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
842 * monitor.c (monitor_wait): Likewise.
843 * remote.c (remote_wait): Likewise.
844 * remote-mips.c (mips_wait): Likewise.
846 * bsd-kvm.c (bsd_kvm_open): Likewise
847 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
848 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
849 * i386-linux-nat.c (i386_linux_resume): Likewise.
850 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
851 (ia64_linux_stopped_data_address): Likewise.
853 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
854 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
855 * mep-tdep.c (current_me_module, current_options): Likewise.
856 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
858 * linux-nat.c (linux_nat_do_thread_registers): Use thread
859 regcache instead of current_regcache. Call target_fetch_registers.
860 (linux_nat_corefile_thread_callback): Update call site.
861 (linux_nat_do_registers): Likewise.
862 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
864 (procfs_make_note_section): Likewise.
865 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
866 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
867 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
868 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
870 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
872 * regcache.c (read_register, read_register_pid): Remove.
873 (write_register, write_register_pid): Likewise.
874 * regcache.h (read_register, read_register_pid): Remove prototype.
875 (write_register, write_register_pid): Likewise.
877 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
879 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
880 (write_pc): Likewise. Remove default implementation, add predicate.
881 * gdbarch.c, gdbarch.h: Regenerate.
882 * regcache.c (read_pc_pid): Use current regcache instead of calling
884 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
886 (generic_target_write_pc): Remove.
887 * inferior.h (generic_target_write_pc): Remove.
888 * frv-tdep.c (frv_gdbarch_init): Do not install it.
889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
890 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
891 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
892 * sh-tdep.c (sh_gdbarch_init): Likewise.
893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
895 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
896 argument. Use REGCACHE instead of calling read_register_pid.
897 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
898 * hppa-tdep.c (hppa_read_pc): Likewise.
899 * hppa-tdep.h (hppa_read_pc): Likewise.
900 * ia64-tdep.c (ia64_read_pc): Likewise.
901 * m32r-tdep.c (m32r_read_pc): Likewise.
902 * mep-tdep.c (mep_read_pc): Likewise.
903 * mn10300-tdep.c (mn10300_read_pc): Likewise.
904 * spu-tdep.c (spu_read_pc): Likewise.
906 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
907 argument. Use REGCACHE instead of calling write_register_pid.
908 * avr-tdep.c (avr_write_pc): Likewise.
909 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
910 * hppa-tdep.c (hppa_write_pc): Likewise.
911 * hppa-tdep.h (hppa_write_pc): Likewise.
912 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
913 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
914 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
915 * ia64-tdep.c (ia64_write_pc): Likewise.
916 * ia64-tdep.h (ia64_write_pc): Likewise.
917 * m32r-tdep.c (m32r_write_pc): Likewise.
918 * m88k-tdep.c (m88k_write_pc): Likewise.
919 * mep-tdep.c (mep_write_pc): Likewise.
920 * mips-tdep.c (mips_write_pc): Likewise.
921 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
922 * mn10300-tdep.c (mn10300_write_pc): Likewise.
923 * sparc-tdep.c (sparc_write_pc): Likewise.
924 * spu-tdep.c (spu_write_pc): Likewise.
926 * mips-tdep.c (read_signed_register): Remove.
927 (read_signed_register_pid): Likewise.
928 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
929 Use REGCACHE instead of calling read_signed_register_pid.
931 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
933 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
934 * gdbarch.c, gdbarch.h: Regenerate.
935 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
936 (push_dummy_code): Likewise. Pass it to callee.
937 (call_function_by_hand): Pass current regcache to push_dummy_code.
939 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
940 argument. Use it instead of current_regcache.
942 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
943 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
945 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
947 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
948 * gdbarch.c, gdbarch.h: Regenerate.
949 * infrun.c (handle_inferior_event): Pass current frame to
950 gdbarch_get_longjmp_target.
952 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
953 Read registers from FRAME instead of using read_register.
954 Use get_frame_arch instead of current_gdbarch.
955 * arm-tdep.c (arm_get_longjmp_target): Likewise.
956 * i386-tdep.c (i386_get_longjmp_target): Likewise.
957 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
958 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
959 (mips64_linux_get_longjmp_target): Likewise.
960 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
962 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
964 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
965 * gdbarch.c, gdbarch.h: Regenerate.
966 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
967 * arch-utils.h (generic_skip_trampoline_code): Likewise.
968 * infrun.c (handle_inferior_event): Pass current frame to
969 gdbarch_skip_trampoline_code and skip_language_trampoline.
971 * language.c (unk_lang_trampoline): Add FRAME argument.
972 (skip_language_trampoline): Add FRAME argument. Pass it to
973 skip_trampoline callback.
974 * language.h: Add forward declaration of struct frame_info.
975 (struct language_defn): Add FRAME argument to skip_trampoline.
976 (skip_language_trampoline): Add FRAME argument.
977 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
978 to skip_trampoline callback.
979 * cp-abi.h: Add forward declaration of struct frame_info.
980 (cplus_skip_trampoline): Add FRAME argument.
981 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
982 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
983 to gdbarch_skip_trampoline_code.
984 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
985 to gdbarch_skip_trampoline_code.
987 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
988 * symtab.h (find_solib_trampoline_target): Likewise.
989 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
990 find_solib_trampoline_target.
992 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
993 from FRAME instead of calling read_register.
995 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
996 argument. Read registers from FRAME instead of using read_register.
997 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
998 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
1000 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
1003 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
1005 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
1006 registers from FRAME instead of using read_signed_register.
1008 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
1010 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
1011 instead of using read_register.
1012 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
1013 ppc64_standard_linkage_target.
1014 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
1015 Pass it to find_solib_trampoline_target. Read registers from FRAME
1016 instead of using read_register.
1018 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
1021 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1023 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
1025 * gdbarch.c, gdbarch.h: Regenerate.
1026 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
1028 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
1029 registers from FRAME instead of using read_register.
1030 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1031 to alpha_next_pc. Use get_frame_pc instead of read_pc.
1032 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
1035 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
1036 from FRAME instead of using read_register.
1037 (thumb_get_next_pc): Likewise.
1038 (arm_get_next_pc): Likewise.
1039 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1040 to arm_get_next_pc. Use get_frame_pc instead of read_register.
1041 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
1044 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
1045 from FRAME instead of using read_register.
1046 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1047 to find_step_target.
1049 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
1050 from FRAME instead of using read_register / read_signed_register.
1051 (extended_mips16_next_pc): Likewise.
1052 (mips16_next_pc): Likewise.
1053 (mips_next_pc): Likewise.
1054 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1055 to mips_next_pc. Use get_frame_pc instead of read_pc.
1056 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
1059 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
1060 of current frame. Read registers from FRAME.
1061 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
1062 branch_dest. Use get_frame_pc instead of read_pc.
1063 (rs6000_software_single_step): Likewise.
1064 (bl_to_blrl_insn_p): Do not call branch_dest.
1065 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
1068 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
1069 Read registers from FRAME instead of current regcache.
1070 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
1071 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
1072 * sparc-tdep.c (sparc_address_from_register): Remove.
1073 (sparc_analyze_control_transfer): Pass FRAME argument instead of
1074 GDBARCH. Pass FRAME to step_trap callback.
1075 (sparc_step_trap): Add FRAME argument.
1076 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1077 to sparc_analyze_control_transfer. Read registers from FRAME instead
1078 of calling sparc_address_from_register.
1079 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
1081 (sparc_address_from_register): Remove prototype.
1082 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
1083 (sparcnbsd_step_trap): Add FRAME argument.
1085 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
1086 by FRAME. Read registers from FRAME instead of REGCACHE.
1088 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1090 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
1091 instead of calling read_register.
1093 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
1094 calling write_register.
1096 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
1097 calling write_register.
1099 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
1100 instead of calling read_register.
1101 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
1102 instead of calling read_register and write_register.
1104 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
1105 instead of current_regcache.
1107 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
1108 of calling write_register.
1109 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
1110 parameter instead of current_regcache.
1112 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
1113 instead of calling read_register.
1114 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
1115 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
1116 (mips_n32n64_push_dummy_call): Likewise.
1117 (mips_o32_push_dummy_call): Likewise.
1118 (mips_o64_push_dummy_call): Likewise.
1120 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
1121 parameter instead of current_regcache.
1123 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
1124 Use it instead of read_register and write_register.
1125 (xtensa_register_read_masked): Likewise.
1126 (xtensa_pseudo_register_read): Update call.
1127 (xtensa_pseudo_register_write): Likewise.
1128 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
1129 instead of calling read_register.
1130 (xtensa_push_dummy_call): Update comment.
1132 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1134 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
1135 by frame_unwind_register_signed calls.
1136 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
1137 frame allocations when called with NULL NEXT_FRAME parameter.
1138 (read_next_frame_reg): Remove.
1140 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
1141 instead of reading the FPSCR register.
1142 (sh_frame_cache): Pass unwound FPSCR register value to
1143 sh_analyze_prologue.
1144 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
1146 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
1147 instead of reading the CTBP register.
1148 (v850_frame_cache): Pass unwound CTBP register value to
1149 v850_analyze_prologue.
1151 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1153 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
1154 * sh-tdep.c (sh_show_regs): Likewise.
1155 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
1156 (sh_generic_show_regs): Add FRAME parameter. Use register
1157 values from that frame instead of calling read_register.
1158 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
1159 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
1160 sh_dsp_show_regs): Likewise.
1161 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
1162 sh64_show_regs): Likewise.
1164 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1166 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
1167 current regcache instead of calling read_register.
1169 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1171 * mep-tdep.c (current_me_module): Read from current regcache
1172 instead of calling read_register.
1173 (current_options): Likewise.
1175 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1177 * cris-tdep.c (cris_stopped_data_address): Read register values
1178 from current frame instead of calling read_register.
1179 * frv-tdep.c (frv_stopped_data_address): Likewise.
1181 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1183 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
1184 instead of write_register (PC_REGNUM, ...).
1186 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1188 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
1189 explaining why the PC adjustment code is necessary.
1191 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
1193 * m68k-tdep.h (enum m68k_flavour): New.
1194 (struct gdbarch_tdep): New fields
1195 float_return, flavour and fpregs_present.
1196 * m68k-tdep.c (m68k_register_type): Use
1197 fpregs_present and conditionalize floating
1198 registers type on flavour.
1199 (m68k_register_names): New.
1200 (m68k_register_name): Use the above.
1201 (m68k_convert_register_p): Consult fpregs_present.
1202 (m68k_register_to_value, m68k_value_to_register):
1203 Use register_type to obtain the type of floating
1205 (m68k_svr4_extract_return_value): Check tdep->float_return.
1206 Use register_type to get the type of floating
1208 (m68k_svr4_store_return_value): Likewise.
1209 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
1210 (m68k_analyze_register_saves): Likewise.
1211 (m68k_gdbarch_init): Extract infromation
1212 from XML description, if present. Guess coldfire by
1213 looking at the file, if present. Conditionalize
1214 setting of long double format. Set decr_pc_after_break
1215 to 2 on coldfire and fido. Enable XML-driven
1216 register description.
1217 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
1218 size of tdep->fpreg_type, as opposed to hardcoded value.
1219 * Makefile.in (m68k-tdep.o): Update dependencies.
1221 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1223 * NEWS: Mention "info spu" commands and qXfer:spu:read and
1224 qXfer:spu:write remote packet types.
1226 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1228 * xml-tdesc.c (tdesc_start_target): New.
1229 (target_attributes): New.
1230 (tdesc_elements): Use it.
1231 * features/gdb-target.dtd: Add #FIXED version attribute for
1234 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
1236 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
1238 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
1240 * fork-child.c (fork_inferior): Update comment.
1242 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1244 * features/Makefile: Generate regformats for mips-linux and
1246 * features/sort-regs.xsl: Correct typo.
1247 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
1248 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
1251 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1253 * config/mips/linux.mh (TDEP_XML): New.
1254 * features/mips-linux.xml, features/mips64-linux.xml: New files.
1255 * mips-linux-nat.c (mips_linux_register_addr): Handle
1256 MIPS_RESTART_REGNUM.
1257 (mips64_linux_register_addr): Likewise.
1258 (super_xfer_partial, mips_linux_xfer_partial): New.
1259 (_initialize_mips_linux_nat): Add them to the target_ops.
1260 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
1261 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
1262 (mips_linux_o32_sigframe_init)
1263 (mips_linux_n32n64_sigframe_init): Likewise.
1264 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
1265 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
1266 "org.gnu.gdb.mips.linux" feature.
1267 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
1268 (mips_linux_restart_reg_p): New prototype.
1269 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
1270 initialization routine.
1271 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
1273 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1275 * Makefile.in (mips-tdep.o): Update.
1276 * mips-tdep.c (struct register_alias, mips_o32_aliases)
1277 (mips_n32_n64_aliases, mips_register_aliases): New.
1278 (mips_register_name): Call tdesc_register_name.
1279 (mips_tdesc_register_reggroup_p): New.
1280 (mips_pseudo_register_type, value_of_mips_user_reg): New.
1281 (mips_gdbarch_init): Add target-described register support.
1282 Register aliases for register names.
1283 * target-descriptions.c (tdesc_register_name): Make global.
1284 (tdesc_register_in_reggroup_p): New function, broken out from
1285 tdesc_register_reggroup_p.
1286 (tdesc_register_reggroup_p): Use it.
1287 * target-descriptions.h (tdesc_register_name)
1288 (tdesc_register_in_reggroup_p): New prototypes.
1289 * NEWS: Correct formatting. Mention MIPS register support.
1290 * features/mips-cp0.xml, features/mips-fpu.xml,
1291 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
1292 features/mips64-cpu.xml: New files.
1294 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1296 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
1297 * valops.c (value_cast): Likewise.
1298 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
1299 * ui-out.c (ui_out_field_core_addr): Likewise.
1300 * tracepoint.c (tracepoints_info): Likewise.
1301 * symtab.c (print_msymbol_info): Likewise.
1302 * solib-irix.c (irix_current_sos)
1303 (irix_open_symbol_file_object): Likewise.
1304 * remote.c (build_remote_gdbarch_data): Likewise.
1305 * prologue-value.c (make_pv_area): Likewise.
1306 * procfs.c (info_mappings_callback): Likewise.
1307 * printcmd.c (print_scalar_formatted)
1308 (deprecated_print_address_numeric): Likewise.
1309 * memattr.c (mem_info_command): Likewise.
1310 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1311 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
1312 * exec.c (print_section_info): Likewise.
1313 * dwarf2read.c (read_subrange_type): Likewise.
1314 * dwarf2loc.c (find_location_expression): Likewise.
1315 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
1316 (signed_address_type, execute_stack_op): Likewise.
1317 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
1318 * gdbarch.c, gdbarch.h: Regenerate.
1320 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1322 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
1323 * arch-utils.c (show_architecture): Likewise.
1324 * remote-mips.c (mips_open): Likewise
1325 * nto-tdep.c (nto_find_and_open_solib)
1326 (nto_init_solib_absolute_prefix): Likewise.
1327 * nto-procfs (procfs_open): Likewise.
1328 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
1329 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
1330 * gdbarch.c, gdbarch.h: Regenerate.
1332 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1334 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
1335 * gdbtypes.c (build_flt): Likewise.
1336 * gdbarch.c, gdbarch.h: Regenerate.
1338 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1340 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
1341 gdbarch_breakpoint_from_pc.
1342 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
1343 * remote.c (remote_insert_breakpoint)
1344 (remote_insert_hw_breakpoint): Likewise.
1345 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1346 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
1347 * breakpoint.h (bp_target_info): Likewise (comment).
1348 * breakpoint.c (read_memory_nobpt): Likewise.
1349 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1350 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
1351 * gdbarch.c, gdbarch.h: Regenerate.
1353 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1355 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
1356 * solib-svr4.c (svr4_truncate_ptr): Likewise.
1357 * solib-pa64.c (read_dynamic_info): Likewise.
1358 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1359 * solib.c (info_sharedlibrary_command): Likewise.
1360 * s390-nat.c (SUBOFF): Likewise.
1361 * p-valprint.c (pascal_val_print): Likewise.
1362 * procfs.c (info_proc_mappings): Likewise.
1363 * printcmd.c (decode_format): Likewise.
1364 * nto-tdep.c (nto_truncate_ptr): Likewise.
1365 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1366 (mips64_linux_get_longjmp_target): Likewise.
1367 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1368 * jv-valprint.c (java_value_print): Likewise.
1369 * jv-lang.c (get_java_object_header_size): Likewise.
1370 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1371 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1372 (hppa_hpux_unwind_adjust_stub): Likewise.
1373 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1374 * gdbtypes.c (make_pointer_type, make_reference_type)
1375 (smash_to_memberptr_type): Likewise.
1376 * gdbarch.c, gdbarch.h: Regenerate.
1378 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1380 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
1381 (print_gp_register_row): Stop before printing a register bigger
1382 than the ABI register size.
1383 (mips_print_registers_info): Update call to mips_print_register.
1385 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1387 * expression.h (enum exp_opcode): Document a register name for
1389 * parse.c (write_dollar_variable): Write the register name for
1391 (operator_length_standard): Expect the register name following
1393 * ada-lang.c (resolve_subexp): Likewise.
1394 * ax-gdb.c (gen_expr): Likewise.
1395 * eval.c (evaluate_subexp_standard): Likewise.
1396 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1398 * tracepoint.c (encode_actions): Likewise.
1400 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1402 * utils.c (set_screen_size): Use INT_MAX for default columns.
1404 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
1406 * remote.c (remote_protocol_features): Add qXfer:spu:read and
1407 qXfer:spu:write packet types.
1409 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1411 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
1412 * gdbarch.c, gdbarch.h: Regenerate.
1414 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1416 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
1417 gdbarch_stab_reg_to_regnum.
1418 * stabsread.c (define_symbol): Likewise.
1419 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
1420 gdbarch_ecoff_reg_to_regnum.
1421 * mdebugread.c (parse_symbol): Likewise.
1422 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
1423 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
1424 gdbarch_dwarf_reg_to_regnum.
1425 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
1426 * coffread.c (process_coff_symbol): Likewise.
1427 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
1428 gdbarch_dwarf2_reg_to_regnum.
1429 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
1430 (locexpr_describe_location): Likewise.
1431 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
1432 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
1433 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
1434 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
1435 * gdbarch.c, gdbarch.h: Regenerate.
1437 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1439 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
1440 gdbarch_smash_text_address.
1441 * somread.c (som_symtab_read): Likewise.
1442 * elfread.c (record_minimal_symbol): Likewise.
1443 * dbxread.c (process_one_symbol): Likewise.
1444 * coffread.c (coff_symtab_read): Likewise.
1445 * gdbarch.c, gdbarch.h: Regenerate.
1447 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1449 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
1450 * findvar.c (value_from_register): Likewise.
1451 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
1452 * valops.c (value_assign): Likewise.
1453 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
1454 gdbarch_convert_register_p.
1455 * findvar.c (value_from_register): Likewise.
1456 * valops.c (value_assign): Likewise.
1457 * gdbarch.c, gdbarch.h: Regenerate.
1459 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1461 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
1462 gdbarch_register_sim_regno.
1463 * sim-regno.h (sim_regno): Likewise (comment).
1464 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1465 * gdbarch.c, gdbarch.h: Regenerate.
1467 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1469 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
1470 gdbarch_virtual_frame_pointer.
1471 * tracepoint.c (encode_actions): Likewise.
1472 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
1473 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
1474 * gdbarch.c, gdbarch.h: Regenerate.
1476 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1478 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
1479 * p-lang.c (pascal_create_fundamental_type): Likewise.
1480 * objc-lang.c (objc_create_fundamental_type): Likewise.
1481 * mdebugread.c (_initialize_mdebugread): Likewise.
1482 * m2-lang.c (m2_create_fundamental_type)
1483 (_initialize_m2_language): Likewise.
1484 * gdbtypes.c (build_gdbtypes): Likewise.
1485 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1486 * doublest.c (floatformat_from_length): Likewise.
1487 * c-lang.c (c_create_fundamental_type): Likewise.
1488 * ada-lang.c (ada_create_fundamental_type)
1489 (ada_language_arch_info): Likewise.
1490 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
1491 * value.c (unpack_double): Likewise (comment).
1492 * gdbtypes.c (build_gdbtypes): Likewise.
1493 * doublest.c (floatformat_from_length): Likewise.
1494 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
1495 * valarith.c (value_binop): Likewise.
1496 * p-lang.c (pascal_create_fundamental_type): Likewise.
1497 * objc-lang.c (objc_create_fundamental_type): Likewise.
1498 * mdebugread.c (_initialize_mdebugread): Likewise.
1499 * m2-lang.c (m2_create_fundamental_type): Likewise.
1500 * gdbtypes.c (build_gdbtypes): Likewise.
1501 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1502 * doublest.c (floatformat_from_length): Likewise.
1503 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
1504 * c-lang.c (c_create_fundamental_type): Likewise.
1505 * ada-lex.l (processReal): Likewise.
1506 * ada-lang.c (ada_create_fundamental_type)
1507 (ada_language_arch_info): Likewise.
1508 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
1509 * value.c (unpack_double): Likewise (comment).
1510 * gdbtypes.c (build_gdbtypes): Likewise.
1511 * doublest.c (floatformat_from_length): Likewise.
1512 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
1513 gdbarch_long_double_bit.
1514 * p-lang.c (pascal_create_fundamental_type): Likewise.
1515 * objc-lang.c (objc_create_fundamental_type): Likewise.
1516 * m2-lang.c (m2_create_fundamental_type): Likewise.
1517 * gdbtypes.c (build_gdbtypes): Likewise.
1518 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1519 * doublest.c (floatformat_from_length): Likewise.
1520 * c-lang.c (c_create_fundamental_type): Likewise.
1521 * ada-lex.l (processReal): Likewise.
1522 * ada-lang.c (ada_create_fundamental_type)
1523 (ada_language_arch_info): Likewise.
1524 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
1525 gdbarch_long_double_format.
1526 * gdbtypes.c (build_gdbtypes): Likewise.
1527 * doublest.c (floatformat_from_length): Likewise.
1528 * gdbarch.c, gdbarch.h: Regenerate.
1530 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1532 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
1533 * ada-lang.c (ada_create_fundamental_type)
1534 (ada_language_arch_info): Likewise.
1535 * c-lang.c (c_create_fundamental_type): Likewise.
1536 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1537 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1538 * m2-lang.c (m2_create_fundamental_type): Likewise.
1539 * objc-lang.c (objc_create_fundamental_type): Likewise.
1540 * p-lang.c (pascal_create_fundamental_type): Likewise.
1541 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
1542 * c-exp.y (parse_number): Likewise.
1543 * objc-exp.y (parse_number): Likewise.
1544 * ada-lex.l (processInt): Likewise.
1545 * f-exp.y (parse_number): Likewise.
1546 * p-exp.y (parse_number): Likewise.
1547 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
1548 (gdbtypes_post_init, build_gdbtypes): Likewise.
1549 * p-lang.c (pascal_create_fundamental_type): Likewise.
1550 * parse.c (build_parse): Likewise.
1551 * xcoffread.c (_initialize_xcoffread): Likewise.
1552 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
1553 (read_range_type): Likewise.
1554 * objc-lang.c (objc_create_fundamental_type): Likewise.
1555 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
1556 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
1557 (m2_create_fundamental_type): Likewise.
1558 * c-lang.c (c_create_fundamental_type): Likewise.
1559 * coffread.c (coff_read_enum_type): Likewise.
1560 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
1561 * dwarf2read.c (new_symbol): Likewise.
1562 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
1563 * c-exp.y (parse_number): Likewise.
1564 * objc-exp.y (parse_number): Likewise.
1565 * ada-lex.l (processInt): Likewise.
1566 * f-exp.y (parse_number): Likewise.
1567 * p-exp.y (parse_number): Likewise.
1568 * valarith.c (value_binop): Likewise.
1569 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
1570 * ada-lang.c (ada_create_fundamental_type)
1571 (ada_language_arch_info): Likewise.
1572 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1573 * symfile.c (TARGET_LONG_BYTES): Likewise.
1574 * p-lang.c (pascal_create_fundamental_type): Likewise.
1575 * objc-lang.c (objc_create_fundamental_type): Likewise.
1576 * m2-lang.c (m2_create_fundamental_type): Likewise.
1577 * f-lang.c (f_create_fundamental_type): Likewise.
1578 * c-lang.c (c_create_fundamental_type): Likewise.
1579 * coffread.c (decode_base_type): Likewise.
1580 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
1581 * c-exp.y (parse_number): Likewise.
1582 * objc-exp.y (parse_number): Likewise.
1583 * p-exp.y (parse_number): Likewise.
1584 * ada-lang.c (ada_create_fundamental_type)
1585 (ada_language_arch_info): Likewise.
1586 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
1587 * stabsread.c (read_range_type): Likewise.
1588 * p-lang.c (pascal_create_fundamental_type): Likewise.
1589 * objc-lang.c (objc_create_fundamental_type): Likewise.
1590 * m2-lang.c (m2_create_fundamental_type): Likewise.
1591 * f-lang.c (f_create_fundamental_type): Likewise.
1592 * c-lang.c (c_create_fundamental_type): Likewise.
1593 * gdbarch.c, gdbarch.h: Regenerate.
1595 2007-06-12 Andreas Schwab <schwab@suse.de>
1597 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
1598 (struct frame_unwind): Add dealloc_cache.
1599 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
1601 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
1602 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
1603 (libunwind_frame_unwind): Set dealloc_cache.
1604 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
1606 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1607 Markus Deuling <deuling@de.ibm.com>
1609 * remote.c (remote_write_qxfer): New function.
1610 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
1611 (remote_read_qxfer): Do not cache empty objects.
1612 (_initialize_remote): Add PACKET_qXfer_spu_read and
1613 PACKET_qXfer_spu_write.
1615 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1617 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
1618 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
1620 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
1621 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
1622 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
1623 * spu-tdep.c (infospucmdlist): New variable.
1624 (spu_register_name): Handle additional pseudo registers.
1625 (spu_register_type): Likewise.
1626 (spu_pseudo_register_read): Likewise.
1627 (spu_pseudo_register_write): Likewise.
1628 (spu_pseudo_register_read_spu): New function.
1629 (spu_pseudo_register_write_spu): Likewise.
1630 (info_spu_event_command): New function.
1631 (info_spu_signal_command): Likewise.
1632 (info_spu_mailbox_list): Likewise.
1633 (info_spu_mailbox_command): Likewise.
1634 (spu_mfc_get_bitfield): Likewise.
1635 (info_spu_dma_cmdlist): Likewise.
1636 (info_spu_dma_command): Likewise.
1637 (info_spu_proxydma_command): Likewise.
1638 (info_spu_command): Likewise.
1639 (_initialize_spu_tdep): Install "info spu" commands.
1641 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1643 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
1644 accessing non-seekable spufs files.
1646 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1648 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
1649 gdbarch_skip_trampoline_code.
1650 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1651 * objc-lang.c (objc_skip_trampoline)
1652 (objc_submethod_helper_data): Likewise.
1653 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
1654 * infrun.c (handle_inferior_event): Likewise.
1655 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
1656 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
1657 gdbarch_in_solib_return_trampoline.
1658 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1659 * infrun.c (handle_inferior_event): Likewise.
1660 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
1661 * gdbarch.c, gdbarch.h: Regenerate.
1663 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1665 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
1666 * symtab.c (find_function_start_sal, in_prologue): Likewise.
1667 * linespec.c (minsym_found): Likewise.
1668 * infrun.c (step_into_function): Likewise.
1669 * gdbarch.c, gdbarch.h: Regenerate.
1671 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1673 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
1674 * valops.c (value_allocate_space_in_inferior): Likewise.
1675 * gdbarch.c, gdbarch.h: Regenerate.
1677 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1679 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
1680 gdbarch_memory_insert_breakpoint.
1681 * mem-break.c (memory_insert_breakpoint): Likewise.
1682 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
1683 gdbarch_memory_remove_breakpoint.
1684 * mem-break.c (memory_remove_breakpoint): Likewise.
1685 * gdbarch.c, gdbarch.h: Regenerate.
1687 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1689 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
1690 gdbarch_fetch_tls_load_module_address.
1691 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
1692 gdbarch_fetch_tls_load_module_address_p.
1693 * gdbarch.c, gdbarch.h: Regenerate.
1695 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1697 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
1698 gdbarch_decr_pc_after_break.
1699 * tracepoint.c (trace_dump_command): Likewise.
1700 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1701 * linux-thread-db.c (check_event): Likewise.
1702 * linux-nat.c (cancel_breakpoints_callback): Likewise.
1703 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
1704 * frame.h: Likewise (comment).
1705 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
1706 * aix-thread.c (aix_thread_wait): Likewise.
1707 * gdbarch.c, gdbarch.h: Regenerate.
1709 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1711 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
1712 gdbarch_address_class_type_flags.
1713 * dwarf2read.c (read_tag_pointer_type): Likewise.
1714 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
1715 gdbarch_address_class_type_flags_p.
1716 * dwarf2read.c (read_tag_pointer_type): Likewise.
1717 * gdbarch.c, gdbarch.h: Regenerate.
1719 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1721 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
1722 * value.c (value_as_address): Likewise (comment).
1723 * remote-mips.c (common_breakpoint): Likewise.
1724 * regcache.c (read_pc_pid): Likewise.
1725 * printcmd.c (do_one_display): Likewise.
1726 * monitor.c (monitor_write_memory, monitor_read_memory)
1727 (monitor_insert_breakpoint): Likewise.
1728 * mips-tdep.c (heuristic_proc_start): Likewise.
1729 * infrun.c (insert_step_resume_breakpoint_at_frame)
1730 (insert_step_resume_breakpoint_at_caller): Likewise.
1731 * buildsym.c (record_line): Likewise.
1732 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
1733 (arm_get_next_pc): Likewise.
1734 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1735 (store_regs): Likewise.
1736 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1737 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
1738 * gdbarch.c, gdbarch.h: Regenerate.
1740 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1742 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
1743 * tracepoint.c (scope_info): Likewise.
1744 * target.c (debug_print_register): Likewise.
1745 * stack.c (frame_info): Likewise.
1746 * sh-tdep.c (sh_register_reggroup_p): Likewise.
1747 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
1748 (sh64_media_print_registers_info)
1749 (sh64_compact_print_registers_info): Likewise.
1750 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
1751 * remote-sim.c (gdbsim_fetch_register): Likewise.
1752 * remote.c (packet_reg): Likewise (comment).
1753 * reggroups.c (default_register_reggroup_p): Likewise.
1754 * regcache.c (regcache_dump): Likewise.
1755 * printcmd.c (address_info): Likewise.
1756 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1757 * mt-dep.c (mt_registers_info): Likewise.
1758 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
1759 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
1760 (mips_read_fp_register_double, mips_print_fp_register)
1761 (mips_print_register, print_gp_register_row, mips_print_registers_info)
1762 (mips_register_sim_regno): Likewise.
1763 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
1764 * inf-ptrace.c (inf_ptrace_fetch_register)
1765 (inf_ptrace_store_register): Likewise.
1766 * infcmd.c (default_print_registers_info): Likewise.
1767 * ia64-linux-nat.c (ia64_linux_fetch_register)
1768 (ia64_linux_store_register): Likewise.
1769 * i386-linux-nat.c (fetch_register, store_register): Likewise.
1770 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1771 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1772 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
1773 (hppa_hpux_store_register): Likewise.
1774 * findvar.c (locate_var_value): Likewise.
1775 * dwarf2loc.c (locexpr_describe_location): Likewise.
1776 * dwarf2-frame.c (execute_cfa_program): Likewise.
1777 * arm-tdep.c (arm_push_dummy_call): Likewise.
1778 * arch-utils.c (legacy_register_sim_regno): Likewise.
1779 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
1780 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1781 * mi/mi-main.c (mi_cmd_data_list_register_names)
1782 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
1783 (mi_cmd_data_write_register_values): Likewise.
1784 * gdbarch.c, gdbarch.h: Regenerate.
1786 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1788 * target-memory.c (blocks_to_erase): Correct off-by-one error.
1790 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
1792 * remote.c (process_g_packet): Don't check size.
1793 * gdbarch.sh: Remove register_bytes_ok.
1794 * gdbarch.c: Regenerated.
1795 * gdbarch.h: Regenerated.
1796 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
1797 (m68k_register_bytes_ok): Remove.
1798 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
1800 2007-06-06 Andreas Schwab <schwab@suse.de>
1802 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
1803 (destroy_addr_space_name): Define.
1804 (libunwind_load): Get address of destroy_addr_space function.
1805 (libunwind_frame_cache): Destroy unw_addr_space_t object before
1806 returning unsuccessfully.
1807 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
1809 (libunwind_sigtramp_frame_sniffer): Likewise.
1810 (libunwind_get_reg_special): Likewise.
1812 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1814 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
1815 gdbarch_fetch_pointer_argument.
1816 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
1817 * gdbarch.c, gdbarch.h: Regenerate.
1819 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1821 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
1822 gdbarch_have_nonsteppable_watchpoint.
1823 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
1824 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
1825 gdbarch_cannot_step_breakpoint.
1826 * infrun.c (resume): Likewise.
1827 * gdbarch.c, gdbarch.h: Regenerate.
1829 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1831 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
1832 * stack.c (print_frame_args): Likewise.
1833 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
1834 * stack.c (print_args_stub, frame_info): Likewise.
1835 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
1836 * stack.c (print_args_stub, frame_info): Likewise.
1837 * gdbarch.c, gdbarch.h: Regenerate.
1839 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1841 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
1842 gdbarch_coff_make_msymbol_special.
1843 * coffread.c (coff_symtab_read): Likewise.
1844 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
1845 gdbarch_elf_make_msymbol_special.
1846 * elfread.c (elf_symtab_read): Likewise.
1847 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
1848 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
1849 * gdbarch.c, gdbarch.h: Regenerate.
1851 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1853 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
1854 gdbarch_frame_red_zone_size.
1855 * gdbarch.c, gdbarch.h: Regenerate.
1857 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1859 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
1860 * infcall.c (call_function_by_hand): Likewise.
1861 * gcore.c (derive_stack_segment): Likewise.
1862 * frame.c (frame_id_inner): Likewise.
1863 * arch-utils.c (core_addr_lessthan): Likewise (comment).
1864 * ada-lang.c (ensure_lval): Likewise.
1865 * gdbarch.c, gdbarch.h: Regenerate.
1867 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1869 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
1870 gdbarch_address_to_pointer.
1871 * findvar.c (store_typed_address): Likewise.
1872 * gdbtypes.c (make_pointer_type): Likewise (comment).
1873 * procfs.c (procfs_address_to_host_pointer): Likewise.
1874 * std-regs.c (value_of_builtin_frame_reg): Likewise.
1875 (value_of_builtin_frame_fp_reg): Likewise.
1876 (value_of_builtin_frame_pc_reg): Likewise.
1877 * utils.c (paddress): Likewise (comment).
1878 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1879 gdbarch_pointer_to_address.
1880 * findvar.c (extract_typed_address): Likewise.
1881 * gdbtypes.c (make_pointer_type): Likewise (comment).
1882 * valops.c (value_cast): Likewise (comment).
1883 * gdbarch.c, gdbarch.h: Regenerate.
1885 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1887 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1888 * infrun.c (handle_inferior_event): Likewise.
1889 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1890 gdbarch_get_longjmp_target_p.
1891 * breakpoint.c (breakpoint_re_set): Likewise.
1892 * infrun.c (handle_inferior_event): Likewise.
1893 * gdbarch.c, gdbarch.h: Regenerate.
1895 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1897 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1898 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1899 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1900 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1901 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1902 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1903 find_stub_with_shl_get, cover_find_stub_with_shl_get,
1904 initialize_hp_cxx_exception_support, child_enable_exception_callback,
1905 current_ex_event, child_get_current_exception_event): Remove.
1906 (hppa_hpux_inferior_created): Remove.
1907 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1909 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1910 (deprecated_exception_support_initialized): Remove.
1911 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1912 (deprecated_exception_support_initialized): Remove.
1913 (breakpoint_init_inferior): Remove handling of non-zero
1914 deprecated_exception_catchpoints_are_fragile.
1916 * symtab.h (deprecated_hp_som_som_object_present): Remove.
1917 * symtab.c (deprecated_hp_som_som_object_present): Remove.
1918 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1919 deprecated_hp_som_som_object_present.
1920 * eval.c (evaluate_subexp_standard): Likewise.
1921 * valops.c (value_cast): Likewise.
1923 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1924 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1925 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1927 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1929 * objfiles.h (ImportEntry, ExportEntry): Remove types.
1930 (struct objfile): Remove import_list, import_list_size,
1931 export_list, export_list_size members.
1932 (is_in_import_list): Remove prototype.
1933 * objfiles.c (is_in_import_list): Remove.
1934 * somread.c (init_import_symbols, init_export_symbols): Remove.
1935 (som_symfile_read): Do not call init_import_symbols. Do not
1936 set objfile->export_list and objfile->export_list_size.
1938 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1940 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1941 Use the original objfile if necessary.
1943 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
1945 * defs.h (ldirname): New prototype.
1946 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1948 * utils.c (ldirname): New function.
1949 * xml-tdesc.c (file_read_description_xml): Use ldirname.
1951 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1953 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1955 2007-06-01 Joel Brobecker <brobecker@adacore.com>
1957 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1959 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1961 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1963 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1965 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1966 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1967 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1968 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1969 (ppc_linux_in_sigtramp, insn_is_sigreturn,
1970 ppc_linux_at_sigtramp_return_path): Remove.
1972 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1974 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1975 (xtensa_register_write_masked, xtensa_register_read_masked)
1976 (xtensa_extract_return_value, xtensa_store_return_value
1977 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
1978 TARGET_BYTE_ORDER by gdbarch_byte_order.
1979 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1980 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1981 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1982 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1983 (sh64_push_dummy_call, sh64_extract_return_value)
1984 (sh64_store_return_value, sh64_register_convert_to_virtual)
1985 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1986 (sh64_pseudo_register_write, sh64_do_fp_register)
1987 (sh64_frame_prev_register): Likewise.
1988 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1989 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1990 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1991 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1992 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1993 * ppc-linux-nat.c (store_register): Likewise.
1994 * nto-tdep.c (nto_find_and_open_solib)
1995 (nto_init_solib_absolute_prefix): Likewise.
1996 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1997 (mips_convert_register_p, mips_eabi_push_dummy_call)
1998 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1999 (mips_o32_push_dummy_call, mips_o32_return_value)
2000 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
2001 (mips_read_fp_register_single, mips_read_fp_register_double)
2002 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
2003 (mips_breakpoint_from_pc): Likewise.
2004 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
2005 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
2006 (mips_linux_o32_sigframe_init): Likewise.
2007 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2008 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
2009 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
2010 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
2011 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
2012 * coffread.c (process_coff_symbol): Likewise.
2013 * arm-tdep.c (convert_from_extended, convert_to_extended)
2014 (gdb_print_insn_arm): Likewise.
2016 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2018 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
2019 * i386-tdep.c (i386_dbx_reg_to_regnum)
2020 (i386_svr4_reg_to_regnum): Likewise.
2021 * inf-ptrace.c (inf_ptrace_fetch_registers)
2022 (inf_ptrace_store_registers): Likewise.
2023 * corelow.c (get_core_registers): Likewise.
2024 * i386-linux-nat.c (supply_gregset, fill_gregset)
2025 (i386_linux_fetch_inferior_registers)
2026 (i386_linux_store_inferior_registers): Likewise.
2027 * remote.c (init_remote_state,packet_reg_from_regnum)
2028 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
2029 (remote_prepare_to_store,store_registers_using_G)
2030 (remote_store_registers,remote_arch_state): Likewise.
2031 * tracepoint.c (encode_actions): Likewise.
2032 * mi/mi-main.c (mi_cmd_data_list_register_names)
2033 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2034 (mi_cmd_data_write_register_values): Likewise.
2035 * tui/tui-regs.c (tui_show_register_group)
2036 (tui_show_register_group): Likewise.
2037 * xtensa-tdep.h (FP_ALIAS): Likewise.
2038 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
2039 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
2040 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
2041 * win32-nat.c (do_win32_fetch_inferior_registers)
2042 (do_win32_store_inferior_registers,fetch_elf_core_registers
2043 * user-regs.h: Likewise (comment).
2044 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2045 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2046 * target-descriptions.h: Likewise (comment).
2047 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
2048 * target.c (debug_print_register): Likewise.
2049 * stack.c (frame_info): Likewise.
2050 * stabsread.c (define_symbol): Likewise.
2051 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
2052 (sh64_media_print_registers_info)
2053 (sh64_compact_print_registers_info): Likewise.
2054 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2055 * rs6000-nat.c (fetch_register,store_register): Likewise.
2056 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
2057 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
2058 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
2059 * remote-m32r-sdi.c (m32r_fetch_registers)
2060 (m32r_store_registers): Likewise.
2061 * reggroups.c (default_register_reggroup_p): Likewise.
2062 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
2063 (regcache_restore,regcache_dump): Likewise.
2064 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
2065 * mips-tdep.c (mips_xfer_register,mips_register_name)
2066 (mips_register_reggroup_p,mips_pseudo_register_read)
2067 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
2068 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
2069 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
2070 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
2071 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
2072 (print_gp_register_row,mips_print_registers_info)
2073 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2074 (mips_register_sim_regno): Likewise.
2075 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
2076 (mips_linux_n32n64_sigframe_init): Likewise.
2077 * mips-linux-nat.c (mips_linux_register_addr)
2078 (mips64_linux_register_addr): Likewise.
2079 * findvar.c (value_of_register): Likewise.
2080 * infcmd.c (default_print_registers_info,registers_info)
2081 (print_vector_info,print_float_info): Likewise.
2082 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
2083 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2084 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2085 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
2086 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2087 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
2088 (ia64_cannot_store_register,ia64_linux_fetch_registers)
2089 (ia64_linux_store_registers): Likewise.
2090 * hpux-thread.c (hpux_thread_fetch_registers)
2091 (hpux_thread_store_registers): Likewise.
2092 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
2093 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
2094 (h8300_register_type): Likewise.
2095 * dwarf2-frame.c (dwarf2_frame_cache)
2096 (dwarf2_frame_state_alloc_regs): Likewise.
2097 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
2098 (cris_cannot_store_register,crisv32_cannot_fetch_register)
2099 (crisv32_cannot_store_register,cris_register_name): Likewise.
2100 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2101 * arch-utils.c (legacy_register_sim_regno)
2102 (legacy_virtual_frame_pointer): Likewise.
2103 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
2104 * arm-tdep.h: Likewise (comment).
2105 * frv-tdep.c (frv_register_sim_regno): Likewise.
2106 * m68klinux-nat.c (old_fetch_inferior_registers)
2107 (old_store_inferior_registers): Likewise.
2108 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2109 * irix5-nat.c (fetch_core_registers): Likewise.
2110 * hppa-tdep.c (hppa_frame_cache): Likewise.
2111 * hppa-linux-nat.c (hppa_linux_register_addr)
2112 (hppa_linux_fetch_inferior_registers)
2113 (hppa_linux_store_inferior_registers): Likewise.
2114 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
2115 (hppa_hpux_store_inferior_registers): Likewise.
2116 * amd64-nat.c (amd64_native_gregset_reg_offset)
2117 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
2118 * dbug-rom.c (dbug_regname): Likewise.
2119 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
2120 (HARD_PAGE_REGNUM (comment)): Likewise.
2121 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
2122 * i386-tdep.c (i386_dbx_reg_to_regnum)
2123 (i386_svr4_reg_to_regnum): Likewise.
2124 * mi/mi-main.c (mi_cmd_data_list_register_names)
2125 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2126 (mi_cmd_data_write_register_values): Likewise.
2127 * gdbarch.c, gdbarch.h: Regenerate.
2128 * tui/tui-regs.c (tui_show_register_group): Likewise.
2129 * xtensa-tdep.h (FP_ALIAS): Likewise.
2130 * user-regs.h: Likewise (comment).
2131 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2132 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2133 * target-descriptions.h: Likewise (comment).
2134 * target.c (debug_print_register): Likewise.
2135 * stack.c (frame_info): Likewise.
2136 * stabsread.c (define_symbol): Likewise.
2137 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
2138 (sh64_compact_print_registers_info): Likewise.
2139 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2140 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
2141 (regcache_restore,regcache_dump): Likewise.
2142 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
2143 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2144 (mips_stab_reg_to_regnum): Likewise.
2145 * findvar.c (value_of_register): Likewise.
2146 * infcmd.c (default_print_registers_info,registers_info)
2147 (print_vector_info,print_float_info): Likewise.
2148 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2149 * h8300-tdep.c (h8300_register_type): Likewise.
2150 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2151 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
2152 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
2153 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
2154 * parse.c: Remove comment.
2155 * gdbarch.c, gdbarch.h: Regenerate
2157 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2159 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
2160 gdbarch_cannot_fetch_register.
2161 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2162 * hppa-linux-nat.c (fetch_register): Likewise.
2163 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2164 * m68klinux-nat.c (fetch_register): Likewise.
2165 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
2167 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
2168 gdbarch_cannot_store_register.
2169 * hppa-linux-nat.c (store_register): Likewise.
2170 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
2171 * regcache.c (regcache_raw_write): Likewise.
2172 * m68klinux-nat.c (store_register): Likewise.
2173 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
2174 * gdbarch.c, gdbarch.h: Regenerate.
2176 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2178 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
2179 * gdbarch.c, gdbarch.h: Regenerate.
2181 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2183 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
2184 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2185 * gdbarch.c, gdbarch.h: Regenerate.
2187 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2189 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
2190 * ax-gdb.c (gen_bitfield_ref): Likewise.
2191 * mi/mi-main.c (get_register): Likewise.
2192 * findvar.c (default_value_from_register, extract_signed_integer)
2193 (extract_unsigned_integer, extract_long_unsigned_integer)
2194 (store_signed_integer, store_unsigned_integer): Likewise.
2195 * regcache.c (regcache_dump): Likewise.
2196 * value.c (lookup_internalvar, value_of_internalvar)
2197 (set_internalvar): Likewise.
2199 * valprint.c (print_binary_chars, print_octal_chars)
2200 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
2201 * infcmd.c (default_print_registers_info): Likewise.
2202 * arch-utils.c (selected_byte_order, show_endian): Likewise.
2203 * stabsread.c (define_symbol): Likewise.
2204 * doublest.c (floatformat_from_length, floatformat_from_type)
2205 (extract_typed_floating, store_typed_floating): Likewise.
2206 * gdbarch.c, gdbarch.h: Regenerate.
2208 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2210 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
2211 gdbarch_call_dummy_location.
2212 * infcall.c (call_function_by_hand): Likewise.
2213 * inferior.h: Change comment.
2214 * arch-utils.c: Change comment.
2215 * gdbarch.c, gdbarch.h: Regenerate.
2217 2007-05-28 Joel Brobecker <brobecker@adacore.com>
2219 * solib-aix5.c: Delete.
2220 * Makefile.in (solib-aix5.o): Delete rule.
2222 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
2224 * breakpoint.h (enum bpstat_what_main_action): Remove
2225 BPSTAT_WHAT_THROUGH_SIGTRAMP.
2226 * infrun.c (process_event_stop_test): Do not check for it.
2228 2007-05-22 Chris Dearman <chris@mips.com>
2229 Maciej W. Rozycki <macro@mips.com>
2231 * ser-unix.c (show_serial_hwflow): New function.
2232 (hardwire_raw): Add hardware flow control support.
2233 (_initialize_ser_hardwire): Add "set/show remoteflow".
2234 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
2235 * NEWS: Document the new command.
2237 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2239 * config/i386/tm-linux.h (sys_quotactl): Do not define.
2240 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
2241 define for i[[3456]]86-*-linux* native configurations.
2242 * config.in, configure: Regenerate.
2244 2007-05-19 Joel Brobecker <brobecker@adacore.com>
2246 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
2247 a core file. Add comment in the function description.
2249 2007-05-18 Caroline Tice <ctice@apple.com>
2251 * c-valprint.c (c_value_print): If the initialized field of the
2252 value struct is 0, print out "[uninitialized]" before the value.
2253 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
2254 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
2255 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
2256 ctx->initialized appropriately. Verify no location op follows
2258 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
2259 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
2260 set_value_initialized.
2261 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
2262 (decode_locdesc): Add case for DW_OP_GNU_uninit.
2263 * value.c (struct value): New field, initialized.
2264 (allocate_value): Initialize new field.
2265 (set_value_initialized): New function.
2266 (value_initialized): New function.
2267 * value.h (value_initialized): New extern declaration.
2268 (set_value_initialized): Likewise.
2270 2007-05-18 Caroline Tice <ctice@apple.com>
2272 * MAINTAINERS (Write After Approval): Add self.
2274 2007-05-17 Joel Brobecker <brobecker@adacore.com>
2276 * gdbtypes.c (make_reference_type): Preserve the type chain
2277 and set the length of all the variants of the pointer type.
2279 2007-05-17 Joel Brobecker <brobecker@adacore.com>
2281 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
2282 and set the length of all the variants of the pointer type.
2284 2007-05-17 Maciej W. Rozycki <macro@mips.com>
2286 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
2288 (mips_o64_push_dummy_call): Reformat a comment.
2290 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
2292 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
2293 (score_prologue_frame_base_address): Return fp to keep gdb print
2294 local variables correctly when debugging information is stabs.
2296 (score_analyze_prologue): For software watchpoint, fetch all the
2297 instructions from range [startaddr, pc] once and identify them locally
2298 to reduce memory access.
2299 (score_malloc_and_get_memblock, score_free_memblock)
2300 (score_adjust_memblock_ptr): New functions.
2301 (score_fetch_inst): Fetch single instruction or mutiple instructions.
2303 (score_target_can_use_watch, score_stopped_by_watch)
2304 (score_target_insert_watchpoint, score_target_remove_watchpoint)
2305 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
2306 New functions for remote & local hw-watchpoint and hw-breakpoint.
2308 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
2310 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
2311 declarations as well.
2313 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2315 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
2316 * config/arm/tm-embed.h: Delete file.
2318 * arm-tdep.h (arm_software_single_step): Declare.
2319 * arm-tdep.c (arm_software_single_step): Make global.
2320 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
2322 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
2323 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
2324 * armobsd-tdep.c (armobsd_init_abi): ... here ...
2325 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
2327 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
2328 allow defines to be overriden by TM file.
2329 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
2330 change default to {0xbe,0xbe}.
2331 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
2332 arm_obsd_thumb_be_breakpoint): New global variables.
2333 (armobsd_init_abi): Override tdep->thumb_breakpoint and
2334 tdep->thumb_breakpoint_size.
2335 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
2336 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
2337 tdep->thumb_breakpoint_size.
2339 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
2341 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2343 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
2346 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
2347 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
2348 (mips_stack_argsize_string, mips_stack_argsize): Delete.
2349 (mips_abi_regsize): Simplify.
2350 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2351 (mips_n32n64_return_value, mips_o32_push_dummy_call)
2352 (mips_o32_return_value, mips_o64_push_dummy_call)
2353 (mips_o64_return_value): Propogate constant register sizes. Use the
2354 ABI register size instead of mips_stack_argsize.
2355 (mips_dump_tdep): Don't print mips_stack_argsize.
2356 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
2359 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2361 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
2362 * config/mips/tm-linux.h: Delete.
2363 * mips-linux-tdep.c (mips_svr4_so_ops): New.
2364 (mips_linux_in_dynsym_resolve_code): Make static. Use
2365 svr4_in_dynsym_resolve_code.
2366 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
2368 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
2370 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
2371 * Makefile.in (mips-linux-tdep.o): Update.
2372 * solib.c (set_solib_ops): New.
2373 (current_target_so_ops): Update comment.
2374 * solib.h (set_solib_ops): New prototype.
2376 2007-05-16 Chris Dearman <chris@mips.com>
2378 * printcmd.c (do_examine): Fix typos in a comment.
2380 2007-05-16 Richard Sandiford <richard@codesourcery.com>
2382 * configure.ac: Allow sysroots to be relocated under $prefix as
2383 well as $exec_prefix.
2384 * configure: Regenerate.
2386 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2388 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
2389 (offsetof): Do not define.
2390 (find_stub_with_shl_get): Use numerical value 3 instead of
2391 symbolic value TYPE_PROCEDURE.
2393 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2395 * gdb_proc_service.h (paddr_t): Delete typedef.
2396 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
2397 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
2398 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
2399 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
2400 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
2401 * Makefile.in (proc-service.o): Update.
2403 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2405 * Makefile.in (mips-tdep.o): Update.
2406 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
2409 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2411 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
2412 instead of store_typed_address.
2413 * value.c (pack_long): New.
2414 (value_from_longest): Use it.
2415 * value.h (pack_long): New prototype.
2417 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2419 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
2420 DW_EH_PE_signed if appropriate.
2422 2007-05-14 Paul Brook <paul@codesourcery.com>
2423 Daniel Jacobowitz <dan@codesourcery.com>
2425 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
2427 (dwarf_decode_lines): Check for line info without a file.
2429 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2431 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
2434 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2436 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
2438 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
2440 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
2442 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2444 * gdbarch.sh (read_sp): Remove.
2445 * gdbarch.c, gdbarch.h: Regenerate.
2446 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
2448 * avr-tdep.c (avr_read_sp): Remove.
2449 (avr_unwind_sp): New function.
2450 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
2451 * mips-tdep.c (mips_read_sp): Remove.
2452 (mips_unwind_sp): New function.
2453 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
2454 * score-tdep.c (score_read_unsigned_register): Remove.
2455 (score_read_sp): Remove.
2456 (score_unwind_sp): New function.
2457 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
2459 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
2461 * buildsym.c (start_subfile): Handle absolute pathnames
2462 while comparing subfile names.
2464 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2466 * hppa-hpux-tdep.c: Include "regcache.h".
2467 * hppa-linux-tdep.c: Likewise.
2468 * hppa-tdep.c: Include "gdb_stdint.h".
2469 (find_unwind_entry): Cast host pointer to uintptr_t before passing
2471 * Makefile.in: Update dependencies.
2473 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2475 * blockframe.c: Remove obsolete comments.
2476 * alpha-nat.c (fetch_osf_core_registers): Update comment.
2477 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
2478 * hppa-tdep.h (enum hppa_regnum): Likewise.
2479 * mips-tdep.h: Likewise.
2480 * m68hc11-tdep.c: Likewise.
2482 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2484 * inferior.h (read_sp): Remove prototype.
2485 * regcache.c (read_sp): Remove.
2486 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
2487 * infcall.c (call_function_by_hand): Likewise.
2488 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
2490 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2492 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2494 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
2495 instead of read_register and read_register_pid.
2497 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
2498 argument instead of PTID. Use regcache functions instead of
2500 (ia64_linux_insert_watchpoint): Update call.
2501 (ia64_linux_stopped_data_address): Use regcache functions
2502 instead of read_register_pid and write_register_pid.
2504 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2506 * libunwind-frame.h (struct regcache): Add forward declaration.
2507 (libunwind_get_reg_special): Add REGCACHE argument.
2508 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
2509 argument. Pass it to unw_init_remote_p.
2511 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
2512 libunwind_get_reg_special.
2513 (ia64_access_reg): Remove "write" case.
2514 (ia64_access_fpreg): Likewise. Read from next_frame passed
2515 as callback argument instead of from current_regcache.
2516 (ia64_access_rse_reg): Remove "write" case. Read from regcache
2517 passed as callback argument instead of from current_regcache.
2518 (ia64_access_rse_fpreg): New function.
2519 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
2521 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2523 * NEWS: Mention SPU overlay support.
2525 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2527 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
2529 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2531 * breakpoint.c (remove_breakpoint): Do not remove software
2532 breakpoints in unmapped overlay sections.
2534 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2536 * spu-tdep.c: Include "observer.h".
2537 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
2538 (spu_overlay_data): New variable.
2539 (struct spu_overlay_table): New type.
2540 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
2541 spu_overlay_new_objfile): New functions.
2542 (spu_gdbarch_init): Install spu_overlay_update.
2543 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
2544 allocate spu_overlay_data objfile data.
2546 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2548 * gdbarch.sh (overlay_update): New gdbarch function.
2549 (struct obj_section): Add forward declaration.
2550 * gdbarch.c, gdbarch.h: Regenerate.
2552 * symfile.c (simple_overlay_update): Make global.
2553 (target_overlay_update): Remove variable.
2554 (overlay_is_mapped): Call gdbarch_overlay_update instead of
2555 target_overlay_update.
2556 (overlay_load_command): Likewise.
2557 * symfile.h (struct obj_section): Add forward declaration.
2558 (simple_overlay_update): Add prototype.
2560 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
2562 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2564 * observer.sh: Add "struct objfile" forward declaration.
2565 * target.h (deprecated_target_new_objfile_hook): Remove.
2566 * symfile.c (deprecated_target_new_objfile_hook): Remove.
2567 (clear_symtab_users): Call observer_notify_new_objfile.
2568 (symbol_file_add_with_addrs_or_offsets): Likewise.
2569 * rs6000-nat.c: Include "observer.h".
2570 (vmap_ldinfo): Call observer_notify_new_objfile.
2571 (xcoff_relocate_core): Likewise.
2572 * remote.c (remote_new_objfile_chain): Remove.
2573 (remote_new_objfile): Do not call remote_new_objfile_chain.
2574 (_initialize_remote): Use observer_attach_new_objfile.
2575 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
2576 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
2577 (_initialize_tui_hooks): Use observer_attach_new_objfile.
2578 * aix-thread.c: Include "observer.h".
2579 (target_new_objfile_chain): Remove.
2580 (new_objfile): Do not call target_new_objfile_chain.
2581 (_initialize_aix_thread): Use observer_attach_new_objfile.
2582 * hpux-thread.c: Include "observer.h"
2583 (target_new_objfile_chain): Remove.
2584 (hpux_thread_new_objfile): Make static. Do not call
2585 target_new_objfile_chain.
2586 (_initialize_hpux_thread): Use observer_attach_new_objfile.
2587 * linux-thread-db.c: Include "observer.h".
2588 (target_new_objfile_chain): Remove.
2589 (thread_db_new_objfile): Do not call target_new_objfile_chain.
2590 (_initialize_thread_db): Use observer_attach_new_objfile.
2591 * sol-thread.c: Include "observer.h".
2592 (target_new_objfile_chain): Remove.
2593 (sol_thread_new_objfile): Make static. Do not call
2594 target_new_objfile_chain.
2595 (_initialize_sol_thread): Use observer_attach_new_objfile.
2596 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
2597 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
2600 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2602 * gdbarch.sh (remote_translate_xfer_address): Remove.
2603 * gdbarch.h, gdbarch.c: Regenerate.
2604 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
2605 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
2606 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
2607 call gdbarch_remote_translate_xfer_address.
2608 * frv-tdep.c (frv_gdbarch_init): Do not call
2609 set_gdbarch_remote_translate_xfer_address.
2610 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
2611 (ia64_gdbarch_init): Do not install it.
2613 2007-05-11 Bob Wilson <bob.wilson@acm.org>
2615 * NEWS: Mention change in handling the -tui option.
2617 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
2619 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
2622 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2624 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
2625 (breakpoint_inserted_here_p): Call it.
2626 (software_breakpoint_inserted_here_p): Likewise.
2628 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
2630 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
2631 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
2632 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
2633 (inf_ptrace_store_register): Likewise.
2634 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
2635 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
2637 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
2639 * linux-nat.c (linux_trad_target): Adapt parameter list.
2640 * linux-nat.h (linux_trad_target): Likewise.
2642 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
2644 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
2645 (mips_linux_cannot_store_register): Likewise.
2646 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
2647 Return (CORE_ADDR) -1 for registers that cannot be fetched or
2648 stored via ptrace. Use GDBARCH instead of current_gdbarch.
2649 (mips64_linux_register_addr): Likewise.
2650 (mips_linux_register_u_offset): Adapt parameter list. Pass
2651 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
2653 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2654 * config/mips/nm-linux.h: Delete file.
2656 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2658 * remote.c (remote_detach): Error out if remote can't detach.
2660 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
2662 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
2663 instruction's opcode in the "opcode" variable and declares new
2664 variable "closing_insn".
2666 2007-05-10 Chris Dearman <chris@mips.com>
2667 Maciej W. Rozycki <macro@mips.com>
2669 * cli/cli-setshow.c (do_setshow_command): Remove trailing
2670 whitespace when setting a var_filename.
2672 2007-05-09 Bob Wilson <bob.wilson@acm.org>
2674 * main.c (captured_main): Recognize -tui option and print an error
2675 message when the TUI is not configured.
2677 2007-05-09 Andreas Schwab <schwab@suse.de>
2679 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
2680 set removed members.
2681 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2683 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2685 * gdbarch.sh (deprecated_store_struct_return): Remove.
2686 * gdbarch.c, gdbarch.h: Regenerate.
2687 * frv-tdep.c (frv_store_struct_return): Remove.
2688 (frv_gdbarch_init): Do not install it.
2690 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2692 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
2693 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
2694 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
2696 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2698 * spu-linux-nat.c: Include "gdb_stdint.h".
2699 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
2700 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
2701 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
2702 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
2703 (spu_child_wait): Mark up string for translation.
2705 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
2706 Luis Machado <luisgpm@br.ibm.com>
2708 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
2709 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
2710 BC_INSTRUCTION): Define.
2711 (deal_with_atomic_sequence): New function.
2712 (rs6000_software_single_step): Call deal_with_atomic_sequence.
2713 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
2714 gdbarch_software_single_step routine.
2716 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2718 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
2719 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
2720 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
2721 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
2722 spu_child_post_attach, spu_fetch_inferior_registers,
2723 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
2724 memory addresses as ULONGEST, not CORE_ADDR.
2726 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2728 * gdbarch.sh: Add skip_permanent_breakpoint callback.
2729 * gdbarch.h, gdbarch.c: Regenerate.
2731 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
2732 (resume): Call gdbarch_skip_permanent_breakpoint instead of
2733 SKIP_PERMANENT_BREAKPOINT. Inline default case.
2735 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
2736 Add REGCACHE argument. Use it instead of read/write_register.
2737 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
2739 * config/pa/tm-hppah.h: Delete file.
2740 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
2741 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
2743 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2745 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
2746 * NEWS: Mention improved C++ thunk support.
2747 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
2748 * cp-abi.c (cplus_skip_trampoline): New.
2749 * cp-abi.h (cplus_skip_trampoline): New prototype.
2750 (struct cp_abi_ops): Add skip_trampoline member.
2751 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
2752 (init_gnuv3_ops): Set skip_trampoline.
2754 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2756 * rs6000-tdep.c (struct frame_extra_info): Delete.
2758 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2760 * linux-thread-db.c: Update some FIXME comments.
2761 (thread_db_xfer_partial): Delete.
2762 (init_thread_db_ops): Do not set to_xfer_partial.
2764 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2766 * inftarg.c, infptrace.c: Remove files.
2767 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
2768 (inftarg.o, infptrace.o): Remove rules.
2769 * gdbcore.h (register_addr): Remove prototype.
2770 * inferior.h (kill_inferior, store_inferior_registers,
2771 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
2772 call_ptrace, pre_fork_inferior): Remove prototypes.
2773 * target.h (child_xfer_memory, child_pid_to_exec_file,
2774 child_core_file_to_sym_file, child_post_attach,
2775 child_post_startup_inferior, child_acknowledge_created_inferior,
2776 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
2777 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
2778 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
2779 child_follow_fork, child_reported_exec_events_per_exec_call,
2780 child_has_exited, child_thread_alive): Remove prototypes.
2782 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2784 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
2785 (sparc_store_inferior_registers): Likewise.
2786 * sparc-nat.c (fetch_inferior_registers): Rename to ...
2787 (sparc_fetch_inferior_registers): ... this.
2788 (store_inferior_registers): Rename to ...
2789 (sparc_store_inferior_registers): ... this.
2790 (sparc_target): Update callback names.
2791 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
2792 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
2794 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2796 * linux-nat.c (child_post_attach): Rename to ...
2797 (linux_child_post_attach): ... this. Make static.
2798 (child_follow_fork): Rename to ...
2799 (linux_child_follow_fork): ... this. Make static.
2800 (child_insert_fork_catchpoint): Rename to ...
2801 (linux_child_insert_fork_catchpoint): ... this. Make static.
2802 (child_insert_vfork_catchpoint): Rename to ...
2803 (linux_child_insert_vfork_catchpoint): ... this. Make static.
2804 (child_insert_exec_catchpoint): Rename to ...
2805 (linux_child_insert_exec_catchpoint): ... this. Make static.
2806 (child_pid_to_exec_file): Rename to ...
2807 (linux_child_pid_to_exec_file): ... this. Make static.
2809 (linux_handle_extended_wait): Update call.
2810 (linux_xfer_partial): Update callback routine names.
2812 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2814 * configure.host (alpha*-*-osf[12]*): Remove support.
2815 * NEWS: Mention removed configurations.
2817 * config/alpha/alpha-osf1.mh: Delete file.
2818 * config/alpha/alpha-osf2.mh: Delete file.
2819 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
2821 * config/alpha/nm-osf.h: Delete file.
2822 * config/alpha/nm-osf2.h: Delete file.
2823 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
2824 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
2825 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
2827 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
2828 (register_addr, kernel_u_size): Remove.
2829 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
2831 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2833 * regcache.c (regcache_invalidate): New function.
2834 (register_cached): Remove.
2835 (set_register_cached): Remove.
2836 (deprecated_registers_fetched): Remove.
2837 (registers_changed): Use regcache_invalidate instead
2838 of set_register_cached.
2839 (regcache_raw_read): Update comment.
2841 * regcache.h (regcache_invalidate): Add prototype.
2842 (register_cached): Remove.
2843 (set_register_cached): Remove.
2844 (deprecated_registers_fetched): Remove.
2846 * findvar.c (value_of_register): Do not call register_cached.
2847 * frame.c (frame_register): Likewise.
2848 * tui/tui-regs.c (tui_get_register): Likewise.
2850 * remote.c (fetch_register_using_p): Do not call set_register_cached.
2851 (process_g_packet): Likewise.
2852 (remote_fetch_registers): Likewise.
2853 * remote-sim.c (gdbsim_fetch_register): Likewise.
2854 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
2855 by regcache_invalidate.
2856 (mt_pseudo_register_write): Likewise.
2857 * sh-tdep.c (sh_pseudo_register_write): Likewise.
2859 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
2860 call by loop over regcache_raw_supply (..., NULL).
2862 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2864 * target.h (struct target_ops): Add REGCACHE parameter to
2865 to_prepare_to_store.
2866 (target_prepare_to_store): Likewise.
2867 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
2868 (update_current_target): Adapt prepare_to_store de_fault rule.
2870 * regcache.c (regcache_raw_write): Pass regcache to
2871 target_prepare_to_store.
2873 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
2874 Do not call CHILD_PREPARE_TO_STORE.
2875 * gnu-nat.c (gnu_prepare_to_store): Likewise.
2876 * procfs.c (procfs_prepare_to_store): Likewise.
2878 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2879 * go32-nat.c (go32_prepare_to_store): Likewise.
2880 * monitor.c (monitor_prepare_to_store): Likewise.
2881 * nto-procfs.c (procfs_prepare_to_store): Likewise.
2882 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2883 * remote-mips.c (mips_prepare_to_store): Likewise.
2884 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2885 * win32-nat.c (win32_prepare_to_store): Likewise.
2887 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2888 Use it instead of current_regcache.
2890 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2891 parameter. Pass it on to next target.
2892 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2894 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2896 * target.h (struct regcache): Add forward declaration.
2897 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2898 and to_store_registers target operations.
2899 (target_fetch_registers, target_store_registers): Update.
2901 * regcache.c (regcache_raw_read): Replace register_cached by
2902 regcache_valid_p. Pass regcache to target_fetch_registers.
2903 (regcache_raw_write): Pass regcache to target_store_registers.
2905 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2906 store_regs, store_wmmx_regs): Replace register_cached by
2909 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2910 to target_fetch_registers calls.
2911 * corelow.c (core_open): Likewise.
2912 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2913 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2914 ps_lsetfpregs): Likewise.
2915 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2916 ps_lsetfpregs): Likewise.
2917 * win32-nat.c (win32_resume): Likewise.
2918 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2919 to target_store_registers call.
2920 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2922 * inferior.h (store_inferior_registers): Update prototype.
2923 (fetch_inferior_registers): Likewise.
2924 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2925 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2926 Update function pointer signatures.
2928 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2929 use it instead of current_regcache, update calls.
2930 (aix_thread_store_registers): Likewise.
2931 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2932 (alphabsd_store_inferior_registers): Likewise.
2933 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2934 (amd64bsd_store_inferior_registers): Likewise.
2935 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2936 (amd64_linux_store_inferior_registers): Likewise.
2937 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2938 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2939 fetch_wmmx_regs, store_wmmx_regs): Likewise.
2940 (arm_linux_fetch_inferior_registers): Likewise.
2941 (arm_linux_store_inferior_registers): Likewise.
2942 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2943 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2944 (store_register, store_regs, store_fp_register, store_fp_regs,
2945 armnbsd_store_registers): Likewise.
2946 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2947 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2948 (bsd_uthread_store_registers): Likewise.
2949 * corelow.c (get_core_registers): Likewise.
2950 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2951 go32_store_registers): Likewise.
2952 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2953 (hppabsd_store_registers): Likewise.
2954 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2955 (hppa_hpux_fetch_inferior_registers): Likewise.
2956 (hppa_hpux_store_register): Likewise.
2957 (hppa_hpux_store_inferior_registers): Likewise.
2958 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2959 (hppa_linux_fetch_inferior_registers): Likewise.
2960 (hppa_linux_store_inferior_registers): Likewise.
2961 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2962 (hpux_thread_store_registers): Likewise.
2963 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2964 (i386bsd_store_inferior_registers): Likewise.
2965 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2966 gnu_store_registers): Likewise.
2967 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2968 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2970 (i386_linux_fetch_inferior_registers): Likewise.
2971 (i386_linux_store_inferior_registers): Likewise.
2972 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2973 (ia64_linux_fetch_registers): Likewise.
2974 (ia64_linux_store_register): Likewise.
2975 (ia64_linux_store_registers): Likewise.
2976 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2977 (inf_child_store_inferior_registers): Likewise.
2978 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2979 (inf_ptrace_fetch_registers): Likewise.
2980 (inf_ptrace_store_register): Likewise.
2981 (inf_ptrace_store_registers): Likewise.
2982 * infptrace.c (fetch_register, store_register): Likewise.
2983 (fetch_inferior_registers, store_inferior_registers): Likewise.
2984 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2985 (m32r_linux_fetch_inferior_registers): Likewise.
2986 (m32r_linux_store_inferior_registers): Likewise.
2987 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2988 (m68kbsd_store_inferior_registers): Likewise.
2989 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2990 store_register, old_store_inferior_registers, fetch_regs, store_regs,
2991 fetch_fpregs, store_fpregs): Likewise.
2992 (m68k_linux_fetch_inferior_registers): Likewise.
2993 (m68k_linux_store_inferior_registers): Likewise.
2994 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2995 (m88kbsd_store_inferior_registers): Likewise.
2996 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2997 (mips64obsd_store_inferior_registers): Likewise.
2998 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2999 (mips64_linux_regsets_store_registers): Likewise.
3000 (mips64_linux_fetch_registers): Likewise.
3001 (mips64_linux_store_registers): Likewise.
3002 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3003 (mipsnbsd_store_inferior_registers): Likewise.
3004 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
3005 (monitor_fetch_registers, monitor_store_registers): Likewise.
3006 * nto-procfs.c (procfs_fetch_registers): Likewise.
3007 (procfs_store_registers): Likewise.
3008 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
3009 fetch_register, supply_vrregset, fetch_altivec_registers,
3010 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
3011 (store_altivec_register, store_spe_register, store_register,
3012 fill_vrregset, store_altivec_registers, store_ppc_registers,
3013 ppc_linux_store_inferior_registers): Likewise.
3014 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
3015 (ppcnbsd_store_inferior_registers): Likewise.
3016 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
3017 (ppcobsd_store_registers): Likewise.
3018 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3019 * remote.c (fetch_register_using_p, process_g_packet,
3020 fetch_registers_using_g, remote_fetch_registers): Likewise.
3021 (store_register_using_P, store_registers_using_G,
3022 remote_store_registers): Likewise.
3023 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
3024 m32r_store_register, m32r_store_register): Likewise.
3025 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
3026 * remote-sim.c (gdbsim_fetch_register): Likewise.
3027 (gdbsim_store_register): Likewise.
3028 * rs6000-nat.c (fetch_register, store_register): Likewise.
3029 (rs6000_fetch_inferior_registers): Likewise.
3030 (rs6000_store_inferior_registers): Likewise.
3031 * s390-nat.c (fetch_regs, store_regs): Likewise.
3032 (fetch_fpregs, store_fpregs): Likewise.
3033 (s390_linux_fetch_inferior_registers): Likewise.
3034 (s390_linux_store_inferior_registers): Likewise.
3035 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3036 (shnbsd_store_inferior_registers): Likewise.
3037 * sol-thread.c (sol_thread_fetch_registers): Likewise.
3038 (sol_thread_store_registers): Likewise.
3039 * sparc-nat.c (fetch_inferior_registers): Likewise.
3040 (store_inferior_registers): Likewise.
3041 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3042 (spu_store_inferior_registers): Likewise.
3043 * target.c (debug_print_register): Likewise.
3044 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
3045 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
3046 (vaxbsd_store_inferior_registers): Likewise.
3047 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
3048 (win32_fetch_inferior_registers): Likewise.
3049 (win32_store_inferior_registers): Likewise.
3051 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3053 * gdbcore.h (struct regcache): Add forward declaration.
3054 (struct core_fns): Add REGCACHE argument to core_read_registers
3056 * corelow.c (get_core_register_section): Add REGCACHE argument,
3057 use it instead of current_regcache, pass it to core_read_registers
3059 (get_core_registers): Add current_regcache as parameter to
3060 get_core_register_section calls.
3062 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
3063 use it instead of current_regcache.
3064 * armnbsd-nat.c (fetch_core_registers): Likewise.
3065 (fetch_elfcore_registers): Likewise.
3066 * core-regset.c (fetch_core_registers): Likewise.
3067 * cris-tdep.c (fetch_core_registers): Likewise.
3068 * irix5-nat.c (fetch_core_registers): Likewise.
3069 * m68klinux-nat.c (fetch_core_registers): Likewise.
3070 * mips-linux-tdep.c (fetch_core_registers): Likewise.
3071 * win32-nat.c (fetch_elf_core_registers): Likewise.
3073 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3075 * gregset.h (struct regcache): Add forward declaration.
3076 (supply_gregset): Add REGCACHE parameter, make GREGS const.
3077 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
3078 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
3079 (fill_gregset): Add REGCACHE parameter.
3080 (fill_fpregset): Likewise.
3081 (fill_fpxregset): Likewise.
3083 Update all definitions accordingly:
3084 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
3085 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
3086 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
3087 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
3088 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
3089 (supply_gregset): Add REGCACHE parameter, use it instead of
3090 current_regcache. Make GREGSETP parameter const, adapt casts.
3091 (supply_fpregset): Add REGCACHE parameter, use it instead of
3092 current_regcache. Make FPREGSETP parameter const, adapt casts.
3093 (fill_gregset): Add REGCACHE parameter, use it instead of
3095 (fill_fpregset): Likewise.
3097 Update all callers to pass in current_regcache as the new argument:
3098 * core-regset.c: Include "regcache.h".
3099 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
3100 * procfs.c: Include "regcache.h".
3101 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
3102 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
3103 (procfs_do_thread_registers): Likewise.
3104 (procfs_make_note_section): Likewise.
3105 * proc-service.c: Include "regcache.h".
3106 (ps_lgetregs): Update fill_gregset call.
3107 (ps_lsetregs): Update supply_gregset call.
3108 (ps_lgetfpregs): Update fill_fpregset call.
3109 (ps_lsetfpregs): Update supply_fpregset call.
3110 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
3111 supply_fpregset calls.
3112 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
3113 (ps_lgetregs): Update fill_gregset call.
3114 (ps_lsetregs): Update supply_gregset call.
3115 (ps_lgetfpregs): Update fill_fpregset call.
3116 (ps_lsetfpregs): Update supply_fpregset call.
3118 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
3119 fill_fpregset, and fill_fpxregset calls.
3120 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
3121 (store_regs): Update fill_gregset call.
3122 (fetch_fpregs): Update supply_fpregset call.
3123 (store_fpregs): Update fill_fpregset call.
3124 (fetch_fpxregs): Update supply_fpxregset call.
3125 (store_fpxregs): Update fill_fpxregset call.
3126 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
3127 (store_regs): Update fill_gregset call.
3128 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
3129 (store_regs): Update fill_gregset call.
3130 (fetch_fpregs): Update supply_fpregset call.
3131 (store_fpregs): Update fill_fpregset call.
3132 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
3133 * s390-nat.c (fetch_regs): Update supply_gregset call.
3134 (store_regs): Update fill_gregset call.
3135 (fetch_fpregs): Update supply_fpregset call.
3136 (store_fpregs): Update fill_fpregset call.
3138 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
3141 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3143 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
3144 it instead of current_regcache.
3145 (parse_register_dump): Add REGCACHE parameter, pass it to
3146 supply_register callback.
3147 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
3148 parse_register_dump.
3149 (monitor_dump_regs): Add REGCACHE parameter, pass it to
3150 parse_register_dump and dumpregs callback.
3151 (monitor_wait): Pass current_regcache to parse_register_dump and
3153 (monitor_fetch_register): Pass current_regcache to
3154 monitor_supply_register.
3155 (monitor_fetch_registers): Pass current_regcache to
3157 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
3158 supply_register and dumpregs callbacks.
3159 (monitor_supply_register, monitor_dump_reg_block): Update
3161 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
3162 it to monitor_supply_register.
3163 * dink32-rom.c (dink32_supply_register): Likewise.
3164 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
3165 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
3166 instead of current_regcache.
3168 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3170 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
3171 Add REGCACHE parameter. Use it instead of current_regcache.
3172 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
3173 i386nto_supply_gregset and i386nto_supply_fpregset.
3174 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
3175 of current_regcache.
3177 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
3178 nto_supply_ helper functions.
3179 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
3181 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
3183 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
3184 supply_greget, supply_fpregset, supply_altregset, supply_regset,
3185 and regset_fill member function pointers.
3186 (nto_dummy_supply_regset): Adapt prototype.
3188 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3190 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
3191 instead of current_regcache. Make REGS const.
3192 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
3193 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
3195 * shnbsd-nat.c: Include "regcache.h".
3196 (shnbsd_fetch_inferior_registers): Pass current_regcache to
3198 (shnbsd_store_inferior_registers): Pass current_regcache to
3200 * Makefile.in (shbsd-nat.o): Update dependencies.
3202 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3204 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
3205 instead of current_regcache.
3206 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
3207 Make GREGSETP const, remove superfluous casts.
3208 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3209 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
3211 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3212 (supply_64bit_reg): Likewise
3213 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
3214 Make GREGSETP const, adapt casts accordingly.
3215 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3216 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
3218 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3219 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
3221 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
3222 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
3223 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
3225 * mips-linux-nat.c: Include "regcache.h".
3226 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3227 current_regcache to mips{64}_(supply|fill)_ helper routines.
3228 (mips64_linux_regsets_fetch_registers): Likewise.
3229 (mips64_linux_regsets_store_registers): Likewise.
3231 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
3232 REGCACHE argument; replace current_regcache. Make REGS const.
3233 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
3234 replace current_regcache.
3235 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
3236 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
3237 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
3238 mipsnbsd_store_inferior_registers): Pass current_regcache to
3239 mipsnbsd_(supply|fill)_... helper routines.
3241 * Makefile.in (mips-linux-nat.o): Update dependencies.
3243 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3245 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
3246 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
3247 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
3248 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
3249 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
3250 * i386gnu-nat.c (store_fpregs): Likewise.
3251 * i386v4-nat.c (fill_fpregset): Likewise.
3252 * go32-nat.c (store_register, go32_store_registers): Likewise.
3254 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3256 * cris-tdep.c (supply_gregset): Rename to ...
3257 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
3258 instead of current_regcache.
3259 (fetch_core_registers): Update call. Pass current_regcache.
3261 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3263 * arnmnbsd-nat.c (supply_gregset): Rename to ...
3264 (arm_supply_gregset): ... this. Add REGCACHE parameter.
3265 Use it instead of current_regcache.
3266 (supply_fparegset): Rename to ...
3267 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
3268 Use it instead of current_regcache.
3269 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
3270 (fetch_core_registers, fetch_elfcore_registers): Likewise.
3272 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3274 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
3275 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
3276 use it instead of current_regcache.
3277 * alpha-tdep.h (struct regcache): Add forward declaration.
3278 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
3279 alpha_fill_fp_regs): Update prototypes.
3281 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
3282 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
3283 * alpha-linux-nat.c: Include "regcache.h".
3284 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3285 current_regcache to alpha_supply/fill_ routines.
3287 * alphabsd-tdep.c: Include "regcache.h".
3288 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
3289 pass it to alpha_supply_ routines. Make REGS const.
3290 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
3291 pass it to alpha_fill_ routines.
3292 * alphabsd-tdep.h (struct regcache): Add forward declaration.
3293 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
3294 alphabsd_fill_fpreg): Update prototypes.
3296 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
3297 fill_fpregset, alphabsd_fetch_inferior_registers,
3298 alphabsd_store_inferior_registers): Pass current_regcache to
3299 alphabsd_supply/fill_ routines.
3301 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
3304 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3306 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
3307 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
3308 instead of current_regcache.
3309 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
3310 REGCACHE parameter, pass it to supply_ routines.
3311 (aix_thread_fetch_registers): Pass current_regcache to
3312 fetch_regs_user_thread and fetch_regs_kernel_thread.
3314 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
3315 Add REGCACHE parameter, use it instead of current_regcache.
3316 Call regcache_valid_p instead of register_cached.
3317 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
3318 Also, pass REGCACHE to fill_ routines.
3319 (aix_thread_store_registers): Pass current_regcache to
3320 store_regs_user_thread and store_regs_kernel_thread.
3322 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3324 * m32r-linux-nat.c (supply_gregset): Do not modify contents
3325 pointed to by GREGSETP.
3327 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3329 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
3330 of regcache_raw_read_signed.
3331 (fill_fpregset): Use regcache_raw_collect instead of
3334 2007-05-03 Kevin Buettner <kevinb@redhat.com>
3336 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
3337 point arguments, test explicitly for use of the EABI32 ABI
3338 instead of inferring this condition from tests on register
3341 2007-05-03 Kevin Buettner <kevinb@redhat.com>
3343 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
3344 prior to allocating its location.
3346 2007-05-02 Maciej W. Rozycki <macro@mips.com>
3348 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
3349 based on mips_abi_regsize() whose result is known in advance.
3350 (mips_o64_push_dummy_call): Likewise.
3352 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
3354 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
3355 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
3357 * mips-linux-nat.c: Include "gregset.h".
3358 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
3359 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
3360 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3361 fill_fpregset): Move to mips-linux-nat.c.
3363 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
3365 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3367 * regcache.c (deprecated_read_register_gen): Remove, inline ...
3368 (read_register): ... here.
3369 (deprecated_write_register_gen): Remove, inline ...
3370 (write_register): ... here.
3371 * regcache.h (deprecated_read_register_gen): Remove prototype.
3372 (deprecated_write_register_gen): Likewise.
3374 * remote-sim.c (gdbsim_store_register): Replace call to
3375 deprecated_read_register_gen with regcache_cooked_read.
3376 * target.c (debug_print_register): Replace calls to
3377 deprecated_read_register_gen and read_register with
3378 regcache_cooked_read.
3380 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3382 * hpux-thread.c (hpux_thread_store_registers): Use
3383 regcache_raw_collect, not regcache_raw_read.
3384 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
3385 not regcache_raw_write.
3387 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3389 * gdbarch.sh: Remove deprecated_register_byte.
3390 * gdbarch.c, gdbarch.h: Regenerate.
3391 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
3392 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
3394 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
3395 * regcache.c (regcache_valid_p): Allow to query cooked registers in
3396 read-only register caches. Make REGCACHE parameter const.
3397 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
3399 * mi/mi-main.c (old_regs): Remove.
3400 (mi_setup_architecture_data, _initialize_mi_main): Remove.
3401 (register_changed_p): Reimplement to compare two register caches.
3402 (mi_cmd_data_list_changed_registers): Update caller.
3403 * mi/mi-main.h (mi_setup_architecture_data): Remove.
3404 * mi/mi-interp.c (mi_interpreter_init): Do not call
3405 mi_setup_architecture_data.
3407 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3409 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
3410 inline definition at the places the macros are used.
3411 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
3413 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3415 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
3417 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
3418 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
3419 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
3420 (rs6000_aix_regset_from_core_section): New function.
3421 (rs6000_aix_init_osabi): Register it.
3422 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
3423 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
3424 * rs6000-nat.c (CoreRegs): Do not define type.
3425 (fetch_core_registers, rs6000_core_fns): Remove.
3426 (_initialize_core_rs6000): Do not register it. Rename to ...
3427 (_initialize_rs6000_nat): ... this.
3428 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
3430 2007-04-27 Kevin Buettner <kevinb@redhat.com>
3432 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
3433 (dwarf2_read_address): Sign extend return address as required by
3434 target architecture.
3436 2007-04-27 Kevin Buettner <kevinb@redhat.com>
3438 * solib-frv.c (lm_base): Bail out if the main executable has
3441 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3443 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
3444 of FPCR register in fpregset.
3446 2007-04-27 Maciej W. Rozycki <macro@mips.com>
3448 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
3449 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
3451 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3453 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
3454 * rs6000-nat.c (rs6000_wait): New function.
3455 (_initialize_core_rs6000): Install it as to_wait target method.
3456 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
3458 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3460 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
3461 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
3462 * rs6000-nat.c (super_create_inferior): New variable.
3463 (rs6000_create_inferior): Make static. Adapt argument list. Call
3464 original version of create_inferior via super_create_inferior.
3465 (_initialize_core_rs6000): Install to_create_inferior target method.
3467 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3469 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
3470 (aix_thread_xfer_partial): ... this.
3471 (init_aix_thread_ops): Install to_xfer_partial instead
3472 of deprecated_xfer_memory target method.
3474 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
3475 and inftarg.o, add inf-ptrace.o.
3476 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
3477 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
3478 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
3479 (fetch_inferior_registers): Rename to ...
3480 (rs6000_fetch_inferior_registers): ... this. Make static.
3481 (store_inferior_registers): Rename to ...
3482 (rs6000_store_inferior_registers): ... this. Make static.
3483 (read_word, child_xfer_memory): Remove.
3484 (rs6000_xfer_partial): New function.
3485 (kernel_u_size): Remove.
3486 (_initialize_core_rs6000): Add inf_ptrace-based target.
3487 * Makefile.in (rs6000-nat.o): Update dependencies.
3489 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3491 * inf-ptrace.c: Include "gdb_stdint.h".
3492 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
3493 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
3494 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
3495 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
3496 (inf_ptrace_store_register): Likewise.
3497 * Makefile.in (inf-ptrace.o): Update dependencies.
3499 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3501 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
3502 * configure.tgt (rs6000-*-*): Likewise.
3503 * config/rs6000/aix4.mh: Delete file.
3504 * config/rs6000/aix4.mt: Delete file.
3505 * config/rs6000/rs6000.mh: Delete file.
3506 * config/rs6000/rs6000.mt: Delete file.
3508 * config/powerpc/nm-aix.h: Delete file.
3509 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
3511 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3513 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
3514 Remove obsolete part of comment.
3515 (store_regs_user_thread): Use uint32_t temporaries when calling
3517 (store_regs_kernel_thread): Likewise. Add assertion to verify
3518 correct size of struct ptsprs members.
3519 (aix_thread_xfer_memory): Fix type of myaddr.
3520 (aix_thread_extra_thread_info): Fix compiler warning.
3521 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
3522 (fetch_register, store_register): Adapt callers.
3524 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3526 * vec.h (vec_free): Rename to vec_free_. Adapt users.
3528 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3530 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
3532 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
3533 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
3534 (alpha_linux_regset_from_core_section): New function.
3535 (alpha_linux_init_abi): Install it.
3536 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
3537 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
3538 <sys/procfs.h>, and "gregset.h".
3539 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
3540 Move from config/alpha/nm-linux.h.
3541 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
3543 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
3544 * alpha-nat.c: Remove #ifdef __linux__ section.
3545 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
3546 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
3547 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
3548 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
3549 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
3550 (NATDEPFILES): Remove alpha-nat.o.
3551 * config/alpha/nm-linux.h: Delete file.
3552 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
3553 * Makefile.in (alpha-linux-nat.o): Update dependencies.
3554 (alpha-linux-tdep.o): Likewise.
3556 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3558 * mips-linux-nat.c: No longer include "gdbcore.h".
3559 (mips_linux_register_addr): Move from mips-linux-tdep.c.
3560 (mips64_linux_register_addr): Likewise.
3561 (mips_linux_register_u_offset): Call mips_linux_register_addr or
3562 mips64_linux_register_addr instead of register_addr.
3563 * mips-linux-tdep.c (mips_linux_register_addr,
3564 mips64_linux_register_addr): Move to mips-linux-nat.c.
3565 (register_addr): Remove.
3566 (register_addr_data, init_register_addr_data): Remove.
3567 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
3568 (set_mips_linux_register_addr): Remove.
3569 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
3570 * Makefile.in (mips-linux-nat.o): Update dependencies.
3572 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3574 * linux-nat.c (linux_register_u_offset): Remove.
3575 (linux_target_install_ops): New function.
3576 (linux_target): Use it.
3577 (linux_trad_target): New function.
3578 * linux-nat.h (linux_trad_target): Declare.
3580 * alpha-linux-nat.c: Include "gdbcore.h".
3581 (alpha_linux_register_u_offset): New function.
3582 (_initialize_alpha_linux_nat): Use linux_trad_target.
3584 * mips-linux-nat.c: Include "gdbcore.h".
3585 (mips_linux_register_u_offset): New function.
3586 (_initialize_mips_linux_nat): Use linux_trad_target.
3588 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3589 * config/arm/nm-linux.h: Delete file.
3591 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
3592 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
3594 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3595 * config/ia64/nm-linux.h: Delete file.
3597 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3598 * config/m32r/nm-linux.h: Delete file.
3600 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3601 * config/m68k/nm-linux.h: Delete file.
3603 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3604 * config/pa/nm-linux.h: Delete file.
3606 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3607 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
3608 * config/powerpc/nm-linux.h: Delete file.
3610 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
3611 * config/s390/nm-linux.h: Delete file.
3613 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3614 * config/sparc/linux64.mh (NAT_FILE): Likewise.
3615 * config/sparc/nm-linux.h: Delete file.
3617 * Makefile.in (alpha-linux-nat.o): Update dependencies.
3618 (mips-linux-nat.o): Likewise.
3620 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3622 * core-aout.c: Delete file.
3623 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
3624 (core-aout.o): Delete rule.
3625 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
3627 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
3629 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
3630 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
3631 KERNEL_U_ADDR): Remove.
3633 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
3634 (cannot_fetch_register, cannot_store_register): Remove.
3635 (fetch_register): Inline cannot_fetch_register and register_addr.
3636 (store_register): Inline cannot_store_register and register_addr.
3637 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
3638 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3639 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
3642 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
3643 (fetch_register): Inline register_addr.
3644 (store_register): Inline register_addr.
3645 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
3646 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3647 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
3649 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
3650 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
3651 REGISTER_U_ADDR): Remove.
3653 * hppa-linux-nat.c (register_addr): Rename to ...
3654 (hppa_linux_register_addr): ... this. Make static.
3655 (fetch_register, store_register): Adapt callers.
3656 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
3658 * ppc-linux-nat.c (kernel_u_size): Remove.
3659 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
3661 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
3662 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
3664 * config/vax/nm-vax.h: Delete file.
3666 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3668 * MAINTAINERS (Write After Approval): Add myself.
3670 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3672 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
3673 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
3674 (m68k_linux_sigcontext_reg_offset): Fix typo.
3675 (target_is_uclinux): New.
3676 (m68k_linux_inferior_created): New.
3677 (m68k_linux_get_sigtramp_info): Check for uClinux or
3678 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
3680 (_initialize_m68k_linux_tdep): Register
3681 m68k_linux_inferior_created.
3683 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
3685 * win32-nat.c (win32_detach): Remove delete_command call.
3686 Resume inferior with win32_resume instead of win32_continue.
3688 2007-04-19 Jerome Guitton <guitton@adacore.com>
3690 * ser-mingw.c (fd_is_file): New function.
3691 (file_select_thread): New function.
3692 (ser_console_wait_handle): Add special handling for files.
3694 2007-04-18 Denis Pilat <denis.pilat@st.com>
3696 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
3697 when missing from DW_TAG_subrange_type. Remove the handling of null
3698 return from die_type.
3700 2007-04-18 Maciej W. Rozycki <macro@mips.com>
3702 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
3703 change to rearrange some brackets.
3704 (mips_n32n64_push_dummy_call): Likewise.
3705 (mips_o32_push_dummy_call): Likewise.
3706 (mips_o64_push_dummy_call): Likewise.
3708 2007-04-18 Denis Pilat <denis.pilat@st.com>
3710 * infcmd.c (post_create_inferior): Start with a call to
3711 target_terminal_ours.
3713 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3715 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
3717 (mips_n32n64_push_dummy_call): Likewise. Reformat some
3719 (mips_o32_push_dummy_call): Likewise.
3720 (mips_o64_push_dummy_call): Likewise.
3722 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3724 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3727 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3729 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3731 (mips_o32_push_dummy_call): Likewise.
3733 2007-04-17 Andreas Schwab <schwab@suse.de>
3735 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
3736 sal to be bigger than the end of the function.
3738 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3739 Nigel Stephens <nigel@mips.com>
3741 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
3742 argument alignment requirements when calculating stack space
3743 required. When aligning an arg register to eight bytes
3744 boundary, align stack_offset too. Write floating-point
3745 arguments to the appropriate integer register if need go there.
3746 (mips_o64_push_dummy_call): Likewise.
3748 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3750 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
3751 "sig" arguments, add "regcache" argument.
3752 * gdbarch.c, gdbarch.h: Regenerate.
3754 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
3755 (handle_inferior_event): Call remove_single_step_breakpoints directly
3756 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
3758 * alpha-tdep.c (alpha_software_single_step): Update argument list.
3759 Remove handling of !insert_breakpoints_p case.
3760 * arm-tdep.c (arm_software_single_step): Likewise.
3761 * cris-tdep.c (cris_software_single_step): Likewise.
3762 * mips-tdep.c (mips_software_single_step): Likewise.
3763 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3764 * sparc-tdep.c (sparc_software_single_step): Likewise.
3765 * spu-tdep.c (spu_software_single_step): Likewise.
3767 * alpha-tdep.h (alpha_software_single_step): Update prototype.
3768 * mips-tdep.h (mips_software_single_step): Likewise.
3769 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3770 * sparc-tdep.h (sparc_software_single_step): Likewise.
3772 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3774 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
3775 when removing single-step breakpoints.
3777 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
3779 * varobj.h (varobj_set_frozen): New
3780 (varobj_get_frozen): New.
3781 (varobj_update): New parameter explicit.
3782 * varobj.c (struct varobj): New fields frozen
3784 (varobj_set_frozen, varobj_get_frozen): New.
3785 (install_new_value): Don't fetch values for
3786 frozen variable object, or children thereof. Allow
3787 a frozen variable object to have non-fetched value.
3788 (varobj_update): Allow updating child variables.
3789 Don't traverse frozen children.
3790 (new_variable): Initialize the frozen field.
3791 (c_value_of_variable): Return NULL for frozen
3792 variable without any value yet.
3793 * mi/mi-cmd-var.c (varobj_update_one): New parameter
3795 (mi_cmd_var_create): Output the 'frozen' field,
3796 as soon as testsuite is adjusted to expect that field.
3797 (mi_cmd_var_set_frozen): New.
3798 (mi_cmd_var_update): Pass the 'explicit' parameter to
3800 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
3801 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
3803 2007-04-13 Paul Brook <paul@codesourcery.com>
3805 * target-descriptions.c (tdesc_named_type): Add ieee_single and
3807 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
3809 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3811 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
3812 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
3813 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
3814 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
3815 * Makefile.in: Remove references to deleted files.
3816 * README: Do not mention deleted ROM monitor interfaces.
3817 * defs.h (enum language): Delete language_scm.
3818 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
3819 (dump_subexp_body_standard): Likewise.
3820 * parse.c (operator_length_standard): Likewise.
3821 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
3822 * remote-mips.c: Do not include remote-utils.h.
3823 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
3825 * value.c: Do not include scm-lang.h.
3826 (unpack_long): Delete scm_unpack call.
3827 * config/h8300/h8300.mt, config/mips/embed.mt,
3828 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
3829 config/sh/embed.mt, config/sh/linux.mt: Remove references to
3831 * NEWS: Mention removed files.
3833 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3835 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
3836 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
3838 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3840 * NEWS: Mention removal of HP aCC support.
3842 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3844 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
3845 first entry for static executables.
3846 (breakpoint_addr): Delete unused variable.
3847 (elf_locate_base): Search for _r_debug in static executables.
3848 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
3851 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3853 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
3854 (bpstat_what, print_one_breakpoint, allocate_bp_location)
3855 (mention): Remove bp_through_sigtramp support.
3856 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
3858 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3860 * breakpoint.c (bpstat_what): Give step-resume higher priority than
3863 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3865 * infrun.c: Doc fixes.
3866 (handle_inferior_event): Clarify debug message.
3867 (insert_step_resume_breakpoint_at_sal): Print a debug message.
3869 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3871 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
3873 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3875 * config/m68k/tm-monitor.h: Delete file.
3876 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3877 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3879 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3880 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3882 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
3884 * gdbarch.sh (software_single_step): Change the return type
3885 from void to int and reformatted some comments to <= 80
3887 * gdbarch.c, gdbarch.h: Regenerated.
3888 * alpha-tdep.c (alpha_software_single_step): Likewise.
3889 * alpha-tdep.h (alpha_software_single_step): Likewise.
3890 * arm-tdep.c (arm_software_single_step): Likewise.
3891 * cris-tdep.c (cris_software_single_step): Likewise.
3892 * mips-tdep.c (mips_software_single_step): Likewise.
3893 * mips-tdep.h (mips_software_single_step): Likewise.
3894 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3895 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3896 * sparc-tdep.c (sparc_software_single_step): Likewise.
3897 * sparc-tdep.h (sparc_software_single_step): Likewise.
3898 * spu-tdep.c (spu_software_single_step): Likewise.
3899 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3900 and act accordingly.
3902 2007-04-11 Steve Ellcey <sje@cup.hp.com>
3904 * configure.ac (build_warnings): Add -Wno-char-subscripts.
3905 * configure: Regenerate.
3906 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3908 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3910 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3912 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3914 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3916 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3917 distinct on the TYPE_STUB_SUPPORTED debug targets.
3918 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3920 2007-04-11 Joel Brobecker <brobecker@adacore.com>
3922 * sparc-tdep.c (X_RS2): New macro.
3923 (sparc_skip_stack_check): New function.
3924 (sparc_analyze_prologue): Adjust PC past stack probing
3925 sequence if necessary.
3927 2007-04-10 Andreas Schwab <schwab@suse.de>
3929 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3932 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3934 * breakpoint.c (gdb_breakpoint_query): Really return an
3936 (gdb_breakpoint): Likewise.
3937 * thread.c (gdb_list_thread_ids): Likewise.
3938 (gdb_thread_select): Likewise.
3939 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3940 (mi_cmd_thread_list_ids): Remove bogus initialization.
3942 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3944 * Makefile.in (SFILES): Remove hpacc-abi.c.
3945 (COMMON_OBS): Remove hpacc-abi.o.
3946 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3947 (hpacc-abi.o, hpread.o): Delete rules.
3948 * somread.c: Delete extern declarations from hpread.c.
3949 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3950 (som_symfile_finish): Do not call hpread_symfile_finish.
3951 (som_symfile_init): Do not call hpread_symfile_init.
3952 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3953 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3954 * hpacc-abi.c, hpread.c: Deleted.
3956 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3958 * solib-svr4.c (enable_break): Simplify return value.
3959 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3961 2007-04-10 Andreas Schwab <schwab@suse.de>
3963 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3964 l_ld_size, l_next_size, l_prev_size, l_name_size.
3966 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3967 to extract addresses from link map.
3968 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3969 (LM_NEXT): Likewise.
3970 (LM_NAME): Likewise.
3971 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3972 (elf_locate_base): Likewise.
3973 (open_symbol_file_object): Likewise.
3974 (svr4_fetch_objfile_link_map): Likewise.
3975 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3976 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3978 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3979 (svr4_lp64_fetch_link_map_offsets): Likewise.
3981 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3982 removed members. Set l_ld_offset to -1 if not present.
3984 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
3986 Pass stderr of program run with "target remote |"
3988 * serial.c (serial_open): Set error_fd to -1.
3989 * serial.h (struct serial): New field error_fd.
3990 (struct serial_opts): New field avail.
3991 * ser-pipe.c (pipe_open): Create another pair
3992 of sockets. Pass stderr to gdb.
3993 * ser-mingw.c (pipe_windows_open): Pass
3994 PEX_STDERR_TO_PIPE to pex_run. Initialize
3997 (_initialize_ser_windows): Hook pipe_avail.
3998 * ser-base.c (generic_readchar): Check if there's
3999 anything in stderr channel and route that to gdb_stderr.
4001 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
4003 * dbxread.c (read_ofile_symtab): Move current_objfile
4004 clearing to after end_stabs.
4006 2007-04-01 Andreas Schwab <schwab@suse.de>
4008 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
4009 gdbarch instead of current_gdbarch.
4011 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
4013 * varobj.c (varobj_create): Keep varobj value
4014 NULL when evaluating the type.
4016 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
4018 * NEWS: Mention new Windows CE support.
4020 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
4022 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
4023 the obsoletion stanza.
4024 * NEWS: Mention deleted targets.
4026 * config/sh/tm-wince.h: Remove.
4027 * config/sh/wince.mt: Remove.
4028 * config/mips/tm-wince.h: Remove.
4029 * config/mips/wince.mt: Remove.
4032 * wince-stub.c: Remove.
4033 * wince-stub.h: Remove.
4034 * Makefile.in (wince.o): Remove rule.
4035 (wince-stub.o): Likewise.
4037 * mips-tdep.c (mips_next_pc): Make static.
4038 * mips-tdep.h (mips_next_pc): Remove declaration.
4039 * arm-tdep.c (arm_pc_is_thumb): Make static.
4040 (thumb_get_next_pc): Likewise.
4041 (arm_get_next_pc): Likewise.
4042 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
4043 (arm_pc_is_thumb): Likewise.
4044 (thumb_get_next_pc): Likewise.
4045 (arm_get_next_pc): Likewise.
4047 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4049 * MAINTAINERS: Remove d10v entry.
4050 * Makefile.in (SFILES): Remove dwarfread.c.
4051 (COMMON_OBS): Remove dwarfread.o.
4052 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
4053 (remote-est.o, rom68k-rom.o): Delete.
4054 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
4055 target est, target rom68k, and DWARF 1.
4056 * configure.tgt: Mark d10v as removed.
4057 * dwarf2read.c: Doc update.
4058 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
4060 (elf_locate_sections): Do not set them.
4061 (elf_symfile_read): Do not call dwarf_build_psymtabs.
4062 * symfile.h (dwarf_build_psymtabs): Delete prototype.
4063 * config/m68k/monitor.mt (TDEPFILES): Prune.
4064 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
4065 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
4067 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4069 * doublest.c (convert_floatformat_to_doublest): Use
4070 floatformat_classify.
4071 (floatformat_is_nan): Rename to...
4072 (floatformat_classify): ...this. Return more information.
4073 * doublest.h (enum float_kind): New.
4074 (floatformat_is_nan): Replace prototype...
4075 (floatformat_classify): ...with this one.
4076 * valprint.c (print_floating): Use floatformat_classify. Handle
4079 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4081 * README: Mention ISO C library requirement.
4083 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4085 * Makefile.in (SFILES): Remove nlmread.c.
4086 (COMMON_OBS): Remove nlmread.o.
4087 (nlmread.o): Delete rule.
4088 * README: Delete reference to remote-st.c.
4089 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
4090 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
4092 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
4093 (_initialize_i386_tdep): Do not reference them.
4094 * nlmread.c: Delete file.
4095 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
4096 * target.c: Doc update.
4097 * thread.c: Delete commented include.
4098 * config/alpha/tm-alpha.h: Doc update.
4100 2007-03-30 Chris Dearman <chris@mips.com>
4102 * utils.c (string_to_core_addr): Comment typo.
4104 2007-03-30 Chris Dearman <chris@mips.com>
4106 * mips-tdep.c: Comment typo.
4108 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
4110 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
4111 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4112 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4113 * config/powerpc/nm-ppc64-linux.h: Remove file.
4114 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
4115 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
4116 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
4117 * infptrace.c (call_ptrace): Likewise.
4118 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
4119 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
4120 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
4121 (store_register): Likewise.
4123 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4125 * Makefile.in (varobj.o): Add missing dependency.
4127 2007-03-29 Michael Snyder <msnyder@access-company.com>
4129 * MAINTAINERS: Update my email address.
4131 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4133 Add support for exception handling with multiple versions of
4135 * ada-lang.c: Update general comments on how Ada exception catchpoints
4137 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
4138 (__gnat_raise_nodefer_with_msg): Delete.
4139 (ada_unhandled_exception_name_addr_ftype): New type.
4140 (exception_support_info): New type.
4141 (ada_unhandled_exception_name_addr): Add forward declaration.
4142 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4143 (default_exception_support_info): New constant.
4144 (exception_support_info_fallback): Likewise.
4145 (exception_info): New global variable.
4146 (ada_exception_support_info_sniffer): New function.
4147 (ada_executable_changed_observer): Likewise.
4148 (ada_unhandled_exception_name_addr_from_raise): Renamed from
4149 ada_unhandled_exception_name_addr.
4150 (ada_unhandled_exception_name_addr): Reimplement to match the
4151 latest Ada runtime implementation.
4152 (error_breakpoint_runtime_sym_not_found): Delete.
4153 (ada_exception_sym_name): Get the exception sym name from
4154 exception_info rather than hardcoding it.
4155 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
4156 Update error handling.
4157 * Makefile.in (ada-lang.o): Add dependency on observer.h.
4159 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4161 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
4162 (remote-st.o, uw-thread.o): Delete.
4163 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
4164 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4165 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
4166 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
4167 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
4168 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
4169 rs6000-*-lynxos* to an obsoletion stanza.
4170 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4171 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
4172 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
4173 i[34567]86-*-netware*.
4174 * NEWS: Mention deleted targets.
4176 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
4177 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
4178 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
4179 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
4180 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
4181 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
4182 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
4183 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
4184 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
4185 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
4186 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
4187 config/rs6000/tm-rs6000ly.h: Delete files.
4189 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4191 * defs.h (deprecated_registers_changed_hook): Delete declaration.
4192 * interps.c (clear_interpreter_hooks): Do not clear
4193 deprecated_registers_changed_hook.
4194 * regcache.c (registers_changed): Do not call it.
4195 * top.c (deprecated_registers_changed_hook): Do not define it.
4196 * mi/mi-interp.c (mi_command_loop): Do not clear it.
4197 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
4198 (tui_remove_hooks): Do not remove it.
4199 (tui_selected_frame_level_changed_hook): Check for negative level.
4200 Use get_selected_frame.
4201 (tui_registers_changed_hook): Deleted.
4203 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4205 * stabsread.c (add_undefined_type): Add extra parameter.
4206 Now handles nameless types separately.
4207 (struct nat): New type.
4208 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
4209 New static variables.
4210 (read_type): Update calls to add_undefined_type.
4211 (add_undefined_type_noname): New function.
4212 (add_undefined_type_1): Renames from add_undefined_type.
4213 (cleanup_undefined_types_noname): New function.
4214 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
4215 (cleanup_undefined_types): New handles nameless types separately.
4216 (_initialize_stabsread): Initialize our new static constants.
4218 2007-03-29 Denis Pilat <denis.pilat@st.com>
4220 * configure.ac: Test for signal.h.
4221 * configure, config.in: Regenerate.
4223 2007-03-29 Denis Pilat <denis.pilat@st.com>
4225 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
4226 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
4228 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
4230 * arm-wince-tdep.c: New.
4231 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
4232 (MT_CFLAGS): Delete.
4234 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
4235 solib-legacy.o, solib-svr4.o, and remove wince.o.
4236 * configure.tgt (arm*-*-mingw32ce*): Add.
4237 * signals/signals.c [HAVE_SIGNAL_H]: Check.
4238 (do_target_signal_to_host): Silence 'not used' warning.
4239 * config/arm/tm-wince.h: Remove.
4241 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
4243 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
4244 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
4246 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
4247 * config/ia64/tm-linux.h: Remove file.
4248 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
4249 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
4250 legacy_pc_in_sigtramp.
4251 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
4252 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
4253 Remove func_name argument.
4254 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
4256 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
4257 * target.c (update_current_target): Add to_have_steppable_watchpoint.
4258 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
4259 (HAVE_STEPPABLE_WATCHPOINT): Define.
4261 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
4262 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
4263 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
4264 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
4265 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
4266 target_insert_watchpoint, target_remove_watchpoint): Remove.
4267 (FETCH_INFERIOR_REGISTERS): Define.
4268 * ia64-linux-nat.c (ia64_register_addr): Make static.
4269 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
4270 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
4271 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
4272 (ia64_linux_stopped_data_address): Make static. Add target_ops.
4273 (ia64_linux_stopped_by_watchpoint): Make static.
4274 (ia64_linux_can_use_hw_breakpoint): New function.
4275 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
4276 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
4277 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
4279 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
4281 * linespec.c: Include language.h.
4282 (find_methods): Add language parameter. Call
4283 lookup_symbol_in_language. Pass language down.
4284 (add_matching_methods): Likewise. Call
4285 lookup_symbol_in_language.
4286 (add_constructors): Likewise.
4287 (find_method): Pass sym_class to collect_methods.
4288 (collect_methods): Add sym_class parameter. Pass language
4290 * symtab.c (lookup_symbol): Rename to ...
4291 (lookup_symbol_in_language): ... this. Add language
4292 parameter. Use passed language instead of current_language.
4293 (lookup_symbol): New as wrapper around
4294 lookup_symbol_in_language.
4295 (lookup_symbol_aux): Add language parameter. Use passed
4296 language instead of current_language.
4297 (search_symbols): Indent.
4298 * symtab.h (enum language): Forward declare.
4299 (lookup_symbol_in_language): Declare.
4300 (lookup_symbol): Update description.
4301 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
4302 * ada-lang.c (restore_language): Remove.
4303 (lookup_symbol_in_language): Remove.
4305 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
4307 * breakpoint.c (bpstat_num): Add int *num parameter.
4308 * breakpoint.h (bpstat_num): Likewise.
4309 * infcmd.c (continue_command): Adjust to new bpstat_num
4311 (program_info): Likewise.
4313 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4315 * config/sh/tm-sh.h: Remove file.
4316 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
4317 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
4318 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4319 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
4321 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4323 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
4324 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
4325 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
4326 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
4327 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
4328 sequence if target_shortname is "remote".
4330 2007-03-27 Anton Blanchard <anton@samba.org>
4332 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
4333 instead of wordsize when looking for the LR in a stack frame.
4335 2007-03-27 Andreas Schwab <schwab@suse.de>
4336 Daniel Jacobowitz <dan@codesourcery.com>
4338 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
4339 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
4340 argument. Update all callers.
4341 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
4342 (dwarf2_frame_set_eh_frame_regnum): Rename to...
4343 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
4344 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
4345 (dwarf2_frame_set_adjust_regnum): ...this.
4346 (dwarf2_frame_eh_frame_regnum): Delete prototype.
4347 * rs6000-tdep.c: Include "dwarf2-frame.h".
4348 (rs6000_adjust_frame_regnum): Define.
4349 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
4350 Register rs6000_adjust_frame_regnum.
4352 * Makefile.in (rs6000-tdep.o): Update dependencies.
4354 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
4356 * Makefile.in: Add support for a "pdf" target.
4358 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
4360 * amd64-tdep.c (amd64_init_frame_cache): New function.
4361 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
4363 2007-03-26 Nigel Stephens <nigel@mips.com>
4364 Maciej W. Rozycki <macro@mips.com>
4366 * ui-out.c (ui_out_field_core_addr): Truncate address to
4367 TARGET_ADDR_BIT size before printing.
4369 2007-03-22 Nigel Stephens <nigel@mips.com>
4370 Maciej W. Rozycki <macro@mips.com>
4372 * remote-mips.c (mips_xfer_memory): Update prototype.
4374 2007-03-22 Joel Brobecker <brobecker@adacore.com>
4376 * symfile.h: #include "symtab.h"
4378 2007-03-22 Denis Pilat <denis.pilat@st.com>
4380 * utils.c (pagination_on_command, pagination_off_command):
4381 Remove useless prototypes.
4383 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
4386 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
4387 instead of TYPE_NAME for object base class name.
4390 2007-03-19 Kevin Buettner <kevinb@redhat.com>
4392 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
4393 Specify frame type in calls to frame_func_unwind().
4395 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
4397 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
4398 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
4399 (refine_prologue_limit): Delete.
4400 (skip_prologue): Don't call it. Use extract_unsigned_integer.
4401 Assume lim_pc is set. Correct check for incomplete prologues.
4402 Do not skip clobbers of the frame pointer.
4403 * symtab.c (skip_prologue_using_sal): Fail if there is only one
4406 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
4408 * frame.c (frame_pop): Check to see whether there's a frame to
4409 which we can pop first.
4411 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
4413 * MAINTAINERS (Write After Approval): Add myself.
4415 2007-03-09 Markus Deuling <deuling@de.ibm.com>
4417 * infrun.c (breakpoints_failed): Remove unnecessary variable.
4418 (handle_inferior_event): Remove unnecessary braces.
4419 * breakpoint.c (bpstat_what): Remove wrong comment.
4421 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
4423 * spu-tdep.c (spu_in_function_epilogue_p): New function.
4424 (spu_gdbarch_init): Install it.
4426 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4428 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
4429 object types, not 0.
4431 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4433 * spu-tdep.c (spu_frame_align): New function.
4434 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
4436 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4438 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
4439 (spu_software_single_step): Likewise.
4440 (spu_read_pc, spu_write_pc): New functions.
4441 (spu_gdbarch_init): Install them.
4443 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4445 * cli/cli-dump.c (struct callback_data): load_offset needs to
4446 have signed long type.
4448 2007-03-07 Joel Brobecker <brobecker@adacore.com>
4450 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
4451 Revert the previous change that had some unexpected side-effects
4453 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
4454 function to get the address of the calling instruction.
4456 2007-03-07 Denis Pilat <denis.pilat@st.com>
4458 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
4459 get_selected_frame by deprecated_safe_get_selected_frame.
4461 2007-03-02 Mark Kettenis <kettenis@gnu.org>
4463 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
4464 "gdb_string.h". Don't include "nbsd-tdep.h".
4465 (SIZEOF_STRUCT_REG): Remove.
4466 (SHNBSD_SIZEOF_GREGS): New.
4467 (shnbsd_supply_gregset, shnbsd_collect_gregset)
4468 (shnbsd_regset_from_core_section): New functions.
4469 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
4470 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
4471 shnbsd_supply_gregset, shnbsd_collect_gregset.
4472 (shnbsd_gregset): New variable.
4473 (shnbsd_init_abi): Set regset_from_core_section.
4474 (GDB_OSABI_NETBSD_CORE): New define.
4475 (shnbsd_core_osabi_sniffer): New function.
4476 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
4477 * Makefile.in (shnbsd-tdep.o): Update dependencies.
4478 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
4480 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
4482 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4484 * gdbtypes.c (replace_type): Fix typo that caused us to not update
4485 length of the types referenced by the new type CV ring.
4487 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4489 * frame.c (frame_pop, frame_observer_target_changed): Call
4491 (flush_cached_frames): Rename to reinit_frame_cache and delete
4493 * frame.h (flush_cached_frames): Delete prototype and update comment.
4495 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
4496 reinit_frame_cache instead of flush_cached_frames. Do not call
4497 select_frame after reinit_frame_cache.
4498 * corelow.c (core_open): Likewise.
4499 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
4500 * infrun.c (prepare_to_proceed, context_switch)
4501 (handle_inferior_event): Likewise.
4502 * linux-fork.c (fork_load_infrun_state): Likewise.
4503 * ocd.c (ocd_start_remote): Likewise.
4504 * remote-e7000.c (e7000_start_remote): Likewise.
4505 * remote-mips.c (device): Likewise.
4506 * thread.c (switch_to_thread): Likewise.
4507 * tracepoint.c (finish_tfind_command): Likewise.
4508 * gdbarch.c: Regenerated.
4510 2007-02-28 Jerome Guitton <guitton@adacore.com>
4511 Joel Brobecker <brobecker@adacore.com>
4513 * gdbtypes.c (check_typedef): Do not replace stub type if
4514 the resolved type is not defined in the same objfile.
4516 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4518 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
4520 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4522 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
4523 symbol for Ada units when the symbol is defined using 't' rather
4524 than 'Tt' as symbol descriptor.
4526 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4528 * config/mips/tm-nbsd.h: Delete file.
4529 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4530 * config/sh/tm-nbsd.h: Delete file.
4531 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
4533 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4535 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
4536 unused WRONG_PARAM value since it was recently deleted.
4538 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
4540 * varobj.c (varobj_update): Free temporary vectors.
4542 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4544 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
4545 * config/powerpc/tm-linux.h: Delete file.
4546 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
4547 (PROCESS_LINENUMBER_HOOK): Do not undefine.
4548 (TEXT_SEGMENT_BASE): Do not redefine.
4549 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
4550 from config/rs6000/tm-rs6000.h.
4551 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4552 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
4553 (TEXT_SEGMENT_BASE): Remove.
4554 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
4555 (rs6000_in_solib_return_trampoline): Remove.
4556 (SKIP_TRAMPOLINE_CODE): Remove.
4557 (rs6000_skip_trampoline_code): Remove.
4558 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
4559 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4560 (FP0_REGNUM): Remove.
4561 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
4562 (rs6000_set_host_arch_hook): Remove.
4563 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
4564 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
4565 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
4566 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
4567 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
4568 * rs6000-nat.c: Include "rs6000-tdep.h".
4569 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
4570 (set_host_arch): Rename to ...
4571 (rs6000_create_inferior): ... this. Make public.
4572 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
4573 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
4574 (rs6000_create_inferior): Remove.
4575 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
4576 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
4577 set_gdbarch_in_solib_return_trampoline, and
4578 set_gdbarch_skip_trampoline_code.
4579 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
4580 from config/rs6000/tm-rs6000.h.
4582 2007-02-27 Joel Brobecker <brobecker@adacore.com>
4584 * buildsym.c (record_producer): Do nothing if no producer is provided.
4586 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
4588 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
4589 to check changelist is non-NULL. Call error if the frontend tries
4590 to update a non-root variable.
4592 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
4594 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4596 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
4597 (dwarf2_frame_sniffer): Update.
4598 (dwarf2_signal_frame_this_id): New function.
4599 (dwarf2_signal_frame_unwind): Use it.
4600 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
4601 * frame.c (frame_func_unwind): Add this_type argument.
4602 (get_frame_func): Update.
4603 (frame_unwind_address_in_block): Add this_type argument and check it.
4605 (get_frame_address_in_block): Update.
4606 * frame.h (enum frame_type): Move higher in the file.
4607 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
4610 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
4611 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
4612 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
4613 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
4614 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
4615 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
4616 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
4617 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
4618 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
4619 frame_func_unwind and frame_unwind_address_in_block to specify
4620 the frame type. Use frame_unwind_address_in_block instead of
4621 frame_pc_unwind in sniffers.
4623 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4625 * frame.c (deprecated_selected_frame): Rename to...
4626 (selected_frame): ...this. Make static.
4627 (get_selected_frame, select_frame): Update.
4628 * frame.h (deprected_select_frame): Delete.
4629 (deprecated_safe_get_selected_frame): Update comments.
4631 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
4632 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
4633 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
4634 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
4635 tui/tui.c: Replace references to deprecated_selected_frame.
4637 2007-02-27 Fred Fish <fnf@specifix.com>
4639 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
4640 directly decrement the stack pointer, accumulate their operand into
4641 the stack offset, and mark the function as not being frameless.
4643 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4645 * arch-utils.c (selected_byte_order): New.
4646 * arch-utils.h (selected_byte_order): New prototype.
4647 * remote-sim.c (gdbsim_open): Use selected_byte_order.
4649 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4651 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
4652 (default_symfile_offsets): Check VMA here. Update section VMAs.
4654 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4656 * remote.c (init_remote_state): Add special handling for placeholder
4659 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4661 * Makefile.in (XMLFILES): Include $(TDEP_XML).
4662 (filenames_h): New variable.
4663 (clean): Clean up xml-builtin.c and stamp-xml.
4664 (arm-linux-nat.o): Update.
4665 * config/arm/linux.mh (TDEP_XML): Define.
4666 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
4667 (arm_linux_has_wmmx_registers): New.
4668 (GET_THREAD_ID): Fix typo.
4669 (IWMMXT_REGS_SIZE): Define.
4670 (fetch_wmmx_regs, store_wmmx_regs): New.
4671 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
4672 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
4673 (super_xfer_partial, arm_linux_xfer_partial): New.
4674 (_initialize_arm_linux_nat): Use them.
4675 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
4676 (xml_builtin_xfer_partial): New function.
4677 * xml-support.h (xml_builtin_xfer_partial): New prototype.
4678 * NEWS: Update mention of iWMMXt support.
4680 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4682 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
4683 if there are no FPA registers.
4684 (arm_dwarf_reg_to_regnum): New function.
4685 (arm_register_type, arm_register_name): Return minimal values for
4686 unsupported registers.
4687 (arm_register_sim_regno): Handle iWMMXt registers.
4688 (arm_gdbarch_init): Record missing FPA registers if indicated by
4689 a target description. Recognize iWMMXt registers. Only register
4690 "info float" for FPA. Use ARM_NUM_REGS. Register
4691 arm_dwarf_reg_to_regnum.
4692 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
4694 (struct gdbarch_tdep): Add have_fpa_registers.
4695 * features/xscale-iwmmxt.xml: Update capitalization.
4696 * regformats/arm-with-iwmmxt.dat: Regenerated.
4698 2007-02-24 Kevin Buettner <kevinb@redhat.com>
4700 * NEWS (New targets): Add entry for the Toshiba Media Processor.
4702 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4704 * MAINTAINERS (mep): New target.
4706 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4708 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
4710 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
4711 (mep-tdep.o): New rule.
4712 * configure.tgt (mep-*-*): New target.
4713 * mep-tdep.c: New file.
4714 * config/mep/mep.mt: New file.
4716 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4718 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
4719 BREAKPOINT_HIT and STOP_UNKNOWN.
4721 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4723 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
4725 2007-02-20 Joel Brobecker <brobecker@adacore.com>
4727 * gdb_expat.h (XMLCALL): Define if not already defined.
4729 2007-02-20 Andreas Schwab <schwab@suse.de>
4731 * Makefile.in (symfile.o): Update dependencies.
4733 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4735 * MAINTAINERS: Disable -Werror for cris simulator. Build
4736 sparc64-solaris2.10 instead of the broken sparc-elf.
4737 * solib-frv.c: Include "solib.h".
4738 * Makefile.in (solib-frv.o): Update.
4739 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
4740 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
4741 (xtensa_frame_this_id, xtensa_frame_prev_register)
4742 (xtensa_push_dummy_call): Use %p.
4744 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4746 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4747 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
4748 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4749 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
4750 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
4751 (sparc-linux-tdep.o): Update.
4753 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
4755 * xtensa-tdep.h (xtensa_reg_mask_t): New.
4756 (xtensa_mask_t): Change mask field to be a separate array.
4757 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
4758 (xtensa_pseudo_register_write, xtensa_unwind_pc)
4759 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
4760 (xtensa_breakpoint_from_pc): Remove implicit type casting.
4761 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
4762 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
4763 (mask14, mask15): Rename to
4764 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
4765 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
4766 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
4767 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
4768 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
4769 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
4770 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
4771 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
4772 (xtensa_submask14, xtensa_submask15): New.
4773 (rmap): Follow strict aliasing rules doing static initialization.
4775 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
4777 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
4778 handling from here...
4779 (tdesc_register_type): ...to here.
4780 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
4781 * features/arm-core.xml: Use code_ptr and data_ptr.
4783 2007-02-13 Denis Pilat <denis.pilat@st.com>
4785 * varobj.h (enum varobj_update_error): New enum.
4786 * varobj.c (struct varobj_root): Add is_valid member.
4787 (varobj_get_type): Check for invalid varobj.
4788 (varobj_get_attributes): Likewise.
4789 (variable_editable):Likewise.
4790 (varobj_update): Likewise. Use varobj_update_error.
4791 (new_root_variable): Set root varobj as valid by default.
4792 (varobj_invalidate): New function.
4793 * symfile.c (clear_symtab_users): Use varobj_invalidate.
4794 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
4795 Use varobj_update_error.
4797 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
4800 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
4801 Pascal language marker.
4802 * dwarf2read.c (set_cu_language): Likewise.
4804 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
4806 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
4807 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
4808 instead of target_terminal_init since inferior_ptid isn't set yet.
4810 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
4812 * MAINTAINERS (Write After Approval): Add myself.
4814 2007-02-09 Fred Fish <fnf@specifix.com>
4816 Based on work by Apple Computer, Inc.
4817 * event-top.c (async_request_quit): Call quit() whenever either
4818 quit_flag is set or immediate_quit is set.
4820 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4822 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
4823 type to a pointer to const struct block.
4824 (ada_lookup_symbol_list): Don't cast away constness when calling
4825 remove_out_of_scope_renamings.
4827 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4829 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
4830 address of 'filename'; it is always non null.
4832 2007-02-09 Joel Brobecker <brobecker@adacore.com>
4834 * exec.c (add_to_section_table): Do not discard empty sections.
4836 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4838 * features/Makefile, features/arm-with-iwmmxt.xml,
4839 features/gdbserver-regs.xsl, features/number-regs.xsl,
4840 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
4841 * regformats/arm-with-iwmmxt.dat: Generate.
4842 * NEWS: Mention iWMMXt.
4844 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4846 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
4847 (xml-tdesc.o): Update.
4848 * xml-support.c: Add a comment.
4849 (gdb_xml_enums_boolean): New variable.
4850 (gdb_xml_parse_attr_enum): Use strcasecmp.
4851 * xml-support.h (gdb_xml_enums_boolean): Declare.
4852 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
4853 next_regnum, and current_union.
4854 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
4855 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
4856 (field_attributes, union_children, reg_attributes, union_attributes)
4857 (vector_attributes, feature_attributes, feature_children): New.
4858 (target_children): Make static. Add <feature>.
4859 (tdesc_elements): Make static.
4860 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
4861 (struct tdesc_feature, tdesc_feature_p): New types.
4862 (struct target_desc): Add features member.
4863 (struct tdesc_arch_data, tdesc_data): New.
4864 (target_find_description): Clarify error message. Warn about
4865 ignored register descriptions.
4866 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4867 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
4868 (tdesc_data_cleanup, tdesc_numbered_register)
4869 (tdesc_numbered_register_choices, tdesc_find_register)
4870 (tdesc_register_name, tdesc_register_type)
4871 (tdesc_remote_register_number, tdesc_register_reggroup_p)
4872 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
4873 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
4874 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
4875 (tdesc_create_feature, tdesc_record_type): New.
4876 (free_target_description): Free features.
4877 (_initialize_target_descriptions): Initialize tdesc_data.
4878 * arch-utils.c (default_remote_register_number): New.
4879 * arch-utils.h (default_remote_register_number): New prototype.
4880 * target-descriptions.h (set_tdesc_pseudo_register_name)
4881 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4882 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4883 (tdesc_numbered_register, tdesc_numbered_register_choices)
4884 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4885 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4886 (tdesc_create_reg): Declare.
4887 * gdbarch.sh (remote_register_number): New entry.
4888 * gdbarch.c, gdbarch.h: Regenerate.
4889 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4890 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4892 * arm-tdep.c (arm_register_aliases): New.
4893 (arm_register_name_strings): Rename to...
4894 (arm_register_names): ...this. Make const. Delete the old version.
4895 (current_option, arm_register_byte): Delete.
4896 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
4897 (value_of_arm_user_reg): New.
4898 (arm_gdbarch_init): Verify any described registers. Call
4899 tdesc_use_registers. Don't use arm_register_byte. Create aliases
4900 for standard register names.
4901 (_initialize_arm_tdep): Do not adjust arm_register_names.
4902 * user-regs.c (struct user_reg): Add baton member.
4903 (append_user_reg, user_reg_add_builtin, user_regs_init)
4904 (user_reg_add, value_of_user_reg): Use a baton for user
4906 * std-regs.c: Update.
4907 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4908 (user_reg_add): Add baton argument.
4909 * NEWS: Mention target description register support.
4910 * features/arm-core.xml, features/arm-fpa.xml: New.
4911 * eval.c (evaluate_subexp_standard): Allow ptype $register
4912 when the program is not running.
4914 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
4916 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
4918 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
4920 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4921 info->disassembler_options to "any".
4923 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4925 * varobj.c (install_new_value): Only call value_get_print_value
4928 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4930 Reported by timeless@gmail.com:
4931 * gdb/target.c (target_flash_erase): Do not return void value.
4932 (target_flash_done): Likewise.
4933 * gdb/cli/cli-cmds.c (source_command): Likewise.
4935 2007-02-08 Fred Fish <fnf@specifix.com>
4937 Based on work by Apple Computer, Inc.
4938 * event-top.c (handle_sigint): Set quit_flag.
4939 (async_request_quit): Don't set quit_flag. Avoid calling quit()
4940 if quit_flag has already been reset.
4942 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4944 * ser-mingw.c (pipe_windows_close): Move variable initialization back
4947 2007-02-08 Fred Fish <fnf@specifix.com>
4949 * defs.h (request_quit): Remove declaration.
4950 * utils.c (request_quit): Remove definition.
4952 2007-02-08 Joel Brobecker <brobecker@gnat.com>
4953 Jan Kratochvil <jan.kratochvil@redhat.com>
4954 Daniel Jacobowitz <dan@codesourcery.com>
4956 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4957 (skip_prologue): Allow bl->blrl used by PIC code.
4959 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4960 Daniel Jacobowitz <dan@codesourcery.com>
4962 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4963 initialize tmp_obstack.
4964 * p-valprint.c (pascal_object_print_value_fields)
4965 (pascal_object_print_value): Likewise.
4967 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4969 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4971 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4973 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4974 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4976 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4978 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4980 (tdesc_parse_xml): Cache expanded descriptions.
4982 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4984 * Makefile.in (XMLFILES): New.
4985 (COMMON_OBS): Add xml-builtin.o.
4986 (xml-builtin.c, stamp-xml): New rules.
4987 (xml-tdesc.o): Update.
4988 * features/feature_to_c.sh: New file.
4989 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4990 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4991 (gdb_xml_start_element): Initialize scope after possibly reallocating
4992 scopes. Move cleanup later. Handle the XInclude description
4994 (gdb_xml_end_element): Only parse the body if there is a current element.
4995 Call XML_DefaultCurrent if there is no element.
4996 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4997 (struct xinclude_parsing_data, xinclude_start_include)
4998 (xinclude_end_include, xml_xinclude_default)
4999 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
5000 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
5001 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
5002 * xml-support.h (xml_fetch_another, xml_process_xincludes)
5003 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
5004 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
5005 XInclude directives. Use the compiled in DTD.
5006 (fetch_xml_from_file): Add baton argument. Treat it as a containing
5007 directory name. Do not warn here.
5008 (file_read_description_xml): Update call. Warn here instead. Pass
5010 (fetch_available_features_from_target): New.
5011 (target_read_description_xml): Use it.
5012 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
5014 * features/xinclude.dtd: New file.
5016 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5018 * linux-thread-db.c (check_for_thread_db): Return early if we have
5019 no libthread_db support.
5021 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5023 * mi/mi-parse.h: Include <sys/time.h>.
5025 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
5027 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
5028 instead of print_variable_value to print values.
5030 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5032 * mi/mi-main.c: Numerous formatting changes.
5033 (mi_cmd_data_write_register_values): Replace clause inadvertantly
5034 removed in my previous change.
5036 2007-02-03 Eli Zaretskii <eliz@gnu.org>
5038 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
5039 Use 1000000L instead of 1000000.
5041 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5043 Based on work by Apple Computer, Inc.
5045 * configure.ac: Test for sys/resource.h and getrusage.
5046 * configure, config.in: Regenerate.
5048 * mi/mi-main.c: Include <sys/resource.h> if present.
5049 (rusage): Declare if HAVE_GETRUSAGE.
5050 (current_command_ts, do_timings): New static variables.
5051 (timestamp, print_diff_now, print_diff, timeval_diff):
5052 New static timing functions.
5053 (mi_cmd_enable_timings): New function for new MI command.
5054 (captured_mi_execute_command, mi_execute_async_cli_command):
5055 Call timing functions.
5057 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
5060 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
5062 * mi/mi-parse.h: (mi_timestamp): New structure.
5063 (mi_parse): Add mi_timestamp* member.
5065 2007-02-02 Denis Pilat <denis.pilat@st.com>
5067 * thread.c (make_cleanup_restore_current_thread): New function.
5068 (info_threads_command): Use of make_cleanup_restore_current_thread
5069 to restore the current thread and the selected frame.
5070 (restore_selected_frame): New function.
5071 (struct current_thread_cleanup): Add frame_id field.
5072 (do_restore_current_thread_cleanup): Add restoring of the selected
5074 (make_cleanup_restore_current_thread): Likewise.
5075 (thread_apply_all_command): backup the selected frame while
5076 entering the function and restore it at exit.
5077 (thread_apply_command): Likewise.
5079 2007-02-02 Denis Pilat <denis.pilat@st.com>
5081 * MAINTAINERS (Write After Approval): Add myself to the list.
5083 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5085 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
5086 (m32r_store_register): Ditto.
5088 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
5090 * ser-mingw.c (pipe_windows_open)
5091 (pipe_windows_read, pipe_windows_write): Declare
5092 variables at the top of the function.
5094 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5096 * doublest.c (floatformat_from_length): Use the right element from
5097 gdbarch floatformats.
5098 (floatformat_from_type, extract_typed_floating)
5099 (store_typed_floating): Likewise.
5100 * doublest.h: Remove declarations for undefined floatformat arrays.
5101 * gdbarch.sh (float_format, double_format, long_double_format): Change
5103 (pformat): Update for pairs.
5104 * gdbarch.c, gdbarch.h: Regenerated.
5105 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
5106 (floatformats_ieee_double_littlebyte_bigword)
5107 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
5108 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
5109 (floatformats_vax_d): New variables.
5110 (builtin_type_ieee_single, builtin_type_ieee_double)
5111 (builtin_type_arm_ext, builtin_type_ia64_spill)
5112 (builtin_type_ia64_quad): Replace arrays with individual types.
5113 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
5114 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
5115 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
5116 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
5117 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
5118 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
5119 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
5120 unused and endian-specific types.
5121 (recursive_dump_type): Update for floatformat pairs.
5122 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
5123 (build_gdbtypes): Use build_flt.
5124 (_initialize_gdbtypes): Update set of initialized types.
5125 * gdbtypes.h: Update declarations to match gdbtypes.c.
5126 (struct main_type): Store a pointer to two floatformats.
5127 * arch-utils.c (default_float_format, default_double_format): Delete.
5128 * arch-utils.h (default_float_format, default_double_format): Delete.
5130 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5131 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
5132 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
5133 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
5134 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
5136 2007-01-29 Joel Brobecker <brobecker@adacore.com>
5138 * target.c (maintenance_print_target_stack): New function.
5139 (initialize_targets): Add new "maintenance print target-stack"
5142 2007-01-28 Mark Kettenis <kettenis@gnu.org>
5144 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
5146 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
5148 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
5149 (struct dwarf2_loclist_baton): Likewise.
5151 2007-01-27 Eli Zaretskii <eliz@gnu.org>
5153 * cli/cli-script.c: Include breakpoint.h.
5154 (build_command_line): Require arguments only for if and while
5156 (get_command_line, execute_user_command, execute_control_command):
5157 Fix wording of warning messages.
5158 (print_command_lines): Print breakpoint commands.
5159 (execute_control_command): Call commands_from_control_command to
5160 handle the `commands' command inside a body of a flow-control
5162 (read_next_line): Recognize the `commands' command and build a
5163 command line structure for it.
5164 (recurse_read_control_structure, read_command_lines): Handle
5165 `commands' similarly to `if' and `while'.
5167 * breakpoint.c (get_number_trailer): Document the special meaning
5168 of NULL as the first argument PP.
5169 (commands_from_control_command): New function.
5171 * breakpoint.h (commands_from_control_command): Add prototype.
5173 * defs.h (commands_control): New enumerated value for enum
5174 command_control_type.
5176 2007-01-26 Joel Brobecker <brobecker@adacore.com>
5178 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
5179 (ada_exception_sal): Update accordingly.
5181 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5183 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
5184 * NEWS: Describe CHAR array vs. string identifcation rules.
5186 2007-01-25 Paul Brook <paul@codesourcery.com>
5188 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
5190 2007-01-24 Jim Blandy <jimb@codesourcery.com>
5192 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
5193 expression is empty, bother to return the 'optimized out' value we
5194 construct. (Thanks to Carl Burch.)
5196 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5198 * varobj.c (c_value_of_root, c_value_of_child)
5199 (cplus_describe_child): Don't call release_value.
5201 2007-01-24 Thiemo Seufer <ths@mips.com>
5203 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
5206 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5208 Refactor getting children name, value and type access
5210 * varobj.c (get_type_deref): Remove.
5211 (adjust_value_for_child_access): New.
5212 (c_number_of_children): Use the above.
5213 (c_describe_child): Likewise.
5214 (enum accessibility): New.
5215 (match_accessibility): New function.
5216 (cplus_describe_child): New function.
5217 (cplus_name_of_child, cplus_value_of_child)
5218 (cplus_type_of_child): Reimplement in terms
5219 of cplus_describe_child.
5220 (cplus_number_of_children): Use
5221 adjust_value_for_child_access.
5223 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5225 Fix computation of the 'editable' attribute and
5226 value changeability for for references.
5227 * varobj.c (get_value_type): New function.
5228 (c_variable_editable): Use get_value_type.
5229 (varobj_value_is_changeable): Likewise.
5231 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5233 * source.c (find_and_open_source): Try rewriting the source
5234 path inside filename if dirname is NULL.
5236 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5238 * dwarf2read.c (add_partial_symbol): Create an extra partial
5239 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
5240 (new_symbol): Likewise for symbols.
5242 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
5244 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
5246 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
5248 * value.c (value_primitive_field): Copy the full 'location'
5249 contents, instead of assuming that copying ADDRESS will
5250 bring over everything in the union. Remove obsolete comment.
5252 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
5254 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
5255 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
5256 (m32c_m16c_pointer_to_address): Separate code from declarations.
5258 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
5260 * target.c (update_current_target): Correct typo.
5262 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
5264 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
5267 2007-01-11 Andrew Cagney <cagney@redhat.com>
5268 Daniel Jacobowitz <dan@codesourcery.com>
5269 Jan Kratochvil <jan.kratochvil@redhat.com>
5271 * dwarf2-frame.c (execute_cfa_program): New support of
5272 `DW_CFA_GNU_negative_offset_extended'.
5274 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5276 * NEWS: Mention flash support for "load" and new remote packets.
5278 2007-01-21 Markus Deuling <deuling@de.ibm.com>
5280 * breakpoint.c (delete_command): Skip redundant loop iterations.
5282 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5284 * gdbarch.sh (register_type): Update comment.
5285 * gdbarch.h: Regenerated.
5286 * arch-utils.c (generic_register_size): Call register_type.
5287 * ia64-tdep.c (ia64_extract_return_value): Likewise.
5288 * m32c-tdep.c (check_for_saved): Likewise.
5289 * mips-tdep.c (mips_print_register, print_gp_register_row)
5290 (mips_print_registers_info): Likewise.
5291 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
5293 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
5294 (sh64_do_register, sh64_print_register)
5295 (sh64_media_print_registers_info): Likewise.
5296 * tui/tui-regs.c (tui_register_format): Likewise.
5298 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5300 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
5302 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
5303 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
5304 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
5305 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5306 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
5307 (make_symbol_completion_list): Likewise.
5309 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5310 Daniel Jacobowitz <dan@codesourcery.com>
5312 * buildsym.c (end_symtab): Use preallocated symtab if available.
5313 Fill in SYMBOL_SYMTAB.
5314 * buildsym.h (struct subfile): Add symtab member.
5315 * dwarf2read.c (struct dwarf2_cu): Add line_header.
5316 (struct file_entry): Add symtab.
5317 (free_cu_line_header): New function.
5318 (read_file_scope): Use it. Save line_header in the cu. Process
5320 (add_file_name): Initialize new symtab member.
5321 (dwarf_decode_lines): Create symtabs for included files.
5322 (new_symbol): Set SYMBOL_SYMTAB.
5323 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
5324 (search_symbols): Likewise.
5325 * symtab.h (struct symbol): Add symtab member.
5326 (SYMBOL_SYMTAB): Define.
5328 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5330 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
5332 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5334 * arch-utils.c (show_endian): Correct reversed condition.
5336 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5338 * MAINTAINERS (Write After Approval): Add myself.
5340 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
5341 Vladimir Prus <vladimir@codesourcery.com>
5343 Fix 'selected frame' varobjs.
5344 * varobj.c (struct varobj): Remove the error field.
5345 (varobj_set_value): Don't check var->error.
5346 (install_new_value): Don't set var->error.
5347 (varobj_update): Always pass the new value
5348 of the root via install_new_value.
5349 (create_child): Don't set error field.
5350 (new_variable): Likewise.
5351 (c_value_of_root): Always reevaluate the value
5352 of selected frame varobjs in the selected frame.
5353 Don't call reinit_frame_cache.
5355 2007-01-15 Joel Brobecker <brobecker@adacore.com>
5357 * source.c (_initialize_source): Improve the help text of
5358 the substitute-path commands.
5360 2007-01-14 Mark Kettenis <kettenis@gnu.org>
5362 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
5363 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
5364 (frv_skip_prologue): Remove prototypes.
5365 (frv_adjust_breakpoint_address): Renamed from
5366 frv_gdbarch_adjust_breakpoint_address.
5367 (frv_gdbarch_init): Adjust.
5369 2007-01-13 Mark Kettenis <kettenis@gnu.org>
5371 * gdbarch.sh (deprecated_extract_return_value)
5372 (deprecated_store_return_value): Remove.
5373 (extract_return_value, store_return_value): Remove default values.
5374 * gdbarch.c, gdbarch.h: Regenerate.
5375 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
5376 (legacy_store_return_value): Remove.
5377 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
5380 * mi/mi-main.c: Remove obsolete comment.
5382 * regcache.c, regcache.h (deprecated_register_bytes)
5383 (deprecated_read_register_bytes)
5384 (deprecated_write_register_bytes): Remove.
5386 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
5387 Don't forget to move destination pointer.
5389 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5391 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
5393 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
5395 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
5396 past entry function with recent newlib.
5398 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
5400 * gdb.texinfo (GDB/MI Variable Objects): Improve the
5401 introduction. Specify -var-update more exactly.
5403 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
5405 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
5407 2007-01-10 Jim Blandy <jimb@codesourcery.com>
5409 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
5410 the Global Maintainers' invitation to be a global maintainer.
5412 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
5414 * infrun.c (singlestep_pc): New variable.
5415 (resume): Set singlestep_pc.
5416 (context_switch): Add a debugging message. Flush the frame cache.
5417 (handle_inferior_event): Add debugging messages. Handle thread
5418 hops when a software single step has completed. Let context_switch
5419 handle flushing the frame cache.
5421 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5423 * NEWS: Mention target descriptions, "set tdesc filename",
5424 "unset tdesc filename", "show tdesc filename", and
5425 qXfer:features:read.
5426 * arch-utils.c (choose_architecture_for_target): New function.
5427 (gdbarch_info_fill): Call it.
5428 * target-descriptions.c (struct property): Make members non-const.
5429 (struct target_desc): Add arch member.
5430 (target_description_filename): New variable.
5431 (target_find_description): Try via XML first.
5432 (tdesc_architecture): New.
5433 (free_target_description, make_cleanup_free_target_description): New.
5434 (set_tdesc_property): Call xstrdup.
5435 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
5436 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
5437 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
5438 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
5439 * target-descriptions.h (tdesc_architecture)
5440 (make_cleanup_free_target_description, set_tdesc_architecture): New
5442 * Makefile.in (SFILES): Add xml-tdesc.c.
5443 (COMMON_OBS): Add xml-tdesc.o.
5444 (target-descriptions.o): Update.
5445 (xml-tdesc.o): New rule.
5446 * xml-tdesc.c, xml-tdesc.h: New files.
5447 * remote.c (PACKET_qXfer_features): New enum.
5448 (remote_protocol_features): Add qXfer:features:read.
5449 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
5450 (_initialize_remote): Register qXfer:features:read.
5451 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
5452 * features/gdb-target.dtd: New file.
5454 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5456 * copyright.sh: Clarify error.
5458 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5460 * symtab.c (matching_bfd_sections): Fix VMA matching for
5463 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5465 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
5468 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5470 Updated copyright notices for most files.
5472 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5474 * copyright.sh (prunes): Add step-line.inp and step-line.c.
5476 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5478 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
5480 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
5482 * configure, config.in: Regenerate.
5483 * defs.h (debug_file_directory): Declare.
5484 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
5485 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
5486 relocate it if DEBUGDIR_RELOCATABLE.
5487 * symfile.c (debug_file_directory): Make non-static.
5488 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
5489 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
5490 (_initialize_symfile): Don't initialize debug_file_directory here.
5492 2007-01-09 Jim Blandy <jimb@codesourcery.com>
5494 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
5497 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5499 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
5500 frame_unwind_register to recurse.
5501 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
5502 (alpha_heuristic_frame_prev_register): Likewise.
5503 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
5504 * m32c-tdep.c (m32c_prev_register): Likewise.
5505 * frame.c (frame_register_unwind_location): Remove FIXME.
5507 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5508 Eli Zaretskii <eliz@gnu.org>
5510 * copyright.sh: New file.
5512 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5514 * configure.ac: Check for XML_StopParser.
5515 * xml-support.c (gdb_xml_body_text): Check for an error.
5516 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
5517 (gdb_xml_end_element_wrapper): Likewise.
5518 * config.in, configure: Regenerated.
5520 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5522 * varobj.c (install_new_value): Always update print_value.
5523 (value_get_print_value): Immediately return NULL for missing
5526 2007-01-08 Jim Blandy <jimb@codesourcery.com>
5528 * configure.ac: Tighten pattern for extracting value of
5529 DEPRECATED_TM_FILE from the target makefile fragment.
5530 * configure: Regenerated.
5532 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5534 * linux-nat.c (struct simple_pid_list): Add status.
5535 (add_to_pid_list): Record the PID's status.
5536 (linux_record_stopped_pid): Likewise. Make static.
5537 (pull_pid_from_list): Return the saved status.
5538 (linux_nat_handle_extended): Deleted.
5539 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
5540 Make static. Handle non-SIGSTOP for a new thread's first signal.
5541 (flush_callback): Handle unexpected pending signals.
5542 (linux_nat_wait): Update calls to changed functions.
5543 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
5544 Remove prototypes for newly static functions.
5546 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5548 * gdbarch.sh (value_from_register): New gdbarch function.
5549 * gdbarch.c, gdbarch.h: Regenerate.
5550 * findvar.c (default_value_from_register): New function.
5551 (value_from_register): Use gdbarch_value_from_register.
5552 * value.h (default_value_from_register): Declare.
5553 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
5554 spu_value_to_register): Remove.
5555 (spu_value_from_register): New function.
5556 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5557 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5558 Call set_gdbarch_value_from_register.
5559 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
5560 s390_value_to_register): Remove.
5561 (s390_value_from_register): New function.
5562 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5563 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5564 Call set_gdbarch_value_from_register.
5566 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5568 * NEWS: Add "set sysroot" and "show sysroot".
5569 * solib.c (solib_absolute_prefix): Delete. Replace
5570 all uses with gdb_sysroot.
5571 (_initialize_solib): Add "set sysroot" and "show sysroot".
5572 Make "solib-absolute-prefix" an alias to it.
5574 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5576 * frame.c (get_frame_register_bytes): New function.
5577 (put_frame_register_bytes): Likewise.
5578 * frame.h (get_frame_register_bytes): Declare.
5579 (put_frame_register_bytes): Likewise.
5580 * findvar.c (value_from_register): Always construct lval_register
5581 values. Use get_frame_register_bytes.
5582 * valops.c (value_assign): Use get_frame_register_bytes and
5583 put_frame_register_bytes.
5585 2007-01-08 Jim Blandy <jimb@codesourcery.com>
5587 * MAINTAINERS: Update Stan Shebs' email address.
5589 2007-01-07 Joel Brobecker <brobecker@adacore.com>
5591 * ada-lang.c (is_known_support_routine): Improve the implementation.
5593 2007-01-06 Joel Brobecker <brobecker@adacore.com>
5595 * ada-lang.c: Add include of source.h.
5596 (is_known_support_routine): Improve the check verifying that the file
5597 associated to this frame exists.
5598 * Makefile.in (ada-lang.o): Add dependency on source.h.
5600 2007-01-07 Jim Blandy <jimb@codesourcery.com>
5602 * ax-general.c (ax_const_l): Select proper opcode for the given
5605 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
5607 * varobj.c (c_value_of_root): Don't select frame if variable
5608 object is out of scope.
5610 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5612 * varobj.c (struct varobj): New member print_value.
5613 (install_new_value): Compare last printed value with current one
5614 instead of contents.
5615 (new_variable): Initialize var->print_value to NULL.
5616 (free_variable): Free var->print_value.
5617 (value_get_print_value): New function derived from
5618 c_value_of_variable.
5619 (c_value_of_variable): Use value_get_print_value.
5621 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5623 * i386-tdep.c (i386_analyze_stack_align): Add comment.
5625 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5627 * NEWS: Add entries for new catch commands.
5629 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5631 * dwarf2read.c (partial_die_info): Add field has_byte_size.
5632 (add_partial_symbol): Correct identification of external references.
5633 (process_structure_scope): Likewise.
5634 (read_partial_die): Handle DW_AT_byte_size attribute.
5636 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
5638 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
5640 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5642 * varobj.c (get_type_deref): Fix variable objects for references to
5645 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5647 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
5650 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5652 * memory-map.c (struct_memory_map_parsing_data): Remove most
5653 members. Make property_name an array.
5654 (free_memory_map_parsing_data, memory_map_start_element)
5655 (memory_map_end_element, memory_map_character_data): Delete.
5656 (memory_map_start_memory, memory_map_end_memory)
5657 (memory_map_start_property, memory_map_end_property): New functions.
5658 (property_attributes, memory_children, memory_type_enum)
5659 (memory_attributes, memory_map_children, memory_map_elements): New.
5660 (parse_memory_map): Rewrite.
5661 * xml-support.c (debug_xml): New.
5662 (xml_get_required_attribute, xml_get_integer_attribute)
5663 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
5665 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
5666 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
5667 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
5668 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
5669 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
5670 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
5671 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
5673 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
5674 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
5675 (enum gdb_xml_element_flag, struct gdb_xml_element)
5676 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
5677 (struct gdb_xml_enum): New.
5678 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
5679 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
5680 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
5681 (xml_get_required_attribute, xml_get_integer_attribute)
5682 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
5683 * Makefile.in (xml_support_h, xml-support.o): Update.
5685 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5687 * Makefile.in (eval.o): Update dependencies.
5688 * eval.c: Include "ui-out.h" and "exceptions.h".
5689 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
5690 Use value_zero if an error occurs when avoiding side effects.
5691 * varobj.c (c_value_of_root): Initialize new_val.
5693 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5695 * varobj.c (varobj_list_children): Stop if the number of children is
5697 (c_number_of_children):
5699 2007-01-04 Mark Kettenis <kettenis@gnu.org>
5701 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
5702 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
5703 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
5704 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
5705 sizeof, instead of hardcoded constants.
5707 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5709 * CONTRIBUTE: Use sourceware.org.
5711 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5713 * buildsym.c (start_subfile): Handle producer.
5714 (record_producer): New function.
5715 * buildsym.h (struct subfile): Include producer.
5716 (record_producer): New prototype.
5717 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
5718 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
5719 armcc_cfa_offsets_reversed.
5720 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
5721 (dwarf2_frame_find_quirks): New function.
5722 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
5723 (decode_frame_entry_1): Record the CIE version. Record the
5724 augmentation. Skip armcc augmentations.
5725 * dwarf2read.c (read_file_scope): Save the producer.
5726 * symtab.h (struct symtab): Rename unused version member to
5729 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5731 * configure.ac (build_warnings): Use -Wall and
5732 -Wdeclaration-after-statement.
5733 * configure: Regenerated.
5735 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5737 Simplify access to variours properties of child
5738 variable objects in C.
5739 * varobj.c (value_struct_element_index): New function.
5740 (c_describe_child): New function.
5741 (c_name_of_child, c_value_of_child)
5742 (c_type_of_child): Rewrite to use c_describe_child.
5744 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5747 * varobj.c: Include "vec.h".
5748 (varobj_p): New typedef, declare vector of those.
5749 (struct varobj): Use vector for the 'children' member.
5750 (child_exists): Remove.
5751 (save_child_in_parent): Remove.
5752 (remove_child_from_parent): Remove.
5753 (struct varobj_child): Remove.
5754 (struct vstack): Remove.
5755 (vpush, vpop): Remove.
5756 (varobj_list_children): Adjust to work work vector.
5757 (varobj_update): Likewise. Use vectors for
5758 working stack and result.
5759 (delete_variable_1): Likewise.
5760 * Makefile.in (varobj.o): Update dependencies.
5762 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5764 Port from Apple's version.
5766 * varobj.c (type_changeable): Rename to...
5767 (varobj_value_is_changeable_p): ...this. Adjust all callers.
5768 (is_root_p): New function. Use it everywhere.
5770 2007-01-04 Jim Blandy <jimb@codesourcery.com>
5772 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
5775 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5777 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
5779 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5781 * hpread.c (hpread_type_lookup): Fix compilation failure.
5783 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
5785 * NEWS: New port to S+core.
5786 * MAINTAINERS (Write After Approval, Responsible Maintainers):
5789 * Makefile.in: Add dependencies for S+core files.
5790 * configure.tgt (score*, score-*-*): Add S+core target.
5791 * config/score/embed.mt: New file.
5792 * score-tdep.c: New file.
5793 * score-tdep.h: New file.
5795 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5797 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
5798 the appropriate type rather than a bogus void type.
5800 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5802 * ada-lang.h (ada_find_printable_frame): Remove.
5803 (ada_exception_catchpoint_p, ada_decode_exception_location)
5804 (ada_decode_assert_location): Add declaration.
5805 * ada-lang.c: Add include of annotate.h and valprint.h.
5806 (exception_catchpoint_kind): New enum.
5807 (function_name_from_pc, is_known_support_routine)
5808 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
5809 (ada_exception_name_addr_1, ada_exception_name_addr)
5810 (print_it_exception, print_one_exception, print_mention_exception)
5811 (print_it_catch_exception, print_one_catch_exception)
5812 (print_mention_catch_exception, catch_exception_breakpoint_ops)
5813 (print_it_catch_exception_unhandled)
5814 (print_one_catch_exception_unhandled)
5815 (print_mention_catch_exception_unhandled, print_it_catch_assert)
5816 (print_one_catch_assert, print_mention_catch_assert)
5817 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
5818 (ada_get_next_arg, catch_ada_exception_command_split)
5819 (ada_exception_sym_name, ada_exception_sym_name)
5820 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
5821 (ada_parse_catchpoint_condition, ada_exception_sal)
5822 (ada_decode_exception_location)
5823 (ada_decode_assert_location): New function.
5824 (catch_exception_unhandled_breakpoint_ops): New global variable.
5825 (catch_assert_breakpoint_ops): New global variable.
5826 * breakpoint.c: Add include of ada-lang.h.
5827 (print_one_breakpoint): Do not print the condition for Ada
5828 exception catchpoints.
5829 (create_ada_exception_breakpoint): New function.
5830 (catch_ada_exception_command, catch_assert_command): New function.
5831 (catch_command_1): Add support for the new "catch exception" and
5832 "catch assert" commands.
5833 (_initialize_breakpoint): Add help description for the new catch
5835 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
5837 (breakpoint.o): Add dependency on ada-lang.h.
5839 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
5841 * coffread.c (cs_to_section): If bfd_section is found, always
5842 return its section index.
5843 (coff_symtab_read): Determine the minimal_symbol_type using the
5846 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5847 Daniel Jacobowitz <dan@codesourcery.com>
5849 * Makefile.in (top.o): Update.
5850 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
5851 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
5852 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
5854 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
5856 2007-01-03 Mark Kettenis <kettenis@gnu.org>
5858 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
5859 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
5861 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5863 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
5864 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
5865 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
5866 greater than or equal to zero.
5867 * m2-typeprint.c (m2_array): Likewise.
5868 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5869 * gdbtypes.c (copy_type_recursive): Correct == typo.
5870 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
5871 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
5873 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
5874 (default_macro_scope): Remove unused variable.
5875 * prologue-value.h (pv_area_find_reg): Don't name an argument
5877 * remote-fileio.c (remote_fio_func_map): Add missing braces.
5878 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5880 (cleanup_sigint_signal_handler): Remove casts.
5881 * valprint.c (val_print): Use a volatile local for the modified
5883 * varobj.c (languages): Remove extra array dimension.
5884 (varobj_create): Correct access to languages array.
5885 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5887 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5888 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5889 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5890 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5891 (mi_cmd_data_write_memory): Likewise.
5892 * signals/signals.c (target_signal_to_string): Cast to int before
5894 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5897 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5899 * NEWS: Mention pointer to member improvements.
5900 * Makefile.in (gnu-v3-abi.o): Delete special rule.
5901 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5902 * ada-valprint.c (ada_print_scalar): Update for new type codes.
5903 * c-typeprint.c (c_print_type): Update for new type codes.
5904 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5905 (c_type_print_base): Likewise.
5906 (c_type_print_args): Rewrite.
5907 * c-valprint.c (c_val_print): Update for new type codes. Remove
5908 support for references to members. Treat methods like functions.
5909 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5910 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5911 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5912 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5913 (struct cp_abi_ops): Add corresponding members.
5914 * cp-valprint.c (cp_print_class_method): Delete.
5915 (cp_find_class_member): New function.
5916 (cp_print_class_member): Use it. Simplify support for bogus
5918 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5919 lookup_methodptr_type.
5920 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5921 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5922 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
5924 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
5925 references returned by user defined operators.
5926 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5927 (f_type_print_varspec_suffix): Remove support for member pointers.
5928 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5930 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5931 (lookup_methodptr_type): New.
5932 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5933 (recursive_dump_type): Update for new types.
5934 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5935 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5936 (lookup_memberptr_type, lookup_methodptr_type)
5937 (smash_to_memberptr_type): New prototypes.
5938 (smash_to_method_type): Formatting fix.
5939 (lookup_member_type, smash_to_member_type): Delete prototypes.
5940 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5941 Do not rely on debug information for the vptr or the method's
5942 enclosing type. Handle function descriptors for IA64.
5943 (gnuv3_virtual_fn_field): Rewrite using the new functions.
5944 (gnuv3_find_method_in, gnuv3_print_method_ptr)
5945 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5946 (gnuv3_method_ptr_to_value): New.
5947 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5948 * hpread.c (hpread_type_lookup): Update for new types.
5949 * infcall.c (value_arg_coerce): Likewise.
5950 * m2-typeprint.c (m2_print_type): Remove explicit support
5951 for member pointers.
5952 * m2-valprint.c (m2_val_print): Likewise.
5953 * p-typeprint.c (pascal_type_print_varspec_prefix)
5954 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5955 * p-valprint.c (pascal_val_print): Likewise.
5956 (pascal_object_print_class_method, pascal_object_print_class_member):
5958 * p-lang.h (pascal_object_print_class_method)
5959 (pascal_object_print_class_member): Delete prototypes.
5960 * stabsread.c (read_type): Update for new types.
5961 * typeprint.c (print_type_scalar): Likewise.
5962 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5963 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5964 argument. Construct a pointer to member if the address of a
5965 function or data member is requested.
5966 (value_cast_pointers): Don't modify the input value.
5967 (value_cast): Adjust pointer to member handling for new types.
5968 Allow null pointer to member constants. Don't modify the input
5970 (value_ind): Remove pointer to member check. Handle function
5971 descriptors for function pointers.
5972 (value_struct_elt, value_find_oload_method_list, check_field):
5973 Remove pointer to member checks.
5974 * value.c (unpack_long): Allow pointers to data members.
5975 (value_from_longest): Allow member pointers.
5976 * value.h (value_aggregate_elt): Add want_address.
5977 * varobj.c (c_variable_editable): Remove check for members.
5978 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5979 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5981 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5982 * c-lang.h (cp_print_class_method): Delete prototype.
5983 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5984 * mips-tdep.c (mips_gdbarch_init): Likewise.
5985 * gdbarch.c, gdbarch.h: Regenerated.
5987 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5989 * rs6000-tdep.c (rs6000_use_struct_convention)
5990 (rs6000_extract_return_value, rs6000_store_return_value)
5991 (rs6000_extract_struct_value_address): Remove.
5992 (rs6000_return_value): New function.
5993 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5994 store_return_value, deprecated_extract_struct_value_address and
5995 deprecated_use_struct_convention. Use rs6000_return_value
5998 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
6000 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
6001 -display-disable, -display-enable, -display-insert and
6004 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6006 * breakpoint.c (remove_breakpoint): Remove dead code.
6008 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
6010 * varobj.c: Include block.h.
6011 (c_value_of_root): Check scope within nested statements.
6013 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6015 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
6016 regcache_cooked_write_signed instead of
6017 deprecated_write_register_bytes.
6019 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6021 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
6023 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6025 Followed the Start of New Year Procedure:
6026 * ChangeLog-2006: New file, containing all the entries for 2006.
6027 * ChangeLog: Removed all 2006 entries, and changed the reference
6028 to the previous ChangeLog to point to ChangeLog 2006.
6029 * top.c (print_gdb_version): Update copyright year.
6031 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6033 * Makefile.in (remote-sds.o): Remove.
6034 * remote-sds.c: Delete.
6036 For older changes see ChangeLog-2006.
6042 version-control: never