1 2007-07-02 Michael Snyder <msnyder@access-company.com>
3 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
5 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
7 * Makefile.in (XMLFILES): Add library-list.dtd.
8 (ALLDEPFILES): Add solib-target.o.
9 (solib-target.o): New rule.
10 * remote.c (PACKET_qXfer_libraries): New constant.
11 (remote_protocol_features): Add qXfer:libraries:read.
12 (remote_wait): Recognize library stop replies.
13 (remote_async_wait): Likewise. Fix typo.
14 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
15 (init_remote_async_ops): Fix typo.
16 (_initialize_remote): Register "set remote library-info-packet".
17 * solib-som.c (som_current_sos): Set addr_low and addr_high.
18 * solib-target.c: New file.
19 * solib.c (solib_map_sections): Use addr_low and addr_high instead
21 (info_sharedlibrary_command): Likewise.
22 (solib_add_library, solib_remove_library): New.
23 * solist.h (struct so_list): Replace textsection with addr_low and
25 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
26 * NEWS: Describe new qXfer:libraries:read and shared library
28 * features/library-list.dtd: New.
30 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
32 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
33 (start_remote): Use STOP_QUIETLY_REMOTE.
34 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
35 support on a SOLIB_ADD definition. Update breakpoints_inserted.
36 Update to match shared library event breakpoint support. Only
37 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
38 (normal_stop): Handle TARGET_WAITKIND_LOADED.
39 * fork-child.c (startup_inferior): Do not set
40 inferior_ignoring_startup_exec_events
41 * inferior.h (inferior_ignoring_startup_exec_events): Delete
43 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
45 2007-07-02 Markus Deuling <deuling@de.ibm.com>
47 * breakpoint.c (insert_bp_location): Remove dead code
48 (DISABLE_UNSETTABLE_BREAK).
49 (disable_breakpoints_in_shlibs)
50 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
52 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
54 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
55 Call insert_bp_location.
57 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
59 * core-regset.c (fetch_core_registers): Work around gcc 3.4
62 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
64 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
67 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
69 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
70 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
71 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
72 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
73 to display_gdb_prompt.
75 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
78 * target.c (memory_xfer_partial): Do not continue past targets with
81 2007-06-30 Andreas Schwab <schwab@suse.de>
83 * m68k-tdep.c (m68k_ps_type): New.
84 (m68k_init_types): New.
85 (m68k_register_type): Use m68k_ps_type for PS register.
86 (_initialize_m68k_tdep): Call m68k_init_types.
88 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
89 from the generic m68k arch.
91 2007-06-28 Michael Snyder <msnyder@access-company.com>
93 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
96 * linux-thread-db.c (thread_db_get_thread_local_address): Add
97 gdb_assert before using return value of find_thread_pid (Coverity).
99 * source.c (unset_substitute_path_command): Plug leak (Coverity).
101 * cli/cli-script.c (build_command_line): Add null pointer guard
104 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
106 * linux-thread-db.c (thread_db_attach): Delete.
107 (thread_db_detach): Typo fix. Call target_mourn_inferior
108 instead of fixing up proc_handle.
109 (have_threads_callback, have_threads): New functions.
110 (thread_db_wait): Remove dead proc_handle.pid check. Only
111 translate PTIDs if we have registered threads. Check for new
112 threads if we have none.
113 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
114 (find_new_threads_callback): Only enable event reporting if TID == 0.
115 (same_ptid_callback): New.
116 (thread_db_get_thread_local_address): Check for new threads.
117 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
118 or to_post_startup_inferior.
120 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
122 * infrun.c (adjust_pc_after_break): Do not assume software single-step
123 is always active if SOFTWARE_SINGLE_STEP_P is true.
124 (resume): Use gdbarch_software_single_step[_p] instead of
125 SOFTWARE_SINGLE_STEP[_P].
126 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
128 * gdbarch.sh (software_single_step): Remove target macro.
129 * gdbarch.h, gdbarch.c: Regenerate.
131 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
133 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
134 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
135 (struct gdbarch_swap, struct gdbarch_swap_registration,
136 struct gdbarch_swap_registry, gdbarch_swap_registry,
137 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
138 current_gdbarch_swap_in_hack): Remove.
139 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
140 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
141 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
142 (deprecated_current_gdbarch_select_hack): Likewise.
143 * gdbarch.h, gdbarch.c: Regenerate.
145 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
147 * infrun.c (clear_proceed_status): Clean up stop_registers.
148 (normal_stop): Allocate regcache for stop_registers.
149 (struct inferior_status): Remove stop_registers member.
150 (save_inferior_status): Do not save stop_registers.
151 (restore_inferior_status): Do not restore stop_registers.
152 (discard_inferior_status): Do not discard stop_registers.
153 (build_infrun): Remove.
154 (_initialize_infrun): Do not swap stop_registers.
156 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
158 * remote.c (remote_address_masked): If remote_address_size is zero,
159 default to target address size.
160 (build_remote_gdbarch_data): Remove.
161 (_initialize_remote): Do not swap remote_address_size.
163 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
165 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
166 builtin_type_char, builtin_type_short, builtin_type_int,
167 builtin_type_long, builtin_type_signed_char,
168 builtin_type_unsigned_char, builtin_type_unsigned_short,
169 builtin_type_unsigned_int, builtin_type_unsigned_long,
170 builtin_type_float, builtin_type_double, builtin_type_long_double,
171 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
172 builtin_type_bool, builtin_type_long_long,
173 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
174 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
175 variable declaration with compatibility macro.
176 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
177 builtin_type_char, builtin_type_short, builtin_type_int,
178 builtin_type_long, builtin_type_signed_char,
179 builtin_type_unsigned_char, builtin_type_unsigned_short,
180 builtin_type_unsigned_int, builtin_type_unsigned_long,
181 builtin_type_float, builtin_type_double, builtin_type_long_double,
182 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
183 builtin_type_bool, builtin_type_long_long,
184 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
185 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
186 (build_gdbtypes): Remove.
187 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
188 opaque-type-resolution command here. Do not call
189 deprecated_register_gdbarch_swap.
191 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
193 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
194 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
195 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
197 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
198 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
199 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
200 (build_parse): Remove.
201 (_initialize_parse): Do not call build_parse. Do not register
202 msym_ types for gdbarch-swapping.
204 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
205 instead of creating private type.
207 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
208 (_initialize_xcoffread): Do not initialized them.
209 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
211 * mdebugread.c (nodebug_func_symbol_type): Remove.
212 (nodebug_var_symbol_type): Remove.
213 (_initialize_mdebugread): Do not initialize them.
214 (parse_symbol): Use builtin nodebug_ type instead of them.
215 (parse_procedure): Likewise.
217 2007-06-21 Chris Dearman <chris@mips.com>
219 * printcmd.c (do_one_display): If display/i, start with an initial
220 line feed to avoid bad layout if there is a branch delay slot.
222 2007-06-21 Nigel Stephens <nigel@mips.com>
223 Maciej W. Rozycki <macro@mips.com>
225 * disasm.c (gdb_print_insn): Return the number of branch delay
226 slot instructions too.
227 * disasm.h (gdb_print_insn): Update prototype.
228 * printcmd.c (branch_delay_insns): New variable to record the
229 number of delay slot instructions after disassembling a branch.
230 (print_formatted): Record the number of branch delay slot
232 (do_examine): When disassembling, if the last instruction
233 disassembled has any branch delay slots, then bump the count so
234 that they get disassembled too.
235 * tui/tui-disasm.c (tui_disassemble): Update the call to
237 * NEWS: Document the new behaviour.
239 2007-06-21 Andreas Schwab <schwab@suse.de>
241 * regcache.c (write_pc_pid): Restore missing else.
243 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
245 * regcache.c (regcache_print): Use get_current_regcache ()
246 instead of current_regcache.
248 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
251 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
252 instead of bfd_make_section_anyway.
253 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
254 when clearing SEC_LOAD.
256 2007-06-19 Joseph Myers <joseph@codesourcery.com>
258 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
259 registers for big-endian.
261 2007-06-19 Markus Deuling <deuling@de.ibm.com>
263 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
264 * disasm.c (dump_insns, gdb_print_insn): Likewise.
265 * gdbarch.c, gdbarch.h: Regenerate.
267 2007-06-19 Markus Deuling <deuling@de.ibm.com>
269 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
270 gdbarch_believe_pcc_promotion.
271 * stabsread.c (define_symbol): Likewise.
272 Remove unnecessary definition.
273 * coffread.c (process_coff_symbol): Remove unnecessary code.
274 * gdbarch.c, gdbarch.h: Regenerate.
276 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
278 * configure.ac: Do not use ${objdir}.
279 * configure: Regenerated.
281 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
283 * gdbarch.sh (deprecated_register_size): Remove.
284 * gdbarch.h, gdbarch.c: Regenerate.
286 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
287 by INT_REGISTER_SIZE.
288 (thumb_get_next_pc, arm_return_in_memory): Likewise.
289 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
290 * ia64-tdep.c (ia64_gdbarch_init): Do not call
291 set_gdbarch_deprecated_register_size.
293 2007-06-18 Markus Deuling <deuling@de.ibm.com>
295 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
296 gdbarch_deprecated_fp_regnum.
297 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
298 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
299 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
300 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
302 * gdbarch.c, gdbarch.h: Regenerate.
304 2007-06-18 Markus Deuling <deuling@de.ibm.com>
306 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
307 gdbarch_extract_return_value.
308 * value.c (generic_use_struct_convention): Likewise (comment).
309 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
310 * arch-utils.c (legacy_return_value): Likewise.
311 * arch-utils.h (legacy_return_value): Likewise (comment).
312 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
313 gdbarch_store_return_value.
314 * stack.c (return_command): Likewise (comment).
315 * arch-utils.h (legacy_return_value): Likewise (comment).
316 * arch-utils.c (legacy_return_value): Likewise.
317 * gdbarch.c, gdbarch.h: Regenerate.
319 2007-06-18 Markus Deuling <deuling@de.ibm.com>
321 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
322 gdbarch_deprecated_use_struct_convention.
323 * arch-utils.c (legacy_return_value): Likewise.
324 * gdbarch.c, gdbarch.h: Regenerate.
326 2007-06-18 Markus Deuling <deuling@de.ibm.com>
328 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
329 gdbarch_deprecated_function_start_offset.
330 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
331 * linespec.c (minsym_found): Likewise.
332 * infrun.c (handle_inferior_event): Likewise.
333 * infcall.c (find_function_addr): Likewise.
334 * cli/cli-cmds.c (disassemble_command): Likewise.
335 * gdbarch.c, gdbarch.h: Regenerate.
337 2007-06-18 Markus Deuling <deuling@de.ibm.com>
339 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
340 gdbarch_deprecated_reg_struct_has_addr.
341 * infcall.c (call_function_by_hand): Likewise.
342 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
343 * gdbarch_deprecated_reg_struct_has_addr_p.
344 * infcall.c (call_function_by_hand): Likewise.
345 * gdbarch.c, gdbarch.h: Regenerate.
347 2007-06-18 Markus Deuling <deuling@de.ibm.com>
349 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
350 * sh-tdep.c (sh_extract_struct_value_address): Remove.
351 (sh_gdbarch_init): Remove
352 set_gdbarch_deprecated_extract_struct_value_address.
353 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
354 (sh64_gdbarch_init): Remove
355 set_gdbarch_deprecated_extract_struct_value_address.
356 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
357 (ia64_gdbarch_init): Remove
358 set_gdbarch_deprecated_extract_struct_value_address.
359 * frv-tdep.c (frv_extract_struct_value_address): Remove.
360 (frv_gdbarch_init): Remove
361 set_gdbarch_deprecated_extract_struct_value_address.
362 * gdbarch.c, gdbarch.h: Regenerate.
364 2007-06-18 Markus Deuling <deuling@de.ibm.com>
366 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
367 * v850-tdep.c (v850_unwind_sp): Likewise.
368 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
369 * stack.c (frame_info): Likewise.
370 * stabsread.c (define_symbol): Likewise.
371 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
372 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
373 (sh_unwind_sp): Likewise.
374 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
375 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
376 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
377 (rs6000_frame_cache): Likewise.
378 * rs6000-nat.c (store_register): Likewise.
379 * remote-mips.c (mips_wait): Likewise.
380 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
381 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
382 (ppc64_sysv_abi_push_dummy_call): Likewise.
383 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
384 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
385 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
386 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
387 * m32r-rom.c (m32r_supply_register): Likewise.
388 * frame.c (frame_sp_unwind): Likewise.
389 * mips-tdep.c (mips_insn16_frame_cache)
390 (mips_insn32_frame_cache): Likewise (comment).
391 * m68klinux-nat.c (supply_gregset): Likewise.
392 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
393 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
394 * i386-tdep.c (i386_get_longjmp_target): Likewise.
395 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
396 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
397 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
398 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
399 (cris_register_type, crisv32_register_type)
400 (cris_dwarf2_frame_init_reg): Likewise.
401 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
402 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
403 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
404 * libunwind-frame.c (libunwind_frame_cache): Likewise.
406 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
407 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
408 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
409 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
410 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
411 * v850-tdep.c (v850_unwind_pc): Likewise.
412 * stack.c (frame_info): Likewise.
413 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
414 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
415 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
416 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
417 (sh_dsp_show_regs): Likewise.
418 * shnbsd-tdep.c (shnbsd_supply_gregset)
419 (shnbsd_collect_gregset): Likewise.
420 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
421 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
422 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
423 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
424 (6000_register_reggroup_p, rs6000_unwind_pc)
425 (rs6000_frame_cache): Likewise.
426 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
427 (rs6000_store_inferior_registers): Likewise.
428 * remote-mips.c (mips_wait, mips_load): Likewise.
429 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
430 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
431 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
432 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
433 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
434 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
435 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
436 (store_ppc_registers, fill_gregset): Likewise.
437 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
438 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
439 * mipsnbsd-nat.c (getregs_supplies): Likewise.
440 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
441 * m68klinux-nat.c (supply_gregset): Likewise.
442 * irix5-nat.c (fill_gregset): Likewise.
443 * i386-tdep.c (i386_unwind_pc): Likewise.
444 * i386-linux-nat.c (i386_linux_resume): Likewise.
445 * frame.c (get_prev_frame_1): Likewise.
446 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
447 * dbug-rom.c (dbug_supply_register): Likewise.
448 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
449 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
450 (cris_register_type, crisv32_register_type, crisv32_register_name)
451 (cris_dwarf2_frame_init_reg, find_step_target)
452 (cris_software_single_step, cris_supply_gregset)
453 (cris_regnums): Likewise.
454 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
455 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
456 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
457 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
458 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
460 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
461 * dbug-rom.c (dbug_supply_register): Likewise.
462 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
463 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
464 * win32-nat.c (win32_resume): Likewise.
465 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
466 * m68k-tdep.c (m68k_register_type): Likewise.
467 * m68klinux-nat.c (supply_gregset): Likewise.
469 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
470 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
471 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
472 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
473 (fv_reg_base_num, dr_reg_base_num): Likewise.
474 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
475 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
476 (sh64_extract_return_value, sh64_store_return_value)
477 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
478 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
479 * procfs.c (procfs_fetch_registers, procfs_store_registers)
480 (invalidate_cache): Likewise.
481 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
482 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
483 (mipsnbsd_fill_fpreg): Likewise.
484 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
485 (mipsnbsd_store_inferior_registers): Likewise.
486 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
487 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
488 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
489 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
490 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
491 (fill_fpregset): Likewise.
492 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
493 * i386-tdep.h (struct_return): Likewise (comment).
494 * i386-nto-tdep.c (i386nto_register_area): Likewise.
495 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
496 (go32_store_registers): Likewise.
497 * alpha-tdep.c (alpha_next_pc): Likewise.
498 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
499 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
500 (alphabsd_store_inferior_registers): Likewise.
501 * core-regset.c (fetch_core_registers): Likewise.
502 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
504 * gdbarch.c, gdbarch.h: Regenerate.
506 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
508 * coffread.c (coff_sym_fns): Add default_symfile_segments.
509 * dbxread.c (start_psymtab): Check HAVE_ELF.
510 (aout_sym_fns): Likewise.
511 * elfread.c (elf_symfile_segments): New.
512 (elf_sym_fns): Add elf_symfile_segments.
513 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
514 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
515 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
516 * somread.c (som_sym_fns): Use default_symfile_segments.
517 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
518 (init_objfile_sect_indices): Call symfile_find_segment_sections.
519 (default_symfile_segments): New function.
520 (syms_from_objfile): Update call to find_sym_fns.
521 (symfile_get_segment_data, free_symfile_segment_data): New.
522 (symfile_map_offsets_to_segments): New.
523 (symfile_find_segment_sections): New.
524 * symfile.h (struct symfile_segment_data): New.
525 (struct sym_fns): Add sym_segments.
526 (default_symfile_segments, symfile_get_segment_data)
527 (free_symfile_segment_data): New prototypes.
528 (symfile_map_offsets_to_segments): Likewise.
529 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
530 * Makefile.in (COMMON_OBS): Remove elfread.o.
531 (elf_internal_h): New.
533 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
535 * config.in, configure: Regenerated.
536 * NEWS: Mention qOffsets changes.
538 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
540 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
541 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
542 Replace global variable declaration with compatibility macro.
543 (struct builtin_m2_type): New data type.
544 (builtin_m2_type): Add prototype.
545 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
546 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
547 Remove global variables.
548 (m2_language_arch_info): Use builtin_m2_type instead of variables.
549 (build_m2_types): New function.
550 (m2_type_data): New variable.
551 (builtin_m2_type): New function.
552 (_initialize_m2_language): Do not build data types. Register
553 m2_type_data per-gdbarch data.
555 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
557 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
558 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
559 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
560 builtin_type_f_real_s8, builtin_type_f_real_s16,
561 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
562 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
563 variable declaration with compatibility macro.
564 (struct builtin_f_type): New data type.
565 (builtin_f_type): Add prototype.
566 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
567 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
568 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
569 builtin_type_f_real_s8, builtin_type_f_real_s16,
570 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
571 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
572 (f_language_arch_info): Use builtin_f_type instead of variables.
573 (build_fortran_types): Build builtin_f_type structure instead of
574 setting global type variables.
575 (f_type_data): New variable.
576 (builtin_f_type): New function.
577 (_initialize_f_language): Do not call build_fortran_types. Do not
578 swap global type variables. Register f_type_data per-gdbarch data.
580 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
582 * f-lang.c (_initialize_f_language): Do not initialize or
583 swap builtin_type_string.
585 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
587 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
588 value_of_builtin_frame_reg): Remove.
589 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
590 inactive call to value_of_builtin_frame_reg.
592 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
594 * gdbarch.sh (bfd_vma_bit): Remove.
595 * gdbarch.c, gdbarch.h: Regenerate.
597 * gdbtypes.h (builtin_bfd_vma_type): Remove.
598 * gdbtypes.h (builtin_bfd_vma_type): Remove.
599 (build_gdbtypes): Do not initialize it.
600 (_initialize_gdbtypes): Do not swap it.
602 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
604 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
605 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
606 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
607 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
608 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
609 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
610 builtin_type_vec64, builtin_type_vec128): Remove.
611 (init_simd_type): Remove.
612 (init_vector_type): Make global.
613 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
614 (build_gdbtypes): Do not build vector types.
615 (_initialize_gdbtypes): Do not swap vector types.
616 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
617 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
618 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
619 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
620 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
621 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
622 builtin_type_vec64, builtin_type_vec128): Remove declarations.
623 (init_vector_type): Add prototype.
625 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
626 i386_sse_type members.
627 (i386_mmx_type, i386_sse_type): Change from variables to functions.
628 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
629 (i386_init_types): Do not build vector types.
630 (i386_mmx_type, i386_sse_type): New functions.
631 (i386_register_type): Call them instead of using global variables.
632 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
633 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
634 of using global variable.
636 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
637 and ppc_builtin_type_vec128 members.
638 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
639 (rs6000_builtin_type_vec128): Likewise.
640 (rs6000_register_type): Call them instead of using builtin_type_vec64
641 and builtin_type_vec128.
642 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
644 * spu-tdep.c (struct gdbarch_tdep): New data type.
645 (spu_builtin_type_vec128): Remove variable.
646 (spu_builtin_type_vec128): New function.
647 (spu_register_type): Call it instead of using global variable.
648 (spu_gdbarch_init): Allocate tdep structure.
649 (spu_init_vector_type): Remove function.
650 (_initialize_spu_tdep): Do not call it.
652 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
654 * amd64-tdep.c (struct amd64_register_info): Remove.
655 (amd64_register_info): Remove.
656 (amd64_register_names): New static variable.
657 (AMD64_NUM_REGS): Use amd64_register_names instead of
659 (amd64_register_name): Likewise.
660 (amd64_register_type): Do not refer to amd64_register_info.
662 * s390-tdep.c (struct s390_register_info): Remove.
663 (s390_register_info): Remove.
664 (s390_register_name): Do not refer to s390_register_info.
665 (s390_register_type): Likewise.
667 * sparc64-tdep.c (struct sparc64_register_info): Remove.
668 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
669 (sparc64_register_names, sparc64_pseudo_register_names): New.
670 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
671 sparc64_register_names and sparc64_pseudo_register_names instead of
672 sparc64_register_info and sparc64_pseudo_register_info.
673 (sparc64_register_name): Likewise.
674 (sparc64_register_type): Do not refer to sparc64_register_info
675 and sparc64_pseudo_register_info.
677 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
679 * c-lang.c (cplus_builtin_types): Remove.
680 (enum cplus_primitive_types): New data type.
681 (cplus_language_arch_info): New function.
682 (cplus_language_defn): Set la_language_arch_info member. Do not set
683 la_builtin_type_vector and string_char_type members.
685 * f-lang.c (f_builtin_types): Remove.
686 (enum f_primitive_types): New data type.
687 (f_language_arch_info): New function.
688 (f_language_de): Set la_language_arch_info member. Do not set
689 la_builtin_type_vector and string_char_type members.
691 * m2-lang.c (m2_builtin_types): Remove.
692 (enum m2_primitive_types): New data type.
693 (m2_language_arch_info): New function.
694 (m2_language_defn): Set la_language_arch_info member. Do not set
695 la_builtin_type_vector and string_char_type members.
697 * objc-lang.c (objc_builtin_types): Remove.
698 (objc_language): Set la_language_arch_info member. Do not set
699 la_builtin_type_vector and string_char_type members.
701 * p-lang.c (pascal_builtin_types): Remove.
702 (enum pascal_primitive_types): New data type.
703 (pascal_language_arch_info): New function.
704 (pascal_language_defn): Set la_language_arch_info member. Do not set
705 la_builtin_type_vector and string_char_type members.
707 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
709 * regcache.c (struct regcache): Add ptid_t member.
710 (regcache_xmalloc): Initialize it.
711 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
712 (regcache_dup): Likewise.
713 (regcache_dup_no_passthrough): Likewise.
714 (current_regcache): Make static.
715 (registers_ptid): Remove variable.
716 (get_thread_regcache): New function.
717 (get_current_regcache): New function.
718 (registers_changed): Implement by freeing current regcache.
719 (regcache_raw_read): Do not refer to current_regcache. Set
720 inferior_ptid to regcache->ptid while calling target routines.
721 (regcache_raw_write): Likewise.
722 (regcache_raw_supply): Do not refer to current_regcache.
723 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
724 (write_pc_pid): Likewise.
725 (build_regcache): Remove.
726 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
727 or deprecated_register_gdbarch_swap. Do not initialize
729 * regcache.h (get_current_regcache): Add prototype.
730 (get_thread_regcache): Likewise.
731 (current_regcache): Remove declaration.
733 * corelow.c (core_open): Replace current_regcache by
734 get_current_regcache ().
735 * frame.c (frame_pop): Likewise.
736 (put_frame_register): Likewise.
737 (get_current_frame, create_new_frame): Likewise.
738 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
739 * stack.c (return_command): Likewise.
740 * infcall.c (call_function_by_hand): Likewise.
741 * infrun.c (resume): Likewise.
742 (save_inferior_status, restore_inferior_status): Likewise.
743 * linux-fork.c (fork_load_infrun_state): Likewise.
744 (fork_save_infrun_state): Likewise.
745 * win32-nat.c (win32_resume): Likewise.
746 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
747 * monitor.c (monitor_wait): Likewise.
748 * remote.c (remote_wait): Likewise.
749 * remote-mips.c (mips_wait): Likewise.
751 * bsd-kvm.c (bsd_kvm_open): Likewise
752 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
753 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
754 * i386-linux-nat.c (i386_linux_resume): Likewise.
755 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
756 (ia64_linux_stopped_data_address): Likewise.
758 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
759 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
760 * mep-tdep.c (current_me_module, current_options): Likewise.
761 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
763 * linux-nat.c (linux_nat_do_thread_registers): Use thread
764 regcache instead of current_regcache. Call target_fetch_registers.
765 (linux_nat_corefile_thread_callback): Update call site.
766 (linux_nat_do_registers): Likewise.
767 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
769 (procfs_make_note_section): Likewise.
770 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
771 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
772 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
773 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
775 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
777 * regcache.c (read_register, read_register_pid): Remove.
778 (write_register, write_register_pid): Likewise.
779 * regcache.h (read_register, read_register_pid): Remove prototype.
780 (write_register, write_register_pid): Likewise.
782 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
784 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
785 (write_pc): Likewise. Remove default implementation, add predicate.
786 * gdbarch.c, gdbarch.h: Regenerate.
787 * regcache.c (read_pc_pid): Use current regcache instead of calling
789 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
791 (generic_target_write_pc): Remove.
792 * inferior.h (generic_target_write_pc): Remove.
793 * frv-tdep.c (frv_gdbarch_init): Do not install it.
794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
795 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
796 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
797 * sh-tdep.c (sh_gdbarch_init): Likewise.
798 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
800 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
801 argument. Use REGCACHE instead of calling read_register_pid.
802 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
803 * hppa-tdep.c (hppa_read_pc): Likewise.
804 * hppa-tdep.h (hppa_read_pc): Likewise.
805 * ia64-tdep.c (ia64_read_pc): Likewise.
806 * m32r-tdep.c (m32r_read_pc): Likewise.
807 * mep-tdep.c (mep_read_pc): Likewise.
808 * mn10300-tdep.c (mn10300_read_pc): Likewise.
809 * spu-tdep.c (spu_read_pc): Likewise.
811 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
812 argument. Use REGCACHE instead of calling write_register_pid.
813 * avr-tdep.c (avr_write_pc): Likewise.
814 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
815 * hppa-tdep.c (hppa_write_pc): Likewise.
816 * hppa-tdep.h (hppa_write_pc): Likewise.
817 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
818 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
819 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
820 * ia64-tdep.c (ia64_write_pc): Likewise.
821 * ia64-tdep.h (ia64_write_pc): Likewise.
822 * m32r-tdep.c (m32r_write_pc): Likewise.
823 * m88k-tdep.c (m88k_write_pc): Likewise.
824 * mep-tdep.c (mep_write_pc): Likewise.
825 * mips-tdep.c (mips_write_pc): Likewise.
826 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
827 * mn10300-tdep.c (mn10300_write_pc): Likewise.
828 * sparc-tdep.c (sparc_write_pc): Likewise.
829 * spu-tdep.c (spu_write_pc): Likewise.
831 * mips-tdep.c (read_signed_register): Remove.
832 (read_signed_register_pid): Likewise.
833 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
834 Use REGCACHE instead of calling read_signed_register_pid.
836 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
838 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
839 * gdbarch.c, gdbarch.h: Regenerate.
840 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
841 (push_dummy_code): Likewise. Pass it to callee.
842 (call_function_by_hand): Pass current regcache to push_dummy_code.
844 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
845 argument. Use it instead of current_regcache.
847 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
848 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
850 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
852 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
853 * gdbarch.c, gdbarch.h: Regenerate.
854 * infrun.c (handle_inferior_event): Pass current frame to
855 gdbarch_get_longjmp_target.
857 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
858 Read registers from FRAME instead of using read_register.
859 Use get_frame_arch instead of current_gdbarch.
860 * arm-tdep.c (arm_get_longjmp_target): Likewise.
861 * i386-tdep.c (i386_get_longjmp_target): Likewise.
862 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
863 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
864 (mips64_linux_get_longjmp_target): Likewise.
865 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
867 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
869 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
870 * gdbarch.c, gdbarch.h: Regenerate.
871 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
872 * arch-utils.h (generic_skip_trampoline_code): Likewise.
873 * infrun.c (handle_inferior_event): Pass current frame to
874 gdbarch_skip_trampoline_code and skip_language_trampoline.
876 * language.c (unk_lang_trampoline): Add FRAME argument.
877 (skip_language_trampoline): Add FRAME argument. Pass it to
878 skip_trampoline callback.
879 * language.h: Add forward declaration of struct frame_info.
880 (struct language_defn): Add FRAME argument to skip_trampoline.
881 (skip_language_trampoline): Add FRAME argument.
882 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
883 to skip_trampoline callback.
884 * cp-abi.h: Add forward declaration of struct frame_info.
885 (cplus_skip_trampoline): Add FRAME argument.
886 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
887 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
888 to gdbarch_skip_trampoline_code.
889 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
890 to gdbarch_skip_trampoline_code.
892 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
893 * symtab.h (find_solib_trampoline_target): Likewise.
894 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
895 find_solib_trampoline_target.
897 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
898 from FRAME instead of calling read_register.
900 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
901 argument. Read registers from FRAME instead of using read_register.
902 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
903 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
905 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
908 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
910 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
911 registers from FRAME instead of using read_signed_register.
913 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
915 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
916 instead of using read_register.
917 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
918 ppc64_standard_linkage_target.
919 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
920 Pass it to find_solib_trampoline_target. Read registers from FRAME
921 instead of using read_register.
923 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
926 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
928 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
930 * gdbarch.c, gdbarch.h: Regenerate.
931 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
933 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
934 registers from FRAME instead of using read_register.
935 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
936 to alpha_next_pc. Use get_frame_pc instead of read_pc.
937 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
940 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
941 from FRAME instead of using read_register.
942 (thumb_get_next_pc): Likewise.
943 (arm_get_next_pc): Likewise.
944 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
945 to arm_get_next_pc. Use get_frame_pc instead of read_register.
946 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
949 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
950 from FRAME instead of using read_register.
951 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
954 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
955 from FRAME instead of using read_register / read_signed_register.
956 (extended_mips16_next_pc): Likewise.
957 (mips16_next_pc): Likewise.
958 (mips_next_pc): Likewise.
959 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
960 to mips_next_pc. Use get_frame_pc instead of read_pc.
961 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
964 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
965 of current frame. Read registers from FRAME.
966 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
967 branch_dest. Use get_frame_pc instead of read_pc.
968 (rs6000_software_single_step): Likewise.
969 (bl_to_blrl_insn_p): Do not call branch_dest.
970 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
973 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
974 Read registers from FRAME instead of current regcache.
975 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
976 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
977 * sparc-tdep.c (sparc_address_from_register): Remove.
978 (sparc_analyze_control_transfer): Pass FRAME argument instead of
979 GDBARCH. Pass FRAME to step_trap callback.
980 (sparc_step_trap): Add FRAME argument.
981 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
982 to sparc_analyze_control_transfer. Read registers from FRAME instead
983 of calling sparc_address_from_register.
984 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
986 (sparc_address_from_register): Remove prototype.
987 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
988 (sparcnbsd_step_trap): Add FRAME argument.
990 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
991 by FRAME. Read registers from FRAME instead of REGCACHE.
993 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
995 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
996 instead of calling read_register.
998 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
999 calling write_register.
1001 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
1002 calling write_register.
1004 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
1005 instead of calling read_register.
1006 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
1007 instead of calling read_register and write_register.
1009 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
1010 instead of current_regcache.
1012 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
1013 of calling write_register.
1014 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
1015 parameter instead of current_regcache.
1017 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
1018 instead of calling read_register.
1019 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
1020 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
1021 (mips_n32n64_push_dummy_call): Likewise.
1022 (mips_o32_push_dummy_call): Likewise.
1023 (mips_o64_push_dummy_call): Likewise.
1025 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
1026 parameter instead of current_regcache.
1028 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
1029 Use it instead of read_register and write_register.
1030 (xtensa_register_read_masked): Likewise.
1031 (xtensa_pseudo_register_read): Update call.
1032 (xtensa_pseudo_register_write): Likewise.
1033 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
1034 instead of calling read_register.
1035 (xtensa_push_dummy_call): Update comment.
1037 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1039 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
1040 by frame_unwind_register_signed calls.
1041 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
1042 frame allocations when called with NULL NEXT_FRAME parameter.
1043 (read_next_frame_reg): Remove.
1045 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
1046 instead of reading the FPSCR register.
1047 (sh_frame_cache): Pass unwound FPSCR register value to
1048 sh_analyze_prologue.
1049 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
1051 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
1052 instead of reading the CTBP register.
1053 (v850_frame_cache): Pass unwound CTBP register value to
1054 v850_analyze_prologue.
1056 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1058 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
1059 * sh-tdep.c (sh_show_regs): Likewise.
1060 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
1061 (sh_generic_show_regs): Add FRAME parameter. Use register
1062 values from that frame instead of calling read_register.
1063 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
1064 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
1065 sh_dsp_show_regs): Likewise.
1066 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
1067 sh64_show_regs): Likewise.
1069 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1071 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
1072 current regcache instead of calling read_register.
1074 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1076 * mep-tdep.c (current_me_module): Read from current regcache
1077 instead of calling read_register.
1078 (current_options): Likewise.
1080 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1082 * cris-tdep.c (cris_stopped_data_address): Read register values
1083 from current frame instead of calling read_register.
1084 * frv-tdep.c (frv_stopped_data_address): Likewise.
1086 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1088 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
1089 instead of write_register (PC_REGNUM, ...).
1091 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1093 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
1094 explaining why the PC adjustment code is necessary.
1096 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
1098 * m68k-tdep.h (enum m68k_flavour): New.
1099 (struct gdbarch_tdep): New fields
1100 float_return, flavour and fpregs_present.
1101 * m68k-tdep.c (m68k_register_type): Use
1102 fpregs_present and conditionalize floating
1103 registers type on flavour.
1104 (m68k_register_names): New.
1105 (m68k_register_name): Use the above.
1106 (m68k_convert_register_p): Consult fpregs_present.
1107 (m68k_register_to_value, m68k_value_to_register):
1108 Use register_type to obtain the type of floating
1110 (m68k_svr4_extract_return_value): Check tdep->float_return.
1111 Use register_type to get the type of floating
1113 (m68k_svr4_store_return_value): Likewise.
1114 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
1115 (m68k_analyze_register_saves): Likewise.
1116 (m68k_gdbarch_init): Extract infromation
1117 from XML description, if present. Guess coldfire by
1118 looking at the file, if present. Conditionalize
1119 setting of long double format. Set decr_pc_after_break
1120 to 2 on coldfire and fido. Enable XML-driven
1121 register description.
1122 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
1123 size of tdep->fpreg_type, as opposed to hardcoded value.
1124 * Makefile.in (m68k-tdep.o): Update dependencies.
1126 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1128 * NEWS: Mention "info spu" commands and qXfer:spu:read and
1129 qXfer:spu:write remote packet types.
1131 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1133 * xml-tdesc.c (tdesc_start_target): New.
1134 (target_attributes): New.
1135 (tdesc_elements): Use it.
1136 * features/gdb-target.dtd: Add #FIXED version attribute for
1139 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
1141 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
1143 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
1145 * fork-child.c (fork_inferior): Update comment.
1147 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1149 * features/Makefile: Generate regformats for mips-linux and
1151 * features/sort-regs.xsl: Correct typo.
1152 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
1153 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
1156 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1158 * config/mips/linux.mh (TDEP_XML): New.
1159 * features/mips-linux.xml, features/mips64-linux.xml: New files.
1160 * mips-linux-nat.c (mips_linux_register_addr): Handle
1161 MIPS_RESTART_REGNUM.
1162 (mips64_linux_register_addr): Likewise.
1163 (super_xfer_partial, mips_linux_xfer_partial): New.
1164 (_initialize_mips_linux_nat): Add them to the target_ops.
1165 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
1166 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
1167 (mips_linux_o32_sigframe_init)
1168 (mips_linux_n32n64_sigframe_init): Likewise.
1169 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
1170 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
1171 "org.gnu.gdb.mips.linux" feature.
1172 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
1173 (mips_linux_restart_reg_p): New prototype.
1174 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
1175 initialization routine.
1176 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
1178 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1180 * Makefile.in (mips-tdep.o): Update.
1181 * mips-tdep.c (struct register_alias, mips_o32_aliases)
1182 (mips_n32_n64_aliases, mips_register_aliases): New.
1183 (mips_register_name): Call tdesc_register_name.
1184 (mips_tdesc_register_reggroup_p): New.
1185 (mips_pseudo_register_type, value_of_mips_user_reg): New.
1186 (mips_gdbarch_init): Add target-described register support.
1187 Register aliases for register names.
1188 * target-descriptions.c (tdesc_register_name): Make global.
1189 (tdesc_register_in_reggroup_p): New function, broken out from
1190 tdesc_register_reggroup_p.
1191 (tdesc_register_reggroup_p): Use it.
1192 * target-descriptions.h (tdesc_register_name)
1193 (tdesc_register_in_reggroup_p): New prototypes.
1194 * NEWS: Correct formatting. Mention MIPS register support.
1195 * features/mips-cp0.xml, features/mips-fpu.xml,
1196 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
1197 features/mips64-cpu.xml: New files.
1199 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1201 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
1202 * valops.c (value_cast): Likewise.
1203 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
1204 * ui-out.c (ui_out_field_core_addr): Likewise.
1205 * tracepoint.c (tracepoints_info): Likewise.
1206 * symtab.c (print_msymbol_info): Likewise.
1207 * solib-irix.c (irix_current_sos)
1208 (irix_open_symbol_file_object): Likewise.
1209 * remote.c (build_remote_gdbarch_data): Likewise.
1210 * prologue-value.c (make_pv_area): Likewise.
1211 * procfs.c (info_mappings_callback): Likewise.
1212 * printcmd.c (print_scalar_formatted)
1213 (deprecated_print_address_numeric): Likewise.
1214 * memattr.c (mem_info_command): Likewise.
1215 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1216 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
1217 * exec.c (print_section_info): Likewise.
1218 * dwarf2read.c (read_subrange_type): Likewise.
1219 * dwarf2loc.c (find_location_expression): Likewise.
1220 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
1221 (signed_address_type, execute_stack_op): Likewise.
1222 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
1223 * gdbarch.c, gdbarch.h: Regenerate.
1225 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1227 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
1228 * arch-utils.c (show_architecture): Likewise.
1229 * remote-mips.c (mips_open): Likewise
1230 * nto-tdep.c (nto_find_and_open_solib)
1231 (nto_init_solib_absolute_prefix): Likewise.
1232 * nto-procfs (procfs_open): Likewise.
1233 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
1234 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
1235 * gdbarch.c, gdbarch.h: Regenerate.
1237 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1239 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
1240 * gdbtypes.c (build_flt): Likewise.
1241 * gdbarch.c, gdbarch.h: Regenerate.
1243 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1245 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
1246 gdbarch_breakpoint_from_pc.
1247 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
1248 * remote.c (remote_insert_breakpoint)
1249 (remote_insert_hw_breakpoint): Likewise.
1250 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1251 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
1252 * breakpoint.h (bp_target_info): Likewise (comment).
1253 * breakpoint.c (read_memory_nobpt): Likewise.
1254 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1255 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
1256 * gdbarch.c, gdbarch.h: Regenerate.
1258 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1260 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
1261 * solib-svr4.c (svr4_truncate_ptr): Likewise.
1262 * solib-pa64.c (read_dynamic_info): Likewise.
1263 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1264 * solib.c (info_sharedlibrary_command): Likewise.
1265 * s390-nat.c (SUBOFF): Likewise.
1266 * p-valprint.c (pascal_val_print): Likewise.
1267 * procfs.c (info_proc_mappings): Likewise.
1268 * printcmd.c (decode_format): Likewise.
1269 * nto-tdep.c (nto_truncate_ptr): Likewise.
1270 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1271 (mips64_linux_get_longjmp_target): Likewise.
1272 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1273 * jv-valprint.c (java_value_print): Likewise.
1274 * jv-lang.c (get_java_object_header_size): Likewise.
1275 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1276 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1277 (hppa_hpux_unwind_adjust_stub): Likewise.
1278 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1279 * gdbtypes.c (make_pointer_type, make_reference_type)
1280 (smash_to_memberptr_type): Likewise.
1281 * gdbarch.c, gdbarch.h: Regenerate.
1283 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1285 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
1286 (print_gp_register_row): Stop before printing a register bigger
1287 than the ABI register size.
1288 (mips_print_registers_info): Update call to mips_print_register.
1290 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1292 * expression.h (enum exp_opcode): Document a register name for
1294 * parse.c (write_dollar_variable): Write the register name for
1296 (operator_length_standard): Expect the register name following
1298 * ada-lang.c (resolve_subexp): Likewise.
1299 * ax-gdb.c (gen_expr): Likewise.
1300 * eval.c (evaluate_subexp_standard): Likewise.
1301 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1303 * tracepoint.c (encode_actions): Likewise.
1305 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1307 * utils.c (set_screen_size): Use INT_MAX for default columns.
1309 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
1311 * remote.c (remote_protocol_features): Add qXfer:spu:read and
1312 qXfer:spu:write packet types.
1314 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1316 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
1317 * gdbarch.c, gdbarch.h: Regenerate.
1319 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1321 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
1322 gdbarch_stab_reg_to_regnum.
1323 * stabsread.c (define_symbol): Likewise.
1324 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
1325 gdbarch_ecoff_reg_to_regnum.
1326 * mdebugread.c (parse_symbol): Likewise.
1327 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
1328 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
1329 gdbarch_dwarf_reg_to_regnum.
1330 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
1331 * coffread.c (process_coff_symbol): Likewise.
1332 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
1333 gdbarch_dwarf2_reg_to_regnum.
1334 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
1335 (locexpr_describe_location): Likewise.
1336 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
1337 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
1338 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
1339 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
1340 * gdbarch.c, gdbarch.h: Regenerate.
1342 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1344 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
1345 gdbarch_smash_text_address.
1346 * somread.c (som_symtab_read): Likewise.
1347 * elfread.c (record_minimal_symbol): Likewise.
1348 * dbxread.c (process_one_symbol): Likewise.
1349 * coffread.c (coff_symtab_read): Likewise.
1350 * gdbarch.c, gdbarch.h: Regenerate.
1352 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1354 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
1355 * findvar.c (value_from_register): Likewise.
1356 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
1357 * valops.c (value_assign): Likewise.
1358 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
1359 gdbarch_convert_register_p.
1360 * findvar.c (value_from_register): Likewise.
1361 * valops.c (value_assign): Likewise.
1362 * gdbarch.c, gdbarch.h: Regenerate.
1364 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1366 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
1367 gdbarch_register_sim_regno.
1368 * sim-regno.h (sim_regno): Likewise (comment).
1369 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1370 * gdbarch.c, gdbarch.h: Regenerate.
1372 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1374 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
1375 gdbarch_virtual_frame_pointer.
1376 * tracepoint.c (encode_actions): Likewise.
1377 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
1378 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
1379 * gdbarch.c, gdbarch.h: Regenerate.
1381 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1383 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
1384 * p-lang.c (pascal_create_fundamental_type): Likewise.
1385 * objc-lang.c (objc_create_fundamental_type): Likewise.
1386 * mdebugread.c (_initialize_mdebugread): Likewise.
1387 * m2-lang.c (m2_create_fundamental_type)
1388 (_initialize_m2_language): Likewise.
1389 * gdbtypes.c (build_gdbtypes): Likewise.
1390 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1391 * doublest.c (floatformat_from_length): Likewise.
1392 * c-lang.c (c_create_fundamental_type): Likewise.
1393 * ada-lang.c (ada_create_fundamental_type)
1394 (ada_language_arch_info): Likewise.
1395 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
1396 * value.c (unpack_double): Likewise (comment).
1397 * gdbtypes.c (build_gdbtypes): Likewise.
1398 * doublest.c (floatformat_from_length): Likewise.
1399 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
1400 * valarith.c (value_binop): Likewise.
1401 * p-lang.c (pascal_create_fundamental_type): Likewise.
1402 * objc-lang.c (objc_create_fundamental_type): Likewise.
1403 * mdebugread.c (_initialize_mdebugread): Likewise.
1404 * m2-lang.c (m2_create_fundamental_type): Likewise.
1405 * gdbtypes.c (build_gdbtypes): Likewise.
1406 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1407 * doublest.c (floatformat_from_length): Likewise.
1408 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
1409 * c-lang.c (c_create_fundamental_type): Likewise.
1410 * ada-lex.l (processReal): Likewise.
1411 * ada-lang.c (ada_create_fundamental_type)
1412 (ada_language_arch_info): Likewise.
1413 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
1414 * value.c (unpack_double): Likewise (comment).
1415 * gdbtypes.c (build_gdbtypes): Likewise.
1416 * doublest.c (floatformat_from_length): Likewise.
1417 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
1418 gdbarch_long_double_bit.
1419 * p-lang.c (pascal_create_fundamental_type): Likewise.
1420 * objc-lang.c (objc_create_fundamental_type): Likewise.
1421 * m2-lang.c (m2_create_fundamental_type): Likewise.
1422 * gdbtypes.c (build_gdbtypes): Likewise.
1423 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1424 * doublest.c (floatformat_from_length): Likewise.
1425 * c-lang.c (c_create_fundamental_type): Likewise.
1426 * ada-lex.l (processReal): Likewise.
1427 * ada-lang.c (ada_create_fundamental_type)
1428 (ada_language_arch_info): Likewise.
1429 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
1430 gdbarch_long_double_format.
1431 * gdbtypes.c (build_gdbtypes): Likewise.
1432 * doublest.c (floatformat_from_length): Likewise.
1433 * gdbarch.c, gdbarch.h: Regenerate.
1435 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1437 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
1438 * ada-lang.c (ada_create_fundamental_type)
1439 (ada_language_arch_info): Likewise.
1440 * c-lang.c (c_create_fundamental_type): Likewise.
1441 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1442 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1443 * m2-lang.c (m2_create_fundamental_type): Likewise.
1444 * objc-lang.c (objc_create_fundamental_type): Likewise.
1445 * p-lang.c (pascal_create_fundamental_type): Likewise.
1446 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
1447 * c-exp.y (parse_number): Likewise.
1448 * objc-exp.y (parse_number): Likewise.
1449 * ada-lex.l (processInt): Likewise.
1450 * f-exp.y (parse_number): Likewise.
1451 * p-exp.y (parse_number): Likewise.
1452 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
1453 (gdbtypes_post_init, build_gdbtypes): Likewise.
1454 * p-lang.c (pascal_create_fundamental_type): Likewise.
1455 * parse.c (build_parse): Likewise.
1456 * xcoffread.c (_initialize_xcoffread): Likewise.
1457 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
1458 (read_range_type): Likewise.
1459 * objc-lang.c (objc_create_fundamental_type): Likewise.
1460 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
1461 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
1462 (m2_create_fundamental_type): Likewise.
1463 * c-lang.c (c_create_fundamental_type): Likewise.
1464 * coffread.c (coff_read_enum_type): Likewise.
1465 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
1466 * dwarf2read.c (new_symbol): Likewise.
1467 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
1468 * c-exp.y (parse_number): Likewise.
1469 * objc-exp.y (parse_number): Likewise.
1470 * ada-lex.l (processInt): Likewise.
1471 * f-exp.y (parse_number): Likewise.
1472 * p-exp.y (parse_number): Likewise.
1473 * valarith.c (value_binop): Likewise.
1474 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
1475 * ada-lang.c (ada_create_fundamental_type)
1476 (ada_language_arch_info): Likewise.
1477 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1478 * symfile.c (TARGET_LONG_BYTES): Likewise.
1479 * p-lang.c (pascal_create_fundamental_type): Likewise.
1480 * objc-lang.c (objc_create_fundamental_type): Likewise.
1481 * m2-lang.c (m2_create_fundamental_type): Likewise.
1482 * f-lang.c (f_create_fundamental_type): Likewise.
1483 * c-lang.c (c_create_fundamental_type): Likewise.
1484 * coffread.c (decode_base_type): Likewise.
1485 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
1486 * c-exp.y (parse_number): Likewise.
1487 * objc-exp.y (parse_number): Likewise.
1488 * p-exp.y (parse_number): Likewise.
1489 * ada-lang.c (ada_create_fundamental_type)
1490 (ada_language_arch_info): Likewise.
1491 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
1492 * stabsread.c (read_range_type): Likewise.
1493 * p-lang.c (pascal_create_fundamental_type): Likewise.
1494 * objc-lang.c (objc_create_fundamental_type): Likewise.
1495 * m2-lang.c (m2_create_fundamental_type): Likewise.
1496 * f-lang.c (f_create_fundamental_type): Likewise.
1497 * c-lang.c (c_create_fundamental_type): Likewise.
1498 * gdbarch.c, gdbarch.h: Regenerate.
1500 2007-06-12 Andreas Schwab <schwab@suse.de>
1502 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
1503 (struct frame_unwind): Add dealloc_cache.
1504 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
1506 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
1507 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
1508 (libunwind_frame_unwind): Set dealloc_cache.
1509 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
1511 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1512 Markus Deuling <deuling@de.ibm.com>
1514 * remote.c (remote_write_qxfer): New function.
1515 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
1516 (remote_read_qxfer): Do not cache empty objects.
1517 (_initialize_remote): Add PACKET_qXfer_spu_read and
1518 PACKET_qXfer_spu_write.
1520 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1522 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
1523 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
1525 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
1526 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
1527 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
1528 * spu-tdep.c (infospucmdlist): New variable.
1529 (spu_register_name): Handle additional pseudo registers.
1530 (spu_register_type): Likewise.
1531 (spu_pseudo_register_read): Likewise.
1532 (spu_pseudo_register_write): Likewise.
1533 (spu_pseudo_register_read_spu): New function.
1534 (spu_pseudo_register_write_spu): Likewise.
1535 (info_spu_event_command): New function.
1536 (info_spu_signal_command): Likewise.
1537 (info_spu_mailbox_list): Likewise.
1538 (info_spu_mailbox_command): Likewise.
1539 (spu_mfc_get_bitfield): Likewise.
1540 (info_spu_dma_cmdlist): Likewise.
1541 (info_spu_dma_command): Likewise.
1542 (info_spu_proxydma_command): Likewise.
1543 (info_spu_command): Likewise.
1544 (_initialize_spu_tdep): Install "info spu" commands.
1546 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1548 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
1549 accessing non-seekable spufs files.
1551 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1553 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
1554 gdbarch_skip_trampoline_code.
1555 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1556 * objc-lang.c (objc_skip_trampoline)
1557 (objc_submethod_helper_data): Likewise.
1558 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
1559 * infrun.c (handle_inferior_event): Likewise.
1560 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
1561 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
1562 gdbarch_in_solib_return_trampoline.
1563 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1564 * infrun.c (handle_inferior_event): Likewise.
1565 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
1566 * gdbarch.c, gdbarch.h: Regenerate.
1568 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1570 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
1571 * symtab.c (find_function_start_sal, in_prologue): Likewise.
1572 * linespec.c (minsym_found): Likewise.
1573 * infrun.c (step_into_function): Likewise.
1574 * gdbarch.c, gdbarch.h: Regenerate.
1576 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1578 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
1579 * valops.c (value_allocate_space_in_inferior): Likewise.
1580 * gdbarch.c, gdbarch.h: Regenerate.
1582 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1584 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
1585 gdbarch_memory_insert_breakpoint.
1586 * mem-break.c (memory_insert_breakpoint): Likewise.
1587 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
1588 gdbarch_memory_remove_breakpoint.
1589 * mem-break.c (memory_remove_breakpoint): Likewise.
1590 * gdbarch.c, gdbarch.h: Regenerate.
1592 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1594 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
1595 gdbarch_fetch_tls_load_module_address.
1596 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
1597 gdbarch_fetch_tls_load_module_address_p.
1598 * gdbarch.c, gdbarch.h: Regenerate.
1600 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1602 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
1603 gdbarch_decr_pc_after_break.
1604 * tracepoint.c (trace_dump_command): Likewise.
1605 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1606 * linux-thread-db.c (check_event): Likewise.
1607 * linux-nat.c (cancel_breakpoints_callback): Likewise.
1608 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
1609 * frame.h: Likewise (comment).
1610 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
1611 * aix-thread.c (aix_thread_wait): Likewise.
1612 * gdbarch.c, gdbarch.h: Regenerate.
1614 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1616 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
1617 gdbarch_address_class_type_flags.
1618 * dwarf2read.c (read_tag_pointer_type): Likewise.
1619 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
1620 gdbarch_address_class_type_flags_p.
1621 * dwarf2read.c (read_tag_pointer_type): Likewise.
1622 * gdbarch.c, gdbarch.h: Regenerate.
1624 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1626 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
1627 * value.c (value_as_address): Likewise (comment).
1628 * remote-mips.c (common_breakpoint): Likewise.
1629 * regcache.c (read_pc_pid): Likewise.
1630 * printcmd.c (do_one_display): Likewise.
1631 * monitor.c (monitor_write_memory, monitor_read_memory)
1632 (monitor_insert_breakpoint): Likewise.
1633 * mips-tdep.c (heuristic_proc_start): Likewise.
1634 * infrun.c (insert_step_resume_breakpoint_at_frame)
1635 (insert_step_resume_breakpoint_at_caller): Likewise.
1636 * buildsym.c (record_line): Likewise.
1637 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
1638 (arm_get_next_pc): Likewise.
1639 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1640 (store_regs): Likewise.
1641 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1642 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
1643 * gdbarch.c, gdbarch.h: Regenerate.
1645 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1647 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
1648 * tracepoint.c (scope_info): Likewise.
1649 * target.c (debug_print_register): Likewise.
1650 * stack.c (frame_info): Likewise.
1651 * sh-tdep.c (sh_register_reggroup_p): Likewise.
1652 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
1653 (sh64_media_print_registers_info)
1654 (sh64_compact_print_registers_info): Likewise.
1655 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
1656 * remote-sim.c (gdbsim_fetch_register): Likewise.
1657 * remote.c (packet_reg): Likewise (comment).
1658 * reggroups.c (default_register_reggroup_p): Likewise.
1659 * regcache.c (regcache_dump): Likewise.
1660 * printcmd.c (address_info): Likewise.
1661 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1662 * mt-dep.c (mt_registers_info): Likewise.
1663 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
1664 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
1665 (mips_read_fp_register_double, mips_print_fp_register)
1666 (mips_print_register, print_gp_register_row, mips_print_registers_info)
1667 (mips_register_sim_regno): Likewise.
1668 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
1669 * inf-ptrace.c (inf_ptrace_fetch_register)
1670 (inf_ptrace_store_register): Likewise.
1671 * infcmd.c (default_print_registers_info): Likewise.
1672 * ia64-linux-nat.c (ia64_linux_fetch_register)
1673 (ia64_linux_store_register): Likewise.
1674 * i386-linux-nat.c (fetch_register, store_register): Likewise.
1675 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1676 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1677 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
1678 (hppa_hpux_store_register): Likewise.
1679 * findvar.c (locate_var_value): Likewise.
1680 * dwarf2loc.c (locexpr_describe_location): Likewise.
1681 * dwarf2-frame.c (execute_cfa_program): Likewise.
1682 * arm-tdep.c (arm_push_dummy_call): Likewise.
1683 * arch-utils.c (legacy_register_sim_regno): Likewise.
1684 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
1685 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1686 * mi/mi-main.c (mi_cmd_data_list_register_names)
1687 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
1688 (mi_cmd_data_write_register_values): Likewise.
1689 * gdbarch.c, gdbarch.h: Regenerate.
1691 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1693 * target-memory.c (blocks_to_erase): Correct off-by-one error.
1695 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
1697 * remote.c (process_g_packet): Don't check size.
1698 * gdbarch.sh: Remove register_bytes_ok.
1699 * gdbarch.c: Regenerated.
1700 * gdbarch.h: Regenerated.
1701 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
1702 (m68k_register_bytes_ok): Remove.
1703 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
1705 2007-06-06 Andreas Schwab <schwab@suse.de>
1707 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
1708 (destroy_addr_space_name): Define.
1709 (libunwind_load): Get address of destroy_addr_space function.
1710 (libunwind_frame_cache): Destroy unw_addr_space_t object before
1711 returning unsuccessfully.
1712 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
1714 (libunwind_sigtramp_frame_sniffer): Likewise.
1715 (libunwind_get_reg_special): Likewise.
1717 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1719 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
1720 gdbarch_fetch_pointer_argument.
1721 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
1722 * gdbarch.c, gdbarch.h: Regenerate.
1724 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1726 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
1727 gdbarch_have_nonsteppable_watchpoint.
1728 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
1729 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
1730 gdbarch_cannot_step_breakpoint.
1731 * infrun.c (resume): Likewise.
1732 * gdbarch.c, gdbarch.h: Regenerate.
1734 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1736 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
1737 * stack.c (print_frame_args): Likewise.
1738 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
1739 * stack.c (print_args_stub, frame_info): Likewise.
1740 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
1741 * stack.c (print_args_stub, frame_info): Likewise.
1742 * gdbarch.c, gdbarch.h: Regenerate.
1744 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1746 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
1747 gdbarch_coff_make_msymbol_special.
1748 * coffread.c (coff_symtab_read): Likewise.
1749 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
1750 gdbarch_elf_make_msymbol_special.
1751 * elfread.c (elf_symtab_read): Likewise.
1752 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
1753 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
1754 * gdbarch.c, gdbarch.h: Regenerate.
1756 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1758 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
1759 gdbarch_frame_red_zone_size.
1760 * gdbarch.c, gdbarch.h: Regenerate.
1762 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1764 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
1765 * infcall.c (call_function_by_hand): Likewise.
1766 * gcore.c (derive_stack_segment): Likewise.
1767 * frame.c (frame_id_inner): Likewise.
1768 * arch-utils.c (core_addr_lessthan): Likewise (comment).
1769 * ada-lang.c (ensure_lval): Likewise.
1770 * gdbarch.c, gdbarch.h: Regenerate.
1772 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1774 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
1775 gdbarch_address_to_pointer.
1776 * findvar.c (store_typed_address): Likewise.
1777 * gdbtypes.c (make_pointer_type): Likewise (comment).
1778 * procfs.c (procfs_address_to_host_pointer): Likewise.
1779 * std-regs.c (value_of_builtin_frame_reg): Likewise.
1780 (value_of_builtin_frame_fp_reg): Likewise.
1781 (value_of_builtin_frame_pc_reg): Likewise.
1782 * utils.c (paddress): Likewise (comment).
1783 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1784 gdbarch_pointer_to_address.
1785 * findvar.c (extract_typed_address): Likewise.
1786 * gdbtypes.c (make_pointer_type): Likewise (comment).
1787 * valops.c (value_cast): Likewise (comment).
1788 * gdbarch.c, gdbarch.h: Regenerate.
1790 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1792 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1793 * infrun.c (handle_inferior_event): Likewise.
1794 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1795 gdbarch_get_longjmp_target_p.
1796 * breakpoint.c (breakpoint_re_set): Likewise.
1797 * infrun.c (handle_inferior_event): Likewise.
1798 * gdbarch.c, gdbarch.h: Regenerate.
1800 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1802 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1803 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1804 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1805 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1806 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1807 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1808 find_stub_with_shl_get, cover_find_stub_with_shl_get,
1809 initialize_hp_cxx_exception_support, child_enable_exception_callback,
1810 current_ex_event, child_get_current_exception_event): Remove.
1811 (hppa_hpux_inferior_created): Remove.
1812 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1814 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1815 (deprecated_exception_support_initialized): Remove.
1816 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1817 (deprecated_exception_support_initialized): Remove.
1818 (breakpoint_init_inferior): Remove handling of non-zero
1819 deprecated_exception_catchpoints_are_fragile.
1821 * symtab.h (deprecated_hp_som_som_object_present): Remove.
1822 * symtab.c (deprecated_hp_som_som_object_present): Remove.
1823 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1824 deprecated_hp_som_som_object_present.
1825 * eval.c (evaluate_subexp_standard): Likewise.
1826 * valops.c (value_cast): Likewise.
1828 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1829 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1830 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1832 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1834 * objfiles.h (ImportEntry, ExportEntry): Remove types.
1835 (struct objfile): Remove import_list, import_list_size,
1836 export_list, export_list_size members.
1837 (is_in_import_list): Remove prototype.
1838 * objfiles.c (is_in_import_list): Remove.
1839 * somread.c (init_import_symbols, init_export_symbols): Remove.
1840 (som_symfile_read): Do not call init_import_symbols. Do not
1841 set objfile->export_list and objfile->export_list_size.
1843 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1845 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1846 Use the original objfile if necessary.
1848 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
1850 * defs.h (ldirname): New prototype.
1851 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1853 * utils.c (ldirname): New function.
1854 * xml-tdesc.c (file_read_description_xml): Use ldirname.
1856 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1858 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1860 2007-06-01 Joel Brobecker <brobecker@adacore.com>
1862 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1864 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1866 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1868 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1870 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1871 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1872 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1873 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1874 (ppc_linux_in_sigtramp, insn_is_sigreturn,
1875 ppc_linux_at_sigtramp_return_path): Remove.
1877 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1879 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1880 (xtensa_register_write_masked, xtensa_register_read_masked)
1881 (xtensa_extract_return_value, xtensa_store_return_value
1882 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
1883 TARGET_BYTE_ORDER by gdbarch_byte_order.
1884 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1885 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1886 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1887 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1888 (sh64_push_dummy_call, sh64_extract_return_value)
1889 (sh64_store_return_value, sh64_register_convert_to_virtual)
1890 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1891 (sh64_pseudo_register_write, sh64_do_fp_register)
1892 (sh64_frame_prev_register): Likewise.
1893 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1894 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1895 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1896 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1897 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1898 * ppc-linux-nat.c (store_register): Likewise.
1899 * nto-tdep.c (nto_find_and_open_solib)
1900 (nto_init_solib_absolute_prefix): Likewise.
1901 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1902 (mips_convert_register_p, mips_eabi_push_dummy_call)
1903 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1904 (mips_o32_push_dummy_call, mips_o32_return_value)
1905 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
1906 (mips_read_fp_register_single, mips_read_fp_register_double)
1907 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
1908 (mips_breakpoint_from_pc): Likewise.
1909 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
1910 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
1911 (mips_linux_o32_sigframe_init): Likewise.
1912 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1913 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
1914 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
1915 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
1916 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1917 * coffread.c (process_coff_symbol): Likewise.
1918 * arm-tdep.c (convert_from_extended, convert_to_extended)
1919 (gdb_print_insn_arm): Likewise.
1921 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1923 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
1924 * i386-tdep.c (i386_dbx_reg_to_regnum)
1925 (i386_svr4_reg_to_regnum): Likewise.
1926 * inf-ptrace.c (inf_ptrace_fetch_registers)
1927 (inf_ptrace_store_registers): Likewise.
1928 * corelow.c (get_core_registers): Likewise.
1929 * i386-linux-nat.c (supply_gregset, fill_gregset)
1930 (i386_linux_fetch_inferior_registers)
1931 (i386_linux_store_inferior_registers): Likewise.
1932 * remote.c (init_remote_state,packet_reg_from_regnum)
1933 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
1934 (remote_prepare_to_store,store_registers_using_G)
1935 (remote_store_registers,remote_arch_state): Likewise.
1936 * tracepoint.c (encode_actions): Likewise.
1937 * mi/mi-main.c (mi_cmd_data_list_register_names)
1938 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1939 (mi_cmd_data_write_register_values): Likewise.
1940 * tui/tui-regs.c (tui_show_register_group)
1941 (tui_show_register_group): Likewise.
1942 * xtensa-tdep.h (FP_ALIAS): Likewise.
1943 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
1944 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
1945 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
1946 * win32-nat.c (do_win32_fetch_inferior_registers)
1947 (do_win32_store_inferior_registers,fetch_elf_core_registers
1948 * user-regs.h: Likewise (comment).
1949 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1950 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1951 * target-descriptions.h: Likewise (comment).
1952 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
1953 * target.c (debug_print_register): Likewise.
1954 * stack.c (frame_info): Likewise.
1955 * stabsread.c (define_symbol): Likewise.
1956 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
1957 (sh64_media_print_registers_info)
1958 (sh64_compact_print_registers_info): Likewise.
1959 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1960 * rs6000-nat.c (fetch_register,store_register): Likewise.
1961 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
1962 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
1963 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
1964 * remote-m32r-sdi.c (m32r_fetch_registers)
1965 (m32r_store_registers): Likewise.
1966 * reggroups.c (default_register_reggroup_p): Likewise.
1967 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
1968 (regcache_restore,regcache_dump): Likewise.
1969 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
1970 * mips-tdep.c (mips_xfer_register,mips_register_name)
1971 (mips_register_reggroup_p,mips_pseudo_register_read)
1972 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
1973 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
1974 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
1975 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
1976 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
1977 (print_gp_register_row,mips_print_registers_info)
1978 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1979 (mips_register_sim_regno): Likewise.
1980 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1981 (mips_linux_n32n64_sigframe_init): Likewise.
1982 * mips-linux-nat.c (mips_linux_register_addr)
1983 (mips64_linux_register_addr): Likewise.
1984 * findvar.c (value_of_register): Likewise.
1985 * infcmd.c (default_print_registers_info,registers_info)
1986 (print_vector_info,print_float_info): Likewise.
1987 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
1988 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1989 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1990 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
1991 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1992 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
1993 (ia64_cannot_store_register,ia64_linux_fetch_registers)
1994 (ia64_linux_store_registers): Likewise.
1995 * hpux-thread.c (hpux_thread_fetch_registers)
1996 (hpux_thread_store_registers): Likewise.
1997 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
1998 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
1999 (h8300_register_type): Likewise.
2000 * dwarf2-frame.c (dwarf2_frame_cache)
2001 (dwarf2_frame_state_alloc_regs): Likewise.
2002 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
2003 (cris_cannot_store_register,crisv32_cannot_fetch_register)
2004 (crisv32_cannot_store_register,cris_register_name): Likewise.
2005 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2006 * arch-utils.c (legacy_register_sim_regno)
2007 (legacy_virtual_frame_pointer): Likewise.
2008 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
2009 * arm-tdep.h: Likewise (comment).
2010 * frv-tdep.c (frv_register_sim_regno): Likewise.
2011 * m68klinux-nat.c (old_fetch_inferior_registers)
2012 (old_store_inferior_registers): Likewise.
2013 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2014 * irix5-nat.c (fetch_core_registers): Likewise.
2015 * hppa-tdep.c (hppa_frame_cache): Likewise.
2016 * hppa-linux-nat.c (hppa_linux_register_addr)
2017 (hppa_linux_fetch_inferior_registers)
2018 (hppa_linux_store_inferior_registers): Likewise.
2019 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
2020 (hppa_hpux_store_inferior_registers): Likewise.
2021 * amd64-nat.c (amd64_native_gregset_reg_offset)
2022 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
2023 * dbug-rom.c (dbug_regname): Likewise.
2024 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
2025 (HARD_PAGE_REGNUM (comment)): Likewise.
2026 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
2027 * i386-tdep.c (i386_dbx_reg_to_regnum)
2028 (i386_svr4_reg_to_regnum): Likewise.
2029 * mi/mi-main.c (mi_cmd_data_list_register_names)
2030 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2031 (mi_cmd_data_write_register_values): Likewise.
2032 * gdbarch.c, gdbarch.h: Regenerate.
2033 * tui/tui-regs.c (tui_show_register_group): Likewise.
2034 * xtensa-tdep.h (FP_ALIAS): Likewise.
2035 * user-regs.h: Likewise (comment).
2036 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2037 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2038 * target-descriptions.h: Likewise (comment).
2039 * target.c (debug_print_register): Likewise.
2040 * stack.c (frame_info): Likewise.
2041 * stabsread.c (define_symbol): Likewise.
2042 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
2043 (sh64_compact_print_registers_info): Likewise.
2044 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2045 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
2046 (regcache_restore,regcache_dump): Likewise.
2047 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
2048 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2049 (mips_stab_reg_to_regnum): Likewise.
2050 * findvar.c (value_of_register): Likewise.
2051 * infcmd.c (default_print_registers_info,registers_info)
2052 (print_vector_info,print_float_info): Likewise.
2053 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2054 * h8300-tdep.c (h8300_register_type): Likewise.
2055 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2056 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
2057 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
2058 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
2059 * parse.c: Remove comment.
2060 * gdbarch.c, gdbarch.h: Regenerate
2062 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2064 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
2065 gdbarch_cannot_fetch_register.
2066 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2067 * hppa-linux-nat.c (fetch_register): Likewise.
2068 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2069 * m68klinux-nat.c (fetch_register): Likewise.
2070 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
2072 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
2073 gdbarch_cannot_store_register.
2074 * hppa-linux-nat.c (store_register): Likewise.
2075 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
2076 * regcache.c (regcache_raw_write): Likewise.
2077 * m68klinux-nat.c (store_register): Likewise.
2078 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
2079 * gdbarch.c, gdbarch.h: Regenerate.
2081 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2083 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
2084 * gdbarch.c, gdbarch.h: Regenerate.
2086 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2088 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
2089 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2090 * gdbarch.c, gdbarch.h: Regenerate.
2092 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2094 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
2095 * ax-gdb.c (gen_bitfield_ref): Likewise.
2096 * mi/mi-main.c (get_register): Likewise.
2097 * findvar.c (default_value_from_register, extract_signed_integer)
2098 (extract_unsigned_integer, extract_long_unsigned_integer)
2099 (store_signed_integer, store_unsigned_integer): Likewise.
2100 * regcache.c (regcache_dump): Likewise.
2101 * value.c (lookup_internalvar, value_of_internalvar)
2102 (set_internalvar): Likewise.
2104 * valprint.c (print_binary_chars, print_octal_chars)
2105 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
2106 * infcmd.c (default_print_registers_info): Likewise.
2107 * arch-utils.c (selected_byte_order, show_endian): Likewise.
2108 * stabsread.c (define_symbol): Likewise.
2109 * doublest.c (floatformat_from_length, floatformat_from_type)
2110 (extract_typed_floating, store_typed_floating): Likewise.
2111 * gdbarch.c, gdbarch.h: Regenerate.
2113 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2115 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
2116 gdbarch_call_dummy_location.
2117 * infcall.c (call_function_by_hand): Likewise.
2118 * inferior.h: Change comment.
2119 * arch-utils.c: Change comment.
2120 * gdbarch.c, gdbarch.h: Regenerate.
2122 2007-05-28 Joel Brobecker <brobecker@adacore.com>
2124 * solib-aix5.c: Delete.
2125 * Makefile.in (solib-aix5.o): Delete rule.
2127 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
2129 * breakpoint.h (enum bpstat_what_main_action): Remove
2130 BPSTAT_WHAT_THROUGH_SIGTRAMP.
2131 * infrun.c (process_event_stop_test): Do not check for it.
2133 2007-05-22 Chris Dearman <chris@mips.com>
2134 Maciej W. Rozycki <macro@mips.com>
2136 * ser-unix.c (show_serial_hwflow): New function.
2137 (hardwire_raw): Add hardware flow control support.
2138 (_initialize_ser_hardwire): Add "set/show remoteflow".
2139 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
2140 * NEWS: Document the new command.
2142 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2144 * config/i386/tm-linux.h (sys_quotactl): Do not define.
2145 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
2146 define for i[[3456]]86-*-linux* native configurations.
2147 * config.in, configure: Regenerate.
2149 2007-05-19 Joel Brobecker <brobecker@adacore.com>
2151 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
2152 a core file. Add comment in the function description.
2154 2007-05-18 Caroline Tice <ctice@apple.com>
2156 * c-valprint.c (c_value_print): If the initialized field of the
2157 value struct is 0, print out "[uninitialized]" before the value.
2158 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
2159 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
2160 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
2161 ctx->initialized appropriately. Verify no location op follows
2163 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
2164 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
2165 set_value_initialized.
2166 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
2167 (decode_locdesc): Add case for DW_OP_GNU_uninit.
2168 * value.c (struct value): New field, initialized.
2169 (allocate_value): Initialize new field.
2170 (set_value_initialized): New function.
2171 (value_initialized): New function.
2172 * value.h (value_initialized): New extern declaration.
2173 (set_value_initialized): Likewise.
2175 2007-05-18 Caroline Tice <ctice@apple.com>
2177 * MAINTAINERS (Write After Approval): Add self.
2179 2007-05-17 Joel Brobecker <brobecker@adacore.com>
2181 * gdbtypes.c (make_reference_type): Preserve the type chain
2182 and set the length of all the variants of the pointer type.
2184 2007-05-17 Joel Brobecker <brobecker@adacore.com>
2186 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
2187 and set the length of all the variants of the pointer type.
2189 2007-05-17 Maciej W. Rozycki <macro@mips.com>
2191 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
2193 (mips_o64_push_dummy_call): Reformat a comment.
2195 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
2197 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
2198 (score_prologue_frame_base_address): Return fp to keep gdb print
2199 local variables correctly when debugging information is stabs.
2201 (score_analyze_prologue): For software watchpoint, fetch all the
2202 instructions from range [startaddr, pc] once and identify them locally
2203 to reduce memory access.
2204 (score_malloc_and_get_memblock, score_free_memblock)
2205 (score_adjust_memblock_ptr): New functions.
2206 (score_fetch_inst): Fetch single instruction or mutiple instructions.
2208 (score_target_can_use_watch, score_stopped_by_watch)
2209 (score_target_insert_watchpoint, score_target_remove_watchpoint)
2210 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
2211 New functions for remote & local hw-watchpoint and hw-breakpoint.
2213 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
2215 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
2216 declarations as well.
2218 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2220 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
2221 * config/arm/tm-embed.h: Delete file.
2223 * arm-tdep.h (arm_software_single_step): Declare.
2224 * arm-tdep.c (arm_software_single_step): Make global.
2225 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
2227 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
2228 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
2229 * armobsd-tdep.c (armobsd_init_abi): ... here ...
2230 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
2232 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
2233 allow defines to be overriden by TM file.
2234 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
2235 change default to {0xbe,0xbe}.
2236 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
2237 arm_obsd_thumb_be_breakpoint): New global variables.
2238 (armobsd_init_abi): Override tdep->thumb_breakpoint and
2239 tdep->thumb_breakpoint_size.
2240 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
2241 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
2242 tdep->thumb_breakpoint_size.
2244 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
2246 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2248 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
2251 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
2252 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
2253 (mips_stack_argsize_string, mips_stack_argsize): Delete.
2254 (mips_abi_regsize): Simplify.
2255 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2256 (mips_n32n64_return_value, mips_o32_push_dummy_call)
2257 (mips_o32_return_value, mips_o64_push_dummy_call)
2258 (mips_o64_return_value): Propogate constant register sizes. Use the
2259 ABI register size instead of mips_stack_argsize.
2260 (mips_dump_tdep): Don't print mips_stack_argsize.
2261 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
2264 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2266 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
2267 * config/mips/tm-linux.h: Delete.
2268 * mips-linux-tdep.c (mips_svr4_so_ops): New.
2269 (mips_linux_in_dynsym_resolve_code): Make static. Use
2270 svr4_in_dynsym_resolve_code.
2271 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
2273 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
2275 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
2276 * Makefile.in (mips-linux-tdep.o): Update.
2277 * solib.c (set_solib_ops): New.
2278 (current_target_so_ops): Update comment.
2279 * solib.h (set_solib_ops): New prototype.
2281 2007-05-16 Chris Dearman <chris@mips.com>
2283 * printcmd.c (do_examine): Fix typos in a comment.
2285 2007-05-16 Richard Sandiford <richard@codesourcery.com>
2287 * configure.ac: Allow sysroots to be relocated under $prefix as
2288 well as $exec_prefix.
2289 * configure: Regenerate.
2291 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2293 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
2294 (offsetof): Do not define.
2295 (find_stub_with_shl_get): Use numerical value 3 instead of
2296 symbolic value TYPE_PROCEDURE.
2298 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2300 * gdb_proc_service.h (paddr_t): Delete typedef.
2301 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
2302 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
2303 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
2304 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
2305 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
2306 * Makefile.in (proc-service.o): Update.
2308 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2310 * Makefile.in (mips-tdep.o): Update.
2311 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
2314 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2316 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
2317 instead of store_typed_address.
2318 * value.c (pack_long): New.
2319 (value_from_longest): Use it.
2320 * value.h (pack_long): New prototype.
2322 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2324 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
2325 DW_EH_PE_signed if appropriate.
2327 2007-05-14 Paul Brook <paul@codesourcery.com>
2328 Daniel Jacobowitz <dan@codesourcery.com>
2330 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
2332 (dwarf_decode_lines): Check for line info without a file.
2334 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2336 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
2339 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2341 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
2343 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
2345 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
2347 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2349 * gdbarch.sh (read_sp): Remove.
2350 * gdbarch.c, gdbarch.h: Regenerate.
2351 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
2353 * avr-tdep.c (avr_read_sp): Remove.
2354 (avr_unwind_sp): New function.
2355 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
2356 * mips-tdep.c (mips_read_sp): Remove.
2357 (mips_unwind_sp): New function.
2358 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
2359 * score-tdep.c (score_read_unsigned_register): Remove.
2360 (score_read_sp): Remove.
2361 (score_unwind_sp): New function.
2362 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
2364 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
2366 * buildsym.c (start_subfile): Handle absolute pathnames
2367 while comparing subfile names.
2369 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2371 * hppa-hpux-tdep.c: Include "regcache.h".
2372 * hppa-linux-tdep.c: Likewise.
2373 * hppa-tdep.c: Include "gdb_stdint.h".
2374 (find_unwind_entry): Cast host pointer to uintptr_t before passing
2376 * Makefile.in: Update dependencies.
2378 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2380 * blockframe.c: Remove obsolete comments.
2381 * alpha-nat.c (fetch_osf_core_registers): Update comment.
2382 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
2383 * hppa-tdep.h (enum hppa_regnum): Likewise.
2384 * mips-tdep.h: Likewise.
2385 * m68hc11-tdep.c: Likewise.
2387 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2389 * inferior.h (read_sp): Remove prototype.
2390 * regcache.c (read_sp): Remove.
2391 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
2392 * infcall.c (call_function_by_hand): Likewise.
2393 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
2395 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2397 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2399 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
2400 instead of read_register and read_register_pid.
2402 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
2403 argument instead of PTID. Use regcache functions instead of
2405 (ia64_linux_insert_watchpoint): Update call.
2406 (ia64_linux_stopped_data_address): Use regcache functions
2407 instead of read_register_pid and write_register_pid.
2409 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2411 * libunwind-frame.h (struct regcache): Add forward declaration.
2412 (libunwind_get_reg_special): Add REGCACHE argument.
2413 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
2414 argument. Pass it to unw_init_remote_p.
2416 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
2417 libunwind_get_reg_special.
2418 (ia64_access_reg): Remove "write" case.
2419 (ia64_access_fpreg): Likewise. Read from next_frame passed
2420 as callback argument instead of from current_regcache.
2421 (ia64_access_rse_reg): Remove "write" case. Read from regcache
2422 passed as callback argument instead of from current_regcache.
2423 (ia64_access_rse_fpreg): New function.
2424 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
2426 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2428 * NEWS: Mention SPU overlay support.
2430 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2432 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
2434 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2436 * breakpoint.c (remove_breakpoint): Do not remove software
2437 breakpoints in unmapped overlay sections.
2439 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2441 * spu-tdep.c: Include "observer.h".
2442 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
2443 (spu_overlay_data): New variable.
2444 (struct spu_overlay_table): New type.
2445 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
2446 spu_overlay_new_objfile): New functions.
2447 (spu_gdbarch_init): Install spu_overlay_update.
2448 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
2449 allocate spu_overlay_data objfile data.
2451 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2453 * gdbarch.sh (overlay_update): New gdbarch function.
2454 (struct obj_section): Add forward declaration.
2455 * gdbarch.c, gdbarch.h: Regenerate.
2457 * symfile.c (simple_overlay_update): Make global.
2458 (target_overlay_update): Remove variable.
2459 (overlay_is_mapped): Call gdbarch_overlay_update instead of
2460 target_overlay_update.
2461 (overlay_load_command): Likewise.
2462 * symfile.h (struct obj_section): Add forward declaration.
2463 (simple_overlay_update): Add prototype.
2465 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
2467 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2469 * observer.sh: Add "struct objfile" forward declaration.
2470 * target.h (deprecated_target_new_objfile_hook): Remove.
2471 * symfile.c (deprecated_target_new_objfile_hook): Remove.
2472 (clear_symtab_users): Call observer_notify_new_objfile.
2473 (symbol_file_add_with_addrs_or_offsets): Likewise.
2474 * rs6000-nat.c: Include "observer.h".
2475 (vmap_ldinfo): Call observer_notify_new_objfile.
2476 (xcoff_relocate_core): Likewise.
2477 * remote.c (remote_new_objfile_chain): Remove.
2478 (remote_new_objfile): Do not call remote_new_objfile_chain.
2479 (_initialize_remote): Use observer_attach_new_objfile.
2480 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
2481 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
2482 (_initialize_tui_hooks): Use observer_attach_new_objfile.
2483 * aix-thread.c: Include "observer.h".
2484 (target_new_objfile_chain): Remove.
2485 (new_objfile): Do not call target_new_objfile_chain.
2486 (_initialize_aix_thread): Use observer_attach_new_objfile.
2487 * hpux-thread.c: Include "observer.h"
2488 (target_new_objfile_chain): Remove.
2489 (hpux_thread_new_objfile): Make static. Do not call
2490 target_new_objfile_chain.
2491 (_initialize_hpux_thread): Use observer_attach_new_objfile.
2492 * linux-thread-db.c: Include "observer.h".
2493 (target_new_objfile_chain): Remove.
2494 (thread_db_new_objfile): Do not call target_new_objfile_chain.
2495 (_initialize_thread_db): Use observer_attach_new_objfile.
2496 * sol-thread.c: Include "observer.h".
2497 (target_new_objfile_chain): Remove.
2498 (sol_thread_new_objfile): Make static. Do not call
2499 target_new_objfile_chain.
2500 (_initialize_sol_thread): Use observer_attach_new_objfile.
2501 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
2502 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
2505 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2507 * gdbarch.sh (remote_translate_xfer_address): Remove.
2508 * gdbarch.h, gdbarch.c: Regenerate.
2509 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
2510 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
2511 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
2512 call gdbarch_remote_translate_xfer_address.
2513 * frv-tdep.c (frv_gdbarch_init): Do not call
2514 set_gdbarch_remote_translate_xfer_address.
2515 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
2516 (ia64_gdbarch_init): Do not install it.
2518 2007-05-11 Bob Wilson <bob.wilson@acm.org>
2520 * NEWS: Mention change in handling the -tui option.
2522 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
2524 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
2527 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2529 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
2530 (breakpoint_inserted_here_p): Call it.
2531 (software_breakpoint_inserted_here_p): Likewise.
2533 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
2535 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
2536 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
2537 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
2538 (inf_ptrace_store_register): Likewise.
2539 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
2540 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
2542 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
2544 * linux-nat.c (linux_trad_target): Adapt parameter list.
2545 * linux-nat.h (linux_trad_target): Likewise.
2547 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
2549 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
2550 (mips_linux_cannot_store_register): Likewise.
2551 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
2552 Return (CORE_ADDR) -1 for registers that cannot be fetched or
2553 stored via ptrace. Use GDBARCH instead of current_gdbarch.
2554 (mips64_linux_register_addr): Likewise.
2555 (mips_linux_register_u_offset): Adapt parameter list. Pass
2556 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
2558 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2559 * config/mips/nm-linux.h: Delete file.
2561 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2563 * remote.c (remote_detach): Error out if remote can't detach.
2565 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
2567 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
2568 instruction's opcode in the "opcode" variable and declares new
2569 variable "closing_insn".
2571 2007-05-10 Chris Dearman <chris@mips.com>
2572 Maciej W. Rozycki <macro@mips.com>
2574 * cli/cli-setshow.c (do_setshow_command): Remove trailing
2575 whitespace when setting a var_filename.
2577 2007-05-09 Bob Wilson <bob.wilson@acm.org>
2579 * main.c (captured_main): Recognize -tui option and print an error
2580 message when the TUI is not configured.
2582 2007-05-09 Andreas Schwab <schwab@suse.de>
2584 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
2585 set removed members.
2586 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2588 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2590 * gdbarch.sh (deprecated_store_struct_return): Remove.
2591 * gdbarch.c, gdbarch.h: Regenerate.
2592 * frv-tdep.c (frv_store_struct_return): Remove.
2593 (frv_gdbarch_init): Do not install it.
2595 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2597 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
2598 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
2599 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
2601 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2603 * spu-linux-nat.c: Include "gdb_stdint.h".
2604 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
2605 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
2606 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
2607 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
2608 (spu_child_wait): Mark up string for translation.
2610 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
2611 Luis Machado <luisgpm@br.ibm.com>
2613 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
2614 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
2615 BC_INSTRUCTION): Define.
2616 (deal_with_atomic_sequence): New function.
2617 (rs6000_software_single_step): Call deal_with_atomic_sequence.
2618 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
2619 gdbarch_software_single_step routine.
2621 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2623 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
2624 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
2625 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
2626 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
2627 spu_child_post_attach, spu_fetch_inferior_registers,
2628 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
2629 memory addresses as ULONGEST, not CORE_ADDR.
2631 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2633 * gdbarch.sh: Add skip_permanent_breakpoint callback.
2634 * gdbarch.h, gdbarch.c: Regenerate.
2636 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
2637 (resume): Call gdbarch_skip_permanent_breakpoint instead of
2638 SKIP_PERMANENT_BREAKPOINT. Inline default case.
2640 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
2641 Add REGCACHE argument. Use it instead of read/write_register.
2642 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
2644 * config/pa/tm-hppah.h: Delete file.
2645 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
2646 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
2648 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2650 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
2651 * NEWS: Mention improved C++ thunk support.
2652 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
2653 * cp-abi.c (cplus_skip_trampoline): New.
2654 * cp-abi.h (cplus_skip_trampoline): New prototype.
2655 (struct cp_abi_ops): Add skip_trampoline member.
2656 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
2657 (init_gnuv3_ops): Set skip_trampoline.
2659 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2661 * rs6000-tdep.c (struct frame_extra_info): Delete.
2663 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2665 * linux-thread-db.c: Update some FIXME comments.
2666 (thread_db_xfer_partial): Delete.
2667 (init_thread_db_ops): Do not set to_xfer_partial.
2669 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2671 * inftarg.c, infptrace.c: Remove files.
2672 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
2673 (inftarg.o, infptrace.o): Remove rules.
2674 * gdbcore.h (register_addr): Remove prototype.
2675 * inferior.h (kill_inferior, store_inferior_registers,
2676 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
2677 call_ptrace, pre_fork_inferior): Remove prototypes.
2678 * target.h (child_xfer_memory, child_pid_to_exec_file,
2679 child_core_file_to_sym_file, child_post_attach,
2680 child_post_startup_inferior, child_acknowledge_created_inferior,
2681 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
2682 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
2683 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
2684 child_follow_fork, child_reported_exec_events_per_exec_call,
2685 child_has_exited, child_thread_alive): Remove prototypes.
2687 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2689 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
2690 (sparc_store_inferior_registers): Likewise.
2691 * sparc-nat.c (fetch_inferior_registers): Rename to ...
2692 (sparc_fetch_inferior_registers): ... this.
2693 (store_inferior_registers): Rename to ...
2694 (sparc_store_inferior_registers): ... this.
2695 (sparc_target): Update callback names.
2696 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
2697 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
2699 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2701 * linux-nat.c (child_post_attach): Rename to ...
2702 (linux_child_post_attach): ... this. Make static.
2703 (child_follow_fork): Rename to ...
2704 (linux_child_follow_fork): ... this. Make static.
2705 (child_insert_fork_catchpoint): Rename to ...
2706 (linux_child_insert_fork_catchpoint): ... this. Make static.
2707 (child_insert_vfork_catchpoint): Rename to ...
2708 (linux_child_insert_vfork_catchpoint): ... this. Make static.
2709 (child_insert_exec_catchpoint): Rename to ...
2710 (linux_child_insert_exec_catchpoint): ... this. Make static.
2711 (child_pid_to_exec_file): Rename to ...
2712 (linux_child_pid_to_exec_file): ... this. Make static.
2714 (linux_handle_extended_wait): Update call.
2715 (linux_xfer_partial): Update callback routine names.
2717 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2719 * configure.host (alpha*-*-osf[12]*): Remove support.
2720 * NEWS: Mention removed configurations.
2722 * config/alpha/alpha-osf1.mh: Delete file.
2723 * config/alpha/alpha-osf2.mh: Delete file.
2724 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
2726 * config/alpha/nm-osf.h: Delete file.
2727 * config/alpha/nm-osf2.h: Delete file.
2728 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
2729 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
2730 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
2732 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
2733 (register_addr, kernel_u_size): Remove.
2734 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
2736 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2738 * regcache.c (regcache_invalidate): New function.
2739 (register_cached): Remove.
2740 (set_register_cached): Remove.
2741 (deprecated_registers_fetched): Remove.
2742 (registers_changed): Use regcache_invalidate instead
2743 of set_register_cached.
2744 (regcache_raw_read): Update comment.
2746 * regcache.h (regcache_invalidate): Add prototype.
2747 (register_cached): Remove.
2748 (set_register_cached): Remove.
2749 (deprecated_registers_fetched): Remove.
2751 * findvar.c (value_of_register): Do not call register_cached.
2752 * frame.c (frame_register): Likewise.
2753 * tui/tui-regs.c (tui_get_register): Likewise.
2755 * remote.c (fetch_register_using_p): Do not call set_register_cached.
2756 (process_g_packet): Likewise.
2757 (remote_fetch_registers): Likewise.
2758 * remote-sim.c (gdbsim_fetch_register): Likewise.
2759 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
2760 by regcache_invalidate.
2761 (mt_pseudo_register_write): Likewise.
2762 * sh-tdep.c (sh_pseudo_register_write): Likewise.
2764 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
2765 call by loop over regcache_raw_supply (..., NULL).
2767 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2769 * target.h (struct target_ops): Add REGCACHE parameter to
2770 to_prepare_to_store.
2771 (target_prepare_to_store): Likewise.
2772 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
2773 (update_current_target): Adapt prepare_to_store de_fault rule.
2775 * regcache.c (regcache_raw_write): Pass regcache to
2776 target_prepare_to_store.
2778 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
2779 Do not call CHILD_PREPARE_TO_STORE.
2780 * gnu-nat.c (gnu_prepare_to_store): Likewise.
2781 * procfs.c (procfs_prepare_to_store): Likewise.
2783 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2784 * go32-nat.c (go32_prepare_to_store): Likewise.
2785 * monitor.c (monitor_prepare_to_store): Likewise.
2786 * nto-procfs.c (procfs_prepare_to_store): Likewise.
2787 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2788 * remote-mips.c (mips_prepare_to_store): Likewise.
2789 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2790 * win32-nat.c (win32_prepare_to_store): Likewise.
2792 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2793 Use it instead of current_regcache.
2795 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2796 parameter. Pass it on to next target.
2797 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2799 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2801 * target.h (struct regcache): Add forward declaration.
2802 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2803 and to_store_registers target operations.
2804 (target_fetch_registers, target_store_registers): Update.
2806 * regcache.c (regcache_raw_read): Replace register_cached by
2807 regcache_valid_p. Pass regcache to target_fetch_registers.
2808 (regcache_raw_write): Pass regcache to target_store_registers.
2810 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2811 store_regs, store_wmmx_regs): Replace register_cached by
2814 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2815 to target_fetch_registers calls.
2816 * corelow.c (core_open): Likewise.
2817 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2818 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2819 ps_lsetfpregs): Likewise.
2820 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2821 ps_lsetfpregs): Likewise.
2822 * win32-nat.c (win32_resume): Likewise.
2823 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2824 to target_store_registers call.
2825 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2827 * inferior.h (store_inferior_registers): Update prototype.
2828 (fetch_inferior_registers): Likewise.
2829 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2830 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2831 Update function pointer signatures.
2833 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2834 use it instead of current_regcache, update calls.
2835 (aix_thread_store_registers): Likewise.
2836 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2837 (alphabsd_store_inferior_registers): Likewise.
2838 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2839 (amd64bsd_store_inferior_registers): Likewise.
2840 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2841 (amd64_linux_store_inferior_registers): Likewise.
2842 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2843 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2844 fetch_wmmx_regs, store_wmmx_regs): Likewise.
2845 (arm_linux_fetch_inferior_registers): Likewise.
2846 (arm_linux_store_inferior_registers): Likewise.
2847 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2848 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2849 (store_register, store_regs, store_fp_register, store_fp_regs,
2850 armnbsd_store_registers): Likewise.
2851 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2852 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2853 (bsd_uthread_store_registers): Likewise.
2854 * corelow.c (get_core_registers): Likewise.
2855 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2856 go32_store_registers): Likewise.
2857 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2858 (hppabsd_store_registers): Likewise.
2859 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2860 (hppa_hpux_fetch_inferior_registers): Likewise.
2861 (hppa_hpux_store_register): Likewise.
2862 (hppa_hpux_store_inferior_registers): Likewise.
2863 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2864 (hppa_linux_fetch_inferior_registers): Likewise.
2865 (hppa_linux_store_inferior_registers): Likewise.
2866 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2867 (hpux_thread_store_registers): Likewise.
2868 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2869 (i386bsd_store_inferior_registers): Likewise.
2870 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2871 gnu_store_registers): Likewise.
2872 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2873 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2875 (i386_linux_fetch_inferior_registers): Likewise.
2876 (i386_linux_store_inferior_registers): Likewise.
2877 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2878 (ia64_linux_fetch_registers): Likewise.
2879 (ia64_linux_store_register): Likewise.
2880 (ia64_linux_store_registers): Likewise.
2881 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2882 (inf_child_store_inferior_registers): Likewise.
2883 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2884 (inf_ptrace_fetch_registers): Likewise.
2885 (inf_ptrace_store_register): Likewise.
2886 (inf_ptrace_store_registers): Likewise.
2887 * infptrace.c (fetch_register, store_register): Likewise.
2888 (fetch_inferior_registers, store_inferior_registers): Likewise.
2889 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2890 (m32r_linux_fetch_inferior_registers): Likewise.
2891 (m32r_linux_store_inferior_registers): Likewise.
2892 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2893 (m68kbsd_store_inferior_registers): Likewise.
2894 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2895 store_register, old_store_inferior_registers, fetch_regs, store_regs,
2896 fetch_fpregs, store_fpregs): Likewise.
2897 (m68k_linux_fetch_inferior_registers): Likewise.
2898 (m68k_linux_store_inferior_registers): Likewise.
2899 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2900 (m88kbsd_store_inferior_registers): Likewise.
2901 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2902 (mips64obsd_store_inferior_registers): Likewise.
2903 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2904 (mips64_linux_regsets_store_registers): Likewise.
2905 (mips64_linux_fetch_registers): Likewise.
2906 (mips64_linux_store_registers): Likewise.
2907 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2908 (mipsnbsd_store_inferior_registers): Likewise.
2909 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
2910 (monitor_fetch_registers, monitor_store_registers): Likewise.
2911 * nto-procfs.c (procfs_fetch_registers): Likewise.
2912 (procfs_store_registers): Likewise.
2913 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
2914 fetch_register, supply_vrregset, fetch_altivec_registers,
2915 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
2916 (store_altivec_register, store_spe_register, store_register,
2917 fill_vrregset, store_altivec_registers, store_ppc_registers,
2918 ppc_linux_store_inferior_registers): Likewise.
2919 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
2920 (ppcnbsd_store_inferior_registers): Likewise.
2921 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
2922 (ppcobsd_store_registers): Likewise.
2923 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2924 * remote.c (fetch_register_using_p, process_g_packet,
2925 fetch_registers_using_g, remote_fetch_registers): Likewise.
2926 (store_register_using_P, store_registers_using_G,
2927 remote_store_registers): Likewise.
2928 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
2929 m32r_store_register, m32r_store_register): Likewise.
2930 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
2931 * remote-sim.c (gdbsim_fetch_register): Likewise.
2932 (gdbsim_store_register): Likewise.
2933 * rs6000-nat.c (fetch_register, store_register): Likewise.
2934 (rs6000_fetch_inferior_registers): Likewise.
2935 (rs6000_store_inferior_registers): Likewise.
2936 * s390-nat.c (fetch_regs, store_regs): Likewise.
2937 (fetch_fpregs, store_fpregs): Likewise.
2938 (s390_linux_fetch_inferior_registers): Likewise.
2939 (s390_linux_store_inferior_registers): Likewise.
2940 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2941 (shnbsd_store_inferior_registers): Likewise.
2942 * sol-thread.c (sol_thread_fetch_registers): Likewise.
2943 (sol_thread_store_registers): Likewise.
2944 * sparc-nat.c (fetch_inferior_registers): Likewise.
2945 (store_inferior_registers): Likewise.
2946 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2947 (spu_store_inferior_registers): Likewise.
2948 * target.c (debug_print_register): Likewise.
2949 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
2950 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
2951 (vaxbsd_store_inferior_registers): Likewise.
2952 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
2953 (win32_fetch_inferior_registers): Likewise.
2954 (win32_store_inferior_registers): Likewise.
2956 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2958 * gdbcore.h (struct regcache): Add forward declaration.
2959 (struct core_fns): Add REGCACHE argument to core_read_registers
2961 * corelow.c (get_core_register_section): Add REGCACHE argument,
2962 use it instead of current_regcache, pass it to core_read_registers
2964 (get_core_registers): Add current_regcache as parameter to
2965 get_core_register_section calls.
2967 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
2968 use it instead of current_regcache.
2969 * armnbsd-nat.c (fetch_core_registers): Likewise.
2970 (fetch_elfcore_registers): Likewise.
2971 * core-regset.c (fetch_core_registers): Likewise.
2972 * cris-tdep.c (fetch_core_registers): Likewise.
2973 * irix5-nat.c (fetch_core_registers): Likewise.
2974 * m68klinux-nat.c (fetch_core_registers): Likewise.
2975 * mips-linux-tdep.c (fetch_core_registers): Likewise.
2976 * win32-nat.c (fetch_elf_core_registers): Likewise.
2978 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2980 * gregset.h (struct regcache): Add forward declaration.
2981 (supply_gregset): Add REGCACHE parameter, make GREGS const.
2982 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
2983 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
2984 (fill_gregset): Add REGCACHE parameter.
2985 (fill_fpregset): Likewise.
2986 (fill_fpxregset): Likewise.
2988 Update all definitions accordingly:
2989 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
2990 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
2991 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
2992 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
2993 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
2994 (supply_gregset): Add REGCACHE parameter, use it instead of
2995 current_regcache. Make GREGSETP parameter const, adapt casts.
2996 (supply_fpregset): Add REGCACHE parameter, use it instead of
2997 current_regcache. Make FPREGSETP parameter const, adapt casts.
2998 (fill_gregset): Add REGCACHE parameter, use it instead of
3000 (fill_fpregset): Likewise.
3002 Update all callers to pass in current_regcache as the new argument:
3003 * core-regset.c: Include "regcache.h".
3004 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
3005 * procfs.c: Include "regcache.h".
3006 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
3007 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
3008 (procfs_do_thread_registers): Likewise.
3009 (procfs_make_note_section): Likewise.
3010 * proc-service.c: Include "regcache.h".
3011 (ps_lgetregs): Update fill_gregset call.
3012 (ps_lsetregs): Update supply_gregset call.
3013 (ps_lgetfpregs): Update fill_fpregset call.
3014 (ps_lsetfpregs): Update supply_fpregset call.
3015 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
3016 supply_fpregset calls.
3017 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
3018 (ps_lgetregs): Update fill_gregset call.
3019 (ps_lsetregs): Update supply_gregset call.
3020 (ps_lgetfpregs): Update fill_fpregset call.
3021 (ps_lsetfpregs): Update supply_fpregset call.
3023 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
3024 fill_fpregset, and fill_fpxregset calls.
3025 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
3026 (store_regs): Update fill_gregset call.
3027 (fetch_fpregs): Update supply_fpregset call.
3028 (store_fpregs): Update fill_fpregset call.
3029 (fetch_fpxregs): Update supply_fpxregset call.
3030 (store_fpxregs): Update fill_fpxregset call.
3031 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
3032 (store_regs): Update fill_gregset call.
3033 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
3034 (store_regs): Update fill_gregset call.
3035 (fetch_fpregs): Update supply_fpregset call.
3036 (store_fpregs): Update fill_fpregset call.
3037 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
3038 * s390-nat.c (fetch_regs): Update supply_gregset call.
3039 (store_regs): Update fill_gregset call.
3040 (fetch_fpregs): Update supply_fpregset call.
3041 (store_fpregs): Update fill_fpregset call.
3043 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
3046 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3048 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
3049 it instead of current_regcache.
3050 (parse_register_dump): Add REGCACHE parameter, pass it to
3051 supply_register callback.
3052 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
3053 parse_register_dump.
3054 (monitor_dump_regs): Add REGCACHE parameter, pass it to
3055 parse_register_dump and dumpregs callback.
3056 (monitor_wait): Pass current_regcache to parse_register_dump and
3058 (monitor_fetch_register): Pass current_regcache to
3059 monitor_supply_register.
3060 (monitor_fetch_registers): Pass current_regcache to
3062 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
3063 supply_register and dumpregs callbacks.
3064 (monitor_supply_register, monitor_dump_reg_block): Update
3066 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
3067 it to monitor_supply_register.
3068 * dink32-rom.c (dink32_supply_register): Likewise.
3069 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
3070 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
3071 instead of current_regcache.
3073 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3075 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
3076 Add REGCACHE parameter. Use it instead of current_regcache.
3077 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
3078 i386nto_supply_gregset and i386nto_supply_fpregset.
3079 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
3080 of current_regcache.
3082 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
3083 nto_supply_ helper functions.
3084 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
3086 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
3088 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
3089 supply_greget, supply_fpregset, supply_altregset, supply_regset,
3090 and regset_fill member function pointers.
3091 (nto_dummy_supply_regset): Adapt prototype.
3093 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3095 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
3096 instead of current_regcache. Make REGS const.
3097 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
3098 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
3100 * shnbsd-nat.c: Include "regcache.h".
3101 (shnbsd_fetch_inferior_registers): Pass current_regcache to
3103 (shnbsd_store_inferior_registers): Pass current_regcache to
3105 * Makefile.in (shbsd-nat.o): Update dependencies.
3107 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3109 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
3110 instead of current_regcache.
3111 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
3112 Make GREGSETP const, remove superfluous casts.
3113 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3114 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
3116 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3117 (supply_64bit_reg): Likewise
3118 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
3119 Make GREGSETP const, adapt casts accordingly.
3120 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3121 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
3123 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3124 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
3126 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
3127 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
3128 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
3130 * mips-linux-nat.c: Include "regcache.h".
3131 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3132 current_regcache to mips{64}_(supply|fill)_ helper routines.
3133 (mips64_linux_regsets_fetch_registers): Likewise.
3134 (mips64_linux_regsets_store_registers): Likewise.
3136 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
3137 REGCACHE argument; replace current_regcache. Make REGS const.
3138 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
3139 replace current_regcache.
3140 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
3141 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
3142 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
3143 mipsnbsd_store_inferior_registers): Pass current_regcache to
3144 mipsnbsd_(supply|fill)_... helper routines.
3146 * Makefile.in (mips-linux-nat.o): Update dependencies.
3148 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3150 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
3151 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
3152 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
3153 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
3154 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
3155 * i386gnu-nat.c (store_fpregs): Likewise.
3156 * i386v4-nat.c (fill_fpregset): Likewise.
3157 * go32-nat.c (store_register, go32_store_registers): Likewise.
3159 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3161 * cris-tdep.c (supply_gregset): Rename to ...
3162 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
3163 instead of current_regcache.
3164 (fetch_core_registers): Update call. Pass current_regcache.
3166 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3168 * arnmnbsd-nat.c (supply_gregset): Rename to ...
3169 (arm_supply_gregset): ... this. Add REGCACHE parameter.
3170 Use it instead of current_regcache.
3171 (supply_fparegset): Rename to ...
3172 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
3173 Use it instead of current_regcache.
3174 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
3175 (fetch_core_registers, fetch_elfcore_registers): Likewise.
3177 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3179 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
3180 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
3181 use it instead of current_regcache.
3182 * alpha-tdep.h (struct regcache): Add forward declaration.
3183 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
3184 alpha_fill_fp_regs): Update prototypes.
3186 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
3187 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
3188 * alpha-linux-nat.c: Include "regcache.h".
3189 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3190 current_regcache to alpha_supply/fill_ routines.
3192 * alphabsd-tdep.c: Include "regcache.h".
3193 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
3194 pass it to alpha_supply_ routines. Make REGS const.
3195 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
3196 pass it to alpha_fill_ routines.
3197 * alphabsd-tdep.h (struct regcache): Add forward declaration.
3198 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
3199 alphabsd_fill_fpreg): Update prototypes.
3201 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
3202 fill_fpregset, alphabsd_fetch_inferior_registers,
3203 alphabsd_store_inferior_registers): Pass current_regcache to
3204 alphabsd_supply/fill_ routines.
3206 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
3209 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3211 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
3212 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
3213 instead of current_regcache.
3214 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
3215 REGCACHE parameter, pass it to supply_ routines.
3216 (aix_thread_fetch_registers): Pass current_regcache to
3217 fetch_regs_user_thread and fetch_regs_kernel_thread.
3219 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
3220 Add REGCACHE parameter, use it instead of current_regcache.
3221 Call regcache_valid_p instead of register_cached.
3222 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
3223 Also, pass REGCACHE to fill_ routines.
3224 (aix_thread_store_registers): Pass current_regcache to
3225 store_regs_user_thread and store_regs_kernel_thread.
3227 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3229 * m32r-linux-nat.c (supply_gregset): Do not modify contents
3230 pointed to by GREGSETP.
3232 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3234 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
3235 of regcache_raw_read_signed.
3236 (fill_fpregset): Use regcache_raw_collect instead of
3239 2007-05-03 Kevin Buettner <kevinb@redhat.com>
3241 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
3242 point arguments, test explicitly for use of the EABI32 ABI
3243 instead of inferring this condition from tests on register
3246 2007-05-03 Kevin Buettner <kevinb@redhat.com>
3248 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
3249 prior to allocating its location.
3251 2007-05-02 Maciej W. Rozycki <macro@mips.com>
3253 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
3254 based on mips_abi_regsize() whose result is known in advance.
3255 (mips_o64_push_dummy_call): Likewise.
3257 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
3259 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
3260 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
3262 * mips-linux-nat.c: Include "gregset.h".
3263 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
3264 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
3265 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3266 fill_fpregset): Move to mips-linux-nat.c.
3268 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
3270 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3272 * regcache.c (deprecated_read_register_gen): Remove, inline ...
3273 (read_register): ... here.
3274 (deprecated_write_register_gen): Remove, inline ...
3275 (write_register): ... here.
3276 * regcache.h (deprecated_read_register_gen): Remove prototype.
3277 (deprecated_write_register_gen): Likewise.
3279 * remote-sim.c (gdbsim_store_register): Replace call to
3280 deprecated_read_register_gen with regcache_cooked_read.
3281 * target.c (debug_print_register): Replace calls to
3282 deprecated_read_register_gen and read_register with
3283 regcache_cooked_read.
3285 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3287 * hpux-thread.c (hpux_thread_store_registers): Use
3288 regcache_raw_collect, not regcache_raw_read.
3289 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
3290 not regcache_raw_write.
3292 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3294 * gdbarch.sh: Remove deprecated_register_byte.
3295 * gdbarch.c, gdbarch.h: Regenerate.
3296 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
3297 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
3299 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
3300 * regcache.c (regcache_valid_p): Allow to query cooked registers in
3301 read-only register caches. Make REGCACHE parameter const.
3302 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
3304 * mi/mi-main.c (old_regs): Remove.
3305 (mi_setup_architecture_data, _initialize_mi_main): Remove.
3306 (register_changed_p): Reimplement to compare two register caches.
3307 (mi_cmd_data_list_changed_registers): Update caller.
3308 * mi/mi-main.h (mi_setup_architecture_data): Remove.
3309 * mi/mi-interp.c (mi_interpreter_init): Do not call
3310 mi_setup_architecture_data.
3312 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3314 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
3315 inline definition at the places the macros are used.
3316 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
3318 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3320 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
3322 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
3323 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
3324 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
3325 (rs6000_aix_regset_from_core_section): New function.
3326 (rs6000_aix_init_osabi): Register it.
3327 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
3328 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
3329 * rs6000-nat.c (CoreRegs): Do not define type.
3330 (fetch_core_registers, rs6000_core_fns): Remove.
3331 (_initialize_core_rs6000): Do not register it. Rename to ...
3332 (_initialize_rs6000_nat): ... this.
3333 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
3335 2007-04-27 Kevin Buettner <kevinb@redhat.com>
3337 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
3338 (dwarf2_read_address): Sign extend return address as required by
3339 target architecture.
3341 2007-04-27 Kevin Buettner <kevinb@redhat.com>
3343 * solib-frv.c (lm_base): Bail out if the main executable has
3346 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3348 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
3349 of FPCR register in fpregset.
3351 2007-04-27 Maciej W. Rozycki <macro@mips.com>
3353 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
3354 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
3356 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3358 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
3359 * rs6000-nat.c (rs6000_wait): New function.
3360 (_initialize_core_rs6000): Install it as to_wait target method.
3361 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
3363 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3365 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
3366 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
3367 * rs6000-nat.c (super_create_inferior): New variable.
3368 (rs6000_create_inferior): Make static. Adapt argument list. Call
3369 original version of create_inferior via super_create_inferior.
3370 (_initialize_core_rs6000): Install to_create_inferior target method.
3372 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3374 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
3375 (aix_thread_xfer_partial): ... this.
3376 (init_aix_thread_ops): Install to_xfer_partial instead
3377 of deprecated_xfer_memory target method.
3379 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
3380 and inftarg.o, add inf-ptrace.o.
3381 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
3382 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
3383 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
3384 (fetch_inferior_registers): Rename to ...
3385 (rs6000_fetch_inferior_registers): ... this. Make static.
3386 (store_inferior_registers): Rename to ...
3387 (rs6000_store_inferior_registers): ... this. Make static.
3388 (read_word, child_xfer_memory): Remove.
3389 (rs6000_xfer_partial): New function.
3390 (kernel_u_size): Remove.
3391 (_initialize_core_rs6000): Add inf_ptrace-based target.
3392 * Makefile.in (rs6000-nat.o): Update dependencies.
3394 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3396 * inf-ptrace.c: Include "gdb_stdint.h".
3397 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
3398 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
3399 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
3400 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
3401 (inf_ptrace_store_register): Likewise.
3402 * Makefile.in (inf-ptrace.o): Update dependencies.
3404 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3406 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
3407 * configure.tgt (rs6000-*-*): Likewise.
3408 * config/rs6000/aix4.mh: Delete file.
3409 * config/rs6000/aix4.mt: Delete file.
3410 * config/rs6000/rs6000.mh: Delete file.
3411 * config/rs6000/rs6000.mt: Delete file.
3413 * config/powerpc/nm-aix.h: Delete file.
3414 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
3416 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3418 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
3419 Remove obsolete part of comment.
3420 (store_regs_user_thread): Use uint32_t temporaries when calling
3422 (store_regs_kernel_thread): Likewise. Add assertion to verify
3423 correct size of struct ptsprs members.
3424 (aix_thread_xfer_memory): Fix type of myaddr.
3425 (aix_thread_extra_thread_info): Fix compiler warning.
3426 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
3427 (fetch_register, store_register): Adapt callers.
3429 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3431 * vec.h (vec_free): Rename to vec_free_. Adapt users.
3433 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3435 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
3437 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
3438 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
3439 (alpha_linux_regset_from_core_section): New function.
3440 (alpha_linux_init_abi): Install it.
3441 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
3442 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
3443 <sys/procfs.h>, and "gregset.h".
3444 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
3445 Move from config/alpha/nm-linux.h.
3446 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
3448 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
3449 * alpha-nat.c: Remove #ifdef __linux__ section.
3450 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
3451 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
3452 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
3453 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
3454 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
3455 (NATDEPFILES): Remove alpha-nat.o.
3456 * config/alpha/nm-linux.h: Delete file.
3457 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
3458 * Makefile.in (alpha-linux-nat.o): Update dependencies.
3459 (alpha-linux-tdep.o): Likewise.
3461 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3463 * mips-linux-nat.c: No longer include "gdbcore.h".
3464 (mips_linux_register_addr): Move from mips-linux-tdep.c.
3465 (mips64_linux_register_addr): Likewise.
3466 (mips_linux_register_u_offset): Call mips_linux_register_addr or
3467 mips64_linux_register_addr instead of register_addr.
3468 * mips-linux-tdep.c (mips_linux_register_addr,
3469 mips64_linux_register_addr): Move to mips-linux-nat.c.
3470 (register_addr): Remove.
3471 (register_addr_data, init_register_addr_data): Remove.
3472 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
3473 (set_mips_linux_register_addr): Remove.
3474 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
3475 * Makefile.in (mips-linux-nat.o): Update dependencies.
3477 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3479 * linux-nat.c (linux_register_u_offset): Remove.
3480 (linux_target_install_ops): New function.
3481 (linux_target): Use it.
3482 (linux_trad_target): New function.
3483 * linux-nat.h (linux_trad_target): Declare.
3485 * alpha-linux-nat.c: Include "gdbcore.h".
3486 (alpha_linux_register_u_offset): New function.
3487 (_initialize_alpha_linux_nat): Use linux_trad_target.
3489 * mips-linux-nat.c: Include "gdbcore.h".
3490 (mips_linux_register_u_offset): New function.
3491 (_initialize_mips_linux_nat): Use linux_trad_target.
3493 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3494 * config/arm/nm-linux.h: Delete file.
3496 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
3497 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
3499 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3500 * config/ia64/nm-linux.h: Delete file.
3502 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3503 * config/m32r/nm-linux.h: Delete file.
3505 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3506 * config/m68k/nm-linux.h: Delete file.
3508 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3509 * config/pa/nm-linux.h: Delete file.
3511 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3512 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
3513 * config/powerpc/nm-linux.h: Delete file.
3515 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
3516 * config/s390/nm-linux.h: Delete file.
3518 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3519 * config/sparc/linux64.mh (NAT_FILE): Likewise.
3520 * config/sparc/nm-linux.h: Delete file.
3522 * Makefile.in (alpha-linux-nat.o): Update dependencies.
3523 (mips-linux-nat.o): Likewise.
3525 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3527 * core-aout.c: Delete file.
3528 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
3529 (core-aout.o): Delete rule.
3530 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
3532 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
3534 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
3535 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
3536 KERNEL_U_ADDR): Remove.
3538 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
3539 (cannot_fetch_register, cannot_store_register): Remove.
3540 (fetch_register): Inline cannot_fetch_register and register_addr.
3541 (store_register): Inline cannot_store_register and register_addr.
3542 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
3543 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3544 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
3547 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
3548 (fetch_register): Inline register_addr.
3549 (store_register): Inline register_addr.
3550 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
3551 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3552 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
3554 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
3555 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
3556 REGISTER_U_ADDR): Remove.
3558 * hppa-linux-nat.c (register_addr): Rename to ...
3559 (hppa_linux_register_addr): ... this. Make static.
3560 (fetch_register, store_register): Adapt callers.
3561 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
3563 * ppc-linux-nat.c (kernel_u_size): Remove.
3564 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
3566 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
3567 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
3569 * config/vax/nm-vax.h: Delete file.
3571 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3573 * MAINTAINERS (Write After Approval): Add myself.
3575 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3577 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
3578 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
3579 (m68k_linux_sigcontext_reg_offset): Fix typo.
3580 (target_is_uclinux): New.
3581 (m68k_linux_inferior_created): New.
3582 (m68k_linux_get_sigtramp_info): Check for uClinux or
3583 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
3585 (_initialize_m68k_linux_tdep): Register
3586 m68k_linux_inferior_created.
3588 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
3590 * win32-nat.c (win32_detach): Remove delete_command call.
3591 Resume inferior with win32_resume instead of win32_continue.
3593 2007-04-19 Jerome Guitton <guitton@adacore.com>
3595 * ser-mingw.c (fd_is_file): New function.
3596 (file_select_thread): New function.
3597 (ser_console_wait_handle): Add special handling for files.
3599 2007-04-18 Denis Pilat <denis.pilat@st.com>
3601 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
3602 when missing from DW_TAG_subrange_type. Remove the handling of null
3603 return from die_type.
3605 2007-04-18 Maciej W. Rozycki <macro@mips.com>
3607 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
3608 change to rearrange some brackets.
3609 (mips_n32n64_push_dummy_call): Likewise.
3610 (mips_o32_push_dummy_call): Likewise.
3611 (mips_o64_push_dummy_call): Likewise.
3613 2007-04-18 Denis Pilat <denis.pilat@st.com>
3615 * infcmd.c (post_create_inferior): Start with a call to
3616 target_terminal_ours.
3618 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3620 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
3622 (mips_n32n64_push_dummy_call): Likewise. Reformat some
3624 (mips_o32_push_dummy_call): Likewise.
3625 (mips_o64_push_dummy_call): Likewise.
3627 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3629 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3632 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3634 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3636 (mips_o32_push_dummy_call): Likewise.
3638 2007-04-17 Andreas Schwab <schwab@suse.de>
3640 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
3641 sal to be bigger than the end of the function.
3643 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3644 Nigel Stephens <nigel@mips.com>
3646 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
3647 argument alignment requirements when calculating stack space
3648 required. When aligning an arg register to eight bytes
3649 boundary, align stack_offset too. Write floating-point
3650 arguments to the appropriate integer register if need go there.
3651 (mips_o64_push_dummy_call): Likewise.
3653 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3655 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
3656 "sig" arguments, add "regcache" argument.
3657 * gdbarch.c, gdbarch.h: Regenerate.
3659 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
3660 (handle_inferior_event): Call remove_single_step_breakpoints directly
3661 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
3663 * alpha-tdep.c (alpha_software_single_step): Update argument list.
3664 Remove handling of !insert_breakpoints_p case.
3665 * arm-tdep.c (arm_software_single_step): Likewise.
3666 * cris-tdep.c (cris_software_single_step): Likewise.
3667 * mips-tdep.c (mips_software_single_step): Likewise.
3668 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3669 * sparc-tdep.c (sparc_software_single_step): Likewise.
3670 * spu-tdep.c (spu_software_single_step): Likewise.
3672 * alpha-tdep.h (alpha_software_single_step): Update prototype.
3673 * mips-tdep.h (mips_software_single_step): Likewise.
3674 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3675 * sparc-tdep.h (sparc_software_single_step): Likewise.
3677 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3679 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
3680 when removing single-step breakpoints.
3682 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
3684 * varobj.h (varobj_set_frozen): New
3685 (varobj_get_frozen): New.
3686 (varobj_update): New parameter explicit.
3687 * varobj.c (struct varobj): New fields frozen
3689 (varobj_set_frozen, varobj_get_frozen): New.
3690 (install_new_value): Don't fetch values for
3691 frozen variable object, or children thereof. Allow
3692 a frozen variable object to have non-fetched value.
3693 (varobj_update): Allow updating child variables.
3694 Don't traverse frozen children.
3695 (new_variable): Initialize the frozen field.
3696 (c_value_of_variable): Return NULL for frozen
3697 variable without any value yet.
3698 * mi/mi-cmd-var.c (varobj_update_one): New parameter
3700 (mi_cmd_var_create): Output the 'frozen' field,
3701 as soon as testsuite is adjusted to expect that field.
3702 (mi_cmd_var_set_frozen): New.
3703 (mi_cmd_var_update): Pass the 'explicit' parameter to
3705 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
3706 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
3708 2007-04-13 Paul Brook <paul@codesourcery.com>
3710 * target-descriptions.c (tdesc_named_type): Add ieee_single and
3712 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
3714 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3716 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
3717 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
3718 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
3719 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
3720 * Makefile.in: Remove references to deleted files.
3721 * README: Do not mention deleted ROM monitor interfaces.
3722 * defs.h (enum language): Delete language_scm.
3723 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
3724 (dump_subexp_body_standard): Likewise.
3725 * parse.c (operator_length_standard): Likewise.
3726 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
3727 * remote-mips.c: Do not include remote-utils.h.
3728 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
3730 * value.c: Do not include scm-lang.h.
3731 (unpack_long): Delete scm_unpack call.
3732 * config/h8300/h8300.mt, config/mips/embed.mt,
3733 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
3734 config/sh/embed.mt, config/sh/linux.mt: Remove references to
3736 * NEWS: Mention removed files.
3738 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3740 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
3741 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
3743 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3745 * NEWS: Mention removal of HP aCC support.
3747 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3749 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
3750 first entry for static executables.
3751 (breakpoint_addr): Delete unused variable.
3752 (elf_locate_base): Search for _r_debug in static executables.
3753 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
3756 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3758 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
3759 (bpstat_what, print_one_breakpoint, allocate_bp_location)
3760 (mention): Remove bp_through_sigtramp support.
3761 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
3763 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3765 * breakpoint.c (bpstat_what): Give step-resume higher priority than
3768 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3770 * infrun.c: Doc fixes.
3771 (handle_inferior_event): Clarify debug message.
3772 (insert_step_resume_breakpoint_at_sal): Print a debug message.
3774 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3776 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
3778 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3780 * config/m68k/tm-monitor.h: Delete file.
3781 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3782 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3784 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3785 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3787 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
3789 * gdbarch.sh (software_single_step): Change the return type
3790 from void to int and reformatted some comments to <= 80
3792 * gdbarch.c, gdbarch.h: Regenerated.
3793 * alpha-tdep.c (alpha_software_single_step): Likewise.
3794 * alpha-tdep.h (alpha_software_single_step): Likewise.
3795 * arm-tdep.c (arm_software_single_step): Likewise.
3796 * cris-tdep.c (cris_software_single_step): Likewise.
3797 * mips-tdep.c (mips_software_single_step): Likewise.
3798 * mips-tdep.h (mips_software_single_step): Likewise.
3799 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3800 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3801 * sparc-tdep.c (sparc_software_single_step): Likewise.
3802 * sparc-tdep.h (sparc_software_single_step): Likewise.
3803 * spu-tdep.c (spu_software_single_step): Likewise.
3804 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3805 and act accordingly.
3807 2007-04-11 Steve Ellcey <sje@cup.hp.com>
3809 * configure.ac (build_warnings): Add -Wno-char-subscripts.
3810 * configure: Regenerate.
3811 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3813 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3815 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3817 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3819 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3821 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3822 distinct on the TYPE_STUB_SUPPORTED debug targets.
3823 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3825 2007-04-11 Joel Brobecker <brobecker@adacore.com>
3827 * sparc-tdep.c (X_RS2): New macro.
3828 (sparc_skip_stack_check): New function.
3829 (sparc_analyze_prologue): Adjust PC past stack probing
3830 sequence if necessary.
3832 2007-04-10 Andreas Schwab <schwab@suse.de>
3834 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3837 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3839 * breakpoint.c (gdb_breakpoint_query): Really return an
3841 (gdb_breakpoint): Likewise.
3842 * thread.c (gdb_list_thread_ids): Likewise.
3843 (gdb_thread_select): Likewise.
3844 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3845 (mi_cmd_thread_list_ids): Remove bogus initialization.
3847 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3849 * Makefile.in (SFILES): Remove hpacc-abi.c.
3850 (COMMON_OBS): Remove hpacc-abi.o.
3851 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3852 (hpacc-abi.o, hpread.o): Delete rules.
3853 * somread.c: Delete extern declarations from hpread.c.
3854 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3855 (som_symfile_finish): Do not call hpread_symfile_finish.
3856 (som_symfile_init): Do not call hpread_symfile_init.
3857 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3858 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3859 * hpacc-abi.c, hpread.c: Deleted.
3861 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3863 * solib-svr4.c (enable_break): Simplify return value.
3864 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3866 2007-04-10 Andreas Schwab <schwab@suse.de>
3868 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3869 l_ld_size, l_next_size, l_prev_size, l_name_size.
3871 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3872 to extract addresses from link map.
3873 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3874 (LM_NEXT): Likewise.
3875 (LM_NAME): Likewise.
3876 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3877 (elf_locate_base): Likewise.
3878 (open_symbol_file_object): Likewise.
3879 (svr4_fetch_objfile_link_map): Likewise.
3880 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3881 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3883 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3884 (svr4_lp64_fetch_link_map_offsets): Likewise.
3886 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3887 removed members. Set l_ld_offset to -1 if not present.
3889 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
3891 Pass stderr of program run with "target remote |"
3893 * serial.c (serial_open): Set error_fd to -1.
3894 * serial.h (struct serial): New field error_fd.
3895 (struct serial_opts): New field avail.
3896 * ser-pipe.c (pipe_open): Create another pair
3897 of sockets. Pass stderr to gdb.
3898 * ser-mingw.c (pipe_windows_open): Pass
3899 PEX_STDERR_TO_PIPE to pex_run. Initialize
3902 (_initialize_ser_windows): Hook pipe_avail.
3903 * ser-base.c (generic_readchar): Check if there's
3904 anything in stderr channel and route that to gdb_stderr.
3906 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
3908 * dbxread.c (read_ofile_symtab): Move current_objfile
3909 clearing to after end_stabs.
3911 2007-04-01 Andreas Schwab <schwab@suse.de>
3913 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
3914 gdbarch instead of current_gdbarch.
3916 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
3918 * varobj.c (varobj_create): Keep varobj value
3919 NULL when evaluating the type.
3921 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
3923 * NEWS: Mention new Windows CE support.
3925 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
3927 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
3928 the obsoletion stanza.
3929 * NEWS: Mention deleted targets.
3931 * config/sh/tm-wince.h: Remove.
3932 * config/sh/wince.mt: Remove.
3933 * config/mips/tm-wince.h: Remove.
3934 * config/mips/wince.mt: Remove.
3937 * wince-stub.c: Remove.
3938 * wince-stub.h: Remove.
3939 * Makefile.in (wince.o): Remove rule.
3940 (wince-stub.o): Likewise.
3942 * mips-tdep.c (mips_next_pc): Make static.
3943 * mips-tdep.h (mips_next_pc): Remove declaration.
3944 * arm-tdep.c (arm_pc_is_thumb): Make static.
3945 (thumb_get_next_pc): Likewise.
3946 (arm_get_next_pc): Likewise.
3947 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
3948 (arm_pc_is_thumb): Likewise.
3949 (thumb_get_next_pc): Likewise.
3950 (arm_get_next_pc): Likewise.
3952 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3954 * MAINTAINERS: Remove d10v entry.
3955 * Makefile.in (SFILES): Remove dwarfread.c.
3956 (COMMON_OBS): Remove dwarfread.o.
3957 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
3958 (remote-est.o, rom68k-rom.o): Delete.
3959 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
3960 target est, target rom68k, and DWARF 1.
3961 * configure.tgt: Mark d10v as removed.
3962 * dwarf2read.c: Doc update.
3963 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
3965 (elf_locate_sections): Do not set them.
3966 (elf_symfile_read): Do not call dwarf_build_psymtabs.
3967 * symfile.h (dwarf_build_psymtabs): Delete prototype.
3968 * config/m68k/monitor.mt (TDEPFILES): Prune.
3969 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
3970 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
3972 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3974 * doublest.c (convert_floatformat_to_doublest): Use
3975 floatformat_classify.
3976 (floatformat_is_nan): Rename to...
3977 (floatformat_classify): ...this. Return more information.
3978 * doublest.h (enum float_kind): New.
3979 (floatformat_is_nan): Replace prototype...
3980 (floatformat_classify): ...with this one.
3981 * valprint.c (print_floating): Use floatformat_classify. Handle
3984 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3986 * README: Mention ISO C library requirement.
3988 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3990 * Makefile.in (SFILES): Remove nlmread.c.
3991 (COMMON_OBS): Remove nlmread.o.
3992 (nlmread.o): Delete rule.
3993 * README: Delete reference to remote-st.c.
3994 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
3995 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
3997 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
3998 (_initialize_i386_tdep): Do not reference them.
3999 * nlmread.c: Delete file.
4000 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
4001 * target.c: Doc update.
4002 * thread.c: Delete commented include.
4003 * config/alpha/tm-alpha.h: Doc update.
4005 2007-03-30 Chris Dearman <chris@mips.com>
4007 * utils.c (string_to_core_addr): Comment typo.
4009 2007-03-30 Chris Dearman <chris@mips.com>
4011 * mips-tdep.c: Comment typo.
4013 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
4015 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
4016 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4017 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4018 * config/powerpc/nm-ppc64-linux.h: Remove file.
4019 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
4020 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
4021 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
4022 * infptrace.c (call_ptrace): Likewise.
4023 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
4024 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
4025 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
4026 (store_register): Likewise.
4028 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4030 * Makefile.in (varobj.o): Add missing dependency.
4032 2007-03-29 Michael Snyder <msnyder@access-company.com>
4034 * MAINTAINERS: Update my email address.
4036 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4038 Add support for exception handling with multiple versions of
4040 * ada-lang.c: Update general comments on how Ada exception catchpoints
4042 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
4043 (__gnat_raise_nodefer_with_msg): Delete.
4044 (ada_unhandled_exception_name_addr_ftype): New type.
4045 (exception_support_info): New type.
4046 (ada_unhandled_exception_name_addr): Add forward declaration.
4047 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4048 (default_exception_support_info): New constant.
4049 (exception_support_info_fallback): Likewise.
4050 (exception_info): New global variable.
4051 (ada_exception_support_info_sniffer): New function.
4052 (ada_executable_changed_observer): Likewise.
4053 (ada_unhandled_exception_name_addr_from_raise): Renamed from
4054 ada_unhandled_exception_name_addr.
4055 (ada_unhandled_exception_name_addr): Reimplement to match the
4056 latest Ada runtime implementation.
4057 (error_breakpoint_runtime_sym_not_found): Delete.
4058 (ada_exception_sym_name): Get the exception sym name from
4059 exception_info rather than hardcoding it.
4060 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
4061 Update error handling.
4062 * Makefile.in (ada-lang.o): Add dependency on observer.h.
4064 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4066 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
4067 (remote-st.o, uw-thread.o): Delete.
4068 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
4069 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4070 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
4071 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
4072 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
4073 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
4074 rs6000-*-lynxos* to an obsoletion stanza.
4075 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4076 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
4077 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
4078 i[34567]86-*-netware*.
4079 * NEWS: Mention deleted targets.
4081 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
4082 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
4083 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
4084 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
4085 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
4086 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
4087 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
4088 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
4089 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
4090 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
4091 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
4092 config/rs6000/tm-rs6000ly.h: Delete files.
4094 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4096 * defs.h (deprecated_registers_changed_hook): Delete declaration.
4097 * interps.c (clear_interpreter_hooks): Do not clear
4098 deprecated_registers_changed_hook.
4099 * regcache.c (registers_changed): Do not call it.
4100 * top.c (deprecated_registers_changed_hook): Do not define it.
4101 * mi/mi-interp.c (mi_command_loop): Do not clear it.
4102 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
4103 (tui_remove_hooks): Do not remove it.
4104 (tui_selected_frame_level_changed_hook): Check for negative level.
4105 Use get_selected_frame.
4106 (tui_registers_changed_hook): Deleted.
4108 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4110 * stabsread.c (add_undefined_type): Add extra parameter.
4111 Now handles nameless types separately.
4112 (struct nat): New type.
4113 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
4114 New static variables.
4115 (read_type): Update calls to add_undefined_type.
4116 (add_undefined_type_noname): New function.
4117 (add_undefined_type_1): Renames from add_undefined_type.
4118 (cleanup_undefined_types_noname): New function.
4119 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
4120 (cleanup_undefined_types): New handles nameless types separately.
4121 (_initialize_stabsread): Initialize our new static constants.
4123 2007-03-29 Denis Pilat <denis.pilat@st.com>
4125 * configure.ac: Test for signal.h.
4126 * configure, config.in: Regenerate.
4128 2007-03-29 Denis Pilat <denis.pilat@st.com>
4130 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
4131 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
4133 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
4135 * arm-wince-tdep.c: New.
4136 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
4137 (MT_CFLAGS): Delete.
4139 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
4140 solib-legacy.o, solib-svr4.o, and remove wince.o.
4141 * configure.tgt (arm*-*-mingw32ce*): Add.
4142 * signals/signals.c [HAVE_SIGNAL_H]: Check.
4143 (do_target_signal_to_host): Silence 'not used' warning.
4144 * config/arm/tm-wince.h: Remove.
4146 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
4148 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
4149 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
4151 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
4152 * config/ia64/tm-linux.h: Remove file.
4153 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
4154 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
4155 legacy_pc_in_sigtramp.
4156 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
4157 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
4158 Remove func_name argument.
4159 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
4161 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
4162 * target.c (update_current_target): Add to_have_steppable_watchpoint.
4163 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
4164 (HAVE_STEPPABLE_WATCHPOINT): Define.
4166 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
4167 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
4168 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
4169 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
4170 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
4171 target_insert_watchpoint, target_remove_watchpoint): Remove.
4172 (FETCH_INFERIOR_REGISTERS): Define.
4173 * ia64-linux-nat.c (ia64_register_addr): Make static.
4174 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
4175 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
4176 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
4177 (ia64_linux_stopped_data_address): Make static. Add target_ops.
4178 (ia64_linux_stopped_by_watchpoint): Make static.
4179 (ia64_linux_can_use_hw_breakpoint): New function.
4180 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
4181 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
4182 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
4184 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
4186 * linespec.c: Include language.h.
4187 (find_methods): Add language parameter. Call
4188 lookup_symbol_in_language. Pass language down.
4189 (add_matching_methods): Likewise. Call
4190 lookup_symbol_in_language.
4191 (add_constructors): Likewise.
4192 (find_method): Pass sym_class to collect_methods.
4193 (collect_methods): Add sym_class parameter. Pass language
4195 * symtab.c (lookup_symbol): Rename to ...
4196 (lookup_symbol_in_language): ... this. Add language
4197 parameter. Use passed language instead of current_language.
4198 (lookup_symbol): New as wrapper around
4199 lookup_symbol_in_language.
4200 (lookup_symbol_aux): Add language parameter. Use passed
4201 language instead of current_language.
4202 (search_symbols): Indent.
4203 * symtab.h (enum language): Forward declare.
4204 (lookup_symbol_in_language): Declare.
4205 (lookup_symbol): Update description.
4206 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
4207 * ada-lang.c (restore_language): Remove.
4208 (lookup_symbol_in_language): Remove.
4210 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
4212 * breakpoint.c (bpstat_num): Add int *num parameter.
4213 * breakpoint.h (bpstat_num): Likewise.
4214 * infcmd.c (continue_command): Adjust to new bpstat_num
4216 (program_info): Likewise.
4218 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4220 * config/sh/tm-sh.h: Remove file.
4221 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
4222 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
4223 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4224 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
4226 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4228 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
4229 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
4230 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
4231 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
4232 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
4233 sequence if target_shortname is "remote".
4235 2007-03-27 Anton Blanchard <anton@samba.org>
4237 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
4238 instead of wordsize when looking for the LR in a stack frame.
4240 2007-03-27 Andreas Schwab <schwab@suse.de>
4241 Daniel Jacobowitz <dan@codesourcery.com>
4243 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
4244 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
4245 argument. Update all callers.
4246 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
4247 (dwarf2_frame_set_eh_frame_regnum): Rename to...
4248 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
4249 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
4250 (dwarf2_frame_set_adjust_regnum): ...this.
4251 (dwarf2_frame_eh_frame_regnum): Delete prototype.
4252 * rs6000-tdep.c: Include "dwarf2-frame.h".
4253 (rs6000_adjust_frame_regnum): Define.
4254 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
4255 Register rs6000_adjust_frame_regnum.
4257 * Makefile.in (rs6000-tdep.o): Update dependencies.
4259 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
4261 * Makefile.in: Add support for a "pdf" target.
4263 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
4265 * amd64-tdep.c (amd64_init_frame_cache): New function.
4266 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
4268 2007-03-26 Nigel Stephens <nigel@mips.com>
4269 Maciej W. Rozycki <macro@mips.com>
4271 * ui-out.c (ui_out_field_core_addr): Truncate address to
4272 TARGET_ADDR_BIT size before printing.
4274 2007-03-22 Nigel Stephens <nigel@mips.com>
4275 Maciej W. Rozycki <macro@mips.com>
4277 * remote-mips.c (mips_xfer_memory): Update prototype.
4279 2007-03-22 Joel Brobecker <brobecker@adacore.com>
4281 * symfile.h: #include "symtab.h"
4283 2007-03-22 Denis Pilat <denis.pilat@st.com>
4285 * utils.c (pagination_on_command, pagination_off_command):
4286 Remove useless prototypes.
4288 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
4291 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
4292 instead of TYPE_NAME for object base class name.
4295 2007-03-19 Kevin Buettner <kevinb@redhat.com>
4297 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
4298 Specify frame type in calls to frame_func_unwind().
4300 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
4302 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
4303 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
4304 (refine_prologue_limit): Delete.
4305 (skip_prologue): Don't call it. Use extract_unsigned_integer.
4306 Assume lim_pc is set. Correct check for incomplete prologues.
4307 Do not skip clobbers of the frame pointer.
4308 * symtab.c (skip_prologue_using_sal): Fail if there is only one
4311 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
4313 * frame.c (frame_pop): Check to see whether there's a frame to
4314 which we can pop first.
4316 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
4318 * MAINTAINERS (Write After Approval): Add myself.
4320 2007-03-09 Markus Deuling <deuling@de.ibm.com>
4322 * infrun.c (breakpoints_failed): Remove unnecessary variable.
4323 (handle_inferior_event): Remove unnecessary braces.
4324 * breakpoint.c (bpstat_what): Remove wrong comment.
4326 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
4328 * spu-tdep.c (spu_in_function_epilogue_p): New function.
4329 (spu_gdbarch_init): Install it.
4331 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4333 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
4334 object types, not 0.
4336 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4338 * spu-tdep.c (spu_frame_align): New function.
4339 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
4341 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4343 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
4344 (spu_software_single_step): Likewise.
4345 (spu_read_pc, spu_write_pc): New functions.
4346 (spu_gdbarch_init): Install them.
4348 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4350 * cli/cli-dump.c (struct callback_data): load_offset needs to
4351 have signed long type.
4353 2007-03-07 Joel Brobecker <brobecker@adacore.com>
4355 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
4356 Revert the previous change that had some unexpected side-effects
4358 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
4359 function to get the address of the calling instruction.
4361 2007-03-07 Denis Pilat <denis.pilat@st.com>
4363 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
4364 get_selected_frame by deprecated_safe_get_selected_frame.
4366 2007-03-02 Mark Kettenis <kettenis@gnu.org>
4368 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
4369 "gdb_string.h". Don't include "nbsd-tdep.h".
4370 (SIZEOF_STRUCT_REG): Remove.
4371 (SHNBSD_SIZEOF_GREGS): New.
4372 (shnbsd_supply_gregset, shnbsd_collect_gregset)
4373 (shnbsd_regset_from_core_section): New functions.
4374 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
4375 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
4376 shnbsd_supply_gregset, shnbsd_collect_gregset.
4377 (shnbsd_gregset): New variable.
4378 (shnbsd_init_abi): Set regset_from_core_section.
4379 (GDB_OSABI_NETBSD_CORE): New define.
4380 (shnbsd_core_osabi_sniffer): New function.
4381 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
4382 * Makefile.in (shnbsd-tdep.o): Update dependencies.
4383 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
4385 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
4387 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4389 * gdbtypes.c (replace_type): Fix typo that caused us to not update
4390 length of the types referenced by the new type CV ring.
4392 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4394 * frame.c (frame_pop, frame_observer_target_changed): Call
4396 (flush_cached_frames): Rename to reinit_frame_cache and delete
4398 * frame.h (flush_cached_frames): Delete prototype and update comment.
4400 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
4401 reinit_frame_cache instead of flush_cached_frames. Do not call
4402 select_frame after reinit_frame_cache.
4403 * corelow.c (core_open): Likewise.
4404 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
4405 * infrun.c (prepare_to_proceed, context_switch)
4406 (handle_inferior_event): Likewise.
4407 * linux-fork.c (fork_load_infrun_state): Likewise.
4408 * ocd.c (ocd_start_remote): Likewise.
4409 * remote-e7000.c (e7000_start_remote): Likewise.
4410 * remote-mips.c (device): Likewise.
4411 * thread.c (switch_to_thread): Likewise.
4412 * tracepoint.c (finish_tfind_command): Likewise.
4413 * gdbarch.c: Regenerated.
4415 2007-02-28 Jerome Guitton <guitton@adacore.com>
4416 Joel Brobecker <brobecker@adacore.com>
4418 * gdbtypes.c (check_typedef): Do not replace stub type if
4419 the resolved type is not defined in the same objfile.
4421 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4423 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
4425 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4427 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
4428 symbol for Ada units when the symbol is defined using 't' rather
4429 than 'Tt' as symbol descriptor.
4431 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4433 * config/mips/tm-nbsd.h: Delete file.
4434 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4435 * config/sh/tm-nbsd.h: Delete file.
4436 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
4438 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4440 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
4441 unused WRONG_PARAM value since it was recently deleted.
4443 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
4445 * varobj.c (varobj_update): Free temporary vectors.
4447 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4449 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
4450 * config/powerpc/tm-linux.h: Delete file.
4451 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
4452 (PROCESS_LINENUMBER_HOOK): Do not undefine.
4453 (TEXT_SEGMENT_BASE): Do not redefine.
4454 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
4455 from config/rs6000/tm-rs6000.h.
4456 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4457 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
4458 (TEXT_SEGMENT_BASE): Remove.
4459 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
4460 (rs6000_in_solib_return_trampoline): Remove.
4461 (SKIP_TRAMPOLINE_CODE): Remove.
4462 (rs6000_skip_trampoline_code): Remove.
4463 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
4464 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4465 (FP0_REGNUM): Remove.
4466 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
4467 (rs6000_set_host_arch_hook): Remove.
4468 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
4469 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
4470 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
4471 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
4472 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
4473 * rs6000-nat.c: Include "rs6000-tdep.h".
4474 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
4475 (set_host_arch): Rename to ...
4476 (rs6000_create_inferior): ... this. Make public.
4477 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
4478 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
4479 (rs6000_create_inferior): Remove.
4480 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
4481 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
4482 set_gdbarch_in_solib_return_trampoline, and
4483 set_gdbarch_skip_trampoline_code.
4484 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
4485 from config/rs6000/tm-rs6000.h.
4487 2007-02-27 Joel Brobecker <brobecker@adacore.com>
4489 * buildsym.c (record_producer): Do nothing if no producer is provided.
4491 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
4493 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
4494 to check changelist is non-NULL. Call error if the frontend tries
4495 to update a non-root variable.
4497 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
4499 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4501 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
4502 (dwarf2_frame_sniffer): Update.
4503 (dwarf2_signal_frame_this_id): New function.
4504 (dwarf2_signal_frame_unwind): Use it.
4505 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
4506 * frame.c (frame_func_unwind): Add this_type argument.
4507 (get_frame_func): Update.
4508 (frame_unwind_address_in_block): Add this_type argument and check it.
4510 (get_frame_address_in_block): Update.
4511 * frame.h (enum frame_type): Move higher in the file.
4512 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
4515 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
4516 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
4517 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
4518 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
4519 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
4520 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
4521 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
4522 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
4523 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
4524 frame_func_unwind and frame_unwind_address_in_block to specify
4525 the frame type. Use frame_unwind_address_in_block instead of
4526 frame_pc_unwind in sniffers.
4528 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4530 * frame.c (deprecated_selected_frame): Rename to...
4531 (selected_frame): ...this. Make static.
4532 (get_selected_frame, select_frame): Update.
4533 * frame.h (deprected_select_frame): Delete.
4534 (deprecated_safe_get_selected_frame): Update comments.
4536 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
4537 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
4538 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
4539 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
4540 tui/tui.c: Replace references to deprecated_selected_frame.
4542 2007-02-27 Fred Fish <fnf@specifix.com>
4544 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
4545 directly decrement the stack pointer, accumulate their operand into
4546 the stack offset, and mark the function as not being frameless.
4548 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4550 * arch-utils.c (selected_byte_order): New.
4551 * arch-utils.h (selected_byte_order): New prototype.
4552 * remote-sim.c (gdbsim_open): Use selected_byte_order.
4554 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4556 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
4557 (default_symfile_offsets): Check VMA here. Update section VMAs.
4559 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4561 * remote.c (init_remote_state): Add special handling for placeholder
4564 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4566 * Makefile.in (XMLFILES): Include $(TDEP_XML).
4567 (filenames_h): New variable.
4568 (clean): Clean up xml-builtin.c and stamp-xml.
4569 (arm-linux-nat.o): Update.
4570 * config/arm/linux.mh (TDEP_XML): Define.
4571 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
4572 (arm_linux_has_wmmx_registers): New.
4573 (GET_THREAD_ID): Fix typo.
4574 (IWMMXT_REGS_SIZE): Define.
4575 (fetch_wmmx_regs, store_wmmx_regs): New.
4576 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
4577 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
4578 (super_xfer_partial, arm_linux_xfer_partial): New.
4579 (_initialize_arm_linux_nat): Use them.
4580 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
4581 (xml_builtin_xfer_partial): New function.
4582 * xml-support.h (xml_builtin_xfer_partial): New prototype.
4583 * NEWS: Update mention of iWMMXt support.
4585 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4587 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
4588 if there are no FPA registers.
4589 (arm_dwarf_reg_to_regnum): New function.
4590 (arm_register_type, arm_register_name): Return minimal values for
4591 unsupported registers.
4592 (arm_register_sim_regno): Handle iWMMXt registers.
4593 (arm_gdbarch_init): Record missing FPA registers if indicated by
4594 a target description. Recognize iWMMXt registers. Only register
4595 "info float" for FPA. Use ARM_NUM_REGS. Register
4596 arm_dwarf_reg_to_regnum.
4597 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
4599 (struct gdbarch_tdep): Add have_fpa_registers.
4600 * features/xscale-iwmmxt.xml: Update capitalization.
4601 * regformats/arm-with-iwmmxt.dat: Regenerated.
4603 2007-02-24 Kevin Buettner <kevinb@redhat.com>
4605 * NEWS (New targets): Add entry for the Toshiba Media Processor.
4607 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4609 * MAINTAINERS (mep): New target.
4611 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4613 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
4615 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
4616 (mep-tdep.o): New rule.
4617 * configure.tgt (mep-*-*): New target.
4618 * mep-tdep.c: New file.
4619 * config/mep/mep.mt: New file.
4621 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4623 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
4624 BREAKPOINT_HIT and STOP_UNKNOWN.
4626 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4628 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
4630 2007-02-20 Joel Brobecker <brobecker@adacore.com>
4632 * gdb_expat.h (XMLCALL): Define if not already defined.
4634 2007-02-20 Andreas Schwab <schwab@suse.de>
4636 * Makefile.in (symfile.o): Update dependencies.
4638 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4640 * MAINTAINERS: Disable -Werror for cris simulator. Build
4641 sparc64-solaris2.10 instead of the broken sparc-elf.
4642 * solib-frv.c: Include "solib.h".
4643 * Makefile.in (solib-frv.o): Update.
4644 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
4645 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
4646 (xtensa_frame_this_id, xtensa_frame_prev_register)
4647 (xtensa_push_dummy_call): Use %p.
4649 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4651 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4652 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
4653 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4654 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
4655 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
4656 (sparc-linux-tdep.o): Update.
4658 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
4660 * xtensa-tdep.h (xtensa_reg_mask_t): New.
4661 (xtensa_mask_t): Change mask field to be a separate array.
4662 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
4663 (xtensa_pseudo_register_write, xtensa_unwind_pc)
4664 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
4665 (xtensa_breakpoint_from_pc): Remove implicit type casting.
4666 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
4667 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
4668 (mask14, mask15): Rename to
4669 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
4670 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
4671 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
4672 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
4673 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
4674 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
4675 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
4676 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
4677 (xtensa_submask14, xtensa_submask15): New.
4678 (rmap): Follow strict aliasing rules doing static initialization.
4680 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
4682 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
4683 handling from here...
4684 (tdesc_register_type): ...to here.
4685 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
4686 * features/arm-core.xml: Use code_ptr and data_ptr.
4688 2007-02-13 Denis Pilat <denis.pilat@st.com>
4690 * varobj.h (enum varobj_update_error): New enum.
4691 * varobj.c (struct varobj_root): Add is_valid member.
4692 (varobj_get_type): Check for invalid varobj.
4693 (varobj_get_attributes): Likewise.
4694 (variable_editable):Likewise.
4695 (varobj_update): Likewise. Use varobj_update_error.
4696 (new_root_variable): Set root varobj as valid by default.
4697 (varobj_invalidate): New function.
4698 * symfile.c (clear_symtab_users): Use varobj_invalidate.
4699 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
4700 Use varobj_update_error.
4702 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
4705 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
4706 Pascal language marker.
4707 * dwarf2read.c (set_cu_language): Likewise.
4709 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
4711 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
4712 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
4713 instead of target_terminal_init since inferior_ptid isn't set yet.
4715 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
4717 * MAINTAINERS (Write After Approval): Add myself.
4719 2007-02-09 Fred Fish <fnf@specifix.com>
4721 Based on work by Apple Computer, Inc.
4722 * event-top.c (async_request_quit): Call quit() whenever either
4723 quit_flag is set or immediate_quit is set.
4725 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4727 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
4728 type to a pointer to const struct block.
4729 (ada_lookup_symbol_list): Don't cast away constness when calling
4730 remove_out_of_scope_renamings.
4732 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4734 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
4735 address of 'filename'; it is always non null.
4737 2007-02-09 Joel Brobecker <brobecker@adacore.com>
4739 * exec.c (add_to_section_table): Do not discard empty sections.
4741 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4743 * features/Makefile, features/arm-with-iwmmxt.xml,
4744 features/gdbserver-regs.xsl, features/number-regs.xsl,
4745 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
4746 * regformats/arm-with-iwmmxt.dat: Generate.
4747 * NEWS: Mention iWMMXt.
4749 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4751 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
4752 (xml-tdesc.o): Update.
4753 * xml-support.c: Add a comment.
4754 (gdb_xml_enums_boolean): New variable.
4755 (gdb_xml_parse_attr_enum): Use strcasecmp.
4756 * xml-support.h (gdb_xml_enums_boolean): Declare.
4757 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
4758 next_regnum, and current_union.
4759 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
4760 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
4761 (field_attributes, union_children, reg_attributes, union_attributes)
4762 (vector_attributes, feature_attributes, feature_children): New.
4763 (target_children): Make static. Add <feature>.
4764 (tdesc_elements): Make static.
4765 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
4766 (struct tdesc_feature, tdesc_feature_p): New types.
4767 (struct target_desc): Add features member.
4768 (struct tdesc_arch_data, tdesc_data): New.
4769 (target_find_description): Clarify error message. Warn about
4770 ignored register descriptions.
4771 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4772 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
4773 (tdesc_data_cleanup, tdesc_numbered_register)
4774 (tdesc_numbered_register_choices, tdesc_find_register)
4775 (tdesc_register_name, tdesc_register_type)
4776 (tdesc_remote_register_number, tdesc_register_reggroup_p)
4777 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
4778 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
4779 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
4780 (tdesc_create_feature, tdesc_record_type): New.
4781 (free_target_description): Free features.
4782 (_initialize_target_descriptions): Initialize tdesc_data.
4783 * arch-utils.c (default_remote_register_number): New.
4784 * arch-utils.h (default_remote_register_number): New prototype.
4785 * target-descriptions.h (set_tdesc_pseudo_register_name)
4786 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4787 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4788 (tdesc_numbered_register, tdesc_numbered_register_choices)
4789 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4790 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4791 (tdesc_create_reg): Declare.
4792 * gdbarch.sh (remote_register_number): New entry.
4793 * gdbarch.c, gdbarch.h: Regenerate.
4794 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4795 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4797 * arm-tdep.c (arm_register_aliases): New.
4798 (arm_register_name_strings): Rename to...
4799 (arm_register_names): ...this. Make const. Delete the old version.
4800 (current_option, arm_register_byte): Delete.
4801 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
4802 (value_of_arm_user_reg): New.
4803 (arm_gdbarch_init): Verify any described registers. Call
4804 tdesc_use_registers. Don't use arm_register_byte. Create aliases
4805 for standard register names.
4806 (_initialize_arm_tdep): Do not adjust arm_register_names.
4807 * user-regs.c (struct user_reg): Add baton member.
4808 (append_user_reg, user_reg_add_builtin, user_regs_init)
4809 (user_reg_add, value_of_user_reg): Use a baton for user
4811 * std-regs.c: Update.
4812 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4813 (user_reg_add): Add baton argument.
4814 * NEWS: Mention target description register support.
4815 * features/arm-core.xml, features/arm-fpa.xml: New.
4816 * eval.c (evaluate_subexp_standard): Allow ptype $register
4817 when the program is not running.
4819 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
4821 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
4823 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
4825 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4826 info->disassembler_options to "any".
4828 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4830 * varobj.c (install_new_value): Only call value_get_print_value
4833 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4835 Reported by timeless@gmail.com:
4836 * gdb/target.c (target_flash_erase): Do not return void value.
4837 (target_flash_done): Likewise.
4838 * gdb/cli/cli-cmds.c (source_command): Likewise.
4840 2007-02-08 Fred Fish <fnf@specifix.com>
4842 Based on work by Apple Computer, Inc.
4843 * event-top.c (handle_sigint): Set quit_flag.
4844 (async_request_quit): Don't set quit_flag. Avoid calling quit()
4845 if quit_flag has already been reset.
4847 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4849 * ser-mingw.c (pipe_windows_close): Move variable initialization back
4852 2007-02-08 Fred Fish <fnf@specifix.com>
4854 * defs.h (request_quit): Remove declaration.
4855 * utils.c (request_quit): Remove definition.
4857 2007-02-08 Joel Brobecker <brobecker@gnat.com>
4858 Jan Kratochvil <jan.kratochvil@redhat.com>
4859 Daniel Jacobowitz <dan@codesourcery.com>
4861 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4862 (skip_prologue): Allow bl->blrl used by PIC code.
4864 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4865 Daniel Jacobowitz <dan@codesourcery.com>
4867 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4868 initialize tmp_obstack.
4869 * p-valprint.c (pascal_object_print_value_fields)
4870 (pascal_object_print_value): Likewise.
4872 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4874 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4876 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4878 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4879 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4881 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4883 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4885 (tdesc_parse_xml): Cache expanded descriptions.
4887 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4889 * Makefile.in (XMLFILES): New.
4890 (COMMON_OBS): Add xml-builtin.o.
4891 (xml-builtin.c, stamp-xml): New rules.
4892 (xml-tdesc.o): Update.
4893 * features/feature_to_c.sh: New file.
4894 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4895 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4896 (gdb_xml_start_element): Initialize scope after possibly reallocating
4897 scopes. Move cleanup later. Handle the XInclude description
4899 (gdb_xml_end_element): Only parse the body if there is a current element.
4900 Call XML_DefaultCurrent if there is no element.
4901 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4902 (struct xinclude_parsing_data, xinclude_start_include)
4903 (xinclude_end_include, xml_xinclude_default)
4904 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
4905 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
4906 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
4907 * xml-support.h (xml_fetch_another, xml_process_xincludes)
4908 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
4909 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
4910 XInclude directives. Use the compiled in DTD.
4911 (fetch_xml_from_file): Add baton argument. Treat it as a containing
4912 directory name. Do not warn here.
4913 (file_read_description_xml): Update call. Warn here instead. Pass
4915 (fetch_available_features_from_target): New.
4916 (target_read_description_xml): Use it.
4917 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
4919 * features/xinclude.dtd: New file.
4921 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4923 * linux-thread-db.c (check_for_thread_db): Return early if we have
4924 no libthread_db support.
4926 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4928 * mi/mi-parse.h: Include <sys/time.h>.
4930 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
4932 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
4933 instead of print_variable_value to print values.
4935 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4937 * mi/mi-main.c: Numerous formatting changes.
4938 (mi_cmd_data_write_register_values): Replace clause inadvertantly
4939 removed in my previous change.
4941 2007-02-03 Eli Zaretskii <eliz@gnu.org>
4943 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
4944 Use 1000000L instead of 1000000.
4946 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4948 Based on work by Apple Computer, Inc.
4950 * configure.ac: Test for sys/resource.h and getrusage.
4951 * configure, config.in: Regenerate.
4953 * mi/mi-main.c: Include <sys/resource.h> if present.
4954 (rusage): Declare if HAVE_GETRUSAGE.
4955 (current_command_ts, do_timings): New static variables.
4956 (timestamp, print_diff_now, print_diff, timeval_diff):
4957 New static timing functions.
4958 (mi_cmd_enable_timings): New function for new MI command.
4959 (captured_mi_execute_command, mi_execute_async_cli_command):
4960 Call timing functions.
4962 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
4965 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
4967 * mi/mi-parse.h: (mi_timestamp): New structure.
4968 (mi_parse): Add mi_timestamp* member.
4970 2007-02-02 Denis Pilat <denis.pilat@st.com>
4972 * thread.c (make_cleanup_restore_current_thread): New function.
4973 (info_threads_command): Use of make_cleanup_restore_current_thread
4974 to restore the current thread and the selected frame.
4975 (restore_selected_frame): New function.
4976 (struct current_thread_cleanup): Add frame_id field.
4977 (do_restore_current_thread_cleanup): Add restoring of the selected
4979 (make_cleanup_restore_current_thread): Likewise.
4980 (thread_apply_all_command): backup the selected frame while
4981 entering the function and restore it at exit.
4982 (thread_apply_command): Likewise.
4984 2007-02-02 Denis Pilat <denis.pilat@st.com>
4986 * MAINTAINERS (Write After Approval): Add myself to the list.
4988 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4990 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
4991 (m32r_store_register): Ditto.
4993 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
4995 * ser-mingw.c (pipe_windows_open)
4996 (pipe_windows_read, pipe_windows_write): Declare
4997 variables at the top of the function.
4999 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5001 * doublest.c (floatformat_from_length): Use the right element from
5002 gdbarch floatformats.
5003 (floatformat_from_type, extract_typed_floating)
5004 (store_typed_floating): Likewise.
5005 * doublest.h: Remove declarations for undefined floatformat arrays.
5006 * gdbarch.sh (float_format, double_format, long_double_format): Change
5008 (pformat): Update for pairs.
5009 * gdbarch.c, gdbarch.h: Regenerated.
5010 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
5011 (floatformats_ieee_double_littlebyte_bigword)
5012 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
5013 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
5014 (floatformats_vax_d): New variables.
5015 (builtin_type_ieee_single, builtin_type_ieee_double)
5016 (builtin_type_arm_ext, builtin_type_ia64_spill)
5017 (builtin_type_ia64_quad): Replace arrays with individual types.
5018 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
5019 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
5020 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
5021 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
5022 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
5023 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
5024 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
5025 unused and endian-specific types.
5026 (recursive_dump_type): Update for floatformat pairs.
5027 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
5028 (build_gdbtypes): Use build_flt.
5029 (_initialize_gdbtypes): Update set of initialized types.
5030 * gdbtypes.h: Update declarations to match gdbtypes.c.
5031 (struct main_type): Store a pointer to two floatformats.
5032 * arch-utils.c (default_float_format, default_double_format): Delete.
5033 * arch-utils.h (default_float_format, default_double_format): Delete.
5035 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5036 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
5037 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
5038 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
5039 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
5041 2007-01-29 Joel Brobecker <brobecker@adacore.com>
5043 * target.c (maintenance_print_target_stack): New function.
5044 (initialize_targets): Add new "maintenance print target-stack"
5047 2007-01-28 Mark Kettenis <kettenis@gnu.org>
5049 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
5051 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
5053 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
5054 (struct dwarf2_loclist_baton): Likewise.
5056 2007-01-27 Eli Zaretskii <eliz@gnu.org>
5058 * cli/cli-script.c: Include breakpoint.h.
5059 (build_command_line): Require arguments only for if and while
5061 (get_command_line, execute_user_command, execute_control_command):
5062 Fix wording of warning messages.
5063 (print_command_lines): Print breakpoint commands.
5064 (execute_control_command): Call commands_from_control_command to
5065 handle the `commands' command inside a body of a flow-control
5067 (read_next_line): Recognize the `commands' command and build a
5068 command line structure for it.
5069 (recurse_read_control_structure, read_command_lines): Handle
5070 `commands' similarly to `if' and `while'.
5072 * breakpoint.c (get_number_trailer): Document the special meaning
5073 of NULL as the first argument PP.
5074 (commands_from_control_command): New function.
5076 * breakpoint.h (commands_from_control_command): Add prototype.
5078 * defs.h (commands_control): New enumerated value for enum
5079 command_control_type.
5081 2007-01-26 Joel Brobecker <brobecker@adacore.com>
5083 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
5084 (ada_exception_sal): Update accordingly.
5086 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5088 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
5089 * NEWS: Describe CHAR array vs. string identifcation rules.
5091 2007-01-25 Paul Brook <paul@codesourcery.com>
5093 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
5095 2007-01-24 Jim Blandy <jimb@codesourcery.com>
5097 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
5098 expression is empty, bother to return the 'optimized out' value we
5099 construct. (Thanks to Carl Burch.)
5101 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5103 * varobj.c (c_value_of_root, c_value_of_child)
5104 (cplus_describe_child): Don't call release_value.
5106 2007-01-24 Thiemo Seufer <ths@mips.com>
5108 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
5111 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5113 Refactor getting children name, value and type access
5115 * varobj.c (get_type_deref): Remove.
5116 (adjust_value_for_child_access): New.
5117 (c_number_of_children): Use the above.
5118 (c_describe_child): Likewise.
5119 (enum accessibility): New.
5120 (match_accessibility): New function.
5121 (cplus_describe_child): New function.
5122 (cplus_name_of_child, cplus_value_of_child)
5123 (cplus_type_of_child): Reimplement in terms
5124 of cplus_describe_child.
5125 (cplus_number_of_children): Use
5126 adjust_value_for_child_access.
5128 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5130 Fix computation of the 'editable' attribute and
5131 value changeability for for references.
5132 * varobj.c (get_value_type): New function.
5133 (c_variable_editable): Use get_value_type.
5134 (varobj_value_is_changeable): Likewise.
5136 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5138 * source.c (find_and_open_source): Try rewriting the source
5139 path inside filename if dirname is NULL.
5141 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5143 * dwarf2read.c (add_partial_symbol): Create an extra partial
5144 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
5145 (new_symbol): Likewise for symbols.
5147 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
5149 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
5151 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
5153 * value.c (value_primitive_field): Copy the full 'location'
5154 contents, instead of assuming that copying ADDRESS will
5155 bring over everything in the union. Remove obsolete comment.
5157 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
5159 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
5160 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
5161 (m32c_m16c_pointer_to_address): Separate code from declarations.
5163 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
5165 * target.c (update_current_target): Correct typo.
5167 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
5169 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
5172 2007-01-11 Andrew Cagney <cagney@redhat.com>
5173 Daniel Jacobowitz <dan@codesourcery.com>
5174 Jan Kratochvil <jan.kratochvil@redhat.com>
5176 * dwarf2-frame.c (execute_cfa_program): New support of
5177 `DW_CFA_GNU_negative_offset_extended'.
5179 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5181 * NEWS: Mention flash support for "load" and new remote packets.
5183 2007-01-21 Markus Deuling <deuling@de.ibm.com>
5185 * breakpoint.c (delete_command): Skip redundant loop iterations.
5187 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5189 * gdbarch.sh (register_type): Update comment.
5190 * gdbarch.h: Regenerated.
5191 * arch-utils.c (generic_register_size): Call register_type.
5192 * ia64-tdep.c (ia64_extract_return_value): Likewise.
5193 * m32c-tdep.c (check_for_saved): Likewise.
5194 * mips-tdep.c (mips_print_register, print_gp_register_row)
5195 (mips_print_registers_info): Likewise.
5196 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
5198 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
5199 (sh64_do_register, sh64_print_register)
5200 (sh64_media_print_registers_info): Likewise.
5201 * tui/tui-regs.c (tui_register_format): Likewise.
5203 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5205 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
5207 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
5208 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
5209 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
5210 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5211 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
5212 (make_symbol_completion_list): Likewise.
5214 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5215 Daniel Jacobowitz <dan@codesourcery.com>
5217 * buildsym.c (end_symtab): Use preallocated symtab if available.
5218 Fill in SYMBOL_SYMTAB.
5219 * buildsym.h (struct subfile): Add symtab member.
5220 * dwarf2read.c (struct dwarf2_cu): Add line_header.
5221 (struct file_entry): Add symtab.
5222 (free_cu_line_header): New function.
5223 (read_file_scope): Use it. Save line_header in the cu. Process
5225 (add_file_name): Initialize new symtab member.
5226 (dwarf_decode_lines): Create symtabs for included files.
5227 (new_symbol): Set SYMBOL_SYMTAB.
5228 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
5229 (search_symbols): Likewise.
5230 * symtab.h (struct symbol): Add symtab member.
5231 (SYMBOL_SYMTAB): Define.
5233 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5235 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
5237 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5239 * arch-utils.c (show_endian): Correct reversed condition.
5241 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5243 * MAINTAINERS (Write After Approval): Add myself.
5245 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
5246 Vladimir Prus <vladimir@codesourcery.com>
5248 Fix 'selected frame' varobjs.
5249 * varobj.c (struct varobj): Remove the error field.
5250 (varobj_set_value): Don't check var->error.
5251 (install_new_value): Don't set var->error.
5252 (varobj_update): Always pass the new value
5253 of the root via install_new_value.
5254 (create_child): Don't set error field.
5255 (new_variable): Likewise.
5256 (c_value_of_root): Always reevaluate the value
5257 of selected frame varobjs in the selected frame.
5258 Don't call reinit_frame_cache.
5260 2007-01-15 Joel Brobecker <brobecker@adacore.com>
5262 * source.c (_initialize_source): Improve the help text of
5263 the substitute-path commands.
5265 2007-01-14 Mark Kettenis <kettenis@gnu.org>
5267 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
5268 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
5269 (frv_skip_prologue): Remove prototypes.
5270 (frv_adjust_breakpoint_address): Renamed from
5271 frv_gdbarch_adjust_breakpoint_address.
5272 (frv_gdbarch_init): Adjust.
5274 2007-01-13 Mark Kettenis <kettenis@gnu.org>
5276 * gdbarch.sh (deprecated_extract_return_value)
5277 (deprecated_store_return_value): Remove.
5278 (extract_return_value, store_return_value): Remove default values.
5279 * gdbarch.c, gdbarch.h: Regenerate.
5280 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
5281 (legacy_store_return_value): Remove.
5282 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
5285 * mi/mi-main.c: Remove obsolete comment.
5287 * regcache.c, regcache.h (deprecated_register_bytes)
5288 (deprecated_read_register_bytes)
5289 (deprecated_write_register_bytes): Remove.
5291 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
5292 Don't forget to move destination pointer.
5294 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5296 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
5298 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
5300 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
5301 past entry function with recent newlib.
5303 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
5305 * gdb.texinfo (GDB/MI Variable Objects): Improve the
5306 introduction. Specify -var-update more exactly.
5308 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
5310 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
5312 2007-01-10 Jim Blandy <jimb@codesourcery.com>
5314 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
5315 the Global Maintainers' invitation to be a global maintainer.
5317 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
5319 * infrun.c (singlestep_pc): New variable.
5320 (resume): Set singlestep_pc.
5321 (context_switch): Add a debugging message. Flush the frame cache.
5322 (handle_inferior_event): Add debugging messages. Handle thread
5323 hops when a software single step has completed. Let context_switch
5324 handle flushing the frame cache.
5326 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5328 * NEWS: Mention target descriptions, "set tdesc filename",
5329 "unset tdesc filename", "show tdesc filename", and
5330 qXfer:features:read.
5331 * arch-utils.c (choose_architecture_for_target): New function.
5332 (gdbarch_info_fill): Call it.
5333 * target-descriptions.c (struct property): Make members non-const.
5334 (struct target_desc): Add arch member.
5335 (target_description_filename): New variable.
5336 (target_find_description): Try via XML first.
5337 (tdesc_architecture): New.
5338 (free_target_description, make_cleanup_free_target_description): New.
5339 (set_tdesc_property): Call xstrdup.
5340 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
5341 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
5342 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
5343 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
5344 * target-descriptions.h (tdesc_architecture)
5345 (make_cleanup_free_target_description, set_tdesc_architecture): New
5347 * Makefile.in (SFILES): Add xml-tdesc.c.
5348 (COMMON_OBS): Add xml-tdesc.o.
5349 (target-descriptions.o): Update.
5350 (xml-tdesc.o): New rule.
5351 * xml-tdesc.c, xml-tdesc.h: New files.
5352 * remote.c (PACKET_qXfer_features): New enum.
5353 (remote_protocol_features): Add qXfer:features:read.
5354 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
5355 (_initialize_remote): Register qXfer:features:read.
5356 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
5357 * features/gdb-target.dtd: New file.
5359 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5361 * copyright.sh: Clarify error.
5363 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5365 * symtab.c (matching_bfd_sections): Fix VMA matching for
5368 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5370 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
5373 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5375 Updated copyright notices for most files.
5377 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5379 * copyright.sh (prunes): Add step-line.inp and step-line.c.
5381 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5383 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
5385 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
5387 * configure, config.in: Regenerate.
5388 * defs.h (debug_file_directory): Declare.
5389 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
5390 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
5391 relocate it if DEBUGDIR_RELOCATABLE.
5392 * symfile.c (debug_file_directory): Make non-static.
5393 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
5394 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
5395 (_initialize_symfile): Don't initialize debug_file_directory here.
5397 2007-01-09 Jim Blandy <jimb@codesourcery.com>
5399 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
5402 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5404 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
5405 frame_unwind_register to recurse.
5406 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
5407 (alpha_heuristic_frame_prev_register): Likewise.
5408 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
5409 * m32c-tdep.c (m32c_prev_register): Likewise.
5410 * frame.c (frame_register_unwind_location): Remove FIXME.
5412 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5413 Eli Zaretskii <eliz@gnu.org>
5415 * copyright.sh: New file.
5417 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5419 * configure.ac: Check for XML_StopParser.
5420 * xml-support.c (gdb_xml_body_text): Check for an error.
5421 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
5422 (gdb_xml_end_element_wrapper): Likewise.
5423 * config.in, configure: Regenerated.
5425 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5427 * varobj.c (install_new_value): Always update print_value.
5428 (value_get_print_value): Immediately return NULL for missing
5431 2007-01-08 Jim Blandy <jimb@codesourcery.com>
5433 * configure.ac: Tighten pattern for extracting value of
5434 DEPRECATED_TM_FILE from the target makefile fragment.
5435 * configure: Regenerated.
5437 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5439 * linux-nat.c (struct simple_pid_list): Add status.
5440 (add_to_pid_list): Record the PID's status.
5441 (linux_record_stopped_pid): Likewise. Make static.
5442 (pull_pid_from_list): Return the saved status.
5443 (linux_nat_handle_extended): Deleted.
5444 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
5445 Make static. Handle non-SIGSTOP for a new thread's first signal.
5446 (flush_callback): Handle unexpected pending signals.
5447 (linux_nat_wait): Update calls to changed functions.
5448 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
5449 Remove prototypes for newly static functions.
5451 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5453 * gdbarch.sh (value_from_register): New gdbarch function.
5454 * gdbarch.c, gdbarch.h: Regenerate.
5455 * findvar.c (default_value_from_register): New function.
5456 (value_from_register): Use gdbarch_value_from_register.
5457 * value.h (default_value_from_register): Declare.
5458 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
5459 spu_value_to_register): Remove.
5460 (spu_value_from_register): New function.
5461 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5462 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5463 Call set_gdbarch_value_from_register.
5464 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
5465 s390_value_to_register): Remove.
5466 (s390_value_from_register): New function.
5467 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5468 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5469 Call set_gdbarch_value_from_register.
5471 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5473 * NEWS: Add "set sysroot" and "show sysroot".
5474 * solib.c (solib_absolute_prefix): Delete. Replace
5475 all uses with gdb_sysroot.
5476 (_initialize_solib): Add "set sysroot" and "show sysroot".
5477 Make "solib-absolute-prefix" an alias to it.
5479 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5481 * frame.c (get_frame_register_bytes): New function.
5482 (put_frame_register_bytes): Likewise.
5483 * frame.h (get_frame_register_bytes): Declare.
5484 (put_frame_register_bytes): Likewise.
5485 * findvar.c (value_from_register): Always construct lval_register
5486 values. Use get_frame_register_bytes.
5487 * valops.c (value_assign): Use get_frame_register_bytes and
5488 put_frame_register_bytes.
5490 2007-01-08 Jim Blandy <jimb@codesourcery.com>
5492 * MAINTAINERS: Update Stan Shebs' email address.
5494 2007-01-07 Joel Brobecker <brobecker@adacore.com>
5496 * ada-lang.c (is_known_support_routine): Improve the implementation.
5498 2007-01-06 Joel Brobecker <brobecker@adacore.com>
5500 * ada-lang.c: Add include of source.h.
5501 (is_known_support_routine): Improve the check verifying that the file
5502 associated to this frame exists.
5503 * Makefile.in (ada-lang.o): Add dependency on source.h.
5505 2007-01-07 Jim Blandy <jimb@codesourcery.com>
5507 * ax-general.c (ax_const_l): Select proper opcode for the given
5510 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
5512 * varobj.c (c_value_of_root): Don't select frame if variable
5513 object is out of scope.
5515 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5517 * varobj.c (struct varobj): New member print_value.
5518 (install_new_value): Compare last printed value with current one
5519 instead of contents.
5520 (new_variable): Initialize var->print_value to NULL.
5521 (free_variable): Free var->print_value.
5522 (value_get_print_value): New function derived from
5523 c_value_of_variable.
5524 (c_value_of_variable): Use value_get_print_value.
5526 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5528 * i386-tdep.c (i386_analyze_stack_align): Add comment.
5530 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5532 * NEWS: Add entries for new catch commands.
5534 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5536 * dwarf2read.c (partial_die_info): Add field has_byte_size.
5537 (add_partial_symbol): Correct identification of external references.
5538 (process_structure_scope): Likewise.
5539 (read_partial_die): Handle DW_AT_byte_size attribute.
5541 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
5543 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
5545 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5547 * varobj.c (get_type_deref): Fix variable objects for references to
5550 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5552 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
5555 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5557 * memory-map.c (struct_memory_map_parsing_data): Remove most
5558 members. Make property_name an array.
5559 (free_memory_map_parsing_data, memory_map_start_element)
5560 (memory_map_end_element, memory_map_character_data): Delete.
5561 (memory_map_start_memory, memory_map_end_memory)
5562 (memory_map_start_property, memory_map_end_property): New functions.
5563 (property_attributes, memory_children, memory_type_enum)
5564 (memory_attributes, memory_map_children, memory_map_elements): New.
5565 (parse_memory_map): Rewrite.
5566 * xml-support.c (debug_xml): New.
5567 (xml_get_required_attribute, xml_get_integer_attribute)
5568 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
5570 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
5571 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
5572 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
5573 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
5574 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
5575 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
5576 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
5578 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
5579 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
5580 (enum gdb_xml_element_flag, struct gdb_xml_element)
5581 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
5582 (struct gdb_xml_enum): New.
5583 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
5584 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
5585 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
5586 (xml_get_required_attribute, xml_get_integer_attribute)
5587 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
5588 * Makefile.in (xml_support_h, xml-support.o): Update.
5590 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5592 * Makefile.in (eval.o): Update dependencies.
5593 * eval.c: Include "ui-out.h" and "exceptions.h".
5594 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
5595 Use value_zero if an error occurs when avoiding side effects.
5596 * varobj.c (c_value_of_root): Initialize new_val.
5598 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5600 * varobj.c (varobj_list_children): Stop if the number of children is
5602 (c_number_of_children):
5604 2007-01-04 Mark Kettenis <kettenis@gnu.org>
5606 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
5607 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
5608 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
5609 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
5610 sizeof, instead of hardcoded constants.
5612 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5614 * CONTRIBUTE: Use sourceware.org.
5616 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5618 * buildsym.c (start_subfile): Handle producer.
5619 (record_producer): New function.
5620 * buildsym.h (struct subfile): Include producer.
5621 (record_producer): New prototype.
5622 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
5623 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
5624 armcc_cfa_offsets_reversed.
5625 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
5626 (dwarf2_frame_find_quirks): New function.
5627 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
5628 (decode_frame_entry_1): Record the CIE version. Record the
5629 augmentation. Skip armcc augmentations.
5630 * dwarf2read.c (read_file_scope): Save the producer.
5631 * symtab.h (struct symtab): Rename unused version member to
5634 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5636 * configure.ac (build_warnings): Use -Wall and
5637 -Wdeclaration-after-statement.
5638 * configure: Regenerated.
5640 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5642 Simplify access to variours properties of child
5643 variable objects in C.
5644 * varobj.c (value_struct_element_index): New function.
5645 (c_describe_child): New function.
5646 (c_name_of_child, c_value_of_child)
5647 (c_type_of_child): Rewrite to use c_describe_child.
5649 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5652 * varobj.c: Include "vec.h".
5653 (varobj_p): New typedef, declare vector of those.
5654 (struct varobj): Use vector for the 'children' member.
5655 (child_exists): Remove.
5656 (save_child_in_parent): Remove.
5657 (remove_child_from_parent): Remove.
5658 (struct varobj_child): Remove.
5659 (struct vstack): Remove.
5660 (vpush, vpop): Remove.
5661 (varobj_list_children): Adjust to work work vector.
5662 (varobj_update): Likewise. Use vectors for
5663 working stack and result.
5664 (delete_variable_1): Likewise.
5665 * Makefile.in (varobj.o): Update dependencies.
5667 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5669 Port from Apple's version.
5671 * varobj.c (type_changeable): Rename to...
5672 (varobj_value_is_changeable_p): ...this. Adjust all callers.
5673 (is_root_p): New function. Use it everywhere.
5675 2007-01-04 Jim Blandy <jimb@codesourcery.com>
5677 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
5680 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5682 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
5684 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5686 * hpread.c (hpread_type_lookup): Fix compilation failure.
5688 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
5690 * NEWS: New port to S+core.
5691 * MAINTAINERS (Write After Approval, Responsible Maintainers):
5694 * Makefile.in: Add dependencies for S+core files.
5695 * configure.tgt (score*, score-*-*): Add S+core target.
5696 * config/score/embed.mt: New file.
5697 * score-tdep.c: New file.
5698 * score-tdep.h: New file.
5700 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5702 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
5703 the appropriate type rather than a bogus void type.
5705 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5707 * ada-lang.h (ada_find_printable_frame): Remove.
5708 (ada_exception_catchpoint_p, ada_decode_exception_location)
5709 (ada_decode_assert_location): Add declaration.
5710 * ada-lang.c: Add include of annotate.h and valprint.h.
5711 (exception_catchpoint_kind): New enum.
5712 (function_name_from_pc, is_known_support_routine)
5713 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
5714 (ada_exception_name_addr_1, ada_exception_name_addr)
5715 (print_it_exception, print_one_exception, print_mention_exception)
5716 (print_it_catch_exception, print_one_catch_exception)
5717 (print_mention_catch_exception, catch_exception_breakpoint_ops)
5718 (print_it_catch_exception_unhandled)
5719 (print_one_catch_exception_unhandled)
5720 (print_mention_catch_exception_unhandled, print_it_catch_assert)
5721 (print_one_catch_assert, print_mention_catch_assert)
5722 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
5723 (ada_get_next_arg, catch_ada_exception_command_split)
5724 (ada_exception_sym_name, ada_exception_sym_name)
5725 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
5726 (ada_parse_catchpoint_condition, ada_exception_sal)
5727 (ada_decode_exception_location)
5728 (ada_decode_assert_location): New function.
5729 (catch_exception_unhandled_breakpoint_ops): New global variable.
5730 (catch_assert_breakpoint_ops): New global variable.
5731 * breakpoint.c: Add include of ada-lang.h.
5732 (print_one_breakpoint): Do not print the condition for Ada
5733 exception catchpoints.
5734 (create_ada_exception_breakpoint): New function.
5735 (catch_ada_exception_command, catch_assert_command): New function.
5736 (catch_command_1): Add support for the new "catch exception" and
5737 "catch assert" commands.
5738 (_initialize_breakpoint): Add help description for the new catch
5740 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
5742 (breakpoint.o): Add dependency on ada-lang.h.
5744 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
5746 * coffread.c (cs_to_section): If bfd_section is found, always
5747 return its section index.
5748 (coff_symtab_read): Determine the minimal_symbol_type using the
5751 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5752 Daniel Jacobowitz <dan@codesourcery.com>
5754 * Makefile.in (top.o): Update.
5755 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
5756 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
5757 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
5759 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
5761 2007-01-03 Mark Kettenis <kettenis@gnu.org>
5763 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
5764 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
5766 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5768 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
5769 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
5770 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
5771 greater than or equal to zero.
5772 * m2-typeprint.c (m2_array): Likewise.
5773 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5774 * gdbtypes.c (copy_type_recursive): Correct == typo.
5775 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
5776 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
5778 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
5779 (default_macro_scope): Remove unused variable.
5780 * prologue-value.h (pv_area_find_reg): Don't name an argument
5782 * remote-fileio.c (remote_fio_func_map): Add missing braces.
5783 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5785 (cleanup_sigint_signal_handler): Remove casts.
5786 * valprint.c (val_print): Use a volatile local for the modified
5788 * varobj.c (languages): Remove extra array dimension.
5789 (varobj_create): Correct access to languages array.
5790 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5792 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5793 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5794 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5795 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5796 (mi_cmd_data_write_memory): Likewise.
5797 * signals/signals.c (target_signal_to_string): Cast to int before
5799 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5802 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5804 * NEWS: Mention pointer to member improvements.
5805 * Makefile.in (gnu-v3-abi.o): Delete special rule.
5806 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5807 * ada-valprint.c (ada_print_scalar): Update for new type codes.
5808 * c-typeprint.c (c_print_type): Update for new type codes.
5809 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5810 (c_type_print_base): Likewise.
5811 (c_type_print_args): Rewrite.
5812 * c-valprint.c (c_val_print): Update for new type codes. Remove
5813 support for references to members. Treat methods like functions.
5814 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5815 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5816 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5817 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5818 (struct cp_abi_ops): Add corresponding members.
5819 * cp-valprint.c (cp_print_class_method): Delete.
5820 (cp_find_class_member): New function.
5821 (cp_print_class_member): Use it. Simplify support for bogus
5823 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5824 lookup_methodptr_type.
5825 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5826 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5827 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
5829 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
5830 references returned by user defined operators.
5831 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5832 (f_type_print_varspec_suffix): Remove support for member pointers.
5833 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5835 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5836 (lookup_methodptr_type): New.
5837 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5838 (recursive_dump_type): Update for new types.
5839 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5840 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5841 (lookup_memberptr_type, lookup_methodptr_type)
5842 (smash_to_memberptr_type): New prototypes.
5843 (smash_to_method_type): Formatting fix.
5844 (lookup_member_type, smash_to_member_type): Delete prototypes.
5845 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5846 Do not rely on debug information for the vptr or the method's
5847 enclosing type. Handle function descriptors for IA64.
5848 (gnuv3_virtual_fn_field): Rewrite using the new functions.
5849 (gnuv3_find_method_in, gnuv3_print_method_ptr)
5850 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5851 (gnuv3_method_ptr_to_value): New.
5852 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5853 * hpread.c (hpread_type_lookup): Update for new types.
5854 * infcall.c (value_arg_coerce): Likewise.
5855 * m2-typeprint.c (m2_print_type): Remove explicit support
5856 for member pointers.
5857 * m2-valprint.c (m2_val_print): Likewise.
5858 * p-typeprint.c (pascal_type_print_varspec_prefix)
5859 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5860 * p-valprint.c (pascal_val_print): Likewise.
5861 (pascal_object_print_class_method, pascal_object_print_class_member):
5863 * p-lang.h (pascal_object_print_class_method)
5864 (pascal_object_print_class_member): Delete prototypes.
5865 * stabsread.c (read_type): Update for new types.
5866 * typeprint.c (print_type_scalar): Likewise.
5867 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5868 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5869 argument. Construct a pointer to member if the address of a
5870 function or data member is requested.
5871 (value_cast_pointers): Don't modify the input value.
5872 (value_cast): Adjust pointer to member handling for new types.
5873 Allow null pointer to member constants. Don't modify the input
5875 (value_ind): Remove pointer to member check. Handle function
5876 descriptors for function pointers.
5877 (value_struct_elt, value_find_oload_method_list, check_field):
5878 Remove pointer to member checks.
5879 * value.c (unpack_long): Allow pointers to data members.
5880 (value_from_longest): Allow member pointers.
5881 * value.h (value_aggregate_elt): Add want_address.
5882 * varobj.c (c_variable_editable): Remove check for members.
5883 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5884 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5886 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5887 * c-lang.h (cp_print_class_method): Delete prototype.
5888 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5889 * mips-tdep.c (mips_gdbarch_init): Likewise.
5890 * gdbarch.c, gdbarch.h: Regenerated.
5892 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5894 * rs6000-tdep.c (rs6000_use_struct_convention)
5895 (rs6000_extract_return_value, rs6000_store_return_value)
5896 (rs6000_extract_struct_value_address): Remove.
5897 (rs6000_return_value): New function.
5898 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5899 store_return_value, deprecated_extract_struct_value_address and
5900 deprecated_use_struct_convention. Use rs6000_return_value
5903 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
5905 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
5906 -display-disable, -display-enable, -display-insert and
5909 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5911 * breakpoint.c (remove_breakpoint): Remove dead code.
5913 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
5915 * varobj.c: Include block.h.
5916 (c_value_of_root): Check scope within nested statements.
5918 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5920 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
5921 regcache_cooked_write_signed instead of
5922 deprecated_write_register_bytes.
5924 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5926 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
5928 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5930 Followed the Start of New Year Procedure:
5931 * ChangeLog-2006: New file, containing all the entries for 2006.
5932 * ChangeLog: Removed all 2006 entries, and changed the reference
5933 to the previous ChangeLog to point to ChangeLog 2006.
5934 * top.c (print_gdb_version): Update copyright year.
5936 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5938 * Makefile.in (remote-sds.o): Remove.
5939 * remote-sds.c: Delete.
5941 For older changes see ChangeLog-2006.
5947 version-control: never