1 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
3 * stabsread.c (read_huge_number): Initialize local variable to 0.
5 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
7 * p-lang.h (pascal_main_name): Add declaration.
8 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
9 (GPC_MAIN_PROGRAM_NAME_2): New constants.
10 (pascal_main_name): New function.
11 * symtab.c: Include p-lang.h.
12 (find_main_name): Add call to pascal_main_name.
13 * Makefile.in (symtab.o): Add dependency on p-lang.h.
15 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
17 * stabsread.c (read_huge_number): Fix handling of octal
18 representation when the bit width is known.
19 (read_range_type): Record unsigned integral types with their size,
20 when the type size is known.
22 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
24 * MAINTAINERS (Write After Approval): Add self.
26 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
28 * breakpoint.c (print_one_breakpoint_location): ARI fix:
29 Replace asprintf by xstrprintf.
31 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
33 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
34 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
36 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
38 * linux-fork.c: Move "gdb_wait.h" include back to the position of
39 <sys/wait.h> include before last commit.
41 2007-10-08 Maciej W. Rozycki <macro@mips.com>
43 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
45 2007-10-08 Markus Deuling <deuling@de.ibm.com>
47 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
48 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
49 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
50 (store_regs_user_thread, store_regs_kernel_thread): Use
51 get_regcache_arch or get_frame_arch to get at the current architecture
52 by regcache or by frame, respectively.
54 2007-10-08 Markus Deuling <deuling@de.ibm.com>
56 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
57 (sh64_pseudo_register_read, sh64_pseudo_register_write)
58 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
59 (sh64_print_register, sh64_media_print_registers_info)
60 (sh64_compact_print_registers_info, sh64_unwind_sp)
61 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
62 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
63 (sh64_frame_prev_register): Use FRAME to recognize current
66 2007-10-08 Markus Deuling <deuling@de.ibm.com>
68 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
69 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
70 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
71 current_gdbarch by gdbarch.
72 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
73 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
74 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
75 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
76 recognize current architecture.
78 2007-10-08 Markus Deuling <deuling@de.ibm.com>
80 * remote.c (init_remote_state, fetch_register_using_p)
81 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
82 (store_register_using_P, store_registers_using_G)
83 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
84 get at the current architecture by regcache or by frame, respectively.
86 2007-10-08 Markus Deuling <deuling@de.ibm.com>
88 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
89 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
90 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
91 get_regcache_arch or get_frame_arch to get at the current architecture
92 by regcache or by frame, respectively.
93 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
94 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
95 (store_register, old_store_inferior_registers, supply_gregset)
96 (supply_fpregset, fill_fpregset): Likewise.
97 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
98 Replace current_gdbarch by gdbarch.
100 2007-10-08 Markus Deuling <deuling@de.ibm.com>
102 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
103 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
104 get_frame_arch to get at the current architecture by regcache or by
107 2007-10-08 Markus Deuling <deuling@de.ibm.com>
109 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
110 Replace current_gdbarch by gdbarch.
111 * ia64-tdep.c (ia64_frame_prev_register
112 (ia64_sigtramp_frame_prev_register)
113 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
114 get_frame_arch to get at the current architecture by regcache or by
116 * ia64-linux-nat.c (ia64_linux_fetch_register)
117 (ia64_linux_fetch_registers, ia64_linux_store_register)
118 (ia64_linux_store_registers): Likewise.
120 2007-10-08 Markus Deuling <deuling@de.ibm.com>
122 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
123 current_gdbarch by gdbarch.
124 * hppa-linux-nat.c (fetch_register, store_register)
125 (hppa_linux_fetch_inferior_registers)
126 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
127 get_frame_arch to get at the current architecture by regcache or by
129 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
130 (hppa_hpux_unwind_adjust_stub): Likewise.
131 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
132 (hppa_hpux_fetch_inferior_registers)
133 (hppa_hpux_store_inferior_registers): Likewise.
135 2007-10-08 Markus Deuling <deuling@de.ibm.com>
137 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
138 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
139 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
140 or get_frame_arch to get at the current architecture by regcache or by
142 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
143 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
144 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
145 current_gdbarch by gdbarch.
147 2007-10-08 Markus Deuling <deuling@de.ibm.com>
149 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
150 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
151 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
152 get at the current architecture by regcache or by·frame, respectively.
153 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
156 2007-10-08 Markus Deuling <deuling@de.ibm.com>
158 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
159 Use get_regcache_arch or get_frame_arch to get at the current
160 architecture by regcache or by frame, respectively.
161 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
162 * amd64-nat.c (amd64_supply_native_gregset)
163 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
165 2007-10-08 Markus Deuling <deuling@de.ibm.com>
167 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
169 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
170 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
171 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
172 get_frame_arch to get at the current architecture by regcache or by
174 * alpha-nat.c (fetch_osf_core_registers): Likewise.
176 2007-10-08 Markus Deuling <deuling@de.ibm.com>
178 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
179 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
180 current_gdbarch by gdbarch.
181 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
183 2007-10-08 Markus Deuling <deuling@de.ibm.com>
185 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
186 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
187 * regcache.c (regcache_raw_write): Use get_regcache_arch or
188 get_frame_arch to get at the current architecture by regcache or by
191 2007-10-08 Markus Deuling <deuling@de.ibm.com>
193 * findvar.c (value_of_register, locate_var_value): Use
194 get_regcache_arch or get_frame_arch to get at the current architecture
195 by regcache or by frame, respectively.
196 * findvar.c (default_value_from_register, value_from_register): Replace
197 current_gdbarch by gdbarch.
199 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
201 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
203 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
205 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
206 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
208 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
210 * remote.c (get_offsets): Only call free_symfile_segment_data if
213 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
215 * objc-exp.y: ARI fix: remove 4 PARAMS.
217 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
219 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
220 news. Mention XML support for M68K in GDB 6.7.
222 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
224 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
226 (init_vector_type): Use builtin_type_int32.
228 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
230 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
231 size to enable bi-arch generate-core-file support.
233 2007-10-02 Markus Deuling <deuling@de.ibm.com>
235 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
237 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
239 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
241 * tui/tui-win.c (tui_initialize_win): New function for
242 initializing tui's SIGWINCH signal handler.
243 * tui/tui-win.h (tui_initialize_win): Declare.
245 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
247 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
248 pointer to uintptr_t before casting to CORE_ADDR.
250 2007-10-02 Markus Deuling <deuling@de.ibm.com>
252 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
254 2007-10-02 Mark Mitchell <mark@codesourcery.com>
256 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
257 * ser-mingw.c (enum select_thread_state): New type.
258 (struct ser_console_state): Add have_started and thread_state.
259 (select_thread_wait): New function.
260 (thread_fn_type): New type.
261 (create_select_thread): New function.
262 (destroy_select_thread): Likewise.
263 (start_select_thread): Likewise.
264 (stop_select_thread): Likewise.
265 (console_select_thread): Use new functions.
266 (pipe_select_thread): Likewise.
267 (file_select_thread): Likewise.
268 (ser_console_wait_handle): Likewise.
269 (ser_console_done_wait_handle): Likewise.
270 (ser_console_close): Likewise.
271 (free_pipe_state): Likewise.
272 (pipe_wait_handle): Likewise.
273 (pipe_done_wait_handle): Likewise.
274 (struct net_windows_state): Derive from ser_console_state.
275 (net_windows_select_thread): Use new functions.
276 (net_windows_wait_handle): Likewise.
277 (net_windows_done_wait_handle): Likewise.
278 (net_windows_close): Likewise.
280 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
282 * inflow.c (terminal_ours_1): Remove useless line.
284 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
286 * mips-tdep.c (mips_read_fp_register_double): Correct check for
288 (mips_print_fp_register): Correct check for even FP registers.
289 (mips_virtual_frame_pointer): New function.
290 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
292 2007-09-30 Mike Frysinger <vapier@gentoo.org>
294 * value.h (lookup_only_internalvar): New prototype.
295 (create_internalvar): Likewise.
296 * value.c (lookup_only_internalvar): New function.
297 (create_internalvar): Likewise.
298 (lookup_internalvar): Use new lookup_only_internalvar and
299 create_internalvar functions.
300 * parse.c (write_dollar_variable): Look up $ symbols in internal
301 table first rather than last.
303 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
305 * linux-nat.c (linux_nat_new_thread): New variable.
306 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
307 linux_nat_switch_fork.
308 (lwp_list): Make public.
309 (add_lwp): Call linux_nat_new_thread.
310 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
312 (resume_callback): Clear lp->siginfo. Remove unused variable.
313 (linux_nat_resume): Assert that the LWP list is already initialized.
316 (stop_wait_callback, linux_nat_wait): Call it.
317 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
318 * linux-nat.h (struct lwp_info): Add siginfo.
319 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
322 * amd64-linux-nat.c (amd64_linux_dr): New.
323 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
324 (amd64_linux_dr_set): Take a PTID argument.
325 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
326 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
327 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
328 (amd64_linux_new_thread): New.
329 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
330 * i386-linux-nat.c (i386_linux_dr): New.
331 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
332 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
333 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
334 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
335 (i386_linux_new_thread): New.
336 (i386_linux_resume): Remove unnecessary PID check.
337 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
338 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
339 (fetch_debug_register, fetch_debug_register_pair): Delete.
340 (debug_registers): New.
341 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
342 ALL_LWPS and debug_registers.
343 (ia64_linux_new_thread): New.
344 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
345 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
346 * ppc-linux-nat.c (last_stopped_data_address): Delete.
347 (saved_dabr_value): New.
348 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
350 (ppc_linux_new_thread): New.
351 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
352 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
353 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
354 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
356 (s390_fix_watch_points): Take a PTID argument.
357 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
358 (_initialize_s390_nat): Call linux_nat_set_new_thread.
360 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
361 Jeff Johnston <jjohnstn@redhat.com>
363 * breakpoint.c (watchpoints_triggered): New.
364 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
365 Check watchpoint_triggered instead. Combine handling for software
366 and hardware watchpoints. Do not use target_stopped_data_address
367 here. Always check a watchpoint if its scope breakpoint triggers.
368 Do not stop for thread or overlay events. Improve check for
369 triggered watchpoints without a value change.
370 (watch_command_1): Insert the scope breakpoint first. Link the
371 scope breakpoint to the watchpoint.
372 * breakpoint.h (enum watchpoint_triggered): New.
373 (struct breakpoint): Add watchpoint_triggered.
374 (bpstat_stop_status): Update prototype.
375 (watchpoints_triggered): Declare.
376 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
377 (stepped_after_stopped_by_watchpoint): Delete.
378 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
379 local. Handle infwait_step_watch_state. Update calls to
380 bpstat_stop_status. Use watchpoints_triggered to check
382 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
383 (remote_stopped_data_address): Do not check it.
385 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
387 * configure.ac: Add $LIBINTL when testing libbfd.
388 * configure: Regenerated.
390 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
392 * NEW: Mention pending breakpoint changes and
393 support for breakpoints at multiple locations.
395 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
397 * arm-linux-tdep.c (arm_linux_software_single_step): New.
398 (arm_linux_init_abi): Use it.
399 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
401 * arm-tdep.h (arm_get_next_pc): Declare.
402 * Makefile.in (arm-linux-tdep.o): Update.
404 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
406 * varobj.c (install_new_value): Don't
407 call value_get_print_value when a value is
408 lazy. Update the print_value member in a
411 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
413 * breakpoint.c (create_breakpoint): Set
414 condition on each location, not on the first
415 location of breakpoint.
417 2007-09-26 Jim Blandy <jimb@codesourcery.com>
419 * remote.c (getpkt_sane): Fix error message. No animals were
420 harmed in the making of this debugger.
422 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
424 * p-typeprint.c: Fix 11 ARI reported problems.
425 (pascal_print_type): Fix 4 operator at end of line.
426 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
427 using strncmp function.
428 (pascal_type_print_base): Fix 2 operator at end of line.
429 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
430 using strncmp function.
433 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
436 dwarf2read.c (read_subroutine_type):
437 All pascal functions are prototyped.
439 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
442 p-valprint.c (pascal_val_print): correct current language check.
443 Also print array of char as strings.
446 2007-09-26 David Ung <davidu@mips.com>
447 Maciej W. Rozycki <macro@mips.com>
449 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
451 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
453 * p-exp.y: Fix 12 ARI reported problems.
454 (name_not_typename): Fix 2 operator at end of line issues.
455 (yylex): Fix 3 operator at end of line issues.
456 Replace 7 DEPRECATED_STREQ macros using strcmp function.
458 2007-09-25 David Ung <davidu@mips.com>
459 Maciej W. Rozycki <macro@mips.com>
461 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
462 rules return composite types in registers as appropriate.
464 2007-09-24 Jim Blandy <jimb@codesourcery.com>
466 * symfile.h (struct symfile_segment_data): Doc fixes.
467 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
468 Assert that we were passed some loaded segment addresses,
469 and that sections' segment numbers are valid.
470 Simplify offset calculation.
471 * remote.c (get_offsets): Clarify selection of relocate-by-segment
472 strategy, and set num_segments correctly. Delete redundant
473 assignments to do_sections.
475 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
477 * frame.c (get_prev_frame_1): Also check for PC in the same register.
479 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
481 * breakpoint.c (remove_sal): New.
482 (expand_line_sal_maybe): New.
483 (create_breakpoints): Call expand_line_sal_maybe.
484 (clear_command): Add comment.
485 (breakpoint_re_set_one): Call expand_line_sal_maybe.
486 * linespec.c (decode_indirect): Set explicit_pc to 1.
487 (decode_all_digits): Set explicit_line to 1.
488 (append_expanded_sal): New.
489 (expand_line_sal): New.
490 * linespec.h (expand_line_sal): Declare.
491 * symtab.c (init_sal): Initialize explicit_pc
493 * symtab.h (struct symtab_and_line): New fields
494 explicit_pc and explicit_line.
496 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
498 * infcall.c (call_function_by_hand): Handle language-specific
499 pass and return by reference.
501 * cp-abi.c (cp_pass_by_reference): New.
502 * cp-abi.h (cp_pass_by_reference): Declare.
503 (struct cp_abi_ops): Add pass_by_reference.
504 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
505 (init_gnuv3_ops): Set pass_by_reference.
507 * language.c (language_pass_by_reference): New.
508 (default_pass_by_reference): New.
509 (unknown_language_defn, auto_language_defn, local_language_defn): Add
510 default_pass_by_reference.
511 * langauge.h (struct language_defn): Add la_pass_by_reference.
512 (language_pass_by_reference, default_pass_by_reference): Declare.
513 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
514 * c-lang.c (c_language_defn, asm_language_defn)
515 (minimal_language_defn): Likewise.
516 (cplus_language_defn): Add cp_pass_by_reference.
517 * f-lang.c (f_language_defn): Add default_pass_by_reference.
518 * jv-lang.c (java_language_defn): Likewise.
519 * m2-lang.c (m2_language_defn): Likewise.
520 * objc-lang.c (objc_language_defn): Likewise.
521 * p-lang.c (pascal_language_defn): Likewise.
522 * scm-lang.c (scm_language_defn): Likewise
524 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
526 Allow a code breakpoint to have several locations
528 * breakpoint.h (enum enable_state): Remove the
529 bp_shlib_disabled enumerator.
530 (struct bp_location): New members shlib_disabled,
531 global_next, enabled and function_name.
532 Rename pending to condition_not_parsed.
534 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
535 (ALL_BP_LOCATIONS_SAFE): Likewise.
536 (breakpoint_enabled): Don't check for pending.
537 (condition_command): Free and update all locations of
539 (insert_bp_location): Adjust.
540 (software_breakpoint_inserted_here_p): Don't care
541 if breakpoint is enabled, as soon as it's inserted.
542 (print_it_typical): Print bpstat's location, not
543 bpstat's breakpoint's location.
544 (bpstat_stop_status): Iterate over all locations, not
546 (print_breakpoint_location): New.
547 (print_one_breakpoint): Renamed to
548 (print_one_breakpoint_location): ...this. Take
549 parameters to describe which location is being
550 printed. Modify code to properly print header
551 for several locations and individual locations.
552 (print_one_breakpoint): Print all locations.
553 (breakpoint_has_pc): New.
554 (describe_other_breakpoints): Use the above.
555 (check_duplicates): Renamed to...
556 (check_duplicates_for): .. this.
557 (check_duplicates): Use check_duplicates_for.
558 (allocate_bp_location): Adjust.
559 (set_raw_breakpoint_without_location): New,
560 extracted from set_raw_breakpoint.
561 (set_breakpoint_location_function): New.
562 (set_raw_breakpoint): Use
563 set_raw_breakpoint_without_location.
564 (make_breakpoint_permanent): Mark all locations
566 (disable_breakpoints_in_shlibs): Iterate over
568 (disable_breakpoints_in_unloaded_shlib): Likewise.
569 (re_enable_breakpoints_in_shlibs): Likewise.
570 (mention): Say "pending" when breakpoint has
571 zero locations. If breakpoint has more than one
573 (add_location_to_breakpoint): New.
574 (create_breakpoint): Accept symtabs_and_lines, not
575 symtab_and_line. Pass extra sals to
576 add_location_to_breakpoint.
577 (create_breakpoints): Pass symtabs_and_lines to
579 (break_command_1): Make pending breakpoints
581 (do_captured_breakpoint): Remove wrong allocation.
582 (clear_command): Iterate over all locations.
583 (unlink_locations_from_global_list): Renamed
584 from unlink_location_from_global_list. Remove
586 (delete_breakpoint): Remove all locations.
587 Iterate over all locations when deciding which
588 other location to re-enable.
589 (all_locations_are_pending): New.
590 (update_breakpoint_locations): Renamed from
591 update_breakpoint_location. Try to match old
592 and new locations using names of containing
594 (breakpoint_re_set_one): Adjust.
595 (find_location_by_number): New.
596 (disable_command): Allow disabling individual location.
597 (enable_command): Allow enabling individual location.
598 * breakpoint.c: Adjust all uses of breakpoint's
599 enable state to for bp_shlib_disabled change.
601 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
603 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
604 (resolve_pending_breakpoint): Remove.
605 (re_enable_breakpoints_in_shlibs): Remove.
606 (unlink_locations_from_global_list): New.
607 (update_breakpoint_locations): New.
608 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
609 Use parse_condition and update_breakpoint_location to
610 reset breakpoint. Ignore 'symbol not found' error from
612 (breakpoint_re_set): Don't emit newline before the
613 reason why breakpoint is not reset.
614 (do_enable_breakpoint): Don't specially process pending
616 (free_bp_location): New.
617 (break_command_1): For pending breakpoints, initialize
618 all fields of a sal with zeroes.
619 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
620 * infcmd.c (post_create_inferior): Don't call
621 re_enable_breakpoints_in_shlibs.
622 * infrun.c (handle_inferior_event): Likewise.
623 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
624 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
625 * win32-nat.c (get_win32_debug_event): Likewise.
627 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
629 * breakpoint.c (create_breakpoint): Split from
630 create_breakpoints, implementing most of its logic.
631 Take just a single sal, single address string and
632 single condition. Do not take parsed condition at
634 (create_breakpoints): Just call create_breakpoint
636 (find_condition_and_thread): New.
637 (break_command_1): Use find_condition_and_thread.
638 Do not keep parsed conditions.
639 (do_captured_breakpoint): Don't convert
640 condition string to struct expression.
642 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
644 * breakpoint.h (struct breakpoint): Move the cond
646 (struct bp_location): Here.
647 * breakpoint.c (condition_command, bpstat_stop_status)
648 (print_one_breakpoint, allocate_bp_location)
649 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
650 (create_exec_event_catchpoint, create_breakpoints)
651 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
652 (create_ada_exception_breakpoint, set_breakpoint_sal)
653 (delete_breakpoint, breakpoint_re_set_one): Adjust.
654 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
656 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
658 Associate bp_stat with bp_location, not breakpoint.
659 * breakpoint.h (breakpoint_at): Change type
661 * breakpoint.c (bpstat_alloc): Take bp_location,
663 (bpstat_find_breakpoint): Look at bpstat's location's
664 owner, not at bpstat->breakpoint_at.
665 (bpstat_find_step_resume_breakpoint): Likewise.
666 (bpstat_num): Likewise.
667 (print_it_typical): Likewise.
668 (print_bp_stop_message): Likewise.
669 (watchpoint_check): Likewise.
670 (bpstat_what): Likewise.
671 (bpstat_get_triggered_catchpoints): Likewise.
672 (breakpoint_auto_delete): Likewise.
673 (delete_breakpoint): Likewise.
674 (bpstat_stop_status): Pass location, not breakpoint,
675 to bpstat_alloc. Look at bpstat's location's
676 owner, not at bpstat->breakpoint_at.
678 2007-09-21 Jim Blandy <jimb@codesourcery.com>
680 * macrotab.h (new_macro_table): Document that removing information
681 from an obstack/bcache-managed macro table leaks memory.
682 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
683 that data is never freed in obstack/bcache-managed macro tables,
684 just leak the storage.
685 (macro_undef): If we're undefining a macro at exactly the same
686 source location that we defined it, simply remove the definition
689 2007-09-21 Joel Brobecker <brobecker@adacore.com>
691 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
692 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
693 Adjust the struct sym_fns object accordingly by setting
694 the new field to NULL.
695 * xcoffread.c (aix_process_linenos): Make static.
696 (xcoff_sym_fns): Set new field to aix_process_linenos.
697 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
698 by call to new the new sym_fns sym_read_linetable function.
699 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
700 * config/rs6000/tm-rs6000.h: Delete.
702 2007-09-21 David Ung <davidu@mips.com>
703 Maciej W. Rozycki <macro@mips.com>
705 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
706 rules do not treat composite types specially.
708 2007-09-20 Maciej W. Rozycki <macro@mips.com>
710 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
711 (mips16_in_function_epilogue_p): Likewise.
712 (mips_in_function_epilogue_p): Likewise.
713 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
715 2007-09-19 Joel Brobecker <brobecker@adacore.com>
717 * configure.ac: Add check for "etext".
718 * configure, config.in: Regenerate.
719 * maint.c (TEXTEND): Only define if either _etext or etext
721 Disable the profiling functionality if TEXTEND is not defined.
723 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
725 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
726 address register. Correct the call to frame_id_build.
727 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
730 2007-09-18 Joel Brobecker <brobecker@adacore.com>
732 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
733 the linetable past the function end.
735 2007-09-18 James E. Wilson <wilson@specifix.com>
737 * MAINTAINERS: Update my email address.
739 2007-09-18 Jerome Guitton <guitton@adacore.com>
741 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
742 (inf_ttrace_delete_dying_threads_callback): New function.
743 (inf_ttrace_resume): After resuming the execution, iterate over
744 the dying threads to delete them for the thread list.
745 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
746 mark the corresponding thread as dying instead of removing it
747 from the thread list.
748 (inf_ttrace_thread_alive): return 0 for dying threads.
750 2007-09-17 Joel Brobecker <brobecker@adacore.com>
752 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
753 that return_frame is not null.
755 2007-09-17 Joel Brobecker <brobecker@adacore.com>
757 * solib-svr4.c: Add include of "auxv.h".
758 (enable_break): Use the AT_BASE auxiliary entry if available.
759 * Makefile.in (solib-svr4.o): Update dependencies.
761 2007-09-17 Joel Brobecker <brobecker@adacore.com>
763 * NEWS: Create a new section for the next release branch.
764 Rename the section of the current branch, now that it has
767 2007-09-17 Jerome Guitton <guitton@adacore.com>
769 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
770 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
772 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
774 * mi/mi-cmds.c (mi_cmds): Register -list-features.
775 * mi/mi-cmds.h (mi_cmd_list_features): New.
776 * mi/mi-main.c (mi_cmd_list_features): New.
778 2007-09-11 Joel Brobecker <brobecker@adacore.com>
780 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
781 * version.in: Bump version to 6.7.50-20070911-cvs.
783 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
785 * thread.c (free_thread): Do not delete the step resume breakpoint
788 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
790 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
791 * corelow.c (core_read_description): New.
792 (init_core_ops): Set to_read_description.
793 * gdbarch.sh: Add gdbarch_core_read_description.
794 * mips-linux-tdep.c (mips_linux_core_read_description): New.
795 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
796 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
797 (mips_register_g_packet_guesses): Use them.
798 (_initialize_mips_tdep): Initialize them.
799 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
800 * gdbarch.h, gdbarch.c: Regenerated.
802 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
804 * infrun.c (stepping_past_breakpoint): New global variable.
805 (stepping_past_breakpoint_ptid): Likewise.
806 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
807 Only switch threads if we need to single-step over a breakpoint hit
808 in the previously selected thread. If stepping, remember previous
809 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
810 switch_to_thread instead of copying its contents.
811 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
812 prepare_to_proceed returns true.
813 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
814 (context_switch): Call switch_to_thread.
815 (handle_inferior_event): Switch back to previous thread if requested
816 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
817 * gdbthread.h (switch_to_thread): Add prototype.
818 * thread.c (switch_to_thread): Make global.
820 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
822 * p-valprint.c: Fix 7 ARI reported problems.
823 (pascal_val_print): Fix one operator at end of line issue.
824 Use paddress function to remove use of
825 deprecated_print_address_numeric function (2 times).
826 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
827 (pascal_value_print): Fix 3 operator at end of line issues.
829 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
832 * arm-tdep.c (arm_in_call_stub): Delete.
833 (arm_skip_stub): Handle from_arm and from_thumb stubs.
835 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
837 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
840 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
841 Jim Blandy <jimb@codesourcery.com>
843 * NEWS: Update description of string changes. Mention print/s.
844 * c-valprint.c (textual_element_type): New.
845 (c_val_print): Use it. Do not skip address printing for pointers
846 with a string format.
847 (c_value_print): Doc update.
848 * dwarf2read.c (read_array_type): Use make_vector_type.
849 * gdbtypes.c (make_vector_type): New.
850 (init_vector_type): Use it.
851 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
852 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
853 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
854 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
855 (make_vector_type): New.
856 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
857 Call the language print routine for string format.
858 (print_scalar_formatted): Call val_print for string format. Handle
859 unsigned original types for char format.
860 (validate_format): Do not reject string format.
861 * stabsread.c (read_type): Use make_vector_type.
862 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
864 2007-09-04 Michael Snyder <msnyder@access-company.com>
866 * expprint.c (print_subexp_standard): Check strchr for null.
867 * Makefile.in (expprint.o): Depend on gdb_assert.h.
869 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
871 * stabsread.c (patch_block_status): Guard against null.
872 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
874 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
876 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
877 in internal error message.
879 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
880 Daniel Jacobowitz <dan@codesourcery.com>
882 * infcmd.c (post_create_inferior): Update comment.
883 (run_command_1): Always call post_create_inferior with 0 as
886 * i386-cygwin-tdep.h: New.
887 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
888 (win32_xfer_shared_library): Make it extern.
890 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
892 (win32_so_ops): Delete.
893 (get_relocated_section_addrs): Delete.
894 (solib_symbols_add): Delete.
895 (register_loaded_dll): Delete.
896 (win32_make_so): New.
897 (handle_load_dll): Use win32_make_so.
898 (win32_free_so): Free the passed in so.
899 (win32_relocate_section_addresses): Delete.
900 (win32_solib_create_inferior_hook): Delete.
901 (handle_unload_dll): Don't add PE offset here. Free so with
902 win32_free_so instead of free_so.
903 (win32_special_symbol_handling): Delete.
904 (get_win32_debug_event): Remove unneeded calls. Set state to
905 TARGET_WAITKIND_LOADED on a dll unload.
906 (do_initial_win32_stuff): Clear cygwin_load_start and
908 (map_code_section_args): Delete.
909 (dll_code_sections_add): Delete.
910 (core_section_load_dll_symbols): Delete.
911 (win32_xfer_shared_libraries): New.
912 (win32_current_sos): Delete.
913 (win32_xfer_partial): New.
914 (open_symbol_file_object): Delete.
915 (in_dynsym_resolve_code): Delete.
916 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
917 of win32_ops. Remove win32_so_ops settings. Don't set
918 current_target_so_ops here.
920 * Makefile.in (i386_cygwin_tdep_h): New variable.
921 (i386-cygwin-tdep.o): Update dependencies.
922 (win32-nat.o): Update dependencies.
924 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
925 Daniel Jacobowitz <dan@codesourcery.com>
927 * gdbarch.sh (core_xfer_shared_libraries): New.
929 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
931 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
933 * xml-support.c (gdb_xml_parse): Debug output tweaks.
934 (xml_escape_text): New.
935 * xml-support.h (xml_escape_text): Declare.
937 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
938 * config/i386/cygwin.mt (TDEPFILES): ... here.
940 * win32-nat.c: (fetch_elf_core_registers): Delete.
941 (win32_elf_core_fn): Delete.
942 (_initialize_core_win32): Delete.
944 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
945 "xml-support.h" and "gdbcore.h".
946 (i386_win32_gregset_reg_offset): New.
947 (I386_WIN32_SIZEOF_GREGSET): New.
948 (i386_win32_regset_from_core_section): New.
949 (win32_xfer_shared_library): New.
950 (struct cpms_data): New.
951 (core_process_module_section): New.
952 (win32_core_xfer_shared_libraries): New.
953 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
954 gregset_num_regs, sizeof_gregset members of tdep. Register
955 regset_from_core_section and core_xfer_shared_libraries callbacks.
957 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
958 * gdbarch.h, gdbarch.c: Regenerate.
960 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
962 * corelow.c (core_xfer_partial): Pass writebuf to
963 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
965 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
967 * arm-tdep.h (arm_skip_stub): Declare.
968 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
970 (arm_pe_skip_trampoline_code): New function.
971 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
972 gdbarch_skip_trampoline_code callback.
973 * Makefile.in (arm-wince-tdep.o): Update dependencies.
975 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
977 * MAINTAINERS: Move Fred Fish to Past Maintainers.
979 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
981 * configure.ac: Add --with-expat.
982 * configure: Regenerated.
984 2007-09-03 Andreas Schwab <schwab@suse.de>
986 * configure.ac: Accept --with-system-readline.
987 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
988 * configure: Regenerate.
989 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
991 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
993 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
994 Daniel Jacobowitz <dan@codesourcery.com>
996 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
998 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1000 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1002 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1004 * top.c (print_gdb_version): Update for GPL version 3.
1006 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1008 * NEWS: Mention the build-id .debug files verification.
1010 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1012 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1014 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1016 * Makefile.in (symfile.o): Update dependencies.
1017 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1018 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1019 (struct build_id): New structure.
1020 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1021 (find_separate_debug_file): New variable BUILD_ID.
1022 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1024 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1026 * varobj.c (struct varobj): Fix comment
1027 for the type member not to lie when it can be
1030 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1032 Implement -var-info-path-expression.
1034 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1036 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1037 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1038 * varobj.c (struct varobj): New field 'path_expr'.
1039 (c_path_expr_of_child, cplus_path_expr_of_child)
1040 (java_path_expr_of_child): New.
1041 (struct language_specific): New field path_expr_of_child.
1042 (varobj_create): Initialize the path_expr field.
1043 (varobj_get_path_expr): New.
1044 (new_variable): Initialize the path_expr field.
1045 (free_variable): Free the path_expr field.
1046 (adjust_value_for_children_access): New parameter
1048 (c_number_of_children): Adjust.
1049 (c_describe_child): New parameter CFULL_EXPRESSION.
1050 Compute full expression.
1051 (c_value_of_child, c_type_of_child): Adjust.
1052 (cplus_number_of_children): Adjust.
1053 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1054 Compute full expression.
1055 (cplus_name_of_child, cplus_value_of_child)
1056 (cplus_type_of_child): Adjust.
1057 * varobj.h (varobj_get_path_expr): Declare.
1059 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1061 * mi/mi-cmd-var.c (print_varobj): If a varobj
1062 type is NULL, don't try to print it.
1064 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1066 * ppc-linux-nat.c (right_fill_reg): Delete.
1067 (supply_gregset): Use ppc_supply_gregset.
1068 (supply_fpregset): Use ppc_supply_fpregset.
1069 (fill_gregset): Use ppc_collect_gregset.
1070 (fill_fpregset): Use ppc_collect_fpregset.
1071 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1072 (right_supply_register, ppc_linux_supply_gregset): Delete.
1073 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1074 (ppc_linux_supply_fpregset): Delete.
1075 (ppc_linux_collect_gregset): New function.
1076 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1077 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1078 ppc_linux_supply_gregset, and ppc_collect_gregset.
1079 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1080 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1081 (ppc_linux_regset_from_core_section): Update.
1082 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1083 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1084 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1085 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1086 (ppcobsd_collect_gregset): Likewise.
1087 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1088 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1089 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1090 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1091 (rs6000_aix64_reg_offsets): Likewise.
1092 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1093 ppc_floating_point_unit_p.
1094 (rs6000_aix_collect_regset): Similarly.
1095 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1096 when regsize is larger than regcache register size.
1097 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1098 regcache register size.
1099 (ppc_greg_offset): New function, split out from..
1100 (ppc_supply_gregset): ..here. Separate code handling all regs from
1101 single reg case. Correct xer offset.
1102 (ppc_fpreg_offset): New function, split out from..
1103 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1105 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1106 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1107 a fp unit, instead return if no fp.
1109 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1111 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1112 this code has not been compiled for two years.
1114 2007-08-29 Michael Snyder <msnyder@access-company.com>
1116 * event-top.c (gdb_readline2): Return after EOF.
1118 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1120 * symtab.c: Remove a function that has been commented out 3 years ago.
1122 2007-08-29 Randolph Chung <tausq@debian.org>
1124 * hppa-tdep.c (hppa32_cannot_fetch_register)
1125 (hppa64_cannot_fetch_register): New functions.
1126 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1127 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1129 2007-08-28 Michael Snyder <msnyder@access-company.com>
1131 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1132 check for null before calling check_typedef.
1134 * NEWS: Mention Coverity bug fixes.
1136 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1138 * spu-tdep.c (spu_pointer_to_address): New function.
1139 (spu_integer_to_address): Likewise.
1140 (spu_gdbarch_init): Add spu_pointer_to_address and
1141 spu_integer_to_address to gdbarch.
1143 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1145 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1147 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1149 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1150 that contains the GDB license.
1151 * copying.awk: Adjust to the GPLv3 wording.
1152 * copying.c: Regenerate.
1154 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1156 * copying.awk: Protoization, and i18n markup.
1158 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1160 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1161 * copyright.sh: Likewise.
1162 * gdb-events.sh: Likewise.
1163 * gdb_gcore.sh: Likewise.
1164 * gdb_mbuild.sh: Likewise.
1165 * gdbarch.sh: Likewise.
1166 * observer.sh: Likewise.
1167 * features/feature_to_c.sh: Likewise.
1168 * regformats/regdat.sh: Likewise.
1170 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1172 Switch the license of all .c files to GPLv3.
1173 Switch the license of all .h files to GPLv3.
1174 Switch the license of all .cc files to GPLv3.
1176 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1178 * configure.ac: Switch license to GPLv3.
1180 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1182 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1183 determine the file's FPU type.
1185 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1187 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1188 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1189 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1191 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1193 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1195 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1196 (elf_lookup_lib_symbol): Fix formatting.
1198 2007-08-21 Michael Snyder <msnyder@access-company.com>
1200 * dbxread.c (read_dbx_symtab): Guard null deref.
1203 * valops.c (find_overload_match): Guard against NULL.
1205 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1207 * MAINTAINERS (Patch Champions): Remove self.
1209 2007-08-21 Chris Smith <chris.smith@st.com>
1211 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1214 2007-08-18 Michael Snyder <msnyder@access-company.com>
1216 * stabsread.c (dbx_lookup_type): Memory leak.
1218 * event-loop.c (delete_async_signal_handler): Move pointer null
1219 test to before pointer dereference.
1221 * ui-out.c (append_header_to_list): Possible cut and paste error.
1223 * MAINTAINERS: white space tweak.
1225 2007-08-17 Michael Snyder <msnyder@access-company.com>
1227 * stack.c (print_frame): Memory leak.
1229 * completer.c (filename_completer): Avoid memory leak.
1230 Remove unnecessary nested block.
1232 * c-exp.y (parse_number): Memory leak.
1234 * completer.c (location_completer): Must free 'fn_list', except
1235 in the one case where it is returned (as 'list').
1237 * varobj.c (value_of_root): Memory leak.
1239 * gdbtypes.h (virtual_base_list): Remove export decl.
1240 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1241 (virtual_base_index): Memory leak.
1242 (virtual_base_index_skip_primaries): Ditto.
1244 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1246 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1247 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1248 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1249 (xtensa_read_register): New function.
1250 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1251 (xtensa_insn_kind): New types.
1252 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1253 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1254 (xtensa_verify_config, xtensa_pseudo_register_read)
1255 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1256 (xtensa_store_return_value)
1257 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1258 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1259 (xtensa_frame_this_id, xtensa_frame_prev_register)
1260 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1261 (call0_frame_cache, call0_frame_get_reg_at_entry)
1262 (call0_classify_opcode, call0_track_op)
1263 (call0_analyze_prologue, call0_frame_cache): New functions.
1265 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1267 * breakpoint.c (bpstat_free): New.
1268 (bpstat_clear): Use bpstat_free.
1269 (delete_breakpoint): Document why we cannot
1270 remove bpstats from stop_bpstat.
1271 * breakpoint.h (bpstat_free): Declare.
1273 2007-08-16 Michael Snyder <msnyder@access-company.com>
1275 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1277 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1278 Joel Brobecker <brobecker@adacore.com>
1280 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1282 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1283 Joel Brobecker <brobecker@adacore.com>
1285 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1286 checkin guarding against NULL.
1288 2007-08-14 Michael Snyder <msnyder@access-company.com>
1290 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1291 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1292 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1293 go at beginning of new line.
1295 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1296 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1297 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1298 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1299 tui-winsource.h, tui.c, tui.h: Function declarations and
1300 definitions, wrap long lines.
1302 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1303 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1304 Reformat block comments to GNU standard.
1306 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1307 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1308 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1309 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1310 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1311 spaces after periods, etc).
1313 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1314 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1315 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1316 tui-winsource.h: Whitespace changes, fix pointer declarations
1319 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1320 Michael Snyder <msnyder@access-company.com>
1322 * ada-lang.c (field_alignment): Guard against NULL.
1324 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1326 * MAINTAINERS (Global Maintainers): Add self.
1328 2007-08-14 Michael Snyder <msnyder@access-company.com>
1330 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1332 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1334 * varobj.c (cplus_describe_child): Guard against null.
1335 Use "NULL" instead of "0" to initialize pointers.
1337 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1339 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1340 to match any gdbarch with matching OSABI. Set default ABI and FPU
1341 after running the OSABI handler.
1343 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1345 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1346 * config/i386/linux.mt (TDEPFILES): ...to here.
1348 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1350 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1351 the 'silent' parameter and code to implement that.
1352 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1354 * win32-nat.c: Adjust.
1357 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1359 * breakpoint.c (update_breakpoints_after_exec): Don't
1360 set address to zero.
1362 2007-08-13 Michael Snyder <msnyder@access-company.com>
1364 * valops.c: Whitespace clean-up.
1366 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1368 * event-top.c (command_line_handler): Memory leak.
1370 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1371 No need to make copy.
1373 * source.c (find_source_lines): Require symtab 's'.
1375 2007-08-11 Michael Snyder <msnyder@access-company.com>
1377 * completer.c: Spelling fix in comments.
1379 2007-08-10 Michael Snyder <msnyder@access-company.com>
1381 * gdbtypes.c: Coding standard cleanup.
1382 * gdbtypes.c: Comment/whitespace cleanup.
1384 * stabsread.c (read_huge_number): Attempt to compute value before
1385 values that it depends on.
1387 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1388 (decode_objc): Use "NULL" instead of 0.
1389 (find_method): Ditto.
1390 (decode_all_digits): Ditto.
1391 (decode_dollar): Ditto.
1393 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1395 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1397 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1400 * completer.c: Comment/whitespace cleanup.
1402 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1404 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1406 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1408 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1409 allocated file descriptors.
1411 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1413 * Makefile.in: Minor cleanup throughout; add some missing variables,
1414 add some missing rules, remove some rules that are no longer needed,
1415 and fix the dependencies in several rules.
1417 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1419 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1420 (scm_lang_h, scm_tags_h): New.
1421 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1422 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1423 * defs.h (enum language): Add `language_scm'.
1425 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1428 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1430 * MAINTAINERS (Write After Approval): Add myself.
1432 2007-08-09 Michael Snyder <msnyder@access-company.com>
1434 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1436 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1438 * solib-som.c (som_relocate_section_addresses): Stop saving
1439 the $CODE$ section in the so_list structure.
1441 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1443 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1444 (xtensa_register_group_t): Add entries for coprocessors.
1445 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1446 (xtensa_add_reggroups): Likewise.
1447 (xtensa_register_reggroup_p): Likewise.
1448 (xtensa_coprocessor_register_group): New function.
1451 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1453 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1455 2007-08-08 Michael Snyder <msnyder@access-company.com>
1457 * target.c (target_read_string): Guard against null.
1459 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1461 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1462 (tui_set_layout_for_display_command): Mem leak.
1464 * top.c (command_line_input): Memory leak.
1466 * solib-svr4.c (open_symbol_file_object): Memory leak.
1467 (svr4_current_sos): Ditto.
1468 (enable_break): Ditto.
1470 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1472 * dwarf2read.c (add_partial_symbol): Memory leak.
1474 2007-08-06 Michael Snyder <msnyder@access-company.com>
1476 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1478 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1480 * macroexp.c (init_buffer): Remove testing code that overrides the
1481 caller's length guess.
1482 (gather_arguments): Use a larger initial size, now that the vector
1483 growth code has been exercised.
1485 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1487 * solib-target.c (solib_target_relocate_section_addresses): Add
1488 orig_delta to addr_high.
1490 2007-08-04 Michael Snyder <msnyder@access-company.com>
1492 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1494 * breakpoint.c (print_one_breakpoint): Off by one error.
1496 * tracepoint.c (add_register): Off by one error.
1497 (stringify_collection_list): Free malloc buffer.
1499 2007-08-03 Michael Snyder <msnyder@access-company.com>
1501 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1502 stop memory leak, straighten out cleanups.
1504 * jv-lang.c (java_link_class_type): Guard against NULL.
1506 2007-08-02 Michael Snyder <msnyder@access-company.com>
1508 * gdbtypes.c (create_set_type): Test should only be done within
1509 the preceeding if block. Otherwise, variable is uninitialized.
1511 * gdbtypes.c (check_typedef): Guard NULL.
1513 2007-08-01 Michael Snyder <msnyder@access-company.com>
1515 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1516 avoid dereference in lookup_cmd_1.
1518 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1519 clean up long lines.
1520 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1521 (tui_alloc_win_info): Ditto.
1522 (tui_add_content_elements): Ditto.
1523 * tui/tui-file.c (tui_file_magic): Ditto.
1525 2007-07-31 Michael Snyder <msnyder@access-company.com>
1527 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1528 True and false paths are mutually exclusive.
1530 * event-top.c (command_line_handler): Add pedantic return.
1532 * f-valprint.c (info_common_command): Bail out to prevent null
1533 pointer deref. Break up a long line.
1535 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1537 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1539 * printcmd.c (build_address_symbolic): Remove dead code and dead
1542 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1544 * linespec.c (minsym_found): Advance to the next line if possible.
1546 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1548 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1549 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1550 solib-svr4.o, and add solib-target.o
1552 2007-07-27 Michael Snyder <msnyder@access-company.com>
1554 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1556 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1558 * MAINTAINERS (Write After Approval): Add myself.
1560 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1562 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1565 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1567 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1569 2007-07-24 Michael Snyder <msnyder@access-company.com>
1571 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1572 'buffer' must cover both branches that call strcmp (Coverity).
1574 * stack.c (print_frame_args): Check return value of lookup_symbol.
1576 * ax-gdb.c (find_field): Guard against null ptr.
1578 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1580 * regformats/reg-spu.dat: Fix order of npc, id registers.
1582 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1584 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1585 sections should always go to the executable file.
1587 2004-07-20 Chris Dearman <chris@mips.com>
1589 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1590 prologue instructions.
1592 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1594 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1597 2007-07-20 Chris Dearman <chris@mips.com>
1598 Maciej W. Rozycki <macro@mips.com>
1600 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1603 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1604 Daniel Jacobowitz <dan@codesourcery.com>
1606 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1607 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1609 * NEWS: Mention gdbserver DLL support.
1611 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1613 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1615 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1617 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1620 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1622 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1625 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1627 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1628 (mep_analyze_prologue): Add case for BRA instruction.
1630 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1632 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1634 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1636 * breakpoint.c: Include "top.h".
1637 (breakpoint_1): Don't set convenience variable $_ if server prefix
1639 (_initialize_breakpoint): Describe this behaviour in command help.
1641 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1643 * solib-target.c (library_list_start_segment): Cast address to
1646 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1648 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1649 for terminated processes.
1651 2007-07-05 Michael Snyder <msnyder@access-company.com>
1653 * event-top.c (cli_command_loop): Prompt string can (and should)
1654 be freed after call to readline (Coverity). Also move local var
1655 declarations into block where they are used.
1657 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1658 should) be freed after call to readline (Coverity). Also move
1659 local var declarations into block where they are used.
1661 2007-07-03 Andreas Schwab <schwab@suse.de>
1663 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1666 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1667 Thiago Bauermann <bauerman@br.ibm.com>
1668 Joseph S. Myers <joseph@codesourcery.com>
1669 Daniel Jacobowitz <dan@codesourcery.com>
1671 * remote.c (remote_check_symbols): Use
1672 gdbarch_convert_from_func_ptr_addr.
1673 * infcall.c (find_function_addr): Handle function descriptors
1674 without debugging information.
1675 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1676 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1677 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1678 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1679 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1680 allow SEC_CODE and SEC_DATA.
1681 (enable_break): Update calls. Pass current_target to solib_add.
1682 Use gdbarch_convert_from_func_ptr_addr.
1684 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1685 Daniel Jacobowitz <dan@codesourcery.com>
1687 * symfile.c (print_transfer_performance): Avoid integer overflow.
1690 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1692 * cp-namespace.c (lookup_symbol_file): Add block to
1693 lookup_symbol_global call.
1694 * Makefile.in (solist_h): Add dependency on symtab header.
1695 (symtab.o): Add dependency on solist header.
1696 * solib.c (solib_global_lookup): New function.
1697 * solib-svr4.c (scan_dyntag): Likewise.
1698 (elf_locate_base): Call helper routine scan_dyntag.
1699 (elf_lookup_lib_symbol): New function.
1700 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1701 * solist.h (symtab.h): New include.
1702 (struct target_so_ops): New member lookup_lib_global_symbol.
1703 (solib_global_lookup): New prototype.
1704 * symtab.c: New include solist.h.
1705 (lookup_objfile_from_block): New function.
1706 (lookup_global_symbol_from_objfile): New function.
1707 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1708 (lookup_symbol_global): Call library-specific lookup procedure.
1709 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1711 * NEWS: Document framework.
1713 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1715 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1718 * cli/cli-script.c (build_command_line): Update NULL check.
1720 2007-07-02 Michael Snyder <msnyder@access-company.com>
1722 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1724 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1726 * Makefile.in (XMLFILES): Add library-list.dtd.
1727 (ALLDEPFILES): Add solib-target.o.
1728 (solib-target.o): New rule.
1729 * remote.c (PACKET_qXfer_libraries): New constant.
1730 (remote_protocol_features): Add qXfer:libraries:read.
1731 (remote_wait): Recognize library stop replies.
1732 (remote_async_wait): Likewise. Fix typo.
1733 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1734 (init_remote_async_ops): Fix typo.
1735 (_initialize_remote): Register "set remote library-info-packet".
1736 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1737 * solib-target.c: New file.
1738 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1740 (info_sharedlibrary_command): Likewise.
1741 (solib_add_library, solib_remove_library): New.
1742 * solist.h (struct so_list): Replace textsection with addr_low and
1744 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1745 * NEWS: Describe new qXfer:libraries:read and shared library
1747 * features/library-list.dtd: New.
1749 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1751 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1752 (start_remote): Use STOP_QUIETLY_REMOTE.
1753 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1754 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1755 Update to match shared library event breakpoint support. Only
1756 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1757 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1758 * fork-child.c (startup_inferior): Do not set
1759 inferior_ignoring_startup_exec_events
1760 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1762 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1764 2007-07-02 Markus Deuling <deuling@de.ibm.com>
1766 * breakpoint.c (insert_bp_location): Remove dead code
1767 (DISABLE_UNSETTABLE_BREAK).
1768 (disable_breakpoints_in_shlibs)
1769 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1771 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1773 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1774 Call insert_bp_location.
1776 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1778 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1781 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1783 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1786 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1788 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1789 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1790 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1791 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1792 to display_gdb_prompt.
1794 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1797 * target.c (memory_xfer_partial): Do not continue past targets with
1800 2007-06-30 Andreas Schwab <schwab@suse.de>
1802 * m68k-tdep.c (m68k_ps_type): New.
1803 (m68k_init_types): New.
1804 (m68k_register_type): Use m68k_ps_type for PS register.
1805 (_initialize_m68k_tdep): Call m68k_init_types.
1807 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1808 from the generic m68k arch.
1810 2007-06-28 Michael Snyder <msnyder@access-company.com>
1812 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1815 * linux-thread-db.c (thread_db_get_thread_local_address): Add
1816 gdb_assert before using return value of find_thread_pid (Coverity).
1818 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1820 * cli/cli-script.c (build_command_line): Add null pointer guard
1823 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1825 * linux-thread-db.c (thread_db_attach): Delete.
1826 (thread_db_detach): Typo fix. Call target_mourn_inferior
1827 instead of fixing up proc_handle.
1828 (have_threads_callback, have_threads): New functions.
1829 (thread_db_wait): Remove dead proc_handle.pid check. Only
1830 translate PTIDs if we have registered threads. Check for new
1831 threads if we have none.
1832 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1833 (find_new_threads_callback): Only enable event reporting if TID == 0.
1834 (same_ptid_callback): New.
1835 (thread_db_get_thread_local_address): Check for new threads.
1836 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1837 or to_post_startup_inferior.
1839 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1841 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1842 is always active if SOFTWARE_SINGLE_STEP_P is true.
1843 (resume): Use gdbarch_software_single_step[_p] instead of
1844 SOFTWARE_SINGLE_STEP[_P].
1845 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1847 * gdbarch.sh (software_single_step): Remove target macro.
1848 * gdbarch.h, gdbarch.c: Regenerate.
1850 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1852 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1853 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1854 (struct gdbarch_swap, struct gdbarch_swap_registration,
1855 struct gdbarch_swap_registry, gdbarch_swap_registry,
1856 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1857 current_gdbarch_swap_in_hack): Remove.
1858 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1859 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1860 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1861 (deprecated_current_gdbarch_select_hack): Likewise.
1862 * gdbarch.h, gdbarch.c: Regenerate.
1864 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1866 * infrun.c (clear_proceed_status): Clean up stop_registers.
1867 (normal_stop): Allocate regcache for stop_registers.
1868 (struct inferior_status): Remove stop_registers member.
1869 (save_inferior_status): Do not save stop_registers.
1870 (restore_inferior_status): Do not restore stop_registers.
1871 (discard_inferior_status): Do not discard stop_registers.
1872 (build_infrun): Remove.
1873 (_initialize_infrun): Do not swap stop_registers.
1875 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1877 * remote.c (remote_address_masked): If remote_address_size is zero,
1878 default to target address size.
1879 (build_remote_gdbarch_data): Remove.
1880 (_initialize_remote): Do not swap remote_address_size.
1882 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1884 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1885 builtin_type_char, builtin_type_short, builtin_type_int,
1886 builtin_type_long, builtin_type_signed_char,
1887 builtin_type_unsigned_char, builtin_type_unsigned_short,
1888 builtin_type_unsigned_int, builtin_type_unsigned_long,
1889 builtin_type_float, builtin_type_double, builtin_type_long_double,
1890 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1891 builtin_type_bool, builtin_type_long_long,
1892 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1893 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1894 variable declaration with compatibility macro.
1895 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1896 builtin_type_char, builtin_type_short, builtin_type_int,
1897 builtin_type_long, builtin_type_signed_char,
1898 builtin_type_unsigned_char, builtin_type_unsigned_short,
1899 builtin_type_unsigned_int, builtin_type_unsigned_long,
1900 builtin_type_float, builtin_type_double, builtin_type_long_double,
1901 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1902 builtin_type_bool, builtin_type_long_long,
1903 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1904 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1905 (build_gdbtypes): Remove.
1906 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1907 opaque-type-resolution command here. Do not call
1908 deprecated_register_gdbarch_swap.
1910 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1912 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1913 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1914 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1916 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1917 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1918 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1919 (build_parse): Remove.
1920 (_initialize_parse): Do not call build_parse. Do not register
1921 msym_ types for gdbarch-swapping.
1923 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1924 instead of creating private type.
1926 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1927 (_initialize_xcoffread): Do not initialized them.
1928 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1930 * mdebugread.c (nodebug_func_symbol_type): Remove.
1931 (nodebug_var_symbol_type): Remove.
1932 (_initialize_mdebugread): Do not initialize them.
1933 (parse_symbol): Use builtin nodebug_ type instead of them.
1934 (parse_procedure): Likewise.
1936 2007-06-21 Chris Dearman <chris@mips.com>
1938 * printcmd.c (do_one_display): If display/i, start with an initial
1939 line feed to avoid bad layout if there is a branch delay slot.
1941 2007-06-21 Nigel Stephens <nigel@mips.com>
1942 Maciej W. Rozycki <macro@mips.com>
1944 * disasm.c (gdb_print_insn): Return the number of branch delay
1945 slot instructions too.
1946 * disasm.h (gdb_print_insn): Update prototype.
1947 * printcmd.c (branch_delay_insns): New variable to record the
1948 number of delay slot instructions after disassembling a branch.
1949 (print_formatted): Record the number of branch delay slot
1951 (do_examine): When disassembling, if the last instruction
1952 disassembled has any branch delay slots, then bump the count so
1953 that they get disassembled too.
1954 * tui/tui-disasm.c (tui_disassemble): Update the call to
1956 * NEWS: Document the new behaviour.
1958 2007-06-21 Andreas Schwab <schwab@suse.de>
1960 * regcache.c (write_pc_pid): Restore missing else.
1962 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
1964 * regcache.c (regcache_print): Use get_current_regcache ()
1965 instead of current_regcache.
1967 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
1970 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1971 instead of bfd_make_section_anyway.
1972 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1973 when clearing SEC_LOAD.
1975 2007-06-19 Joseph Myers <joseph@codesourcery.com>
1977 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1978 registers for big-endian.
1980 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1982 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
1983 * disasm.c (dump_insns, gdb_print_insn): Likewise.
1984 * gdbarch.c, gdbarch.h: Regenerate.
1986 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1988 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
1989 gdbarch_believe_pcc_promotion.
1990 * stabsread.c (define_symbol): Likewise.
1991 Remove unnecessary definition.
1992 * coffread.c (process_coff_symbol): Remove unnecessary code.
1993 * gdbarch.c, gdbarch.h: Regenerate.
1995 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
1997 * configure.ac: Do not use ${objdir}.
1998 * configure: Regenerated.
2000 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2002 * gdbarch.sh (deprecated_register_size): Remove.
2003 * gdbarch.h, gdbarch.c: Regenerate.
2005 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2006 by INT_REGISTER_SIZE.
2007 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2008 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2009 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2010 set_gdbarch_deprecated_register_size.
2012 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2014 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2015 gdbarch_deprecated_fp_regnum.
2016 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2017 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2018 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2019 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2021 * gdbarch.c, gdbarch.h: Regenerate.
2023 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2025 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2026 gdbarch_extract_return_value.
2027 * value.c (generic_use_struct_convention): Likewise (comment).
2028 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2029 * arch-utils.c (legacy_return_value): Likewise.
2030 * arch-utils.h (legacy_return_value): Likewise (comment).
2031 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2032 gdbarch_store_return_value.
2033 * stack.c (return_command): Likewise (comment).
2034 * arch-utils.h (legacy_return_value): Likewise (comment).
2035 * arch-utils.c (legacy_return_value): Likewise.
2036 * gdbarch.c, gdbarch.h: Regenerate.
2038 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2040 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2041 gdbarch_deprecated_use_struct_convention.
2042 * arch-utils.c (legacy_return_value): Likewise.
2043 * gdbarch.c, gdbarch.h: Regenerate.
2045 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2047 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2048 gdbarch_deprecated_function_start_offset.
2049 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2050 * linespec.c (minsym_found): Likewise.
2051 * infrun.c (handle_inferior_event): Likewise.
2052 * infcall.c (find_function_addr): Likewise.
2053 * cli/cli-cmds.c (disassemble_command): Likewise.
2054 * gdbarch.c, gdbarch.h: Regenerate.
2056 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2058 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2059 gdbarch_deprecated_reg_struct_has_addr.
2060 * infcall.c (call_function_by_hand): Likewise.
2061 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2062 * gdbarch_deprecated_reg_struct_has_addr_p.
2063 * infcall.c (call_function_by_hand): Likewise.
2064 * gdbarch.c, gdbarch.h: Regenerate.
2066 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2068 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2069 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2070 (sh_gdbarch_init): Remove
2071 set_gdbarch_deprecated_extract_struct_value_address.
2072 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2073 (sh64_gdbarch_init): Remove
2074 set_gdbarch_deprecated_extract_struct_value_address.
2075 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2076 (ia64_gdbarch_init): Remove
2077 set_gdbarch_deprecated_extract_struct_value_address.
2078 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2079 (frv_gdbarch_init): Remove
2080 set_gdbarch_deprecated_extract_struct_value_address.
2081 * gdbarch.c, gdbarch.h: Regenerate.
2083 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2085 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2086 * v850-tdep.c (v850_unwind_sp): Likewise.
2087 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2088 * stack.c (frame_info): Likewise.
2089 * stabsread.c (define_symbol): Likewise.
2090 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2091 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2092 (sh_unwind_sp): Likewise.
2093 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2094 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2095 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2096 (rs6000_frame_cache): Likewise.
2097 * rs6000-nat.c (store_register): Likewise.
2098 * remote-mips.c (mips_wait): Likewise.
2099 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2100 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2101 (ppc64_sysv_abi_push_dummy_call): Likewise.
2102 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2103 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2104 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2105 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2106 * m32r-rom.c (m32r_supply_register): Likewise.
2107 * frame.c (frame_sp_unwind): Likewise.
2108 * mips-tdep.c (mips_insn16_frame_cache)
2109 (mips_insn32_frame_cache): Likewise (comment).
2110 * m68klinux-nat.c (supply_gregset): Likewise.
2111 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2112 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2113 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2114 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2115 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2116 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2117 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2118 (cris_register_type, crisv32_register_type)
2119 (cris_dwarf2_frame_init_reg): Likewise.
2120 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2121 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2122 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2123 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2125 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2126 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2127 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2128 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2129 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2130 * v850-tdep.c (v850_unwind_pc): Likewise.
2131 * stack.c (frame_info): Likewise.
2132 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2133 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2134 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2135 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2136 (sh_dsp_show_regs): Likewise.
2137 * shnbsd-tdep.c (shnbsd_supply_gregset)
2138 (shnbsd_collect_gregset): Likewise.
2139 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2140 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2141 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2142 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2143 (6000_register_reggroup_p, rs6000_unwind_pc)
2144 (rs6000_frame_cache): Likewise.
2145 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2146 (rs6000_store_inferior_registers): Likewise.
2147 * remote-mips.c (mips_wait, mips_load): Likewise.
2148 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2149 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2150 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2151 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2152 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2153 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2154 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2155 (store_ppc_registers, fill_gregset): Likewise.
2156 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2157 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2158 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2159 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2160 * m68klinux-nat.c (supply_gregset): Likewise.
2161 * irix5-nat.c (fill_gregset): Likewise.
2162 * i386-tdep.c (i386_unwind_pc): Likewise.
2163 * i386-linux-nat.c (i386_linux_resume): Likewise.
2164 * frame.c (get_prev_frame_1): Likewise.
2165 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2166 * dbug-rom.c (dbug_supply_register): Likewise.
2167 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2168 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2169 (cris_register_type, crisv32_register_type, crisv32_register_name)
2170 (cris_dwarf2_frame_init_reg, find_step_target)
2171 (cris_software_single_step, cris_supply_gregset)
2172 (cris_regnums): Likewise.
2173 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2174 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2175 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2176 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2177 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2179 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2180 * dbug-rom.c (dbug_supply_register): Likewise.
2181 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2182 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2183 * win32-nat.c (win32_resume): Likewise.
2184 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2185 * m68k-tdep.c (m68k_register_type): Likewise.
2186 * m68klinux-nat.c (supply_gregset): Likewise.
2188 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2189 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2190 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2191 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2192 (fv_reg_base_num, dr_reg_base_num): Likewise.
2193 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2194 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2195 (sh64_extract_return_value, sh64_store_return_value)
2196 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2197 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2198 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2199 (invalidate_cache): Likewise.
2200 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2201 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2202 (mipsnbsd_fill_fpreg): Likewise.
2203 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2204 (mipsnbsd_store_inferior_registers): Likewise.
2205 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2206 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2207 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2208 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2209 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2210 (fill_fpregset): Likewise.
2211 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2212 * i386-tdep.h (struct_return): Likewise (comment).
2213 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2214 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2215 (go32_store_registers): Likewise.
2216 * alpha-tdep.c (alpha_next_pc): Likewise.
2217 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2218 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2219 (alphabsd_store_inferior_registers): Likewise.
2220 * core-regset.c (fetch_core_registers): Likewise.
2221 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2223 * gdbarch.c, gdbarch.h: Regenerate.
2225 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2227 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2228 * dbxread.c (start_psymtab): Check HAVE_ELF.
2229 (aout_sym_fns): Likewise.
2230 * elfread.c (elf_symfile_segments): New.
2231 (elf_sym_fns): Add elf_symfile_segments.
2232 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2233 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2234 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2235 * somread.c (som_sym_fns): Use default_symfile_segments.
2236 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2237 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2238 (default_symfile_segments): New function.
2239 (syms_from_objfile): Update call to find_sym_fns.
2240 (symfile_get_segment_data, free_symfile_segment_data): New.
2241 (symfile_map_offsets_to_segments): New.
2242 (symfile_find_segment_sections): New.
2243 * symfile.h (struct symfile_segment_data): New.
2244 (struct sym_fns): Add sym_segments.
2245 (default_symfile_segments, symfile_get_segment_data)
2246 (free_symfile_segment_data): New prototypes.
2247 (symfile_map_offsets_to_segments): Likewise.
2248 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2249 * Makefile.in (COMMON_OBS): Remove elfread.o.
2250 (elf_internal_h): New.
2251 (elfread.o): Update.
2252 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2254 * config.in, configure: Regenerated.
2255 * NEWS: Mention qOffsets changes.
2257 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2259 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2260 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2261 Replace global variable declaration with compatibility macro.
2262 (struct builtin_m2_type): New data type.
2263 (builtin_m2_type): Add prototype.
2264 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2265 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2266 Remove global variables.
2267 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2268 (build_m2_types): New function.
2269 (m2_type_data): New variable.
2270 (builtin_m2_type): New function.
2271 (_initialize_m2_language): Do not build data types. Register
2272 m2_type_data per-gdbarch data.
2274 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2276 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2277 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2278 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2279 builtin_type_f_real_s8, builtin_type_f_real_s16,
2280 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2281 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2282 variable declaration with compatibility macro.
2283 (struct builtin_f_type): New data type.
2284 (builtin_f_type): Add prototype.
2285 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2286 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2287 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2288 builtin_type_f_real_s8, builtin_type_f_real_s16,
2289 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2290 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2291 (f_language_arch_info): Use builtin_f_type instead of variables.
2292 (build_fortran_types): Build builtin_f_type structure instead of
2293 setting global type variables.
2294 (f_type_data): New variable.
2295 (builtin_f_type): New function.
2296 (_initialize_f_language): Do not call build_fortran_types. Do not
2297 swap global type variables. Register f_type_data per-gdbarch data.
2299 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2301 * f-lang.c (_initialize_f_language): Do not initialize or
2302 swap builtin_type_string.
2304 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2306 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2307 value_of_builtin_frame_reg): Remove.
2308 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2309 inactive call to value_of_builtin_frame_reg.
2311 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2313 * gdbarch.sh (bfd_vma_bit): Remove.
2314 * gdbarch.c, gdbarch.h: Regenerate.
2316 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2317 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2318 (build_gdbtypes): Do not initialize it.
2319 (_initialize_gdbtypes): Do not swap it.
2321 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2323 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2324 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2325 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2326 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2327 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2328 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2329 builtin_type_vec64, builtin_type_vec128): Remove.
2330 (init_simd_type): Remove.
2331 (init_vector_type): Make global.
2332 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2333 (build_gdbtypes): Do not build vector types.
2334 (_initialize_gdbtypes): Do not swap vector types.
2335 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2336 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2337 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2338 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2339 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2340 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2341 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2342 (init_vector_type): Add prototype.
2344 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2345 i386_sse_type members.
2346 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2347 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2348 (i386_init_types): Do not build vector types.
2349 (i386_mmx_type, i386_sse_type): New functions.
2350 (i386_register_type): Call them instead of using global variables.
2351 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2352 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2353 of using global variable.
2355 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2356 and ppc_builtin_type_vec128 members.
2357 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2358 (rs6000_builtin_type_vec128): Likewise.
2359 (rs6000_register_type): Call them instead of using builtin_type_vec64
2360 and builtin_type_vec128.
2361 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2363 * spu-tdep.c (struct gdbarch_tdep): New data type.
2364 (spu_builtin_type_vec128): Remove variable.
2365 (spu_builtin_type_vec128): New function.
2366 (spu_register_type): Call it instead of using global variable.
2367 (spu_gdbarch_init): Allocate tdep structure.
2368 (spu_init_vector_type): Remove function.
2369 (_initialize_spu_tdep): Do not call it.
2371 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2373 * amd64-tdep.c (struct amd64_register_info): Remove.
2374 (amd64_register_info): Remove.
2375 (amd64_register_names): New static variable.
2376 (AMD64_NUM_REGS): Use amd64_register_names instead of
2377 amd64_register_info.
2378 (amd64_register_name): Likewise.
2379 (amd64_register_type): Do not refer to amd64_register_info.
2381 * s390-tdep.c (struct s390_register_info): Remove.
2382 (s390_register_info): Remove.
2383 (s390_register_name): Do not refer to s390_register_info.
2384 (s390_register_type): Likewise.
2386 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2387 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2388 (sparc64_register_names, sparc64_pseudo_register_names): New.
2389 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2390 sparc64_register_names and sparc64_pseudo_register_names instead of
2391 sparc64_register_info and sparc64_pseudo_register_info.
2392 (sparc64_register_name): Likewise.
2393 (sparc64_register_type): Do not refer to sparc64_register_info
2394 and sparc64_pseudo_register_info.
2396 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2398 * c-lang.c (cplus_builtin_types): Remove.
2399 (enum cplus_primitive_types): New data type.
2400 (cplus_language_arch_info): New function.
2401 (cplus_language_defn): Set la_language_arch_info member. Do not set
2402 la_builtin_type_vector and string_char_type members.
2404 * f-lang.c (f_builtin_types): Remove.
2405 (enum f_primitive_types): New data type.
2406 (f_language_arch_info): New function.
2407 (f_language_de): Set la_language_arch_info member. Do not set
2408 la_builtin_type_vector and string_char_type members.
2410 * m2-lang.c (m2_builtin_types): Remove.
2411 (enum m2_primitive_types): New data type.
2412 (m2_language_arch_info): New function.
2413 (m2_language_defn): Set la_language_arch_info member. Do not set
2414 la_builtin_type_vector and string_char_type members.
2416 * objc-lang.c (objc_builtin_types): Remove.
2417 (objc_language): Set la_language_arch_info member. Do not set
2418 la_builtin_type_vector and string_char_type members.
2420 * p-lang.c (pascal_builtin_types): Remove.
2421 (enum pascal_primitive_types): New data type.
2422 (pascal_language_arch_info): New function.
2423 (pascal_language_defn): Set la_language_arch_info member. Do not set
2424 la_builtin_type_vector and string_char_type members.
2426 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2428 * regcache.c (struct regcache): Add ptid_t member.
2429 (regcache_xmalloc): Initialize it.
2430 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2431 (regcache_dup): Likewise.
2432 (regcache_dup_no_passthrough): Likewise.
2433 (current_regcache): Make static.
2434 (registers_ptid): Remove variable.
2435 (get_thread_regcache): New function.
2436 (get_current_regcache): New function.
2437 (registers_changed): Implement by freeing current regcache.
2438 (regcache_raw_read): Do not refer to current_regcache. Set
2439 inferior_ptid to regcache->ptid while calling target routines.
2440 (regcache_raw_write): Likewise.
2441 (regcache_raw_supply): Do not refer to current_regcache.
2442 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2443 (write_pc_pid): Likewise.
2444 (build_regcache): Remove.
2445 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2446 or deprecated_register_gdbarch_swap. Do not initialize
2448 * regcache.h (get_current_regcache): Add prototype.
2449 (get_thread_regcache): Likewise.
2450 (current_regcache): Remove declaration.
2452 * corelow.c (core_open): Replace current_regcache by
2453 get_current_regcache ().
2454 * frame.c (frame_pop): Likewise.
2455 (put_frame_register): Likewise.
2456 (get_current_frame, create_new_frame): Likewise.
2457 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2458 * stack.c (return_command): Likewise.
2459 * infcall.c (call_function_by_hand): Likewise.
2460 * infrun.c (resume): Likewise.
2461 (save_inferior_status, restore_inferior_status): Likewise.
2462 * linux-fork.c (fork_load_infrun_state): Likewise.
2463 (fork_save_infrun_state): Likewise.
2464 * win32-nat.c (win32_resume): Likewise.
2465 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2466 * monitor.c (monitor_wait): Likewise.
2467 * remote.c (remote_wait): Likewise.
2468 * remote-mips.c (mips_wait): Likewise.
2470 * bsd-kvm.c (bsd_kvm_open): Likewise
2471 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2472 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2473 * i386-linux-nat.c (i386_linux_resume): Likewise.
2474 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2475 (ia64_linux_stopped_data_address): Likewise.
2477 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2478 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2479 * mep-tdep.c (current_me_module, current_options): Likewise.
2480 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2482 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2483 regcache instead of current_regcache. Call target_fetch_registers.
2484 (linux_nat_corefile_thread_callback): Update call site.
2485 (linux_nat_do_registers): Likewise.
2486 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2487 of current_regcache.
2488 (procfs_make_note_section): Likewise.
2489 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2490 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2491 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2492 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2494 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2496 * regcache.c (read_register, read_register_pid): Remove.
2497 (write_register, write_register_pid): Likewise.
2498 * regcache.h (read_register, read_register_pid): Remove prototype.
2499 (write_register, write_register_pid): Likewise.
2501 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2503 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2504 (write_pc): Likewise. Remove default implementation, add predicate.
2505 * gdbarch.c, gdbarch.h: Regenerate.
2506 * regcache.c (read_pc_pid): Use current regcache instead of calling
2508 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2510 (generic_target_write_pc): Remove.
2511 * inferior.h (generic_target_write_pc): Remove.
2512 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2514 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2515 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2516 * sh-tdep.c (sh_gdbarch_init): Likewise.
2517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2519 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2520 argument. Use REGCACHE instead of calling read_register_pid.
2521 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2522 * hppa-tdep.c (hppa_read_pc): Likewise.
2523 * hppa-tdep.h (hppa_read_pc): Likewise.
2524 * ia64-tdep.c (ia64_read_pc): Likewise.
2525 * m32r-tdep.c (m32r_read_pc): Likewise.
2526 * mep-tdep.c (mep_read_pc): Likewise.
2527 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2528 * spu-tdep.c (spu_read_pc): Likewise.
2530 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2531 argument. Use REGCACHE instead of calling write_register_pid.
2532 * avr-tdep.c (avr_write_pc): Likewise.
2533 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2534 * hppa-tdep.c (hppa_write_pc): Likewise.
2535 * hppa-tdep.h (hppa_write_pc): Likewise.
2536 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2537 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2538 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2539 * ia64-tdep.c (ia64_write_pc): Likewise.
2540 * ia64-tdep.h (ia64_write_pc): Likewise.
2541 * m32r-tdep.c (m32r_write_pc): Likewise.
2542 * m88k-tdep.c (m88k_write_pc): Likewise.
2543 * mep-tdep.c (mep_write_pc): Likewise.
2544 * mips-tdep.c (mips_write_pc): Likewise.
2545 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2546 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2547 * sparc-tdep.c (sparc_write_pc): Likewise.
2548 * spu-tdep.c (spu_write_pc): Likewise.
2550 * mips-tdep.c (read_signed_register): Remove.
2551 (read_signed_register_pid): Likewise.
2552 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2553 Use REGCACHE instead of calling read_signed_register_pid.
2555 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2557 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2558 * gdbarch.c, gdbarch.h: Regenerate.
2559 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2560 (push_dummy_code): Likewise. Pass it to callee.
2561 (call_function_by_hand): Pass current regcache to push_dummy_code.
2563 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2564 argument. Use it instead of current_regcache.
2566 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2567 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2569 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2571 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2572 * gdbarch.c, gdbarch.h: Regenerate.
2573 * infrun.c (handle_inferior_event): Pass current frame to
2574 gdbarch_get_longjmp_target.
2576 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2577 Read registers from FRAME instead of using read_register.
2578 Use get_frame_arch instead of current_gdbarch.
2579 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2580 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2581 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2582 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2583 (mips64_linux_get_longjmp_target): Likewise.
2584 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2586 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2588 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2589 * gdbarch.c, gdbarch.h: Regenerate.
2590 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2591 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2592 * infrun.c (handle_inferior_event): Pass current frame to
2593 gdbarch_skip_trampoline_code and skip_language_trampoline.
2595 * language.c (unk_lang_trampoline): Add FRAME argument.
2596 (skip_language_trampoline): Add FRAME argument. Pass it to
2597 skip_trampoline callback.
2598 * language.h: Add forward declaration of struct frame_info.
2599 (struct language_defn): Add FRAME argument to skip_trampoline.
2600 (skip_language_trampoline): Add FRAME argument.
2601 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2602 to skip_trampoline callback.
2603 * cp-abi.h: Add forward declaration of struct frame_info.
2604 (cplus_skip_trampoline): Add FRAME argument.
2605 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2606 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2607 to gdbarch_skip_trampoline_code.
2608 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2609 to gdbarch_skip_trampoline_code.
2611 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2612 * symtab.h (find_solib_trampoline_target): Likewise.
2613 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2614 find_solib_trampoline_target.
2616 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2617 from FRAME instead of calling read_register.
2619 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2620 argument. Read registers from FRAME instead of using read_register.
2621 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2622 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2624 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2627 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2629 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2630 registers from FRAME instead of using read_signed_register.
2632 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2634 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2635 instead of using read_register.
2636 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2637 ppc64_standard_linkage_target.
2638 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2639 Pass it to find_solib_trampoline_target. Read registers from FRAME
2640 instead of using read_register.
2642 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2645 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2647 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2649 * gdbarch.c, gdbarch.h: Regenerate.
2650 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2652 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2653 registers from FRAME instead of using read_register.
2654 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2655 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2656 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2659 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2660 from FRAME instead of using read_register.
2661 (thumb_get_next_pc): Likewise.
2662 (arm_get_next_pc): Likewise.
2663 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2664 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2665 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2668 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2669 from FRAME instead of using read_register.
2670 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2671 to find_step_target.
2673 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2674 from FRAME instead of using read_register / read_signed_register.
2675 (extended_mips16_next_pc): Likewise.
2676 (mips16_next_pc): Likewise.
2677 (mips_next_pc): Likewise.
2678 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2679 to mips_next_pc. Use get_frame_pc instead of read_pc.
2680 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2683 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2684 of current frame. Read registers from FRAME.
2685 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2686 branch_dest. Use get_frame_pc instead of read_pc.
2687 (rs6000_software_single_step): Likewise.
2688 (bl_to_blrl_insn_p): Do not call branch_dest.
2689 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2692 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2693 Read registers from FRAME instead of current regcache.
2694 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2695 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2696 * sparc-tdep.c (sparc_address_from_register): Remove.
2697 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2698 GDBARCH. Pass FRAME to step_trap callback.
2699 (sparc_step_trap): Add FRAME argument.
2700 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2701 to sparc_analyze_control_transfer. Read registers from FRAME instead
2702 of calling sparc_address_from_register.
2703 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2705 (sparc_address_from_register): Remove prototype.
2706 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2707 (sparcnbsd_step_trap): Add FRAME argument.
2709 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2710 by FRAME. Read registers from FRAME instead of REGCACHE.
2712 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2714 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2715 instead of calling read_register.
2717 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2718 calling write_register.
2720 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2721 calling write_register.
2723 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2724 instead of calling read_register.
2725 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2726 instead of calling read_register and write_register.
2728 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2729 instead of current_regcache.
2731 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2732 of calling write_register.
2733 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2734 parameter instead of current_regcache.
2736 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2737 instead of calling read_register.
2738 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2739 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2740 (mips_n32n64_push_dummy_call): Likewise.
2741 (mips_o32_push_dummy_call): Likewise.
2742 (mips_o64_push_dummy_call): Likewise.
2744 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2745 parameter instead of current_regcache.
2747 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2748 Use it instead of read_register and write_register.
2749 (xtensa_register_read_masked): Likewise.
2750 (xtensa_pseudo_register_read): Update call.
2751 (xtensa_pseudo_register_write): Likewise.
2752 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2753 instead of calling read_register.
2754 (xtensa_push_dummy_call): Update comment.
2756 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2758 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2759 by frame_unwind_register_signed calls.
2760 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2761 frame allocations when called with NULL NEXT_FRAME parameter.
2762 (read_next_frame_reg): Remove.
2764 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2765 instead of reading the FPSCR register.
2766 (sh_frame_cache): Pass unwound FPSCR register value to
2767 sh_analyze_prologue.
2768 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2770 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2771 instead of reading the CTBP register.
2772 (v850_frame_cache): Pass unwound CTBP register value to
2773 v850_analyze_prologue.
2775 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2777 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2778 * sh-tdep.c (sh_show_regs): Likewise.
2779 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2780 (sh_generic_show_regs): Add FRAME parameter. Use register
2781 values from that frame instead of calling read_register.
2782 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2783 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2784 sh_dsp_show_regs): Likewise.
2785 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2786 sh64_show_regs): Likewise.
2788 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2790 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2791 current regcache instead of calling read_register.
2793 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2795 * mep-tdep.c (current_me_module): Read from current regcache
2796 instead of calling read_register.
2797 (current_options): Likewise.
2799 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2801 * cris-tdep.c (cris_stopped_data_address): Read register values
2802 from current frame instead of calling read_register.
2803 * frv-tdep.c (frv_stopped_data_address): Likewise.
2805 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2807 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2808 instead of write_register (PC_REGNUM, ...).
2810 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2812 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2813 explaining why the PC adjustment code is necessary.
2815 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
2817 * m68k-tdep.h (enum m68k_flavour): New.
2818 (struct gdbarch_tdep): New fields
2819 float_return, flavour and fpregs_present.
2820 * m68k-tdep.c (m68k_register_type): Use
2821 fpregs_present and conditionalize floating
2822 registers type on flavour.
2823 (m68k_register_names): New.
2824 (m68k_register_name): Use the above.
2825 (m68k_convert_register_p): Consult fpregs_present.
2826 (m68k_register_to_value, m68k_value_to_register):
2827 Use register_type to obtain the type of floating
2829 (m68k_svr4_extract_return_value): Check tdep->float_return.
2830 Use register_type to get the type of floating
2832 (m68k_svr4_store_return_value): Likewise.
2833 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2834 (m68k_analyze_register_saves): Likewise.
2835 (m68k_gdbarch_init): Extract infromation
2836 from XML description, if present. Guess coldfire by
2837 looking at the file, if present. Conditionalize
2838 setting of long double format. Set decr_pc_after_break
2839 to 2 on coldfire and fido. Enable XML-driven
2840 register description.
2841 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2842 size of tdep->fpreg_type, as opposed to hardcoded value.
2843 * Makefile.in (m68k-tdep.o): Update dependencies.
2845 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2847 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2848 qXfer:spu:write remote packet types.
2850 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2852 * xml-tdesc.c (tdesc_start_target): New.
2853 (target_attributes): New.
2854 (tdesc_elements): Use it.
2855 * features/gdb-target.dtd: Add #FIXED version attribute for
2858 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
2860 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2862 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2864 * fork-child.c (fork_inferior): Update comment.
2866 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2868 * features/Makefile: Generate regformats for mips-linux and
2870 * features/sort-regs.xsl: Correct typo.
2871 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2872 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2875 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2877 * config/mips/linux.mh (TDEP_XML): New.
2878 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2879 * mips-linux-nat.c (mips_linux_register_addr): Handle
2880 MIPS_RESTART_REGNUM.
2881 (mips64_linux_register_addr): Likewise.
2882 (super_xfer_partial, mips_linux_xfer_partial): New.
2883 (_initialize_mips_linux_nat): Add them to the target_ops.
2884 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2885 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2886 (mips_linux_o32_sigframe_init)
2887 (mips_linux_n32n64_sigframe_init): Likewise.
2888 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2889 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2890 "org.gnu.gdb.mips.linux" feature.
2891 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2892 (mips_linux_restart_reg_p): New prototype.
2893 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2894 initialization routine.
2895 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2897 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2899 * Makefile.in (mips-tdep.o): Update.
2900 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2901 (mips_n32_n64_aliases, mips_register_aliases): New.
2902 (mips_register_name): Call tdesc_register_name.
2903 (mips_tdesc_register_reggroup_p): New.
2904 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2905 (mips_gdbarch_init): Add target-described register support.
2906 Register aliases for register names.
2907 * target-descriptions.c (tdesc_register_name): Make global.
2908 (tdesc_register_in_reggroup_p): New function, broken out from
2909 tdesc_register_reggroup_p.
2910 (tdesc_register_reggroup_p): Use it.
2911 * target-descriptions.h (tdesc_register_name)
2912 (tdesc_register_in_reggroup_p): New prototypes.
2913 * NEWS: Correct formatting. Mention MIPS register support.
2914 * features/mips-cp0.xml, features/mips-fpu.xml,
2915 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2916 features/mips64-cpu.xml: New files.
2918 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2920 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2921 * valops.c (value_cast): Likewise.
2922 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2923 * ui-out.c (ui_out_field_core_addr): Likewise.
2924 * tracepoint.c (tracepoints_info): Likewise.
2925 * symtab.c (print_msymbol_info): Likewise.
2926 * solib-irix.c (irix_current_sos)
2927 (irix_open_symbol_file_object): Likewise.
2928 * remote.c (build_remote_gdbarch_data): Likewise.
2929 * prologue-value.c (make_pv_area): Likewise.
2930 * procfs.c (info_mappings_callback): Likewise.
2931 * printcmd.c (print_scalar_formatted)
2932 (deprecated_print_address_numeric): Likewise.
2933 * memattr.c (mem_info_command): Likewise.
2934 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2935 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2936 * exec.c (print_section_info): Likewise.
2937 * dwarf2read.c (read_subrange_type): Likewise.
2938 * dwarf2loc.c (find_location_expression): Likewise.
2939 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2940 (signed_address_type, execute_stack_op): Likewise.
2941 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2942 * gdbarch.c, gdbarch.h: Regenerate.
2944 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2946 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2947 * arch-utils.c (show_architecture): Likewise.
2948 * remote-mips.c (mips_open): Likewise
2949 * nto-tdep.c (nto_find_and_open_solib)
2950 (nto_init_solib_absolute_prefix): Likewise.
2951 * nto-procfs (procfs_open): Likewise.
2952 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2953 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2954 * gdbarch.c, gdbarch.h: Regenerate.
2956 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2958 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2959 * gdbtypes.c (build_flt): Likewise.
2960 * gdbarch.c, gdbarch.h: Regenerate.
2962 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2964 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2965 gdbarch_breakpoint_from_pc.
2966 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2967 * remote.c (remote_insert_breakpoint)
2968 (remote_insert_hw_breakpoint): Likewise.
2969 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2970 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2971 * breakpoint.h (bp_target_info): Likewise (comment).
2972 * breakpoint.c (read_memory_nobpt): Likewise.
2973 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2974 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2975 * gdbarch.c, gdbarch.h: Regenerate.
2977 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2979 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
2980 * solib-svr4.c (svr4_truncate_ptr): Likewise.
2981 * solib-pa64.c (read_dynamic_info): Likewise.
2982 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2983 * solib.c (info_sharedlibrary_command): Likewise.
2984 * s390-nat.c (SUBOFF): Likewise.
2985 * p-valprint.c (pascal_val_print): Likewise.
2986 * procfs.c (info_proc_mappings): Likewise.
2987 * printcmd.c (decode_format): Likewise.
2988 * nto-tdep.c (nto_truncate_ptr): Likewise.
2989 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2990 (mips64_linux_get_longjmp_target): Likewise.
2991 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2992 * jv-valprint.c (java_value_print): Likewise.
2993 * jv-lang.c (get_java_object_header_size): Likewise.
2994 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2995 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2996 (hppa_hpux_unwind_adjust_stub): Likewise.
2997 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2998 * gdbtypes.c (make_pointer_type, make_reference_type)
2999 (smash_to_memberptr_type): Likewise.
3000 * gdbarch.c, gdbarch.h: Regenerate.
3002 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3004 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3005 (print_gp_register_row): Stop before printing a register bigger
3006 than the ABI register size.
3007 (mips_print_registers_info): Update call to mips_print_register.
3009 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3011 * expression.h (enum exp_opcode): Document a register name for
3013 * parse.c (write_dollar_variable): Write the register name for
3015 (operator_length_standard): Expect the register name following
3017 * ada-lang.c (resolve_subexp): Likewise.
3018 * ax-gdb.c (gen_expr): Likewise.
3019 * eval.c (evaluate_subexp_standard): Likewise.
3020 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3022 * tracepoint.c (encode_actions): Likewise.
3024 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3026 * utils.c (set_screen_size): Use INT_MAX for default columns.
3028 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3030 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3031 qXfer:spu:write packet types.
3033 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3035 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3036 * gdbarch.c, gdbarch.h: Regenerate.
3038 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3040 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3041 gdbarch_stab_reg_to_regnum.
3042 * stabsread.c (define_symbol): Likewise.
3043 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3044 gdbarch_ecoff_reg_to_regnum.
3045 * mdebugread.c (parse_symbol): Likewise.
3046 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3047 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3048 gdbarch_dwarf_reg_to_regnum.
3049 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3050 * coffread.c (process_coff_symbol): Likewise.
3051 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3052 gdbarch_dwarf2_reg_to_regnum.
3053 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3054 (locexpr_describe_location): Likewise.
3055 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3056 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3057 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3058 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3059 * gdbarch.c, gdbarch.h: Regenerate.
3061 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3063 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3064 gdbarch_smash_text_address.
3065 * somread.c (som_symtab_read): Likewise.
3066 * elfread.c (record_minimal_symbol): Likewise.
3067 * dbxread.c (process_one_symbol): Likewise.
3068 * coffread.c (coff_symtab_read): Likewise.
3069 * gdbarch.c, gdbarch.h: Regenerate.
3071 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3073 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3074 * findvar.c (value_from_register): Likewise.
3075 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3076 * valops.c (value_assign): Likewise.
3077 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3078 gdbarch_convert_register_p.
3079 * findvar.c (value_from_register): Likewise.
3080 * valops.c (value_assign): Likewise.
3081 * gdbarch.c, gdbarch.h: Regenerate.
3083 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3085 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3086 gdbarch_register_sim_regno.
3087 * sim-regno.h (sim_regno): Likewise (comment).
3088 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3089 * gdbarch.c, gdbarch.h: Regenerate.
3091 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3093 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3094 gdbarch_virtual_frame_pointer.
3095 * tracepoint.c (encode_actions): Likewise.
3096 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3097 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3098 * gdbarch.c, gdbarch.h: Regenerate.
3100 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3102 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3103 * p-lang.c (pascal_create_fundamental_type): Likewise.
3104 * objc-lang.c (objc_create_fundamental_type): Likewise.
3105 * mdebugread.c (_initialize_mdebugread): Likewise.
3106 * m2-lang.c (m2_create_fundamental_type)
3107 (_initialize_m2_language): Likewise.
3108 * gdbtypes.c (build_gdbtypes): Likewise.
3109 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3110 * doublest.c (floatformat_from_length): Likewise.
3111 * c-lang.c (c_create_fundamental_type): Likewise.
3112 * ada-lang.c (ada_create_fundamental_type)
3113 (ada_language_arch_info): Likewise.
3114 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3115 * value.c (unpack_double): Likewise (comment).
3116 * gdbtypes.c (build_gdbtypes): Likewise.
3117 * doublest.c (floatformat_from_length): Likewise.
3118 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3119 * valarith.c (value_binop): Likewise.
3120 * p-lang.c (pascal_create_fundamental_type): Likewise.
3121 * objc-lang.c (objc_create_fundamental_type): Likewise.
3122 * mdebugread.c (_initialize_mdebugread): Likewise.
3123 * m2-lang.c (m2_create_fundamental_type): Likewise.
3124 * gdbtypes.c (build_gdbtypes): Likewise.
3125 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3126 * doublest.c (floatformat_from_length): Likewise.
3127 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3128 * c-lang.c (c_create_fundamental_type): Likewise.
3129 * ada-lex.l (processReal): Likewise.
3130 * ada-lang.c (ada_create_fundamental_type)
3131 (ada_language_arch_info): Likewise.
3132 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3133 * value.c (unpack_double): Likewise (comment).
3134 * gdbtypes.c (build_gdbtypes): Likewise.
3135 * doublest.c (floatformat_from_length): Likewise.
3136 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3137 gdbarch_long_double_bit.
3138 * p-lang.c (pascal_create_fundamental_type): Likewise.
3139 * objc-lang.c (objc_create_fundamental_type): Likewise.
3140 * m2-lang.c (m2_create_fundamental_type): Likewise.
3141 * gdbtypes.c (build_gdbtypes): Likewise.
3142 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3143 * doublest.c (floatformat_from_length): Likewise.
3144 * c-lang.c (c_create_fundamental_type): Likewise.
3145 * ada-lex.l (processReal): Likewise.
3146 * ada-lang.c (ada_create_fundamental_type)
3147 (ada_language_arch_info): Likewise.
3148 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3149 gdbarch_long_double_format.
3150 * gdbtypes.c (build_gdbtypes): Likewise.
3151 * doublest.c (floatformat_from_length): Likewise.
3152 * gdbarch.c, gdbarch.h: Regenerate.
3154 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3156 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3157 * ada-lang.c (ada_create_fundamental_type)
3158 (ada_language_arch_info): Likewise.
3159 * c-lang.c (c_create_fundamental_type): Likewise.
3160 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3161 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3162 * m2-lang.c (m2_create_fundamental_type): Likewise.
3163 * objc-lang.c (objc_create_fundamental_type): Likewise.
3164 * p-lang.c (pascal_create_fundamental_type): Likewise.
3165 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3166 * c-exp.y (parse_number): Likewise.
3167 * objc-exp.y (parse_number): Likewise.
3168 * ada-lex.l (processInt): Likewise.
3169 * f-exp.y (parse_number): Likewise.
3170 * p-exp.y (parse_number): Likewise.
3171 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3172 (gdbtypes_post_init, build_gdbtypes): Likewise.
3173 * p-lang.c (pascal_create_fundamental_type): Likewise.
3174 * parse.c (build_parse): Likewise.
3175 * xcoffread.c (_initialize_xcoffread): Likewise.
3176 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3177 (read_range_type): Likewise.
3178 * objc-lang.c (objc_create_fundamental_type): Likewise.
3179 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3180 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3181 (m2_create_fundamental_type): Likewise.
3182 * c-lang.c (c_create_fundamental_type): Likewise.
3183 * coffread.c (coff_read_enum_type): Likewise.
3184 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3185 * dwarf2read.c (new_symbol): Likewise.
3186 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3187 * c-exp.y (parse_number): Likewise.
3188 * objc-exp.y (parse_number): Likewise.
3189 * ada-lex.l (processInt): Likewise.
3190 * f-exp.y (parse_number): Likewise.
3191 * p-exp.y (parse_number): Likewise.
3192 * valarith.c (value_binop): Likewise.
3193 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3194 * ada-lang.c (ada_create_fundamental_type)
3195 (ada_language_arch_info): Likewise.
3196 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3197 * symfile.c (TARGET_LONG_BYTES): Likewise.
3198 * p-lang.c (pascal_create_fundamental_type): Likewise.
3199 * objc-lang.c (objc_create_fundamental_type): Likewise.
3200 * m2-lang.c (m2_create_fundamental_type): Likewise.
3201 * f-lang.c (f_create_fundamental_type): Likewise.
3202 * c-lang.c (c_create_fundamental_type): Likewise.
3203 * coffread.c (decode_base_type): Likewise.
3204 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3205 * c-exp.y (parse_number): Likewise.
3206 * objc-exp.y (parse_number): Likewise.
3207 * p-exp.y (parse_number): Likewise.
3208 * ada-lang.c (ada_create_fundamental_type)
3209 (ada_language_arch_info): Likewise.
3210 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3211 * stabsread.c (read_range_type): Likewise.
3212 * p-lang.c (pascal_create_fundamental_type): Likewise.
3213 * objc-lang.c (objc_create_fundamental_type): Likewise.
3214 * m2-lang.c (m2_create_fundamental_type): Likewise.
3215 * f-lang.c (f_create_fundamental_type): Likewise.
3216 * c-lang.c (c_create_fundamental_type): Likewise.
3217 * gdbarch.c, gdbarch.h: Regenerate.
3219 2007-06-12 Andreas Schwab <schwab@suse.de>
3221 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3222 (struct frame_unwind): Add dealloc_cache.
3223 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3225 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3226 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3227 (libunwind_frame_unwind): Set dealloc_cache.
3228 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3230 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3231 Markus Deuling <deuling@de.ibm.com>
3233 * remote.c (remote_write_qxfer): New function.
3234 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3235 (remote_read_qxfer): Do not cache empty objects.
3236 (_initialize_remote): Add PACKET_qXfer_spu_read and
3237 PACKET_qXfer_spu_write.
3239 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3241 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3242 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3244 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3245 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3246 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3247 * spu-tdep.c (infospucmdlist): New variable.
3248 (spu_register_name): Handle additional pseudo registers.
3249 (spu_register_type): Likewise.
3250 (spu_pseudo_register_read): Likewise.
3251 (spu_pseudo_register_write): Likewise.
3252 (spu_pseudo_register_read_spu): New function.
3253 (spu_pseudo_register_write_spu): Likewise.
3254 (info_spu_event_command): New function.
3255 (info_spu_signal_command): Likewise.
3256 (info_spu_mailbox_list): Likewise.
3257 (info_spu_mailbox_command): Likewise.
3258 (spu_mfc_get_bitfield): Likewise.
3259 (info_spu_dma_cmdlist): Likewise.
3260 (info_spu_dma_command): Likewise.
3261 (info_spu_proxydma_command): Likewise.
3262 (info_spu_command): Likewise.
3263 (_initialize_spu_tdep): Install "info spu" commands.
3265 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3267 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3268 accessing non-seekable spufs files.
3270 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3272 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3273 gdbarch_skip_trampoline_code.
3274 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3275 * objc-lang.c (objc_skip_trampoline)
3276 (objc_submethod_helper_data): Likewise.
3277 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3278 * infrun.c (handle_inferior_event): Likewise.
3279 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3280 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3281 gdbarch_in_solib_return_trampoline.
3282 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3283 * infrun.c (handle_inferior_event): Likewise.
3284 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3285 * gdbarch.c, gdbarch.h: Regenerate.
3287 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3289 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3290 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3291 * linespec.c (minsym_found): Likewise.
3292 * infrun.c (step_into_function): Likewise.
3293 * gdbarch.c, gdbarch.h: Regenerate.
3295 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3297 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3298 * valops.c (value_allocate_space_in_inferior): Likewise.
3299 * gdbarch.c, gdbarch.h: Regenerate.
3301 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3303 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3304 gdbarch_memory_insert_breakpoint.
3305 * mem-break.c (memory_insert_breakpoint): Likewise.
3306 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3307 gdbarch_memory_remove_breakpoint.
3308 * mem-break.c (memory_remove_breakpoint): Likewise.
3309 * gdbarch.c, gdbarch.h: Regenerate.
3311 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3313 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3314 gdbarch_fetch_tls_load_module_address.
3315 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3316 gdbarch_fetch_tls_load_module_address_p.
3317 * gdbarch.c, gdbarch.h: Regenerate.
3319 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3321 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3322 gdbarch_decr_pc_after_break.
3323 * tracepoint.c (trace_dump_command): Likewise.
3324 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3325 * linux-thread-db.c (check_event): Likewise.
3326 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3327 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3328 * frame.h: Likewise (comment).
3329 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3330 * aix-thread.c (aix_thread_wait): Likewise.
3331 * gdbarch.c, gdbarch.h: Regenerate.
3333 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3335 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3336 gdbarch_address_class_type_flags.
3337 * dwarf2read.c (read_tag_pointer_type): Likewise.
3338 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3339 gdbarch_address_class_type_flags_p.
3340 * dwarf2read.c (read_tag_pointer_type): Likewise.
3341 * gdbarch.c, gdbarch.h: Regenerate.
3343 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3345 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3346 * value.c (value_as_address): Likewise (comment).
3347 * remote-mips.c (common_breakpoint): Likewise.
3348 * regcache.c (read_pc_pid): Likewise.
3349 * printcmd.c (do_one_display): Likewise.
3350 * monitor.c (monitor_write_memory, monitor_read_memory)
3351 (monitor_insert_breakpoint): Likewise.
3352 * mips-tdep.c (heuristic_proc_start): Likewise.
3353 * infrun.c (insert_step_resume_breakpoint_at_frame)
3354 (insert_step_resume_breakpoint_at_caller): Likewise.
3355 * buildsym.c (record_line): Likewise.
3356 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3357 (arm_get_next_pc): Likewise.
3358 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3359 (store_regs): Likewise.
3360 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3361 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3362 * gdbarch.c, gdbarch.h: Regenerate.
3364 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3366 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3367 * tracepoint.c (scope_info): Likewise.
3368 * target.c (debug_print_register): Likewise.
3369 * stack.c (frame_info): Likewise.
3370 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3371 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3372 (sh64_media_print_registers_info)
3373 (sh64_compact_print_registers_info): Likewise.
3374 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3375 * remote-sim.c (gdbsim_fetch_register): Likewise.
3376 * remote.c (packet_reg): Likewise (comment).
3377 * reggroups.c (default_register_reggroup_p): Likewise.
3378 * regcache.c (regcache_dump): Likewise.
3379 * printcmd.c (address_info): Likewise.
3380 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3381 * mt-dep.c (mt_registers_info): Likewise.
3382 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3383 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3384 (mips_read_fp_register_double, mips_print_fp_register)
3385 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3386 (mips_register_sim_regno): Likewise.
3387 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3388 * inf-ptrace.c (inf_ptrace_fetch_register)
3389 (inf_ptrace_store_register): Likewise.
3390 * infcmd.c (default_print_registers_info): Likewise.
3391 * ia64-linux-nat.c (ia64_linux_fetch_register)
3392 (ia64_linux_store_register): Likewise.
3393 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3394 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3395 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3396 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3397 (hppa_hpux_store_register): Likewise.
3398 * findvar.c (locate_var_value): Likewise.
3399 * dwarf2loc.c (locexpr_describe_location): Likewise.
3400 * dwarf2-frame.c (execute_cfa_program): Likewise.
3401 * arm-tdep.c (arm_push_dummy_call): Likewise.
3402 * arch-utils.c (legacy_register_sim_regno): Likewise.
3403 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3404 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3405 * mi/mi-main.c (mi_cmd_data_list_register_names)
3406 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3407 (mi_cmd_data_write_register_values): Likewise.
3408 * gdbarch.c, gdbarch.h: Regenerate.
3410 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3412 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3414 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3416 * remote.c (process_g_packet): Don't check size.
3417 * gdbarch.sh: Remove register_bytes_ok.
3418 * gdbarch.c: Regenerated.
3419 * gdbarch.h: Regenerated.
3420 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3421 (m68k_register_bytes_ok): Remove.
3422 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3424 2007-06-06 Andreas Schwab <schwab@suse.de>
3426 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3427 (destroy_addr_space_name): Define.
3428 (libunwind_load): Get address of destroy_addr_space function.
3429 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3430 returning unsuccessfully.
3431 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3433 (libunwind_sigtramp_frame_sniffer): Likewise.
3434 (libunwind_get_reg_special): Likewise.
3436 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3438 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3439 gdbarch_fetch_pointer_argument.
3440 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3441 * gdbarch.c, gdbarch.h: Regenerate.
3443 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3445 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3446 gdbarch_have_nonsteppable_watchpoint.
3447 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3448 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3449 gdbarch_cannot_step_breakpoint.
3450 * infrun.c (resume): Likewise.
3451 * gdbarch.c, gdbarch.h: Regenerate.
3453 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3455 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3456 * stack.c (print_frame_args): Likewise.
3457 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3458 * stack.c (print_args_stub, frame_info): Likewise.
3459 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3460 * stack.c (print_args_stub, frame_info): Likewise.
3461 * gdbarch.c, gdbarch.h: Regenerate.
3463 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3465 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3466 gdbarch_coff_make_msymbol_special.
3467 * coffread.c (coff_symtab_read): Likewise.
3468 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3469 gdbarch_elf_make_msymbol_special.
3470 * elfread.c (elf_symtab_read): Likewise.
3471 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3472 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3473 * gdbarch.c, gdbarch.h: Regenerate.
3475 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3477 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3478 gdbarch_frame_red_zone_size.
3479 * gdbarch.c, gdbarch.h: Regenerate.
3481 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3483 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3484 * infcall.c (call_function_by_hand): Likewise.
3485 * gcore.c (derive_stack_segment): Likewise.
3486 * frame.c (frame_id_inner): Likewise.
3487 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3488 * ada-lang.c (ensure_lval): Likewise.
3489 * gdbarch.c, gdbarch.h: Regenerate.
3491 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3493 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3494 gdbarch_address_to_pointer.
3495 * findvar.c (store_typed_address): Likewise.
3496 * gdbtypes.c (make_pointer_type): Likewise (comment).
3497 * procfs.c (procfs_address_to_host_pointer): Likewise.
3498 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3499 (value_of_builtin_frame_fp_reg): Likewise.
3500 (value_of_builtin_frame_pc_reg): Likewise.
3501 * utils.c (paddress): Likewise (comment).
3502 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3503 gdbarch_pointer_to_address.
3504 * findvar.c (extract_typed_address): Likewise.
3505 * gdbtypes.c (make_pointer_type): Likewise (comment).
3506 * valops.c (value_cast): Likewise (comment).
3507 * gdbarch.c, gdbarch.h: Regenerate.
3509 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3511 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3512 * infrun.c (handle_inferior_event): Likewise.
3513 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3514 gdbarch_get_longjmp_target_p.
3515 * breakpoint.c (breakpoint_re_set): Likewise.
3516 * infrun.c (handle_inferior_event): Likewise.
3517 * gdbarch.c, gdbarch.h: Regenerate.
3519 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3521 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3522 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3523 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3524 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3525 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3526 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3527 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3528 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3529 current_ex_event, child_get_current_exception_event): Remove.
3530 (hppa_hpux_inferior_created): Remove.
3531 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3533 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3534 (deprecated_exception_support_initialized): Remove.
3535 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3536 (deprecated_exception_support_initialized): Remove.
3537 (breakpoint_init_inferior): Remove handling of non-zero
3538 deprecated_exception_catchpoints_are_fragile.
3540 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3541 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3542 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3543 deprecated_hp_som_som_object_present.
3544 * eval.c (evaluate_subexp_standard): Likewise.
3545 * valops.c (value_cast): Likewise.
3547 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3548 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3549 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3551 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3553 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3554 (struct objfile): Remove import_list, import_list_size,
3555 export_list, export_list_size members.
3556 (is_in_import_list): Remove prototype.
3557 * objfiles.c (is_in_import_list): Remove.
3558 * somread.c (init_import_symbols, init_export_symbols): Remove.
3559 (som_symfile_read): Do not call init_import_symbols. Do not
3560 set objfile->export_list and objfile->export_list_size.
3562 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3564 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3565 Use the original objfile if necessary.
3567 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3569 * defs.h (ldirname): New prototype.
3570 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3572 * utils.c (ldirname): New function.
3573 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3575 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3577 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3579 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3581 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3583 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3585 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3587 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3589 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3590 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3591 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3592 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3593 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3594 ppc_linux_at_sigtramp_return_path): Remove.
3596 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3598 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3599 (xtensa_register_write_masked, xtensa_register_read_masked)
3600 (xtensa_extract_return_value, xtensa_store_return_value
3601 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3602 TARGET_BYTE_ORDER by gdbarch_byte_order.
3603 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3604 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3605 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3606 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3607 (sh64_push_dummy_call, sh64_extract_return_value)
3608 (sh64_store_return_value, sh64_register_convert_to_virtual)
3609 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3610 (sh64_pseudo_register_write, sh64_do_fp_register)
3611 (sh64_frame_prev_register): Likewise.
3612 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3613 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3614 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3615 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3616 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3617 * ppc-linux-nat.c (store_register): Likewise.
3618 * nto-tdep.c (nto_find_and_open_solib)
3619 (nto_init_solib_absolute_prefix): Likewise.
3620 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3621 (mips_convert_register_p, mips_eabi_push_dummy_call)
3622 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3623 (mips_o32_push_dummy_call, mips_o32_return_value)
3624 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3625 (mips_read_fp_register_single, mips_read_fp_register_double)
3626 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3627 (mips_breakpoint_from_pc): Likewise.
3628 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3629 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3630 (mips_linux_o32_sigframe_init): Likewise.
3631 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3632 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3633 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3634 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3635 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3636 * coffread.c (process_coff_symbol): Likewise.
3637 * arm-tdep.c (convert_from_extended, convert_to_extended)
3638 (gdb_print_insn_arm): Likewise.
3640 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3642 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3643 * i386-tdep.c (i386_dbx_reg_to_regnum)
3644 (i386_svr4_reg_to_regnum): Likewise.
3645 * inf-ptrace.c (inf_ptrace_fetch_registers)
3646 (inf_ptrace_store_registers): Likewise.
3647 * corelow.c (get_core_registers): Likewise.
3648 * i386-linux-nat.c (supply_gregset, fill_gregset)
3649 (i386_linux_fetch_inferior_registers)
3650 (i386_linux_store_inferior_registers): Likewise.
3651 * remote.c (init_remote_state,packet_reg_from_regnum)
3652 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3653 (remote_prepare_to_store,store_registers_using_G)
3654 (remote_store_registers,remote_arch_state): Likewise.
3655 * tracepoint.c (encode_actions): Likewise.
3656 * mi/mi-main.c (mi_cmd_data_list_register_names)
3657 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3658 (mi_cmd_data_write_register_values): Likewise.
3659 * tui/tui-regs.c (tui_show_register_group)
3660 (tui_show_register_group): Likewise.
3661 * xtensa-tdep.h (FP_ALIAS): Likewise.
3662 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3663 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3664 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3665 * win32-nat.c (do_win32_fetch_inferior_registers)
3666 (do_win32_store_inferior_registers,fetch_elf_core_registers
3667 * user-regs.h: Likewise (comment).
3668 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3669 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3670 * target-descriptions.h: Likewise (comment).
3671 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3672 * target.c (debug_print_register): Likewise.
3673 * stack.c (frame_info): Likewise.
3674 * stabsread.c (define_symbol): Likewise.
3675 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3676 (sh64_media_print_registers_info)
3677 (sh64_compact_print_registers_info): Likewise.
3678 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3679 * rs6000-nat.c (fetch_register,store_register): Likewise.
3680 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3681 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3682 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3683 * remote-m32r-sdi.c (m32r_fetch_registers)
3684 (m32r_store_registers): Likewise.
3685 * reggroups.c (default_register_reggroup_p): Likewise.
3686 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3687 (regcache_restore,regcache_dump): Likewise.
3688 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3689 * mips-tdep.c (mips_xfer_register,mips_register_name)
3690 (mips_register_reggroup_p,mips_pseudo_register_read)
3691 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3692 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3693 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3694 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3695 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3696 (print_gp_register_row,mips_print_registers_info)
3697 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3698 (mips_register_sim_regno): Likewise.
3699 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3700 (mips_linux_n32n64_sigframe_init): Likewise.
3701 * mips-linux-nat.c (mips_linux_register_addr)
3702 (mips64_linux_register_addr): Likewise.
3703 * findvar.c (value_of_register): Likewise.
3704 * infcmd.c (default_print_registers_info,registers_info)
3705 (print_vector_info,print_float_info): Likewise.
3706 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3707 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3708 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3709 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3710 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3711 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3712 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3713 (ia64_linux_store_registers): Likewise.
3714 * hpux-thread.c (hpux_thread_fetch_registers)
3715 (hpux_thread_store_registers): Likewise.
3716 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3717 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3718 (h8300_register_type): Likewise.
3719 * dwarf2-frame.c (dwarf2_frame_cache)
3720 (dwarf2_frame_state_alloc_regs): Likewise.
3721 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3722 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3723 (crisv32_cannot_store_register,cris_register_name): Likewise.
3724 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3725 * arch-utils.c (legacy_register_sim_regno)
3726 (legacy_virtual_frame_pointer): Likewise.
3727 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3728 * arm-tdep.h: Likewise (comment).
3729 * frv-tdep.c (frv_register_sim_regno): Likewise.
3730 * m68klinux-nat.c (old_fetch_inferior_registers)
3731 (old_store_inferior_registers): Likewise.
3732 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3733 * irix5-nat.c (fetch_core_registers): Likewise.
3734 * hppa-tdep.c (hppa_frame_cache): Likewise.
3735 * hppa-linux-nat.c (hppa_linux_register_addr)
3736 (hppa_linux_fetch_inferior_registers)
3737 (hppa_linux_store_inferior_registers): Likewise.
3738 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3739 (hppa_hpux_store_inferior_registers): Likewise.
3740 * amd64-nat.c (amd64_native_gregset_reg_offset)
3741 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3742 * dbug-rom.c (dbug_regname): Likewise.
3743 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3744 (HARD_PAGE_REGNUM (comment)): Likewise.
3745 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3746 * i386-tdep.c (i386_dbx_reg_to_regnum)
3747 (i386_svr4_reg_to_regnum): Likewise.
3748 * mi/mi-main.c (mi_cmd_data_list_register_names)
3749 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3750 (mi_cmd_data_write_register_values): Likewise.
3751 * gdbarch.c, gdbarch.h: Regenerate.
3752 * tui/tui-regs.c (tui_show_register_group): Likewise.
3753 * xtensa-tdep.h (FP_ALIAS): Likewise.
3754 * user-regs.h: Likewise (comment).
3755 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3756 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3757 * target-descriptions.h: Likewise (comment).
3758 * target.c (debug_print_register): Likewise.
3759 * stack.c (frame_info): Likewise.
3760 * stabsread.c (define_symbol): Likewise.
3761 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3762 (sh64_compact_print_registers_info): Likewise.
3763 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3764 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3765 (regcache_restore,regcache_dump): Likewise.
3766 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3767 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3768 (mips_stab_reg_to_regnum): Likewise.
3769 * findvar.c (value_of_register): Likewise.
3770 * infcmd.c (default_print_registers_info,registers_info)
3771 (print_vector_info,print_float_info): Likewise.
3772 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3773 * h8300-tdep.c (h8300_register_type): Likewise.
3774 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3775 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3776 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3777 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3778 * parse.c: Remove comment.
3779 * gdbarch.c, gdbarch.h: Regenerate
3781 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3783 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3784 gdbarch_cannot_fetch_register.
3785 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3786 * hppa-linux-nat.c (fetch_register): Likewise.
3787 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3788 * m68klinux-nat.c (fetch_register): Likewise.
3789 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3791 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3792 gdbarch_cannot_store_register.
3793 * hppa-linux-nat.c (store_register): Likewise.
3794 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3795 * regcache.c (regcache_raw_write): Likewise.
3796 * m68klinux-nat.c (store_register): Likewise.
3797 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3798 * gdbarch.c, gdbarch.h: Regenerate.
3800 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3802 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3803 * gdbarch.c, gdbarch.h: Regenerate.
3805 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3807 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3808 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3809 * gdbarch.c, gdbarch.h: Regenerate.
3811 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3813 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3814 * ax-gdb.c (gen_bitfield_ref): Likewise.
3815 * mi/mi-main.c (get_register): Likewise.
3816 * findvar.c (default_value_from_register, extract_signed_integer)
3817 (extract_unsigned_integer, extract_long_unsigned_integer)
3818 (store_signed_integer, store_unsigned_integer): Likewise.
3819 * regcache.c (regcache_dump): Likewise.
3820 * value.c (lookup_internalvar, value_of_internalvar)
3821 (set_internalvar): Likewise.
3823 * valprint.c (print_binary_chars, print_octal_chars)
3824 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3825 * infcmd.c (default_print_registers_info): Likewise.
3826 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3827 * stabsread.c (define_symbol): Likewise.
3828 * doublest.c (floatformat_from_length, floatformat_from_type)
3829 (extract_typed_floating, store_typed_floating): Likewise.
3830 * gdbarch.c, gdbarch.h: Regenerate.
3832 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3834 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3835 gdbarch_call_dummy_location.
3836 * infcall.c (call_function_by_hand): Likewise.
3837 * inferior.h: Change comment.
3838 * arch-utils.c: Change comment.
3839 * gdbarch.c, gdbarch.h: Regenerate.
3841 2007-05-28 Joel Brobecker <brobecker@adacore.com>
3843 * solib-aix5.c: Delete.
3844 * Makefile.in (solib-aix5.o): Delete rule.
3846 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
3848 * breakpoint.h (enum bpstat_what_main_action): Remove
3849 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3850 * infrun.c (process_event_stop_test): Do not check for it.
3852 2007-05-22 Chris Dearman <chris@mips.com>
3853 Maciej W. Rozycki <macro@mips.com>
3855 * ser-unix.c (show_serial_hwflow): New function.
3856 (hardwire_raw): Add hardware flow control support.
3857 (_initialize_ser_hardwire): Add "set/show remoteflow".
3858 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3859 * NEWS: Document the new command.
3861 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3863 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3864 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3865 define for i[[3456]]86-*-linux* native configurations.
3866 * config.in, configure: Regenerate.
3868 2007-05-19 Joel Brobecker <brobecker@adacore.com>
3870 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3871 a core file. Add comment in the function description.
3873 2007-05-18 Caroline Tice <ctice@apple.com>
3875 * c-valprint.c (c_value_print): If the initialized field of the
3876 value struct is 0, print out "[uninitialized]" before the value.
3877 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3878 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3879 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3880 ctx->initialized appropriately. Verify no location op follows
3882 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3883 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3884 set_value_initialized.
3885 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3886 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3887 * value.c (struct value): New field, initialized.
3888 (allocate_value): Initialize new field.
3889 (set_value_initialized): New function.
3890 (value_initialized): New function.
3891 * value.h (value_initialized): New extern declaration.
3892 (set_value_initialized): Likewise.
3894 2007-05-18 Caroline Tice <ctice@apple.com>
3896 * MAINTAINERS (Write After Approval): Add self.
3898 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3900 * gdbtypes.c (make_reference_type): Preserve the type chain
3901 and set the length of all the variants of the pointer type.
3903 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3905 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3906 and set the length of all the variants of the pointer type.
3908 2007-05-17 Maciej W. Rozycki <macro@mips.com>
3910 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3912 (mips_o64_push_dummy_call): Reformat a comment.
3914 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
3916 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3917 (score_prologue_frame_base_address): Return fp to keep gdb print
3918 local variables correctly when debugging information is stabs.
3920 (score_analyze_prologue): For software watchpoint, fetch all the
3921 instructions from range [startaddr, pc] once and identify them locally
3922 to reduce memory access.
3923 (score_malloc_and_get_memblock, score_free_memblock)
3924 (score_adjust_memblock_ptr): New functions.
3925 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3927 (score_target_can_use_watch, score_stopped_by_watch)
3928 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3929 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3930 New functions for remote & local hw-watchpoint and hw-breakpoint.
3932 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
3934 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3935 declarations as well.
3937 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3939 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3940 * config/arm/tm-embed.h: Delete file.
3942 * arm-tdep.h (arm_software_single_step): Declare.
3943 * arm-tdep.c (arm_software_single_step): Make global.
3944 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3946 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3947 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3948 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3949 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3951 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3952 allow defines to be overriden by TM file.
3953 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3954 change default to {0xbe,0xbe}.
3955 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3956 arm_obsd_thumb_be_breakpoint): New global variables.
3957 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3958 tdep->thumb_breakpoint_size.
3959 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3960 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3961 tdep->thumb_breakpoint_size.
3963 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3965 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3967 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3970 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3971 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3972 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3973 (mips_abi_regsize): Simplify.
3974 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3975 (mips_n32n64_return_value, mips_o32_push_dummy_call)
3976 (mips_o32_return_value, mips_o64_push_dummy_call)
3977 (mips_o64_return_value): Propogate constant register sizes. Use the
3978 ABI register size instead of mips_stack_argsize.
3979 (mips_dump_tdep): Don't print mips_stack_argsize.
3980 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
3983 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3985 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
3986 * config/mips/tm-linux.h: Delete.
3987 * mips-linux-tdep.c (mips_svr4_so_ops): New.
3988 (mips_linux_in_dynsym_resolve_code): Make static. Use
3989 svr4_in_dynsym_resolve_code.
3990 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
3992 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
3994 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
3995 * Makefile.in (mips-linux-tdep.o): Update.
3996 * solib.c (set_solib_ops): New.
3997 (current_target_so_ops): Update comment.
3998 * solib.h (set_solib_ops): New prototype.
4000 2007-05-16 Chris Dearman <chris@mips.com>
4002 * printcmd.c (do_examine): Fix typos in a comment.
4004 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4006 * configure.ac: Allow sysroots to be relocated under $prefix as
4007 well as $exec_prefix.
4008 * configure: Regenerate.
4010 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4012 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4013 (offsetof): Do not define.
4014 (find_stub_with_shl_get): Use numerical value 3 instead of
4015 symbolic value TYPE_PROCEDURE.
4017 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4019 * gdb_proc_service.h (paddr_t): Delete typedef.
4020 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4021 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4022 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4023 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4024 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4025 * Makefile.in (proc-service.o): Update.
4027 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4029 * Makefile.in (mips-tdep.o): Update.
4030 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4033 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4035 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4036 instead of store_typed_address.
4037 * value.c (pack_long): New.
4038 (value_from_longest): Use it.
4039 * value.h (pack_long): New prototype.
4041 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4043 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4044 DW_EH_PE_signed if appropriate.
4046 2007-05-14 Paul Brook <paul@codesourcery.com>
4047 Daniel Jacobowitz <dan@codesourcery.com>
4049 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4051 (dwarf_decode_lines): Check for line info without a file.
4053 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4055 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4058 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4060 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4062 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4064 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4066 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4068 * gdbarch.sh (read_sp): Remove.
4069 * gdbarch.c, gdbarch.h: Regenerate.
4070 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4072 * avr-tdep.c (avr_read_sp): Remove.
4073 (avr_unwind_sp): New function.
4074 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4075 * mips-tdep.c (mips_read_sp): Remove.
4076 (mips_unwind_sp): New function.
4077 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4078 * score-tdep.c (score_read_unsigned_register): Remove.
4079 (score_read_sp): Remove.
4080 (score_unwind_sp): New function.
4081 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4083 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4085 * buildsym.c (start_subfile): Handle absolute pathnames
4086 while comparing subfile names.
4088 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4090 * hppa-hpux-tdep.c: Include "regcache.h".
4091 * hppa-linux-tdep.c: Likewise.
4092 * hppa-tdep.c: Include "gdb_stdint.h".
4093 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4095 * Makefile.in: Update dependencies.
4097 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4099 * blockframe.c: Remove obsolete comments.
4100 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4101 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4102 * hppa-tdep.h (enum hppa_regnum): Likewise.
4103 * mips-tdep.h: Likewise.
4104 * m68hc11-tdep.c: Likewise.
4106 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4108 * inferior.h (read_sp): Remove prototype.
4109 * regcache.c (read_sp): Remove.
4110 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4111 * infcall.c (call_function_by_hand): Likewise.
4112 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4114 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4116 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4118 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4119 instead of read_register and read_register_pid.
4121 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4122 argument instead of PTID. Use regcache functions instead of
4124 (ia64_linux_insert_watchpoint): Update call.
4125 (ia64_linux_stopped_data_address): Use regcache functions
4126 instead of read_register_pid and write_register_pid.
4128 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4130 * libunwind-frame.h (struct regcache): Add forward declaration.
4131 (libunwind_get_reg_special): Add REGCACHE argument.
4132 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4133 argument. Pass it to unw_init_remote_p.
4135 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4136 libunwind_get_reg_special.
4137 (ia64_access_reg): Remove "write" case.
4138 (ia64_access_fpreg): Likewise. Read from next_frame passed
4139 as callback argument instead of from current_regcache.
4140 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4141 passed as callback argument instead of from current_regcache.
4142 (ia64_access_rse_fpreg): New function.
4143 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4145 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4147 * NEWS: Mention SPU overlay support.
4149 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4151 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4153 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4155 * breakpoint.c (remove_breakpoint): Do not remove software
4156 breakpoints in unmapped overlay sections.
4158 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4160 * spu-tdep.c: Include "observer.h".
4161 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4162 (spu_overlay_data): New variable.
4163 (struct spu_overlay_table): New type.
4164 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4165 spu_overlay_new_objfile): New functions.
4166 (spu_gdbarch_init): Install spu_overlay_update.
4167 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4168 allocate spu_overlay_data objfile data.
4170 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4172 * gdbarch.sh (overlay_update): New gdbarch function.
4173 (struct obj_section): Add forward declaration.
4174 * gdbarch.c, gdbarch.h: Regenerate.
4176 * symfile.c (simple_overlay_update): Make global.
4177 (target_overlay_update): Remove variable.
4178 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4179 target_overlay_update.
4180 (overlay_load_command): Likewise.
4181 * symfile.h (struct obj_section): Add forward declaration.
4182 (simple_overlay_update): Add prototype.
4184 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4186 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4188 * observer.sh: Add "struct objfile" forward declaration.
4189 * target.h (deprecated_target_new_objfile_hook): Remove.
4190 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4191 (clear_symtab_users): Call observer_notify_new_objfile.
4192 (symbol_file_add_with_addrs_or_offsets): Likewise.
4193 * rs6000-nat.c: Include "observer.h".
4194 (vmap_ldinfo): Call observer_notify_new_objfile.
4195 (xcoff_relocate_core): Likewise.
4196 * remote.c (remote_new_objfile_chain): Remove.
4197 (remote_new_objfile): Do not call remote_new_objfile_chain.
4198 (_initialize_remote): Use observer_attach_new_objfile.
4199 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4200 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4201 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4202 * aix-thread.c: Include "observer.h".
4203 (target_new_objfile_chain): Remove.
4204 (new_objfile): Do not call target_new_objfile_chain.
4205 (_initialize_aix_thread): Use observer_attach_new_objfile.
4206 * hpux-thread.c: Include "observer.h"
4207 (target_new_objfile_chain): Remove.
4208 (hpux_thread_new_objfile): Make static. Do not call
4209 target_new_objfile_chain.
4210 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4211 * linux-thread-db.c: Include "observer.h".
4212 (target_new_objfile_chain): Remove.
4213 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4214 (_initialize_thread_db): Use observer_attach_new_objfile.
4215 * sol-thread.c: Include "observer.h".
4216 (target_new_objfile_chain): Remove.
4217 (sol_thread_new_objfile): Make static. Do not call
4218 target_new_objfile_chain.
4219 (_initialize_sol_thread): Use observer_attach_new_objfile.
4220 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4221 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4224 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4226 * gdbarch.sh (remote_translate_xfer_address): Remove.
4227 * gdbarch.h, gdbarch.c: Regenerate.
4228 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4229 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4230 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4231 call gdbarch_remote_translate_xfer_address.
4232 * frv-tdep.c (frv_gdbarch_init): Do not call
4233 set_gdbarch_remote_translate_xfer_address.
4234 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4235 (ia64_gdbarch_init): Do not install it.
4237 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4239 * NEWS: Mention change in handling the -tui option.
4241 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4243 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4246 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4248 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4249 (breakpoint_inserted_here_p): Call it.
4250 (software_breakpoint_inserted_here_p): Likewise.
4252 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4254 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4255 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4256 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4257 (inf_ptrace_store_register): Likewise.
4258 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4259 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4261 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4263 * linux-nat.c (linux_trad_target): Adapt parameter list.
4264 * linux-nat.h (linux_trad_target): Likewise.
4266 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4268 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4269 (mips_linux_cannot_store_register): Likewise.
4270 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4271 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4272 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4273 (mips64_linux_register_addr): Likewise.
4274 (mips_linux_register_u_offset): Adapt parameter list. Pass
4275 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4277 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4278 * config/mips/nm-linux.h: Delete file.
4280 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4282 * remote.c (remote_detach): Error out if remote can't detach.
4284 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4286 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4287 instruction's opcode in the "opcode" variable and declares new
4288 variable "closing_insn".
4290 2007-05-10 Chris Dearman <chris@mips.com>
4291 Maciej W. Rozycki <macro@mips.com>
4293 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4294 whitespace when setting a var_filename.
4296 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4298 * main.c (captured_main): Recognize -tui option and print an error
4299 message when the TUI is not configured.
4301 2007-05-09 Andreas Schwab <schwab@suse.de>
4303 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4304 set removed members.
4305 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4307 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4309 * gdbarch.sh (deprecated_store_struct_return): Remove.
4310 * gdbarch.c, gdbarch.h: Regenerate.
4311 * frv-tdep.c (frv_store_struct_return): Remove.
4312 (frv_gdbarch_init): Do not install it.
4314 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4316 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4317 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4318 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4320 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4322 * spu-linux-nat.c: Include "gdb_stdint.h".
4323 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4324 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4325 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4326 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4327 (spu_child_wait): Mark up string for translation.
4329 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4330 Luis Machado <luisgpm@br.ibm.com>
4332 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4333 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4334 BC_INSTRUCTION): Define.
4335 (deal_with_atomic_sequence): New function.
4336 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4337 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4338 gdbarch_software_single_step routine.
4340 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4342 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4343 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4344 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4345 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4346 spu_child_post_attach, spu_fetch_inferior_registers,
4347 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4348 memory addresses as ULONGEST, not CORE_ADDR.
4350 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4352 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4353 * gdbarch.h, gdbarch.c: Regenerate.
4355 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4356 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4357 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4359 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4360 Add REGCACHE argument. Use it instead of read/write_register.
4361 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4363 * config/pa/tm-hppah.h: Delete file.
4364 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4365 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4367 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4369 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4370 * NEWS: Mention improved C++ thunk support.
4371 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4372 * cp-abi.c (cplus_skip_trampoline): New.
4373 * cp-abi.h (cplus_skip_trampoline): New prototype.
4374 (struct cp_abi_ops): Add skip_trampoline member.
4375 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4376 (init_gnuv3_ops): Set skip_trampoline.
4378 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4380 * rs6000-tdep.c (struct frame_extra_info): Delete.
4382 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4384 * linux-thread-db.c: Update some FIXME comments.
4385 (thread_db_xfer_partial): Delete.
4386 (init_thread_db_ops): Do not set to_xfer_partial.
4388 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4390 * inftarg.c, infptrace.c: Remove files.
4391 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4392 (inftarg.o, infptrace.o): Remove rules.
4393 * gdbcore.h (register_addr): Remove prototype.
4394 * inferior.h (kill_inferior, store_inferior_registers,
4395 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4396 call_ptrace, pre_fork_inferior): Remove prototypes.
4397 * target.h (child_xfer_memory, child_pid_to_exec_file,
4398 child_core_file_to_sym_file, child_post_attach,
4399 child_post_startup_inferior, child_acknowledge_created_inferior,
4400 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4401 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4402 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4403 child_follow_fork, child_reported_exec_events_per_exec_call,
4404 child_has_exited, child_thread_alive): Remove prototypes.
4406 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4408 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4409 (sparc_store_inferior_registers): Likewise.
4410 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4411 (sparc_fetch_inferior_registers): ... this.
4412 (store_inferior_registers): Rename to ...
4413 (sparc_store_inferior_registers): ... this.
4414 (sparc_target): Update callback names.
4415 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4416 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4418 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4420 * linux-nat.c (child_post_attach): Rename to ...
4421 (linux_child_post_attach): ... this. Make static.
4422 (child_follow_fork): Rename to ...
4423 (linux_child_follow_fork): ... this. Make static.
4424 (child_insert_fork_catchpoint): Rename to ...
4425 (linux_child_insert_fork_catchpoint): ... this. Make static.
4426 (child_insert_vfork_catchpoint): Rename to ...
4427 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4428 (child_insert_exec_catchpoint): Rename to ...
4429 (linux_child_insert_exec_catchpoint): ... this. Make static.
4430 (child_pid_to_exec_file): Rename to ...
4431 (linux_child_pid_to_exec_file): ... this. Make static.
4433 (linux_handle_extended_wait): Update call.
4434 (linux_xfer_partial): Update callback routine names.
4436 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4438 * configure.host (alpha*-*-osf[12]*): Remove support.
4439 * NEWS: Mention removed configurations.
4441 * config/alpha/alpha-osf1.mh: Delete file.
4442 * config/alpha/alpha-osf2.mh: Delete file.
4443 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4445 * config/alpha/nm-osf.h: Delete file.
4446 * config/alpha/nm-osf2.h: Delete file.
4447 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4448 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4449 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4451 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4452 (register_addr, kernel_u_size): Remove.
4453 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4455 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4457 * regcache.c (regcache_invalidate): New function.
4458 (register_cached): Remove.
4459 (set_register_cached): Remove.
4460 (deprecated_registers_fetched): Remove.
4461 (registers_changed): Use regcache_invalidate instead
4462 of set_register_cached.
4463 (regcache_raw_read): Update comment.
4465 * regcache.h (regcache_invalidate): Add prototype.
4466 (register_cached): Remove.
4467 (set_register_cached): Remove.
4468 (deprecated_registers_fetched): Remove.
4470 * findvar.c (value_of_register): Do not call register_cached.
4471 * frame.c (frame_register): Likewise.
4472 * tui/tui-regs.c (tui_get_register): Likewise.
4474 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4475 (process_g_packet): Likewise.
4476 (remote_fetch_registers): Likewise.
4477 * remote-sim.c (gdbsim_fetch_register): Likewise.
4478 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4479 by regcache_invalidate.
4480 (mt_pseudo_register_write): Likewise.
4481 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4483 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4484 call by loop over regcache_raw_supply (..., NULL).
4486 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4488 * target.h (struct target_ops): Add REGCACHE parameter to
4489 to_prepare_to_store.
4490 (target_prepare_to_store): Likewise.
4491 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4492 (update_current_target): Adapt prepare_to_store de_fault rule.
4494 * regcache.c (regcache_raw_write): Pass regcache to
4495 target_prepare_to_store.
4497 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4498 Do not call CHILD_PREPARE_TO_STORE.
4499 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4500 * procfs.c (procfs_prepare_to_store): Likewise.
4502 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4503 * go32-nat.c (go32_prepare_to_store): Likewise.
4504 * monitor.c (monitor_prepare_to_store): Likewise.
4505 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4506 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4507 * remote-mips.c (mips_prepare_to_store): Likewise.
4508 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4509 * win32-nat.c (win32_prepare_to_store): Likewise.
4511 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4512 Use it instead of current_regcache.
4514 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4515 parameter. Pass it on to next target.
4516 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4518 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4520 * target.h (struct regcache): Add forward declaration.
4521 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4522 and to_store_registers target operations.
4523 (target_fetch_registers, target_store_registers): Update.
4525 * regcache.c (regcache_raw_read): Replace register_cached by
4526 regcache_valid_p. Pass regcache to target_fetch_registers.
4527 (regcache_raw_write): Pass regcache to target_store_registers.
4529 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4530 store_regs, store_wmmx_regs): Replace register_cached by
4533 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4534 to target_fetch_registers calls.
4535 * corelow.c (core_open): Likewise.
4536 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4537 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4538 ps_lsetfpregs): Likewise.
4539 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4540 ps_lsetfpregs): Likewise.
4541 * win32-nat.c (win32_resume): Likewise.
4542 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4543 to target_store_registers call.
4544 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4546 * inferior.h (store_inferior_registers): Update prototype.
4547 (fetch_inferior_registers): Likewise.
4548 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4549 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4550 Update function pointer signatures.
4552 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4553 use it instead of current_regcache, update calls.
4554 (aix_thread_store_registers): Likewise.
4555 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4556 (alphabsd_store_inferior_registers): Likewise.
4557 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4558 (amd64bsd_store_inferior_registers): Likewise.
4559 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4560 (amd64_linux_store_inferior_registers): Likewise.
4561 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4562 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4563 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4564 (arm_linux_fetch_inferior_registers): Likewise.
4565 (arm_linux_store_inferior_registers): Likewise.
4566 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4567 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4568 (store_register, store_regs, store_fp_register, store_fp_regs,
4569 armnbsd_store_registers): Likewise.
4570 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4571 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4572 (bsd_uthread_store_registers): Likewise.
4573 * corelow.c (get_core_registers): Likewise.
4574 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4575 go32_store_registers): Likewise.
4576 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4577 (hppabsd_store_registers): Likewise.
4578 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4579 (hppa_hpux_fetch_inferior_registers): Likewise.
4580 (hppa_hpux_store_register): Likewise.
4581 (hppa_hpux_store_inferior_registers): Likewise.
4582 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4583 (hppa_linux_fetch_inferior_registers): Likewise.
4584 (hppa_linux_store_inferior_registers): Likewise.
4585 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4586 (hpux_thread_store_registers): Likewise.
4587 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4588 (i386bsd_store_inferior_registers): Likewise.
4589 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4590 gnu_store_registers): Likewise.
4591 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4592 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4594 (i386_linux_fetch_inferior_registers): Likewise.
4595 (i386_linux_store_inferior_registers): Likewise.
4596 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4597 (ia64_linux_fetch_registers): Likewise.
4598 (ia64_linux_store_register): Likewise.
4599 (ia64_linux_store_registers): Likewise.
4600 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4601 (inf_child_store_inferior_registers): Likewise.
4602 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4603 (inf_ptrace_fetch_registers): Likewise.
4604 (inf_ptrace_store_register): Likewise.
4605 (inf_ptrace_store_registers): Likewise.
4606 * infptrace.c (fetch_register, store_register): Likewise.
4607 (fetch_inferior_registers, store_inferior_registers): Likewise.
4608 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4609 (m32r_linux_fetch_inferior_registers): Likewise.
4610 (m32r_linux_store_inferior_registers): Likewise.
4611 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4612 (m68kbsd_store_inferior_registers): Likewise.
4613 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4614 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4615 fetch_fpregs, store_fpregs): Likewise.
4616 (m68k_linux_fetch_inferior_registers): Likewise.
4617 (m68k_linux_store_inferior_registers): Likewise.
4618 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4619 (m88kbsd_store_inferior_registers): Likewise.
4620 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4621 (mips64obsd_store_inferior_registers): Likewise.
4622 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4623 (mips64_linux_regsets_store_registers): Likewise.
4624 (mips64_linux_fetch_registers): Likewise.
4625 (mips64_linux_store_registers): Likewise.
4626 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4627 (mipsnbsd_store_inferior_registers): Likewise.
4628 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4629 (monitor_fetch_registers, monitor_store_registers): Likewise.
4630 * nto-procfs.c (procfs_fetch_registers): Likewise.
4631 (procfs_store_registers): Likewise.
4632 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4633 fetch_register, supply_vrregset, fetch_altivec_registers,
4634 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4635 (store_altivec_register, store_spe_register, store_register,
4636 fill_vrregset, store_altivec_registers, store_ppc_registers,
4637 ppc_linux_store_inferior_registers): Likewise.
4638 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4639 (ppcnbsd_store_inferior_registers): Likewise.
4640 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4641 (ppcobsd_store_registers): Likewise.
4642 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4643 * remote.c (fetch_register_using_p, process_g_packet,
4644 fetch_registers_using_g, remote_fetch_registers): Likewise.
4645 (store_register_using_P, store_registers_using_G,
4646 remote_store_registers): Likewise.
4647 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4648 m32r_store_register, m32r_store_register): Likewise.
4649 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4650 * remote-sim.c (gdbsim_fetch_register): Likewise.
4651 (gdbsim_store_register): Likewise.
4652 * rs6000-nat.c (fetch_register, store_register): Likewise.
4653 (rs6000_fetch_inferior_registers): Likewise.
4654 (rs6000_store_inferior_registers): Likewise.
4655 * s390-nat.c (fetch_regs, store_regs): Likewise.
4656 (fetch_fpregs, store_fpregs): Likewise.
4657 (s390_linux_fetch_inferior_registers): Likewise.
4658 (s390_linux_store_inferior_registers): Likewise.
4659 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4660 (shnbsd_store_inferior_registers): Likewise.
4661 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4662 (sol_thread_store_registers): Likewise.
4663 * sparc-nat.c (fetch_inferior_registers): Likewise.
4664 (store_inferior_registers): Likewise.
4665 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4666 (spu_store_inferior_registers): Likewise.
4667 * target.c (debug_print_register): Likewise.
4668 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4669 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4670 (vaxbsd_store_inferior_registers): Likewise.
4671 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4672 (win32_fetch_inferior_registers): Likewise.
4673 (win32_store_inferior_registers): Likewise.
4675 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4677 * gdbcore.h (struct regcache): Add forward declaration.
4678 (struct core_fns): Add REGCACHE argument to core_read_registers
4680 * corelow.c (get_core_register_section): Add REGCACHE argument,
4681 use it instead of current_regcache, pass it to core_read_registers
4683 (get_core_registers): Add current_regcache as parameter to
4684 get_core_register_section calls.
4686 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4687 use it instead of current_regcache.
4688 * armnbsd-nat.c (fetch_core_registers): Likewise.
4689 (fetch_elfcore_registers): Likewise.
4690 * core-regset.c (fetch_core_registers): Likewise.
4691 * cris-tdep.c (fetch_core_registers): Likewise.
4692 * irix5-nat.c (fetch_core_registers): Likewise.
4693 * m68klinux-nat.c (fetch_core_registers): Likewise.
4694 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4695 * win32-nat.c (fetch_elf_core_registers): Likewise.
4697 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4699 * gregset.h (struct regcache): Add forward declaration.
4700 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4701 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4702 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4703 (fill_gregset): Add REGCACHE parameter.
4704 (fill_fpregset): Likewise.
4705 (fill_fpxregset): Likewise.
4707 Update all definitions accordingly:
4708 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4709 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4710 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4711 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4712 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4713 (supply_gregset): Add REGCACHE parameter, use it instead of
4714 current_regcache. Make GREGSETP parameter const, adapt casts.
4715 (supply_fpregset): Add REGCACHE parameter, use it instead of
4716 current_regcache. Make FPREGSETP parameter const, adapt casts.
4717 (fill_gregset): Add REGCACHE parameter, use it instead of
4719 (fill_fpregset): Likewise.
4721 Update all callers to pass in current_regcache as the new argument:
4722 * core-regset.c: Include "regcache.h".
4723 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4724 * procfs.c: Include "regcache.h".
4725 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4726 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4727 (procfs_do_thread_registers): Likewise.
4728 (procfs_make_note_section): Likewise.
4729 * proc-service.c: Include "regcache.h".
4730 (ps_lgetregs): Update fill_gregset call.
4731 (ps_lsetregs): Update supply_gregset call.
4732 (ps_lgetfpregs): Update fill_fpregset call.
4733 (ps_lsetfpregs): Update supply_fpregset call.
4734 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4735 supply_fpregset calls.
4736 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4737 (ps_lgetregs): Update fill_gregset call.
4738 (ps_lsetregs): Update supply_gregset call.
4739 (ps_lgetfpregs): Update fill_fpregset call.
4740 (ps_lsetfpregs): Update supply_fpregset call.
4742 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4743 fill_fpregset, and fill_fpxregset calls.
4744 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4745 (store_regs): Update fill_gregset call.
4746 (fetch_fpregs): Update supply_fpregset call.
4747 (store_fpregs): Update fill_fpregset call.
4748 (fetch_fpxregs): Update supply_fpxregset call.
4749 (store_fpxregs): Update fill_fpxregset call.
4750 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4751 (store_regs): Update fill_gregset call.
4752 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4753 (store_regs): Update fill_gregset call.
4754 (fetch_fpregs): Update supply_fpregset call.
4755 (store_fpregs): Update fill_fpregset call.
4756 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4757 * s390-nat.c (fetch_regs): Update supply_gregset call.
4758 (store_regs): Update fill_gregset call.
4759 (fetch_fpregs): Update supply_fpregset call.
4760 (store_fpregs): Update fill_fpregset call.
4762 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4765 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4767 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4768 it instead of current_regcache.
4769 (parse_register_dump): Add REGCACHE parameter, pass it to
4770 supply_register callback.
4771 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4772 parse_register_dump.
4773 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4774 parse_register_dump and dumpregs callback.
4775 (monitor_wait): Pass current_regcache to parse_register_dump and
4777 (monitor_fetch_register): Pass current_regcache to
4778 monitor_supply_register.
4779 (monitor_fetch_registers): Pass current_regcache to
4781 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4782 supply_register and dumpregs callbacks.
4783 (monitor_supply_register, monitor_dump_reg_block): Update
4785 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4786 it to monitor_supply_register.
4787 * dink32-rom.c (dink32_supply_register): Likewise.
4788 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4789 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4790 instead of current_regcache.
4792 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4794 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4795 Add REGCACHE parameter. Use it instead of current_regcache.
4796 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4797 i386nto_supply_gregset and i386nto_supply_fpregset.
4798 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4799 of current_regcache.
4801 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4802 nto_supply_ helper functions.
4803 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4805 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4807 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4808 supply_greget, supply_fpregset, supply_altregset, supply_regset,
4809 and regset_fill member function pointers.
4810 (nto_dummy_supply_regset): Adapt prototype.
4812 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4814 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4815 instead of current_regcache. Make REGS const.
4816 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4817 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4819 * shnbsd-nat.c: Include "regcache.h".
4820 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4822 (shnbsd_store_inferior_registers): Pass current_regcache to
4824 * Makefile.in (shbsd-nat.o): Update dependencies.
4826 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4828 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4829 instead of current_regcache.
4830 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4831 Make GREGSETP const, remove superfluous casts.
4832 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4833 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4835 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4836 (supply_64bit_reg): Likewise
4837 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4838 Make GREGSETP const, adapt casts accordingly.
4839 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4840 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4842 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4843 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4845 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4846 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4847 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4849 * mips-linux-nat.c: Include "regcache.h".
4850 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4851 current_regcache to mips{64}_(supply|fill)_ helper routines.
4852 (mips64_linux_regsets_fetch_registers): Likewise.
4853 (mips64_linux_regsets_store_registers): Likewise.
4855 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4856 REGCACHE argument; replace current_regcache. Make REGS const.
4857 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4858 replace current_regcache.
4859 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4860 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4861 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4862 mipsnbsd_store_inferior_registers): Pass current_regcache to
4863 mipsnbsd_(supply|fill)_... helper routines.
4865 * Makefile.in (mips-linux-nat.o): Update dependencies.
4867 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4869 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4870 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4871 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4872 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4873 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4874 * i386gnu-nat.c (store_fpregs): Likewise.
4875 * i386v4-nat.c (fill_fpregset): Likewise.
4876 * go32-nat.c (store_register, go32_store_registers): Likewise.
4878 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4880 * cris-tdep.c (supply_gregset): Rename to ...
4881 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4882 instead of current_regcache.
4883 (fetch_core_registers): Update call. Pass current_regcache.
4885 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4887 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4888 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4889 Use it instead of current_regcache.
4890 (supply_fparegset): Rename to ...
4891 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4892 Use it instead of current_regcache.
4893 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4894 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4896 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4898 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4899 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4900 use it instead of current_regcache.
4901 * alpha-tdep.h (struct regcache): Add forward declaration.
4902 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4903 alpha_fill_fp_regs): Update prototypes.
4905 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4906 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4907 * alpha-linux-nat.c: Include "regcache.h".
4908 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4909 current_regcache to alpha_supply/fill_ routines.
4911 * alphabsd-tdep.c: Include "regcache.h".
4912 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4913 pass it to alpha_supply_ routines. Make REGS const.
4914 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4915 pass it to alpha_fill_ routines.
4916 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4917 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4918 alphabsd_fill_fpreg): Update prototypes.
4920 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4921 fill_fpregset, alphabsd_fetch_inferior_registers,
4922 alphabsd_store_inferior_registers): Pass current_regcache to
4923 alphabsd_supply/fill_ routines.
4925 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4928 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4930 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4931 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4932 instead of current_regcache.
4933 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4934 REGCACHE parameter, pass it to supply_ routines.
4935 (aix_thread_fetch_registers): Pass current_regcache to
4936 fetch_regs_user_thread and fetch_regs_kernel_thread.
4938 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4939 Add REGCACHE parameter, use it instead of current_regcache.
4940 Call regcache_valid_p instead of register_cached.
4941 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4942 Also, pass REGCACHE to fill_ routines.
4943 (aix_thread_store_registers): Pass current_regcache to
4944 store_regs_user_thread and store_regs_kernel_thread.
4946 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4948 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4949 pointed to by GREGSETP.
4951 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4953 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4954 of regcache_raw_read_signed.
4955 (fill_fpregset): Use regcache_raw_collect instead of
4958 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4960 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4961 point arguments, test explicitly for use of the EABI32 ABI
4962 instead of inferring this condition from tests on register
4965 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4967 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4968 prior to allocating its location.
4970 2007-05-02 Maciej W. Rozycki <macro@mips.com>
4972 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4973 based on mips_abi_regsize() whose result is known in advance.
4974 (mips_o64_push_dummy_call): Likewise.
4976 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4978 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4979 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
4981 * mips-linux-nat.c: Include "gregset.h".
4982 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
4983 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
4984 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
4985 fill_fpregset): Move to mips-linux-nat.c.
4987 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
4989 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4991 * regcache.c (deprecated_read_register_gen): Remove, inline ...
4992 (read_register): ... here.
4993 (deprecated_write_register_gen): Remove, inline ...
4994 (write_register): ... here.
4995 * regcache.h (deprecated_read_register_gen): Remove prototype.
4996 (deprecated_write_register_gen): Likewise.
4998 * remote-sim.c (gdbsim_store_register): Replace call to
4999 deprecated_read_register_gen with regcache_cooked_read.
5000 * target.c (debug_print_register): Replace calls to
5001 deprecated_read_register_gen and read_register with
5002 regcache_cooked_read.
5004 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5006 * hpux-thread.c (hpux_thread_store_registers): Use
5007 regcache_raw_collect, not regcache_raw_read.
5008 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5009 not regcache_raw_write.
5011 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5013 * gdbarch.sh: Remove deprecated_register_byte.
5014 * gdbarch.c, gdbarch.h: Regenerate.
5015 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5016 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5018 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5019 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5020 read-only register caches. Make REGCACHE parameter const.
5021 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5023 * mi/mi-main.c (old_regs): Remove.
5024 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5025 (register_changed_p): Reimplement to compare two register caches.
5026 (mi_cmd_data_list_changed_registers): Update caller.
5027 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5028 * mi/mi-interp.c (mi_interpreter_init): Do not call
5029 mi_setup_architecture_data.
5031 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5033 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5034 inline definition at the places the macros are used.
5035 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5037 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5039 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5041 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5042 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5043 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5044 (rs6000_aix_regset_from_core_section): New function.
5045 (rs6000_aix_init_osabi): Register it.
5046 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5047 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5048 * rs6000-nat.c (CoreRegs): Do not define type.
5049 (fetch_core_registers, rs6000_core_fns): Remove.
5050 (_initialize_core_rs6000): Do not register it. Rename to ...
5051 (_initialize_rs6000_nat): ... this.
5052 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5054 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5056 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5057 (dwarf2_read_address): Sign extend return address as required by
5058 target architecture.
5060 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5062 * solib-frv.c (lm_base): Bail out if the main executable has
5065 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5067 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5068 of FPCR register in fpregset.
5070 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5072 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5073 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5075 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5077 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5078 * rs6000-nat.c (rs6000_wait): New function.
5079 (_initialize_core_rs6000): Install it as to_wait target method.
5080 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5082 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5084 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5085 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5086 * rs6000-nat.c (super_create_inferior): New variable.
5087 (rs6000_create_inferior): Make static. Adapt argument list. Call
5088 original version of create_inferior via super_create_inferior.
5089 (_initialize_core_rs6000): Install to_create_inferior target method.
5091 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5093 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5094 (aix_thread_xfer_partial): ... this.
5095 (init_aix_thread_ops): Install to_xfer_partial instead
5096 of deprecated_xfer_memory target method.
5098 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5099 and inftarg.o, add inf-ptrace.o.
5100 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5101 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5102 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5103 (fetch_inferior_registers): Rename to ...
5104 (rs6000_fetch_inferior_registers): ... this. Make static.
5105 (store_inferior_registers): Rename to ...
5106 (rs6000_store_inferior_registers): ... this. Make static.
5107 (read_word, child_xfer_memory): Remove.
5108 (rs6000_xfer_partial): New function.
5109 (kernel_u_size): Remove.
5110 (_initialize_core_rs6000): Add inf_ptrace-based target.
5111 * Makefile.in (rs6000-nat.o): Update dependencies.
5113 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5115 * inf-ptrace.c: Include "gdb_stdint.h".
5116 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5117 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5118 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5119 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5120 (inf_ptrace_store_register): Likewise.
5121 * Makefile.in (inf-ptrace.o): Update dependencies.
5123 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5125 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5126 * configure.tgt (rs6000-*-*): Likewise.
5127 * config/rs6000/aix4.mh: Delete file.
5128 * config/rs6000/aix4.mt: Delete file.
5129 * config/rs6000/rs6000.mh: Delete file.
5130 * config/rs6000/rs6000.mt: Delete file.
5132 * config/powerpc/nm-aix.h: Delete file.
5133 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5135 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5137 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5138 Remove obsolete part of comment.
5139 (store_regs_user_thread): Use uint32_t temporaries when calling
5141 (store_regs_kernel_thread): Likewise. Add assertion to verify
5142 correct size of struct ptsprs members.
5143 (aix_thread_xfer_memory): Fix type of myaddr.
5144 (aix_thread_extra_thread_info): Fix compiler warning.
5145 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5146 (fetch_register, store_register): Adapt callers.
5148 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5150 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5152 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5154 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5156 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5157 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5158 (alpha_linux_regset_from_core_section): New function.
5159 (alpha_linux_init_abi): Install it.
5160 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5161 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5162 <sys/procfs.h>, and "gregset.h".
5163 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5164 Move from config/alpha/nm-linux.h.
5165 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5167 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5168 * alpha-nat.c: Remove #ifdef __linux__ section.
5169 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5170 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5171 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5172 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5173 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5174 (NATDEPFILES): Remove alpha-nat.o.
5175 * config/alpha/nm-linux.h: Delete file.
5176 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5177 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5178 (alpha-linux-tdep.o): Likewise.
5180 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5182 * mips-linux-nat.c: No longer include "gdbcore.h".
5183 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5184 (mips64_linux_register_addr): Likewise.
5185 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5186 mips64_linux_register_addr instead of register_addr.
5187 * mips-linux-tdep.c (mips_linux_register_addr,
5188 mips64_linux_register_addr): Move to mips-linux-nat.c.
5189 (register_addr): Remove.
5190 (register_addr_data, init_register_addr_data): Remove.
5191 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5192 (set_mips_linux_register_addr): Remove.
5193 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5194 * Makefile.in (mips-linux-nat.o): Update dependencies.
5196 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5198 * linux-nat.c (linux_register_u_offset): Remove.
5199 (linux_target_install_ops): New function.
5200 (linux_target): Use it.
5201 (linux_trad_target): New function.
5202 * linux-nat.h (linux_trad_target): Declare.
5204 * alpha-linux-nat.c: Include "gdbcore.h".
5205 (alpha_linux_register_u_offset): New function.
5206 (_initialize_alpha_linux_nat): Use linux_trad_target.
5208 * mips-linux-nat.c: Include "gdbcore.h".
5209 (mips_linux_register_u_offset): New function.
5210 (_initialize_mips_linux_nat): Use linux_trad_target.
5212 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5213 * config/arm/nm-linux.h: Delete file.
5215 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5216 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5218 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5219 * config/ia64/nm-linux.h: Delete file.
5221 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5222 * config/m32r/nm-linux.h: Delete file.
5224 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5225 * config/m68k/nm-linux.h: Delete file.
5227 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5228 * config/pa/nm-linux.h: Delete file.
5230 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5231 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5232 * config/powerpc/nm-linux.h: Delete file.
5234 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5235 * config/s390/nm-linux.h: Delete file.
5237 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5238 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5239 * config/sparc/nm-linux.h: Delete file.
5241 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5242 (mips-linux-nat.o): Likewise.
5244 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5246 * core-aout.c: Delete file.
5247 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5248 (core-aout.o): Delete rule.
5249 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5251 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5253 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5254 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5255 KERNEL_U_ADDR): Remove.
5257 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5258 (cannot_fetch_register, cannot_store_register): Remove.
5259 (fetch_register): Inline cannot_fetch_register and register_addr.
5260 (store_register): Inline cannot_store_register and register_addr.
5261 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5262 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5263 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5266 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5267 (fetch_register): Inline register_addr.
5268 (store_register): Inline register_addr.
5269 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5270 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5271 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5273 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5274 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5275 REGISTER_U_ADDR): Remove.
5277 * hppa-linux-nat.c (register_addr): Rename to ...
5278 (hppa_linux_register_addr): ... this. Make static.
5279 (fetch_register, store_register): Adapt callers.
5280 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5282 * ppc-linux-nat.c (kernel_u_size): Remove.
5283 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5285 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5286 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5288 * config/vax/nm-vax.h: Delete file.
5290 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5292 * MAINTAINERS (Write After Approval): Add myself.
5294 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5296 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5297 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5298 (m68k_linux_sigcontext_reg_offset): Fix typo.
5299 (target_is_uclinux): New.
5300 (m68k_linux_inferior_created): New.
5301 (m68k_linux_get_sigtramp_info): Check for uClinux or
5302 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5304 (_initialize_m68k_linux_tdep): Register
5305 m68k_linux_inferior_created.
5307 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5309 * win32-nat.c (win32_detach): Remove delete_command call.
5310 Resume inferior with win32_resume instead of win32_continue.
5312 2007-04-19 Jerome Guitton <guitton@adacore.com>
5314 * ser-mingw.c (fd_is_file): New function.
5315 (file_select_thread): New function.
5316 (ser_console_wait_handle): Add special handling for files.
5318 2007-04-18 Denis Pilat <denis.pilat@st.com>
5320 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5321 when missing from DW_TAG_subrange_type. Remove the handling of null
5322 return from die_type.
5324 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5326 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5327 change to rearrange some brackets.
5328 (mips_n32n64_push_dummy_call): Likewise.
5329 (mips_o32_push_dummy_call): Likewise.
5330 (mips_o64_push_dummy_call): Likewise.
5332 2007-04-18 Denis Pilat <denis.pilat@st.com>
5334 * infcmd.c (post_create_inferior): Start with a call to
5335 target_terminal_ours.
5337 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5339 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5341 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5343 (mips_o32_push_dummy_call): Likewise.
5344 (mips_o64_push_dummy_call): Likewise.
5346 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5348 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5351 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5353 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5355 (mips_o32_push_dummy_call): Likewise.
5357 2007-04-17 Andreas Schwab <schwab@suse.de>
5359 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5360 sal to be bigger than the end of the function.
5362 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5363 Nigel Stephens <nigel@mips.com>
5365 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5366 argument alignment requirements when calculating stack space
5367 required. When aligning an arg register to eight bytes
5368 boundary, align stack_offset too. Write floating-point
5369 arguments to the appropriate integer register if need go there.
5370 (mips_o64_push_dummy_call): Likewise.
5372 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5374 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5375 "sig" arguments, add "regcache" argument.
5376 * gdbarch.c, gdbarch.h: Regenerate.
5378 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5379 (handle_inferior_event): Call remove_single_step_breakpoints directly
5380 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5382 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5383 Remove handling of !insert_breakpoints_p case.
5384 * arm-tdep.c (arm_software_single_step): Likewise.
5385 * cris-tdep.c (cris_software_single_step): Likewise.
5386 * mips-tdep.c (mips_software_single_step): Likewise.
5387 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5388 * sparc-tdep.c (sparc_software_single_step): Likewise.
5389 * spu-tdep.c (spu_software_single_step): Likewise.
5391 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5392 * mips-tdep.h (mips_software_single_step): Likewise.
5393 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5394 * sparc-tdep.h (sparc_software_single_step): Likewise.
5396 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5398 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5399 when removing single-step breakpoints.
5401 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5403 * varobj.h (varobj_set_frozen): New
5404 (varobj_get_frozen): New.
5405 (varobj_update): New parameter explicit.
5406 * varobj.c (struct varobj): New fields frozen
5408 (varobj_set_frozen, varobj_get_frozen): New.
5409 (install_new_value): Don't fetch values for
5410 frozen variable object, or children thereof. Allow
5411 a frozen variable object to have non-fetched value.
5412 (varobj_update): Allow updating child variables.
5413 Don't traverse frozen children.
5414 (new_variable): Initialize the frozen field.
5415 (c_value_of_variable): Return NULL for frozen
5416 variable without any value yet.
5417 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5419 (mi_cmd_var_create): Output the 'frozen' field,
5420 as soon as testsuite is adjusted to expect that field.
5421 (mi_cmd_var_set_frozen): New.
5422 (mi_cmd_var_update): Pass the 'explicit' parameter to
5424 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5425 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5427 2007-04-13 Paul Brook <paul@codesourcery.com>
5429 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5431 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5433 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5435 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5436 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5437 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5438 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5439 * Makefile.in: Remove references to deleted files.
5440 * README: Do not mention deleted ROM monitor interfaces.
5441 * defs.h (enum language): Delete language_scm.
5442 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5443 (dump_subexp_body_standard): Likewise.
5444 * parse.c (operator_length_standard): Likewise.
5445 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5446 * remote-mips.c: Do not include remote-utils.h.
5447 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5449 * value.c: Do not include scm-lang.h.
5450 (unpack_long): Delete scm_unpack call.
5451 * config/h8300/h8300.mt, config/mips/embed.mt,
5452 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5453 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5455 * NEWS: Mention removed files.
5457 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5459 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5460 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5462 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5464 * NEWS: Mention removal of HP aCC support.
5466 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5468 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5469 first entry for static executables.
5470 (breakpoint_addr): Delete unused variable.
5471 (elf_locate_base): Search for _r_debug in static executables.
5472 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5475 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5477 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5478 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5479 (mention): Remove bp_through_sigtramp support.
5480 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5482 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5484 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5487 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5489 * infrun.c: Doc fixes.
5490 (handle_inferior_event): Clarify debug message.
5491 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5493 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5495 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5497 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5499 * config/m68k/tm-monitor.h: Delete file.
5500 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5501 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5503 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5504 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5506 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5508 * gdbarch.sh (software_single_step): Change the return type
5509 from void to int and reformatted some comments to <= 80
5511 * gdbarch.c, gdbarch.h: Regenerated.
5512 * alpha-tdep.c (alpha_software_single_step): Likewise.
5513 * alpha-tdep.h (alpha_software_single_step): Likewise.
5514 * arm-tdep.c (arm_software_single_step): Likewise.
5515 * cris-tdep.c (cris_software_single_step): Likewise.
5516 * mips-tdep.c (mips_software_single_step): Likewise.
5517 * mips-tdep.h (mips_software_single_step): Likewise.
5518 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5519 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5520 * sparc-tdep.c (sparc_software_single_step): Likewise.
5521 * sparc-tdep.h (sparc_software_single_step): Likewise.
5522 * spu-tdep.c (spu_software_single_step): Likewise.
5523 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5524 and act accordingly.
5526 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5528 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5529 * configure: Regenerate.
5530 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5532 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5534 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5536 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5538 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5540 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5541 distinct on the TYPE_STUB_SUPPORTED debug targets.
5542 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5544 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5546 * sparc-tdep.c (X_RS2): New macro.
5547 (sparc_skip_stack_check): New function.
5548 (sparc_analyze_prologue): Adjust PC past stack probing
5549 sequence if necessary.
5551 2007-04-10 Andreas Schwab <schwab@suse.de>
5553 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5556 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5558 * breakpoint.c (gdb_breakpoint_query): Really return an
5560 (gdb_breakpoint): Likewise.
5561 * thread.c (gdb_list_thread_ids): Likewise.
5562 (gdb_thread_select): Likewise.
5563 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5564 (mi_cmd_thread_list_ids): Remove bogus initialization.
5566 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5568 * Makefile.in (SFILES): Remove hpacc-abi.c.
5569 (COMMON_OBS): Remove hpacc-abi.o.
5570 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5571 (hpacc-abi.o, hpread.o): Delete rules.
5572 * somread.c: Delete extern declarations from hpread.c.
5573 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5574 (som_symfile_finish): Do not call hpread_symfile_finish.
5575 (som_symfile_init): Do not call hpread_symfile_init.
5576 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5577 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5578 * hpacc-abi.c, hpread.c: Deleted.
5580 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5582 * solib-svr4.c (enable_break): Simplify return value.
5583 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5585 2007-04-10 Andreas Schwab <schwab@suse.de>
5587 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5588 l_ld_size, l_next_size, l_prev_size, l_name_size.
5590 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5591 to extract addresses from link map.
5592 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5593 (LM_NEXT): Likewise.
5594 (LM_NAME): Likewise.
5595 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5596 (elf_locate_base): Likewise.
5597 (open_symbol_file_object): Likewise.
5598 (svr4_fetch_objfile_link_map): Likewise.
5599 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5600 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5602 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5603 (svr4_lp64_fetch_link_map_offsets): Likewise.
5605 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5606 removed members. Set l_ld_offset to -1 if not present.
5608 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5610 Pass stderr of program run with "target remote |"
5612 * serial.c (serial_open): Set error_fd to -1.
5613 * serial.h (struct serial): New field error_fd.
5614 (struct serial_opts): New field avail.
5615 * ser-pipe.c (pipe_open): Create another pair
5616 of sockets. Pass stderr to gdb.
5617 * ser-mingw.c (pipe_windows_open): Pass
5618 PEX_STDERR_TO_PIPE to pex_run. Initialize
5621 (_initialize_ser_windows): Hook pipe_avail.
5622 * ser-base.c (generic_readchar): Check if there's
5623 anything in stderr channel and route that to gdb_stderr.
5625 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5627 * dbxread.c (read_ofile_symtab): Move current_objfile
5628 clearing to after end_stabs.
5630 2007-04-01 Andreas Schwab <schwab@suse.de>
5632 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5633 gdbarch instead of current_gdbarch.
5635 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5637 * varobj.c (varobj_create): Keep varobj value
5638 NULL when evaluating the type.
5640 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5642 * NEWS: Mention new Windows CE support.
5644 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5646 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5647 the obsoletion stanza.
5648 * NEWS: Mention deleted targets.
5650 * config/sh/tm-wince.h: Remove.
5651 * config/sh/wince.mt: Remove.
5652 * config/mips/tm-wince.h: Remove.
5653 * config/mips/wince.mt: Remove.
5656 * wince-stub.c: Remove.
5657 * wince-stub.h: Remove.
5658 * Makefile.in (wince.o): Remove rule.
5659 (wince-stub.o): Likewise.
5661 * mips-tdep.c (mips_next_pc): Make static.
5662 * mips-tdep.h (mips_next_pc): Remove declaration.
5663 * arm-tdep.c (arm_pc_is_thumb): Make static.
5664 (thumb_get_next_pc): Likewise.
5665 (arm_get_next_pc): Likewise.
5666 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5667 (arm_pc_is_thumb): Likewise.
5668 (thumb_get_next_pc): Likewise.
5669 (arm_get_next_pc): Likewise.
5671 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5673 * MAINTAINERS: Remove d10v entry.
5674 * Makefile.in (SFILES): Remove dwarfread.c.
5675 (COMMON_OBS): Remove dwarfread.o.
5676 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5677 (remote-est.o, rom68k-rom.o): Delete.
5678 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5679 target est, target rom68k, and DWARF 1.
5680 * configure.tgt: Mark d10v as removed.
5681 * dwarf2read.c: Doc update.
5682 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5684 (elf_locate_sections): Do not set them.
5685 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5686 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5687 * config/m68k/monitor.mt (TDEPFILES): Prune.
5688 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5689 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5691 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5693 * doublest.c (convert_floatformat_to_doublest): Use
5694 floatformat_classify.
5695 (floatformat_is_nan): Rename to...
5696 (floatformat_classify): ...this. Return more information.
5697 * doublest.h (enum float_kind): New.
5698 (floatformat_is_nan): Replace prototype...
5699 (floatformat_classify): ...with this one.
5700 * valprint.c (print_floating): Use floatformat_classify. Handle
5703 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5705 * README: Mention ISO C library requirement.
5707 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5709 * Makefile.in (SFILES): Remove nlmread.c.
5710 (COMMON_OBS): Remove nlmread.o.
5711 (nlmread.o): Delete rule.
5712 * README: Delete reference to remote-st.c.
5713 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5714 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5716 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5717 (_initialize_i386_tdep): Do not reference them.
5718 * nlmread.c: Delete file.
5719 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5720 * target.c: Doc update.
5721 * thread.c: Delete commented include.
5722 * config/alpha/tm-alpha.h: Doc update.
5724 2007-03-30 Chris Dearman <chris@mips.com>
5726 * utils.c (string_to_core_addr): Comment typo.
5728 2007-03-30 Chris Dearman <chris@mips.com>
5730 * mips-tdep.c: Comment typo.
5732 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5734 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5735 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5736 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5737 * config/powerpc/nm-ppc64-linux.h: Remove file.
5738 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5739 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5740 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5741 * infptrace.c (call_ptrace): Likewise.
5742 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5743 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5744 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5745 (store_register): Likewise.
5747 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5749 * Makefile.in (varobj.o): Add missing dependency.
5751 2007-03-29 Michael Snyder <msnyder@access-company.com>
5753 * MAINTAINERS: Update my email address.
5755 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5757 Add support for exception handling with multiple versions of
5759 * ada-lang.c: Update general comments on how Ada exception catchpoints
5761 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5762 (__gnat_raise_nodefer_with_msg): Delete.
5763 (ada_unhandled_exception_name_addr_ftype): New type.
5764 (exception_support_info): New type.
5765 (ada_unhandled_exception_name_addr): Add forward declaration.
5766 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5767 (default_exception_support_info): New constant.
5768 (exception_support_info_fallback): Likewise.
5769 (exception_info): New global variable.
5770 (ada_exception_support_info_sniffer): New function.
5771 (ada_executable_changed_observer): Likewise.
5772 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5773 ada_unhandled_exception_name_addr.
5774 (ada_unhandled_exception_name_addr): Reimplement to match the
5775 latest Ada runtime implementation.
5776 (error_breakpoint_runtime_sym_not_found): Delete.
5777 (ada_exception_sym_name): Get the exception sym name from
5778 exception_info rather than hardcoding it.
5779 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5780 Update error handling.
5781 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5783 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5785 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5786 (remote-st.o, uw-thread.o): Delete.
5787 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5788 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5789 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5790 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5791 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5792 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5793 rs6000-*-lynxos* to an obsoletion stanza.
5794 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5795 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5796 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
5797 i[34567]86-*-netware*.
5798 * NEWS: Mention deleted targets.
5800 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5801 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5802 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5803 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5804 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5805 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5806 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5807 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5808 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5809 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5810 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5811 config/rs6000/tm-rs6000ly.h: Delete files.
5813 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5815 * defs.h (deprecated_registers_changed_hook): Delete declaration.
5816 * interps.c (clear_interpreter_hooks): Do not clear
5817 deprecated_registers_changed_hook.
5818 * regcache.c (registers_changed): Do not call it.
5819 * top.c (deprecated_registers_changed_hook): Do not define it.
5820 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5821 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5822 (tui_remove_hooks): Do not remove it.
5823 (tui_selected_frame_level_changed_hook): Check for negative level.
5824 Use get_selected_frame.
5825 (tui_registers_changed_hook): Deleted.
5827 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5829 * stabsread.c (add_undefined_type): Add extra parameter.
5830 Now handles nameless types separately.
5831 (struct nat): New type.
5832 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5833 New static variables.
5834 (read_type): Update calls to add_undefined_type.
5835 (add_undefined_type_noname): New function.
5836 (add_undefined_type_1): Renames from add_undefined_type.
5837 (cleanup_undefined_types_noname): New function.
5838 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5839 (cleanup_undefined_types): New handles nameless types separately.
5840 (_initialize_stabsread): Initialize our new static constants.
5842 2007-03-29 Denis Pilat <denis.pilat@st.com>
5844 * configure.ac: Test for signal.h.
5845 * configure, config.in: Regenerate.
5847 2007-03-29 Denis Pilat <denis.pilat@st.com>
5849 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5850 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5852 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
5854 * arm-wince-tdep.c: New.
5855 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5856 (MT_CFLAGS): Delete.
5858 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5859 solib-legacy.o, solib-svr4.o, and remove wince.o.
5860 * configure.tgt (arm*-*-mingw32ce*): Add.
5861 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5862 (do_target_signal_to_host): Silence 'not used' warning.
5863 * config/arm/tm-wince.h: Remove.
5865 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5867 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5868 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5870 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5871 * config/ia64/tm-linux.h: Remove file.
5872 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5873 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5874 legacy_pc_in_sigtramp.
5875 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5876 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5877 Remove func_name argument.
5878 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5880 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5881 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5882 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5883 (HAVE_STEPPABLE_WATCHPOINT): Define.
5885 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5886 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5887 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5888 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5889 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5890 target_insert_watchpoint, target_remove_watchpoint): Remove.
5891 (FETCH_INFERIOR_REGISTERS): Define.
5892 * ia64-linux-nat.c (ia64_register_addr): Make static.
5893 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5894 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5895 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5896 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5897 (ia64_linux_stopped_by_watchpoint): Make static.
5898 (ia64_linux_can_use_hw_breakpoint): New function.
5899 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5900 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5901 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5903 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
5905 * linespec.c: Include language.h.
5906 (find_methods): Add language parameter. Call
5907 lookup_symbol_in_language. Pass language down.
5908 (add_matching_methods): Likewise. Call
5909 lookup_symbol_in_language.
5910 (add_constructors): Likewise.
5911 (find_method): Pass sym_class to collect_methods.
5912 (collect_methods): Add sym_class parameter. Pass language
5914 * symtab.c (lookup_symbol): Rename to ...
5915 (lookup_symbol_in_language): ... this. Add language
5916 parameter. Use passed language instead of current_language.
5917 (lookup_symbol): New as wrapper around
5918 lookup_symbol_in_language.
5919 (lookup_symbol_aux): Add language parameter. Use passed
5920 language instead of current_language.
5921 (search_symbols): Indent.
5922 * symtab.h (enum language): Forward declare.
5923 (lookup_symbol_in_language): Declare.
5924 (lookup_symbol): Update description.
5925 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5926 * ada-lang.c (restore_language): Remove.
5927 (lookup_symbol_in_language): Remove.
5929 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
5931 * breakpoint.c (bpstat_num): Add int *num parameter.
5932 * breakpoint.h (bpstat_num): Likewise.
5933 * infcmd.c (continue_command): Adjust to new bpstat_num
5935 (program_info): Likewise.
5937 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5939 * config/sh/tm-sh.h: Remove file.
5940 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5941 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5942 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5943 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5945 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5947 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5948 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5949 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5950 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5951 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5952 sequence if target_shortname is "remote".
5954 2007-03-27 Anton Blanchard <anton@samba.org>
5956 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5957 instead of wordsize when looking for the LR in a stack frame.
5959 2007-03-27 Andreas Schwab <schwab@suse.de>
5960 Daniel Jacobowitz <dan@codesourcery.com>
5962 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5963 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5964 argument. Update all callers.
5965 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5966 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5967 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5968 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5969 (dwarf2_frame_set_adjust_regnum): ...this.
5970 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5971 * rs6000-tdep.c: Include "dwarf2-frame.h".
5972 (rs6000_adjust_frame_regnum): Define.
5973 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5974 Register rs6000_adjust_frame_regnum.
5976 * Makefile.in (rs6000-tdep.o): Update dependencies.
5978 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
5980 * Makefile.in: Add support for a "pdf" target.
5982 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
5984 * amd64-tdep.c (amd64_init_frame_cache): New function.
5985 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
5987 2007-03-26 Nigel Stephens <nigel@mips.com>
5988 Maciej W. Rozycki <macro@mips.com>
5990 * ui-out.c (ui_out_field_core_addr): Truncate address to
5991 TARGET_ADDR_BIT size before printing.
5993 2007-03-22 Nigel Stephens <nigel@mips.com>
5994 Maciej W. Rozycki <macro@mips.com>
5996 * remote-mips.c (mips_xfer_memory): Update prototype.
5998 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6000 * symfile.h: #include "symtab.h"
6002 2007-03-22 Denis Pilat <denis.pilat@st.com>
6004 * utils.c (pagination_on_command, pagination_off_command):
6005 Remove useless prototypes.
6007 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6010 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6011 instead of TYPE_NAME for object base class name.
6014 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6016 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6017 Specify frame type in calls to frame_func_unwind().
6019 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6021 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6022 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6023 (refine_prologue_limit): Delete.
6024 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6025 Assume lim_pc is set. Correct check for incomplete prologues.
6026 Do not skip clobbers of the frame pointer.
6027 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6030 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6032 * frame.c (frame_pop): Check to see whether there's a frame to
6033 which we can pop first.
6035 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6037 * MAINTAINERS (Write After Approval): Add myself.
6039 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6041 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6042 (handle_inferior_event): Remove unnecessary braces.
6043 * breakpoint.c (bpstat_what): Remove wrong comment.
6045 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6047 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6048 (spu_gdbarch_init): Install it.
6050 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6052 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6053 object types, not 0.
6055 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6057 * spu-tdep.c (spu_frame_align): New function.
6058 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6060 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6062 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6063 (spu_software_single_step): Likewise.
6064 (spu_read_pc, spu_write_pc): New functions.
6065 (spu_gdbarch_init): Install them.
6067 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6069 * cli/cli-dump.c (struct callback_data): load_offset needs to
6070 have signed long type.
6072 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6074 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6075 Revert the previous change that had some unexpected side-effects
6077 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6078 function to get the address of the calling instruction.
6080 2007-03-07 Denis Pilat <denis.pilat@st.com>
6082 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6083 get_selected_frame by deprecated_safe_get_selected_frame.
6085 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6087 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6088 "gdb_string.h". Don't include "nbsd-tdep.h".
6089 (SIZEOF_STRUCT_REG): Remove.
6090 (SHNBSD_SIZEOF_GREGS): New.
6091 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6092 (shnbsd_regset_from_core_section): New functions.
6093 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6094 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6095 shnbsd_supply_gregset, shnbsd_collect_gregset.
6096 (shnbsd_gregset): New variable.
6097 (shnbsd_init_abi): Set regset_from_core_section.
6098 (GDB_OSABI_NETBSD_CORE): New define.
6099 (shnbsd_core_osabi_sniffer): New function.
6100 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6101 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6102 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6104 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6106 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6108 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6109 length of the types referenced by the new type CV ring.
6111 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6113 * frame.c (frame_pop, frame_observer_target_changed): Call
6115 (flush_cached_frames): Rename to reinit_frame_cache and delete
6117 * frame.h (flush_cached_frames): Delete prototype and update comment.
6119 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6120 reinit_frame_cache instead of flush_cached_frames. Do not call
6121 select_frame after reinit_frame_cache.
6122 * corelow.c (core_open): Likewise.
6123 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6124 * infrun.c (prepare_to_proceed, context_switch)
6125 (handle_inferior_event): Likewise.
6126 * linux-fork.c (fork_load_infrun_state): Likewise.
6127 * ocd.c (ocd_start_remote): Likewise.
6128 * remote-e7000.c (e7000_start_remote): Likewise.
6129 * remote-mips.c (device): Likewise.
6130 * thread.c (switch_to_thread): Likewise.
6131 * tracepoint.c (finish_tfind_command): Likewise.
6132 * gdbarch.c: Regenerated.
6134 2007-02-28 Jerome Guitton <guitton@adacore.com>
6135 Joel Brobecker <brobecker@adacore.com>
6137 * gdbtypes.c (check_typedef): Do not replace stub type if
6138 the resolved type is not defined in the same objfile.
6140 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6142 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6144 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6146 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6147 symbol for Ada units when the symbol is defined using 't' rather
6148 than 'Tt' as symbol descriptor.
6150 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6152 * config/mips/tm-nbsd.h: Delete file.
6153 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6154 * config/sh/tm-nbsd.h: Delete file.
6155 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6157 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6159 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6160 unused WRONG_PARAM value since it was recently deleted.
6162 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6164 * varobj.c (varobj_update): Free temporary vectors.
6166 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6168 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6169 * config/powerpc/tm-linux.h: Delete file.
6170 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6171 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6172 (TEXT_SEGMENT_BASE): Do not redefine.
6173 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6174 from config/rs6000/tm-rs6000.h.
6175 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6176 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6177 (TEXT_SEGMENT_BASE): Remove.
6178 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6179 (rs6000_in_solib_return_trampoline): Remove.
6180 (SKIP_TRAMPOLINE_CODE): Remove.
6181 (rs6000_skip_trampoline_code): Remove.
6182 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6183 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6184 (FP0_REGNUM): Remove.
6185 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6186 (rs6000_set_host_arch_hook): Remove.
6187 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6188 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6189 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6190 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6191 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6192 * rs6000-nat.c: Include "rs6000-tdep.h".
6193 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6194 (set_host_arch): Rename to ...
6195 (rs6000_create_inferior): ... this. Make public.
6196 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6197 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6198 (rs6000_create_inferior): Remove.
6199 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6200 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6201 set_gdbarch_in_solib_return_trampoline, and
6202 set_gdbarch_skip_trampoline_code.
6203 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6204 from config/rs6000/tm-rs6000.h.
6206 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6208 * buildsym.c (record_producer): Do nothing if no producer is provided.
6210 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6212 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6213 to check changelist is non-NULL. Call error if the frontend tries
6214 to update a non-root variable.
6216 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6218 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6220 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6221 (dwarf2_frame_sniffer): Update.
6222 (dwarf2_signal_frame_this_id): New function.
6223 (dwarf2_signal_frame_unwind): Use it.
6224 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6225 * frame.c (frame_func_unwind): Add this_type argument.
6226 (get_frame_func): Update.
6227 (frame_unwind_address_in_block): Add this_type argument and check it.
6229 (get_frame_address_in_block): Update.
6230 * frame.h (enum frame_type): Move higher in the file.
6231 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6234 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6235 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6236 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6237 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6238 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6239 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6240 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6241 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6242 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6243 frame_func_unwind and frame_unwind_address_in_block to specify
6244 the frame type. Use frame_unwind_address_in_block instead of
6245 frame_pc_unwind in sniffers.
6247 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6249 * frame.c (deprecated_selected_frame): Rename to...
6250 (selected_frame): ...this. Make static.
6251 (get_selected_frame, select_frame): Update.
6252 * frame.h (deprected_select_frame): Delete.
6253 (deprecated_safe_get_selected_frame): Update comments.
6255 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6256 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6257 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6258 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6259 tui/tui.c: Replace references to deprecated_selected_frame.
6261 2007-02-27 Fred Fish <fnf@specifix.com>
6263 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6264 directly decrement the stack pointer, accumulate their operand into
6265 the stack offset, and mark the function as not being frameless.
6267 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6269 * arch-utils.c (selected_byte_order): New.
6270 * arch-utils.h (selected_byte_order): New prototype.
6271 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6273 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6275 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6276 (default_symfile_offsets): Check VMA here. Update section VMAs.
6278 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6280 * remote.c (init_remote_state): Add special handling for placeholder
6283 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6285 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6286 (filenames_h): New variable.
6287 (clean): Clean up xml-builtin.c and stamp-xml.
6288 (arm-linux-nat.o): Update.
6289 * config/arm/linux.mh (TDEP_XML): Define.
6290 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6291 (arm_linux_has_wmmx_registers): New.
6292 (GET_THREAD_ID): Fix typo.
6293 (IWMMXT_REGS_SIZE): Define.
6294 (fetch_wmmx_regs, store_wmmx_regs): New.
6295 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6296 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6297 (super_xfer_partial, arm_linux_xfer_partial): New.
6298 (_initialize_arm_linux_nat): Use them.
6299 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6300 (xml_builtin_xfer_partial): New function.
6301 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6302 * NEWS: Update mention of iWMMXt support.
6304 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6306 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6307 if there are no FPA registers.
6308 (arm_dwarf_reg_to_regnum): New function.
6309 (arm_register_type, arm_register_name): Return minimal values for
6310 unsupported registers.
6311 (arm_register_sim_regno): Handle iWMMXt registers.
6312 (arm_gdbarch_init): Record missing FPA registers if indicated by
6313 a target description. Recognize iWMMXt registers. Only register
6314 "info float" for FPA. Use ARM_NUM_REGS. Register
6315 arm_dwarf_reg_to_regnum.
6316 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6318 (struct gdbarch_tdep): Add have_fpa_registers.
6319 * features/xscale-iwmmxt.xml: Update capitalization.
6320 * regformats/arm-with-iwmmxt.dat: Regenerated.
6322 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6324 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6326 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6328 * MAINTAINERS (mep): New target.
6330 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6332 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6334 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6335 (mep-tdep.o): New rule.
6336 * configure.tgt (mep-*-*): New target.
6337 * mep-tdep.c: New file.
6338 * config/mep/mep.mt: New file.
6340 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6342 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6343 BREAKPOINT_HIT and STOP_UNKNOWN.
6345 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6347 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6349 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6351 * gdb_expat.h (XMLCALL): Define if not already defined.
6353 2007-02-20 Andreas Schwab <schwab@suse.de>
6355 * Makefile.in (symfile.o): Update dependencies.
6357 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6359 * MAINTAINERS: Disable -Werror for cris simulator. Build
6360 sparc64-solaris2.10 instead of the broken sparc-elf.
6361 * solib-frv.c: Include "solib.h".
6362 * Makefile.in (solib-frv.o): Update.
6363 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6364 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6365 (xtensa_frame_this_id, xtensa_frame_prev_register)
6366 (xtensa_push_dummy_call): Use %p.
6368 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6370 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6371 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6372 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6373 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6374 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6375 (sparc-linux-tdep.o): Update.
6377 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6379 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6380 (xtensa_mask_t): Change mask field to be a separate array.
6381 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6382 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6383 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6384 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6385 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6386 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6387 (mask14, mask15): Rename to
6388 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6389 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6390 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6391 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6392 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6393 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6394 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6395 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6396 (xtensa_submask14, xtensa_submask15): New.
6397 (rmap): Follow strict aliasing rules doing static initialization.
6399 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6401 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6402 handling from here...
6403 (tdesc_register_type): ...to here.
6404 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6405 * features/arm-core.xml: Use code_ptr and data_ptr.
6407 2007-02-13 Denis Pilat <denis.pilat@st.com>
6409 * varobj.h (enum varobj_update_error): New enum.
6410 * varobj.c (struct varobj_root): Add is_valid member.
6411 (varobj_get_type): Check for invalid varobj.
6412 (varobj_get_attributes): Likewise.
6413 (variable_editable):Likewise.
6414 (varobj_update): Likewise. Use varobj_update_error.
6415 (new_root_variable): Set root varobj as valid by default.
6416 (varobj_invalidate): New function.
6417 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6418 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6419 Use varobj_update_error.
6421 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6424 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6425 Pascal language marker.
6426 * dwarf2read.c (set_cu_language): Likewise.
6428 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6430 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6431 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6432 instead of target_terminal_init since inferior_ptid isn't set yet.
6434 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6436 * MAINTAINERS (Write After Approval): Add myself.
6438 2007-02-09 Fred Fish <fnf@specifix.com>
6440 Based on work by Apple Computer, Inc.
6441 * event-top.c (async_request_quit): Call quit() whenever either
6442 quit_flag is set or immediate_quit is set.
6444 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6446 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6447 type to a pointer to const struct block.
6448 (ada_lookup_symbol_list): Don't cast away constness when calling
6449 remove_out_of_scope_renamings.
6451 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6453 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6454 address of 'filename'; it is always non null.
6456 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6458 * exec.c (add_to_section_table): Do not discard empty sections.
6460 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6462 * features/Makefile, features/arm-with-iwmmxt.xml,
6463 features/gdbserver-regs.xsl, features/number-regs.xsl,
6464 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6465 * regformats/arm-with-iwmmxt.dat: Generate.
6466 * NEWS: Mention iWMMXt.
6468 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6470 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6471 (xml-tdesc.o): Update.
6472 * xml-support.c: Add a comment.
6473 (gdb_xml_enums_boolean): New variable.
6474 (gdb_xml_parse_attr_enum): Use strcasecmp.
6475 * xml-support.h (gdb_xml_enums_boolean): Declare.
6476 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6477 next_regnum, and current_union.
6478 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6479 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6480 (field_attributes, union_children, reg_attributes, union_attributes)
6481 (vector_attributes, feature_attributes, feature_children): New.
6482 (target_children): Make static. Add <feature>.
6483 (tdesc_elements): Make static.
6484 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6485 (struct tdesc_feature, tdesc_feature_p): New types.
6486 (struct target_desc): Add features member.
6487 (struct tdesc_arch_data, tdesc_data): New.
6488 (target_find_description): Clarify error message. Warn about
6489 ignored register descriptions.
6490 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6491 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6492 (tdesc_data_cleanup, tdesc_numbered_register)
6493 (tdesc_numbered_register_choices, tdesc_find_register)
6494 (tdesc_register_name, tdesc_register_type)
6495 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6496 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6497 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6498 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6499 (tdesc_create_feature, tdesc_record_type): New.
6500 (free_target_description): Free features.
6501 (_initialize_target_descriptions): Initialize tdesc_data.
6502 * arch-utils.c (default_remote_register_number): New.
6503 * arch-utils.h (default_remote_register_number): New prototype.
6504 * target-descriptions.h (set_tdesc_pseudo_register_name)
6505 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6506 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6507 (tdesc_numbered_register, tdesc_numbered_register_choices)
6508 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6509 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6510 (tdesc_create_reg): Declare.
6511 * gdbarch.sh (remote_register_number): New entry.
6512 * gdbarch.c, gdbarch.h: Regenerate.
6513 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6514 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6516 * arm-tdep.c (arm_register_aliases): New.
6517 (arm_register_name_strings): Rename to...
6518 (arm_register_names): ...this. Make const. Delete the old version.
6519 (current_option, arm_register_byte): Delete.
6520 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6521 (value_of_arm_user_reg): New.
6522 (arm_gdbarch_init): Verify any described registers. Call
6523 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6524 for standard register names.
6525 (_initialize_arm_tdep): Do not adjust arm_register_names.
6526 * user-regs.c (struct user_reg): Add baton member.
6527 (append_user_reg, user_reg_add_builtin, user_regs_init)
6528 (user_reg_add, value_of_user_reg): Use a baton for user
6530 * std-regs.c: Update.
6531 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6532 (user_reg_add): Add baton argument.
6533 * NEWS: Mention target description register support.
6534 * features/arm-core.xml, features/arm-fpa.xml: New.
6535 * eval.c (evaluate_subexp_standard): Allow ptype $register
6536 when the program is not running.
6538 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6540 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6542 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6544 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6545 info->disassembler_options to "any".
6547 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6549 * varobj.c (install_new_value): Only call value_get_print_value
6552 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6554 Reported by timeless@gmail.com:
6555 * gdb/target.c (target_flash_erase): Do not return void value.
6556 (target_flash_done): Likewise.
6557 * gdb/cli/cli-cmds.c (source_command): Likewise.
6559 2007-02-08 Fred Fish <fnf@specifix.com>
6561 Based on work by Apple Computer, Inc.
6562 * event-top.c (handle_sigint): Set quit_flag.
6563 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6564 if quit_flag has already been reset.
6566 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6568 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6571 2007-02-08 Fred Fish <fnf@specifix.com>
6573 * defs.h (request_quit): Remove declaration.
6574 * utils.c (request_quit): Remove definition.
6576 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6577 Jan Kratochvil <jan.kratochvil@redhat.com>
6578 Daniel Jacobowitz <dan@codesourcery.com>
6580 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6581 (skip_prologue): Allow bl->blrl used by PIC code.
6583 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6584 Daniel Jacobowitz <dan@codesourcery.com>
6586 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6587 initialize tmp_obstack.
6588 * p-valprint.c (pascal_object_print_value_fields)
6589 (pascal_object_print_value): Likewise.
6591 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6593 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6595 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6597 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6598 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6600 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6602 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6604 (tdesc_parse_xml): Cache expanded descriptions.
6606 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6608 * Makefile.in (XMLFILES): New.
6609 (COMMON_OBS): Add xml-builtin.o.
6610 (xml-builtin.c, stamp-xml): New rules.
6611 (xml-tdesc.o): Update.
6612 * features/feature_to_c.sh: New file.
6613 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6614 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6615 (gdb_xml_start_element): Initialize scope after possibly reallocating
6616 scopes. Move cleanup later. Handle the XInclude description
6618 (gdb_xml_end_element): Only parse the body if there is a current element.
6619 Call XML_DefaultCurrent if there is no element.
6620 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6621 (struct xinclude_parsing_data, xinclude_start_include)
6622 (xinclude_end_include, xml_xinclude_default)
6623 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6624 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6625 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6626 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6627 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6628 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6629 XInclude directives. Use the compiled in DTD.
6630 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6631 directory name. Do not warn here.
6632 (file_read_description_xml): Update call. Warn here instead. Pass
6634 (fetch_available_features_from_target): New.
6635 (target_read_description_xml): Use it.
6636 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6638 * features/xinclude.dtd: New file.
6640 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6642 * linux-thread-db.c (check_for_thread_db): Return early if we have
6643 no libthread_db support.
6645 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6647 * mi/mi-parse.h: Include <sys/time.h>.
6649 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6651 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6652 instead of print_variable_value to print values.
6654 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6656 * mi/mi-main.c: Numerous formatting changes.
6657 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6658 removed in my previous change.
6660 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6662 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6663 Use 1000000L instead of 1000000.
6665 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6667 Based on work by Apple Computer, Inc.
6669 * configure.ac: Test for sys/resource.h and getrusage.
6670 * configure, config.in: Regenerate.
6672 * mi/mi-main.c: Include <sys/resource.h> if present.
6673 (rusage): Declare if HAVE_GETRUSAGE.
6674 (current_command_ts, do_timings): New static variables.
6675 (timestamp, print_diff_now, print_diff, timeval_diff):
6676 New static timing functions.
6677 (mi_cmd_enable_timings): New function for new MI command.
6678 (captured_mi_execute_command, mi_execute_async_cli_command):
6679 Call timing functions.
6681 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6684 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6686 * mi/mi-parse.h: (mi_timestamp): New structure.
6687 (mi_parse): Add mi_timestamp* member.
6689 2007-02-02 Denis Pilat <denis.pilat@st.com>
6691 * thread.c (make_cleanup_restore_current_thread): New function.
6692 (info_threads_command): Use of make_cleanup_restore_current_thread
6693 to restore the current thread and the selected frame.
6694 (restore_selected_frame): New function.
6695 (struct current_thread_cleanup): Add frame_id field.
6696 (do_restore_current_thread_cleanup): Add restoring of the selected
6698 (make_cleanup_restore_current_thread): Likewise.
6699 (thread_apply_all_command): backup the selected frame while
6700 entering the function and restore it at exit.
6701 (thread_apply_command): Likewise.
6703 2007-02-02 Denis Pilat <denis.pilat@st.com>
6705 * MAINTAINERS (Write After Approval): Add myself to the list.
6707 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6709 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6710 (m32r_store_register): Ditto.
6712 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6714 * ser-mingw.c (pipe_windows_open)
6715 (pipe_windows_read, pipe_windows_write): Declare
6716 variables at the top of the function.
6718 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6720 * doublest.c (floatformat_from_length): Use the right element from
6721 gdbarch floatformats.
6722 (floatformat_from_type, extract_typed_floating)
6723 (store_typed_floating): Likewise.
6724 * doublest.h: Remove declarations for undefined floatformat arrays.
6725 * gdbarch.sh (float_format, double_format, long_double_format): Change
6727 (pformat): Update for pairs.
6728 * gdbarch.c, gdbarch.h: Regenerated.
6729 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6730 (floatformats_ieee_double_littlebyte_bigword)
6731 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6732 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6733 (floatformats_vax_d): New variables.
6734 (builtin_type_ieee_single, builtin_type_ieee_double)
6735 (builtin_type_arm_ext, builtin_type_ia64_spill)
6736 (builtin_type_ia64_quad): Replace arrays with individual types.
6737 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6738 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6739 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6740 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6741 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6742 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6743 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6744 unused and endian-specific types.
6745 (recursive_dump_type): Update for floatformat pairs.
6746 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6747 (build_gdbtypes): Use build_flt.
6748 (_initialize_gdbtypes): Update set of initialized types.
6749 * gdbtypes.h: Update declarations to match gdbtypes.c.
6750 (struct main_type): Store a pointer to two floatformats.
6751 * arch-utils.c (default_float_format, default_double_format): Delete.
6752 * arch-utils.h (default_float_format, default_double_format): Delete.
6754 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6755 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6756 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6757 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6758 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6760 2007-01-29 Joel Brobecker <brobecker@adacore.com>
6762 * target.c (maintenance_print_target_stack): New function.
6763 (initialize_targets): Add new "maintenance print target-stack"
6766 2007-01-28 Mark Kettenis <kettenis@gnu.org>
6768 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6770 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6772 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6773 (struct dwarf2_loclist_baton): Likewise.
6775 2007-01-27 Eli Zaretskii <eliz@gnu.org>
6777 * cli/cli-script.c: Include breakpoint.h.
6778 (build_command_line): Require arguments only for if and while
6780 (get_command_line, execute_user_command, execute_control_command):
6781 Fix wording of warning messages.
6782 (print_command_lines): Print breakpoint commands.
6783 (execute_control_command): Call commands_from_control_command to
6784 handle the `commands' command inside a body of a flow-control
6786 (read_next_line): Recognize the `commands' command and build a
6787 command line structure for it.
6788 (recurse_read_control_structure, read_command_lines): Handle
6789 `commands' similarly to `if' and `while'.
6791 * breakpoint.c (get_number_trailer): Document the special meaning
6792 of NULL as the first argument PP.
6793 (commands_from_control_command): New function.
6795 * breakpoint.h (commands_from_control_command): Add prototype.
6797 * defs.h (commands_control): New enumerated value for enum
6798 command_control_type.
6800 2007-01-26 Joel Brobecker <brobecker@adacore.com>
6802 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6803 (ada_exception_sal): Update accordingly.
6805 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6807 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6808 * NEWS: Describe CHAR array vs. string identifcation rules.
6810 2007-01-25 Paul Brook <paul@codesourcery.com>
6812 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6814 2007-01-24 Jim Blandy <jimb@codesourcery.com>
6816 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6817 expression is empty, bother to return the 'optimized out' value we
6818 construct. (Thanks to Carl Burch.)
6820 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6822 * varobj.c (c_value_of_root, c_value_of_child)
6823 (cplus_describe_child): Don't call release_value.
6825 2007-01-24 Thiemo Seufer <ths@mips.com>
6827 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6830 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6832 Refactor getting children name, value and type access
6834 * varobj.c (get_type_deref): Remove.
6835 (adjust_value_for_child_access): New.
6836 (c_number_of_children): Use the above.
6837 (c_describe_child): Likewise.
6838 (enum accessibility): New.
6839 (match_accessibility): New function.
6840 (cplus_describe_child): New function.
6841 (cplus_name_of_child, cplus_value_of_child)
6842 (cplus_type_of_child): Reimplement in terms
6843 of cplus_describe_child.
6844 (cplus_number_of_children): Use
6845 adjust_value_for_child_access.
6847 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6849 Fix computation of the 'editable' attribute and
6850 value changeability for for references.
6851 * varobj.c (get_value_type): New function.
6852 (c_variable_editable): Use get_value_type.
6853 (varobj_value_is_changeable): Likewise.
6855 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6857 * source.c (find_and_open_source): Try rewriting the source
6858 path inside filename if dirname is NULL.
6860 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6862 * dwarf2read.c (add_partial_symbol): Create an extra partial
6863 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6864 (new_symbol): Likewise for symbols.
6866 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
6868 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6870 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
6872 * value.c (value_primitive_field): Copy the full 'location'
6873 contents, instead of assuming that copying ADDRESS will
6874 bring over everything in the union. Remove obsolete comment.
6876 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
6878 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6879 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6880 (m32c_m16c_pointer_to_address): Separate code from declarations.
6882 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
6884 * target.c (update_current_target): Correct typo.
6886 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
6888 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6891 2007-01-11 Andrew Cagney <cagney@redhat.com>
6892 Daniel Jacobowitz <dan@codesourcery.com>
6893 Jan Kratochvil <jan.kratochvil@redhat.com>
6895 * dwarf2-frame.c (execute_cfa_program): New support of
6896 `DW_CFA_GNU_negative_offset_extended'.
6898 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6900 * NEWS: Mention flash support for "load" and new remote packets.
6902 2007-01-21 Markus Deuling <deuling@de.ibm.com>
6904 * breakpoint.c (delete_command): Skip redundant loop iterations.
6906 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6908 * gdbarch.sh (register_type): Update comment.
6909 * gdbarch.h: Regenerated.
6910 * arch-utils.c (generic_register_size): Call register_type.
6911 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6912 * m32c-tdep.c (check_for_saved): Likewise.
6913 * mips-tdep.c (mips_print_register, print_gp_register_row)
6914 (mips_print_registers_info): Likewise.
6915 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6917 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6918 (sh64_do_register, sh64_print_register)
6919 (sh64_media_print_registers_info): Likewise.
6920 * tui/tui-regs.c (tui_register_format): Likewise.
6922 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6924 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6926 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6927 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6928 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6929 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6930 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6931 (make_symbol_completion_list): Likewise.
6933 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6934 Daniel Jacobowitz <dan@codesourcery.com>
6936 * buildsym.c (end_symtab): Use preallocated symtab if available.
6937 Fill in SYMBOL_SYMTAB.
6938 * buildsym.h (struct subfile): Add symtab member.
6939 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6940 (struct file_entry): Add symtab.
6941 (free_cu_line_header): New function.
6942 (read_file_scope): Use it. Save line_header in the cu. Process
6944 (add_file_name): Initialize new symtab member.
6945 (dwarf_decode_lines): Create symtabs for included files.
6946 (new_symbol): Set SYMBOL_SYMTAB.
6947 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6948 (search_symbols): Likewise.
6949 * symtab.h (struct symbol): Add symtab member.
6950 (SYMBOL_SYMTAB): Define.
6952 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6954 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6956 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6958 * arch-utils.c (show_endian): Correct reversed condition.
6960 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6962 * MAINTAINERS (Write After Approval): Add myself.
6964 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
6965 Vladimir Prus <vladimir@codesourcery.com>
6967 Fix 'selected frame' varobjs.
6968 * varobj.c (struct varobj): Remove the error field.
6969 (varobj_set_value): Don't check var->error.
6970 (install_new_value): Don't set var->error.
6971 (varobj_update): Always pass the new value
6972 of the root via install_new_value.
6973 (create_child): Don't set error field.
6974 (new_variable): Likewise.
6975 (c_value_of_root): Always reevaluate the value
6976 of selected frame varobjs in the selected frame.
6977 Don't call reinit_frame_cache.
6979 2007-01-15 Joel Brobecker <brobecker@adacore.com>
6981 * source.c (_initialize_source): Improve the help text of
6982 the substitute-path commands.
6984 2007-01-14 Mark Kettenis <kettenis@gnu.org>
6986 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
6987 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
6988 (frv_skip_prologue): Remove prototypes.
6989 (frv_adjust_breakpoint_address): Renamed from
6990 frv_gdbarch_adjust_breakpoint_address.
6991 (frv_gdbarch_init): Adjust.
6993 2007-01-13 Mark Kettenis <kettenis@gnu.org>
6995 * gdbarch.sh (deprecated_extract_return_value)
6996 (deprecated_store_return_value): Remove.
6997 (extract_return_value, store_return_value): Remove default values.
6998 * gdbarch.c, gdbarch.h: Regenerate.
6999 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7000 (legacy_store_return_value): Remove.
7001 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7004 * mi/mi-main.c: Remove obsolete comment.
7006 * regcache.c, regcache.h (deprecated_register_bytes)
7007 (deprecated_read_register_bytes)
7008 (deprecated_write_register_bytes): Remove.
7010 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7011 Don't forget to move destination pointer.
7013 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7015 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7017 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7019 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7020 past entry function with recent newlib.
7022 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7024 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7025 introduction. Specify -var-update more exactly.
7027 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7029 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7031 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7033 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7034 the Global Maintainers' invitation to be a global maintainer.
7036 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7038 * infrun.c (singlestep_pc): New variable.
7039 (resume): Set singlestep_pc.
7040 (context_switch): Add a debugging message. Flush the frame cache.
7041 (handle_inferior_event): Add debugging messages. Handle thread
7042 hops when a software single step has completed. Let context_switch
7043 handle flushing the frame cache.
7045 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7047 * NEWS: Mention target descriptions, "set tdesc filename",
7048 "unset tdesc filename", "show tdesc filename", and
7049 qXfer:features:read.
7050 * arch-utils.c (choose_architecture_for_target): New function.
7051 (gdbarch_info_fill): Call it.
7052 * target-descriptions.c (struct property): Make members non-const.
7053 (struct target_desc): Add arch member.
7054 (target_description_filename): New variable.
7055 (target_find_description): Try via XML first.
7056 (tdesc_architecture): New.
7057 (free_target_description, make_cleanup_free_target_description): New.
7058 (set_tdesc_property): Call xstrdup.
7059 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7060 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7061 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7062 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7063 * target-descriptions.h (tdesc_architecture)
7064 (make_cleanup_free_target_description, set_tdesc_architecture): New
7066 * Makefile.in (SFILES): Add xml-tdesc.c.
7067 (COMMON_OBS): Add xml-tdesc.o.
7068 (target-descriptions.o): Update.
7069 (xml-tdesc.o): New rule.
7070 * xml-tdesc.c, xml-tdesc.h: New files.
7071 * remote.c (PACKET_qXfer_features): New enum.
7072 (remote_protocol_features): Add qXfer:features:read.
7073 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7074 (_initialize_remote): Register qXfer:features:read.
7075 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7076 * features/gdb-target.dtd: New file.
7078 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7080 * copyright.sh: Clarify error.
7082 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7084 * symtab.c (matching_bfd_sections): Fix VMA matching for
7087 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7089 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7092 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7094 Updated copyright notices for most files.
7096 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7098 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7100 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7102 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7104 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7106 * configure, config.in: Regenerate.
7107 * defs.h (debug_file_directory): Declare.
7108 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7109 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7110 relocate it if DEBUGDIR_RELOCATABLE.
7111 * symfile.c (debug_file_directory): Make non-static.
7112 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7113 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7114 (_initialize_symfile): Don't initialize debug_file_directory here.
7116 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7118 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7121 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7123 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7124 frame_unwind_register to recurse.
7125 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7126 (alpha_heuristic_frame_prev_register): Likewise.
7127 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7128 * m32c-tdep.c (m32c_prev_register): Likewise.
7129 * frame.c (frame_register_unwind_location): Remove FIXME.
7131 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7132 Eli Zaretskii <eliz@gnu.org>
7134 * copyright.sh: New file.
7136 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7138 * configure.ac: Check for XML_StopParser.
7139 * xml-support.c (gdb_xml_body_text): Check for an error.
7140 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7141 (gdb_xml_end_element_wrapper): Likewise.
7142 * config.in, configure: Regenerated.
7144 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7146 * varobj.c (install_new_value): Always update print_value.
7147 (value_get_print_value): Immediately return NULL for missing
7150 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7152 * configure.ac: Tighten pattern for extracting value of
7153 DEPRECATED_TM_FILE from the target makefile fragment.
7154 * configure: Regenerated.
7156 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7158 * linux-nat.c (struct simple_pid_list): Add status.
7159 (add_to_pid_list): Record the PID's status.
7160 (linux_record_stopped_pid): Likewise. Make static.
7161 (pull_pid_from_list): Return the saved status.
7162 (linux_nat_handle_extended): Deleted.
7163 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7164 Make static. Handle non-SIGSTOP for a new thread's first signal.
7165 (flush_callback): Handle unexpected pending signals.
7166 (linux_nat_wait): Update calls to changed functions.
7167 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7168 Remove prototypes for newly static functions.
7170 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7172 * gdbarch.sh (value_from_register): New gdbarch function.
7173 * gdbarch.c, gdbarch.h: Regenerate.
7174 * findvar.c (default_value_from_register): New function.
7175 (value_from_register): Use gdbarch_value_from_register.
7176 * value.h (default_value_from_register): Declare.
7177 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7178 spu_value_to_register): Remove.
7179 (spu_value_from_register): New function.
7180 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7181 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7182 Call set_gdbarch_value_from_register.
7183 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7184 s390_value_to_register): Remove.
7185 (s390_value_from_register): New function.
7186 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7187 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7188 Call set_gdbarch_value_from_register.
7190 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7192 * NEWS: Add "set sysroot" and "show sysroot".
7193 * solib.c (solib_absolute_prefix): Delete. Replace
7194 all uses with gdb_sysroot.
7195 (_initialize_solib): Add "set sysroot" and "show sysroot".
7196 Make "solib-absolute-prefix" an alias to it.
7198 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7200 * frame.c (get_frame_register_bytes): New function.
7201 (put_frame_register_bytes): Likewise.
7202 * frame.h (get_frame_register_bytes): Declare.
7203 (put_frame_register_bytes): Likewise.
7204 * findvar.c (value_from_register): Always construct lval_register
7205 values. Use get_frame_register_bytes.
7206 * valops.c (value_assign): Use get_frame_register_bytes and
7207 put_frame_register_bytes.
7209 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7211 * MAINTAINERS: Update Stan Shebs' email address.
7213 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7215 * ada-lang.c (is_known_support_routine): Improve the implementation.
7217 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7219 * ada-lang.c: Add include of source.h.
7220 (is_known_support_routine): Improve the check verifying that the file
7221 associated to this frame exists.
7222 * Makefile.in (ada-lang.o): Add dependency on source.h.
7224 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7226 * ax-general.c (ax_const_l): Select proper opcode for the given
7229 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7231 * varobj.c (c_value_of_root): Don't select frame if variable
7232 object is out of scope.
7234 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7236 * varobj.c (struct varobj): New member print_value.
7237 (install_new_value): Compare last printed value with current one
7238 instead of contents.
7239 (new_variable): Initialize var->print_value to NULL.
7240 (free_variable): Free var->print_value.
7241 (value_get_print_value): New function derived from
7242 c_value_of_variable.
7243 (c_value_of_variable): Use value_get_print_value.
7245 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7247 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7249 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7251 * NEWS: Add entries for new catch commands.
7253 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7255 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7256 (add_partial_symbol): Correct identification of external references.
7257 (process_structure_scope): Likewise.
7258 (read_partial_die): Handle DW_AT_byte_size attribute.
7260 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7262 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7264 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7266 * varobj.c (get_type_deref): Fix variable objects for references to
7269 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7271 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7274 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7276 * memory-map.c (struct_memory_map_parsing_data): Remove most
7277 members. Make property_name an array.
7278 (free_memory_map_parsing_data, memory_map_start_element)
7279 (memory_map_end_element, memory_map_character_data): Delete.
7280 (memory_map_start_memory, memory_map_end_memory)
7281 (memory_map_start_property, memory_map_end_property): New functions.
7282 (property_attributes, memory_children, memory_type_enum)
7283 (memory_attributes, memory_map_children, memory_map_elements): New.
7284 (parse_memory_map): Rewrite.
7285 * xml-support.c (debug_xml): New.
7286 (xml_get_required_attribute, xml_get_integer_attribute)
7287 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7289 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7290 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7291 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7292 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7293 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7294 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7295 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7297 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7298 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7299 (enum gdb_xml_element_flag, struct gdb_xml_element)
7300 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7301 (struct gdb_xml_enum): New.
7302 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7303 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7304 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7305 (xml_get_required_attribute, xml_get_integer_attribute)
7306 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7307 * Makefile.in (xml_support_h, xml-support.o): Update.
7309 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7311 * Makefile.in (eval.o): Update dependencies.
7312 * eval.c: Include "ui-out.h" and "exceptions.h".
7313 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7314 Use value_zero if an error occurs when avoiding side effects.
7315 * varobj.c (c_value_of_root): Initialize new_val.
7317 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7319 * varobj.c (varobj_list_children): Stop if the number of children is
7321 (c_number_of_children):
7323 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7325 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7326 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7327 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7328 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7329 sizeof, instead of hardcoded constants.
7331 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7333 * CONTRIBUTE: Use sourceware.org.
7335 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7337 * buildsym.c (start_subfile): Handle producer.
7338 (record_producer): New function.
7339 * buildsym.h (struct subfile): Include producer.
7340 (record_producer): New prototype.
7341 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7342 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7343 armcc_cfa_offsets_reversed.
7344 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7345 (dwarf2_frame_find_quirks): New function.
7346 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7347 (decode_frame_entry_1): Record the CIE version. Record the
7348 augmentation. Skip armcc augmentations.
7349 * dwarf2read.c (read_file_scope): Save the producer.
7350 * symtab.h (struct symtab): Rename unused version member to
7353 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7355 * configure.ac (build_warnings): Use -Wall and
7356 -Wdeclaration-after-statement.
7357 * configure: Regenerated.
7359 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7361 Simplify access to variours properties of child
7362 variable objects in C.
7363 * varobj.c (value_struct_element_index): New function.
7364 (c_describe_child): New function.
7365 (c_name_of_child, c_value_of_child)
7366 (c_type_of_child): Rewrite to use c_describe_child.
7368 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7371 * varobj.c: Include "vec.h".
7372 (varobj_p): New typedef, declare vector of those.
7373 (struct varobj): Use vector for the 'children' member.
7374 (child_exists): Remove.
7375 (save_child_in_parent): Remove.
7376 (remove_child_from_parent): Remove.
7377 (struct varobj_child): Remove.
7378 (struct vstack): Remove.
7379 (vpush, vpop): Remove.
7380 (varobj_list_children): Adjust to work work vector.
7381 (varobj_update): Likewise. Use vectors for
7382 working stack and result.
7383 (delete_variable_1): Likewise.
7384 * Makefile.in (varobj.o): Update dependencies.
7386 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7388 Port from Apple's version.
7390 * varobj.c (type_changeable): Rename to...
7391 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7392 (is_root_p): New function. Use it everywhere.
7394 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7396 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7399 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7401 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7403 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7405 * hpread.c (hpread_type_lookup): Fix compilation failure.
7407 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7409 * NEWS: New port to S+core.
7410 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7413 * Makefile.in: Add dependencies for S+core files.
7414 * configure.tgt (score*, score-*-*): Add S+core target.
7415 * config/score/embed.mt: New file.
7416 * score-tdep.c: New file.
7417 * score-tdep.h: New file.
7419 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7421 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7422 the appropriate type rather than a bogus void type.
7424 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7426 * ada-lang.h (ada_find_printable_frame): Remove.
7427 (ada_exception_catchpoint_p, ada_decode_exception_location)
7428 (ada_decode_assert_location): Add declaration.
7429 * ada-lang.c: Add include of annotate.h and valprint.h.
7430 (exception_catchpoint_kind): New enum.
7431 (function_name_from_pc, is_known_support_routine)
7432 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7433 (ada_exception_name_addr_1, ada_exception_name_addr)
7434 (print_it_exception, print_one_exception, print_mention_exception)
7435 (print_it_catch_exception, print_one_catch_exception)
7436 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7437 (print_it_catch_exception_unhandled)
7438 (print_one_catch_exception_unhandled)
7439 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7440 (print_one_catch_assert, print_mention_catch_assert)
7441 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7442 (ada_get_next_arg, catch_ada_exception_command_split)
7443 (ada_exception_sym_name, ada_exception_sym_name)
7444 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7445 (ada_parse_catchpoint_condition, ada_exception_sal)
7446 (ada_decode_exception_location)
7447 (ada_decode_assert_location): New function.
7448 (catch_exception_unhandled_breakpoint_ops): New global variable.
7449 (catch_assert_breakpoint_ops): New global variable.
7450 * breakpoint.c: Add include of ada-lang.h.
7451 (print_one_breakpoint): Do not print the condition for Ada
7452 exception catchpoints.
7453 (create_ada_exception_breakpoint): New function.
7454 (catch_ada_exception_command, catch_assert_command): New function.
7455 (catch_command_1): Add support for the new "catch exception" and
7456 "catch assert" commands.
7457 (_initialize_breakpoint): Add help description for the new catch
7459 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7461 (breakpoint.o): Add dependency on ada-lang.h.
7463 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7465 * coffread.c (cs_to_section): If bfd_section is found, always
7466 return its section index.
7467 (coff_symtab_read): Determine the minimal_symbol_type using the
7470 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7471 Daniel Jacobowitz <dan@codesourcery.com>
7473 * Makefile.in (top.o): Update.
7474 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7475 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7476 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7478 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7480 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7482 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7483 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7485 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7487 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7488 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7489 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7490 greater than or equal to zero.
7491 * m2-typeprint.c (m2_array): Likewise.
7492 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7493 * gdbtypes.c (copy_type_recursive): Correct == typo.
7494 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7495 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7497 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7498 (default_macro_scope): Remove unused variable.
7499 * prologue-value.h (pv_area_find_reg): Don't name an argument
7501 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7502 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7504 (cleanup_sigint_signal_handler): Remove casts.
7505 * valprint.c (val_print): Use a volatile local for the modified
7507 * varobj.c (languages): Remove extra array dimension.
7508 (varobj_create): Correct access to languages array.
7509 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7511 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7512 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7513 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7514 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7515 (mi_cmd_data_write_memory): Likewise.
7516 * signals/signals.c (target_signal_to_string): Cast to int before
7518 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7521 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7523 * NEWS: Mention pointer to member improvements.
7524 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7525 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7526 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7527 * c-typeprint.c (c_print_type): Update for new type codes.
7528 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7529 (c_type_print_base): Likewise.
7530 (c_type_print_args): Rewrite.
7531 * c-valprint.c (c_val_print): Update for new type codes. Remove
7532 support for references to members. Treat methods like functions.
7533 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7534 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7535 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7536 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7537 (struct cp_abi_ops): Add corresponding members.
7538 * cp-valprint.c (cp_print_class_method): Delete.
7539 (cp_find_class_member): New function.
7540 (cp_print_class_member): Use it. Simplify support for bogus
7542 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7543 lookup_methodptr_type.
7544 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7545 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7546 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7548 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7549 references returned by user defined operators.
7550 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7551 (f_type_print_varspec_suffix): Remove support for member pointers.
7552 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7554 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7555 (lookup_methodptr_type): New.
7556 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7557 (recursive_dump_type): Update for new types.
7558 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7559 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7560 (lookup_memberptr_type, lookup_methodptr_type)
7561 (smash_to_memberptr_type): New prototypes.
7562 (smash_to_method_type): Formatting fix.
7563 (lookup_member_type, smash_to_member_type): Delete prototypes.
7564 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7565 Do not rely on debug information for the vptr or the method's
7566 enclosing type. Handle function descriptors for IA64.
7567 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7568 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7569 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7570 (gnuv3_method_ptr_to_value): New.
7571 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7572 * hpread.c (hpread_type_lookup): Update for new types.
7573 * infcall.c (value_arg_coerce): Likewise.
7574 * m2-typeprint.c (m2_print_type): Remove explicit support
7575 for member pointers.
7576 * m2-valprint.c (m2_val_print): Likewise.
7577 * p-typeprint.c (pascal_type_print_varspec_prefix)
7578 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7579 * p-valprint.c (pascal_val_print): Likewise.
7580 (pascal_object_print_class_method, pascal_object_print_class_member):
7582 * p-lang.h (pascal_object_print_class_method)
7583 (pascal_object_print_class_member): Delete prototypes.
7584 * stabsread.c (read_type): Update for new types.
7585 * typeprint.c (print_type_scalar): Likewise.
7586 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7587 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7588 argument. Construct a pointer to member if the address of a
7589 function or data member is requested.
7590 (value_cast_pointers): Don't modify the input value.
7591 (value_cast): Adjust pointer to member handling for new types.
7592 Allow null pointer to member constants. Don't modify the input
7594 (value_ind): Remove pointer to member check. Handle function
7595 descriptors for function pointers.
7596 (value_struct_elt, value_find_oload_method_list, check_field):
7597 Remove pointer to member checks.
7598 * value.c (unpack_long): Allow pointers to data members.
7599 (value_from_longest): Allow member pointers.
7600 * value.h (value_aggregate_elt): Add want_address.
7601 * varobj.c (c_variable_editable): Remove check for members.
7602 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7603 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7605 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7606 * c-lang.h (cp_print_class_method): Delete prototype.
7607 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7608 * mips-tdep.c (mips_gdbarch_init): Likewise.
7609 * gdbarch.c, gdbarch.h: Regenerated.
7611 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7613 * rs6000-tdep.c (rs6000_use_struct_convention)
7614 (rs6000_extract_return_value, rs6000_store_return_value)
7615 (rs6000_extract_struct_value_address): Remove.
7616 (rs6000_return_value): New function.
7617 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7618 store_return_value, deprecated_extract_struct_value_address and
7619 deprecated_use_struct_convention. Use rs6000_return_value
7622 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7624 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7625 -display-disable, -display-enable, -display-insert and
7628 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7630 * breakpoint.c (remove_breakpoint): Remove dead code.
7632 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7634 * varobj.c: Include block.h.
7635 (c_value_of_root): Check scope within nested statements.
7637 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7639 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7640 regcache_cooked_write_signed instead of
7641 deprecated_write_register_bytes.
7643 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7645 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7647 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7649 Followed the Start of New Year Procedure:
7650 * ChangeLog-2006: New file, containing all the entries for 2006.
7651 * ChangeLog: Removed all 2006 entries, and changed the reference
7652 to the previous ChangeLog to point to ChangeLog 2006.
7653 * top.c (print_gdb_version): Update copyright year.
7655 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7657 * Makefile.in (remote-sds.o): Remove.
7658 * remote-sds.c: Delete.
7660 For older changes see ChangeLog-2006.
7666 version-control: never