1 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
3 * configure.ac (hostfile, targetfile): Remove.
4 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
5 (xm_h, tm_h): Likewise.
6 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
7 * configure, config.in: Regenerate.
9 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
10 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
11 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
12 * defs.h: Do not include "xm.h" or "tm.h".
14 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
15 * gdbarch.c: Regenerate.
17 * config/score/embed.mt: Remove obsolete comment.
19 2007-11-16 Markus Deuling <deuling@de.ibm.com>
21 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
23 * gdbarch.{c,h}: Regenerate.
25 * alpha-tdep.c (alpha_cannot_fetch_register)
26 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
27 current_gdbarch by gdbarch.
28 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
29 (crisv32_cannot_fetch_register)
30 (crisv32_cannot_store_register): Likewise.
31 * arch-utils.c (cannot_register_not): Likewise.
32 * arch-utils.h (cannot_register_not): Likewise.
33 * hppa-tdep.c (hppa32_cannot_store_register)
34 (hppa32_cannot_store_register, hppa64_cannot_store_register)
35 (hppa64_cannot_fetch_register): Likewise.
36 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
37 (mipsnbsd_cannot_store_register): Likewise.
39 2007-11-16 Markus Deuling <deuling@de.ibm.com>
41 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
42 the current architecture by regcache.
43 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
44 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
45 (fetch_register, supply_vrregset, fetch_ppc_registers)
46 (store_altivec_register, store_spe_register, store_register)
47 (fill_vrregset, store_ppc_registers): Likewise.
48 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
49 * win32-nat.c (do_win32_fetch_inferior_registers)
50 (do_win32_store_inferior_registers): Likewise.
51 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
52 * remote-m32r-sdi.c (m32r_fetch_registers)
53 (m32r_store_registers): Likewise.
54 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
56 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
58 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
59 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
60 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
61 (ppc64_sysv_abi_return_value): Likewise.
62 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
63 * m2-lang.c (build_m2_types): Likewise.
64 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
65 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
66 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
67 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
69 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
70 get at the current architecture by frame_info.
71 * gcore.c (derive_stack_segment): Likewise.
73 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
74 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
75 gdbarch to GETREGS_SUPPLIES call.
77 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
79 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
80 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
81 ELF-private symbol data when processing synthetic symbols. Use
82 udata.p to get at size of ppc64 synthetic 'dot' symbols.
83 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
85 2007-11-15 Doug Evans <dje@google.com>
87 * buildsym.h (subfiles): Move ...
88 * buildsym.c (subfiles): ... to here and make static.
90 * symmisc.c (maintenance_info_symtabs): Print linetable info.
92 2007-11-15 Markus Deuling <deuling@de.ibm.com>
94 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
96 2007-11-15 Markus Deuling <deuling@de.ibm.com>
98 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
99 expression and use get_frame_arch to replace current_gdbarch by frame's
101 * arm-tdep.h (LOWEST_PC): Remove
103 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
105 Apply const qualifier to some users of bp_location.
106 * breakpoint.h (struct bpstats): Make
107 the breakpoint_at field point at const bp_location.
108 * breakpoint.c (bpstat_alloc): Accept const
110 (breakpoint_here_p, breakpoint_inserted_here_p)
111 (software_breakpoint_inserted_here_p)
112 (breakpoint_thread_match, bpstat_stop_status)
113 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
114 const bp_location for iteration.
115 (print_it_typical, print_bp_stop_message): Use
116 const bp_location variable.
118 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
120 Make mark_breakpoints_out static.
121 * breakpoint.h (mark_breakpoints_out): Remove
123 * breakpoint.c (mark_breakpoints_out): Make static.
125 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
127 Prevent clear_command from directly modifying breakpoint list.
128 * Makefile.in (breakpoint_h): Update dependency.
129 * breakpoint.c (clear_command): Do not remove
130 breakpoints from breakpoint_chain. Collect breakpoints
131 to delete in a vector.
132 * breakpoint.h (breakpoint_p): New typedef for pointer to
133 breakpoint. Register vector of breakpoint_p.
135 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
137 Remove 'run_cleanup'.
138 * defs.h (do_run_cleanups, make_run_cleanup): Remove
140 * infcmd.c (run_command_1): Call clear_solib instead
142 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
144 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
145 (update_solib_lib): Don't setup run cleanup.
146 (no_shared_libraries): Call clear_solib, not do_clear_solib.
147 * utils.c (run_cleanup_chain, make_run_cleanup)
148 (do_run_cleanups): Remove.
150 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
152 Remove CLEAR_SOLIB use.
153 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
154 * infcmd.c (attach_command): Likewise.
156 2007-11-14 Doug Evans <dje@google.com>
158 * buildsym.c (start_subfile,start_symtab): Doc fixes.
160 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
162 * tui/tui-data.c (tui_prev_win): Guard against NULL.
164 2007-11-12 Markus Deuling <deuling@de.ibm.com>
166 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
168 (verify_gdbarch, gdbarch_dump): Likewise.
169 (do_read): Update comment.
170 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
171 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
172 * gdbarch.{c,h}: Regenerate.
174 2007-11-12 Markus Deuling <deuling@de.ibm.com>
176 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
177 (ARGS_FIRST_REG): Remove.
178 (areg_numer): New function.
179 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
180 (xtensa_extract_return_value, xtensa_store_return_value)
181 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
182 (AREG_NUMBER): Remove.
183 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
184 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
185 (xtensa_push_dummy_call): Update use of ARG_NOF.
186 (extract_call_winsize): Add gdbarch as parameter. Replace
187 current_gdbarch by gdbarch.
188 (xtensa_extract_return_value, xtensa_store_return_value): Update call
189 of extract_call_winsize.
191 2007-11-10 Joel Brobecker <brobecker@adacore.com>
193 * NEWS: Add entry for new set/show print frame-args command.
195 2007-11-09 Kevin Buettner <kevinb@redhat.com>
197 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
198 register number to map. Adjust warning check and error/warning
199 return value code to match expectations of this function's callers.
201 2007-11-09 Joel Brobecker <brobecker@adacore.com>
203 * stack.c (print_this_frame_argument_p): Handle arguments passed
204 by reference properly.
206 2007-11-09 Joel Brobecker <brobecker@adacore.com>
208 * stack.c (print_frame_arguments_choices): New static global.
209 (print_frame_arguments): Likewise.
210 (print_this_frame_argument_p): New function.
211 (print_frame_args): Print the argument value only when appropriate.
212 (_initialize_task): Add new "set/show print frame-arguments" command.
214 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
216 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
217 saved_dabr_value assignment to the correct position.
219 2007-11-09 Markus Deuling <deuling@de.ibm.com>
221 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
222 * arch-utils.h (generic_convert_register_p): Likewise.
224 2007-11-09 Markus Deuling <deuling@de.ibm.com>
226 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
227 * ia64-tdep.c (ia64_convert_register_p): Likewise.
228 * i387-tdep.c (i387_convert_register_p): Likewise.
229 * i387-tdep.h (i387_convert_register_p): Likewise.
230 * alpha-tdep.c (alpha_convert_register_p): Likewise.
231 * gdbarch.{c,h}: Regenerate.
233 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
234 Replace current_gdbarch by gdbarch.
235 * mips-tdep.c (mips_convert_register_p): Likewise.
236 * m68k-tdep.c (m68k_convert_register_p): Likewise.
237 * i386-tdep.c (i386_convert_register_p): Likewise.
239 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
241 * gdb_string.h: Include <strings.h>.
243 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
245 * breakpoint.c (break_command_1): Remove
246 pending_bp parameter.
247 (create_breakpoint): Likewise.
248 (create_breakpoints): Likewise. Adjust call to
250 (break_command_1): Likewise. Adjust call to
252 (do_captured_breakpoint): Adjust call to
254 (break_command, tbreak_command, hbreak_command)
255 (stopin_command, stopat_command): Adjust call
258 2007-11-07 Joseph Myers <joseph@codesourcery.com>
259 Daniel Jacobowitz <dan@codesourcery.com>
261 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
262 struct values smaller than one doubleword; left-align those
263 larger. Pass structs containing a single floating-point value in
266 2007-11-07 Joseph Myers <joseph@codesourcery.com>
267 Daniel Jacobowitz <dan@codesourcery.com>
269 * gdbtypes.c (floatformats_ibm_long_double): New.
270 * gdbtypes.h (floatformats_ibm_long_double): Declare.
271 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
273 * mips-tdep.c (n32n64_floatformat_always_valid,
274 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
276 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
277 floatformats_n32n64_long.
278 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
280 * doublest.c (convert_floatformat_to_doublest,
281 convert_doublest_to_floatformat): Handle split floating-point
283 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
285 (ppc64_sysv_abi_push_dummy_call): Likewise.
286 (do_ppc_sysv_return_value): Handle IBM long double return.
288 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
290 Fix crash when a variable object being deleted
291 has any of its children deleted previously.
293 * varobj.c (delete_variable_1): Don't recurse
294 into deleted children.
296 2007-11-07 Markus Deuling <deuling@de.ibm.com>
298 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
299 * gdbarch.{c,h}: Regenerate.
300 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
301 Replace current_gdbarch by gdbarch.
302 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
303 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
304 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
306 2007-11-07 Markus Deuling <deuling@de.ibm.com>
308 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
309 get_regcache_arch to get at the current architecture by regcache.
310 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
311 to get at the current architecture by frame_info.
312 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
313 at the current architecture by regcache.
314 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
315 the current architecture by frame_info.
316 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
317 * aix-thread.c (special_register_p): Add gdbarch as parameter.
318 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
319 caller of special_register_p.
321 2007-11-07 Markus Deuling <deuling@de.ibm.com>
323 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
324 current architecture by frame_info.
326 2007-11-07 Markus Deuling <deuling@de.ibm.com>
328 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
330 2007-11-07 Markus Deuling <deuling@de.ibm.com>
332 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
333 get at the current architecture by regcache.
334 (SUBOFF): Add gdbarch to macro definition.
336 2007-11-07 Markus Deuling <deuling@de.ibm.com>
338 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
339 * gdbarch.{c,h}: Regenerate.
341 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
342 Replace current_gdbarch by gdbarch.
343 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
344 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
345 * score-tdep.c (score_breakpoint_from_pc): Likewise.
346 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
347 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
348 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
349 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
351 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
353 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
354 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
355 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
356 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
357 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
358 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
359 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
360 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
361 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
362 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
363 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
364 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
365 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
366 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
367 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
368 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
369 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
370 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
371 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
372 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
374 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
375 Replace current_gdbarch by gdbarch.
376 (rs6000_software_single_step): Use get_frame_arch to get at the
377 current architecture by frame_info. Add gdbarch to
378 rs6000_breakpoint_from_pc call.
380 2007-11-07 Markus Deuling <deuling@de.ibm.com>
382 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
383 macro CURRENT_VARIANT by its expression.
384 (CURRENT_VARIANT): Remove.
385 (frv_check_watch_resources): Add gdbarch parameter.
387 2007-11-07 Markus Deuling <deuling@de.ibm.com>
389 * MAINTAINERS (Write After Approval): Add self.
391 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
393 * features/rs6000/power-core.xml: Use uint32 as register type.
394 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
395 * features/rs6000/powerpc-32.c: Regenerate.
396 * features/rs6000/powerpc-403.c: Regenerate.
397 * features/rs6000/powerpc-403gc.c: Regenerate.
398 * features/rs6000/powerpc-505.c: Regenerate.
399 * features/rs6000/powerpc-602.c: Regenerate.
400 * features/rs6000/powerpc-603.c: Regenerate.
401 * features/rs6000/powerpc-604.c: Regenerate.
402 * features/rs6000/powerpc-64.c: Regenerate.
403 * features/rs6000/powerpc-7400.c: Regenerate.
404 * features/rs6000/powerpc-750.c: Regenerate.
405 * features/rs6000/powerpc-860.c: Regenerate.
406 * features/rs6000/powerpc-e500.c: Regenerate.
408 2007-11-05 Joel Brobecker <brobecker@adacore.com>
410 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
412 2007-11-05 Joel Brobecker <brobecker@adacore.com>
414 * breakpoint.h (create_solib_load_event_breakpoint)
415 (create_solib_unload_event_breakpoint)
416 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
417 (create_exec_event_catchpoint): Delete declaration.
418 * breakpoint.c (create_solib_load_event_breakpoint)
419 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
420 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
421 (create_exec_event_catchpoint): Make static.
423 2007-11-05 Joel Brobecker <brobecker@adacore.com>
425 * breakpoint.h (set_breakpoint_sal): Remove declaration.
426 * breakpoint.c (set_breakpoint_sal): Delete.
428 2007-11-05 Joel Brobecker <brobecker@adacore.com>
430 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
431 (make_blockvector): Likewise. Remove FIXME comment.
433 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
435 * printcmd.c: (printf_command): Add support for new DFP
436 modifiers %H, %D and %DD.
437 * configure.ac: Add check for DECFLOAT printf support.
438 * configure: Regenerated.
440 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
442 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
443 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
444 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
445 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
446 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
447 (has_vtable, primary_base_class, virtual_base_list_length,
448 virtual_base_list_length_skip_primaries, virtual_base_index,
449 virtual_base_index_skip_primaries, class_index_in_primary_list,
450 count_virtual_fns): Remove prototypes.
451 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
452 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
453 virtual_base_list_length_skip_primaries, virtual_base_index,
454 virtual_base_index_skip_primaries, class_index_in_primary_list,
455 count_virtual_fns): Remove.
457 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
458 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
459 (cp_print_value_fields): Remove support for HP aCC vtables.
460 (cp_print_value): Likewise.
461 * c-typeprint.c (c_type_print_base): Likewise.
463 * value.h (find_rt_vbase_offset): Remove prototype.
464 * valops.c (find_rt_vbase_offset): Remove.
465 (search_struct_method): Remove support for HP aCC vtables.
466 (find_method_list): Likewise.
468 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
470 * language.h (struct language_defn): Remove la_builtin_type_vector
471 and string_char_type members.
472 * language.c (language_string_char_type): No longer consult
473 la->string_char_type.
474 (language_lookup_primitive_type_by_name): No longer consult
475 current_language->la_builtin_type_vector.
477 * language.c (unknown_language_defn, auto_language_defn,
478 local_language_defn): Adapt initializer.
479 * ada-lang.c (ada_language_defn): Likewise.
480 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
481 minimal_language_defn): Likewise.
482 * f-lang.c (f_language_defn): Likewise.
483 * jv-lang.c (java_language_defn): Likewise.
484 * m2-lang.c (m2_language_defn): Likewise.
485 * objc-lang.c (objc_language_defn): Likewise.
486 * p-lang.c (pascal_language_defn): Likewise.
487 * scm-lang.c (scm_language_defn): Likewise.
489 2007-11-02 Markus Deuling <deuling@de.ibm.com>
491 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
492 current_gdbarch by gdbarch.
493 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
494 current architecture by frame_info.
495 * frame.h (frame_id_inner): Add gdbarch parameter.
496 * stack.c (return_command): Use get_frame_arch to get at the current
497 architecture by frame_info. Update call of frame_id_inner.
498 * infrun.c (handle_inferior_event): Likewise.
499 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
500 current architecture by regcache. Update call of frame_id_inner.
502 2007-11-02 Markus Deuling <deuling@de.ibm.com>
504 * gdbarch.sh (register_name): Add gdbarch parameter.
505 * gdbarch.{c,h}: Regenerate.
507 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
508 (tdesc_register_name): Replace current_gdbarch by gdbarch.
509 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
511 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
512 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
513 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
514 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
515 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
516 (mt_registers_info): Replace current_gdbarch by gdbarch.
517 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
518 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
519 current_gdbarch by gdbarch.
520 (mips_register_name): Add gdbarch to tdesc_register_name call.
521 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
522 current_gdbarch by gdbarch.
523 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
524 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
525 current_gdbarch by gdbarch.
526 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
527 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
528 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
529 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
530 architecture by frame_info.
531 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
532 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
533 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
535 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
536 (h8300sx_register_name): Add gdbarch parameter.
537 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
538 gdbarch parameter. Replace current_gdbarch by gdbarch.
539 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
540 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
541 * arm-tdep.c (arm_register_name): Add gdbarch paramete
542 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
544 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
545 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
546 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
547 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
548 of alpha_register_name.
549 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
550 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
551 current_gdbarch by gdbarch.
552 (i386_register_type): Replace ?current_gdbarch by gdbarch.
553 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
554 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
556 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
557 (m68hc11_register_reggroup_p): Add gdbarch to call of
558 m68hc11_register_name.
559 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
560 (am33_2_register_name): Add gdbarch parameter.
561 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
562 architecture by frame_info.
563 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
564 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
565 current_gdbarch by gdbarch.
566 * score-tdep.c (score_register_name): Add gdbarch parameter.
567 (score_return_value, score_push_dummy_call): Replace current_gdbarch
569 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
570 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
571 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
572 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
573 and update caller. Replace current_gdbarch by gdbarch.
574 (sh64_extract_return_value, sh64_store_return_value): Use
575 get_regcache_arch to get at the current architecture by regcache.
576 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
577 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
578 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
579 (sh_sh3_dsp_register_name, sh_sh4_register_name)
580 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
582 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
583 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
584 current_gdbarch by gdbarch.
585 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
586 get_regcache_arch to get at the current architecture by regcache.
587 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
588 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
589 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
591 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
592 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
593 current_gdbarch by gdbarch.
594 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
595 (xtensa_frame_prev_register): Add gdbarch parameter to
596 xtensa_register_name call.
598 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
600 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
601 find_solib_trampoline_target if PC is not in .plt section.
603 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
605 * elfread.c (elf_symtab_read): When constructing a solib trampoline
606 minimal symbol from an undefined dynamic symbol, use proper section.
608 2007-10-31 Markus Deuling <deuling@de.ibm.com>
610 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
611 to get at the current architecture by regcache.
613 2007-10-30 Markus Deuling <deuling@de.ibm.com>
615 * libunwind-frame.c (libunwind_frame_sniffer)
616 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
617 (libunwind_frame_cache): Use get_frame_arch to get at the current
618 architecture by frame_info.
619 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
621 2007-10-30 Markus Deuling <deuling@de.ibm.com>
623 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
624 at the current architecture by frame_info.
626 2007-10-30 Markus Deuling <deuling@de.ibm.com>
628 * inf-child.c (inf_child_fetch_inferior_registers): Use
629 get_regcache_arch to get at the current architecture by regcache.
631 2007-10-30 Markus Deuling <deuling@de.ibm.com>
633 * inf-ptrace.c (inf_ptrace_fetch_registers)
634 (inf_ptrace_fetch_register, inf_ptrace_store_register)
635 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
636 current architecture by regcache.
638 2007-10-30 Markus Deuling <deuling@de.ibm.com>
640 * hpux-thread.c (hpux_thread_fetch_registers)
641 (hpux_thread_store_registers): Use get_regcache_arch to get at the
642 current architecture by regcache.
644 2007-10-30 Markus Deuling <deuling@de.ibm.com>
646 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
647 current architecture by frame_info.
649 2007-10-30 Markus Deuling <deuling@de.ibm.com>
651 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
652 (go32_store_registers): Use get_regcache_arch to get at the current
653 architecture by regcache.
655 2007-10-30 Markus Deuling <deuling@de.ibm.com>
657 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
659 2007-10-30 Markus Deuling <deuling@de.ibm.com>
661 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
662 to get at the current architecture by frame_info.
664 2007-10-30 Markus Deuling <deuling@de.ibm.com>
666 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
668 2007-10-30 Markus Deuling <deuling@de.ibm.com>
670 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
671 the current architecture by regcache.
673 2007-10-30 Markus Deuling <deuling@de.ibm.com>
675 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
676 current architecture by regcache.
678 2007-10-30 Markus Deuling <deuling@de.ibm.com>
680 * bsd-uthread.c (bsd_uthread_fetch_registers)
681 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
682 current architecture by regcache.
684 2007-10-30 Markus Deuling <deuling@de.ibm.com>
686 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
687 get_frame_arch to get at the current architecture by frame_info.
689 2007-10-30 Markus Deuling <deuling@de.ibm.com>
691 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
693 2007-10-30 Markus Deuling <deuling@de.ibm.com>
695 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
696 (store_regs): Use get_regcache_arch to get at the current architecture
699 2007-10-30 Markus Deuling <deuling@de.ibm.com>
701 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
702 to get at the current architecture by regcache.
704 2007-10-30 Markus Deuling <deuling@de.ibm.com>
706 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
707 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
708 the current architecture by regcache.
710 2007-10-30 Markus Deuling <deuling@de.ibm.com>
712 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
715 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
717 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
718 soft float and vector ABIs. Support the generic vector ABI for
720 (do_ppc_sysv_return_value): Likewise. Correct argument types and
722 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
724 * ppc-tdep.h (enum powerpc_vector_abi): New.
725 (struct gdbarch_tdep): Add soft_float and vector_abi.
726 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
727 (powerpc_soft_float_global, powerpc_vector_strings)
728 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
729 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
730 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
731 (powerpc_set_vector_abi): New.
732 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
734 * Makefile.in (elf_ppc_h): New.
735 (rs6000-tdep.o): Update.
737 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
739 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
740 swapped offsets and VRSAVE offset.
741 (ppc64_linux_reg_offsets): Corrected swapped offsets.
742 (ppc32_linux_vrregset): Added.
743 (ppc_linux_regset_from_core_section): Added support for
744 .reg-ppc-vmx section.
745 * ppc-tdep.h (ppc_altivec_support_p): Declare.
746 (ppc_supply_vrregset): Declare.
747 (ppc_collect_vrregset): Declare.
748 * rs6000-tdep.c (ppc_altivec_support_p): Added.
749 (ppc_supply_vrregset): Added.
750 (ppc_collect_vrregset): Added.
751 * corelow.c (get_core_registers): Added support for
752 .reg-ppc-vmx section.
754 2007-10-29 Joel Brobecker <brobecker@adacore.com>
758 2007-10-26 Jim Blandy <jimb@codesourcery.com>
760 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
763 * tracepoint.c (tracepoint_operation): Report the deletion event
764 after we have unlinked the tracepoint from the list, and use the
765 proper tracepoint number.
767 * ax-gdb.c (expr_to_agent): Delete unused function.
768 (expr_to_address_and_size): Delete #if 0'd function.
769 * ax-gdb.h (expr_to_agent): Delete declaration.
771 * ax-gdb.c (gen_cast): Remove redundant assignment to
772 value->type. Doc fix.
774 * ax-general.c (gen_traced_pop, gen_int_literal)
775 (gen_usual_arithmetic): Check for typedefs.
777 2007-10-26 Joel Brobecker <brobecker@adacore.com>
779 * parse.c (prefixify_expression): Minor reformatting.
781 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
783 * version.in: Use dot instead of dash.
785 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
787 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
789 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
791 * memory-map.c (parse_memory_map): Don't use an empty struct
794 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
796 * signals/signals.c (signals): Update pointer to enum
797 target_signal declaration.
799 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
800 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
801 Jim Blandy <jimb@codesourcery.com>
803 * dwarf2read.c (read_partial_die): check the value
804 of DW_AT_calling_convention in Fortran programs.
806 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
807 Thiago Jung Bauermann <bauerman@br.ibm.com>
809 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
810 floating point in YYSTYPE union.
811 (DECFLOAT) Add token and expression element handling code.
812 (parse_number): Parse DFP constants, which end with suffix 'df',
813 'dd' or 'dl'. Return DECFLOAT.
814 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
816 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
818 (union exp_element): Add decfloatconst to represent DFP
819 elements, which is 16 bytes by default.
820 * parse.c (write_exp_elt_decfloatcst): New function to write a
821 decimal float const into the expression.
822 (operator_length_standard): Set operator length for OP_DECFLOAT
824 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
825 * valarith.c (value_neg): Add code to handle the negation
826 operation of DFP values.
827 * value.c (value_from_decfloat): New function to get the value
828 from a decimal floating point.
829 * value.h (value_from_decfloat): Prototype.
831 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
832 Thiago Jung Bauermann <bauerman@br.ibm.com>
834 * c-lang.c (c_create_fundamental_type): Create fundamental
836 * c-typeprint.c (c_type_print_varspec_prefix): Add
837 TYPE_CODE_DECFLOAT to no prefix needed case.
838 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
840 * c-valprint.c (c_val_print): Call print_decimal_floating to
842 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
843 attribute code and return TYPE_CODE_DECFLOAT.
844 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
845 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
846 builtin_decdouble and builtin_declong.
847 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
849 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
850 types, for decimal floating point.
851 (FT_NUM_MEMBERS): Increment, new types added.
852 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
854 * valprint.c (print_decimal_floating): New function to print DFP
856 * value.h (print_decimal_floating): Prototype.
858 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
859 Thiago Jung Bauermann <bauerman@br.ibm.com>
861 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
862 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
863 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
864 (INSTALLED_LIBS): Add -ldecnumber in.
865 (CLIBS): Add LIBDECNUMBER in.
866 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
868 (dfp_h): New macros for decimal floating point.
870 (COMMON_OBS): Add dfp.o in.
871 (c-exp.o): Add dfp_h as dependency.
872 (valprint.o): Add dfp_h as dependency.
873 (value.o): Add dfp_h as dependency.
874 * dfp.h: New header file for decimal floating point support in
876 * dfp.c: New source file for decimal floating point support in
877 GDB. Implement decimal_from_string and decimal_to_string based
879 * configure.ac: Add AC_C_BIGENDIAN test.
880 * config.in, configure: Regenerate.
882 2007-10-25 David Ung <davidu@mips.com>
883 Maciej W. Rozycki <macro@mips.com>
886 * infcmd.c (registers_info): Check for a user register before
887 calling target's gdbarch_print_registers_info(). If found to be
888 so, extract the implicit value of user register and call
889 print_scalar_formatted().
890 * Makefile.in: (infcmd.o): Add $(user_regs_h).
892 2007-10-25 Joel Brobecker <brobecker@adacore.com>
894 * NEWS: Document status of hppa64-hpux support.
896 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
898 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
899 set_solib_ops to install SVR4 operations.
900 (_initialize_svr4_solib): Do not set current_target_so_ops.
902 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
903 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
905 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
907 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
908 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
909 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
910 * solib-legacy.c: Remove file.
912 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
913 * config/arm/linux.mt (TDEPFILES): Likewise.
914 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
915 * config/ia64/linux.mt (TDEPFILES): Likewise.
916 * config/m32r/linux.mt (TDEPFILES): Likewise.
917 * config/powerpc/linux.mt (TDEPFILES): Likewise.
918 * config/s390/s390.mt (TDEPFILES): Likewise.
920 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
921 set_solib_svr4_fetch_link_map_offsets.
922 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
923 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
925 * i386gnu-tdep.c: Include "solib-svr4.h".
926 * Makefile.in: Update dependencies.
928 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
930 * i386-nto-tdep.c: Include "solib.h".
931 (i386nto_init_abi): Use set_solib_ops instead of overwriting
932 current_target_so_ops members.
933 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
934 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
935 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
936 * Makefile.in: Update dependencies.
938 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
940 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
941 (arm_wince_init_abi): Call set_solib_ops.
942 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
943 (i386_cygwin_init_abi): Call set_solib_ops.
944 * solib-target.c: Include "solib-target.h".
945 (solib_target_so_ops): Make global.
946 (_initialize_solib_target): Do not set current_target_so_ops.
947 * solib-target.h: New file.
948 * Makefile.in: Update dependencies.
950 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
952 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
953 (mips_irix_init_abi): Call set_solib_ops.
954 * solib-irix.c: Include "solib.h" and "solib-irix.h".
955 (irix_so_ops): Make global.
956 (_initialize_irix_solib): Do not set current_target_so_ops.
957 * solib-irix.h: New file.
958 * Makefile.in: Update dependencies.
960 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
962 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
963 * config/pa/hppa64.mt: Delete file.
964 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
965 (TDEPFILES): Move somread.o to ...
966 * config/pa/hpux.mh (NATDEPFILES): ... here.
968 * configure.ac: Add check for elf_hp.h header.
969 Search libdl and libxpdl for dlgetmodinfo.
970 * config.in, configure: Regenerate.
971 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
972 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
973 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
974 set_solib_ops instead of modifying current_target_so_ops.
975 * solib-pa64.h (pa64_solib_select): Update prototype.
976 * solib-som.c: Remove include of "som.h". Include "solib.h".
977 (som_solib_select): Take gdbarch instead of tdep argument. Call
978 set_solib_ops instead of modifying current_target_so_ops.
979 * solib-som.h (som_solib_select): Update prototype.
980 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
981 of tdep to som_solib_select call.
982 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
983 pa64_solib_select call.
984 * Makefile.in: Update dependencies.
986 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
988 * frv-tdep.c: Include "solib.h".
989 (frv_gdbarch_init): Call set_solib_ops.
990 * frv-tdep.h (struct target_so_ops): Add forward reference.
991 (frv_so_ops): Add extern declaration.
992 * solib-frv.c (frv_so_ops): Make global.
993 (_initialize_frv_solib): Do not set current_target_so_ops.
994 * Makefile.in: Update dependencies.
996 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
998 * solib.c (solib_global_lookup): Use solib_ops instead of global
999 current_target_so_ops.
1001 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1003 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1004 * config/frv-tm-frv.h: Delete file.
1006 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1008 * NEWS: Mention gdbserver support for non-libthread_db operation.
1010 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1012 * amd64-tdep.c (amd64_convert_register_p): Delete.
1013 (amd64_init_abi): Use i387_convert_register_p.
1014 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1016 (alpha_register_to_value, alpha_value_to_register): Do not handle
1018 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1019 * i387-tdep.c (i387_convert_register_p): New.
1020 (i387_register_to_value, i387_value_to_register): Update comments.
1021 * i387-tdep.h (i387_convert_register_p): Declare.
1022 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1023 builtin_type_ia64_ext.
1024 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1025 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1026 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1027 builtin_type_m68881_ext.
1028 (m68k_register_to_value, m68k_value_to_register): Update comments.
1030 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1032 * target-memory.c (claim_memory): Propagate baton for split memory
1035 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1038 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1041 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1043 * symtab.c (find_line_symtab): scan through psymtabs
1044 when exact_match is zero.
1046 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1048 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1049 (deal_with_atomic_sequence): New.
1050 (mips_software_single_step): Use it.
1052 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1055 * configure.ac: Modify $LIBINTL before the BFD check.
1056 * configure: Regenerated.
1058 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1060 * buildsym.c (free_pending_blocks): Remove commented-out code.
1061 (make_blockvector): Likewise. Re-use free_pending_blocks.
1062 (end_symtab): Remove commented-out code.
1064 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1066 * top.c (command_loop): Fix output for shrinkage.
1068 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1070 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1071 (exp): Remove and document function-like casts.
1073 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1075 * cp-support.c: Include "safe-ctype.h".
1076 (cp_already_canonical): New function.
1077 (cp_canonicalize_string): Use it. Return NULL for already canonical
1079 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1080 (cp_func_name, remove_params): Likewise.
1081 (cp_find_first_component_aux): Use ISSPACE.
1082 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1084 * cp-name-parser.y (ALLOC_CHUNK): Define.
1085 (struct demangle_info): Add PREV and NEXT. Increase the size of
1087 (d_grab): Convert to a function.
1088 (allocate_info): Rewrite.
1089 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1090 strlen. Update call to allocate_info. Do not free it on failure.
1091 (main): Update calls to cp_demangled_name_to_comp.
1092 * Makefile.in (cp-support.o): Update.
1094 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1096 * std-regs.c (value_of_builtin_frame_fp_reg)
1097 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1098 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1099 current architecture by frame_info.
1101 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1103 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1106 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1108 * infcmd.c (default_print_registers_info, print_return_value)
1109 (print_vector_info, print_float_info): Replace current_gdbarch by
1111 (registers_info): Use get_frame_arch to get at the current
1112 architecture by frame_info.
1114 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1116 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1117 get_regcache_arch to get at the current architecture by regcache.
1119 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1121 * target.c (debug_print_register): Use get_regcache_arch to get at the
1122 current architecture by regcache.
1124 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1126 * dwarf2read.c (read_file_scope): Add a comment.
1127 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1128 (read_enumeration_type, process_enumeration_scope, read_array_type)
1129 (read_typedef, read_base_type, read_subrange_type)
1130 (read_unspecified_type): Use dwarf2_name.
1132 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1134 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1135 * dwarf2read.c (dwarf2_free_objfile): New.
1136 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1137 * symfile.h (dwarf2_free_objfile): Declare.
1139 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1141 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1143 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1145 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1146 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1147 default dwarf2_frame_set_init_reg function.
1149 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1151 * NEWS: Mention native MinGW configuration.
1153 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1155 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1156 of "macro" column throughout the file. Remove (empty) "macro" entry
1157 of all gdbarch functions.
1159 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1161 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1162 * gdbarch.c, gdbarch.h: Regenerate.
1163 * dbxread.c (find_stab_function_addr): Define unconditionally.
1164 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1165 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1166 (end_psymtab): Likewise.
1167 (process_one_symbol): Likewise.
1168 * mdebugread.c (parse_partial_symbols): Likewise.
1170 * symtab.h (struct minimal_symbol): Always define "filename" member.
1171 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1172 * minsyms.c (lookup_minimal_symbol): Likewise.
1173 * symmisc.c (dump_msymbols): Likewise.
1175 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1176 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1177 * config/i386/tm-i386sol2.h: Remove file.
1178 * config/i386/tm-linux.h: Remove file.
1179 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1180 set_gdbarch_sofun_address_maybe_missing.
1181 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1183 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1184 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1185 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1186 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1187 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1188 * config/powerpc/tm-ppc-eabi.h: Remove file.
1189 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1190 set_gdbarch_sofun_address_maybe_missing.
1192 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1193 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1194 * config/sparc/tm-sol2.h: Remove file.
1195 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1196 set_gdbarch_sofun_address_maybe_missing.
1197 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1199 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1201 * gdbarch.sh (static_transform_name): New gdbarch callback.
1202 * gdbarch.c, gdbarch.h: Regenerate.
1203 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1204 instead of STATIC_TRANSFORM_NAME.
1205 * mdebugread.c (parse_partial_symbols): Likewise.
1206 * stabsread.c (define_symbol): Likewise.
1207 * xcoffread.c (scan_xcoff_symtab): Likewise.
1209 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1210 (IS_STATIC_TRANSFORM_NAME): Remove.
1211 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1212 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1213 (i386_sol2_init_abi): Install it.
1215 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1216 (IS_STATIC_TRANSFORM_NAME): Remove.
1217 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1218 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1219 (sparc32_sol2_init_abi): Install it.
1220 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1221 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1223 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1225 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1226 (mips_n32n64_return_value, mips_o32_return_value)
1227 (mips_o64_return_value): Update calls to mips_xfer_register.
1229 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1231 * frame.c (frame_unwind_unsigned_register): Delete.
1232 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1233 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1235 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1236 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1237 mt-tdep.c: Replace frame_unwind_unsigned_register with
1238 frame_unwind_register_unsigned.
1240 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1242 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1243 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1244 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1246 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1247 if not building on Cygwin.
1248 (win32_make_so, handle_output_debug_string, handle_exception)
1249 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1250 (win32_attach): Only fallback to Cygwin pids if building on
1252 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1254 (win32_create_inferior): Disable starting the inferior through a
1255 shell, environment var processing and tty handling if not building
1257 (cygwin_pid_to_str): Rename to ...
1258 (win32_pid_to_str): ... this.
1259 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1260 and "cygwin-exceptions" commands if not building on Cygwin.
1262 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1264 * doc/gdb.texinfo: Add TSIZE definition, removed
1265 statement about unbounded arrays being unimplemented.
1266 * m2-valprint.c (m2_print_array_contents): New function.
1267 (m2_print_unbounded_array): New function.
1268 (m2_print_array_contents): New function.
1269 * m2-typeprint.c (m2_unbounded_array): New function.
1270 (m2_is_unbounded_array): New function.
1271 (m2_print_type): Test for unbounded array when walking
1273 * m2-lang.h: Added extern m2_is_unbounded_array.
1274 * m2-lang.c (evaluate_subexp_modula2): New function.
1275 (exp_descriptor_modula2): New structure.
1276 (m2_language_defn): Use exp_descriptor_modula2.
1277 * m2-exp.y: Added TSIZE and binary subscript.
1279 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1281 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1284 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1286 * m32r-tdep.c (decode_prologue): Sign extend offset for
1288 (m32r_frame_unwind_cache): Likewise.
1290 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1292 * rs6000-tdep.c (skip_prologue): Restore comment with
1293 function description to its proper place.
1295 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1297 * NEWS: Mention gdbserver PowerPC improvements.
1299 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1301 * features/Makefile (WHICH): Add PowerPC register definitions.
1302 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1303 (rs6000/powerpc-64-expedite): New macros.
1304 ($(outdir)/%.dat): Handle subdirectories.
1305 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1306 regformats/rs6000/powerpc-e500.dat: New generated files.
1308 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1310 * ppc-linux-nat.c (ppc_linux_read_description): New.
1311 (_initialize_ppc_linux_nat): Set to_read_description.
1312 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1314 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1316 * NEWS: Document target described register support for PowerPC.
1317 * ppc-tdep.h: Remove ppc_spr constants.
1318 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1319 ppc_builtin_type_vec128 members.
1320 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1321 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1322 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1323 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1324 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1325 * rs6000-tdep.c: Include preparsed descriptions.
1326 (init_sim_regno_table): Do not iterate over pseudo registers.
1327 Look up segment registers by name. Use sim_spr_register_name
1329 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1330 (rs6000_builtin_type_vec128): Delete.
1331 (rs6000_register_name): Only handle SPE pseudo registers and upper
1332 halves. Call tdesc_register_name for everything else.
1333 (rs6000_register_type): Delete. Replace with...
1334 (rs6000_pseudo_register_type): ...this new function. Only handle
1335 SPE pseudo registers.
1336 (rs6000_register_reggroup_p): Delete. Replace with...
1337 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1338 handle SPE pseudo registers.
1339 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1341 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1343 (e500_register_reggroup_p): Delete.
1344 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1345 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1346 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1347 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1348 (registers_powerpc, registers_403, registers_403GC, registers_505)
1349 (registers_860, registers_601, registers_602, registers_603)
1350 (registers_604, registers_750, registers_7400, registers_e500): Delete
1352 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1354 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1355 (variants): Delete outdated comment. Use standard target descriptions
1356 instead of "struct reg" arrays.
1357 (init_variants): Delete.
1358 (rs6000_gdbarch_init): Do not guess word size from the BFD
1359 architecture if we have a target description. Select a variant
1360 before creating a new architecture. Use the variant's target
1361 description if the target did not define a register layout.
1362 Validate target-supplied registers. Reject mismatches. Use
1363 fixed register numbers and new constants instead of magic
1364 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1365 (_initialize_rs6000_tdep): Initialize the preparsed target
1367 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1369 (tdesc_find_register_early): New function.
1370 (tdesc_numbered_register): Use it.
1371 (tdesc_register_size): New function.
1372 (tdesc_use_registers): Take a target_desc argument. Do not use
1373 gdbarch_target_desc.
1374 * target-descriptions.h (tdesc_use_registers): Update prototype
1376 (tdesc_register_size): New prototype.
1377 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1378 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1379 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1380 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1381 (rs6000-tdep.o): Update.
1382 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1383 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1384 * mips-tdep.c (mips_gdbarch_init): Likewise.
1386 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1388 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1389 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1390 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1391 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1392 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1393 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1394 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1397 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1399 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1400 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1401 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1402 feature descriptions for standard PowerPC register sets.
1404 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1405 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1406 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1407 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1408 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1409 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1410 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1411 target descriptions for PowerPC processors.
1413 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1415 * target-descriptions.c (tdesc_predefined_types): New.
1416 (tdesc_named_type): Use it.
1417 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1418 (_intialize_target_descriptions): Register "maint print c-tdesc".
1419 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1420 (cfiles, %.c): New rules.
1421 * features/arm-with-iwmmxt.c, features/mips-linux.c,
1422 features/mips64-linux.c: New generated files.
1424 * arm-linux-nat.c: Include preparsed description instead of
1426 (super_xfer_partial, arm_linux_xfer_partial): Remove.
1427 (arm_linux_read_description): New function.
1428 (_initialize_arm_linux_nat): Set to_read_description instead of
1429 to_xfer_partial. Initialize preparsed description.
1430 * config/arm/linux.mh (TDEP_XML): Delete.
1431 * mips-linux-nat.c: Include preparsed descriptions instead of
1433 (super_xfer_partial, mips_linux_xfer_partial): Remove.
1434 (mips_linux_read_description): New function.
1435 (_initialize_mips_linux_nat): Set to_read_description instead of
1436 to_xfer_partial. Initialize preparsed description.
1437 * config/mips/linux.mh (TDEP_XML): Delete.
1438 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1439 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1440 (mips64_linux_c): New macros.
1441 (arm-linux-nat.o, mips-linux-nat.o): Update.
1443 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1445 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1446 Replace xasprintf by xstrprintf.
1447 symfile-mem.c (add_vsyscall_page): Ditto.
1449 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1451 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1452 replacing use of global current_gdbarch.
1453 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1454 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1456 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1457 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1458 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1459 (ia64_sigtramp_frame_cache): Update caller.
1461 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1463 * gdbarch.sh (deprecated_use_struct_convention): Remove.
1464 (extract_return_value, store_return_value): Remove.
1465 (return_value): Remove default implementation.
1466 * gdbarch.c, gdbarch.h: Regenerate.
1468 * stack.c (return_command): Remove compatibility hack.
1469 * arch-utils.c (legacy_return_value): Remove.
1470 * arch-utils.h (legacy_return_value): Likewise.
1472 * arch-utils.c (always_use_struct_convention): Remove.
1473 * arch-utils.h (always_use_struct_convention): Likewise.
1474 * value.c (generic_use_struct_convention): Remove.
1475 * defs.h (generic_use_struct_convention): Likewise.
1477 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1479 * avr-tdep.c (avr_return_value): New function.
1480 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1481 set_gdbarch_extract_return_value.
1483 * fvr-tdep.c (frv_return_value): New function.
1484 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1485 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1486 and set_gdbarch_deprecated_use_struct_convention.
1488 * ia64-tdep.c (ia64_use_struct_convention): Make static.
1489 Add check for structure, union, or array types.
1490 (ia64_extract_return_value): Make static.
1491 (ia64_store_return_value): Make static. Support multi-word values.
1492 (ia64_return_value): New function.
1493 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
1494 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1495 and set_gdbarch_deprecated_use_struct_convention.
1497 2007-10-12 Joel Brobecker <brobecker@adacore.com>
1499 * solib-target.c (solib_target_parse_libraries)
1500 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1502 2007-10-12 Jim Blandy <jimb@codesourcery.com>
1504 * serial.h (struct serial_ops): Document read_prim to return zero
1506 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1507 read_prim returns zero, not SERIAL_TIMEOUT.
1509 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1511 * alpha-mdebug-tdep.c: Include "gdb_string.h".
1512 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
1513 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
1514 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1516 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
1517 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
1518 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
1519 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
1520 * config/alpha/tm-alpha.h: Remove file.
1522 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1524 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
1525 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
1527 * config/pa/tm-hppa.h: Delete file.
1528 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
1529 * config/pa/hppahpux.mt: Likewise.
1530 * config/pa/hppa.mt: Likewise.
1531 * config/pa/linux.mt: Likewise.
1532 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
1534 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1536 * config/arm/nm-nbsdaout.h: Remove file.
1537 * config/nm-nbsdaout.h: Likewise.
1538 * config/nm-nbsd.h: Likewise.
1540 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1542 * block.h (struct block): Remove "gcc_compile_flag" member.
1543 (BLOCK_GCC_COMPILED): Remove.
1544 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
1545 * buildsym.c (finish_block): Do not set it.
1546 * symmisc.c (dump_symtab_1): Do not dump it.
1548 * value.h (using_struct_return): Remove "gcc_p" argument.
1549 * value.c (using_struct_return): Likewise.
1550 * eval.c (evaluate_subexp_standard): Adapt callers.
1551 * infcall.c (call_function_by_hand): Likewise.
1552 * stack.c (return_command): Likewise.
1553 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1555 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
1556 * gdbarch.c, gdbarch.h: Regenerate.
1557 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
1558 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
1559 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1560 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
1561 (push_dummy_code, call_function_by_hand): Adapt callers.
1563 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1565 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
1566 (finish_command_continuation, finish_command): Adapt callers.
1568 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1570 * infcall.c (call_function_by_hand): Remove special handling
1571 for HP aCC compiled code.
1573 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1575 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
1576 reference. Fix endianness bugs.
1577 (cris_reg_struct_has_address): Remove.
1578 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
1579 and set_gdbarch_deprecated_use_struct_convention calls.
1581 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
1582 * gdbarch.c, gdbarch.h: Regenerate.
1583 * infcall.c (call_function_by_hand): Remove handling of
1584 deprecated_reg_struct_has_addr.
1586 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1587 Kazu Hirata <kazu@codesourcery.com>
1589 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
1590 checking watchpoint resources.
1592 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1594 * memattr.c (inaccessible_by_default): Change the initial
1597 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1600 * coffread.c (read_one_sym): Check for read errors.
1602 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
1604 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
1605 instead of "Linux 2.6.19" in comment.
1606 (linux_xfer_partial): Use "GNU/Linux target" instead of
1607 "Linux target" in comment.
1608 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
1609 (m68k_linux_get_sigtramp_info): Likewise.
1611 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1613 * MAINTAINERS (language support): List Joel and Paul as
1616 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1618 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
1620 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
1621 not set DEPRECATED_TM_FILE.
1622 * config/arm/tm-arm.h: Delete file.
1624 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
1626 * MAINTAINERS (Write After Approval): Add self.
1628 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1630 * buildsym.c (record_line): Remove empty lines followed by
1631 end-of-sequence markers.
1633 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1635 * configure.tgt: Recognize fido-*-elf.
1637 2007-10-10 Joel Brobecker <brobecker@adacore.com>
1641 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1643 * stack.c (print_frame_args, frame_info, return_command): Use
1644 get_regcache_arch or get_frame_arch to get at the current architecture
1645 by regcache or by frame, respectively.
1647 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1649 * rs6000-nat.c (fetch_register, store_register)
1650 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
1651 get_regcache_arch to get at the current architecture by regcache.
1653 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
1654 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
1655 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
1656 current_gdbarch by gdbarch.
1657 (rs6000_skip_trampoline_code, rs6000_register_to_value)
1658 (rs6000_value_to_register): Use get_frame_arch to get at the current
1659 architecture by frame_info.
1661 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1663 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
1664 get_regcache_arch to get at the current architecture by regcache.
1666 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1667 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
1668 get_regcache_arch to get at the current architecture by regcache.
1670 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
1671 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1672 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
1673 current architecture by regcache.
1675 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1677 * remote-mips.c (mips_wait, mips_fetch_registers)
1678 (mips_store_registers): Use get_regcache_arch to get at the
1679 current architecture by regcache.
1681 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
1682 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
1683 get at the current architecture by regcache.
1684 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
1685 architecture by frame_info.
1687 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1688 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
1689 the current architecture by regcache.
1691 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1692 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
1693 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
1694 current architecture by frame_info.
1695 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
1696 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
1697 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
1698 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
1699 get at the current architecture by regcache.
1701 * mips-linux-nat.c (mips_linux_register_addr)
1702 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
1703 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
1704 (mips64_linux_regsets_fetch_registers)
1705 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
1706 the current architecture by regcache.
1708 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
1709 get at the current architecture by frame_info.
1711 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1713 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
1714 current architecture by regcache.
1715 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
1716 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
1717 (mips_stub_frame_cache, mips_read_fp_register_single)
1718 (mips_read_fp_register_double, mips_print_fp_register)
1719 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
1720 at the current architecture by frame_info.
1721 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
1722 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
1723 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
1724 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1725 (mips_o32_push_dummy_call, mips_o32_return_value)
1726 (mips_o64_push_dummy_call, mips_o64_return_value)
1727 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
1730 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1732 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
1733 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
1734 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1735 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
1736 (xtensa_register_write_masked, xtensa_register_read_masked)
1737 (xtensa_supply_gregset, xtensa_store_return_value)
1738 (xtensa_extract_return_value): Use get_regcache_arch to get at the
1739 current architecture by regcache.
1740 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
1741 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
1742 architecture by frame_info.
1744 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
1746 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
1747 (thumb_analyze_prologue): Move pv_area_store_would_trash call
1748 out of loop. Do not set cache->frameoffset.
1749 (arm_scan_prologue): Use prologue-value mechanism. Do not set
1750 frameoffset. Simplify framesize.
1751 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
1753 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
1755 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
1757 * target.c (update_current_target): Call setup_target_debug.
1758 (push_target): Do not call it here.
1760 2007-10-09 Michael Snyder <msnyder@specifix.com>
1762 * MAINTAINERS: Update my email address.
1764 2007-10-09 Markus Deuling <deuling@de.ibm.com>
1766 * xtensa-tdep.c: Replace following current-gdbarch based macros by
1768 (xtensa_pseudo_register_read)
1769 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
1770 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
1771 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
1772 (xtensa_pseudo_register_read)
1773 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
1774 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
1775 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
1776 (xtensa_frame_prev_register): NUM_AREGS.
1777 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
1778 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
1779 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
1780 (xtensa_supply_gregset, xtensa_frame_cache)
1781 (xtensa_frame_prev_register): WS_REGNUM.
1782 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
1783 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
1784 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
1785 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1786 (xtensa_register_reggroup_p): REGMAP.
1787 (call0_track_op): LITBASE_REGNUM.
1788 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
1789 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
1790 (xtensa_frame_prev_register, AREG_NUMBER)
1791 (xtensa_register_type): AR_BASE.
1792 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
1793 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
1794 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1795 (xtensa_frame_cache, xtensa_frame_prev_register)
1796 (xtensa_extract_return_value, xtensa_store_return_value)
1797 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
1798 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
1799 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
1800 (xtensa_frame_prev_register, xtensa_push_dummy_call)
1801 (call0_frame_cache): A1_REGNUM.
1802 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
1803 (xtensa_push_dummy_call): A4_REGNUM.
1804 (ARGS_FIRST_REG): A6_REGNUM.
1805 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1806 (xtensa_frame_prev_register): A15_REGNUM.
1807 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
1808 them in the appropriate source file:
1809 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
1810 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
1811 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
1812 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
1813 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
1814 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
1815 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
1816 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
1817 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
1818 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
1819 A13_REGNUM, A14_REGNUM, A15_REGNUM.
1821 2007-10-09 Markus Deuling <deuling@de.ibm.com>
1823 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
1824 the current architecture by frame_info.
1825 (h8300_frame_prev_register
1826 (h8300_print_register): Replace current_gdbarch by gdbarch.
1827 (h8300_print_registers_info, h8300_register_type)
1828 (h8300_register_type): Likewise.
1830 2007-10-09 Markus Deuling <deuling@de.ibm.com>
1832 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
1833 the current architecture by regcache.
1834 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
1835 (i386_linux_fetch_inferior_registers)
1836 (i386_linux_store_inferior_registers): Likewise.
1837 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1838 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1839 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1840 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
1841 (i386_extract_return_value, i386_store_return_value): Likewise.
1842 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
1843 the current architecture by frame_info.
1844 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
1845 (i386_register_to_value, i386_value_to_register): Likewise.
1847 2007-10-09 Markus Deuling <deuling@de.ibm.com>
1849 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
1850 the current architecture by regcache.
1851 (monitor_store_register, monitor_store_registers): Likewise.
1853 2007-10-09 Markus Deuling <deuling@de.ibm.com>
1855 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
1856 the current architecture by regcache.
1858 2007-10-09 Markus Deuling <deuling@de.ibm.com>
1860 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
1863 2007-10-09 Markus Deuling <deuling@de.ibm.com>
1865 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
1866 architecture by frame.
1867 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
1868 (inside_main_func, frame_sp_unwind): Likewise.
1870 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
1872 * solib-svr4.c (enable_break): Add the dynamic linker also if
1875 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1877 * MAINTAINERS (Write After Approval): Add self.
1879 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
1881 * stabsread.c (read_huge_number): Initialize local variable to 0.
1883 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
1885 * p-lang.h (pascal_main_name): Add declaration.
1886 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
1887 (GPC_MAIN_PROGRAM_NAME_2): New constants.
1888 (pascal_main_name): New function.
1889 * symtab.c: Include p-lang.h.
1890 (find_main_name): Add call to pascal_main_name.
1891 * Makefile.in (symtab.o): Add dependency on p-lang.h.
1893 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
1895 * stabsread.c (read_huge_number): Fix handling of octal
1896 representation when the bit width is known.
1897 (read_range_type): Record unsigned integral types with their size,
1898 when the type size is known.
1900 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1902 * MAINTAINERS (Write After Approval): Add self.
1904 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1906 * breakpoint.c (print_one_breakpoint_location): ARI fix:
1907 Replace asprintf by xstrprintf.
1909 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1911 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
1912 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
1914 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1916 * linux-fork.c: Move "gdb_wait.h" include back to the position of
1917 <sys/wait.h> include before last commit.
1919 2007-10-08 Maciej W. Rozycki <macro@mips.com>
1921 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
1923 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1925 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
1926 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
1927 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
1928 (store_regs_user_thread, store_regs_kernel_thread): Use
1929 get_regcache_arch or get_frame_arch to get at the current architecture
1930 by regcache or by frame, respectively.
1932 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1934 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
1935 (sh64_pseudo_register_read, sh64_pseudo_register_write)
1936 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
1937 (sh64_print_register, sh64_media_print_registers_info)
1938 (sh64_compact_print_registers_info, sh64_unwind_sp)
1939 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
1940 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
1941 (sh64_frame_prev_register): Use FRAME to recognize current
1944 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1946 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1947 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1948 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
1949 current_gdbarch by gdbarch.
1950 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
1951 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1952 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
1953 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
1954 recognize current architecture.
1956 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1958 * remote.c (init_remote_state, fetch_register_using_p)
1959 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
1960 (store_register_using_P, store_registers_using_G)
1961 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
1962 get at the current architecture by regcache or by frame, respectively.
1964 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1966 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
1967 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
1968 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
1969 get_regcache_arch or get_frame_arch to get at the current architecture
1970 by regcache or by frame, respectively.
1971 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1972 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
1973 (store_register, old_store_inferior_registers, supply_gregset)
1974 (supply_fpregset, fill_fpregset): Likewise.
1975 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
1976 Replace current_gdbarch by gdbarch.
1978 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1980 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
1981 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
1982 get_frame_arch to get at the current architecture by regcache or by
1983 frame, respectively.
1985 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1987 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
1988 Replace current_gdbarch by gdbarch.
1989 * ia64-tdep.c (ia64_frame_prev_register
1990 (ia64_sigtramp_frame_prev_register)
1991 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
1992 get_frame_arch to get at the current architecture by regcache or by
1993 frame, respectively.
1994 * ia64-linux-nat.c (ia64_linux_fetch_register)
1995 (ia64_linux_fetch_registers, ia64_linux_store_register)
1996 (ia64_linux_store_registers): Likewise.
1998 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2000 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2001 current_gdbarch by gdbarch.
2002 * hppa-linux-nat.c (fetch_register, store_register)
2003 (hppa_linux_fetch_inferior_registers)
2004 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2005 get_frame_arch to get at the current architecture by regcache or by
2006 frame, respectively.
2007 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2008 (hppa_hpux_unwind_adjust_stub): Likewise.
2009 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2010 (hppa_hpux_fetch_inferior_registers)
2011 (hppa_hpux_store_inferior_registers): Likewise.
2013 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2015 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2016 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2017 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2018 or get_frame_arch to get at the current architecture by regcache or by
2019 frame, respectively.
2020 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2021 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2022 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2023 current_gdbarch by gdbarch.
2025 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2027 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2028 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2029 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2030 get at the current architecture by regcache or by·frame, respectively.
2031 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2034 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2036 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2037 Use get_regcache_arch or get_frame_arch to get at the current
2038 architecture by regcache or by frame, respectively.
2039 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2040 * amd64-nat.c (amd64_supply_native_gregset)
2041 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2043 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2045 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2047 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2048 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2049 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2050 get_frame_arch to get at the current architecture by regcache or by
2051 frame, respectively.
2052 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2054 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2056 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2057 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2058 current_gdbarch by gdbarch.
2059 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2061 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2063 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2064 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2065 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2066 get_frame_arch to get at the current architecture by regcache or by
2067 frame, respectively.
2069 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2071 * findvar.c (value_of_register, locate_var_value): Use
2072 get_regcache_arch or get_frame_arch to get at the current architecture
2073 by regcache or by frame, respectively.
2074 * findvar.c (default_value_from_register, value_from_register): Replace
2075 current_gdbarch by gdbarch.
2077 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2079 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2081 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2083 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2084 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2086 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2088 * remote.c (get_offsets): Only call free_symfile_segment_data if
2091 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2093 * objc-exp.y: ARI fix: remove 4 PARAMS.
2095 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2097 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2098 news. Mention XML support for M68K in GDB 6.7.
2100 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2102 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2104 (init_vector_type): Use builtin_type_int32.
2106 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2108 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2109 size to enable bi-arch generate-core-file support.
2111 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2113 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2115 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2117 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2119 * tui/tui-win.c (tui_initialize_win): New function for
2120 initializing tui's SIGWINCH signal handler.
2121 * tui/tui-win.h (tui_initialize_win): Declare.
2123 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2125 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2126 pointer to uintptr_t before casting to CORE_ADDR.
2128 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2130 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2132 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2134 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2135 * ser-mingw.c (enum select_thread_state): New type.
2136 (struct ser_console_state): Add have_started and thread_state.
2137 (select_thread_wait): New function.
2138 (thread_fn_type): New type.
2139 (create_select_thread): New function.
2140 (destroy_select_thread): Likewise.
2141 (start_select_thread): Likewise.
2142 (stop_select_thread): Likewise.
2143 (console_select_thread): Use new functions.
2144 (pipe_select_thread): Likewise.
2145 (file_select_thread): Likewise.
2146 (ser_console_wait_handle): Likewise.
2147 (ser_console_done_wait_handle): Likewise.
2148 (ser_console_close): Likewise.
2149 (free_pipe_state): Likewise.
2150 (pipe_wait_handle): Likewise.
2151 (pipe_done_wait_handle): Likewise.
2152 (struct net_windows_state): Derive from ser_console_state.
2153 (net_windows_select_thread): Use new functions.
2154 (net_windows_wait_handle): Likewise.
2155 (net_windows_done_wait_handle): Likewise.
2156 (net_windows_close): Likewise.
2158 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2160 * inflow.c (terminal_ours_1): Remove useless line.
2162 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2164 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2166 (mips_print_fp_register): Correct check for even FP registers.
2167 (mips_virtual_frame_pointer): New function.
2168 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2170 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2172 * value.h (lookup_only_internalvar): New prototype.
2173 (create_internalvar): Likewise.
2174 * value.c (lookup_only_internalvar): New function.
2175 (create_internalvar): Likewise.
2176 (lookup_internalvar): Use new lookup_only_internalvar and
2177 create_internalvar functions.
2178 * parse.c (write_dollar_variable): Look up $ symbols in internal
2179 table first rather than last.
2181 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2183 * linux-nat.c (linux_nat_new_thread): New variable.
2184 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2185 linux_nat_switch_fork.
2186 (lwp_list): Make public.
2187 (add_lwp): Call linux_nat_new_thread.
2188 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2190 (resume_callback): Clear lp->siginfo. Remove unused variable.
2191 (linux_nat_resume): Assert that the LWP list is already initialized.
2193 (save_siginfo): New.
2194 (stop_wait_callback, linux_nat_wait): Call it.
2195 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2196 * linux-nat.h (struct lwp_info): Add siginfo.
2197 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2200 * amd64-linux-nat.c (amd64_linux_dr): New.
2201 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2202 (amd64_linux_dr_set): Take a PTID argument.
2203 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2204 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2205 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2206 (amd64_linux_new_thread): New.
2207 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2208 * i386-linux-nat.c (i386_linux_dr): New.
2209 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2210 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2211 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2212 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2213 (i386_linux_new_thread): New.
2214 (i386_linux_resume): Remove unnecessary PID check.
2215 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2216 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2217 (fetch_debug_register, fetch_debug_register_pair): Delete.
2218 (debug_registers): New.
2219 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2220 ALL_LWPS and debug_registers.
2221 (ia64_linux_new_thread): New.
2222 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2223 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2224 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2225 (saved_dabr_value): New.
2226 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2228 (ppc_linux_new_thread): New.
2229 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2230 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2231 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2232 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2234 (s390_fix_watch_points): Take a PTID argument.
2235 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2236 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2238 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2239 Jeff Johnston <jjohnstn@redhat.com>
2241 * breakpoint.c (watchpoints_triggered): New.
2242 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2243 Check watchpoint_triggered instead. Combine handling for software
2244 and hardware watchpoints. Do not use target_stopped_data_address
2245 here. Always check a watchpoint if its scope breakpoint triggers.
2246 Do not stop for thread or overlay events. Improve check for
2247 triggered watchpoints without a value change.
2248 (watch_command_1): Insert the scope breakpoint first. Link the
2249 scope breakpoint to the watchpoint.
2250 * breakpoint.h (enum watchpoint_triggered): New.
2251 (struct breakpoint): Add watchpoint_triggered.
2252 (bpstat_stop_status): Update prototype.
2253 (watchpoints_triggered): Declare.
2254 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2255 (stepped_after_stopped_by_watchpoint): Delete.
2256 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2257 local. Handle infwait_step_watch_state. Update calls to
2258 bpstat_stop_status. Use watchpoints_triggered to check
2260 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2261 (remote_stopped_data_address): Do not check it.
2263 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2265 * configure.ac: Add $LIBINTL when testing libbfd.
2266 * configure: Regenerated.
2268 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2270 * NEW: Mention pending breakpoint changes and
2271 support for breakpoints at multiple locations.
2273 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2275 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2276 (arm_linux_init_abi): Use it.
2277 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2278 condition correctly.
2279 * arm-tdep.h (arm_get_next_pc): Declare.
2280 * Makefile.in (arm-linux-tdep.o): Update.
2282 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2284 * varobj.c (install_new_value): Don't
2285 call value_get_print_value when a value is
2286 lazy. Update the print_value member in a
2289 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2291 * breakpoint.c (create_breakpoint): Set
2292 condition on each location, not on the first
2293 location of breakpoint.
2295 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2297 * remote.c (getpkt_sane): Fix error message. No animals were
2298 harmed in the making of this debugger.
2300 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2302 * p-typeprint.c: Fix 11 ARI reported problems.
2303 (pascal_print_type): Fix 4 operator at end of line.
2304 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2305 using strncmp function.
2306 (pascal_type_print_base): Fix 2 operator at end of line.
2307 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2308 using strncmp function.
2311 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2313 * Fix PR pascal/2231
2314 dwarf2read.c (read_subroutine_type):
2315 All pascal functions are prototyped.
2317 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2319 * Fix PR pascal/2283
2320 p-valprint.c (pascal_val_print): correct current language check.
2321 Also print array of char as strings.
2324 2007-09-26 David Ung <davidu@mips.com>
2325 Maciej W. Rozycki <macro@mips.com>
2327 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2329 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2331 * p-exp.y: Fix 12 ARI reported problems.
2332 (name_not_typename): Fix 2 operator at end of line issues.
2333 (yylex): Fix 3 operator at end of line issues.
2334 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2336 2007-09-25 David Ung <davidu@mips.com>
2337 Maciej W. Rozycki <macro@mips.com>
2339 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2340 rules return composite types in registers as appropriate.
2342 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2344 * symfile.h (struct symfile_segment_data): Doc fixes.
2345 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2346 Assert that we were passed some loaded segment addresses,
2347 and that sections' segment numbers are valid.
2348 Simplify offset calculation.
2349 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2350 strategy, and set num_segments correctly. Delete redundant
2351 assignments to do_sections.
2353 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2355 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2357 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2359 * breakpoint.c (remove_sal): New.
2360 (expand_line_sal_maybe): New.
2361 (create_breakpoints): Call expand_line_sal_maybe.
2362 (clear_command): Add comment.
2363 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2364 * linespec.c (decode_indirect): Set explicit_pc to 1.
2365 (decode_all_digits): Set explicit_line to 1.
2366 (append_expanded_sal): New.
2367 (expand_line_sal): New.
2368 * linespec.h (expand_line_sal): Declare.
2369 * symtab.c (init_sal): Initialize explicit_pc
2371 * symtab.h (struct symtab_and_line): New fields
2372 explicit_pc and explicit_line.
2374 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2376 * infcall.c (call_function_by_hand): Handle language-specific
2377 pass and return by reference.
2379 * cp-abi.c (cp_pass_by_reference): New.
2380 * cp-abi.h (cp_pass_by_reference): Declare.
2381 (struct cp_abi_ops): Add pass_by_reference.
2382 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2383 (init_gnuv3_ops): Set pass_by_reference.
2385 * language.c (language_pass_by_reference): New.
2386 (default_pass_by_reference): New.
2387 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2388 default_pass_by_reference.
2389 * langauge.h (struct language_defn): Add la_pass_by_reference.
2390 (language_pass_by_reference, default_pass_by_reference): Declare.
2391 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2392 * c-lang.c (c_language_defn, asm_language_defn)
2393 (minimal_language_defn): Likewise.
2394 (cplus_language_defn): Add cp_pass_by_reference.
2395 * f-lang.c (f_language_defn): Add default_pass_by_reference.
2396 * jv-lang.c (java_language_defn): Likewise.
2397 * m2-lang.c (m2_language_defn): Likewise.
2398 * objc-lang.c (objc_language_defn): Likewise.
2399 * p-lang.c (pascal_language_defn): Likewise.
2400 * scm-lang.c (scm_language_defn): Likewise
2402 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
2404 Allow a code breakpoint to have several locations
2406 * breakpoint.h (enum enable_state): Remove the
2407 bp_shlib_disabled enumerator.
2408 (struct bp_location): New members shlib_disabled,
2409 global_next, enabled and function_name.
2410 Rename pending to condition_not_parsed.
2412 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2413 (ALL_BP_LOCATIONS_SAFE): Likewise.
2414 (breakpoint_enabled): Don't check for pending.
2415 (condition_command): Free and update all locations of
2417 (insert_bp_location): Adjust.
2418 (software_breakpoint_inserted_here_p): Don't care
2419 if breakpoint is enabled, as soon as it's inserted.
2420 (print_it_typical): Print bpstat's location, not
2421 bpstat's breakpoint's location.
2422 (bpstat_stop_status): Iterate over all locations, not
2424 (print_breakpoint_location): New.
2425 (print_one_breakpoint): Renamed to
2426 (print_one_breakpoint_location): ...this. Take
2427 parameters to describe which location is being
2428 printed. Modify code to properly print header
2429 for several locations and individual locations.
2430 (print_one_breakpoint): Print all locations.
2431 (breakpoint_has_pc): New.
2432 (describe_other_breakpoints): Use the above.
2433 (check_duplicates): Renamed to...
2434 (check_duplicates_for): .. this.
2435 (check_duplicates): Use check_duplicates_for.
2436 (allocate_bp_location): Adjust.
2437 (set_raw_breakpoint_without_location): New,
2438 extracted from set_raw_breakpoint.
2439 (set_breakpoint_location_function): New.
2440 (set_raw_breakpoint): Use
2441 set_raw_breakpoint_without_location.
2442 (make_breakpoint_permanent): Mark all locations
2444 (disable_breakpoints_in_shlibs): Iterate over
2446 (disable_breakpoints_in_unloaded_shlib): Likewise.
2447 (re_enable_breakpoints_in_shlibs): Likewise.
2448 (mention): Say "pending" when breakpoint has
2449 zero locations. If breakpoint has more than one
2451 (add_location_to_breakpoint): New.
2452 (create_breakpoint): Accept symtabs_and_lines, not
2453 symtab_and_line. Pass extra sals to
2454 add_location_to_breakpoint.
2455 (create_breakpoints): Pass symtabs_and_lines to
2457 (break_command_1): Make pending breakpoints
2458 have zero locations.
2459 (do_captured_breakpoint): Remove wrong allocation.
2460 (clear_command): Iterate over all locations.
2461 (unlink_locations_from_global_list): Renamed
2462 from unlink_location_from_global_list. Remove
2464 (delete_breakpoint): Remove all locations.
2465 Iterate over all locations when deciding which
2466 other location to re-enable.
2467 (all_locations_are_pending): New.
2468 (update_breakpoint_locations): Renamed from
2469 update_breakpoint_location. Try to match old
2470 and new locations using names of containing
2472 (breakpoint_re_set_one): Adjust.
2473 (find_location_by_number): New.
2474 (disable_command): Allow disabling individual location.
2475 (enable_command): Allow enabling individual location.
2476 * breakpoint.c: Adjust all uses of breakpoint's
2477 enable state to for bp_shlib_disabled change.
2479 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2481 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2482 (resolve_pending_breakpoint): Remove.
2483 (re_enable_breakpoints_in_shlibs): Remove.
2484 (unlink_locations_from_global_list): New.
2485 (update_breakpoint_locations): New.
2486 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2487 Use parse_condition and update_breakpoint_location to
2488 reset breakpoint. Ignore 'symbol not found' error from
2490 (breakpoint_re_set): Don't emit newline before the
2491 reason why breakpoint is not reset.
2492 (do_enable_breakpoint): Don't specially process pending
2494 (free_bp_location): New.
2495 (break_command_1): For pending breakpoints, initialize
2496 all fields of a sal with zeroes.
2497 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2498 * infcmd.c (post_create_inferior): Don't call
2499 re_enable_breakpoints_in_shlibs.
2500 * infrun.c (handle_inferior_event): Likewise.
2501 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2502 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2503 * win32-nat.c (get_win32_debug_event): Likewise.
2505 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2507 * breakpoint.c (create_breakpoint): Split from
2508 create_breakpoints, implementing most of its logic.
2509 Take just a single sal, single address string and
2510 single condition. Do not take parsed condition at
2512 (create_breakpoints): Just call create_breakpoint
2514 (find_condition_and_thread): New.
2515 (break_command_1): Use find_condition_and_thread.
2516 Do not keep parsed conditions.
2517 (do_captured_breakpoint): Don't convert
2518 condition string to struct expression.
2520 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2522 * breakpoint.h (struct breakpoint): Move the cond
2524 (struct bp_location): Here.
2525 * breakpoint.c (condition_command, bpstat_stop_status)
2526 (print_one_breakpoint, allocate_bp_location)
2527 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
2528 (create_exec_event_catchpoint, create_breakpoints)
2529 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
2530 (create_ada_exception_breakpoint, set_breakpoint_sal)
2531 (delete_breakpoint, breakpoint_re_set_one): Adjust.
2532 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
2534 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2536 Associate bp_stat with bp_location, not breakpoint.
2537 * breakpoint.h (breakpoint_at): Change type
2539 * breakpoint.c (bpstat_alloc): Take bp_location,
2541 (bpstat_find_breakpoint): Look at bpstat's location's
2542 owner, not at bpstat->breakpoint_at.
2543 (bpstat_find_step_resume_breakpoint): Likewise.
2544 (bpstat_num): Likewise.
2545 (print_it_typical): Likewise.
2546 (print_bp_stop_message): Likewise.
2547 (watchpoint_check): Likewise.
2548 (bpstat_what): Likewise.
2549 (bpstat_get_triggered_catchpoints): Likewise.
2550 (breakpoint_auto_delete): Likewise.
2551 (delete_breakpoint): Likewise.
2552 (bpstat_stop_status): Pass location, not breakpoint,
2553 to bpstat_alloc. Look at bpstat's location's
2554 owner, not at bpstat->breakpoint_at.
2556 2007-09-21 Jim Blandy <jimb@codesourcery.com>
2558 * macrotab.h (new_macro_table): Document that removing information
2559 from an obstack/bcache-managed macro table leaks memory.
2560 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
2561 that data is never freed in obstack/bcache-managed macro tables,
2562 just leak the storage.
2563 (macro_undef): If we're undefining a macro at exactly the same
2564 source location that we defined it, simply remove the definition
2567 2007-09-21 Joel Brobecker <brobecker@adacore.com>
2569 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
2570 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
2571 Adjust the struct sym_fns object accordingly by setting
2572 the new field to NULL.
2573 * xcoffread.c (aix_process_linenos): Make static.
2574 (xcoff_sym_fns): Set new field to aix_process_linenos.
2575 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
2576 by call to new the new sym_fns sym_read_linetable function.
2577 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
2578 * config/rs6000/tm-rs6000.h: Delete.
2580 2007-09-21 David Ung <davidu@mips.com>
2581 Maciej W. Rozycki <macro@mips.com>
2583 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
2584 rules do not treat composite types specially.
2586 2007-09-20 Maciej W. Rozycki <macro@mips.com>
2588 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
2589 (mips16_in_function_epilogue_p): Likewise.
2590 (mips_in_function_epilogue_p): Likewise.
2591 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
2593 2007-09-19 Joel Brobecker <brobecker@adacore.com>
2595 * configure.ac: Add check for "etext".
2596 * configure, config.in: Regenerate.
2597 * maint.c (TEXTEND): Only define if either _etext or etext
2599 Disable the profiling functionality if TEXTEND is not defined.
2601 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
2603 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
2604 address register. Correct the call to frame_id_build.
2605 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
2608 2007-09-18 Joel Brobecker <brobecker@adacore.com>
2610 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
2611 the linetable past the function end.
2613 2007-09-18 James E. Wilson <wilson@specifix.com>
2615 * MAINTAINERS: Update my email address.
2617 2007-09-18 Jerome Guitton <guitton@adacore.com>
2619 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
2620 (inf_ttrace_delete_dying_threads_callback): New function.
2621 (inf_ttrace_resume): After resuming the execution, iterate over
2622 the dying threads to delete them for the thread list.
2623 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
2624 mark the corresponding thread as dying instead of removing it
2625 from the thread list.
2626 (inf_ttrace_thread_alive): return 0 for dying threads.
2628 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2630 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
2631 that return_frame is not null.
2633 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2635 * solib-svr4.c: Add include of "auxv.h".
2636 (enable_break): Use the AT_BASE auxiliary entry if available.
2637 * Makefile.in (solib-svr4.o): Update dependencies.
2639 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2641 * NEWS: Create a new section for the next release branch.
2642 Rename the section of the current branch, now that it has
2645 2007-09-17 Jerome Guitton <guitton@adacore.com>
2647 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
2648 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
2650 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
2652 * mi/mi-cmds.c (mi_cmds): Register -list-features.
2653 * mi/mi-cmds.h (mi_cmd_list_features): New.
2654 * mi/mi-main.c (mi_cmd_list_features): New.
2656 2007-09-11 Joel Brobecker <brobecker@adacore.com>
2658 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
2659 * version.in: Bump version to 6.7.50-20070911-cvs.
2661 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2663 * thread.c (free_thread): Do not delete the step resume breakpoint
2666 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2668 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
2669 * corelow.c (core_read_description): New.
2670 (init_core_ops): Set to_read_description.
2671 * gdbarch.sh: Add gdbarch_core_read_description.
2672 * mips-linux-tdep.c (mips_linux_core_read_description): New.
2673 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
2674 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
2675 (mips_register_g_packet_guesses): Use them.
2676 (_initialize_mips_tdep): Initialize them.
2677 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
2678 * gdbarch.h, gdbarch.c: Regenerated.
2680 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2682 * infrun.c (stepping_past_breakpoint): New global variable.
2683 (stepping_past_breakpoint_ptid): Likewise.
2684 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
2685 Only switch threads if we need to single-step over a breakpoint hit
2686 in the previously selected thread. If stepping, remember previous
2687 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
2688 switch_to_thread instead of copying its contents.
2689 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
2690 prepare_to_proceed returns true.
2691 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
2692 (context_switch): Call switch_to_thread.
2693 (handle_inferior_event): Switch back to previous thread if requested
2694 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
2695 * gdbthread.h (switch_to_thread): Add prototype.
2696 * thread.c (switch_to_thread): Make global.
2698 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
2700 * p-valprint.c: Fix 7 ARI reported problems.
2701 (pascal_val_print): Fix one operator at end of line issue.
2702 Use paddress function to remove use of
2703 deprecated_print_address_numeric function (2 times).
2704 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
2705 (pascal_value_print): Fix 3 operator at end of line issues.
2707 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
2710 * arm-tdep.c (arm_in_call_stub): Delete.
2711 (arm_skip_stub): Handle from_arm and from_thumb stubs.
2713 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
2715 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
2718 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2719 Jim Blandy <jimb@codesourcery.com>
2721 * NEWS: Update description of string changes. Mention print/s.
2722 * c-valprint.c (textual_element_type): New.
2723 (c_val_print): Use it. Do not skip address printing for pointers
2724 with a string format.
2725 (c_value_print): Doc update.
2726 * dwarf2read.c (read_array_type): Use make_vector_type.
2727 * gdbtypes.c (make_vector_type): New.
2728 (init_vector_type): Use it.
2729 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
2730 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
2731 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
2732 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
2733 (make_vector_type): New.
2734 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
2735 Call the language print routine for string format.
2736 (print_scalar_formatted): Call val_print for string format. Handle
2737 unsigned original types for char format.
2738 (validate_format): Do not reject string format.
2739 * stabsread.c (read_type): Use make_vector_type.
2740 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
2742 2007-09-04 Michael Snyder <msnyder@access-company.com>
2744 * expprint.c (print_subexp_standard): Check strchr for null.
2745 * Makefile.in (expprint.o): Depend on gdb_assert.h.
2747 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
2749 * stabsread.c (patch_block_status): Guard against null.
2750 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
2752 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2754 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
2755 in internal error message.
2757 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
2758 Daniel Jacobowitz <dan@codesourcery.com>
2760 * infcmd.c (post_create_inferior): Update comment.
2761 (run_command_1): Always call post_create_inferior with 0 as
2764 * i386-cygwin-tdep.h: New.
2765 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
2766 (win32_xfer_shared_library): Make it extern.
2768 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
2770 (win32_so_ops): Delete.
2771 (get_relocated_section_addrs): Delete.
2772 (solib_symbols_add): Delete.
2773 (register_loaded_dll): Delete.
2774 (win32_make_so): New.
2775 (handle_load_dll): Use win32_make_so.
2776 (win32_free_so): Free the passed in so.
2777 (win32_relocate_section_addresses): Delete.
2778 (win32_solib_create_inferior_hook): Delete.
2779 (handle_unload_dll): Don't add PE offset here. Free so with
2780 win32_free_so instead of free_so.
2781 (win32_special_symbol_handling): Delete.
2782 (get_win32_debug_event): Remove unneeded calls. Set state to
2783 TARGET_WAITKIND_LOADED on a dll unload.
2784 (do_initial_win32_stuff): Clear cygwin_load_start and
2786 (map_code_section_args): Delete.
2787 (dll_code_sections_add): Delete.
2788 (core_section_load_dll_symbols): Delete.
2789 (win32_xfer_shared_libraries): New.
2790 (win32_current_sos): Delete.
2791 (win32_xfer_partial): New.
2792 (open_symbol_file_object): Delete.
2793 (in_dynsym_resolve_code): Delete.
2794 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
2795 of win32_ops. Remove win32_so_ops settings. Don't set
2796 current_target_so_ops here.
2798 * Makefile.in (i386_cygwin_tdep_h): New variable.
2799 (i386-cygwin-tdep.o): Update dependencies.
2800 (win32-nat.o): Update dependencies.
2802 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
2803 Daniel Jacobowitz <dan@codesourcery.com>
2805 * gdbarch.sh (core_xfer_shared_libraries): New.
2807 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2809 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
2811 * xml-support.c (gdb_xml_parse): Debug output tweaks.
2812 (xml_escape_text): New.
2813 * xml-support.h (xml_escape_text): Declare.
2815 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
2816 * config/i386/cygwin.mt (TDEPFILES): ... here.
2818 * win32-nat.c: (fetch_elf_core_registers): Delete.
2819 (win32_elf_core_fn): Delete.
2820 (_initialize_core_win32): Delete.
2822 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
2823 "xml-support.h" and "gdbcore.h".
2824 (i386_win32_gregset_reg_offset): New.
2825 (I386_WIN32_SIZEOF_GREGSET): New.
2826 (i386_win32_regset_from_core_section): New.
2827 (win32_xfer_shared_library): New.
2828 (struct cpms_data): New.
2829 (core_process_module_section): New.
2830 (win32_core_xfer_shared_libraries): New.
2831 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
2832 gregset_num_regs, sizeof_gregset members of tdep. Register
2833 regset_from_core_section and core_xfer_shared_libraries callbacks.
2835 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
2836 * gdbarch.h, gdbarch.c: Regenerate.
2838 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
2840 * corelow.c (core_xfer_partial): Pass writebuf to
2841 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
2843 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
2845 * arm-tdep.h (arm_skip_stub): Declare.
2846 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
2848 (arm_pe_skip_trampoline_code): New function.
2849 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
2850 gdbarch_skip_trampoline_code callback.
2851 * Makefile.in (arm-wince-tdep.o): Update dependencies.
2853 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
2855 * MAINTAINERS: Move Fred Fish to Past Maintainers.
2857 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
2859 * configure.ac: Add --with-expat.
2860 * configure: Regenerated.
2862 2007-09-03 Andreas Schwab <schwab@suse.de>
2864 * configure.ac: Accept --with-system-readline.
2865 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
2866 * configure: Regenerate.
2867 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
2869 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
2871 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
2872 Daniel Jacobowitz <dan@codesourcery.com>
2874 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
2876 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2878 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
2880 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2882 * top.c (print_gdb_version): Update for GPL version 3.
2884 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2886 * NEWS: Mention the build-id .debug files verification.
2888 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2890 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
2892 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2894 * Makefile.in (symfile.o): Update dependencies.
2895 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
2896 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
2897 (struct build_id): New structure.
2898 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
2899 (find_separate_debug_file): New variable BUILD_ID.
2900 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
2902 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2904 * varobj.c (struct varobj): Fix comment
2905 for the type member not to lie when it can be
2908 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2910 Implement -var-info-path-expression.
2912 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
2914 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
2915 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
2916 * varobj.c (struct varobj): New field 'path_expr'.
2917 (c_path_expr_of_child, cplus_path_expr_of_child)
2918 (java_path_expr_of_child): New.
2919 (struct language_specific): New field path_expr_of_child.
2920 (varobj_create): Initialize the path_expr field.
2921 (varobj_get_path_expr): New.
2922 (new_variable): Initialize the path_expr field.
2923 (free_variable): Free the path_expr field.
2924 (adjust_value_for_children_access): New parameter
2926 (c_number_of_children): Adjust.
2927 (c_describe_child): New parameter CFULL_EXPRESSION.
2928 Compute full expression.
2929 (c_value_of_child, c_type_of_child): Adjust.
2930 (cplus_number_of_children): Adjust.
2931 (cplus_describe_child): New parameter CFULL_EXPRESSION.
2932 Compute full expression.
2933 (cplus_name_of_child, cplus_value_of_child)
2934 (cplus_type_of_child): Adjust.
2935 * varobj.h (varobj_get_path_expr): Declare.
2937 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2939 * mi/mi-cmd-var.c (print_varobj): If a varobj
2940 type is NULL, don't try to print it.
2942 2007-08-30 Alan Modra <amodra@bigpond.net.au>
2944 * ppc-linux-nat.c (right_fill_reg): Delete.
2945 (supply_gregset): Use ppc_supply_gregset.
2946 (supply_fpregset): Use ppc_supply_fpregset.
2947 (fill_gregset): Use ppc_collect_gregset.
2948 (fill_fpregset): Use ppc_collect_fpregset.
2949 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
2950 (right_supply_register, ppc_linux_supply_gregset): Delete.
2951 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
2952 (ppc_linux_supply_fpregset): Delete.
2953 (ppc_linux_collect_gregset): New function.
2954 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
2955 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
2956 ppc_linux_supply_gregset, and ppc_collect_gregset.
2957 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
2958 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
2959 (ppc_linux_regset_from_core_section): Update.
2960 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
2961 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
2962 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
2963 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
2964 (ppcobsd_collect_gregset): Likewise.
2965 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
2966 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
2967 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
2968 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
2969 (rs6000_aix64_reg_offsets): Likewise.
2970 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
2971 ppc_floating_point_unit_p.
2972 (rs6000_aix_collect_regset): Similarly.
2973 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
2974 when regsize is larger than regcache register size.
2975 (ppc_collect_reg): Similarly zero pad when regsize is larger than
2976 regcache register size.
2977 (ppc_greg_offset): New function, split out from..
2978 (ppc_supply_gregset): ..here. Separate code handling all regs from
2979 single reg case. Correct xer offset.
2980 (ppc_fpreg_offset): New function, split out from..
2981 (ppc_supply_fpregset): ..here. Separate code handling all regs from
2983 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
2984 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
2985 a fp unit, instead return if no fp.
2987 2007-08-29 Jim Blandy <jimb@codesourcery.com>
2989 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
2990 this code has not been compiled for two years.
2992 2007-08-29 Michael Snyder <msnyder@access-company.com>
2994 * event-top.c (gdb_readline2): Return after EOF.
2996 2007-08-29 Joel Brobecker <brobecker@adacore.com>
2998 * symtab.c: Remove a function that has been commented out 3 years ago.
3000 2007-08-29 Randolph Chung <tausq@debian.org>
3002 * hppa-tdep.c (hppa32_cannot_fetch_register)
3003 (hppa64_cannot_fetch_register): New functions.
3004 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3005 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3007 2007-08-28 Michael Snyder <msnyder@access-company.com>
3009 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3010 check for null before calling check_typedef.
3012 * NEWS: Mention Coverity bug fixes.
3014 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3016 * spu-tdep.c (spu_pointer_to_address): New function.
3017 (spu_integer_to_address): Likewise.
3018 (spu_gdbarch_init): Add spu_pointer_to_address and
3019 spu_integer_to_address to gdbarch.
3021 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3023 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3025 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3027 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3028 that contains the GDB license.
3029 * copying.awk: Adjust to the GPLv3 wording.
3030 * copying.c: Regenerate.
3032 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3034 * copying.awk: Protoization, and i18n markup.
3036 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3038 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3039 * copyright.sh: Likewise.
3040 * gdb-events.sh: Likewise.
3041 * gdb_gcore.sh: Likewise.
3042 * gdb_mbuild.sh: Likewise.
3043 * gdbarch.sh: Likewise.
3044 * observer.sh: Likewise.
3045 * features/feature_to_c.sh: Likewise.
3046 * regformats/regdat.sh: Likewise.
3048 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3050 Switch the license of all .c files to GPLv3.
3051 Switch the license of all .h files to GPLv3.
3052 Switch the license of all .cc files to GPLv3.
3054 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3056 * configure.ac: Switch license to GPLv3.
3058 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3060 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3061 determine the file's FPU type.
3063 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3065 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3066 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3067 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3069 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3071 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3073 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3074 (elf_lookup_lib_symbol): Fix formatting.
3076 2007-08-21 Michael Snyder <msnyder@access-company.com>
3078 * dbxread.c (read_dbx_symtab): Guard null deref.
3081 * valops.c (find_overload_match): Guard against NULL.
3083 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3085 * MAINTAINERS (Patch Champions): Remove self.
3087 2007-08-21 Chris Smith <chris.smith@st.com>
3089 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3092 2007-08-18 Michael Snyder <msnyder@access-company.com>
3094 * stabsread.c (dbx_lookup_type): Memory leak.
3096 * event-loop.c (delete_async_signal_handler): Move pointer null
3097 test to before pointer dereference.
3099 * ui-out.c (append_header_to_list): Possible cut and paste error.
3101 * MAINTAINERS: white space tweak.
3103 2007-08-17 Michael Snyder <msnyder@access-company.com>
3105 * stack.c (print_frame): Memory leak.
3107 * completer.c (filename_completer): Avoid memory leak.
3108 Remove unnecessary nested block.
3110 * c-exp.y (parse_number): Memory leak.
3112 * completer.c (location_completer): Must free 'fn_list', except
3113 in the one case where it is returned (as 'list').
3115 * varobj.c (value_of_root): Memory leak.
3117 * gdbtypes.h (virtual_base_list): Remove export decl.
3118 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3119 (virtual_base_index): Memory leak.
3120 (virtual_base_index_skip_primaries): Ditto.
3122 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3124 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3125 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3126 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3127 (xtensa_read_register): New function.
3128 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3129 (xtensa_insn_kind): New types.
3130 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3131 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3132 (xtensa_verify_config, xtensa_pseudo_register_read)
3133 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3134 (xtensa_store_return_value)
3135 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3136 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3137 (xtensa_frame_this_id, xtensa_frame_prev_register)
3138 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3139 (call0_frame_cache, call0_frame_get_reg_at_entry)
3140 (call0_classify_opcode, call0_track_op)
3141 (call0_analyze_prologue, call0_frame_cache): New functions.
3143 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3145 * breakpoint.c (bpstat_free): New.
3146 (bpstat_clear): Use bpstat_free.
3147 (delete_breakpoint): Document why we cannot
3148 remove bpstats from stop_bpstat.
3149 * breakpoint.h (bpstat_free): Declare.
3151 2007-08-16 Michael Snyder <msnyder@access-company.com>
3153 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3155 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3156 Joel Brobecker <brobecker@adacore.com>
3158 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3160 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3161 Joel Brobecker <brobecker@adacore.com>
3163 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3164 checkin guarding against NULL.
3166 2007-08-14 Michael Snyder <msnyder@access-company.com>
3168 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3169 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3170 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3171 go at beginning of new line.
3173 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3174 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3175 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3176 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3177 tui-winsource.h, tui.c, tui.h: Function declarations and
3178 definitions, wrap long lines.
3180 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3181 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3182 Reformat block comments to GNU standard.
3184 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3185 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3186 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3187 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3188 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3189 spaces after periods, etc).
3191 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3192 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3193 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3194 tui-winsource.h: Whitespace changes, fix pointer declarations
3197 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3198 Michael Snyder <msnyder@access-company.com>
3200 * ada-lang.c (field_alignment): Guard against NULL.
3202 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3204 * MAINTAINERS (Global Maintainers): Add self.
3206 2007-08-14 Michael Snyder <msnyder@access-company.com>
3208 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3210 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3212 * varobj.c (cplus_describe_child): Guard against null.
3213 Use "NULL" instead of "0" to initialize pointers.
3215 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3217 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3218 to match any gdbarch with matching OSABI. Set default ABI and FPU
3219 after running the OSABI handler.
3221 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3223 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3224 * config/i386/linux.mt (TDEPFILES): ...to here.
3226 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3228 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3229 the 'silent' parameter and code to implement that.
3230 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3232 * win32-nat.c: Adjust.
3235 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3237 * breakpoint.c (update_breakpoints_after_exec): Don't
3238 set address to zero.
3240 2007-08-13 Michael Snyder <msnyder@access-company.com>
3242 * valops.c: Whitespace clean-up.
3244 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3246 * event-top.c (command_line_handler): Memory leak.
3248 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3249 No need to make copy.
3251 * source.c (find_source_lines): Require symtab 's'.
3253 2007-08-11 Michael Snyder <msnyder@access-company.com>
3255 * completer.c: Spelling fix in comments.
3257 2007-08-10 Michael Snyder <msnyder@access-company.com>
3259 * gdbtypes.c: Coding standard cleanup.
3260 * gdbtypes.c: Comment/whitespace cleanup.
3262 * stabsread.c (read_huge_number): Attempt to compute value before
3263 values that it depends on.
3265 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3266 (decode_objc): Use "NULL" instead of 0.
3267 (find_method): Ditto.
3268 (decode_all_digits): Ditto.
3269 (decode_dollar): Ditto.
3271 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3273 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3275 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3278 * completer.c: Comment/whitespace cleanup.
3280 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3282 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3284 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3286 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3287 allocated file descriptors.
3289 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3291 * Makefile.in: Minor cleanup throughout; add some missing variables,
3292 add some missing rules, remove some rules that are no longer needed,
3293 and fix the dependencies in several rules.
3295 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3297 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3298 (scm_lang_h, scm_tags_h): New.
3299 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3300 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3301 * defs.h (enum language): Add `language_scm'.
3303 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3306 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3308 * MAINTAINERS (Write After Approval): Add myself.
3310 2007-08-09 Michael Snyder <msnyder@access-company.com>
3312 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3314 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3316 * solib-som.c (som_relocate_section_addresses): Stop saving
3317 the $CODE$ section in the so_list structure.
3319 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3321 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3322 (xtensa_register_group_t): Add entries for coprocessors.
3323 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3324 (xtensa_add_reggroups): Likewise.
3325 (xtensa_register_reggroup_p): Likewise.
3326 (xtensa_coprocessor_register_group): New function.
3329 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3331 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3333 2007-08-08 Michael Snyder <msnyder@access-company.com>
3335 * target.c (target_read_string): Guard against null.
3337 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3339 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3340 (tui_set_layout_for_display_command): Mem leak.
3342 * top.c (command_line_input): Memory leak.
3344 * solib-svr4.c (open_symbol_file_object): Memory leak.
3345 (svr4_current_sos): Ditto.
3346 (enable_break): Ditto.
3348 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3350 * dwarf2read.c (add_partial_symbol): Memory leak.
3352 2007-08-06 Michael Snyder <msnyder@access-company.com>
3354 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3356 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3358 * macroexp.c (init_buffer): Remove testing code that overrides the
3359 caller's length guess.
3360 (gather_arguments): Use a larger initial size, now that the vector
3361 growth code has been exercised.
3363 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3365 * solib-target.c (solib_target_relocate_section_addresses): Add
3366 orig_delta to addr_high.
3368 2007-08-04 Michael Snyder <msnyder@access-company.com>
3370 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3372 * breakpoint.c (print_one_breakpoint): Off by one error.
3374 * tracepoint.c (add_register): Off by one error.
3375 (stringify_collection_list): Free malloc buffer.
3377 2007-08-03 Michael Snyder <msnyder@access-company.com>
3379 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3380 stop memory leak, straighten out cleanups.
3382 * jv-lang.c (java_link_class_type): Guard against NULL.
3384 2007-08-02 Michael Snyder <msnyder@access-company.com>
3386 * gdbtypes.c (create_set_type): Test should only be done within
3387 the preceeding if block. Otherwise, variable is uninitialized.
3389 * gdbtypes.c (check_typedef): Guard NULL.
3391 2007-08-01 Michael Snyder <msnyder@access-company.com>
3393 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
3394 avoid dereference in lookup_cmd_1.
3396 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
3397 clean up long lines.
3398 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3399 (tui_alloc_win_info): Ditto.
3400 (tui_add_content_elements): Ditto.
3401 * tui/tui-file.c (tui_file_magic): Ditto.
3403 2007-07-31 Michael Snyder <msnyder@access-company.com>
3405 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3406 True and false paths are mutually exclusive.
3408 * event-top.c (command_line_handler): Add pedantic return.
3410 * f-valprint.c (info_common_command): Bail out to prevent null
3411 pointer deref. Break up a long line.
3413 * exec.c (xfer_memory): Remove redundant condition from 'if'.
3415 * symfile.c (reread_separate_symbols): Free xmalloced memory.
3417 * printcmd.c (build_address_symbolic): Remove dead code and dead
3420 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3422 * linespec.c (minsym_found): Advance to the next line if possible.
3424 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
3426 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3427 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3428 solib-svr4.o, and add solib-target.o
3430 2007-07-27 Michael Snyder <msnyder@access-company.com>
3432 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3434 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
3436 * MAINTAINERS (Write After Approval): Add myself.
3438 2007-07-26 Maciej W. Rozycki <macro@mips.com>
3440 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3443 2007-07-25 Maciej W. Rozycki <macro@mips.com>
3445 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3447 2007-07-24 Michael Snyder <msnyder@access-company.com>
3449 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3450 'buffer' must cover both branches that call strcmp (Coverity).
3452 * stack.c (print_frame_args): Check return value of lookup_symbol.
3454 * ax-gdb.c (find_field): Guard against null ptr.
3456 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3458 * regformats/reg-spu.dat: Fix order of npc, id registers.
3460 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3462 * target.c (memory_xfer_partial): Accesses to unmapped overlay
3463 sections should always go to the executable file.
3465 2004-07-20 Chris Dearman <chris@mips.com>
3467 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3468 prologue instructions.
3470 2007-07-20 Maciej W. Rozycki <macro@mips.com>
3472 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3475 2007-07-20 Chris Dearman <chris@mips.com>
3476 Maciej W. Rozycki <macro@mips.com>
3478 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3481 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
3482 Daniel Jacobowitz <dan@codesourcery.com>
3484 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3485 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3487 * NEWS: Mention gdbserver DLL support.
3489 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
3491 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3493 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
3495 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3498 2007-07-13 Kevin Buettner <kevinb@redhat.com>
3500 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3503 2007-07-12 Kevin Buettner <kevinb@redhat.com>
3505 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3506 (mep_analyze_prologue): Add case for BRA instruction.
3508 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3510 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
3512 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
3514 * breakpoint.c: Include "top.h".
3515 (breakpoint_1): Don't set convenience variable $_ if server prefix
3517 (_initialize_breakpoint): Describe this behaviour in command help.
3519 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
3521 * solib-target.c (library_list_start_segment): Cast address to
3524 2007-07-06 Mark Kettenis <kettenis@gnu.org>
3526 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
3527 for terminated processes.
3529 2007-07-05 Michael Snyder <msnyder@access-company.com>
3531 * event-top.c (cli_command_loop): Prompt string can (and should)
3532 be freed after call to readline (Coverity). Also move local var
3533 declarations into block where they are used.
3535 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
3536 should) be freed after call to readline (Coverity). Also move
3537 local var declarations into block where they are used.
3539 2007-07-03 Andreas Schwab <schwab@suse.de>
3541 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
3544 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
3545 Thiago Bauermann <bauerman@br.ibm.com>
3546 Joseph S. Myers <joseph@codesourcery.com>
3547 Daniel Jacobowitz <dan@codesourcery.com>
3549 * remote.c (remote_check_symbols): Use
3550 gdbarch_convert_from_func_ptr_addr.
3551 * infcall.c (find_function_addr): Handle function descriptors
3552 without debugging information.
3553 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
3554 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
3555 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
3556 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
3557 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
3558 allow SEC_CODE and SEC_DATA.
3559 (enable_break): Update calls. Pass current_target to solib_add.
3560 Use gdbarch_convert_from_func_ptr_addr.
3562 2007-07-03 Ilko Iliev <iliev@ronetix.at>
3563 Daniel Jacobowitz <dan@codesourcery.com>
3565 * symfile.c (print_transfer_performance): Avoid integer overflow.
3568 2007-07-03 Markus Deuling <deuling@de.ibm.com>
3570 * cp-namespace.c (lookup_symbol_file): Add block to
3571 lookup_symbol_global call.
3572 * Makefile.in (solist_h): Add dependency on symtab header.
3573 (symtab.o): Add dependency on solist header.
3574 * solib.c (solib_global_lookup): New function.
3575 * solib-svr4.c (scan_dyntag): Likewise.
3576 (elf_locate_base): Call helper routine scan_dyntag.
3577 (elf_lookup_lib_symbol): New function.
3578 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
3579 * solist.h (symtab.h): New include.
3580 (struct target_so_ops): New member lookup_lib_global_symbol.
3581 (solib_global_lookup): New prototype.
3582 * symtab.c: New include solist.h.
3583 (lookup_objfile_from_block): New function.
3584 (lookup_global_symbol_from_objfile): New function.
3585 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
3586 (lookup_symbol_global): Call library-specific lookup procedure.
3587 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
3589 * NEWS: Document framework.
3591 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3593 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
3596 * cli/cli-script.c (build_command_line): Update NULL check.
3598 2007-07-02 Michael Snyder <msnyder@access-company.com>
3600 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
3602 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3604 * Makefile.in (XMLFILES): Add library-list.dtd.
3605 (ALLDEPFILES): Add solib-target.o.
3606 (solib-target.o): New rule.
3607 * remote.c (PACKET_qXfer_libraries): New constant.
3608 (remote_protocol_features): Add qXfer:libraries:read.
3609 (remote_wait): Recognize library stop replies.
3610 (remote_async_wait): Likewise. Fix typo.
3611 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3612 (init_remote_async_ops): Fix typo.
3613 (_initialize_remote): Register "set remote library-info-packet".
3614 * solib-som.c (som_current_sos): Set addr_low and addr_high.
3615 * solib-target.c: New file.
3616 * solib.c (solib_map_sections): Use addr_low and addr_high instead
3618 (info_sharedlibrary_command): Likewise.
3619 (solib_add_library, solib_remove_library): New.
3620 * solist.h (struct so_list): Replace textsection with addr_low and
3622 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
3623 * NEWS: Describe new qXfer:libraries:read and shared library
3625 * features/library-list.dtd: New.
3627 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3629 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
3630 (start_remote): Use STOP_QUIETLY_REMOTE.
3631 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
3632 support on a SOLIB_ADD definition. Update breakpoints_inserted.
3633 Update to match shared library event breakpoint support. Only
3634 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
3635 (normal_stop): Handle TARGET_WAITKIND_LOADED.
3636 * fork-child.c (startup_inferior): Do not set
3637 inferior_ignoring_startup_exec_events
3638 * inferior.h (inferior_ignoring_startup_exec_events): Delete
3640 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
3642 2007-07-02 Markus Deuling <deuling@de.ibm.com>
3644 * breakpoint.c (insert_bp_location): Remove dead code
3645 (DISABLE_UNSETTABLE_BREAK).
3646 (disable_breakpoints_in_shlibs)
3647 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
3649 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3651 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
3652 Call insert_bp_location.
3654 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
3656 * core-regset.c (fetch_core_registers): Work around gcc 3.4
3659 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3661 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
3664 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3666 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
3667 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
3668 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
3669 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
3670 to display_gdb_prompt.
3672 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3675 * target.c (memory_xfer_partial): Do not continue past targets with
3678 2007-06-30 Andreas Schwab <schwab@suse.de>
3680 * m68k-tdep.c (m68k_ps_type): New.
3681 (m68k_init_types): New.
3682 (m68k_register_type): Use m68k_ps_type for PS register.
3683 (_initialize_m68k_tdep): Call m68k_init_types.
3685 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
3686 from the generic m68k arch.
3688 2007-06-28 Michael Snyder <msnyder@access-company.com>
3690 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
3693 * linux-thread-db.c (thread_db_get_thread_local_address): Add
3694 gdb_assert before using return value of find_thread_pid (Coverity).
3696 * source.c (unset_substitute_path_command): Plug leak (Coverity).
3698 * cli/cli-script.c (build_command_line): Add null pointer guard
3701 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
3703 * linux-thread-db.c (thread_db_attach): Delete.
3704 (thread_db_detach): Typo fix. Call target_mourn_inferior
3705 instead of fixing up proc_handle.
3706 (have_threads_callback, have_threads): New functions.
3707 (thread_db_wait): Remove dead proc_handle.pid check. Only
3708 translate PTIDs if we have registered threads. Check for new
3709 threads if we have none.
3710 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
3711 (find_new_threads_callback): Only enable event reporting if TID == 0.
3712 (same_ptid_callback): New.
3713 (thread_db_get_thread_local_address): Check for new threads.
3714 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
3715 or to_post_startup_inferior.
3717 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3719 * infrun.c (adjust_pc_after_break): Do not assume software single-step
3720 is always active if SOFTWARE_SINGLE_STEP_P is true.
3721 (resume): Use gdbarch_software_single_step[_p] instead of
3722 SOFTWARE_SINGLE_STEP[_P].
3723 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
3725 * gdbarch.sh (software_single_step): Remove target macro.
3726 * gdbarch.h, gdbarch.c: Regenerate.
3728 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3730 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
3731 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
3732 (struct gdbarch_swap, struct gdbarch_swap_registration,
3733 struct gdbarch_swap_registry, gdbarch_swap_registry,
3734 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
3735 current_gdbarch_swap_in_hack): Remove.
3736 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
3737 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
3738 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
3739 (deprecated_current_gdbarch_select_hack): Likewise.
3740 * gdbarch.h, gdbarch.c: Regenerate.
3742 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3744 * infrun.c (clear_proceed_status): Clean up stop_registers.
3745 (normal_stop): Allocate regcache for stop_registers.
3746 (struct inferior_status): Remove stop_registers member.
3747 (save_inferior_status): Do not save stop_registers.
3748 (restore_inferior_status): Do not restore stop_registers.
3749 (discard_inferior_status): Do not discard stop_registers.
3750 (build_infrun): Remove.
3751 (_initialize_infrun): Do not swap stop_registers.
3753 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3755 * remote.c (remote_address_masked): If remote_address_size is zero,
3756 default to target address size.
3757 (build_remote_gdbarch_data): Remove.
3758 (_initialize_remote): Do not swap remote_address_size.
3760 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3762 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
3763 builtin_type_char, builtin_type_short, builtin_type_int,
3764 builtin_type_long, builtin_type_signed_char,
3765 builtin_type_unsigned_char, builtin_type_unsigned_short,
3766 builtin_type_unsigned_int, builtin_type_unsigned_long,
3767 builtin_type_float, builtin_type_double, builtin_type_long_double,
3768 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
3769 builtin_type_bool, builtin_type_long_long,
3770 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
3771 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
3772 variable declaration with compatibility macro.
3773 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
3774 builtin_type_char, builtin_type_short, builtin_type_int,
3775 builtin_type_long, builtin_type_signed_char,
3776 builtin_type_unsigned_char, builtin_type_unsigned_short,
3777 builtin_type_unsigned_int, builtin_type_unsigned_long,
3778 builtin_type_float, builtin_type_double, builtin_type_long_double,
3779 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
3780 builtin_type_bool, builtin_type_long_long,
3781 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
3782 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
3783 (build_gdbtypes): Remove.
3784 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
3785 opaque-type-resolution command here. Do not call
3786 deprecated_register_gdbarch_swap.
3788 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3790 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
3791 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
3792 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
3794 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
3795 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
3796 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
3797 (build_parse): Remove.
3798 (_initialize_parse): Do not call build_parse. Do not register
3799 msym_ types for gdbarch-swapping.
3801 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
3802 instead of creating private type.
3804 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
3805 (_initialize_xcoffread): Do not initialized them.
3806 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
3808 * mdebugread.c (nodebug_func_symbol_type): Remove.
3809 (nodebug_var_symbol_type): Remove.
3810 (_initialize_mdebugread): Do not initialize them.
3811 (parse_symbol): Use builtin nodebug_ type instead of them.
3812 (parse_procedure): Likewise.
3814 2007-06-21 Chris Dearman <chris@mips.com>
3816 * printcmd.c (do_one_display): If display/i, start with an initial
3817 line feed to avoid bad layout if there is a branch delay slot.
3819 2007-06-21 Nigel Stephens <nigel@mips.com>
3820 Maciej W. Rozycki <macro@mips.com>
3822 * disasm.c (gdb_print_insn): Return the number of branch delay
3823 slot instructions too.
3824 * disasm.h (gdb_print_insn): Update prototype.
3825 * printcmd.c (branch_delay_insns): New variable to record the
3826 number of delay slot instructions after disassembling a branch.
3827 (print_formatted): Record the number of branch delay slot
3829 (do_examine): When disassembling, if the last instruction
3830 disassembled has any branch delay slots, then bump the count so
3831 that they get disassembled too.
3832 * tui/tui-disasm.c (tui_disassemble): Update the call to
3834 * NEWS: Document the new behaviour.
3836 2007-06-21 Andreas Schwab <schwab@suse.de>
3838 * regcache.c (write_pc_pid): Restore missing else.
3840 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
3842 * regcache.c (regcache_print): Use get_current_regcache ()
3843 instead of current_regcache.
3845 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
3848 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
3849 instead of bfd_make_section_anyway.
3850 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
3851 when clearing SEC_LOAD.
3853 2007-06-19 Joseph Myers <joseph@codesourcery.com>
3855 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
3856 registers for big-endian.
3858 2007-06-19 Markus Deuling <deuling@de.ibm.com>
3860 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
3861 * disasm.c (dump_insns, gdb_print_insn): Likewise.
3862 * gdbarch.c, gdbarch.h: Regenerate.
3864 2007-06-19 Markus Deuling <deuling@de.ibm.com>
3866 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
3867 gdbarch_believe_pcc_promotion.
3868 * stabsread.c (define_symbol): Likewise.
3869 Remove unnecessary definition.
3870 * coffread.c (process_coff_symbol): Remove unnecessary code.
3871 * gdbarch.c, gdbarch.h: Regenerate.
3873 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
3875 * configure.ac: Do not use ${objdir}.
3876 * configure: Regenerated.
3878 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
3880 * gdbarch.sh (deprecated_register_size): Remove.
3881 * gdbarch.h, gdbarch.c: Regenerate.
3883 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
3884 by INT_REGISTER_SIZE.
3885 (thumb_get_next_pc, arm_return_in_memory): Likewise.
3886 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
3887 * ia64-tdep.c (ia64_gdbarch_init): Do not call
3888 set_gdbarch_deprecated_register_size.
3890 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3892 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
3893 gdbarch_deprecated_fp_regnum.
3894 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3895 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
3896 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3897 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
3899 * gdbarch.c, gdbarch.h: Regenerate.
3901 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3903 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
3904 gdbarch_extract_return_value.
3905 * value.c (generic_use_struct_convention): Likewise (comment).
3906 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
3907 * arch-utils.c (legacy_return_value): Likewise.
3908 * arch-utils.h (legacy_return_value): Likewise (comment).
3909 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
3910 gdbarch_store_return_value.
3911 * stack.c (return_command): Likewise (comment).
3912 * arch-utils.h (legacy_return_value): Likewise (comment).
3913 * arch-utils.c (legacy_return_value): Likewise.
3914 * gdbarch.c, gdbarch.h: Regenerate.
3916 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3918 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
3919 gdbarch_deprecated_use_struct_convention.
3920 * arch-utils.c (legacy_return_value): Likewise.
3921 * gdbarch.c, gdbarch.h: Regenerate.
3923 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3925 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
3926 gdbarch_deprecated_function_start_offset.
3927 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
3928 * linespec.c (minsym_found): Likewise.
3929 * infrun.c (handle_inferior_event): Likewise.
3930 * infcall.c (find_function_addr): Likewise.
3931 * cli/cli-cmds.c (disassemble_command): Likewise.
3932 * gdbarch.c, gdbarch.h: Regenerate.
3934 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3936 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
3937 gdbarch_deprecated_reg_struct_has_addr.
3938 * infcall.c (call_function_by_hand): Likewise.
3939 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
3940 * gdbarch_deprecated_reg_struct_has_addr_p.
3941 * infcall.c (call_function_by_hand): Likewise.
3942 * gdbarch.c, gdbarch.h: Regenerate.
3944 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3946 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3947 * sh-tdep.c (sh_extract_struct_value_address): Remove.
3948 (sh_gdbarch_init): Remove
3949 set_gdbarch_deprecated_extract_struct_value_address.
3950 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
3951 (sh64_gdbarch_init): Remove
3952 set_gdbarch_deprecated_extract_struct_value_address.
3953 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
3954 (ia64_gdbarch_init): Remove
3955 set_gdbarch_deprecated_extract_struct_value_address.
3956 * frv-tdep.c (frv_extract_struct_value_address): Remove.
3957 (frv_gdbarch_init): Remove
3958 set_gdbarch_deprecated_extract_struct_value_address.
3959 * gdbarch.c, gdbarch.h: Regenerate.
3961 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3963 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
3964 * v850-tdep.c (v850_unwind_sp): Likewise.
3965 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
3966 * stack.c (frame_info): Likewise.
3967 * stabsread.c (define_symbol): Likewise.
3968 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
3969 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
3970 (sh_unwind_sp): Likewise.
3971 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
3972 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
3973 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
3974 (rs6000_frame_cache): Likewise.
3975 * rs6000-nat.c (store_register): Likewise.
3976 * remote-mips.c (mips_wait): Likewise.
3977 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3978 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3979 (ppc64_sysv_abi_push_dummy_call): Likewise.
3980 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3981 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3982 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3983 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3984 * m32r-rom.c (m32r_supply_register): Likewise.
3985 * frame.c (frame_sp_unwind): Likewise.
3986 * mips-tdep.c (mips_insn16_frame_cache)
3987 (mips_insn32_frame_cache): Likewise (comment).
3988 * m68klinux-nat.c (supply_gregset): Likewise.
3989 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3990 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
3991 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3992 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3993 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
3994 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
3995 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
3996 (cris_register_type, crisv32_register_type)
3997 (cris_dwarf2_frame_init_reg): Likewise.
3998 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3999 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4000 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4001 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4003 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4004 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4005 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4006 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4007 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4008 * v850-tdep.c (v850_unwind_pc): Likewise.
4009 * stack.c (frame_info): Likewise.
4010 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4011 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4012 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4013 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4014 (sh_dsp_show_regs): Likewise.
4015 * shnbsd-tdep.c (shnbsd_supply_gregset)
4016 (shnbsd_collect_gregset): Likewise.
4017 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4018 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4019 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4020 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4021 (6000_register_reggroup_p, rs6000_unwind_pc)
4022 (rs6000_frame_cache): Likewise.
4023 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4024 (rs6000_store_inferior_registers): Likewise.
4025 * remote-mips.c (mips_wait, mips_load): Likewise.
4026 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4027 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4028 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4029 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4030 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4031 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4032 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4033 (store_ppc_registers, fill_gregset): Likewise.
4034 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4035 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4036 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4037 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4038 * m68klinux-nat.c (supply_gregset): Likewise.
4039 * irix5-nat.c (fill_gregset): Likewise.
4040 * i386-tdep.c (i386_unwind_pc): Likewise.
4041 * i386-linux-nat.c (i386_linux_resume): Likewise.
4042 * frame.c (get_prev_frame_1): Likewise.
4043 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4044 * dbug-rom.c (dbug_supply_register): Likewise.
4045 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4046 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4047 (cris_register_type, crisv32_register_type, crisv32_register_name)
4048 (cris_dwarf2_frame_init_reg, find_step_target)
4049 (cris_software_single_step, cris_supply_gregset)
4050 (cris_regnums): Likewise.
4051 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4052 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4053 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4054 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4055 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4057 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4058 * dbug-rom.c (dbug_supply_register): Likewise.
4059 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4060 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4061 * win32-nat.c (win32_resume): Likewise.
4062 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4063 * m68k-tdep.c (m68k_register_type): Likewise.
4064 * m68klinux-nat.c (supply_gregset): Likewise.
4066 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4067 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4068 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4069 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4070 (fv_reg_base_num, dr_reg_base_num): Likewise.
4071 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4072 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4073 (sh64_extract_return_value, sh64_store_return_value)
4074 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4075 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4076 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4077 (invalidate_cache): Likewise.
4078 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4079 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4080 (mipsnbsd_fill_fpreg): Likewise.
4081 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4082 (mipsnbsd_store_inferior_registers): Likewise.
4083 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4084 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4085 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4086 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4087 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4088 (fill_fpregset): Likewise.
4089 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4090 * i386-tdep.h (struct_return): Likewise (comment).
4091 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4092 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4093 (go32_store_registers): Likewise.
4094 * alpha-tdep.c (alpha_next_pc): Likewise.
4095 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4096 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4097 (alphabsd_store_inferior_registers): Likewise.
4098 * core-regset.c (fetch_core_registers): Likewise.
4099 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4101 * gdbarch.c, gdbarch.h: Regenerate.
4103 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4105 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4106 * dbxread.c (start_psymtab): Check HAVE_ELF.
4107 (aout_sym_fns): Likewise.
4108 * elfread.c (elf_symfile_segments): New.
4109 (elf_sym_fns): Add elf_symfile_segments.
4110 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4111 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4112 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4113 * somread.c (som_sym_fns): Use default_symfile_segments.
4114 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4115 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4116 (default_symfile_segments): New function.
4117 (syms_from_objfile): Update call to find_sym_fns.
4118 (symfile_get_segment_data, free_symfile_segment_data): New.
4119 (symfile_map_offsets_to_segments): New.
4120 (symfile_find_segment_sections): New.
4121 * symfile.h (struct symfile_segment_data): New.
4122 (struct sym_fns): Add sym_segments.
4123 (default_symfile_segments, symfile_get_segment_data)
4124 (free_symfile_segment_data): New prototypes.
4125 (symfile_map_offsets_to_segments): Likewise.
4126 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4127 * Makefile.in (COMMON_OBS): Remove elfread.o.
4128 (elf_internal_h): New.
4129 (elfread.o): Update.
4130 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4132 * config.in, configure: Regenerated.
4133 * NEWS: Mention qOffsets changes.
4135 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4137 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4138 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4139 Replace global variable declaration with compatibility macro.
4140 (struct builtin_m2_type): New data type.
4141 (builtin_m2_type): Add prototype.
4142 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4143 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4144 Remove global variables.
4145 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4146 (build_m2_types): New function.
4147 (m2_type_data): New variable.
4148 (builtin_m2_type): New function.
4149 (_initialize_m2_language): Do not build data types. Register
4150 m2_type_data per-gdbarch data.
4152 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4154 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4155 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4156 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4157 builtin_type_f_real_s8, builtin_type_f_real_s16,
4158 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4159 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4160 variable declaration with compatibility macro.
4161 (struct builtin_f_type): New data type.
4162 (builtin_f_type): Add prototype.
4163 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4164 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4165 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4166 builtin_type_f_real_s8, builtin_type_f_real_s16,
4167 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4168 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4169 (f_language_arch_info): Use builtin_f_type instead of variables.
4170 (build_fortran_types): Build builtin_f_type structure instead of
4171 setting global type variables.
4172 (f_type_data): New variable.
4173 (builtin_f_type): New function.
4174 (_initialize_f_language): Do not call build_fortran_types. Do not
4175 swap global type variables. Register f_type_data per-gdbarch data.
4177 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4179 * f-lang.c (_initialize_f_language): Do not initialize or
4180 swap builtin_type_string.
4182 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4184 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4185 value_of_builtin_frame_reg): Remove.
4186 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4187 inactive call to value_of_builtin_frame_reg.
4189 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4191 * gdbarch.sh (bfd_vma_bit): Remove.
4192 * gdbarch.c, gdbarch.h: Regenerate.
4194 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4195 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4196 (build_gdbtypes): Do not initialize it.
4197 (_initialize_gdbtypes): Do not swap it.
4199 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4201 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4202 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4203 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4204 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4205 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4206 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4207 builtin_type_vec64, builtin_type_vec128): Remove.
4208 (init_simd_type): Remove.
4209 (init_vector_type): Make global.
4210 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4211 (build_gdbtypes): Do not build vector types.
4212 (_initialize_gdbtypes): Do not swap vector types.
4213 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4214 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4215 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4216 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4217 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4218 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4219 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4220 (init_vector_type): Add prototype.
4222 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4223 i386_sse_type members.
4224 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4225 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4226 (i386_init_types): Do not build vector types.
4227 (i386_mmx_type, i386_sse_type): New functions.
4228 (i386_register_type): Call them instead of using global variables.
4229 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4230 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4231 of using global variable.
4233 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4234 and ppc_builtin_type_vec128 members.
4235 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4236 (rs6000_builtin_type_vec128): Likewise.
4237 (rs6000_register_type): Call them instead of using builtin_type_vec64
4238 and builtin_type_vec128.
4239 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4241 * spu-tdep.c (struct gdbarch_tdep): New data type.
4242 (spu_builtin_type_vec128): Remove variable.
4243 (spu_builtin_type_vec128): New function.
4244 (spu_register_type): Call it instead of using global variable.
4245 (spu_gdbarch_init): Allocate tdep structure.
4246 (spu_init_vector_type): Remove function.
4247 (_initialize_spu_tdep): Do not call it.
4249 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4251 * amd64-tdep.c (struct amd64_register_info): Remove.
4252 (amd64_register_info): Remove.
4253 (amd64_register_names): New static variable.
4254 (AMD64_NUM_REGS): Use amd64_register_names instead of
4255 amd64_register_info.
4256 (amd64_register_name): Likewise.
4257 (amd64_register_type): Do not refer to amd64_register_info.
4259 * s390-tdep.c (struct s390_register_info): Remove.
4260 (s390_register_info): Remove.
4261 (s390_register_name): Do not refer to s390_register_info.
4262 (s390_register_type): Likewise.
4264 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4265 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4266 (sparc64_register_names, sparc64_pseudo_register_names): New.
4267 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4268 sparc64_register_names and sparc64_pseudo_register_names instead of
4269 sparc64_register_info and sparc64_pseudo_register_info.
4270 (sparc64_register_name): Likewise.
4271 (sparc64_register_type): Do not refer to sparc64_register_info
4272 and sparc64_pseudo_register_info.
4274 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4276 * c-lang.c (cplus_builtin_types): Remove.
4277 (enum cplus_primitive_types): New data type.
4278 (cplus_language_arch_info): New function.
4279 (cplus_language_defn): Set la_language_arch_info member. Do not set
4280 la_builtin_type_vector and string_char_type members.
4282 * f-lang.c (f_builtin_types): Remove.
4283 (enum f_primitive_types): New data type.
4284 (f_language_arch_info): New function.
4285 (f_language_de): Set la_language_arch_info member. Do not set
4286 la_builtin_type_vector and string_char_type members.
4288 * m2-lang.c (m2_builtin_types): Remove.
4289 (enum m2_primitive_types): New data type.
4290 (m2_language_arch_info): New function.
4291 (m2_language_defn): Set la_language_arch_info member. Do not set
4292 la_builtin_type_vector and string_char_type members.
4294 * objc-lang.c (objc_builtin_types): Remove.
4295 (objc_language): Set la_language_arch_info member. Do not set
4296 la_builtin_type_vector and string_char_type members.
4298 * p-lang.c (pascal_builtin_types): Remove.
4299 (enum pascal_primitive_types): New data type.
4300 (pascal_language_arch_info): New function.
4301 (pascal_language_defn): Set la_language_arch_info member. Do not set
4302 la_builtin_type_vector and string_char_type members.
4304 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4306 * regcache.c (struct regcache): Add ptid_t member.
4307 (regcache_xmalloc): Initialize it.
4308 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4309 (regcache_dup): Likewise.
4310 (regcache_dup_no_passthrough): Likewise.
4311 (current_regcache): Make static.
4312 (registers_ptid): Remove variable.
4313 (get_thread_regcache): New function.
4314 (get_current_regcache): New function.
4315 (registers_changed): Implement by freeing current regcache.
4316 (regcache_raw_read): Do not refer to current_regcache. Set
4317 inferior_ptid to regcache->ptid while calling target routines.
4318 (regcache_raw_write): Likewise.
4319 (regcache_raw_supply): Do not refer to current_regcache.
4320 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4321 (write_pc_pid): Likewise.
4322 (build_regcache): Remove.
4323 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4324 or deprecated_register_gdbarch_swap. Do not initialize
4326 * regcache.h (get_current_regcache): Add prototype.
4327 (get_thread_regcache): Likewise.
4328 (current_regcache): Remove declaration.
4330 * corelow.c (core_open): Replace current_regcache by
4331 get_current_regcache ().
4332 * frame.c (frame_pop): Likewise.
4333 (put_frame_register): Likewise.
4334 (get_current_frame, create_new_frame): Likewise.
4335 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4336 * stack.c (return_command): Likewise.
4337 * infcall.c (call_function_by_hand): Likewise.
4338 * infrun.c (resume): Likewise.
4339 (save_inferior_status, restore_inferior_status): Likewise.
4340 * linux-fork.c (fork_load_infrun_state): Likewise.
4341 (fork_save_infrun_state): Likewise.
4342 * win32-nat.c (win32_resume): Likewise.
4343 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4344 * monitor.c (monitor_wait): Likewise.
4345 * remote.c (remote_wait): Likewise.
4346 * remote-mips.c (mips_wait): Likewise.
4348 * bsd-kvm.c (bsd_kvm_open): Likewise
4349 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4350 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4351 * i386-linux-nat.c (i386_linux_resume): Likewise.
4352 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4353 (ia64_linux_stopped_data_address): Likewise.
4355 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4356 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4357 * mep-tdep.c (current_me_module, current_options): Likewise.
4358 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4360 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4361 regcache instead of current_regcache. Call target_fetch_registers.
4362 (linux_nat_corefile_thread_callback): Update call site.
4363 (linux_nat_do_registers): Likewise.
4364 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4365 of current_regcache.
4366 (procfs_make_note_section): Likewise.
4367 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4368 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4369 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4370 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4372 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4374 * regcache.c (read_register, read_register_pid): Remove.
4375 (write_register, write_register_pid): Likewise.
4376 * regcache.h (read_register, read_register_pid): Remove prototype.
4377 (write_register, write_register_pid): Likewise.
4379 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4381 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4382 (write_pc): Likewise. Remove default implementation, add predicate.
4383 * gdbarch.c, gdbarch.h: Regenerate.
4384 * regcache.c (read_pc_pid): Use current regcache instead of calling
4386 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4388 (generic_target_write_pc): Remove.
4389 * inferior.h (generic_target_write_pc): Remove.
4390 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4391 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4392 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4393 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4394 * sh-tdep.c (sh_gdbarch_init): Likewise.
4395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4397 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
4398 argument. Use REGCACHE instead of calling read_register_pid.
4399 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4400 * hppa-tdep.c (hppa_read_pc): Likewise.
4401 * hppa-tdep.h (hppa_read_pc): Likewise.
4402 * ia64-tdep.c (ia64_read_pc): Likewise.
4403 * m32r-tdep.c (m32r_read_pc): Likewise.
4404 * mep-tdep.c (mep_read_pc): Likewise.
4405 * mn10300-tdep.c (mn10300_read_pc): Likewise.
4406 * spu-tdep.c (spu_read_pc): Likewise.
4408 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
4409 argument. Use REGCACHE instead of calling write_register_pid.
4410 * avr-tdep.c (avr_write_pc): Likewise.
4411 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4412 * hppa-tdep.c (hppa_write_pc): Likewise.
4413 * hppa-tdep.h (hppa_write_pc): Likewise.
4414 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4415 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4416 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4417 * ia64-tdep.c (ia64_write_pc): Likewise.
4418 * ia64-tdep.h (ia64_write_pc): Likewise.
4419 * m32r-tdep.c (m32r_write_pc): Likewise.
4420 * m88k-tdep.c (m88k_write_pc): Likewise.
4421 * mep-tdep.c (mep_write_pc): Likewise.
4422 * mips-tdep.c (mips_write_pc): Likewise.
4423 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4424 * mn10300-tdep.c (mn10300_write_pc): Likewise.
4425 * sparc-tdep.c (sparc_write_pc): Likewise.
4426 * spu-tdep.c (spu_write_pc): Likewise.
4428 * mips-tdep.c (read_signed_register): Remove.
4429 (read_signed_register_pid): Likewise.
4430 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
4431 Use REGCACHE instead of calling read_signed_register_pid.
4433 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4435 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4436 * gdbarch.c, gdbarch.h: Regenerate.
4437 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4438 (push_dummy_code): Likewise. Pass it to callee.
4439 (call_function_by_hand): Pass current regcache to push_dummy_code.
4441 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4442 argument. Use it instead of current_regcache.
4444 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4445 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4447 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4449 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4450 * gdbarch.c, gdbarch.h: Regenerate.
4451 * infrun.c (handle_inferior_event): Pass current frame to
4452 gdbarch_get_longjmp_target.
4454 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4455 Read registers from FRAME instead of using read_register.
4456 Use get_frame_arch instead of current_gdbarch.
4457 * arm-tdep.c (arm_get_longjmp_target): Likewise.
4458 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4459 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4460 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4461 (mips64_linux_get_longjmp_target): Likewise.
4462 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4464 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4466 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4467 * gdbarch.c, gdbarch.h: Regenerate.
4468 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4469 * arch-utils.h (generic_skip_trampoline_code): Likewise.
4470 * infrun.c (handle_inferior_event): Pass current frame to
4471 gdbarch_skip_trampoline_code and skip_language_trampoline.
4473 * language.c (unk_lang_trampoline): Add FRAME argument.
4474 (skip_language_trampoline): Add FRAME argument. Pass it to
4475 skip_trampoline callback.
4476 * language.h: Add forward declaration of struct frame_info.
4477 (struct language_defn): Add FRAME argument to skip_trampoline.
4478 (skip_language_trampoline): Add FRAME argument.
4479 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
4480 to skip_trampoline callback.
4481 * cp-abi.h: Add forward declaration of struct frame_info.
4482 (cplus_skip_trampoline): Add FRAME argument.
4483 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4484 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
4485 to gdbarch_skip_trampoline_code.
4486 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
4487 to gdbarch_skip_trampoline_code.
4489 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4490 * symtab.h (find_solib_trampoline_target): Likewise.
4491 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4492 find_solib_trampoline_target.
4494 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
4495 from FRAME instead of calling read_register.
4497 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4498 argument. Read registers from FRAME instead of using read_register.
4499 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4500 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4502 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4505 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4507 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
4508 registers from FRAME instead of using read_signed_register.
4510 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
4512 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
4513 instead of using read_register.
4514 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
4515 ppc64_standard_linkage_target.
4516 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
4517 Pass it to find_solib_trampoline_target. Read registers from FRAME
4518 instead of using read_register.
4520 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
4523 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4525 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
4527 * gdbarch.c, gdbarch.h: Regenerate.
4528 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
4530 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
4531 registers from FRAME instead of using read_register.
4532 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4533 to alpha_next_pc. Use get_frame_pc instead of read_pc.
4534 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
4537 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
4538 from FRAME instead of using read_register.
4539 (thumb_get_next_pc): Likewise.
4540 (arm_get_next_pc): Likewise.
4541 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4542 to arm_get_next_pc. Use get_frame_pc instead of read_register.
4543 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
4546 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
4547 from FRAME instead of using read_register.
4548 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4549 to find_step_target.
4551 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
4552 from FRAME instead of using read_register / read_signed_register.
4553 (extended_mips16_next_pc): Likewise.
4554 (mips16_next_pc): Likewise.
4555 (mips_next_pc): Likewise.
4556 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4557 to mips_next_pc. Use get_frame_pc instead of read_pc.
4558 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
4561 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
4562 of current frame. Read registers from FRAME.
4563 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
4564 branch_dest. Use get_frame_pc instead of read_pc.
4565 (rs6000_software_single_step): Likewise.
4566 (bl_to_blrl_insn_p): Do not call branch_dest.
4567 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
4570 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
4571 Read registers from FRAME instead of current regcache.
4572 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
4573 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
4574 * sparc-tdep.c (sparc_address_from_register): Remove.
4575 (sparc_analyze_control_transfer): Pass FRAME argument instead of
4576 GDBARCH. Pass FRAME to step_trap callback.
4577 (sparc_step_trap): Add FRAME argument.
4578 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4579 to sparc_analyze_control_transfer. Read registers from FRAME instead
4580 of calling sparc_address_from_register.
4581 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
4583 (sparc_address_from_register): Remove prototype.
4584 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
4585 (sparcnbsd_step_trap): Add FRAME argument.
4587 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
4588 by FRAME. Read registers from FRAME instead of REGCACHE.
4590 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4592 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
4593 instead of calling read_register.
4595 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
4596 calling write_register.
4598 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
4599 calling write_register.
4601 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
4602 instead of calling read_register.
4603 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
4604 instead of calling read_register and write_register.
4606 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
4607 instead of current_regcache.
4609 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
4610 of calling write_register.
4611 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
4612 parameter instead of current_regcache.
4614 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
4615 instead of calling read_register.
4616 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
4617 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
4618 (mips_n32n64_push_dummy_call): Likewise.
4619 (mips_o32_push_dummy_call): Likewise.
4620 (mips_o64_push_dummy_call): Likewise.
4622 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
4623 parameter instead of current_regcache.
4625 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
4626 Use it instead of read_register and write_register.
4627 (xtensa_register_read_masked): Likewise.
4628 (xtensa_pseudo_register_read): Update call.
4629 (xtensa_pseudo_register_write): Likewise.
4630 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
4631 instead of calling read_register.
4632 (xtensa_push_dummy_call): Update comment.
4634 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4636 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
4637 by frame_unwind_register_signed calls.
4638 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
4639 frame allocations when called with NULL NEXT_FRAME parameter.
4640 (read_next_frame_reg): Remove.
4642 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
4643 instead of reading the FPSCR register.
4644 (sh_frame_cache): Pass unwound FPSCR register value to
4645 sh_analyze_prologue.
4646 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
4648 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
4649 instead of reading the CTBP register.
4650 (v850_frame_cache): Pass unwound CTBP register value to
4651 v850_analyze_prologue.
4653 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4655 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
4656 * sh-tdep.c (sh_show_regs): Likewise.
4657 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
4658 (sh_generic_show_regs): Add FRAME parameter. Use register
4659 values from that frame instead of calling read_register.
4660 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
4661 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
4662 sh_dsp_show_regs): Likewise.
4663 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
4664 sh64_show_regs): Likewise.
4666 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4668 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
4669 current regcache instead of calling read_register.
4671 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4673 * mep-tdep.c (current_me_module): Read from current regcache
4674 instead of calling read_register.
4675 (current_options): Likewise.
4677 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4679 * cris-tdep.c (cris_stopped_data_address): Read register values
4680 from current frame instead of calling read_register.
4681 * frv-tdep.c (frv_stopped_data_address): Likewise.
4683 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4685 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
4686 instead of write_register (PC_REGNUM, ...).
4688 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4690 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
4691 explaining why the PC adjustment code is necessary.
4693 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
4695 * m68k-tdep.h (enum m68k_flavour): New.
4696 (struct gdbarch_tdep): New fields
4697 float_return, flavour and fpregs_present.
4698 * m68k-tdep.c (m68k_register_type): Use
4699 fpregs_present and conditionalize floating
4700 registers type on flavour.
4701 (m68k_register_names): New.
4702 (m68k_register_name): Use the above.
4703 (m68k_convert_register_p): Consult fpregs_present.
4704 (m68k_register_to_value, m68k_value_to_register):
4705 Use register_type to obtain the type of floating
4707 (m68k_svr4_extract_return_value): Check tdep->float_return.
4708 Use register_type to get the type of floating
4710 (m68k_svr4_store_return_value): Likewise.
4711 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
4712 (m68k_analyze_register_saves): Likewise.
4713 (m68k_gdbarch_init): Extract infromation
4714 from XML description, if present. Guess coldfire by
4715 looking at the file, if present. Conditionalize
4716 setting of long double format. Set decr_pc_after_break
4717 to 2 on coldfire and fido. Enable XML-driven
4718 register description.
4719 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
4720 size of tdep->fpreg_type, as opposed to hardcoded value.
4721 * Makefile.in (m68k-tdep.o): Update dependencies.
4723 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4725 * NEWS: Mention "info spu" commands and qXfer:spu:read and
4726 qXfer:spu:write remote packet types.
4728 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4730 * xml-tdesc.c (tdesc_start_target): New.
4731 (target_attributes): New.
4732 (tdesc_elements): Use it.
4733 * features/gdb-target.dtd: Add #FIXED version attribute for
4736 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
4738 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
4740 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
4742 * fork-child.c (fork_inferior): Update comment.
4744 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4746 * features/Makefile: Generate regformats for mips-linux and
4748 * features/sort-regs.xsl: Correct typo.
4749 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
4750 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
4753 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4755 * config/mips/linux.mh (TDEP_XML): New.
4756 * features/mips-linux.xml, features/mips64-linux.xml: New files.
4757 * mips-linux-nat.c (mips_linux_register_addr): Handle
4758 MIPS_RESTART_REGNUM.
4759 (mips64_linux_register_addr): Likewise.
4760 (super_xfer_partial, mips_linux_xfer_partial): New.
4761 (_initialize_mips_linux_nat): Add them to the target_ops.
4762 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
4763 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
4764 (mips_linux_o32_sigframe_init)
4765 (mips_linux_n32n64_sigframe_init): Likewise.
4766 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
4767 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
4768 "org.gnu.gdb.mips.linux" feature.
4769 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
4770 (mips_linux_restart_reg_p): New prototype.
4771 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
4772 initialization routine.
4773 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
4775 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4777 * Makefile.in (mips-tdep.o): Update.
4778 * mips-tdep.c (struct register_alias, mips_o32_aliases)
4779 (mips_n32_n64_aliases, mips_register_aliases): New.
4780 (mips_register_name): Call tdesc_register_name.
4781 (mips_tdesc_register_reggroup_p): New.
4782 (mips_pseudo_register_type, value_of_mips_user_reg): New.
4783 (mips_gdbarch_init): Add target-described register support.
4784 Register aliases for register names.
4785 * target-descriptions.c (tdesc_register_name): Make global.
4786 (tdesc_register_in_reggroup_p): New function, broken out from
4787 tdesc_register_reggroup_p.
4788 (tdesc_register_reggroup_p): Use it.
4789 * target-descriptions.h (tdesc_register_name)
4790 (tdesc_register_in_reggroup_p): New prototypes.
4791 * NEWS: Correct formatting. Mention MIPS register support.
4792 * features/mips-cp0.xml, features/mips-fpu.xml,
4793 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
4794 features/mips64-cpu.xml: New files.
4796 2007-06-13 Markus Deuling <deuling@de.ibm.com>
4798 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
4799 * valops.c (value_cast): Likewise.
4800 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
4801 * ui-out.c (ui_out_field_core_addr): Likewise.
4802 * tracepoint.c (tracepoints_info): Likewise.
4803 * symtab.c (print_msymbol_info): Likewise.
4804 * solib-irix.c (irix_current_sos)
4805 (irix_open_symbol_file_object): Likewise.
4806 * remote.c (build_remote_gdbarch_data): Likewise.
4807 * prologue-value.c (make_pv_area): Likewise.
4808 * procfs.c (info_mappings_callback): Likewise.
4809 * printcmd.c (print_scalar_formatted)
4810 (deprecated_print_address_numeric): Likewise.
4811 * memattr.c (mem_info_command): Likewise.
4812 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
4813 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
4814 * exec.c (print_section_info): Likewise.
4815 * dwarf2read.c (read_subrange_type): Likewise.
4816 * dwarf2loc.c (find_location_expression): Likewise.
4817 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
4818 (signed_address_type, execute_stack_op): Likewise.
4819 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
4820 * gdbarch.c, gdbarch.h: Regenerate.
4822 2007-06-13 Markus Deuling <deuling@de.ibm.com>
4824 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
4825 * arch-utils.c (show_architecture): Likewise.
4826 * remote-mips.c (mips_open): Likewise
4827 * nto-tdep.c (nto_find_and_open_solib)
4828 (nto_init_solib_absolute_prefix): Likewise.
4829 * nto-procfs (procfs_open): Likewise.
4830 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
4831 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
4832 * gdbarch.c, gdbarch.h: Regenerate.
4834 2007-06-13 Markus Deuling <deuling@de.ibm.com>
4836 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
4837 * gdbtypes.c (build_flt): Likewise.
4838 * gdbarch.c, gdbarch.h: Regenerate.
4840 2007-06-13 Markus Deuling <deuling@de.ibm.com>
4842 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
4843 gdbarch_breakpoint_from_pc.
4844 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
4845 * remote.c (remote_insert_breakpoint)
4846 (remote_insert_hw_breakpoint): Likewise.
4847 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
4848 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
4849 * breakpoint.h (bp_target_info): Likewise (comment).
4850 * breakpoint.c (read_memory_nobpt): Likewise.
4851 * mem-break.c (default_memory_insert_breakpoint): Likewise.
4852 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
4853 * gdbarch.c, gdbarch.h: Regenerate.
4855 2007-06-13 Markus Deuling <deuling@de.ibm.com>
4857 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
4858 * solib-svr4.c (svr4_truncate_ptr): Likewise.
4859 * solib-pa64.c (read_dynamic_info): Likewise.
4860 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
4861 * solib.c (info_sharedlibrary_command): Likewise.
4862 * s390-nat.c (SUBOFF): Likewise.
4863 * p-valprint.c (pascal_val_print): Likewise.
4864 * procfs.c (info_proc_mappings): Likewise.
4865 * printcmd.c (decode_format): Likewise.
4866 * nto-tdep.c (nto_truncate_ptr): Likewise.
4867 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
4868 (mips64_linux_get_longjmp_target): Likewise.
4869 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4870 * jv-valprint.c (java_value_print): Likewise.
4871 * jv-lang.c (get_java_object_header_size): Likewise.
4872 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
4873 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4874 (hppa_hpux_unwind_adjust_stub): Likewise.
4875 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4876 * gdbtypes.c (make_pointer_type, make_reference_type)
4877 (smash_to_memberptr_type): Likewise.
4878 * gdbarch.c, gdbarch.h: Regenerate.
4880 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4882 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
4883 (print_gp_register_row): Stop before printing a register bigger
4884 than the ABI register size.
4885 (mips_print_registers_info): Update call to mips_print_register.
4887 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4889 * expression.h (enum exp_opcode): Document a register name for
4891 * parse.c (write_dollar_variable): Write the register name for
4893 (operator_length_standard): Expect the register name following
4895 * ada-lang.c (resolve_subexp): Likewise.
4896 * ax-gdb.c (gen_expr): Likewise.
4897 * eval.c (evaluate_subexp_standard): Likewise.
4898 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4900 * tracepoint.c (encode_actions): Likewise.
4902 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4904 * utils.c (set_screen_size): Use INT_MAX for default columns.
4906 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
4908 * remote.c (remote_protocol_features): Add qXfer:spu:read and
4909 qXfer:spu:write packet types.
4911 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4913 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
4914 * gdbarch.c, gdbarch.h: Regenerate.
4916 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4918 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
4919 gdbarch_stab_reg_to_regnum.
4920 * stabsread.c (define_symbol): Likewise.
4921 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
4922 gdbarch_ecoff_reg_to_regnum.
4923 * mdebugread.c (parse_symbol): Likewise.
4924 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
4925 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
4926 gdbarch_dwarf_reg_to_regnum.
4927 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
4928 * coffread.c (process_coff_symbol): Likewise.
4929 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
4930 gdbarch_dwarf2_reg_to_regnum.
4931 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
4932 (locexpr_describe_location): Likewise.
4933 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
4934 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
4935 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
4936 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
4937 * gdbarch.c, gdbarch.h: Regenerate.
4939 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4941 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
4942 gdbarch_smash_text_address.
4943 * somread.c (som_symtab_read): Likewise.
4944 * elfread.c (record_minimal_symbol): Likewise.
4945 * dbxread.c (process_one_symbol): Likewise.
4946 * coffread.c (coff_symtab_read): Likewise.
4947 * gdbarch.c, gdbarch.h: Regenerate.
4949 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4951 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
4952 * findvar.c (value_from_register): Likewise.
4953 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
4954 * valops.c (value_assign): Likewise.
4955 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
4956 gdbarch_convert_register_p.
4957 * findvar.c (value_from_register): Likewise.
4958 * valops.c (value_assign): Likewise.
4959 * gdbarch.c, gdbarch.h: Regenerate.
4961 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4963 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
4964 gdbarch_register_sim_regno.
4965 * sim-regno.h (sim_regno): Likewise (comment).
4966 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
4967 * gdbarch.c, gdbarch.h: Regenerate.
4969 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4971 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
4972 gdbarch_virtual_frame_pointer.
4973 * tracepoint.c (encode_actions): Likewise.
4974 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
4975 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
4976 * gdbarch.c, gdbarch.h: Regenerate.
4978 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4980 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
4981 * p-lang.c (pascal_create_fundamental_type): Likewise.
4982 * objc-lang.c (objc_create_fundamental_type): Likewise.
4983 * mdebugread.c (_initialize_mdebugread): Likewise.
4984 * m2-lang.c (m2_create_fundamental_type)
4985 (_initialize_m2_language): Likewise.
4986 * gdbtypes.c (build_gdbtypes): Likewise.
4987 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4988 * doublest.c (floatformat_from_length): Likewise.
4989 * c-lang.c (c_create_fundamental_type): Likewise.
4990 * ada-lang.c (ada_create_fundamental_type)
4991 (ada_language_arch_info): Likewise.
4992 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
4993 * value.c (unpack_double): Likewise (comment).
4994 * gdbtypes.c (build_gdbtypes): Likewise.
4995 * doublest.c (floatformat_from_length): Likewise.
4996 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
4997 * valarith.c (value_binop): Likewise.
4998 * p-lang.c (pascal_create_fundamental_type): Likewise.
4999 * objc-lang.c (objc_create_fundamental_type): Likewise.
5000 * mdebugread.c (_initialize_mdebugread): Likewise.
5001 * m2-lang.c (m2_create_fundamental_type): Likewise.
5002 * gdbtypes.c (build_gdbtypes): Likewise.
5003 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5004 * doublest.c (floatformat_from_length): Likewise.
5005 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5006 * c-lang.c (c_create_fundamental_type): Likewise.
5007 * ada-lex.l (processReal): Likewise.
5008 * ada-lang.c (ada_create_fundamental_type)
5009 (ada_language_arch_info): Likewise.
5010 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5011 * value.c (unpack_double): Likewise (comment).
5012 * gdbtypes.c (build_gdbtypes): Likewise.
5013 * doublest.c (floatformat_from_length): Likewise.
5014 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5015 gdbarch_long_double_bit.
5016 * p-lang.c (pascal_create_fundamental_type): Likewise.
5017 * objc-lang.c (objc_create_fundamental_type): Likewise.
5018 * m2-lang.c (m2_create_fundamental_type): Likewise.
5019 * gdbtypes.c (build_gdbtypes): Likewise.
5020 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5021 * doublest.c (floatformat_from_length): Likewise.
5022 * c-lang.c (c_create_fundamental_type): Likewise.
5023 * ada-lex.l (processReal): Likewise.
5024 * ada-lang.c (ada_create_fundamental_type)
5025 (ada_language_arch_info): Likewise.
5026 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5027 gdbarch_long_double_format.
5028 * gdbtypes.c (build_gdbtypes): Likewise.
5029 * doublest.c (floatformat_from_length): Likewise.
5030 * gdbarch.c, gdbarch.h: Regenerate.
5032 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5034 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5035 * ada-lang.c (ada_create_fundamental_type)
5036 (ada_language_arch_info): Likewise.
5037 * c-lang.c (c_create_fundamental_type): Likewise.
5038 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5039 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5040 * m2-lang.c (m2_create_fundamental_type): Likewise.
5041 * objc-lang.c (objc_create_fundamental_type): Likewise.
5042 * p-lang.c (pascal_create_fundamental_type): Likewise.
5043 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5044 * c-exp.y (parse_number): Likewise.
5045 * objc-exp.y (parse_number): Likewise.
5046 * ada-lex.l (processInt): Likewise.
5047 * f-exp.y (parse_number): Likewise.
5048 * p-exp.y (parse_number): Likewise.
5049 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5050 (gdbtypes_post_init, build_gdbtypes): Likewise.
5051 * p-lang.c (pascal_create_fundamental_type): Likewise.
5052 * parse.c (build_parse): Likewise.
5053 * xcoffread.c (_initialize_xcoffread): Likewise.
5054 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5055 (read_range_type): Likewise.
5056 * objc-lang.c (objc_create_fundamental_type): Likewise.
5057 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5058 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5059 (m2_create_fundamental_type): Likewise.
5060 * c-lang.c (c_create_fundamental_type): Likewise.
5061 * coffread.c (coff_read_enum_type): Likewise.
5062 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5063 * dwarf2read.c (new_symbol): Likewise.
5064 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5065 * c-exp.y (parse_number): Likewise.
5066 * objc-exp.y (parse_number): Likewise.
5067 * ada-lex.l (processInt): Likewise.
5068 * f-exp.y (parse_number): Likewise.
5069 * p-exp.y (parse_number): Likewise.
5070 * valarith.c (value_binop): Likewise.
5071 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5072 * ada-lang.c (ada_create_fundamental_type)
5073 (ada_language_arch_info): Likewise.
5074 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5075 * symfile.c (TARGET_LONG_BYTES): Likewise.
5076 * p-lang.c (pascal_create_fundamental_type): Likewise.
5077 * objc-lang.c (objc_create_fundamental_type): Likewise.
5078 * m2-lang.c (m2_create_fundamental_type): Likewise.
5079 * f-lang.c (f_create_fundamental_type): Likewise.
5080 * c-lang.c (c_create_fundamental_type): Likewise.
5081 * coffread.c (decode_base_type): Likewise.
5082 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5083 * c-exp.y (parse_number): Likewise.
5084 * objc-exp.y (parse_number): Likewise.
5085 * p-exp.y (parse_number): Likewise.
5086 * ada-lang.c (ada_create_fundamental_type)
5087 (ada_language_arch_info): Likewise.
5088 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5089 * stabsread.c (read_range_type): Likewise.
5090 * p-lang.c (pascal_create_fundamental_type): Likewise.
5091 * objc-lang.c (objc_create_fundamental_type): Likewise.
5092 * m2-lang.c (m2_create_fundamental_type): Likewise.
5093 * f-lang.c (f_create_fundamental_type): Likewise.
5094 * c-lang.c (c_create_fundamental_type): Likewise.
5095 * gdbarch.c, gdbarch.h: Regenerate.
5097 2007-06-12 Andreas Schwab <schwab@suse.de>
5099 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5100 (struct frame_unwind): Add dealloc_cache.
5101 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5103 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5104 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5105 (libunwind_frame_unwind): Set dealloc_cache.
5106 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5108 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5109 Markus Deuling <deuling@de.ibm.com>
5111 * remote.c (remote_write_qxfer): New function.
5112 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5113 (remote_read_qxfer): Do not cache empty objects.
5114 (_initialize_remote): Add PACKET_qXfer_spu_read and
5115 PACKET_qXfer_spu_write.
5117 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5119 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5120 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5122 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5123 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5124 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5125 * spu-tdep.c (infospucmdlist): New variable.
5126 (spu_register_name): Handle additional pseudo registers.
5127 (spu_register_type): Likewise.
5128 (spu_pseudo_register_read): Likewise.
5129 (spu_pseudo_register_write): Likewise.
5130 (spu_pseudo_register_read_spu): New function.
5131 (spu_pseudo_register_write_spu): Likewise.
5132 (info_spu_event_command): New function.
5133 (info_spu_signal_command): Likewise.
5134 (info_spu_mailbox_list): Likewise.
5135 (info_spu_mailbox_command): Likewise.
5136 (spu_mfc_get_bitfield): Likewise.
5137 (info_spu_dma_cmdlist): Likewise.
5138 (info_spu_dma_command): Likewise.
5139 (info_spu_proxydma_command): Likewise.
5140 (info_spu_command): Likewise.
5141 (_initialize_spu_tdep): Install "info spu" commands.
5143 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5145 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5146 accessing non-seekable spufs files.
5148 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5150 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5151 gdbarch_skip_trampoline_code.
5152 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5153 * objc-lang.c (objc_skip_trampoline)
5154 (objc_submethod_helper_data): Likewise.
5155 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5156 * infrun.c (handle_inferior_event): Likewise.
5157 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5158 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5159 gdbarch_in_solib_return_trampoline.
5160 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5161 * infrun.c (handle_inferior_event): Likewise.
5162 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5163 * gdbarch.c, gdbarch.h: Regenerate.
5165 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5167 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5168 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5169 * linespec.c (minsym_found): Likewise.
5170 * infrun.c (step_into_function): Likewise.
5171 * gdbarch.c, gdbarch.h: Regenerate.
5173 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5175 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5176 * valops.c (value_allocate_space_in_inferior): Likewise.
5177 * gdbarch.c, gdbarch.h: Regenerate.
5179 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5181 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5182 gdbarch_memory_insert_breakpoint.
5183 * mem-break.c (memory_insert_breakpoint): Likewise.
5184 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5185 gdbarch_memory_remove_breakpoint.
5186 * mem-break.c (memory_remove_breakpoint): Likewise.
5187 * gdbarch.c, gdbarch.h: Regenerate.
5189 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5191 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5192 gdbarch_fetch_tls_load_module_address.
5193 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5194 gdbarch_fetch_tls_load_module_address_p.
5195 * gdbarch.c, gdbarch.h: Regenerate.
5197 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5199 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5200 gdbarch_decr_pc_after_break.
5201 * tracepoint.c (trace_dump_command): Likewise.
5202 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5203 * linux-thread-db.c (check_event): Likewise.
5204 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5205 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5206 * frame.h: Likewise (comment).
5207 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5208 * aix-thread.c (aix_thread_wait): Likewise.
5209 * gdbarch.c, gdbarch.h: Regenerate.
5211 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5213 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5214 gdbarch_address_class_type_flags.
5215 * dwarf2read.c (read_tag_pointer_type): Likewise.
5216 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5217 gdbarch_address_class_type_flags_p.
5218 * dwarf2read.c (read_tag_pointer_type): Likewise.
5219 * gdbarch.c, gdbarch.h: Regenerate.
5221 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5223 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5224 * value.c (value_as_address): Likewise (comment).
5225 * remote-mips.c (common_breakpoint): Likewise.
5226 * regcache.c (read_pc_pid): Likewise.
5227 * printcmd.c (do_one_display): Likewise.
5228 * monitor.c (monitor_write_memory, monitor_read_memory)
5229 (monitor_insert_breakpoint): Likewise.
5230 * mips-tdep.c (heuristic_proc_start): Likewise.
5231 * infrun.c (insert_step_resume_breakpoint_at_frame)
5232 (insert_step_resume_breakpoint_at_caller): Likewise.
5233 * buildsym.c (record_line): Likewise.
5234 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5235 (arm_get_next_pc): Likewise.
5236 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5237 (store_regs): Likewise.
5238 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5239 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5240 * gdbarch.c, gdbarch.h: Regenerate.
5242 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5244 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5245 * tracepoint.c (scope_info): Likewise.
5246 * target.c (debug_print_register): Likewise.
5247 * stack.c (frame_info): Likewise.
5248 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5249 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5250 (sh64_media_print_registers_info)
5251 (sh64_compact_print_registers_info): Likewise.
5252 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5253 * remote-sim.c (gdbsim_fetch_register): Likewise.
5254 * remote.c (packet_reg): Likewise (comment).
5255 * reggroups.c (default_register_reggroup_p): Likewise.
5256 * regcache.c (regcache_dump): Likewise.
5257 * printcmd.c (address_info): Likewise.
5258 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5259 * mt-dep.c (mt_registers_info): Likewise.
5260 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5261 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5262 (mips_read_fp_register_double, mips_print_fp_register)
5263 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5264 (mips_register_sim_regno): Likewise.
5265 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5266 * inf-ptrace.c (inf_ptrace_fetch_register)
5267 (inf_ptrace_store_register): Likewise.
5268 * infcmd.c (default_print_registers_info): Likewise.
5269 * ia64-linux-nat.c (ia64_linux_fetch_register)
5270 (ia64_linux_store_register): Likewise.
5271 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5272 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5273 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5274 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5275 (hppa_hpux_store_register): Likewise.
5276 * findvar.c (locate_var_value): Likewise.
5277 * dwarf2loc.c (locexpr_describe_location): Likewise.
5278 * dwarf2-frame.c (execute_cfa_program): Likewise.
5279 * arm-tdep.c (arm_push_dummy_call): Likewise.
5280 * arch-utils.c (legacy_register_sim_regno): Likewise.
5281 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5282 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5283 * mi/mi-main.c (mi_cmd_data_list_register_names)
5284 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5285 (mi_cmd_data_write_register_values): Likewise.
5286 * gdbarch.c, gdbarch.h: Regenerate.
5288 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5290 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5292 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5294 * remote.c (process_g_packet): Don't check size.
5295 * gdbarch.sh: Remove register_bytes_ok.
5296 * gdbarch.c: Regenerated.
5297 * gdbarch.h: Regenerated.
5298 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5299 (m68k_register_bytes_ok): Remove.
5300 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5302 2007-06-06 Andreas Schwab <schwab@suse.de>
5304 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5305 (destroy_addr_space_name): Define.
5306 (libunwind_load): Get address of destroy_addr_space function.
5307 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5308 returning unsuccessfully.
5309 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5311 (libunwind_sigtramp_frame_sniffer): Likewise.
5312 (libunwind_get_reg_special): Likewise.
5314 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5316 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5317 gdbarch_fetch_pointer_argument.
5318 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5319 * gdbarch.c, gdbarch.h: Regenerate.
5321 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5323 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5324 gdbarch_have_nonsteppable_watchpoint.
5325 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5326 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5327 gdbarch_cannot_step_breakpoint.
5328 * infrun.c (resume): Likewise.
5329 * gdbarch.c, gdbarch.h: Regenerate.
5331 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5333 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5334 * stack.c (print_frame_args): Likewise.
5335 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5336 * stack.c (print_args_stub, frame_info): Likewise.
5337 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5338 * stack.c (print_args_stub, frame_info): Likewise.
5339 * gdbarch.c, gdbarch.h: Regenerate.
5341 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5343 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5344 gdbarch_coff_make_msymbol_special.
5345 * coffread.c (coff_symtab_read): Likewise.
5346 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5347 gdbarch_elf_make_msymbol_special.
5348 * elfread.c (elf_symtab_read): Likewise.
5349 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5350 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5351 * gdbarch.c, gdbarch.h: Regenerate.
5353 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5355 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5356 gdbarch_frame_red_zone_size.
5357 * gdbarch.c, gdbarch.h: Regenerate.
5359 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5361 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5362 * infcall.c (call_function_by_hand): Likewise.
5363 * gcore.c (derive_stack_segment): Likewise.
5364 * frame.c (frame_id_inner): Likewise.
5365 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5366 * ada-lang.c (ensure_lval): Likewise.
5367 * gdbarch.c, gdbarch.h: Regenerate.
5369 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5371 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5372 gdbarch_address_to_pointer.
5373 * findvar.c (store_typed_address): Likewise.
5374 * gdbtypes.c (make_pointer_type): Likewise (comment).
5375 * procfs.c (procfs_address_to_host_pointer): Likewise.
5376 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5377 (value_of_builtin_frame_fp_reg): Likewise.
5378 (value_of_builtin_frame_pc_reg): Likewise.
5379 * utils.c (paddress): Likewise (comment).
5380 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5381 gdbarch_pointer_to_address.
5382 * findvar.c (extract_typed_address): Likewise.
5383 * gdbtypes.c (make_pointer_type): Likewise (comment).
5384 * valops.c (value_cast): Likewise (comment).
5385 * gdbarch.c, gdbarch.h: Regenerate.
5387 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5389 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5390 * infrun.c (handle_inferior_event): Likewise.
5391 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5392 gdbarch_get_longjmp_target_p.
5393 * breakpoint.c (breakpoint_re_set): Likewise.
5394 * infrun.c (handle_inferior_event): Likewise.
5395 * gdbarch.c, gdbarch.h: Regenerate.
5397 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5399 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5400 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5401 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5402 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5403 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5404 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5405 find_stub_with_shl_get, cover_find_stub_with_shl_get,
5406 initialize_hp_cxx_exception_support, child_enable_exception_callback,
5407 current_ex_event, child_get_current_exception_event): Remove.
5408 (hppa_hpux_inferior_created): Remove.
5409 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5411 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5412 (deprecated_exception_support_initialized): Remove.
5413 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5414 (deprecated_exception_support_initialized): Remove.
5415 (breakpoint_init_inferior): Remove handling of non-zero
5416 deprecated_exception_catchpoints_are_fragile.
5418 * symtab.h (deprecated_hp_som_som_object_present): Remove.
5419 * symtab.c (deprecated_hp_som_som_object_present): Remove.
5420 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5421 deprecated_hp_som_som_object_present.
5422 * eval.c (evaluate_subexp_standard): Likewise.
5423 * valops.c (value_cast): Likewise.
5425 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5426 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5427 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5429 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5431 * objfiles.h (ImportEntry, ExportEntry): Remove types.
5432 (struct objfile): Remove import_list, import_list_size,
5433 export_list, export_list_size members.
5434 (is_in_import_list): Remove prototype.
5435 * objfiles.c (is_in_import_list): Remove.
5436 * somread.c (init_import_symbols, init_export_symbols): Remove.
5437 (som_symfile_read): Do not call init_import_symbols. Do not
5438 set objfile->export_list and objfile->export_list_size.
5440 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5442 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5443 Use the original objfile if necessary.
5445 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
5447 * defs.h (ldirname): New prototype.
5448 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5450 * utils.c (ldirname): New function.
5451 * xml-tdesc.c (file_read_description_xml): Use ldirname.
5453 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5455 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5457 2007-06-01 Joel Brobecker <brobecker@adacore.com>
5459 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5461 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5463 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5465 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5467 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5468 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5469 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5470 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5471 (ppc_linux_in_sigtramp, insn_is_sigreturn,
5472 ppc_linux_at_sigtramp_return_path): Remove.
5474 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5476 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5477 (xtensa_register_write_masked, xtensa_register_read_masked)
5478 (xtensa_extract_return_value, xtensa_store_return_value
5479 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
5480 TARGET_BYTE_ORDER by gdbarch_byte_order.
5481 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5482 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5483 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5484 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5485 (sh64_push_dummy_call, sh64_extract_return_value)
5486 (sh64_store_return_value, sh64_register_convert_to_virtual)
5487 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5488 (sh64_pseudo_register_write, sh64_do_fp_register)
5489 (sh64_frame_prev_register): Likewise.
5490 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5491 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5492 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5493 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5494 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5495 * ppc-linux-nat.c (store_register): Likewise.
5496 * nto-tdep.c (nto_find_and_open_solib)
5497 (nto_init_solib_absolute_prefix): Likewise.
5498 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5499 (mips_convert_register_p, mips_eabi_push_dummy_call)
5500 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5501 (mips_o32_push_dummy_call, mips_o32_return_value)
5502 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5503 (mips_read_fp_register_single, mips_read_fp_register_double)
5504 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5505 (mips_breakpoint_from_pc): Likewise.
5506 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5507 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
5508 (mips_linux_o32_sigframe_init): Likewise.
5509 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5510 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
5511 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
5512 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
5513 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
5514 * coffread.c (process_coff_symbol): Likewise.
5515 * arm-tdep.c (convert_from_extended, convert_to_extended)
5516 (gdb_print_insn_arm): Likewise.
5518 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5520 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
5521 * i386-tdep.c (i386_dbx_reg_to_regnum)
5522 (i386_svr4_reg_to_regnum): Likewise.
5523 * inf-ptrace.c (inf_ptrace_fetch_registers)
5524 (inf_ptrace_store_registers): Likewise.
5525 * corelow.c (get_core_registers): Likewise.
5526 * i386-linux-nat.c (supply_gregset, fill_gregset)
5527 (i386_linux_fetch_inferior_registers)
5528 (i386_linux_store_inferior_registers): Likewise.
5529 * remote.c (init_remote_state,packet_reg_from_regnum)
5530 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
5531 (remote_prepare_to_store,store_registers_using_G)
5532 (remote_store_registers,remote_arch_state): Likewise.
5533 * tracepoint.c (encode_actions): Likewise.
5534 * mi/mi-main.c (mi_cmd_data_list_register_names)
5535 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5536 (mi_cmd_data_write_register_values): Likewise.
5537 * tui/tui-regs.c (tui_show_register_group)
5538 (tui_show_register_group): Likewise.
5539 * xtensa-tdep.h (FP_ALIAS): Likewise.
5540 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
5541 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
5542 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
5543 * win32-nat.c (do_win32_fetch_inferior_registers)
5544 (do_win32_store_inferior_registers,fetch_elf_core_registers
5545 * user-regs.h: Likewise (comment).
5546 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5547 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5548 * target-descriptions.h: Likewise (comment).
5549 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
5550 * target.c (debug_print_register): Likewise.
5551 * stack.c (frame_info): Likewise.
5552 * stabsread.c (define_symbol): Likewise.
5553 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
5554 (sh64_media_print_registers_info)
5555 (sh64_compact_print_registers_info): Likewise.
5556 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5557 * rs6000-nat.c (fetch_register,store_register): Likewise.
5558 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
5559 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
5560 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
5561 * remote-m32r-sdi.c (m32r_fetch_registers)
5562 (m32r_store_registers): Likewise.
5563 * reggroups.c (default_register_reggroup_p): Likewise.
5564 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
5565 (regcache_restore,regcache_dump): Likewise.
5566 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
5567 * mips-tdep.c (mips_xfer_register,mips_register_name)
5568 (mips_register_reggroup_p,mips_pseudo_register_read)
5569 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
5570 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
5571 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
5572 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
5573 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
5574 (print_gp_register_row,mips_print_registers_info)
5575 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5576 (mips_register_sim_regno): Likewise.
5577 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
5578 (mips_linux_n32n64_sigframe_init): Likewise.
5579 * mips-linux-nat.c (mips_linux_register_addr)
5580 (mips64_linux_register_addr): Likewise.
5581 * findvar.c (value_of_register): Likewise.
5582 * infcmd.c (default_print_registers_info,registers_info)
5583 (print_vector_info,print_float_info): Likewise.
5584 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
5585 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5586 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5587 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
5588 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5589 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
5590 (ia64_cannot_store_register,ia64_linux_fetch_registers)
5591 (ia64_linux_store_registers): Likewise.
5592 * hpux-thread.c (hpux_thread_fetch_registers)
5593 (hpux_thread_store_registers): Likewise.
5594 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
5595 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
5596 (h8300_register_type): Likewise.
5597 * dwarf2-frame.c (dwarf2_frame_cache)
5598 (dwarf2_frame_state_alloc_regs): Likewise.
5599 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
5600 (cris_cannot_store_register,crisv32_cannot_fetch_register)
5601 (crisv32_cannot_store_register,cris_register_name): Likewise.
5602 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
5603 * arch-utils.c (legacy_register_sim_regno)
5604 (legacy_virtual_frame_pointer): Likewise.
5605 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
5606 * arm-tdep.h: Likewise (comment).
5607 * frv-tdep.c (frv_register_sim_regno): Likewise.
5608 * m68klinux-nat.c (old_fetch_inferior_registers)
5609 (old_store_inferior_registers): Likewise.
5610 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5611 * irix5-nat.c (fetch_core_registers): Likewise.
5612 * hppa-tdep.c (hppa_frame_cache): Likewise.
5613 * hppa-linux-nat.c (hppa_linux_register_addr)
5614 (hppa_linux_fetch_inferior_registers)
5615 (hppa_linux_store_inferior_registers): Likewise.
5616 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
5617 (hppa_hpux_store_inferior_registers): Likewise.
5618 * amd64-nat.c (amd64_native_gregset_reg_offset)
5619 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
5620 * dbug-rom.c (dbug_regname): Likewise.
5621 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
5622 (HARD_PAGE_REGNUM (comment)): Likewise.
5623 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
5624 * i386-tdep.c (i386_dbx_reg_to_regnum)
5625 (i386_svr4_reg_to_regnum): Likewise.
5626 * mi/mi-main.c (mi_cmd_data_list_register_names)
5627 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5628 (mi_cmd_data_write_register_values): Likewise.
5629 * gdbarch.c, gdbarch.h: Regenerate.
5630 * tui/tui-regs.c (tui_show_register_group): Likewise.
5631 * xtensa-tdep.h (FP_ALIAS): Likewise.
5632 * user-regs.h: Likewise (comment).
5633 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5634 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5635 * target-descriptions.h: Likewise (comment).
5636 * target.c (debug_print_register): Likewise.
5637 * stack.c (frame_info): Likewise.
5638 * stabsread.c (define_symbol): Likewise.
5639 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
5640 (sh64_compact_print_registers_info): Likewise.
5641 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5642 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
5643 (regcache_restore,regcache_dump): Likewise.
5644 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
5645 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5646 (mips_stab_reg_to_regnum): Likewise.
5647 * findvar.c (value_of_register): Likewise.
5648 * infcmd.c (default_print_registers_info,registers_info)
5649 (print_vector_info,print_float_info): Likewise.
5650 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5651 * h8300-tdep.c (h8300_register_type): Likewise.
5652 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5653 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
5654 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
5655 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
5656 * parse.c: Remove comment.
5657 * gdbarch.c, gdbarch.h: Regenerate
5659 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5661 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
5662 gdbarch_cannot_fetch_register.
5663 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5664 * hppa-linux-nat.c (fetch_register): Likewise.
5665 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5666 * m68klinux-nat.c (fetch_register): Likewise.
5667 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
5669 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
5670 gdbarch_cannot_store_register.
5671 * hppa-linux-nat.c (store_register): Likewise.
5672 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
5673 * regcache.c (regcache_raw_write): Likewise.
5674 * m68klinux-nat.c (store_register): Likewise.
5675 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
5676 * gdbarch.c, gdbarch.h: Regenerate.
5678 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5680 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
5681 * gdbarch.c, gdbarch.h: Regenerate.
5683 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5685 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
5686 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5687 * gdbarch.c, gdbarch.h: Regenerate.
5689 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5691 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
5692 * ax-gdb.c (gen_bitfield_ref): Likewise.
5693 * mi/mi-main.c (get_register): Likewise.
5694 * findvar.c (default_value_from_register, extract_signed_integer)
5695 (extract_unsigned_integer, extract_long_unsigned_integer)
5696 (store_signed_integer, store_unsigned_integer): Likewise.
5697 * regcache.c (regcache_dump): Likewise.
5698 * value.c (lookup_internalvar, value_of_internalvar)
5699 (set_internalvar): Likewise.
5701 * valprint.c (print_binary_chars, print_octal_chars)
5702 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
5703 * infcmd.c (default_print_registers_info): Likewise.
5704 * arch-utils.c (selected_byte_order, show_endian): Likewise.
5705 * stabsread.c (define_symbol): Likewise.
5706 * doublest.c (floatformat_from_length, floatformat_from_type)
5707 (extract_typed_floating, store_typed_floating): Likewise.
5708 * gdbarch.c, gdbarch.h: Regenerate.
5710 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5712 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
5713 gdbarch_call_dummy_location.
5714 * infcall.c (call_function_by_hand): Likewise.
5715 * inferior.h: Change comment.
5716 * arch-utils.c: Change comment.
5717 * gdbarch.c, gdbarch.h: Regenerate.
5719 2007-05-28 Joel Brobecker <brobecker@adacore.com>
5721 * solib-aix5.c: Delete.
5722 * Makefile.in (solib-aix5.o): Delete rule.
5724 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
5726 * breakpoint.h (enum bpstat_what_main_action): Remove
5727 BPSTAT_WHAT_THROUGH_SIGTRAMP.
5728 * infrun.c (process_event_stop_test): Do not check for it.
5730 2007-05-22 Chris Dearman <chris@mips.com>
5731 Maciej W. Rozycki <macro@mips.com>
5733 * ser-unix.c (show_serial_hwflow): New function.
5734 (hardwire_raw): Add hardware flow control support.
5735 (_initialize_ser_hardwire): Add "set/show remoteflow".
5736 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
5737 * NEWS: Document the new command.
5739 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5741 * config/i386/tm-linux.h (sys_quotactl): Do not define.
5742 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
5743 define for i[[3456]]86-*-linux* native configurations.
5744 * config.in, configure: Regenerate.
5746 2007-05-19 Joel Brobecker <brobecker@adacore.com>
5748 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
5749 a core file. Add comment in the function description.
5751 2007-05-18 Caroline Tice <ctice@apple.com>
5753 * c-valprint.c (c_value_print): If the initialized field of the
5754 value struct is 0, print out "[uninitialized]" before the value.
5755 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
5756 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
5757 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
5758 ctx->initialized appropriately. Verify no location op follows
5760 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
5761 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
5762 set_value_initialized.
5763 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
5764 (decode_locdesc): Add case for DW_OP_GNU_uninit.
5765 * value.c (struct value): New field, initialized.
5766 (allocate_value): Initialize new field.
5767 (set_value_initialized): New function.
5768 (value_initialized): New function.
5769 * value.h (value_initialized): New extern declaration.
5770 (set_value_initialized): Likewise.
5772 2007-05-18 Caroline Tice <ctice@apple.com>
5774 * MAINTAINERS (Write After Approval): Add self.
5776 2007-05-17 Joel Brobecker <brobecker@adacore.com>
5778 * gdbtypes.c (make_reference_type): Preserve the type chain
5779 and set the length of all the variants of the pointer type.
5781 2007-05-17 Joel Brobecker <brobecker@adacore.com>
5783 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
5784 and set the length of all the variants of the pointer type.
5786 2007-05-17 Maciej W. Rozycki <macro@mips.com>
5788 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
5790 (mips_o64_push_dummy_call): Reformat a comment.
5792 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
5794 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
5795 (score_prologue_frame_base_address): Return fp to keep gdb print
5796 local variables correctly when debugging information is stabs.
5798 (score_analyze_prologue): For software watchpoint, fetch all the
5799 instructions from range [startaddr, pc] once and identify them locally
5800 to reduce memory access.
5801 (score_malloc_and_get_memblock, score_free_memblock)
5802 (score_adjust_memblock_ptr): New functions.
5803 (score_fetch_inst): Fetch single instruction or mutiple instructions.
5805 (score_target_can_use_watch, score_stopped_by_watch)
5806 (score_target_insert_watchpoint, score_target_remove_watchpoint)
5807 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
5808 New functions for remote & local hw-watchpoint and hw-breakpoint.
5810 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
5812 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
5813 declarations as well.
5815 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5817 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
5818 * config/arm/tm-embed.h: Delete file.
5820 * arm-tdep.h (arm_software_single_step): Declare.
5821 * arm-tdep.c (arm_software_single_step): Make global.
5822 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
5824 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
5825 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
5826 * armobsd-tdep.c (armobsd_init_abi): ... here ...
5827 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
5829 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
5830 allow defines to be overriden by TM file.
5831 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
5832 change default to {0xbe,0xbe}.
5833 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
5834 arm_obsd_thumb_be_breakpoint): New global variables.
5835 (armobsd_init_abi): Override tdep->thumb_breakpoint and
5836 tdep->thumb_breakpoint_size.
5837 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
5838 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
5839 tdep->thumb_breakpoint_size.
5841 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
5843 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
5845 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
5848 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
5849 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
5850 (mips_stack_argsize_string, mips_stack_argsize): Delete.
5851 (mips_abi_regsize): Simplify.
5852 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5853 (mips_n32n64_return_value, mips_o32_push_dummy_call)
5854 (mips_o32_return_value, mips_o64_push_dummy_call)
5855 (mips_o64_return_value): Propogate constant register sizes. Use the
5856 ABI register size instead of mips_stack_argsize.
5857 (mips_dump_tdep): Don't print mips_stack_argsize.
5858 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
5861 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
5863 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
5864 * config/mips/tm-linux.h: Delete.
5865 * mips-linux-tdep.c (mips_svr4_so_ops): New.
5866 (mips_linux_in_dynsym_resolve_code): Make static. Use
5867 svr4_in_dynsym_resolve_code.
5868 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
5870 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
5872 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
5873 * Makefile.in (mips-linux-tdep.o): Update.
5874 * solib.c (set_solib_ops): New.
5875 (current_target_so_ops): Update comment.
5876 * solib.h (set_solib_ops): New prototype.
5878 2007-05-16 Chris Dearman <chris@mips.com>
5880 * printcmd.c (do_examine): Fix typos in a comment.
5882 2007-05-16 Richard Sandiford <richard@codesourcery.com>
5884 * configure.ac: Allow sysroots to be relocated under $prefix as
5885 well as $exec_prefix.
5886 * configure: Regenerate.
5888 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
5890 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
5891 (offsetof): Do not define.
5892 (find_stub_with_shl_get): Use numerical value 3 instead of
5893 symbolic value TYPE_PROCEDURE.
5895 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5897 * gdb_proc_service.h (paddr_t): Delete typedef.
5898 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
5899 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
5900 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
5901 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
5902 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
5903 * Makefile.in (proc-service.o): Update.
5905 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5907 * Makefile.in (mips-tdep.o): Update.
5908 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
5911 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5913 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
5914 instead of store_typed_address.
5915 * value.c (pack_long): New.
5916 (value_from_longest): Use it.
5917 * value.h (pack_long): New prototype.
5919 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5921 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
5922 DW_EH_PE_signed if appropriate.
5924 2007-05-14 Paul Brook <paul@codesourcery.com>
5925 Daniel Jacobowitz <dan@codesourcery.com>
5927 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
5929 (dwarf_decode_lines): Check for line info without a file.
5931 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5933 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
5936 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5938 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
5940 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
5942 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
5944 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
5946 * gdbarch.sh (read_sp): Remove.
5947 * gdbarch.c, gdbarch.h: Regenerate.
5948 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
5950 * avr-tdep.c (avr_read_sp): Remove.
5951 (avr_unwind_sp): New function.
5952 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
5953 * mips-tdep.c (mips_read_sp): Remove.
5954 (mips_unwind_sp): New function.
5955 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
5956 * score-tdep.c (score_read_unsigned_register): Remove.
5957 (score_read_sp): Remove.
5958 (score_unwind_sp): New function.
5959 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
5961 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
5963 * buildsym.c (start_subfile): Handle absolute pathnames
5964 while comparing subfile names.
5966 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5968 * hppa-hpux-tdep.c: Include "regcache.h".
5969 * hppa-linux-tdep.c: Likewise.
5970 * hppa-tdep.c: Include "gdb_stdint.h".
5971 (find_unwind_entry): Cast host pointer to uintptr_t before passing
5973 * Makefile.in: Update dependencies.
5975 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5977 * blockframe.c: Remove obsolete comments.
5978 * alpha-nat.c (fetch_osf_core_registers): Update comment.
5979 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
5980 * hppa-tdep.h (enum hppa_regnum): Likewise.
5981 * mips-tdep.h: Likewise.
5982 * m68hc11-tdep.c: Likewise.
5984 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5986 * inferior.h (read_sp): Remove prototype.
5987 * regcache.c (read_sp): Remove.
5988 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
5989 * infcall.c (call_function_by_hand): Likewise.
5990 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
5992 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5994 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5996 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
5997 instead of read_register and read_register_pid.
5999 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6000 argument instead of PTID. Use regcache functions instead of
6002 (ia64_linux_insert_watchpoint): Update call.
6003 (ia64_linux_stopped_data_address): Use regcache functions
6004 instead of read_register_pid and write_register_pid.
6006 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6008 * libunwind-frame.h (struct regcache): Add forward declaration.
6009 (libunwind_get_reg_special): Add REGCACHE argument.
6010 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6011 argument. Pass it to unw_init_remote_p.
6013 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6014 libunwind_get_reg_special.
6015 (ia64_access_reg): Remove "write" case.
6016 (ia64_access_fpreg): Likewise. Read from next_frame passed
6017 as callback argument instead of from current_regcache.
6018 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6019 passed as callback argument instead of from current_regcache.
6020 (ia64_access_rse_fpreg): New function.
6021 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6023 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6025 * NEWS: Mention SPU overlay support.
6027 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6029 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6031 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6033 * breakpoint.c (remove_breakpoint): Do not remove software
6034 breakpoints in unmapped overlay sections.
6036 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6038 * spu-tdep.c: Include "observer.h".
6039 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6040 (spu_overlay_data): New variable.
6041 (struct spu_overlay_table): New type.
6042 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6043 spu_overlay_new_objfile): New functions.
6044 (spu_gdbarch_init): Install spu_overlay_update.
6045 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6046 allocate spu_overlay_data objfile data.
6048 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6050 * gdbarch.sh (overlay_update): New gdbarch function.
6051 (struct obj_section): Add forward declaration.
6052 * gdbarch.c, gdbarch.h: Regenerate.
6054 * symfile.c (simple_overlay_update): Make global.
6055 (target_overlay_update): Remove variable.
6056 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6057 target_overlay_update.
6058 (overlay_load_command): Likewise.
6059 * symfile.h (struct obj_section): Add forward declaration.
6060 (simple_overlay_update): Add prototype.
6062 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6064 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6066 * observer.sh: Add "struct objfile" forward declaration.
6067 * target.h (deprecated_target_new_objfile_hook): Remove.
6068 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6069 (clear_symtab_users): Call observer_notify_new_objfile.
6070 (symbol_file_add_with_addrs_or_offsets): Likewise.
6071 * rs6000-nat.c: Include "observer.h".
6072 (vmap_ldinfo): Call observer_notify_new_objfile.
6073 (xcoff_relocate_core): Likewise.
6074 * remote.c (remote_new_objfile_chain): Remove.
6075 (remote_new_objfile): Do not call remote_new_objfile_chain.
6076 (_initialize_remote): Use observer_attach_new_objfile.
6077 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6078 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6079 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6080 * aix-thread.c: Include "observer.h".
6081 (target_new_objfile_chain): Remove.
6082 (new_objfile): Do not call target_new_objfile_chain.
6083 (_initialize_aix_thread): Use observer_attach_new_objfile.
6084 * hpux-thread.c: Include "observer.h"
6085 (target_new_objfile_chain): Remove.
6086 (hpux_thread_new_objfile): Make static. Do not call
6087 target_new_objfile_chain.
6088 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6089 * linux-thread-db.c: Include "observer.h".
6090 (target_new_objfile_chain): Remove.
6091 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6092 (_initialize_thread_db): Use observer_attach_new_objfile.
6093 * sol-thread.c: Include "observer.h".
6094 (target_new_objfile_chain): Remove.
6095 (sol_thread_new_objfile): Make static. Do not call
6096 target_new_objfile_chain.
6097 (_initialize_sol_thread): Use observer_attach_new_objfile.
6098 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6099 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6102 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6104 * gdbarch.sh (remote_translate_xfer_address): Remove.
6105 * gdbarch.h, gdbarch.c: Regenerate.
6106 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6107 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6108 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6109 call gdbarch_remote_translate_xfer_address.
6110 * frv-tdep.c (frv_gdbarch_init): Do not call
6111 set_gdbarch_remote_translate_xfer_address.
6112 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6113 (ia64_gdbarch_init): Do not install it.
6115 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6117 * NEWS: Mention change in handling the -tui option.
6119 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6121 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6124 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6126 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6127 (breakpoint_inserted_here_p): Call it.
6128 (software_breakpoint_inserted_here_p): Likewise.
6130 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6132 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6133 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6134 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6135 (inf_ptrace_store_register): Likewise.
6136 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6137 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6139 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6141 * linux-nat.c (linux_trad_target): Adapt parameter list.
6142 * linux-nat.h (linux_trad_target): Likewise.
6144 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6146 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6147 (mips_linux_cannot_store_register): Likewise.
6148 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6149 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6150 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6151 (mips64_linux_register_addr): Likewise.
6152 (mips_linux_register_u_offset): Adapt parameter list. Pass
6153 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6155 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6156 * config/mips/nm-linux.h: Delete file.
6158 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6160 * remote.c (remote_detach): Error out if remote can't detach.
6162 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6164 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6165 instruction's opcode in the "opcode" variable and declares new
6166 variable "closing_insn".
6168 2007-05-10 Chris Dearman <chris@mips.com>
6169 Maciej W. Rozycki <macro@mips.com>
6171 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6172 whitespace when setting a var_filename.
6174 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6176 * main.c (captured_main): Recognize -tui option and print an error
6177 message when the TUI is not configured.
6179 2007-05-09 Andreas Schwab <schwab@suse.de>
6181 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6182 set removed members.
6183 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6185 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6187 * gdbarch.sh (deprecated_store_struct_return): Remove.
6188 * gdbarch.c, gdbarch.h: Regenerate.
6189 * frv-tdep.c (frv_store_struct_return): Remove.
6190 (frv_gdbarch_init): Do not install it.
6192 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6194 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6195 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6196 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6198 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6200 * spu-linux-nat.c: Include "gdb_stdint.h".
6201 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6202 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6203 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6204 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6205 (spu_child_wait): Mark up string for translation.
6207 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6208 Luis Machado <luisgpm@br.ibm.com>
6210 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6211 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6212 BC_INSTRUCTION): Define.
6213 (deal_with_atomic_sequence): New function.
6214 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6215 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6216 gdbarch_software_single_step routine.
6218 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6220 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6221 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6222 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6223 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6224 spu_child_post_attach, spu_fetch_inferior_registers,
6225 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6226 memory addresses as ULONGEST, not CORE_ADDR.
6228 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6230 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6231 * gdbarch.h, gdbarch.c: Regenerate.
6233 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6234 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6235 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6237 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6238 Add REGCACHE argument. Use it instead of read/write_register.
6239 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6241 * config/pa/tm-hppah.h: Delete file.
6242 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6243 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6245 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6247 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6248 * NEWS: Mention improved C++ thunk support.
6249 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6250 * cp-abi.c (cplus_skip_trampoline): New.
6251 * cp-abi.h (cplus_skip_trampoline): New prototype.
6252 (struct cp_abi_ops): Add skip_trampoline member.
6253 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6254 (init_gnuv3_ops): Set skip_trampoline.
6256 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6258 * rs6000-tdep.c (struct frame_extra_info): Delete.
6260 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6262 * linux-thread-db.c: Update some FIXME comments.
6263 (thread_db_xfer_partial): Delete.
6264 (init_thread_db_ops): Do not set to_xfer_partial.
6266 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6268 * inftarg.c, infptrace.c: Remove files.
6269 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6270 (inftarg.o, infptrace.o): Remove rules.
6271 * gdbcore.h (register_addr): Remove prototype.
6272 * inferior.h (kill_inferior, store_inferior_registers,
6273 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6274 call_ptrace, pre_fork_inferior): Remove prototypes.
6275 * target.h (child_xfer_memory, child_pid_to_exec_file,
6276 child_core_file_to_sym_file, child_post_attach,
6277 child_post_startup_inferior, child_acknowledge_created_inferior,
6278 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6279 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6280 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6281 child_follow_fork, child_reported_exec_events_per_exec_call,
6282 child_has_exited, child_thread_alive): Remove prototypes.
6284 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6286 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6287 (sparc_store_inferior_registers): Likewise.
6288 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6289 (sparc_fetch_inferior_registers): ... this.
6290 (store_inferior_registers): Rename to ...
6291 (sparc_store_inferior_registers): ... this.
6292 (sparc_target): Update callback names.
6293 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6294 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6296 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6298 * linux-nat.c (child_post_attach): Rename to ...
6299 (linux_child_post_attach): ... this. Make static.
6300 (child_follow_fork): Rename to ...
6301 (linux_child_follow_fork): ... this. Make static.
6302 (child_insert_fork_catchpoint): Rename to ...
6303 (linux_child_insert_fork_catchpoint): ... this. Make static.
6304 (child_insert_vfork_catchpoint): Rename to ...
6305 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6306 (child_insert_exec_catchpoint): Rename to ...
6307 (linux_child_insert_exec_catchpoint): ... this. Make static.
6308 (child_pid_to_exec_file): Rename to ...
6309 (linux_child_pid_to_exec_file): ... this. Make static.
6311 (linux_handle_extended_wait): Update call.
6312 (linux_xfer_partial): Update callback routine names.
6314 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6316 * configure.host (alpha*-*-osf[12]*): Remove support.
6317 * NEWS: Mention removed configurations.
6319 * config/alpha/alpha-osf1.mh: Delete file.
6320 * config/alpha/alpha-osf2.mh: Delete file.
6321 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6323 * config/alpha/nm-osf.h: Delete file.
6324 * config/alpha/nm-osf2.h: Delete file.
6325 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6326 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6327 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6329 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6330 (register_addr, kernel_u_size): Remove.
6331 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6333 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6335 * regcache.c (regcache_invalidate): New function.
6336 (register_cached): Remove.
6337 (set_register_cached): Remove.
6338 (deprecated_registers_fetched): Remove.
6339 (registers_changed): Use regcache_invalidate instead
6340 of set_register_cached.
6341 (regcache_raw_read): Update comment.
6343 * regcache.h (regcache_invalidate): Add prototype.
6344 (register_cached): Remove.
6345 (set_register_cached): Remove.
6346 (deprecated_registers_fetched): Remove.
6348 * findvar.c (value_of_register): Do not call register_cached.
6349 * frame.c (frame_register): Likewise.
6350 * tui/tui-regs.c (tui_get_register): Likewise.
6352 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6353 (process_g_packet): Likewise.
6354 (remote_fetch_registers): Likewise.
6355 * remote-sim.c (gdbsim_fetch_register): Likewise.
6356 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6357 by regcache_invalidate.
6358 (mt_pseudo_register_write): Likewise.
6359 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6361 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6362 call by loop over regcache_raw_supply (..., NULL).
6364 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6366 * target.h (struct target_ops): Add REGCACHE parameter to
6367 to_prepare_to_store.
6368 (target_prepare_to_store): Likewise.
6369 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6370 (update_current_target): Adapt prepare_to_store de_fault rule.
6372 * regcache.c (regcache_raw_write): Pass regcache to
6373 target_prepare_to_store.
6375 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6376 Do not call CHILD_PREPARE_TO_STORE.
6377 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6378 * procfs.c (procfs_prepare_to_store): Likewise.
6380 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6381 * go32-nat.c (go32_prepare_to_store): Likewise.
6382 * monitor.c (monitor_prepare_to_store): Likewise.
6383 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6384 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6385 * remote-mips.c (mips_prepare_to_store): Likewise.
6386 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6387 * win32-nat.c (win32_prepare_to_store): Likewise.
6389 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6390 Use it instead of current_regcache.
6392 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6393 parameter. Pass it on to next target.
6394 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6396 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6398 * target.h (struct regcache): Add forward declaration.
6399 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6400 and to_store_registers target operations.
6401 (target_fetch_registers, target_store_registers): Update.
6403 * regcache.c (regcache_raw_read): Replace register_cached by
6404 regcache_valid_p. Pass regcache to target_fetch_registers.
6405 (regcache_raw_write): Pass regcache to target_store_registers.
6407 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6408 store_regs, store_wmmx_regs): Replace register_cached by
6411 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6412 to target_fetch_registers calls.
6413 * corelow.c (core_open): Likewise.
6414 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6415 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6416 ps_lsetfpregs): Likewise.
6417 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6418 ps_lsetfpregs): Likewise.
6419 * win32-nat.c (win32_resume): Likewise.
6420 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6421 to target_store_registers call.
6422 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6424 * inferior.h (store_inferior_registers): Update prototype.
6425 (fetch_inferior_registers): Likewise.
6426 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6427 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6428 Update function pointer signatures.
6430 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6431 use it instead of current_regcache, update calls.
6432 (aix_thread_store_registers): Likewise.
6433 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6434 (alphabsd_store_inferior_registers): Likewise.
6435 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6436 (amd64bsd_store_inferior_registers): Likewise.
6437 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6438 (amd64_linux_store_inferior_registers): Likewise.
6439 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6440 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6441 fetch_wmmx_regs, store_wmmx_regs): Likewise.
6442 (arm_linux_fetch_inferior_registers): Likewise.
6443 (arm_linux_store_inferior_registers): Likewise.
6444 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6445 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6446 (store_register, store_regs, store_fp_register, store_fp_regs,
6447 armnbsd_store_registers): Likewise.
6448 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6449 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6450 (bsd_uthread_store_registers): Likewise.
6451 * corelow.c (get_core_registers): Likewise.
6452 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6453 go32_store_registers): Likewise.
6454 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6455 (hppabsd_store_registers): Likewise.
6456 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6457 (hppa_hpux_fetch_inferior_registers): Likewise.
6458 (hppa_hpux_store_register): Likewise.
6459 (hppa_hpux_store_inferior_registers): Likewise.
6460 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6461 (hppa_linux_fetch_inferior_registers): Likewise.
6462 (hppa_linux_store_inferior_registers): Likewise.
6463 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6464 (hpux_thread_store_registers): Likewise.
6465 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6466 (i386bsd_store_inferior_registers): Likewise.
6467 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6468 gnu_store_registers): Likewise.
6469 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6470 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6472 (i386_linux_fetch_inferior_registers): Likewise.
6473 (i386_linux_store_inferior_registers): Likewise.
6474 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6475 (ia64_linux_fetch_registers): Likewise.
6476 (ia64_linux_store_register): Likewise.
6477 (ia64_linux_store_registers): Likewise.
6478 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6479 (inf_child_store_inferior_registers): Likewise.
6480 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6481 (inf_ptrace_fetch_registers): Likewise.
6482 (inf_ptrace_store_register): Likewise.
6483 (inf_ptrace_store_registers): Likewise.
6484 * infptrace.c (fetch_register, store_register): Likewise.
6485 (fetch_inferior_registers, store_inferior_registers): Likewise.
6486 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6487 (m32r_linux_fetch_inferior_registers): Likewise.
6488 (m32r_linux_store_inferior_registers): Likewise.
6489 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6490 (m68kbsd_store_inferior_registers): Likewise.
6491 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6492 store_register, old_store_inferior_registers, fetch_regs, store_regs,
6493 fetch_fpregs, store_fpregs): Likewise.
6494 (m68k_linux_fetch_inferior_registers): Likewise.
6495 (m68k_linux_store_inferior_registers): Likewise.
6496 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6497 (m88kbsd_store_inferior_registers): Likewise.
6498 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6499 (mips64obsd_store_inferior_registers): Likewise.
6500 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6501 (mips64_linux_regsets_store_registers): Likewise.
6502 (mips64_linux_fetch_registers): Likewise.
6503 (mips64_linux_store_registers): Likewise.
6504 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6505 (mipsnbsd_store_inferior_registers): Likewise.
6506 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6507 (monitor_fetch_registers, monitor_store_registers): Likewise.
6508 * nto-procfs.c (procfs_fetch_registers): Likewise.
6509 (procfs_store_registers): Likewise.
6510 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
6511 fetch_register, supply_vrregset, fetch_altivec_registers,
6512 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
6513 (store_altivec_register, store_spe_register, store_register,
6514 fill_vrregset, store_altivec_registers, store_ppc_registers,
6515 ppc_linux_store_inferior_registers): Likewise.
6516 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
6517 (ppcnbsd_store_inferior_registers): Likewise.
6518 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
6519 (ppcobsd_store_registers): Likewise.
6520 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
6521 * remote.c (fetch_register_using_p, process_g_packet,
6522 fetch_registers_using_g, remote_fetch_registers): Likewise.
6523 (store_register_using_P, store_registers_using_G,
6524 remote_store_registers): Likewise.
6525 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
6526 m32r_store_register, m32r_store_register): Likewise.
6527 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
6528 * remote-sim.c (gdbsim_fetch_register): Likewise.
6529 (gdbsim_store_register): Likewise.
6530 * rs6000-nat.c (fetch_register, store_register): Likewise.
6531 (rs6000_fetch_inferior_registers): Likewise.
6532 (rs6000_store_inferior_registers): Likewise.
6533 * s390-nat.c (fetch_regs, store_regs): Likewise.
6534 (fetch_fpregs, store_fpregs): Likewise.
6535 (s390_linux_fetch_inferior_registers): Likewise.
6536 (s390_linux_store_inferior_registers): Likewise.
6537 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
6538 (shnbsd_store_inferior_registers): Likewise.
6539 * sol-thread.c (sol_thread_fetch_registers): Likewise.
6540 (sol_thread_store_registers): Likewise.
6541 * sparc-nat.c (fetch_inferior_registers): Likewise.
6542 (store_inferior_registers): Likewise.
6543 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6544 (spu_store_inferior_registers): Likewise.
6545 * target.c (debug_print_register): Likewise.
6546 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
6547 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
6548 (vaxbsd_store_inferior_registers): Likewise.
6549 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
6550 (win32_fetch_inferior_registers): Likewise.
6551 (win32_store_inferior_registers): Likewise.
6553 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6555 * gdbcore.h (struct regcache): Add forward declaration.
6556 (struct core_fns): Add REGCACHE argument to core_read_registers
6558 * corelow.c (get_core_register_section): Add REGCACHE argument,
6559 use it instead of current_regcache, pass it to core_read_registers
6561 (get_core_registers): Add current_regcache as parameter to
6562 get_core_register_section calls.
6564 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
6565 use it instead of current_regcache.
6566 * armnbsd-nat.c (fetch_core_registers): Likewise.
6567 (fetch_elfcore_registers): Likewise.
6568 * core-regset.c (fetch_core_registers): Likewise.
6569 * cris-tdep.c (fetch_core_registers): Likewise.
6570 * irix5-nat.c (fetch_core_registers): Likewise.
6571 * m68klinux-nat.c (fetch_core_registers): Likewise.
6572 * mips-linux-tdep.c (fetch_core_registers): Likewise.
6573 * win32-nat.c (fetch_elf_core_registers): Likewise.
6575 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6577 * gregset.h (struct regcache): Add forward declaration.
6578 (supply_gregset): Add REGCACHE parameter, make GREGS const.
6579 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
6580 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
6581 (fill_gregset): Add REGCACHE parameter.
6582 (fill_fpregset): Likewise.
6583 (fill_fpxregset): Likewise.
6585 Update all definitions accordingly:
6586 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
6587 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
6588 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
6589 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
6590 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
6591 (supply_gregset): Add REGCACHE parameter, use it instead of
6592 current_regcache. Make GREGSETP parameter const, adapt casts.
6593 (supply_fpregset): Add REGCACHE parameter, use it instead of
6594 current_regcache. Make FPREGSETP parameter const, adapt casts.
6595 (fill_gregset): Add REGCACHE parameter, use it instead of
6597 (fill_fpregset): Likewise.
6599 Update all callers to pass in current_regcache as the new argument:
6600 * core-regset.c: Include "regcache.h".
6601 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
6602 * procfs.c: Include "regcache.h".
6603 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
6604 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
6605 (procfs_do_thread_registers): Likewise.
6606 (procfs_make_note_section): Likewise.
6607 * proc-service.c: Include "regcache.h".
6608 (ps_lgetregs): Update fill_gregset call.
6609 (ps_lsetregs): Update supply_gregset call.
6610 (ps_lgetfpregs): Update fill_fpregset call.
6611 (ps_lsetfpregs): Update supply_fpregset call.
6612 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
6613 supply_fpregset calls.
6614 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
6615 (ps_lgetregs): Update fill_gregset call.
6616 (ps_lsetregs): Update supply_gregset call.
6617 (ps_lgetfpregs): Update fill_fpregset call.
6618 (ps_lsetfpregs): Update supply_fpregset call.
6620 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
6621 fill_fpregset, and fill_fpxregset calls.
6622 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
6623 (store_regs): Update fill_gregset call.
6624 (fetch_fpregs): Update supply_fpregset call.
6625 (store_fpregs): Update fill_fpregset call.
6626 (fetch_fpxregs): Update supply_fpxregset call.
6627 (store_fpxregs): Update fill_fpxregset call.
6628 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
6629 (store_regs): Update fill_gregset call.
6630 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
6631 (store_regs): Update fill_gregset call.
6632 (fetch_fpregs): Update supply_fpregset call.
6633 (store_fpregs): Update fill_fpregset call.
6634 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
6635 * s390-nat.c (fetch_regs): Update supply_gregset call.
6636 (store_regs): Update fill_gregset call.
6637 (fetch_fpregs): Update supply_fpregset call.
6638 (store_fpregs): Update fill_fpregset call.
6640 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
6643 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6645 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
6646 it instead of current_regcache.
6647 (parse_register_dump): Add REGCACHE parameter, pass it to
6648 supply_register callback.
6649 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
6650 parse_register_dump.
6651 (monitor_dump_regs): Add REGCACHE parameter, pass it to
6652 parse_register_dump and dumpregs callback.
6653 (monitor_wait): Pass current_regcache to parse_register_dump and
6655 (monitor_fetch_register): Pass current_regcache to
6656 monitor_supply_register.
6657 (monitor_fetch_registers): Pass current_regcache to
6659 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
6660 supply_register and dumpregs callbacks.
6661 (monitor_supply_register, monitor_dump_reg_block): Update
6663 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
6664 it to monitor_supply_register.
6665 * dink32-rom.c (dink32_supply_register): Likewise.
6666 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
6667 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
6668 instead of current_regcache.
6670 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6672 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
6673 Add REGCACHE parameter. Use it instead of current_regcache.
6674 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
6675 i386nto_supply_gregset and i386nto_supply_fpregset.
6676 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
6677 of current_regcache.
6679 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
6680 nto_supply_ helper functions.
6681 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
6683 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
6685 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
6686 supply_greget, supply_fpregset, supply_altregset, supply_regset,
6687 and regset_fill member function pointers.
6688 (nto_dummy_supply_regset): Adapt prototype.
6690 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6692 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
6693 instead of current_regcache. Make REGS const.
6694 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
6695 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
6697 * shnbsd-nat.c: Include "regcache.h".
6698 (shnbsd_fetch_inferior_registers): Pass current_regcache to
6700 (shnbsd_store_inferior_registers): Pass current_regcache to
6702 * Makefile.in (shbsd-nat.o): Update dependencies.
6704 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6706 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
6707 instead of current_regcache.
6708 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
6709 Make GREGSETP const, remove superfluous casts.
6710 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6711 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
6713 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6714 (supply_64bit_reg): Likewise
6715 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
6716 Make GREGSETP const, adapt casts accordingly.
6717 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6718 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
6720 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6721 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
6723 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
6724 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
6725 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
6727 * mips-linux-nat.c: Include "regcache.h".
6728 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
6729 current_regcache to mips{64}_(supply|fill)_ helper routines.
6730 (mips64_linux_regsets_fetch_registers): Likewise.
6731 (mips64_linux_regsets_store_registers): Likewise.
6733 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
6734 REGCACHE argument; replace current_regcache. Make REGS const.
6735 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
6736 replace current_regcache.
6737 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
6738 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
6739 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
6740 mipsnbsd_store_inferior_registers): Pass current_regcache to
6741 mipsnbsd_(supply|fill)_... helper routines.
6743 * Makefile.in (mips-linux-nat.o): Update dependencies.
6745 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6747 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
6748 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
6749 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
6750 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
6751 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
6752 * i386gnu-nat.c (store_fpregs): Likewise.
6753 * i386v4-nat.c (fill_fpregset): Likewise.
6754 * go32-nat.c (store_register, go32_store_registers): Likewise.
6756 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6758 * cris-tdep.c (supply_gregset): Rename to ...
6759 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
6760 instead of current_regcache.
6761 (fetch_core_registers): Update call. Pass current_regcache.
6763 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6765 * arnmnbsd-nat.c (supply_gregset): Rename to ...
6766 (arm_supply_gregset): ... this. Add REGCACHE parameter.
6767 Use it instead of current_regcache.
6768 (supply_fparegset): Rename to ...
6769 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
6770 Use it instead of current_regcache.
6771 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
6772 (fetch_core_registers, fetch_elfcore_registers): Likewise.
6774 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6776 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
6777 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
6778 use it instead of current_regcache.
6779 * alpha-tdep.h (struct regcache): Add forward declaration.
6780 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
6781 alpha_fill_fp_regs): Update prototypes.
6783 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
6784 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
6785 * alpha-linux-nat.c: Include "regcache.h".
6786 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
6787 current_regcache to alpha_supply/fill_ routines.
6789 * alphabsd-tdep.c: Include "regcache.h".
6790 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
6791 pass it to alpha_supply_ routines. Make REGS const.
6792 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
6793 pass it to alpha_fill_ routines.
6794 * alphabsd-tdep.h (struct regcache): Add forward declaration.
6795 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
6796 alphabsd_fill_fpreg): Update prototypes.
6798 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6799 fill_fpregset, alphabsd_fetch_inferior_registers,
6800 alphabsd_store_inferior_registers): Pass current_regcache to
6801 alphabsd_supply/fill_ routines.
6803 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
6806 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6808 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
6809 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
6810 instead of current_regcache.
6811 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
6812 REGCACHE parameter, pass it to supply_ routines.
6813 (aix_thread_fetch_registers): Pass current_regcache to
6814 fetch_regs_user_thread and fetch_regs_kernel_thread.
6816 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
6817 Add REGCACHE parameter, use it instead of current_regcache.
6818 Call regcache_valid_p instead of register_cached.
6819 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
6820 Also, pass REGCACHE to fill_ routines.
6821 (aix_thread_store_registers): Pass current_regcache to
6822 store_regs_user_thread and store_regs_kernel_thread.
6824 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6826 * m32r-linux-nat.c (supply_gregset): Do not modify contents
6827 pointed to by GREGSETP.
6829 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6831 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
6832 of regcache_raw_read_signed.
6833 (fill_fpregset): Use regcache_raw_collect instead of
6836 2007-05-03 Kevin Buettner <kevinb@redhat.com>
6838 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
6839 point arguments, test explicitly for use of the EABI32 ABI
6840 instead of inferring this condition from tests on register
6843 2007-05-03 Kevin Buettner <kevinb@redhat.com>
6845 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
6846 prior to allocating its location.
6848 2007-05-02 Maciej W. Rozycki <macro@mips.com>
6850 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
6851 based on mips_abi_regsize() whose result is known in advance.
6852 (mips_o64_push_dummy_call): Likewise.
6854 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
6856 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
6857 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
6859 * mips-linux-nat.c: Include "gregset.h".
6860 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
6861 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
6862 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
6863 fill_fpregset): Move to mips-linux-nat.c.
6865 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
6867 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6869 * regcache.c (deprecated_read_register_gen): Remove, inline ...
6870 (read_register): ... here.
6871 (deprecated_write_register_gen): Remove, inline ...
6872 (write_register): ... here.
6873 * regcache.h (deprecated_read_register_gen): Remove prototype.
6874 (deprecated_write_register_gen): Likewise.
6876 * remote-sim.c (gdbsim_store_register): Replace call to
6877 deprecated_read_register_gen with regcache_cooked_read.
6878 * target.c (debug_print_register): Replace calls to
6879 deprecated_read_register_gen and read_register with
6880 regcache_cooked_read.
6882 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6884 * hpux-thread.c (hpux_thread_store_registers): Use
6885 regcache_raw_collect, not regcache_raw_read.
6886 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
6887 not regcache_raw_write.
6889 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6891 * gdbarch.sh: Remove deprecated_register_byte.
6892 * gdbarch.c, gdbarch.h: Regenerate.
6893 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
6894 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
6896 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
6897 * regcache.c (regcache_valid_p): Allow to query cooked registers in
6898 read-only register caches. Make REGCACHE parameter const.
6899 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
6901 * mi/mi-main.c (old_regs): Remove.
6902 (mi_setup_architecture_data, _initialize_mi_main): Remove.
6903 (register_changed_p): Reimplement to compare two register caches.
6904 (mi_cmd_data_list_changed_registers): Update caller.
6905 * mi/mi-main.h (mi_setup_architecture_data): Remove.
6906 * mi/mi-interp.c (mi_interpreter_init): Do not call
6907 mi_setup_architecture_data.
6909 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6911 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
6912 inline definition at the places the macros are used.
6913 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
6915 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6917 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
6919 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
6920 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
6921 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
6922 (rs6000_aix_regset_from_core_section): New function.
6923 (rs6000_aix_init_osabi): Register it.
6924 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
6925 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
6926 * rs6000-nat.c (CoreRegs): Do not define type.
6927 (fetch_core_registers, rs6000_core_fns): Remove.
6928 (_initialize_core_rs6000): Do not register it. Rename to ...
6929 (_initialize_rs6000_nat): ... this.
6930 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
6932 2007-04-27 Kevin Buettner <kevinb@redhat.com>
6934 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
6935 (dwarf2_read_address): Sign extend return address as required by
6936 target architecture.
6938 2007-04-27 Kevin Buettner <kevinb@redhat.com>
6940 * solib-frv.c (lm_base): Bail out if the main executable has
6943 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6945 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
6946 of FPCR register in fpregset.
6948 2007-04-27 Maciej W. Rozycki <macro@mips.com>
6950 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
6951 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
6953 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6955 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
6956 * rs6000-nat.c (rs6000_wait): New function.
6957 (_initialize_core_rs6000): Install it as to_wait target method.
6958 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
6960 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6962 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
6963 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
6964 * rs6000-nat.c (super_create_inferior): New variable.
6965 (rs6000_create_inferior): Make static. Adapt argument list. Call
6966 original version of create_inferior via super_create_inferior.
6967 (_initialize_core_rs6000): Install to_create_inferior target method.
6969 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6971 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
6972 (aix_thread_xfer_partial): ... this.
6973 (init_aix_thread_ops): Install to_xfer_partial instead
6974 of deprecated_xfer_memory target method.
6976 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
6977 and inftarg.o, add inf-ptrace.o.
6978 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
6979 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
6980 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
6981 (fetch_inferior_registers): Rename to ...
6982 (rs6000_fetch_inferior_registers): ... this. Make static.
6983 (store_inferior_registers): Rename to ...
6984 (rs6000_store_inferior_registers): ... this. Make static.
6985 (read_word, child_xfer_memory): Remove.
6986 (rs6000_xfer_partial): New function.
6987 (kernel_u_size): Remove.
6988 (_initialize_core_rs6000): Add inf_ptrace-based target.
6989 * Makefile.in (rs6000-nat.o): Update dependencies.
6991 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6993 * inf-ptrace.c: Include "gdb_stdint.h".
6994 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
6995 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
6996 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
6997 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
6998 (inf_ptrace_store_register): Likewise.
6999 * Makefile.in (inf-ptrace.o): Update dependencies.
7001 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7003 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7004 * configure.tgt (rs6000-*-*): Likewise.
7005 * config/rs6000/aix4.mh: Delete file.
7006 * config/rs6000/aix4.mt: Delete file.
7007 * config/rs6000/rs6000.mh: Delete file.
7008 * config/rs6000/rs6000.mt: Delete file.
7010 * config/powerpc/nm-aix.h: Delete file.
7011 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7013 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7015 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7016 Remove obsolete part of comment.
7017 (store_regs_user_thread): Use uint32_t temporaries when calling
7019 (store_regs_kernel_thread): Likewise. Add assertion to verify
7020 correct size of struct ptsprs members.
7021 (aix_thread_xfer_memory): Fix type of myaddr.
7022 (aix_thread_extra_thread_info): Fix compiler warning.
7023 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7024 (fetch_register, store_register): Adapt callers.
7026 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7028 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7030 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7032 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7034 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7035 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7036 (alpha_linux_regset_from_core_section): New function.
7037 (alpha_linux_init_abi): Install it.
7038 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7039 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7040 <sys/procfs.h>, and "gregset.h".
7041 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7042 Move from config/alpha/nm-linux.h.
7043 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7045 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7046 * alpha-nat.c: Remove #ifdef __linux__ section.
7047 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7048 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7049 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7050 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7051 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7052 (NATDEPFILES): Remove alpha-nat.o.
7053 * config/alpha/nm-linux.h: Delete file.
7054 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7055 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7056 (alpha-linux-tdep.o): Likewise.
7058 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7060 * mips-linux-nat.c: No longer include "gdbcore.h".
7061 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7062 (mips64_linux_register_addr): Likewise.
7063 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7064 mips64_linux_register_addr instead of register_addr.
7065 * mips-linux-tdep.c (mips_linux_register_addr,
7066 mips64_linux_register_addr): Move to mips-linux-nat.c.
7067 (register_addr): Remove.
7068 (register_addr_data, init_register_addr_data): Remove.
7069 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7070 (set_mips_linux_register_addr): Remove.
7071 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7072 * Makefile.in (mips-linux-nat.o): Update dependencies.
7074 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7076 * linux-nat.c (linux_register_u_offset): Remove.
7077 (linux_target_install_ops): New function.
7078 (linux_target): Use it.
7079 (linux_trad_target): New function.
7080 * linux-nat.h (linux_trad_target): Declare.
7082 * alpha-linux-nat.c: Include "gdbcore.h".
7083 (alpha_linux_register_u_offset): New function.
7084 (_initialize_alpha_linux_nat): Use linux_trad_target.
7086 * mips-linux-nat.c: Include "gdbcore.h".
7087 (mips_linux_register_u_offset): New function.
7088 (_initialize_mips_linux_nat): Use linux_trad_target.
7090 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7091 * config/arm/nm-linux.h: Delete file.
7093 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7094 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7096 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7097 * config/ia64/nm-linux.h: Delete file.
7099 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7100 * config/m32r/nm-linux.h: Delete file.
7102 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7103 * config/m68k/nm-linux.h: Delete file.
7105 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7106 * config/pa/nm-linux.h: Delete file.
7108 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7109 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7110 * config/powerpc/nm-linux.h: Delete file.
7112 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7113 * config/s390/nm-linux.h: Delete file.
7115 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7116 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7117 * config/sparc/nm-linux.h: Delete file.
7119 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7120 (mips-linux-nat.o): Likewise.
7122 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7124 * core-aout.c: Delete file.
7125 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7126 (core-aout.o): Delete rule.
7127 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7129 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7131 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7132 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7133 KERNEL_U_ADDR): Remove.
7135 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7136 (cannot_fetch_register, cannot_store_register): Remove.
7137 (fetch_register): Inline cannot_fetch_register and register_addr.
7138 (store_register): Inline cannot_store_register and register_addr.
7139 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7140 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7141 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7144 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7145 (fetch_register): Inline register_addr.
7146 (store_register): Inline register_addr.
7147 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7148 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7149 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7151 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7152 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7153 REGISTER_U_ADDR): Remove.
7155 * hppa-linux-nat.c (register_addr): Rename to ...
7156 (hppa_linux_register_addr): ... this. Make static.
7157 (fetch_register, store_register): Adapt callers.
7158 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7160 * ppc-linux-nat.c (kernel_u_size): Remove.
7161 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7163 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7164 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7166 * config/vax/nm-vax.h: Delete file.
7168 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7170 * MAINTAINERS (Write After Approval): Add myself.
7172 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7174 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7175 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7176 (m68k_linux_sigcontext_reg_offset): Fix typo.
7177 (target_is_uclinux): New.
7178 (m68k_linux_inferior_created): New.
7179 (m68k_linux_get_sigtramp_info): Check for uClinux or
7180 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7182 (_initialize_m68k_linux_tdep): Register
7183 m68k_linux_inferior_created.
7185 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7187 * win32-nat.c (win32_detach): Remove delete_command call.
7188 Resume inferior with win32_resume instead of win32_continue.
7190 2007-04-19 Jerome Guitton <guitton@adacore.com>
7192 * ser-mingw.c (fd_is_file): New function.
7193 (file_select_thread): New function.
7194 (ser_console_wait_handle): Add special handling for files.
7196 2007-04-18 Denis Pilat <denis.pilat@st.com>
7198 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7199 when missing from DW_TAG_subrange_type. Remove the handling of null
7200 return from die_type.
7202 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7204 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7205 change to rearrange some brackets.
7206 (mips_n32n64_push_dummy_call): Likewise.
7207 (mips_o32_push_dummy_call): Likewise.
7208 (mips_o64_push_dummy_call): Likewise.
7210 2007-04-18 Denis Pilat <denis.pilat@st.com>
7212 * infcmd.c (post_create_inferior): Start with a call to
7213 target_terminal_ours.
7215 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7217 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7219 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7221 (mips_o32_push_dummy_call): Likewise.
7222 (mips_o64_push_dummy_call): Likewise.
7224 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7226 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7229 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7231 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7233 (mips_o32_push_dummy_call): Likewise.
7235 2007-04-17 Andreas Schwab <schwab@suse.de>
7237 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7238 sal to be bigger than the end of the function.
7240 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7241 Nigel Stephens <nigel@mips.com>
7243 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7244 argument alignment requirements when calculating stack space
7245 required. When aligning an arg register to eight bytes
7246 boundary, align stack_offset too. Write floating-point
7247 arguments to the appropriate integer register if need go there.
7248 (mips_o64_push_dummy_call): Likewise.
7250 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7252 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7253 "sig" arguments, add "regcache" argument.
7254 * gdbarch.c, gdbarch.h: Regenerate.
7256 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7257 (handle_inferior_event): Call remove_single_step_breakpoints directly
7258 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7260 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7261 Remove handling of !insert_breakpoints_p case.
7262 * arm-tdep.c (arm_software_single_step): Likewise.
7263 * cris-tdep.c (cris_software_single_step): Likewise.
7264 * mips-tdep.c (mips_software_single_step): Likewise.
7265 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7266 * sparc-tdep.c (sparc_software_single_step): Likewise.
7267 * spu-tdep.c (spu_software_single_step): Likewise.
7269 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7270 * mips-tdep.h (mips_software_single_step): Likewise.
7271 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7272 * sparc-tdep.h (sparc_software_single_step): Likewise.
7274 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7276 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7277 when removing single-step breakpoints.
7279 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7281 * varobj.h (varobj_set_frozen): New
7282 (varobj_get_frozen): New.
7283 (varobj_update): New parameter explicit.
7284 * varobj.c (struct varobj): New fields frozen
7286 (varobj_set_frozen, varobj_get_frozen): New.
7287 (install_new_value): Don't fetch values for
7288 frozen variable object, or children thereof. Allow
7289 a frozen variable object to have non-fetched value.
7290 (varobj_update): Allow updating child variables.
7291 Don't traverse frozen children.
7292 (new_variable): Initialize the frozen field.
7293 (c_value_of_variable): Return NULL for frozen
7294 variable without any value yet.
7295 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7297 (mi_cmd_var_create): Output the 'frozen' field,
7298 as soon as testsuite is adjusted to expect that field.
7299 (mi_cmd_var_set_frozen): New.
7300 (mi_cmd_var_update): Pass the 'explicit' parameter to
7302 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7303 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7305 2007-04-13 Paul Brook <paul@codesourcery.com>
7307 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7309 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7311 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7313 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7314 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7315 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7316 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7317 * Makefile.in: Remove references to deleted files.
7318 * README: Do not mention deleted ROM monitor interfaces.
7319 * defs.h (enum language): Delete language_scm.
7320 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7321 (dump_subexp_body_standard): Likewise.
7322 * parse.c (operator_length_standard): Likewise.
7323 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7324 * remote-mips.c: Do not include remote-utils.h.
7325 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7327 * value.c: Do not include scm-lang.h.
7328 (unpack_long): Delete scm_unpack call.
7329 * config/h8300/h8300.mt, config/mips/embed.mt,
7330 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7331 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7333 * NEWS: Mention removed files.
7335 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7337 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7338 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7340 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7342 * NEWS: Mention removal of HP aCC support.
7344 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7346 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7347 first entry for static executables.
7348 (breakpoint_addr): Delete unused variable.
7349 (elf_locate_base): Search for _r_debug in static executables.
7350 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7353 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7355 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7356 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7357 (mention): Remove bp_through_sigtramp support.
7358 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7360 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7362 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7365 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7367 * infrun.c: Doc fixes.
7368 (handle_inferior_event): Clarify debug message.
7369 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7371 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7373 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7375 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7377 * config/m68k/tm-monitor.h: Delete file.
7378 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7379 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7381 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7382 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7384 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
7386 * gdbarch.sh (software_single_step): Change the return type
7387 from void to int and reformatted some comments to <= 80
7389 * gdbarch.c, gdbarch.h: Regenerated.
7390 * alpha-tdep.c (alpha_software_single_step): Likewise.
7391 * alpha-tdep.h (alpha_software_single_step): Likewise.
7392 * arm-tdep.c (arm_software_single_step): Likewise.
7393 * cris-tdep.c (cris_software_single_step): Likewise.
7394 * mips-tdep.c (mips_software_single_step): Likewise.
7395 * mips-tdep.h (mips_software_single_step): Likewise.
7396 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7397 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7398 * sparc-tdep.c (sparc_software_single_step): Likewise.
7399 * sparc-tdep.h (sparc_software_single_step): Likewise.
7400 * spu-tdep.c (spu_software_single_step): Likewise.
7401 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7402 and act accordingly.
7404 2007-04-11 Steve Ellcey <sje@cup.hp.com>
7406 * configure.ac (build_warnings): Add -Wno-char-subscripts.
7407 * configure: Regenerate.
7408 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7410 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7412 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7414 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7416 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7418 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7419 distinct on the TYPE_STUB_SUPPORTED debug targets.
7420 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7422 2007-04-11 Joel Brobecker <brobecker@adacore.com>
7424 * sparc-tdep.c (X_RS2): New macro.
7425 (sparc_skip_stack_check): New function.
7426 (sparc_analyze_prologue): Adjust PC past stack probing
7427 sequence if necessary.
7429 2007-04-10 Andreas Schwab <schwab@suse.de>
7431 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7434 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7436 * breakpoint.c (gdb_breakpoint_query): Really return an
7438 (gdb_breakpoint): Likewise.
7439 * thread.c (gdb_list_thread_ids): Likewise.
7440 (gdb_thread_select): Likewise.
7441 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7442 (mi_cmd_thread_list_ids): Remove bogus initialization.
7444 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7446 * Makefile.in (SFILES): Remove hpacc-abi.c.
7447 (COMMON_OBS): Remove hpacc-abi.o.
7448 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7449 (hpacc-abi.o, hpread.o): Delete rules.
7450 * somread.c: Delete extern declarations from hpread.c.
7451 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7452 (som_symfile_finish): Do not call hpread_symfile_finish.
7453 (som_symfile_init): Do not call hpread_symfile_init.
7454 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7455 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7456 * hpacc-abi.c, hpread.c: Deleted.
7458 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7460 * solib-svr4.c (enable_break): Simplify return value.
7461 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7463 2007-04-10 Andreas Schwab <schwab@suse.de>
7465 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7466 l_ld_size, l_next_size, l_prev_size, l_name_size.
7468 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7469 to extract addresses from link map.
7470 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7471 (LM_NEXT): Likewise.
7472 (LM_NAME): Likewise.
7473 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7474 (elf_locate_base): Likewise.
7475 (open_symbol_file_object): Likewise.
7476 (svr4_fetch_objfile_link_map): Likewise.
7477 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7478 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7480 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7481 (svr4_lp64_fetch_link_map_offsets): Likewise.
7483 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7484 removed members. Set l_ld_offset to -1 if not present.
7486 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
7488 Pass stderr of program run with "target remote |"
7490 * serial.c (serial_open): Set error_fd to -1.
7491 * serial.h (struct serial): New field error_fd.
7492 (struct serial_opts): New field avail.
7493 * ser-pipe.c (pipe_open): Create another pair
7494 of sockets. Pass stderr to gdb.
7495 * ser-mingw.c (pipe_windows_open): Pass
7496 PEX_STDERR_TO_PIPE to pex_run. Initialize
7499 (_initialize_ser_windows): Hook pipe_avail.
7500 * ser-base.c (generic_readchar): Check if there's
7501 anything in stderr channel and route that to gdb_stderr.
7503 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
7505 * dbxread.c (read_ofile_symtab): Move current_objfile
7506 clearing to after end_stabs.
7508 2007-04-01 Andreas Schwab <schwab@suse.de>
7510 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
7511 gdbarch instead of current_gdbarch.
7513 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
7515 * varobj.c (varobj_create): Keep varobj value
7516 NULL when evaluating the type.
7518 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
7520 * NEWS: Mention new Windows CE support.
7522 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
7524 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
7525 the obsoletion stanza.
7526 * NEWS: Mention deleted targets.
7528 * config/sh/tm-wince.h: Remove.
7529 * config/sh/wince.mt: Remove.
7530 * config/mips/tm-wince.h: Remove.
7531 * config/mips/wince.mt: Remove.
7534 * wince-stub.c: Remove.
7535 * wince-stub.h: Remove.
7536 * Makefile.in (wince.o): Remove rule.
7537 (wince-stub.o): Likewise.
7539 * mips-tdep.c (mips_next_pc): Make static.
7540 * mips-tdep.h (mips_next_pc): Remove declaration.
7541 * arm-tdep.c (arm_pc_is_thumb): Make static.
7542 (thumb_get_next_pc): Likewise.
7543 (arm_get_next_pc): Likewise.
7544 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
7545 (arm_pc_is_thumb): Likewise.
7546 (thumb_get_next_pc): Likewise.
7547 (arm_get_next_pc): Likewise.
7549 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7551 * MAINTAINERS: Remove d10v entry.
7552 * Makefile.in (SFILES): Remove dwarfread.c.
7553 (COMMON_OBS): Remove dwarfread.o.
7554 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
7555 (remote-est.o, rom68k-rom.o): Delete.
7556 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
7557 target est, target rom68k, and DWARF 1.
7558 * configure.tgt: Mark d10v as removed.
7559 * dwarf2read.c: Doc update.
7560 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
7562 (elf_locate_sections): Do not set them.
7563 (elf_symfile_read): Do not call dwarf_build_psymtabs.
7564 * symfile.h (dwarf_build_psymtabs): Delete prototype.
7565 * config/m68k/monitor.mt (TDEPFILES): Prune.
7566 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
7567 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
7569 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7571 * doublest.c (convert_floatformat_to_doublest): Use
7572 floatformat_classify.
7573 (floatformat_is_nan): Rename to...
7574 (floatformat_classify): ...this. Return more information.
7575 * doublest.h (enum float_kind): New.
7576 (floatformat_is_nan): Replace prototype...
7577 (floatformat_classify): ...with this one.
7578 * valprint.c (print_floating): Use floatformat_classify. Handle
7581 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7583 * README: Mention ISO C library requirement.
7585 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7587 * Makefile.in (SFILES): Remove nlmread.c.
7588 (COMMON_OBS): Remove nlmread.o.
7589 (nlmread.o): Delete rule.
7590 * README: Delete reference to remote-st.c.
7591 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
7592 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
7594 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
7595 (_initialize_i386_tdep): Do not reference them.
7596 * nlmread.c: Delete file.
7597 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
7598 * target.c: Doc update.
7599 * thread.c: Delete commented include.
7600 * config/alpha/tm-alpha.h: Doc update.
7602 2007-03-30 Chris Dearman <chris@mips.com>
7604 * utils.c (string_to_core_addr): Comment typo.
7606 2007-03-30 Chris Dearman <chris@mips.com>
7608 * mips-tdep.c: Comment typo.
7610 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
7612 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
7613 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7614 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7615 * config/powerpc/nm-ppc64-linux.h: Remove file.
7616 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
7617 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
7618 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
7619 * infptrace.c (call_ptrace): Likewise.
7620 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
7621 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
7622 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
7623 (store_register): Likewise.
7625 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7627 * Makefile.in (varobj.o): Add missing dependency.
7629 2007-03-29 Michael Snyder <msnyder@access-company.com>
7631 * MAINTAINERS: Update my email address.
7633 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7635 Add support for exception handling with multiple versions of
7637 * ada-lang.c: Update general comments on how Ada exception catchpoints
7639 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
7640 (__gnat_raise_nodefer_with_msg): Delete.
7641 (ada_unhandled_exception_name_addr_ftype): New type.
7642 (exception_support_info): New type.
7643 (ada_unhandled_exception_name_addr): Add forward declaration.
7644 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7645 (default_exception_support_info): New constant.
7646 (exception_support_info_fallback): Likewise.
7647 (exception_info): New global variable.
7648 (ada_exception_support_info_sniffer): New function.
7649 (ada_executable_changed_observer): Likewise.
7650 (ada_unhandled_exception_name_addr_from_raise): Renamed from
7651 ada_unhandled_exception_name_addr.
7652 (ada_unhandled_exception_name_addr): Reimplement to match the
7653 latest Ada runtime implementation.
7654 (error_breakpoint_runtime_sym_not_found): Delete.
7655 (ada_exception_sym_name): Get the exception sym name from
7656 exception_info rather than hardcoding it.
7657 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
7658 Update error handling.
7659 * Makefile.in (ada-lang.o): Add dependency on observer.h.
7661 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7663 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
7664 (remote-st.o, uw-thread.o): Delete.
7665 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
7666 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7667 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
7668 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
7669 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
7670 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
7671 rs6000-*-lynxos* to an obsoletion stanza.
7672 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7673 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
7674 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
7675 i[34567]86-*-netware*.
7676 * NEWS: Mention deleted targets.
7678 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
7679 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
7680 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
7681 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
7682 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
7683 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
7684 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
7685 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
7686 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
7687 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
7688 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
7689 config/rs6000/tm-rs6000ly.h: Delete files.
7691 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7693 * defs.h (deprecated_registers_changed_hook): Delete declaration.
7694 * interps.c (clear_interpreter_hooks): Do not clear
7695 deprecated_registers_changed_hook.
7696 * regcache.c (registers_changed): Do not call it.
7697 * top.c (deprecated_registers_changed_hook): Do not define it.
7698 * mi/mi-interp.c (mi_command_loop): Do not clear it.
7699 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
7700 (tui_remove_hooks): Do not remove it.
7701 (tui_selected_frame_level_changed_hook): Check for negative level.
7702 Use get_selected_frame.
7703 (tui_registers_changed_hook): Deleted.
7705 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7707 * stabsread.c (add_undefined_type): Add extra parameter.
7708 Now handles nameless types separately.
7709 (struct nat): New type.
7710 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
7711 New static variables.
7712 (read_type): Update calls to add_undefined_type.
7713 (add_undefined_type_noname): New function.
7714 (add_undefined_type_1): Renames from add_undefined_type.
7715 (cleanup_undefined_types_noname): New function.
7716 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
7717 (cleanup_undefined_types): New handles nameless types separately.
7718 (_initialize_stabsread): Initialize our new static constants.
7720 2007-03-29 Denis Pilat <denis.pilat@st.com>
7722 * configure.ac: Test for signal.h.
7723 * configure, config.in: Regenerate.
7725 2007-03-29 Denis Pilat <denis.pilat@st.com>
7727 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
7728 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
7730 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
7732 * arm-wince-tdep.c: New.
7733 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
7734 (MT_CFLAGS): Delete.
7736 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
7737 solib-legacy.o, solib-svr4.o, and remove wince.o.
7738 * configure.tgt (arm*-*-mingw32ce*): Add.
7739 * signals/signals.c [HAVE_SIGNAL_H]: Check.
7740 (do_target_signal_to_host): Silence 'not used' warning.
7741 * config/arm/tm-wince.h: Remove.
7743 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
7745 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
7746 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
7748 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
7749 * config/ia64/tm-linux.h: Remove file.
7750 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
7751 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
7752 legacy_pc_in_sigtramp.
7753 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
7754 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
7755 Remove func_name argument.
7756 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
7758 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
7759 * target.c (update_current_target): Add to_have_steppable_watchpoint.
7760 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
7761 (HAVE_STEPPABLE_WATCHPOINT): Define.
7763 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
7764 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
7765 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
7766 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
7767 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
7768 target_insert_watchpoint, target_remove_watchpoint): Remove.
7769 (FETCH_INFERIOR_REGISTERS): Define.
7770 * ia64-linux-nat.c (ia64_register_addr): Make static.
7771 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
7772 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
7773 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
7774 (ia64_linux_stopped_data_address): Make static. Add target_ops.
7775 (ia64_linux_stopped_by_watchpoint): Make static.
7776 (ia64_linux_can_use_hw_breakpoint): New function.
7777 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
7778 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
7779 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
7781 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
7783 * linespec.c: Include language.h.
7784 (find_methods): Add language parameter. Call
7785 lookup_symbol_in_language. Pass language down.
7786 (add_matching_methods): Likewise. Call
7787 lookup_symbol_in_language.
7788 (add_constructors): Likewise.
7789 (find_method): Pass sym_class to collect_methods.
7790 (collect_methods): Add sym_class parameter. Pass language
7792 * symtab.c (lookup_symbol): Rename to ...
7793 (lookup_symbol_in_language): ... this. Add language
7794 parameter. Use passed language instead of current_language.
7795 (lookup_symbol): New as wrapper around
7796 lookup_symbol_in_language.
7797 (lookup_symbol_aux): Add language parameter. Use passed
7798 language instead of current_language.
7799 (search_symbols): Indent.
7800 * symtab.h (enum language): Forward declare.
7801 (lookup_symbol_in_language): Declare.
7802 (lookup_symbol): Update description.
7803 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
7804 * ada-lang.c (restore_language): Remove.
7805 (lookup_symbol_in_language): Remove.
7807 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
7809 * breakpoint.c (bpstat_num): Add int *num parameter.
7810 * breakpoint.h (bpstat_num): Likewise.
7811 * infcmd.c (continue_command): Adjust to new bpstat_num
7813 (program_info): Likewise.
7815 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7817 * config/sh/tm-sh.h: Remove file.
7818 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
7819 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
7820 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
7821 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
7823 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7825 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
7826 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
7827 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
7828 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
7829 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
7830 sequence if target_shortname is "remote".
7832 2007-03-27 Anton Blanchard <anton@samba.org>
7834 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
7835 instead of wordsize when looking for the LR in a stack frame.
7837 2007-03-27 Andreas Schwab <schwab@suse.de>
7838 Daniel Jacobowitz <dan@codesourcery.com>
7840 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
7841 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
7842 argument. Update all callers.
7843 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
7844 (dwarf2_frame_set_eh_frame_regnum): Rename to...
7845 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
7846 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
7847 (dwarf2_frame_set_adjust_regnum): ...this.
7848 (dwarf2_frame_eh_frame_regnum): Delete prototype.
7849 * rs6000-tdep.c: Include "dwarf2-frame.h".
7850 (rs6000_adjust_frame_regnum): Define.
7851 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
7852 Register rs6000_adjust_frame_regnum.
7854 * Makefile.in (rs6000-tdep.o): Update dependencies.
7856 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
7858 * Makefile.in: Add support for a "pdf" target.
7860 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
7862 * amd64-tdep.c (amd64_init_frame_cache): New function.
7863 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
7865 2007-03-26 Nigel Stephens <nigel@mips.com>
7866 Maciej W. Rozycki <macro@mips.com>
7868 * ui-out.c (ui_out_field_core_addr): Truncate address to
7869 TARGET_ADDR_BIT size before printing.
7871 2007-03-22 Nigel Stephens <nigel@mips.com>
7872 Maciej W. Rozycki <macro@mips.com>
7874 * remote-mips.c (mips_xfer_memory): Update prototype.
7876 2007-03-22 Joel Brobecker <brobecker@adacore.com>
7878 * symfile.h: #include "symtab.h"
7880 2007-03-22 Denis Pilat <denis.pilat@st.com>
7882 * utils.c (pagination_on_command, pagination_off_command):
7883 Remove useless prototypes.
7885 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
7888 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
7889 instead of TYPE_NAME for object base class name.
7892 2007-03-19 Kevin Buettner <kevinb@redhat.com>
7894 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
7895 Specify frame type in calls to frame_func_unwind().
7897 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
7899 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
7900 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
7901 (refine_prologue_limit): Delete.
7902 (skip_prologue): Don't call it. Use extract_unsigned_integer.
7903 Assume lim_pc is set. Correct check for incomplete prologues.
7904 Do not skip clobbers of the frame pointer.
7905 * symtab.c (skip_prologue_using_sal): Fail if there is only one
7908 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
7910 * frame.c (frame_pop): Check to see whether there's a frame to
7911 which we can pop first.
7913 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
7915 * MAINTAINERS (Write After Approval): Add myself.
7917 2007-03-09 Markus Deuling <deuling@de.ibm.com>
7919 * infrun.c (breakpoints_failed): Remove unnecessary variable.
7920 (handle_inferior_event): Remove unnecessary braces.
7921 * breakpoint.c (bpstat_what): Remove wrong comment.
7923 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
7925 * spu-tdep.c (spu_in_function_epilogue_p): New function.
7926 (spu_gdbarch_init): Install it.
7928 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7930 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
7931 object types, not 0.
7933 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7935 * spu-tdep.c (spu_frame_align): New function.
7936 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
7938 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7940 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
7941 (spu_software_single_step): Likewise.
7942 (spu_read_pc, spu_write_pc): New functions.
7943 (spu_gdbarch_init): Install them.
7945 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7947 * cli/cli-dump.c (struct callback_data): load_offset needs to
7948 have signed long type.
7950 2007-03-07 Joel Brobecker <brobecker@adacore.com>
7952 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
7953 Revert the previous change that had some unexpected side-effects
7955 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
7956 function to get the address of the calling instruction.
7958 2007-03-07 Denis Pilat <denis.pilat@st.com>
7960 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
7961 get_selected_frame by deprecated_safe_get_selected_frame.
7963 2007-03-02 Mark Kettenis <kettenis@gnu.org>
7965 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
7966 "gdb_string.h". Don't include "nbsd-tdep.h".
7967 (SIZEOF_STRUCT_REG): Remove.
7968 (SHNBSD_SIZEOF_GREGS): New.
7969 (shnbsd_supply_gregset, shnbsd_collect_gregset)
7970 (shnbsd_regset_from_core_section): New functions.
7971 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
7972 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
7973 shnbsd_supply_gregset, shnbsd_collect_gregset.
7974 (shnbsd_gregset): New variable.
7975 (shnbsd_init_abi): Set regset_from_core_section.
7976 (GDB_OSABI_NETBSD_CORE): New define.
7977 (shnbsd_core_osabi_sniffer): New function.
7978 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
7979 * Makefile.in (shnbsd-tdep.o): Update dependencies.
7980 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
7982 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
7984 2007-02-28 Joel Brobecker <brobecker@adacore.com>
7986 * gdbtypes.c (replace_type): Fix typo that caused us to not update
7987 length of the types referenced by the new type CV ring.
7989 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7991 * frame.c (frame_pop, frame_observer_target_changed): Call
7993 (flush_cached_frames): Rename to reinit_frame_cache and delete
7995 * frame.h (flush_cached_frames): Delete prototype and update comment.
7997 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
7998 reinit_frame_cache instead of flush_cached_frames. Do not call
7999 select_frame after reinit_frame_cache.
8000 * corelow.c (core_open): Likewise.
8001 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8002 * infrun.c (prepare_to_proceed, context_switch)
8003 (handle_inferior_event): Likewise.
8004 * linux-fork.c (fork_load_infrun_state): Likewise.
8005 * ocd.c (ocd_start_remote): Likewise.
8006 * remote-e7000.c (e7000_start_remote): Likewise.
8007 * remote-mips.c (device): Likewise.
8008 * thread.c (switch_to_thread): Likewise.
8009 * tracepoint.c (finish_tfind_command): Likewise.
8010 * gdbarch.c: Regenerated.
8012 2007-02-28 Jerome Guitton <guitton@adacore.com>
8013 Joel Brobecker <brobecker@adacore.com>
8015 * gdbtypes.c (check_typedef): Do not replace stub type if
8016 the resolved type is not defined in the same objfile.
8018 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8020 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8022 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8024 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8025 symbol for Ada units when the symbol is defined using 't' rather
8026 than 'Tt' as symbol descriptor.
8028 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8030 * config/mips/tm-nbsd.h: Delete file.
8031 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8032 * config/sh/tm-nbsd.h: Delete file.
8033 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8035 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8037 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8038 unused WRONG_PARAM value since it was recently deleted.
8040 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8042 * varobj.c (varobj_update): Free temporary vectors.
8044 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8046 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8047 * config/powerpc/tm-linux.h: Delete file.
8048 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8049 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8050 (TEXT_SEGMENT_BASE): Do not redefine.
8051 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8052 from config/rs6000/tm-rs6000.h.
8053 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8054 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8055 (TEXT_SEGMENT_BASE): Remove.
8056 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8057 (rs6000_in_solib_return_trampoline): Remove.
8058 (SKIP_TRAMPOLINE_CODE): Remove.
8059 (rs6000_skip_trampoline_code): Remove.
8060 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8061 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8062 (FP0_REGNUM): Remove.
8063 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8064 (rs6000_set_host_arch_hook): Remove.
8065 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8066 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8067 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8068 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8069 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8070 * rs6000-nat.c: Include "rs6000-tdep.h".
8071 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8072 (set_host_arch): Rename to ...
8073 (rs6000_create_inferior): ... this. Make public.
8074 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8075 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8076 (rs6000_create_inferior): Remove.
8077 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8078 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8079 set_gdbarch_in_solib_return_trampoline, and
8080 set_gdbarch_skip_trampoline_code.
8081 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8082 from config/rs6000/tm-rs6000.h.
8084 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8086 * buildsym.c (record_producer): Do nothing if no producer is provided.
8088 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8090 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8091 to check changelist is non-NULL. Call error if the frontend tries
8092 to update a non-root variable.
8094 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8096 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8098 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8099 (dwarf2_frame_sniffer): Update.
8100 (dwarf2_signal_frame_this_id): New function.
8101 (dwarf2_signal_frame_unwind): Use it.
8102 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8103 * frame.c (frame_func_unwind): Add this_type argument.
8104 (get_frame_func): Update.
8105 (frame_unwind_address_in_block): Add this_type argument and check it.
8107 (get_frame_address_in_block): Update.
8108 * frame.h (enum frame_type): Move higher in the file.
8109 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8112 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8113 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8114 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8115 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8116 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8117 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8118 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8119 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8120 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8121 frame_func_unwind and frame_unwind_address_in_block to specify
8122 the frame type. Use frame_unwind_address_in_block instead of
8123 frame_pc_unwind in sniffers.
8125 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8127 * frame.c (deprecated_selected_frame): Rename to...
8128 (selected_frame): ...this. Make static.
8129 (get_selected_frame, select_frame): Update.
8130 * frame.h (deprected_select_frame): Delete.
8131 (deprecated_safe_get_selected_frame): Update comments.
8133 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8134 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8135 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8136 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8137 tui/tui.c: Replace references to deprecated_selected_frame.
8139 2007-02-27 Fred Fish <fnf@specifix.com>
8141 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8142 directly decrement the stack pointer, accumulate their operand into
8143 the stack offset, and mark the function as not being frameless.
8145 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8147 * arch-utils.c (selected_byte_order): New.
8148 * arch-utils.h (selected_byte_order): New prototype.
8149 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8151 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8153 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8154 (default_symfile_offsets): Check VMA here. Update section VMAs.
8156 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8158 * remote.c (init_remote_state): Add special handling for placeholder
8161 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8163 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8164 (filenames_h): New variable.
8165 (clean): Clean up xml-builtin.c and stamp-xml.
8166 (arm-linux-nat.o): Update.
8167 * config/arm/linux.mh (TDEP_XML): Define.
8168 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8169 (arm_linux_has_wmmx_registers): New.
8170 (GET_THREAD_ID): Fix typo.
8171 (IWMMXT_REGS_SIZE): Define.
8172 (fetch_wmmx_regs, store_wmmx_regs): New.
8173 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8174 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8175 (super_xfer_partial, arm_linux_xfer_partial): New.
8176 (_initialize_arm_linux_nat): Use them.
8177 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8178 (xml_builtin_xfer_partial): New function.
8179 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8180 * NEWS: Update mention of iWMMXt support.
8182 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8184 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8185 if there are no FPA registers.
8186 (arm_dwarf_reg_to_regnum): New function.
8187 (arm_register_type, arm_register_name): Return minimal values for
8188 unsupported registers.
8189 (arm_register_sim_regno): Handle iWMMXt registers.
8190 (arm_gdbarch_init): Record missing FPA registers if indicated by
8191 a target description. Recognize iWMMXt registers. Only register
8192 "info float" for FPA. Use ARM_NUM_REGS. Register
8193 arm_dwarf_reg_to_regnum.
8194 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8196 (struct gdbarch_tdep): Add have_fpa_registers.
8197 * features/xscale-iwmmxt.xml: Update capitalization.
8198 * regformats/arm-with-iwmmxt.dat: Regenerated.
8200 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8202 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8204 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8206 * MAINTAINERS (mep): New target.
8208 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8210 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8212 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8213 (mep-tdep.o): New rule.
8214 * configure.tgt (mep-*-*): New target.
8215 * mep-tdep.c: New file.
8216 * config/mep/mep.mt: New file.
8218 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8220 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8221 BREAKPOINT_HIT and STOP_UNKNOWN.
8223 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8225 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8227 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8229 * gdb_expat.h (XMLCALL): Define if not already defined.
8231 2007-02-20 Andreas Schwab <schwab@suse.de>
8233 * Makefile.in (symfile.o): Update dependencies.
8235 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8237 * MAINTAINERS: Disable -Werror for cris simulator. Build
8238 sparc64-solaris2.10 instead of the broken sparc-elf.
8239 * solib-frv.c: Include "solib.h".
8240 * Makefile.in (solib-frv.o): Update.
8241 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8242 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8243 (xtensa_frame_this_id, xtensa_frame_prev_register)
8244 (xtensa_push_dummy_call): Use %p.
8246 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8248 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8249 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8250 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8251 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8252 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8253 (sparc-linux-tdep.o): Update.
8255 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8257 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8258 (xtensa_mask_t): Change mask field to be a separate array.
8259 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8260 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8261 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8262 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8263 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8264 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8265 (mask14, mask15): Rename to
8266 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8267 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8268 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8269 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8270 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8271 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8272 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8273 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8274 (xtensa_submask14, xtensa_submask15): New.
8275 (rmap): Follow strict aliasing rules doing static initialization.
8277 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8279 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8280 handling from here...
8281 (tdesc_register_type): ...to here.
8282 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8283 * features/arm-core.xml: Use code_ptr and data_ptr.
8285 2007-02-13 Denis Pilat <denis.pilat@st.com>
8287 * varobj.h (enum varobj_update_error): New enum.
8288 * varobj.c (struct varobj_root): Add is_valid member.
8289 (varobj_get_type): Check for invalid varobj.
8290 (varobj_get_attributes): Likewise.
8291 (variable_editable):Likewise.
8292 (varobj_update): Likewise. Use varobj_update_error.
8293 (new_root_variable): Set root varobj as valid by default.
8294 (varobj_invalidate): New function.
8295 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8296 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8297 Use varobj_update_error.
8299 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8302 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8303 Pascal language marker.
8304 * dwarf2read.c (set_cu_language): Likewise.
8306 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8308 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8309 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8310 instead of target_terminal_init since inferior_ptid isn't set yet.
8312 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8314 * MAINTAINERS (Write After Approval): Add myself.
8316 2007-02-09 Fred Fish <fnf@specifix.com>
8318 Based on work by Apple Computer, Inc.
8319 * event-top.c (async_request_quit): Call quit() whenever either
8320 quit_flag is set or immediate_quit is set.
8322 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8324 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8325 type to a pointer to const struct block.
8326 (ada_lookup_symbol_list): Don't cast away constness when calling
8327 remove_out_of_scope_renamings.
8329 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8331 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8332 address of 'filename'; it is always non null.
8334 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8336 * exec.c (add_to_section_table): Do not discard empty sections.
8338 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8340 * features/Makefile, features/arm-with-iwmmxt.xml,
8341 features/gdbserver-regs.xsl, features/number-regs.xsl,
8342 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8343 * regformats/arm-with-iwmmxt.dat: Generate.
8344 * NEWS: Mention iWMMXt.
8346 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8348 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8349 (xml-tdesc.o): Update.
8350 * xml-support.c: Add a comment.
8351 (gdb_xml_enums_boolean): New variable.
8352 (gdb_xml_parse_attr_enum): Use strcasecmp.
8353 * xml-support.h (gdb_xml_enums_boolean): Declare.
8354 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8355 next_regnum, and current_union.
8356 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8357 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8358 (field_attributes, union_children, reg_attributes, union_attributes)
8359 (vector_attributes, feature_attributes, feature_children): New.
8360 (target_children): Make static. Add <feature>.
8361 (tdesc_elements): Make static.
8362 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8363 (struct tdesc_feature, tdesc_feature_p): New types.
8364 (struct target_desc): Add features member.
8365 (struct tdesc_arch_data, tdesc_data): New.
8366 (target_find_description): Clarify error message. Warn about
8367 ignored register descriptions.
8368 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8369 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8370 (tdesc_data_cleanup, tdesc_numbered_register)
8371 (tdesc_numbered_register_choices, tdesc_find_register)
8372 (tdesc_register_name, tdesc_register_type)
8373 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8374 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8375 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8376 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8377 (tdesc_create_feature, tdesc_record_type): New.
8378 (free_target_description): Free features.
8379 (_initialize_target_descriptions): Initialize tdesc_data.
8380 * arch-utils.c (default_remote_register_number): New.
8381 * arch-utils.h (default_remote_register_number): New prototype.
8382 * target-descriptions.h (set_tdesc_pseudo_register_name)
8383 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8384 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8385 (tdesc_numbered_register, tdesc_numbered_register_choices)
8386 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8387 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8388 (tdesc_create_reg): Declare.
8389 * gdbarch.sh (remote_register_number): New entry.
8390 * gdbarch.c, gdbarch.h: Regenerate.
8391 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8392 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8394 * arm-tdep.c (arm_register_aliases): New.
8395 (arm_register_name_strings): Rename to...
8396 (arm_register_names): ...this. Make const. Delete the old version.
8397 (current_option, arm_register_byte): Delete.
8398 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
8399 (value_of_arm_user_reg): New.
8400 (arm_gdbarch_init): Verify any described registers. Call
8401 tdesc_use_registers. Don't use arm_register_byte. Create aliases
8402 for standard register names.
8403 (_initialize_arm_tdep): Do not adjust arm_register_names.
8404 * user-regs.c (struct user_reg): Add baton member.
8405 (append_user_reg, user_reg_add_builtin, user_regs_init)
8406 (user_reg_add, value_of_user_reg): Use a baton for user
8408 * std-regs.c: Update.
8409 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8410 (user_reg_add): Add baton argument.
8411 * NEWS: Mention target description register support.
8412 * features/arm-core.xml, features/arm-fpa.xml: New.
8413 * eval.c (evaluate_subexp_standard): Allow ptype $register
8414 when the program is not running.
8416 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
8418 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
8420 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8422 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8423 info->disassembler_options to "any".
8425 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8427 * varobj.c (install_new_value): Only call value_get_print_value
8430 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8432 Reported by timeless@gmail.com:
8433 * gdb/target.c (target_flash_erase): Do not return void value.
8434 (target_flash_done): Likewise.
8435 * gdb/cli/cli-cmds.c (source_command): Likewise.
8437 2007-02-08 Fred Fish <fnf@specifix.com>
8439 Based on work by Apple Computer, Inc.
8440 * event-top.c (handle_sigint): Set quit_flag.
8441 (async_request_quit): Don't set quit_flag. Avoid calling quit()
8442 if quit_flag has already been reset.
8444 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8446 * ser-mingw.c (pipe_windows_close): Move variable initialization back
8449 2007-02-08 Fred Fish <fnf@specifix.com>
8451 * defs.h (request_quit): Remove declaration.
8452 * utils.c (request_quit): Remove definition.
8454 2007-02-08 Joel Brobecker <brobecker@gnat.com>
8455 Jan Kratochvil <jan.kratochvil@redhat.com>
8456 Daniel Jacobowitz <dan@codesourcery.com>
8458 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8459 (skip_prologue): Allow bl->blrl used by PIC code.
8461 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8462 Daniel Jacobowitz <dan@codesourcery.com>
8464 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8465 initialize tmp_obstack.
8466 * p-valprint.c (pascal_object_print_value_fields)
8467 (pascal_object_print_value): Likewise.
8469 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8471 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8473 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8475 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8476 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8478 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8480 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8482 (tdesc_parse_xml): Cache expanded descriptions.
8484 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8486 * Makefile.in (XMLFILES): New.
8487 (COMMON_OBS): Add xml-builtin.o.
8488 (xml-builtin.c, stamp-xml): New rules.
8489 (xml-tdesc.o): Update.
8490 * features/feature_to_c.sh: New file.
8491 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8492 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8493 (gdb_xml_start_element): Initialize scope after possibly reallocating
8494 scopes. Move cleanup later. Handle the XInclude description
8496 (gdb_xml_end_element): Only parse the body if there is a current element.
8497 Call XML_DefaultCurrent if there is no element.
8498 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8499 (struct xinclude_parsing_data, xinclude_start_include)
8500 (xinclude_end_include, xml_xinclude_default)
8501 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8502 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8503 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8504 * xml-support.h (xml_fetch_another, xml_process_xincludes)
8505 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8506 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
8507 XInclude directives. Use the compiled in DTD.
8508 (fetch_xml_from_file): Add baton argument. Treat it as a containing
8509 directory name. Do not warn here.
8510 (file_read_description_xml): Update call. Warn here instead. Pass
8512 (fetch_available_features_from_target): New.
8513 (target_read_description_xml): Use it.
8514 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
8516 * features/xinclude.dtd: New file.
8518 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8520 * linux-thread-db.c (check_for_thread_db): Return early if we have
8521 no libthread_db support.
8523 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8525 * mi/mi-parse.h: Include <sys/time.h>.
8527 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
8529 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
8530 instead of print_variable_value to print values.
8532 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8534 * mi/mi-main.c: Numerous formatting changes.
8535 (mi_cmd_data_write_register_values): Replace clause inadvertantly
8536 removed in my previous change.
8538 2007-02-03 Eli Zaretskii <eliz@gnu.org>
8540 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
8541 Use 1000000L instead of 1000000.
8543 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8545 Based on work by Apple Computer, Inc.
8547 * configure.ac: Test for sys/resource.h and getrusage.
8548 * configure, config.in: Regenerate.
8550 * mi/mi-main.c: Include <sys/resource.h> if present.
8551 (rusage): Declare if HAVE_GETRUSAGE.
8552 (current_command_ts, do_timings): New static variables.
8553 (timestamp, print_diff_now, print_diff, timeval_diff):
8554 New static timing functions.
8555 (mi_cmd_enable_timings): New function for new MI command.
8556 (captured_mi_execute_command, mi_execute_async_cli_command):
8557 Call timing functions.
8559 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
8562 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
8564 * mi/mi-parse.h: (mi_timestamp): New structure.
8565 (mi_parse): Add mi_timestamp* member.
8567 2007-02-02 Denis Pilat <denis.pilat@st.com>
8569 * thread.c (make_cleanup_restore_current_thread): New function.
8570 (info_threads_command): Use of make_cleanup_restore_current_thread
8571 to restore the current thread and the selected frame.
8572 (restore_selected_frame): New function.
8573 (struct current_thread_cleanup): Add frame_id field.
8574 (do_restore_current_thread_cleanup): Add restoring of the selected
8576 (make_cleanup_restore_current_thread): Likewise.
8577 (thread_apply_all_command): backup the selected frame while
8578 entering the function and restore it at exit.
8579 (thread_apply_command): Likewise.
8581 2007-02-02 Denis Pilat <denis.pilat@st.com>
8583 * MAINTAINERS (Write After Approval): Add myself to the list.
8585 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8587 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
8588 (m32r_store_register): Ditto.
8590 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
8592 * ser-mingw.c (pipe_windows_open)
8593 (pipe_windows_read, pipe_windows_write): Declare
8594 variables at the top of the function.
8596 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8598 * doublest.c (floatformat_from_length): Use the right element from
8599 gdbarch floatformats.
8600 (floatformat_from_type, extract_typed_floating)
8601 (store_typed_floating): Likewise.
8602 * doublest.h: Remove declarations for undefined floatformat arrays.
8603 * gdbarch.sh (float_format, double_format, long_double_format): Change
8605 (pformat): Update for pairs.
8606 * gdbarch.c, gdbarch.h: Regenerated.
8607 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
8608 (floatformats_ieee_double_littlebyte_bigword)
8609 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
8610 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
8611 (floatformats_vax_d): New variables.
8612 (builtin_type_ieee_single, builtin_type_ieee_double)
8613 (builtin_type_arm_ext, builtin_type_ia64_spill)
8614 (builtin_type_ia64_quad): Replace arrays with individual types.
8615 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
8616 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
8617 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
8618 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
8619 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
8620 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
8621 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
8622 unused and endian-specific types.
8623 (recursive_dump_type): Update for floatformat pairs.
8624 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
8625 (build_gdbtypes): Use build_flt.
8626 (_initialize_gdbtypes): Update set of initialized types.
8627 * gdbtypes.h: Update declarations to match gdbtypes.c.
8628 (struct main_type): Store a pointer to two floatformats.
8629 * arch-utils.c (default_float_format, default_double_format): Delete.
8630 * arch-utils.h (default_float_format, default_double_format): Delete.
8632 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8633 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
8634 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
8635 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
8636 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
8638 2007-01-29 Joel Brobecker <brobecker@adacore.com>
8640 * target.c (maintenance_print_target_stack): New function.
8641 (initialize_targets): Add new "maintenance print target-stack"
8644 2007-01-28 Mark Kettenis <kettenis@gnu.org>
8646 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
8648 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
8650 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
8651 (struct dwarf2_loclist_baton): Likewise.
8653 2007-01-27 Eli Zaretskii <eliz@gnu.org>
8655 * cli/cli-script.c: Include breakpoint.h.
8656 (build_command_line): Require arguments only for if and while
8658 (get_command_line, execute_user_command, execute_control_command):
8659 Fix wording of warning messages.
8660 (print_command_lines): Print breakpoint commands.
8661 (execute_control_command): Call commands_from_control_command to
8662 handle the `commands' command inside a body of a flow-control
8664 (read_next_line): Recognize the `commands' command and build a
8665 command line structure for it.
8666 (recurse_read_control_structure, read_command_lines): Handle
8667 `commands' similarly to `if' and `while'.
8669 * breakpoint.c (get_number_trailer): Document the special meaning
8670 of NULL as the first argument PP.
8671 (commands_from_control_command): New function.
8673 * breakpoint.h (commands_from_control_command): Add prototype.
8675 * defs.h (commands_control): New enumerated value for enum
8676 command_control_type.
8678 2007-01-26 Joel Brobecker <brobecker@adacore.com>
8680 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
8681 (ada_exception_sal): Update accordingly.
8683 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8685 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
8686 * NEWS: Describe CHAR array vs. string identifcation rules.
8688 2007-01-25 Paul Brook <paul@codesourcery.com>
8690 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
8692 2007-01-24 Jim Blandy <jimb@codesourcery.com>
8694 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
8695 expression is empty, bother to return the 'optimized out' value we
8696 construct. (Thanks to Carl Burch.)
8698 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8700 * varobj.c (c_value_of_root, c_value_of_child)
8701 (cplus_describe_child): Don't call release_value.
8703 2007-01-24 Thiemo Seufer <ths@mips.com>
8705 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
8708 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8710 Refactor getting children name, value and type access
8712 * varobj.c (get_type_deref): Remove.
8713 (adjust_value_for_child_access): New.
8714 (c_number_of_children): Use the above.
8715 (c_describe_child): Likewise.
8716 (enum accessibility): New.
8717 (match_accessibility): New function.
8718 (cplus_describe_child): New function.
8719 (cplus_name_of_child, cplus_value_of_child)
8720 (cplus_type_of_child): Reimplement in terms
8721 of cplus_describe_child.
8722 (cplus_number_of_children): Use
8723 adjust_value_for_child_access.
8725 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8727 Fix computation of the 'editable' attribute and
8728 value changeability for for references.
8729 * varobj.c (get_value_type): New function.
8730 (c_variable_editable): Use get_value_type.
8731 (varobj_value_is_changeable): Likewise.
8733 2007-01-24 Joel Brobecker <brobecker@adacore.com>
8735 * source.c (find_and_open_source): Try rewriting the source
8736 path inside filename if dirname is NULL.
8738 2007-01-24 Joel Brobecker <brobecker@adacore.com>
8740 * dwarf2read.c (add_partial_symbol): Create an extra partial
8741 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
8742 (new_symbol): Likewise for symbols.
8744 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
8746 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
8748 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
8750 * value.c (value_primitive_field): Copy the full 'location'
8751 contents, instead of assuming that copying ADDRESS will
8752 bring over everything in the union. Remove obsolete comment.
8754 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
8756 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
8757 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
8758 (m32c_m16c_pointer_to_address): Separate code from declarations.
8760 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
8762 * target.c (update_current_target): Correct typo.
8764 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
8766 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
8769 2007-01-11 Andrew Cagney <cagney@redhat.com>
8770 Daniel Jacobowitz <dan@codesourcery.com>
8771 Jan Kratochvil <jan.kratochvil@redhat.com>
8773 * dwarf2-frame.c (execute_cfa_program): New support of
8774 `DW_CFA_GNU_negative_offset_extended'.
8776 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
8778 * NEWS: Mention flash support for "load" and new remote packets.
8780 2007-01-21 Markus Deuling <deuling@de.ibm.com>
8782 * breakpoint.c (delete_command): Skip redundant loop iterations.
8784 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
8786 * gdbarch.sh (register_type): Update comment.
8787 * gdbarch.h: Regenerated.
8788 * arch-utils.c (generic_register_size): Call register_type.
8789 * ia64-tdep.c (ia64_extract_return_value): Likewise.
8790 * m32c-tdep.c (check_for_saved): Likewise.
8791 * mips-tdep.c (mips_print_register, print_gp_register_row)
8792 (mips_print_registers_info): Likewise.
8793 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
8795 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
8796 (sh64_do_register, sh64_print_register)
8797 (sh64_media_print_registers_info): Likewise.
8798 * tui/tui-regs.c (tui_register_format): Likewise.
8800 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
8802 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
8804 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
8805 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
8806 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
8807 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8808 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
8809 (make_symbol_completion_list): Likewise.
8811 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8812 Daniel Jacobowitz <dan@codesourcery.com>
8814 * buildsym.c (end_symtab): Use preallocated symtab if available.
8815 Fill in SYMBOL_SYMTAB.
8816 * buildsym.h (struct subfile): Add symtab member.
8817 * dwarf2read.c (struct dwarf2_cu): Add line_header.
8818 (struct file_entry): Add symtab.
8819 (free_cu_line_header): New function.
8820 (read_file_scope): Use it. Save line_header in the cu. Process
8822 (add_file_name): Initialize new symtab member.
8823 (dwarf_decode_lines): Create symtabs for included files.
8824 (new_symbol): Set SYMBOL_SYMTAB.
8825 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
8826 (search_symbols): Likewise.
8827 * symtab.h (struct symbol): Add symtab member.
8828 (SYMBOL_SYMTAB): Define.
8830 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
8832 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
8834 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
8836 * arch-utils.c (show_endian): Correct reversed condition.
8838 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8840 * MAINTAINERS (Write After Approval): Add myself.
8842 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
8843 Vladimir Prus <vladimir@codesourcery.com>
8845 Fix 'selected frame' varobjs.
8846 * varobj.c (struct varobj): Remove the error field.
8847 (varobj_set_value): Don't check var->error.
8848 (install_new_value): Don't set var->error.
8849 (varobj_update): Always pass the new value
8850 of the root via install_new_value.
8851 (create_child): Don't set error field.
8852 (new_variable): Likewise.
8853 (c_value_of_root): Always reevaluate the value
8854 of selected frame varobjs in the selected frame.
8855 Don't call reinit_frame_cache.
8857 2007-01-15 Joel Brobecker <brobecker@adacore.com>
8859 * source.c (_initialize_source): Improve the help text of
8860 the substitute-path commands.
8862 2007-01-14 Mark Kettenis <kettenis@gnu.org>
8864 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
8865 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
8866 (frv_skip_prologue): Remove prototypes.
8867 (frv_adjust_breakpoint_address): Renamed from
8868 frv_gdbarch_adjust_breakpoint_address.
8869 (frv_gdbarch_init): Adjust.
8871 2007-01-13 Mark Kettenis <kettenis@gnu.org>
8873 * gdbarch.sh (deprecated_extract_return_value)
8874 (deprecated_store_return_value): Remove.
8875 (extract_return_value, store_return_value): Remove default values.
8876 * gdbarch.c, gdbarch.h: Regenerate.
8877 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
8878 (legacy_store_return_value): Remove.
8879 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
8882 * mi/mi-main.c: Remove obsolete comment.
8884 * regcache.c, regcache.h (deprecated_register_bytes)
8885 (deprecated_read_register_bytes)
8886 (deprecated_write_register_bytes): Remove.
8888 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
8889 Don't forget to move destination pointer.
8891 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8893 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
8895 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
8897 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
8898 past entry function with recent newlib.
8900 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
8902 * gdb.texinfo (GDB/MI Variable Objects): Improve the
8903 introduction. Specify -var-update more exactly.
8905 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
8907 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
8909 2007-01-10 Jim Blandy <jimb@codesourcery.com>
8911 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
8912 the Global Maintainers' invitation to be a global maintainer.
8914 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
8916 * infrun.c (singlestep_pc): New variable.
8917 (resume): Set singlestep_pc.
8918 (context_switch): Add a debugging message. Flush the frame cache.
8919 (handle_inferior_event): Add debugging messages. Handle thread
8920 hops when a software single step has completed. Let context_switch
8921 handle flushing the frame cache.
8923 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8925 * NEWS: Mention target descriptions, "set tdesc filename",
8926 "unset tdesc filename", "show tdesc filename", and
8927 qXfer:features:read.
8928 * arch-utils.c (choose_architecture_for_target): New function.
8929 (gdbarch_info_fill): Call it.
8930 * target-descriptions.c (struct property): Make members non-const.
8931 (struct target_desc): Add arch member.
8932 (target_description_filename): New variable.
8933 (target_find_description): Try via XML first.
8934 (tdesc_architecture): New.
8935 (free_target_description, make_cleanup_free_target_description): New.
8936 (set_tdesc_property): Call xstrdup.
8937 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
8938 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
8939 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
8940 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
8941 * target-descriptions.h (tdesc_architecture)
8942 (make_cleanup_free_target_description, set_tdesc_architecture): New
8944 * Makefile.in (SFILES): Add xml-tdesc.c.
8945 (COMMON_OBS): Add xml-tdesc.o.
8946 (target-descriptions.o): Update.
8947 (xml-tdesc.o): New rule.
8948 * xml-tdesc.c, xml-tdesc.h: New files.
8949 * remote.c (PACKET_qXfer_features): New enum.
8950 (remote_protocol_features): Add qXfer:features:read.
8951 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
8952 (_initialize_remote): Register qXfer:features:read.
8953 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
8954 * features/gdb-target.dtd: New file.
8956 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8958 * copyright.sh: Clarify error.
8960 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8962 * symtab.c (matching_bfd_sections): Fix VMA matching for
8965 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8967 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
8970 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8972 Updated copyright notices for most files.
8974 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8976 * copyright.sh (prunes): Add step-line.inp and step-line.c.
8978 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8980 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
8982 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
8984 * configure, config.in: Regenerate.
8985 * defs.h (debug_file_directory): Declare.
8986 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
8987 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
8988 relocate it if DEBUGDIR_RELOCATABLE.
8989 * symfile.c (debug_file_directory): Make non-static.
8990 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
8991 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
8992 (_initialize_symfile): Don't initialize debug_file_directory here.
8994 2007-01-09 Jim Blandy <jimb@codesourcery.com>
8996 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
8999 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9001 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9002 frame_unwind_register to recurse.
9003 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9004 (alpha_heuristic_frame_prev_register): Likewise.
9005 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9006 * m32c-tdep.c (m32c_prev_register): Likewise.
9007 * frame.c (frame_register_unwind_location): Remove FIXME.
9009 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9010 Eli Zaretskii <eliz@gnu.org>
9012 * copyright.sh: New file.
9014 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9016 * configure.ac: Check for XML_StopParser.
9017 * xml-support.c (gdb_xml_body_text): Check for an error.
9018 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9019 (gdb_xml_end_element_wrapper): Likewise.
9020 * config.in, configure: Regenerated.
9022 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9024 * varobj.c (install_new_value): Always update print_value.
9025 (value_get_print_value): Immediately return NULL for missing
9028 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9030 * configure.ac: Tighten pattern for extracting value of
9031 DEPRECATED_TM_FILE from the target makefile fragment.
9032 * configure: Regenerated.
9034 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9036 * linux-nat.c (struct simple_pid_list): Add status.
9037 (add_to_pid_list): Record the PID's status.
9038 (linux_record_stopped_pid): Likewise. Make static.
9039 (pull_pid_from_list): Return the saved status.
9040 (linux_nat_handle_extended): Deleted.
9041 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9042 Make static. Handle non-SIGSTOP for a new thread's first signal.
9043 (flush_callback): Handle unexpected pending signals.
9044 (linux_nat_wait): Update calls to changed functions.
9045 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9046 Remove prototypes for newly static functions.
9048 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9050 * gdbarch.sh (value_from_register): New gdbarch function.
9051 * gdbarch.c, gdbarch.h: Regenerate.
9052 * findvar.c (default_value_from_register): New function.
9053 (value_from_register): Use gdbarch_value_from_register.
9054 * value.h (default_value_from_register): Declare.
9055 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9056 spu_value_to_register): Remove.
9057 (spu_value_from_register): New function.
9058 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9059 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9060 Call set_gdbarch_value_from_register.
9061 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9062 s390_value_to_register): Remove.
9063 (s390_value_from_register): New function.
9064 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9065 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9066 Call set_gdbarch_value_from_register.
9068 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9070 * NEWS: Add "set sysroot" and "show sysroot".
9071 * solib.c (solib_absolute_prefix): Delete. Replace
9072 all uses with gdb_sysroot.
9073 (_initialize_solib): Add "set sysroot" and "show sysroot".
9074 Make "solib-absolute-prefix" an alias to it.
9076 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9078 * frame.c (get_frame_register_bytes): New function.
9079 (put_frame_register_bytes): Likewise.
9080 * frame.h (get_frame_register_bytes): Declare.
9081 (put_frame_register_bytes): Likewise.
9082 * findvar.c (value_from_register): Always construct lval_register
9083 values. Use get_frame_register_bytes.
9084 * valops.c (value_assign): Use get_frame_register_bytes and
9085 put_frame_register_bytes.
9087 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9089 * MAINTAINERS: Update Stan Shebs' email address.
9091 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9093 * ada-lang.c (is_known_support_routine): Improve the implementation.
9095 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9097 * ada-lang.c: Add include of source.h.
9098 (is_known_support_routine): Improve the check verifying that the file
9099 associated to this frame exists.
9100 * Makefile.in (ada-lang.o): Add dependency on source.h.
9102 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9104 * ax-general.c (ax_const_l): Select proper opcode for the given
9107 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9109 * varobj.c (c_value_of_root): Don't select frame if variable
9110 object is out of scope.
9112 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9114 * varobj.c (struct varobj): New member print_value.
9115 (install_new_value): Compare last printed value with current one
9116 instead of contents.
9117 (new_variable): Initialize var->print_value to NULL.
9118 (free_variable): Free var->print_value.
9119 (value_get_print_value): New function derived from
9120 c_value_of_variable.
9121 (c_value_of_variable): Use value_get_print_value.
9123 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9125 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9127 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9129 * NEWS: Add entries for new catch commands.
9131 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9133 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9134 (add_partial_symbol): Correct identification of external references.
9135 (process_structure_scope): Likewise.
9136 (read_partial_die): Handle DW_AT_byte_size attribute.
9138 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9140 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9142 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9144 * varobj.c (get_type_deref): Fix variable objects for references to
9147 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9149 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9152 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9154 * memory-map.c (struct_memory_map_parsing_data): Remove most
9155 members. Make property_name an array.
9156 (free_memory_map_parsing_data, memory_map_start_element)
9157 (memory_map_end_element, memory_map_character_data): Delete.
9158 (memory_map_start_memory, memory_map_end_memory)
9159 (memory_map_start_property, memory_map_end_property): New functions.
9160 (property_attributes, memory_children, memory_type_enum)
9161 (memory_attributes, memory_map_children, memory_map_elements): New.
9162 (parse_memory_map): Rewrite.
9163 * xml-support.c (debug_xml): New.
9164 (xml_get_required_attribute, xml_get_integer_attribute)
9165 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9167 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9168 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9169 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9170 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9171 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9172 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9173 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9175 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9176 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9177 (enum gdb_xml_element_flag, struct gdb_xml_element)
9178 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9179 (struct gdb_xml_enum): New.
9180 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9181 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9182 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9183 (xml_get_required_attribute, xml_get_integer_attribute)
9184 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9185 * Makefile.in (xml_support_h, xml-support.o): Update.
9187 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9189 * Makefile.in (eval.o): Update dependencies.
9190 * eval.c: Include "ui-out.h" and "exceptions.h".
9191 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9192 Use value_zero if an error occurs when avoiding side effects.
9193 * varobj.c (c_value_of_root): Initialize new_val.
9195 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9197 * varobj.c (varobj_list_children): Stop if the number of children is
9199 (c_number_of_children):
9201 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9203 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9204 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9205 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9206 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9207 sizeof, instead of hardcoded constants.
9209 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9211 * CONTRIBUTE: Use sourceware.org.
9213 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9215 * buildsym.c (start_subfile): Handle producer.
9216 (record_producer): New function.
9217 * buildsym.h (struct subfile): Include producer.
9218 (record_producer): New prototype.
9219 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9220 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9221 armcc_cfa_offsets_reversed.
9222 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9223 (dwarf2_frame_find_quirks): New function.
9224 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9225 (decode_frame_entry_1): Record the CIE version. Record the
9226 augmentation. Skip armcc augmentations.
9227 * dwarf2read.c (read_file_scope): Save the producer.
9228 * symtab.h (struct symtab): Rename unused version member to
9231 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9233 * configure.ac (build_warnings): Use -Wall and
9234 -Wdeclaration-after-statement.
9235 * configure: Regenerated.
9237 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9239 Simplify access to variours properties of child
9240 variable objects in C.
9241 * varobj.c (value_struct_element_index): New function.
9242 (c_describe_child): New function.
9243 (c_name_of_child, c_value_of_child)
9244 (c_type_of_child): Rewrite to use c_describe_child.
9246 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9249 * varobj.c: Include "vec.h".
9250 (varobj_p): New typedef, declare vector of those.
9251 (struct varobj): Use vector for the 'children' member.
9252 (child_exists): Remove.
9253 (save_child_in_parent): Remove.
9254 (remove_child_from_parent): Remove.
9255 (struct varobj_child): Remove.
9256 (struct vstack): Remove.
9257 (vpush, vpop): Remove.
9258 (varobj_list_children): Adjust to work work vector.
9259 (varobj_update): Likewise. Use vectors for
9260 working stack and result.
9261 (delete_variable_1): Likewise.
9262 * Makefile.in (varobj.o): Update dependencies.
9264 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9266 Port from Apple's version.
9268 * varobj.c (type_changeable): Rename to...
9269 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9270 (is_root_p): New function. Use it everywhere.
9272 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9274 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9277 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9279 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9281 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9283 * hpread.c (hpread_type_lookup): Fix compilation failure.
9285 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9287 * NEWS: New port to S+core.
9288 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9291 * Makefile.in: Add dependencies for S+core files.
9292 * configure.tgt (score*, score-*-*): Add S+core target.
9293 * config/score/embed.mt: New file.
9294 * score-tdep.c: New file.
9295 * score-tdep.h: New file.
9297 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9299 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9300 the appropriate type rather than a bogus void type.
9302 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9304 * ada-lang.h (ada_find_printable_frame): Remove.
9305 (ada_exception_catchpoint_p, ada_decode_exception_location)
9306 (ada_decode_assert_location): Add declaration.
9307 * ada-lang.c: Add include of annotate.h and valprint.h.
9308 (exception_catchpoint_kind): New enum.
9309 (function_name_from_pc, is_known_support_routine)
9310 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9311 (ada_exception_name_addr_1, ada_exception_name_addr)
9312 (print_it_exception, print_one_exception, print_mention_exception)
9313 (print_it_catch_exception, print_one_catch_exception)
9314 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9315 (print_it_catch_exception_unhandled)
9316 (print_one_catch_exception_unhandled)
9317 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9318 (print_one_catch_assert, print_mention_catch_assert)
9319 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9320 (ada_get_next_arg, catch_ada_exception_command_split)
9321 (ada_exception_sym_name, ada_exception_sym_name)
9322 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9323 (ada_parse_catchpoint_condition, ada_exception_sal)
9324 (ada_decode_exception_location)
9325 (ada_decode_assert_location): New function.
9326 (catch_exception_unhandled_breakpoint_ops): New global variable.
9327 (catch_assert_breakpoint_ops): New global variable.
9328 * breakpoint.c: Add include of ada-lang.h.
9329 (print_one_breakpoint): Do not print the condition for Ada
9330 exception catchpoints.
9331 (create_ada_exception_breakpoint): New function.
9332 (catch_ada_exception_command, catch_assert_command): New function.
9333 (catch_command_1): Add support for the new "catch exception" and
9334 "catch assert" commands.
9335 (_initialize_breakpoint): Add help description for the new catch
9337 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9339 (breakpoint.o): Add dependency on ada-lang.h.
9341 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9343 * coffread.c (cs_to_section): If bfd_section is found, always
9344 return its section index.
9345 (coff_symtab_read): Determine the minimal_symbol_type using the
9348 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9349 Daniel Jacobowitz <dan@codesourcery.com>
9351 * Makefile.in (top.o): Update.
9352 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9353 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9354 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9356 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9358 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9360 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9361 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9363 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9365 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9366 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9367 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9368 greater than or equal to zero.
9369 * m2-typeprint.c (m2_array): Likewise.
9370 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9371 * gdbtypes.c (copy_type_recursive): Correct == typo.
9372 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9373 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9375 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9376 (default_macro_scope): Remove unused variable.
9377 * prologue-value.h (pv_area_find_reg): Don't name an argument
9379 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9380 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9382 (cleanup_sigint_signal_handler): Remove casts.
9383 * valprint.c (val_print): Use a volatile local for the modified
9385 * varobj.c (languages): Remove extra array dimension.
9386 (varobj_create): Correct access to languages array.
9387 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9389 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9390 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9391 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9392 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9393 (mi_cmd_data_write_memory): Likewise.
9394 * signals/signals.c (target_signal_to_string): Cast to int before
9396 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9399 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9401 * NEWS: Mention pointer to member improvements.
9402 * Makefile.in (gnu-v3-abi.o): Delete special rule.
9403 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9404 * ada-valprint.c (ada_print_scalar): Update for new type codes.
9405 * c-typeprint.c (c_print_type): Update for new type codes.
9406 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9407 (c_type_print_base): Likewise.
9408 (c_type_print_args): Rewrite.
9409 * c-valprint.c (c_val_print): Update for new type codes. Remove
9410 support for references to members. Treat methods like functions.
9411 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9412 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9413 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9414 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9415 (struct cp_abi_ops): Add corresponding members.
9416 * cp-valprint.c (cp_print_class_method): Delete.
9417 (cp_find_class_member): New function.
9418 (cp_print_class_member): Use it. Simplify support for bogus
9420 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9421 lookup_methodptr_type.
9422 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9423 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9424 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
9426 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
9427 references returned by user defined operators.
9428 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9429 (f_type_print_varspec_suffix): Remove support for member pointers.
9430 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9432 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9433 (lookup_methodptr_type): New.
9434 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9435 (recursive_dump_type): Update for new types.
9436 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9437 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9438 (lookup_memberptr_type, lookup_methodptr_type)
9439 (smash_to_memberptr_type): New prototypes.
9440 (smash_to_method_type): Formatting fix.
9441 (lookup_member_type, smash_to_member_type): Delete prototypes.
9442 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9443 Do not rely on debug information for the vptr or the method's
9444 enclosing type. Handle function descriptors for IA64.
9445 (gnuv3_virtual_fn_field): Rewrite using the new functions.
9446 (gnuv3_find_method_in, gnuv3_print_method_ptr)
9447 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9448 (gnuv3_method_ptr_to_value): New.
9449 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9450 * hpread.c (hpread_type_lookup): Update for new types.
9451 * infcall.c (value_arg_coerce): Likewise.
9452 * m2-typeprint.c (m2_print_type): Remove explicit support
9453 for member pointers.
9454 * m2-valprint.c (m2_val_print): Likewise.
9455 * p-typeprint.c (pascal_type_print_varspec_prefix)
9456 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9457 * p-valprint.c (pascal_val_print): Likewise.
9458 (pascal_object_print_class_method, pascal_object_print_class_member):
9460 * p-lang.h (pascal_object_print_class_method)
9461 (pascal_object_print_class_member): Delete prototypes.
9462 * stabsread.c (read_type): Update for new types.
9463 * typeprint.c (print_type_scalar): Likewise.
9464 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9465 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9466 argument. Construct a pointer to member if the address of a
9467 function or data member is requested.
9468 (value_cast_pointers): Don't modify the input value.
9469 (value_cast): Adjust pointer to member handling for new types.
9470 Allow null pointer to member constants. Don't modify the input
9472 (value_ind): Remove pointer to member check. Handle function
9473 descriptors for function pointers.
9474 (value_struct_elt, value_find_oload_method_list, check_field):
9475 Remove pointer to member checks.
9476 * value.c (unpack_long): Allow pointers to data members.
9477 (value_from_longest): Allow member pointers.
9478 * value.h (value_aggregate_elt): Add want_address.
9479 * varobj.c (c_variable_editable): Remove check for members.
9480 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9481 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9483 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9484 * c-lang.h (cp_print_class_method): Delete prototype.
9485 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9486 * mips-tdep.c (mips_gdbarch_init): Likewise.
9487 * gdbarch.c, gdbarch.h: Regenerated.
9489 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9491 * rs6000-tdep.c (rs6000_use_struct_convention)
9492 (rs6000_extract_return_value, rs6000_store_return_value)
9493 (rs6000_extract_struct_value_address): Remove.
9494 (rs6000_return_value): New function.
9495 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9496 store_return_value, deprecated_extract_struct_value_address and
9497 deprecated_use_struct_convention. Use rs6000_return_value
9500 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
9502 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9503 -display-disable, -display-enable, -display-insert and
9506 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9508 * breakpoint.c (remove_breakpoint): Remove dead code.
9510 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
9512 * varobj.c: Include block.h.
9513 (c_value_of_root): Check scope within nested statements.
9515 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9517 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
9518 regcache_cooked_write_signed instead of
9519 deprecated_write_register_bytes.
9521 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9523 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
9525 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9527 Followed the Start of New Year Procedure:
9528 * ChangeLog-2006: New file, containing all the entries for 2006.
9529 * ChangeLog: Removed all 2006 entries, and changed the reference
9530 to the previous ChangeLog to point to ChangeLog 2006.
9531 * top.c (print_gdb_version): Update copyright year.
9533 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9535 * Makefile.in (remote-sds.o): Remove.
9536 * remote-sds.c: Delete.
9538 For older changes see ChangeLog-2006.
9544 version-control: never