1 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3 * breakpoint.c (print_one_breakpoint_location): ARI fix:
4 Replace asprintf by xstrprintf.
6 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
8 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
9 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
11 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
13 * linux-fork.c: Move "gdb_wait.h" include back to the position of
14 <sys/wait.h> include before last commit.
16 2007-10-08 Maciej W. Rozycki <macro@mips.com>
18 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
20 2007-10-08 Markus Deuling <deuling@de.ibm.com>
22 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
23 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
24 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
25 (store_regs_user_thread, store_regs_kernel_thread): Use
26 get_regcache_arch or get_frame_arch to get at the current architecture
27 by regcache or by frame, respectively.
29 2007-10-08 Markus Deuling <deuling@de.ibm.com>
31 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
32 (sh64_pseudo_register_read, sh64_pseudo_register_write)
33 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
34 (sh64_print_register, sh64_media_print_registers_info)
35 (sh64_compact_print_registers_info, sh64_unwind_sp)
36 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
37 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
38 (sh64_frame_prev_register): Use FRAME to recognize current
41 2007-10-08 Markus Deuling <deuling@de.ibm.com>
43 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
44 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
45 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
46 current_gdbarch by gdbarch.
47 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
48 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
49 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
50 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
51 recognize current architecture.
53 2007-10-08 Markus Deuling <deuling@de.ibm.com>
55 * remote.c (init_remote_state, fetch_register_using_p)
56 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
57 (store_register_using_P, store_registers_using_G)
58 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
59 get at the current architecture by regcache or by frame, respectively.
61 2007-10-08 Markus Deuling <deuling@de.ibm.com>
63 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
64 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
65 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
66 get_regcache_arch or get_frame_arch to get at the current architecture
67 by regcache or by frame, respectively.
68 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
69 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
70 (store_register, old_store_inferior_registers, supply_gregset)
71 (supply_fpregset, fill_fpregset): Likewise.
72 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
73 Replace current_gdbarch by gdbarch.
75 2007-10-08 Markus Deuling <deuling@de.ibm.com>
77 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
78 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
79 get_frame_arch to get at the current architecture by regcache or by
82 2007-10-08 Markus Deuling <deuling@de.ibm.com>
84 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
85 Replace current_gdbarch by gdbarch.
86 * ia64-tdep.c (ia64_frame_prev_register
87 (ia64_sigtramp_frame_prev_register)
88 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
89 get_frame_arch to get at the current architecture by regcache or by
91 * ia64-linux-nat.c (ia64_linux_fetch_register)
92 (ia64_linux_fetch_registers, ia64_linux_store_register)
93 (ia64_linux_store_registers): Likewise.
95 2007-10-08 Markus Deuling <deuling@de.ibm.com>
97 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
98 current_gdbarch by gdbarch.
99 * hppa-linux-nat.c (fetch_register, store_register)
100 (hppa_linux_fetch_inferior_registers)
101 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
102 get_frame_arch to get at the current architecture by regcache or by
104 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
105 (hppa_hpux_unwind_adjust_stub): Likewise.
106 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
107 (hppa_hpux_fetch_inferior_registers)
108 (hppa_hpux_store_inferior_registers): Likewise.
110 2007-10-08 Markus Deuling <deuling@de.ibm.com>
112 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
113 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
114 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
115 or get_frame_arch to get at the current architecture by regcache or by
117 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
118 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
119 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
120 current_gdbarch by gdbarch.
122 2007-10-08 Markus Deuling <deuling@de.ibm.com>
124 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
125 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
126 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
127 get at the current architecture by regcache or by·frame, respectively.
128 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
131 2007-10-08 Markus Deuling <deuling@de.ibm.com>
133 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
134 Use get_regcache_arch or get_frame_arch to get at the current
135 architecture by regcache or by frame, respectively.
136 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
137 * amd64-nat.c (amd64_supply_native_gregset)
138 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
140 2007-10-08 Markus Deuling <deuling@de.ibm.com>
142 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
144 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
145 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
146 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
147 get_frame_arch to get at the current architecture by regcache or by
149 * alpha-nat.c (fetch_osf_core_registers): Likewise.
151 2007-10-08 Markus Deuling <deuling@de.ibm.com>
153 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
154 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
155 current_gdbarch by gdbarch.
156 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
158 2007-10-08 Markus Deuling <deuling@de.ibm.com>
160 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
161 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
162 * regcache.c (regcache_raw_write): Use get_regcache_arch or
163 get_frame_arch to get at the current architecture by regcache or by
166 2007-10-08 Markus Deuling <deuling@de.ibm.com>
168 * findvar.c (value_of_register, locate_var_value): Use
169 get_regcache_arch or get_frame_arch to get at the current architecture
170 by regcache or by frame, respectively.
171 * findvar.c (default_value_from_register, value_from_register): Replace
172 current_gdbarch by gdbarch.
174 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
176 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
178 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
180 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
181 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
183 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
185 * remote.c (get_offsets): Only call free_symfile_segment_data if
188 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
190 * objc-exp.y: ARI fix: remove 4 PARAMS.
192 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
194 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
195 news. Mention XML support for M68K in GDB 6.7.
197 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
199 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
201 (init_vector_type): Use builtin_type_int32.
203 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
205 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
206 size to enable bi-arch generate-core-file support.
208 2007-10-02 Markus Deuling <deuling@de.ibm.com>
210 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
212 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
214 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
216 * tui/tui-win.c (tui_initialize_win): New function for
217 initializing tui's SIGWINCH signal handler.
218 * tui/tui-win.h (tui_initialize_win): Declare.
220 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
222 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
223 pointer to uintptr_t before casting to CORE_ADDR.
225 2007-10-02 Markus Deuling <deuling@de.ibm.com>
227 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
229 2007-10-02 Mark Mitchell <mark@codesourcery.com>
231 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
232 * ser-mingw.c (enum select_thread_state): New type.
233 (struct ser_console_state): Add have_started and thread_state.
234 (select_thread_wait): New function.
235 (thread_fn_type): New type.
236 (create_select_thread): New function.
237 (destroy_select_thread): Likewise.
238 (start_select_thread): Likewise.
239 (stop_select_thread): Likewise.
240 (console_select_thread): Use new functions.
241 (pipe_select_thread): Likewise.
242 (file_select_thread): Likewise.
243 (ser_console_wait_handle): Likewise.
244 (ser_console_done_wait_handle): Likewise.
245 (ser_console_close): Likewise.
246 (free_pipe_state): Likewise.
247 (pipe_wait_handle): Likewise.
248 (pipe_done_wait_handle): Likewise.
249 (struct net_windows_state): Derive from ser_console_state.
250 (net_windows_select_thread): Use new functions.
251 (net_windows_wait_handle): Likewise.
252 (net_windows_done_wait_handle): Likewise.
253 (net_windows_close): Likewise.
255 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
257 * inflow.c (terminal_ours_1): Remove useless line.
259 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
261 * mips-tdep.c (mips_read_fp_register_double): Correct check for
263 (mips_print_fp_register): Correct check for even FP registers.
264 (mips_virtual_frame_pointer): New function.
265 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
267 2007-09-30 Mike Frysinger <vapier@gentoo.org>
269 * value.h (lookup_only_internalvar): New prototype.
270 (create_internalvar): Likewise.
271 * value.c (lookup_only_internalvar): New function.
272 (create_internalvar): Likewise.
273 (lookup_internalvar): Use new lookup_only_internalvar and
274 create_internalvar functions.
275 * parse.c (write_dollar_variable): Look up $ symbols in internal
276 table first rather than last.
278 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
280 * linux-nat.c (linux_nat_new_thread): New variable.
281 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
282 linux_nat_switch_fork.
283 (lwp_list): Make public.
284 (add_lwp): Call linux_nat_new_thread.
285 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
287 (resume_callback): Clear lp->siginfo. Remove unused variable.
288 (linux_nat_resume): Assert that the LWP list is already initialized.
291 (stop_wait_callback, linux_nat_wait): Call it.
292 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
293 * linux-nat.h (struct lwp_info): Add siginfo.
294 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
297 * amd64-linux-nat.c (amd64_linux_dr): New.
298 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
299 (amd64_linux_dr_set): Take a PTID argument.
300 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
301 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
302 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
303 (amd64_linux_new_thread): New.
304 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
305 * i386-linux-nat.c (i386_linux_dr): New.
306 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
307 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
308 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
309 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
310 (i386_linux_new_thread): New.
311 (i386_linux_resume): Remove unnecessary PID check.
312 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
313 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
314 (fetch_debug_register, fetch_debug_register_pair): Delete.
315 (debug_registers): New.
316 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
317 ALL_LWPS and debug_registers.
318 (ia64_linux_new_thread): New.
319 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
320 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
321 * ppc-linux-nat.c (last_stopped_data_address): Delete.
322 (saved_dabr_value): New.
323 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
325 (ppc_linux_new_thread): New.
326 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
327 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
328 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
329 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
331 (s390_fix_watch_points): Take a PTID argument.
332 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
333 (_initialize_s390_nat): Call linux_nat_set_new_thread.
335 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
336 Jeff Johnston <jjohnstn@redhat.com>
338 * breakpoint.c (watchpoints_triggered): New.
339 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
340 Check watchpoint_triggered instead. Combine handling for software
341 and hardware watchpoints. Do not use target_stopped_data_address
342 here. Always check a watchpoint if its scope breakpoint triggers.
343 Do not stop for thread or overlay events. Improve check for
344 triggered watchpoints without a value change.
345 (watch_command_1): Insert the scope breakpoint first. Link the
346 scope breakpoint to the watchpoint.
347 * breakpoint.h (enum watchpoint_triggered): New.
348 (struct breakpoint): Add watchpoint_triggered.
349 (bpstat_stop_status): Update prototype.
350 (watchpoints_triggered): Declare.
351 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
352 (stepped_after_stopped_by_watchpoint): Delete.
353 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
354 local. Handle infwait_step_watch_state. Update calls to
355 bpstat_stop_status. Use watchpoints_triggered to check
357 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
358 (remote_stopped_data_address): Do not check it.
360 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
362 * configure.ac: Add $LIBINTL when testing libbfd.
363 * configure: Regenerated.
365 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
367 * NEW: Mention pending breakpoint changes and
368 support for breakpoints at multiple locations.
370 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
372 * arm-linux-tdep.c (arm_linux_software_single_step): New.
373 (arm_linux_init_abi): Use it.
374 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
376 * arm-tdep.h (arm_get_next_pc): Declare.
377 * Makefile.in (arm-linux-tdep.o): Update.
379 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
381 * varobj.c (install_new_value): Don't
382 call value_get_print_value when a value is
383 lazy. Update the print_value member in a
386 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
388 * breakpoint.c (create_breakpoint): Set
389 condition on each location, not on the first
390 location of breakpoint.
392 2007-09-26 Jim Blandy <jimb@codesourcery.com>
394 * remote.c (getpkt_sane): Fix error message. No animals were
395 harmed in the making of this debugger.
397 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
399 * p-typeprint.c: Fix 11 ARI reported problems.
400 (pascal_print_type): Fix 4 operator at end of line.
401 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
402 using strncmp function.
403 (pascal_type_print_base): Fix 2 operator at end of line.
404 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
405 using strncmp function.
408 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
411 dwarf2read.c (read_subroutine_type):
412 All pascal functions are prototyped.
414 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
417 p-valprint.c (pascal_val_print): correct current language check.
418 Also print array of char as strings.
421 2007-09-26 David Ung <davidu@mips.com>
422 Maciej W. Rozycki <macro@mips.com>
424 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
426 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
428 * p-exp.y: Fix 12 ARI reported problems.
429 (name_not_typename): Fix 2 operator at end of line issues.
430 (yylex): Fix 3 operator at end of line issues.
431 Replace 7 DEPRECATED_STREQ macros using strcmp function.
433 2007-09-25 David Ung <davidu@mips.com>
434 Maciej W. Rozycki <macro@mips.com>
436 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
437 rules return composite types in registers as appropriate.
439 2007-09-24 Jim Blandy <jimb@codesourcery.com>
441 * symfile.h (struct symfile_segment_data): Doc fixes.
442 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
443 Assert that we were passed some loaded segment addresses,
444 and that sections' segment numbers are valid.
445 Simplify offset calculation.
446 * remote.c (get_offsets): Clarify selection of relocate-by-segment
447 strategy, and set num_segments correctly. Delete redundant
448 assignments to do_sections.
450 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
452 * frame.c (get_prev_frame_1): Also check for PC in the same register.
454 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
456 * breakpoint.c (remove_sal): New.
457 (expand_line_sal_maybe): New.
458 (create_breakpoints): Call expand_line_sal_maybe.
459 (clear_command): Add comment.
460 (breakpoint_re_set_one): Call expand_line_sal_maybe.
461 * linespec.c (decode_indirect): Set explicit_pc to 1.
462 (decode_all_digits): Set explicit_line to 1.
463 (append_expanded_sal): New.
464 (expand_line_sal): New.
465 * linespec.h (expand_line_sal): Declare.
466 * symtab.c (init_sal): Initialize explicit_pc
468 * symtab.h (struct symtab_and_line): New fields
469 explicit_pc and explicit_line.
471 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
473 * infcall.c (call_function_by_hand): Handle language-specific
474 pass and return by reference.
476 * cp-abi.c (cp_pass_by_reference): New.
477 * cp-abi.h (cp_pass_by_reference): Declare.
478 (struct cp_abi_ops): Add pass_by_reference.
479 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
480 (init_gnuv3_ops): Set pass_by_reference.
482 * language.c (language_pass_by_reference): New.
483 (default_pass_by_reference): New.
484 (unknown_language_defn, auto_language_defn, local_language_defn): Add
485 default_pass_by_reference.
486 * langauge.h (struct language_defn): Add la_pass_by_reference.
487 (language_pass_by_reference, default_pass_by_reference): Declare.
488 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
489 * c-lang.c (c_language_defn, asm_language_defn)
490 (minimal_language_defn): Likewise.
491 (cplus_language_defn): Add cp_pass_by_reference.
492 * f-lang.c (f_language_defn): Add default_pass_by_reference.
493 * jv-lang.c (java_language_defn): Likewise.
494 * m2-lang.c (m2_language_defn): Likewise.
495 * objc-lang.c (objc_language_defn): Likewise.
496 * p-lang.c (pascal_language_defn): Likewise.
497 * scm-lang.c (scm_language_defn): Likewise
499 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
501 Allow a code breakpoint to have several locations
503 * breakpoint.h (enum enable_state): Remove the
504 bp_shlib_disabled enumerator.
505 (struct bp_location): New members shlib_disabled,
506 global_next, enabled and function_name.
507 Rename pending to condition_not_parsed.
509 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
510 (ALL_BP_LOCATIONS_SAFE): Likewise.
511 (breakpoint_enabled): Don't check for pending.
512 (condition_command): Free and update all locations of
514 (insert_bp_location): Adjust.
515 (software_breakpoint_inserted_here_p): Don't care
516 if breakpoint is enabled, as soon as it's inserted.
517 (print_it_typical): Print bpstat's location, not
518 bpstat's breakpoint's location.
519 (bpstat_stop_status): Iterate over all locations, not
521 (print_breakpoint_location): New.
522 (print_one_breakpoint): Renamed to
523 (print_one_breakpoint_location): ...this. Take
524 parameters to describe which location is being
525 printed. Modify code to properly print header
526 for several locations and individual locations.
527 (print_one_breakpoint): Print all locations.
528 (breakpoint_has_pc): New.
529 (describe_other_breakpoints): Use the above.
530 (check_duplicates): Renamed to...
531 (check_duplicates_for): .. this.
532 (check_duplicates): Use check_duplicates_for.
533 (allocate_bp_location): Adjust.
534 (set_raw_breakpoint_without_location): New,
535 extracted from set_raw_breakpoint.
536 (set_breakpoint_location_function): New.
537 (set_raw_breakpoint): Use
538 set_raw_breakpoint_without_location.
539 (make_breakpoint_permanent): Mark all locations
541 (disable_breakpoints_in_shlibs): Iterate over
543 (disable_breakpoints_in_unloaded_shlib): Likewise.
544 (re_enable_breakpoints_in_shlibs): Likewise.
545 (mention): Say "pending" when breakpoint has
546 zero locations. If breakpoint has more than one
548 (add_location_to_breakpoint): New.
549 (create_breakpoint): Accept symtabs_and_lines, not
550 symtab_and_line. Pass extra sals to
551 add_location_to_breakpoint.
552 (create_breakpoints): Pass symtabs_and_lines to
554 (break_command_1): Make pending breakpoints
556 (do_captured_breakpoint): Remove wrong allocation.
557 (clear_command): Iterate over all locations.
558 (unlink_locations_from_global_list): Renamed
559 from unlink_location_from_global_list. Remove
561 (delete_breakpoint): Remove all locations.
562 Iterate over all locations when deciding which
563 other location to re-enable.
564 (all_locations_are_pending): New.
565 (update_breakpoint_locations): Renamed from
566 update_breakpoint_location. Try to match old
567 and new locations using names of containing
569 (breakpoint_re_set_one): Adjust.
570 (find_location_by_number): New.
571 (disable_command): Allow disabling individual location.
572 (enable_command): Allow enabling individual location.
573 * breakpoint.c: Adjust all uses of breakpoint's
574 enable state to for bp_shlib_disabled change.
576 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
578 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
579 (resolve_pending_breakpoint): Remove.
580 (re_enable_breakpoints_in_shlibs): Remove.
581 (unlink_locations_from_global_list): New.
582 (update_breakpoint_locations): New.
583 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
584 Use parse_condition and update_breakpoint_location to
585 reset breakpoint. Ignore 'symbol not found' error from
587 (breakpoint_re_set): Don't emit newline before the
588 reason why breakpoint is not reset.
589 (do_enable_breakpoint): Don't specially process pending
591 (free_bp_location): New.
592 (break_command_1): For pending breakpoints, initialize
593 all fields of a sal with zeroes.
594 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
595 * infcmd.c (post_create_inferior): Don't call
596 re_enable_breakpoints_in_shlibs.
597 * infrun.c (handle_inferior_event): Likewise.
598 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
599 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
600 * win32-nat.c (get_win32_debug_event): Likewise.
602 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
604 * breakpoint.c (create_breakpoint): Split from
605 create_breakpoints, implementing most of its logic.
606 Take just a single sal, single address string and
607 single condition. Do not take parsed condition at
609 (create_breakpoints): Just call create_breakpoint
611 (find_condition_and_thread): New.
612 (break_command_1): Use find_condition_and_thread.
613 Do not keep parsed conditions.
614 (do_captured_breakpoint): Don't convert
615 condition string to struct expression.
617 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
619 * breakpoint.h (struct breakpoint): Move the cond
621 (struct bp_location): Here.
622 * breakpoint.c (condition_command, bpstat_stop_status)
623 (print_one_breakpoint, allocate_bp_location)
624 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
625 (create_exec_event_catchpoint, create_breakpoints)
626 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
627 (create_ada_exception_breakpoint, set_breakpoint_sal)
628 (delete_breakpoint, breakpoint_re_set_one): Adjust.
629 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
631 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
633 Associate bp_stat with bp_location, not breakpoint.
634 * breakpoint.h (breakpoint_at): Change type
636 * breakpoint.c (bpstat_alloc): Take bp_location,
638 (bpstat_find_breakpoint): Look at bpstat's location's
639 owner, not at bpstat->breakpoint_at.
640 (bpstat_find_step_resume_breakpoint): Likewise.
641 (bpstat_num): Likewise.
642 (print_it_typical): Likewise.
643 (print_bp_stop_message): Likewise.
644 (watchpoint_check): Likewise.
645 (bpstat_what): Likewise.
646 (bpstat_get_triggered_catchpoints): Likewise.
647 (breakpoint_auto_delete): Likewise.
648 (delete_breakpoint): Likewise.
649 (bpstat_stop_status): Pass location, not breakpoint,
650 to bpstat_alloc. Look at bpstat's location's
651 owner, not at bpstat->breakpoint_at.
653 2007-09-21 Jim Blandy <jimb@codesourcery.com>
655 * macrotab.h (new_macro_table): Document that removing information
656 from an obstack/bcache-managed macro table leaks memory.
657 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
658 that data is never freed in obstack/bcache-managed macro tables,
659 just leak the storage.
660 (macro_undef): If we're undefining a macro at exactly the same
661 source location that we defined it, simply remove the definition
664 2007-09-21 Joel Brobecker <brobecker@adacore.com>
666 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
667 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
668 Adjust the struct sym_fns object accordingly by setting
669 the new field to NULL.
670 * xcoffread.c (aix_process_linenos): Make static.
671 (xcoff_sym_fns): Set new field to aix_process_linenos.
672 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
673 by call to new the new sym_fns sym_read_linetable function.
674 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
675 * config/rs6000/tm-rs6000.h: Delete.
677 2007-09-21 David Ung <davidu@mips.com>
678 Maciej W. Rozycki <macro@mips.com>
680 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
681 rules do not treat composite types specially.
683 2007-09-20 Maciej W. Rozycki <macro@mips.com>
685 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
686 (mips16_in_function_epilogue_p): Likewise.
687 (mips_in_function_epilogue_p): Likewise.
688 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
690 2007-09-19 Joel Brobecker <brobecker@adacore.com>
692 * configure.ac: Add check for "etext".
693 * configure, config.in: Regenerate.
694 * maint.c (TEXTEND): Only define if either _etext or etext
696 Disable the profiling functionality if TEXTEND is not defined.
698 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
700 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
701 address register. Correct the call to frame_id_build.
702 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
705 2007-09-18 Joel Brobecker <brobecker@adacore.com>
707 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
708 the linetable past the function end.
710 2007-09-18 James E. Wilson <wilson@specifix.com>
712 * MAINTAINERS: Update my email address.
714 2007-09-18 Jerome Guitton <guitton@adacore.com>
716 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
717 (inf_ttrace_delete_dying_threads_callback): New function.
718 (inf_ttrace_resume): After resuming the execution, iterate over
719 the dying threads to delete them for the thread list.
720 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
721 mark the corresponding thread as dying instead of removing it
722 from the thread list.
723 (inf_ttrace_thread_alive): return 0 for dying threads.
725 2007-09-17 Joel Brobecker <brobecker@adacore.com>
727 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
728 that return_frame is not null.
730 2007-09-17 Joel Brobecker <brobecker@adacore.com>
732 * solib-svr4.c: Add include of "auxv.h".
733 (enable_break): Use the AT_BASE auxiliary entry if available.
734 * Makefile.in (solib-svr4.o): Update dependencies.
736 2007-09-17 Joel Brobecker <brobecker@adacore.com>
738 * NEWS: Create a new section for the next release branch.
739 Rename the section of the current branch, now that it has
742 2007-09-17 Jerome Guitton <guitton@adacore.com>
744 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
745 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
747 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
749 * mi/mi-cmds.c (mi_cmds): Register -list-features.
750 * mi/mi-cmds.h (mi_cmd_list_features): New.
751 * mi/mi-main.c (mi_cmd_list_features): New.
753 2007-09-11 Joel Brobecker <brobecker@adacore.com>
755 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
756 * version.in: Bump version to 6.7.50-20070911-cvs.
758 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
760 * thread.c (free_thread): Do not delete the step resume breakpoint
763 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
765 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
766 * corelow.c (core_read_description): New.
767 (init_core_ops): Set to_read_description.
768 * gdbarch.sh: Add gdbarch_core_read_description.
769 * mips-linux-tdep.c (mips_linux_core_read_description): New.
770 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
771 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
772 (mips_register_g_packet_guesses): Use them.
773 (_initialize_mips_tdep): Initialize them.
774 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
775 * gdbarch.h, gdbarch.c: Regenerated.
777 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
779 * infrun.c (stepping_past_breakpoint): New global variable.
780 (stepping_past_breakpoint_ptid): Likewise.
781 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
782 Only switch threads if we need to single-step over a breakpoint hit
783 in the previously selected thread. If stepping, remember previous
784 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
785 switch_to_thread instead of copying its contents.
786 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
787 prepare_to_proceed returns true.
788 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
789 (context_switch): Call switch_to_thread.
790 (handle_inferior_event): Switch back to previous thread if requested
791 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
792 * gdbthread.h (switch_to_thread): Add prototype.
793 * thread.c (switch_to_thread): Make global.
795 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
797 * p-valprint.c: Fix 7 ARI reported problems.
798 (pascal_val_print): Fix one operator at end of line issue.
799 Use paddress function to remove use of
800 deprecated_print_address_numeric function (2 times).
801 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
802 (pascal_value_print): Fix 3 operator at end of line issues.
804 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
807 * arm-tdep.c (arm_in_call_stub): Delete.
808 (arm_skip_stub): Handle from_arm and from_thumb stubs.
810 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
812 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
815 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
816 Jim Blandy <jimb@codesourcery.com>
818 * NEWS: Update description of string changes. Mention print/s.
819 * c-valprint.c (textual_element_type): New.
820 (c_val_print): Use it. Do not skip address printing for pointers
821 with a string format.
822 (c_value_print): Doc update.
823 * dwarf2read.c (read_array_type): Use make_vector_type.
824 * gdbtypes.c (make_vector_type): New.
825 (init_vector_type): Use it.
826 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
827 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
828 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
829 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
830 (make_vector_type): New.
831 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
832 Call the language print routine for string format.
833 (print_scalar_formatted): Call val_print for string format. Handle
834 unsigned original types for char format.
835 (validate_format): Do not reject string format.
836 * stabsread.c (read_type): Use make_vector_type.
837 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
839 2007-09-04 Michael Snyder <msnyder@access-company.com>
841 * expprint.c (print_subexp_standard): Check strchr for null.
842 * Makefile.in (expprint.o): Depend on gdb_assert.h.
844 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
846 * stabsread.c (patch_block_status): Guard against null.
847 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
849 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
851 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
852 in internal error message.
854 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
855 Daniel Jacobowitz <dan@codesourcery.com>
857 * infcmd.c (post_create_inferior): Update comment.
858 (run_command_1): Always call post_create_inferior with 0 as
861 * i386-cygwin-tdep.h: New.
862 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
863 (win32_xfer_shared_library): Make it extern.
865 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
867 (win32_so_ops): Delete.
868 (get_relocated_section_addrs): Delete.
869 (solib_symbols_add): Delete.
870 (register_loaded_dll): Delete.
871 (win32_make_so): New.
872 (handle_load_dll): Use win32_make_so.
873 (win32_free_so): Free the passed in so.
874 (win32_relocate_section_addresses): Delete.
875 (win32_solib_create_inferior_hook): Delete.
876 (handle_unload_dll): Don't add PE offset here. Free so with
877 win32_free_so instead of free_so.
878 (win32_special_symbol_handling): Delete.
879 (get_win32_debug_event): Remove unneeded calls. Set state to
880 TARGET_WAITKIND_LOADED on a dll unload.
881 (do_initial_win32_stuff): Clear cygwin_load_start and
883 (map_code_section_args): Delete.
884 (dll_code_sections_add): Delete.
885 (core_section_load_dll_symbols): Delete.
886 (win32_xfer_shared_libraries): New.
887 (win32_current_sos): Delete.
888 (win32_xfer_partial): New.
889 (open_symbol_file_object): Delete.
890 (in_dynsym_resolve_code): Delete.
891 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
892 of win32_ops. Remove win32_so_ops settings. Don't set
893 current_target_so_ops here.
895 * Makefile.in (i386_cygwin_tdep_h): New variable.
896 (i386-cygwin-tdep.o): Update dependencies.
897 (win32-nat.o): Update dependencies.
899 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
900 Daniel Jacobowitz <dan@codesourcery.com>
902 * gdbarch.sh (core_xfer_shared_libraries): New.
904 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
906 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
908 * xml-support.c (gdb_xml_parse): Debug output tweaks.
909 (xml_escape_text): New.
910 * xml-support.h (xml_escape_text): Declare.
912 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
913 * config/i386/cygwin.mt (TDEPFILES): ... here.
915 * win32-nat.c: (fetch_elf_core_registers): Delete.
916 (win32_elf_core_fn): Delete.
917 (_initialize_core_win32): Delete.
919 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
920 "xml-support.h" and "gdbcore.h".
921 (i386_win32_gregset_reg_offset): New.
922 (I386_WIN32_SIZEOF_GREGSET): New.
923 (i386_win32_regset_from_core_section): New.
924 (win32_xfer_shared_library): New.
925 (struct cpms_data): New.
926 (core_process_module_section): New.
927 (win32_core_xfer_shared_libraries): New.
928 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
929 gregset_num_regs, sizeof_gregset members of tdep. Register
930 regset_from_core_section and core_xfer_shared_libraries callbacks.
932 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
933 * gdbarch.h, gdbarch.c: Regenerate.
935 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
937 * corelow.c (core_xfer_partial): Pass writebuf to
938 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
940 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
942 * arm-tdep.h (arm_skip_stub): Declare.
943 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
945 (arm_pe_skip_trampoline_code): New function.
946 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
947 gdbarch_skip_trampoline_code callback.
948 * Makefile.in (arm-wince-tdep.o): Update dependencies.
950 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
952 * MAINTAINERS: Move Fred Fish to Past Maintainers.
954 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
956 * configure.ac: Add --with-expat.
957 * configure: Regenerated.
959 2007-09-03 Andreas Schwab <schwab@suse.de>
961 * configure.ac: Accept --with-system-readline.
962 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
963 * configure: Regenerate.
964 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
966 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
968 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
969 Daniel Jacobowitz <dan@codesourcery.com>
971 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
973 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
975 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
977 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
979 * top.c (print_gdb_version): Update for GPL version 3.
981 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
983 * NEWS: Mention the build-id .debug files verification.
985 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
987 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
989 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
991 * Makefile.in (symfile.o): Update dependencies.
992 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
993 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
994 (struct build_id): New structure.
995 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
996 (find_separate_debug_file): New variable BUILD_ID.
997 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
999 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1001 * varobj.c (struct varobj): Fix comment
1002 for the type member not to lie when it can be
1005 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1007 Implement -var-info-path-expression.
1009 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1011 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1012 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1013 * varobj.c (struct varobj): New field 'path_expr'.
1014 (c_path_expr_of_child, cplus_path_expr_of_child)
1015 (java_path_expr_of_child): New.
1016 (struct language_specific): New field path_expr_of_child.
1017 (varobj_create): Initialize the path_expr field.
1018 (varobj_get_path_expr): New.
1019 (new_variable): Initialize the path_expr field.
1020 (free_variable): Free the path_expr field.
1021 (adjust_value_for_children_access): New parameter
1023 (c_number_of_children): Adjust.
1024 (c_describe_child): New parameter CFULL_EXPRESSION.
1025 Compute full expression.
1026 (c_value_of_child, c_type_of_child): Adjust.
1027 (cplus_number_of_children): Adjust.
1028 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1029 Compute full expression.
1030 (cplus_name_of_child, cplus_value_of_child)
1031 (cplus_type_of_child): Adjust.
1032 * varobj.h (varobj_get_path_expr): Declare.
1034 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1036 * mi/mi-cmd-var.c (print_varobj): If a varobj
1037 type is NULL, don't try to print it.
1039 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1041 * ppc-linux-nat.c (right_fill_reg): Delete.
1042 (supply_gregset): Use ppc_supply_gregset.
1043 (supply_fpregset): Use ppc_supply_fpregset.
1044 (fill_gregset): Use ppc_collect_gregset.
1045 (fill_fpregset): Use ppc_collect_fpregset.
1046 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1047 (right_supply_register, ppc_linux_supply_gregset): Delete.
1048 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1049 (ppc_linux_supply_fpregset): Delete.
1050 (ppc_linux_collect_gregset): New function.
1051 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1052 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1053 ppc_linux_supply_gregset, and ppc_collect_gregset.
1054 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1055 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1056 (ppc_linux_regset_from_core_section): Update.
1057 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1058 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1059 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1060 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1061 (ppcobsd_collect_gregset): Likewise.
1062 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1063 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1064 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1065 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1066 (rs6000_aix64_reg_offsets): Likewise.
1067 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1068 ppc_floating_point_unit_p.
1069 (rs6000_aix_collect_regset): Similarly.
1070 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1071 when regsize is larger than regcache register size.
1072 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1073 regcache register size.
1074 (ppc_greg_offset): New function, split out from..
1075 (ppc_supply_gregset): ..here. Separate code handling all regs from
1076 single reg case. Correct xer offset.
1077 (ppc_fpreg_offset): New function, split out from..
1078 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1080 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1081 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1082 a fp unit, instead return if no fp.
1084 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1086 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1087 this code has not been compiled for two years.
1089 2007-08-29 Michael Snyder <msnyder@access-company.com>
1091 * event-top.c (gdb_readline2): Return after EOF.
1093 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1095 * symtab.c: Remove a function that has been commented out 3 years ago.
1097 2007-08-29 Randolph Chung <tausq@debian.org>
1099 * hppa-tdep.c (hppa32_cannot_fetch_register)
1100 (hppa64_cannot_fetch_register): New functions.
1101 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1102 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1104 2007-08-28 Michael Snyder <msnyder@access-company.com>
1106 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1107 check for null before calling check_typedef.
1109 * NEWS: Mention Coverity bug fixes.
1111 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1113 * spu-tdep.c (spu_pointer_to_address): New function.
1114 (spu_integer_to_address): Likewise.
1115 (spu_gdbarch_init): Add spu_pointer_to_address and
1116 spu_integer_to_address to gdbarch.
1118 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1120 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1122 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1124 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1125 that contains the GDB license.
1126 * copying.awk: Adjust to the GPLv3 wording.
1127 * copying.c: Regenerate.
1129 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1131 * copying.awk: Protoization, and i18n markup.
1133 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1135 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1136 * copyright.sh: Likewise.
1137 * gdb-events.sh: Likewise.
1138 * gdb_gcore.sh: Likewise.
1139 * gdb_mbuild.sh: Likewise.
1140 * gdbarch.sh: Likewise.
1141 * observer.sh: Likewise.
1142 * features/feature_to_c.sh: Likewise.
1143 * regformats/regdat.sh: Likewise.
1145 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1147 Switch the license of all .c files to GPLv3.
1148 Switch the license of all .h files to GPLv3.
1149 Switch the license of all .cc files to GPLv3.
1151 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1153 * configure.ac: Switch license to GPLv3.
1155 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1157 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1158 determine the file's FPU type.
1160 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1162 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1163 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1164 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1166 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1168 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1170 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1171 (elf_lookup_lib_symbol): Fix formatting.
1173 2007-08-21 Michael Snyder <msnyder@access-company.com>
1175 * dbxread.c (read_dbx_symtab): Guard null deref.
1178 * valops.c (find_overload_match): Guard against NULL.
1180 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1182 * MAINTAINERS (Patch Champions): Remove self.
1184 2007-08-21 Chris Smith <chris.smith@st.com>
1186 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1189 2007-08-18 Michael Snyder <msnyder@access-company.com>
1191 * stabsread.c (dbx_lookup_type): Memory leak.
1193 * event-loop.c (delete_async_signal_handler): Move pointer null
1194 test to before pointer dereference.
1196 * ui-out.c (append_header_to_list): Possible cut and paste error.
1198 * MAINTAINERS: white space tweak.
1200 2007-08-17 Michael Snyder <msnyder@access-company.com>
1202 * stack.c (print_frame): Memory leak.
1204 * completer.c (filename_completer): Avoid memory leak.
1205 Remove unnecessary nested block.
1207 * c-exp.y (parse_number): Memory leak.
1209 * completer.c (location_completer): Must free 'fn_list', except
1210 in the one case where it is returned (as 'list').
1212 * varobj.c (value_of_root): Memory leak.
1214 * gdbtypes.h (virtual_base_list): Remove export decl.
1215 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1216 (virtual_base_index): Memory leak.
1217 (virtual_base_index_skip_primaries): Ditto.
1219 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1221 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1222 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1223 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1224 (xtensa_read_register): New function.
1225 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1226 (xtensa_insn_kind): New types.
1227 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1228 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1229 (xtensa_verify_config, xtensa_pseudo_register_read)
1230 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1231 (xtensa_store_return_value)
1232 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1233 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1234 (xtensa_frame_this_id, xtensa_frame_prev_register)
1235 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1236 (call0_frame_cache, call0_frame_get_reg_at_entry)
1237 (call0_classify_opcode, call0_track_op)
1238 (call0_analyze_prologue, call0_frame_cache): New functions.
1240 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1242 * breakpoint.c (bpstat_free): New.
1243 (bpstat_clear): Use bpstat_free.
1244 (delete_breakpoint): Document why we cannot
1245 remove bpstats from stop_bpstat.
1246 * breakpoint.h (bpstat_free): Declare.
1248 2007-08-16 Michael Snyder <msnyder@access-company.com>
1250 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1252 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1253 Joel Brobecker <brobecker@adacore.com>
1255 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1257 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1258 Joel Brobecker <brobecker@adacore.com>
1260 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1261 checkin guarding against NULL.
1263 2007-08-14 Michael Snyder <msnyder@access-company.com>
1265 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1266 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1267 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1268 go at beginning of new line.
1270 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1271 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1272 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1273 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1274 tui-winsource.h, tui.c, tui.h: Function declarations and
1275 definitions, wrap long lines.
1277 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1278 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1279 Reformat block comments to GNU standard.
1281 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1282 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1283 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1284 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1285 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1286 spaces after periods, etc).
1288 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1289 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1290 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1291 tui-winsource.h: Whitespace changes, fix pointer declarations
1294 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1295 Michael Snyder <msnyder@access-company.com>
1297 * ada-lang.c (field_alignment): Guard against NULL.
1299 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1301 * MAINTAINERS (Global Maintainers): Add self.
1303 2007-08-14 Michael Snyder <msnyder@access-company.com>
1305 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1307 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1309 * varobj.c (cplus_describe_child): Guard against null.
1310 Use "NULL" instead of "0" to initialize pointers.
1312 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1314 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1315 to match any gdbarch with matching OSABI. Set default ABI and FPU
1316 after running the OSABI handler.
1318 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1320 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1321 * config/i386/linux.mt (TDEPFILES): ...to here.
1323 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1325 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1326 the 'silent' parameter and code to implement that.
1327 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1329 * win32-nat.c: Adjust.
1332 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1334 * breakpoint.c (update_breakpoints_after_exec): Don't
1335 set address to zero.
1337 2007-08-13 Michael Snyder <msnyder@access-company.com>
1339 * valops.c: Whitespace clean-up.
1341 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1343 * event-top.c (command_line_handler): Memory leak.
1345 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1346 No need to make copy.
1348 * source.c (find_source_lines): Require symtab 's'.
1350 2007-08-11 Michael Snyder <msnyder@access-company.com>
1352 * completer.c: Spelling fix in comments.
1354 2007-08-10 Michael Snyder <msnyder@access-company.com>
1356 * gdbtypes.c: Coding standard cleanup.
1357 * gdbtypes.c: Comment/whitespace cleanup.
1359 * stabsread.c (read_huge_number): Attempt to compute value before
1360 values that it depends on.
1362 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1363 (decode_objc): Use "NULL" instead of 0.
1364 (find_method): Ditto.
1365 (decode_all_digits): Ditto.
1366 (decode_dollar): Ditto.
1368 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1370 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1372 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1375 * completer.c: Comment/whitespace cleanup.
1377 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1379 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1381 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1383 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1384 allocated file descriptors.
1386 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1388 * Makefile.in: Minor cleanup throughout; add some missing variables,
1389 add some missing rules, remove some rules that are no longer needed,
1390 and fix the dependencies in several rules.
1392 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1394 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1395 (scm_lang_h, scm_tags_h): New.
1396 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1397 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1398 * defs.h (enum language): Add `language_scm'.
1400 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1403 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1405 * MAINTAINERS (Write After Approval): Add myself.
1407 2007-08-09 Michael Snyder <msnyder@access-company.com>
1409 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1411 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1413 * solib-som.c (som_relocate_section_addresses): Stop saving
1414 the $CODE$ section in the so_list structure.
1416 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1418 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1419 (xtensa_register_group_t): Add entries for coprocessors.
1420 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1421 (xtensa_add_reggroups): Likewise.
1422 (xtensa_register_reggroup_p): Likewise.
1423 (xtensa_coprocessor_register_group): New function.
1426 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1428 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1430 2007-08-08 Michael Snyder <msnyder@access-company.com>
1432 * target.c (target_read_string): Guard against null.
1434 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1436 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1437 (tui_set_layout_for_display_command): Mem leak.
1439 * top.c (command_line_input): Memory leak.
1441 * solib-svr4.c (open_symbol_file_object): Memory leak.
1442 (svr4_current_sos): Ditto.
1443 (enable_break): Ditto.
1445 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1447 * dwarf2read.c (add_partial_symbol): Memory leak.
1449 2007-08-06 Michael Snyder <msnyder@access-company.com>
1451 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1453 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1455 * macroexp.c (init_buffer): Remove testing code that overrides the
1456 caller's length guess.
1457 (gather_arguments): Use a larger initial size, now that the vector
1458 growth code has been exercised.
1460 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1462 * solib-target.c (solib_target_relocate_section_addresses): Add
1463 orig_delta to addr_high.
1465 2007-08-04 Michael Snyder <msnyder@access-company.com>
1467 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1469 * breakpoint.c (print_one_breakpoint): Off by one error.
1471 * tracepoint.c (add_register): Off by one error.
1472 (stringify_collection_list): Free malloc buffer.
1474 2007-08-03 Michael Snyder <msnyder@access-company.com>
1476 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1477 stop memory leak, straighten out cleanups.
1479 * jv-lang.c (java_link_class_type): Guard against NULL.
1481 2007-08-02 Michael Snyder <msnyder@access-company.com>
1483 * gdbtypes.c (create_set_type): Test should only be done within
1484 the preceeding if block. Otherwise, variable is uninitialized.
1486 * gdbtypes.c (check_typedef): Guard NULL.
1488 2007-08-01 Michael Snyder <msnyder@access-company.com>
1490 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1491 avoid dereference in lookup_cmd_1.
1493 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1494 clean up long lines.
1495 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1496 (tui_alloc_win_info): Ditto.
1497 (tui_add_content_elements): Ditto.
1498 * tui/tui-file.c (tui_file_magic): Ditto.
1500 2007-07-31 Michael Snyder <msnyder@access-company.com>
1502 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1503 True and false paths are mutually exclusive.
1505 * event-top.c (command_line_handler): Add pedantic return.
1507 * f-valprint.c (info_common_command): Bail out to prevent null
1508 pointer deref. Break up a long line.
1510 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1512 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1514 * printcmd.c (build_address_symbolic): Remove dead code and dead
1517 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1519 * linespec.c (minsym_found): Advance to the next line if possible.
1521 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1523 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1524 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1525 solib-svr4.o, and add solib-target.o
1527 2007-07-27 Michael Snyder <msnyder@access-company.com>
1529 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1531 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1533 * MAINTAINERS (Write After Approval): Add myself.
1535 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1537 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1540 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1542 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1544 2007-07-24 Michael Snyder <msnyder@access-company.com>
1546 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1547 'buffer' must cover both branches that call strcmp (Coverity).
1549 * stack.c (print_frame_args): Check return value of lookup_symbol.
1551 * ax-gdb.c (find_field): Guard against null ptr.
1553 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1555 * regformats/reg-spu.dat: Fix order of npc, id registers.
1557 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1559 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1560 sections should always go to the executable file.
1562 2004-07-20 Chris Dearman <chris@mips.com>
1564 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1565 prologue instructions.
1567 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1569 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1572 2007-07-20 Chris Dearman <chris@mips.com>
1573 Maciej W. Rozycki <macro@mips.com>
1575 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1578 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1579 Daniel Jacobowitz <dan@codesourcery.com>
1581 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1582 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1584 * NEWS: Mention gdbserver DLL support.
1586 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1588 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1590 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1592 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1595 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1597 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1600 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1602 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1603 (mep_analyze_prologue): Add case for BRA instruction.
1605 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1607 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1609 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1611 * breakpoint.c: Include "top.h".
1612 (breakpoint_1): Don't set convenience variable $_ if server prefix
1614 (_initialize_breakpoint): Describe this behaviour in command help.
1616 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1618 * solib-target.c (library_list_start_segment): Cast address to
1621 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1623 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1624 for terminated processes.
1626 2007-07-05 Michael Snyder <msnyder@access-company.com>
1628 * event-top.c (cli_command_loop): Prompt string can (and should)
1629 be freed after call to readline (Coverity). Also move local var
1630 declarations into block where they are used.
1632 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1633 should) be freed after call to readline (Coverity). Also move
1634 local var declarations into block where they are used.
1636 2007-07-03 Andreas Schwab <schwab@suse.de>
1638 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1641 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1642 Thiago Bauermann <bauerman@br.ibm.com>
1643 Joseph S. Myers <joseph@codesourcery.com>
1644 Daniel Jacobowitz <dan@codesourcery.com>
1646 * remote.c (remote_check_symbols): Use
1647 gdbarch_convert_from_func_ptr_addr.
1648 * infcall.c (find_function_addr): Handle function descriptors
1649 without debugging information.
1650 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1651 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1652 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1653 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1654 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1655 allow SEC_CODE and SEC_DATA.
1656 (enable_break): Update calls. Pass current_target to solib_add.
1657 Use gdbarch_convert_from_func_ptr_addr.
1659 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1660 Daniel Jacobowitz <dan@codesourcery.com>
1662 * symfile.c (print_transfer_performance): Avoid integer overflow.
1665 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1667 * cp-namespace.c (lookup_symbol_file): Add block to
1668 lookup_symbol_global call.
1669 * Makefile.in (solist_h): Add dependency on symtab header.
1670 (symtab.o): Add dependency on solist header.
1671 * solib.c (solib_global_lookup): New function.
1672 * solib-svr4.c (scan_dyntag): Likewise.
1673 (elf_locate_base): Call helper routine scan_dyntag.
1674 (elf_lookup_lib_symbol): New function.
1675 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1676 * solist.h (symtab.h): New include.
1677 (struct target_so_ops): New member lookup_lib_global_symbol.
1678 (solib_global_lookup): New prototype.
1679 * symtab.c: New include solist.h.
1680 (lookup_objfile_from_block): New function.
1681 (lookup_global_symbol_from_objfile): New function.
1682 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1683 (lookup_symbol_global): Call library-specific lookup procedure.
1684 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1686 * NEWS: Document framework.
1688 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1690 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1693 * cli/cli-script.c (build_command_line): Update NULL check.
1695 2007-07-02 Michael Snyder <msnyder@access-company.com>
1697 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1699 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1701 * Makefile.in (XMLFILES): Add library-list.dtd.
1702 (ALLDEPFILES): Add solib-target.o.
1703 (solib-target.o): New rule.
1704 * remote.c (PACKET_qXfer_libraries): New constant.
1705 (remote_protocol_features): Add qXfer:libraries:read.
1706 (remote_wait): Recognize library stop replies.
1707 (remote_async_wait): Likewise. Fix typo.
1708 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1709 (init_remote_async_ops): Fix typo.
1710 (_initialize_remote): Register "set remote library-info-packet".
1711 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1712 * solib-target.c: New file.
1713 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1715 (info_sharedlibrary_command): Likewise.
1716 (solib_add_library, solib_remove_library): New.
1717 * solist.h (struct so_list): Replace textsection with addr_low and
1719 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1720 * NEWS: Describe new qXfer:libraries:read and shared library
1722 * features/library-list.dtd: New.
1724 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1726 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1727 (start_remote): Use STOP_QUIETLY_REMOTE.
1728 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1729 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1730 Update to match shared library event breakpoint support. Only
1731 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1732 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1733 * fork-child.c (startup_inferior): Do not set
1734 inferior_ignoring_startup_exec_events
1735 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1737 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1739 2007-07-02 Markus Deuling <deuling@de.ibm.com>
1741 * breakpoint.c (insert_bp_location): Remove dead code
1742 (DISABLE_UNSETTABLE_BREAK).
1743 (disable_breakpoints_in_shlibs)
1744 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1746 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1748 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1749 Call insert_bp_location.
1751 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1753 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1756 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1758 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1761 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1763 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1764 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1765 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1766 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1767 to display_gdb_prompt.
1769 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1772 * target.c (memory_xfer_partial): Do not continue past targets with
1775 2007-06-30 Andreas Schwab <schwab@suse.de>
1777 * m68k-tdep.c (m68k_ps_type): New.
1778 (m68k_init_types): New.
1779 (m68k_register_type): Use m68k_ps_type for PS register.
1780 (_initialize_m68k_tdep): Call m68k_init_types.
1782 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1783 from the generic m68k arch.
1785 2007-06-28 Michael Snyder <msnyder@access-company.com>
1787 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1790 * linux-thread-db.c (thread_db_get_thread_local_address): Add
1791 gdb_assert before using return value of find_thread_pid (Coverity).
1793 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1795 * cli/cli-script.c (build_command_line): Add null pointer guard
1798 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1800 * linux-thread-db.c (thread_db_attach): Delete.
1801 (thread_db_detach): Typo fix. Call target_mourn_inferior
1802 instead of fixing up proc_handle.
1803 (have_threads_callback, have_threads): New functions.
1804 (thread_db_wait): Remove dead proc_handle.pid check. Only
1805 translate PTIDs if we have registered threads. Check for new
1806 threads if we have none.
1807 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1808 (find_new_threads_callback): Only enable event reporting if TID == 0.
1809 (same_ptid_callback): New.
1810 (thread_db_get_thread_local_address): Check for new threads.
1811 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1812 or to_post_startup_inferior.
1814 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1816 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1817 is always active if SOFTWARE_SINGLE_STEP_P is true.
1818 (resume): Use gdbarch_software_single_step[_p] instead of
1819 SOFTWARE_SINGLE_STEP[_P].
1820 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1822 * gdbarch.sh (software_single_step): Remove target macro.
1823 * gdbarch.h, gdbarch.c: Regenerate.
1825 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1827 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1828 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1829 (struct gdbarch_swap, struct gdbarch_swap_registration,
1830 struct gdbarch_swap_registry, gdbarch_swap_registry,
1831 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1832 current_gdbarch_swap_in_hack): Remove.
1833 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1834 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1835 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1836 (deprecated_current_gdbarch_select_hack): Likewise.
1837 * gdbarch.h, gdbarch.c: Regenerate.
1839 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1841 * infrun.c (clear_proceed_status): Clean up stop_registers.
1842 (normal_stop): Allocate regcache for stop_registers.
1843 (struct inferior_status): Remove stop_registers member.
1844 (save_inferior_status): Do not save stop_registers.
1845 (restore_inferior_status): Do not restore stop_registers.
1846 (discard_inferior_status): Do not discard stop_registers.
1847 (build_infrun): Remove.
1848 (_initialize_infrun): Do not swap stop_registers.
1850 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1852 * remote.c (remote_address_masked): If remote_address_size is zero,
1853 default to target address size.
1854 (build_remote_gdbarch_data): Remove.
1855 (_initialize_remote): Do not swap remote_address_size.
1857 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1859 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1860 builtin_type_char, builtin_type_short, builtin_type_int,
1861 builtin_type_long, builtin_type_signed_char,
1862 builtin_type_unsigned_char, builtin_type_unsigned_short,
1863 builtin_type_unsigned_int, builtin_type_unsigned_long,
1864 builtin_type_float, builtin_type_double, builtin_type_long_double,
1865 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1866 builtin_type_bool, builtin_type_long_long,
1867 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1868 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1869 variable declaration with compatibility macro.
1870 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1871 builtin_type_char, builtin_type_short, builtin_type_int,
1872 builtin_type_long, builtin_type_signed_char,
1873 builtin_type_unsigned_char, builtin_type_unsigned_short,
1874 builtin_type_unsigned_int, builtin_type_unsigned_long,
1875 builtin_type_float, builtin_type_double, builtin_type_long_double,
1876 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1877 builtin_type_bool, builtin_type_long_long,
1878 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1879 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1880 (build_gdbtypes): Remove.
1881 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1882 opaque-type-resolution command here. Do not call
1883 deprecated_register_gdbarch_swap.
1885 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1887 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1888 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1889 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1891 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1892 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1893 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1894 (build_parse): Remove.
1895 (_initialize_parse): Do not call build_parse. Do not register
1896 msym_ types for gdbarch-swapping.
1898 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1899 instead of creating private type.
1901 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1902 (_initialize_xcoffread): Do not initialized them.
1903 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1905 * mdebugread.c (nodebug_func_symbol_type): Remove.
1906 (nodebug_var_symbol_type): Remove.
1907 (_initialize_mdebugread): Do not initialize them.
1908 (parse_symbol): Use builtin nodebug_ type instead of them.
1909 (parse_procedure): Likewise.
1911 2007-06-21 Chris Dearman <chris@mips.com>
1913 * printcmd.c (do_one_display): If display/i, start with an initial
1914 line feed to avoid bad layout if there is a branch delay slot.
1916 2007-06-21 Nigel Stephens <nigel@mips.com>
1917 Maciej W. Rozycki <macro@mips.com>
1919 * disasm.c (gdb_print_insn): Return the number of branch delay
1920 slot instructions too.
1921 * disasm.h (gdb_print_insn): Update prototype.
1922 * printcmd.c (branch_delay_insns): New variable to record the
1923 number of delay slot instructions after disassembling a branch.
1924 (print_formatted): Record the number of branch delay slot
1926 (do_examine): When disassembling, if the last instruction
1927 disassembled has any branch delay slots, then bump the count so
1928 that they get disassembled too.
1929 * tui/tui-disasm.c (tui_disassemble): Update the call to
1931 * NEWS: Document the new behaviour.
1933 2007-06-21 Andreas Schwab <schwab@suse.de>
1935 * regcache.c (write_pc_pid): Restore missing else.
1937 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
1939 * regcache.c (regcache_print): Use get_current_regcache ()
1940 instead of current_regcache.
1942 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
1945 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1946 instead of bfd_make_section_anyway.
1947 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1948 when clearing SEC_LOAD.
1950 2007-06-19 Joseph Myers <joseph@codesourcery.com>
1952 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1953 registers for big-endian.
1955 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1957 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
1958 * disasm.c (dump_insns, gdb_print_insn): Likewise.
1959 * gdbarch.c, gdbarch.h: Regenerate.
1961 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1963 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
1964 gdbarch_believe_pcc_promotion.
1965 * stabsread.c (define_symbol): Likewise.
1966 Remove unnecessary definition.
1967 * coffread.c (process_coff_symbol): Remove unnecessary code.
1968 * gdbarch.c, gdbarch.h: Regenerate.
1970 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
1972 * configure.ac: Do not use ${objdir}.
1973 * configure: Regenerated.
1975 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
1977 * gdbarch.sh (deprecated_register_size): Remove.
1978 * gdbarch.h, gdbarch.c: Regenerate.
1980 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
1981 by INT_REGISTER_SIZE.
1982 (thumb_get_next_pc, arm_return_in_memory): Likewise.
1983 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
1984 * ia64-tdep.c (ia64_gdbarch_init): Do not call
1985 set_gdbarch_deprecated_register_size.
1987 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1989 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
1990 gdbarch_deprecated_fp_regnum.
1991 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1992 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
1993 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1994 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
1996 * gdbarch.c, gdbarch.h: Regenerate.
1998 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2000 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2001 gdbarch_extract_return_value.
2002 * value.c (generic_use_struct_convention): Likewise (comment).
2003 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2004 * arch-utils.c (legacy_return_value): Likewise.
2005 * arch-utils.h (legacy_return_value): Likewise (comment).
2006 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2007 gdbarch_store_return_value.
2008 * stack.c (return_command): Likewise (comment).
2009 * arch-utils.h (legacy_return_value): Likewise (comment).
2010 * arch-utils.c (legacy_return_value): Likewise.
2011 * gdbarch.c, gdbarch.h: Regenerate.
2013 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2015 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2016 gdbarch_deprecated_use_struct_convention.
2017 * arch-utils.c (legacy_return_value): Likewise.
2018 * gdbarch.c, gdbarch.h: Regenerate.
2020 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2022 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2023 gdbarch_deprecated_function_start_offset.
2024 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2025 * linespec.c (minsym_found): Likewise.
2026 * infrun.c (handle_inferior_event): Likewise.
2027 * infcall.c (find_function_addr): Likewise.
2028 * cli/cli-cmds.c (disassemble_command): Likewise.
2029 * gdbarch.c, gdbarch.h: Regenerate.
2031 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2033 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2034 gdbarch_deprecated_reg_struct_has_addr.
2035 * infcall.c (call_function_by_hand): Likewise.
2036 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2037 * gdbarch_deprecated_reg_struct_has_addr_p.
2038 * infcall.c (call_function_by_hand): Likewise.
2039 * gdbarch.c, gdbarch.h: Regenerate.
2041 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2043 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2044 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2045 (sh_gdbarch_init): Remove
2046 set_gdbarch_deprecated_extract_struct_value_address.
2047 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2048 (sh64_gdbarch_init): Remove
2049 set_gdbarch_deprecated_extract_struct_value_address.
2050 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2051 (ia64_gdbarch_init): Remove
2052 set_gdbarch_deprecated_extract_struct_value_address.
2053 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2054 (frv_gdbarch_init): Remove
2055 set_gdbarch_deprecated_extract_struct_value_address.
2056 * gdbarch.c, gdbarch.h: Regenerate.
2058 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2060 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2061 * v850-tdep.c (v850_unwind_sp): Likewise.
2062 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2063 * stack.c (frame_info): Likewise.
2064 * stabsread.c (define_symbol): Likewise.
2065 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2066 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2067 (sh_unwind_sp): Likewise.
2068 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2069 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2070 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2071 (rs6000_frame_cache): Likewise.
2072 * rs6000-nat.c (store_register): Likewise.
2073 * remote-mips.c (mips_wait): Likewise.
2074 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2075 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2076 (ppc64_sysv_abi_push_dummy_call): Likewise.
2077 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2078 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2079 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2080 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2081 * m32r-rom.c (m32r_supply_register): Likewise.
2082 * frame.c (frame_sp_unwind): Likewise.
2083 * mips-tdep.c (mips_insn16_frame_cache)
2084 (mips_insn32_frame_cache): Likewise (comment).
2085 * m68klinux-nat.c (supply_gregset): Likewise.
2086 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2087 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2088 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2089 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2090 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2091 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2092 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2093 (cris_register_type, crisv32_register_type)
2094 (cris_dwarf2_frame_init_reg): Likewise.
2095 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2096 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2097 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2098 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2100 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2101 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2102 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2103 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2104 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2105 * v850-tdep.c (v850_unwind_pc): Likewise.
2106 * stack.c (frame_info): Likewise.
2107 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2108 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2109 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2110 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2111 (sh_dsp_show_regs): Likewise.
2112 * shnbsd-tdep.c (shnbsd_supply_gregset)
2113 (shnbsd_collect_gregset): Likewise.
2114 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2115 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2116 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2117 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2118 (6000_register_reggroup_p, rs6000_unwind_pc)
2119 (rs6000_frame_cache): Likewise.
2120 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2121 (rs6000_store_inferior_registers): Likewise.
2122 * remote-mips.c (mips_wait, mips_load): Likewise.
2123 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2124 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2125 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2126 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2127 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2128 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2129 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2130 (store_ppc_registers, fill_gregset): Likewise.
2131 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2132 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2133 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2134 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2135 * m68klinux-nat.c (supply_gregset): Likewise.
2136 * irix5-nat.c (fill_gregset): Likewise.
2137 * i386-tdep.c (i386_unwind_pc): Likewise.
2138 * i386-linux-nat.c (i386_linux_resume): Likewise.
2139 * frame.c (get_prev_frame_1): Likewise.
2140 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2141 * dbug-rom.c (dbug_supply_register): Likewise.
2142 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2143 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2144 (cris_register_type, crisv32_register_type, crisv32_register_name)
2145 (cris_dwarf2_frame_init_reg, find_step_target)
2146 (cris_software_single_step, cris_supply_gregset)
2147 (cris_regnums): Likewise.
2148 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2149 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2150 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2151 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2152 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2154 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2155 * dbug-rom.c (dbug_supply_register): Likewise.
2156 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2157 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2158 * win32-nat.c (win32_resume): Likewise.
2159 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2160 * m68k-tdep.c (m68k_register_type): Likewise.
2161 * m68klinux-nat.c (supply_gregset): Likewise.
2163 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2164 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2165 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2166 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2167 (fv_reg_base_num, dr_reg_base_num): Likewise.
2168 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2169 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2170 (sh64_extract_return_value, sh64_store_return_value)
2171 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2172 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2173 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2174 (invalidate_cache): Likewise.
2175 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2176 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2177 (mipsnbsd_fill_fpreg): Likewise.
2178 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2179 (mipsnbsd_store_inferior_registers): Likewise.
2180 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2181 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2182 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2183 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2184 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2185 (fill_fpregset): Likewise.
2186 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2187 * i386-tdep.h (struct_return): Likewise (comment).
2188 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2189 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2190 (go32_store_registers): Likewise.
2191 * alpha-tdep.c (alpha_next_pc): Likewise.
2192 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2193 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2194 (alphabsd_store_inferior_registers): Likewise.
2195 * core-regset.c (fetch_core_registers): Likewise.
2196 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2198 * gdbarch.c, gdbarch.h: Regenerate.
2200 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2202 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2203 * dbxread.c (start_psymtab): Check HAVE_ELF.
2204 (aout_sym_fns): Likewise.
2205 * elfread.c (elf_symfile_segments): New.
2206 (elf_sym_fns): Add elf_symfile_segments.
2207 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2208 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2209 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2210 * somread.c (som_sym_fns): Use default_symfile_segments.
2211 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2212 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2213 (default_symfile_segments): New function.
2214 (syms_from_objfile): Update call to find_sym_fns.
2215 (symfile_get_segment_data, free_symfile_segment_data): New.
2216 (symfile_map_offsets_to_segments): New.
2217 (symfile_find_segment_sections): New.
2218 * symfile.h (struct symfile_segment_data): New.
2219 (struct sym_fns): Add sym_segments.
2220 (default_symfile_segments, symfile_get_segment_data)
2221 (free_symfile_segment_data): New prototypes.
2222 (symfile_map_offsets_to_segments): Likewise.
2223 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2224 * Makefile.in (COMMON_OBS): Remove elfread.o.
2225 (elf_internal_h): New.
2226 (elfread.o): Update.
2227 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2229 * config.in, configure: Regenerated.
2230 * NEWS: Mention qOffsets changes.
2232 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2234 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2235 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2236 Replace global variable declaration with compatibility macro.
2237 (struct builtin_m2_type): New data type.
2238 (builtin_m2_type): Add prototype.
2239 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2240 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2241 Remove global variables.
2242 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2243 (build_m2_types): New function.
2244 (m2_type_data): New variable.
2245 (builtin_m2_type): New function.
2246 (_initialize_m2_language): Do not build data types. Register
2247 m2_type_data per-gdbarch data.
2249 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2251 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2252 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2253 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2254 builtin_type_f_real_s8, builtin_type_f_real_s16,
2255 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2256 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2257 variable declaration with compatibility macro.
2258 (struct builtin_f_type): New data type.
2259 (builtin_f_type): Add prototype.
2260 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2261 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2262 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2263 builtin_type_f_real_s8, builtin_type_f_real_s16,
2264 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2265 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2266 (f_language_arch_info): Use builtin_f_type instead of variables.
2267 (build_fortran_types): Build builtin_f_type structure instead of
2268 setting global type variables.
2269 (f_type_data): New variable.
2270 (builtin_f_type): New function.
2271 (_initialize_f_language): Do not call build_fortran_types. Do not
2272 swap global type variables. Register f_type_data per-gdbarch data.
2274 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2276 * f-lang.c (_initialize_f_language): Do not initialize or
2277 swap builtin_type_string.
2279 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2281 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2282 value_of_builtin_frame_reg): Remove.
2283 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2284 inactive call to value_of_builtin_frame_reg.
2286 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2288 * gdbarch.sh (bfd_vma_bit): Remove.
2289 * gdbarch.c, gdbarch.h: Regenerate.
2291 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2292 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2293 (build_gdbtypes): Do not initialize it.
2294 (_initialize_gdbtypes): Do not swap it.
2296 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2298 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2299 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2300 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2301 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2302 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2303 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2304 builtin_type_vec64, builtin_type_vec128): Remove.
2305 (init_simd_type): Remove.
2306 (init_vector_type): Make global.
2307 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2308 (build_gdbtypes): Do not build vector types.
2309 (_initialize_gdbtypes): Do not swap vector types.
2310 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2311 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2312 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2313 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2314 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2315 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2316 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2317 (init_vector_type): Add prototype.
2319 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2320 i386_sse_type members.
2321 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2322 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2323 (i386_init_types): Do not build vector types.
2324 (i386_mmx_type, i386_sse_type): New functions.
2325 (i386_register_type): Call them instead of using global variables.
2326 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2327 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2328 of using global variable.
2330 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2331 and ppc_builtin_type_vec128 members.
2332 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2333 (rs6000_builtin_type_vec128): Likewise.
2334 (rs6000_register_type): Call them instead of using builtin_type_vec64
2335 and builtin_type_vec128.
2336 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2338 * spu-tdep.c (struct gdbarch_tdep): New data type.
2339 (spu_builtin_type_vec128): Remove variable.
2340 (spu_builtin_type_vec128): New function.
2341 (spu_register_type): Call it instead of using global variable.
2342 (spu_gdbarch_init): Allocate tdep structure.
2343 (spu_init_vector_type): Remove function.
2344 (_initialize_spu_tdep): Do not call it.
2346 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2348 * amd64-tdep.c (struct amd64_register_info): Remove.
2349 (amd64_register_info): Remove.
2350 (amd64_register_names): New static variable.
2351 (AMD64_NUM_REGS): Use amd64_register_names instead of
2352 amd64_register_info.
2353 (amd64_register_name): Likewise.
2354 (amd64_register_type): Do not refer to amd64_register_info.
2356 * s390-tdep.c (struct s390_register_info): Remove.
2357 (s390_register_info): Remove.
2358 (s390_register_name): Do not refer to s390_register_info.
2359 (s390_register_type): Likewise.
2361 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2362 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2363 (sparc64_register_names, sparc64_pseudo_register_names): New.
2364 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2365 sparc64_register_names and sparc64_pseudo_register_names instead of
2366 sparc64_register_info and sparc64_pseudo_register_info.
2367 (sparc64_register_name): Likewise.
2368 (sparc64_register_type): Do not refer to sparc64_register_info
2369 and sparc64_pseudo_register_info.
2371 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2373 * c-lang.c (cplus_builtin_types): Remove.
2374 (enum cplus_primitive_types): New data type.
2375 (cplus_language_arch_info): New function.
2376 (cplus_language_defn): Set la_language_arch_info member. Do not set
2377 la_builtin_type_vector and string_char_type members.
2379 * f-lang.c (f_builtin_types): Remove.
2380 (enum f_primitive_types): New data type.
2381 (f_language_arch_info): New function.
2382 (f_language_de): Set la_language_arch_info member. Do not set
2383 la_builtin_type_vector and string_char_type members.
2385 * m2-lang.c (m2_builtin_types): Remove.
2386 (enum m2_primitive_types): New data type.
2387 (m2_language_arch_info): New function.
2388 (m2_language_defn): Set la_language_arch_info member. Do not set
2389 la_builtin_type_vector and string_char_type members.
2391 * objc-lang.c (objc_builtin_types): Remove.
2392 (objc_language): Set la_language_arch_info member. Do not set
2393 la_builtin_type_vector and string_char_type members.
2395 * p-lang.c (pascal_builtin_types): Remove.
2396 (enum pascal_primitive_types): New data type.
2397 (pascal_language_arch_info): New function.
2398 (pascal_language_defn): Set la_language_arch_info member. Do not set
2399 la_builtin_type_vector and string_char_type members.
2401 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2403 * regcache.c (struct regcache): Add ptid_t member.
2404 (regcache_xmalloc): Initialize it.
2405 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2406 (regcache_dup): Likewise.
2407 (regcache_dup_no_passthrough): Likewise.
2408 (current_regcache): Make static.
2409 (registers_ptid): Remove variable.
2410 (get_thread_regcache): New function.
2411 (get_current_regcache): New function.
2412 (registers_changed): Implement by freeing current regcache.
2413 (regcache_raw_read): Do not refer to current_regcache. Set
2414 inferior_ptid to regcache->ptid while calling target routines.
2415 (regcache_raw_write): Likewise.
2416 (regcache_raw_supply): Do not refer to current_regcache.
2417 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2418 (write_pc_pid): Likewise.
2419 (build_regcache): Remove.
2420 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2421 or deprecated_register_gdbarch_swap. Do not initialize
2423 * regcache.h (get_current_regcache): Add prototype.
2424 (get_thread_regcache): Likewise.
2425 (current_regcache): Remove declaration.
2427 * corelow.c (core_open): Replace current_regcache by
2428 get_current_regcache ().
2429 * frame.c (frame_pop): Likewise.
2430 (put_frame_register): Likewise.
2431 (get_current_frame, create_new_frame): Likewise.
2432 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2433 * stack.c (return_command): Likewise.
2434 * infcall.c (call_function_by_hand): Likewise.
2435 * infrun.c (resume): Likewise.
2436 (save_inferior_status, restore_inferior_status): Likewise.
2437 * linux-fork.c (fork_load_infrun_state): Likewise.
2438 (fork_save_infrun_state): Likewise.
2439 * win32-nat.c (win32_resume): Likewise.
2440 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2441 * monitor.c (monitor_wait): Likewise.
2442 * remote.c (remote_wait): Likewise.
2443 * remote-mips.c (mips_wait): Likewise.
2445 * bsd-kvm.c (bsd_kvm_open): Likewise
2446 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2447 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2448 * i386-linux-nat.c (i386_linux_resume): Likewise.
2449 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2450 (ia64_linux_stopped_data_address): Likewise.
2452 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2453 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2454 * mep-tdep.c (current_me_module, current_options): Likewise.
2455 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2457 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2458 regcache instead of current_regcache. Call target_fetch_registers.
2459 (linux_nat_corefile_thread_callback): Update call site.
2460 (linux_nat_do_registers): Likewise.
2461 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2462 of current_regcache.
2463 (procfs_make_note_section): Likewise.
2464 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2465 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2466 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2467 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2469 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2471 * regcache.c (read_register, read_register_pid): Remove.
2472 (write_register, write_register_pid): Likewise.
2473 * regcache.h (read_register, read_register_pid): Remove prototype.
2474 (write_register, write_register_pid): Likewise.
2476 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2478 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2479 (write_pc): Likewise. Remove default implementation, add predicate.
2480 * gdbarch.c, gdbarch.h: Regenerate.
2481 * regcache.c (read_pc_pid): Use current regcache instead of calling
2483 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2485 (generic_target_write_pc): Remove.
2486 * inferior.h (generic_target_write_pc): Remove.
2487 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2489 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2490 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2491 * sh-tdep.c (sh_gdbarch_init): Likewise.
2492 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2494 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2495 argument. Use REGCACHE instead of calling read_register_pid.
2496 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2497 * hppa-tdep.c (hppa_read_pc): Likewise.
2498 * hppa-tdep.h (hppa_read_pc): Likewise.
2499 * ia64-tdep.c (ia64_read_pc): Likewise.
2500 * m32r-tdep.c (m32r_read_pc): Likewise.
2501 * mep-tdep.c (mep_read_pc): Likewise.
2502 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2503 * spu-tdep.c (spu_read_pc): Likewise.
2505 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2506 argument. Use REGCACHE instead of calling write_register_pid.
2507 * avr-tdep.c (avr_write_pc): Likewise.
2508 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2509 * hppa-tdep.c (hppa_write_pc): Likewise.
2510 * hppa-tdep.h (hppa_write_pc): Likewise.
2511 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2512 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2513 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2514 * ia64-tdep.c (ia64_write_pc): Likewise.
2515 * ia64-tdep.h (ia64_write_pc): Likewise.
2516 * m32r-tdep.c (m32r_write_pc): Likewise.
2517 * m88k-tdep.c (m88k_write_pc): Likewise.
2518 * mep-tdep.c (mep_write_pc): Likewise.
2519 * mips-tdep.c (mips_write_pc): Likewise.
2520 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2521 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2522 * sparc-tdep.c (sparc_write_pc): Likewise.
2523 * spu-tdep.c (spu_write_pc): Likewise.
2525 * mips-tdep.c (read_signed_register): Remove.
2526 (read_signed_register_pid): Likewise.
2527 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2528 Use REGCACHE instead of calling read_signed_register_pid.
2530 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2532 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2533 * gdbarch.c, gdbarch.h: Regenerate.
2534 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2535 (push_dummy_code): Likewise. Pass it to callee.
2536 (call_function_by_hand): Pass current regcache to push_dummy_code.
2538 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2539 argument. Use it instead of current_regcache.
2541 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2542 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2544 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2546 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2547 * gdbarch.c, gdbarch.h: Regenerate.
2548 * infrun.c (handle_inferior_event): Pass current frame to
2549 gdbarch_get_longjmp_target.
2551 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2552 Read registers from FRAME instead of using read_register.
2553 Use get_frame_arch instead of current_gdbarch.
2554 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2555 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2556 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2557 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2558 (mips64_linux_get_longjmp_target): Likewise.
2559 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2561 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2563 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2564 * gdbarch.c, gdbarch.h: Regenerate.
2565 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2566 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2567 * infrun.c (handle_inferior_event): Pass current frame to
2568 gdbarch_skip_trampoline_code and skip_language_trampoline.
2570 * language.c (unk_lang_trampoline): Add FRAME argument.
2571 (skip_language_trampoline): Add FRAME argument. Pass it to
2572 skip_trampoline callback.
2573 * language.h: Add forward declaration of struct frame_info.
2574 (struct language_defn): Add FRAME argument to skip_trampoline.
2575 (skip_language_trampoline): Add FRAME argument.
2576 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2577 to skip_trampoline callback.
2578 * cp-abi.h: Add forward declaration of struct frame_info.
2579 (cplus_skip_trampoline): Add FRAME argument.
2580 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2581 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2582 to gdbarch_skip_trampoline_code.
2583 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2584 to gdbarch_skip_trampoline_code.
2586 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2587 * symtab.h (find_solib_trampoline_target): Likewise.
2588 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2589 find_solib_trampoline_target.
2591 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2592 from FRAME instead of calling read_register.
2594 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2595 argument. Read registers from FRAME instead of using read_register.
2596 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2597 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2599 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2602 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2604 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2605 registers from FRAME instead of using read_signed_register.
2607 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2609 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2610 instead of using read_register.
2611 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2612 ppc64_standard_linkage_target.
2613 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2614 Pass it to find_solib_trampoline_target. Read registers from FRAME
2615 instead of using read_register.
2617 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2620 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2622 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2624 * gdbarch.c, gdbarch.h: Regenerate.
2625 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2627 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2628 registers from FRAME instead of using read_register.
2629 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2630 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2631 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2634 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2635 from FRAME instead of using read_register.
2636 (thumb_get_next_pc): Likewise.
2637 (arm_get_next_pc): Likewise.
2638 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2639 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2640 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2643 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2644 from FRAME instead of using read_register.
2645 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2646 to find_step_target.
2648 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2649 from FRAME instead of using read_register / read_signed_register.
2650 (extended_mips16_next_pc): Likewise.
2651 (mips16_next_pc): Likewise.
2652 (mips_next_pc): Likewise.
2653 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2654 to mips_next_pc. Use get_frame_pc instead of read_pc.
2655 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2658 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2659 of current frame. Read registers from FRAME.
2660 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2661 branch_dest. Use get_frame_pc instead of read_pc.
2662 (rs6000_software_single_step): Likewise.
2663 (bl_to_blrl_insn_p): Do not call branch_dest.
2664 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2667 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2668 Read registers from FRAME instead of current regcache.
2669 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2670 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2671 * sparc-tdep.c (sparc_address_from_register): Remove.
2672 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2673 GDBARCH. Pass FRAME to step_trap callback.
2674 (sparc_step_trap): Add FRAME argument.
2675 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2676 to sparc_analyze_control_transfer. Read registers from FRAME instead
2677 of calling sparc_address_from_register.
2678 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2680 (sparc_address_from_register): Remove prototype.
2681 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2682 (sparcnbsd_step_trap): Add FRAME argument.
2684 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2685 by FRAME. Read registers from FRAME instead of REGCACHE.
2687 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2689 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2690 instead of calling read_register.
2692 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2693 calling write_register.
2695 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2696 calling write_register.
2698 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2699 instead of calling read_register.
2700 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2701 instead of calling read_register and write_register.
2703 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2704 instead of current_regcache.
2706 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2707 of calling write_register.
2708 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2709 parameter instead of current_regcache.
2711 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2712 instead of calling read_register.
2713 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2714 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2715 (mips_n32n64_push_dummy_call): Likewise.
2716 (mips_o32_push_dummy_call): Likewise.
2717 (mips_o64_push_dummy_call): Likewise.
2719 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2720 parameter instead of current_regcache.
2722 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2723 Use it instead of read_register and write_register.
2724 (xtensa_register_read_masked): Likewise.
2725 (xtensa_pseudo_register_read): Update call.
2726 (xtensa_pseudo_register_write): Likewise.
2727 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2728 instead of calling read_register.
2729 (xtensa_push_dummy_call): Update comment.
2731 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2733 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2734 by frame_unwind_register_signed calls.
2735 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2736 frame allocations when called with NULL NEXT_FRAME parameter.
2737 (read_next_frame_reg): Remove.
2739 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2740 instead of reading the FPSCR register.
2741 (sh_frame_cache): Pass unwound FPSCR register value to
2742 sh_analyze_prologue.
2743 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2745 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2746 instead of reading the CTBP register.
2747 (v850_frame_cache): Pass unwound CTBP register value to
2748 v850_analyze_prologue.
2750 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2752 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2753 * sh-tdep.c (sh_show_regs): Likewise.
2754 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2755 (sh_generic_show_regs): Add FRAME parameter. Use register
2756 values from that frame instead of calling read_register.
2757 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2758 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2759 sh_dsp_show_regs): Likewise.
2760 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2761 sh64_show_regs): Likewise.
2763 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2765 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2766 current regcache instead of calling read_register.
2768 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2770 * mep-tdep.c (current_me_module): Read from current regcache
2771 instead of calling read_register.
2772 (current_options): Likewise.
2774 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2776 * cris-tdep.c (cris_stopped_data_address): Read register values
2777 from current frame instead of calling read_register.
2778 * frv-tdep.c (frv_stopped_data_address): Likewise.
2780 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2782 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2783 instead of write_register (PC_REGNUM, ...).
2785 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2787 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2788 explaining why the PC adjustment code is necessary.
2790 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
2792 * m68k-tdep.h (enum m68k_flavour): New.
2793 (struct gdbarch_tdep): New fields
2794 float_return, flavour and fpregs_present.
2795 * m68k-tdep.c (m68k_register_type): Use
2796 fpregs_present and conditionalize floating
2797 registers type on flavour.
2798 (m68k_register_names): New.
2799 (m68k_register_name): Use the above.
2800 (m68k_convert_register_p): Consult fpregs_present.
2801 (m68k_register_to_value, m68k_value_to_register):
2802 Use register_type to obtain the type of floating
2804 (m68k_svr4_extract_return_value): Check tdep->float_return.
2805 Use register_type to get the type of floating
2807 (m68k_svr4_store_return_value): Likewise.
2808 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2809 (m68k_analyze_register_saves): Likewise.
2810 (m68k_gdbarch_init): Extract infromation
2811 from XML description, if present. Guess coldfire by
2812 looking at the file, if present. Conditionalize
2813 setting of long double format. Set decr_pc_after_break
2814 to 2 on coldfire and fido. Enable XML-driven
2815 register description.
2816 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2817 size of tdep->fpreg_type, as opposed to hardcoded value.
2818 * Makefile.in (m68k-tdep.o): Update dependencies.
2820 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2822 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2823 qXfer:spu:write remote packet types.
2825 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2827 * xml-tdesc.c (tdesc_start_target): New.
2828 (target_attributes): New.
2829 (tdesc_elements): Use it.
2830 * features/gdb-target.dtd: Add #FIXED version attribute for
2833 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
2835 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2837 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2839 * fork-child.c (fork_inferior): Update comment.
2841 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2843 * features/Makefile: Generate regformats for mips-linux and
2845 * features/sort-regs.xsl: Correct typo.
2846 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2847 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2850 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2852 * config/mips/linux.mh (TDEP_XML): New.
2853 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2854 * mips-linux-nat.c (mips_linux_register_addr): Handle
2855 MIPS_RESTART_REGNUM.
2856 (mips64_linux_register_addr): Likewise.
2857 (super_xfer_partial, mips_linux_xfer_partial): New.
2858 (_initialize_mips_linux_nat): Add them to the target_ops.
2859 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2860 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2861 (mips_linux_o32_sigframe_init)
2862 (mips_linux_n32n64_sigframe_init): Likewise.
2863 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2864 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2865 "org.gnu.gdb.mips.linux" feature.
2866 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2867 (mips_linux_restart_reg_p): New prototype.
2868 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2869 initialization routine.
2870 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2872 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2874 * Makefile.in (mips-tdep.o): Update.
2875 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2876 (mips_n32_n64_aliases, mips_register_aliases): New.
2877 (mips_register_name): Call tdesc_register_name.
2878 (mips_tdesc_register_reggroup_p): New.
2879 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2880 (mips_gdbarch_init): Add target-described register support.
2881 Register aliases for register names.
2882 * target-descriptions.c (tdesc_register_name): Make global.
2883 (tdesc_register_in_reggroup_p): New function, broken out from
2884 tdesc_register_reggroup_p.
2885 (tdesc_register_reggroup_p): Use it.
2886 * target-descriptions.h (tdesc_register_name)
2887 (tdesc_register_in_reggroup_p): New prototypes.
2888 * NEWS: Correct formatting. Mention MIPS register support.
2889 * features/mips-cp0.xml, features/mips-fpu.xml,
2890 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2891 features/mips64-cpu.xml: New files.
2893 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2895 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2896 * valops.c (value_cast): Likewise.
2897 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2898 * ui-out.c (ui_out_field_core_addr): Likewise.
2899 * tracepoint.c (tracepoints_info): Likewise.
2900 * symtab.c (print_msymbol_info): Likewise.
2901 * solib-irix.c (irix_current_sos)
2902 (irix_open_symbol_file_object): Likewise.
2903 * remote.c (build_remote_gdbarch_data): Likewise.
2904 * prologue-value.c (make_pv_area): Likewise.
2905 * procfs.c (info_mappings_callback): Likewise.
2906 * printcmd.c (print_scalar_formatted)
2907 (deprecated_print_address_numeric): Likewise.
2908 * memattr.c (mem_info_command): Likewise.
2909 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2910 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2911 * exec.c (print_section_info): Likewise.
2912 * dwarf2read.c (read_subrange_type): Likewise.
2913 * dwarf2loc.c (find_location_expression): Likewise.
2914 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2915 (signed_address_type, execute_stack_op): Likewise.
2916 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2917 * gdbarch.c, gdbarch.h: Regenerate.
2919 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2921 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2922 * arch-utils.c (show_architecture): Likewise.
2923 * remote-mips.c (mips_open): Likewise
2924 * nto-tdep.c (nto_find_and_open_solib)
2925 (nto_init_solib_absolute_prefix): Likewise.
2926 * nto-procfs (procfs_open): Likewise.
2927 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2928 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2929 * gdbarch.c, gdbarch.h: Regenerate.
2931 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2933 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2934 * gdbtypes.c (build_flt): Likewise.
2935 * gdbarch.c, gdbarch.h: Regenerate.
2937 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2939 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2940 gdbarch_breakpoint_from_pc.
2941 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2942 * remote.c (remote_insert_breakpoint)
2943 (remote_insert_hw_breakpoint): Likewise.
2944 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2945 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2946 * breakpoint.h (bp_target_info): Likewise (comment).
2947 * breakpoint.c (read_memory_nobpt): Likewise.
2948 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2949 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2950 * gdbarch.c, gdbarch.h: Regenerate.
2952 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2954 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
2955 * solib-svr4.c (svr4_truncate_ptr): Likewise.
2956 * solib-pa64.c (read_dynamic_info): Likewise.
2957 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2958 * solib.c (info_sharedlibrary_command): Likewise.
2959 * s390-nat.c (SUBOFF): Likewise.
2960 * p-valprint.c (pascal_val_print): Likewise.
2961 * procfs.c (info_proc_mappings): Likewise.
2962 * printcmd.c (decode_format): Likewise.
2963 * nto-tdep.c (nto_truncate_ptr): Likewise.
2964 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2965 (mips64_linux_get_longjmp_target): Likewise.
2966 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2967 * jv-valprint.c (java_value_print): Likewise.
2968 * jv-lang.c (get_java_object_header_size): Likewise.
2969 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2970 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2971 (hppa_hpux_unwind_adjust_stub): Likewise.
2972 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2973 * gdbtypes.c (make_pointer_type, make_reference_type)
2974 (smash_to_memberptr_type): Likewise.
2975 * gdbarch.c, gdbarch.h: Regenerate.
2977 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2979 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
2980 (print_gp_register_row): Stop before printing a register bigger
2981 than the ABI register size.
2982 (mips_print_registers_info): Update call to mips_print_register.
2984 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2986 * expression.h (enum exp_opcode): Document a register name for
2988 * parse.c (write_dollar_variable): Write the register name for
2990 (operator_length_standard): Expect the register name following
2992 * ada-lang.c (resolve_subexp): Likewise.
2993 * ax-gdb.c (gen_expr): Likewise.
2994 * eval.c (evaluate_subexp_standard): Likewise.
2995 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2997 * tracepoint.c (encode_actions): Likewise.
2999 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3001 * utils.c (set_screen_size): Use INT_MAX for default columns.
3003 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3005 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3006 qXfer:spu:write packet types.
3008 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3010 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3011 * gdbarch.c, gdbarch.h: Regenerate.
3013 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3015 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3016 gdbarch_stab_reg_to_regnum.
3017 * stabsread.c (define_symbol): Likewise.
3018 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3019 gdbarch_ecoff_reg_to_regnum.
3020 * mdebugread.c (parse_symbol): Likewise.
3021 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3022 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3023 gdbarch_dwarf_reg_to_regnum.
3024 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3025 * coffread.c (process_coff_symbol): Likewise.
3026 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3027 gdbarch_dwarf2_reg_to_regnum.
3028 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3029 (locexpr_describe_location): Likewise.
3030 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3031 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3032 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3033 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3034 * gdbarch.c, gdbarch.h: Regenerate.
3036 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3038 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3039 gdbarch_smash_text_address.
3040 * somread.c (som_symtab_read): Likewise.
3041 * elfread.c (record_minimal_symbol): Likewise.
3042 * dbxread.c (process_one_symbol): Likewise.
3043 * coffread.c (coff_symtab_read): Likewise.
3044 * gdbarch.c, gdbarch.h: Regenerate.
3046 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3048 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3049 * findvar.c (value_from_register): Likewise.
3050 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3051 * valops.c (value_assign): Likewise.
3052 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3053 gdbarch_convert_register_p.
3054 * findvar.c (value_from_register): Likewise.
3055 * valops.c (value_assign): Likewise.
3056 * gdbarch.c, gdbarch.h: Regenerate.
3058 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3060 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3061 gdbarch_register_sim_regno.
3062 * sim-regno.h (sim_regno): Likewise (comment).
3063 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3064 * gdbarch.c, gdbarch.h: Regenerate.
3066 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3068 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3069 gdbarch_virtual_frame_pointer.
3070 * tracepoint.c (encode_actions): Likewise.
3071 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3072 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3073 * gdbarch.c, gdbarch.h: Regenerate.
3075 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3077 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3078 * p-lang.c (pascal_create_fundamental_type): Likewise.
3079 * objc-lang.c (objc_create_fundamental_type): Likewise.
3080 * mdebugread.c (_initialize_mdebugread): Likewise.
3081 * m2-lang.c (m2_create_fundamental_type)
3082 (_initialize_m2_language): Likewise.
3083 * gdbtypes.c (build_gdbtypes): Likewise.
3084 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3085 * doublest.c (floatformat_from_length): Likewise.
3086 * c-lang.c (c_create_fundamental_type): Likewise.
3087 * ada-lang.c (ada_create_fundamental_type)
3088 (ada_language_arch_info): Likewise.
3089 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3090 * value.c (unpack_double): Likewise (comment).
3091 * gdbtypes.c (build_gdbtypes): Likewise.
3092 * doublest.c (floatformat_from_length): Likewise.
3093 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3094 * valarith.c (value_binop): Likewise.
3095 * p-lang.c (pascal_create_fundamental_type): Likewise.
3096 * objc-lang.c (objc_create_fundamental_type): Likewise.
3097 * mdebugread.c (_initialize_mdebugread): Likewise.
3098 * m2-lang.c (m2_create_fundamental_type): Likewise.
3099 * gdbtypes.c (build_gdbtypes): Likewise.
3100 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3101 * doublest.c (floatformat_from_length): Likewise.
3102 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3103 * c-lang.c (c_create_fundamental_type): Likewise.
3104 * ada-lex.l (processReal): Likewise.
3105 * ada-lang.c (ada_create_fundamental_type)
3106 (ada_language_arch_info): Likewise.
3107 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3108 * value.c (unpack_double): Likewise (comment).
3109 * gdbtypes.c (build_gdbtypes): Likewise.
3110 * doublest.c (floatformat_from_length): Likewise.
3111 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3112 gdbarch_long_double_bit.
3113 * p-lang.c (pascal_create_fundamental_type): Likewise.
3114 * objc-lang.c (objc_create_fundamental_type): Likewise.
3115 * m2-lang.c (m2_create_fundamental_type): Likewise.
3116 * gdbtypes.c (build_gdbtypes): Likewise.
3117 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3118 * doublest.c (floatformat_from_length): Likewise.
3119 * c-lang.c (c_create_fundamental_type): Likewise.
3120 * ada-lex.l (processReal): Likewise.
3121 * ada-lang.c (ada_create_fundamental_type)
3122 (ada_language_arch_info): Likewise.
3123 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3124 gdbarch_long_double_format.
3125 * gdbtypes.c (build_gdbtypes): Likewise.
3126 * doublest.c (floatformat_from_length): Likewise.
3127 * gdbarch.c, gdbarch.h: Regenerate.
3129 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3131 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3132 * ada-lang.c (ada_create_fundamental_type)
3133 (ada_language_arch_info): Likewise.
3134 * c-lang.c (c_create_fundamental_type): Likewise.
3135 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3136 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3137 * m2-lang.c (m2_create_fundamental_type): Likewise.
3138 * objc-lang.c (objc_create_fundamental_type): Likewise.
3139 * p-lang.c (pascal_create_fundamental_type): Likewise.
3140 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3141 * c-exp.y (parse_number): Likewise.
3142 * objc-exp.y (parse_number): Likewise.
3143 * ada-lex.l (processInt): Likewise.
3144 * f-exp.y (parse_number): Likewise.
3145 * p-exp.y (parse_number): Likewise.
3146 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3147 (gdbtypes_post_init, build_gdbtypes): Likewise.
3148 * p-lang.c (pascal_create_fundamental_type): Likewise.
3149 * parse.c (build_parse): Likewise.
3150 * xcoffread.c (_initialize_xcoffread): Likewise.
3151 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3152 (read_range_type): Likewise.
3153 * objc-lang.c (objc_create_fundamental_type): Likewise.
3154 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3155 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3156 (m2_create_fundamental_type): Likewise.
3157 * c-lang.c (c_create_fundamental_type): Likewise.
3158 * coffread.c (coff_read_enum_type): Likewise.
3159 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3160 * dwarf2read.c (new_symbol): Likewise.
3161 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3162 * c-exp.y (parse_number): Likewise.
3163 * objc-exp.y (parse_number): Likewise.
3164 * ada-lex.l (processInt): Likewise.
3165 * f-exp.y (parse_number): Likewise.
3166 * p-exp.y (parse_number): Likewise.
3167 * valarith.c (value_binop): Likewise.
3168 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3169 * ada-lang.c (ada_create_fundamental_type)
3170 (ada_language_arch_info): Likewise.
3171 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3172 * symfile.c (TARGET_LONG_BYTES): Likewise.
3173 * p-lang.c (pascal_create_fundamental_type): Likewise.
3174 * objc-lang.c (objc_create_fundamental_type): Likewise.
3175 * m2-lang.c (m2_create_fundamental_type): Likewise.
3176 * f-lang.c (f_create_fundamental_type): Likewise.
3177 * c-lang.c (c_create_fundamental_type): Likewise.
3178 * coffread.c (decode_base_type): Likewise.
3179 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3180 * c-exp.y (parse_number): Likewise.
3181 * objc-exp.y (parse_number): Likewise.
3182 * p-exp.y (parse_number): Likewise.
3183 * ada-lang.c (ada_create_fundamental_type)
3184 (ada_language_arch_info): Likewise.
3185 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3186 * stabsread.c (read_range_type): Likewise.
3187 * p-lang.c (pascal_create_fundamental_type): Likewise.
3188 * objc-lang.c (objc_create_fundamental_type): Likewise.
3189 * m2-lang.c (m2_create_fundamental_type): Likewise.
3190 * f-lang.c (f_create_fundamental_type): Likewise.
3191 * c-lang.c (c_create_fundamental_type): Likewise.
3192 * gdbarch.c, gdbarch.h: Regenerate.
3194 2007-06-12 Andreas Schwab <schwab@suse.de>
3196 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3197 (struct frame_unwind): Add dealloc_cache.
3198 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3200 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3201 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3202 (libunwind_frame_unwind): Set dealloc_cache.
3203 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3205 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3206 Markus Deuling <deuling@de.ibm.com>
3208 * remote.c (remote_write_qxfer): New function.
3209 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3210 (remote_read_qxfer): Do not cache empty objects.
3211 (_initialize_remote): Add PACKET_qXfer_spu_read and
3212 PACKET_qXfer_spu_write.
3214 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3216 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3217 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3219 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3220 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3221 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3222 * spu-tdep.c (infospucmdlist): New variable.
3223 (spu_register_name): Handle additional pseudo registers.
3224 (spu_register_type): Likewise.
3225 (spu_pseudo_register_read): Likewise.
3226 (spu_pseudo_register_write): Likewise.
3227 (spu_pseudo_register_read_spu): New function.
3228 (spu_pseudo_register_write_spu): Likewise.
3229 (info_spu_event_command): New function.
3230 (info_spu_signal_command): Likewise.
3231 (info_spu_mailbox_list): Likewise.
3232 (info_spu_mailbox_command): Likewise.
3233 (spu_mfc_get_bitfield): Likewise.
3234 (info_spu_dma_cmdlist): Likewise.
3235 (info_spu_dma_command): Likewise.
3236 (info_spu_proxydma_command): Likewise.
3237 (info_spu_command): Likewise.
3238 (_initialize_spu_tdep): Install "info spu" commands.
3240 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3242 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3243 accessing non-seekable spufs files.
3245 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3247 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3248 gdbarch_skip_trampoline_code.
3249 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3250 * objc-lang.c (objc_skip_trampoline)
3251 (objc_submethod_helper_data): Likewise.
3252 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3253 * infrun.c (handle_inferior_event): Likewise.
3254 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3255 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3256 gdbarch_in_solib_return_trampoline.
3257 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3258 * infrun.c (handle_inferior_event): Likewise.
3259 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3260 * gdbarch.c, gdbarch.h: Regenerate.
3262 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3264 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3265 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3266 * linespec.c (minsym_found): Likewise.
3267 * infrun.c (step_into_function): Likewise.
3268 * gdbarch.c, gdbarch.h: Regenerate.
3270 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3272 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3273 * valops.c (value_allocate_space_in_inferior): Likewise.
3274 * gdbarch.c, gdbarch.h: Regenerate.
3276 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3278 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3279 gdbarch_memory_insert_breakpoint.
3280 * mem-break.c (memory_insert_breakpoint): Likewise.
3281 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3282 gdbarch_memory_remove_breakpoint.
3283 * mem-break.c (memory_remove_breakpoint): Likewise.
3284 * gdbarch.c, gdbarch.h: Regenerate.
3286 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3288 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3289 gdbarch_fetch_tls_load_module_address.
3290 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3291 gdbarch_fetch_tls_load_module_address_p.
3292 * gdbarch.c, gdbarch.h: Regenerate.
3294 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3296 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3297 gdbarch_decr_pc_after_break.
3298 * tracepoint.c (trace_dump_command): Likewise.
3299 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3300 * linux-thread-db.c (check_event): Likewise.
3301 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3302 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3303 * frame.h: Likewise (comment).
3304 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3305 * aix-thread.c (aix_thread_wait): Likewise.
3306 * gdbarch.c, gdbarch.h: Regenerate.
3308 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3310 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3311 gdbarch_address_class_type_flags.
3312 * dwarf2read.c (read_tag_pointer_type): Likewise.
3313 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3314 gdbarch_address_class_type_flags_p.
3315 * dwarf2read.c (read_tag_pointer_type): Likewise.
3316 * gdbarch.c, gdbarch.h: Regenerate.
3318 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3320 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3321 * value.c (value_as_address): Likewise (comment).
3322 * remote-mips.c (common_breakpoint): Likewise.
3323 * regcache.c (read_pc_pid): Likewise.
3324 * printcmd.c (do_one_display): Likewise.
3325 * monitor.c (monitor_write_memory, monitor_read_memory)
3326 (monitor_insert_breakpoint): Likewise.
3327 * mips-tdep.c (heuristic_proc_start): Likewise.
3328 * infrun.c (insert_step_resume_breakpoint_at_frame)
3329 (insert_step_resume_breakpoint_at_caller): Likewise.
3330 * buildsym.c (record_line): Likewise.
3331 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3332 (arm_get_next_pc): Likewise.
3333 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3334 (store_regs): Likewise.
3335 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3336 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3337 * gdbarch.c, gdbarch.h: Regenerate.
3339 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3341 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3342 * tracepoint.c (scope_info): Likewise.
3343 * target.c (debug_print_register): Likewise.
3344 * stack.c (frame_info): Likewise.
3345 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3346 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3347 (sh64_media_print_registers_info)
3348 (sh64_compact_print_registers_info): Likewise.
3349 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3350 * remote-sim.c (gdbsim_fetch_register): Likewise.
3351 * remote.c (packet_reg): Likewise (comment).
3352 * reggroups.c (default_register_reggroup_p): Likewise.
3353 * regcache.c (regcache_dump): Likewise.
3354 * printcmd.c (address_info): Likewise.
3355 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3356 * mt-dep.c (mt_registers_info): Likewise.
3357 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3358 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3359 (mips_read_fp_register_double, mips_print_fp_register)
3360 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3361 (mips_register_sim_regno): Likewise.
3362 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3363 * inf-ptrace.c (inf_ptrace_fetch_register)
3364 (inf_ptrace_store_register): Likewise.
3365 * infcmd.c (default_print_registers_info): Likewise.
3366 * ia64-linux-nat.c (ia64_linux_fetch_register)
3367 (ia64_linux_store_register): Likewise.
3368 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3369 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3370 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3371 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3372 (hppa_hpux_store_register): Likewise.
3373 * findvar.c (locate_var_value): Likewise.
3374 * dwarf2loc.c (locexpr_describe_location): Likewise.
3375 * dwarf2-frame.c (execute_cfa_program): Likewise.
3376 * arm-tdep.c (arm_push_dummy_call): Likewise.
3377 * arch-utils.c (legacy_register_sim_regno): Likewise.
3378 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3379 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3380 * mi/mi-main.c (mi_cmd_data_list_register_names)
3381 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3382 (mi_cmd_data_write_register_values): Likewise.
3383 * gdbarch.c, gdbarch.h: Regenerate.
3385 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3387 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3389 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3391 * remote.c (process_g_packet): Don't check size.
3392 * gdbarch.sh: Remove register_bytes_ok.
3393 * gdbarch.c: Regenerated.
3394 * gdbarch.h: Regenerated.
3395 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3396 (m68k_register_bytes_ok): Remove.
3397 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3399 2007-06-06 Andreas Schwab <schwab@suse.de>
3401 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3402 (destroy_addr_space_name): Define.
3403 (libunwind_load): Get address of destroy_addr_space function.
3404 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3405 returning unsuccessfully.
3406 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3408 (libunwind_sigtramp_frame_sniffer): Likewise.
3409 (libunwind_get_reg_special): Likewise.
3411 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3413 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3414 gdbarch_fetch_pointer_argument.
3415 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3416 * gdbarch.c, gdbarch.h: Regenerate.
3418 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3420 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3421 gdbarch_have_nonsteppable_watchpoint.
3422 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3423 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3424 gdbarch_cannot_step_breakpoint.
3425 * infrun.c (resume): Likewise.
3426 * gdbarch.c, gdbarch.h: Regenerate.
3428 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3430 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3431 * stack.c (print_frame_args): Likewise.
3432 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3433 * stack.c (print_args_stub, frame_info): Likewise.
3434 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3435 * stack.c (print_args_stub, frame_info): Likewise.
3436 * gdbarch.c, gdbarch.h: Regenerate.
3438 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3440 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3441 gdbarch_coff_make_msymbol_special.
3442 * coffread.c (coff_symtab_read): Likewise.
3443 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3444 gdbarch_elf_make_msymbol_special.
3445 * elfread.c (elf_symtab_read): Likewise.
3446 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3447 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3448 * gdbarch.c, gdbarch.h: Regenerate.
3450 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3452 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3453 gdbarch_frame_red_zone_size.
3454 * gdbarch.c, gdbarch.h: Regenerate.
3456 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3458 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3459 * infcall.c (call_function_by_hand): Likewise.
3460 * gcore.c (derive_stack_segment): Likewise.
3461 * frame.c (frame_id_inner): Likewise.
3462 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3463 * ada-lang.c (ensure_lval): Likewise.
3464 * gdbarch.c, gdbarch.h: Regenerate.
3466 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3468 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3469 gdbarch_address_to_pointer.
3470 * findvar.c (store_typed_address): Likewise.
3471 * gdbtypes.c (make_pointer_type): Likewise (comment).
3472 * procfs.c (procfs_address_to_host_pointer): Likewise.
3473 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3474 (value_of_builtin_frame_fp_reg): Likewise.
3475 (value_of_builtin_frame_pc_reg): Likewise.
3476 * utils.c (paddress): Likewise (comment).
3477 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3478 gdbarch_pointer_to_address.
3479 * findvar.c (extract_typed_address): Likewise.
3480 * gdbtypes.c (make_pointer_type): Likewise (comment).
3481 * valops.c (value_cast): Likewise (comment).
3482 * gdbarch.c, gdbarch.h: Regenerate.
3484 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3486 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3487 * infrun.c (handle_inferior_event): Likewise.
3488 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3489 gdbarch_get_longjmp_target_p.
3490 * breakpoint.c (breakpoint_re_set): Likewise.
3491 * infrun.c (handle_inferior_event): Likewise.
3492 * gdbarch.c, gdbarch.h: Regenerate.
3494 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3496 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3497 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3498 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3499 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3500 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3501 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3502 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3503 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3504 current_ex_event, child_get_current_exception_event): Remove.
3505 (hppa_hpux_inferior_created): Remove.
3506 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3508 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3509 (deprecated_exception_support_initialized): Remove.
3510 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3511 (deprecated_exception_support_initialized): Remove.
3512 (breakpoint_init_inferior): Remove handling of non-zero
3513 deprecated_exception_catchpoints_are_fragile.
3515 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3516 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3517 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3518 deprecated_hp_som_som_object_present.
3519 * eval.c (evaluate_subexp_standard): Likewise.
3520 * valops.c (value_cast): Likewise.
3522 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3523 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3524 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3526 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3528 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3529 (struct objfile): Remove import_list, import_list_size,
3530 export_list, export_list_size members.
3531 (is_in_import_list): Remove prototype.
3532 * objfiles.c (is_in_import_list): Remove.
3533 * somread.c (init_import_symbols, init_export_symbols): Remove.
3534 (som_symfile_read): Do not call init_import_symbols. Do not
3535 set objfile->export_list and objfile->export_list_size.
3537 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3539 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3540 Use the original objfile if necessary.
3542 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3544 * defs.h (ldirname): New prototype.
3545 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3547 * utils.c (ldirname): New function.
3548 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3550 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3552 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3554 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3556 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3558 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3560 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3562 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3564 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3565 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3566 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3567 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3568 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3569 ppc_linux_at_sigtramp_return_path): Remove.
3571 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3573 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3574 (xtensa_register_write_masked, xtensa_register_read_masked)
3575 (xtensa_extract_return_value, xtensa_store_return_value
3576 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3577 TARGET_BYTE_ORDER by gdbarch_byte_order.
3578 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3579 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3580 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3581 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3582 (sh64_push_dummy_call, sh64_extract_return_value)
3583 (sh64_store_return_value, sh64_register_convert_to_virtual)
3584 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3585 (sh64_pseudo_register_write, sh64_do_fp_register)
3586 (sh64_frame_prev_register): Likewise.
3587 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3588 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3589 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3590 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3591 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3592 * ppc-linux-nat.c (store_register): Likewise.
3593 * nto-tdep.c (nto_find_and_open_solib)
3594 (nto_init_solib_absolute_prefix): Likewise.
3595 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3596 (mips_convert_register_p, mips_eabi_push_dummy_call)
3597 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3598 (mips_o32_push_dummy_call, mips_o32_return_value)
3599 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3600 (mips_read_fp_register_single, mips_read_fp_register_double)
3601 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3602 (mips_breakpoint_from_pc): Likewise.
3603 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3604 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3605 (mips_linux_o32_sigframe_init): Likewise.
3606 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3607 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3608 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3609 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3610 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3611 * coffread.c (process_coff_symbol): Likewise.
3612 * arm-tdep.c (convert_from_extended, convert_to_extended)
3613 (gdb_print_insn_arm): Likewise.
3615 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3617 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3618 * i386-tdep.c (i386_dbx_reg_to_regnum)
3619 (i386_svr4_reg_to_regnum): Likewise.
3620 * inf-ptrace.c (inf_ptrace_fetch_registers)
3621 (inf_ptrace_store_registers): Likewise.
3622 * corelow.c (get_core_registers): Likewise.
3623 * i386-linux-nat.c (supply_gregset, fill_gregset)
3624 (i386_linux_fetch_inferior_registers)
3625 (i386_linux_store_inferior_registers): Likewise.
3626 * remote.c (init_remote_state,packet_reg_from_regnum)
3627 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3628 (remote_prepare_to_store,store_registers_using_G)
3629 (remote_store_registers,remote_arch_state): Likewise.
3630 * tracepoint.c (encode_actions): Likewise.
3631 * mi/mi-main.c (mi_cmd_data_list_register_names)
3632 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3633 (mi_cmd_data_write_register_values): Likewise.
3634 * tui/tui-regs.c (tui_show_register_group)
3635 (tui_show_register_group): Likewise.
3636 * xtensa-tdep.h (FP_ALIAS): Likewise.
3637 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3638 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3639 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3640 * win32-nat.c (do_win32_fetch_inferior_registers)
3641 (do_win32_store_inferior_registers,fetch_elf_core_registers
3642 * user-regs.h: Likewise (comment).
3643 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3644 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3645 * target-descriptions.h: Likewise (comment).
3646 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3647 * target.c (debug_print_register): Likewise.
3648 * stack.c (frame_info): Likewise.
3649 * stabsread.c (define_symbol): Likewise.
3650 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3651 (sh64_media_print_registers_info)
3652 (sh64_compact_print_registers_info): Likewise.
3653 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3654 * rs6000-nat.c (fetch_register,store_register): Likewise.
3655 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3656 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3657 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3658 * remote-m32r-sdi.c (m32r_fetch_registers)
3659 (m32r_store_registers): Likewise.
3660 * reggroups.c (default_register_reggroup_p): Likewise.
3661 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3662 (regcache_restore,regcache_dump): Likewise.
3663 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3664 * mips-tdep.c (mips_xfer_register,mips_register_name)
3665 (mips_register_reggroup_p,mips_pseudo_register_read)
3666 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3667 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3668 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3669 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3670 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3671 (print_gp_register_row,mips_print_registers_info)
3672 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3673 (mips_register_sim_regno): Likewise.
3674 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3675 (mips_linux_n32n64_sigframe_init): Likewise.
3676 * mips-linux-nat.c (mips_linux_register_addr)
3677 (mips64_linux_register_addr): Likewise.
3678 * findvar.c (value_of_register): Likewise.
3679 * infcmd.c (default_print_registers_info,registers_info)
3680 (print_vector_info,print_float_info): Likewise.
3681 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3682 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3683 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3684 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3685 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3686 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3687 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3688 (ia64_linux_store_registers): Likewise.
3689 * hpux-thread.c (hpux_thread_fetch_registers)
3690 (hpux_thread_store_registers): Likewise.
3691 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3692 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3693 (h8300_register_type): Likewise.
3694 * dwarf2-frame.c (dwarf2_frame_cache)
3695 (dwarf2_frame_state_alloc_regs): Likewise.
3696 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3697 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3698 (crisv32_cannot_store_register,cris_register_name): Likewise.
3699 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3700 * arch-utils.c (legacy_register_sim_regno)
3701 (legacy_virtual_frame_pointer): Likewise.
3702 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3703 * arm-tdep.h: Likewise (comment).
3704 * frv-tdep.c (frv_register_sim_regno): Likewise.
3705 * m68klinux-nat.c (old_fetch_inferior_registers)
3706 (old_store_inferior_registers): Likewise.
3707 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3708 * irix5-nat.c (fetch_core_registers): Likewise.
3709 * hppa-tdep.c (hppa_frame_cache): Likewise.
3710 * hppa-linux-nat.c (hppa_linux_register_addr)
3711 (hppa_linux_fetch_inferior_registers)
3712 (hppa_linux_store_inferior_registers): Likewise.
3713 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3714 (hppa_hpux_store_inferior_registers): Likewise.
3715 * amd64-nat.c (amd64_native_gregset_reg_offset)
3716 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3717 * dbug-rom.c (dbug_regname): Likewise.
3718 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3719 (HARD_PAGE_REGNUM (comment)): Likewise.
3720 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3721 * i386-tdep.c (i386_dbx_reg_to_regnum)
3722 (i386_svr4_reg_to_regnum): Likewise.
3723 * mi/mi-main.c (mi_cmd_data_list_register_names)
3724 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3725 (mi_cmd_data_write_register_values): Likewise.
3726 * gdbarch.c, gdbarch.h: Regenerate.
3727 * tui/tui-regs.c (tui_show_register_group): Likewise.
3728 * xtensa-tdep.h (FP_ALIAS): Likewise.
3729 * user-regs.h: Likewise (comment).
3730 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3731 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3732 * target-descriptions.h: Likewise (comment).
3733 * target.c (debug_print_register): Likewise.
3734 * stack.c (frame_info): Likewise.
3735 * stabsread.c (define_symbol): Likewise.
3736 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3737 (sh64_compact_print_registers_info): Likewise.
3738 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3739 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3740 (regcache_restore,regcache_dump): Likewise.
3741 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3742 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3743 (mips_stab_reg_to_regnum): Likewise.
3744 * findvar.c (value_of_register): Likewise.
3745 * infcmd.c (default_print_registers_info,registers_info)
3746 (print_vector_info,print_float_info): Likewise.
3747 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3748 * h8300-tdep.c (h8300_register_type): Likewise.
3749 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3750 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3751 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3752 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3753 * parse.c: Remove comment.
3754 * gdbarch.c, gdbarch.h: Regenerate
3756 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3758 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3759 gdbarch_cannot_fetch_register.
3760 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3761 * hppa-linux-nat.c (fetch_register): Likewise.
3762 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3763 * m68klinux-nat.c (fetch_register): Likewise.
3764 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3766 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3767 gdbarch_cannot_store_register.
3768 * hppa-linux-nat.c (store_register): Likewise.
3769 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3770 * regcache.c (regcache_raw_write): Likewise.
3771 * m68klinux-nat.c (store_register): Likewise.
3772 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3773 * gdbarch.c, gdbarch.h: Regenerate.
3775 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3777 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3778 * gdbarch.c, gdbarch.h: Regenerate.
3780 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3782 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3783 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3784 * gdbarch.c, gdbarch.h: Regenerate.
3786 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3788 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3789 * ax-gdb.c (gen_bitfield_ref): Likewise.
3790 * mi/mi-main.c (get_register): Likewise.
3791 * findvar.c (default_value_from_register, extract_signed_integer)
3792 (extract_unsigned_integer, extract_long_unsigned_integer)
3793 (store_signed_integer, store_unsigned_integer): Likewise.
3794 * regcache.c (regcache_dump): Likewise.
3795 * value.c (lookup_internalvar, value_of_internalvar)
3796 (set_internalvar): Likewise.
3798 * valprint.c (print_binary_chars, print_octal_chars)
3799 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3800 * infcmd.c (default_print_registers_info): Likewise.
3801 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3802 * stabsread.c (define_symbol): Likewise.
3803 * doublest.c (floatformat_from_length, floatformat_from_type)
3804 (extract_typed_floating, store_typed_floating): Likewise.
3805 * gdbarch.c, gdbarch.h: Regenerate.
3807 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3809 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3810 gdbarch_call_dummy_location.
3811 * infcall.c (call_function_by_hand): Likewise.
3812 * inferior.h: Change comment.
3813 * arch-utils.c: Change comment.
3814 * gdbarch.c, gdbarch.h: Regenerate.
3816 2007-05-28 Joel Brobecker <brobecker@adacore.com>
3818 * solib-aix5.c: Delete.
3819 * Makefile.in (solib-aix5.o): Delete rule.
3821 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
3823 * breakpoint.h (enum bpstat_what_main_action): Remove
3824 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3825 * infrun.c (process_event_stop_test): Do not check for it.
3827 2007-05-22 Chris Dearman <chris@mips.com>
3828 Maciej W. Rozycki <macro@mips.com>
3830 * ser-unix.c (show_serial_hwflow): New function.
3831 (hardwire_raw): Add hardware flow control support.
3832 (_initialize_ser_hardwire): Add "set/show remoteflow".
3833 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3834 * NEWS: Document the new command.
3836 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3838 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3839 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3840 define for i[[3456]]86-*-linux* native configurations.
3841 * config.in, configure: Regenerate.
3843 2007-05-19 Joel Brobecker <brobecker@adacore.com>
3845 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3846 a core file. Add comment in the function description.
3848 2007-05-18 Caroline Tice <ctice@apple.com>
3850 * c-valprint.c (c_value_print): If the initialized field of the
3851 value struct is 0, print out "[uninitialized]" before the value.
3852 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3853 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3854 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3855 ctx->initialized appropriately. Verify no location op follows
3857 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3858 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3859 set_value_initialized.
3860 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3861 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3862 * value.c (struct value): New field, initialized.
3863 (allocate_value): Initialize new field.
3864 (set_value_initialized): New function.
3865 (value_initialized): New function.
3866 * value.h (value_initialized): New extern declaration.
3867 (set_value_initialized): Likewise.
3869 2007-05-18 Caroline Tice <ctice@apple.com>
3871 * MAINTAINERS (Write After Approval): Add self.
3873 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3875 * gdbtypes.c (make_reference_type): Preserve the type chain
3876 and set the length of all the variants of the pointer type.
3878 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3880 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3881 and set the length of all the variants of the pointer type.
3883 2007-05-17 Maciej W. Rozycki <macro@mips.com>
3885 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3887 (mips_o64_push_dummy_call): Reformat a comment.
3889 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
3891 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3892 (score_prologue_frame_base_address): Return fp to keep gdb print
3893 local variables correctly when debugging information is stabs.
3895 (score_analyze_prologue): For software watchpoint, fetch all the
3896 instructions from range [startaddr, pc] once and identify them locally
3897 to reduce memory access.
3898 (score_malloc_and_get_memblock, score_free_memblock)
3899 (score_adjust_memblock_ptr): New functions.
3900 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3902 (score_target_can_use_watch, score_stopped_by_watch)
3903 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3904 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3905 New functions for remote & local hw-watchpoint and hw-breakpoint.
3907 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
3909 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3910 declarations as well.
3912 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3914 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3915 * config/arm/tm-embed.h: Delete file.
3917 * arm-tdep.h (arm_software_single_step): Declare.
3918 * arm-tdep.c (arm_software_single_step): Make global.
3919 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3921 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3922 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3923 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3924 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3926 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3927 allow defines to be overriden by TM file.
3928 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3929 change default to {0xbe,0xbe}.
3930 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3931 arm_obsd_thumb_be_breakpoint): New global variables.
3932 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3933 tdep->thumb_breakpoint_size.
3934 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3935 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3936 tdep->thumb_breakpoint_size.
3938 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3940 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3942 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3945 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3946 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3947 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3948 (mips_abi_regsize): Simplify.
3949 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3950 (mips_n32n64_return_value, mips_o32_push_dummy_call)
3951 (mips_o32_return_value, mips_o64_push_dummy_call)
3952 (mips_o64_return_value): Propogate constant register sizes. Use the
3953 ABI register size instead of mips_stack_argsize.
3954 (mips_dump_tdep): Don't print mips_stack_argsize.
3955 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
3958 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3960 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
3961 * config/mips/tm-linux.h: Delete.
3962 * mips-linux-tdep.c (mips_svr4_so_ops): New.
3963 (mips_linux_in_dynsym_resolve_code): Make static. Use
3964 svr4_in_dynsym_resolve_code.
3965 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
3967 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
3969 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
3970 * Makefile.in (mips-linux-tdep.o): Update.
3971 * solib.c (set_solib_ops): New.
3972 (current_target_so_ops): Update comment.
3973 * solib.h (set_solib_ops): New prototype.
3975 2007-05-16 Chris Dearman <chris@mips.com>
3977 * printcmd.c (do_examine): Fix typos in a comment.
3979 2007-05-16 Richard Sandiford <richard@codesourcery.com>
3981 * configure.ac: Allow sysroots to be relocated under $prefix as
3982 well as $exec_prefix.
3983 * configure: Regenerate.
3985 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3987 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
3988 (offsetof): Do not define.
3989 (find_stub_with_shl_get): Use numerical value 3 instead of
3990 symbolic value TYPE_PROCEDURE.
3992 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3994 * gdb_proc_service.h (paddr_t): Delete typedef.
3995 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
3996 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
3997 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
3998 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
3999 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4000 * Makefile.in (proc-service.o): Update.
4002 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4004 * Makefile.in (mips-tdep.o): Update.
4005 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4008 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4010 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4011 instead of store_typed_address.
4012 * value.c (pack_long): New.
4013 (value_from_longest): Use it.
4014 * value.h (pack_long): New prototype.
4016 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4018 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4019 DW_EH_PE_signed if appropriate.
4021 2007-05-14 Paul Brook <paul@codesourcery.com>
4022 Daniel Jacobowitz <dan@codesourcery.com>
4024 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4026 (dwarf_decode_lines): Check for line info without a file.
4028 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4030 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4033 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4035 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4037 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4039 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4041 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4043 * gdbarch.sh (read_sp): Remove.
4044 * gdbarch.c, gdbarch.h: Regenerate.
4045 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4047 * avr-tdep.c (avr_read_sp): Remove.
4048 (avr_unwind_sp): New function.
4049 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4050 * mips-tdep.c (mips_read_sp): Remove.
4051 (mips_unwind_sp): New function.
4052 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4053 * score-tdep.c (score_read_unsigned_register): Remove.
4054 (score_read_sp): Remove.
4055 (score_unwind_sp): New function.
4056 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4058 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4060 * buildsym.c (start_subfile): Handle absolute pathnames
4061 while comparing subfile names.
4063 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4065 * hppa-hpux-tdep.c: Include "regcache.h".
4066 * hppa-linux-tdep.c: Likewise.
4067 * hppa-tdep.c: Include "gdb_stdint.h".
4068 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4070 * Makefile.in: Update dependencies.
4072 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4074 * blockframe.c: Remove obsolete comments.
4075 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4076 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4077 * hppa-tdep.h (enum hppa_regnum): Likewise.
4078 * mips-tdep.h: Likewise.
4079 * m68hc11-tdep.c: Likewise.
4081 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4083 * inferior.h (read_sp): Remove prototype.
4084 * regcache.c (read_sp): Remove.
4085 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4086 * infcall.c (call_function_by_hand): Likewise.
4087 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4089 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4091 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4093 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4094 instead of read_register and read_register_pid.
4096 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4097 argument instead of PTID. Use regcache functions instead of
4099 (ia64_linux_insert_watchpoint): Update call.
4100 (ia64_linux_stopped_data_address): Use regcache functions
4101 instead of read_register_pid and write_register_pid.
4103 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4105 * libunwind-frame.h (struct regcache): Add forward declaration.
4106 (libunwind_get_reg_special): Add REGCACHE argument.
4107 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4108 argument. Pass it to unw_init_remote_p.
4110 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4111 libunwind_get_reg_special.
4112 (ia64_access_reg): Remove "write" case.
4113 (ia64_access_fpreg): Likewise. Read from next_frame passed
4114 as callback argument instead of from current_regcache.
4115 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4116 passed as callback argument instead of from current_regcache.
4117 (ia64_access_rse_fpreg): New function.
4118 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4120 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4122 * NEWS: Mention SPU overlay support.
4124 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4126 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4128 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4130 * breakpoint.c (remove_breakpoint): Do not remove software
4131 breakpoints in unmapped overlay sections.
4133 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4135 * spu-tdep.c: Include "observer.h".
4136 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4137 (spu_overlay_data): New variable.
4138 (struct spu_overlay_table): New type.
4139 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4140 spu_overlay_new_objfile): New functions.
4141 (spu_gdbarch_init): Install spu_overlay_update.
4142 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4143 allocate spu_overlay_data objfile data.
4145 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4147 * gdbarch.sh (overlay_update): New gdbarch function.
4148 (struct obj_section): Add forward declaration.
4149 * gdbarch.c, gdbarch.h: Regenerate.
4151 * symfile.c (simple_overlay_update): Make global.
4152 (target_overlay_update): Remove variable.
4153 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4154 target_overlay_update.
4155 (overlay_load_command): Likewise.
4156 * symfile.h (struct obj_section): Add forward declaration.
4157 (simple_overlay_update): Add prototype.
4159 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4161 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4163 * observer.sh: Add "struct objfile" forward declaration.
4164 * target.h (deprecated_target_new_objfile_hook): Remove.
4165 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4166 (clear_symtab_users): Call observer_notify_new_objfile.
4167 (symbol_file_add_with_addrs_or_offsets): Likewise.
4168 * rs6000-nat.c: Include "observer.h".
4169 (vmap_ldinfo): Call observer_notify_new_objfile.
4170 (xcoff_relocate_core): Likewise.
4171 * remote.c (remote_new_objfile_chain): Remove.
4172 (remote_new_objfile): Do not call remote_new_objfile_chain.
4173 (_initialize_remote): Use observer_attach_new_objfile.
4174 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4175 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4176 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4177 * aix-thread.c: Include "observer.h".
4178 (target_new_objfile_chain): Remove.
4179 (new_objfile): Do not call target_new_objfile_chain.
4180 (_initialize_aix_thread): Use observer_attach_new_objfile.
4181 * hpux-thread.c: Include "observer.h"
4182 (target_new_objfile_chain): Remove.
4183 (hpux_thread_new_objfile): Make static. Do not call
4184 target_new_objfile_chain.
4185 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4186 * linux-thread-db.c: Include "observer.h".
4187 (target_new_objfile_chain): Remove.
4188 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4189 (_initialize_thread_db): Use observer_attach_new_objfile.
4190 * sol-thread.c: Include "observer.h".
4191 (target_new_objfile_chain): Remove.
4192 (sol_thread_new_objfile): Make static. Do not call
4193 target_new_objfile_chain.
4194 (_initialize_sol_thread): Use observer_attach_new_objfile.
4195 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4196 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4199 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4201 * gdbarch.sh (remote_translate_xfer_address): Remove.
4202 * gdbarch.h, gdbarch.c: Regenerate.
4203 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4204 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4205 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4206 call gdbarch_remote_translate_xfer_address.
4207 * frv-tdep.c (frv_gdbarch_init): Do not call
4208 set_gdbarch_remote_translate_xfer_address.
4209 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4210 (ia64_gdbarch_init): Do not install it.
4212 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4214 * NEWS: Mention change in handling the -tui option.
4216 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4218 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4221 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4223 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4224 (breakpoint_inserted_here_p): Call it.
4225 (software_breakpoint_inserted_here_p): Likewise.
4227 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4229 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4230 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4231 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4232 (inf_ptrace_store_register): Likewise.
4233 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4234 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4236 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4238 * linux-nat.c (linux_trad_target): Adapt parameter list.
4239 * linux-nat.h (linux_trad_target): Likewise.
4241 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4243 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4244 (mips_linux_cannot_store_register): Likewise.
4245 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4246 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4247 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4248 (mips64_linux_register_addr): Likewise.
4249 (mips_linux_register_u_offset): Adapt parameter list. Pass
4250 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4252 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4253 * config/mips/nm-linux.h: Delete file.
4255 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4257 * remote.c (remote_detach): Error out if remote can't detach.
4259 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4261 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4262 instruction's opcode in the "opcode" variable and declares new
4263 variable "closing_insn".
4265 2007-05-10 Chris Dearman <chris@mips.com>
4266 Maciej W. Rozycki <macro@mips.com>
4268 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4269 whitespace when setting a var_filename.
4271 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4273 * main.c (captured_main): Recognize -tui option and print an error
4274 message when the TUI is not configured.
4276 2007-05-09 Andreas Schwab <schwab@suse.de>
4278 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4279 set removed members.
4280 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4282 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4284 * gdbarch.sh (deprecated_store_struct_return): Remove.
4285 * gdbarch.c, gdbarch.h: Regenerate.
4286 * frv-tdep.c (frv_store_struct_return): Remove.
4287 (frv_gdbarch_init): Do not install it.
4289 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4291 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4292 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4293 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4295 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4297 * spu-linux-nat.c: Include "gdb_stdint.h".
4298 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4299 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4300 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4301 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4302 (spu_child_wait): Mark up string for translation.
4304 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4305 Luis Machado <luisgpm@br.ibm.com>
4307 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4308 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4309 BC_INSTRUCTION): Define.
4310 (deal_with_atomic_sequence): New function.
4311 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4312 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4313 gdbarch_software_single_step routine.
4315 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4317 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4318 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4319 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4320 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4321 spu_child_post_attach, spu_fetch_inferior_registers,
4322 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4323 memory addresses as ULONGEST, not CORE_ADDR.
4325 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4327 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4328 * gdbarch.h, gdbarch.c: Regenerate.
4330 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4331 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4332 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4334 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4335 Add REGCACHE argument. Use it instead of read/write_register.
4336 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4338 * config/pa/tm-hppah.h: Delete file.
4339 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4340 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4342 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4344 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4345 * NEWS: Mention improved C++ thunk support.
4346 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4347 * cp-abi.c (cplus_skip_trampoline): New.
4348 * cp-abi.h (cplus_skip_trampoline): New prototype.
4349 (struct cp_abi_ops): Add skip_trampoline member.
4350 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4351 (init_gnuv3_ops): Set skip_trampoline.
4353 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4355 * rs6000-tdep.c (struct frame_extra_info): Delete.
4357 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4359 * linux-thread-db.c: Update some FIXME comments.
4360 (thread_db_xfer_partial): Delete.
4361 (init_thread_db_ops): Do not set to_xfer_partial.
4363 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4365 * inftarg.c, infptrace.c: Remove files.
4366 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4367 (inftarg.o, infptrace.o): Remove rules.
4368 * gdbcore.h (register_addr): Remove prototype.
4369 * inferior.h (kill_inferior, store_inferior_registers,
4370 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4371 call_ptrace, pre_fork_inferior): Remove prototypes.
4372 * target.h (child_xfer_memory, child_pid_to_exec_file,
4373 child_core_file_to_sym_file, child_post_attach,
4374 child_post_startup_inferior, child_acknowledge_created_inferior,
4375 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4376 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4377 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4378 child_follow_fork, child_reported_exec_events_per_exec_call,
4379 child_has_exited, child_thread_alive): Remove prototypes.
4381 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4383 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4384 (sparc_store_inferior_registers): Likewise.
4385 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4386 (sparc_fetch_inferior_registers): ... this.
4387 (store_inferior_registers): Rename to ...
4388 (sparc_store_inferior_registers): ... this.
4389 (sparc_target): Update callback names.
4390 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4391 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4393 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4395 * linux-nat.c (child_post_attach): Rename to ...
4396 (linux_child_post_attach): ... this. Make static.
4397 (child_follow_fork): Rename to ...
4398 (linux_child_follow_fork): ... this. Make static.
4399 (child_insert_fork_catchpoint): Rename to ...
4400 (linux_child_insert_fork_catchpoint): ... this. Make static.
4401 (child_insert_vfork_catchpoint): Rename to ...
4402 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4403 (child_insert_exec_catchpoint): Rename to ...
4404 (linux_child_insert_exec_catchpoint): ... this. Make static.
4405 (child_pid_to_exec_file): Rename to ...
4406 (linux_child_pid_to_exec_file): ... this. Make static.
4408 (linux_handle_extended_wait): Update call.
4409 (linux_xfer_partial): Update callback routine names.
4411 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4413 * configure.host (alpha*-*-osf[12]*): Remove support.
4414 * NEWS: Mention removed configurations.
4416 * config/alpha/alpha-osf1.mh: Delete file.
4417 * config/alpha/alpha-osf2.mh: Delete file.
4418 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4420 * config/alpha/nm-osf.h: Delete file.
4421 * config/alpha/nm-osf2.h: Delete file.
4422 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4423 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4424 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4426 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4427 (register_addr, kernel_u_size): Remove.
4428 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4430 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4432 * regcache.c (regcache_invalidate): New function.
4433 (register_cached): Remove.
4434 (set_register_cached): Remove.
4435 (deprecated_registers_fetched): Remove.
4436 (registers_changed): Use regcache_invalidate instead
4437 of set_register_cached.
4438 (regcache_raw_read): Update comment.
4440 * regcache.h (regcache_invalidate): Add prototype.
4441 (register_cached): Remove.
4442 (set_register_cached): Remove.
4443 (deprecated_registers_fetched): Remove.
4445 * findvar.c (value_of_register): Do not call register_cached.
4446 * frame.c (frame_register): Likewise.
4447 * tui/tui-regs.c (tui_get_register): Likewise.
4449 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4450 (process_g_packet): Likewise.
4451 (remote_fetch_registers): Likewise.
4452 * remote-sim.c (gdbsim_fetch_register): Likewise.
4453 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4454 by regcache_invalidate.
4455 (mt_pseudo_register_write): Likewise.
4456 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4458 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4459 call by loop over regcache_raw_supply (..., NULL).
4461 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4463 * target.h (struct target_ops): Add REGCACHE parameter to
4464 to_prepare_to_store.
4465 (target_prepare_to_store): Likewise.
4466 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4467 (update_current_target): Adapt prepare_to_store de_fault rule.
4469 * regcache.c (regcache_raw_write): Pass regcache to
4470 target_prepare_to_store.
4472 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4473 Do not call CHILD_PREPARE_TO_STORE.
4474 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4475 * procfs.c (procfs_prepare_to_store): Likewise.
4477 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4478 * go32-nat.c (go32_prepare_to_store): Likewise.
4479 * monitor.c (monitor_prepare_to_store): Likewise.
4480 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4481 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4482 * remote-mips.c (mips_prepare_to_store): Likewise.
4483 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4484 * win32-nat.c (win32_prepare_to_store): Likewise.
4486 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4487 Use it instead of current_regcache.
4489 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4490 parameter. Pass it on to next target.
4491 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4493 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4495 * target.h (struct regcache): Add forward declaration.
4496 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4497 and to_store_registers target operations.
4498 (target_fetch_registers, target_store_registers): Update.
4500 * regcache.c (regcache_raw_read): Replace register_cached by
4501 regcache_valid_p. Pass regcache to target_fetch_registers.
4502 (regcache_raw_write): Pass regcache to target_store_registers.
4504 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4505 store_regs, store_wmmx_regs): Replace register_cached by
4508 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4509 to target_fetch_registers calls.
4510 * corelow.c (core_open): Likewise.
4511 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4512 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4513 ps_lsetfpregs): Likewise.
4514 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4515 ps_lsetfpregs): Likewise.
4516 * win32-nat.c (win32_resume): Likewise.
4517 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4518 to target_store_registers call.
4519 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4521 * inferior.h (store_inferior_registers): Update prototype.
4522 (fetch_inferior_registers): Likewise.
4523 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4524 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4525 Update function pointer signatures.
4527 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4528 use it instead of current_regcache, update calls.
4529 (aix_thread_store_registers): Likewise.
4530 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4531 (alphabsd_store_inferior_registers): Likewise.
4532 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4533 (amd64bsd_store_inferior_registers): Likewise.
4534 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4535 (amd64_linux_store_inferior_registers): Likewise.
4536 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4537 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4538 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4539 (arm_linux_fetch_inferior_registers): Likewise.
4540 (arm_linux_store_inferior_registers): Likewise.
4541 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4542 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4543 (store_register, store_regs, store_fp_register, store_fp_regs,
4544 armnbsd_store_registers): Likewise.
4545 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4546 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4547 (bsd_uthread_store_registers): Likewise.
4548 * corelow.c (get_core_registers): Likewise.
4549 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4550 go32_store_registers): Likewise.
4551 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4552 (hppabsd_store_registers): Likewise.
4553 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4554 (hppa_hpux_fetch_inferior_registers): Likewise.
4555 (hppa_hpux_store_register): Likewise.
4556 (hppa_hpux_store_inferior_registers): Likewise.
4557 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4558 (hppa_linux_fetch_inferior_registers): Likewise.
4559 (hppa_linux_store_inferior_registers): Likewise.
4560 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4561 (hpux_thread_store_registers): Likewise.
4562 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4563 (i386bsd_store_inferior_registers): Likewise.
4564 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4565 gnu_store_registers): Likewise.
4566 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4567 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4569 (i386_linux_fetch_inferior_registers): Likewise.
4570 (i386_linux_store_inferior_registers): Likewise.
4571 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4572 (ia64_linux_fetch_registers): Likewise.
4573 (ia64_linux_store_register): Likewise.
4574 (ia64_linux_store_registers): Likewise.
4575 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4576 (inf_child_store_inferior_registers): Likewise.
4577 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4578 (inf_ptrace_fetch_registers): Likewise.
4579 (inf_ptrace_store_register): Likewise.
4580 (inf_ptrace_store_registers): Likewise.
4581 * infptrace.c (fetch_register, store_register): Likewise.
4582 (fetch_inferior_registers, store_inferior_registers): Likewise.
4583 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4584 (m32r_linux_fetch_inferior_registers): Likewise.
4585 (m32r_linux_store_inferior_registers): Likewise.
4586 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4587 (m68kbsd_store_inferior_registers): Likewise.
4588 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4589 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4590 fetch_fpregs, store_fpregs): Likewise.
4591 (m68k_linux_fetch_inferior_registers): Likewise.
4592 (m68k_linux_store_inferior_registers): Likewise.
4593 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4594 (m88kbsd_store_inferior_registers): Likewise.
4595 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4596 (mips64obsd_store_inferior_registers): Likewise.
4597 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4598 (mips64_linux_regsets_store_registers): Likewise.
4599 (mips64_linux_fetch_registers): Likewise.
4600 (mips64_linux_store_registers): Likewise.
4601 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4602 (mipsnbsd_store_inferior_registers): Likewise.
4603 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4604 (monitor_fetch_registers, monitor_store_registers): Likewise.
4605 * nto-procfs.c (procfs_fetch_registers): Likewise.
4606 (procfs_store_registers): Likewise.
4607 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4608 fetch_register, supply_vrregset, fetch_altivec_registers,
4609 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4610 (store_altivec_register, store_spe_register, store_register,
4611 fill_vrregset, store_altivec_registers, store_ppc_registers,
4612 ppc_linux_store_inferior_registers): Likewise.
4613 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4614 (ppcnbsd_store_inferior_registers): Likewise.
4615 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4616 (ppcobsd_store_registers): Likewise.
4617 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4618 * remote.c (fetch_register_using_p, process_g_packet,
4619 fetch_registers_using_g, remote_fetch_registers): Likewise.
4620 (store_register_using_P, store_registers_using_G,
4621 remote_store_registers): Likewise.
4622 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4623 m32r_store_register, m32r_store_register): Likewise.
4624 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4625 * remote-sim.c (gdbsim_fetch_register): Likewise.
4626 (gdbsim_store_register): Likewise.
4627 * rs6000-nat.c (fetch_register, store_register): Likewise.
4628 (rs6000_fetch_inferior_registers): Likewise.
4629 (rs6000_store_inferior_registers): Likewise.
4630 * s390-nat.c (fetch_regs, store_regs): Likewise.
4631 (fetch_fpregs, store_fpregs): Likewise.
4632 (s390_linux_fetch_inferior_registers): Likewise.
4633 (s390_linux_store_inferior_registers): Likewise.
4634 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4635 (shnbsd_store_inferior_registers): Likewise.
4636 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4637 (sol_thread_store_registers): Likewise.
4638 * sparc-nat.c (fetch_inferior_registers): Likewise.
4639 (store_inferior_registers): Likewise.
4640 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4641 (spu_store_inferior_registers): Likewise.
4642 * target.c (debug_print_register): Likewise.
4643 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4644 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4645 (vaxbsd_store_inferior_registers): Likewise.
4646 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4647 (win32_fetch_inferior_registers): Likewise.
4648 (win32_store_inferior_registers): Likewise.
4650 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4652 * gdbcore.h (struct regcache): Add forward declaration.
4653 (struct core_fns): Add REGCACHE argument to core_read_registers
4655 * corelow.c (get_core_register_section): Add REGCACHE argument,
4656 use it instead of current_regcache, pass it to core_read_registers
4658 (get_core_registers): Add current_regcache as parameter to
4659 get_core_register_section calls.
4661 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4662 use it instead of current_regcache.
4663 * armnbsd-nat.c (fetch_core_registers): Likewise.
4664 (fetch_elfcore_registers): Likewise.
4665 * core-regset.c (fetch_core_registers): Likewise.
4666 * cris-tdep.c (fetch_core_registers): Likewise.
4667 * irix5-nat.c (fetch_core_registers): Likewise.
4668 * m68klinux-nat.c (fetch_core_registers): Likewise.
4669 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4670 * win32-nat.c (fetch_elf_core_registers): Likewise.
4672 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4674 * gregset.h (struct regcache): Add forward declaration.
4675 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4676 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4677 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4678 (fill_gregset): Add REGCACHE parameter.
4679 (fill_fpregset): Likewise.
4680 (fill_fpxregset): Likewise.
4682 Update all definitions accordingly:
4683 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4684 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4685 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4686 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4687 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4688 (supply_gregset): Add REGCACHE parameter, use it instead of
4689 current_regcache. Make GREGSETP parameter const, adapt casts.
4690 (supply_fpregset): Add REGCACHE parameter, use it instead of
4691 current_regcache. Make FPREGSETP parameter const, adapt casts.
4692 (fill_gregset): Add REGCACHE parameter, use it instead of
4694 (fill_fpregset): Likewise.
4696 Update all callers to pass in current_regcache as the new argument:
4697 * core-regset.c: Include "regcache.h".
4698 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4699 * procfs.c: Include "regcache.h".
4700 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4701 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4702 (procfs_do_thread_registers): Likewise.
4703 (procfs_make_note_section): Likewise.
4704 * proc-service.c: Include "regcache.h".
4705 (ps_lgetregs): Update fill_gregset call.
4706 (ps_lsetregs): Update supply_gregset call.
4707 (ps_lgetfpregs): Update fill_fpregset call.
4708 (ps_lsetfpregs): Update supply_fpregset call.
4709 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4710 supply_fpregset calls.
4711 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4712 (ps_lgetregs): Update fill_gregset call.
4713 (ps_lsetregs): Update supply_gregset call.
4714 (ps_lgetfpregs): Update fill_fpregset call.
4715 (ps_lsetfpregs): Update supply_fpregset call.
4717 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4718 fill_fpregset, and fill_fpxregset calls.
4719 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4720 (store_regs): Update fill_gregset call.
4721 (fetch_fpregs): Update supply_fpregset call.
4722 (store_fpregs): Update fill_fpregset call.
4723 (fetch_fpxregs): Update supply_fpxregset call.
4724 (store_fpxregs): Update fill_fpxregset call.
4725 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4726 (store_regs): Update fill_gregset call.
4727 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4728 (store_regs): Update fill_gregset call.
4729 (fetch_fpregs): Update supply_fpregset call.
4730 (store_fpregs): Update fill_fpregset call.
4731 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4732 * s390-nat.c (fetch_regs): Update supply_gregset call.
4733 (store_regs): Update fill_gregset call.
4734 (fetch_fpregs): Update supply_fpregset call.
4735 (store_fpregs): Update fill_fpregset call.
4737 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4740 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4742 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4743 it instead of current_regcache.
4744 (parse_register_dump): Add REGCACHE parameter, pass it to
4745 supply_register callback.
4746 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4747 parse_register_dump.
4748 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4749 parse_register_dump and dumpregs callback.
4750 (monitor_wait): Pass current_regcache to parse_register_dump and
4752 (monitor_fetch_register): Pass current_regcache to
4753 monitor_supply_register.
4754 (monitor_fetch_registers): Pass current_regcache to
4756 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4757 supply_register and dumpregs callbacks.
4758 (monitor_supply_register, monitor_dump_reg_block): Update
4760 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4761 it to monitor_supply_register.
4762 * dink32-rom.c (dink32_supply_register): Likewise.
4763 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4764 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4765 instead of current_regcache.
4767 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4769 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4770 Add REGCACHE parameter. Use it instead of current_regcache.
4771 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4772 i386nto_supply_gregset and i386nto_supply_fpregset.
4773 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4774 of current_regcache.
4776 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4777 nto_supply_ helper functions.
4778 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4780 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4782 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4783 supply_greget, supply_fpregset, supply_altregset, supply_regset,
4784 and regset_fill member function pointers.
4785 (nto_dummy_supply_regset): Adapt prototype.
4787 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4789 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4790 instead of current_regcache. Make REGS const.
4791 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4792 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4794 * shnbsd-nat.c: Include "regcache.h".
4795 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4797 (shnbsd_store_inferior_registers): Pass current_regcache to
4799 * Makefile.in (shbsd-nat.o): Update dependencies.
4801 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4803 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4804 instead of current_regcache.
4805 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4806 Make GREGSETP const, remove superfluous casts.
4807 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4808 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4810 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4811 (supply_64bit_reg): Likewise
4812 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4813 Make GREGSETP const, adapt casts accordingly.
4814 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4815 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4817 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4818 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4820 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4821 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4822 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4824 * mips-linux-nat.c: Include "regcache.h".
4825 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4826 current_regcache to mips{64}_(supply|fill)_ helper routines.
4827 (mips64_linux_regsets_fetch_registers): Likewise.
4828 (mips64_linux_regsets_store_registers): Likewise.
4830 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4831 REGCACHE argument; replace current_regcache. Make REGS const.
4832 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4833 replace current_regcache.
4834 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4835 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4836 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4837 mipsnbsd_store_inferior_registers): Pass current_regcache to
4838 mipsnbsd_(supply|fill)_... helper routines.
4840 * Makefile.in (mips-linux-nat.o): Update dependencies.
4842 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4844 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4845 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4846 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4847 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4848 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4849 * i386gnu-nat.c (store_fpregs): Likewise.
4850 * i386v4-nat.c (fill_fpregset): Likewise.
4851 * go32-nat.c (store_register, go32_store_registers): Likewise.
4853 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4855 * cris-tdep.c (supply_gregset): Rename to ...
4856 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4857 instead of current_regcache.
4858 (fetch_core_registers): Update call. Pass current_regcache.
4860 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4862 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4863 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4864 Use it instead of current_regcache.
4865 (supply_fparegset): Rename to ...
4866 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4867 Use it instead of current_regcache.
4868 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4869 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4871 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4873 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4874 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4875 use it instead of current_regcache.
4876 * alpha-tdep.h (struct regcache): Add forward declaration.
4877 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4878 alpha_fill_fp_regs): Update prototypes.
4880 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4881 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4882 * alpha-linux-nat.c: Include "regcache.h".
4883 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4884 current_regcache to alpha_supply/fill_ routines.
4886 * alphabsd-tdep.c: Include "regcache.h".
4887 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4888 pass it to alpha_supply_ routines. Make REGS const.
4889 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4890 pass it to alpha_fill_ routines.
4891 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4892 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4893 alphabsd_fill_fpreg): Update prototypes.
4895 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4896 fill_fpregset, alphabsd_fetch_inferior_registers,
4897 alphabsd_store_inferior_registers): Pass current_regcache to
4898 alphabsd_supply/fill_ routines.
4900 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4903 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4905 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4906 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4907 instead of current_regcache.
4908 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4909 REGCACHE parameter, pass it to supply_ routines.
4910 (aix_thread_fetch_registers): Pass current_regcache to
4911 fetch_regs_user_thread and fetch_regs_kernel_thread.
4913 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4914 Add REGCACHE parameter, use it instead of current_regcache.
4915 Call regcache_valid_p instead of register_cached.
4916 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4917 Also, pass REGCACHE to fill_ routines.
4918 (aix_thread_store_registers): Pass current_regcache to
4919 store_regs_user_thread and store_regs_kernel_thread.
4921 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4923 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4924 pointed to by GREGSETP.
4926 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4928 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4929 of regcache_raw_read_signed.
4930 (fill_fpregset): Use regcache_raw_collect instead of
4933 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4935 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4936 point arguments, test explicitly for use of the EABI32 ABI
4937 instead of inferring this condition from tests on register
4940 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4942 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4943 prior to allocating its location.
4945 2007-05-02 Maciej W. Rozycki <macro@mips.com>
4947 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4948 based on mips_abi_regsize() whose result is known in advance.
4949 (mips_o64_push_dummy_call): Likewise.
4951 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4953 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4954 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
4956 * mips-linux-nat.c: Include "gregset.h".
4957 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
4958 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
4959 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
4960 fill_fpregset): Move to mips-linux-nat.c.
4962 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
4964 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4966 * regcache.c (deprecated_read_register_gen): Remove, inline ...
4967 (read_register): ... here.
4968 (deprecated_write_register_gen): Remove, inline ...
4969 (write_register): ... here.
4970 * regcache.h (deprecated_read_register_gen): Remove prototype.
4971 (deprecated_write_register_gen): Likewise.
4973 * remote-sim.c (gdbsim_store_register): Replace call to
4974 deprecated_read_register_gen with regcache_cooked_read.
4975 * target.c (debug_print_register): Replace calls to
4976 deprecated_read_register_gen and read_register with
4977 regcache_cooked_read.
4979 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4981 * hpux-thread.c (hpux_thread_store_registers): Use
4982 regcache_raw_collect, not regcache_raw_read.
4983 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
4984 not regcache_raw_write.
4986 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4988 * gdbarch.sh: Remove deprecated_register_byte.
4989 * gdbarch.c, gdbarch.h: Regenerate.
4990 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
4991 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
4993 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
4994 * regcache.c (regcache_valid_p): Allow to query cooked registers in
4995 read-only register caches. Make REGCACHE parameter const.
4996 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
4998 * mi/mi-main.c (old_regs): Remove.
4999 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5000 (register_changed_p): Reimplement to compare two register caches.
5001 (mi_cmd_data_list_changed_registers): Update caller.
5002 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5003 * mi/mi-interp.c (mi_interpreter_init): Do not call
5004 mi_setup_architecture_data.
5006 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5008 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5009 inline definition at the places the macros are used.
5010 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5012 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5014 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5016 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5017 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5018 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5019 (rs6000_aix_regset_from_core_section): New function.
5020 (rs6000_aix_init_osabi): Register it.
5021 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5022 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5023 * rs6000-nat.c (CoreRegs): Do not define type.
5024 (fetch_core_registers, rs6000_core_fns): Remove.
5025 (_initialize_core_rs6000): Do not register it. Rename to ...
5026 (_initialize_rs6000_nat): ... this.
5027 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5029 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5031 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5032 (dwarf2_read_address): Sign extend return address as required by
5033 target architecture.
5035 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5037 * solib-frv.c (lm_base): Bail out if the main executable has
5040 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5042 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5043 of FPCR register in fpregset.
5045 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5047 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5048 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5050 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5052 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5053 * rs6000-nat.c (rs6000_wait): New function.
5054 (_initialize_core_rs6000): Install it as to_wait target method.
5055 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5057 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5059 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5060 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5061 * rs6000-nat.c (super_create_inferior): New variable.
5062 (rs6000_create_inferior): Make static. Adapt argument list. Call
5063 original version of create_inferior via super_create_inferior.
5064 (_initialize_core_rs6000): Install to_create_inferior target method.
5066 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5068 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5069 (aix_thread_xfer_partial): ... this.
5070 (init_aix_thread_ops): Install to_xfer_partial instead
5071 of deprecated_xfer_memory target method.
5073 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5074 and inftarg.o, add inf-ptrace.o.
5075 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5076 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5077 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5078 (fetch_inferior_registers): Rename to ...
5079 (rs6000_fetch_inferior_registers): ... this. Make static.
5080 (store_inferior_registers): Rename to ...
5081 (rs6000_store_inferior_registers): ... this. Make static.
5082 (read_word, child_xfer_memory): Remove.
5083 (rs6000_xfer_partial): New function.
5084 (kernel_u_size): Remove.
5085 (_initialize_core_rs6000): Add inf_ptrace-based target.
5086 * Makefile.in (rs6000-nat.o): Update dependencies.
5088 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5090 * inf-ptrace.c: Include "gdb_stdint.h".
5091 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5092 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5093 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5094 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5095 (inf_ptrace_store_register): Likewise.
5096 * Makefile.in (inf-ptrace.o): Update dependencies.
5098 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5100 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5101 * configure.tgt (rs6000-*-*): Likewise.
5102 * config/rs6000/aix4.mh: Delete file.
5103 * config/rs6000/aix4.mt: Delete file.
5104 * config/rs6000/rs6000.mh: Delete file.
5105 * config/rs6000/rs6000.mt: Delete file.
5107 * config/powerpc/nm-aix.h: Delete file.
5108 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5110 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5112 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5113 Remove obsolete part of comment.
5114 (store_regs_user_thread): Use uint32_t temporaries when calling
5116 (store_regs_kernel_thread): Likewise. Add assertion to verify
5117 correct size of struct ptsprs members.
5118 (aix_thread_xfer_memory): Fix type of myaddr.
5119 (aix_thread_extra_thread_info): Fix compiler warning.
5120 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5121 (fetch_register, store_register): Adapt callers.
5123 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5125 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5127 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5129 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5131 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5132 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5133 (alpha_linux_regset_from_core_section): New function.
5134 (alpha_linux_init_abi): Install it.
5135 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5136 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5137 <sys/procfs.h>, and "gregset.h".
5138 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5139 Move from config/alpha/nm-linux.h.
5140 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5142 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5143 * alpha-nat.c: Remove #ifdef __linux__ section.
5144 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5145 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5146 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5147 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5148 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5149 (NATDEPFILES): Remove alpha-nat.o.
5150 * config/alpha/nm-linux.h: Delete file.
5151 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5152 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5153 (alpha-linux-tdep.o): Likewise.
5155 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5157 * mips-linux-nat.c: No longer include "gdbcore.h".
5158 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5159 (mips64_linux_register_addr): Likewise.
5160 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5161 mips64_linux_register_addr instead of register_addr.
5162 * mips-linux-tdep.c (mips_linux_register_addr,
5163 mips64_linux_register_addr): Move to mips-linux-nat.c.
5164 (register_addr): Remove.
5165 (register_addr_data, init_register_addr_data): Remove.
5166 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5167 (set_mips_linux_register_addr): Remove.
5168 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5169 * Makefile.in (mips-linux-nat.o): Update dependencies.
5171 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5173 * linux-nat.c (linux_register_u_offset): Remove.
5174 (linux_target_install_ops): New function.
5175 (linux_target): Use it.
5176 (linux_trad_target): New function.
5177 * linux-nat.h (linux_trad_target): Declare.
5179 * alpha-linux-nat.c: Include "gdbcore.h".
5180 (alpha_linux_register_u_offset): New function.
5181 (_initialize_alpha_linux_nat): Use linux_trad_target.
5183 * mips-linux-nat.c: Include "gdbcore.h".
5184 (mips_linux_register_u_offset): New function.
5185 (_initialize_mips_linux_nat): Use linux_trad_target.
5187 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5188 * config/arm/nm-linux.h: Delete file.
5190 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5191 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5193 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5194 * config/ia64/nm-linux.h: Delete file.
5196 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5197 * config/m32r/nm-linux.h: Delete file.
5199 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5200 * config/m68k/nm-linux.h: Delete file.
5202 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5203 * config/pa/nm-linux.h: Delete file.
5205 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5206 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5207 * config/powerpc/nm-linux.h: Delete file.
5209 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5210 * config/s390/nm-linux.h: Delete file.
5212 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5213 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5214 * config/sparc/nm-linux.h: Delete file.
5216 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5217 (mips-linux-nat.o): Likewise.
5219 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5221 * core-aout.c: Delete file.
5222 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5223 (core-aout.o): Delete rule.
5224 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5226 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5228 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5229 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5230 KERNEL_U_ADDR): Remove.
5232 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5233 (cannot_fetch_register, cannot_store_register): Remove.
5234 (fetch_register): Inline cannot_fetch_register and register_addr.
5235 (store_register): Inline cannot_store_register and register_addr.
5236 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5237 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5238 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5241 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5242 (fetch_register): Inline register_addr.
5243 (store_register): Inline register_addr.
5244 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5245 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5246 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5248 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5249 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5250 REGISTER_U_ADDR): Remove.
5252 * hppa-linux-nat.c (register_addr): Rename to ...
5253 (hppa_linux_register_addr): ... this. Make static.
5254 (fetch_register, store_register): Adapt callers.
5255 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5257 * ppc-linux-nat.c (kernel_u_size): Remove.
5258 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5260 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5261 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5263 * config/vax/nm-vax.h: Delete file.
5265 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5267 * MAINTAINERS (Write After Approval): Add myself.
5269 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5271 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5272 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5273 (m68k_linux_sigcontext_reg_offset): Fix typo.
5274 (target_is_uclinux): New.
5275 (m68k_linux_inferior_created): New.
5276 (m68k_linux_get_sigtramp_info): Check for uClinux or
5277 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5279 (_initialize_m68k_linux_tdep): Register
5280 m68k_linux_inferior_created.
5282 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5284 * win32-nat.c (win32_detach): Remove delete_command call.
5285 Resume inferior with win32_resume instead of win32_continue.
5287 2007-04-19 Jerome Guitton <guitton@adacore.com>
5289 * ser-mingw.c (fd_is_file): New function.
5290 (file_select_thread): New function.
5291 (ser_console_wait_handle): Add special handling for files.
5293 2007-04-18 Denis Pilat <denis.pilat@st.com>
5295 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5296 when missing from DW_TAG_subrange_type. Remove the handling of null
5297 return from die_type.
5299 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5301 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5302 change to rearrange some brackets.
5303 (mips_n32n64_push_dummy_call): Likewise.
5304 (mips_o32_push_dummy_call): Likewise.
5305 (mips_o64_push_dummy_call): Likewise.
5307 2007-04-18 Denis Pilat <denis.pilat@st.com>
5309 * infcmd.c (post_create_inferior): Start with a call to
5310 target_terminal_ours.
5312 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5314 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5316 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5318 (mips_o32_push_dummy_call): Likewise.
5319 (mips_o64_push_dummy_call): Likewise.
5321 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5323 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5326 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5328 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5330 (mips_o32_push_dummy_call): Likewise.
5332 2007-04-17 Andreas Schwab <schwab@suse.de>
5334 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5335 sal to be bigger than the end of the function.
5337 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5338 Nigel Stephens <nigel@mips.com>
5340 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5341 argument alignment requirements when calculating stack space
5342 required. When aligning an arg register to eight bytes
5343 boundary, align stack_offset too. Write floating-point
5344 arguments to the appropriate integer register if need go there.
5345 (mips_o64_push_dummy_call): Likewise.
5347 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5349 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5350 "sig" arguments, add "regcache" argument.
5351 * gdbarch.c, gdbarch.h: Regenerate.
5353 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5354 (handle_inferior_event): Call remove_single_step_breakpoints directly
5355 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5357 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5358 Remove handling of !insert_breakpoints_p case.
5359 * arm-tdep.c (arm_software_single_step): Likewise.
5360 * cris-tdep.c (cris_software_single_step): Likewise.
5361 * mips-tdep.c (mips_software_single_step): Likewise.
5362 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5363 * sparc-tdep.c (sparc_software_single_step): Likewise.
5364 * spu-tdep.c (spu_software_single_step): Likewise.
5366 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5367 * mips-tdep.h (mips_software_single_step): Likewise.
5368 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5369 * sparc-tdep.h (sparc_software_single_step): Likewise.
5371 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5373 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5374 when removing single-step breakpoints.
5376 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5378 * varobj.h (varobj_set_frozen): New
5379 (varobj_get_frozen): New.
5380 (varobj_update): New parameter explicit.
5381 * varobj.c (struct varobj): New fields frozen
5383 (varobj_set_frozen, varobj_get_frozen): New.
5384 (install_new_value): Don't fetch values for
5385 frozen variable object, or children thereof. Allow
5386 a frozen variable object to have non-fetched value.
5387 (varobj_update): Allow updating child variables.
5388 Don't traverse frozen children.
5389 (new_variable): Initialize the frozen field.
5390 (c_value_of_variable): Return NULL for frozen
5391 variable without any value yet.
5392 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5394 (mi_cmd_var_create): Output the 'frozen' field,
5395 as soon as testsuite is adjusted to expect that field.
5396 (mi_cmd_var_set_frozen): New.
5397 (mi_cmd_var_update): Pass the 'explicit' parameter to
5399 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5400 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5402 2007-04-13 Paul Brook <paul@codesourcery.com>
5404 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5406 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5408 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5410 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5411 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5412 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5413 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5414 * Makefile.in: Remove references to deleted files.
5415 * README: Do not mention deleted ROM monitor interfaces.
5416 * defs.h (enum language): Delete language_scm.
5417 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5418 (dump_subexp_body_standard): Likewise.
5419 * parse.c (operator_length_standard): Likewise.
5420 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5421 * remote-mips.c: Do not include remote-utils.h.
5422 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5424 * value.c: Do not include scm-lang.h.
5425 (unpack_long): Delete scm_unpack call.
5426 * config/h8300/h8300.mt, config/mips/embed.mt,
5427 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5428 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5430 * NEWS: Mention removed files.
5432 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5434 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5435 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5437 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5439 * NEWS: Mention removal of HP aCC support.
5441 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5443 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5444 first entry for static executables.
5445 (breakpoint_addr): Delete unused variable.
5446 (elf_locate_base): Search for _r_debug in static executables.
5447 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5450 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5452 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5453 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5454 (mention): Remove bp_through_sigtramp support.
5455 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5457 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5459 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5462 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5464 * infrun.c: Doc fixes.
5465 (handle_inferior_event): Clarify debug message.
5466 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5468 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5470 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5472 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5474 * config/m68k/tm-monitor.h: Delete file.
5475 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5476 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5478 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5479 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5481 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5483 * gdbarch.sh (software_single_step): Change the return type
5484 from void to int and reformatted some comments to <= 80
5486 * gdbarch.c, gdbarch.h: Regenerated.
5487 * alpha-tdep.c (alpha_software_single_step): Likewise.
5488 * alpha-tdep.h (alpha_software_single_step): Likewise.
5489 * arm-tdep.c (arm_software_single_step): Likewise.
5490 * cris-tdep.c (cris_software_single_step): Likewise.
5491 * mips-tdep.c (mips_software_single_step): Likewise.
5492 * mips-tdep.h (mips_software_single_step): Likewise.
5493 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5494 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5495 * sparc-tdep.c (sparc_software_single_step): Likewise.
5496 * sparc-tdep.h (sparc_software_single_step): Likewise.
5497 * spu-tdep.c (spu_software_single_step): Likewise.
5498 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5499 and act accordingly.
5501 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5503 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5504 * configure: Regenerate.
5505 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5507 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5509 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5511 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5513 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5515 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5516 distinct on the TYPE_STUB_SUPPORTED debug targets.
5517 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5519 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5521 * sparc-tdep.c (X_RS2): New macro.
5522 (sparc_skip_stack_check): New function.
5523 (sparc_analyze_prologue): Adjust PC past stack probing
5524 sequence if necessary.
5526 2007-04-10 Andreas Schwab <schwab@suse.de>
5528 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5531 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5533 * breakpoint.c (gdb_breakpoint_query): Really return an
5535 (gdb_breakpoint): Likewise.
5536 * thread.c (gdb_list_thread_ids): Likewise.
5537 (gdb_thread_select): Likewise.
5538 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5539 (mi_cmd_thread_list_ids): Remove bogus initialization.
5541 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5543 * Makefile.in (SFILES): Remove hpacc-abi.c.
5544 (COMMON_OBS): Remove hpacc-abi.o.
5545 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5546 (hpacc-abi.o, hpread.o): Delete rules.
5547 * somread.c: Delete extern declarations from hpread.c.
5548 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5549 (som_symfile_finish): Do not call hpread_symfile_finish.
5550 (som_symfile_init): Do not call hpread_symfile_init.
5551 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5552 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5553 * hpacc-abi.c, hpread.c: Deleted.
5555 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5557 * solib-svr4.c (enable_break): Simplify return value.
5558 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5560 2007-04-10 Andreas Schwab <schwab@suse.de>
5562 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5563 l_ld_size, l_next_size, l_prev_size, l_name_size.
5565 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5566 to extract addresses from link map.
5567 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5568 (LM_NEXT): Likewise.
5569 (LM_NAME): Likewise.
5570 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5571 (elf_locate_base): Likewise.
5572 (open_symbol_file_object): Likewise.
5573 (svr4_fetch_objfile_link_map): Likewise.
5574 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5575 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5577 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5578 (svr4_lp64_fetch_link_map_offsets): Likewise.
5580 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5581 removed members. Set l_ld_offset to -1 if not present.
5583 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5585 Pass stderr of program run with "target remote |"
5587 * serial.c (serial_open): Set error_fd to -1.
5588 * serial.h (struct serial): New field error_fd.
5589 (struct serial_opts): New field avail.
5590 * ser-pipe.c (pipe_open): Create another pair
5591 of sockets. Pass stderr to gdb.
5592 * ser-mingw.c (pipe_windows_open): Pass
5593 PEX_STDERR_TO_PIPE to pex_run. Initialize
5596 (_initialize_ser_windows): Hook pipe_avail.
5597 * ser-base.c (generic_readchar): Check if there's
5598 anything in stderr channel and route that to gdb_stderr.
5600 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5602 * dbxread.c (read_ofile_symtab): Move current_objfile
5603 clearing to after end_stabs.
5605 2007-04-01 Andreas Schwab <schwab@suse.de>
5607 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5608 gdbarch instead of current_gdbarch.
5610 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5612 * varobj.c (varobj_create): Keep varobj value
5613 NULL when evaluating the type.
5615 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5617 * NEWS: Mention new Windows CE support.
5619 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5621 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5622 the obsoletion stanza.
5623 * NEWS: Mention deleted targets.
5625 * config/sh/tm-wince.h: Remove.
5626 * config/sh/wince.mt: Remove.
5627 * config/mips/tm-wince.h: Remove.
5628 * config/mips/wince.mt: Remove.
5631 * wince-stub.c: Remove.
5632 * wince-stub.h: Remove.
5633 * Makefile.in (wince.o): Remove rule.
5634 (wince-stub.o): Likewise.
5636 * mips-tdep.c (mips_next_pc): Make static.
5637 * mips-tdep.h (mips_next_pc): Remove declaration.
5638 * arm-tdep.c (arm_pc_is_thumb): Make static.
5639 (thumb_get_next_pc): Likewise.
5640 (arm_get_next_pc): Likewise.
5641 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5642 (arm_pc_is_thumb): Likewise.
5643 (thumb_get_next_pc): Likewise.
5644 (arm_get_next_pc): Likewise.
5646 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5648 * MAINTAINERS: Remove d10v entry.
5649 * Makefile.in (SFILES): Remove dwarfread.c.
5650 (COMMON_OBS): Remove dwarfread.o.
5651 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5652 (remote-est.o, rom68k-rom.o): Delete.
5653 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5654 target est, target rom68k, and DWARF 1.
5655 * configure.tgt: Mark d10v as removed.
5656 * dwarf2read.c: Doc update.
5657 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5659 (elf_locate_sections): Do not set them.
5660 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5661 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5662 * config/m68k/monitor.mt (TDEPFILES): Prune.
5663 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5664 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5666 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5668 * doublest.c (convert_floatformat_to_doublest): Use
5669 floatformat_classify.
5670 (floatformat_is_nan): Rename to...
5671 (floatformat_classify): ...this. Return more information.
5672 * doublest.h (enum float_kind): New.
5673 (floatformat_is_nan): Replace prototype...
5674 (floatformat_classify): ...with this one.
5675 * valprint.c (print_floating): Use floatformat_classify. Handle
5678 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5680 * README: Mention ISO C library requirement.
5682 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5684 * Makefile.in (SFILES): Remove nlmread.c.
5685 (COMMON_OBS): Remove nlmread.o.
5686 (nlmread.o): Delete rule.
5687 * README: Delete reference to remote-st.c.
5688 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5689 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5691 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5692 (_initialize_i386_tdep): Do not reference them.
5693 * nlmread.c: Delete file.
5694 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5695 * target.c: Doc update.
5696 * thread.c: Delete commented include.
5697 * config/alpha/tm-alpha.h: Doc update.
5699 2007-03-30 Chris Dearman <chris@mips.com>
5701 * utils.c (string_to_core_addr): Comment typo.
5703 2007-03-30 Chris Dearman <chris@mips.com>
5705 * mips-tdep.c: Comment typo.
5707 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5709 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5710 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5711 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5712 * config/powerpc/nm-ppc64-linux.h: Remove file.
5713 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5714 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5715 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5716 * infptrace.c (call_ptrace): Likewise.
5717 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5718 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5719 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5720 (store_register): Likewise.
5722 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5724 * Makefile.in (varobj.o): Add missing dependency.
5726 2007-03-29 Michael Snyder <msnyder@access-company.com>
5728 * MAINTAINERS: Update my email address.
5730 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5732 Add support for exception handling with multiple versions of
5734 * ada-lang.c: Update general comments on how Ada exception catchpoints
5736 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5737 (__gnat_raise_nodefer_with_msg): Delete.
5738 (ada_unhandled_exception_name_addr_ftype): New type.
5739 (exception_support_info): New type.
5740 (ada_unhandled_exception_name_addr): Add forward declaration.
5741 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5742 (default_exception_support_info): New constant.
5743 (exception_support_info_fallback): Likewise.
5744 (exception_info): New global variable.
5745 (ada_exception_support_info_sniffer): New function.
5746 (ada_executable_changed_observer): Likewise.
5747 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5748 ada_unhandled_exception_name_addr.
5749 (ada_unhandled_exception_name_addr): Reimplement to match the
5750 latest Ada runtime implementation.
5751 (error_breakpoint_runtime_sym_not_found): Delete.
5752 (ada_exception_sym_name): Get the exception sym name from
5753 exception_info rather than hardcoding it.
5754 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5755 Update error handling.
5756 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5758 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5760 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5761 (remote-st.o, uw-thread.o): Delete.
5762 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5763 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5764 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5765 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5766 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5767 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5768 rs6000-*-lynxos* to an obsoletion stanza.
5769 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5770 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5771 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
5772 i[34567]86-*-netware*.
5773 * NEWS: Mention deleted targets.
5775 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5776 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5777 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5778 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5779 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5780 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5781 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5782 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5783 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5784 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5785 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5786 config/rs6000/tm-rs6000ly.h: Delete files.
5788 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5790 * defs.h (deprecated_registers_changed_hook): Delete declaration.
5791 * interps.c (clear_interpreter_hooks): Do not clear
5792 deprecated_registers_changed_hook.
5793 * regcache.c (registers_changed): Do not call it.
5794 * top.c (deprecated_registers_changed_hook): Do not define it.
5795 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5796 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5797 (tui_remove_hooks): Do not remove it.
5798 (tui_selected_frame_level_changed_hook): Check for negative level.
5799 Use get_selected_frame.
5800 (tui_registers_changed_hook): Deleted.
5802 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5804 * stabsread.c (add_undefined_type): Add extra parameter.
5805 Now handles nameless types separately.
5806 (struct nat): New type.
5807 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5808 New static variables.
5809 (read_type): Update calls to add_undefined_type.
5810 (add_undefined_type_noname): New function.
5811 (add_undefined_type_1): Renames from add_undefined_type.
5812 (cleanup_undefined_types_noname): New function.
5813 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5814 (cleanup_undefined_types): New handles nameless types separately.
5815 (_initialize_stabsread): Initialize our new static constants.
5817 2007-03-29 Denis Pilat <denis.pilat@st.com>
5819 * configure.ac: Test for signal.h.
5820 * configure, config.in: Regenerate.
5822 2007-03-29 Denis Pilat <denis.pilat@st.com>
5824 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5825 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5827 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
5829 * arm-wince-tdep.c: New.
5830 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5831 (MT_CFLAGS): Delete.
5833 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5834 solib-legacy.o, solib-svr4.o, and remove wince.o.
5835 * configure.tgt (arm*-*-mingw32ce*): Add.
5836 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5837 (do_target_signal_to_host): Silence 'not used' warning.
5838 * config/arm/tm-wince.h: Remove.
5840 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5842 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5843 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5845 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5846 * config/ia64/tm-linux.h: Remove file.
5847 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5848 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5849 legacy_pc_in_sigtramp.
5850 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5851 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5852 Remove func_name argument.
5853 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5855 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5856 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5857 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5858 (HAVE_STEPPABLE_WATCHPOINT): Define.
5860 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5861 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5862 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5863 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5864 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5865 target_insert_watchpoint, target_remove_watchpoint): Remove.
5866 (FETCH_INFERIOR_REGISTERS): Define.
5867 * ia64-linux-nat.c (ia64_register_addr): Make static.
5868 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5869 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5870 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5871 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5872 (ia64_linux_stopped_by_watchpoint): Make static.
5873 (ia64_linux_can_use_hw_breakpoint): New function.
5874 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5875 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5876 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5878 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
5880 * linespec.c: Include language.h.
5881 (find_methods): Add language parameter. Call
5882 lookup_symbol_in_language. Pass language down.
5883 (add_matching_methods): Likewise. Call
5884 lookup_symbol_in_language.
5885 (add_constructors): Likewise.
5886 (find_method): Pass sym_class to collect_methods.
5887 (collect_methods): Add sym_class parameter. Pass language
5889 * symtab.c (lookup_symbol): Rename to ...
5890 (lookup_symbol_in_language): ... this. Add language
5891 parameter. Use passed language instead of current_language.
5892 (lookup_symbol): New as wrapper around
5893 lookup_symbol_in_language.
5894 (lookup_symbol_aux): Add language parameter. Use passed
5895 language instead of current_language.
5896 (search_symbols): Indent.
5897 * symtab.h (enum language): Forward declare.
5898 (lookup_symbol_in_language): Declare.
5899 (lookup_symbol): Update description.
5900 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5901 * ada-lang.c (restore_language): Remove.
5902 (lookup_symbol_in_language): Remove.
5904 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
5906 * breakpoint.c (bpstat_num): Add int *num parameter.
5907 * breakpoint.h (bpstat_num): Likewise.
5908 * infcmd.c (continue_command): Adjust to new bpstat_num
5910 (program_info): Likewise.
5912 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5914 * config/sh/tm-sh.h: Remove file.
5915 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5916 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5917 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5918 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5920 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5922 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5923 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5924 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5925 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5926 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5927 sequence if target_shortname is "remote".
5929 2007-03-27 Anton Blanchard <anton@samba.org>
5931 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5932 instead of wordsize when looking for the LR in a stack frame.
5934 2007-03-27 Andreas Schwab <schwab@suse.de>
5935 Daniel Jacobowitz <dan@codesourcery.com>
5937 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5938 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5939 argument. Update all callers.
5940 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5941 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5942 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5943 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5944 (dwarf2_frame_set_adjust_regnum): ...this.
5945 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5946 * rs6000-tdep.c: Include "dwarf2-frame.h".
5947 (rs6000_adjust_frame_regnum): Define.
5948 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5949 Register rs6000_adjust_frame_regnum.
5951 * Makefile.in (rs6000-tdep.o): Update dependencies.
5953 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
5955 * Makefile.in: Add support for a "pdf" target.
5957 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
5959 * amd64-tdep.c (amd64_init_frame_cache): New function.
5960 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
5962 2007-03-26 Nigel Stephens <nigel@mips.com>
5963 Maciej W. Rozycki <macro@mips.com>
5965 * ui-out.c (ui_out_field_core_addr): Truncate address to
5966 TARGET_ADDR_BIT size before printing.
5968 2007-03-22 Nigel Stephens <nigel@mips.com>
5969 Maciej W. Rozycki <macro@mips.com>
5971 * remote-mips.c (mips_xfer_memory): Update prototype.
5973 2007-03-22 Joel Brobecker <brobecker@adacore.com>
5975 * symfile.h: #include "symtab.h"
5977 2007-03-22 Denis Pilat <denis.pilat@st.com>
5979 * utils.c (pagination_on_command, pagination_off_command):
5980 Remove useless prototypes.
5982 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
5985 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
5986 instead of TYPE_NAME for object base class name.
5989 2007-03-19 Kevin Buettner <kevinb@redhat.com>
5991 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
5992 Specify frame type in calls to frame_func_unwind().
5994 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
5996 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
5997 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
5998 (refine_prologue_limit): Delete.
5999 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6000 Assume lim_pc is set. Correct check for incomplete prologues.
6001 Do not skip clobbers of the frame pointer.
6002 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6005 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6007 * frame.c (frame_pop): Check to see whether there's a frame to
6008 which we can pop first.
6010 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6012 * MAINTAINERS (Write After Approval): Add myself.
6014 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6016 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6017 (handle_inferior_event): Remove unnecessary braces.
6018 * breakpoint.c (bpstat_what): Remove wrong comment.
6020 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6022 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6023 (spu_gdbarch_init): Install it.
6025 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6027 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6028 object types, not 0.
6030 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6032 * spu-tdep.c (spu_frame_align): New function.
6033 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6035 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6037 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6038 (spu_software_single_step): Likewise.
6039 (spu_read_pc, spu_write_pc): New functions.
6040 (spu_gdbarch_init): Install them.
6042 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6044 * cli/cli-dump.c (struct callback_data): load_offset needs to
6045 have signed long type.
6047 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6049 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6050 Revert the previous change that had some unexpected side-effects
6052 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6053 function to get the address of the calling instruction.
6055 2007-03-07 Denis Pilat <denis.pilat@st.com>
6057 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6058 get_selected_frame by deprecated_safe_get_selected_frame.
6060 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6062 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6063 "gdb_string.h". Don't include "nbsd-tdep.h".
6064 (SIZEOF_STRUCT_REG): Remove.
6065 (SHNBSD_SIZEOF_GREGS): New.
6066 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6067 (shnbsd_regset_from_core_section): New functions.
6068 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6069 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6070 shnbsd_supply_gregset, shnbsd_collect_gregset.
6071 (shnbsd_gregset): New variable.
6072 (shnbsd_init_abi): Set regset_from_core_section.
6073 (GDB_OSABI_NETBSD_CORE): New define.
6074 (shnbsd_core_osabi_sniffer): New function.
6075 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6076 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6077 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6079 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6081 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6083 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6084 length of the types referenced by the new type CV ring.
6086 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6088 * frame.c (frame_pop, frame_observer_target_changed): Call
6090 (flush_cached_frames): Rename to reinit_frame_cache and delete
6092 * frame.h (flush_cached_frames): Delete prototype and update comment.
6094 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6095 reinit_frame_cache instead of flush_cached_frames. Do not call
6096 select_frame after reinit_frame_cache.
6097 * corelow.c (core_open): Likewise.
6098 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6099 * infrun.c (prepare_to_proceed, context_switch)
6100 (handle_inferior_event): Likewise.
6101 * linux-fork.c (fork_load_infrun_state): Likewise.
6102 * ocd.c (ocd_start_remote): Likewise.
6103 * remote-e7000.c (e7000_start_remote): Likewise.
6104 * remote-mips.c (device): Likewise.
6105 * thread.c (switch_to_thread): Likewise.
6106 * tracepoint.c (finish_tfind_command): Likewise.
6107 * gdbarch.c: Regenerated.
6109 2007-02-28 Jerome Guitton <guitton@adacore.com>
6110 Joel Brobecker <brobecker@adacore.com>
6112 * gdbtypes.c (check_typedef): Do not replace stub type if
6113 the resolved type is not defined in the same objfile.
6115 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6117 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6119 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6121 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6122 symbol for Ada units when the symbol is defined using 't' rather
6123 than 'Tt' as symbol descriptor.
6125 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6127 * config/mips/tm-nbsd.h: Delete file.
6128 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6129 * config/sh/tm-nbsd.h: Delete file.
6130 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6132 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6134 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6135 unused WRONG_PARAM value since it was recently deleted.
6137 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6139 * varobj.c (varobj_update): Free temporary vectors.
6141 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6143 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6144 * config/powerpc/tm-linux.h: Delete file.
6145 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6146 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6147 (TEXT_SEGMENT_BASE): Do not redefine.
6148 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6149 from config/rs6000/tm-rs6000.h.
6150 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6151 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6152 (TEXT_SEGMENT_BASE): Remove.
6153 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6154 (rs6000_in_solib_return_trampoline): Remove.
6155 (SKIP_TRAMPOLINE_CODE): Remove.
6156 (rs6000_skip_trampoline_code): Remove.
6157 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6158 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6159 (FP0_REGNUM): Remove.
6160 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6161 (rs6000_set_host_arch_hook): Remove.
6162 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6163 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6164 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6165 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6166 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6167 * rs6000-nat.c: Include "rs6000-tdep.h".
6168 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6169 (set_host_arch): Rename to ...
6170 (rs6000_create_inferior): ... this. Make public.
6171 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6172 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6173 (rs6000_create_inferior): Remove.
6174 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6175 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6176 set_gdbarch_in_solib_return_trampoline, and
6177 set_gdbarch_skip_trampoline_code.
6178 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6179 from config/rs6000/tm-rs6000.h.
6181 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6183 * buildsym.c (record_producer): Do nothing if no producer is provided.
6185 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6187 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6188 to check changelist is non-NULL. Call error if the frontend tries
6189 to update a non-root variable.
6191 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6193 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6195 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6196 (dwarf2_frame_sniffer): Update.
6197 (dwarf2_signal_frame_this_id): New function.
6198 (dwarf2_signal_frame_unwind): Use it.
6199 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6200 * frame.c (frame_func_unwind): Add this_type argument.
6201 (get_frame_func): Update.
6202 (frame_unwind_address_in_block): Add this_type argument and check it.
6204 (get_frame_address_in_block): Update.
6205 * frame.h (enum frame_type): Move higher in the file.
6206 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6209 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6210 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6211 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6212 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6213 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6214 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6215 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6216 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6217 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6218 frame_func_unwind and frame_unwind_address_in_block to specify
6219 the frame type. Use frame_unwind_address_in_block instead of
6220 frame_pc_unwind in sniffers.
6222 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6224 * frame.c (deprecated_selected_frame): Rename to...
6225 (selected_frame): ...this. Make static.
6226 (get_selected_frame, select_frame): Update.
6227 * frame.h (deprected_select_frame): Delete.
6228 (deprecated_safe_get_selected_frame): Update comments.
6230 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6231 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6232 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6233 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6234 tui/tui.c: Replace references to deprecated_selected_frame.
6236 2007-02-27 Fred Fish <fnf@specifix.com>
6238 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6239 directly decrement the stack pointer, accumulate their operand into
6240 the stack offset, and mark the function as not being frameless.
6242 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6244 * arch-utils.c (selected_byte_order): New.
6245 * arch-utils.h (selected_byte_order): New prototype.
6246 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6248 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6250 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6251 (default_symfile_offsets): Check VMA here. Update section VMAs.
6253 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6255 * remote.c (init_remote_state): Add special handling for placeholder
6258 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6260 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6261 (filenames_h): New variable.
6262 (clean): Clean up xml-builtin.c and stamp-xml.
6263 (arm-linux-nat.o): Update.
6264 * config/arm/linux.mh (TDEP_XML): Define.
6265 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6266 (arm_linux_has_wmmx_registers): New.
6267 (GET_THREAD_ID): Fix typo.
6268 (IWMMXT_REGS_SIZE): Define.
6269 (fetch_wmmx_regs, store_wmmx_regs): New.
6270 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6271 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6272 (super_xfer_partial, arm_linux_xfer_partial): New.
6273 (_initialize_arm_linux_nat): Use them.
6274 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6275 (xml_builtin_xfer_partial): New function.
6276 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6277 * NEWS: Update mention of iWMMXt support.
6279 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6281 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6282 if there are no FPA registers.
6283 (arm_dwarf_reg_to_regnum): New function.
6284 (arm_register_type, arm_register_name): Return minimal values for
6285 unsupported registers.
6286 (arm_register_sim_regno): Handle iWMMXt registers.
6287 (arm_gdbarch_init): Record missing FPA registers if indicated by
6288 a target description. Recognize iWMMXt registers. Only register
6289 "info float" for FPA. Use ARM_NUM_REGS. Register
6290 arm_dwarf_reg_to_regnum.
6291 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6293 (struct gdbarch_tdep): Add have_fpa_registers.
6294 * features/xscale-iwmmxt.xml: Update capitalization.
6295 * regformats/arm-with-iwmmxt.dat: Regenerated.
6297 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6299 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6301 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6303 * MAINTAINERS (mep): New target.
6305 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6307 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6309 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6310 (mep-tdep.o): New rule.
6311 * configure.tgt (mep-*-*): New target.
6312 * mep-tdep.c: New file.
6313 * config/mep/mep.mt: New file.
6315 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6317 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6318 BREAKPOINT_HIT and STOP_UNKNOWN.
6320 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6322 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6324 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6326 * gdb_expat.h (XMLCALL): Define if not already defined.
6328 2007-02-20 Andreas Schwab <schwab@suse.de>
6330 * Makefile.in (symfile.o): Update dependencies.
6332 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6334 * MAINTAINERS: Disable -Werror for cris simulator. Build
6335 sparc64-solaris2.10 instead of the broken sparc-elf.
6336 * solib-frv.c: Include "solib.h".
6337 * Makefile.in (solib-frv.o): Update.
6338 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6339 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6340 (xtensa_frame_this_id, xtensa_frame_prev_register)
6341 (xtensa_push_dummy_call): Use %p.
6343 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6345 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6346 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6347 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6348 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6349 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6350 (sparc-linux-tdep.o): Update.
6352 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6354 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6355 (xtensa_mask_t): Change mask field to be a separate array.
6356 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6357 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6358 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6359 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6360 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6361 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6362 (mask14, mask15): Rename to
6363 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6364 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6365 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6366 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6367 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6368 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6369 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6370 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6371 (xtensa_submask14, xtensa_submask15): New.
6372 (rmap): Follow strict aliasing rules doing static initialization.
6374 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6376 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6377 handling from here...
6378 (tdesc_register_type): ...to here.
6379 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6380 * features/arm-core.xml: Use code_ptr and data_ptr.
6382 2007-02-13 Denis Pilat <denis.pilat@st.com>
6384 * varobj.h (enum varobj_update_error): New enum.
6385 * varobj.c (struct varobj_root): Add is_valid member.
6386 (varobj_get_type): Check for invalid varobj.
6387 (varobj_get_attributes): Likewise.
6388 (variable_editable):Likewise.
6389 (varobj_update): Likewise. Use varobj_update_error.
6390 (new_root_variable): Set root varobj as valid by default.
6391 (varobj_invalidate): New function.
6392 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6393 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6394 Use varobj_update_error.
6396 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6399 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6400 Pascal language marker.
6401 * dwarf2read.c (set_cu_language): Likewise.
6403 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6405 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6406 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6407 instead of target_terminal_init since inferior_ptid isn't set yet.
6409 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6411 * MAINTAINERS (Write After Approval): Add myself.
6413 2007-02-09 Fred Fish <fnf@specifix.com>
6415 Based on work by Apple Computer, Inc.
6416 * event-top.c (async_request_quit): Call quit() whenever either
6417 quit_flag is set or immediate_quit is set.
6419 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6421 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6422 type to a pointer to const struct block.
6423 (ada_lookup_symbol_list): Don't cast away constness when calling
6424 remove_out_of_scope_renamings.
6426 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6428 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6429 address of 'filename'; it is always non null.
6431 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6433 * exec.c (add_to_section_table): Do not discard empty sections.
6435 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6437 * features/Makefile, features/arm-with-iwmmxt.xml,
6438 features/gdbserver-regs.xsl, features/number-regs.xsl,
6439 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6440 * regformats/arm-with-iwmmxt.dat: Generate.
6441 * NEWS: Mention iWMMXt.
6443 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6445 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6446 (xml-tdesc.o): Update.
6447 * xml-support.c: Add a comment.
6448 (gdb_xml_enums_boolean): New variable.
6449 (gdb_xml_parse_attr_enum): Use strcasecmp.
6450 * xml-support.h (gdb_xml_enums_boolean): Declare.
6451 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6452 next_regnum, and current_union.
6453 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6454 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6455 (field_attributes, union_children, reg_attributes, union_attributes)
6456 (vector_attributes, feature_attributes, feature_children): New.
6457 (target_children): Make static. Add <feature>.
6458 (tdesc_elements): Make static.
6459 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6460 (struct tdesc_feature, tdesc_feature_p): New types.
6461 (struct target_desc): Add features member.
6462 (struct tdesc_arch_data, tdesc_data): New.
6463 (target_find_description): Clarify error message. Warn about
6464 ignored register descriptions.
6465 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6466 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6467 (tdesc_data_cleanup, tdesc_numbered_register)
6468 (tdesc_numbered_register_choices, tdesc_find_register)
6469 (tdesc_register_name, tdesc_register_type)
6470 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6471 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6472 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6473 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6474 (tdesc_create_feature, tdesc_record_type): New.
6475 (free_target_description): Free features.
6476 (_initialize_target_descriptions): Initialize tdesc_data.
6477 * arch-utils.c (default_remote_register_number): New.
6478 * arch-utils.h (default_remote_register_number): New prototype.
6479 * target-descriptions.h (set_tdesc_pseudo_register_name)
6480 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6481 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6482 (tdesc_numbered_register, tdesc_numbered_register_choices)
6483 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6484 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6485 (tdesc_create_reg): Declare.
6486 * gdbarch.sh (remote_register_number): New entry.
6487 * gdbarch.c, gdbarch.h: Regenerate.
6488 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6489 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6491 * arm-tdep.c (arm_register_aliases): New.
6492 (arm_register_name_strings): Rename to...
6493 (arm_register_names): ...this. Make const. Delete the old version.
6494 (current_option, arm_register_byte): Delete.
6495 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6496 (value_of_arm_user_reg): New.
6497 (arm_gdbarch_init): Verify any described registers. Call
6498 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6499 for standard register names.
6500 (_initialize_arm_tdep): Do not adjust arm_register_names.
6501 * user-regs.c (struct user_reg): Add baton member.
6502 (append_user_reg, user_reg_add_builtin, user_regs_init)
6503 (user_reg_add, value_of_user_reg): Use a baton for user
6505 * std-regs.c: Update.
6506 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6507 (user_reg_add): Add baton argument.
6508 * NEWS: Mention target description register support.
6509 * features/arm-core.xml, features/arm-fpa.xml: New.
6510 * eval.c (evaluate_subexp_standard): Allow ptype $register
6511 when the program is not running.
6513 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6515 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6517 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6519 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6520 info->disassembler_options to "any".
6522 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6524 * varobj.c (install_new_value): Only call value_get_print_value
6527 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6529 Reported by timeless@gmail.com:
6530 * gdb/target.c (target_flash_erase): Do not return void value.
6531 (target_flash_done): Likewise.
6532 * gdb/cli/cli-cmds.c (source_command): Likewise.
6534 2007-02-08 Fred Fish <fnf@specifix.com>
6536 Based on work by Apple Computer, Inc.
6537 * event-top.c (handle_sigint): Set quit_flag.
6538 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6539 if quit_flag has already been reset.
6541 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6543 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6546 2007-02-08 Fred Fish <fnf@specifix.com>
6548 * defs.h (request_quit): Remove declaration.
6549 * utils.c (request_quit): Remove definition.
6551 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6552 Jan Kratochvil <jan.kratochvil@redhat.com>
6553 Daniel Jacobowitz <dan@codesourcery.com>
6555 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6556 (skip_prologue): Allow bl->blrl used by PIC code.
6558 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6559 Daniel Jacobowitz <dan@codesourcery.com>
6561 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6562 initialize tmp_obstack.
6563 * p-valprint.c (pascal_object_print_value_fields)
6564 (pascal_object_print_value): Likewise.
6566 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6568 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6570 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6572 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6573 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6575 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6577 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6579 (tdesc_parse_xml): Cache expanded descriptions.
6581 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6583 * Makefile.in (XMLFILES): New.
6584 (COMMON_OBS): Add xml-builtin.o.
6585 (xml-builtin.c, stamp-xml): New rules.
6586 (xml-tdesc.o): Update.
6587 * features/feature_to_c.sh: New file.
6588 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6589 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6590 (gdb_xml_start_element): Initialize scope after possibly reallocating
6591 scopes. Move cleanup later. Handle the XInclude description
6593 (gdb_xml_end_element): Only parse the body if there is a current element.
6594 Call XML_DefaultCurrent if there is no element.
6595 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6596 (struct xinclude_parsing_data, xinclude_start_include)
6597 (xinclude_end_include, xml_xinclude_default)
6598 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6599 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6600 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6601 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6602 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6603 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6604 XInclude directives. Use the compiled in DTD.
6605 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6606 directory name. Do not warn here.
6607 (file_read_description_xml): Update call. Warn here instead. Pass
6609 (fetch_available_features_from_target): New.
6610 (target_read_description_xml): Use it.
6611 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6613 * features/xinclude.dtd: New file.
6615 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6617 * linux-thread-db.c (check_for_thread_db): Return early if we have
6618 no libthread_db support.
6620 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6622 * mi/mi-parse.h: Include <sys/time.h>.
6624 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6626 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6627 instead of print_variable_value to print values.
6629 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6631 * mi/mi-main.c: Numerous formatting changes.
6632 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6633 removed in my previous change.
6635 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6637 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6638 Use 1000000L instead of 1000000.
6640 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6642 Based on work by Apple Computer, Inc.
6644 * configure.ac: Test for sys/resource.h and getrusage.
6645 * configure, config.in: Regenerate.
6647 * mi/mi-main.c: Include <sys/resource.h> if present.
6648 (rusage): Declare if HAVE_GETRUSAGE.
6649 (current_command_ts, do_timings): New static variables.
6650 (timestamp, print_diff_now, print_diff, timeval_diff):
6651 New static timing functions.
6652 (mi_cmd_enable_timings): New function for new MI command.
6653 (captured_mi_execute_command, mi_execute_async_cli_command):
6654 Call timing functions.
6656 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6659 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6661 * mi/mi-parse.h: (mi_timestamp): New structure.
6662 (mi_parse): Add mi_timestamp* member.
6664 2007-02-02 Denis Pilat <denis.pilat@st.com>
6666 * thread.c (make_cleanup_restore_current_thread): New function.
6667 (info_threads_command): Use of make_cleanup_restore_current_thread
6668 to restore the current thread and the selected frame.
6669 (restore_selected_frame): New function.
6670 (struct current_thread_cleanup): Add frame_id field.
6671 (do_restore_current_thread_cleanup): Add restoring of the selected
6673 (make_cleanup_restore_current_thread): Likewise.
6674 (thread_apply_all_command): backup the selected frame while
6675 entering the function and restore it at exit.
6676 (thread_apply_command): Likewise.
6678 2007-02-02 Denis Pilat <denis.pilat@st.com>
6680 * MAINTAINERS (Write After Approval): Add myself to the list.
6682 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6684 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6685 (m32r_store_register): Ditto.
6687 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6689 * ser-mingw.c (pipe_windows_open)
6690 (pipe_windows_read, pipe_windows_write): Declare
6691 variables at the top of the function.
6693 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6695 * doublest.c (floatformat_from_length): Use the right element from
6696 gdbarch floatformats.
6697 (floatformat_from_type, extract_typed_floating)
6698 (store_typed_floating): Likewise.
6699 * doublest.h: Remove declarations for undefined floatformat arrays.
6700 * gdbarch.sh (float_format, double_format, long_double_format): Change
6702 (pformat): Update for pairs.
6703 * gdbarch.c, gdbarch.h: Regenerated.
6704 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6705 (floatformats_ieee_double_littlebyte_bigword)
6706 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6707 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6708 (floatformats_vax_d): New variables.
6709 (builtin_type_ieee_single, builtin_type_ieee_double)
6710 (builtin_type_arm_ext, builtin_type_ia64_spill)
6711 (builtin_type_ia64_quad): Replace arrays with individual types.
6712 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6713 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6714 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6715 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6716 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6717 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6718 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6719 unused and endian-specific types.
6720 (recursive_dump_type): Update for floatformat pairs.
6721 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6722 (build_gdbtypes): Use build_flt.
6723 (_initialize_gdbtypes): Update set of initialized types.
6724 * gdbtypes.h: Update declarations to match gdbtypes.c.
6725 (struct main_type): Store a pointer to two floatformats.
6726 * arch-utils.c (default_float_format, default_double_format): Delete.
6727 * arch-utils.h (default_float_format, default_double_format): Delete.
6729 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6730 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6731 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6732 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6733 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6735 2007-01-29 Joel Brobecker <brobecker@adacore.com>
6737 * target.c (maintenance_print_target_stack): New function.
6738 (initialize_targets): Add new "maintenance print target-stack"
6741 2007-01-28 Mark Kettenis <kettenis@gnu.org>
6743 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6745 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6747 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6748 (struct dwarf2_loclist_baton): Likewise.
6750 2007-01-27 Eli Zaretskii <eliz@gnu.org>
6752 * cli/cli-script.c: Include breakpoint.h.
6753 (build_command_line): Require arguments only for if and while
6755 (get_command_line, execute_user_command, execute_control_command):
6756 Fix wording of warning messages.
6757 (print_command_lines): Print breakpoint commands.
6758 (execute_control_command): Call commands_from_control_command to
6759 handle the `commands' command inside a body of a flow-control
6761 (read_next_line): Recognize the `commands' command and build a
6762 command line structure for it.
6763 (recurse_read_control_structure, read_command_lines): Handle
6764 `commands' similarly to `if' and `while'.
6766 * breakpoint.c (get_number_trailer): Document the special meaning
6767 of NULL as the first argument PP.
6768 (commands_from_control_command): New function.
6770 * breakpoint.h (commands_from_control_command): Add prototype.
6772 * defs.h (commands_control): New enumerated value for enum
6773 command_control_type.
6775 2007-01-26 Joel Brobecker <brobecker@adacore.com>
6777 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6778 (ada_exception_sal): Update accordingly.
6780 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6782 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6783 * NEWS: Describe CHAR array vs. string identifcation rules.
6785 2007-01-25 Paul Brook <paul@codesourcery.com>
6787 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6789 2007-01-24 Jim Blandy <jimb@codesourcery.com>
6791 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6792 expression is empty, bother to return the 'optimized out' value we
6793 construct. (Thanks to Carl Burch.)
6795 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6797 * varobj.c (c_value_of_root, c_value_of_child)
6798 (cplus_describe_child): Don't call release_value.
6800 2007-01-24 Thiemo Seufer <ths@mips.com>
6802 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6805 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6807 Refactor getting children name, value and type access
6809 * varobj.c (get_type_deref): Remove.
6810 (adjust_value_for_child_access): New.
6811 (c_number_of_children): Use the above.
6812 (c_describe_child): Likewise.
6813 (enum accessibility): New.
6814 (match_accessibility): New function.
6815 (cplus_describe_child): New function.
6816 (cplus_name_of_child, cplus_value_of_child)
6817 (cplus_type_of_child): Reimplement in terms
6818 of cplus_describe_child.
6819 (cplus_number_of_children): Use
6820 adjust_value_for_child_access.
6822 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6824 Fix computation of the 'editable' attribute and
6825 value changeability for for references.
6826 * varobj.c (get_value_type): New function.
6827 (c_variable_editable): Use get_value_type.
6828 (varobj_value_is_changeable): Likewise.
6830 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6832 * source.c (find_and_open_source): Try rewriting the source
6833 path inside filename if dirname is NULL.
6835 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6837 * dwarf2read.c (add_partial_symbol): Create an extra partial
6838 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6839 (new_symbol): Likewise for symbols.
6841 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
6843 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6845 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
6847 * value.c (value_primitive_field): Copy the full 'location'
6848 contents, instead of assuming that copying ADDRESS will
6849 bring over everything in the union. Remove obsolete comment.
6851 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
6853 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6854 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6855 (m32c_m16c_pointer_to_address): Separate code from declarations.
6857 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
6859 * target.c (update_current_target): Correct typo.
6861 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
6863 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6866 2007-01-11 Andrew Cagney <cagney@redhat.com>
6867 Daniel Jacobowitz <dan@codesourcery.com>
6868 Jan Kratochvil <jan.kratochvil@redhat.com>
6870 * dwarf2-frame.c (execute_cfa_program): New support of
6871 `DW_CFA_GNU_negative_offset_extended'.
6873 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6875 * NEWS: Mention flash support for "load" and new remote packets.
6877 2007-01-21 Markus Deuling <deuling@de.ibm.com>
6879 * breakpoint.c (delete_command): Skip redundant loop iterations.
6881 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6883 * gdbarch.sh (register_type): Update comment.
6884 * gdbarch.h: Regenerated.
6885 * arch-utils.c (generic_register_size): Call register_type.
6886 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6887 * m32c-tdep.c (check_for_saved): Likewise.
6888 * mips-tdep.c (mips_print_register, print_gp_register_row)
6889 (mips_print_registers_info): Likewise.
6890 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6892 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6893 (sh64_do_register, sh64_print_register)
6894 (sh64_media_print_registers_info): Likewise.
6895 * tui/tui-regs.c (tui_register_format): Likewise.
6897 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6899 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6901 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6902 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6903 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6904 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6905 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6906 (make_symbol_completion_list): Likewise.
6908 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6909 Daniel Jacobowitz <dan@codesourcery.com>
6911 * buildsym.c (end_symtab): Use preallocated symtab if available.
6912 Fill in SYMBOL_SYMTAB.
6913 * buildsym.h (struct subfile): Add symtab member.
6914 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6915 (struct file_entry): Add symtab.
6916 (free_cu_line_header): New function.
6917 (read_file_scope): Use it. Save line_header in the cu. Process
6919 (add_file_name): Initialize new symtab member.
6920 (dwarf_decode_lines): Create symtabs for included files.
6921 (new_symbol): Set SYMBOL_SYMTAB.
6922 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6923 (search_symbols): Likewise.
6924 * symtab.h (struct symbol): Add symtab member.
6925 (SYMBOL_SYMTAB): Define.
6927 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6929 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6931 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6933 * arch-utils.c (show_endian): Correct reversed condition.
6935 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6937 * MAINTAINERS (Write After Approval): Add myself.
6939 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
6940 Vladimir Prus <vladimir@codesourcery.com>
6942 Fix 'selected frame' varobjs.
6943 * varobj.c (struct varobj): Remove the error field.
6944 (varobj_set_value): Don't check var->error.
6945 (install_new_value): Don't set var->error.
6946 (varobj_update): Always pass the new value
6947 of the root via install_new_value.
6948 (create_child): Don't set error field.
6949 (new_variable): Likewise.
6950 (c_value_of_root): Always reevaluate the value
6951 of selected frame varobjs in the selected frame.
6952 Don't call reinit_frame_cache.
6954 2007-01-15 Joel Brobecker <brobecker@adacore.com>
6956 * source.c (_initialize_source): Improve the help text of
6957 the substitute-path commands.
6959 2007-01-14 Mark Kettenis <kettenis@gnu.org>
6961 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
6962 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
6963 (frv_skip_prologue): Remove prototypes.
6964 (frv_adjust_breakpoint_address): Renamed from
6965 frv_gdbarch_adjust_breakpoint_address.
6966 (frv_gdbarch_init): Adjust.
6968 2007-01-13 Mark Kettenis <kettenis@gnu.org>
6970 * gdbarch.sh (deprecated_extract_return_value)
6971 (deprecated_store_return_value): Remove.
6972 (extract_return_value, store_return_value): Remove default values.
6973 * gdbarch.c, gdbarch.h: Regenerate.
6974 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
6975 (legacy_store_return_value): Remove.
6976 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
6979 * mi/mi-main.c: Remove obsolete comment.
6981 * regcache.c, regcache.h (deprecated_register_bytes)
6982 (deprecated_read_register_bytes)
6983 (deprecated_write_register_bytes): Remove.
6985 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
6986 Don't forget to move destination pointer.
6988 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6990 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
6992 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
6994 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
6995 past entry function with recent newlib.
6997 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
6999 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7000 introduction. Specify -var-update more exactly.
7002 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7004 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7006 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7008 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7009 the Global Maintainers' invitation to be a global maintainer.
7011 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7013 * infrun.c (singlestep_pc): New variable.
7014 (resume): Set singlestep_pc.
7015 (context_switch): Add a debugging message. Flush the frame cache.
7016 (handle_inferior_event): Add debugging messages. Handle thread
7017 hops when a software single step has completed. Let context_switch
7018 handle flushing the frame cache.
7020 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7022 * NEWS: Mention target descriptions, "set tdesc filename",
7023 "unset tdesc filename", "show tdesc filename", and
7024 qXfer:features:read.
7025 * arch-utils.c (choose_architecture_for_target): New function.
7026 (gdbarch_info_fill): Call it.
7027 * target-descriptions.c (struct property): Make members non-const.
7028 (struct target_desc): Add arch member.
7029 (target_description_filename): New variable.
7030 (target_find_description): Try via XML first.
7031 (tdesc_architecture): New.
7032 (free_target_description, make_cleanup_free_target_description): New.
7033 (set_tdesc_property): Call xstrdup.
7034 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7035 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7036 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7037 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7038 * target-descriptions.h (tdesc_architecture)
7039 (make_cleanup_free_target_description, set_tdesc_architecture): New
7041 * Makefile.in (SFILES): Add xml-tdesc.c.
7042 (COMMON_OBS): Add xml-tdesc.o.
7043 (target-descriptions.o): Update.
7044 (xml-tdesc.o): New rule.
7045 * xml-tdesc.c, xml-tdesc.h: New files.
7046 * remote.c (PACKET_qXfer_features): New enum.
7047 (remote_protocol_features): Add qXfer:features:read.
7048 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7049 (_initialize_remote): Register qXfer:features:read.
7050 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7051 * features/gdb-target.dtd: New file.
7053 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7055 * copyright.sh: Clarify error.
7057 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7059 * symtab.c (matching_bfd_sections): Fix VMA matching for
7062 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7064 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7067 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7069 Updated copyright notices for most files.
7071 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7073 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7075 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7077 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7079 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7081 * configure, config.in: Regenerate.
7082 * defs.h (debug_file_directory): Declare.
7083 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7084 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7085 relocate it if DEBUGDIR_RELOCATABLE.
7086 * symfile.c (debug_file_directory): Make non-static.
7087 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7088 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7089 (_initialize_symfile): Don't initialize debug_file_directory here.
7091 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7093 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7096 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7098 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7099 frame_unwind_register to recurse.
7100 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7101 (alpha_heuristic_frame_prev_register): Likewise.
7102 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7103 * m32c-tdep.c (m32c_prev_register): Likewise.
7104 * frame.c (frame_register_unwind_location): Remove FIXME.
7106 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7107 Eli Zaretskii <eliz@gnu.org>
7109 * copyright.sh: New file.
7111 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7113 * configure.ac: Check for XML_StopParser.
7114 * xml-support.c (gdb_xml_body_text): Check for an error.
7115 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7116 (gdb_xml_end_element_wrapper): Likewise.
7117 * config.in, configure: Regenerated.
7119 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7121 * varobj.c (install_new_value): Always update print_value.
7122 (value_get_print_value): Immediately return NULL for missing
7125 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7127 * configure.ac: Tighten pattern for extracting value of
7128 DEPRECATED_TM_FILE from the target makefile fragment.
7129 * configure: Regenerated.
7131 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7133 * linux-nat.c (struct simple_pid_list): Add status.
7134 (add_to_pid_list): Record the PID's status.
7135 (linux_record_stopped_pid): Likewise. Make static.
7136 (pull_pid_from_list): Return the saved status.
7137 (linux_nat_handle_extended): Deleted.
7138 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7139 Make static. Handle non-SIGSTOP for a new thread's first signal.
7140 (flush_callback): Handle unexpected pending signals.
7141 (linux_nat_wait): Update calls to changed functions.
7142 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7143 Remove prototypes for newly static functions.
7145 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7147 * gdbarch.sh (value_from_register): New gdbarch function.
7148 * gdbarch.c, gdbarch.h: Regenerate.
7149 * findvar.c (default_value_from_register): New function.
7150 (value_from_register): Use gdbarch_value_from_register.
7151 * value.h (default_value_from_register): Declare.
7152 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7153 spu_value_to_register): Remove.
7154 (spu_value_from_register): New function.
7155 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7156 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7157 Call set_gdbarch_value_from_register.
7158 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7159 s390_value_to_register): Remove.
7160 (s390_value_from_register): New function.
7161 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7162 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7163 Call set_gdbarch_value_from_register.
7165 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7167 * NEWS: Add "set sysroot" and "show sysroot".
7168 * solib.c (solib_absolute_prefix): Delete. Replace
7169 all uses with gdb_sysroot.
7170 (_initialize_solib): Add "set sysroot" and "show sysroot".
7171 Make "solib-absolute-prefix" an alias to it.
7173 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7175 * frame.c (get_frame_register_bytes): New function.
7176 (put_frame_register_bytes): Likewise.
7177 * frame.h (get_frame_register_bytes): Declare.
7178 (put_frame_register_bytes): Likewise.
7179 * findvar.c (value_from_register): Always construct lval_register
7180 values. Use get_frame_register_bytes.
7181 * valops.c (value_assign): Use get_frame_register_bytes and
7182 put_frame_register_bytes.
7184 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7186 * MAINTAINERS: Update Stan Shebs' email address.
7188 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7190 * ada-lang.c (is_known_support_routine): Improve the implementation.
7192 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7194 * ada-lang.c: Add include of source.h.
7195 (is_known_support_routine): Improve the check verifying that the file
7196 associated to this frame exists.
7197 * Makefile.in (ada-lang.o): Add dependency on source.h.
7199 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7201 * ax-general.c (ax_const_l): Select proper opcode for the given
7204 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7206 * varobj.c (c_value_of_root): Don't select frame if variable
7207 object is out of scope.
7209 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7211 * varobj.c (struct varobj): New member print_value.
7212 (install_new_value): Compare last printed value with current one
7213 instead of contents.
7214 (new_variable): Initialize var->print_value to NULL.
7215 (free_variable): Free var->print_value.
7216 (value_get_print_value): New function derived from
7217 c_value_of_variable.
7218 (c_value_of_variable): Use value_get_print_value.
7220 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7222 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7224 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7226 * NEWS: Add entries for new catch commands.
7228 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7230 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7231 (add_partial_symbol): Correct identification of external references.
7232 (process_structure_scope): Likewise.
7233 (read_partial_die): Handle DW_AT_byte_size attribute.
7235 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7237 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7239 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7241 * varobj.c (get_type_deref): Fix variable objects for references to
7244 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7246 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7249 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7251 * memory-map.c (struct_memory_map_parsing_data): Remove most
7252 members. Make property_name an array.
7253 (free_memory_map_parsing_data, memory_map_start_element)
7254 (memory_map_end_element, memory_map_character_data): Delete.
7255 (memory_map_start_memory, memory_map_end_memory)
7256 (memory_map_start_property, memory_map_end_property): New functions.
7257 (property_attributes, memory_children, memory_type_enum)
7258 (memory_attributes, memory_map_children, memory_map_elements): New.
7259 (parse_memory_map): Rewrite.
7260 * xml-support.c (debug_xml): New.
7261 (xml_get_required_attribute, xml_get_integer_attribute)
7262 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7264 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7265 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7266 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7267 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7268 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7269 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7270 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7272 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7273 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7274 (enum gdb_xml_element_flag, struct gdb_xml_element)
7275 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7276 (struct gdb_xml_enum): New.
7277 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7278 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7279 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7280 (xml_get_required_attribute, xml_get_integer_attribute)
7281 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7282 * Makefile.in (xml_support_h, xml-support.o): Update.
7284 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7286 * Makefile.in (eval.o): Update dependencies.
7287 * eval.c: Include "ui-out.h" and "exceptions.h".
7288 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7289 Use value_zero if an error occurs when avoiding side effects.
7290 * varobj.c (c_value_of_root): Initialize new_val.
7292 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7294 * varobj.c (varobj_list_children): Stop if the number of children is
7296 (c_number_of_children):
7298 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7300 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7301 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7302 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7303 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7304 sizeof, instead of hardcoded constants.
7306 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7308 * CONTRIBUTE: Use sourceware.org.
7310 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7312 * buildsym.c (start_subfile): Handle producer.
7313 (record_producer): New function.
7314 * buildsym.h (struct subfile): Include producer.
7315 (record_producer): New prototype.
7316 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7317 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7318 armcc_cfa_offsets_reversed.
7319 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7320 (dwarf2_frame_find_quirks): New function.
7321 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7322 (decode_frame_entry_1): Record the CIE version. Record the
7323 augmentation. Skip armcc augmentations.
7324 * dwarf2read.c (read_file_scope): Save the producer.
7325 * symtab.h (struct symtab): Rename unused version member to
7328 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7330 * configure.ac (build_warnings): Use -Wall and
7331 -Wdeclaration-after-statement.
7332 * configure: Regenerated.
7334 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7336 Simplify access to variours properties of child
7337 variable objects in C.
7338 * varobj.c (value_struct_element_index): New function.
7339 (c_describe_child): New function.
7340 (c_name_of_child, c_value_of_child)
7341 (c_type_of_child): Rewrite to use c_describe_child.
7343 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7346 * varobj.c: Include "vec.h".
7347 (varobj_p): New typedef, declare vector of those.
7348 (struct varobj): Use vector for the 'children' member.
7349 (child_exists): Remove.
7350 (save_child_in_parent): Remove.
7351 (remove_child_from_parent): Remove.
7352 (struct varobj_child): Remove.
7353 (struct vstack): Remove.
7354 (vpush, vpop): Remove.
7355 (varobj_list_children): Adjust to work work vector.
7356 (varobj_update): Likewise. Use vectors for
7357 working stack and result.
7358 (delete_variable_1): Likewise.
7359 * Makefile.in (varobj.o): Update dependencies.
7361 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7363 Port from Apple's version.
7365 * varobj.c (type_changeable): Rename to...
7366 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7367 (is_root_p): New function. Use it everywhere.
7369 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7371 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7374 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7376 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7378 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7380 * hpread.c (hpread_type_lookup): Fix compilation failure.
7382 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7384 * NEWS: New port to S+core.
7385 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7388 * Makefile.in: Add dependencies for S+core files.
7389 * configure.tgt (score*, score-*-*): Add S+core target.
7390 * config/score/embed.mt: New file.
7391 * score-tdep.c: New file.
7392 * score-tdep.h: New file.
7394 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7396 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7397 the appropriate type rather than a bogus void type.
7399 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7401 * ada-lang.h (ada_find_printable_frame): Remove.
7402 (ada_exception_catchpoint_p, ada_decode_exception_location)
7403 (ada_decode_assert_location): Add declaration.
7404 * ada-lang.c: Add include of annotate.h and valprint.h.
7405 (exception_catchpoint_kind): New enum.
7406 (function_name_from_pc, is_known_support_routine)
7407 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7408 (ada_exception_name_addr_1, ada_exception_name_addr)
7409 (print_it_exception, print_one_exception, print_mention_exception)
7410 (print_it_catch_exception, print_one_catch_exception)
7411 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7412 (print_it_catch_exception_unhandled)
7413 (print_one_catch_exception_unhandled)
7414 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7415 (print_one_catch_assert, print_mention_catch_assert)
7416 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7417 (ada_get_next_arg, catch_ada_exception_command_split)
7418 (ada_exception_sym_name, ada_exception_sym_name)
7419 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7420 (ada_parse_catchpoint_condition, ada_exception_sal)
7421 (ada_decode_exception_location)
7422 (ada_decode_assert_location): New function.
7423 (catch_exception_unhandled_breakpoint_ops): New global variable.
7424 (catch_assert_breakpoint_ops): New global variable.
7425 * breakpoint.c: Add include of ada-lang.h.
7426 (print_one_breakpoint): Do not print the condition for Ada
7427 exception catchpoints.
7428 (create_ada_exception_breakpoint): New function.
7429 (catch_ada_exception_command, catch_assert_command): New function.
7430 (catch_command_1): Add support for the new "catch exception" and
7431 "catch assert" commands.
7432 (_initialize_breakpoint): Add help description for the new catch
7434 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7436 (breakpoint.o): Add dependency on ada-lang.h.
7438 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7440 * coffread.c (cs_to_section): If bfd_section is found, always
7441 return its section index.
7442 (coff_symtab_read): Determine the minimal_symbol_type using the
7445 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7446 Daniel Jacobowitz <dan@codesourcery.com>
7448 * Makefile.in (top.o): Update.
7449 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7450 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7451 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7453 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7455 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7457 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7458 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7460 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7462 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7463 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7464 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7465 greater than or equal to zero.
7466 * m2-typeprint.c (m2_array): Likewise.
7467 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7468 * gdbtypes.c (copy_type_recursive): Correct == typo.
7469 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7470 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7472 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7473 (default_macro_scope): Remove unused variable.
7474 * prologue-value.h (pv_area_find_reg): Don't name an argument
7476 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7477 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7479 (cleanup_sigint_signal_handler): Remove casts.
7480 * valprint.c (val_print): Use a volatile local for the modified
7482 * varobj.c (languages): Remove extra array dimension.
7483 (varobj_create): Correct access to languages array.
7484 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7486 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7487 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7488 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7489 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7490 (mi_cmd_data_write_memory): Likewise.
7491 * signals/signals.c (target_signal_to_string): Cast to int before
7493 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7496 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7498 * NEWS: Mention pointer to member improvements.
7499 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7500 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7501 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7502 * c-typeprint.c (c_print_type): Update for new type codes.
7503 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7504 (c_type_print_base): Likewise.
7505 (c_type_print_args): Rewrite.
7506 * c-valprint.c (c_val_print): Update for new type codes. Remove
7507 support for references to members. Treat methods like functions.
7508 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7509 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7510 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7511 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7512 (struct cp_abi_ops): Add corresponding members.
7513 * cp-valprint.c (cp_print_class_method): Delete.
7514 (cp_find_class_member): New function.
7515 (cp_print_class_member): Use it. Simplify support for bogus
7517 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7518 lookup_methodptr_type.
7519 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7520 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7521 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7523 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7524 references returned by user defined operators.
7525 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7526 (f_type_print_varspec_suffix): Remove support for member pointers.
7527 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7529 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7530 (lookup_methodptr_type): New.
7531 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7532 (recursive_dump_type): Update for new types.
7533 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7534 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7535 (lookup_memberptr_type, lookup_methodptr_type)
7536 (smash_to_memberptr_type): New prototypes.
7537 (smash_to_method_type): Formatting fix.
7538 (lookup_member_type, smash_to_member_type): Delete prototypes.
7539 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7540 Do not rely on debug information for the vptr or the method's
7541 enclosing type. Handle function descriptors for IA64.
7542 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7543 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7544 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7545 (gnuv3_method_ptr_to_value): New.
7546 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7547 * hpread.c (hpread_type_lookup): Update for new types.
7548 * infcall.c (value_arg_coerce): Likewise.
7549 * m2-typeprint.c (m2_print_type): Remove explicit support
7550 for member pointers.
7551 * m2-valprint.c (m2_val_print): Likewise.
7552 * p-typeprint.c (pascal_type_print_varspec_prefix)
7553 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7554 * p-valprint.c (pascal_val_print): Likewise.
7555 (pascal_object_print_class_method, pascal_object_print_class_member):
7557 * p-lang.h (pascal_object_print_class_method)
7558 (pascal_object_print_class_member): Delete prototypes.
7559 * stabsread.c (read_type): Update for new types.
7560 * typeprint.c (print_type_scalar): Likewise.
7561 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7562 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7563 argument. Construct a pointer to member if the address of a
7564 function or data member is requested.
7565 (value_cast_pointers): Don't modify the input value.
7566 (value_cast): Adjust pointer to member handling for new types.
7567 Allow null pointer to member constants. Don't modify the input
7569 (value_ind): Remove pointer to member check. Handle function
7570 descriptors for function pointers.
7571 (value_struct_elt, value_find_oload_method_list, check_field):
7572 Remove pointer to member checks.
7573 * value.c (unpack_long): Allow pointers to data members.
7574 (value_from_longest): Allow member pointers.
7575 * value.h (value_aggregate_elt): Add want_address.
7576 * varobj.c (c_variable_editable): Remove check for members.
7577 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7578 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7580 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7581 * c-lang.h (cp_print_class_method): Delete prototype.
7582 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7583 * mips-tdep.c (mips_gdbarch_init): Likewise.
7584 * gdbarch.c, gdbarch.h: Regenerated.
7586 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7588 * rs6000-tdep.c (rs6000_use_struct_convention)
7589 (rs6000_extract_return_value, rs6000_store_return_value)
7590 (rs6000_extract_struct_value_address): Remove.
7591 (rs6000_return_value): New function.
7592 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7593 store_return_value, deprecated_extract_struct_value_address and
7594 deprecated_use_struct_convention. Use rs6000_return_value
7597 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7599 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7600 -display-disable, -display-enable, -display-insert and
7603 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7605 * breakpoint.c (remove_breakpoint): Remove dead code.
7607 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7609 * varobj.c: Include block.h.
7610 (c_value_of_root): Check scope within nested statements.
7612 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7614 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7615 regcache_cooked_write_signed instead of
7616 deprecated_write_register_bytes.
7618 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7620 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7622 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7624 Followed the Start of New Year Procedure:
7625 * ChangeLog-2006: New file, containing all the entries for 2006.
7626 * ChangeLog: Removed all 2006 entries, and changed the reference
7627 to the previous ChangeLog to point to ChangeLog 2006.
7628 * top.c (print_gdb_version): Update copyright year.
7630 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7632 * Makefile.in (remote-sds.o): Remove.
7633 * remote-sds.c: Delete.
7635 For older changes see ChangeLog-2006.
7641 version-control: never