1 2007-10-09 Markus Deuling <deuling@de.ibm.com>
3 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
6 2007-10-09 Markus Deuling <deuling@de.ibm.com>
8 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
10 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
11 (inside_main_func, frame_sp_unwind): Likewise.
13 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
15 * solib-svr4.c (enable_break): Add the dynamic linker also if
18 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
20 * MAINTAINERS (Write After Approval): Add self.
22 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
24 * stabsread.c (read_huge_number): Initialize local variable to 0.
26 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
28 * p-lang.h (pascal_main_name): Add declaration.
29 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
30 (GPC_MAIN_PROGRAM_NAME_2): New constants.
31 (pascal_main_name): New function.
32 * symtab.c: Include p-lang.h.
33 (find_main_name): Add call to pascal_main_name.
34 * Makefile.in (symtab.o): Add dependency on p-lang.h.
36 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
38 * stabsread.c (read_huge_number): Fix handling of octal
39 representation when the bit width is known.
40 (read_range_type): Record unsigned integral types with their size,
41 when the type size is known.
43 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
45 * MAINTAINERS (Write After Approval): Add self.
47 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
49 * breakpoint.c (print_one_breakpoint_location): ARI fix:
50 Replace asprintf by xstrprintf.
52 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
54 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
55 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
57 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
59 * linux-fork.c: Move "gdb_wait.h" include back to the position of
60 <sys/wait.h> include before last commit.
62 2007-10-08 Maciej W. Rozycki <macro@mips.com>
64 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
66 2007-10-08 Markus Deuling <deuling@de.ibm.com>
68 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
69 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
70 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
71 (store_regs_user_thread, store_regs_kernel_thread): Use
72 get_regcache_arch or get_frame_arch to get at the current architecture
73 by regcache or by frame, respectively.
75 2007-10-08 Markus Deuling <deuling@de.ibm.com>
77 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
78 (sh64_pseudo_register_read, sh64_pseudo_register_write)
79 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
80 (sh64_print_register, sh64_media_print_registers_info)
81 (sh64_compact_print_registers_info, sh64_unwind_sp)
82 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
83 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
84 (sh64_frame_prev_register): Use FRAME to recognize current
87 2007-10-08 Markus Deuling <deuling@de.ibm.com>
89 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
90 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
91 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
92 current_gdbarch by gdbarch.
93 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
94 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
95 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
96 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
97 recognize current architecture.
99 2007-10-08 Markus Deuling <deuling@de.ibm.com>
101 * remote.c (init_remote_state, fetch_register_using_p)
102 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
103 (store_register_using_P, store_registers_using_G)
104 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
105 get at the current architecture by regcache or by frame, respectively.
107 2007-10-08 Markus Deuling <deuling@de.ibm.com>
109 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
110 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
111 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
112 get_regcache_arch or get_frame_arch to get at the current architecture
113 by regcache or by frame, respectively.
114 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
115 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
116 (store_register, old_store_inferior_registers, supply_gregset)
117 (supply_fpregset, fill_fpregset): Likewise.
118 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
119 Replace current_gdbarch by gdbarch.
121 2007-10-08 Markus Deuling <deuling@de.ibm.com>
123 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
124 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
125 get_frame_arch to get at the current architecture by regcache or by
128 2007-10-08 Markus Deuling <deuling@de.ibm.com>
130 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
131 Replace current_gdbarch by gdbarch.
132 * ia64-tdep.c (ia64_frame_prev_register
133 (ia64_sigtramp_frame_prev_register)
134 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
135 get_frame_arch to get at the current architecture by regcache or by
137 * ia64-linux-nat.c (ia64_linux_fetch_register)
138 (ia64_linux_fetch_registers, ia64_linux_store_register)
139 (ia64_linux_store_registers): Likewise.
141 2007-10-08 Markus Deuling <deuling@de.ibm.com>
143 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
144 current_gdbarch by gdbarch.
145 * hppa-linux-nat.c (fetch_register, store_register)
146 (hppa_linux_fetch_inferior_registers)
147 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
148 get_frame_arch to get at the current architecture by regcache or by
150 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
151 (hppa_hpux_unwind_adjust_stub): Likewise.
152 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
153 (hppa_hpux_fetch_inferior_registers)
154 (hppa_hpux_store_inferior_registers): Likewise.
156 2007-10-08 Markus Deuling <deuling@de.ibm.com>
158 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
159 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
160 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
161 or get_frame_arch to get at the current architecture by regcache or by
163 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
164 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
165 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
166 current_gdbarch by gdbarch.
168 2007-10-08 Markus Deuling <deuling@de.ibm.com>
170 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
171 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
172 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
173 get at the current architecture by regcache or by·frame, respectively.
174 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
177 2007-10-08 Markus Deuling <deuling@de.ibm.com>
179 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
180 Use get_regcache_arch or get_frame_arch to get at the current
181 architecture by regcache or by frame, respectively.
182 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
183 * amd64-nat.c (amd64_supply_native_gregset)
184 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
186 2007-10-08 Markus Deuling <deuling@de.ibm.com>
188 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
190 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
191 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
192 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
193 get_frame_arch to get at the current architecture by regcache or by
195 * alpha-nat.c (fetch_osf_core_registers): Likewise.
197 2007-10-08 Markus Deuling <deuling@de.ibm.com>
199 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
200 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
201 current_gdbarch by gdbarch.
202 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
204 2007-10-08 Markus Deuling <deuling@de.ibm.com>
206 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
207 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
208 * regcache.c (regcache_raw_write): Use get_regcache_arch or
209 get_frame_arch to get at the current architecture by regcache or by
212 2007-10-08 Markus Deuling <deuling@de.ibm.com>
214 * findvar.c (value_of_register, locate_var_value): Use
215 get_regcache_arch or get_frame_arch to get at the current architecture
216 by regcache or by frame, respectively.
217 * findvar.c (default_value_from_register, value_from_register): Replace
218 current_gdbarch by gdbarch.
220 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
222 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
224 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
226 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
227 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
229 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
231 * remote.c (get_offsets): Only call free_symfile_segment_data if
234 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
236 * objc-exp.y: ARI fix: remove 4 PARAMS.
238 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
240 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
241 news. Mention XML support for M68K in GDB 6.7.
243 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
245 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
247 (init_vector_type): Use builtin_type_int32.
249 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
251 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
252 size to enable bi-arch generate-core-file support.
254 2007-10-02 Markus Deuling <deuling@de.ibm.com>
256 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
258 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
260 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
262 * tui/tui-win.c (tui_initialize_win): New function for
263 initializing tui's SIGWINCH signal handler.
264 * tui/tui-win.h (tui_initialize_win): Declare.
266 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
268 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
269 pointer to uintptr_t before casting to CORE_ADDR.
271 2007-10-02 Markus Deuling <deuling@de.ibm.com>
273 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
275 2007-10-02 Mark Mitchell <mark@codesourcery.com>
277 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
278 * ser-mingw.c (enum select_thread_state): New type.
279 (struct ser_console_state): Add have_started and thread_state.
280 (select_thread_wait): New function.
281 (thread_fn_type): New type.
282 (create_select_thread): New function.
283 (destroy_select_thread): Likewise.
284 (start_select_thread): Likewise.
285 (stop_select_thread): Likewise.
286 (console_select_thread): Use new functions.
287 (pipe_select_thread): Likewise.
288 (file_select_thread): Likewise.
289 (ser_console_wait_handle): Likewise.
290 (ser_console_done_wait_handle): Likewise.
291 (ser_console_close): Likewise.
292 (free_pipe_state): Likewise.
293 (pipe_wait_handle): Likewise.
294 (pipe_done_wait_handle): Likewise.
295 (struct net_windows_state): Derive from ser_console_state.
296 (net_windows_select_thread): Use new functions.
297 (net_windows_wait_handle): Likewise.
298 (net_windows_done_wait_handle): Likewise.
299 (net_windows_close): Likewise.
301 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
303 * inflow.c (terminal_ours_1): Remove useless line.
305 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
307 * mips-tdep.c (mips_read_fp_register_double): Correct check for
309 (mips_print_fp_register): Correct check for even FP registers.
310 (mips_virtual_frame_pointer): New function.
311 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
313 2007-09-30 Mike Frysinger <vapier@gentoo.org>
315 * value.h (lookup_only_internalvar): New prototype.
316 (create_internalvar): Likewise.
317 * value.c (lookup_only_internalvar): New function.
318 (create_internalvar): Likewise.
319 (lookup_internalvar): Use new lookup_only_internalvar and
320 create_internalvar functions.
321 * parse.c (write_dollar_variable): Look up $ symbols in internal
322 table first rather than last.
324 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
326 * linux-nat.c (linux_nat_new_thread): New variable.
327 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
328 linux_nat_switch_fork.
329 (lwp_list): Make public.
330 (add_lwp): Call linux_nat_new_thread.
331 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
333 (resume_callback): Clear lp->siginfo. Remove unused variable.
334 (linux_nat_resume): Assert that the LWP list is already initialized.
337 (stop_wait_callback, linux_nat_wait): Call it.
338 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
339 * linux-nat.h (struct lwp_info): Add siginfo.
340 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
343 * amd64-linux-nat.c (amd64_linux_dr): New.
344 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
345 (amd64_linux_dr_set): Take a PTID argument.
346 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
347 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
348 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
349 (amd64_linux_new_thread): New.
350 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
351 * i386-linux-nat.c (i386_linux_dr): New.
352 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
353 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
354 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
355 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
356 (i386_linux_new_thread): New.
357 (i386_linux_resume): Remove unnecessary PID check.
358 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
359 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
360 (fetch_debug_register, fetch_debug_register_pair): Delete.
361 (debug_registers): New.
362 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
363 ALL_LWPS and debug_registers.
364 (ia64_linux_new_thread): New.
365 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
366 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
367 * ppc-linux-nat.c (last_stopped_data_address): Delete.
368 (saved_dabr_value): New.
369 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
371 (ppc_linux_new_thread): New.
372 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
373 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
374 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
375 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
377 (s390_fix_watch_points): Take a PTID argument.
378 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
379 (_initialize_s390_nat): Call linux_nat_set_new_thread.
381 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
382 Jeff Johnston <jjohnstn@redhat.com>
384 * breakpoint.c (watchpoints_triggered): New.
385 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
386 Check watchpoint_triggered instead. Combine handling for software
387 and hardware watchpoints. Do not use target_stopped_data_address
388 here. Always check a watchpoint if its scope breakpoint triggers.
389 Do not stop for thread or overlay events. Improve check for
390 triggered watchpoints without a value change.
391 (watch_command_1): Insert the scope breakpoint first. Link the
392 scope breakpoint to the watchpoint.
393 * breakpoint.h (enum watchpoint_triggered): New.
394 (struct breakpoint): Add watchpoint_triggered.
395 (bpstat_stop_status): Update prototype.
396 (watchpoints_triggered): Declare.
397 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
398 (stepped_after_stopped_by_watchpoint): Delete.
399 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
400 local. Handle infwait_step_watch_state. Update calls to
401 bpstat_stop_status. Use watchpoints_triggered to check
403 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
404 (remote_stopped_data_address): Do not check it.
406 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
408 * configure.ac: Add $LIBINTL when testing libbfd.
409 * configure: Regenerated.
411 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
413 * NEW: Mention pending breakpoint changes and
414 support for breakpoints at multiple locations.
416 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
418 * arm-linux-tdep.c (arm_linux_software_single_step): New.
419 (arm_linux_init_abi): Use it.
420 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
422 * arm-tdep.h (arm_get_next_pc): Declare.
423 * Makefile.in (arm-linux-tdep.o): Update.
425 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
427 * varobj.c (install_new_value): Don't
428 call value_get_print_value when a value is
429 lazy. Update the print_value member in a
432 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
434 * breakpoint.c (create_breakpoint): Set
435 condition on each location, not on the first
436 location of breakpoint.
438 2007-09-26 Jim Blandy <jimb@codesourcery.com>
440 * remote.c (getpkt_sane): Fix error message. No animals were
441 harmed in the making of this debugger.
443 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
445 * p-typeprint.c: Fix 11 ARI reported problems.
446 (pascal_print_type): Fix 4 operator at end of line.
447 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
448 using strncmp function.
449 (pascal_type_print_base): Fix 2 operator at end of line.
450 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
451 using strncmp function.
454 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
457 dwarf2read.c (read_subroutine_type):
458 All pascal functions are prototyped.
460 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
463 p-valprint.c (pascal_val_print): correct current language check.
464 Also print array of char as strings.
467 2007-09-26 David Ung <davidu@mips.com>
468 Maciej W. Rozycki <macro@mips.com>
470 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
472 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
474 * p-exp.y: Fix 12 ARI reported problems.
475 (name_not_typename): Fix 2 operator at end of line issues.
476 (yylex): Fix 3 operator at end of line issues.
477 Replace 7 DEPRECATED_STREQ macros using strcmp function.
479 2007-09-25 David Ung <davidu@mips.com>
480 Maciej W. Rozycki <macro@mips.com>
482 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
483 rules return composite types in registers as appropriate.
485 2007-09-24 Jim Blandy <jimb@codesourcery.com>
487 * symfile.h (struct symfile_segment_data): Doc fixes.
488 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
489 Assert that we were passed some loaded segment addresses,
490 and that sections' segment numbers are valid.
491 Simplify offset calculation.
492 * remote.c (get_offsets): Clarify selection of relocate-by-segment
493 strategy, and set num_segments correctly. Delete redundant
494 assignments to do_sections.
496 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
498 * frame.c (get_prev_frame_1): Also check for PC in the same register.
500 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
502 * breakpoint.c (remove_sal): New.
503 (expand_line_sal_maybe): New.
504 (create_breakpoints): Call expand_line_sal_maybe.
505 (clear_command): Add comment.
506 (breakpoint_re_set_one): Call expand_line_sal_maybe.
507 * linespec.c (decode_indirect): Set explicit_pc to 1.
508 (decode_all_digits): Set explicit_line to 1.
509 (append_expanded_sal): New.
510 (expand_line_sal): New.
511 * linespec.h (expand_line_sal): Declare.
512 * symtab.c (init_sal): Initialize explicit_pc
514 * symtab.h (struct symtab_and_line): New fields
515 explicit_pc and explicit_line.
517 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
519 * infcall.c (call_function_by_hand): Handle language-specific
520 pass and return by reference.
522 * cp-abi.c (cp_pass_by_reference): New.
523 * cp-abi.h (cp_pass_by_reference): Declare.
524 (struct cp_abi_ops): Add pass_by_reference.
525 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
526 (init_gnuv3_ops): Set pass_by_reference.
528 * language.c (language_pass_by_reference): New.
529 (default_pass_by_reference): New.
530 (unknown_language_defn, auto_language_defn, local_language_defn): Add
531 default_pass_by_reference.
532 * langauge.h (struct language_defn): Add la_pass_by_reference.
533 (language_pass_by_reference, default_pass_by_reference): Declare.
534 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
535 * c-lang.c (c_language_defn, asm_language_defn)
536 (minimal_language_defn): Likewise.
537 (cplus_language_defn): Add cp_pass_by_reference.
538 * f-lang.c (f_language_defn): Add default_pass_by_reference.
539 * jv-lang.c (java_language_defn): Likewise.
540 * m2-lang.c (m2_language_defn): Likewise.
541 * objc-lang.c (objc_language_defn): Likewise.
542 * p-lang.c (pascal_language_defn): Likewise.
543 * scm-lang.c (scm_language_defn): Likewise
545 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
547 Allow a code breakpoint to have several locations
549 * breakpoint.h (enum enable_state): Remove the
550 bp_shlib_disabled enumerator.
551 (struct bp_location): New members shlib_disabled,
552 global_next, enabled and function_name.
553 Rename pending to condition_not_parsed.
555 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
556 (ALL_BP_LOCATIONS_SAFE): Likewise.
557 (breakpoint_enabled): Don't check for pending.
558 (condition_command): Free and update all locations of
560 (insert_bp_location): Adjust.
561 (software_breakpoint_inserted_here_p): Don't care
562 if breakpoint is enabled, as soon as it's inserted.
563 (print_it_typical): Print bpstat's location, not
564 bpstat's breakpoint's location.
565 (bpstat_stop_status): Iterate over all locations, not
567 (print_breakpoint_location): New.
568 (print_one_breakpoint): Renamed to
569 (print_one_breakpoint_location): ...this. Take
570 parameters to describe which location is being
571 printed. Modify code to properly print header
572 for several locations and individual locations.
573 (print_one_breakpoint): Print all locations.
574 (breakpoint_has_pc): New.
575 (describe_other_breakpoints): Use the above.
576 (check_duplicates): Renamed to...
577 (check_duplicates_for): .. this.
578 (check_duplicates): Use check_duplicates_for.
579 (allocate_bp_location): Adjust.
580 (set_raw_breakpoint_without_location): New,
581 extracted from set_raw_breakpoint.
582 (set_breakpoint_location_function): New.
583 (set_raw_breakpoint): Use
584 set_raw_breakpoint_without_location.
585 (make_breakpoint_permanent): Mark all locations
587 (disable_breakpoints_in_shlibs): Iterate over
589 (disable_breakpoints_in_unloaded_shlib): Likewise.
590 (re_enable_breakpoints_in_shlibs): Likewise.
591 (mention): Say "pending" when breakpoint has
592 zero locations. If breakpoint has more than one
594 (add_location_to_breakpoint): New.
595 (create_breakpoint): Accept symtabs_and_lines, not
596 symtab_and_line. Pass extra sals to
597 add_location_to_breakpoint.
598 (create_breakpoints): Pass symtabs_and_lines to
600 (break_command_1): Make pending breakpoints
602 (do_captured_breakpoint): Remove wrong allocation.
603 (clear_command): Iterate over all locations.
604 (unlink_locations_from_global_list): Renamed
605 from unlink_location_from_global_list. Remove
607 (delete_breakpoint): Remove all locations.
608 Iterate over all locations when deciding which
609 other location to re-enable.
610 (all_locations_are_pending): New.
611 (update_breakpoint_locations): Renamed from
612 update_breakpoint_location. Try to match old
613 and new locations using names of containing
615 (breakpoint_re_set_one): Adjust.
616 (find_location_by_number): New.
617 (disable_command): Allow disabling individual location.
618 (enable_command): Allow enabling individual location.
619 * breakpoint.c: Adjust all uses of breakpoint's
620 enable state to for bp_shlib_disabled change.
622 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
624 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
625 (resolve_pending_breakpoint): Remove.
626 (re_enable_breakpoints_in_shlibs): Remove.
627 (unlink_locations_from_global_list): New.
628 (update_breakpoint_locations): New.
629 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
630 Use parse_condition and update_breakpoint_location to
631 reset breakpoint. Ignore 'symbol not found' error from
633 (breakpoint_re_set): Don't emit newline before the
634 reason why breakpoint is not reset.
635 (do_enable_breakpoint): Don't specially process pending
637 (free_bp_location): New.
638 (break_command_1): For pending breakpoints, initialize
639 all fields of a sal with zeroes.
640 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
641 * infcmd.c (post_create_inferior): Don't call
642 re_enable_breakpoints_in_shlibs.
643 * infrun.c (handle_inferior_event): Likewise.
644 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
645 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
646 * win32-nat.c (get_win32_debug_event): Likewise.
648 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
650 * breakpoint.c (create_breakpoint): Split from
651 create_breakpoints, implementing most of its logic.
652 Take just a single sal, single address string and
653 single condition. Do not take parsed condition at
655 (create_breakpoints): Just call create_breakpoint
657 (find_condition_and_thread): New.
658 (break_command_1): Use find_condition_and_thread.
659 Do not keep parsed conditions.
660 (do_captured_breakpoint): Don't convert
661 condition string to struct expression.
663 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
665 * breakpoint.h (struct breakpoint): Move the cond
667 (struct bp_location): Here.
668 * breakpoint.c (condition_command, bpstat_stop_status)
669 (print_one_breakpoint, allocate_bp_location)
670 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
671 (create_exec_event_catchpoint, create_breakpoints)
672 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
673 (create_ada_exception_breakpoint, set_breakpoint_sal)
674 (delete_breakpoint, breakpoint_re_set_one): Adjust.
675 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
677 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
679 Associate bp_stat with bp_location, not breakpoint.
680 * breakpoint.h (breakpoint_at): Change type
682 * breakpoint.c (bpstat_alloc): Take bp_location,
684 (bpstat_find_breakpoint): Look at bpstat's location's
685 owner, not at bpstat->breakpoint_at.
686 (bpstat_find_step_resume_breakpoint): Likewise.
687 (bpstat_num): Likewise.
688 (print_it_typical): Likewise.
689 (print_bp_stop_message): Likewise.
690 (watchpoint_check): Likewise.
691 (bpstat_what): Likewise.
692 (bpstat_get_triggered_catchpoints): Likewise.
693 (breakpoint_auto_delete): Likewise.
694 (delete_breakpoint): Likewise.
695 (bpstat_stop_status): Pass location, not breakpoint,
696 to bpstat_alloc. Look at bpstat's location's
697 owner, not at bpstat->breakpoint_at.
699 2007-09-21 Jim Blandy <jimb@codesourcery.com>
701 * macrotab.h (new_macro_table): Document that removing information
702 from an obstack/bcache-managed macro table leaks memory.
703 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
704 that data is never freed in obstack/bcache-managed macro tables,
705 just leak the storage.
706 (macro_undef): If we're undefining a macro at exactly the same
707 source location that we defined it, simply remove the definition
710 2007-09-21 Joel Brobecker <brobecker@adacore.com>
712 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
713 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
714 Adjust the struct sym_fns object accordingly by setting
715 the new field to NULL.
716 * xcoffread.c (aix_process_linenos): Make static.
717 (xcoff_sym_fns): Set new field to aix_process_linenos.
718 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
719 by call to new the new sym_fns sym_read_linetable function.
720 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
721 * config/rs6000/tm-rs6000.h: Delete.
723 2007-09-21 David Ung <davidu@mips.com>
724 Maciej W. Rozycki <macro@mips.com>
726 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
727 rules do not treat composite types specially.
729 2007-09-20 Maciej W. Rozycki <macro@mips.com>
731 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
732 (mips16_in_function_epilogue_p): Likewise.
733 (mips_in_function_epilogue_p): Likewise.
734 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
736 2007-09-19 Joel Brobecker <brobecker@adacore.com>
738 * configure.ac: Add check for "etext".
739 * configure, config.in: Regenerate.
740 * maint.c (TEXTEND): Only define if either _etext or etext
742 Disable the profiling functionality if TEXTEND is not defined.
744 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
746 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
747 address register. Correct the call to frame_id_build.
748 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
751 2007-09-18 Joel Brobecker <brobecker@adacore.com>
753 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
754 the linetable past the function end.
756 2007-09-18 James E. Wilson <wilson@specifix.com>
758 * MAINTAINERS: Update my email address.
760 2007-09-18 Jerome Guitton <guitton@adacore.com>
762 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
763 (inf_ttrace_delete_dying_threads_callback): New function.
764 (inf_ttrace_resume): After resuming the execution, iterate over
765 the dying threads to delete them for the thread list.
766 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
767 mark the corresponding thread as dying instead of removing it
768 from the thread list.
769 (inf_ttrace_thread_alive): return 0 for dying threads.
771 2007-09-17 Joel Brobecker <brobecker@adacore.com>
773 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
774 that return_frame is not null.
776 2007-09-17 Joel Brobecker <brobecker@adacore.com>
778 * solib-svr4.c: Add include of "auxv.h".
779 (enable_break): Use the AT_BASE auxiliary entry if available.
780 * Makefile.in (solib-svr4.o): Update dependencies.
782 2007-09-17 Joel Brobecker <brobecker@adacore.com>
784 * NEWS: Create a new section for the next release branch.
785 Rename the section of the current branch, now that it has
788 2007-09-17 Jerome Guitton <guitton@adacore.com>
790 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
791 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
793 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
795 * mi/mi-cmds.c (mi_cmds): Register -list-features.
796 * mi/mi-cmds.h (mi_cmd_list_features): New.
797 * mi/mi-main.c (mi_cmd_list_features): New.
799 2007-09-11 Joel Brobecker <brobecker@adacore.com>
801 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
802 * version.in: Bump version to 6.7.50-20070911-cvs.
804 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
806 * thread.c (free_thread): Do not delete the step resume breakpoint
809 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
811 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
812 * corelow.c (core_read_description): New.
813 (init_core_ops): Set to_read_description.
814 * gdbarch.sh: Add gdbarch_core_read_description.
815 * mips-linux-tdep.c (mips_linux_core_read_description): New.
816 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
817 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
818 (mips_register_g_packet_guesses): Use them.
819 (_initialize_mips_tdep): Initialize them.
820 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
821 * gdbarch.h, gdbarch.c: Regenerated.
823 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
825 * infrun.c (stepping_past_breakpoint): New global variable.
826 (stepping_past_breakpoint_ptid): Likewise.
827 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
828 Only switch threads if we need to single-step over a breakpoint hit
829 in the previously selected thread. If stepping, remember previous
830 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
831 switch_to_thread instead of copying its contents.
832 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
833 prepare_to_proceed returns true.
834 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
835 (context_switch): Call switch_to_thread.
836 (handle_inferior_event): Switch back to previous thread if requested
837 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
838 * gdbthread.h (switch_to_thread): Add prototype.
839 * thread.c (switch_to_thread): Make global.
841 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
843 * p-valprint.c: Fix 7 ARI reported problems.
844 (pascal_val_print): Fix one operator at end of line issue.
845 Use paddress function to remove use of
846 deprecated_print_address_numeric function (2 times).
847 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
848 (pascal_value_print): Fix 3 operator at end of line issues.
850 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
853 * arm-tdep.c (arm_in_call_stub): Delete.
854 (arm_skip_stub): Handle from_arm and from_thumb stubs.
856 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
858 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
861 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
862 Jim Blandy <jimb@codesourcery.com>
864 * NEWS: Update description of string changes. Mention print/s.
865 * c-valprint.c (textual_element_type): New.
866 (c_val_print): Use it. Do not skip address printing for pointers
867 with a string format.
868 (c_value_print): Doc update.
869 * dwarf2read.c (read_array_type): Use make_vector_type.
870 * gdbtypes.c (make_vector_type): New.
871 (init_vector_type): Use it.
872 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
873 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
874 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
875 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
876 (make_vector_type): New.
877 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
878 Call the language print routine for string format.
879 (print_scalar_formatted): Call val_print for string format. Handle
880 unsigned original types for char format.
881 (validate_format): Do not reject string format.
882 * stabsread.c (read_type): Use make_vector_type.
883 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
885 2007-09-04 Michael Snyder <msnyder@access-company.com>
887 * expprint.c (print_subexp_standard): Check strchr for null.
888 * Makefile.in (expprint.o): Depend on gdb_assert.h.
890 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
892 * stabsread.c (patch_block_status): Guard against null.
893 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
895 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
897 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
898 in internal error message.
900 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
901 Daniel Jacobowitz <dan@codesourcery.com>
903 * infcmd.c (post_create_inferior): Update comment.
904 (run_command_1): Always call post_create_inferior with 0 as
907 * i386-cygwin-tdep.h: New.
908 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
909 (win32_xfer_shared_library): Make it extern.
911 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
913 (win32_so_ops): Delete.
914 (get_relocated_section_addrs): Delete.
915 (solib_symbols_add): Delete.
916 (register_loaded_dll): Delete.
917 (win32_make_so): New.
918 (handle_load_dll): Use win32_make_so.
919 (win32_free_so): Free the passed in so.
920 (win32_relocate_section_addresses): Delete.
921 (win32_solib_create_inferior_hook): Delete.
922 (handle_unload_dll): Don't add PE offset here. Free so with
923 win32_free_so instead of free_so.
924 (win32_special_symbol_handling): Delete.
925 (get_win32_debug_event): Remove unneeded calls. Set state to
926 TARGET_WAITKIND_LOADED on a dll unload.
927 (do_initial_win32_stuff): Clear cygwin_load_start and
929 (map_code_section_args): Delete.
930 (dll_code_sections_add): Delete.
931 (core_section_load_dll_symbols): Delete.
932 (win32_xfer_shared_libraries): New.
933 (win32_current_sos): Delete.
934 (win32_xfer_partial): New.
935 (open_symbol_file_object): Delete.
936 (in_dynsym_resolve_code): Delete.
937 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
938 of win32_ops. Remove win32_so_ops settings. Don't set
939 current_target_so_ops here.
941 * Makefile.in (i386_cygwin_tdep_h): New variable.
942 (i386-cygwin-tdep.o): Update dependencies.
943 (win32-nat.o): Update dependencies.
945 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
946 Daniel Jacobowitz <dan@codesourcery.com>
948 * gdbarch.sh (core_xfer_shared_libraries): New.
950 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
952 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
954 * xml-support.c (gdb_xml_parse): Debug output tweaks.
955 (xml_escape_text): New.
956 * xml-support.h (xml_escape_text): Declare.
958 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
959 * config/i386/cygwin.mt (TDEPFILES): ... here.
961 * win32-nat.c: (fetch_elf_core_registers): Delete.
962 (win32_elf_core_fn): Delete.
963 (_initialize_core_win32): Delete.
965 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
966 "xml-support.h" and "gdbcore.h".
967 (i386_win32_gregset_reg_offset): New.
968 (I386_WIN32_SIZEOF_GREGSET): New.
969 (i386_win32_regset_from_core_section): New.
970 (win32_xfer_shared_library): New.
971 (struct cpms_data): New.
972 (core_process_module_section): New.
973 (win32_core_xfer_shared_libraries): New.
974 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
975 gregset_num_regs, sizeof_gregset members of tdep. Register
976 regset_from_core_section and core_xfer_shared_libraries callbacks.
978 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
979 * gdbarch.h, gdbarch.c: Regenerate.
981 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
983 * corelow.c (core_xfer_partial): Pass writebuf to
984 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
986 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
988 * arm-tdep.h (arm_skip_stub): Declare.
989 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
991 (arm_pe_skip_trampoline_code): New function.
992 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
993 gdbarch_skip_trampoline_code callback.
994 * Makefile.in (arm-wince-tdep.o): Update dependencies.
996 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
998 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1000 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1002 * configure.ac: Add --with-expat.
1003 * configure: Regenerated.
1005 2007-09-03 Andreas Schwab <schwab@suse.de>
1007 * configure.ac: Accept --with-system-readline.
1008 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1009 * configure: Regenerate.
1010 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1012 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1014 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1015 Daniel Jacobowitz <dan@codesourcery.com>
1017 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1019 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1021 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1023 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1025 * top.c (print_gdb_version): Update for GPL version 3.
1027 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1029 * NEWS: Mention the build-id .debug files verification.
1031 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1033 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1035 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1037 * Makefile.in (symfile.o): Update dependencies.
1038 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1039 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1040 (struct build_id): New structure.
1041 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1042 (find_separate_debug_file): New variable BUILD_ID.
1043 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1045 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1047 * varobj.c (struct varobj): Fix comment
1048 for the type member not to lie when it can be
1051 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1053 Implement -var-info-path-expression.
1055 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1057 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1058 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1059 * varobj.c (struct varobj): New field 'path_expr'.
1060 (c_path_expr_of_child, cplus_path_expr_of_child)
1061 (java_path_expr_of_child): New.
1062 (struct language_specific): New field path_expr_of_child.
1063 (varobj_create): Initialize the path_expr field.
1064 (varobj_get_path_expr): New.
1065 (new_variable): Initialize the path_expr field.
1066 (free_variable): Free the path_expr field.
1067 (adjust_value_for_children_access): New parameter
1069 (c_number_of_children): Adjust.
1070 (c_describe_child): New parameter CFULL_EXPRESSION.
1071 Compute full expression.
1072 (c_value_of_child, c_type_of_child): Adjust.
1073 (cplus_number_of_children): Adjust.
1074 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1075 Compute full expression.
1076 (cplus_name_of_child, cplus_value_of_child)
1077 (cplus_type_of_child): Adjust.
1078 * varobj.h (varobj_get_path_expr): Declare.
1080 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1082 * mi/mi-cmd-var.c (print_varobj): If a varobj
1083 type is NULL, don't try to print it.
1085 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1087 * ppc-linux-nat.c (right_fill_reg): Delete.
1088 (supply_gregset): Use ppc_supply_gregset.
1089 (supply_fpregset): Use ppc_supply_fpregset.
1090 (fill_gregset): Use ppc_collect_gregset.
1091 (fill_fpregset): Use ppc_collect_fpregset.
1092 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1093 (right_supply_register, ppc_linux_supply_gregset): Delete.
1094 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1095 (ppc_linux_supply_fpregset): Delete.
1096 (ppc_linux_collect_gregset): New function.
1097 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1098 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1099 ppc_linux_supply_gregset, and ppc_collect_gregset.
1100 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1101 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1102 (ppc_linux_regset_from_core_section): Update.
1103 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1104 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1105 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1106 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1107 (ppcobsd_collect_gregset): Likewise.
1108 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1109 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1110 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1111 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1112 (rs6000_aix64_reg_offsets): Likewise.
1113 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1114 ppc_floating_point_unit_p.
1115 (rs6000_aix_collect_regset): Similarly.
1116 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1117 when regsize is larger than regcache register size.
1118 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1119 regcache register size.
1120 (ppc_greg_offset): New function, split out from..
1121 (ppc_supply_gregset): ..here. Separate code handling all regs from
1122 single reg case. Correct xer offset.
1123 (ppc_fpreg_offset): New function, split out from..
1124 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1126 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1127 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1128 a fp unit, instead return if no fp.
1130 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1132 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1133 this code has not been compiled for two years.
1135 2007-08-29 Michael Snyder <msnyder@access-company.com>
1137 * event-top.c (gdb_readline2): Return after EOF.
1139 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1141 * symtab.c: Remove a function that has been commented out 3 years ago.
1143 2007-08-29 Randolph Chung <tausq@debian.org>
1145 * hppa-tdep.c (hppa32_cannot_fetch_register)
1146 (hppa64_cannot_fetch_register): New functions.
1147 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1148 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1150 2007-08-28 Michael Snyder <msnyder@access-company.com>
1152 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1153 check for null before calling check_typedef.
1155 * NEWS: Mention Coverity bug fixes.
1157 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1159 * spu-tdep.c (spu_pointer_to_address): New function.
1160 (spu_integer_to_address): Likewise.
1161 (spu_gdbarch_init): Add spu_pointer_to_address and
1162 spu_integer_to_address to gdbarch.
1164 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1166 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1168 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1170 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1171 that contains the GDB license.
1172 * copying.awk: Adjust to the GPLv3 wording.
1173 * copying.c: Regenerate.
1175 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1177 * copying.awk: Protoization, and i18n markup.
1179 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1181 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1182 * copyright.sh: Likewise.
1183 * gdb-events.sh: Likewise.
1184 * gdb_gcore.sh: Likewise.
1185 * gdb_mbuild.sh: Likewise.
1186 * gdbarch.sh: Likewise.
1187 * observer.sh: Likewise.
1188 * features/feature_to_c.sh: Likewise.
1189 * regformats/regdat.sh: Likewise.
1191 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1193 Switch the license of all .c files to GPLv3.
1194 Switch the license of all .h files to GPLv3.
1195 Switch the license of all .cc files to GPLv3.
1197 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1199 * configure.ac: Switch license to GPLv3.
1201 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1203 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1204 determine the file's FPU type.
1206 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1208 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1209 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1210 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1212 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1214 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1216 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1217 (elf_lookup_lib_symbol): Fix formatting.
1219 2007-08-21 Michael Snyder <msnyder@access-company.com>
1221 * dbxread.c (read_dbx_symtab): Guard null deref.
1224 * valops.c (find_overload_match): Guard against NULL.
1226 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1228 * MAINTAINERS (Patch Champions): Remove self.
1230 2007-08-21 Chris Smith <chris.smith@st.com>
1232 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1235 2007-08-18 Michael Snyder <msnyder@access-company.com>
1237 * stabsread.c (dbx_lookup_type): Memory leak.
1239 * event-loop.c (delete_async_signal_handler): Move pointer null
1240 test to before pointer dereference.
1242 * ui-out.c (append_header_to_list): Possible cut and paste error.
1244 * MAINTAINERS: white space tweak.
1246 2007-08-17 Michael Snyder <msnyder@access-company.com>
1248 * stack.c (print_frame): Memory leak.
1250 * completer.c (filename_completer): Avoid memory leak.
1251 Remove unnecessary nested block.
1253 * c-exp.y (parse_number): Memory leak.
1255 * completer.c (location_completer): Must free 'fn_list', except
1256 in the one case where it is returned (as 'list').
1258 * varobj.c (value_of_root): Memory leak.
1260 * gdbtypes.h (virtual_base_list): Remove export decl.
1261 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1262 (virtual_base_index): Memory leak.
1263 (virtual_base_index_skip_primaries): Ditto.
1265 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1267 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1268 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1269 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1270 (xtensa_read_register): New function.
1271 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1272 (xtensa_insn_kind): New types.
1273 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1274 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1275 (xtensa_verify_config, xtensa_pseudo_register_read)
1276 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1277 (xtensa_store_return_value)
1278 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1279 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1280 (xtensa_frame_this_id, xtensa_frame_prev_register)
1281 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1282 (call0_frame_cache, call0_frame_get_reg_at_entry)
1283 (call0_classify_opcode, call0_track_op)
1284 (call0_analyze_prologue, call0_frame_cache): New functions.
1286 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1288 * breakpoint.c (bpstat_free): New.
1289 (bpstat_clear): Use bpstat_free.
1290 (delete_breakpoint): Document why we cannot
1291 remove bpstats from stop_bpstat.
1292 * breakpoint.h (bpstat_free): Declare.
1294 2007-08-16 Michael Snyder <msnyder@access-company.com>
1296 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1298 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1299 Joel Brobecker <brobecker@adacore.com>
1301 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1303 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1304 Joel Brobecker <brobecker@adacore.com>
1306 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1307 checkin guarding against NULL.
1309 2007-08-14 Michael Snyder <msnyder@access-company.com>
1311 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1312 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1313 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1314 go at beginning of new line.
1316 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1317 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1318 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1319 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1320 tui-winsource.h, tui.c, tui.h: Function declarations and
1321 definitions, wrap long lines.
1323 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1324 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1325 Reformat block comments to GNU standard.
1327 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1328 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1329 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1330 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1331 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1332 spaces after periods, etc).
1334 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1335 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1336 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1337 tui-winsource.h: Whitespace changes, fix pointer declarations
1340 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1341 Michael Snyder <msnyder@access-company.com>
1343 * ada-lang.c (field_alignment): Guard against NULL.
1345 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1347 * MAINTAINERS (Global Maintainers): Add self.
1349 2007-08-14 Michael Snyder <msnyder@access-company.com>
1351 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1353 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1355 * varobj.c (cplus_describe_child): Guard against null.
1356 Use "NULL" instead of "0" to initialize pointers.
1358 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1360 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1361 to match any gdbarch with matching OSABI. Set default ABI and FPU
1362 after running the OSABI handler.
1364 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1366 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1367 * config/i386/linux.mt (TDEPFILES): ...to here.
1369 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1371 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1372 the 'silent' parameter and code to implement that.
1373 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1375 * win32-nat.c: Adjust.
1378 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1380 * breakpoint.c (update_breakpoints_after_exec): Don't
1381 set address to zero.
1383 2007-08-13 Michael Snyder <msnyder@access-company.com>
1385 * valops.c: Whitespace clean-up.
1387 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1389 * event-top.c (command_line_handler): Memory leak.
1391 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1392 No need to make copy.
1394 * source.c (find_source_lines): Require symtab 's'.
1396 2007-08-11 Michael Snyder <msnyder@access-company.com>
1398 * completer.c: Spelling fix in comments.
1400 2007-08-10 Michael Snyder <msnyder@access-company.com>
1402 * gdbtypes.c: Coding standard cleanup.
1403 * gdbtypes.c: Comment/whitespace cleanup.
1405 * stabsread.c (read_huge_number): Attempt to compute value before
1406 values that it depends on.
1408 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1409 (decode_objc): Use "NULL" instead of 0.
1410 (find_method): Ditto.
1411 (decode_all_digits): Ditto.
1412 (decode_dollar): Ditto.
1414 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1416 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1418 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1421 * completer.c: Comment/whitespace cleanup.
1423 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1425 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1427 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1429 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1430 allocated file descriptors.
1432 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1434 * Makefile.in: Minor cleanup throughout; add some missing variables,
1435 add some missing rules, remove some rules that are no longer needed,
1436 and fix the dependencies in several rules.
1438 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1440 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1441 (scm_lang_h, scm_tags_h): New.
1442 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1443 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1444 * defs.h (enum language): Add `language_scm'.
1446 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1449 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1451 * MAINTAINERS (Write After Approval): Add myself.
1453 2007-08-09 Michael Snyder <msnyder@access-company.com>
1455 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1457 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1459 * solib-som.c (som_relocate_section_addresses): Stop saving
1460 the $CODE$ section in the so_list structure.
1462 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1464 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1465 (xtensa_register_group_t): Add entries for coprocessors.
1466 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1467 (xtensa_add_reggroups): Likewise.
1468 (xtensa_register_reggroup_p): Likewise.
1469 (xtensa_coprocessor_register_group): New function.
1472 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1474 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1476 2007-08-08 Michael Snyder <msnyder@access-company.com>
1478 * target.c (target_read_string): Guard against null.
1480 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1482 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1483 (tui_set_layout_for_display_command): Mem leak.
1485 * top.c (command_line_input): Memory leak.
1487 * solib-svr4.c (open_symbol_file_object): Memory leak.
1488 (svr4_current_sos): Ditto.
1489 (enable_break): Ditto.
1491 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1493 * dwarf2read.c (add_partial_symbol): Memory leak.
1495 2007-08-06 Michael Snyder <msnyder@access-company.com>
1497 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1499 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1501 * macroexp.c (init_buffer): Remove testing code that overrides the
1502 caller's length guess.
1503 (gather_arguments): Use a larger initial size, now that the vector
1504 growth code has been exercised.
1506 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1508 * solib-target.c (solib_target_relocate_section_addresses): Add
1509 orig_delta to addr_high.
1511 2007-08-04 Michael Snyder <msnyder@access-company.com>
1513 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1515 * breakpoint.c (print_one_breakpoint): Off by one error.
1517 * tracepoint.c (add_register): Off by one error.
1518 (stringify_collection_list): Free malloc buffer.
1520 2007-08-03 Michael Snyder <msnyder@access-company.com>
1522 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1523 stop memory leak, straighten out cleanups.
1525 * jv-lang.c (java_link_class_type): Guard against NULL.
1527 2007-08-02 Michael Snyder <msnyder@access-company.com>
1529 * gdbtypes.c (create_set_type): Test should only be done within
1530 the preceeding if block. Otherwise, variable is uninitialized.
1532 * gdbtypes.c (check_typedef): Guard NULL.
1534 2007-08-01 Michael Snyder <msnyder@access-company.com>
1536 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1537 avoid dereference in lookup_cmd_1.
1539 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1540 clean up long lines.
1541 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1542 (tui_alloc_win_info): Ditto.
1543 (tui_add_content_elements): Ditto.
1544 * tui/tui-file.c (tui_file_magic): Ditto.
1546 2007-07-31 Michael Snyder <msnyder@access-company.com>
1548 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1549 True and false paths are mutually exclusive.
1551 * event-top.c (command_line_handler): Add pedantic return.
1553 * f-valprint.c (info_common_command): Bail out to prevent null
1554 pointer deref. Break up a long line.
1556 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1558 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1560 * printcmd.c (build_address_symbolic): Remove dead code and dead
1563 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1565 * linespec.c (minsym_found): Advance to the next line if possible.
1567 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1569 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1570 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1571 solib-svr4.o, and add solib-target.o
1573 2007-07-27 Michael Snyder <msnyder@access-company.com>
1575 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1577 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1579 * MAINTAINERS (Write After Approval): Add myself.
1581 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1583 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1586 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1588 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1590 2007-07-24 Michael Snyder <msnyder@access-company.com>
1592 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1593 'buffer' must cover both branches that call strcmp (Coverity).
1595 * stack.c (print_frame_args): Check return value of lookup_symbol.
1597 * ax-gdb.c (find_field): Guard against null ptr.
1599 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1601 * regformats/reg-spu.dat: Fix order of npc, id registers.
1603 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1605 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1606 sections should always go to the executable file.
1608 2004-07-20 Chris Dearman <chris@mips.com>
1610 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1611 prologue instructions.
1613 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1615 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1618 2007-07-20 Chris Dearman <chris@mips.com>
1619 Maciej W. Rozycki <macro@mips.com>
1621 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1624 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1625 Daniel Jacobowitz <dan@codesourcery.com>
1627 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1628 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1630 * NEWS: Mention gdbserver DLL support.
1632 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1634 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1636 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1638 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1641 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1643 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1646 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1648 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1649 (mep_analyze_prologue): Add case for BRA instruction.
1651 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1653 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1655 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1657 * breakpoint.c: Include "top.h".
1658 (breakpoint_1): Don't set convenience variable $_ if server prefix
1660 (_initialize_breakpoint): Describe this behaviour in command help.
1662 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1664 * solib-target.c (library_list_start_segment): Cast address to
1667 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1669 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1670 for terminated processes.
1672 2007-07-05 Michael Snyder <msnyder@access-company.com>
1674 * event-top.c (cli_command_loop): Prompt string can (and should)
1675 be freed after call to readline (Coverity). Also move local var
1676 declarations into block where they are used.
1678 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1679 should) be freed after call to readline (Coverity). Also move
1680 local var declarations into block where they are used.
1682 2007-07-03 Andreas Schwab <schwab@suse.de>
1684 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1687 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1688 Thiago Bauermann <bauerman@br.ibm.com>
1689 Joseph S. Myers <joseph@codesourcery.com>
1690 Daniel Jacobowitz <dan@codesourcery.com>
1692 * remote.c (remote_check_symbols): Use
1693 gdbarch_convert_from_func_ptr_addr.
1694 * infcall.c (find_function_addr): Handle function descriptors
1695 without debugging information.
1696 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1697 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1698 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1699 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1700 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1701 allow SEC_CODE and SEC_DATA.
1702 (enable_break): Update calls. Pass current_target to solib_add.
1703 Use gdbarch_convert_from_func_ptr_addr.
1705 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1706 Daniel Jacobowitz <dan@codesourcery.com>
1708 * symfile.c (print_transfer_performance): Avoid integer overflow.
1711 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1713 * cp-namespace.c (lookup_symbol_file): Add block to
1714 lookup_symbol_global call.
1715 * Makefile.in (solist_h): Add dependency on symtab header.
1716 (symtab.o): Add dependency on solist header.
1717 * solib.c (solib_global_lookup): New function.
1718 * solib-svr4.c (scan_dyntag): Likewise.
1719 (elf_locate_base): Call helper routine scan_dyntag.
1720 (elf_lookup_lib_symbol): New function.
1721 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1722 * solist.h (symtab.h): New include.
1723 (struct target_so_ops): New member lookup_lib_global_symbol.
1724 (solib_global_lookup): New prototype.
1725 * symtab.c: New include solist.h.
1726 (lookup_objfile_from_block): New function.
1727 (lookup_global_symbol_from_objfile): New function.
1728 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1729 (lookup_symbol_global): Call library-specific lookup procedure.
1730 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1732 * NEWS: Document framework.
1734 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1736 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1739 * cli/cli-script.c (build_command_line): Update NULL check.
1741 2007-07-02 Michael Snyder <msnyder@access-company.com>
1743 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1745 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1747 * Makefile.in (XMLFILES): Add library-list.dtd.
1748 (ALLDEPFILES): Add solib-target.o.
1749 (solib-target.o): New rule.
1750 * remote.c (PACKET_qXfer_libraries): New constant.
1751 (remote_protocol_features): Add qXfer:libraries:read.
1752 (remote_wait): Recognize library stop replies.
1753 (remote_async_wait): Likewise. Fix typo.
1754 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1755 (init_remote_async_ops): Fix typo.
1756 (_initialize_remote): Register "set remote library-info-packet".
1757 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1758 * solib-target.c: New file.
1759 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1761 (info_sharedlibrary_command): Likewise.
1762 (solib_add_library, solib_remove_library): New.
1763 * solist.h (struct so_list): Replace textsection with addr_low and
1765 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1766 * NEWS: Describe new qXfer:libraries:read and shared library
1768 * features/library-list.dtd: New.
1770 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1772 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1773 (start_remote): Use STOP_QUIETLY_REMOTE.
1774 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1775 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1776 Update to match shared library event breakpoint support. Only
1777 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1778 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1779 * fork-child.c (startup_inferior): Do not set
1780 inferior_ignoring_startup_exec_events
1781 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1783 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1785 2007-07-02 Markus Deuling <deuling@de.ibm.com>
1787 * breakpoint.c (insert_bp_location): Remove dead code
1788 (DISABLE_UNSETTABLE_BREAK).
1789 (disable_breakpoints_in_shlibs)
1790 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1792 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1794 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1795 Call insert_bp_location.
1797 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1799 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1802 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1804 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1807 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1809 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1810 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1811 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1812 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1813 to display_gdb_prompt.
1815 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1818 * target.c (memory_xfer_partial): Do not continue past targets with
1821 2007-06-30 Andreas Schwab <schwab@suse.de>
1823 * m68k-tdep.c (m68k_ps_type): New.
1824 (m68k_init_types): New.
1825 (m68k_register_type): Use m68k_ps_type for PS register.
1826 (_initialize_m68k_tdep): Call m68k_init_types.
1828 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1829 from the generic m68k arch.
1831 2007-06-28 Michael Snyder <msnyder@access-company.com>
1833 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1836 * linux-thread-db.c (thread_db_get_thread_local_address): Add
1837 gdb_assert before using return value of find_thread_pid (Coverity).
1839 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1841 * cli/cli-script.c (build_command_line): Add null pointer guard
1844 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1846 * linux-thread-db.c (thread_db_attach): Delete.
1847 (thread_db_detach): Typo fix. Call target_mourn_inferior
1848 instead of fixing up proc_handle.
1849 (have_threads_callback, have_threads): New functions.
1850 (thread_db_wait): Remove dead proc_handle.pid check. Only
1851 translate PTIDs if we have registered threads. Check for new
1852 threads if we have none.
1853 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1854 (find_new_threads_callback): Only enable event reporting if TID == 0.
1855 (same_ptid_callback): New.
1856 (thread_db_get_thread_local_address): Check for new threads.
1857 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1858 or to_post_startup_inferior.
1860 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1862 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1863 is always active if SOFTWARE_SINGLE_STEP_P is true.
1864 (resume): Use gdbarch_software_single_step[_p] instead of
1865 SOFTWARE_SINGLE_STEP[_P].
1866 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1868 * gdbarch.sh (software_single_step): Remove target macro.
1869 * gdbarch.h, gdbarch.c: Regenerate.
1871 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1873 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1874 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1875 (struct gdbarch_swap, struct gdbarch_swap_registration,
1876 struct gdbarch_swap_registry, gdbarch_swap_registry,
1877 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1878 current_gdbarch_swap_in_hack): Remove.
1879 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1880 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1881 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1882 (deprecated_current_gdbarch_select_hack): Likewise.
1883 * gdbarch.h, gdbarch.c: Regenerate.
1885 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1887 * infrun.c (clear_proceed_status): Clean up stop_registers.
1888 (normal_stop): Allocate regcache for stop_registers.
1889 (struct inferior_status): Remove stop_registers member.
1890 (save_inferior_status): Do not save stop_registers.
1891 (restore_inferior_status): Do not restore stop_registers.
1892 (discard_inferior_status): Do not discard stop_registers.
1893 (build_infrun): Remove.
1894 (_initialize_infrun): Do not swap stop_registers.
1896 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1898 * remote.c (remote_address_masked): If remote_address_size is zero,
1899 default to target address size.
1900 (build_remote_gdbarch_data): Remove.
1901 (_initialize_remote): Do not swap remote_address_size.
1903 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1905 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1906 builtin_type_char, builtin_type_short, builtin_type_int,
1907 builtin_type_long, builtin_type_signed_char,
1908 builtin_type_unsigned_char, builtin_type_unsigned_short,
1909 builtin_type_unsigned_int, builtin_type_unsigned_long,
1910 builtin_type_float, builtin_type_double, builtin_type_long_double,
1911 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1912 builtin_type_bool, builtin_type_long_long,
1913 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1914 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1915 variable declaration with compatibility macro.
1916 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1917 builtin_type_char, builtin_type_short, builtin_type_int,
1918 builtin_type_long, builtin_type_signed_char,
1919 builtin_type_unsigned_char, builtin_type_unsigned_short,
1920 builtin_type_unsigned_int, builtin_type_unsigned_long,
1921 builtin_type_float, builtin_type_double, builtin_type_long_double,
1922 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1923 builtin_type_bool, builtin_type_long_long,
1924 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1925 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1926 (build_gdbtypes): Remove.
1927 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1928 opaque-type-resolution command here. Do not call
1929 deprecated_register_gdbarch_swap.
1931 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1933 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1934 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1935 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1937 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1938 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1939 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1940 (build_parse): Remove.
1941 (_initialize_parse): Do not call build_parse. Do not register
1942 msym_ types for gdbarch-swapping.
1944 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1945 instead of creating private type.
1947 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1948 (_initialize_xcoffread): Do not initialized them.
1949 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1951 * mdebugread.c (nodebug_func_symbol_type): Remove.
1952 (nodebug_var_symbol_type): Remove.
1953 (_initialize_mdebugread): Do not initialize them.
1954 (parse_symbol): Use builtin nodebug_ type instead of them.
1955 (parse_procedure): Likewise.
1957 2007-06-21 Chris Dearman <chris@mips.com>
1959 * printcmd.c (do_one_display): If display/i, start with an initial
1960 line feed to avoid bad layout if there is a branch delay slot.
1962 2007-06-21 Nigel Stephens <nigel@mips.com>
1963 Maciej W. Rozycki <macro@mips.com>
1965 * disasm.c (gdb_print_insn): Return the number of branch delay
1966 slot instructions too.
1967 * disasm.h (gdb_print_insn): Update prototype.
1968 * printcmd.c (branch_delay_insns): New variable to record the
1969 number of delay slot instructions after disassembling a branch.
1970 (print_formatted): Record the number of branch delay slot
1972 (do_examine): When disassembling, if the last instruction
1973 disassembled has any branch delay slots, then bump the count so
1974 that they get disassembled too.
1975 * tui/tui-disasm.c (tui_disassemble): Update the call to
1977 * NEWS: Document the new behaviour.
1979 2007-06-21 Andreas Schwab <schwab@suse.de>
1981 * regcache.c (write_pc_pid): Restore missing else.
1983 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
1985 * regcache.c (regcache_print): Use get_current_regcache ()
1986 instead of current_regcache.
1988 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
1991 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1992 instead of bfd_make_section_anyway.
1993 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1994 when clearing SEC_LOAD.
1996 2007-06-19 Joseph Myers <joseph@codesourcery.com>
1998 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1999 registers for big-endian.
2001 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2003 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2004 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2005 * gdbarch.c, gdbarch.h: Regenerate.
2007 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2009 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2010 gdbarch_believe_pcc_promotion.
2011 * stabsread.c (define_symbol): Likewise.
2012 Remove unnecessary definition.
2013 * coffread.c (process_coff_symbol): Remove unnecessary code.
2014 * gdbarch.c, gdbarch.h: Regenerate.
2016 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2018 * configure.ac: Do not use ${objdir}.
2019 * configure: Regenerated.
2021 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2023 * gdbarch.sh (deprecated_register_size): Remove.
2024 * gdbarch.h, gdbarch.c: Regenerate.
2026 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2027 by INT_REGISTER_SIZE.
2028 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2029 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2030 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2031 set_gdbarch_deprecated_register_size.
2033 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2035 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2036 gdbarch_deprecated_fp_regnum.
2037 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2038 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2039 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2040 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2042 * gdbarch.c, gdbarch.h: Regenerate.
2044 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2046 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2047 gdbarch_extract_return_value.
2048 * value.c (generic_use_struct_convention): Likewise (comment).
2049 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2050 * arch-utils.c (legacy_return_value): Likewise.
2051 * arch-utils.h (legacy_return_value): Likewise (comment).
2052 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2053 gdbarch_store_return_value.
2054 * stack.c (return_command): Likewise (comment).
2055 * arch-utils.h (legacy_return_value): Likewise (comment).
2056 * arch-utils.c (legacy_return_value): Likewise.
2057 * gdbarch.c, gdbarch.h: Regenerate.
2059 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2061 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2062 gdbarch_deprecated_use_struct_convention.
2063 * arch-utils.c (legacy_return_value): Likewise.
2064 * gdbarch.c, gdbarch.h: Regenerate.
2066 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2068 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2069 gdbarch_deprecated_function_start_offset.
2070 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2071 * linespec.c (minsym_found): Likewise.
2072 * infrun.c (handle_inferior_event): Likewise.
2073 * infcall.c (find_function_addr): Likewise.
2074 * cli/cli-cmds.c (disassemble_command): Likewise.
2075 * gdbarch.c, gdbarch.h: Regenerate.
2077 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2079 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2080 gdbarch_deprecated_reg_struct_has_addr.
2081 * infcall.c (call_function_by_hand): Likewise.
2082 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2083 * gdbarch_deprecated_reg_struct_has_addr_p.
2084 * infcall.c (call_function_by_hand): Likewise.
2085 * gdbarch.c, gdbarch.h: Regenerate.
2087 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2089 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2090 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2091 (sh_gdbarch_init): Remove
2092 set_gdbarch_deprecated_extract_struct_value_address.
2093 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2094 (sh64_gdbarch_init): Remove
2095 set_gdbarch_deprecated_extract_struct_value_address.
2096 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2097 (ia64_gdbarch_init): Remove
2098 set_gdbarch_deprecated_extract_struct_value_address.
2099 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2100 (frv_gdbarch_init): Remove
2101 set_gdbarch_deprecated_extract_struct_value_address.
2102 * gdbarch.c, gdbarch.h: Regenerate.
2104 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2106 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2107 * v850-tdep.c (v850_unwind_sp): Likewise.
2108 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2109 * stack.c (frame_info): Likewise.
2110 * stabsread.c (define_symbol): Likewise.
2111 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2112 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2113 (sh_unwind_sp): Likewise.
2114 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2115 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2116 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2117 (rs6000_frame_cache): Likewise.
2118 * rs6000-nat.c (store_register): Likewise.
2119 * remote-mips.c (mips_wait): Likewise.
2120 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2121 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2122 (ppc64_sysv_abi_push_dummy_call): Likewise.
2123 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2124 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2125 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2126 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2127 * m32r-rom.c (m32r_supply_register): Likewise.
2128 * frame.c (frame_sp_unwind): Likewise.
2129 * mips-tdep.c (mips_insn16_frame_cache)
2130 (mips_insn32_frame_cache): Likewise (comment).
2131 * m68klinux-nat.c (supply_gregset): Likewise.
2132 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2133 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2134 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2135 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2136 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2137 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2138 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2139 (cris_register_type, crisv32_register_type)
2140 (cris_dwarf2_frame_init_reg): Likewise.
2141 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2142 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2143 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2144 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2146 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2147 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2148 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2149 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2150 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2151 * v850-tdep.c (v850_unwind_pc): Likewise.
2152 * stack.c (frame_info): Likewise.
2153 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2154 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2155 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2156 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2157 (sh_dsp_show_regs): Likewise.
2158 * shnbsd-tdep.c (shnbsd_supply_gregset)
2159 (shnbsd_collect_gregset): Likewise.
2160 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2161 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2162 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2163 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2164 (6000_register_reggroup_p, rs6000_unwind_pc)
2165 (rs6000_frame_cache): Likewise.
2166 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2167 (rs6000_store_inferior_registers): Likewise.
2168 * remote-mips.c (mips_wait, mips_load): Likewise.
2169 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2170 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2171 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2172 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2173 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2174 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2175 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2176 (store_ppc_registers, fill_gregset): Likewise.
2177 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2178 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2179 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2180 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2181 * m68klinux-nat.c (supply_gregset): Likewise.
2182 * irix5-nat.c (fill_gregset): Likewise.
2183 * i386-tdep.c (i386_unwind_pc): Likewise.
2184 * i386-linux-nat.c (i386_linux_resume): Likewise.
2185 * frame.c (get_prev_frame_1): Likewise.
2186 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2187 * dbug-rom.c (dbug_supply_register): Likewise.
2188 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2189 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2190 (cris_register_type, crisv32_register_type, crisv32_register_name)
2191 (cris_dwarf2_frame_init_reg, find_step_target)
2192 (cris_software_single_step, cris_supply_gregset)
2193 (cris_regnums): Likewise.
2194 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2195 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2196 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2197 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2198 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2200 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2201 * dbug-rom.c (dbug_supply_register): Likewise.
2202 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2203 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2204 * win32-nat.c (win32_resume): Likewise.
2205 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2206 * m68k-tdep.c (m68k_register_type): Likewise.
2207 * m68klinux-nat.c (supply_gregset): Likewise.
2209 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2210 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2211 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2212 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2213 (fv_reg_base_num, dr_reg_base_num): Likewise.
2214 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2215 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2216 (sh64_extract_return_value, sh64_store_return_value)
2217 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2218 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2219 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2220 (invalidate_cache): Likewise.
2221 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2222 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2223 (mipsnbsd_fill_fpreg): Likewise.
2224 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2225 (mipsnbsd_store_inferior_registers): Likewise.
2226 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2227 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2228 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2229 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2230 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2231 (fill_fpregset): Likewise.
2232 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2233 * i386-tdep.h (struct_return): Likewise (comment).
2234 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2235 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2236 (go32_store_registers): Likewise.
2237 * alpha-tdep.c (alpha_next_pc): Likewise.
2238 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2239 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2240 (alphabsd_store_inferior_registers): Likewise.
2241 * core-regset.c (fetch_core_registers): Likewise.
2242 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2244 * gdbarch.c, gdbarch.h: Regenerate.
2246 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2248 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2249 * dbxread.c (start_psymtab): Check HAVE_ELF.
2250 (aout_sym_fns): Likewise.
2251 * elfread.c (elf_symfile_segments): New.
2252 (elf_sym_fns): Add elf_symfile_segments.
2253 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2254 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2255 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2256 * somread.c (som_sym_fns): Use default_symfile_segments.
2257 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2258 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2259 (default_symfile_segments): New function.
2260 (syms_from_objfile): Update call to find_sym_fns.
2261 (symfile_get_segment_data, free_symfile_segment_data): New.
2262 (symfile_map_offsets_to_segments): New.
2263 (symfile_find_segment_sections): New.
2264 * symfile.h (struct symfile_segment_data): New.
2265 (struct sym_fns): Add sym_segments.
2266 (default_symfile_segments, symfile_get_segment_data)
2267 (free_symfile_segment_data): New prototypes.
2268 (symfile_map_offsets_to_segments): Likewise.
2269 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2270 * Makefile.in (COMMON_OBS): Remove elfread.o.
2271 (elf_internal_h): New.
2272 (elfread.o): Update.
2273 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2275 * config.in, configure: Regenerated.
2276 * NEWS: Mention qOffsets changes.
2278 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2280 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2281 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2282 Replace global variable declaration with compatibility macro.
2283 (struct builtin_m2_type): New data type.
2284 (builtin_m2_type): Add prototype.
2285 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2286 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2287 Remove global variables.
2288 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2289 (build_m2_types): New function.
2290 (m2_type_data): New variable.
2291 (builtin_m2_type): New function.
2292 (_initialize_m2_language): Do not build data types. Register
2293 m2_type_data per-gdbarch data.
2295 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2297 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2298 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2299 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2300 builtin_type_f_real_s8, builtin_type_f_real_s16,
2301 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2302 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2303 variable declaration with compatibility macro.
2304 (struct builtin_f_type): New data type.
2305 (builtin_f_type): Add prototype.
2306 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2307 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2308 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2309 builtin_type_f_real_s8, builtin_type_f_real_s16,
2310 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2311 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2312 (f_language_arch_info): Use builtin_f_type instead of variables.
2313 (build_fortran_types): Build builtin_f_type structure instead of
2314 setting global type variables.
2315 (f_type_data): New variable.
2316 (builtin_f_type): New function.
2317 (_initialize_f_language): Do not call build_fortran_types. Do not
2318 swap global type variables. Register f_type_data per-gdbarch data.
2320 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2322 * f-lang.c (_initialize_f_language): Do not initialize or
2323 swap builtin_type_string.
2325 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2327 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2328 value_of_builtin_frame_reg): Remove.
2329 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2330 inactive call to value_of_builtin_frame_reg.
2332 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2334 * gdbarch.sh (bfd_vma_bit): Remove.
2335 * gdbarch.c, gdbarch.h: Regenerate.
2337 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2338 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2339 (build_gdbtypes): Do not initialize it.
2340 (_initialize_gdbtypes): Do not swap it.
2342 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2344 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2345 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2346 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2347 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2348 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2349 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2350 builtin_type_vec64, builtin_type_vec128): Remove.
2351 (init_simd_type): Remove.
2352 (init_vector_type): Make global.
2353 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2354 (build_gdbtypes): Do not build vector types.
2355 (_initialize_gdbtypes): Do not swap vector types.
2356 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2357 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2358 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2359 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2360 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2361 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2362 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2363 (init_vector_type): Add prototype.
2365 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2366 i386_sse_type members.
2367 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2368 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2369 (i386_init_types): Do not build vector types.
2370 (i386_mmx_type, i386_sse_type): New functions.
2371 (i386_register_type): Call them instead of using global variables.
2372 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2373 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2374 of using global variable.
2376 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2377 and ppc_builtin_type_vec128 members.
2378 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2379 (rs6000_builtin_type_vec128): Likewise.
2380 (rs6000_register_type): Call them instead of using builtin_type_vec64
2381 and builtin_type_vec128.
2382 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2384 * spu-tdep.c (struct gdbarch_tdep): New data type.
2385 (spu_builtin_type_vec128): Remove variable.
2386 (spu_builtin_type_vec128): New function.
2387 (spu_register_type): Call it instead of using global variable.
2388 (spu_gdbarch_init): Allocate tdep structure.
2389 (spu_init_vector_type): Remove function.
2390 (_initialize_spu_tdep): Do not call it.
2392 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2394 * amd64-tdep.c (struct amd64_register_info): Remove.
2395 (amd64_register_info): Remove.
2396 (amd64_register_names): New static variable.
2397 (AMD64_NUM_REGS): Use amd64_register_names instead of
2398 amd64_register_info.
2399 (amd64_register_name): Likewise.
2400 (amd64_register_type): Do not refer to amd64_register_info.
2402 * s390-tdep.c (struct s390_register_info): Remove.
2403 (s390_register_info): Remove.
2404 (s390_register_name): Do not refer to s390_register_info.
2405 (s390_register_type): Likewise.
2407 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2408 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2409 (sparc64_register_names, sparc64_pseudo_register_names): New.
2410 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2411 sparc64_register_names and sparc64_pseudo_register_names instead of
2412 sparc64_register_info and sparc64_pseudo_register_info.
2413 (sparc64_register_name): Likewise.
2414 (sparc64_register_type): Do not refer to sparc64_register_info
2415 and sparc64_pseudo_register_info.
2417 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2419 * c-lang.c (cplus_builtin_types): Remove.
2420 (enum cplus_primitive_types): New data type.
2421 (cplus_language_arch_info): New function.
2422 (cplus_language_defn): Set la_language_arch_info member. Do not set
2423 la_builtin_type_vector and string_char_type members.
2425 * f-lang.c (f_builtin_types): Remove.
2426 (enum f_primitive_types): New data type.
2427 (f_language_arch_info): New function.
2428 (f_language_de): Set la_language_arch_info member. Do not set
2429 la_builtin_type_vector and string_char_type members.
2431 * m2-lang.c (m2_builtin_types): Remove.
2432 (enum m2_primitive_types): New data type.
2433 (m2_language_arch_info): New function.
2434 (m2_language_defn): Set la_language_arch_info member. Do not set
2435 la_builtin_type_vector and string_char_type members.
2437 * objc-lang.c (objc_builtin_types): Remove.
2438 (objc_language): Set la_language_arch_info member. Do not set
2439 la_builtin_type_vector and string_char_type members.
2441 * p-lang.c (pascal_builtin_types): Remove.
2442 (enum pascal_primitive_types): New data type.
2443 (pascal_language_arch_info): New function.
2444 (pascal_language_defn): Set la_language_arch_info member. Do not set
2445 la_builtin_type_vector and string_char_type members.
2447 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2449 * regcache.c (struct regcache): Add ptid_t member.
2450 (regcache_xmalloc): Initialize it.
2451 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2452 (regcache_dup): Likewise.
2453 (regcache_dup_no_passthrough): Likewise.
2454 (current_regcache): Make static.
2455 (registers_ptid): Remove variable.
2456 (get_thread_regcache): New function.
2457 (get_current_regcache): New function.
2458 (registers_changed): Implement by freeing current regcache.
2459 (regcache_raw_read): Do not refer to current_regcache. Set
2460 inferior_ptid to regcache->ptid while calling target routines.
2461 (regcache_raw_write): Likewise.
2462 (regcache_raw_supply): Do not refer to current_regcache.
2463 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2464 (write_pc_pid): Likewise.
2465 (build_regcache): Remove.
2466 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2467 or deprecated_register_gdbarch_swap. Do not initialize
2469 * regcache.h (get_current_regcache): Add prototype.
2470 (get_thread_regcache): Likewise.
2471 (current_regcache): Remove declaration.
2473 * corelow.c (core_open): Replace current_regcache by
2474 get_current_regcache ().
2475 * frame.c (frame_pop): Likewise.
2476 (put_frame_register): Likewise.
2477 (get_current_frame, create_new_frame): Likewise.
2478 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2479 * stack.c (return_command): Likewise.
2480 * infcall.c (call_function_by_hand): Likewise.
2481 * infrun.c (resume): Likewise.
2482 (save_inferior_status, restore_inferior_status): Likewise.
2483 * linux-fork.c (fork_load_infrun_state): Likewise.
2484 (fork_save_infrun_state): Likewise.
2485 * win32-nat.c (win32_resume): Likewise.
2486 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2487 * monitor.c (monitor_wait): Likewise.
2488 * remote.c (remote_wait): Likewise.
2489 * remote-mips.c (mips_wait): Likewise.
2491 * bsd-kvm.c (bsd_kvm_open): Likewise
2492 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2493 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2494 * i386-linux-nat.c (i386_linux_resume): Likewise.
2495 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2496 (ia64_linux_stopped_data_address): Likewise.
2498 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2499 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2500 * mep-tdep.c (current_me_module, current_options): Likewise.
2501 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2503 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2504 regcache instead of current_regcache. Call target_fetch_registers.
2505 (linux_nat_corefile_thread_callback): Update call site.
2506 (linux_nat_do_registers): Likewise.
2507 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2508 of current_regcache.
2509 (procfs_make_note_section): Likewise.
2510 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2511 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2512 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2513 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2515 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2517 * regcache.c (read_register, read_register_pid): Remove.
2518 (write_register, write_register_pid): Likewise.
2519 * regcache.h (read_register, read_register_pid): Remove prototype.
2520 (write_register, write_register_pid): Likewise.
2522 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2524 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2525 (write_pc): Likewise. Remove default implementation, add predicate.
2526 * gdbarch.c, gdbarch.h: Regenerate.
2527 * regcache.c (read_pc_pid): Use current regcache instead of calling
2529 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2531 (generic_target_write_pc): Remove.
2532 * inferior.h (generic_target_write_pc): Remove.
2533 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2535 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2536 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2537 * sh-tdep.c (sh_gdbarch_init): Likewise.
2538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2540 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2541 argument. Use REGCACHE instead of calling read_register_pid.
2542 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2543 * hppa-tdep.c (hppa_read_pc): Likewise.
2544 * hppa-tdep.h (hppa_read_pc): Likewise.
2545 * ia64-tdep.c (ia64_read_pc): Likewise.
2546 * m32r-tdep.c (m32r_read_pc): Likewise.
2547 * mep-tdep.c (mep_read_pc): Likewise.
2548 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2549 * spu-tdep.c (spu_read_pc): Likewise.
2551 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2552 argument. Use REGCACHE instead of calling write_register_pid.
2553 * avr-tdep.c (avr_write_pc): Likewise.
2554 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2555 * hppa-tdep.c (hppa_write_pc): Likewise.
2556 * hppa-tdep.h (hppa_write_pc): Likewise.
2557 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2558 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2559 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2560 * ia64-tdep.c (ia64_write_pc): Likewise.
2561 * ia64-tdep.h (ia64_write_pc): Likewise.
2562 * m32r-tdep.c (m32r_write_pc): Likewise.
2563 * m88k-tdep.c (m88k_write_pc): Likewise.
2564 * mep-tdep.c (mep_write_pc): Likewise.
2565 * mips-tdep.c (mips_write_pc): Likewise.
2566 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2567 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2568 * sparc-tdep.c (sparc_write_pc): Likewise.
2569 * spu-tdep.c (spu_write_pc): Likewise.
2571 * mips-tdep.c (read_signed_register): Remove.
2572 (read_signed_register_pid): Likewise.
2573 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2574 Use REGCACHE instead of calling read_signed_register_pid.
2576 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2578 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2579 * gdbarch.c, gdbarch.h: Regenerate.
2580 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2581 (push_dummy_code): Likewise. Pass it to callee.
2582 (call_function_by_hand): Pass current regcache to push_dummy_code.
2584 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2585 argument. Use it instead of current_regcache.
2587 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2588 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2590 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2592 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2593 * gdbarch.c, gdbarch.h: Regenerate.
2594 * infrun.c (handle_inferior_event): Pass current frame to
2595 gdbarch_get_longjmp_target.
2597 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2598 Read registers from FRAME instead of using read_register.
2599 Use get_frame_arch instead of current_gdbarch.
2600 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2601 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2602 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2603 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2604 (mips64_linux_get_longjmp_target): Likewise.
2605 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2607 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2609 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2610 * gdbarch.c, gdbarch.h: Regenerate.
2611 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2612 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2613 * infrun.c (handle_inferior_event): Pass current frame to
2614 gdbarch_skip_trampoline_code and skip_language_trampoline.
2616 * language.c (unk_lang_trampoline): Add FRAME argument.
2617 (skip_language_trampoline): Add FRAME argument. Pass it to
2618 skip_trampoline callback.
2619 * language.h: Add forward declaration of struct frame_info.
2620 (struct language_defn): Add FRAME argument to skip_trampoline.
2621 (skip_language_trampoline): Add FRAME argument.
2622 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2623 to skip_trampoline callback.
2624 * cp-abi.h: Add forward declaration of struct frame_info.
2625 (cplus_skip_trampoline): Add FRAME argument.
2626 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2627 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2628 to gdbarch_skip_trampoline_code.
2629 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2630 to gdbarch_skip_trampoline_code.
2632 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2633 * symtab.h (find_solib_trampoline_target): Likewise.
2634 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2635 find_solib_trampoline_target.
2637 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2638 from FRAME instead of calling read_register.
2640 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2641 argument. Read registers from FRAME instead of using read_register.
2642 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2643 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2645 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2648 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2650 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2651 registers from FRAME instead of using read_signed_register.
2653 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2655 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2656 instead of using read_register.
2657 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2658 ppc64_standard_linkage_target.
2659 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2660 Pass it to find_solib_trampoline_target. Read registers from FRAME
2661 instead of using read_register.
2663 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2666 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2668 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2670 * gdbarch.c, gdbarch.h: Regenerate.
2671 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2673 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2674 registers from FRAME instead of using read_register.
2675 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2676 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2677 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2680 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2681 from FRAME instead of using read_register.
2682 (thumb_get_next_pc): Likewise.
2683 (arm_get_next_pc): Likewise.
2684 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2685 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2686 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2689 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2690 from FRAME instead of using read_register.
2691 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2692 to find_step_target.
2694 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2695 from FRAME instead of using read_register / read_signed_register.
2696 (extended_mips16_next_pc): Likewise.
2697 (mips16_next_pc): Likewise.
2698 (mips_next_pc): Likewise.
2699 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2700 to mips_next_pc. Use get_frame_pc instead of read_pc.
2701 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2704 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2705 of current frame. Read registers from FRAME.
2706 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2707 branch_dest. Use get_frame_pc instead of read_pc.
2708 (rs6000_software_single_step): Likewise.
2709 (bl_to_blrl_insn_p): Do not call branch_dest.
2710 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2713 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2714 Read registers from FRAME instead of current regcache.
2715 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2716 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2717 * sparc-tdep.c (sparc_address_from_register): Remove.
2718 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2719 GDBARCH. Pass FRAME to step_trap callback.
2720 (sparc_step_trap): Add FRAME argument.
2721 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2722 to sparc_analyze_control_transfer. Read registers from FRAME instead
2723 of calling sparc_address_from_register.
2724 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2726 (sparc_address_from_register): Remove prototype.
2727 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2728 (sparcnbsd_step_trap): Add FRAME argument.
2730 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2731 by FRAME. Read registers from FRAME instead of REGCACHE.
2733 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2735 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2736 instead of calling read_register.
2738 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2739 calling write_register.
2741 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2742 calling write_register.
2744 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2745 instead of calling read_register.
2746 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2747 instead of calling read_register and write_register.
2749 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2750 instead of current_regcache.
2752 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2753 of calling write_register.
2754 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2755 parameter instead of current_regcache.
2757 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2758 instead of calling read_register.
2759 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2760 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2761 (mips_n32n64_push_dummy_call): Likewise.
2762 (mips_o32_push_dummy_call): Likewise.
2763 (mips_o64_push_dummy_call): Likewise.
2765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2766 parameter instead of current_regcache.
2768 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2769 Use it instead of read_register and write_register.
2770 (xtensa_register_read_masked): Likewise.
2771 (xtensa_pseudo_register_read): Update call.
2772 (xtensa_pseudo_register_write): Likewise.
2773 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2774 instead of calling read_register.
2775 (xtensa_push_dummy_call): Update comment.
2777 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2779 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2780 by frame_unwind_register_signed calls.
2781 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2782 frame allocations when called with NULL NEXT_FRAME parameter.
2783 (read_next_frame_reg): Remove.
2785 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2786 instead of reading the FPSCR register.
2787 (sh_frame_cache): Pass unwound FPSCR register value to
2788 sh_analyze_prologue.
2789 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2791 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2792 instead of reading the CTBP register.
2793 (v850_frame_cache): Pass unwound CTBP register value to
2794 v850_analyze_prologue.
2796 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2798 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2799 * sh-tdep.c (sh_show_regs): Likewise.
2800 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2801 (sh_generic_show_regs): Add FRAME parameter. Use register
2802 values from that frame instead of calling read_register.
2803 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2804 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2805 sh_dsp_show_regs): Likewise.
2806 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2807 sh64_show_regs): Likewise.
2809 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2811 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2812 current regcache instead of calling read_register.
2814 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2816 * mep-tdep.c (current_me_module): Read from current regcache
2817 instead of calling read_register.
2818 (current_options): Likewise.
2820 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2822 * cris-tdep.c (cris_stopped_data_address): Read register values
2823 from current frame instead of calling read_register.
2824 * frv-tdep.c (frv_stopped_data_address): Likewise.
2826 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2828 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2829 instead of write_register (PC_REGNUM, ...).
2831 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2833 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2834 explaining why the PC adjustment code is necessary.
2836 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
2838 * m68k-tdep.h (enum m68k_flavour): New.
2839 (struct gdbarch_tdep): New fields
2840 float_return, flavour and fpregs_present.
2841 * m68k-tdep.c (m68k_register_type): Use
2842 fpregs_present and conditionalize floating
2843 registers type on flavour.
2844 (m68k_register_names): New.
2845 (m68k_register_name): Use the above.
2846 (m68k_convert_register_p): Consult fpregs_present.
2847 (m68k_register_to_value, m68k_value_to_register):
2848 Use register_type to obtain the type of floating
2850 (m68k_svr4_extract_return_value): Check tdep->float_return.
2851 Use register_type to get the type of floating
2853 (m68k_svr4_store_return_value): Likewise.
2854 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2855 (m68k_analyze_register_saves): Likewise.
2856 (m68k_gdbarch_init): Extract infromation
2857 from XML description, if present. Guess coldfire by
2858 looking at the file, if present. Conditionalize
2859 setting of long double format. Set decr_pc_after_break
2860 to 2 on coldfire and fido. Enable XML-driven
2861 register description.
2862 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2863 size of tdep->fpreg_type, as opposed to hardcoded value.
2864 * Makefile.in (m68k-tdep.o): Update dependencies.
2866 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2868 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2869 qXfer:spu:write remote packet types.
2871 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2873 * xml-tdesc.c (tdesc_start_target): New.
2874 (target_attributes): New.
2875 (tdesc_elements): Use it.
2876 * features/gdb-target.dtd: Add #FIXED version attribute for
2879 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
2881 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2883 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2885 * fork-child.c (fork_inferior): Update comment.
2887 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2889 * features/Makefile: Generate regformats for mips-linux and
2891 * features/sort-regs.xsl: Correct typo.
2892 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2893 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2896 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2898 * config/mips/linux.mh (TDEP_XML): New.
2899 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2900 * mips-linux-nat.c (mips_linux_register_addr): Handle
2901 MIPS_RESTART_REGNUM.
2902 (mips64_linux_register_addr): Likewise.
2903 (super_xfer_partial, mips_linux_xfer_partial): New.
2904 (_initialize_mips_linux_nat): Add them to the target_ops.
2905 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2906 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2907 (mips_linux_o32_sigframe_init)
2908 (mips_linux_n32n64_sigframe_init): Likewise.
2909 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2910 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2911 "org.gnu.gdb.mips.linux" feature.
2912 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2913 (mips_linux_restart_reg_p): New prototype.
2914 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2915 initialization routine.
2916 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2918 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2920 * Makefile.in (mips-tdep.o): Update.
2921 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2922 (mips_n32_n64_aliases, mips_register_aliases): New.
2923 (mips_register_name): Call tdesc_register_name.
2924 (mips_tdesc_register_reggroup_p): New.
2925 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2926 (mips_gdbarch_init): Add target-described register support.
2927 Register aliases for register names.
2928 * target-descriptions.c (tdesc_register_name): Make global.
2929 (tdesc_register_in_reggroup_p): New function, broken out from
2930 tdesc_register_reggroup_p.
2931 (tdesc_register_reggroup_p): Use it.
2932 * target-descriptions.h (tdesc_register_name)
2933 (tdesc_register_in_reggroup_p): New prototypes.
2934 * NEWS: Correct formatting. Mention MIPS register support.
2935 * features/mips-cp0.xml, features/mips-fpu.xml,
2936 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2937 features/mips64-cpu.xml: New files.
2939 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2941 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2942 * valops.c (value_cast): Likewise.
2943 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2944 * ui-out.c (ui_out_field_core_addr): Likewise.
2945 * tracepoint.c (tracepoints_info): Likewise.
2946 * symtab.c (print_msymbol_info): Likewise.
2947 * solib-irix.c (irix_current_sos)
2948 (irix_open_symbol_file_object): Likewise.
2949 * remote.c (build_remote_gdbarch_data): Likewise.
2950 * prologue-value.c (make_pv_area): Likewise.
2951 * procfs.c (info_mappings_callback): Likewise.
2952 * printcmd.c (print_scalar_formatted)
2953 (deprecated_print_address_numeric): Likewise.
2954 * memattr.c (mem_info_command): Likewise.
2955 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2956 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2957 * exec.c (print_section_info): Likewise.
2958 * dwarf2read.c (read_subrange_type): Likewise.
2959 * dwarf2loc.c (find_location_expression): Likewise.
2960 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2961 (signed_address_type, execute_stack_op): Likewise.
2962 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2963 * gdbarch.c, gdbarch.h: Regenerate.
2965 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2967 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2968 * arch-utils.c (show_architecture): Likewise.
2969 * remote-mips.c (mips_open): Likewise
2970 * nto-tdep.c (nto_find_and_open_solib)
2971 (nto_init_solib_absolute_prefix): Likewise.
2972 * nto-procfs (procfs_open): Likewise.
2973 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2974 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2975 * gdbarch.c, gdbarch.h: Regenerate.
2977 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2979 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2980 * gdbtypes.c (build_flt): Likewise.
2981 * gdbarch.c, gdbarch.h: Regenerate.
2983 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2985 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2986 gdbarch_breakpoint_from_pc.
2987 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2988 * remote.c (remote_insert_breakpoint)
2989 (remote_insert_hw_breakpoint): Likewise.
2990 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2991 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2992 * breakpoint.h (bp_target_info): Likewise (comment).
2993 * breakpoint.c (read_memory_nobpt): Likewise.
2994 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2995 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2996 * gdbarch.c, gdbarch.h: Regenerate.
2998 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3000 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3001 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3002 * solib-pa64.c (read_dynamic_info): Likewise.
3003 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3004 * solib.c (info_sharedlibrary_command): Likewise.
3005 * s390-nat.c (SUBOFF): Likewise.
3006 * p-valprint.c (pascal_val_print): Likewise.
3007 * procfs.c (info_proc_mappings): Likewise.
3008 * printcmd.c (decode_format): Likewise.
3009 * nto-tdep.c (nto_truncate_ptr): Likewise.
3010 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3011 (mips64_linux_get_longjmp_target): Likewise.
3012 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3013 * jv-valprint.c (java_value_print): Likewise.
3014 * jv-lang.c (get_java_object_header_size): Likewise.
3015 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3016 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3017 (hppa_hpux_unwind_adjust_stub): Likewise.
3018 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3019 * gdbtypes.c (make_pointer_type, make_reference_type)
3020 (smash_to_memberptr_type): Likewise.
3021 * gdbarch.c, gdbarch.h: Regenerate.
3023 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3025 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3026 (print_gp_register_row): Stop before printing a register bigger
3027 than the ABI register size.
3028 (mips_print_registers_info): Update call to mips_print_register.
3030 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3032 * expression.h (enum exp_opcode): Document a register name for
3034 * parse.c (write_dollar_variable): Write the register name for
3036 (operator_length_standard): Expect the register name following
3038 * ada-lang.c (resolve_subexp): Likewise.
3039 * ax-gdb.c (gen_expr): Likewise.
3040 * eval.c (evaluate_subexp_standard): Likewise.
3041 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3043 * tracepoint.c (encode_actions): Likewise.
3045 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3047 * utils.c (set_screen_size): Use INT_MAX for default columns.
3049 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3051 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3052 qXfer:spu:write packet types.
3054 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3056 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3057 * gdbarch.c, gdbarch.h: Regenerate.
3059 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3061 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3062 gdbarch_stab_reg_to_regnum.
3063 * stabsread.c (define_symbol): Likewise.
3064 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3065 gdbarch_ecoff_reg_to_regnum.
3066 * mdebugread.c (parse_symbol): Likewise.
3067 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3068 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3069 gdbarch_dwarf_reg_to_regnum.
3070 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3071 * coffread.c (process_coff_symbol): Likewise.
3072 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3073 gdbarch_dwarf2_reg_to_regnum.
3074 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3075 (locexpr_describe_location): Likewise.
3076 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3077 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3078 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3079 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3080 * gdbarch.c, gdbarch.h: Regenerate.
3082 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3084 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3085 gdbarch_smash_text_address.
3086 * somread.c (som_symtab_read): Likewise.
3087 * elfread.c (record_minimal_symbol): Likewise.
3088 * dbxread.c (process_one_symbol): Likewise.
3089 * coffread.c (coff_symtab_read): Likewise.
3090 * gdbarch.c, gdbarch.h: Regenerate.
3092 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3094 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3095 * findvar.c (value_from_register): Likewise.
3096 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3097 * valops.c (value_assign): Likewise.
3098 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3099 gdbarch_convert_register_p.
3100 * findvar.c (value_from_register): Likewise.
3101 * valops.c (value_assign): Likewise.
3102 * gdbarch.c, gdbarch.h: Regenerate.
3104 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3106 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3107 gdbarch_register_sim_regno.
3108 * sim-regno.h (sim_regno): Likewise (comment).
3109 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3110 * gdbarch.c, gdbarch.h: Regenerate.
3112 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3114 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3115 gdbarch_virtual_frame_pointer.
3116 * tracepoint.c (encode_actions): Likewise.
3117 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3118 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3119 * gdbarch.c, gdbarch.h: Regenerate.
3121 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3123 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3124 * p-lang.c (pascal_create_fundamental_type): Likewise.
3125 * objc-lang.c (objc_create_fundamental_type): Likewise.
3126 * mdebugread.c (_initialize_mdebugread): Likewise.
3127 * m2-lang.c (m2_create_fundamental_type)
3128 (_initialize_m2_language): Likewise.
3129 * gdbtypes.c (build_gdbtypes): Likewise.
3130 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3131 * doublest.c (floatformat_from_length): Likewise.
3132 * c-lang.c (c_create_fundamental_type): Likewise.
3133 * ada-lang.c (ada_create_fundamental_type)
3134 (ada_language_arch_info): Likewise.
3135 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3136 * value.c (unpack_double): Likewise (comment).
3137 * gdbtypes.c (build_gdbtypes): Likewise.
3138 * doublest.c (floatformat_from_length): Likewise.
3139 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3140 * valarith.c (value_binop): Likewise.
3141 * p-lang.c (pascal_create_fundamental_type): Likewise.
3142 * objc-lang.c (objc_create_fundamental_type): Likewise.
3143 * mdebugread.c (_initialize_mdebugread): Likewise.
3144 * m2-lang.c (m2_create_fundamental_type): Likewise.
3145 * gdbtypes.c (build_gdbtypes): Likewise.
3146 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3147 * doublest.c (floatformat_from_length): Likewise.
3148 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3149 * c-lang.c (c_create_fundamental_type): Likewise.
3150 * ada-lex.l (processReal): Likewise.
3151 * ada-lang.c (ada_create_fundamental_type)
3152 (ada_language_arch_info): Likewise.
3153 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3154 * value.c (unpack_double): Likewise (comment).
3155 * gdbtypes.c (build_gdbtypes): Likewise.
3156 * doublest.c (floatformat_from_length): Likewise.
3157 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3158 gdbarch_long_double_bit.
3159 * p-lang.c (pascal_create_fundamental_type): Likewise.
3160 * objc-lang.c (objc_create_fundamental_type): Likewise.
3161 * m2-lang.c (m2_create_fundamental_type): Likewise.
3162 * gdbtypes.c (build_gdbtypes): Likewise.
3163 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3164 * doublest.c (floatformat_from_length): Likewise.
3165 * c-lang.c (c_create_fundamental_type): Likewise.
3166 * ada-lex.l (processReal): Likewise.
3167 * ada-lang.c (ada_create_fundamental_type)
3168 (ada_language_arch_info): Likewise.
3169 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3170 gdbarch_long_double_format.
3171 * gdbtypes.c (build_gdbtypes): Likewise.
3172 * doublest.c (floatformat_from_length): Likewise.
3173 * gdbarch.c, gdbarch.h: Regenerate.
3175 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3177 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3178 * ada-lang.c (ada_create_fundamental_type)
3179 (ada_language_arch_info): Likewise.
3180 * c-lang.c (c_create_fundamental_type): Likewise.
3181 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3182 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3183 * m2-lang.c (m2_create_fundamental_type): Likewise.
3184 * objc-lang.c (objc_create_fundamental_type): Likewise.
3185 * p-lang.c (pascal_create_fundamental_type): Likewise.
3186 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3187 * c-exp.y (parse_number): Likewise.
3188 * objc-exp.y (parse_number): Likewise.
3189 * ada-lex.l (processInt): Likewise.
3190 * f-exp.y (parse_number): Likewise.
3191 * p-exp.y (parse_number): Likewise.
3192 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3193 (gdbtypes_post_init, build_gdbtypes): Likewise.
3194 * p-lang.c (pascal_create_fundamental_type): Likewise.
3195 * parse.c (build_parse): Likewise.
3196 * xcoffread.c (_initialize_xcoffread): Likewise.
3197 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3198 (read_range_type): Likewise.
3199 * objc-lang.c (objc_create_fundamental_type): Likewise.
3200 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3201 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3202 (m2_create_fundamental_type): Likewise.
3203 * c-lang.c (c_create_fundamental_type): Likewise.
3204 * coffread.c (coff_read_enum_type): Likewise.
3205 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3206 * dwarf2read.c (new_symbol): Likewise.
3207 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3208 * c-exp.y (parse_number): Likewise.
3209 * objc-exp.y (parse_number): Likewise.
3210 * ada-lex.l (processInt): Likewise.
3211 * f-exp.y (parse_number): Likewise.
3212 * p-exp.y (parse_number): Likewise.
3213 * valarith.c (value_binop): Likewise.
3214 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3215 * ada-lang.c (ada_create_fundamental_type)
3216 (ada_language_arch_info): Likewise.
3217 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3218 * symfile.c (TARGET_LONG_BYTES): Likewise.
3219 * p-lang.c (pascal_create_fundamental_type): Likewise.
3220 * objc-lang.c (objc_create_fundamental_type): Likewise.
3221 * m2-lang.c (m2_create_fundamental_type): Likewise.
3222 * f-lang.c (f_create_fundamental_type): Likewise.
3223 * c-lang.c (c_create_fundamental_type): Likewise.
3224 * coffread.c (decode_base_type): Likewise.
3225 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3226 * c-exp.y (parse_number): Likewise.
3227 * objc-exp.y (parse_number): Likewise.
3228 * p-exp.y (parse_number): Likewise.
3229 * ada-lang.c (ada_create_fundamental_type)
3230 (ada_language_arch_info): Likewise.
3231 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3232 * stabsread.c (read_range_type): Likewise.
3233 * p-lang.c (pascal_create_fundamental_type): Likewise.
3234 * objc-lang.c (objc_create_fundamental_type): Likewise.
3235 * m2-lang.c (m2_create_fundamental_type): Likewise.
3236 * f-lang.c (f_create_fundamental_type): Likewise.
3237 * c-lang.c (c_create_fundamental_type): Likewise.
3238 * gdbarch.c, gdbarch.h: Regenerate.
3240 2007-06-12 Andreas Schwab <schwab@suse.de>
3242 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3243 (struct frame_unwind): Add dealloc_cache.
3244 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3246 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3247 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3248 (libunwind_frame_unwind): Set dealloc_cache.
3249 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3251 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3252 Markus Deuling <deuling@de.ibm.com>
3254 * remote.c (remote_write_qxfer): New function.
3255 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3256 (remote_read_qxfer): Do not cache empty objects.
3257 (_initialize_remote): Add PACKET_qXfer_spu_read and
3258 PACKET_qXfer_spu_write.
3260 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3262 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3263 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3265 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3266 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3267 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3268 * spu-tdep.c (infospucmdlist): New variable.
3269 (spu_register_name): Handle additional pseudo registers.
3270 (spu_register_type): Likewise.
3271 (spu_pseudo_register_read): Likewise.
3272 (spu_pseudo_register_write): Likewise.
3273 (spu_pseudo_register_read_spu): New function.
3274 (spu_pseudo_register_write_spu): Likewise.
3275 (info_spu_event_command): New function.
3276 (info_spu_signal_command): Likewise.
3277 (info_spu_mailbox_list): Likewise.
3278 (info_spu_mailbox_command): Likewise.
3279 (spu_mfc_get_bitfield): Likewise.
3280 (info_spu_dma_cmdlist): Likewise.
3281 (info_spu_dma_command): Likewise.
3282 (info_spu_proxydma_command): Likewise.
3283 (info_spu_command): Likewise.
3284 (_initialize_spu_tdep): Install "info spu" commands.
3286 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3288 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3289 accessing non-seekable spufs files.
3291 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3293 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3294 gdbarch_skip_trampoline_code.
3295 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3296 * objc-lang.c (objc_skip_trampoline)
3297 (objc_submethod_helper_data): Likewise.
3298 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3299 * infrun.c (handle_inferior_event): Likewise.
3300 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3301 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3302 gdbarch_in_solib_return_trampoline.
3303 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3304 * infrun.c (handle_inferior_event): Likewise.
3305 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3306 * gdbarch.c, gdbarch.h: Regenerate.
3308 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3310 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3311 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3312 * linespec.c (minsym_found): Likewise.
3313 * infrun.c (step_into_function): Likewise.
3314 * gdbarch.c, gdbarch.h: Regenerate.
3316 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3318 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3319 * valops.c (value_allocate_space_in_inferior): Likewise.
3320 * gdbarch.c, gdbarch.h: Regenerate.
3322 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3324 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3325 gdbarch_memory_insert_breakpoint.
3326 * mem-break.c (memory_insert_breakpoint): Likewise.
3327 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3328 gdbarch_memory_remove_breakpoint.
3329 * mem-break.c (memory_remove_breakpoint): Likewise.
3330 * gdbarch.c, gdbarch.h: Regenerate.
3332 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3334 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3335 gdbarch_fetch_tls_load_module_address.
3336 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3337 gdbarch_fetch_tls_load_module_address_p.
3338 * gdbarch.c, gdbarch.h: Regenerate.
3340 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3342 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3343 gdbarch_decr_pc_after_break.
3344 * tracepoint.c (trace_dump_command): Likewise.
3345 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3346 * linux-thread-db.c (check_event): Likewise.
3347 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3348 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3349 * frame.h: Likewise (comment).
3350 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3351 * aix-thread.c (aix_thread_wait): Likewise.
3352 * gdbarch.c, gdbarch.h: Regenerate.
3354 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3356 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3357 gdbarch_address_class_type_flags.
3358 * dwarf2read.c (read_tag_pointer_type): Likewise.
3359 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3360 gdbarch_address_class_type_flags_p.
3361 * dwarf2read.c (read_tag_pointer_type): Likewise.
3362 * gdbarch.c, gdbarch.h: Regenerate.
3364 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3366 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3367 * value.c (value_as_address): Likewise (comment).
3368 * remote-mips.c (common_breakpoint): Likewise.
3369 * regcache.c (read_pc_pid): Likewise.
3370 * printcmd.c (do_one_display): Likewise.
3371 * monitor.c (monitor_write_memory, monitor_read_memory)
3372 (monitor_insert_breakpoint): Likewise.
3373 * mips-tdep.c (heuristic_proc_start): Likewise.
3374 * infrun.c (insert_step_resume_breakpoint_at_frame)
3375 (insert_step_resume_breakpoint_at_caller): Likewise.
3376 * buildsym.c (record_line): Likewise.
3377 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3378 (arm_get_next_pc): Likewise.
3379 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3380 (store_regs): Likewise.
3381 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3382 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3383 * gdbarch.c, gdbarch.h: Regenerate.
3385 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3387 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3388 * tracepoint.c (scope_info): Likewise.
3389 * target.c (debug_print_register): Likewise.
3390 * stack.c (frame_info): Likewise.
3391 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3392 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3393 (sh64_media_print_registers_info)
3394 (sh64_compact_print_registers_info): Likewise.
3395 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3396 * remote-sim.c (gdbsim_fetch_register): Likewise.
3397 * remote.c (packet_reg): Likewise (comment).
3398 * reggroups.c (default_register_reggroup_p): Likewise.
3399 * regcache.c (regcache_dump): Likewise.
3400 * printcmd.c (address_info): Likewise.
3401 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3402 * mt-dep.c (mt_registers_info): Likewise.
3403 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3404 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3405 (mips_read_fp_register_double, mips_print_fp_register)
3406 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3407 (mips_register_sim_regno): Likewise.
3408 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3409 * inf-ptrace.c (inf_ptrace_fetch_register)
3410 (inf_ptrace_store_register): Likewise.
3411 * infcmd.c (default_print_registers_info): Likewise.
3412 * ia64-linux-nat.c (ia64_linux_fetch_register)
3413 (ia64_linux_store_register): Likewise.
3414 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3415 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3416 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3417 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3418 (hppa_hpux_store_register): Likewise.
3419 * findvar.c (locate_var_value): Likewise.
3420 * dwarf2loc.c (locexpr_describe_location): Likewise.
3421 * dwarf2-frame.c (execute_cfa_program): Likewise.
3422 * arm-tdep.c (arm_push_dummy_call): Likewise.
3423 * arch-utils.c (legacy_register_sim_regno): Likewise.
3424 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3425 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3426 * mi/mi-main.c (mi_cmd_data_list_register_names)
3427 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3428 (mi_cmd_data_write_register_values): Likewise.
3429 * gdbarch.c, gdbarch.h: Regenerate.
3431 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3433 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3435 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3437 * remote.c (process_g_packet): Don't check size.
3438 * gdbarch.sh: Remove register_bytes_ok.
3439 * gdbarch.c: Regenerated.
3440 * gdbarch.h: Regenerated.
3441 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3442 (m68k_register_bytes_ok): Remove.
3443 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3445 2007-06-06 Andreas Schwab <schwab@suse.de>
3447 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3448 (destroy_addr_space_name): Define.
3449 (libunwind_load): Get address of destroy_addr_space function.
3450 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3451 returning unsuccessfully.
3452 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3454 (libunwind_sigtramp_frame_sniffer): Likewise.
3455 (libunwind_get_reg_special): Likewise.
3457 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3459 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3460 gdbarch_fetch_pointer_argument.
3461 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3462 * gdbarch.c, gdbarch.h: Regenerate.
3464 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3466 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3467 gdbarch_have_nonsteppable_watchpoint.
3468 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3469 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3470 gdbarch_cannot_step_breakpoint.
3471 * infrun.c (resume): Likewise.
3472 * gdbarch.c, gdbarch.h: Regenerate.
3474 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3476 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3477 * stack.c (print_frame_args): Likewise.
3478 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3479 * stack.c (print_args_stub, frame_info): Likewise.
3480 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3481 * stack.c (print_args_stub, frame_info): Likewise.
3482 * gdbarch.c, gdbarch.h: Regenerate.
3484 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3486 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3487 gdbarch_coff_make_msymbol_special.
3488 * coffread.c (coff_symtab_read): Likewise.
3489 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3490 gdbarch_elf_make_msymbol_special.
3491 * elfread.c (elf_symtab_read): Likewise.
3492 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3493 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3494 * gdbarch.c, gdbarch.h: Regenerate.
3496 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3498 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3499 gdbarch_frame_red_zone_size.
3500 * gdbarch.c, gdbarch.h: Regenerate.
3502 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3504 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3505 * infcall.c (call_function_by_hand): Likewise.
3506 * gcore.c (derive_stack_segment): Likewise.
3507 * frame.c (frame_id_inner): Likewise.
3508 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3509 * ada-lang.c (ensure_lval): Likewise.
3510 * gdbarch.c, gdbarch.h: Regenerate.
3512 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3514 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3515 gdbarch_address_to_pointer.
3516 * findvar.c (store_typed_address): Likewise.
3517 * gdbtypes.c (make_pointer_type): Likewise (comment).
3518 * procfs.c (procfs_address_to_host_pointer): Likewise.
3519 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3520 (value_of_builtin_frame_fp_reg): Likewise.
3521 (value_of_builtin_frame_pc_reg): Likewise.
3522 * utils.c (paddress): Likewise (comment).
3523 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3524 gdbarch_pointer_to_address.
3525 * findvar.c (extract_typed_address): Likewise.
3526 * gdbtypes.c (make_pointer_type): Likewise (comment).
3527 * valops.c (value_cast): Likewise (comment).
3528 * gdbarch.c, gdbarch.h: Regenerate.
3530 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3532 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3533 * infrun.c (handle_inferior_event): Likewise.
3534 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3535 gdbarch_get_longjmp_target_p.
3536 * breakpoint.c (breakpoint_re_set): Likewise.
3537 * infrun.c (handle_inferior_event): Likewise.
3538 * gdbarch.c, gdbarch.h: Regenerate.
3540 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3542 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3543 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3544 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3545 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3546 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3547 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3548 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3549 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3550 current_ex_event, child_get_current_exception_event): Remove.
3551 (hppa_hpux_inferior_created): Remove.
3552 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3554 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3555 (deprecated_exception_support_initialized): Remove.
3556 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3557 (deprecated_exception_support_initialized): Remove.
3558 (breakpoint_init_inferior): Remove handling of non-zero
3559 deprecated_exception_catchpoints_are_fragile.
3561 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3562 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3563 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3564 deprecated_hp_som_som_object_present.
3565 * eval.c (evaluate_subexp_standard): Likewise.
3566 * valops.c (value_cast): Likewise.
3568 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3569 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3570 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3572 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3574 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3575 (struct objfile): Remove import_list, import_list_size,
3576 export_list, export_list_size members.
3577 (is_in_import_list): Remove prototype.
3578 * objfiles.c (is_in_import_list): Remove.
3579 * somread.c (init_import_symbols, init_export_symbols): Remove.
3580 (som_symfile_read): Do not call init_import_symbols. Do not
3581 set objfile->export_list and objfile->export_list_size.
3583 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3585 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3586 Use the original objfile if necessary.
3588 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3590 * defs.h (ldirname): New prototype.
3591 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3593 * utils.c (ldirname): New function.
3594 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3596 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3598 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3600 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3602 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3604 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3606 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3608 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3610 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3611 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3612 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3613 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3614 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3615 ppc_linux_at_sigtramp_return_path): Remove.
3617 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3619 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3620 (xtensa_register_write_masked, xtensa_register_read_masked)
3621 (xtensa_extract_return_value, xtensa_store_return_value
3622 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3623 TARGET_BYTE_ORDER by gdbarch_byte_order.
3624 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3625 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3626 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3627 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3628 (sh64_push_dummy_call, sh64_extract_return_value)
3629 (sh64_store_return_value, sh64_register_convert_to_virtual)
3630 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3631 (sh64_pseudo_register_write, sh64_do_fp_register)
3632 (sh64_frame_prev_register): Likewise.
3633 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3634 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3635 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3636 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3637 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3638 * ppc-linux-nat.c (store_register): Likewise.
3639 * nto-tdep.c (nto_find_and_open_solib)
3640 (nto_init_solib_absolute_prefix): Likewise.
3641 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3642 (mips_convert_register_p, mips_eabi_push_dummy_call)
3643 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3644 (mips_o32_push_dummy_call, mips_o32_return_value)
3645 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3646 (mips_read_fp_register_single, mips_read_fp_register_double)
3647 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3648 (mips_breakpoint_from_pc): Likewise.
3649 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3650 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3651 (mips_linux_o32_sigframe_init): Likewise.
3652 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3653 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3654 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3655 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3656 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3657 * coffread.c (process_coff_symbol): Likewise.
3658 * arm-tdep.c (convert_from_extended, convert_to_extended)
3659 (gdb_print_insn_arm): Likewise.
3661 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3663 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3664 * i386-tdep.c (i386_dbx_reg_to_regnum)
3665 (i386_svr4_reg_to_regnum): Likewise.
3666 * inf-ptrace.c (inf_ptrace_fetch_registers)
3667 (inf_ptrace_store_registers): Likewise.
3668 * corelow.c (get_core_registers): Likewise.
3669 * i386-linux-nat.c (supply_gregset, fill_gregset)
3670 (i386_linux_fetch_inferior_registers)
3671 (i386_linux_store_inferior_registers): Likewise.
3672 * remote.c (init_remote_state,packet_reg_from_regnum)
3673 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3674 (remote_prepare_to_store,store_registers_using_G)
3675 (remote_store_registers,remote_arch_state): Likewise.
3676 * tracepoint.c (encode_actions): Likewise.
3677 * mi/mi-main.c (mi_cmd_data_list_register_names)
3678 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3679 (mi_cmd_data_write_register_values): Likewise.
3680 * tui/tui-regs.c (tui_show_register_group)
3681 (tui_show_register_group): Likewise.
3682 * xtensa-tdep.h (FP_ALIAS): Likewise.
3683 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3684 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3685 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3686 * win32-nat.c (do_win32_fetch_inferior_registers)
3687 (do_win32_store_inferior_registers,fetch_elf_core_registers
3688 * user-regs.h: Likewise (comment).
3689 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3690 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3691 * target-descriptions.h: Likewise (comment).
3692 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3693 * target.c (debug_print_register): Likewise.
3694 * stack.c (frame_info): Likewise.
3695 * stabsread.c (define_symbol): Likewise.
3696 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3697 (sh64_media_print_registers_info)
3698 (sh64_compact_print_registers_info): Likewise.
3699 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3700 * rs6000-nat.c (fetch_register,store_register): Likewise.
3701 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3702 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3703 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3704 * remote-m32r-sdi.c (m32r_fetch_registers)
3705 (m32r_store_registers): Likewise.
3706 * reggroups.c (default_register_reggroup_p): Likewise.
3707 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3708 (regcache_restore,regcache_dump): Likewise.
3709 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3710 * mips-tdep.c (mips_xfer_register,mips_register_name)
3711 (mips_register_reggroup_p,mips_pseudo_register_read)
3712 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3713 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3714 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3715 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3716 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3717 (print_gp_register_row,mips_print_registers_info)
3718 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3719 (mips_register_sim_regno): Likewise.
3720 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3721 (mips_linux_n32n64_sigframe_init): Likewise.
3722 * mips-linux-nat.c (mips_linux_register_addr)
3723 (mips64_linux_register_addr): Likewise.
3724 * findvar.c (value_of_register): Likewise.
3725 * infcmd.c (default_print_registers_info,registers_info)
3726 (print_vector_info,print_float_info): Likewise.
3727 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3728 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3729 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3730 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3731 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3732 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3733 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3734 (ia64_linux_store_registers): Likewise.
3735 * hpux-thread.c (hpux_thread_fetch_registers)
3736 (hpux_thread_store_registers): Likewise.
3737 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3738 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3739 (h8300_register_type): Likewise.
3740 * dwarf2-frame.c (dwarf2_frame_cache)
3741 (dwarf2_frame_state_alloc_regs): Likewise.
3742 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3743 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3744 (crisv32_cannot_store_register,cris_register_name): Likewise.
3745 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3746 * arch-utils.c (legacy_register_sim_regno)
3747 (legacy_virtual_frame_pointer): Likewise.
3748 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3749 * arm-tdep.h: Likewise (comment).
3750 * frv-tdep.c (frv_register_sim_regno): Likewise.
3751 * m68klinux-nat.c (old_fetch_inferior_registers)
3752 (old_store_inferior_registers): Likewise.
3753 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3754 * irix5-nat.c (fetch_core_registers): Likewise.
3755 * hppa-tdep.c (hppa_frame_cache): Likewise.
3756 * hppa-linux-nat.c (hppa_linux_register_addr)
3757 (hppa_linux_fetch_inferior_registers)
3758 (hppa_linux_store_inferior_registers): Likewise.
3759 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3760 (hppa_hpux_store_inferior_registers): Likewise.
3761 * amd64-nat.c (amd64_native_gregset_reg_offset)
3762 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3763 * dbug-rom.c (dbug_regname): Likewise.
3764 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3765 (HARD_PAGE_REGNUM (comment)): Likewise.
3766 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3767 * i386-tdep.c (i386_dbx_reg_to_regnum)
3768 (i386_svr4_reg_to_regnum): Likewise.
3769 * mi/mi-main.c (mi_cmd_data_list_register_names)
3770 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3771 (mi_cmd_data_write_register_values): Likewise.
3772 * gdbarch.c, gdbarch.h: Regenerate.
3773 * tui/tui-regs.c (tui_show_register_group): Likewise.
3774 * xtensa-tdep.h (FP_ALIAS): Likewise.
3775 * user-regs.h: Likewise (comment).
3776 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3777 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3778 * target-descriptions.h: Likewise (comment).
3779 * target.c (debug_print_register): Likewise.
3780 * stack.c (frame_info): Likewise.
3781 * stabsread.c (define_symbol): Likewise.
3782 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3783 (sh64_compact_print_registers_info): Likewise.
3784 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3785 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3786 (regcache_restore,regcache_dump): Likewise.
3787 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3788 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3789 (mips_stab_reg_to_regnum): Likewise.
3790 * findvar.c (value_of_register): Likewise.
3791 * infcmd.c (default_print_registers_info,registers_info)
3792 (print_vector_info,print_float_info): Likewise.
3793 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3794 * h8300-tdep.c (h8300_register_type): Likewise.
3795 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3796 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3797 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3798 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3799 * parse.c: Remove comment.
3800 * gdbarch.c, gdbarch.h: Regenerate
3802 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3804 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3805 gdbarch_cannot_fetch_register.
3806 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3807 * hppa-linux-nat.c (fetch_register): Likewise.
3808 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3809 * m68klinux-nat.c (fetch_register): Likewise.
3810 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3812 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3813 gdbarch_cannot_store_register.
3814 * hppa-linux-nat.c (store_register): Likewise.
3815 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3816 * regcache.c (regcache_raw_write): Likewise.
3817 * m68klinux-nat.c (store_register): Likewise.
3818 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3819 * gdbarch.c, gdbarch.h: Regenerate.
3821 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3823 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3824 * gdbarch.c, gdbarch.h: Regenerate.
3826 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3828 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3829 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3830 * gdbarch.c, gdbarch.h: Regenerate.
3832 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3834 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3835 * ax-gdb.c (gen_bitfield_ref): Likewise.
3836 * mi/mi-main.c (get_register): Likewise.
3837 * findvar.c (default_value_from_register, extract_signed_integer)
3838 (extract_unsigned_integer, extract_long_unsigned_integer)
3839 (store_signed_integer, store_unsigned_integer): Likewise.
3840 * regcache.c (regcache_dump): Likewise.
3841 * value.c (lookup_internalvar, value_of_internalvar)
3842 (set_internalvar): Likewise.
3844 * valprint.c (print_binary_chars, print_octal_chars)
3845 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3846 * infcmd.c (default_print_registers_info): Likewise.
3847 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3848 * stabsread.c (define_symbol): Likewise.
3849 * doublest.c (floatformat_from_length, floatformat_from_type)
3850 (extract_typed_floating, store_typed_floating): Likewise.
3851 * gdbarch.c, gdbarch.h: Regenerate.
3853 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3855 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3856 gdbarch_call_dummy_location.
3857 * infcall.c (call_function_by_hand): Likewise.
3858 * inferior.h: Change comment.
3859 * arch-utils.c: Change comment.
3860 * gdbarch.c, gdbarch.h: Regenerate.
3862 2007-05-28 Joel Brobecker <brobecker@adacore.com>
3864 * solib-aix5.c: Delete.
3865 * Makefile.in (solib-aix5.o): Delete rule.
3867 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
3869 * breakpoint.h (enum bpstat_what_main_action): Remove
3870 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3871 * infrun.c (process_event_stop_test): Do not check for it.
3873 2007-05-22 Chris Dearman <chris@mips.com>
3874 Maciej W. Rozycki <macro@mips.com>
3876 * ser-unix.c (show_serial_hwflow): New function.
3877 (hardwire_raw): Add hardware flow control support.
3878 (_initialize_ser_hardwire): Add "set/show remoteflow".
3879 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3880 * NEWS: Document the new command.
3882 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3884 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3885 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3886 define for i[[3456]]86-*-linux* native configurations.
3887 * config.in, configure: Regenerate.
3889 2007-05-19 Joel Brobecker <brobecker@adacore.com>
3891 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3892 a core file. Add comment in the function description.
3894 2007-05-18 Caroline Tice <ctice@apple.com>
3896 * c-valprint.c (c_value_print): If the initialized field of the
3897 value struct is 0, print out "[uninitialized]" before the value.
3898 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3899 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3900 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3901 ctx->initialized appropriately. Verify no location op follows
3903 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3904 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3905 set_value_initialized.
3906 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3907 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3908 * value.c (struct value): New field, initialized.
3909 (allocate_value): Initialize new field.
3910 (set_value_initialized): New function.
3911 (value_initialized): New function.
3912 * value.h (value_initialized): New extern declaration.
3913 (set_value_initialized): Likewise.
3915 2007-05-18 Caroline Tice <ctice@apple.com>
3917 * MAINTAINERS (Write After Approval): Add self.
3919 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3921 * gdbtypes.c (make_reference_type): Preserve the type chain
3922 and set the length of all the variants of the pointer type.
3924 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3926 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3927 and set the length of all the variants of the pointer type.
3929 2007-05-17 Maciej W. Rozycki <macro@mips.com>
3931 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3933 (mips_o64_push_dummy_call): Reformat a comment.
3935 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
3937 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3938 (score_prologue_frame_base_address): Return fp to keep gdb print
3939 local variables correctly when debugging information is stabs.
3941 (score_analyze_prologue): For software watchpoint, fetch all the
3942 instructions from range [startaddr, pc] once and identify them locally
3943 to reduce memory access.
3944 (score_malloc_and_get_memblock, score_free_memblock)
3945 (score_adjust_memblock_ptr): New functions.
3946 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3948 (score_target_can_use_watch, score_stopped_by_watch)
3949 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3950 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3951 New functions for remote & local hw-watchpoint and hw-breakpoint.
3953 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
3955 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3956 declarations as well.
3958 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3960 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3961 * config/arm/tm-embed.h: Delete file.
3963 * arm-tdep.h (arm_software_single_step): Declare.
3964 * arm-tdep.c (arm_software_single_step): Make global.
3965 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3967 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3968 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3969 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3970 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3972 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3973 allow defines to be overriden by TM file.
3974 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3975 change default to {0xbe,0xbe}.
3976 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3977 arm_obsd_thumb_be_breakpoint): New global variables.
3978 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3979 tdep->thumb_breakpoint_size.
3980 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3981 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3982 tdep->thumb_breakpoint_size.
3984 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3986 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3988 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3991 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3992 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3993 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3994 (mips_abi_regsize): Simplify.
3995 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3996 (mips_n32n64_return_value, mips_o32_push_dummy_call)
3997 (mips_o32_return_value, mips_o64_push_dummy_call)
3998 (mips_o64_return_value): Propogate constant register sizes. Use the
3999 ABI register size instead of mips_stack_argsize.
4000 (mips_dump_tdep): Don't print mips_stack_argsize.
4001 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4004 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4006 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4007 * config/mips/tm-linux.h: Delete.
4008 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4009 (mips_linux_in_dynsym_resolve_code): Make static. Use
4010 svr4_in_dynsym_resolve_code.
4011 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4013 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4015 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4016 * Makefile.in (mips-linux-tdep.o): Update.
4017 * solib.c (set_solib_ops): New.
4018 (current_target_so_ops): Update comment.
4019 * solib.h (set_solib_ops): New prototype.
4021 2007-05-16 Chris Dearman <chris@mips.com>
4023 * printcmd.c (do_examine): Fix typos in a comment.
4025 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4027 * configure.ac: Allow sysroots to be relocated under $prefix as
4028 well as $exec_prefix.
4029 * configure: Regenerate.
4031 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4033 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4034 (offsetof): Do not define.
4035 (find_stub_with_shl_get): Use numerical value 3 instead of
4036 symbolic value TYPE_PROCEDURE.
4038 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4040 * gdb_proc_service.h (paddr_t): Delete typedef.
4041 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4042 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4043 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4044 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4045 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4046 * Makefile.in (proc-service.o): Update.
4048 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4050 * Makefile.in (mips-tdep.o): Update.
4051 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4054 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4056 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4057 instead of store_typed_address.
4058 * value.c (pack_long): New.
4059 (value_from_longest): Use it.
4060 * value.h (pack_long): New prototype.
4062 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4064 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4065 DW_EH_PE_signed if appropriate.
4067 2007-05-14 Paul Brook <paul@codesourcery.com>
4068 Daniel Jacobowitz <dan@codesourcery.com>
4070 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4072 (dwarf_decode_lines): Check for line info without a file.
4074 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4076 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4079 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4081 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4083 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4085 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4087 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4089 * gdbarch.sh (read_sp): Remove.
4090 * gdbarch.c, gdbarch.h: Regenerate.
4091 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4093 * avr-tdep.c (avr_read_sp): Remove.
4094 (avr_unwind_sp): New function.
4095 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4096 * mips-tdep.c (mips_read_sp): Remove.
4097 (mips_unwind_sp): New function.
4098 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4099 * score-tdep.c (score_read_unsigned_register): Remove.
4100 (score_read_sp): Remove.
4101 (score_unwind_sp): New function.
4102 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4104 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4106 * buildsym.c (start_subfile): Handle absolute pathnames
4107 while comparing subfile names.
4109 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4111 * hppa-hpux-tdep.c: Include "regcache.h".
4112 * hppa-linux-tdep.c: Likewise.
4113 * hppa-tdep.c: Include "gdb_stdint.h".
4114 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4116 * Makefile.in: Update dependencies.
4118 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4120 * blockframe.c: Remove obsolete comments.
4121 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4122 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4123 * hppa-tdep.h (enum hppa_regnum): Likewise.
4124 * mips-tdep.h: Likewise.
4125 * m68hc11-tdep.c: Likewise.
4127 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4129 * inferior.h (read_sp): Remove prototype.
4130 * regcache.c (read_sp): Remove.
4131 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4132 * infcall.c (call_function_by_hand): Likewise.
4133 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4135 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4137 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4139 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4140 instead of read_register and read_register_pid.
4142 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4143 argument instead of PTID. Use regcache functions instead of
4145 (ia64_linux_insert_watchpoint): Update call.
4146 (ia64_linux_stopped_data_address): Use regcache functions
4147 instead of read_register_pid and write_register_pid.
4149 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4151 * libunwind-frame.h (struct regcache): Add forward declaration.
4152 (libunwind_get_reg_special): Add REGCACHE argument.
4153 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4154 argument. Pass it to unw_init_remote_p.
4156 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4157 libunwind_get_reg_special.
4158 (ia64_access_reg): Remove "write" case.
4159 (ia64_access_fpreg): Likewise. Read from next_frame passed
4160 as callback argument instead of from current_regcache.
4161 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4162 passed as callback argument instead of from current_regcache.
4163 (ia64_access_rse_fpreg): New function.
4164 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4166 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4168 * NEWS: Mention SPU overlay support.
4170 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4172 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4174 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4176 * breakpoint.c (remove_breakpoint): Do not remove software
4177 breakpoints in unmapped overlay sections.
4179 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4181 * spu-tdep.c: Include "observer.h".
4182 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4183 (spu_overlay_data): New variable.
4184 (struct spu_overlay_table): New type.
4185 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4186 spu_overlay_new_objfile): New functions.
4187 (spu_gdbarch_init): Install spu_overlay_update.
4188 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4189 allocate spu_overlay_data objfile data.
4191 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4193 * gdbarch.sh (overlay_update): New gdbarch function.
4194 (struct obj_section): Add forward declaration.
4195 * gdbarch.c, gdbarch.h: Regenerate.
4197 * symfile.c (simple_overlay_update): Make global.
4198 (target_overlay_update): Remove variable.
4199 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4200 target_overlay_update.
4201 (overlay_load_command): Likewise.
4202 * symfile.h (struct obj_section): Add forward declaration.
4203 (simple_overlay_update): Add prototype.
4205 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4207 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4209 * observer.sh: Add "struct objfile" forward declaration.
4210 * target.h (deprecated_target_new_objfile_hook): Remove.
4211 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4212 (clear_symtab_users): Call observer_notify_new_objfile.
4213 (symbol_file_add_with_addrs_or_offsets): Likewise.
4214 * rs6000-nat.c: Include "observer.h".
4215 (vmap_ldinfo): Call observer_notify_new_objfile.
4216 (xcoff_relocate_core): Likewise.
4217 * remote.c (remote_new_objfile_chain): Remove.
4218 (remote_new_objfile): Do not call remote_new_objfile_chain.
4219 (_initialize_remote): Use observer_attach_new_objfile.
4220 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4221 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4222 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4223 * aix-thread.c: Include "observer.h".
4224 (target_new_objfile_chain): Remove.
4225 (new_objfile): Do not call target_new_objfile_chain.
4226 (_initialize_aix_thread): Use observer_attach_new_objfile.
4227 * hpux-thread.c: Include "observer.h"
4228 (target_new_objfile_chain): Remove.
4229 (hpux_thread_new_objfile): Make static. Do not call
4230 target_new_objfile_chain.
4231 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4232 * linux-thread-db.c: Include "observer.h".
4233 (target_new_objfile_chain): Remove.
4234 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4235 (_initialize_thread_db): Use observer_attach_new_objfile.
4236 * sol-thread.c: Include "observer.h".
4237 (target_new_objfile_chain): Remove.
4238 (sol_thread_new_objfile): Make static. Do not call
4239 target_new_objfile_chain.
4240 (_initialize_sol_thread): Use observer_attach_new_objfile.
4241 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4242 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4245 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4247 * gdbarch.sh (remote_translate_xfer_address): Remove.
4248 * gdbarch.h, gdbarch.c: Regenerate.
4249 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4250 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4251 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4252 call gdbarch_remote_translate_xfer_address.
4253 * frv-tdep.c (frv_gdbarch_init): Do not call
4254 set_gdbarch_remote_translate_xfer_address.
4255 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4256 (ia64_gdbarch_init): Do not install it.
4258 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4260 * NEWS: Mention change in handling the -tui option.
4262 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4264 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4267 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4269 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4270 (breakpoint_inserted_here_p): Call it.
4271 (software_breakpoint_inserted_here_p): Likewise.
4273 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4275 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4276 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4277 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4278 (inf_ptrace_store_register): Likewise.
4279 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4280 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4282 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4284 * linux-nat.c (linux_trad_target): Adapt parameter list.
4285 * linux-nat.h (linux_trad_target): Likewise.
4287 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4289 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4290 (mips_linux_cannot_store_register): Likewise.
4291 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4292 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4293 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4294 (mips64_linux_register_addr): Likewise.
4295 (mips_linux_register_u_offset): Adapt parameter list. Pass
4296 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4298 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4299 * config/mips/nm-linux.h: Delete file.
4301 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4303 * remote.c (remote_detach): Error out if remote can't detach.
4305 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4307 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4308 instruction's opcode in the "opcode" variable and declares new
4309 variable "closing_insn".
4311 2007-05-10 Chris Dearman <chris@mips.com>
4312 Maciej W. Rozycki <macro@mips.com>
4314 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4315 whitespace when setting a var_filename.
4317 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4319 * main.c (captured_main): Recognize -tui option and print an error
4320 message when the TUI is not configured.
4322 2007-05-09 Andreas Schwab <schwab@suse.de>
4324 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4325 set removed members.
4326 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4328 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4330 * gdbarch.sh (deprecated_store_struct_return): Remove.
4331 * gdbarch.c, gdbarch.h: Regenerate.
4332 * frv-tdep.c (frv_store_struct_return): Remove.
4333 (frv_gdbarch_init): Do not install it.
4335 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4337 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4338 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4339 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4341 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4343 * spu-linux-nat.c: Include "gdb_stdint.h".
4344 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4345 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4346 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4347 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4348 (spu_child_wait): Mark up string for translation.
4350 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4351 Luis Machado <luisgpm@br.ibm.com>
4353 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4354 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4355 BC_INSTRUCTION): Define.
4356 (deal_with_atomic_sequence): New function.
4357 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4358 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4359 gdbarch_software_single_step routine.
4361 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4363 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4364 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4365 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4366 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4367 spu_child_post_attach, spu_fetch_inferior_registers,
4368 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4369 memory addresses as ULONGEST, not CORE_ADDR.
4371 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4373 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4374 * gdbarch.h, gdbarch.c: Regenerate.
4376 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4377 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4378 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4380 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4381 Add REGCACHE argument. Use it instead of read/write_register.
4382 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4384 * config/pa/tm-hppah.h: Delete file.
4385 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4386 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4388 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4390 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4391 * NEWS: Mention improved C++ thunk support.
4392 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4393 * cp-abi.c (cplus_skip_trampoline): New.
4394 * cp-abi.h (cplus_skip_trampoline): New prototype.
4395 (struct cp_abi_ops): Add skip_trampoline member.
4396 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4397 (init_gnuv3_ops): Set skip_trampoline.
4399 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4401 * rs6000-tdep.c (struct frame_extra_info): Delete.
4403 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4405 * linux-thread-db.c: Update some FIXME comments.
4406 (thread_db_xfer_partial): Delete.
4407 (init_thread_db_ops): Do not set to_xfer_partial.
4409 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4411 * inftarg.c, infptrace.c: Remove files.
4412 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4413 (inftarg.o, infptrace.o): Remove rules.
4414 * gdbcore.h (register_addr): Remove prototype.
4415 * inferior.h (kill_inferior, store_inferior_registers,
4416 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4417 call_ptrace, pre_fork_inferior): Remove prototypes.
4418 * target.h (child_xfer_memory, child_pid_to_exec_file,
4419 child_core_file_to_sym_file, child_post_attach,
4420 child_post_startup_inferior, child_acknowledge_created_inferior,
4421 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4422 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4423 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4424 child_follow_fork, child_reported_exec_events_per_exec_call,
4425 child_has_exited, child_thread_alive): Remove prototypes.
4427 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4429 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4430 (sparc_store_inferior_registers): Likewise.
4431 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4432 (sparc_fetch_inferior_registers): ... this.
4433 (store_inferior_registers): Rename to ...
4434 (sparc_store_inferior_registers): ... this.
4435 (sparc_target): Update callback names.
4436 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4437 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4439 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4441 * linux-nat.c (child_post_attach): Rename to ...
4442 (linux_child_post_attach): ... this. Make static.
4443 (child_follow_fork): Rename to ...
4444 (linux_child_follow_fork): ... this. Make static.
4445 (child_insert_fork_catchpoint): Rename to ...
4446 (linux_child_insert_fork_catchpoint): ... this. Make static.
4447 (child_insert_vfork_catchpoint): Rename to ...
4448 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4449 (child_insert_exec_catchpoint): Rename to ...
4450 (linux_child_insert_exec_catchpoint): ... this. Make static.
4451 (child_pid_to_exec_file): Rename to ...
4452 (linux_child_pid_to_exec_file): ... this. Make static.
4454 (linux_handle_extended_wait): Update call.
4455 (linux_xfer_partial): Update callback routine names.
4457 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4459 * configure.host (alpha*-*-osf[12]*): Remove support.
4460 * NEWS: Mention removed configurations.
4462 * config/alpha/alpha-osf1.mh: Delete file.
4463 * config/alpha/alpha-osf2.mh: Delete file.
4464 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4466 * config/alpha/nm-osf.h: Delete file.
4467 * config/alpha/nm-osf2.h: Delete file.
4468 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4469 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4470 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4472 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4473 (register_addr, kernel_u_size): Remove.
4474 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4476 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4478 * regcache.c (regcache_invalidate): New function.
4479 (register_cached): Remove.
4480 (set_register_cached): Remove.
4481 (deprecated_registers_fetched): Remove.
4482 (registers_changed): Use regcache_invalidate instead
4483 of set_register_cached.
4484 (regcache_raw_read): Update comment.
4486 * regcache.h (regcache_invalidate): Add prototype.
4487 (register_cached): Remove.
4488 (set_register_cached): Remove.
4489 (deprecated_registers_fetched): Remove.
4491 * findvar.c (value_of_register): Do not call register_cached.
4492 * frame.c (frame_register): Likewise.
4493 * tui/tui-regs.c (tui_get_register): Likewise.
4495 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4496 (process_g_packet): Likewise.
4497 (remote_fetch_registers): Likewise.
4498 * remote-sim.c (gdbsim_fetch_register): Likewise.
4499 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4500 by regcache_invalidate.
4501 (mt_pseudo_register_write): Likewise.
4502 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4504 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4505 call by loop over regcache_raw_supply (..., NULL).
4507 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4509 * target.h (struct target_ops): Add REGCACHE parameter to
4510 to_prepare_to_store.
4511 (target_prepare_to_store): Likewise.
4512 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4513 (update_current_target): Adapt prepare_to_store de_fault rule.
4515 * regcache.c (regcache_raw_write): Pass regcache to
4516 target_prepare_to_store.
4518 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4519 Do not call CHILD_PREPARE_TO_STORE.
4520 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4521 * procfs.c (procfs_prepare_to_store): Likewise.
4523 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4524 * go32-nat.c (go32_prepare_to_store): Likewise.
4525 * monitor.c (monitor_prepare_to_store): Likewise.
4526 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4527 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4528 * remote-mips.c (mips_prepare_to_store): Likewise.
4529 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4530 * win32-nat.c (win32_prepare_to_store): Likewise.
4532 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4533 Use it instead of current_regcache.
4535 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4536 parameter. Pass it on to next target.
4537 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4539 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4541 * target.h (struct regcache): Add forward declaration.
4542 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4543 and to_store_registers target operations.
4544 (target_fetch_registers, target_store_registers): Update.
4546 * regcache.c (regcache_raw_read): Replace register_cached by
4547 regcache_valid_p. Pass regcache to target_fetch_registers.
4548 (regcache_raw_write): Pass regcache to target_store_registers.
4550 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4551 store_regs, store_wmmx_regs): Replace register_cached by
4554 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4555 to target_fetch_registers calls.
4556 * corelow.c (core_open): Likewise.
4557 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4558 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4559 ps_lsetfpregs): Likewise.
4560 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4561 ps_lsetfpregs): Likewise.
4562 * win32-nat.c (win32_resume): Likewise.
4563 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4564 to target_store_registers call.
4565 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4567 * inferior.h (store_inferior_registers): Update prototype.
4568 (fetch_inferior_registers): Likewise.
4569 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4570 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4571 Update function pointer signatures.
4573 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4574 use it instead of current_regcache, update calls.
4575 (aix_thread_store_registers): Likewise.
4576 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4577 (alphabsd_store_inferior_registers): Likewise.
4578 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4579 (amd64bsd_store_inferior_registers): Likewise.
4580 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4581 (amd64_linux_store_inferior_registers): Likewise.
4582 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4583 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4584 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4585 (arm_linux_fetch_inferior_registers): Likewise.
4586 (arm_linux_store_inferior_registers): Likewise.
4587 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4588 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4589 (store_register, store_regs, store_fp_register, store_fp_regs,
4590 armnbsd_store_registers): Likewise.
4591 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4592 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4593 (bsd_uthread_store_registers): Likewise.
4594 * corelow.c (get_core_registers): Likewise.
4595 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4596 go32_store_registers): Likewise.
4597 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4598 (hppabsd_store_registers): Likewise.
4599 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4600 (hppa_hpux_fetch_inferior_registers): Likewise.
4601 (hppa_hpux_store_register): Likewise.
4602 (hppa_hpux_store_inferior_registers): Likewise.
4603 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4604 (hppa_linux_fetch_inferior_registers): Likewise.
4605 (hppa_linux_store_inferior_registers): Likewise.
4606 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4607 (hpux_thread_store_registers): Likewise.
4608 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4609 (i386bsd_store_inferior_registers): Likewise.
4610 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4611 gnu_store_registers): Likewise.
4612 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4613 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4615 (i386_linux_fetch_inferior_registers): Likewise.
4616 (i386_linux_store_inferior_registers): Likewise.
4617 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4618 (ia64_linux_fetch_registers): Likewise.
4619 (ia64_linux_store_register): Likewise.
4620 (ia64_linux_store_registers): Likewise.
4621 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4622 (inf_child_store_inferior_registers): Likewise.
4623 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4624 (inf_ptrace_fetch_registers): Likewise.
4625 (inf_ptrace_store_register): Likewise.
4626 (inf_ptrace_store_registers): Likewise.
4627 * infptrace.c (fetch_register, store_register): Likewise.
4628 (fetch_inferior_registers, store_inferior_registers): Likewise.
4629 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4630 (m32r_linux_fetch_inferior_registers): Likewise.
4631 (m32r_linux_store_inferior_registers): Likewise.
4632 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4633 (m68kbsd_store_inferior_registers): Likewise.
4634 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4635 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4636 fetch_fpregs, store_fpregs): Likewise.
4637 (m68k_linux_fetch_inferior_registers): Likewise.
4638 (m68k_linux_store_inferior_registers): Likewise.
4639 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4640 (m88kbsd_store_inferior_registers): Likewise.
4641 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4642 (mips64obsd_store_inferior_registers): Likewise.
4643 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4644 (mips64_linux_regsets_store_registers): Likewise.
4645 (mips64_linux_fetch_registers): Likewise.
4646 (mips64_linux_store_registers): Likewise.
4647 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4648 (mipsnbsd_store_inferior_registers): Likewise.
4649 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4650 (monitor_fetch_registers, monitor_store_registers): Likewise.
4651 * nto-procfs.c (procfs_fetch_registers): Likewise.
4652 (procfs_store_registers): Likewise.
4653 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4654 fetch_register, supply_vrregset, fetch_altivec_registers,
4655 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4656 (store_altivec_register, store_spe_register, store_register,
4657 fill_vrregset, store_altivec_registers, store_ppc_registers,
4658 ppc_linux_store_inferior_registers): Likewise.
4659 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4660 (ppcnbsd_store_inferior_registers): Likewise.
4661 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4662 (ppcobsd_store_registers): Likewise.
4663 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4664 * remote.c (fetch_register_using_p, process_g_packet,
4665 fetch_registers_using_g, remote_fetch_registers): Likewise.
4666 (store_register_using_P, store_registers_using_G,
4667 remote_store_registers): Likewise.
4668 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4669 m32r_store_register, m32r_store_register): Likewise.
4670 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4671 * remote-sim.c (gdbsim_fetch_register): Likewise.
4672 (gdbsim_store_register): Likewise.
4673 * rs6000-nat.c (fetch_register, store_register): Likewise.
4674 (rs6000_fetch_inferior_registers): Likewise.
4675 (rs6000_store_inferior_registers): Likewise.
4676 * s390-nat.c (fetch_regs, store_regs): Likewise.
4677 (fetch_fpregs, store_fpregs): Likewise.
4678 (s390_linux_fetch_inferior_registers): Likewise.
4679 (s390_linux_store_inferior_registers): Likewise.
4680 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4681 (shnbsd_store_inferior_registers): Likewise.
4682 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4683 (sol_thread_store_registers): Likewise.
4684 * sparc-nat.c (fetch_inferior_registers): Likewise.
4685 (store_inferior_registers): Likewise.
4686 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4687 (spu_store_inferior_registers): Likewise.
4688 * target.c (debug_print_register): Likewise.
4689 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4690 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4691 (vaxbsd_store_inferior_registers): Likewise.
4692 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4693 (win32_fetch_inferior_registers): Likewise.
4694 (win32_store_inferior_registers): Likewise.
4696 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4698 * gdbcore.h (struct regcache): Add forward declaration.
4699 (struct core_fns): Add REGCACHE argument to core_read_registers
4701 * corelow.c (get_core_register_section): Add REGCACHE argument,
4702 use it instead of current_regcache, pass it to core_read_registers
4704 (get_core_registers): Add current_regcache as parameter to
4705 get_core_register_section calls.
4707 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4708 use it instead of current_regcache.
4709 * armnbsd-nat.c (fetch_core_registers): Likewise.
4710 (fetch_elfcore_registers): Likewise.
4711 * core-regset.c (fetch_core_registers): Likewise.
4712 * cris-tdep.c (fetch_core_registers): Likewise.
4713 * irix5-nat.c (fetch_core_registers): Likewise.
4714 * m68klinux-nat.c (fetch_core_registers): Likewise.
4715 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4716 * win32-nat.c (fetch_elf_core_registers): Likewise.
4718 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4720 * gregset.h (struct regcache): Add forward declaration.
4721 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4722 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4723 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4724 (fill_gregset): Add REGCACHE parameter.
4725 (fill_fpregset): Likewise.
4726 (fill_fpxregset): Likewise.
4728 Update all definitions accordingly:
4729 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4730 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4731 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4732 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4733 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4734 (supply_gregset): Add REGCACHE parameter, use it instead of
4735 current_regcache. Make GREGSETP parameter const, adapt casts.
4736 (supply_fpregset): Add REGCACHE parameter, use it instead of
4737 current_regcache. Make FPREGSETP parameter const, adapt casts.
4738 (fill_gregset): Add REGCACHE parameter, use it instead of
4740 (fill_fpregset): Likewise.
4742 Update all callers to pass in current_regcache as the new argument:
4743 * core-regset.c: Include "regcache.h".
4744 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4745 * procfs.c: Include "regcache.h".
4746 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4747 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4748 (procfs_do_thread_registers): Likewise.
4749 (procfs_make_note_section): Likewise.
4750 * proc-service.c: Include "regcache.h".
4751 (ps_lgetregs): Update fill_gregset call.
4752 (ps_lsetregs): Update supply_gregset call.
4753 (ps_lgetfpregs): Update fill_fpregset call.
4754 (ps_lsetfpregs): Update supply_fpregset call.
4755 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4756 supply_fpregset calls.
4757 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4758 (ps_lgetregs): Update fill_gregset call.
4759 (ps_lsetregs): Update supply_gregset call.
4760 (ps_lgetfpregs): Update fill_fpregset call.
4761 (ps_lsetfpregs): Update supply_fpregset call.
4763 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4764 fill_fpregset, and fill_fpxregset calls.
4765 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4766 (store_regs): Update fill_gregset call.
4767 (fetch_fpregs): Update supply_fpregset call.
4768 (store_fpregs): Update fill_fpregset call.
4769 (fetch_fpxregs): Update supply_fpxregset call.
4770 (store_fpxregs): Update fill_fpxregset call.
4771 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4772 (store_regs): Update fill_gregset call.
4773 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4774 (store_regs): Update fill_gregset call.
4775 (fetch_fpregs): Update supply_fpregset call.
4776 (store_fpregs): Update fill_fpregset call.
4777 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4778 * s390-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.
4783 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4786 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4788 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4789 it instead of current_regcache.
4790 (parse_register_dump): Add REGCACHE parameter, pass it to
4791 supply_register callback.
4792 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4793 parse_register_dump.
4794 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4795 parse_register_dump and dumpregs callback.
4796 (monitor_wait): Pass current_regcache to parse_register_dump and
4798 (monitor_fetch_register): Pass current_regcache to
4799 monitor_supply_register.
4800 (monitor_fetch_registers): Pass current_regcache to
4802 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4803 supply_register and dumpregs callbacks.
4804 (monitor_supply_register, monitor_dump_reg_block): Update
4806 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4807 it to monitor_supply_register.
4808 * dink32-rom.c (dink32_supply_register): Likewise.
4809 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4810 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4811 instead of current_regcache.
4813 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4815 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4816 Add REGCACHE parameter. Use it instead of current_regcache.
4817 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4818 i386nto_supply_gregset and i386nto_supply_fpregset.
4819 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4820 of current_regcache.
4822 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4823 nto_supply_ helper functions.
4824 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4826 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4828 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4829 supply_greget, supply_fpregset, supply_altregset, supply_regset,
4830 and regset_fill member function pointers.
4831 (nto_dummy_supply_regset): Adapt prototype.
4833 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4835 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4836 instead of current_regcache. Make REGS const.
4837 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4838 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4840 * shnbsd-nat.c: Include "regcache.h".
4841 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4843 (shnbsd_store_inferior_registers): Pass current_regcache to
4845 * Makefile.in (shbsd-nat.o): Update dependencies.
4847 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4849 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4850 instead of current_regcache.
4851 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4852 Make GREGSETP const, remove superfluous casts.
4853 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4854 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4856 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4857 (supply_64bit_reg): Likewise
4858 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4859 Make GREGSETP const, adapt casts accordingly.
4860 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4861 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4863 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4864 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4866 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4867 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4868 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4870 * mips-linux-nat.c: Include "regcache.h".
4871 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4872 current_regcache to mips{64}_(supply|fill)_ helper routines.
4873 (mips64_linux_regsets_fetch_registers): Likewise.
4874 (mips64_linux_regsets_store_registers): Likewise.
4876 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4877 REGCACHE argument; replace current_regcache. Make REGS const.
4878 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4879 replace current_regcache.
4880 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4881 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4882 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4883 mipsnbsd_store_inferior_registers): Pass current_regcache to
4884 mipsnbsd_(supply|fill)_... helper routines.
4886 * Makefile.in (mips-linux-nat.o): Update dependencies.
4888 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4890 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4891 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4892 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4893 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4894 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4895 * i386gnu-nat.c (store_fpregs): Likewise.
4896 * i386v4-nat.c (fill_fpregset): Likewise.
4897 * go32-nat.c (store_register, go32_store_registers): Likewise.
4899 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4901 * cris-tdep.c (supply_gregset): Rename to ...
4902 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4903 instead of current_regcache.
4904 (fetch_core_registers): Update call. Pass current_regcache.
4906 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4908 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4909 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4910 Use it instead of current_regcache.
4911 (supply_fparegset): Rename to ...
4912 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4913 Use it instead of current_regcache.
4914 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4915 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4917 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4919 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4920 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4921 use it instead of current_regcache.
4922 * alpha-tdep.h (struct regcache): Add forward declaration.
4923 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4924 alpha_fill_fp_regs): Update prototypes.
4926 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4927 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4928 * alpha-linux-nat.c: Include "regcache.h".
4929 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4930 current_regcache to alpha_supply/fill_ routines.
4932 * alphabsd-tdep.c: Include "regcache.h".
4933 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4934 pass it to alpha_supply_ routines. Make REGS const.
4935 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4936 pass it to alpha_fill_ routines.
4937 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4938 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4939 alphabsd_fill_fpreg): Update prototypes.
4941 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4942 fill_fpregset, alphabsd_fetch_inferior_registers,
4943 alphabsd_store_inferior_registers): Pass current_regcache to
4944 alphabsd_supply/fill_ routines.
4946 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4949 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4951 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4952 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4953 instead of current_regcache.
4954 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4955 REGCACHE parameter, pass it to supply_ routines.
4956 (aix_thread_fetch_registers): Pass current_regcache to
4957 fetch_regs_user_thread and fetch_regs_kernel_thread.
4959 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4960 Add REGCACHE parameter, use it instead of current_regcache.
4961 Call regcache_valid_p instead of register_cached.
4962 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4963 Also, pass REGCACHE to fill_ routines.
4964 (aix_thread_store_registers): Pass current_regcache to
4965 store_regs_user_thread and store_regs_kernel_thread.
4967 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4969 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4970 pointed to by GREGSETP.
4972 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4974 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4975 of regcache_raw_read_signed.
4976 (fill_fpregset): Use regcache_raw_collect instead of
4979 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4981 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4982 point arguments, test explicitly for use of the EABI32 ABI
4983 instead of inferring this condition from tests on register
4986 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4988 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4989 prior to allocating its location.
4991 2007-05-02 Maciej W. Rozycki <macro@mips.com>
4993 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4994 based on mips_abi_regsize() whose result is known in advance.
4995 (mips_o64_push_dummy_call): Likewise.
4997 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4999 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5000 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5002 * mips-linux-nat.c: Include "gregset.h".
5003 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5004 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5005 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5006 fill_fpregset): Move to mips-linux-nat.c.
5008 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5010 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5012 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5013 (read_register): ... here.
5014 (deprecated_write_register_gen): Remove, inline ...
5015 (write_register): ... here.
5016 * regcache.h (deprecated_read_register_gen): Remove prototype.
5017 (deprecated_write_register_gen): Likewise.
5019 * remote-sim.c (gdbsim_store_register): Replace call to
5020 deprecated_read_register_gen with regcache_cooked_read.
5021 * target.c (debug_print_register): Replace calls to
5022 deprecated_read_register_gen and read_register with
5023 regcache_cooked_read.
5025 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5027 * hpux-thread.c (hpux_thread_store_registers): Use
5028 regcache_raw_collect, not regcache_raw_read.
5029 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5030 not regcache_raw_write.
5032 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5034 * gdbarch.sh: Remove deprecated_register_byte.
5035 * gdbarch.c, gdbarch.h: Regenerate.
5036 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5037 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5039 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5040 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5041 read-only register caches. Make REGCACHE parameter const.
5042 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5044 * mi/mi-main.c (old_regs): Remove.
5045 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5046 (register_changed_p): Reimplement to compare two register caches.
5047 (mi_cmd_data_list_changed_registers): Update caller.
5048 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5049 * mi/mi-interp.c (mi_interpreter_init): Do not call
5050 mi_setup_architecture_data.
5052 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5054 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5055 inline definition at the places the macros are used.
5056 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5058 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5060 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5062 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5063 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5064 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5065 (rs6000_aix_regset_from_core_section): New function.
5066 (rs6000_aix_init_osabi): Register it.
5067 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5068 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5069 * rs6000-nat.c (CoreRegs): Do not define type.
5070 (fetch_core_registers, rs6000_core_fns): Remove.
5071 (_initialize_core_rs6000): Do not register it. Rename to ...
5072 (_initialize_rs6000_nat): ... this.
5073 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5075 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5077 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5078 (dwarf2_read_address): Sign extend return address as required by
5079 target architecture.
5081 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5083 * solib-frv.c (lm_base): Bail out if the main executable has
5086 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5088 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5089 of FPCR register in fpregset.
5091 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5093 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5094 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5096 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5098 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5099 * rs6000-nat.c (rs6000_wait): New function.
5100 (_initialize_core_rs6000): Install it as to_wait target method.
5101 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5103 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5105 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5106 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5107 * rs6000-nat.c (super_create_inferior): New variable.
5108 (rs6000_create_inferior): Make static. Adapt argument list. Call
5109 original version of create_inferior via super_create_inferior.
5110 (_initialize_core_rs6000): Install to_create_inferior target method.
5112 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5114 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5115 (aix_thread_xfer_partial): ... this.
5116 (init_aix_thread_ops): Install to_xfer_partial instead
5117 of deprecated_xfer_memory target method.
5119 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5120 and inftarg.o, add inf-ptrace.o.
5121 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5122 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5123 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5124 (fetch_inferior_registers): Rename to ...
5125 (rs6000_fetch_inferior_registers): ... this. Make static.
5126 (store_inferior_registers): Rename to ...
5127 (rs6000_store_inferior_registers): ... this. Make static.
5128 (read_word, child_xfer_memory): Remove.
5129 (rs6000_xfer_partial): New function.
5130 (kernel_u_size): Remove.
5131 (_initialize_core_rs6000): Add inf_ptrace-based target.
5132 * Makefile.in (rs6000-nat.o): Update dependencies.
5134 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5136 * inf-ptrace.c: Include "gdb_stdint.h".
5137 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5138 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5139 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5140 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5141 (inf_ptrace_store_register): Likewise.
5142 * Makefile.in (inf-ptrace.o): Update dependencies.
5144 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5146 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5147 * configure.tgt (rs6000-*-*): Likewise.
5148 * config/rs6000/aix4.mh: Delete file.
5149 * config/rs6000/aix4.mt: Delete file.
5150 * config/rs6000/rs6000.mh: Delete file.
5151 * config/rs6000/rs6000.mt: Delete file.
5153 * config/powerpc/nm-aix.h: Delete file.
5154 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5156 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5158 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5159 Remove obsolete part of comment.
5160 (store_regs_user_thread): Use uint32_t temporaries when calling
5162 (store_regs_kernel_thread): Likewise. Add assertion to verify
5163 correct size of struct ptsprs members.
5164 (aix_thread_xfer_memory): Fix type of myaddr.
5165 (aix_thread_extra_thread_info): Fix compiler warning.
5166 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5167 (fetch_register, store_register): Adapt callers.
5169 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5171 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5173 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5175 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5177 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5178 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5179 (alpha_linux_regset_from_core_section): New function.
5180 (alpha_linux_init_abi): Install it.
5181 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5182 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5183 <sys/procfs.h>, and "gregset.h".
5184 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5185 Move from config/alpha/nm-linux.h.
5186 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5188 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5189 * alpha-nat.c: Remove #ifdef __linux__ section.
5190 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5191 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5192 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5193 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5194 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5195 (NATDEPFILES): Remove alpha-nat.o.
5196 * config/alpha/nm-linux.h: Delete file.
5197 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5198 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5199 (alpha-linux-tdep.o): Likewise.
5201 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5203 * mips-linux-nat.c: No longer include "gdbcore.h".
5204 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5205 (mips64_linux_register_addr): Likewise.
5206 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5207 mips64_linux_register_addr instead of register_addr.
5208 * mips-linux-tdep.c (mips_linux_register_addr,
5209 mips64_linux_register_addr): Move to mips-linux-nat.c.
5210 (register_addr): Remove.
5211 (register_addr_data, init_register_addr_data): Remove.
5212 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5213 (set_mips_linux_register_addr): Remove.
5214 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5215 * Makefile.in (mips-linux-nat.o): Update dependencies.
5217 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5219 * linux-nat.c (linux_register_u_offset): Remove.
5220 (linux_target_install_ops): New function.
5221 (linux_target): Use it.
5222 (linux_trad_target): New function.
5223 * linux-nat.h (linux_trad_target): Declare.
5225 * alpha-linux-nat.c: Include "gdbcore.h".
5226 (alpha_linux_register_u_offset): New function.
5227 (_initialize_alpha_linux_nat): Use linux_trad_target.
5229 * mips-linux-nat.c: Include "gdbcore.h".
5230 (mips_linux_register_u_offset): New function.
5231 (_initialize_mips_linux_nat): Use linux_trad_target.
5233 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5234 * config/arm/nm-linux.h: Delete file.
5236 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5237 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5239 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5240 * config/ia64/nm-linux.h: Delete file.
5242 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5243 * config/m32r/nm-linux.h: Delete file.
5245 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5246 * config/m68k/nm-linux.h: Delete file.
5248 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5249 * config/pa/nm-linux.h: Delete file.
5251 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5252 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5253 * config/powerpc/nm-linux.h: Delete file.
5255 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5256 * config/s390/nm-linux.h: Delete file.
5258 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5259 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5260 * config/sparc/nm-linux.h: Delete file.
5262 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5263 (mips-linux-nat.o): Likewise.
5265 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5267 * core-aout.c: Delete file.
5268 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5269 (core-aout.o): Delete rule.
5270 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5272 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5274 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5275 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5276 KERNEL_U_ADDR): Remove.
5278 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5279 (cannot_fetch_register, cannot_store_register): Remove.
5280 (fetch_register): Inline cannot_fetch_register and register_addr.
5281 (store_register): Inline cannot_store_register and register_addr.
5282 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5283 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5284 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5287 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5288 (fetch_register): Inline register_addr.
5289 (store_register): Inline register_addr.
5290 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5291 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5292 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5294 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5295 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5296 REGISTER_U_ADDR): Remove.
5298 * hppa-linux-nat.c (register_addr): Rename to ...
5299 (hppa_linux_register_addr): ... this. Make static.
5300 (fetch_register, store_register): Adapt callers.
5301 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5303 * ppc-linux-nat.c (kernel_u_size): Remove.
5304 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5306 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5307 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5309 * config/vax/nm-vax.h: Delete file.
5311 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5313 * MAINTAINERS (Write After Approval): Add myself.
5315 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5317 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5318 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5319 (m68k_linux_sigcontext_reg_offset): Fix typo.
5320 (target_is_uclinux): New.
5321 (m68k_linux_inferior_created): New.
5322 (m68k_linux_get_sigtramp_info): Check for uClinux or
5323 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5325 (_initialize_m68k_linux_tdep): Register
5326 m68k_linux_inferior_created.
5328 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5330 * win32-nat.c (win32_detach): Remove delete_command call.
5331 Resume inferior with win32_resume instead of win32_continue.
5333 2007-04-19 Jerome Guitton <guitton@adacore.com>
5335 * ser-mingw.c (fd_is_file): New function.
5336 (file_select_thread): New function.
5337 (ser_console_wait_handle): Add special handling for files.
5339 2007-04-18 Denis Pilat <denis.pilat@st.com>
5341 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5342 when missing from DW_TAG_subrange_type. Remove the handling of null
5343 return from die_type.
5345 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5347 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5348 change to rearrange some brackets.
5349 (mips_n32n64_push_dummy_call): Likewise.
5350 (mips_o32_push_dummy_call): Likewise.
5351 (mips_o64_push_dummy_call): Likewise.
5353 2007-04-18 Denis Pilat <denis.pilat@st.com>
5355 * infcmd.c (post_create_inferior): Start with a call to
5356 target_terminal_ours.
5358 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5360 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5362 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5364 (mips_o32_push_dummy_call): Likewise.
5365 (mips_o64_push_dummy_call): Likewise.
5367 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5369 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5372 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5374 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5376 (mips_o32_push_dummy_call): Likewise.
5378 2007-04-17 Andreas Schwab <schwab@suse.de>
5380 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5381 sal to be bigger than the end of the function.
5383 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5384 Nigel Stephens <nigel@mips.com>
5386 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5387 argument alignment requirements when calculating stack space
5388 required. When aligning an arg register to eight bytes
5389 boundary, align stack_offset too. Write floating-point
5390 arguments to the appropriate integer register if need go there.
5391 (mips_o64_push_dummy_call): Likewise.
5393 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5395 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5396 "sig" arguments, add "regcache" argument.
5397 * gdbarch.c, gdbarch.h: Regenerate.
5399 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5400 (handle_inferior_event): Call remove_single_step_breakpoints directly
5401 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5403 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5404 Remove handling of !insert_breakpoints_p case.
5405 * arm-tdep.c (arm_software_single_step): Likewise.
5406 * cris-tdep.c (cris_software_single_step): Likewise.
5407 * mips-tdep.c (mips_software_single_step): Likewise.
5408 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5409 * sparc-tdep.c (sparc_software_single_step): Likewise.
5410 * spu-tdep.c (spu_software_single_step): Likewise.
5412 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5413 * mips-tdep.h (mips_software_single_step): Likewise.
5414 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5415 * sparc-tdep.h (sparc_software_single_step): Likewise.
5417 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5419 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5420 when removing single-step breakpoints.
5422 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5424 * varobj.h (varobj_set_frozen): New
5425 (varobj_get_frozen): New.
5426 (varobj_update): New parameter explicit.
5427 * varobj.c (struct varobj): New fields frozen
5429 (varobj_set_frozen, varobj_get_frozen): New.
5430 (install_new_value): Don't fetch values for
5431 frozen variable object, or children thereof. Allow
5432 a frozen variable object to have non-fetched value.
5433 (varobj_update): Allow updating child variables.
5434 Don't traverse frozen children.
5435 (new_variable): Initialize the frozen field.
5436 (c_value_of_variable): Return NULL for frozen
5437 variable without any value yet.
5438 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5440 (mi_cmd_var_create): Output the 'frozen' field,
5441 as soon as testsuite is adjusted to expect that field.
5442 (mi_cmd_var_set_frozen): New.
5443 (mi_cmd_var_update): Pass the 'explicit' parameter to
5445 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5446 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5448 2007-04-13 Paul Brook <paul@codesourcery.com>
5450 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5452 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5454 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5456 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5457 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5458 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5459 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5460 * Makefile.in: Remove references to deleted files.
5461 * README: Do not mention deleted ROM monitor interfaces.
5462 * defs.h (enum language): Delete language_scm.
5463 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5464 (dump_subexp_body_standard): Likewise.
5465 * parse.c (operator_length_standard): Likewise.
5466 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5467 * remote-mips.c: Do not include remote-utils.h.
5468 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5470 * value.c: Do not include scm-lang.h.
5471 (unpack_long): Delete scm_unpack call.
5472 * config/h8300/h8300.mt, config/mips/embed.mt,
5473 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5474 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5476 * NEWS: Mention removed files.
5478 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5480 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5481 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5483 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5485 * NEWS: Mention removal of HP aCC support.
5487 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5489 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5490 first entry for static executables.
5491 (breakpoint_addr): Delete unused variable.
5492 (elf_locate_base): Search for _r_debug in static executables.
5493 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5496 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5498 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5499 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5500 (mention): Remove bp_through_sigtramp support.
5501 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5503 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5505 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5508 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5510 * infrun.c: Doc fixes.
5511 (handle_inferior_event): Clarify debug message.
5512 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5514 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5516 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5518 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5520 * config/m68k/tm-monitor.h: Delete file.
5521 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5522 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5524 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5525 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5527 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5529 * gdbarch.sh (software_single_step): Change the return type
5530 from void to int and reformatted some comments to <= 80
5532 * gdbarch.c, gdbarch.h: Regenerated.
5533 * alpha-tdep.c (alpha_software_single_step): Likewise.
5534 * alpha-tdep.h (alpha_software_single_step): Likewise.
5535 * arm-tdep.c (arm_software_single_step): Likewise.
5536 * cris-tdep.c (cris_software_single_step): Likewise.
5537 * mips-tdep.c (mips_software_single_step): Likewise.
5538 * mips-tdep.h (mips_software_single_step): Likewise.
5539 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5540 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5541 * sparc-tdep.c (sparc_software_single_step): Likewise.
5542 * sparc-tdep.h (sparc_software_single_step): Likewise.
5543 * spu-tdep.c (spu_software_single_step): Likewise.
5544 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5545 and act accordingly.
5547 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5549 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5550 * configure: Regenerate.
5551 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5553 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5555 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5557 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5559 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5561 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5562 distinct on the TYPE_STUB_SUPPORTED debug targets.
5563 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5565 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5567 * sparc-tdep.c (X_RS2): New macro.
5568 (sparc_skip_stack_check): New function.
5569 (sparc_analyze_prologue): Adjust PC past stack probing
5570 sequence if necessary.
5572 2007-04-10 Andreas Schwab <schwab@suse.de>
5574 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5577 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5579 * breakpoint.c (gdb_breakpoint_query): Really return an
5581 (gdb_breakpoint): Likewise.
5582 * thread.c (gdb_list_thread_ids): Likewise.
5583 (gdb_thread_select): Likewise.
5584 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5585 (mi_cmd_thread_list_ids): Remove bogus initialization.
5587 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5589 * Makefile.in (SFILES): Remove hpacc-abi.c.
5590 (COMMON_OBS): Remove hpacc-abi.o.
5591 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5592 (hpacc-abi.o, hpread.o): Delete rules.
5593 * somread.c: Delete extern declarations from hpread.c.
5594 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5595 (som_symfile_finish): Do not call hpread_symfile_finish.
5596 (som_symfile_init): Do not call hpread_symfile_init.
5597 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5598 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5599 * hpacc-abi.c, hpread.c: Deleted.
5601 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5603 * solib-svr4.c (enable_break): Simplify return value.
5604 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5606 2007-04-10 Andreas Schwab <schwab@suse.de>
5608 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5609 l_ld_size, l_next_size, l_prev_size, l_name_size.
5611 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5612 to extract addresses from link map.
5613 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5614 (LM_NEXT): Likewise.
5615 (LM_NAME): Likewise.
5616 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5617 (elf_locate_base): Likewise.
5618 (open_symbol_file_object): Likewise.
5619 (svr4_fetch_objfile_link_map): Likewise.
5620 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5621 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5623 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5624 (svr4_lp64_fetch_link_map_offsets): Likewise.
5626 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5627 removed members. Set l_ld_offset to -1 if not present.
5629 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5631 Pass stderr of program run with "target remote |"
5633 * serial.c (serial_open): Set error_fd to -1.
5634 * serial.h (struct serial): New field error_fd.
5635 (struct serial_opts): New field avail.
5636 * ser-pipe.c (pipe_open): Create another pair
5637 of sockets. Pass stderr to gdb.
5638 * ser-mingw.c (pipe_windows_open): Pass
5639 PEX_STDERR_TO_PIPE to pex_run. Initialize
5642 (_initialize_ser_windows): Hook pipe_avail.
5643 * ser-base.c (generic_readchar): Check if there's
5644 anything in stderr channel and route that to gdb_stderr.
5646 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5648 * dbxread.c (read_ofile_symtab): Move current_objfile
5649 clearing to after end_stabs.
5651 2007-04-01 Andreas Schwab <schwab@suse.de>
5653 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5654 gdbarch instead of current_gdbarch.
5656 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5658 * varobj.c (varobj_create): Keep varobj value
5659 NULL when evaluating the type.
5661 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5663 * NEWS: Mention new Windows CE support.
5665 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5667 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5668 the obsoletion stanza.
5669 * NEWS: Mention deleted targets.
5671 * config/sh/tm-wince.h: Remove.
5672 * config/sh/wince.mt: Remove.
5673 * config/mips/tm-wince.h: Remove.
5674 * config/mips/wince.mt: Remove.
5677 * wince-stub.c: Remove.
5678 * wince-stub.h: Remove.
5679 * Makefile.in (wince.o): Remove rule.
5680 (wince-stub.o): Likewise.
5682 * mips-tdep.c (mips_next_pc): Make static.
5683 * mips-tdep.h (mips_next_pc): Remove declaration.
5684 * arm-tdep.c (arm_pc_is_thumb): Make static.
5685 (thumb_get_next_pc): Likewise.
5686 (arm_get_next_pc): Likewise.
5687 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5688 (arm_pc_is_thumb): Likewise.
5689 (thumb_get_next_pc): Likewise.
5690 (arm_get_next_pc): Likewise.
5692 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5694 * MAINTAINERS: Remove d10v entry.
5695 * Makefile.in (SFILES): Remove dwarfread.c.
5696 (COMMON_OBS): Remove dwarfread.o.
5697 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5698 (remote-est.o, rom68k-rom.o): Delete.
5699 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5700 target est, target rom68k, and DWARF 1.
5701 * configure.tgt: Mark d10v as removed.
5702 * dwarf2read.c: Doc update.
5703 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5705 (elf_locate_sections): Do not set them.
5706 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5707 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5708 * config/m68k/monitor.mt (TDEPFILES): Prune.
5709 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5710 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5712 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5714 * doublest.c (convert_floatformat_to_doublest): Use
5715 floatformat_classify.
5716 (floatformat_is_nan): Rename to...
5717 (floatformat_classify): ...this. Return more information.
5718 * doublest.h (enum float_kind): New.
5719 (floatformat_is_nan): Replace prototype...
5720 (floatformat_classify): ...with this one.
5721 * valprint.c (print_floating): Use floatformat_classify. Handle
5724 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5726 * README: Mention ISO C library requirement.
5728 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5730 * Makefile.in (SFILES): Remove nlmread.c.
5731 (COMMON_OBS): Remove nlmread.o.
5732 (nlmread.o): Delete rule.
5733 * README: Delete reference to remote-st.c.
5734 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5735 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5737 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5738 (_initialize_i386_tdep): Do not reference them.
5739 * nlmread.c: Delete file.
5740 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5741 * target.c: Doc update.
5742 * thread.c: Delete commented include.
5743 * config/alpha/tm-alpha.h: Doc update.
5745 2007-03-30 Chris Dearman <chris@mips.com>
5747 * utils.c (string_to_core_addr): Comment typo.
5749 2007-03-30 Chris Dearman <chris@mips.com>
5751 * mips-tdep.c: Comment typo.
5753 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5755 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5756 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5757 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5758 * config/powerpc/nm-ppc64-linux.h: Remove file.
5759 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5760 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5761 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5762 * infptrace.c (call_ptrace): Likewise.
5763 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5764 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5765 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5766 (store_register): Likewise.
5768 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5770 * Makefile.in (varobj.o): Add missing dependency.
5772 2007-03-29 Michael Snyder <msnyder@access-company.com>
5774 * MAINTAINERS: Update my email address.
5776 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5778 Add support for exception handling with multiple versions of
5780 * ada-lang.c: Update general comments on how Ada exception catchpoints
5782 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5783 (__gnat_raise_nodefer_with_msg): Delete.
5784 (ada_unhandled_exception_name_addr_ftype): New type.
5785 (exception_support_info): New type.
5786 (ada_unhandled_exception_name_addr): Add forward declaration.
5787 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5788 (default_exception_support_info): New constant.
5789 (exception_support_info_fallback): Likewise.
5790 (exception_info): New global variable.
5791 (ada_exception_support_info_sniffer): New function.
5792 (ada_executable_changed_observer): Likewise.
5793 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5794 ada_unhandled_exception_name_addr.
5795 (ada_unhandled_exception_name_addr): Reimplement to match the
5796 latest Ada runtime implementation.
5797 (error_breakpoint_runtime_sym_not_found): Delete.
5798 (ada_exception_sym_name): Get the exception sym name from
5799 exception_info rather than hardcoding it.
5800 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5801 Update error handling.
5802 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5804 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5806 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5807 (remote-st.o, uw-thread.o): Delete.
5808 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5809 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5810 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5811 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5812 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5813 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5814 rs6000-*-lynxos* to an obsoletion stanza.
5815 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5816 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5817 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
5818 i[34567]86-*-netware*.
5819 * NEWS: Mention deleted targets.
5821 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5822 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5823 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5824 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5825 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5826 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5827 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5828 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5829 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5830 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5831 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5832 config/rs6000/tm-rs6000ly.h: Delete files.
5834 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5836 * defs.h (deprecated_registers_changed_hook): Delete declaration.
5837 * interps.c (clear_interpreter_hooks): Do not clear
5838 deprecated_registers_changed_hook.
5839 * regcache.c (registers_changed): Do not call it.
5840 * top.c (deprecated_registers_changed_hook): Do not define it.
5841 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5842 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5843 (tui_remove_hooks): Do not remove it.
5844 (tui_selected_frame_level_changed_hook): Check for negative level.
5845 Use get_selected_frame.
5846 (tui_registers_changed_hook): Deleted.
5848 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5850 * stabsread.c (add_undefined_type): Add extra parameter.
5851 Now handles nameless types separately.
5852 (struct nat): New type.
5853 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5854 New static variables.
5855 (read_type): Update calls to add_undefined_type.
5856 (add_undefined_type_noname): New function.
5857 (add_undefined_type_1): Renames from add_undefined_type.
5858 (cleanup_undefined_types_noname): New function.
5859 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5860 (cleanup_undefined_types): New handles nameless types separately.
5861 (_initialize_stabsread): Initialize our new static constants.
5863 2007-03-29 Denis Pilat <denis.pilat@st.com>
5865 * configure.ac: Test for signal.h.
5866 * configure, config.in: Regenerate.
5868 2007-03-29 Denis Pilat <denis.pilat@st.com>
5870 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5871 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5873 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
5875 * arm-wince-tdep.c: New.
5876 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5877 (MT_CFLAGS): Delete.
5879 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5880 solib-legacy.o, solib-svr4.o, and remove wince.o.
5881 * configure.tgt (arm*-*-mingw32ce*): Add.
5882 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5883 (do_target_signal_to_host): Silence 'not used' warning.
5884 * config/arm/tm-wince.h: Remove.
5886 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5888 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5889 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5891 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5892 * config/ia64/tm-linux.h: Remove file.
5893 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5894 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5895 legacy_pc_in_sigtramp.
5896 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5897 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5898 Remove func_name argument.
5899 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5901 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5902 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5903 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5904 (HAVE_STEPPABLE_WATCHPOINT): Define.
5906 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5907 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5908 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5909 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5910 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5911 target_insert_watchpoint, target_remove_watchpoint): Remove.
5912 (FETCH_INFERIOR_REGISTERS): Define.
5913 * ia64-linux-nat.c (ia64_register_addr): Make static.
5914 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5915 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5916 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5917 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5918 (ia64_linux_stopped_by_watchpoint): Make static.
5919 (ia64_linux_can_use_hw_breakpoint): New function.
5920 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5921 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5922 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5924 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
5926 * linespec.c: Include language.h.
5927 (find_methods): Add language parameter. Call
5928 lookup_symbol_in_language. Pass language down.
5929 (add_matching_methods): Likewise. Call
5930 lookup_symbol_in_language.
5931 (add_constructors): Likewise.
5932 (find_method): Pass sym_class to collect_methods.
5933 (collect_methods): Add sym_class parameter. Pass language
5935 * symtab.c (lookup_symbol): Rename to ...
5936 (lookup_symbol_in_language): ... this. Add language
5937 parameter. Use passed language instead of current_language.
5938 (lookup_symbol): New as wrapper around
5939 lookup_symbol_in_language.
5940 (lookup_symbol_aux): Add language parameter. Use passed
5941 language instead of current_language.
5942 (search_symbols): Indent.
5943 * symtab.h (enum language): Forward declare.
5944 (lookup_symbol_in_language): Declare.
5945 (lookup_symbol): Update description.
5946 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5947 * ada-lang.c (restore_language): Remove.
5948 (lookup_symbol_in_language): Remove.
5950 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
5952 * breakpoint.c (bpstat_num): Add int *num parameter.
5953 * breakpoint.h (bpstat_num): Likewise.
5954 * infcmd.c (continue_command): Adjust to new bpstat_num
5956 (program_info): Likewise.
5958 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5960 * config/sh/tm-sh.h: Remove file.
5961 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5962 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5963 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5964 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5966 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5968 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5969 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5970 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5971 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5972 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5973 sequence if target_shortname is "remote".
5975 2007-03-27 Anton Blanchard <anton@samba.org>
5977 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5978 instead of wordsize when looking for the LR in a stack frame.
5980 2007-03-27 Andreas Schwab <schwab@suse.de>
5981 Daniel Jacobowitz <dan@codesourcery.com>
5983 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5984 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5985 argument. Update all callers.
5986 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5987 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5988 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5989 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5990 (dwarf2_frame_set_adjust_regnum): ...this.
5991 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5992 * rs6000-tdep.c: Include "dwarf2-frame.h".
5993 (rs6000_adjust_frame_regnum): Define.
5994 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5995 Register rs6000_adjust_frame_regnum.
5997 * Makefile.in (rs6000-tdep.o): Update dependencies.
5999 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6001 * Makefile.in: Add support for a "pdf" target.
6003 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6005 * amd64-tdep.c (amd64_init_frame_cache): New function.
6006 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6008 2007-03-26 Nigel Stephens <nigel@mips.com>
6009 Maciej W. Rozycki <macro@mips.com>
6011 * ui-out.c (ui_out_field_core_addr): Truncate address to
6012 TARGET_ADDR_BIT size before printing.
6014 2007-03-22 Nigel Stephens <nigel@mips.com>
6015 Maciej W. Rozycki <macro@mips.com>
6017 * remote-mips.c (mips_xfer_memory): Update prototype.
6019 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6021 * symfile.h: #include "symtab.h"
6023 2007-03-22 Denis Pilat <denis.pilat@st.com>
6025 * utils.c (pagination_on_command, pagination_off_command):
6026 Remove useless prototypes.
6028 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6031 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6032 instead of TYPE_NAME for object base class name.
6035 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6037 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6038 Specify frame type in calls to frame_func_unwind().
6040 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6042 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6043 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6044 (refine_prologue_limit): Delete.
6045 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6046 Assume lim_pc is set. Correct check for incomplete prologues.
6047 Do not skip clobbers of the frame pointer.
6048 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6051 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6053 * frame.c (frame_pop): Check to see whether there's a frame to
6054 which we can pop first.
6056 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6058 * MAINTAINERS (Write After Approval): Add myself.
6060 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6062 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6063 (handle_inferior_event): Remove unnecessary braces.
6064 * breakpoint.c (bpstat_what): Remove wrong comment.
6066 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6068 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6069 (spu_gdbarch_init): Install it.
6071 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6073 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6074 object types, not 0.
6076 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6078 * spu-tdep.c (spu_frame_align): New function.
6079 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6081 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6083 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6084 (spu_software_single_step): Likewise.
6085 (spu_read_pc, spu_write_pc): New functions.
6086 (spu_gdbarch_init): Install them.
6088 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6090 * cli/cli-dump.c (struct callback_data): load_offset needs to
6091 have signed long type.
6093 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6095 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6096 Revert the previous change that had some unexpected side-effects
6098 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6099 function to get the address of the calling instruction.
6101 2007-03-07 Denis Pilat <denis.pilat@st.com>
6103 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6104 get_selected_frame by deprecated_safe_get_selected_frame.
6106 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6108 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6109 "gdb_string.h". Don't include "nbsd-tdep.h".
6110 (SIZEOF_STRUCT_REG): Remove.
6111 (SHNBSD_SIZEOF_GREGS): New.
6112 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6113 (shnbsd_regset_from_core_section): New functions.
6114 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6115 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6116 shnbsd_supply_gregset, shnbsd_collect_gregset.
6117 (shnbsd_gregset): New variable.
6118 (shnbsd_init_abi): Set regset_from_core_section.
6119 (GDB_OSABI_NETBSD_CORE): New define.
6120 (shnbsd_core_osabi_sniffer): New function.
6121 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6122 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6123 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6125 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6127 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6129 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6130 length of the types referenced by the new type CV ring.
6132 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6134 * frame.c (frame_pop, frame_observer_target_changed): Call
6136 (flush_cached_frames): Rename to reinit_frame_cache and delete
6138 * frame.h (flush_cached_frames): Delete prototype and update comment.
6140 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6141 reinit_frame_cache instead of flush_cached_frames. Do not call
6142 select_frame after reinit_frame_cache.
6143 * corelow.c (core_open): Likewise.
6144 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6145 * infrun.c (prepare_to_proceed, context_switch)
6146 (handle_inferior_event): Likewise.
6147 * linux-fork.c (fork_load_infrun_state): Likewise.
6148 * ocd.c (ocd_start_remote): Likewise.
6149 * remote-e7000.c (e7000_start_remote): Likewise.
6150 * remote-mips.c (device): Likewise.
6151 * thread.c (switch_to_thread): Likewise.
6152 * tracepoint.c (finish_tfind_command): Likewise.
6153 * gdbarch.c: Regenerated.
6155 2007-02-28 Jerome Guitton <guitton@adacore.com>
6156 Joel Brobecker <brobecker@adacore.com>
6158 * gdbtypes.c (check_typedef): Do not replace stub type if
6159 the resolved type is not defined in the same objfile.
6161 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6163 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6165 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6167 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6168 symbol for Ada units when the symbol is defined using 't' rather
6169 than 'Tt' as symbol descriptor.
6171 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6173 * config/mips/tm-nbsd.h: Delete file.
6174 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6175 * config/sh/tm-nbsd.h: Delete file.
6176 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6178 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6180 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6181 unused WRONG_PARAM value since it was recently deleted.
6183 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6185 * varobj.c (varobj_update): Free temporary vectors.
6187 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6189 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6190 * config/powerpc/tm-linux.h: Delete file.
6191 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6192 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6193 (TEXT_SEGMENT_BASE): Do not redefine.
6194 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6195 from config/rs6000/tm-rs6000.h.
6196 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6197 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6198 (TEXT_SEGMENT_BASE): Remove.
6199 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6200 (rs6000_in_solib_return_trampoline): Remove.
6201 (SKIP_TRAMPOLINE_CODE): Remove.
6202 (rs6000_skip_trampoline_code): Remove.
6203 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6204 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6205 (FP0_REGNUM): Remove.
6206 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6207 (rs6000_set_host_arch_hook): Remove.
6208 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6209 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6210 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6211 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6212 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6213 * rs6000-nat.c: Include "rs6000-tdep.h".
6214 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6215 (set_host_arch): Rename to ...
6216 (rs6000_create_inferior): ... this. Make public.
6217 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6218 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6219 (rs6000_create_inferior): Remove.
6220 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6221 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6222 set_gdbarch_in_solib_return_trampoline, and
6223 set_gdbarch_skip_trampoline_code.
6224 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6225 from config/rs6000/tm-rs6000.h.
6227 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6229 * buildsym.c (record_producer): Do nothing if no producer is provided.
6231 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6233 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6234 to check changelist is non-NULL. Call error if the frontend tries
6235 to update a non-root variable.
6237 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6239 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6241 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6242 (dwarf2_frame_sniffer): Update.
6243 (dwarf2_signal_frame_this_id): New function.
6244 (dwarf2_signal_frame_unwind): Use it.
6245 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6246 * frame.c (frame_func_unwind): Add this_type argument.
6247 (get_frame_func): Update.
6248 (frame_unwind_address_in_block): Add this_type argument and check it.
6250 (get_frame_address_in_block): Update.
6251 * frame.h (enum frame_type): Move higher in the file.
6252 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6255 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6256 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6257 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6258 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6259 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6260 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6261 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6262 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6263 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6264 frame_func_unwind and frame_unwind_address_in_block to specify
6265 the frame type. Use frame_unwind_address_in_block instead of
6266 frame_pc_unwind in sniffers.
6268 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6270 * frame.c (deprecated_selected_frame): Rename to...
6271 (selected_frame): ...this. Make static.
6272 (get_selected_frame, select_frame): Update.
6273 * frame.h (deprected_select_frame): Delete.
6274 (deprecated_safe_get_selected_frame): Update comments.
6276 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6277 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6278 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6279 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6280 tui/tui.c: Replace references to deprecated_selected_frame.
6282 2007-02-27 Fred Fish <fnf@specifix.com>
6284 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6285 directly decrement the stack pointer, accumulate their operand into
6286 the stack offset, and mark the function as not being frameless.
6288 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6290 * arch-utils.c (selected_byte_order): New.
6291 * arch-utils.h (selected_byte_order): New prototype.
6292 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6294 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6296 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6297 (default_symfile_offsets): Check VMA here. Update section VMAs.
6299 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6301 * remote.c (init_remote_state): Add special handling for placeholder
6304 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6306 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6307 (filenames_h): New variable.
6308 (clean): Clean up xml-builtin.c and stamp-xml.
6309 (arm-linux-nat.o): Update.
6310 * config/arm/linux.mh (TDEP_XML): Define.
6311 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6312 (arm_linux_has_wmmx_registers): New.
6313 (GET_THREAD_ID): Fix typo.
6314 (IWMMXT_REGS_SIZE): Define.
6315 (fetch_wmmx_regs, store_wmmx_regs): New.
6316 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6317 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6318 (super_xfer_partial, arm_linux_xfer_partial): New.
6319 (_initialize_arm_linux_nat): Use them.
6320 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6321 (xml_builtin_xfer_partial): New function.
6322 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6323 * NEWS: Update mention of iWMMXt support.
6325 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6327 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6328 if there are no FPA registers.
6329 (arm_dwarf_reg_to_regnum): New function.
6330 (arm_register_type, arm_register_name): Return minimal values for
6331 unsupported registers.
6332 (arm_register_sim_regno): Handle iWMMXt registers.
6333 (arm_gdbarch_init): Record missing FPA registers if indicated by
6334 a target description. Recognize iWMMXt registers. Only register
6335 "info float" for FPA. Use ARM_NUM_REGS. Register
6336 arm_dwarf_reg_to_regnum.
6337 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6339 (struct gdbarch_tdep): Add have_fpa_registers.
6340 * features/xscale-iwmmxt.xml: Update capitalization.
6341 * regformats/arm-with-iwmmxt.dat: Regenerated.
6343 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6345 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6347 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6349 * MAINTAINERS (mep): New target.
6351 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6353 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6355 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6356 (mep-tdep.o): New rule.
6357 * configure.tgt (mep-*-*): New target.
6358 * mep-tdep.c: New file.
6359 * config/mep/mep.mt: New file.
6361 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6363 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6364 BREAKPOINT_HIT and STOP_UNKNOWN.
6366 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6368 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6370 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6372 * gdb_expat.h (XMLCALL): Define if not already defined.
6374 2007-02-20 Andreas Schwab <schwab@suse.de>
6376 * Makefile.in (symfile.o): Update dependencies.
6378 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6380 * MAINTAINERS: Disable -Werror for cris simulator. Build
6381 sparc64-solaris2.10 instead of the broken sparc-elf.
6382 * solib-frv.c: Include "solib.h".
6383 * Makefile.in (solib-frv.o): Update.
6384 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6385 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6386 (xtensa_frame_this_id, xtensa_frame_prev_register)
6387 (xtensa_push_dummy_call): Use %p.
6389 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6391 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6392 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6393 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6394 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6395 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6396 (sparc-linux-tdep.o): Update.
6398 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6400 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6401 (xtensa_mask_t): Change mask field to be a separate array.
6402 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6403 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6404 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6405 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6406 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6407 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6408 (mask14, mask15): Rename to
6409 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6410 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6411 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6412 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6413 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6414 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6415 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6416 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6417 (xtensa_submask14, xtensa_submask15): New.
6418 (rmap): Follow strict aliasing rules doing static initialization.
6420 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6422 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6423 handling from here...
6424 (tdesc_register_type): ...to here.
6425 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6426 * features/arm-core.xml: Use code_ptr and data_ptr.
6428 2007-02-13 Denis Pilat <denis.pilat@st.com>
6430 * varobj.h (enum varobj_update_error): New enum.
6431 * varobj.c (struct varobj_root): Add is_valid member.
6432 (varobj_get_type): Check for invalid varobj.
6433 (varobj_get_attributes): Likewise.
6434 (variable_editable):Likewise.
6435 (varobj_update): Likewise. Use varobj_update_error.
6436 (new_root_variable): Set root varobj as valid by default.
6437 (varobj_invalidate): New function.
6438 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6439 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6440 Use varobj_update_error.
6442 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6445 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6446 Pascal language marker.
6447 * dwarf2read.c (set_cu_language): Likewise.
6449 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6451 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6452 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6453 instead of target_terminal_init since inferior_ptid isn't set yet.
6455 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6457 * MAINTAINERS (Write After Approval): Add myself.
6459 2007-02-09 Fred Fish <fnf@specifix.com>
6461 Based on work by Apple Computer, Inc.
6462 * event-top.c (async_request_quit): Call quit() whenever either
6463 quit_flag is set or immediate_quit is set.
6465 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6467 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6468 type to a pointer to const struct block.
6469 (ada_lookup_symbol_list): Don't cast away constness when calling
6470 remove_out_of_scope_renamings.
6472 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6474 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6475 address of 'filename'; it is always non null.
6477 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6479 * exec.c (add_to_section_table): Do not discard empty sections.
6481 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6483 * features/Makefile, features/arm-with-iwmmxt.xml,
6484 features/gdbserver-regs.xsl, features/number-regs.xsl,
6485 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6486 * regformats/arm-with-iwmmxt.dat: Generate.
6487 * NEWS: Mention iWMMXt.
6489 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6491 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6492 (xml-tdesc.o): Update.
6493 * xml-support.c: Add a comment.
6494 (gdb_xml_enums_boolean): New variable.
6495 (gdb_xml_parse_attr_enum): Use strcasecmp.
6496 * xml-support.h (gdb_xml_enums_boolean): Declare.
6497 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6498 next_regnum, and current_union.
6499 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6500 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6501 (field_attributes, union_children, reg_attributes, union_attributes)
6502 (vector_attributes, feature_attributes, feature_children): New.
6503 (target_children): Make static. Add <feature>.
6504 (tdesc_elements): Make static.
6505 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6506 (struct tdesc_feature, tdesc_feature_p): New types.
6507 (struct target_desc): Add features member.
6508 (struct tdesc_arch_data, tdesc_data): New.
6509 (target_find_description): Clarify error message. Warn about
6510 ignored register descriptions.
6511 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6512 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6513 (tdesc_data_cleanup, tdesc_numbered_register)
6514 (tdesc_numbered_register_choices, tdesc_find_register)
6515 (tdesc_register_name, tdesc_register_type)
6516 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6517 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6518 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6519 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6520 (tdesc_create_feature, tdesc_record_type): New.
6521 (free_target_description): Free features.
6522 (_initialize_target_descriptions): Initialize tdesc_data.
6523 * arch-utils.c (default_remote_register_number): New.
6524 * arch-utils.h (default_remote_register_number): New prototype.
6525 * target-descriptions.h (set_tdesc_pseudo_register_name)
6526 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6527 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6528 (tdesc_numbered_register, tdesc_numbered_register_choices)
6529 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6530 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6531 (tdesc_create_reg): Declare.
6532 * gdbarch.sh (remote_register_number): New entry.
6533 * gdbarch.c, gdbarch.h: Regenerate.
6534 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6535 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6537 * arm-tdep.c (arm_register_aliases): New.
6538 (arm_register_name_strings): Rename to...
6539 (arm_register_names): ...this. Make const. Delete the old version.
6540 (current_option, arm_register_byte): Delete.
6541 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6542 (value_of_arm_user_reg): New.
6543 (arm_gdbarch_init): Verify any described registers. Call
6544 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6545 for standard register names.
6546 (_initialize_arm_tdep): Do not adjust arm_register_names.
6547 * user-regs.c (struct user_reg): Add baton member.
6548 (append_user_reg, user_reg_add_builtin, user_regs_init)
6549 (user_reg_add, value_of_user_reg): Use a baton for user
6551 * std-regs.c: Update.
6552 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6553 (user_reg_add): Add baton argument.
6554 * NEWS: Mention target description register support.
6555 * features/arm-core.xml, features/arm-fpa.xml: New.
6556 * eval.c (evaluate_subexp_standard): Allow ptype $register
6557 when the program is not running.
6559 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6561 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6563 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6565 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6566 info->disassembler_options to "any".
6568 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6570 * varobj.c (install_new_value): Only call value_get_print_value
6573 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6575 Reported by timeless@gmail.com:
6576 * gdb/target.c (target_flash_erase): Do not return void value.
6577 (target_flash_done): Likewise.
6578 * gdb/cli/cli-cmds.c (source_command): Likewise.
6580 2007-02-08 Fred Fish <fnf@specifix.com>
6582 Based on work by Apple Computer, Inc.
6583 * event-top.c (handle_sigint): Set quit_flag.
6584 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6585 if quit_flag has already been reset.
6587 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6589 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6592 2007-02-08 Fred Fish <fnf@specifix.com>
6594 * defs.h (request_quit): Remove declaration.
6595 * utils.c (request_quit): Remove definition.
6597 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6598 Jan Kratochvil <jan.kratochvil@redhat.com>
6599 Daniel Jacobowitz <dan@codesourcery.com>
6601 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6602 (skip_prologue): Allow bl->blrl used by PIC code.
6604 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6605 Daniel Jacobowitz <dan@codesourcery.com>
6607 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6608 initialize tmp_obstack.
6609 * p-valprint.c (pascal_object_print_value_fields)
6610 (pascal_object_print_value): Likewise.
6612 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6614 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6616 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6618 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6619 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6621 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6623 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6625 (tdesc_parse_xml): Cache expanded descriptions.
6627 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6629 * Makefile.in (XMLFILES): New.
6630 (COMMON_OBS): Add xml-builtin.o.
6631 (xml-builtin.c, stamp-xml): New rules.
6632 (xml-tdesc.o): Update.
6633 * features/feature_to_c.sh: New file.
6634 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6635 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6636 (gdb_xml_start_element): Initialize scope after possibly reallocating
6637 scopes. Move cleanup later. Handle the XInclude description
6639 (gdb_xml_end_element): Only parse the body if there is a current element.
6640 Call XML_DefaultCurrent if there is no element.
6641 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6642 (struct xinclude_parsing_data, xinclude_start_include)
6643 (xinclude_end_include, xml_xinclude_default)
6644 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6645 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6646 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6647 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6648 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6649 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6650 XInclude directives. Use the compiled in DTD.
6651 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6652 directory name. Do not warn here.
6653 (file_read_description_xml): Update call. Warn here instead. Pass
6655 (fetch_available_features_from_target): New.
6656 (target_read_description_xml): Use it.
6657 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6659 * features/xinclude.dtd: New file.
6661 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6663 * linux-thread-db.c (check_for_thread_db): Return early if we have
6664 no libthread_db support.
6666 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6668 * mi/mi-parse.h: Include <sys/time.h>.
6670 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6672 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6673 instead of print_variable_value to print values.
6675 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6677 * mi/mi-main.c: Numerous formatting changes.
6678 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6679 removed in my previous change.
6681 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6683 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6684 Use 1000000L instead of 1000000.
6686 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6688 Based on work by Apple Computer, Inc.
6690 * configure.ac: Test for sys/resource.h and getrusage.
6691 * configure, config.in: Regenerate.
6693 * mi/mi-main.c: Include <sys/resource.h> if present.
6694 (rusage): Declare if HAVE_GETRUSAGE.
6695 (current_command_ts, do_timings): New static variables.
6696 (timestamp, print_diff_now, print_diff, timeval_diff):
6697 New static timing functions.
6698 (mi_cmd_enable_timings): New function for new MI command.
6699 (captured_mi_execute_command, mi_execute_async_cli_command):
6700 Call timing functions.
6702 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6705 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6707 * mi/mi-parse.h: (mi_timestamp): New structure.
6708 (mi_parse): Add mi_timestamp* member.
6710 2007-02-02 Denis Pilat <denis.pilat@st.com>
6712 * thread.c (make_cleanup_restore_current_thread): New function.
6713 (info_threads_command): Use of make_cleanup_restore_current_thread
6714 to restore the current thread and the selected frame.
6715 (restore_selected_frame): New function.
6716 (struct current_thread_cleanup): Add frame_id field.
6717 (do_restore_current_thread_cleanup): Add restoring of the selected
6719 (make_cleanup_restore_current_thread): Likewise.
6720 (thread_apply_all_command): backup the selected frame while
6721 entering the function and restore it at exit.
6722 (thread_apply_command): Likewise.
6724 2007-02-02 Denis Pilat <denis.pilat@st.com>
6726 * MAINTAINERS (Write After Approval): Add myself to the list.
6728 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6730 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6731 (m32r_store_register): Ditto.
6733 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6735 * ser-mingw.c (pipe_windows_open)
6736 (pipe_windows_read, pipe_windows_write): Declare
6737 variables at the top of the function.
6739 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6741 * doublest.c (floatformat_from_length): Use the right element from
6742 gdbarch floatformats.
6743 (floatformat_from_type, extract_typed_floating)
6744 (store_typed_floating): Likewise.
6745 * doublest.h: Remove declarations for undefined floatformat arrays.
6746 * gdbarch.sh (float_format, double_format, long_double_format): Change
6748 (pformat): Update for pairs.
6749 * gdbarch.c, gdbarch.h: Regenerated.
6750 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6751 (floatformats_ieee_double_littlebyte_bigword)
6752 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6753 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6754 (floatformats_vax_d): New variables.
6755 (builtin_type_ieee_single, builtin_type_ieee_double)
6756 (builtin_type_arm_ext, builtin_type_ia64_spill)
6757 (builtin_type_ia64_quad): Replace arrays with individual types.
6758 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6759 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6760 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6761 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6762 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6763 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6764 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6765 unused and endian-specific types.
6766 (recursive_dump_type): Update for floatformat pairs.
6767 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6768 (build_gdbtypes): Use build_flt.
6769 (_initialize_gdbtypes): Update set of initialized types.
6770 * gdbtypes.h: Update declarations to match gdbtypes.c.
6771 (struct main_type): Store a pointer to two floatformats.
6772 * arch-utils.c (default_float_format, default_double_format): Delete.
6773 * arch-utils.h (default_float_format, default_double_format): Delete.
6775 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6776 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6777 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6778 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6779 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6781 2007-01-29 Joel Brobecker <brobecker@adacore.com>
6783 * target.c (maintenance_print_target_stack): New function.
6784 (initialize_targets): Add new "maintenance print target-stack"
6787 2007-01-28 Mark Kettenis <kettenis@gnu.org>
6789 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6791 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6793 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6794 (struct dwarf2_loclist_baton): Likewise.
6796 2007-01-27 Eli Zaretskii <eliz@gnu.org>
6798 * cli/cli-script.c: Include breakpoint.h.
6799 (build_command_line): Require arguments only for if and while
6801 (get_command_line, execute_user_command, execute_control_command):
6802 Fix wording of warning messages.
6803 (print_command_lines): Print breakpoint commands.
6804 (execute_control_command): Call commands_from_control_command to
6805 handle the `commands' command inside a body of a flow-control
6807 (read_next_line): Recognize the `commands' command and build a
6808 command line structure for it.
6809 (recurse_read_control_structure, read_command_lines): Handle
6810 `commands' similarly to `if' and `while'.
6812 * breakpoint.c (get_number_trailer): Document the special meaning
6813 of NULL as the first argument PP.
6814 (commands_from_control_command): New function.
6816 * breakpoint.h (commands_from_control_command): Add prototype.
6818 * defs.h (commands_control): New enumerated value for enum
6819 command_control_type.
6821 2007-01-26 Joel Brobecker <brobecker@adacore.com>
6823 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6824 (ada_exception_sal): Update accordingly.
6826 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6828 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6829 * NEWS: Describe CHAR array vs. string identifcation rules.
6831 2007-01-25 Paul Brook <paul@codesourcery.com>
6833 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6835 2007-01-24 Jim Blandy <jimb@codesourcery.com>
6837 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6838 expression is empty, bother to return the 'optimized out' value we
6839 construct. (Thanks to Carl Burch.)
6841 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6843 * varobj.c (c_value_of_root, c_value_of_child)
6844 (cplus_describe_child): Don't call release_value.
6846 2007-01-24 Thiemo Seufer <ths@mips.com>
6848 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6851 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6853 Refactor getting children name, value and type access
6855 * varobj.c (get_type_deref): Remove.
6856 (adjust_value_for_child_access): New.
6857 (c_number_of_children): Use the above.
6858 (c_describe_child): Likewise.
6859 (enum accessibility): New.
6860 (match_accessibility): New function.
6861 (cplus_describe_child): New function.
6862 (cplus_name_of_child, cplus_value_of_child)
6863 (cplus_type_of_child): Reimplement in terms
6864 of cplus_describe_child.
6865 (cplus_number_of_children): Use
6866 adjust_value_for_child_access.
6868 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6870 Fix computation of the 'editable' attribute and
6871 value changeability for for references.
6872 * varobj.c (get_value_type): New function.
6873 (c_variable_editable): Use get_value_type.
6874 (varobj_value_is_changeable): Likewise.
6876 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6878 * source.c (find_and_open_source): Try rewriting the source
6879 path inside filename if dirname is NULL.
6881 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6883 * dwarf2read.c (add_partial_symbol): Create an extra partial
6884 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6885 (new_symbol): Likewise for symbols.
6887 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
6889 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6891 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
6893 * value.c (value_primitive_field): Copy the full 'location'
6894 contents, instead of assuming that copying ADDRESS will
6895 bring over everything in the union. Remove obsolete comment.
6897 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
6899 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6900 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6901 (m32c_m16c_pointer_to_address): Separate code from declarations.
6903 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
6905 * target.c (update_current_target): Correct typo.
6907 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
6909 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6912 2007-01-11 Andrew Cagney <cagney@redhat.com>
6913 Daniel Jacobowitz <dan@codesourcery.com>
6914 Jan Kratochvil <jan.kratochvil@redhat.com>
6916 * dwarf2-frame.c (execute_cfa_program): New support of
6917 `DW_CFA_GNU_negative_offset_extended'.
6919 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6921 * NEWS: Mention flash support for "load" and new remote packets.
6923 2007-01-21 Markus Deuling <deuling@de.ibm.com>
6925 * breakpoint.c (delete_command): Skip redundant loop iterations.
6927 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6929 * gdbarch.sh (register_type): Update comment.
6930 * gdbarch.h: Regenerated.
6931 * arch-utils.c (generic_register_size): Call register_type.
6932 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6933 * m32c-tdep.c (check_for_saved): Likewise.
6934 * mips-tdep.c (mips_print_register, print_gp_register_row)
6935 (mips_print_registers_info): Likewise.
6936 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6938 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6939 (sh64_do_register, sh64_print_register)
6940 (sh64_media_print_registers_info): Likewise.
6941 * tui/tui-regs.c (tui_register_format): Likewise.
6943 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6945 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6947 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6948 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6949 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6950 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6951 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6952 (make_symbol_completion_list): Likewise.
6954 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6955 Daniel Jacobowitz <dan@codesourcery.com>
6957 * buildsym.c (end_symtab): Use preallocated symtab if available.
6958 Fill in SYMBOL_SYMTAB.
6959 * buildsym.h (struct subfile): Add symtab member.
6960 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6961 (struct file_entry): Add symtab.
6962 (free_cu_line_header): New function.
6963 (read_file_scope): Use it. Save line_header in the cu. Process
6965 (add_file_name): Initialize new symtab member.
6966 (dwarf_decode_lines): Create symtabs for included files.
6967 (new_symbol): Set SYMBOL_SYMTAB.
6968 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6969 (search_symbols): Likewise.
6970 * symtab.h (struct symbol): Add symtab member.
6971 (SYMBOL_SYMTAB): Define.
6973 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6975 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6977 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6979 * arch-utils.c (show_endian): Correct reversed condition.
6981 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6983 * MAINTAINERS (Write After Approval): Add myself.
6985 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
6986 Vladimir Prus <vladimir@codesourcery.com>
6988 Fix 'selected frame' varobjs.
6989 * varobj.c (struct varobj): Remove the error field.
6990 (varobj_set_value): Don't check var->error.
6991 (install_new_value): Don't set var->error.
6992 (varobj_update): Always pass the new value
6993 of the root via install_new_value.
6994 (create_child): Don't set error field.
6995 (new_variable): Likewise.
6996 (c_value_of_root): Always reevaluate the value
6997 of selected frame varobjs in the selected frame.
6998 Don't call reinit_frame_cache.
7000 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7002 * source.c (_initialize_source): Improve the help text of
7003 the substitute-path commands.
7005 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7007 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7008 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7009 (frv_skip_prologue): Remove prototypes.
7010 (frv_adjust_breakpoint_address): Renamed from
7011 frv_gdbarch_adjust_breakpoint_address.
7012 (frv_gdbarch_init): Adjust.
7014 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7016 * gdbarch.sh (deprecated_extract_return_value)
7017 (deprecated_store_return_value): Remove.
7018 (extract_return_value, store_return_value): Remove default values.
7019 * gdbarch.c, gdbarch.h: Regenerate.
7020 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7021 (legacy_store_return_value): Remove.
7022 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7025 * mi/mi-main.c: Remove obsolete comment.
7027 * regcache.c, regcache.h (deprecated_register_bytes)
7028 (deprecated_read_register_bytes)
7029 (deprecated_write_register_bytes): Remove.
7031 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7032 Don't forget to move destination pointer.
7034 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7036 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7038 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7040 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7041 past entry function with recent newlib.
7043 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7045 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7046 introduction. Specify -var-update more exactly.
7048 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7050 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7052 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7054 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7055 the Global Maintainers' invitation to be a global maintainer.
7057 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7059 * infrun.c (singlestep_pc): New variable.
7060 (resume): Set singlestep_pc.
7061 (context_switch): Add a debugging message. Flush the frame cache.
7062 (handle_inferior_event): Add debugging messages. Handle thread
7063 hops when a software single step has completed. Let context_switch
7064 handle flushing the frame cache.
7066 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7068 * NEWS: Mention target descriptions, "set tdesc filename",
7069 "unset tdesc filename", "show tdesc filename", and
7070 qXfer:features:read.
7071 * arch-utils.c (choose_architecture_for_target): New function.
7072 (gdbarch_info_fill): Call it.
7073 * target-descriptions.c (struct property): Make members non-const.
7074 (struct target_desc): Add arch member.
7075 (target_description_filename): New variable.
7076 (target_find_description): Try via XML first.
7077 (tdesc_architecture): New.
7078 (free_target_description, make_cleanup_free_target_description): New.
7079 (set_tdesc_property): Call xstrdup.
7080 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7081 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7082 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7083 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7084 * target-descriptions.h (tdesc_architecture)
7085 (make_cleanup_free_target_description, set_tdesc_architecture): New
7087 * Makefile.in (SFILES): Add xml-tdesc.c.
7088 (COMMON_OBS): Add xml-tdesc.o.
7089 (target-descriptions.o): Update.
7090 (xml-tdesc.o): New rule.
7091 * xml-tdesc.c, xml-tdesc.h: New files.
7092 * remote.c (PACKET_qXfer_features): New enum.
7093 (remote_protocol_features): Add qXfer:features:read.
7094 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7095 (_initialize_remote): Register qXfer:features:read.
7096 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7097 * features/gdb-target.dtd: New file.
7099 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7101 * copyright.sh: Clarify error.
7103 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7105 * symtab.c (matching_bfd_sections): Fix VMA matching for
7108 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7110 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7113 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7115 Updated copyright notices for most files.
7117 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7119 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7121 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7123 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7125 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7127 * configure, config.in: Regenerate.
7128 * defs.h (debug_file_directory): Declare.
7129 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7130 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7131 relocate it if DEBUGDIR_RELOCATABLE.
7132 * symfile.c (debug_file_directory): Make non-static.
7133 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7134 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7135 (_initialize_symfile): Don't initialize debug_file_directory here.
7137 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7139 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7142 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7144 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7145 frame_unwind_register to recurse.
7146 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7147 (alpha_heuristic_frame_prev_register): Likewise.
7148 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7149 * m32c-tdep.c (m32c_prev_register): Likewise.
7150 * frame.c (frame_register_unwind_location): Remove FIXME.
7152 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7153 Eli Zaretskii <eliz@gnu.org>
7155 * copyright.sh: New file.
7157 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7159 * configure.ac: Check for XML_StopParser.
7160 * xml-support.c (gdb_xml_body_text): Check for an error.
7161 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7162 (gdb_xml_end_element_wrapper): Likewise.
7163 * config.in, configure: Regenerated.
7165 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7167 * varobj.c (install_new_value): Always update print_value.
7168 (value_get_print_value): Immediately return NULL for missing
7171 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7173 * configure.ac: Tighten pattern for extracting value of
7174 DEPRECATED_TM_FILE from the target makefile fragment.
7175 * configure: Regenerated.
7177 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7179 * linux-nat.c (struct simple_pid_list): Add status.
7180 (add_to_pid_list): Record the PID's status.
7181 (linux_record_stopped_pid): Likewise. Make static.
7182 (pull_pid_from_list): Return the saved status.
7183 (linux_nat_handle_extended): Deleted.
7184 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7185 Make static. Handle non-SIGSTOP for a new thread's first signal.
7186 (flush_callback): Handle unexpected pending signals.
7187 (linux_nat_wait): Update calls to changed functions.
7188 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7189 Remove prototypes for newly static functions.
7191 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7193 * gdbarch.sh (value_from_register): New gdbarch function.
7194 * gdbarch.c, gdbarch.h: Regenerate.
7195 * findvar.c (default_value_from_register): New function.
7196 (value_from_register): Use gdbarch_value_from_register.
7197 * value.h (default_value_from_register): Declare.
7198 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7199 spu_value_to_register): Remove.
7200 (spu_value_from_register): New function.
7201 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7202 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7203 Call set_gdbarch_value_from_register.
7204 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7205 s390_value_to_register): Remove.
7206 (s390_value_from_register): New function.
7207 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7208 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7209 Call set_gdbarch_value_from_register.
7211 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7213 * NEWS: Add "set sysroot" and "show sysroot".
7214 * solib.c (solib_absolute_prefix): Delete. Replace
7215 all uses with gdb_sysroot.
7216 (_initialize_solib): Add "set sysroot" and "show sysroot".
7217 Make "solib-absolute-prefix" an alias to it.
7219 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7221 * frame.c (get_frame_register_bytes): New function.
7222 (put_frame_register_bytes): Likewise.
7223 * frame.h (get_frame_register_bytes): Declare.
7224 (put_frame_register_bytes): Likewise.
7225 * findvar.c (value_from_register): Always construct lval_register
7226 values. Use get_frame_register_bytes.
7227 * valops.c (value_assign): Use get_frame_register_bytes and
7228 put_frame_register_bytes.
7230 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7232 * MAINTAINERS: Update Stan Shebs' email address.
7234 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7236 * ada-lang.c (is_known_support_routine): Improve the implementation.
7238 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7240 * ada-lang.c: Add include of source.h.
7241 (is_known_support_routine): Improve the check verifying that the file
7242 associated to this frame exists.
7243 * Makefile.in (ada-lang.o): Add dependency on source.h.
7245 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7247 * ax-general.c (ax_const_l): Select proper opcode for the given
7250 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7252 * varobj.c (c_value_of_root): Don't select frame if variable
7253 object is out of scope.
7255 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7257 * varobj.c (struct varobj): New member print_value.
7258 (install_new_value): Compare last printed value with current one
7259 instead of contents.
7260 (new_variable): Initialize var->print_value to NULL.
7261 (free_variable): Free var->print_value.
7262 (value_get_print_value): New function derived from
7263 c_value_of_variable.
7264 (c_value_of_variable): Use value_get_print_value.
7266 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7268 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7270 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7272 * NEWS: Add entries for new catch commands.
7274 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7276 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7277 (add_partial_symbol): Correct identification of external references.
7278 (process_structure_scope): Likewise.
7279 (read_partial_die): Handle DW_AT_byte_size attribute.
7281 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7283 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7285 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7287 * varobj.c (get_type_deref): Fix variable objects for references to
7290 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7292 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7295 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7297 * memory-map.c (struct_memory_map_parsing_data): Remove most
7298 members. Make property_name an array.
7299 (free_memory_map_parsing_data, memory_map_start_element)
7300 (memory_map_end_element, memory_map_character_data): Delete.
7301 (memory_map_start_memory, memory_map_end_memory)
7302 (memory_map_start_property, memory_map_end_property): New functions.
7303 (property_attributes, memory_children, memory_type_enum)
7304 (memory_attributes, memory_map_children, memory_map_elements): New.
7305 (parse_memory_map): Rewrite.
7306 * xml-support.c (debug_xml): New.
7307 (xml_get_required_attribute, xml_get_integer_attribute)
7308 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7310 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7311 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7312 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7313 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7314 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7315 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7316 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7318 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7319 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7320 (enum gdb_xml_element_flag, struct gdb_xml_element)
7321 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7322 (struct gdb_xml_enum): New.
7323 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7324 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7325 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7326 (xml_get_required_attribute, xml_get_integer_attribute)
7327 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7328 * Makefile.in (xml_support_h, xml-support.o): Update.
7330 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7332 * Makefile.in (eval.o): Update dependencies.
7333 * eval.c: Include "ui-out.h" and "exceptions.h".
7334 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7335 Use value_zero if an error occurs when avoiding side effects.
7336 * varobj.c (c_value_of_root): Initialize new_val.
7338 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7340 * varobj.c (varobj_list_children): Stop if the number of children is
7342 (c_number_of_children):
7344 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7346 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7347 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7348 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7349 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7350 sizeof, instead of hardcoded constants.
7352 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7354 * CONTRIBUTE: Use sourceware.org.
7356 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7358 * buildsym.c (start_subfile): Handle producer.
7359 (record_producer): New function.
7360 * buildsym.h (struct subfile): Include producer.
7361 (record_producer): New prototype.
7362 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7363 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7364 armcc_cfa_offsets_reversed.
7365 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7366 (dwarf2_frame_find_quirks): New function.
7367 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7368 (decode_frame_entry_1): Record the CIE version. Record the
7369 augmentation. Skip armcc augmentations.
7370 * dwarf2read.c (read_file_scope): Save the producer.
7371 * symtab.h (struct symtab): Rename unused version member to
7374 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7376 * configure.ac (build_warnings): Use -Wall and
7377 -Wdeclaration-after-statement.
7378 * configure: Regenerated.
7380 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7382 Simplify access to variours properties of child
7383 variable objects in C.
7384 * varobj.c (value_struct_element_index): New function.
7385 (c_describe_child): New function.
7386 (c_name_of_child, c_value_of_child)
7387 (c_type_of_child): Rewrite to use c_describe_child.
7389 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7392 * varobj.c: Include "vec.h".
7393 (varobj_p): New typedef, declare vector of those.
7394 (struct varobj): Use vector for the 'children' member.
7395 (child_exists): Remove.
7396 (save_child_in_parent): Remove.
7397 (remove_child_from_parent): Remove.
7398 (struct varobj_child): Remove.
7399 (struct vstack): Remove.
7400 (vpush, vpop): Remove.
7401 (varobj_list_children): Adjust to work work vector.
7402 (varobj_update): Likewise. Use vectors for
7403 working stack and result.
7404 (delete_variable_1): Likewise.
7405 * Makefile.in (varobj.o): Update dependencies.
7407 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7409 Port from Apple's version.
7411 * varobj.c (type_changeable): Rename to...
7412 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7413 (is_root_p): New function. Use it everywhere.
7415 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7417 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7420 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7422 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7424 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7426 * hpread.c (hpread_type_lookup): Fix compilation failure.
7428 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7430 * NEWS: New port to S+core.
7431 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7434 * Makefile.in: Add dependencies for S+core files.
7435 * configure.tgt (score*, score-*-*): Add S+core target.
7436 * config/score/embed.mt: New file.
7437 * score-tdep.c: New file.
7438 * score-tdep.h: New file.
7440 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7442 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7443 the appropriate type rather than a bogus void type.
7445 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7447 * ada-lang.h (ada_find_printable_frame): Remove.
7448 (ada_exception_catchpoint_p, ada_decode_exception_location)
7449 (ada_decode_assert_location): Add declaration.
7450 * ada-lang.c: Add include of annotate.h and valprint.h.
7451 (exception_catchpoint_kind): New enum.
7452 (function_name_from_pc, is_known_support_routine)
7453 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7454 (ada_exception_name_addr_1, ada_exception_name_addr)
7455 (print_it_exception, print_one_exception, print_mention_exception)
7456 (print_it_catch_exception, print_one_catch_exception)
7457 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7458 (print_it_catch_exception_unhandled)
7459 (print_one_catch_exception_unhandled)
7460 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7461 (print_one_catch_assert, print_mention_catch_assert)
7462 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7463 (ada_get_next_arg, catch_ada_exception_command_split)
7464 (ada_exception_sym_name, ada_exception_sym_name)
7465 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7466 (ada_parse_catchpoint_condition, ada_exception_sal)
7467 (ada_decode_exception_location)
7468 (ada_decode_assert_location): New function.
7469 (catch_exception_unhandled_breakpoint_ops): New global variable.
7470 (catch_assert_breakpoint_ops): New global variable.
7471 * breakpoint.c: Add include of ada-lang.h.
7472 (print_one_breakpoint): Do not print the condition for Ada
7473 exception catchpoints.
7474 (create_ada_exception_breakpoint): New function.
7475 (catch_ada_exception_command, catch_assert_command): New function.
7476 (catch_command_1): Add support for the new "catch exception" and
7477 "catch assert" commands.
7478 (_initialize_breakpoint): Add help description for the new catch
7480 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7482 (breakpoint.o): Add dependency on ada-lang.h.
7484 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7486 * coffread.c (cs_to_section): If bfd_section is found, always
7487 return its section index.
7488 (coff_symtab_read): Determine the minimal_symbol_type using the
7491 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7492 Daniel Jacobowitz <dan@codesourcery.com>
7494 * Makefile.in (top.o): Update.
7495 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7496 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7497 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7499 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7501 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7503 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7504 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7506 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7508 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7509 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7510 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7511 greater than or equal to zero.
7512 * m2-typeprint.c (m2_array): Likewise.
7513 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7514 * gdbtypes.c (copy_type_recursive): Correct == typo.
7515 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7516 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7518 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7519 (default_macro_scope): Remove unused variable.
7520 * prologue-value.h (pv_area_find_reg): Don't name an argument
7522 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7523 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7525 (cleanup_sigint_signal_handler): Remove casts.
7526 * valprint.c (val_print): Use a volatile local for the modified
7528 * varobj.c (languages): Remove extra array dimension.
7529 (varobj_create): Correct access to languages array.
7530 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7532 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7533 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7534 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7535 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7536 (mi_cmd_data_write_memory): Likewise.
7537 * signals/signals.c (target_signal_to_string): Cast to int before
7539 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7542 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7544 * NEWS: Mention pointer to member improvements.
7545 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7546 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7547 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7548 * c-typeprint.c (c_print_type): Update for new type codes.
7549 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7550 (c_type_print_base): Likewise.
7551 (c_type_print_args): Rewrite.
7552 * c-valprint.c (c_val_print): Update for new type codes. Remove
7553 support for references to members. Treat methods like functions.
7554 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7555 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7556 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7557 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7558 (struct cp_abi_ops): Add corresponding members.
7559 * cp-valprint.c (cp_print_class_method): Delete.
7560 (cp_find_class_member): New function.
7561 (cp_print_class_member): Use it. Simplify support for bogus
7563 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7564 lookup_methodptr_type.
7565 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7566 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7567 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7569 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7570 references returned by user defined operators.
7571 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7572 (f_type_print_varspec_suffix): Remove support for member pointers.
7573 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7575 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7576 (lookup_methodptr_type): New.
7577 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7578 (recursive_dump_type): Update for new types.
7579 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7580 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7581 (lookup_memberptr_type, lookup_methodptr_type)
7582 (smash_to_memberptr_type): New prototypes.
7583 (smash_to_method_type): Formatting fix.
7584 (lookup_member_type, smash_to_member_type): Delete prototypes.
7585 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7586 Do not rely on debug information for the vptr or the method's
7587 enclosing type. Handle function descriptors for IA64.
7588 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7589 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7590 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7591 (gnuv3_method_ptr_to_value): New.
7592 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7593 * hpread.c (hpread_type_lookup): Update for new types.
7594 * infcall.c (value_arg_coerce): Likewise.
7595 * m2-typeprint.c (m2_print_type): Remove explicit support
7596 for member pointers.
7597 * m2-valprint.c (m2_val_print): Likewise.
7598 * p-typeprint.c (pascal_type_print_varspec_prefix)
7599 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7600 * p-valprint.c (pascal_val_print): Likewise.
7601 (pascal_object_print_class_method, pascal_object_print_class_member):
7603 * p-lang.h (pascal_object_print_class_method)
7604 (pascal_object_print_class_member): Delete prototypes.
7605 * stabsread.c (read_type): Update for new types.
7606 * typeprint.c (print_type_scalar): Likewise.
7607 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7608 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7609 argument. Construct a pointer to member if the address of a
7610 function or data member is requested.
7611 (value_cast_pointers): Don't modify the input value.
7612 (value_cast): Adjust pointer to member handling for new types.
7613 Allow null pointer to member constants. Don't modify the input
7615 (value_ind): Remove pointer to member check. Handle function
7616 descriptors for function pointers.
7617 (value_struct_elt, value_find_oload_method_list, check_field):
7618 Remove pointer to member checks.
7619 * value.c (unpack_long): Allow pointers to data members.
7620 (value_from_longest): Allow member pointers.
7621 * value.h (value_aggregate_elt): Add want_address.
7622 * varobj.c (c_variable_editable): Remove check for members.
7623 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7624 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7626 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7627 * c-lang.h (cp_print_class_method): Delete prototype.
7628 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7629 * mips-tdep.c (mips_gdbarch_init): Likewise.
7630 * gdbarch.c, gdbarch.h: Regenerated.
7632 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7634 * rs6000-tdep.c (rs6000_use_struct_convention)
7635 (rs6000_extract_return_value, rs6000_store_return_value)
7636 (rs6000_extract_struct_value_address): Remove.
7637 (rs6000_return_value): New function.
7638 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7639 store_return_value, deprecated_extract_struct_value_address and
7640 deprecated_use_struct_convention. Use rs6000_return_value
7643 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7645 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7646 -display-disable, -display-enable, -display-insert and
7649 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7651 * breakpoint.c (remove_breakpoint): Remove dead code.
7653 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7655 * varobj.c: Include block.h.
7656 (c_value_of_root): Check scope within nested statements.
7658 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7660 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7661 regcache_cooked_write_signed instead of
7662 deprecated_write_register_bytes.
7664 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7666 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7668 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7670 Followed the Start of New Year Procedure:
7671 * ChangeLog-2006: New file, containing all the entries for 2006.
7672 * ChangeLog: Removed all 2006 entries, and changed the reference
7673 to the previous ChangeLog to point to ChangeLog 2006.
7674 * top.c (print_gdb_version): Update copyright year.
7676 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7678 * Makefile.in (remote-sds.o): Remove.
7679 * remote-sds.c: Delete.
7681 For older changes see ChangeLog-2006.
7687 version-control: never