1 2007-10-09 Markus Deuling <deuling@de.ibm.com>
3 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
4 the current architecture by regcache.
6 2007-10-09 Markus Deuling <deuling@de.ibm.com>
8 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
11 2007-10-09 Markus Deuling <deuling@de.ibm.com>
13 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
14 architecture by frame.
15 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
16 (inside_main_func, frame_sp_unwind): Likewise.
18 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
20 * solib-svr4.c (enable_break): Add the dynamic linker also if
23 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
25 * MAINTAINERS (Write After Approval): Add self.
27 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
29 * stabsread.c (read_huge_number): Initialize local variable to 0.
31 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
33 * p-lang.h (pascal_main_name): Add declaration.
34 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
35 (GPC_MAIN_PROGRAM_NAME_2): New constants.
36 (pascal_main_name): New function.
37 * symtab.c: Include p-lang.h.
38 (find_main_name): Add call to pascal_main_name.
39 * Makefile.in (symtab.o): Add dependency on p-lang.h.
41 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
43 * stabsread.c (read_huge_number): Fix handling of octal
44 representation when the bit width is known.
45 (read_range_type): Record unsigned integral types with their size,
46 when the type size is known.
48 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
50 * MAINTAINERS (Write After Approval): Add self.
52 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
54 * breakpoint.c (print_one_breakpoint_location): ARI fix:
55 Replace asprintf by xstrprintf.
57 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
59 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
60 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
62 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
64 * linux-fork.c: Move "gdb_wait.h" include back to the position of
65 <sys/wait.h> include before last commit.
67 2007-10-08 Maciej W. Rozycki <macro@mips.com>
69 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
71 2007-10-08 Markus Deuling <deuling@de.ibm.com>
73 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
74 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
75 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
76 (store_regs_user_thread, store_regs_kernel_thread): Use
77 get_regcache_arch or get_frame_arch to get at the current architecture
78 by regcache or by frame, respectively.
80 2007-10-08 Markus Deuling <deuling@de.ibm.com>
82 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
83 (sh64_pseudo_register_read, sh64_pseudo_register_write)
84 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
85 (sh64_print_register, sh64_media_print_registers_info)
86 (sh64_compact_print_registers_info, sh64_unwind_sp)
87 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
88 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
89 (sh64_frame_prev_register): Use FRAME to recognize current
92 2007-10-08 Markus Deuling <deuling@de.ibm.com>
94 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
95 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
96 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
97 current_gdbarch by gdbarch.
98 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
99 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
100 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
101 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
102 recognize current architecture.
104 2007-10-08 Markus Deuling <deuling@de.ibm.com>
106 * remote.c (init_remote_state, fetch_register_using_p)
107 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
108 (store_register_using_P, store_registers_using_G)
109 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
110 get at the current architecture by regcache or by frame, respectively.
112 2007-10-08 Markus Deuling <deuling@de.ibm.com>
114 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
115 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
116 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
117 get_regcache_arch or get_frame_arch to get at the current architecture
118 by regcache or by frame, respectively.
119 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
120 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
121 (store_register, old_store_inferior_registers, supply_gregset)
122 (supply_fpregset, fill_fpregset): Likewise.
123 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
124 Replace current_gdbarch by gdbarch.
126 2007-10-08 Markus Deuling <deuling@de.ibm.com>
128 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
129 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
130 get_frame_arch to get at the current architecture by regcache or by
133 2007-10-08 Markus Deuling <deuling@de.ibm.com>
135 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
136 Replace current_gdbarch by gdbarch.
137 * ia64-tdep.c (ia64_frame_prev_register
138 (ia64_sigtramp_frame_prev_register)
139 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
140 get_frame_arch to get at the current architecture by regcache or by
142 * ia64-linux-nat.c (ia64_linux_fetch_register)
143 (ia64_linux_fetch_registers, ia64_linux_store_register)
144 (ia64_linux_store_registers): Likewise.
146 2007-10-08 Markus Deuling <deuling@de.ibm.com>
148 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
149 current_gdbarch by gdbarch.
150 * hppa-linux-nat.c (fetch_register, store_register)
151 (hppa_linux_fetch_inferior_registers)
152 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
153 get_frame_arch to get at the current architecture by regcache or by
155 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
156 (hppa_hpux_unwind_adjust_stub): Likewise.
157 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
158 (hppa_hpux_fetch_inferior_registers)
159 (hppa_hpux_store_inferior_registers): Likewise.
161 2007-10-08 Markus Deuling <deuling@de.ibm.com>
163 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
164 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
165 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
166 or get_frame_arch to get at the current architecture by regcache or by
168 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
169 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
170 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
171 current_gdbarch by gdbarch.
173 2007-10-08 Markus Deuling <deuling@de.ibm.com>
175 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
176 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
177 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
178 get at the current architecture by regcache or by·frame, respectively.
179 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
182 2007-10-08 Markus Deuling <deuling@de.ibm.com>
184 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
185 Use get_regcache_arch or get_frame_arch to get at the current
186 architecture by regcache or by frame, respectively.
187 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
188 * amd64-nat.c (amd64_supply_native_gregset)
189 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
191 2007-10-08 Markus Deuling <deuling@de.ibm.com>
193 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
195 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
196 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
197 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
198 get_frame_arch to get at the current architecture by regcache or by
200 * alpha-nat.c (fetch_osf_core_registers): Likewise.
202 2007-10-08 Markus Deuling <deuling@de.ibm.com>
204 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
205 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
206 current_gdbarch by gdbarch.
207 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
209 2007-10-08 Markus Deuling <deuling@de.ibm.com>
211 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
212 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
213 * regcache.c (regcache_raw_write): Use get_regcache_arch or
214 get_frame_arch to get at the current architecture by regcache or by
217 2007-10-08 Markus Deuling <deuling@de.ibm.com>
219 * findvar.c (value_of_register, locate_var_value): Use
220 get_regcache_arch or get_frame_arch to get at the current architecture
221 by regcache or by frame, respectively.
222 * findvar.c (default_value_from_register, value_from_register): Replace
223 current_gdbarch by gdbarch.
225 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
227 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
229 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
231 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
232 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
234 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
236 * remote.c (get_offsets): Only call free_symfile_segment_data if
239 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
241 * objc-exp.y: ARI fix: remove 4 PARAMS.
243 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
245 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
246 news. Mention XML support for M68K in GDB 6.7.
248 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
250 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
252 (init_vector_type): Use builtin_type_int32.
254 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
256 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
257 size to enable bi-arch generate-core-file support.
259 2007-10-02 Markus Deuling <deuling@de.ibm.com>
261 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
263 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
265 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
267 * tui/tui-win.c (tui_initialize_win): New function for
268 initializing tui's SIGWINCH signal handler.
269 * tui/tui-win.h (tui_initialize_win): Declare.
271 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
273 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
274 pointer to uintptr_t before casting to CORE_ADDR.
276 2007-10-02 Markus Deuling <deuling@de.ibm.com>
278 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
280 2007-10-02 Mark Mitchell <mark@codesourcery.com>
282 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
283 * ser-mingw.c (enum select_thread_state): New type.
284 (struct ser_console_state): Add have_started and thread_state.
285 (select_thread_wait): New function.
286 (thread_fn_type): New type.
287 (create_select_thread): New function.
288 (destroy_select_thread): Likewise.
289 (start_select_thread): Likewise.
290 (stop_select_thread): Likewise.
291 (console_select_thread): Use new functions.
292 (pipe_select_thread): Likewise.
293 (file_select_thread): Likewise.
294 (ser_console_wait_handle): Likewise.
295 (ser_console_done_wait_handle): Likewise.
296 (ser_console_close): Likewise.
297 (free_pipe_state): Likewise.
298 (pipe_wait_handle): Likewise.
299 (pipe_done_wait_handle): Likewise.
300 (struct net_windows_state): Derive from ser_console_state.
301 (net_windows_select_thread): Use new functions.
302 (net_windows_wait_handle): Likewise.
303 (net_windows_done_wait_handle): Likewise.
304 (net_windows_close): Likewise.
306 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
308 * inflow.c (terminal_ours_1): Remove useless line.
310 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
312 * mips-tdep.c (mips_read_fp_register_double): Correct check for
314 (mips_print_fp_register): Correct check for even FP registers.
315 (mips_virtual_frame_pointer): New function.
316 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
318 2007-09-30 Mike Frysinger <vapier@gentoo.org>
320 * value.h (lookup_only_internalvar): New prototype.
321 (create_internalvar): Likewise.
322 * value.c (lookup_only_internalvar): New function.
323 (create_internalvar): Likewise.
324 (lookup_internalvar): Use new lookup_only_internalvar and
325 create_internalvar functions.
326 * parse.c (write_dollar_variable): Look up $ symbols in internal
327 table first rather than last.
329 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
331 * linux-nat.c (linux_nat_new_thread): New variable.
332 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
333 linux_nat_switch_fork.
334 (lwp_list): Make public.
335 (add_lwp): Call linux_nat_new_thread.
336 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
338 (resume_callback): Clear lp->siginfo. Remove unused variable.
339 (linux_nat_resume): Assert that the LWP list is already initialized.
342 (stop_wait_callback, linux_nat_wait): Call it.
343 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
344 * linux-nat.h (struct lwp_info): Add siginfo.
345 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
348 * amd64-linux-nat.c (amd64_linux_dr): New.
349 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
350 (amd64_linux_dr_set): Take a PTID argument.
351 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
352 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
353 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
354 (amd64_linux_new_thread): New.
355 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
356 * i386-linux-nat.c (i386_linux_dr): New.
357 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
358 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
359 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
360 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
361 (i386_linux_new_thread): New.
362 (i386_linux_resume): Remove unnecessary PID check.
363 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
364 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
365 (fetch_debug_register, fetch_debug_register_pair): Delete.
366 (debug_registers): New.
367 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
368 ALL_LWPS and debug_registers.
369 (ia64_linux_new_thread): New.
370 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
371 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
372 * ppc-linux-nat.c (last_stopped_data_address): Delete.
373 (saved_dabr_value): New.
374 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
376 (ppc_linux_new_thread): New.
377 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
378 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
379 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
380 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
382 (s390_fix_watch_points): Take a PTID argument.
383 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
384 (_initialize_s390_nat): Call linux_nat_set_new_thread.
386 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
387 Jeff Johnston <jjohnstn@redhat.com>
389 * breakpoint.c (watchpoints_triggered): New.
390 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
391 Check watchpoint_triggered instead. Combine handling for software
392 and hardware watchpoints. Do not use target_stopped_data_address
393 here. Always check a watchpoint if its scope breakpoint triggers.
394 Do not stop for thread or overlay events. Improve check for
395 triggered watchpoints without a value change.
396 (watch_command_1): Insert the scope breakpoint first. Link the
397 scope breakpoint to the watchpoint.
398 * breakpoint.h (enum watchpoint_triggered): New.
399 (struct breakpoint): Add watchpoint_triggered.
400 (bpstat_stop_status): Update prototype.
401 (watchpoints_triggered): Declare.
402 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
403 (stepped_after_stopped_by_watchpoint): Delete.
404 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
405 local. Handle infwait_step_watch_state. Update calls to
406 bpstat_stop_status. Use watchpoints_triggered to check
408 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
409 (remote_stopped_data_address): Do not check it.
411 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
413 * configure.ac: Add $LIBINTL when testing libbfd.
414 * configure: Regenerated.
416 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
418 * NEW: Mention pending breakpoint changes and
419 support for breakpoints at multiple locations.
421 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
423 * arm-linux-tdep.c (arm_linux_software_single_step): New.
424 (arm_linux_init_abi): Use it.
425 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
427 * arm-tdep.h (arm_get_next_pc): Declare.
428 * Makefile.in (arm-linux-tdep.o): Update.
430 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
432 * varobj.c (install_new_value): Don't
433 call value_get_print_value when a value is
434 lazy. Update the print_value member in a
437 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
439 * breakpoint.c (create_breakpoint): Set
440 condition on each location, not on the first
441 location of breakpoint.
443 2007-09-26 Jim Blandy <jimb@codesourcery.com>
445 * remote.c (getpkt_sane): Fix error message. No animals were
446 harmed in the making of this debugger.
448 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
450 * p-typeprint.c: Fix 11 ARI reported problems.
451 (pascal_print_type): Fix 4 operator at end of line.
452 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
453 using strncmp function.
454 (pascal_type_print_base): Fix 2 operator at end of line.
455 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
456 using strncmp function.
459 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
462 dwarf2read.c (read_subroutine_type):
463 All pascal functions are prototyped.
465 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
468 p-valprint.c (pascal_val_print): correct current language check.
469 Also print array of char as strings.
472 2007-09-26 David Ung <davidu@mips.com>
473 Maciej W. Rozycki <macro@mips.com>
475 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
477 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
479 * p-exp.y: Fix 12 ARI reported problems.
480 (name_not_typename): Fix 2 operator at end of line issues.
481 (yylex): Fix 3 operator at end of line issues.
482 Replace 7 DEPRECATED_STREQ macros using strcmp function.
484 2007-09-25 David Ung <davidu@mips.com>
485 Maciej W. Rozycki <macro@mips.com>
487 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
488 rules return composite types in registers as appropriate.
490 2007-09-24 Jim Blandy <jimb@codesourcery.com>
492 * symfile.h (struct symfile_segment_data): Doc fixes.
493 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
494 Assert that we were passed some loaded segment addresses,
495 and that sections' segment numbers are valid.
496 Simplify offset calculation.
497 * remote.c (get_offsets): Clarify selection of relocate-by-segment
498 strategy, and set num_segments correctly. Delete redundant
499 assignments to do_sections.
501 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
503 * frame.c (get_prev_frame_1): Also check for PC in the same register.
505 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
507 * breakpoint.c (remove_sal): New.
508 (expand_line_sal_maybe): New.
509 (create_breakpoints): Call expand_line_sal_maybe.
510 (clear_command): Add comment.
511 (breakpoint_re_set_one): Call expand_line_sal_maybe.
512 * linespec.c (decode_indirect): Set explicit_pc to 1.
513 (decode_all_digits): Set explicit_line to 1.
514 (append_expanded_sal): New.
515 (expand_line_sal): New.
516 * linespec.h (expand_line_sal): Declare.
517 * symtab.c (init_sal): Initialize explicit_pc
519 * symtab.h (struct symtab_and_line): New fields
520 explicit_pc and explicit_line.
522 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
524 * infcall.c (call_function_by_hand): Handle language-specific
525 pass and return by reference.
527 * cp-abi.c (cp_pass_by_reference): New.
528 * cp-abi.h (cp_pass_by_reference): Declare.
529 (struct cp_abi_ops): Add pass_by_reference.
530 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
531 (init_gnuv3_ops): Set pass_by_reference.
533 * language.c (language_pass_by_reference): New.
534 (default_pass_by_reference): New.
535 (unknown_language_defn, auto_language_defn, local_language_defn): Add
536 default_pass_by_reference.
537 * langauge.h (struct language_defn): Add la_pass_by_reference.
538 (language_pass_by_reference, default_pass_by_reference): Declare.
539 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
540 * c-lang.c (c_language_defn, asm_language_defn)
541 (minimal_language_defn): Likewise.
542 (cplus_language_defn): Add cp_pass_by_reference.
543 * f-lang.c (f_language_defn): Add default_pass_by_reference.
544 * jv-lang.c (java_language_defn): Likewise.
545 * m2-lang.c (m2_language_defn): Likewise.
546 * objc-lang.c (objc_language_defn): Likewise.
547 * p-lang.c (pascal_language_defn): Likewise.
548 * scm-lang.c (scm_language_defn): Likewise
550 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
552 Allow a code breakpoint to have several locations
554 * breakpoint.h (enum enable_state): Remove the
555 bp_shlib_disabled enumerator.
556 (struct bp_location): New members shlib_disabled,
557 global_next, enabled and function_name.
558 Rename pending to condition_not_parsed.
560 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
561 (ALL_BP_LOCATIONS_SAFE): Likewise.
562 (breakpoint_enabled): Don't check for pending.
563 (condition_command): Free and update all locations of
565 (insert_bp_location): Adjust.
566 (software_breakpoint_inserted_here_p): Don't care
567 if breakpoint is enabled, as soon as it's inserted.
568 (print_it_typical): Print bpstat's location, not
569 bpstat's breakpoint's location.
570 (bpstat_stop_status): Iterate over all locations, not
572 (print_breakpoint_location): New.
573 (print_one_breakpoint): Renamed to
574 (print_one_breakpoint_location): ...this. Take
575 parameters to describe which location is being
576 printed. Modify code to properly print header
577 for several locations and individual locations.
578 (print_one_breakpoint): Print all locations.
579 (breakpoint_has_pc): New.
580 (describe_other_breakpoints): Use the above.
581 (check_duplicates): Renamed to...
582 (check_duplicates_for): .. this.
583 (check_duplicates): Use check_duplicates_for.
584 (allocate_bp_location): Adjust.
585 (set_raw_breakpoint_without_location): New,
586 extracted from set_raw_breakpoint.
587 (set_breakpoint_location_function): New.
588 (set_raw_breakpoint): Use
589 set_raw_breakpoint_without_location.
590 (make_breakpoint_permanent): Mark all locations
592 (disable_breakpoints_in_shlibs): Iterate over
594 (disable_breakpoints_in_unloaded_shlib): Likewise.
595 (re_enable_breakpoints_in_shlibs): Likewise.
596 (mention): Say "pending" when breakpoint has
597 zero locations. If breakpoint has more than one
599 (add_location_to_breakpoint): New.
600 (create_breakpoint): Accept symtabs_and_lines, not
601 symtab_and_line. Pass extra sals to
602 add_location_to_breakpoint.
603 (create_breakpoints): Pass symtabs_and_lines to
605 (break_command_1): Make pending breakpoints
607 (do_captured_breakpoint): Remove wrong allocation.
608 (clear_command): Iterate over all locations.
609 (unlink_locations_from_global_list): Renamed
610 from unlink_location_from_global_list. Remove
612 (delete_breakpoint): Remove all locations.
613 Iterate over all locations when deciding which
614 other location to re-enable.
615 (all_locations_are_pending): New.
616 (update_breakpoint_locations): Renamed from
617 update_breakpoint_location. Try to match old
618 and new locations using names of containing
620 (breakpoint_re_set_one): Adjust.
621 (find_location_by_number): New.
622 (disable_command): Allow disabling individual location.
623 (enable_command): Allow enabling individual location.
624 * breakpoint.c: Adjust all uses of breakpoint's
625 enable state to for bp_shlib_disabled change.
627 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
629 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
630 (resolve_pending_breakpoint): Remove.
631 (re_enable_breakpoints_in_shlibs): Remove.
632 (unlink_locations_from_global_list): New.
633 (update_breakpoint_locations): New.
634 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
635 Use parse_condition and update_breakpoint_location to
636 reset breakpoint. Ignore 'symbol not found' error from
638 (breakpoint_re_set): Don't emit newline before the
639 reason why breakpoint is not reset.
640 (do_enable_breakpoint): Don't specially process pending
642 (free_bp_location): New.
643 (break_command_1): For pending breakpoints, initialize
644 all fields of a sal with zeroes.
645 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
646 * infcmd.c (post_create_inferior): Don't call
647 re_enable_breakpoints_in_shlibs.
648 * infrun.c (handle_inferior_event): Likewise.
649 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
650 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
651 * win32-nat.c (get_win32_debug_event): Likewise.
653 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
655 * breakpoint.c (create_breakpoint): Split from
656 create_breakpoints, implementing most of its logic.
657 Take just a single sal, single address string and
658 single condition. Do not take parsed condition at
660 (create_breakpoints): Just call create_breakpoint
662 (find_condition_and_thread): New.
663 (break_command_1): Use find_condition_and_thread.
664 Do not keep parsed conditions.
665 (do_captured_breakpoint): Don't convert
666 condition string to struct expression.
668 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
670 * breakpoint.h (struct breakpoint): Move the cond
672 (struct bp_location): Here.
673 * breakpoint.c (condition_command, bpstat_stop_status)
674 (print_one_breakpoint, allocate_bp_location)
675 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
676 (create_exec_event_catchpoint, create_breakpoints)
677 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
678 (create_ada_exception_breakpoint, set_breakpoint_sal)
679 (delete_breakpoint, breakpoint_re_set_one): Adjust.
680 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
682 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
684 Associate bp_stat with bp_location, not breakpoint.
685 * breakpoint.h (breakpoint_at): Change type
687 * breakpoint.c (bpstat_alloc): Take bp_location,
689 (bpstat_find_breakpoint): Look at bpstat's location's
690 owner, not at bpstat->breakpoint_at.
691 (bpstat_find_step_resume_breakpoint): Likewise.
692 (bpstat_num): Likewise.
693 (print_it_typical): Likewise.
694 (print_bp_stop_message): Likewise.
695 (watchpoint_check): Likewise.
696 (bpstat_what): Likewise.
697 (bpstat_get_triggered_catchpoints): Likewise.
698 (breakpoint_auto_delete): Likewise.
699 (delete_breakpoint): Likewise.
700 (bpstat_stop_status): Pass location, not breakpoint,
701 to bpstat_alloc. Look at bpstat's location's
702 owner, not at bpstat->breakpoint_at.
704 2007-09-21 Jim Blandy <jimb@codesourcery.com>
706 * macrotab.h (new_macro_table): Document that removing information
707 from an obstack/bcache-managed macro table leaks memory.
708 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
709 that data is never freed in obstack/bcache-managed macro tables,
710 just leak the storage.
711 (macro_undef): If we're undefining a macro at exactly the same
712 source location that we defined it, simply remove the definition
715 2007-09-21 Joel Brobecker <brobecker@adacore.com>
717 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
718 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
719 Adjust the struct sym_fns object accordingly by setting
720 the new field to NULL.
721 * xcoffread.c (aix_process_linenos): Make static.
722 (xcoff_sym_fns): Set new field to aix_process_linenos.
723 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
724 by call to new the new sym_fns sym_read_linetable function.
725 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
726 * config/rs6000/tm-rs6000.h: Delete.
728 2007-09-21 David Ung <davidu@mips.com>
729 Maciej W. Rozycki <macro@mips.com>
731 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
732 rules do not treat composite types specially.
734 2007-09-20 Maciej W. Rozycki <macro@mips.com>
736 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
737 (mips16_in_function_epilogue_p): Likewise.
738 (mips_in_function_epilogue_p): Likewise.
739 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
741 2007-09-19 Joel Brobecker <brobecker@adacore.com>
743 * configure.ac: Add check for "etext".
744 * configure, config.in: Regenerate.
745 * maint.c (TEXTEND): Only define if either _etext or etext
747 Disable the profiling functionality if TEXTEND is not defined.
749 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
751 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
752 address register. Correct the call to frame_id_build.
753 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
756 2007-09-18 Joel Brobecker <brobecker@adacore.com>
758 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
759 the linetable past the function end.
761 2007-09-18 James E. Wilson <wilson@specifix.com>
763 * MAINTAINERS: Update my email address.
765 2007-09-18 Jerome Guitton <guitton@adacore.com>
767 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
768 (inf_ttrace_delete_dying_threads_callback): New function.
769 (inf_ttrace_resume): After resuming the execution, iterate over
770 the dying threads to delete them for the thread list.
771 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
772 mark the corresponding thread as dying instead of removing it
773 from the thread list.
774 (inf_ttrace_thread_alive): return 0 for dying threads.
776 2007-09-17 Joel Brobecker <brobecker@adacore.com>
778 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
779 that return_frame is not null.
781 2007-09-17 Joel Brobecker <brobecker@adacore.com>
783 * solib-svr4.c: Add include of "auxv.h".
784 (enable_break): Use the AT_BASE auxiliary entry if available.
785 * Makefile.in (solib-svr4.o): Update dependencies.
787 2007-09-17 Joel Brobecker <brobecker@adacore.com>
789 * NEWS: Create a new section for the next release branch.
790 Rename the section of the current branch, now that it has
793 2007-09-17 Jerome Guitton <guitton@adacore.com>
795 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
796 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
798 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
800 * mi/mi-cmds.c (mi_cmds): Register -list-features.
801 * mi/mi-cmds.h (mi_cmd_list_features): New.
802 * mi/mi-main.c (mi_cmd_list_features): New.
804 2007-09-11 Joel Brobecker <brobecker@adacore.com>
806 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
807 * version.in: Bump version to 6.7.50-20070911-cvs.
809 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
811 * thread.c (free_thread): Do not delete the step resume breakpoint
814 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
816 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
817 * corelow.c (core_read_description): New.
818 (init_core_ops): Set to_read_description.
819 * gdbarch.sh: Add gdbarch_core_read_description.
820 * mips-linux-tdep.c (mips_linux_core_read_description): New.
821 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
822 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
823 (mips_register_g_packet_guesses): Use them.
824 (_initialize_mips_tdep): Initialize them.
825 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
826 * gdbarch.h, gdbarch.c: Regenerated.
828 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
830 * infrun.c (stepping_past_breakpoint): New global variable.
831 (stepping_past_breakpoint_ptid): Likewise.
832 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
833 Only switch threads if we need to single-step over a breakpoint hit
834 in the previously selected thread. If stepping, remember previous
835 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
836 switch_to_thread instead of copying its contents.
837 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
838 prepare_to_proceed returns true.
839 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
840 (context_switch): Call switch_to_thread.
841 (handle_inferior_event): Switch back to previous thread if requested
842 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
843 * gdbthread.h (switch_to_thread): Add prototype.
844 * thread.c (switch_to_thread): Make global.
846 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
848 * p-valprint.c: Fix 7 ARI reported problems.
849 (pascal_val_print): Fix one operator at end of line issue.
850 Use paddress function to remove use of
851 deprecated_print_address_numeric function (2 times).
852 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
853 (pascal_value_print): Fix 3 operator at end of line issues.
855 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
858 * arm-tdep.c (arm_in_call_stub): Delete.
859 (arm_skip_stub): Handle from_arm and from_thumb stubs.
861 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
863 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
866 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
867 Jim Blandy <jimb@codesourcery.com>
869 * NEWS: Update description of string changes. Mention print/s.
870 * c-valprint.c (textual_element_type): New.
871 (c_val_print): Use it. Do not skip address printing for pointers
872 with a string format.
873 (c_value_print): Doc update.
874 * dwarf2read.c (read_array_type): Use make_vector_type.
875 * gdbtypes.c (make_vector_type): New.
876 (init_vector_type): Use it.
877 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
878 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
879 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
880 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
881 (make_vector_type): New.
882 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
883 Call the language print routine for string format.
884 (print_scalar_formatted): Call val_print for string format. Handle
885 unsigned original types for char format.
886 (validate_format): Do not reject string format.
887 * stabsread.c (read_type): Use make_vector_type.
888 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
890 2007-09-04 Michael Snyder <msnyder@access-company.com>
892 * expprint.c (print_subexp_standard): Check strchr for null.
893 * Makefile.in (expprint.o): Depend on gdb_assert.h.
895 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
897 * stabsread.c (patch_block_status): Guard against null.
898 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
900 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
902 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
903 in internal error message.
905 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
906 Daniel Jacobowitz <dan@codesourcery.com>
908 * infcmd.c (post_create_inferior): Update comment.
909 (run_command_1): Always call post_create_inferior with 0 as
912 * i386-cygwin-tdep.h: New.
913 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
914 (win32_xfer_shared_library): Make it extern.
916 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
918 (win32_so_ops): Delete.
919 (get_relocated_section_addrs): Delete.
920 (solib_symbols_add): Delete.
921 (register_loaded_dll): Delete.
922 (win32_make_so): New.
923 (handle_load_dll): Use win32_make_so.
924 (win32_free_so): Free the passed in so.
925 (win32_relocate_section_addresses): Delete.
926 (win32_solib_create_inferior_hook): Delete.
927 (handle_unload_dll): Don't add PE offset here. Free so with
928 win32_free_so instead of free_so.
929 (win32_special_symbol_handling): Delete.
930 (get_win32_debug_event): Remove unneeded calls. Set state to
931 TARGET_WAITKIND_LOADED on a dll unload.
932 (do_initial_win32_stuff): Clear cygwin_load_start and
934 (map_code_section_args): Delete.
935 (dll_code_sections_add): Delete.
936 (core_section_load_dll_symbols): Delete.
937 (win32_xfer_shared_libraries): New.
938 (win32_current_sos): Delete.
939 (win32_xfer_partial): New.
940 (open_symbol_file_object): Delete.
941 (in_dynsym_resolve_code): Delete.
942 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
943 of win32_ops. Remove win32_so_ops settings. Don't set
944 current_target_so_ops here.
946 * Makefile.in (i386_cygwin_tdep_h): New variable.
947 (i386-cygwin-tdep.o): Update dependencies.
948 (win32-nat.o): Update dependencies.
950 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
951 Daniel Jacobowitz <dan@codesourcery.com>
953 * gdbarch.sh (core_xfer_shared_libraries): New.
955 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
957 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
959 * xml-support.c (gdb_xml_parse): Debug output tweaks.
960 (xml_escape_text): New.
961 * xml-support.h (xml_escape_text): Declare.
963 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
964 * config/i386/cygwin.mt (TDEPFILES): ... here.
966 * win32-nat.c: (fetch_elf_core_registers): Delete.
967 (win32_elf_core_fn): Delete.
968 (_initialize_core_win32): Delete.
970 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
971 "xml-support.h" and "gdbcore.h".
972 (i386_win32_gregset_reg_offset): New.
973 (I386_WIN32_SIZEOF_GREGSET): New.
974 (i386_win32_regset_from_core_section): New.
975 (win32_xfer_shared_library): New.
976 (struct cpms_data): New.
977 (core_process_module_section): New.
978 (win32_core_xfer_shared_libraries): New.
979 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
980 gregset_num_regs, sizeof_gregset members of tdep. Register
981 regset_from_core_section and core_xfer_shared_libraries callbacks.
983 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
984 * gdbarch.h, gdbarch.c: Regenerate.
986 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
988 * corelow.c (core_xfer_partial): Pass writebuf to
989 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
991 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
993 * arm-tdep.h (arm_skip_stub): Declare.
994 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
996 (arm_pe_skip_trampoline_code): New function.
997 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
998 gdbarch_skip_trampoline_code callback.
999 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1001 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1003 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1005 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1007 * configure.ac: Add --with-expat.
1008 * configure: Regenerated.
1010 2007-09-03 Andreas Schwab <schwab@suse.de>
1012 * configure.ac: Accept --with-system-readline.
1013 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1014 * configure: Regenerate.
1015 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1017 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1019 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1020 Daniel Jacobowitz <dan@codesourcery.com>
1022 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1024 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1026 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1028 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1030 * top.c (print_gdb_version): Update for GPL version 3.
1032 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * NEWS: Mention the build-id .debug files verification.
1036 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1038 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1040 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1042 * Makefile.in (symfile.o): Update dependencies.
1043 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1044 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1045 (struct build_id): New structure.
1046 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1047 (find_separate_debug_file): New variable BUILD_ID.
1048 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1050 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1052 * varobj.c (struct varobj): Fix comment
1053 for the type member not to lie when it can be
1056 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1058 Implement -var-info-path-expression.
1060 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1062 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1063 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1064 * varobj.c (struct varobj): New field 'path_expr'.
1065 (c_path_expr_of_child, cplus_path_expr_of_child)
1066 (java_path_expr_of_child): New.
1067 (struct language_specific): New field path_expr_of_child.
1068 (varobj_create): Initialize the path_expr field.
1069 (varobj_get_path_expr): New.
1070 (new_variable): Initialize the path_expr field.
1071 (free_variable): Free the path_expr field.
1072 (adjust_value_for_children_access): New parameter
1074 (c_number_of_children): Adjust.
1075 (c_describe_child): New parameter CFULL_EXPRESSION.
1076 Compute full expression.
1077 (c_value_of_child, c_type_of_child): Adjust.
1078 (cplus_number_of_children): Adjust.
1079 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1080 Compute full expression.
1081 (cplus_name_of_child, cplus_value_of_child)
1082 (cplus_type_of_child): Adjust.
1083 * varobj.h (varobj_get_path_expr): Declare.
1085 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1087 * mi/mi-cmd-var.c (print_varobj): If a varobj
1088 type is NULL, don't try to print it.
1090 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1092 * ppc-linux-nat.c (right_fill_reg): Delete.
1093 (supply_gregset): Use ppc_supply_gregset.
1094 (supply_fpregset): Use ppc_supply_fpregset.
1095 (fill_gregset): Use ppc_collect_gregset.
1096 (fill_fpregset): Use ppc_collect_fpregset.
1097 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1098 (right_supply_register, ppc_linux_supply_gregset): Delete.
1099 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1100 (ppc_linux_supply_fpregset): Delete.
1101 (ppc_linux_collect_gregset): New function.
1102 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1103 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1104 ppc_linux_supply_gregset, and ppc_collect_gregset.
1105 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1106 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1107 (ppc_linux_regset_from_core_section): Update.
1108 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1109 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1110 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1111 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1112 (ppcobsd_collect_gregset): Likewise.
1113 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1114 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1115 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1116 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1117 (rs6000_aix64_reg_offsets): Likewise.
1118 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1119 ppc_floating_point_unit_p.
1120 (rs6000_aix_collect_regset): Similarly.
1121 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1122 when regsize is larger than regcache register size.
1123 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1124 regcache register size.
1125 (ppc_greg_offset): New function, split out from..
1126 (ppc_supply_gregset): ..here. Separate code handling all regs from
1127 single reg case. Correct xer offset.
1128 (ppc_fpreg_offset): New function, split out from..
1129 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1131 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1132 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1133 a fp unit, instead return if no fp.
1135 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1137 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1138 this code has not been compiled for two years.
1140 2007-08-29 Michael Snyder <msnyder@access-company.com>
1142 * event-top.c (gdb_readline2): Return after EOF.
1144 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1146 * symtab.c: Remove a function that has been commented out 3 years ago.
1148 2007-08-29 Randolph Chung <tausq@debian.org>
1150 * hppa-tdep.c (hppa32_cannot_fetch_register)
1151 (hppa64_cannot_fetch_register): New functions.
1152 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1153 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1155 2007-08-28 Michael Snyder <msnyder@access-company.com>
1157 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1158 check for null before calling check_typedef.
1160 * NEWS: Mention Coverity bug fixes.
1162 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1164 * spu-tdep.c (spu_pointer_to_address): New function.
1165 (spu_integer_to_address): Likewise.
1166 (spu_gdbarch_init): Add spu_pointer_to_address and
1167 spu_integer_to_address to gdbarch.
1169 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1171 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1173 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1175 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1176 that contains the GDB license.
1177 * copying.awk: Adjust to the GPLv3 wording.
1178 * copying.c: Regenerate.
1180 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1182 * copying.awk: Protoization, and i18n markup.
1184 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1186 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1187 * copyright.sh: Likewise.
1188 * gdb-events.sh: Likewise.
1189 * gdb_gcore.sh: Likewise.
1190 * gdb_mbuild.sh: Likewise.
1191 * gdbarch.sh: Likewise.
1192 * observer.sh: Likewise.
1193 * features/feature_to_c.sh: Likewise.
1194 * regformats/regdat.sh: Likewise.
1196 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1198 Switch the license of all .c files to GPLv3.
1199 Switch the license of all .h files to GPLv3.
1200 Switch the license of all .cc files to GPLv3.
1202 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1204 * configure.ac: Switch license to GPLv3.
1206 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1208 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1209 determine the file's FPU type.
1211 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1213 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1214 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1215 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1217 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1219 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1221 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1222 (elf_lookup_lib_symbol): Fix formatting.
1224 2007-08-21 Michael Snyder <msnyder@access-company.com>
1226 * dbxread.c (read_dbx_symtab): Guard null deref.
1229 * valops.c (find_overload_match): Guard against NULL.
1231 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1233 * MAINTAINERS (Patch Champions): Remove self.
1235 2007-08-21 Chris Smith <chris.smith@st.com>
1237 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1240 2007-08-18 Michael Snyder <msnyder@access-company.com>
1242 * stabsread.c (dbx_lookup_type): Memory leak.
1244 * event-loop.c (delete_async_signal_handler): Move pointer null
1245 test to before pointer dereference.
1247 * ui-out.c (append_header_to_list): Possible cut and paste error.
1249 * MAINTAINERS: white space tweak.
1251 2007-08-17 Michael Snyder <msnyder@access-company.com>
1253 * stack.c (print_frame): Memory leak.
1255 * completer.c (filename_completer): Avoid memory leak.
1256 Remove unnecessary nested block.
1258 * c-exp.y (parse_number): Memory leak.
1260 * completer.c (location_completer): Must free 'fn_list', except
1261 in the one case where it is returned (as 'list').
1263 * varobj.c (value_of_root): Memory leak.
1265 * gdbtypes.h (virtual_base_list): Remove export decl.
1266 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1267 (virtual_base_index): Memory leak.
1268 (virtual_base_index_skip_primaries): Ditto.
1270 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1272 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1273 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1274 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1275 (xtensa_read_register): New function.
1276 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1277 (xtensa_insn_kind): New types.
1278 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1279 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1280 (xtensa_verify_config, xtensa_pseudo_register_read)
1281 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1282 (xtensa_store_return_value)
1283 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1284 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1285 (xtensa_frame_this_id, xtensa_frame_prev_register)
1286 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1287 (call0_frame_cache, call0_frame_get_reg_at_entry)
1288 (call0_classify_opcode, call0_track_op)
1289 (call0_analyze_prologue, call0_frame_cache): New functions.
1291 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1293 * breakpoint.c (bpstat_free): New.
1294 (bpstat_clear): Use bpstat_free.
1295 (delete_breakpoint): Document why we cannot
1296 remove bpstats from stop_bpstat.
1297 * breakpoint.h (bpstat_free): Declare.
1299 2007-08-16 Michael Snyder <msnyder@access-company.com>
1301 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1303 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1304 Joel Brobecker <brobecker@adacore.com>
1306 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1308 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1309 Joel Brobecker <brobecker@adacore.com>
1311 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1312 checkin guarding against NULL.
1314 2007-08-14 Michael Snyder <msnyder@access-company.com>
1316 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1317 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1318 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1319 go at beginning of new line.
1321 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1322 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1323 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1324 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1325 tui-winsource.h, tui.c, tui.h: Function declarations and
1326 definitions, wrap long lines.
1328 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1329 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1330 Reformat block comments to GNU standard.
1332 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1333 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1334 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1335 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1336 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1337 spaces after periods, etc).
1339 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1340 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1341 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1342 tui-winsource.h: Whitespace changes, fix pointer declarations
1345 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1346 Michael Snyder <msnyder@access-company.com>
1348 * ada-lang.c (field_alignment): Guard against NULL.
1350 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1352 * MAINTAINERS (Global Maintainers): Add self.
1354 2007-08-14 Michael Snyder <msnyder@access-company.com>
1356 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1358 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1360 * varobj.c (cplus_describe_child): Guard against null.
1361 Use "NULL" instead of "0" to initialize pointers.
1363 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1365 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1366 to match any gdbarch with matching OSABI. Set default ABI and FPU
1367 after running the OSABI handler.
1369 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1371 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1372 * config/i386/linux.mt (TDEPFILES): ...to here.
1374 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1376 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1377 the 'silent' parameter and code to implement that.
1378 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1380 * win32-nat.c: Adjust.
1383 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1385 * breakpoint.c (update_breakpoints_after_exec): Don't
1386 set address to zero.
1388 2007-08-13 Michael Snyder <msnyder@access-company.com>
1390 * valops.c: Whitespace clean-up.
1392 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1394 * event-top.c (command_line_handler): Memory leak.
1396 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1397 No need to make copy.
1399 * source.c (find_source_lines): Require symtab 's'.
1401 2007-08-11 Michael Snyder <msnyder@access-company.com>
1403 * completer.c: Spelling fix in comments.
1405 2007-08-10 Michael Snyder <msnyder@access-company.com>
1407 * gdbtypes.c: Coding standard cleanup.
1408 * gdbtypes.c: Comment/whitespace cleanup.
1410 * stabsread.c (read_huge_number): Attempt to compute value before
1411 values that it depends on.
1413 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1414 (decode_objc): Use "NULL" instead of 0.
1415 (find_method): Ditto.
1416 (decode_all_digits): Ditto.
1417 (decode_dollar): Ditto.
1419 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1421 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1423 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1426 * completer.c: Comment/whitespace cleanup.
1428 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1430 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1432 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1434 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1435 allocated file descriptors.
1437 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1439 * Makefile.in: Minor cleanup throughout; add some missing variables,
1440 add some missing rules, remove some rules that are no longer needed,
1441 and fix the dependencies in several rules.
1443 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1445 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1446 (scm_lang_h, scm_tags_h): New.
1447 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1448 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1449 * defs.h (enum language): Add `language_scm'.
1451 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1454 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1456 * MAINTAINERS (Write After Approval): Add myself.
1458 2007-08-09 Michael Snyder <msnyder@access-company.com>
1460 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1462 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1464 * solib-som.c (som_relocate_section_addresses): Stop saving
1465 the $CODE$ section in the so_list structure.
1467 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1469 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1470 (xtensa_register_group_t): Add entries for coprocessors.
1471 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1472 (xtensa_add_reggroups): Likewise.
1473 (xtensa_register_reggroup_p): Likewise.
1474 (xtensa_coprocessor_register_group): New function.
1477 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1479 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1481 2007-08-08 Michael Snyder <msnyder@access-company.com>
1483 * target.c (target_read_string): Guard against null.
1485 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1487 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1488 (tui_set_layout_for_display_command): Mem leak.
1490 * top.c (command_line_input): Memory leak.
1492 * solib-svr4.c (open_symbol_file_object): Memory leak.
1493 (svr4_current_sos): Ditto.
1494 (enable_break): Ditto.
1496 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1498 * dwarf2read.c (add_partial_symbol): Memory leak.
1500 2007-08-06 Michael Snyder <msnyder@access-company.com>
1502 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1504 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1506 * macroexp.c (init_buffer): Remove testing code that overrides the
1507 caller's length guess.
1508 (gather_arguments): Use a larger initial size, now that the vector
1509 growth code has been exercised.
1511 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1513 * solib-target.c (solib_target_relocate_section_addresses): Add
1514 orig_delta to addr_high.
1516 2007-08-04 Michael Snyder <msnyder@access-company.com>
1518 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1520 * breakpoint.c (print_one_breakpoint): Off by one error.
1522 * tracepoint.c (add_register): Off by one error.
1523 (stringify_collection_list): Free malloc buffer.
1525 2007-08-03 Michael Snyder <msnyder@access-company.com>
1527 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1528 stop memory leak, straighten out cleanups.
1530 * jv-lang.c (java_link_class_type): Guard against NULL.
1532 2007-08-02 Michael Snyder <msnyder@access-company.com>
1534 * gdbtypes.c (create_set_type): Test should only be done within
1535 the preceeding if block. Otherwise, variable is uninitialized.
1537 * gdbtypes.c (check_typedef): Guard NULL.
1539 2007-08-01 Michael Snyder <msnyder@access-company.com>
1541 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1542 avoid dereference in lookup_cmd_1.
1544 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1545 clean up long lines.
1546 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1547 (tui_alloc_win_info): Ditto.
1548 (tui_add_content_elements): Ditto.
1549 * tui/tui-file.c (tui_file_magic): Ditto.
1551 2007-07-31 Michael Snyder <msnyder@access-company.com>
1553 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1554 True and false paths are mutually exclusive.
1556 * event-top.c (command_line_handler): Add pedantic return.
1558 * f-valprint.c (info_common_command): Bail out to prevent null
1559 pointer deref. Break up a long line.
1561 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1563 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1565 * printcmd.c (build_address_symbolic): Remove dead code and dead
1568 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1570 * linespec.c (minsym_found): Advance to the next line if possible.
1572 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1574 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1575 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1576 solib-svr4.o, and add solib-target.o
1578 2007-07-27 Michael Snyder <msnyder@access-company.com>
1580 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1582 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1584 * MAINTAINERS (Write After Approval): Add myself.
1586 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1588 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1591 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1593 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1595 2007-07-24 Michael Snyder <msnyder@access-company.com>
1597 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1598 'buffer' must cover both branches that call strcmp (Coverity).
1600 * stack.c (print_frame_args): Check return value of lookup_symbol.
1602 * ax-gdb.c (find_field): Guard against null ptr.
1604 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1606 * regformats/reg-spu.dat: Fix order of npc, id registers.
1608 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1610 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1611 sections should always go to the executable file.
1613 2004-07-20 Chris Dearman <chris@mips.com>
1615 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1616 prologue instructions.
1618 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1620 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1623 2007-07-20 Chris Dearman <chris@mips.com>
1624 Maciej W. Rozycki <macro@mips.com>
1626 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1629 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1630 Daniel Jacobowitz <dan@codesourcery.com>
1632 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1633 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1635 * NEWS: Mention gdbserver DLL support.
1637 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1639 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1641 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1643 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1646 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1648 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1651 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1653 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1654 (mep_analyze_prologue): Add case for BRA instruction.
1656 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1658 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1660 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1662 * breakpoint.c: Include "top.h".
1663 (breakpoint_1): Don't set convenience variable $_ if server prefix
1665 (_initialize_breakpoint): Describe this behaviour in command help.
1667 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1669 * solib-target.c (library_list_start_segment): Cast address to
1672 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1674 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1675 for terminated processes.
1677 2007-07-05 Michael Snyder <msnyder@access-company.com>
1679 * event-top.c (cli_command_loop): Prompt string can (and should)
1680 be freed after call to readline (Coverity). Also move local var
1681 declarations into block where they are used.
1683 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1684 should) be freed after call to readline (Coverity). Also move
1685 local var declarations into block where they are used.
1687 2007-07-03 Andreas Schwab <schwab@suse.de>
1689 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1692 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1693 Thiago Bauermann <bauerman@br.ibm.com>
1694 Joseph S. Myers <joseph@codesourcery.com>
1695 Daniel Jacobowitz <dan@codesourcery.com>
1697 * remote.c (remote_check_symbols): Use
1698 gdbarch_convert_from_func_ptr_addr.
1699 * infcall.c (find_function_addr): Handle function descriptors
1700 without debugging information.
1701 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1702 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1703 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1704 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1705 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1706 allow SEC_CODE and SEC_DATA.
1707 (enable_break): Update calls. Pass current_target to solib_add.
1708 Use gdbarch_convert_from_func_ptr_addr.
1710 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1711 Daniel Jacobowitz <dan@codesourcery.com>
1713 * symfile.c (print_transfer_performance): Avoid integer overflow.
1716 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1718 * cp-namespace.c (lookup_symbol_file): Add block to
1719 lookup_symbol_global call.
1720 * Makefile.in (solist_h): Add dependency on symtab header.
1721 (symtab.o): Add dependency on solist header.
1722 * solib.c (solib_global_lookup): New function.
1723 * solib-svr4.c (scan_dyntag): Likewise.
1724 (elf_locate_base): Call helper routine scan_dyntag.
1725 (elf_lookup_lib_symbol): New function.
1726 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1727 * solist.h (symtab.h): New include.
1728 (struct target_so_ops): New member lookup_lib_global_symbol.
1729 (solib_global_lookup): New prototype.
1730 * symtab.c: New include solist.h.
1731 (lookup_objfile_from_block): New function.
1732 (lookup_global_symbol_from_objfile): New function.
1733 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1734 (lookup_symbol_global): Call library-specific lookup procedure.
1735 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1737 * NEWS: Document framework.
1739 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1741 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1744 * cli/cli-script.c (build_command_line): Update NULL check.
1746 2007-07-02 Michael Snyder <msnyder@access-company.com>
1748 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1750 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1752 * Makefile.in (XMLFILES): Add library-list.dtd.
1753 (ALLDEPFILES): Add solib-target.o.
1754 (solib-target.o): New rule.
1755 * remote.c (PACKET_qXfer_libraries): New constant.
1756 (remote_protocol_features): Add qXfer:libraries:read.
1757 (remote_wait): Recognize library stop replies.
1758 (remote_async_wait): Likewise. Fix typo.
1759 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1760 (init_remote_async_ops): Fix typo.
1761 (_initialize_remote): Register "set remote library-info-packet".
1762 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1763 * solib-target.c: New file.
1764 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1766 (info_sharedlibrary_command): Likewise.
1767 (solib_add_library, solib_remove_library): New.
1768 * solist.h (struct so_list): Replace textsection with addr_low and
1770 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1771 * NEWS: Describe new qXfer:libraries:read and shared library
1773 * features/library-list.dtd: New.
1775 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1777 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1778 (start_remote): Use STOP_QUIETLY_REMOTE.
1779 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1780 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1781 Update to match shared library event breakpoint support. Only
1782 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1783 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1784 * fork-child.c (startup_inferior): Do not set
1785 inferior_ignoring_startup_exec_events
1786 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1788 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1790 2007-07-02 Markus Deuling <deuling@de.ibm.com>
1792 * breakpoint.c (insert_bp_location): Remove dead code
1793 (DISABLE_UNSETTABLE_BREAK).
1794 (disable_breakpoints_in_shlibs)
1795 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1797 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1799 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1800 Call insert_bp_location.
1802 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1804 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1807 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1809 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1812 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1814 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1815 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1816 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1817 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1818 to display_gdb_prompt.
1820 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1823 * target.c (memory_xfer_partial): Do not continue past targets with
1826 2007-06-30 Andreas Schwab <schwab@suse.de>
1828 * m68k-tdep.c (m68k_ps_type): New.
1829 (m68k_init_types): New.
1830 (m68k_register_type): Use m68k_ps_type for PS register.
1831 (_initialize_m68k_tdep): Call m68k_init_types.
1833 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1834 from the generic m68k arch.
1836 2007-06-28 Michael Snyder <msnyder@access-company.com>
1838 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1841 * linux-thread-db.c (thread_db_get_thread_local_address): Add
1842 gdb_assert before using return value of find_thread_pid (Coverity).
1844 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1846 * cli/cli-script.c (build_command_line): Add null pointer guard
1849 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1851 * linux-thread-db.c (thread_db_attach): Delete.
1852 (thread_db_detach): Typo fix. Call target_mourn_inferior
1853 instead of fixing up proc_handle.
1854 (have_threads_callback, have_threads): New functions.
1855 (thread_db_wait): Remove dead proc_handle.pid check. Only
1856 translate PTIDs if we have registered threads. Check for new
1857 threads if we have none.
1858 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1859 (find_new_threads_callback): Only enable event reporting if TID == 0.
1860 (same_ptid_callback): New.
1861 (thread_db_get_thread_local_address): Check for new threads.
1862 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1863 or to_post_startup_inferior.
1865 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1867 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1868 is always active if SOFTWARE_SINGLE_STEP_P is true.
1869 (resume): Use gdbarch_software_single_step[_p] instead of
1870 SOFTWARE_SINGLE_STEP[_P].
1871 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1873 * gdbarch.sh (software_single_step): Remove target macro.
1874 * gdbarch.h, gdbarch.c: Regenerate.
1876 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1878 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1879 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1880 (struct gdbarch_swap, struct gdbarch_swap_registration,
1881 struct gdbarch_swap_registry, gdbarch_swap_registry,
1882 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1883 current_gdbarch_swap_in_hack): Remove.
1884 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1885 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1886 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1887 (deprecated_current_gdbarch_select_hack): Likewise.
1888 * gdbarch.h, gdbarch.c: Regenerate.
1890 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1892 * infrun.c (clear_proceed_status): Clean up stop_registers.
1893 (normal_stop): Allocate regcache for stop_registers.
1894 (struct inferior_status): Remove stop_registers member.
1895 (save_inferior_status): Do not save stop_registers.
1896 (restore_inferior_status): Do not restore stop_registers.
1897 (discard_inferior_status): Do not discard stop_registers.
1898 (build_infrun): Remove.
1899 (_initialize_infrun): Do not swap stop_registers.
1901 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1903 * remote.c (remote_address_masked): If remote_address_size is zero,
1904 default to target address size.
1905 (build_remote_gdbarch_data): Remove.
1906 (_initialize_remote): Do not swap remote_address_size.
1908 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1910 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1911 builtin_type_char, builtin_type_short, builtin_type_int,
1912 builtin_type_long, builtin_type_signed_char,
1913 builtin_type_unsigned_char, builtin_type_unsigned_short,
1914 builtin_type_unsigned_int, builtin_type_unsigned_long,
1915 builtin_type_float, builtin_type_double, builtin_type_long_double,
1916 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1917 builtin_type_bool, builtin_type_long_long,
1918 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1919 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1920 variable declaration with compatibility macro.
1921 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1922 builtin_type_char, builtin_type_short, builtin_type_int,
1923 builtin_type_long, builtin_type_signed_char,
1924 builtin_type_unsigned_char, builtin_type_unsigned_short,
1925 builtin_type_unsigned_int, builtin_type_unsigned_long,
1926 builtin_type_float, builtin_type_double, builtin_type_long_double,
1927 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1928 builtin_type_bool, builtin_type_long_long,
1929 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1930 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1931 (build_gdbtypes): Remove.
1932 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1933 opaque-type-resolution command here. Do not call
1934 deprecated_register_gdbarch_swap.
1936 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1938 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1939 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1940 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1942 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1943 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1944 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1945 (build_parse): Remove.
1946 (_initialize_parse): Do not call build_parse. Do not register
1947 msym_ types for gdbarch-swapping.
1949 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1950 instead of creating private type.
1952 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1953 (_initialize_xcoffread): Do not initialized them.
1954 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1956 * mdebugread.c (nodebug_func_symbol_type): Remove.
1957 (nodebug_var_symbol_type): Remove.
1958 (_initialize_mdebugread): Do not initialize them.
1959 (parse_symbol): Use builtin nodebug_ type instead of them.
1960 (parse_procedure): Likewise.
1962 2007-06-21 Chris Dearman <chris@mips.com>
1964 * printcmd.c (do_one_display): If display/i, start with an initial
1965 line feed to avoid bad layout if there is a branch delay slot.
1967 2007-06-21 Nigel Stephens <nigel@mips.com>
1968 Maciej W. Rozycki <macro@mips.com>
1970 * disasm.c (gdb_print_insn): Return the number of branch delay
1971 slot instructions too.
1972 * disasm.h (gdb_print_insn): Update prototype.
1973 * printcmd.c (branch_delay_insns): New variable to record the
1974 number of delay slot instructions after disassembling a branch.
1975 (print_formatted): Record the number of branch delay slot
1977 (do_examine): When disassembling, if the last instruction
1978 disassembled has any branch delay slots, then bump the count so
1979 that they get disassembled too.
1980 * tui/tui-disasm.c (tui_disassemble): Update the call to
1982 * NEWS: Document the new behaviour.
1984 2007-06-21 Andreas Schwab <schwab@suse.de>
1986 * regcache.c (write_pc_pid): Restore missing else.
1988 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
1990 * regcache.c (regcache_print): Use get_current_regcache ()
1991 instead of current_regcache.
1993 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
1996 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1997 instead of bfd_make_section_anyway.
1998 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1999 when clearing SEC_LOAD.
2001 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2003 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2004 registers for big-endian.
2006 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2008 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2009 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2010 * gdbarch.c, gdbarch.h: Regenerate.
2012 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2014 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2015 gdbarch_believe_pcc_promotion.
2016 * stabsread.c (define_symbol): Likewise.
2017 Remove unnecessary definition.
2018 * coffread.c (process_coff_symbol): Remove unnecessary code.
2019 * gdbarch.c, gdbarch.h: Regenerate.
2021 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2023 * configure.ac: Do not use ${objdir}.
2024 * configure: Regenerated.
2026 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2028 * gdbarch.sh (deprecated_register_size): Remove.
2029 * gdbarch.h, gdbarch.c: Regenerate.
2031 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2032 by INT_REGISTER_SIZE.
2033 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2034 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2035 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2036 set_gdbarch_deprecated_register_size.
2038 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2040 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2041 gdbarch_deprecated_fp_regnum.
2042 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2043 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2044 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2045 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2047 * gdbarch.c, gdbarch.h: Regenerate.
2049 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2051 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2052 gdbarch_extract_return_value.
2053 * value.c (generic_use_struct_convention): Likewise (comment).
2054 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2055 * arch-utils.c (legacy_return_value): Likewise.
2056 * arch-utils.h (legacy_return_value): Likewise (comment).
2057 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2058 gdbarch_store_return_value.
2059 * stack.c (return_command): Likewise (comment).
2060 * arch-utils.h (legacy_return_value): Likewise (comment).
2061 * arch-utils.c (legacy_return_value): Likewise.
2062 * gdbarch.c, gdbarch.h: Regenerate.
2064 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2066 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2067 gdbarch_deprecated_use_struct_convention.
2068 * arch-utils.c (legacy_return_value): Likewise.
2069 * gdbarch.c, gdbarch.h: Regenerate.
2071 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2073 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2074 gdbarch_deprecated_function_start_offset.
2075 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2076 * linespec.c (minsym_found): Likewise.
2077 * infrun.c (handle_inferior_event): Likewise.
2078 * infcall.c (find_function_addr): Likewise.
2079 * cli/cli-cmds.c (disassemble_command): Likewise.
2080 * gdbarch.c, gdbarch.h: Regenerate.
2082 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2084 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2085 gdbarch_deprecated_reg_struct_has_addr.
2086 * infcall.c (call_function_by_hand): Likewise.
2087 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2088 * gdbarch_deprecated_reg_struct_has_addr_p.
2089 * infcall.c (call_function_by_hand): Likewise.
2090 * gdbarch.c, gdbarch.h: Regenerate.
2092 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2094 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2095 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2096 (sh_gdbarch_init): Remove
2097 set_gdbarch_deprecated_extract_struct_value_address.
2098 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2099 (sh64_gdbarch_init): Remove
2100 set_gdbarch_deprecated_extract_struct_value_address.
2101 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2102 (ia64_gdbarch_init): Remove
2103 set_gdbarch_deprecated_extract_struct_value_address.
2104 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2105 (frv_gdbarch_init): Remove
2106 set_gdbarch_deprecated_extract_struct_value_address.
2107 * gdbarch.c, gdbarch.h: Regenerate.
2109 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2111 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2112 * v850-tdep.c (v850_unwind_sp): Likewise.
2113 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2114 * stack.c (frame_info): Likewise.
2115 * stabsread.c (define_symbol): Likewise.
2116 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2117 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2118 (sh_unwind_sp): Likewise.
2119 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2120 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2121 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2122 (rs6000_frame_cache): Likewise.
2123 * rs6000-nat.c (store_register): Likewise.
2124 * remote-mips.c (mips_wait): Likewise.
2125 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2126 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2127 (ppc64_sysv_abi_push_dummy_call): Likewise.
2128 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2129 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2130 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2131 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2132 * m32r-rom.c (m32r_supply_register): Likewise.
2133 * frame.c (frame_sp_unwind): Likewise.
2134 * mips-tdep.c (mips_insn16_frame_cache)
2135 (mips_insn32_frame_cache): Likewise (comment).
2136 * m68klinux-nat.c (supply_gregset): Likewise.
2137 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2138 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2139 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2140 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2141 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2142 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2143 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2144 (cris_register_type, crisv32_register_type)
2145 (cris_dwarf2_frame_init_reg): Likewise.
2146 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2147 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2148 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2149 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2151 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2152 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2153 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2154 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2155 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2156 * v850-tdep.c (v850_unwind_pc): Likewise.
2157 * stack.c (frame_info): Likewise.
2158 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2159 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2160 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2161 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2162 (sh_dsp_show_regs): Likewise.
2163 * shnbsd-tdep.c (shnbsd_supply_gregset)
2164 (shnbsd_collect_gregset): Likewise.
2165 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2166 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2167 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2168 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2169 (6000_register_reggroup_p, rs6000_unwind_pc)
2170 (rs6000_frame_cache): Likewise.
2171 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2172 (rs6000_store_inferior_registers): Likewise.
2173 * remote-mips.c (mips_wait, mips_load): Likewise.
2174 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2175 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2176 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2177 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2178 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2179 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2180 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2181 (store_ppc_registers, fill_gregset): Likewise.
2182 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2183 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2184 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2185 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2186 * m68klinux-nat.c (supply_gregset): Likewise.
2187 * irix5-nat.c (fill_gregset): Likewise.
2188 * i386-tdep.c (i386_unwind_pc): Likewise.
2189 * i386-linux-nat.c (i386_linux_resume): Likewise.
2190 * frame.c (get_prev_frame_1): Likewise.
2191 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2192 * dbug-rom.c (dbug_supply_register): Likewise.
2193 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2194 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2195 (cris_register_type, crisv32_register_type, crisv32_register_name)
2196 (cris_dwarf2_frame_init_reg, find_step_target)
2197 (cris_software_single_step, cris_supply_gregset)
2198 (cris_regnums): Likewise.
2199 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2200 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2201 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2202 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2203 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2205 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2206 * dbug-rom.c (dbug_supply_register): Likewise.
2207 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2208 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2209 * win32-nat.c (win32_resume): Likewise.
2210 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2211 * m68k-tdep.c (m68k_register_type): Likewise.
2212 * m68klinux-nat.c (supply_gregset): Likewise.
2214 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2215 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2216 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2217 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2218 (fv_reg_base_num, dr_reg_base_num): Likewise.
2219 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2220 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2221 (sh64_extract_return_value, sh64_store_return_value)
2222 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2223 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2224 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2225 (invalidate_cache): Likewise.
2226 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2227 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2228 (mipsnbsd_fill_fpreg): Likewise.
2229 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2230 (mipsnbsd_store_inferior_registers): Likewise.
2231 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2232 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2233 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2234 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2235 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2236 (fill_fpregset): Likewise.
2237 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2238 * i386-tdep.h (struct_return): Likewise (comment).
2239 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2240 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2241 (go32_store_registers): Likewise.
2242 * alpha-tdep.c (alpha_next_pc): Likewise.
2243 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2244 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2245 (alphabsd_store_inferior_registers): Likewise.
2246 * core-regset.c (fetch_core_registers): Likewise.
2247 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2249 * gdbarch.c, gdbarch.h: Regenerate.
2251 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2253 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2254 * dbxread.c (start_psymtab): Check HAVE_ELF.
2255 (aout_sym_fns): Likewise.
2256 * elfread.c (elf_symfile_segments): New.
2257 (elf_sym_fns): Add elf_symfile_segments.
2258 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2259 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2260 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2261 * somread.c (som_sym_fns): Use default_symfile_segments.
2262 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2263 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2264 (default_symfile_segments): New function.
2265 (syms_from_objfile): Update call to find_sym_fns.
2266 (symfile_get_segment_data, free_symfile_segment_data): New.
2267 (symfile_map_offsets_to_segments): New.
2268 (symfile_find_segment_sections): New.
2269 * symfile.h (struct symfile_segment_data): New.
2270 (struct sym_fns): Add sym_segments.
2271 (default_symfile_segments, symfile_get_segment_data)
2272 (free_symfile_segment_data): New prototypes.
2273 (symfile_map_offsets_to_segments): Likewise.
2274 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2275 * Makefile.in (COMMON_OBS): Remove elfread.o.
2276 (elf_internal_h): New.
2277 (elfread.o): Update.
2278 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2280 * config.in, configure: Regenerated.
2281 * NEWS: Mention qOffsets changes.
2283 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2285 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2286 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2287 Replace global variable declaration with compatibility macro.
2288 (struct builtin_m2_type): New data type.
2289 (builtin_m2_type): Add prototype.
2290 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2291 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2292 Remove global variables.
2293 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2294 (build_m2_types): New function.
2295 (m2_type_data): New variable.
2296 (builtin_m2_type): New function.
2297 (_initialize_m2_language): Do not build data types. Register
2298 m2_type_data per-gdbarch data.
2300 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2302 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2303 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2304 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2305 builtin_type_f_real_s8, builtin_type_f_real_s16,
2306 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2307 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2308 variable declaration with compatibility macro.
2309 (struct builtin_f_type): New data type.
2310 (builtin_f_type): Add prototype.
2311 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2312 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2313 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2314 builtin_type_f_real_s8, builtin_type_f_real_s16,
2315 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2316 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2317 (f_language_arch_info): Use builtin_f_type instead of variables.
2318 (build_fortran_types): Build builtin_f_type structure instead of
2319 setting global type variables.
2320 (f_type_data): New variable.
2321 (builtin_f_type): New function.
2322 (_initialize_f_language): Do not call build_fortran_types. Do not
2323 swap global type variables. Register f_type_data per-gdbarch data.
2325 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2327 * f-lang.c (_initialize_f_language): Do not initialize or
2328 swap builtin_type_string.
2330 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2332 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2333 value_of_builtin_frame_reg): Remove.
2334 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2335 inactive call to value_of_builtin_frame_reg.
2337 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2339 * gdbarch.sh (bfd_vma_bit): Remove.
2340 * gdbarch.c, gdbarch.h: Regenerate.
2342 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2343 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2344 (build_gdbtypes): Do not initialize it.
2345 (_initialize_gdbtypes): Do not swap it.
2347 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2349 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2350 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2351 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2352 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2353 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2354 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2355 builtin_type_vec64, builtin_type_vec128): Remove.
2356 (init_simd_type): Remove.
2357 (init_vector_type): Make global.
2358 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2359 (build_gdbtypes): Do not build vector types.
2360 (_initialize_gdbtypes): Do not swap vector types.
2361 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2362 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2363 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2364 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2365 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2366 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2367 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2368 (init_vector_type): Add prototype.
2370 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2371 i386_sse_type members.
2372 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2373 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2374 (i386_init_types): Do not build vector types.
2375 (i386_mmx_type, i386_sse_type): New functions.
2376 (i386_register_type): Call them instead of using global variables.
2377 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2378 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2379 of using global variable.
2381 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2382 and ppc_builtin_type_vec128 members.
2383 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2384 (rs6000_builtin_type_vec128): Likewise.
2385 (rs6000_register_type): Call them instead of using builtin_type_vec64
2386 and builtin_type_vec128.
2387 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2389 * spu-tdep.c (struct gdbarch_tdep): New data type.
2390 (spu_builtin_type_vec128): Remove variable.
2391 (spu_builtin_type_vec128): New function.
2392 (spu_register_type): Call it instead of using global variable.
2393 (spu_gdbarch_init): Allocate tdep structure.
2394 (spu_init_vector_type): Remove function.
2395 (_initialize_spu_tdep): Do not call it.
2397 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2399 * amd64-tdep.c (struct amd64_register_info): Remove.
2400 (amd64_register_info): Remove.
2401 (amd64_register_names): New static variable.
2402 (AMD64_NUM_REGS): Use amd64_register_names instead of
2403 amd64_register_info.
2404 (amd64_register_name): Likewise.
2405 (amd64_register_type): Do not refer to amd64_register_info.
2407 * s390-tdep.c (struct s390_register_info): Remove.
2408 (s390_register_info): Remove.
2409 (s390_register_name): Do not refer to s390_register_info.
2410 (s390_register_type): Likewise.
2412 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2413 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2414 (sparc64_register_names, sparc64_pseudo_register_names): New.
2415 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2416 sparc64_register_names and sparc64_pseudo_register_names instead of
2417 sparc64_register_info and sparc64_pseudo_register_info.
2418 (sparc64_register_name): Likewise.
2419 (sparc64_register_type): Do not refer to sparc64_register_info
2420 and sparc64_pseudo_register_info.
2422 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2424 * c-lang.c (cplus_builtin_types): Remove.
2425 (enum cplus_primitive_types): New data type.
2426 (cplus_language_arch_info): New function.
2427 (cplus_language_defn): Set la_language_arch_info member. Do not set
2428 la_builtin_type_vector and string_char_type members.
2430 * f-lang.c (f_builtin_types): Remove.
2431 (enum f_primitive_types): New data type.
2432 (f_language_arch_info): New function.
2433 (f_language_de): Set la_language_arch_info member. Do not set
2434 la_builtin_type_vector and string_char_type members.
2436 * m2-lang.c (m2_builtin_types): Remove.
2437 (enum m2_primitive_types): New data type.
2438 (m2_language_arch_info): New function.
2439 (m2_language_defn): Set la_language_arch_info member. Do not set
2440 la_builtin_type_vector and string_char_type members.
2442 * objc-lang.c (objc_builtin_types): Remove.
2443 (objc_language): Set la_language_arch_info member. Do not set
2444 la_builtin_type_vector and string_char_type members.
2446 * p-lang.c (pascal_builtin_types): Remove.
2447 (enum pascal_primitive_types): New data type.
2448 (pascal_language_arch_info): New function.
2449 (pascal_language_defn): Set la_language_arch_info member. Do not set
2450 la_builtin_type_vector and string_char_type members.
2452 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2454 * regcache.c (struct regcache): Add ptid_t member.
2455 (regcache_xmalloc): Initialize it.
2456 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2457 (regcache_dup): Likewise.
2458 (regcache_dup_no_passthrough): Likewise.
2459 (current_regcache): Make static.
2460 (registers_ptid): Remove variable.
2461 (get_thread_regcache): New function.
2462 (get_current_regcache): New function.
2463 (registers_changed): Implement by freeing current regcache.
2464 (regcache_raw_read): Do not refer to current_regcache. Set
2465 inferior_ptid to regcache->ptid while calling target routines.
2466 (regcache_raw_write): Likewise.
2467 (regcache_raw_supply): Do not refer to current_regcache.
2468 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2469 (write_pc_pid): Likewise.
2470 (build_regcache): Remove.
2471 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2472 or deprecated_register_gdbarch_swap. Do not initialize
2474 * regcache.h (get_current_regcache): Add prototype.
2475 (get_thread_regcache): Likewise.
2476 (current_regcache): Remove declaration.
2478 * corelow.c (core_open): Replace current_regcache by
2479 get_current_regcache ().
2480 * frame.c (frame_pop): Likewise.
2481 (put_frame_register): Likewise.
2482 (get_current_frame, create_new_frame): Likewise.
2483 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2484 * stack.c (return_command): Likewise.
2485 * infcall.c (call_function_by_hand): Likewise.
2486 * infrun.c (resume): Likewise.
2487 (save_inferior_status, restore_inferior_status): Likewise.
2488 * linux-fork.c (fork_load_infrun_state): Likewise.
2489 (fork_save_infrun_state): Likewise.
2490 * win32-nat.c (win32_resume): Likewise.
2491 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2492 * monitor.c (monitor_wait): Likewise.
2493 * remote.c (remote_wait): Likewise.
2494 * remote-mips.c (mips_wait): Likewise.
2496 * bsd-kvm.c (bsd_kvm_open): Likewise
2497 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2498 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2499 * i386-linux-nat.c (i386_linux_resume): Likewise.
2500 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2501 (ia64_linux_stopped_data_address): Likewise.
2503 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2504 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2505 * mep-tdep.c (current_me_module, current_options): Likewise.
2506 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2508 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2509 regcache instead of current_regcache. Call target_fetch_registers.
2510 (linux_nat_corefile_thread_callback): Update call site.
2511 (linux_nat_do_registers): Likewise.
2512 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2513 of current_regcache.
2514 (procfs_make_note_section): Likewise.
2515 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2516 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2517 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2518 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2520 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2522 * regcache.c (read_register, read_register_pid): Remove.
2523 (write_register, write_register_pid): Likewise.
2524 * regcache.h (read_register, read_register_pid): Remove prototype.
2525 (write_register, write_register_pid): Likewise.
2527 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2529 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2530 (write_pc): Likewise. Remove default implementation, add predicate.
2531 * gdbarch.c, gdbarch.h: Regenerate.
2532 * regcache.c (read_pc_pid): Use current regcache instead of calling
2534 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2536 (generic_target_write_pc): Remove.
2537 * inferior.h (generic_target_write_pc): Remove.
2538 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2540 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2541 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2542 * sh-tdep.c (sh_gdbarch_init): Likewise.
2543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2545 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2546 argument. Use REGCACHE instead of calling read_register_pid.
2547 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2548 * hppa-tdep.c (hppa_read_pc): Likewise.
2549 * hppa-tdep.h (hppa_read_pc): Likewise.
2550 * ia64-tdep.c (ia64_read_pc): Likewise.
2551 * m32r-tdep.c (m32r_read_pc): Likewise.
2552 * mep-tdep.c (mep_read_pc): Likewise.
2553 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2554 * spu-tdep.c (spu_read_pc): Likewise.
2556 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2557 argument. Use REGCACHE instead of calling write_register_pid.
2558 * avr-tdep.c (avr_write_pc): Likewise.
2559 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2560 * hppa-tdep.c (hppa_write_pc): Likewise.
2561 * hppa-tdep.h (hppa_write_pc): Likewise.
2562 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2563 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2564 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2565 * ia64-tdep.c (ia64_write_pc): Likewise.
2566 * ia64-tdep.h (ia64_write_pc): Likewise.
2567 * m32r-tdep.c (m32r_write_pc): Likewise.
2568 * m88k-tdep.c (m88k_write_pc): Likewise.
2569 * mep-tdep.c (mep_write_pc): Likewise.
2570 * mips-tdep.c (mips_write_pc): Likewise.
2571 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2572 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2573 * sparc-tdep.c (sparc_write_pc): Likewise.
2574 * spu-tdep.c (spu_write_pc): Likewise.
2576 * mips-tdep.c (read_signed_register): Remove.
2577 (read_signed_register_pid): Likewise.
2578 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2579 Use REGCACHE instead of calling read_signed_register_pid.
2581 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2583 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2584 * gdbarch.c, gdbarch.h: Regenerate.
2585 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2586 (push_dummy_code): Likewise. Pass it to callee.
2587 (call_function_by_hand): Pass current regcache to push_dummy_code.
2589 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2590 argument. Use it instead of current_regcache.
2592 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2593 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2595 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2597 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2598 * gdbarch.c, gdbarch.h: Regenerate.
2599 * infrun.c (handle_inferior_event): Pass current frame to
2600 gdbarch_get_longjmp_target.
2602 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2603 Read registers from FRAME instead of using read_register.
2604 Use get_frame_arch instead of current_gdbarch.
2605 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2606 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2607 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2608 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2609 (mips64_linux_get_longjmp_target): Likewise.
2610 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2612 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2614 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2615 * gdbarch.c, gdbarch.h: Regenerate.
2616 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2617 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2618 * infrun.c (handle_inferior_event): Pass current frame to
2619 gdbarch_skip_trampoline_code and skip_language_trampoline.
2621 * language.c (unk_lang_trampoline): Add FRAME argument.
2622 (skip_language_trampoline): Add FRAME argument. Pass it to
2623 skip_trampoline callback.
2624 * language.h: Add forward declaration of struct frame_info.
2625 (struct language_defn): Add FRAME argument to skip_trampoline.
2626 (skip_language_trampoline): Add FRAME argument.
2627 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2628 to skip_trampoline callback.
2629 * cp-abi.h: Add forward declaration of struct frame_info.
2630 (cplus_skip_trampoline): Add FRAME argument.
2631 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2632 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2633 to gdbarch_skip_trampoline_code.
2634 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2635 to gdbarch_skip_trampoline_code.
2637 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2638 * symtab.h (find_solib_trampoline_target): Likewise.
2639 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2640 find_solib_trampoline_target.
2642 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2643 from FRAME instead of calling read_register.
2645 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2646 argument. Read registers from FRAME instead of using read_register.
2647 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2648 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2650 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2653 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2655 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2656 registers from FRAME instead of using read_signed_register.
2658 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2660 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2661 instead of using read_register.
2662 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2663 ppc64_standard_linkage_target.
2664 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2665 Pass it to find_solib_trampoline_target. Read registers from FRAME
2666 instead of using read_register.
2668 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2671 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2673 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2675 * gdbarch.c, gdbarch.h: Regenerate.
2676 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2678 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2679 registers from FRAME instead of using read_register.
2680 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2681 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2682 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2685 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2686 from FRAME instead of using read_register.
2687 (thumb_get_next_pc): Likewise.
2688 (arm_get_next_pc): Likewise.
2689 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2690 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2691 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2694 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2695 from FRAME instead of using read_register.
2696 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2697 to find_step_target.
2699 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2700 from FRAME instead of using read_register / read_signed_register.
2701 (extended_mips16_next_pc): Likewise.
2702 (mips16_next_pc): Likewise.
2703 (mips_next_pc): Likewise.
2704 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2705 to mips_next_pc. Use get_frame_pc instead of read_pc.
2706 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2709 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2710 of current frame. Read registers from FRAME.
2711 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2712 branch_dest. Use get_frame_pc instead of read_pc.
2713 (rs6000_software_single_step): Likewise.
2714 (bl_to_blrl_insn_p): Do not call branch_dest.
2715 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2718 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2719 Read registers from FRAME instead of current regcache.
2720 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2721 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2722 * sparc-tdep.c (sparc_address_from_register): Remove.
2723 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2724 GDBARCH. Pass FRAME to step_trap callback.
2725 (sparc_step_trap): Add FRAME argument.
2726 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2727 to sparc_analyze_control_transfer. Read registers from FRAME instead
2728 of calling sparc_address_from_register.
2729 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2731 (sparc_address_from_register): Remove prototype.
2732 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2733 (sparcnbsd_step_trap): Add FRAME argument.
2735 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2736 by FRAME. Read registers from FRAME instead of REGCACHE.
2738 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2740 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2741 instead of calling read_register.
2743 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2744 calling write_register.
2746 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2747 calling write_register.
2749 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2750 instead of calling read_register.
2751 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2752 instead of calling read_register and write_register.
2754 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2755 instead of current_regcache.
2757 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2758 of calling write_register.
2759 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2760 parameter instead of current_regcache.
2762 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2763 instead of calling read_register.
2764 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2765 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2766 (mips_n32n64_push_dummy_call): Likewise.
2767 (mips_o32_push_dummy_call): Likewise.
2768 (mips_o64_push_dummy_call): Likewise.
2770 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2771 parameter instead of current_regcache.
2773 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2774 Use it instead of read_register and write_register.
2775 (xtensa_register_read_masked): Likewise.
2776 (xtensa_pseudo_register_read): Update call.
2777 (xtensa_pseudo_register_write): Likewise.
2778 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2779 instead of calling read_register.
2780 (xtensa_push_dummy_call): Update comment.
2782 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2784 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2785 by frame_unwind_register_signed calls.
2786 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2787 frame allocations when called with NULL NEXT_FRAME parameter.
2788 (read_next_frame_reg): Remove.
2790 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2791 instead of reading the FPSCR register.
2792 (sh_frame_cache): Pass unwound FPSCR register value to
2793 sh_analyze_prologue.
2794 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2796 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2797 instead of reading the CTBP register.
2798 (v850_frame_cache): Pass unwound CTBP register value to
2799 v850_analyze_prologue.
2801 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2803 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2804 * sh-tdep.c (sh_show_regs): Likewise.
2805 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2806 (sh_generic_show_regs): Add FRAME parameter. Use register
2807 values from that frame instead of calling read_register.
2808 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2809 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2810 sh_dsp_show_regs): Likewise.
2811 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2812 sh64_show_regs): Likewise.
2814 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2816 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2817 current regcache instead of calling read_register.
2819 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2821 * mep-tdep.c (current_me_module): Read from current regcache
2822 instead of calling read_register.
2823 (current_options): Likewise.
2825 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2827 * cris-tdep.c (cris_stopped_data_address): Read register values
2828 from current frame instead of calling read_register.
2829 * frv-tdep.c (frv_stopped_data_address): Likewise.
2831 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2833 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2834 instead of write_register (PC_REGNUM, ...).
2836 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2838 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2839 explaining why the PC adjustment code is necessary.
2841 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
2843 * m68k-tdep.h (enum m68k_flavour): New.
2844 (struct gdbarch_tdep): New fields
2845 float_return, flavour and fpregs_present.
2846 * m68k-tdep.c (m68k_register_type): Use
2847 fpregs_present and conditionalize floating
2848 registers type on flavour.
2849 (m68k_register_names): New.
2850 (m68k_register_name): Use the above.
2851 (m68k_convert_register_p): Consult fpregs_present.
2852 (m68k_register_to_value, m68k_value_to_register):
2853 Use register_type to obtain the type of floating
2855 (m68k_svr4_extract_return_value): Check tdep->float_return.
2856 Use register_type to get the type of floating
2858 (m68k_svr4_store_return_value): Likewise.
2859 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2860 (m68k_analyze_register_saves): Likewise.
2861 (m68k_gdbarch_init): Extract infromation
2862 from XML description, if present. Guess coldfire by
2863 looking at the file, if present. Conditionalize
2864 setting of long double format. Set decr_pc_after_break
2865 to 2 on coldfire and fido. Enable XML-driven
2866 register description.
2867 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2868 size of tdep->fpreg_type, as opposed to hardcoded value.
2869 * Makefile.in (m68k-tdep.o): Update dependencies.
2871 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2873 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2874 qXfer:spu:write remote packet types.
2876 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2878 * xml-tdesc.c (tdesc_start_target): New.
2879 (target_attributes): New.
2880 (tdesc_elements): Use it.
2881 * features/gdb-target.dtd: Add #FIXED version attribute for
2884 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
2886 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2888 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2890 * fork-child.c (fork_inferior): Update comment.
2892 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2894 * features/Makefile: Generate regformats for mips-linux and
2896 * features/sort-regs.xsl: Correct typo.
2897 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2898 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2901 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2903 * config/mips/linux.mh (TDEP_XML): New.
2904 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2905 * mips-linux-nat.c (mips_linux_register_addr): Handle
2906 MIPS_RESTART_REGNUM.
2907 (mips64_linux_register_addr): Likewise.
2908 (super_xfer_partial, mips_linux_xfer_partial): New.
2909 (_initialize_mips_linux_nat): Add them to the target_ops.
2910 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2911 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2912 (mips_linux_o32_sigframe_init)
2913 (mips_linux_n32n64_sigframe_init): Likewise.
2914 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2915 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2916 "org.gnu.gdb.mips.linux" feature.
2917 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2918 (mips_linux_restart_reg_p): New prototype.
2919 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2920 initialization routine.
2921 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2923 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2925 * Makefile.in (mips-tdep.o): Update.
2926 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2927 (mips_n32_n64_aliases, mips_register_aliases): New.
2928 (mips_register_name): Call tdesc_register_name.
2929 (mips_tdesc_register_reggroup_p): New.
2930 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2931 (mips_gdbarch_init): Add target-described register support.
2932 Register aliases for register names.
2933 * target-descriptions.c (tdesc_register_name): Make global.
2934 (tdesc_register_in_reggroup_p): New function, broken out from
2935 tdesc_register_reggroup_p.
2936 (tdesc_register_reggroup_p): Use it.
2937 * target-descriptions.h (tdesc_register_name)
2938 (tdesc_register_in_reggroup_p): New prototypes.
2939 * NEWS: Correct formatting. Mention MIPS register support.
2940 * features/mips-cp0.xml, features/mips-fpu.xml,
2941 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2942 features/mips64-cpu.xml: New files.
2944 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2946 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2947 * valops.c (value_cast): Likewise.
2948 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2949 * ui-out.c (ui_out_field_core_addr): Likewise.
2950 * tracepoint.c (tracepoints_info): Likewise.
2951 * symtab.c (print_msymbol_info): Likewise.
2952 * solib-irix.c (irix_current_sos)
2953 (irix_open_symbol_file_object): Likewise.
2954 * remote.c (build_remote_gdbarch_data): Likewise.
2955 * prologue-value.c (make_pv_area): Likewise.
2956 * procfs.c (info_mappings_callback): Likewise.
2957 * printcmd.c (print_scalar_formatted)
2958 (deprecated_print_address_numeric): Likewise.
2959 * memattr.c (mem_info_command): Likewise.
2960 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2961 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2962 * exec.c (print_section_info): Likewise.
2963 * dwarf2read.c (read_subrange_type): Likewise.
2964 * dwarf2loc.c (find_location_expression): Likewise.
2965 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2966 (signed_address_type, execute_stack_op): Likewise.
2967 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2968 * gdbarch.c, gdbarch.h: Regenerate.
2970 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2972 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2973 * arch-utils.c (show_architecture): Likewise.
2974 * remote-mips.c (mips_open): Likewise
2975 * nto-tdep.c (nto_find_and_open_solib)
2976 (nto_init_solib_absolute_prefix): Likewise.
2977 * nto-procfs (procfs_open): Likewise.
2978 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2979 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2980 * gdbarch.c, gdbarch.h: Regenerate.
2982 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2984 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2985 * gdbtypes.c (build_flt): Likewise.
2986 * gdbarch.c, gdbarch.h: Regenerate.
2988 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2990 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2991 gdbarch_breakpoint_from_pc.
2992 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2993 * remote.c (remote_insert_breakpoint)
2994 (remote_insert_hw_breakpoint): Likewise.
2995 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2996 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2997 * breakpoint.h (bp_target_info): Likewise (comment).
2998 * breakpoint.c (read_memory_nobpt): Likewise.
2999 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3000 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3001 * gdbarch.c, gdbarch.h: Regenerate.
3003 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3005 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3006 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3007 * solib-pa64.c (read_dynamic_info): Likewise.
3008 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3009 * solib.c (info_sharedlibrary_command): Likewise.
3010 * s390-nat.c (SUBOFF): Likewise.
3011 * p-valprint.c (pascal_val_print): Likewise.
3012 * procfs.c (info_proc_mappings): Likewise.
3013 * printcmd.c (decode_format): Likewise.
3014 * nto-tdep.c (nto_truncate_ptr): Likewise.
3015 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3016 (mips64_linux_get_longjmp_target): Likewise.
3017 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3018 * jv-valprint.c (java_value_print): Likewise.
3019 * jv-lang.c (get_java_object_header_size): Likewise.
3020 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3021 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3022 (hppa_hpux_unwind_adjust_stub): Likewise.
3023 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3024 * gdbtypes.c (make_pointer_type, make_reference_type)
3025 (smash_to_memberptr_type): Likewise.
3026 * gdbarch.c, gdbarch.h: Regenerate.
3028 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3030 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3031 (print_gp_register_row): Stop before printing a register bigger
3032 than the ABI register size.
3033 (mips_print_registers_info): Update call to mips_print_register.
3035 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3037 * expression.h (enum exp_opcode): Document a register name for
3039 * parse.c (write_dollar_variable): Write the register name for
3041 (operator_length_standard): Expect the register name following
3043 * ada-lang.c (resolve_subexp): Likewise.
3044 * ax-gdb.c (gen_expr): Likewise.
3045 * eval.c (evaluate_subexp_standard): Likewise.
3046 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3048 * tracepoint.c (encode_actions): Likewise.
3050 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3052 * utils.c (set_screen_size): Use INT_MAX for default columns.
3054 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3056 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3057 qXfer:spu:write packet types.
3059 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3061 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3062 * gdbarch.c, gdbarch.h: Regenerate.
3064 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3066 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3067 gdbarch_stab_reg_to_regnum.
3068 * stabsread.c (define_symbol): Likewise.
3069 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3070 gdbarch_ecoff_reg_to_regnum.
3071 * mdebugread.c (parse_symbol): Likewise.
3072 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3073 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3074 gdbarch_dwarf_reg_to_regnum.
3075 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3076 * coffread.c (process_coff_symbol): Likewise.
3077 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3078 gdbarch_dwarf2_reg_to_regnum.
3079 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3080 (locexpr_describe_location): Likewise.
3081 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3082 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3083 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3084 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3085 * gdbarch.c, gdbarch.h: Regenerate.
3087 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3089 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3090 gdbarch_smash_text_address.
3091 * somread.c (som_symtab_read): Likewise.
3092 * elfread.c (record_minimal_symbol): Likewise.
3093 * dbxread.c (process_one_symbol): Likewise.
3094 * coffread.c (coff_symtab_read): Likewise.
3095 * gdbarch.c, gdbarch.h: Regenerate.
3097 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3099 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3100 * findvar.c (value_from_register): Likewise.
3101 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3102 * valops.c (value_assign): Likewise.
3103 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3104 gdbarch_convert_register_p.
3105 * findvar.c (value_from_register): Likewise.
3106 * valops.c (value_assign): Likewise.
3107 * gdbarch.c, gdbarch.h: Regenerate.
3109 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3111 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3112 gdbarch_register_sim_regno.
3113 * sim-regno.h (sim_regno): Likewise (comment).
3114 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3115 * gdbarch.c, gdbarch.h: Regenerate.
3117 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3119 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3120 gdbarch_virtual_frame_pointer.
3121 * tracepoint.c (encode_actions): Likewise.
3122 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3123 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3124 * gdbarch.c, gdbarch.h: Regenerate.
3126 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3128 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3129 * p-lang.c (pascal_create_fundamental_type): Likewise.
3130 * objc-lang.c (objc_create_fundamental_type): Likewise.
3131 * mdebugread.c (_initialize_mdebugread): Likewise.
3132 * m2-lang.c (m2_create_fundamental_type)
3133 (_initialize_m2_language): Likewise.
3134 * gdbtypes.c (build_gdbtypes): Likewise.
3135 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3136 * doublest.c (floatformat_from_length): Likewise.
3137 * c-lang.c (c_create_fundamental_type): Likewise.
3138 * ada-lang.c (ada_create_fundamental_type)
3139 (ada_language_arch_info): Likewise.
3140 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3141 * value.c (unpack_double): Likewise (comment).
3142 * gdbtypes.c (build_gdbtypes): Likewise.
3143 * doublest.c (floatformat_from_length): Likewise.
3144 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3145 * valarith.c (value_binop): Likewise.
3146 * p-lang.c (pascal_create_fundamental_type): Likewise.
3147 * objc-lang.c (objc_create_fundamental_type): Likewise.
3148 * mdebugread.c (_initialize_mdebugread): Likewise.
3149 * m2-lang.c (m2_create_fundamental_type): Likewise.
3150 * gdbtypes.c (build_gdbtypes): Likewise.
3151 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3152 * doublest.c (floatformat_from_length): Likewise.
3153 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3154 * c-lang.c (c_create_fundamental_type): Likewise.
3155 * ada-lex.l (processReal): Likewise.
3156 * ada-lang.c (ada_create_fundamental_type)
3157 (ada_language_arch_info): Likewise.
3158 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3159 * value.c (unpack_double): Likewise (comment).
3160 * gdbtypes.c (build_gdbtypes): Likewise.
3161 * doublest.c (floatformat_from_length): Likewise.
3162 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3163 gdbarch_long_double_bit.
3164 * p-lang.c (pascal_create_fundamental_type): Likewise.
3165 * objc-lang.c (objc_create_fundamental_type): Likewise.
3166 * m2-lang.c (m2_create_fundamental_type): Likewise.
3167 * gdbtypes.c (build_gdbtypes): Likewise.
3168 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3169 * doublest.c (floatformat_from_length): Likewise.
3170 * c-lang.c (c_create_fundamental_type): Likewise.
3171 * ada-lex.l (processReal): Likewise.
3172 * ada-lang.c (ada_create_fundamental_type)
3173 (ada_language_arch_info): Likewise.
3174 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3175 gdbarch_long_double_format.
3176 * gdbtypes.c (build_gdbtypes): Likewise.
3177 * doublest.c (floatformat_from_length): Likewise.
3178 * gdbarch.c, gdbarch.h: Regenerate.
3180 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3182 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3183 * ada-lang.c (ada_create_fundamental_type)
3184 (ada_language_arch_info): Likewise.
3185 * c-lang.c (c_create_fundamental_type): Likewise.
3186 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3187 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3188 * m2-lang.c (m2_create_fundamental_type): Likewise.
3189 * objc-lang.c (objc_create_fundamental_type): Likewise.
3190 * p-lang.c (pascal_create_fundamental_type): Likewise.
3191 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3192 * c-exp.y (parse_number): Likewise.
3193 * objc-exp.y (parse_number): Likewise.
3194 * ada-lex.l (processInt): Likewise.
3195 * f-exp.y (parse_number): Likewise.
3196 * p-exp.y (parse_number): Likewise.
3197 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3198 (gdbtypes_post_init, build_gdbtypes): Likewise.
3199 * p-lang.c (pascal_create_fundamental_type): Likewise.
3200 * parse.c (build_parse): Likewise.
3201 * xcoffread.c (_initialize_xcoffread): Likewise.
3202 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3203 (read_range_type): Likewise.
3204 * objc-lang.c (objc_create_fundamental_type): Likewise.
3205 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3206 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3207 (m2_create_fundamental_type): Likewise.
3208 * c-lang.c (c_create_fundamental_type): Likewise.
3209 * coffread.c (coff_read_enum_type): Likewise.
3210 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3211 * dwarf2read.c (new_symbol): Likewise.
3212 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3213 * c-exp.y (parse_number): Likewise.
3214 * objc-exp.y (parse_number): Likewise.
3215 * ada-lex.l (processInt): Likewise.
3216 * f-exp.y (parse_number): Likewise.
3217 * p-exp.y (parse_number): Likewise.
3218 * valarith.c (value_binop): Likewise.
3219 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3220 * ada-lang.c (ada_create_fundamental_type)
3221 (ada_language_arch_info): Likewise.
3222 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3223 * symfile.c (TARGET_LONG_BYTES): Likewise.
3224 * p-lang.c (pascal_create_fundamental_type): Likewise.
3225 * objc-lang.c (objc_create_fundamental_type): Likewise.
3226 * m2-lang.c (m2_create_fundamental_type): Likewise.
3227 * f-lang.c (f_create_fundamental_type): Likewise.
3228 * c-lang.c (c_create_fundamental_type): Likewise.
3229 * coffread.c (decode_base_type): Likewise.
3230 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3231 * c-exp.y (parse_number): Likewise.
3232 * objc-exp.y (parse_number): Likewise.
3233 * p-exp.y (parse_number): Likewise.
3234 * ada-lang.c (ada_create_fundamental_type)
3235 (ada_language_arch_info): Likewise.
3236 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3237 * stabsread.c (read_range_type): Likewise.
3238 * p-lang.c (pascal_create_fundamental_type): Likewise.
3239 * objc-lang.c (objc_create_fundamental_type): Likewise.
3240 * m2-lang.c (m2_create_fundamental_type): Likewise.
3241 * f-lang.c (f_create_fundamental_type): Likewise.
3242 * c-lang.c (c_create_fundamental_type): Likewise.
3243 * gdbarch.c, gdbarch.h: Regenerate.
3245 2007-06-12 Andreas Schwab <schwab@suse.de>
3247 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3248 (struct frame_unwind): Add dealloc_cache.
3249 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3251 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3252 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3253 (libunwind_frame_unwind): Set dealloc_cache.
3254 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3256 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3257 Markus Deuling <deuling@de.ibm.com>
3259 * remote.c (remote_write_qxfer): New function.
3260 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3261 (remote_read_qxfer): Do not cache empty objects.
3262 (_initialize_remote): Add PACKET_qXfer_spu_read and
3263 PACKET_qXfer_spu_write.
3265 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3267 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3268 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3270 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3271 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3272 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3273 * spu-tdep.c (infospucmdlist): New variable.
3274 (spu_register_name): Handle additional pseudo registers.
3275 (spu_register_type): Likewise.
3276 (spu_pseudo_register_read): Likewise.
3277 (spu_pseudo_register_write): Likewise.
3278 (spu_pseudo_register_read_spu): New function.
3279 (spu_pseudo_register_write_spu): Likewise.
3280 (info_spu_event_command): New function.
3281 (info_spu_signal_command): Likewise.
3282 (info_spu_mailbox_list): Likewise.
3283 (info_spu_mailbox_command): Likewise.
3284 (spu_mfc_get_bitfield): Likewise.
3285 (info_spu_dma_cmdlist): Likewise.
3286 (info_spu_dma_command): Likewise.
3287 (info_spu_proxydma_command): Likewise.
3288 (info_spu_command): Likewise.
3289 (_initialize_spu_tdep): Install "info spu" commands.
3291 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3293 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3294 accessing non-seekable spufs files.
3296 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3298 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3299 gdbarch_skip_trampoline_code.
3300 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3301 * objc-lang.c (objc_skip_trampoline)
3302 (objc_submethod_helper_data): Likewise.
3303 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3304 * infrun.c (handle_inferior_event): Likewise.
3305 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3306 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3307 gdbarch_in_solib_return_trampoline.
3308 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3309 * infrun.c (handle_inferior_event): Likewise.
3310 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3311 * gdbarch.c, gdbarch.h: Regenerate.
3313 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3315 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3316 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3317 * linespec.c (minsym_found): Likewise.
3318 * infrun.c (step_into_function): Likewise.
3319 * gdbarch.c, gdbarch.h: Regenerate.
3321 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3323 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3324 * valops.c (value_allocate_space_in_inferior): Likewise.
3325 * gdbarch.c, gdbarch.h: Regenerate.
3327 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3329 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3330 gdbarch_memory_insert_breakpoint.
3331 * mem-break.c (memory_insert_breakpoint): Likewise.
3332 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3333 gdbarch_memory_remove_breakpoint.
3334 * mem-break.c (memory_remove_breakpoint): Likewise.
3335 * gdbarch.c, gdbarch.h: Regenerate.
3337 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3339 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3340 gdbarch_fetch_tls_load_module_address.
3341 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3342 gdbarch_fetch_tls_load_module_address_p.
3343 * gdbarch.c, gdbarch.h: Regenerate.
3345 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3347 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3348 gdbarch_decr_pc_after_break.
3349 * tracepoint.c (trace_dump_command): Likewise.
3350 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3351 * linux-thread-db.c (check_event): Likewise.
3352 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3353 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3354 * frame.h: Likewise (comment).
3355 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3356 * aix-thread.c (aix_thread_wait): Likewise.
3357 * gdbarch.c, gdbarch.h: Regenerate.
3359 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3361 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3362 gdbarch_address_class_type_flags.
3363 * dwarf2read.c (read_tag_pointer_type): Likewise.
3364 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3365 gdbarch_address_class_type_flags_p.
3366 * dwarf2read.c (read_tag_pointer_type): Likewise.
3367 * gdbarch.c, gdbarch.h: Regenerate.
3369 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3371 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3372 * value.c (value_as_address): Likewise (comment).
3373 * remote-mips.c (common_breakpoint): Likewise.
3374 * regcache.c (read_pc_pid): Likewise.
3375 * printcmd.c (do_one_display): Likewise.
3376 * monitor.c (monitor_write_memory, monitor_read_memory)
3377 (monitor_insert_breakpoint): Likewise.
3378 * mips-tdep.c (heuristic_proc_start): Likewise.
3379 * infrun.c (insert_step_resume_breakpoint_at_frame)
3380 (insert_step_resume_breakpoint_at_caller): Likewise.
3381 * buildsym.c (record_line): Likewise.
3382 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3383 (arm_get_next_pc): Likewise.
3384 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3385 (store_regs): Likewise.
3386 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3387 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3388 * gdbarch.c, gdbarch.h: Regenerate.
3390 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3392 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3393 * tracepoint.c (scope_info): Likewise.
3394 * target.c (debug_print_register): Likewise.
3395 * stack.c (frame_info): Likewise.
3396 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3397 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3398 (sh64_media_print_registers_info)
3399 (sh64_compact_print_registers_info): Likewise.
3400 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3401 * remote-sim.c (gdbsim_fetch_register): Likewise.
3402 * remote.c (packet_reg): Likewise (comment).
3403 * reggroups.c (default_register_reggroup_p): Likewise.
3404 * regcache.c (regcache_dump): Likewise.
3405 * printcmd.c (address_info): Likewise.
3406 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3407 * mt-dep.c (mt_registers_info): Likewise.
3408 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3409 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3410 (mips_read_fp_register_double, mips_print_fp_register)
3411 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3412 (mips_register_sim_regno): Likewise.
3413 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3414 * inf-ptrace.c (inf_ptrace_fetch_register)
3415 (inf_ptrace_store_register): Likewise.
3416 * infcmd.c (default_print_registers_info): Likewise.
3417 * ia64-linux-nat.c (ia64_linux_fetch_register)
3418 (ia64_linux_store_register): Likewise.
3419 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3420 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3421 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3422 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3423 (hppa_hpux_store_register): Likewise.
3424 * findvar.c (locate_var_value): Likewise.
3425 * dwarf2loc.c (locexpr_describe_location): Likewise.
3426 * dwarf2-frame.c (execute_cfa_program): Likewise.
3427 * arm-tdep.c (arm_push_dummy_call): Likewise.
3428 * arch-utils.c (legacy_register_sim_regno): Likewise.
3429 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3430 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3431 * mi/mi-main.c (mi_cmd_data_list_register_names)
3432 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3433 (mi_cmd_data_write_register_values): Likewise.
3434 * gdbarch.c, gdbarch.h: Regenerate.
3436 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3438 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3440 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3442 * remote.c (process_g_packet): Don't check size.
3443 * gdbarch.sh: Remove register_bytes_ok.
3444 * gdbarch.c: Regenerated.
3445 * gdbarch.h: Regenerated.
3446 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3447 (m68k_register_bytes_ok): Remove.
3448 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3450 2007-06-06 Andreas Schwab <schwab@suse.de>
3452 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3453 (destroy_addr_space_name): Define.
3454 (libunwind_load): Get address of destroy_addr_space function.
3455 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3456 returning unsuccessfully.
3457 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3459 (libunwind_sigtramp_frame_sniffer): Likewise.
3460 (libunwind_get_reg_special): Likewise.
3462 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3464 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3465 gdbarch_fetch_pointer_argument.
3466 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3467 * gdbarch.c, gdbarch.h: Regenerate.
3469 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3471 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3472 gdbarch_have_nonsteppable_watchpoint.
3473 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3474 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3475 gdbarch_cannot_step_breakpoint.
3476 * infrun.c (resume): Likewise.
3477 * gdbarch.c, gdbarch.h: Regenerate.
3479 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3481 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3482 * stack.c (print_frame_args): Likewise.
3483 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3484 * stack.c (print_args_stub, frame_info): Likewise.
3485 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3486 * stack.c (print_args_stub, frame_info): Likewise.
3487 * gdbarch.c, gdbarch.h: Regenerate.
3489 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3491 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3492 gdbarch_coff_make_msymbol_special.
3493 * coffread.c (coff_symtab_read): Likewise.
3494 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3495 gdbarch_elf_make_msymbol_special.
3496 * elfread.c (elf_symtab_read): Likewise.
3497 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3498 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3499 * gdbarch.c, gdbarch.h: Regenerate.
3501 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3503 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3504 gdbarch_frame_red_zone_size.
3505 * gdbarch.c, gdbarch.h: Regenerate.
3507 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3509 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3510 * infcall.c (call_function_by_hand): Likewise.
3511 * gcore.c (derive_stack_segment): Likewise.
3512 * frame.c (frame_id_inner): Likewise.
3513 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3514 * ada-lang.c (ensure_lval): Likewise.
3515 * gdbarch.c, gdbarch.h: Regenerate.
3517 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3519 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3520 gdbarch_address_to_pointer.
3521 * findvar.c (store_typed_address): Likewise.
3522 * gdbtypes.c (make_pointer_type): Likewise (comment).
3523 * procfs.c (procfs_address_to_host_pointer): Likewise.
3524 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3525 (value_of_builtin_frame_fp_reg): Likewise.
3526 (value_of_builtin_frame_pc_reg): Likewise.
3527 * utils.c (paddress): Likewise (comment).
3528 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3529 gdbarch_pointer_to_address.
3530 * findvar.c (extract_typed_address): Likewise.
3531 * gdbtypes.c (make_pointer_type): Likewise (comment).
3532 * valops.c (value_cast): Likewise (comment).
3533 * gdbarch.c, gdbarch.h: Regenerate.
3535 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3537 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3538 * infrun.c (handle_inferior_event): Likewise.
3539 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3540 gdbarch_get_longjmp_target_p.
3541 * breakpoint.c (breakpoint_re_set): Likewise.
3542 * infrun.c (handle_inferior_event): Likewise.
3543 * gdbarch.c, gdbarch.h: Regenerate.
3545 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3547 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3548 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3549 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3550 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3551 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3552 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3553 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3554 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3555 current_ex_event, child_get_current_exception_event): Remove.
3556 (hppa_hpux_inferior_created): Remove.
3557 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3559 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3560 (deprecated_exception_support_initialized): Remove.
3561 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3562 (deprecated_exception_support_initialized): Remove.
3563 (breakpoint_init_inferior): Remove handling of non-zero
3564 deprecated_exception_catchpoints_are_fragile.
3566 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3567 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3568 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3569 deprecated_hp_som_som_object_present.
3570 * eval.c (evaluate_subexp_standard): Likewise.
3571 * valops.c (value_cast): Likewise.
3573 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3574 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3575 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3577 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3579 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3580 (struct objfile): Remove import_list, import_list_size,
3581 export_list, export_list_size members.
3582 (is_in_import_list): Remove prototype.
3583 * objfiles.c (is_in_import_list): Remove.
3584 * somread.c (init_import_symbols, init_export_symbols): Remove.
3585 (som_symfile_read): Do not call init_import_symbols. Do not
3586 set objfile->export_list and objfile->export_list_size.
3588 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3590 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3591 Use the original objfile if necessary.
3593 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3595 * defs.h (ldirname): New prototype.
3596 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3598 * utils.c (ldirname): New function.
3599 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3601 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3603 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3605 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3607 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3609 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3611 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3613 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3615 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3616 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3617 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3618 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3619 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3620 ppc_linux_at_sigtramp_return_path): Remove.
3622 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3624 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3625 (xtensa_register_write_masked, xtensa_register_read_masked)
3626 (xtensa_extract_return_value, xtensa_store_return_value
3627 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3628 TARGET_BYTE_ORDER by gdbarch_byte_order.
3629 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3630 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3631 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3632 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3633 (sh64_push_dummy_call, sh64_extract_return_value)
3634 (sh64_store_return_value, sh64_register_convert_to_virtual)
3635 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3636 (sh64_pseudo_register_write, sh64_do_fp_register)
3637 (sh64_frame_prev_register): Likewise.
3638 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3639 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3640 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3641 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3642 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3643 * ppc-linux-nat.c (store_register): Likewise.
3644 * nto-tdep.c (nto_find_and_open_solib)
3645 (nto_init_solib_absolute_prefix): Likewise.
3646 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3647 (mips_convert_register_p, mips_eabi_push_dummy_call)
3648 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3649 (mips_o32_push_dummy_call, mips_o32_return_value)
3650 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3651 (mips_read_fp_register_single, mips_read_fp_register_double)
3652 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3653 (mips_breakpoint_from_pc): Likewise.
3654 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3655 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3656 (mips_linux_o32_sigframe_init): Likewise.
3657 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3658 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3659 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3660 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3661 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3662 * coffread.c (process_coff_symbol): Likewise.
3663 * arm-tdep.c (convert_from_extended, convert_to_extended)
3664 (gdb_print_insn_arm): Likewise.
3666 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3668 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3669 * i386-tdep.c (i386_dbx_reg_to_regnum)
3670 (i386_svr4_reg_to_regnum): Likewise.
3671 * inf-ptrace.c (inf_ptrace_fetch_registers)
3672 (inf_ptrace_store_registers): Likewise.
3673 * corelow.c (get_core_registers): Likewise.
3674 * i386-linux-nat.c (supply_gregset, fill_gregset)
3675 (i386_linux_fetch_inferior_registers)
3676 (i386_linux_store_inferior_registers): Likewise.
3677 * remote.c (init_remote_state,packet_reg_from_regnum)
3678 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3679 (remote_prepare_to_store,store_registers_using_G)
3680 (remote_store_registers,remote_arch_state): Likewise.
3681 * tracepoint.c (encode_actions): Likewise.
3682 * mi/mi-main.c (mi_cmd_data_list_register_names)
3683 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3684 (mi_cmd_data_write_register_values): Likewise.
3685 * tui/tui-regs.c (tui_show_register_group)
3686 (tui_show_register_group): Likewise.
3687 * xtensa-tdep.h (FP_ALIAS): Likewise.
3688 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3689 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3690 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3691 * win32-nat.c (do_win32_fetch_inferior_registers)
3692 (do_win32_store_inferior_registers,fetch_elf_core_registers
3693 * user-regs.h: Likewise (comment).
3694 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3695 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3696 * target-descriptions.h: Likewise (comment).
3697 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3698 * target.c (debug_print_register): Likewise.
3699 * stack.c (frame_info): Likewise.
3700 * stabsread.c (define_symbol): Likewise.
3701 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3702 (sh64_media_print_registers_info)
3703 (sh64_compact_print_registers_info): Likewise.
3704 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3705 * rs6000-nat.c (fetch_register,store_register): Likewise.
3706 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3707 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3708 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3709 * remote-m32r-sdi.c (m32r_fetch_registers)
3710 (m32r_store_registers): Likewise.
3711 * reggroups.c (default_register_reggroup_p): Likewise.
3712 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3713 (regcache_restore,regcache_dump): Likewise.
3714 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3715 * mips-tdep.c (mips_xfer_register,mips_register_name)
3716 (mips_register_reggroup_p,mips_pseudo_register_read)
3717 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3718 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3719 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3720 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3721 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3722 (print_gp_register_row,mips_print_registers_info)
3723 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3724 (mips_register_sim_regno): Likewise.
3725 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3726 (mips_linux_n32n64_sigframe_init): Likewise.
3727 * mips-linux-nat.c (mips_linux_register_addr)
3728 (mips64_linux_register_addr): Likewise.
3729 * findvar.c (value_of_register): Likewise.
3730 * infcmd.c (default_print_registers_info,registers_info)
3731 (print_vector_info,print_float_info): Likewise.
3732 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3733 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3734 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3735 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3736 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3737 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3738 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3739 (ia64_linux_store_registers): Likewise.
3740 * hpux-thread.c (hpux_thread_fetch_registers)
3741 (hpux_thread_store_registers): Likewise.
3742 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3743 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3744 (h8300_register_type): Likewise.
3745 * dwarf2-frame.c (dwarf2_frame_cache)
3746 (dwarf2_frame_state_alloc_regs): Likewise.
3747 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3748 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3749 (crisv32_cannot_store_register,cris_register_name): Likewise.
3750 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3751 * arch-utils.c (legacy_register_sim_regno)
3752 (legacy_virtual_frame_pointer): Likewise.
3753 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3754 * arm-tdep.h: Likewise (comment).
3755 * frv-tdep.c (frv_register_sim_regno): Likewise.
3756 * m68klinux-nat.c (old_fetch_inferior_registers)
3757 (old_store_inferior_registers): Likewise.
3758 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3759 * irix5-nat.c (fetch_core_registers): Likewise.
3760 * hppa-tdep.c (hppa_frame_cache): Likewise.
3761 * hppa-linux-nat.c (hppa_linux_register_addr)
3762 (hppa_linux_fetch_inferior_registers)
3763 (hppa_linux_store_inferior_registers): Likewise.
3764 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3765 (hppa_hpux_store_inferior_registers): Likewise.
3766 * amd64-nat.c (amd64_native_gregset_reg_offset)
3767 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3768 * dbug-rom.c (dbug_regname): Likewise.
3769 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3770 (HARD_PAGE_REGNUM (comment)): Likewise.
3771 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3772 * i386-tdep.c (i386_dbx_reg_to_regnum)
3773 (i386_svr4_reg_to_regnum): Likewise.
3774 * mi/mi-main.c (mi_cmd_data_list_register_names)
3775 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3776 (mi_cmd_data_write_register_values): Likewise.
3777 * gdbarch.c, gdbarch.h: Regenerate.
3778 * tui/tui-regs.c (tui_show_register_group): Likewise.
3779 * xtensa-tdep.h (FP_ALIAS): Likewise.
3780 * user-regs.h: Likewise (comment).
3781 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3782 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3783 * target-descriptions.h: Likewise (comment).
3784 * target.c (debug_print_register): Likewise.
3785 * stack.c (frame_info): Likewise.
3786 * stabsread.c (define_symbol): Likewise.
3787 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3788 (sh64_compact_print_registers_info): Likewise.
3789 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3790 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3791 (regcache_restore,regcache_dump): Likewise.
3792 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3793 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3794 (mips_stab_reg_to_regnum): Likewise.
3795 * findvar.c (value_of_register): Likewise.
3796 * infcmd.c (default_print_registers_info,registers_info)
3797 (print_vector_info,print_float_info): Likewise.
3798 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3799 * h8300-tdep.c (h8300_register_type): Likewise.
3800 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3801 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3802 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3803 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3804 * parse.c: Remove comment.
3805 * gdbarch.c, gdbarch.h: Regenerate
3807 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3809 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3810 gdbarch_cannot_fetch_register.
3811 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3812 * hppa-linux-nat.c (fetch_register): Likewise.
3813 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3814 * m68klinux-nat.c (fetch_register): Likewise.
3815 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3817 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3818 gdbarch_cannot_store_register.
3819 * hppa-linux-nat.c (store_register): Likewise.
3820 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3821 * regcache.c (regcache_raw_write): Likewise.
3822 * m68klinux-nat.c (store_register): Likewise.
3823 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3824 * gdbarch.c, gdbarch.h: Regenerate.
3826 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3828 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3829 * gdbarch.c, gdbarch.h: Regenerate.
3831 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3833 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3834 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3835 * gdbarch.c, gdbarch.h: Regenerate.
3837 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3839 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3840 * ax-gdb.c (gen_bitfield_ref): Likewise.
3841 * mi/mi-main.c (get_register): Likewise.
3842 * findvar.c (default_value_from_register, extract_signed_integer)
3843 (extract_unsigned_integer, extract_long_unsigned_integer)
3844 (store_signed_integer, store_unsigned_integer): Likewise.
3845 * regcache.c (regcache_dump): Likewise.
3846 * value.c (lookup_internalvar, value_of_internalvar)
3847 (set_internalvar): Likewise.
3849 * valprint.c (print_binary_chars, print_octal_chars)
3850 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3851 * infcmd.c (default_print_registers_info): Likewise.
3852 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3853 * stabsread.c (define_symbol): Likewise.
3854 * doublest.c (floatformat_from_length, floatformat_from_type)
3855 (extract_typed_floating, store_typed_floating): Likewise.
3856 * gdbarch.c, gdbarch.h: Regenerate.
3858 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3860 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3861 gdbarch_call_dummy_location.
3862 * infcall.c (call_function_by_hand): Likewise.
3863 * inferior.h: Change comment.
3864 * arch-utils.c: Change comment.
3865 * gdbarch.c, gdbarch.h: Regenerate.
3867 2007-05-28 Joel Brobecker <brobecker@adacore.com>
3869 * solib-aix5.c: Delete.
3870 * Makefile.in (solib-aix5.o): Delete rule.
3872 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
3874 * breakpoint.h (enum bpstat_what_main_action): Remove
3875 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3876 * infrun.c (process_event_stop_test): Do not check for it.
3878 2007-05-22 Chris Dearman <chris@mips.com>
3879 Maciej W. Rozycki <macro@mips.com>
3881 * ser-unix.c (show_serial_hwflow): New function.
3882 (hardwire_raw): Add hardware flow control support.
3883 (_initialize_ser_hardwire): Add "set/show remoteflow".
3884 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3885 * NEWS: Document the new command.
3887 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3889 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3890 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3891 define for i[[3456]]86-*-linux* native configurations.
3892 * config.in, configure: Regenerate.
3894 2007-05-19 Joel Brobecker <brobecker@adacore.com>
3896 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3897 a core file. Add comment in the function description.
3899 2007-05-18 Caroline Tice <ctice@apple.com>
3901 * c-valprint.c (c_value_print): If the initialized field of the
3902 value struct is 0, print out "[uninitialized]" before the value.
3903 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3904 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3905 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3906 ctx->initialized appropriately. Verify no location op follows
3908 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3909 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3910 set_value_initialized.
3911 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3912 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3913 * value.c (struct value): New field, initialized.
3914 (allocate_value): Initialize new field.
3915 (set_value_initialized): New function.
3916 (value_initialized): New function.
3917 * value.h (value_initialized): New extern declaration.
3918 (set_value_initialized): Likewise.
3920 2007-05-18 Caroline Tice <ctice@apple.com>
3922 * MAINTAINERS (Write After Approval): Add self.
3924 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3926 * gdbtypes.c (make_reference_type): Preserve the type chain
3927 and set the length of all the variants of the pointer type.
3929 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3931 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3932 and set the length of all the variants of the pointer type.
3934 2007-05-17 Maciej W. Rozycki <macro@mips.com>
3936 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3938 (mips_o64_push_dummy_call): Reformat a comment.
3940 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
3942 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3943 (score_prologue_frame_base_address): Return fp to keep gdb print
3944 local variables correctly when debugging information is stabs.
3946 (score_analyze_prologue): For software watchpoint, fetch all the
3947 instructions from range [startaddr, pc] once and identify them locally
3948 to reduce memory access.
3949 (score_malloc_and_get_memblock, score_free_memblock)
3950 (score_adjust_memblock_ptr): New functions.
3951 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3953 (score_target_can_use_watch, score_stopped_by_watch)
3954 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3955 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3956 New functions for remote & local hw-watchpoint and hw-breakpoint.
3958 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
3960 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3961 declarations as well.
3963 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3965 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3966 * config/arm/tm-embed.h: Delete file.
3968 * arm-tdep.h (arm_software_single_step): Declare.
3969 * arm-tdep.c (arm_software_single_step): Make global.
3970 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3972 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3973 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3974 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3975 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3977 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3978 allow defines to be overriden by TM file.
3979 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3980 change default to {0xbe,0xbe}.
3981 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3982 arm_obsd_thumb_be_breakpoint): New global variables.
3983 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3984 tdep->thumb_breakpoint_size.
3985 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3986 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3987 tdep->thumb_breakpoint_size.
3989 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3991 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3993 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3996 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3997 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3998 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3999 (mips_abi_regsize): Simplify.
4000 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4001 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4002 (mips_o32_return_value, mips_o64_push_dummy_call)
4003 (mips_o64_return_value): Propogate constant register sizes. Use the
4004 ABI register size instead of mips_stack_argsize.
4005 (mips_dump_tdep): Don't print mips_stack_argsize.
4006 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4009 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4011 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4012 * config/mips/tm-linux.h: Delete.
4013 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4014 (mips_linux_in_dynsym_resolve_code): Make static. Use
4015 svr4_in_dynsym_resolve_code.
4016 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4018 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4020 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4021 * Makefile.in (mips-linux-tdep.o): Update.
4022 * solib.c (set_solib_ops): New.
4023 (current_target_so_ops): Update comment.
4024 * solib.h (set_solib_ops): New prototype.
4026 2007-05-16 Chris Dearman <chris@mips.com>
4028 * printcmd.c (do_examine): Fix typos in a comment.
4030 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4032 * configure.ac: Allow sysroots to be relocated under $prefix as
4033 well as $exec_prefix.
4034 * configure: Regenerate.
4036 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4038 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4039 (offsetof): Do not define.
4040 (find_stub_with_shl_get): Use numerical value 3 instead of
4041 symbolic value TYPE_PROCEDURE.
4043 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4045 * gdb_proc_service.h (paddr_t): Delete typedef.
4046 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4047 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4048 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4049 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4050 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4051 * Makefile.in (proc-service.o): Update.
4053 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4055 * Makefile.in (mips-tdep.o): Update.
4056 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4059 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4061 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4062 instead of store_typed_address.
4063 * value.c (pack_long): New.
4064 (value_from_longest): Use it.
4065 * value.h (pack_long): New prototype.
4067 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4069 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4070 DW_EH_PE_signed if appropriate.
4072 2007-05-14 Paul Brook <paul@codesourcery.com>
4073 Daniel Jacobowitz <dan@codesourcery.com>
4075 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4077 (dwarf_decode_lines): Check for line info without a file.
4079 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4081 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4084 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4086 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4088 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4090 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4092 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4094 * gdbarch.sh (read_sp): Remove.
4095 * gdbarch.c, gdbarch.h: Regenerate.
4096 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4098 * avr-tdep.c (avr_read_sp): Remove.
4099 (avr_unwind_sp): New function.
4100 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4101 * mips-tdep.c (mips_read_sp): Remove.
4102 (mips_unwind_sp): New function.
4103 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4104 * score-tdep.c (score_read_unsigned_register): Remove.
4105 (score_read_sp): Remove.
4106 (score_unwind_sp): New function.
4107 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4109 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4111 * buildsym.c (start_subfile): Handle absolute pathnames
4112 while comparing subfile names.
4114 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4116 * hppa-hpux-tdep.c: Include "regcache.h".
4117 * hppa-linux-tdep.c: Likewise.
4118 * hppa-tdep.c: Include "gdb_stdint.h".
4119 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4121 * Makefile.in: Update dependencies.
4123 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4125 * blockframe.c: Remove obsolete comments.
4126 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4127 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4128 * hppa-tdep.h (enum hppa_regnum): Likewise.
4129 * mips-tdep.h: Likewise.
4130 * m68hc11-tdep.c: Likewise.
4132 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4134 * inferior.h (read_sp): Remove prototype.
4135 * regcache.c (read_sp): Remove.
4136 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4137 * infcall.c (call_function_by_hand): Likewise.
4138 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4140 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4142 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4144 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4145 instead of read_register and read_register_pid.
4147 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4148 argument instead of PTID. Use regcache functions instead of
4150 (ia64_linux_insert_watchpoint): Update call.
4151 (ia64_linux_stopped_data_address): Use regcache functions
4152 instead of read_register_pid and write_register_pid.
4154 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4156 * libunwind-frame.h (struct regcache): Add forward declaration.
4157 (libunwind_get_reg_special): Add REGCACHE argument.
4158 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4159 argument. Pass it to unw_init_remote_p.
4161 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4162 libunwind_get_reg_special.
4163 (ia64_access_reg): Remove "write" case.
4164 (ia64_access_fpreg): Likewise. Read from next_frame passed
4165 as callback argument instead of from current_regcache.
4166 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4167 passed as callback argument instead of from current_regcache.
4168 (ia64_access_rse_fpreg): New function.
4169 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4171 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4173 * NEWS: Mention SPU overlay support.
4175 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4177 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4179 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4181 * breakpoint.c (remove_breakpoint): Do not remove software
4182 breakpoints in unmapped overlay sections.
4184 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4186 * spu-tdep.c: Include "observer.h".
4187 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4188 (spu_overlay_data): New variable.
4189 (struct spu_overlay_table): New type.
4190 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4191 spu_overlay_new_objfile): New functions.
4192 (spu_gdbarch_init): Install spu_overlay_update.
4193 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4194 allocate spu_overlay_data objfile data.
4196 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4198 * gdbarch.sh (overlay_update): New gdbarch function.
4199 (struct obj_section): Add forward declaration.
4200 * gdbarch.c, gdbarch.h: Regenerate.
4202 * symfile.c (simple_overlay_update): Make global.
4203 (target_overlay_update): Remove variable.
4204 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4205 target_overlay_update.
4206 (overlay_load_command): Likewise.
4207 * symfile.h (struct obj_section): Add forward declaration.
4208 (simple_overlay_update): Add prototype.
4210 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4212 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4214 * observer.sh: Add "struct objfile" forward declaration.
4215 * target.h (deprecated_target_new_objfile_hook): Remove.
4216 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4217 (clear_symtab_users): Call observer_notify_new_objfile.
4218 (symbol_file_add_with_addrs_or_offsets): Likewise.
4219 * rs6000-nat.c: Include "observer.h".
4220 (vmap_ldinfo): Call observer_notify_new_objfile.
4221 (xcoff_relocate_core): Likewise.
4222 * remote.c (remote_new_objfile_chain): Remove.
4223 (remote_new_objfile): Do not call remote_new_objfile_chain.
4224 (_initialize_remote): Use observer_attach_new_objfile.
4225 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4226 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4227 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4228 * aix-thread.c: Include "observer.h".
4229 (target_new_objfile_chain): Remove.
4230 (new_objfile): Do not call target_new_objfile_chain.
4231 (_initialize_aix_thread): Use observer_attach_new_objfile.
4232 * hpux-thread.c: Include "observer.h"
4233 (target_new_objfile_chain): Remove.
4234 (hpux_thread_new_objfile): Make static. Do not call
4235 target_new_objfile_chain.
4236 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4237 * linux-thread-db.c: Include "observer.h".
4238 (target_new_objfile_chain): Remove.
4239 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4240 (_initialize_thread_db): Use observer_attach_new_objfile.
4241 * sol-thread.c: Include "observer.h".
4242 (target_new_objfile_chain): Remove.
4243 (sol_thread_new_objfile): Make static. Do not call
4244 target_new_objfile_chain.
4245 (_initialize_sol_thread): Use observer_attach_new_objfile.
4246 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4247 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4250 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4252 * gdbarch.sh (remote_translate_xfer_address): Remove.
4253 * gdbarch.h, gdbarch.c: Regenerate.
4254 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4255 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4256 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4257 call gdbarch_remote_translate_xfer_address.
4258 * frv-tdep.c (frv_gdbarch_init): Do not call
4259 set_gdbarch_remote_translate_xfer_address.
4260 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4261 (ia64_gdbarch_init): Do not install it.
4263 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4265 * NEWS: Mention change in handling the -tui option.
4267 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4269 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4272 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4274 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4275 (breakpoint_inserted_here_p): Call it.
4276 (software_breakpoint_inserted_here_p): Likewise.
4278 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4280 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4281 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4282 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4283 (inf_ptrace_store_register): Likewise.
4284 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4285 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4287 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4289 * linux-nat.c (linux_trad_target): Adapt parameter list.
4290 * linux-nat.h (linux_trad_target): Likewise.
4292 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4294 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4295 (mips_linux_cannot_store_register): Likewise.
4296 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4297 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4298 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4299 (mips64_linux_register_addr): Likewise.
4300 (mips_linux_register_u_offset): Adapt parameter list. Pass
4301 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4303 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4304 * config/mips/nm-linux.h: Delete file.
4306 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4308 * remote.c (remote_detach): Error out if remote can't detach.
4310 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4312 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4313 instruction's opcode in the "opcode" variable and declares new
4314 variable "closing_insn".
4316 2007-05-10 Chris Dearman <chris@mips.com>
4317 Maciej W. Rozycki <macro@mips.com>
4319 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4320 whitespace when setting a var_filename.
4322 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4324 * main.c (captured_main): Recognize -tui option and print an error
4325 message when the TUI is not configured.
4327 2007-05-09 Andreas Schwab <schwab@suse.de>
4329 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4330 set removed members.
4331 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4333 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4335 * gdbarch.sh (deprecated_store_struct_return): Remove.
4336 * gdbarch.c, gdbarch.h: Regenerate.
4337 * frv-tdep.c (frv_store_struct_return): Remove.
4338 (frv_gdbarch_init): Do not install it.
4340 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4342 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4343 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4344 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4346 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4348 * spu-linux-nat.c: Include "gdb_stdint.h".
4349 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4350 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4351 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4352 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4353 (spu_child_wait): Mark up string for translation.
4355 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4356 Luis Machado <luisgpm@br.ibm.com>
4358 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4359 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4360 BC_INSTRUCTION): Define.
4361 (deal_with_atomic_sequence): New function.
4362 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4363 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4364 gdbarch_software_single_step routine.
4366 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4368 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4369 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4370 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4371 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4372 spu_child_post_attach, spu_fetch_inferior_registers,
4373 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4374 memory addresses as ULONGEST, not CORE_ADDR.
4376 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4378 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4379 * gdbarch.h, gdbarch.c: Regenerate.
4381 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4382 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4383 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4385 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4386 Add REGCACHE argument. Use it instead of read/write_register.
4387 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4389 * config/pa/tm-hppah.h: Delete file.
4390 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4391 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4393 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4395 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4396 * NEWS: Mention improved C++ thunk support.
4397 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4398 * cp-abi.c (cplus_skip_trampoline): New.
4399 * cp-abi.h (cplus_skip_trampoline): New prototype.
4400 (struct cp_abi_ops): Add skip_trampoline member.
4401 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4402 (init_gnuv3_ops): Set skip_trampoline.
4404 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4406 * rs6000-tdep.c (struct frame_extra_info): Delete.
4408 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4410 * linux-thread-db.c: Update some FIXME comments.
4411 (thread_db_xfer_partial): Delete.
4412 (init_thread_db_ops): Do not set to_xfer_partial.
4414 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4416 * inftarg.c, infptrace.c: Remove files.
4417 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4418 (inftarg.o, infptrace.o): Remove rules.
4419 * gdbcore.h (register_addr): Remove prototype.
4420 * inferior.h (kill_inferior, store_inferior_registers,
4421 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4422 call_ptrace, pre_fork_inferior): Remove prototypes.
4423 * target.h (child_xfer_memory, child_pid_to_exec_file,
4424 child_core_file_to_sym_file, child_post_attach,
4425 child_post_startup_inferior, child_acknowledge_created_inferior,
4426 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4427 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4428 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4429 child_follow_fork, child_reported_exec_events_per_exec_call,
4430 child_has_exited, child_thread_alive): Remove prototypes.
4432 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4434 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4435 (sparc_store_inferior_registers): Likewise.
4436 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4437 (sparc_fetch_inferior_registers): ... this.
4438 (store_inferior_registers): Rename to ...
4439 (sparc_store_inferior_registers): ... this.
4440 (sparc_target): Update callback names.
4441 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4442 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4444 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4446 * linux-nat.c (child_post_attach): Rename to ...
4447 (linux_child_post_attach): ... this. Make static.
4448 (child_follow_fork): Rename to ...
4449 (linux_child_follow_fork): ... this. Make static.
4450 (child_insert_fork_catchpoint): Rename to ...
4451 (linux_child_insert_fork_catchpoint): ... this. Make static.
4452 (child_insert_vfork_catchpoint): Rename to ...
4453 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4454 (child_insert_exec_catchpoint): Rename to ...
4455 (linux_child_insert_exec_catchpoint): ... this. Make static.
4456 (child_pid_to_exec_file): Rename to ...
4457 (linux_child_pid_to_exec_file): ... this. Make static.
4459 (linux_handle_extended_wait): Update call.
4460 (linux_xfer_partial): Update callback routine names.
4462 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4464 * configure.host (alpha*-*-osf[12]*): Remove support.
4465 * NEWS: Mention removed configurations.
4467 * config/alpha/alpha-osf1.mh: Delete file.
4468 * config/alpha/alpha-osf2.mh: Delete file.
4469 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4471 * config/alpha/nm-osf.h: Delete file.
4472 * config/alpha/nm-osf2.h: Delete file.
4473 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4474 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4475 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4477 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4478 (register_addr, kernel_u_size): Remove.
4479 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4481 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4483 * regcache.c (regcache_invalidate): New function.
4484 (register_cached): Remove.
4485 (set_register_cached): Remove.
4486 (deprecated_registers_fetched): Remove.
4487 (registers_changed): Use regcache_invalidate instead
4488 of set_register_cached.
4489 (regcache_raw_read): Update comment.
4491 * regcache.h (regcache_invalidate): Add prototype.
4492 (register_cached): Remove.
4493 (set_register_cached): Remove.
4494 (deprecated_registers_fetched): Remove.
4496 * findvar.c (value_of_register): Do not call register_cached.
4497 * frame.c (frame_register): Likewise.
4498 * tui/tui-regs.c (tui_get_register): Likewise.
4500 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4501 (process_g_packet): Likewise.
4502 (remote_fetch_registers): Likewise.
4503 * remote-sim.c (gdbsim_fetch_register): Likewise.
4504 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4505 by regcache_invalidate.
4506 (mt_pseudo_register_write): Likewise.
4507 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4509 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4510 call by loop over regcache_raw_supply (..., NULL).
4512 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4514 * target.h (struct target_ops): Add REGCACHE parameter to
4515 to_prepare_to_store.
4516 (target_prepare_to_store): Likewise.
4517 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4518 (update_current_target): Adapt prepare_to_store de_fault rule.
4520 * regcache.c (regcache_raw_write): Pass regcache to
4521 target_prepare_to_store.
4523 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4524 Do not call CHILD_PREPARE_TO_STORE.
4525 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4526 * procfs.c (procfs_prepare_to_store): Likewise.
4528 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4529 * go32-nat.c (go32_prepare_to_store): Likewise.
4530 * monitor.c (monitor_prepare_to_store): Likewise.
4531 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4532 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4533 * remote-mips.c (mips_prepare_to_store): Likewise.
4534 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4535 * win32-nat.c (win32_prepare_to_store): Likewise.
4537 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4538 Use it instead of current_regcache.
4540 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4541 parameter. Pass it on to next target.
4542 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4544 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4546 * target.h (struct regcache): Add forward declaration.
4547 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4548 and to_store_registers target operations.
4549 (target_fetch_registers, target_store_registers): Update.
4551 * regcache.c (regcache_raw_read): Replace register_cached by
4552 regcache_valid_p. Pass regcache to target_fetch_registers.
4553 (regcache_raw_write): Pass regcache to target_store_registers.
4555 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4556 store_regs, store_wmmx_regs): Replace register_cached by
4559 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4560 to target_fetch_registers calls.
4561 * corelow.c (core_open): Likewise.
4562 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4563 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4564 ps_lsetfpregs): Likewise.
4565 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4566 ps_lsetfpregs): Likewise.
4567 * win32-nat.c (win32_resume): Likewise.
4568 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4569 to target_store_registers call.
4570 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4572 * inferior.h (store_inferior_registers): Update prototype.
4573 (fetch_inferior_registers): Likewise.
4574 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4575 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4576 Update function pointer signatures.
4578 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4579 use it instead of current_regcache, update calls.
4580 (aix_thread_store_registers): Likewise.
4581 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4582 (alphabsd_store_inferior_registers): Likewise.
4583 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4584 (amd64bsd_store_inferior_registers): Likewise.
4585 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4586 (amd64_linux_store_inferior_registers): Likewise.
4587 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4588 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4589 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4590 (arm_linux_fetch_inferior_registers): Likewise.
4591 (arm_linux_store_inferior_registers): Likewise.
4592 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4593 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4594 (store_register, store_regs, store_fp_register, store_fp_regs,
4595 armnbsd_store_registers): Likewise.
4596 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4597 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4598 (bsd_uthread_store_registers): Likewise.
4599 * corelow.c (get_core_registers): Likewise.
4600 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4601 go32_store_registers): Likewise.
4602 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4603 (hppabsd_store_registers): Likewise.
4604 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4605 (hppa_hpux_fetch_inferior_registers): Likewise.
4606 (hppa_hpux_store_register): Likewise.
4607 (hppa_hpux_store_inferior_registers): Likewise.
4608 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4609 (hppa_linux_fetch_inferior_registers): Likewise.
4610 (hppa_linux_store_inferior_registers): Likewise.
4611 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4612 (hpux_thread_store_registers): Likewise.
4613 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4614 (i386bsd_store_inferior_registers): Likewise.
4615 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4616 gnu_store_registers): Likewise.
4617 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4618 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4620 (i386_linux_fetch_inferior_registers): Likewise.
4621 (i386_linux_store_inferior_registers): Likewise.
4622 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4623 (ia64_linux_fetch_registers): Likewise.
4624 (ia64_linux_store_register): Likewise.
4625 (ia64_linux_store_registers): Likewise.
4626 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4627 (inf_child_store_inferior_registers): Likewise.
4628 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4629 (inf_ptrace_fetch_registers): Likewise.
4630 (inf_ptrace_store_register): Likewise.
4631 (inf_ptrace_store_registers): Likewise.
4632 * infptrace.c (fetch_register, store_register): Likewise.
4633 (fetch_inferior_registers, store_inferior_registers): Likewise.
4634 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4635 (m32r_linux_fetch_inferior_registers): Likewise.
4636 (m32r_linux_store_inferior_registers): Likewise.
4637 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4638 (m68kbsd_store_inferior_registers): Likewise.
4639 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4640 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4641 fetch_fpregs, store_fpregs): Likewise.
4642 (m68k_linux_fetch_inferior_registers): Likewise.
4643 (m68k_linux_store_inferior_registers): Likewise.
4644 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4645 (m88kbsd_store_inferior_registers): Likewise.
4646 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4647 (mips64obsd_store_inferior_registers): Likewise.
4648 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4649 (mips64_linux_regsets_store_registers): Likewise.
4650 (mips64_linux_fetch_registers): Likewise.
4651 (mips64_linux_store_registers): Likewise.
4652 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4653 (mipsnbsd_store_inferior_registers): Likewise.
4654 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4655 (monitor_fetch_registers, monitor_store_registers): Likewise.
4656 * nto-procfs.c (procfs_fetch_registers): Likewise.
4657 (procfs_store_registers): Likewise.
4658 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4659 fetch_register, supply_vrregset, fetch_altivec_registers,
4660 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4661 (store_altivec_register, store_spe_register, store_register,
4662 fill_vrregset, store_altivec_registers, store_ppc_registers,
4663 ppc_linux_store_inferior_registers): Likewise.
4664 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4665 (ppcnbsd_store_inferior_registers): Likewise.
4666 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4667 (ppcobsd_store_registers): Likewise.
4668 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4669 * remote.c (fetch_register_using_p, process_g_packet,
4670 fetch_registers_using_g, remote_fetch_registers): Likewise.
4671 (store_register_using_P, store_registers_using_G,
4672 remote_store_registers): Likewise.
4673 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4674 m32r_store_register, m32r_store_register): Likewise.
4675 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4676 * remote-sim.c (gdbsim_fetch_register): Likewise.
4677 (gdbsim_store_register): Likewise.
4678 * rs6000-nat.c (fetch_register, store_register): Likewise.
4679 (rs6000_fetch_inferior_registers): Likewise.
4680 (rs6000_store_inferior_registers): Likewise.
4681 * s390-nat.c (fetch_regs, store_regs): Likewise.
4682 (fetch_fpregs, store_fpregs): Likewise.
4683 (s390_linux_fetch_inferior_registers): Likewise.
4684 (s390_linux_store_inferior_registers): Likewise.
4685 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4686 (shnbsd_store_inferior_registers): Likewise.
4687 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4688 (sol_thread_store_registers): Likewise.
4689 * sparc-nat.c (fetch_inferior_registers): Likewise.
4690 (store_inferior_registers): Likewise.
4691 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4692 (spu_store_inferior_registers): Likewise.
4693 * target.c (debug_print_register): Likewise.
4694 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4695 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4696 (vaxbsd_store_inferior_registers): Likewise.
4697 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4698 (win32_fetch_inferior_registers): Likewise.
4699 (win32_store_inferior_registers): Likewise.
4701 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4703 * gdbcore.h (struct regcache): Add forward declaration.
4704 (struct core_fns): Add REGCACHE argument to core_read_registers
4706 * corelow.c (get_core_register_section): Add REGCACHE argument,
4707 use it instead of current_regcache, pass it to core_read_registers
4709 (get_core_registers): Add current_regcache as parameter to
4710 get_core_register_section calls.
4712 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4713 use it instead of current_regcache.
4714 * armnbsd-nat.c (fetch_core_registers): Likewise.
4715 (fetch_elfcore_registers): Likewise.
4716 * core-regset.c (fetch_core_registers): Likewise.
4717 * cris-tdep.c (fetch_core_registers): Likewise.
4718 * irix5-nat.c (fetch_core_registers): Likewise.
4719 * m68klinux-nat.c (fetch_core_registers): Likewise.
4720 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4721 * win32-nat.c (fetch_elf_core_registers): Likewise.
4723 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4725 * gregset.h (struct regcache): Add forward declaration.
4726 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4727 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4728 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4729 (fill_gregset): Add REGCACHE parameter.
4730 (fill_fpregset): Likewise.
4731 (fill_fpxregset): Likewise.
4733 Update all definitions accordingly:
4734 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4735 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4736 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4737 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4738 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4739 (supply_gregset): Add REGCACHE parameter, use it instead of
4740 current_regcache. Make GREGSETP parameter const, adapt casts.
4741 (supply_fpregset): Add REGCACHE parameter, use it instead of
4742 current_regcache. Make FPREGSETP parameter const, adapt casts.
4743 (fill_gregset): Add REGCACHE parameter, use it instead of
4745 (fill_fpregset): Likewise.
4747 Update all callers to pass in current_regcache as the new argument:
4748 * core-regset.c: Include "regcache.h".
4749 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4750 * procfs.c: Include "regcache.h".
4751 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4752 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4753 (procfs_do_thread_registers): Likewise.
4754 (procfs_make_note_section): Likewise.
4755 * proc-service.c: Include "regcache.h".
4756 (ps_lgetregs): Update fill_gregset call.
4757 (ps_lsetregs): Update supply_gregset call.
4758 (ps_lgetfpregs): Update fill_fpregset call.
4759 (ps_lsetfpregs): Update supply_fpregset call.
4760 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4761 supply_fpregset calls.
4762 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4763 (ps_lgetregs): Update fill_gregset call.
4764 (ps_lsetregs): Update supply_gregset call.
4765 (ps_lgetfpregs): Update fill_fpregset call.
4766 (ps_lsetfpregs): Update supply_fpregset call.
4768 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4769 fill_fpregset, and fill_fpxregset calls.
4770 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4771 (store_regs): Update fill_gregset call.
4772 (fetch_fpregs): Update supply_fpregset call.
4773 (store_fpregs): Update fill_fpregset call.
4774 (fetch_fpxregs): Update supply_fpxregset call.
4775 (store_fpxregs): Update fill_fpxregset call.
4776 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4777 (store_regs): Update fill_gregset call.
4778 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4779 (store_regs): Update fill_gregset call.
4780 (fetch_fpregs): Update supply_fpregset call.
4781 (store_fpregs): Update fill_fpregset call.
4782 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4783 * s390-nat.c (fetch_regs): Update supply_gregset call.
4784 (store_regs): Update fill_gregset call.
4785 (fetch_fpregs): Update supply_fpregset call.
4786 (store_fpregs): Update fill_fpregset call.
4788 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4791 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4793 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4794 it instead of current_regcache.
4795 (parse_register_dump): Add REGCACHE parameter, pass it to
4796 supply_register callback.
4797 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4798 parse_register_dump.
4799 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4800 parse_register_dump and dumpregs callback.
4801 (monitor_wait): Pass current_regcache to parse_register_dump and
4803 (monitor_fetch_register): Pass current_regcache to
4804 monitor_supply_register.
4805 (monitor_fetch_registers): Pass current_regcache to
4807 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4808 supply_register and dumpregs callbacks.
4809 (monitor_supply_register, monitor_dump_reg_block): Update
4811 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4812 it to monitor_supply_register.
4813 * dink32-rom.c (dink32_supply_register): Likewise.
4814 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4815 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4816 instead of current_regcache.
4818 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4820 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4821 Add REGCACHE parameter. Use it instead of current_regcache.
4822 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4823 i386nto_supply_gregset and i386nto_supply_fpregset.
4824 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4825 of current_regcache.
4827 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4828 nto_supply_ helper functions.
4829 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4831 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4833 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4834 supply_greget, supply_fpregset, supply_altregset, supply_regset,
4835 and regset_fill member function pointers.
4836 (nto_dummy_supply_regset): Adapt prototype.
4838 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4840 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4841 instead of current_regcache. Make REGS const.
4842 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4843 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4845 * shnbsd-nat.c: Include "regcache.h".
4846 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4848 (shnbsd_store_inferior_registers): Pass current_regcache to
4850 * Makefile.in (shbsd-nat.o): Update dependencies.
4852 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4854 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4855 instead of current_regcache.
4856 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4857 Make GREGSETP const, remove superfluous casts.
4858 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4859 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4861 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4862 (supply_64bit_reg): Likewise
4863 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4864 Make GREGSETP const, adapt casts accordingly.
4865 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4866 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4868 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4869 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4871 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4872 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4873 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4875 * mips-linux-nat.c: Include "regcache.h".
4876 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4877 current_regcache to mips{64}_(supply|fill)_ helper routines.
4878 (mips64_linux_regsets_fetch_registers): Likewise.
4879 (mips64_linux_regsets_store_registers): Likewise.
4881 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4882 REGCACHE argument; replace current_regcache. Make REGS const.
4883 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4884 replace current_regcache.
4885 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4886 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4887 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4888 mipsnbsd_store_inferior_registers): Pass current_regcache to
4889 mipsnbsd_(supply|fill)_... helper routines.
4891 * Makefile.in (mips-linux-nat.o): Update dependencies.
4893 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4895 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4896 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4897 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4898 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4899 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4900 * i386gnu-nat.c (store_fpregs): Likewise.
4901 * i386v4-nat.c (fill_fpregset): Likewise.
4902 * go32-nat.c (store_register, go32_store_registers): Likewise.
4904 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4906 * cris-tdep.c (supply_gregset): Rename to ...
4907 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4908 instead of current_regcache.
4909 (fetch_core_registers): Update call. Pass current_regcache.
4911 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4913 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4914 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4915 Use it instead of current_regcache.
4916 (supply_fparegset): Rename to ...
4917 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4918 Use it instead of current_regcache.
4919 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4920 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4922 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4924 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4925 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4926 use it instead of current_regcache.
4927 * alpha-tdep.h (struct regcache): Add forward declaration.
4928 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4929 alpha_fill_fp_regs): Update prototypes.
4931 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4932 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4933 * alpha-linux-nat.c: Include "regcache.h".
4934 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4935 current_regcache to alpha_supply/fill_ routines.
4937 * alphabsd-tdep.c: Include "regcache.h".
4938 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4939 pass it to alpha_supply_ routines. Make REGS const.
4940 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4941 pass it to alpha_fill_ routines.
4942 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4943 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4944 alphabsd_fill_fpreg): Update prototypes.
4946 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4947 fill_fpregset, alphabsd_fetch_inferior_registers,
4948 alphabsd_store_inferior_registers): Pass current_regcache to
4949 alphabsd_supply/fill_ routines.
4951 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4954 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4956 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4957 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4958 instead of current_regcache.
4959 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4960 REGCACHE parameter, pass it to supply_ routines.
4961 (aix_thread_fetch_registers): Pass current_regcache to
4962 fetch_regs_user_thread and fetch_regs_kernel_thread.
4964 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4965 Add REGCACHE parameter, use it instead of current_regcache.
4966 Call regcache_valid_p instead of register_cached.
4967 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4968 Also, pass REGCACHE to fill_ routines.
4969 (aix_thread_store_registers): Pass current_regcache to
4970 store_regs_user_thread and store_regs_kernel_thread.
4972 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4974 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4975 pointed to by GREGSETP.
4977 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4979 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4980 of regcache_raw_read_signed.
4981 (fill_fpregset): Use regcache_raw_collect instead of
4984 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4986 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4987 point arguments, test explicitly for use of the EABI32 ABI
4988 instead of inferring this condition from tests on register
4991 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4993 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4994 prior to allocating its location.
4996 2007-05-02 Maciej W. Rozycki <macro@mips.com>
4998 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4999 based on mips_abi_regsize() whose result is known in advance.
5000 (mips_o64_push_dummy_call): Likewise.
5002 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5004 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5005 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5007 * mips-linux-nat.c: Include "gregset.h".
5008 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5009 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5010 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5011 fill_fpregset): Move to mips-linux-nat.c.
5013 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5015 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5017 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5018 (read_register): ... here.
5019 (deprecated_write_register_gen): Remove, inline ...
5020 (write_register): ... here.
5021 * regcache.h (deprecated_read_register_gen): Remove prototype.
5022 (deprecated_write_register_gen): Likewise.
5024 * remote-sim.c (gdbsim_store_register): Replace call to
5025 deprecated_read_register_gen with regcache_cooked_read.
5026 * target.c (debug_print_register): Replace calls to
5027 deprecated_read_register_gen and read_register with
5028 regcache_cooked_read.
5030 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5032 * hpux-thread.c (hpux_thread_store_registers): Use
5033 regcache_raw_collect, not regcache_raw_read.
5034 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5035 not regcache_raw_write.
5037 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5039 * gdbarch.sh: Remove deprecated_register_byte.
5040 * gdbarch.c, gdbarch.h: Regenerate.
5041 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5042 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5044 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5045 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5046 read-only register caches. Make REGCACHE parameter const.
5047 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5049 * mi/mi-main.c (old_regs): Remove.
5050 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5051 (register_changed_p): Reimplement to compare two register caches.
5052 (mi_cmd_data_list_changed_registers): Update caller.
5053 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5054 * mi/mi-interp.c (mi_interpreter_init): Do not call
5055 mi_setup_architecture_data.
5057 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5059 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5060 inline definition at the places the macros are used.
5061 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5063 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5065 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5067 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5068 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5069 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5070 (rs6000_aix_regset_from_core_section): New function.
5071 (rs6000_aix_init_osabi): Register it.
5072 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5073 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5074 * rs6000-nat.c (CoreRegs): Do not define type.
5075 (fetch_core_registers, rs6000_core_fns): Remove.
5076 (_initialize_core_rs6000): Do not register it. Rename to ...
5077 (_initialize_rs6000_nat): ... this.
5078 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5080 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5082 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5083 (dwarf2_read_address): Sign extend return address as required by
5084 target architecture.
5086 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5088 * solib-frv.c (lm_base): Bail out if the main executable has
5091 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5093 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5094 of FPCR register in fpregset.
5096 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5098 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5099 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5101 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5103 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5104 * rs6000-nat.c (rs6000_wait): New function.
5105 (_initialize_core_rs6000): Install it as to_wait target method.
5106 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5108 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5110 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5111 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5112 * rs6000-nat.c (super_create_inferior): New variable.
5113 (rs6000_create_inferior): Make static. Adapt argument list. Call
5114 original version of create_inferior via super_create_inferior.
5115 (_initialize_core_rs6000): Install to_create_inferior target method.
5117 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5119 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5120 (aix_thread_xfer_partial): ... this.
5121 (init_aix_thread_ops): Install to_xfer_partial instead
5122 of deprecated_xfer_memory target method.
5124 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5125 and inftarg.o, add inf-ptrace.o.
5126 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5127 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5128 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5129 (fetch_inferior_registers): Rename to ...
5130 (rs6000_fetch_inferior_registers): ... this. Make static.
5131 (store_inferior_registers): Rename to ...
5132 (rs6000_store_inferior_registers): ... this. Make static.
5133 (read_word, child_xfer_memory): Remove.
5134 (rs6000_xfer_partial): New function.
5135 (kernel_u_size): Remove.
5136 (_initialize_core_rs6000): Add inf_ptrace-based target.
5137 * Makefile.in (rs6000-nat.o): Update dependencies.
5139 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5141 * inf-ptrace.c: Include "gdb_stdint.h".
5142 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5143 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5144 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5145 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5146 (inf_ptrace_store_register): Likewise.
5147 * Makefile.in (inf-ptrace.o): Update dependencies.
5149 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5151 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5152 * configure.tgt (rs6000-*-*): Likewise.
5153 * config/rs6000/aix4.mh: Delete file.
5154 * config/rs6000/aix4.mt: Delete file.
5155 * config/rs6000/rs6000.mh: Delete file.
5156 * config/rs6000/rs6000.mt: Delete file.
5158 * config/powerpc/nm-aix.h: Delete file.
5159 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5161 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5163 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5164 Remove obsolete part of comment.
5165 (store_regs_user_thread): Use uint32_t temporaries when calling
5167 (store_regs_kernel_thread): Likewise. Add assertion to verify
5168 correct size of struct ptsprs members.
5169 (aix_thread_xfer_memory): Fix type of myaddr.
5170 (aix_thread_extra_thread_info): Fix compiler warning.
5171 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5172 (fetch_register, store_register): Adapt callers.
5174 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5176 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5178 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5180 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5182 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5183 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5184 (alpha_linux_regset_from_core_section): New function.
5185 (alpha_linux_init_abi): Install it.
5186 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5187 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5188 <sys/procfs.h>, and "gregset.h".
5189 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5190 Move from config/alpha/nm-linux.h.
5191 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5193 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5194 * alpha-nat.c: Remove #ifdef __linux__ section.
5195 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5196 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5197 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5198 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5199 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5200 (NATDEPFILES): Remove alpha-nat.o.
5201 * config/alpha/nm-linux.h: Delete file.
5202 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5203 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5204 (alpha-linux-tdep.o): Likewise.
5206 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5208 * mips-linux-nat.c: No longer include "gdbcore.h".
5209 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5210 (mips64_linux_register_addr): Likewise.
5211 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5212 mips64_linux_register_addr instead of register_addr.
5213 * mips-linux-tdep.c (mips_linux_register_addr,
5214 mips64_linux_register_addr): Move to mips-linux-nat.c.
5215 (register_addr): Remove.
5216 (register_addr_data, init_register_addr_data): Remove.
5217 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5218 (set_mips_linux_register_addr): Remove.
5219 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5220 * Makefile.in (mips-linux-nat.o): Update dependencies.
5222 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5224 * linux-nat.c (linux_register_u_offset): Remove.
5225 (linux_target_install_ops): New function.
5226 (linux_target): Use it.
5227 (linux_trad_target): New function.
5228 * linux-nat.h (linux_trad_target): Declare.
5230 * alpha-linux-nat.c: Include "gdbcore.h".
5231 (alpha_linux_register_u_offset): New function.
5232 (_initialize_alpha_linux_nat): Use linux_trad_target.
5234 * mips-linux-nat.c: Include "gdbcore.h".
5235 (mips_linux_register_u_offset): New function.
5236 (_initialize_mips_linux_nat): Use linux_trad_target.
5238 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5239 * config/arm/nm-linux.h: Delete file.
5241 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5242 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5244 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5245 * config/ia64/nm-linux.h: Delete file.
5247 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5248 * config/m32r/nm-linux.h: Delete file.
5250 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5251 * config/m68k/nm-linux.h: Delete file.
5253 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5254 * config/pa/nm-linux.h: Delete file.
5256 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5257 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5258 * config/powerpc/nm-linux.h: Delete file.
5260 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5261 * config/s390/nm-linux.h: Delete file.
5263 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5264 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5265 * config/sparc/nm-linux.h: Delete file.
5267 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5268 (mips-linux-nat.o): Likewise.
5270 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5272 * core-aout.c: Delete file.
5273 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5274 (core-aout.o): Delete rule.
5275 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5277 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5279 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5280 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5281 KERNEL_U_ADDR): Remove.
5283 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5284 (cannot_fetch_register, cannot_store_register): Remove.
5285 (fetch_register): Inline cannot_fetch_register and register_addr.
5286 (store_register): Inline cannot_store_register and register_addr.
5287 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5288 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5289 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5292 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5293 (fetch_register): Inline register_addr.
5294 (store_register): Inline register_addr.
5295 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5296 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5297 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5299 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5300 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5301 REGISTER_U_ADDR): Remove.
5303 * hppa-linux-nat.c (register_addr): Rename to ...
5304 (hppa_linux_register_addr): ... this. Make static.
5305 (fetch_register, store_register): Adapt callers.
5306 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5308 * ppc-linux-nat.c (kernel_u_size): Remove.
5309 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5311 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5312 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5314 * config/vax/nm-vax.h: Delete file.
5316 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5318 * MAINTAINERS (Write After Approval): Add myself.
5320 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5322 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5323 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5324 (m68k_linux_sigcontext_reg_offset): Fix typo.
5325 (target_is_uclinux): New.
5326 (m68k_linux_inferior_created): New.
5327 (m68k_linux_get_sigtramp_info): Check for uClinux or
5328 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5330 (_initialize_m68k_linux_tdep): Register
5331 m68k_linux_inferior_created.
5333 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5335 * win32-nat.c (win32_detach): Remove delete_command call.
5336 Resume inferior with win32_resume instead of win32_continue.
5338 2007-04-19 Jerome Guitton <guitton@adacore.com>
5340 * ser-mingw.c (fd_is_file): New function.
5341 (file_select_thread): New function.
5342 (ser_console_wait_handle): Add special handling for files.
5344 2007-04-18 Denis Pilat <denis.pilat@st.com>
5346 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5347 when missing from DW_TAG_subrange_type. Remove the handling of null
5348 return from die_type.
5350 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5352 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5353 change to rearrange some brackets.
5354 (mips_n32n64_push_dummy_call): Likewise.
5355 (mips_o32_push_dummy_call): Likewise.
5356 (mips_o64_push_dummy_call): Likewise.
5358 2007-04-18 Denis Pilat <denis.pilat@st.com>
5360 * infcmd.c (post_create_inferior): Start with a call to
5361 target_terminal_ours.
5363 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5365 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5367 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5369 (mips_o32_push_dummy_call): Likewise.
5370 (mips_o64_push_dummy_call): Likewise.
5372 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5374 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5377 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5379 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5381 (mips_o32_push_dummy_call): Likewise.
5383 2007-04-17 Andreas Schwab <schwab@suse.de>
5385 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5386 sal to be bigger than the end of the function.
5388 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5389 Nigel Stephens <nigel@mips.com>
5391 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5392 argument alignment requirements when calculating stack space
5393 required. When aligning an arg register to eight bytes
5394 boundary, align stack_offset too. Write floating-point
5395 arguments to the appropriate integer register if need go there.
5396 (mips_o64_push_dummy_call): Likewise.
5398 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5400 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5401 "sig" arguments, add "regcache" argument.
5402 * gdbarch.c, gdbarch.h: Regenerate.
5404 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5405 (handle_inferior_event): Call remove_single_step_breakpoints directly
5406 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5408 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5409 Remove handling of !insert_breakpoints_p case.
5410 * arm-tdep.c (arm_software_single_step): Likewise.
5411 * cris-tdep.c (cris_software_single_step): Likewise.
5412 * mips-tdep.c (mips_software_single_step): Likewise.
5413 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5414 * sparc-tdep.c (sparc_software_single_step): Likewise.
5415 * spu-tdep.c (spu_software_single_step): Likewise.
5417 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5418 * mips-tdep.h (mips_software_single_step): Likewise.
5419 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5420 * sparc-tdep.h (sparc_software_single_step): Likewise.
5422 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5424 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5425 when removing single-step breakpoints.
5427 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5429 * varobj.h (varobj_set_frozen): New
5430 (varobj_get_frozen): New.
5431 (varobj_update): New parameter explicit.
5432 * varobj.c (struct varobj): New fields frozen
5434 (varobj_set_frozen, varobj_get_frozen): New.
5435 (install_new_value): Don't fetch values for
5436 frozen variable object, or children thereof. Allow
5437 a frozen variable object to have non-fetched value.
5438 (varobj_update): Allow updating child variables.
5439 Don't traverse frozen children.
5440 (new_variable): Initialize the frozen field.
5441 (c_value_of_variable): Return NULL for frozen
5442 variable without any value yet.
5443 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5445 (mi_cmd_var_create): Output the 'frozen' field,
5446 as soon as testsuite is adjusted to expect that field.
5447 (mi_cmd_var_set_frozen): New.
5448 (mi_cmd_var_update): Pass the 'explicit' parameter to
5450 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5451 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5453 2007-04-13 Paul Brook <paul@codesourcery.com>
5455 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5457 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5459 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5461 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5462 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5463 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5464 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5465 * Makefile.in: Remove references to deleted files.
5466 * README: Do not mention deleted ROM monitor interfaces.
5467 * defs.h (enum language): Delete language_scm.
5468 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5469 (dump_subexp_body_standard): Likewise.
5470 * parse.c (operator_length_standard): Likewise.
5471 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5472 * remote-mips.c: Do not include remote-utils.h.
5473 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5475 * value.c: Do not include scm-lang.h.
5476 (unpack_long): Delete scm_unpack call.
5477 * config/h8300/h8300.mt, config/mips/embed.mt,
5478 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5479 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5481 * NEWS: Mention removed files.
5483 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5485 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5486 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5488 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5490 * NEWS: Mention removal of HP aCC support.
5492 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5494 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5495 first entry for static executables.
5496 (breakpoint_addr): Delete unused variable.
5497 (elf_locate_base): Search for _r_debug in static executables.
5498 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5501 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5503 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5504 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5505 (mention): Remove bp_through_sigtramp support.
5506 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5508 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5510 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5513 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5515 * infrun.c: Doc fixes.
5516 (handle_inferior_event): Clarify debug message.
5517 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5519 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5521 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5523 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5525 * config/m68k/tm-monitor.h: Delete file.
5526 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5527 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5529 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5530 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5532 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5534 * gdbarch.sh (software_single_step): Change the return type
5535 from void to int and reformatted some comments to <= 80
5537 * gdbarch.c, gdbarch.h: Regenerated.
5538 * alpha-tdep.c (alpha_software_single_step): Likewise.
5539 * alpha-tdep.h (alpha_software_single_step): Likewise.
5540 * arm-tdep.c (arm_software_single_step): Likewise.
5541 * cris-tdep.c (cris_software_single_step): Likewise.
5542 * mips-tdep.c (mips_software_single_step): Likewise.
5543 * mips-tdep.h (mips_software_single_step): Likewise.
5544 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5545 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5546 * sparc-tdep.c (sparc_software_single_step): Likewise.
5547 * sparc-tdep.h (sparc_software_single_step): Likewise.
5548 * spu-tdep.c (spu_software_single_step): Likewise.
5549 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5550 and act accordingly.
5552 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5554 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5555 * configure: Regenerate.
5556 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5558 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5560 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5562 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5564 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5566 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5567 distinct on the TYPE_STUB_SUPPORTED debug targets.
5568 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5570 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5572 * sparc-tdep.c (X_RS2): New macro.
5573 (sparc_skip_stack_check): New function.
5574 (sparc_analyze_prologue): Adjust PC past stack probing
5575 sequence if necessary.
5577 2007-04-10 Andreas Schwab <schwab@suse.de>
5579 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5582 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5584 * breakpoint.c (gdb_breakpoint_query): Really return an
5586 (gdb_breakpoint): Likewise.
5587 * thread.c (gdb_list_thread_ids): Likewise.
5588 (gdb_thread_select): Likewise.
5589 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5590 (mi_cmd_thread_list_ids): Remove bogus initialization.
5592 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5594 * Makefile.in (SFILES): Remove hpacc-abi.c.
5595 (COMMON_OBS): Remove hpacc-abi.o.
5596 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5597 (hpacc-abi.o, hpread.o): Delete rules.
5598 * somread.c: Delete extern declarations from hpread.c.
5599 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5600 (som_symfile_finish): Do not call hpread_symfile_finish.
5601 (som_symfile_init): Do not call hpread_symfile_init.
5602 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5603 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5604 * hpacc-abi.c, hpread.c: Deleted.
5606 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5608 * solib-svr4.c (enable_break): Simplify return value.
5609 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5611 2007-04-10 Andreas Schwab <schwab@suse.de>
5613 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5614 l_ld_size, l_next_size, l_prev_size, l_name_size.
5616 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5617 to extract addresses from link map.
5618 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5619 (LM_NEXT): Likewise.
5620 (LM_NAME): Likewise.
5621 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5622 (elf_locate_base): Likewise.
5623 (open_symbol_file_object): Likewise.
5624 (svr4_fetch_objfile_link_map): Likewise.
5625 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5626 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5628 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5629 (svr4_lp64_fetch_link_map_offsets): Likewise.
5631 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5632 removed members. Set l_ld_offset to -1 if not present.
5634 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5636 Pass stderr of program run with "target remote |"
5638 * serial.c (serial_open): Set error_fd to -1.
5639 * serial.h (struct serial): New field error_fd.
5640 (struct serial_opts): New field avail.
5641 * ser-pipe.c (pipe_open): Create another pair
5642 of sockets. Pass stderr to gdb.
5643 * ser-mingw.c (pipe_windows_open): Pass
5644 PEX_STDERR_TO_PIPE to pex_run. Initialize
5647 (_initialize_ser_windows): Hook pipe_avail.
5648 * ser-base.c (generic_readchar): Check if there's
5649 anything in stderr channel and route that to gdb_stderr.
5651 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5653 * dbxread.c (read_ofile_symtab): Move current_objfile
5654 clearing to after end_stabs.
5656 2007-04-01 Andreas Schwab <schwab@suse.de>
5658 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5659 gdbarch instead of current_gdbarch.
5661 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5663 * varobj.c (varobj_create): Keep varobj value
5664 NULL when evaluating the type.
5666 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5668 * NEWS: Mention new Windows CE support.
5670 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5672 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5673 the obsoletion stanza.
5674 * NEWS: Mention deleted targets.
5676 * config/sh/tm-wince.h: Remove.
5677 * config/sh/wince.mt: Remove.
5678 * config/mips/tm-wince.h: Remove.
5679 * config/mips/wince.mt: Remove.
5682 * wince-stub.c: Remove.
5683 * wince-stub.h: Remove.
5684 * Makefile.in (wince.o): Remove rule.
5685 (wince-stub.o): Likewise.
5687 * mips-tdep.c (mips_next_pc): Make static.
5688 * mips-tdep.h (mips_next_pc): Remove declaration.
5689 * arm-tdep.c (arm_pc_is_thumb): Make static.
5690 (thumb_get_next_pc): Likewise.
5691 (arm_get_next_pc): Likewise.
5692 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5693 (arm_pc_is_thumb): Likewise.
5694 (thumb_get_next_pc): Likewise.
5695 (arm_get_next_pc): Likewise.
5697 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5699 * MAINTAINERS: Remove d10v entry.
5700 * Makefile.in (SFILES): Remove dwarfread.c.
5701 (COMMON_OBS): Remove dwarfread.o.
5702 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5703 (remote-est.o, rom68k-rom.o): Delete.
5704 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5705 target est, target rom68k, and DWARF 1.
5706 * configure.tgt: Mark d10v as removed.
5707 * dwarf2read.c: Doc update.
5708 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5710 (elf_locate_sections): Do not set them.
5711 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5712 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5713 * config/m68k/monitor.mt (TDEPFILES): Prune.
5714 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5715 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5717 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5719 * doublest.c (convert_floatformat_to_doublest): Use
5720 floatformat_classify.
5721 (floatformat_is_nan): Rename to...
5722 (floatformat_classify): ...this. Return more information.
5723 * doublest.h (enum float_kind): New.
5724 (floatformat_is_nan): Replace prototype...
5725 (floatformat_classify): ...with this one.
5726 * valprint.c (print_floating): Use floatformat_classify. Handle
5729 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5731 * README: Mention ISO C library requirement.
5733 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5735 * Makefile.in (SFILES): Remove nlmread.c.
5736 (COMMON_OBS): Remove nlmread.o.
5737 (nlmread.o): Delete rule.
5738 * README: Delete reference to remote-st.c.
5739 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5740 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5742 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5743 (_initialize_i386_tdep): Do not reference them.
5744 * nlmread.c: Delete file.
5745 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5746 * target.c: Doc update.
5747 * thread.c: Delete commented include.
5748 * config/alpha/tm-alpha.h: Doc update.
5750 2007-03-30 Chris Dearman <chris@mips.com>
5752 * utils.c (string_to_core_addr): Comment typo.
5754 2007-03-30 Chris Dearman <chris@mips.com>
5756 * mips-tdep.c: Comment typo.
5758 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5760 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5761 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5762 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5763 * config/powerpc/nm-ppc64-linux.h: Remove file.
5764 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5765 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5766 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5767 * infptrace.c (call_ptrace): Likewise.
5768 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5769 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5770 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5771 (store_register): Likewise.
5773 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5775 * Makefile.in (varobj.o): Add missing dependency.
5777 2007-03-29 Michael Snyder <msnyder@access-company.com>
5779 * MAINTAINERS: Update my email address.
5781 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5783 Add support for exception handling with multiple versions of
5785 * ada-lang.c: Update general comments on how Ada exception catchpoints
5787 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5788 (__gnat_raise_nodefer_with_msg): Delete.
5789 (ada_unhandled_exception_name_addr_ftype): New type.
5790 (exception_support_info): New type.
5791 (ada_unhandled_exception_name_addr): Add forward declaration.
5792 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5793 (default_exception_support_info): New constant.
5794 (exception_support_info_fallback): Likewise.
5795 (exception_info): New global variable.
5796 (ada_exception_support_info_sniffer): New function.
5797 (ada_executable_changed_observer): Likewise.
5798 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5799 ada_unhandled_exception_name_addr.
5800 (ada_unhandled_exception_name_addr): Reimplement to match the
5801 latest Ada runtime implementation.
5802 (error_breakpoint_runtime_sym_not_found): Delete.
5803 (ada_exception_sym_name): Get the exception sym name from
5804 exception_info rather than hardcoding it.
5805 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5806 Update error handling.
5807 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5809 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5811 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5812 (remote-st.o, uw-thread.o): Delete.
5813 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5814 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5815 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5816 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5817 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5818 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5819 rs6000-*-lynxos* to an obsoletion stanza.
5820 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5821 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5822 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
5823 i[34567]86-*-netware*.
5824 * NEWS: Mention deleted targets.
5826 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5827 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5828 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5829 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5830 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5831 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5832 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5833 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5834 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5835 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5836 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5837 config/rs6000/tm-rs6000ly.h: Delete files.
5839 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5841 * defs.h (deprecated_registers_changed_hook): Delete declaration.
5842 * interps.c (clear_interpreter_hooks): Do not clear
5843 deprecated_registers_changed_hook.
5844 * regcache.c (registers_changed): Do not call it.
5845 * top.c (deprecated_registers_changed_hook): Do not define it.
5846 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5847 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5848 (tui_remove_hooks): Do not remove it.
5849 (tui_selected_frame_level_changed_hook): Check for negative level.
5850 Use get_selected_frame.
5851 (tui_registers_changed_hook): Deleted.
5853 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5855 * stabsread.c (add_undefined_type): Add extra parameter.
5856 Now handles nameless types separately.
5857 (struct nat): New type.
5858 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5859 New static variables.
5860 (read_type): Update calls to add_undefined_type.
5861 (add_undefined_type_noname): New function.
5862 (add_undefined_type_1): Renames from add_undefined_type.
5863 (cleanup_undefined_types_noname): New function.
5864 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5865 (cleanup_undefined_types): New handles nameless types separately.
5866 (_initialize_stabsread): Initialize our new static constants.
5868 2007-03-29 Denis Pilat <denis.pilat@st.com>
5870 * configure.ac: Test for signal.h.
5871 * configure, config.in: Regenerate.
5873 2007-03-29 Denis Pilat <denis.pilat@st.com>
5875 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5876 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5878 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
5880 * arm-wince-tdep.c: New.
5881 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5882 (MT_CFLAGS): Delete.
5884 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5885 solib-legacy.o, solib-svr4.o, and remove wince.o.
5886 * configure.tgt (arm*-*-mingw32ce*): Add.
5887 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5888 (do_target_signal_to_host): Silence 'not used' warning.
5889 * config/arm/tm-wince.h: Remove.
5891 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5893 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5894 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5896 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5897 * config/ia64/tm-linux.h: Remove file.
5898 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5899 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5900 legacy_pc_in_sigtramp.
5901 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5902 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5903 Remove func_name argument.
5904 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5906 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5907 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5908 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5909 (HAVE_STEPPABLE_WATCHPOINT): Define.
5911 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5912 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5913 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5914 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5915 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5916 target_insert_watchpoint, target_remove_watchpoint): Remove.
5917 (FETCH_INFERIOR_REGISTERS): Define.
5918 * ia64-linux-nat.c (ia64_register_addr): Make static.
5919 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5920 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5921 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5922 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5923 (ia64_linux_stopped_by_watchpoint): Make static.
5924 (ia64_linux_can_use_hw_breakpoint): New function.
5925 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5926 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5927 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5929 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
5931 * linespec.c: Include language.h.
5932 (find_methods): Add language parameter. Call
5933 lookup_symbol_in_language. Pass language down.
5934 (add_matching_methods): Likewise. Call
5935 lookup_symbol_in_language.
5936 (add_constructors): Likewise.
5937 (find_method): Pass sym_class to collect_methods.
5938 (collect_methods): Add sym_class parameter. Pass language
5940 * symtab.c (lookup_symbol): Rename to ...
5941 (lookup_symbol_in_language): ... this. Add language
5942 parameter. Use passed language instead of current_language.
5943 (lookup_symbol): New as wrapper around
5944 lookup_symbol_in_language.
5945 (lookup_symbol_aux): Add language parameter. Use passed
5946 language instead of current_language.
5947 (search_symbols): Indent.
5948 * symtab.h (enum language): Forward declare.
5949 (lookup_symbol_in_language): Declare.
5950 (lookup_symbol): Update description.
5951 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5952 * ada-lang.c (restore_language): Remove.
5953 (lookup_symbol_in_language): Remove.
5955 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
5957 * breakpoint.c (bpstat_num): Add int *num parameter.
5958 * breakpoint.h (bpstat_num): Likewise.
5959 * infcmd.c (continue_command): Adjust to new bpstat_num
5961 (program_info): Likewise.
5963 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5965 * config/sh/tm-sh.h: Remove file.
5966 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5967 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5968 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5969 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5971 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5973 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5974 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5975 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5976 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5977 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5978 sequence if target_shortname is "remote".
5980 2007-03-27 Anton Blanchard <anton@samba.org>
5982 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5983 instead of wordsize when looking for the LR in a stack frame.
5985 2007-03-27 Andreas Schwab <schwab@suse.de>
5986 Daniel Jacobowitz <dan@codesourcery.com>
5988 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5989 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5990 argument. Update all callers.
5991 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5992 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5993 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5994 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5995 (dwarf2_frame_set_adjust_regnum): ...this.
5996 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5997 * rs6000-tdep.c: Include "dwarf2-frame.h".
5998 (rs6000_adjust_frame_regnum): Define.
5999 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6000 Register rs6000_adjust_frame_regnum.
6002 * Makefile.in (rs6000-tdep.o): Update dependencies.
6004 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6006 * Makefile.in: Add support for a "pdf" target.
6008 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6010 * amd64-tdep.c (amd64_init_frame_cache): New function.
6011 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6013 2007-03-26 Nigel Stephens <nigel@mips.com>
6014 Maciej W. Rozycki <macro@mips.com>
6016 * ui-out.c (ui_out_field_core_addr): Truncate address to
6017 TARGET_ADDR_BIT size before printing.
6019 2007-03-22 Nigel Stephens <nigel@mips.com>
6020 Maciej W. Rozycki <macro@mips.com>
6022 * remote-mips.c (mips_xfer_memory): Update prototype.
6024 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6026 * symfile.h: #include "symtab.h"
6028 2007-03-22 Denis Pilat <denis.pilat@st.com>
6030 * utils.c (pagination_on_command, pagination_off_command):
6031 Remove useless prototypes.
6033 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6036 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6037 instead of TYPE_NAME for object base class name.
6040 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6042 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6043 Specify frame type in calls to frame_func_unwind().
6045 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6047 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6048 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6049 (refine_prologue_limit): Delete.
6050 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6051 Assume lim_pc is set. Correct check for incomplete prologues.
6052 Do not skip clobbers of the frame pointer.
6053 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6056 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6058 * frame.c (frame_pop): Check to see whether there's a frame to
6059 which we can pop first.
6061 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6063 * MAINTAINERS (Write After Approval): Add myself.
6065 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6067 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6068 (handle_inferior_event): Remove unnecessary braces.
6069 * breakpoint.c (bpstat_what): Remove wrong comment.
6071 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6073 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6074 (spu_gdbarch_init): Install it.
6076 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6078 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6079 object types, not 0.
6081 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6083 * spu-tdep.c (spu_frame_align): New function.
6084 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6086 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6088 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6089 (spu_software_single_step): Likewise.
6090 (spu_read_pc, spu_write_pc): New functions.
6091 (spu_gdbarch_init): Install them.
6093 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6095 * cli/cli-dump.c (struct callback_data): load_offset needs to
6096 have signed long type.
6098 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6100 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6101 Revert the previous change that had some unexpected side-effects
6103 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6104 function to get the address of the calling instruction.
6106 2007-03-07 Denis Pilat <denis.pilat@st.com>
6108 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6109 get_selected_frame by deprecated_safe_get_selected_frame.
6111 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6113 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6114 "gdb_string.h". Don't include "nbsd-tdep.h".
6115 (SIZEOF_STRUCT_REG): Remove.
6116 (SHNBSD_SIZEOF_GREGS): New.
6117 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6118 (shnbsd_regset_from_core_section): New functions.
6119 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6120 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6121 shnbsd_supply_gregset, shnbsd_collect_gregset.
6122 (shnbsd_gregset): New variable.
6123 (shnbsd_init_abi): Set regset_from_core_section.
6124 (GDB_OSABI_NETBSD_CORE): New define.
6125 (shnbsd_core_osabi_sniffer): New function.
6126 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6127 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6128 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6130 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6132 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6134 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6135 length of the types referenced by the new type CV ring.
6137 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6139 * frame.c (frame_pop, frame_observer_target_changed): Call
6141 (flush_cached_frames): Rename to reinit_frame_cache and delete
6143 * frame.h (flush_cached_frames): Delete prototype and update comment.
6145 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6146 reinit_frame_cache instead of flush_cached_frames. Do not call
6147 select_frame after reinit_frame_cache.
6148 * corelow.c (core_open): Likewise.
6149 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6150 * infrun.c (prepare_to_proceed, context_switch)
6151 (handle_inferior_event): Likewise.
6152 * linux-fork.c (fork_load_infrun_state): Likewise.
6153 * ocd.c (ocd_start_remote): Likewise.
6154 * remote-e7000.c (e7000_start_remote): Likewise.
6155 * remote-mips.c (device): Likewise.
6156 * thread.c (switch_to_thread): Likewise.
6157 * tracepoint.c (finish_tfind_command): Likewise.
6158 * gdbarch.c: Regenerated.
6160 2007-02-28 Jerome Guitton <guitton@adacore.com>
6161 Joel Brobecker <brobecker@adacore.com>
6163 * gdbtypes.c (check_typedef): Do not replace stub type if
6164 the resolved type is not defined in the same objfile.
6166 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6168 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6170 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6172 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6173 symbol for Ada units when the symbol is defined using 't' rather
6174 than 'Tt' as symbol descriptor.
6176 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6178 * config/mips/tm-nbsd.h: Delete file.
6179 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6180 * config/sh/tm-nbsd.h: Delete file.
6181 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6183 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6185 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6186 unused WRONG_PARAM value since it was recently deleted.
6188 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6190 * varobj.c (varobj_update): Free temporary vectors.
6192 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6194 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6195 * config/powerpc/tm-linux.h: Delete file.
6196 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6197 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6198 (TEXT_SEGMENT_BASE): Do not redefine.
6199 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6200 from config/rs6000/tm-rs6000.h.
6201 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6202 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6203 (TEXT_SEGMENT_BASE): Remove.
6204 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6205 (rs6000_in_solib_return_trampoline): Remove.
6206 (SKIP_TRAMPOLINE_CODE): Remove.
6207 (rs6000_skip_trampoline_code): Remove.
6208 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6209 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6210 (FP0_REGNUM): Remove.
6211 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6212 (rs6000_set_host_arch_hook): Remove.
6213 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6214 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6215 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6216 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6217 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6218 * rs6000-nat.c: Include "rs6000-tdep.h".
6219 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6220 (set_host_arch): Rename to ...
6221 (rs6000_create_inferior): ... this. Make public.
6222 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6223 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6224 (rs6000_create_inferior): Remove.
6225 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6226 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6227 set_gdbarch_in_solib_return_trampoline, and
6228 set_gdbarch_skip_trampoline_code.
6229 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6230 from config/rs6000/tm-rs6000.h.
6232 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6234 * buildsym.c (record_producer): Do nothing if no producer is provided.
6236 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6238 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6239 to check changelist is non-NULL. Call error if the frontend tries
6240 to update a non-root variable.
6242 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6244 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6246 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6247 (dwarf2_frame_sniffer): Update.
6248 (dwarf2_signal_frame_this_id): New function.
6249 (dwarf2_signal_frame_unwind): Use it.
6250 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6251 * frame.c (frame_func_unwind): Add this_type argument.
6252 (get_frame_func): Update.
6253 (frame_unwind_address_in_block): Add this_type argument and check it.
6255 (get_frame_address_in_block): Update.
6256 * frame.h (enum frame_type): Move higher in the file.
6257 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6260 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6261 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6262 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6263 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6264 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6265 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6266 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6267 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6268 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6269 frame_func_unwind and frame_unwind_address_in_block to specify
6270 the frame type. Use frame_unwind_address_in_block instead of
6271 frame_pc_unwind in sniffers.
6273 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6275 * frame.c (deprecated_selected_frame): Rename to...
6276 (selected_frame): ...this. Make static.
6277 (get_selected_frame, select_frame): Update.
6278 * frame.h (deprected_select_frame): Delete.
6279 (deprecated_safe_get_selected_frame): Update comments.
6281 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6282 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6283 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6284 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6285 tui/tui.c: Replace references to deprecated_selected_frame.
6287 2007-02-27 Fred Fish <fnf@specifix.com>
6289 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6290 directly decrement the stack pointer, accumulate their operand into
6291 the stack offset, and mark the function as not being frameless.
6293 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6295 * arch-utils.c (selected_byte_order): New.
6296 * arch-utils.h (selected_byte_order): New prototype.
6297 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6299 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6301 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6302 (default_symfile_offsets): Check VMA here. Update section VMAs.
6304 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6306 * remote.c (init_remote_state): Add special handling for placeholder
6309 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6311 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6312 (filenames_h): New variable.
6313 (clean): Clean up xml-builtin.c and stamp-xml.
6314 (arm-linux-nat.o): Update.
6315 * config/arm/linux.mh (TDEP_XML): Define.
6316 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6317 (arm_linux_has_wmmx_registers): New.
6318 (GET_THREAD_ID): Fix typo.
6319 (IWMMXT_REGS_SIZE): Define.
6320 (fetch_wmmx_regs, store_wmmx_regs): New.
6321 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6322 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6323 (super_xfer_partial, arm_linux_xfer_partial): New.
6324 (_initialize_arm_linux_nat): Use them.
6325 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6326 (xml_builtin_xfer_partial): New function.
6327 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6328 * NEWS: Update mention of iWMMXt support.
6330 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6332 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6333 if there are no FPA registers.
6334 (arm_dwarf_reg_to_regnum): New function.
6335 (arm_register_type, arm_register_name): Return minimal values for
6336 unsupported registers.
6337 (arm_register_sim_regno): Handle iWMMXt registers.
6338 (arm_gdbarch_init): Record missing FPA registers if indicated by
6339 a target description. Recognize iWMMXt registers. Only register
6340 "info float" for FPA. Use ARM_NUM_REGS. Register
6341 arm_dwarf_reg_to_regnum.
6342 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6344 (struct gdbarch_tdep): Add have_fpa_registers.
6345 * features/xscale-iwmmxt.xml: Update capitalization.
6346 * regformats/arm-with-iwmmxt.dat: Regenerated.
6348 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6350 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6352 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6354 * MAINTAINERS (mep): New target.
6356 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6358 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6360 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6361 (mep-tdep.o): New rule.
6362 * configure.tgt (mep-*-*): New target.
6363 * mep-tdep.c: New file.
6364 * config/mep/mep.mt: New file.
6366 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6368 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6369 BREAKPOINT_HIT and STOP_UNKNOWN.
6371 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6373 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6375 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6377 * gdb_expat.h (XMLCALL): Define if not already defined.
6379 2007-02-20 Andreas Schwab <schwab@suse.de>
6381 * Makefile.in (symfile.o): Update dependencies.
6383 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6385 * MAINTAINERS: Disable -Werror for cris simulator. Build
6386 sparc64-solaris2.10 instead of the broken sparc-elf.
6387 * solib-frv.c: Include "solib.h".
6388 * Makefile.in (solib-frv.o): Update.
6389 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6390 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6391 (xtensa_frame_this_id, xtensa_frame_prev_register)
6392 (xtensa_push_dummy_call): Use %p.
6394 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6396 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6397 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6398 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6399 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6400 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6401 (sparc-linux-tdep.o): Update.
6403 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6405 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6406 (xtensa_mask_t): Change mask field to be a separate array.
6407 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6408 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6409 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6410 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6411 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6412 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6413 (mask14, mask15): Rename to
6414 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6415 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6416 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6417 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6418 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6419 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6420 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6421 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6422 (xtensa_submask14, xtensa_submask15): New.
6423 (rmap): Follow strict aliasing rules doing static initialization.
6425 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6427 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6428 handling from here...
6429 (tdesc_register_type): ...to here.
6430 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6431 * features/arm-core.xml: Use code_ptr and data_ptr.
6433 2007-02-13 Denis Pilat <denis.pilat@st.com>
6435 * varobj.h (enum varobj_update_error): New enum.
6436 * varobj.c (struct varobj_root): Add is_valid member.
6437 (varobj_get_type): Check for invalid varobj.
6438 (varobj_get_attributes): Likewise.
6439 (variable_editable):Likewise.
6440 (varobj_update): Likewise. Use varobj_update_error.
6441 (new_root_variable): Set root varobj as valid by default.
6442 (varobj_invalidate): New function.
6443 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6444 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6445 Use varobj_update_error.
6447 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6450 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6451 Pascal language marker.
6452 * dwarf2read.c (set_cu_language): Likewise.
6454 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6456 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6457 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6458 instead of target_terminal_init since inferior_ptid isn't set yet.
6460 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6462 * MAINTAINERS (Write After Approval): Add myself.
6464 2007-02-09 Fred Fish <fnf@specifix.com>
6466 Based on work by Apple Computer, Inc.
6467 * event-top.c (async_request_quit): Call quit() whenever either
6468 quit_flag is set or immediate_quit is set.
6470 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6472 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6473 type to a pointer to const struct block.
6474 (ada_lookup_symbol_list): Don't cast away constness when calling
6475 remove_out_of_scope_renamings.
6477 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6479 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6480 address of 'filename'; it is always non null.
6482 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6484 * exec.c (add_to_section_table): Do not discard empty sections.
6486 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6488 * features/Makefile, features/arm-with-iwmmxt.xml,
6489 features/gdbserver-regs.xsl, features/number-regs.xsl,
6490 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6491 * regformats/arm-with-iwmmxt.dat: Generate.
6492 * NEWS: Mention iWMMXt.
6494 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6496 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6497 (xml-tdesc.o): Update.
6498 * xml-support.c: Add a comment.
6499 (gdb_xml_enums_boolean): New variable.
6500 (gdb_xml_parse_attr_enum): Use strcasecmp.
6501 * xml-support.h (gdb_xml_enums_boolean): Declare.
6502 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6503 next_regnum, and current_union.
6504 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6505 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6506 (field_attributes, union_children, reg_attributes, union_attributes)
6507 (vector_attributes, feature_attributes, feature_children): New.
6508 (target_children): Make static. Add <feature>.
6509 (tdesc_elements): Make static.
6510 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6511 (struct tdesc_feature, tdesc_feature_p): New types.
6512 (struct target_desc): Add features member.
6513 (struct tdesc_arch_data, tdesc_data): New.
6514 (target_find_description): Clarify error message. Warn about
6515 ignored register descriptions.
6516 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6517 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6518 (tdesc_data_cleanup, tdesc_numbered_register)
6519 (tdesc_numbered_register_choices, tdesc_find_register)
6520 (tdesc_register_name, tdesc_register_type)
6521 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6522 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6523 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6524 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6525 (tdesc_create_feature, tdesc_record_type): New.
6526 (free_target_description): Free features.
6527 (_initialize_target_descriptions): Initialize tdesc_data.
6528 * arch-utils.c (default_remote_register_number): New.
6529 * arch-utils.h (default_remote_register_number): New prototype.
6530 * target-descriptions.h (set_tdesc_pseudo_register_name)
6531 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6532 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6533 (tdesc_numbered_register, tdesc_numbered_register_choices)
6534 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6535 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6536 (tdesc_create_reg): Declare.
6537 * gdbarch.sh (remote_register_number): New entry.
6538 * gdbarch.c, gdbarch.h: Regenerate.
6539 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6540 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6542 * arm-tdep.c (arm_register_aliases): New.
6543 (arm_register_name_strings): Rename to...
6544 (arm_register_names): ...this. Make const. Delete the old version.
6545 (current_option, arm_register_byte): Delete.
6546 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6547 (value_of_arm_user_reg): New.
6548 (arm_gdbarch_init): Verify any described registers. Call
6549 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6550 for standard register names.
6551 (_initialize_arm_tdep): Do not adjust arm_register_names.
6552 * user-regs.c (struct user_reg): Add baton member.
6553 (append_user_reg, user_reg_add_builtin, user_regs_init)
6554 (user_reg_add, value_of_user_reg): Use a baton for user
6556 * std-regs.c: Update.
6557 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6558 (user_reg_add): Add baton argument.
6559 * NEWS: Mention target description register support.
6560 * features/arm-core.xml, features/arm-fpa.xml: New.
6561 * eval.c (evaluate_subexp_standard): Allow ptype $register
6562 when the program is not running.
6564 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6566 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6568 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6570 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6571 info->disassembler_options to "any".
6573 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6575 * varobj.c (install_new_value): Only call value_get_print_value
6578 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6580 Reported by timeless@gmail.com:
6581 * gdb/target.c (target_flash_erase): Do not return void value.
6582 (target_flash_done): Likewise.
6583 * gdb/cli/cli-cmds.c (source_command): Likewise.
6585 2007-02-08 Fred Fish <fnf@specifix.com>
6587 Based on work by Apple Computer, Inc.
6588 * event-top.c (handle_sigint): Set quit_flag.
6589 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6590 if quit_flag has already been reset.
6592 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6594 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6597 2007-02-08 Fred Fish <fnf@specifix.com>
6599 * defs.h (request_quit): Remove declaration.
6600 * utils.c (request_quit): Remove definition.
6602 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6603 Jan Kratochvil <jan.kratochvil@redhat.com>
6604 Daniel Jacobowitz <dan@codesourcery.com>
6606 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6607 (skip_prologue): Allow bl->blrl used by PIC code.
6609 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6610 Daniel Jacobowitz <dan@codesourcery.com>
6612 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6613 initialize tmp_obstack.
6614 * p-valprint.c (pascal_object_print_value_fields)
6615 (pascal_object_print_value): Likewise.
6617 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6619 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6621 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6623 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6624 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6626 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6628 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6630 (tdesc_parse_xml): Cache expanded descriptions.
6632 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6634 * Makefile.in (XMLFILES): New.
6635 (COMMON_OBS): Add xml-builtin.o.
6636 (xml-builtin.c, stamp-xml): New rules.
6637 (xml-tdesc.o): Update.
6638 * features/feature_to_c.sh: New file.
6639 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6640 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6641 (gdb_xml_start_element): Initialize scope after possibly reallocating
6642 scopes. Move cleanup later. Handle the XInclude description
6644 (gdb_xml_end_element): Only parse the body if there is a current element.
6645 Call XML_DefaultCurrent if there is no element.
6646 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6647 (struct xinclude_parsing_data, xinclude_start_include)
6648 (xinclude_end_include, xml_xinclude_default)
6649 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6650 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6651 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6652 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6653 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6654 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6655 XInclude directives. Use the compiled in DTD.
6656 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6657 directory name. Do not warn here.
6658 (file_read_description_xml): Update call. Warn here instead. Pass
6660 (fetch_available_features_from_target): New.
6661 (target_read_description_xml): Use it.
6662 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6664 * features/xinclude.dtd: New file.
6666 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6668 * linux-thread-db.c (check_for_thread_db): Return early if we have
6669 no libthread_db support.
6671 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6673 * mi/mi-parse.h: Include <sys/time.h>.
6675 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6677 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6678 instead of print_variable_value to print values.
6680 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6682 * mi/mi-main.c: Numerous formatting changes.
6683 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6684 removed in my previous change.
6686 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6688 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6689 Use 1000000L instead of 1000000.
6691 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6693 Based on work by Apple Computer, Inc.
6695 * configure.ac: Test for sys/resource.h and getrusage.
6696 * configure, config.in: Regenerate.
6698 * mi/mi-main.c: Include <sys/resource.h> if present.
6699 (rusage): Declare if HAVE_GETRUSAGE.
6700 (current_command_ts, do_timings): New static variables.
6701 (timestamp, print_diff_now, print_diff, timeval_diff):
6702 New static timing functions.
6703 (mi_cmd_enable_timings): New function for new MI command.
6704 (captured_mi_execute_command, mi_execute_async_cli_command):
6705 Call timing functions.
6707 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6710 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6712 * mi/mi-parse.h: (mi_timestamp): New structure.
6713 (mi_parse): Add mi_timestamp* member.
6715 2007-02-02 Denis Pilat <denis.pilat@st.com>
6717 * thread.c (make_cleanup_restore_current_thread): New function.
6718 (info_threads_command): Use of make_cleanup_restore_current_thread
6719 to restore the current thread and the selected frame.
6720 (restore_selected_frame): New function.
6721 (struct current_thread_cleanup): Add frame_id field.
6722 (do_restore_current_thread_cleanup): Add restoring of the selected
6724 (make_cleanup_restore_current_thread): Likewise.
6725 (thread_apply_all_command): backup the selected frame while
6726 entering the function and restore it at exit.
6727 (thread_apply_command): Likewise.
6729 2007-02-02 Denis Pilat <denis.pilat@st.com>
6731 * MAINTAINERS (Write After Approval): Add myself to the list.
6733 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6735 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6736 (m32r_store_register): Ditto.
6738 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6740 * ser-mingw.c (pipe_windows_open)
6741 (pipe_windows_read, pipe_windows_write): Declare
6742 variables at the top of the function.
6744 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6746 * doublest.c (floatformat_from_length): Use the right element from
6747 gdbarch floatformats.
6748 (floatformat_from_type, extract_typed_floating)
6749 (store_typed_floating): Likewise.
6750 * doublest.h: Remove declarations for undefined floatformat arrays.
6751 * gdbarch.sh (float_format, double_format, long_double_format): Change
6753 (pformat): Update for pairs.
6754 * gdbarch.c, gdbarch.h: Regenerated.
6755 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6756 (floatformats_ieee_double_littlebyte_bigword)
6757 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6758 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6759 (floatformats_vax_d): New variables.
6760 (builtin_type_ieee_single, builtin_type_ieee_double)
6761 (builtin_type_arm_ext, builtin_type_ia64_spill)
6762 (builtin_type_ia64_quad): Replace arrays with individual types.
6763 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6764 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6765 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6766 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6767 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6768 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6769 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6770 unused and endian-specific types.
6771 (recursive_dump_type): Update for floatformat pairs.
6772 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6773 (build_gdbtypes): Use build_flt.
6774 (_initialize_gdbtypes): Update set of initialized types.
6775 * gdbtypes.h: Update declarations to match gdbtypes.c.
6776 (struct main_type): Store a pointer to two floatformats.
6777 * arch-utils.c (default_float_format, default_double_format): Delete.
6778 * arch-utils.h (default_float_format, default_double_format): Delete.
6780 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6781 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6782 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6783 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6784 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6786 2007-01-29 Joel Brobecker <brobecker@adacore.com>
6788 * target.c (maintenance_print_target_stack): New function.
6789 (initialize_targets): Add new "maintenance print target-stack"
6792 2007-01-28 Mark Kettenis <kettenis@gnu.org>
6794 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6796 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6798 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6799 (struct dwarf2_loclist_baton): Likewise.
6801 2007-01-27 Eli Zaretskii <eliz@gnu.org>
6803 * cli/cli-script.c: Include breakpoint.h.
6804 (build_command_line): Require arguments only for if and while
6806 (get_command_line, execute_user_command, execute_control_command):
6807 Fix wording of warning messages.
6808 (print_command_lines): Print breakpoint commands.
6809 (execute_control_command): Call commands_from_control_command to
6810 handle the `commands' command inside a body of a flow-control
6812 (read_next_line): Recognize the `commands' command and build a
6813 command line structure for it.
6814 (recurse_read_control_structure, read_command_lines): Handle
6815 `commands' similarly to `if' and `while'.
6817 * breakpoint.c (get_number_trailer): Document the special meaning
6818 of NULL as the first argument PP.
6819 (commands_from_control_command): New function.
6821 * breakpoint.h (commands_from_control_command): Add prototype.
6823 * defs.h (commands_control): New enumerated value for enum
6824 command_control_type.
6826 2007-01-26 Joel Brobecker <brobecker@adacore.com>
6828 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6829 (ada_exception_sal): Update accordingly.
6831 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6833 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6834 * NEWS: Describe CHAR array vs. string identifcation rules.
6836 2007-01-25 Paul Brook <paul@codesourcery.com>
6838 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6840 2007-01-24 Jim Blandy <jimb@codesourcery.com>
6842 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6843 expression is empty, bother to return the 'optimized out' value we
6844 construct. (Thanks to Carl Burch.)
6846 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6848 * varobj.c (c_value_of_root, c_value_of_child)
6849 (cplus_describe_child): Don't call release_value.
6851 2007-01-24 Thiemo Seufer <ths@mips.com>
6853 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6856 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6858 Refactor getting children name, value and type access
6860 * varobj.c (get_type_deref): Remove.
6861 (adjust_value_for_child_access): New.
6862 (c_number_of_children): Use the above.
6863 (c_describe_child): Likewise.
6864 (enum accessibility): New.
6865 (match_accessibility): New function.
6866 (cplus_describe_child): New function.
6867 (cplus_name_of_child, cplus_value_of_child)
6868 (cplus_type_of_child): Reimplement in terms
6869 of cplus_describe_child.
6870 (cplus_number_of_children): Use
6871 adjust_value_for_child_access.
6873 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6875 Fix computation of the 'editable' attribute and
6876 value changeability for for references.
6877 * varobj.c (get_value_type): New function.
6878 (c_variable_editable): Use get_value_type.
6879 (varobj_value_is_changeable): Likewise.
6881 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6883 * source.c (find_and_open_source): Try rewriting the source
6884 path inside filename if dirname is NULL.
6886 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6888 * dwarf2read.c (add_partial_symbol): Create an extra partial
6889 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6890 (new_symbol): Likewise for symbols.
6892 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
6894 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6896 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
6898 * value.c (value_primitive_field): Copy the full 'location'
6899 contents, instead of assuming that copying ADDRESS will
6900 bring over everything in the union. Remove obsolete comment.
6902 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
6904 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6905 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6906 (m32c_m16c_pointer_to_address): Separate code from declarations.
6908 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
6910 * target.c (update_current_target): Correct typo.
6912 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
6914 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6917 2007-01-11 Andrew Cagney <cagney@redhat.com>
6918 Daniel Jacobowitz <dan@codesourcery.com>
6919 Jan Kratochvil <jan.kratochvil@redhat.com>
6921 * dwarf2-frame.c (execute_cfa_program): New support of
6922 `DW_CFA_GNU_negative_offset_extended'.
6924 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6926 * NEWS: Mention flash support for "load" and new remote packets.
6928 2007-01-21 Markus Deuling <deuling@de.ibm.com>
6930 * breakpoint.c (delete_command): Skip redundant loop iterations.
6932 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6934 * gdbarch.sh (register_type): Update comment.
6935 * gdbarch.h: Regenerated.
6936 * arch-utils.c (generic_register_size): Call register_type.
6937 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6938 * m32c-tdep.c (check_for_saved): Likewise.
6939 * mips-tdep.c (mips_print_register, print_gp_register_row)
6940 (mips_print_registers_info): Likewise.
6941 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6943 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6944 (sh64_do_register, sh64_print_register)
6945 (sh64_media_print_registers_info): Likewise.
6946 * tui/tui-regs.c (tui_register_format): Likewise.
6948 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6950 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6952 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6953 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6954 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6955 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6956 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6957 (make_symbol_completion_list): Likewise.
6959 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6960 Daniel Jacobowitz <dan@codesourcery.com>
6962 * buildsym.c (end_symtab): Use preallocated symtab if available.
6963 Fill in SYMBOL_SYMTAB.
6964 * buildsym.h (struct subfile): Add symtab member.
6965 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6966 (struct file_entry): Add symtab.
6967 (free_cu_line_header): New function.
6968 (read_file_scope): Use it. Save line_header in the cu. Process
6970 (add_file_name): Initialize new symtab member.
6971 (dwarf_decode_lines): Create symtabs for included files.
6972 (new_symbol): Set SYMBOL_SYMTAB.
6973 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6974 (search_symbols): Likewise.
6975 * symtab.h (struct symbol): Add symtab member.
6976 (SYMBOL_SYMTAB): Define.
6978 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6980 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6982 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6984 * arch-utils.c (show_endian): Correct reversed condition.
6986 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6988 * MAINTAINERS (Write After Approval): Add myself.
6990 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
6991 Vladimir Prus <vladimir@codesourcery.com>
6993 Fix 'selected frame' varobjs.
6994 * varobj.c (struct varobj): Remove the error field.
6995 (varobj_set_value): Don't check var->error.
6996 (install_new_value): Don't set var->error.
6997 (varobj_update): Always pass the new value
6998 of the root via install_new_value.
6999 (create_child): Don't set error field.
7000 (new_variable): Likewise.
7001 (c_value_of_root): Always reevaluate the value
7002 of selected frame varobjs in the selected frame.
7003 Don't call reinit_frame_cache.
7005 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7007 * source.c (_initialize_source): Improve the help text of
7008 the substitute-path commands.
7010 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7012 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7013 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7014 (frv_skip_prologue): Remove prototypes.
7015 (frv_adjust_breakpoint_address): Renamed from
7016 frv_gdbarch_adjust_breakpoint_address.
7017 (frv_gdbarch_init): Adjust.
7019 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7021 * gdbarch.sh (deprecated_extract_return_value)
7022 (deprecated_store_return_value): Remove.
7023 (extract_return_value, store_return_value): Remove default values.
7024 * gdbarch.c, gdbarch.h: Regenerate.
7025 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7026 (legacy_store_return_value): Remove.
7027 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7030 * mi/mi-main.c: Remove obsolete comment.
7032 * regcache.c, regcache.h (deprecated_register_bytes)
7033 (deprecated_read_register_bytes)
7034 (deprecated_write_register_bytes): Remove.
7036 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7037 Don't forget to move destination pointer.
7039 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7041 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7043 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7045 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7046 past entry function with recent newlib.
7048 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7050 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7051 introduction. Specify -var-update more exactly.
7053 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7055 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7057 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7059 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7060 the Global Maintainers' invitation to be a global maintainer.
7062 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7064 * infrun.c (singlestep_pc): New variable.
7065 (resume): Set singlestep_pc.
7066 (context_switch): Add a debugging message. Flush the frame cache.
7067 (handle_inferior_event): Add debugging messages. Handle thread
7068 hops when a software single step has completed. Let context_switch
7069 handle flushing the frame cache.
7071 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7073 * NEWS: Mention target descriptions, "set tdesc filename",
7074 "unset tdesc filename", "show tdesc filename", and
7075 qXfer:features:read.
7076 * arch-utils.c (choose_architecture_for_target): New function.
7077 (gdbarch_info_fill): Call it.
7078 * target-descriptions.c (struct property): Make members non-const.
7079 (struct target_desc): Add arch member.
7080 (target_description_filename): New variable.
7081 (target_find_description): Try via XML first.
7082 (tdesc_architecture): New.
7083 (free_target_description, make_cleanup_free_target_description): New.
7084 (set_tdesc_property): Call xstrdup.
7085 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7086 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7087 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7088 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7089 * target-descriptions.h (tdesc_architecture)
7090 (make_cleanup_free_target_description, set_tdesc_architecture): New
7092 * Makefile.in (SFILES): Add xml-tdesc.c.
7093 (COMMON_OBS): Add xml-tdesc.o.
7094 (target-descriptions.o): Update.
7095 (xml-tdesc.o): New rule.
7096 * xml-tdesc.c, xml-tdesc.h: New files.
7097 * remote.c (PACKET_qXfer_features): New enum.
7098 (remote_protocol_features): Add qXfer:features:read.
7099 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7100 (_initialize_remote): Register qXfer:features:read.
7101 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7102 * features/gdb-target.dtd: New file.
7104 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7106 * copyright.sh: Clarify error.
7108 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7110 * symtab.c (matching_bfd_sections): Fix VMA matching for
7113 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7115 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7118 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7120 Updated copyright notices for most files.
7122 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7124 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7126 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7128 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7130 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7132 * configure, config.in: Regenerate.
7133 * defs.h (debug_file_directory): Declare.
7134 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7135 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7136 relocate it if DEBUGDIR_RELOCATABLE.
7137 * symfile.c (debug_file_directory): Make non-static.
7138 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7139 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7140 (_initialize_symfile): Don't initialize debug_file_directory here.
7142 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7144 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7147 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7149 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7150 frame_unwind_register to recurse.
7151 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7152 (alpha_heuristic_frame_prev_register): Likewise.
7153 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7154 * m32c-tdep.c (m32c_prev_register): Likewise.
7155 * frame.c (frame_register_unwind_location): Remove FIXME.
7157 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7158 Eli Zaretskii <eliz@gnu.org>
7160 * copyright.sh: New file.
7162 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7164 * configure.ac: Check for XML_StopParser.
7165 * xml-support.c (gdb_xml_body_text): Check for an error.
7166 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7167 (gdb_xml_end_element_wrapper): Likewise.
7168 * config.in, configure: Regenerated.
7170 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7172 * varobj.c (install_new_value): Always update print_value.
7173 (value_get_print_value): Immediately return NULL for missing
7176 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7178 * configure.ac: Tighten pattern for extracting value of
7179 DEPRECATED_TM_FILE from the target makefile fragment.
7180 * configure: Regenerated.
7182 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7184 * linux-nat.c (struct simple_pid_list): Add status.
7185 (add_to_pid_list): Record the PID's status.
7186 (linux_record_stopped_pid): Likewise. Make static.
7187 (pull_pid_from_list): Return the saved status.
7188 (linux_nat_handle_extended): Deleted.
7189 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7190 Make static. Handle non-SIGSTOP for a new thread's first signal.
7191 (flush_callback): Handle unexpected pending signals.
7192 (linux_nat_wait): Update calls to changed functions.
7193 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7194 Remove prototypes for newly static functions.
7196 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7198 * gdbarch.sh (value_from_register): New gdbarch function.
7199 * gdbarch.c, gdbarch.h: Regenerate.
7200 * findvar.c (default_value_from_register): New function.
7201 (value_from_register): Use gdbarch_value_from_register.
7202 * value.h (default_value_from_register): Declare.
7203 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7204 spu_value_to_register): Remove.
7205 (spu_value_from_register): New function.
7206 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7207 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7208 Call set_gdbarch_value_from_register.
7209 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7210 s390_value_to_register): Remove.
7211 (s390_value_from_register): New function.
7212 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7213 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7214 Call set_gdbarch_value_from_register.
7216 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7218 * NEWS: Add "set sysroot" and "show sysroot".
7219 * solib.c (solib_absolute_prefix): Delete. Replace
7220 all uses with gdb_sysroot.
7221 (_initialize_solib): Add "set sysroot" and "show sysroot".
7222 Make "solib-absolute-prefix" an alias to it.
7224 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7226 * frame.c (get_frame_register_bytes): New function.
7227 (put_frame_register_bytes): Likewise.
7228 * frame.h (get_frame_register_bytes): Declare.
7229 (put_frame_register_bytes): Likewise.
7230 * findvar.c (value_from_register): Always construct lval_register
7231 values. Use get_frame_register_bytes.
7232 * valops.c (value_assign): Use get_frame_register_bytes and
7233 put_frame_register_bytes.
7235 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7237 * MAINTAINERS: Update Stan Shebs' email address.
7239 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7241 * ada-lang.c (is_known_support_routine): Improve the implementation.
7243 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7245 * ada-lang.c: Add include of source.h.
7246 (is_known_support_routine): Improve the check verifying that the file
7247 associated to this frame exists.
7248 * Makefile.in (ada-lang.o): Add dependency on source.h.
7250 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7252 * ax-general.c (ax_const_l): Select proper opcode for the given
7255 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7257 * varobj.c (c_value_of_root): Don't select frame if variable
7258 object is out of scope.
7260 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7262 * varobj.c (struct varobj): New member print_value.
7263 (install_new_value): Compare last printed value with current one
7264 instead of contents.
7265 (new_variable): Initialize var->print_value to NULL.
7266 (free_variable): Free var->print_value.
7267 (value_get_print_value): New function derived from
7268 c_value_of_variable.
7269 (c_value_of_variable): Use value_get_print_value.
7271 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7273 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7275 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7277 * NEWS: Add entries for new catch commands.
7279 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7281 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7282 (add_partial_symbol): Correct identification of external references.
7283 (process_structure_scope): Likewise.
7284 (read_partial_die): Handle DW_AT_byte_size attribute.
7286 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7288 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7290 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7292 * varobj.c (get_type_deref): Fix variable objects for references to
7295 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7297 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7300 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7302 * memory-map.c (struct_memory_map_parsing_data): Remove most
7303 members. Make property_name an array.
7304 (free_memory_map_parsing_data, memory_map_start_element)
7305 (memory_map_end_element, memory_map_character_data): Delete.
7306 (memory_map_start_memory, memory_map_end_memory)
7307 (memory_map_start_property, memory_map_end_property): New functions.
7308 (property_attributes, memory_children, memory_type_enum)
7309 (memory_attributes, memory_map_children, memory_map_elements): New.
7310 (parse_memory_map): Rewrite.
7311 * xml-support.c (debug_xml): New.
7312 (xml_get_required_attribute, xml_get_integer_attribute)
7313 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7315 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7316 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7317 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7318 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7319 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7320 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7321 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7323 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7324 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7325 (enum gdb_xml_element_flag, struct gdb_xml_element)
7326 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7327 (struct gdb_xml_enum): New.
7328 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7329 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7330 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7331 (xml_get_required_attribute, xml_get_integer_attribute)
7332 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7333 * Makefile.in (xml_support_h, xml-support.o): Update.
7335 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7337 * Makefile.in (eval.o): Update dependencies.
7338 * eval.c: Include "ui-out.h" and "exceptions.h".
7339 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7340 Use value_zero if an error occurs when avoiding side effects.
7341 * varobj.c (c_value_of_root): Initialize new_val.
7343 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7345 * varobj.c (varobj_list_children): Stop if the number of children is
7347 (c_number_of_children):
7349 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7351 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7352 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7353 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7354 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7355 sizeof, instead of hardcoded constants.
7357 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7359 * CONTRIBUTE: Use sourceware.org.
7361 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7363 * buildsym.c (start_subfile): Handle producer.
7364 (record_producer): New function.
7365 * buildsym.h (struct subfile): Include producer.
7366 (record_producer): New prototype.
7367 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7368 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7369 armcc_cfa_offsets_reversed.
7370 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7371 (dwarf2_frame_find_quirks): New function.
7372 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7373 (decode_frame_entry_1): Record the CIE version. Record the
7374 augmentation. Skip armcc augmentations.
7375 * dwarf2read.c (read_file_scope): Save the producer.
7376 * symtab.h (struct symtab): Rename unused version member to
7379 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7381 * configure.ac (build_warnings): Use -Wall and
7382 -Wdeclaration-after-statement.
7383 * configure: Regenerated.
7385 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7387 Simplify access to variours properties of child
7388 variable objects in C.
7389 * varobj.c (value_struct_element_index): New function.
7390 (c_describe_child): New function.
7391 (c_name_of_child, c_value_of_child)
7392 (c_type_of_child): Rewrite to use c_describe_child.
7394 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7397 * varobj.c: Include "vec.h".
7398 (varobj_p): New typedef, declare vector of those.
7399 (struct varobj): Use vector for the 'children' member.
7400 (child_exists): Remove.
7401 (save_child_in_parent): Remove.
7402 (remove_child_from_parent): Remove.
7403 (struct varobj_child): Remove.
7404 (struct vstack): Remove.
7405 (vpush, vpop): Remove.
7406 (varobj_list_children): Adjust to work work vector.
7407 (varobj_update): Likewise. Use vectors for
7408 working stack and result.
7409 (delete_variable_1): Likewise.
7410 * Makefile.in (varobj.o): Update dependencies.
7412 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7414 Port from Apple's version.
7416 * varobj.c (type_changeable): Rename to...
7417 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7418 (is_root_p): New function. Use it everywhere.
7420 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7422 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7425 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7427 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7429 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7431 * hpread.c (hpread_type_lookup): Fix compilation failure.
7433 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7435 * NEWS: New port to S+core.
7436 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7439 * Makefile.in: Add dependencies for S+core files.
7440 * configure.tgt (score*, score-*-*): Add S+core target.
7441 * config/score/embed.mt: New file.
7442 * score-tdep.c: New file.
7443 * score-tdep.h: New file.
7445 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7447 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7448 the appropriate type rather than a bogus void type.
7450 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7452 * ada-lang.h (ada_find_printable_frame): Remove.
7453 (ada_exception_catchpoint_p, ada_decode_exception_location)
7454 (ada_decode_assert_location): Add declaration.
7455 * ada-lang.c: Add include of annotate.h and valprint.h.
7456 (exception_catchpoint_kind): New enum.
7457 (function_name_from_pc, is_known_support_routine)
7458 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7459 (ada_exception_name_addr_1, ada_exception_name_addr)
7460 (print_it_exception, print_one_exception, print_mention_exception)
7461 (print_it_catch_exception, print_one_catch_exception)
7462 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7463 (print_it_catch_exception_unhandled)
7464 (print_one_catch_exception_unhandled)
7465 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7466 (print_one_catch_assert, print_mention_catch_assert)
7467 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7468 (ada_get_next_arg, catch_ada_exception_command_split)
7469 (ada_exception_sym_name, ada_exception_sym_name)
7470 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7471 (ada_parse_catchpoint_condition, ada_exception_sal)
7472 (ada_decode_exception_location)
7473 (ada_decode_assert_location): New function.
7474 (catch_exception_unhandled_breakpoint_ops): New global variable.
7475 (catch_assert_breakpoint_ops): New global variable.
7476 * breakpoint.c: Add include of ada-lang.h.
7477 (print_one_breakpoint): Do not print the condition for Ada
7478 exception catchpoints.
7479 (create_ada_exception_breakpoint): New function.
7480 (catch_ada_exception_command, catch_assert_command): New function.
7481 (catch_command_1): Add support for the new "catch exception" and
7482 "catch assert" commands.
7483 (_initialize_breakpoint): Add help description for the new catch
7485 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7487 (breakpoint.o): Add dependency on ada-lang.h.
7489 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7491 * coffread.c (cs_to_section): If bfd_section is found, always
7492 return its section index.
7493 (coff_symtab_read): Determine the minimal_symbol_type using the
7496 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7497 Daniel Jacobowitz <dan@codesourcery.com>
7499 * Makefile.in (top.o): Update.
7500 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7501 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7502 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7504 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7506 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7508 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7509 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7511 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7513 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7514 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7515 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7516 greater than or equal to zero.
7517 * m2-typeprint.c (m2_array): Likewise.
7518 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7519 * gdbtypes.c (copy_type_recursive): Correct == typo.
7520 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7521 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7523 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7524 (default_macro_scope): Remove unused variable.
7525 * prologue-value.h (pv_area_find_reg): Don't name an argument
7527 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7528 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7530 (cleanup_sigint_signal_handler): Remove casts.
7531 * valprint.c (val_print): Use a volatile local for the modified
7533 * varobj.c (languages): Remove extra array dimension.
7534 (varobj_create): Correct access to languages array.
7535 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7537 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7538 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7539 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7540 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7541 (mi_cmd_data_write_memory): Likewise.
7542 * signals/signals.c (target_signal_to_string): Cast to int before
7544 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7547 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7549 * NEWS: Mention pointer to member improvements.
7550 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7551 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7552 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7553 * c-typeprint.c (c_print_type): Update for new type codes.
7554 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7555 (c_type_print_base): Likewise.
7556 (c_type_print_args): Rewrite.
7557 * c-valprint.c (c_val_print): Update for new type codes. Remove
7558 support for references to members. Treat methods like functions.
7559 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7560 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7561 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7562 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7563 (struct cp_abi_ops): Add corresponding members.
7564 * cp-valprint.c (cp_print_class_method): Delete.
7565 (cp_find_class_member): New function.
7566 (cp_print_class_member): Use it. Simplify support for bogus
7568 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7569 lookup_methodptr_type.
7570 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7571 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7572 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7574 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7575 references returned by user defined operators.
7576 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7577 (f_type_print_varspec_suffix): Remove support for member pointers.
7578 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7580 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7581 (lookup_methodptr_type): New.
7582 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7583 (recursive_dump_type): Update for new types.
7584 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7585 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7586 (lookup_memberptr_type, lookup_methodptr_type)
7587 (smash_to_memberptr_type): New prototypes.
7588 (smash_to_method_type): Formatting fix.
7589 (lookup_member_type, smash_to_member_type): Delete prototypes.
7590 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7591 Do not rely on debug information for the vptr or the method's
7592 enclosing type. Handle function descriptors for IA64.
7593 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7594 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7595 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7596 (gnuv3_method_ptr_to_value): New.
7597 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7598 * hpread.c (hpread_type_lookup): Update for new types.
7599 * infcall.c (value_arg_coerce): Likewise.
7600 * m2-typeprint.c (m2_print_type): Remove explicit support
7601 for member pointers.
7602 * m2-valprint.c (m2_val_print): Likewise.
7603 * p-typeprint.c (pascal_type_print_varspec_prefix)
7604 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7605 * p-valprint.c (pascal_val_print): Likewise.
7606 (pascal_object_print_class_method, pascal_object_print_class_member):
7608 * p-lang.h (pascal_object_print_class_method)
7609 (pascal_object_print_class_member): Delete prototypes.
7610 * stabsread.c (read_type): Update for new types.
7611 * typeprint.c (print_type_scalar): Likewise.
7612 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7613 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7614 argument. Construct a pointer to member if the address of a
7615 function or data member is requested.
7616 (value_cast_pointers): Don't modify the input value.
7617 (value_cast): Adjust pointer to member handling for new types.
7618 Allow null pointer to member constants. Don't modify the input
7620 (value_ind): Remove pointer to member check. Handle function
7621 descriptors for function pointers.
7622 (value_struct_elt, value_find_oload_method_list, check_field):
7623 Remove pointer to member checks.
7624 * value.c (unpack_long): Allow pointers to data members.
7625 (value_from_longest): Allow member pointers.
7626 * value.h (value_aggregate_elt): Add want_address.
7627 * varobj.c (c_variable_editable): Remove check for members.
7628 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7629 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7631 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7632 * c-lang.h (cp_print_class_method): Delete prototype.
7633 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7634 * mips-tdep.c (mips_gdbarch_init): Likewise.
7635 * gdbarch.c, gdbarch.h: Regenerated.
7637 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7639 * rs6000-tdep.c (rs6000_use_struct_convention)
7640 (rs6000_extract_return_value, rs6000_store_return_value)
7641 (rs6000_extract_struct_value_address): Remove.
7642 (rs6000_return_value): New function.
7643 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7644 store_return_value, deprecated_extract_struct_value_address and
7645 deprecated_use_struct_convention. Use rs6000_return_value
7648 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7650 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7651 -display-disable, -display-enable, -display-insert and
7654 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7656 * breakpoint.c (remove_breakpoint): Remove dead code.
7658 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7660 * varobj.c: Include block.h.
7661 (c_value_of_root): Check scope within nested statements.
7663 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7665 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7666 regcache_cooked_write_signed instead of
7667 deprecated_write_register_bytes.
7669 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7671 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7673 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7675 Followed the Start of New Year Procedure:
7676 * ChangeLog-2006: New file, containing all the entries for 2006.
7677 * ChangeLog: Removed all 2006 entries, and changed the reference
7678 to the previous ChangeLog to point to ChangeLog 2006.
7679 * top.c (print_gdb_version): Update copyright year.
7681 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7683 * Makefile.in (remote-sds.o): Remove.
7684 * remote-sds.c: Delete.
7686 For older changes see ChangeLog-2006.
7692 version-control: never