1 2007-09-18 Jerome Guitton <guitton@adacore.com>
3 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
4 (inf_ttrace_delete_dying_threads_callback): New function.
5 (inf_ttrace_resume): After resuming the execution, iterate over
6 the dying threads to delete them for the thread list.
7 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
8 mark the corresponding thread as dying instead of removing it
10 (inf_ttrace_thread_alive): return 0 for dying threads.
12 2007-09-17 Joel Brobecker <brobecker@adacore.com>
14 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
15 that return_frame is not null.
17 2007-09-17 Joel Brobecker <brobecker@adacore.com>
19 * solib-svr4.c: Add include of "auxv.h".
20 (enable_break): Use the AT_BASE auxiliary entry if available.
21 * Makefile.in (solib-svr4.o): Update dependencies.
23 2007-09-17 Joel Brobecker <brobecker@adacore.com>
25 * NEWS: Create a new section for the next release branch.
26 Rename the section of the current branch, now that it has
29 2007-09-17 Jerome Guitton <guitton@adacore.com>
31 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
32 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
34 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
36 * mi/mi-cmds.c (mi_cmds): Register -list-features.
37 * mi/mi-cmds.h (mi_cmd_list_features): New.
38 * mi/mi-main.c (mi_cmd_list_features): New.
40 2007-09-11 Joel Brobecker <brobecker@adacore.com>
42 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
43 * version.in: Bump version to 6.7.50-20070911-cvs.
45 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
47 * thread.c (free_thread): Do not delete the step resume breakpoint
50 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
52 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
53 * corelow.c (core_read_description): New.
54 (init_core_ops): Set to_read_description.
55 * gdbarch.sh: Add gdbarch_core_read_description.
56 * mips-linux-tdep.c (mips_linux_core_read_description): New.
57 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
58 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
59 (mips_register_g_packet_guesses): Use them.
60 (_initialize_mips_tdep): Initialize them.
61 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
62 * gdbarch.h, gdbarch.c: Regenerated.
64 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
66 * infrun.c (stepping_past_breakpoint): New global variable.
67 (stepping_past_breakpoint_ptid): Likewise.
68 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
69 Only switch threads if we need to single-step over a breakpoint hit
70 in the previously selected thread. If stepping, remember previous
71 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
72 switch_to_thread instead of copying its contents.
73 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
74 prepare_to_proceed returns true.
75 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
76 (context_switch): Call switch_to_thread.
77 (handle_inferior_event): Switch back to previous thread if requested
78 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
79 * gdbthread.h (switch_to_thread): Add prototype.
80 * thread.c (switch_to_thread): Make global.
82 2007-09-07 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
84 * p-valprint.c: Fix 7 ARI reported problems.
85 (pascal_val_print): Fix one operator at end of line issue.
86 Use paddress function to remove use of
87 deprecated_print_address_numeric function (2 times).
88 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
89 (pascal_value_print): Fix 3 operator at end of line issues.
91 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
94 * arm-tdep.c (arm_in_call_stub): Delete.
95 (arm_skip_stub): Handle from_arm and from_thumb stubs.
97 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
99 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
102 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
103 Jim Blandy <jimb@codesourcery.com>
105 * NEWS: Update description of string changes. Mention print/s.
106 * c-valprint.c (textual_element_type): New.
107 (c_val_print): Use it. Do not skip address printing for pointers
108 with a string format.
109 (c_value_print): Doc update.
110 * dwarf2read.c (read_array_type): Use make_vector_type.
111 * gdbtypes.c (make_vector_type): New.
112 (init_vector_type): Use it.
113 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
114 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
115 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
116 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
117 (make_vector_type): New.
118 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
119 Call the language print routine for string format.
120 (print_scalar_formatted): Call val_print for string format. Handle
121 unsigned original types for char format.
122 (validate_format): Do not reject string format.
123 * stabsread.c (read_type): Use make_vector_type.
124 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
126 2007-09-04 Michael Snyder <msnyder@access-company.com>
128 * expprint.c (print_subexp_standard): Check strchr for null.
129 * Makefile.in (expprint.o): Depend on gdb_assert.h.
131 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
133 * stabsread.c (patch_block_status): Guard against null.
134 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
136 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
138 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
139 in internal error message.
141 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
142 Daniel Jacobowitz <dan@codesourcery.com>
144 * infcmd.c (post_create_inferior): Update comment.
145 (run_command_1): Always call post_create_inferior with 0 as
148 * i386-cygwin-tdep.h: New.
149 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
150 (win32_xfer_shared_library): Make it extern.
152 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
154 (win32_so_ops): Delete.
155 (get_relocated_section_addrs): Delete.
156 (solib_symbols_add): Delete.
157 (register_loaded_dll): Delete.
158 (win32_make_so): New.
159 (handle_load_dll): Use win32_make_so.
160 (win32_free_so): Free the passed in so.
161 (win32_relocate_section_addresses): Delete.
162 (win32_solib_create_inferior_hook): Delete.
163 (handle_unload_dll): Don't add PE offset here. Free so with
164 win32_free_so instead of free_so.
165 (win32_special_symbol_handling): Delete.
166 (get_win32_debug_event): Remove unneeded calls. Set state to
167 TARGET_WAITKIND_LOADED on a dll unload.
168 (do_initial_win32_stuff): Clear cygwin_load_start and
170 (map_code_section_args): Delete.
171 (dll_code_sections_add): Delete.
172 (core_section_load_dll_symbols): Delete.
173 (win32_xfer_shared_libraries): New.
174 (win32_current_sos): Delete.
175 (win32_xfer_partial): New.
176 (open_symbol_file_object): Delete.
177 (in_dynsym_resolve_code): Delete.
178 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
179 of win32_ops. Remove win32_so_ops settings. Don't set
180 current_target_so_ops here.
182 * Makefile.in (i386_cygwin_tdep_h): New variable.
183 (i386-cygwin-tdep.o): Update dependencies.
184 (win32-nat.o): Update dependencies.
186 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
187 Daniel Jacobowitz <dan@codesourcery.com>
189 * gdbarch.sh (core_xfer_shared_libraries): New.
191 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
193 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
195 * xml-support.c (gdb_xml_parse): Debug output tweaks.
196 (xml_escape_text): New.
197 * xml-support.h (xml_escape_text): Declare.
199 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
200 * config/i386/cygwin.mt (TDEPFILES): ... here.
202 * win32-nat.c: (fetch_elf_core_registers): Delete.
203 (win32_elf_core_fn): Delete.
204 (_initialize_core_win32): Delete.
206 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
207 "xml-support.h" and "gdbcore.h".
208 (i386_win32_gregset_reg_offset): New.
209 (I386_WIN32_SIZEOF_GREGSET): New.
210 (i386_win32_regset_from_core_section): New.
211 (win32_xfer_shared_library): New.
212 (struct cpms_data): New.
213 (core_process_module_section): New.
214 (win32_core_xfer_shared_libraries): New.
215 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
216 gregset_num_regs, sizeof_gregset members of tdep. Register
217 regset_from_core_section and core_xfer_shared_libraries callbacks.
219 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
220 * gdbarch.h, gdbarch.c: Regenerate.
222 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
224 * corelow.c (core_xfer_partial): Pass writebuf to
225 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
227 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
229 * arm-tdep.h (arm_skip_stub): Declare.
230 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
232 (arm_pe_skip_trampoline_code): New function.
233 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
234 gdbarch_skip_trampoline_code callback.
235 * Makefile.in (arm-wince-tdep.o): Update dependencies.
237 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
239 * MAINTAINERS: Move Fred Fish to Past Maintainers.
241 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
243 * configure.ac: Add --with-expat.
244 * configure: Regenerated.
246 2007-09-03 Andreas Schwab <schwab@suse.de>
248 * configure.ac: Accept --with-system-readline.
249 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
250 * configure: Regenerate.
251 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
253 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
255 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
256 Daniel Jacobowitz <dan@codesourcery.com>
258 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
260 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
262 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
264 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
266 * top.c (print_gdb_version): Update for GPL version 3.
268 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
270 * NEWS: Mention the build-id .debug files verification.
272 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
274 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
276 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
278 * Makefile.in (symfile.o): Update dependencies.
279 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
280 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
281 (struct build_id): New structure.
282 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
283 (find_separate_debug_file): New variable BUILD_ID.
284 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
286 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
288 * varobj.c (struct varobj): Fix comment
289 for the type member not to lie when it can be
292 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
294 Implement -var-info-path-expression.
296 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
298 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
299 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
300 * varobj.c (struct varobj): New field 'path_expr'.
301 (c_path_expr_of_child, cplus_path_expr_of_child)
302 (java_path_expr_of_child): New.
303 (struct language_specific): New field path_expr_of_child.
304 (varobj_create): Initialize the path_expr field.
305 (varobj_get_path_expr): New.
306 (new_variable): Initialize the path_expr field.
307 (free_variable): Free the path_expr field.
308 (adjust_value_for_children_access): New parameter
310 (c_number_of_children): Adjust.
311 (c_describe_child): New parameter CFULL_EXPRESSION.
312 Compute full expression.
313 (c_value_of_child, c_type_of_child): Adjust.
314 (cplus_number_of_children): Adjust.
315 (cplus_describe_child): New parameter CFULL_EXPRESSION.
316 Compute full expression.
317 (cplus_name_of_child, cplus_value_of_child)
318 (cplus_type_of_child): Adjust.
319 * varobj.h (varobj_get_path_expr): Declare.
321 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
323 * mi/mi-cmd-var.c (print_varobj): If a varobj
324 type is NULL, don't try to print it.
326 2007-08-30 Alan Modra <amodra@bigpond.net.au>
328 * ppc-linux-nat.c (right_fill_reg): Delete.
329 (supply_gregset): Use ppc_supply_gregset.
330 (supply_fpregset): Use ppc_supply_fpregset.
331 (fill_gregset): Use ppc_collect_gregset.
332 (fill_fpregset): Use ppc_collect_fpregset.
333 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
334 (right_supply_register, ppc_linux_supply_gregset): Delete.
335 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
336 (ppc_linux_supply_fpregset): Delete.
337 (ppc_linux_collect_gregset): New function.
338 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
339 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
340 ppc_linux_supply_gregset, and ppc_collect_gregset.
341 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
342 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
343 (ppc_linux_regset_from_core_section): Update.
344 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
345 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
346 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
347 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
348 (ppcobsd_collect_gregset): Likewise.
349 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
350 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
351 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
352 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
353 (rs6000_aix64_reg_offsets): Likewise.
354 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
355 ppc_floating_point_unit_p.
356 (rs6000_aix_collect_regset): Similarly.
357 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
358 when regsize is larger than regcache register size.
359 (ppc_collect_reg): Similarly zero pad when regsize is larger than
360 regcache register size.
361 (ppc_greg_offset): New function, split out from..
362 (ppc_supply_gregset): ..here. Separate code handling all regs from
363 single reg case. Correct xer offset.
364 (ppc_fpreg_offset): New function, split out from..
365 (ppc_supply_fpregset): ..here. Separate code handling all regs from
367 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
368 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
369 a fp unit, instead return if no fp.
371 2007-08-29 Jim Blandy <jimb@codesourcery.com>
373 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
374 this code has not been compiled for two years.
376 2007-08-29 Michael Snyder <msnyder@access-company.com>
378 * event-top.c (gdb_readline2): Return after EOF.
380 2007-08-29 Joel Brobecker <brobecker@adacore.com>
382 * symtab.c: Remove a function that has been commented out 3 years ago.
384 2007-08-29 Randolph Chung <tausq@debian.org>
386 * hppa-tdep.c (hppa32_cannot_fetch_register)
387 (hppa64_cannot_fetch_register): New functions.
388 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
389 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
391 2007-08-28 Michael Snyder <msnyder@access-company.com>
393 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
394 check for null before calling check_typedef.
396 * NEWS: Mention Coverity bug fixes.
398 2007-08-27 Markus Deuling <deuling@de.ibm.com>
400 * spu-tdep.c (spu_pointer_to_address): New function.
401 (spu_integer_to_address): Likewise.
402 (spu_gdbarch_init): Add spu_pointer_to_address and
403 spu_integer_to_address to gdbarch.
405 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
407 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
409 2007-08-23 Joel Brobecker <brobecker@adacore.com>
411 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
412 that contains the GDB license.
413 * copying.awk: Adjust to the GPLv3 wording.
414 * copying.c: Regenerate.
416 2007-08-23 Joel Brobecker <brobecker@adacore.com>
418 * copying.awk: Protoization, and i18n markup.
420 2007-08-23 Joel Brobecker <brobecker@adacore.com>
422 * config/djgpp/djconfig.sh: Switch license to GPLv3.
423 * copyright.sh: Likewise.
424 * gdb-events.sh: Likewise.
425 * gdb_gcore.sh: Likewise.
426 * gdb_mbuild.sh: Likewise.
427 * gdbarch.sh: Likewise.
428 * observer.sh: Likewise.
429 * features/feature_to_c.sh: Likewise.
430 * regformats/regdat.sh: Likewise.
432 2007-08-23 Joel Brobecker <brobecker@adacore.com>
434 Switch the license of all .c files to GPLv3.
435 Switch the license of all .h files to GPLv3.
436 Switch the license of all .cc files to GPLv3.
438 2007-08-23 Joel Brobecker <brobecker@adacore.com>
440 * configure.ac: Switch license to GPLv3.
442 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
444 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
445 determine the file's FPU type.
447 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
449 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
450 (mips_n32n64_push_dummy_call): Always increment float_argreg along
451 with argreg. Use mips_n32n64_fp_arg_chunk_p.
453 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
455 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
457 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
458 (elf_lookup_lib_symbol): Fix formatting.
460 2007-08-21 Michael Snyder <msnyder@access-company.com>
462 * dbxread.c (read_dbx_symtab): Guard null deref.
465 * valops.c (find_overload_match): Guard against NULL.
467 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
469 * MAINTAINERS (Patch Champions): Remove self.
471 2007-08-21 Chris Smith <chris.smith@st.com>
473 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
476 2007-08-18 Michael Snyder <msnyder@access-company.com>
478 * stabsread.c (dbx_lookup_type): Memory leak.
480 * event-loop.c (delete_async_signal_handler): Move pointer null
481 test to before pointer dereference.
483 * ui-out.c (append_header_to_list): Possible cut and paste error.
485 * MAINTAINERS: white space tweak.
487 2007-08-17 Michael Snyder <msnyder@access-company.com>
489 * stack.c (print_frame): Memory leak.
491 * completer.c (filename_completer): Avoid memory leak.
492 Remove unnecessary nested block.
494 * c-exp.y (parse_number): Memory leak.
496 * completer.c (location_completer): Must free 'fn_list', except
497 in the one case where it is returned (as 'list').
499 * varobj.c (value_of_root): Memory leak.
501 * gdbtypes.h (virtual_base_list): Remove export decl.
502 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
503 (virtual_base_index): Memory leak.
504 (virtual_base_index_skip_primaries): Ditto.
506 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
508 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
509 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
510 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
511 (xtensa_read_register): New function.
512 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
513 (xtensa_insn_kind): New types.
514 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
515 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
516 (xtensa_verify_config, xtensa_pseudo_register_read)
517 (xtensa_pseudo_register_write, xtensa_extract_return_value)
518 (xtensa_store_return_value)
519 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
520 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
521 (xtensa_frame_this_id, xtensa_frame_prev_register)
522 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
523 (call0_frame_cache, call0_frame_get_reg_at_entry)
524 (call0_classify_opcode, call0_track_op)
525 (call0_analyze_prologue, call0_frame_cache): New functions.
527 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
529 * breakpoint.c (bpstat_free): New.
530 (bpstat_clear): Use bpstat_free.
531 (delete_breakpoint): Document why we cannot
532 remove bpstats from stop_bpstat.
533 * breakpoint.h (bpstat_free): Declare.
535 2007-08-16 Michael Snyder <msnyder@access-company.com>
537 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
539 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
540 Joel Brobecker <brobecker@adacore.com>
542 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
544 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
545 Joel Brobecker <brobecker@adacore.com>
547 * ada-lang.c (possible_user_operator_p): Alternative fix to last
548 checkin guarding against NULL.
550 2007-08-14 Michael Snyder <msnyder@access-company.com>
552 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
553 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
554 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
555 go at beginning of new line.
557 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
558 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
559 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
560 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
561 tui-winsource.h, tui.c, tui.h: Function declarations and
562 definitions, wrap long lines.
564 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
565 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
566 Reformat block comments to GNU standard.
568 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
569 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
570 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
571 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
572 tui.c, tui.h: Comment reformatting to coding standard (capitals,
573 spaces after periods, etc).
575 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
576 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
577 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
578 tui-winsource.h: Whitespace changes, fix pointer declarations
581 2007-08-14 Joel Brobecker <brobecker@adacore.com>
582 Michael Snyder <msnyder@access-company.com>
584 * ada-lang.c (field_alignment): Guard against NULL.
586 2007-08-14 Joel Brobecker <brobecker@adacore.com>
588 * MAINTAINERS (Global Maintainers): Add self.
590 2007-08-14 Michael Snyder <msnyder@access-company.com>
592 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
594 * ada-lang.c (possible_user_operator_p): Guard against NULL.
596 * varobj.c (cplus_describe_child): Guard against null.
597 Use "NULL" instead of "0" to initialize pointers.
599 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
601 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
602 to match any gdbarch with matching OSABI. Set default ABI and FPU
603 after running the OSABI handler.
605 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
607 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
608 * config/i386/linux.mt (TDEPFILES): ...to here.
610 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
612 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
613 the 'silent' parameter and code to implement that.
614 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
616 * win32-nat.c: Adjust.
619 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
621 * breakpoint.c (update_breakpoints_after_exec): Don't
624 2007-08-13 Michael Snyder <msnyder@access-company.com>
626 * valops.c: Whitespace clean-up.
628 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
630 * event-top.c (command_line_handler): Memory leak.
632 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
633 No need to make copy.
635 * source.c (find_source_lines): Require symtab 's'.
637 2007-08-11 Michael Snyder <msnyder@access-company.com>
639 * completer.c: Spelling fix in comments.
641 2007-08-10 Michael Snyder <msnyder@access-company.com>
643 * gdbtypes.c: Coding standard cleanup.
644 * gdbtypes.c: Comment/whitespace cleanup.
646 * stabsread.c (read_huge_number): Attempt to compute value before
647 values that it depends on.
649 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
650 (decode_objc): Use "NULL" instead of 0.
651 (find_method): Ditto.
652 (decode_all_digits): Ditto.
653 (decode_dollar): Ditto.
655 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
657 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
659 * solib-svr4.c (enable_break): Don't free tmp_pathname until
662 * completer.c: Comment/whitespace cleanup.
664 2007-08-10 Joel Brobecker <brobecker@adacore.com>
666 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
668 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
670 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
671 allocated file descriptors.
673 2007-08-10 Joel Brobecker <brobecker@adacore.com>
675 * Makefile.in: Minor cleanup throughout; add some missing variables,
676 add some missing rules, remove some rules that are no longer needed,
677 and fix the dependencies in several rules.
679 2007-08-10 Ludovic Courtès <ludo@gnu.org>
681 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
682 (scm_lang_h, scm_tags_h): New.
683 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
684 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
685 * defs.h (enum language): Add `language_scm'.
687 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
690 2007-08-09 Ludovic Courtès <ludo@gnu.org>
692 * MAINTAINERS (Write After Approval): Add myself.
694 2007-08-09 Michael Snyder <msnyder@access-company.com>
696 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
698 2007-08-09 Joel Brobecker <brobecker@adacore.com>
700 * solib-som.c (som_relocate_section_addresses): Stop saving
701 the $CODE$ section in the so_list structure.
703 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
705 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
706 (xtensa_register_group_t): Add entries for coprocessors.
707 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
708 (xtensa_add_reggroups): Likewise.
709 (xtensa_register_reggroup_p): Likewise.
710 (xtensa_coprocessor_register_group): New function.
713 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
715 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
717 2007-08-08 Michael Snyder <msnyder@access-company.com>
719 * target.c (target_read_string): Guard against null.
721 * varobj.c (value_of_root): Move alloc after return to avoid leak.
723 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
724 (tui_set_layout_for_display_command): Mem leak.
726 * top.c (command_line_input): Memory leak.
728 * solib-svr4.c (open_symbol_file_object): Memory leak.
729 (svr4_current_sos): Ditto.
730 (enable_break): Ditto.
732 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
734 * dwarf2read.c (add_partial_symbol): Memory leak.
736 2007-08-06 Michael Snyder <msnyder@access-company.com>
738 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
740 2007-08-05 Jim Blandy <jimb@codesourcery.com>
742 * macroexp.c (init_buffer): Remove testing code that overrides the
743 caller's length guess.
744 (gather_arguments): Use a larger initial size, now that the vector
745 growth code has been exercised.
747 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
749 * solib-target.c (solib_target_relocate_section_addresses): Add
750 orig_delta to addr_high.
752 2007-08-04 Michael Snyder <msnyder@access-company.com>
754 * remote-fileio.c (remote_fileio_func_write): Memory leak.
756 * breakpoint.c (print_one_breakpoint): Off by one error.
758 * tracepoint.c (add_register): Off by one error.
759 (stringify_collection_list): Free malloc buffer.
761 2007-08-03 Michael Snyder <msnyder@access-company.com>
763 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
764 stop memory leak, straighten out cleanups.
766 * jv-lang.c (java_link_class_type): Guard against NULL.
768 2007-08-02 Michael Snyder <msnyder@access-company.com>
770 * gdbtypes.c (create_set_type): Test should only be done within
771 the preceeding if block. Otherwise, variable is uninitialized.
773 * gdbtypes.c (check_typedef): Guard NULL.
775 2007-08-01 Michael Snyder <msnyder@access-company.com>
777 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
778 avoid dereference in lookup_cmd_1.
780 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
782 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
783 (tui_alloc_win_info): Ditto.
784 (tui_add_content_elements): Ditto.
785 * tui/tui-file.c (tui_file_magic): Ditto.
787 2007-07-31 Michael Snyder <msnyder@access-company.com>
789 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
790 True and false paths are mutually exclusive.
792 * event-top.c (command_line_handler): Add pedantic return.
794 * f-valprint.c (info_common_command): Bail out to prevent null
795 pointer deref. Break up a long line.
797 * exec.c (xfer_memory): Remove redundant condition from 'if'.
799 * symfile.c (reread_separate_symbols): Free xmalloced memory.
801 * printcmd.c (build_address_symbolic): Remove dead code and dead
804 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
806 * linespec.c (minsym_found): Advance to the next line if possible.
808 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
810 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
811 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
812 solib-svr4.o, and add solib-target.o
814 2007-07-27 Michael Snyder <msnyder@access-company.com>
816 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
818 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
820 * MAINTAINERS (Write After Approval): Add myself.
822 2007-07-26 Maciej W. Rozycki <macro@mips.com>
824 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
827 2007-07-25 Maciej W. Rozycki <macro@mips.com>
829 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
831 2007-07-24 Michael Snyder <msnyder@access-company.com>
833 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
834 'buffer' must cover both branches that call strcmp (Coverity).
836 * stack.c (print_frame_args): Check return value of lookup_symbol.
838 * ax-gdb.c (find_field): Guard against null ptr.
840 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
842 * regformats/reg-spu.dat: Fix order of npc, id registers.
844 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
846 * target.c (memory_xfer_partial): Accesses to unmapped overlay
847 sections should always go to the executable file.
849 2004-07-20 Chris Dearman <chris@mips.com>
851 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
852 prologue instructions.
854 2007-07-20 Maciej W. Rozycki <macro@mips.com>
856 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
859 2007-07-20 Chris Dearman <chris@mips.com>
860 Maciej W. Rozycki <macro@mips.com>
862 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
865 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
866 Daniel Jacobowitz <dan@codesourcery.com>
868 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
869 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
871 * NEWS: Mention gdbserver DLL support.
873 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
875 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
877 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
879 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
882 2007-07-13 Kevin Buettner <kevinb@redhat.com>
884 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
887 2007-07-12 Kevin Buettner <kevinb@redhat.com>
889 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
890 (mep_analyze_prologue): Add case for BRA instruction.
892 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
894 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
896 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
898 * breakpoint.c: Include "top.h".
899 (breakpoint_1): Don't set convenience variable $_ if server prefix
901 (_initialize_breakpoint): Describe this behaviour in command help.
903 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
905 * solib-target.c (library_list_start_segment): Cast address to
908 2007-07-06 Mark Kettenis <kettenis@gnu.org>
910 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
911 for terminated processes.
913 2007-07-05 Michael Snyder <msnyder@access-company.com>
915 * event-top.c (cli_command_loop): Prompt string can (and should)
916 be freed after call to readline (Coverity). Also move local var
917 declarations into block where they are used.
919 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
920 should) be freed after call to readline (Coverity). Also move
921 local var declarations into block where they are used.
923 2007-07-03 Andreas Schwab <schwab@suse.de>
925 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
928 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
929 Thiago Bauermann <bauerman@br.ibm.com>
930 Joseph S. Myers <joseph@codesourcery.com>
931 Daniel Jacobowitz <dan@codesourcery.com>
933 * remote.c (remote_check_symbols): Use
934 gdbarch_convert_from_func_ptr_addr.
935 * infcall.c (find_function_addr): Handle function descriptors
936 without debugging information.
937 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
938 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
939 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
940 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
941 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
942 allow SEC_CODE and SEC_DATA.
943 (enable_break): Update calls. Pass current_target to solib_add.
944 Use gdbarch_convert_from_func_ptr_addr.
946 2007-07-03 Ilko Iliev <iliev@ronetix.at>
947 Daniel Jacobowitz <dan@codesourcery.com>
949 * symfile.c (print_transfer_performance): Avoid integer overflow.
952 2007-07-03 Markus Deuling <deuling@de.ibm.com>
954 * cp-namespace.c (lookup_symbol_file): Add block to
955 lookup_symbol_global call.
956 * Makefile.in (solist_h): Add dependency on symtab header.
957 (symtab.o): Add dependency on solist header.
958 * solib.c (solib_global_lookup): New function.
959 * solib-svr4.c (scan_dyntag): Likewise.
960 (elf_locate_base): Call helper routine scan_dyntag.
961 (elf_lookup_lib_symbol): New function.
962 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
963 * solist.h (symtab.h): New include.
964 (struct target_so_ops): New member lookup_lib_global_symbol.
965 (solib_global_lookup): New prototype.
966 * symtab.c: New include solist.h.
967 (lookup_objfile_from_block): New function.
968 (lookup_global_symbol_from_objfile): New function.
969 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
970 (lookup_symbol_global): Call library-specific lookup procedure.
971 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
973 * NEWS: Document framework.
975 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
977 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
980 * cli/cli-script.c (build_command_line): Update NULL check.
982 2007-07-02 Michael Snyder <msnyder@access-company.com>
984 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
986 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
988 * Makefile.in (XMLFILES): Add library-list.dtd.
989 (ALLDEPFILES): Add solib-target.o.
990 (solib-target.o): New rule.
991 * remote.c (PACKET_qXfer_libraries): New constant.
992 (remote_protocol_features): Add qXfer:libraries:read.
993 (remote_wait): Recognize library stop replies.
994 (remote_async_wait): Likewise. Fix typo.
995 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
996 (init_remote_async_ops): Fix typo.
997 (_initialize_remote): Register "set remote library-info-packet".
998 * solib-som.c (som_current_sos): Set addr_low and addr_high.
999 * solib-target.c: New file.
1000 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1002 (info_sharedlibrary_command): Likewise.
1003 (solib_add_library, solib_remove_library): New.
1004 * solist.h (struct so_list): Replace textsection with addr_low and
1006 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1007 * NEWS: Describe new qXfer:libraries:read and shared library
1009 * features/library-list.dtd: New.
1011 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1013 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1014 (start_remote): Use STOP_QUIETLY_REMOTE.
1015 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1016 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1017 Update to match shared library event breakpoint support. Only
1018 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1019 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1020 * fork-child.c (startup_inferior): Do not set
1021 inferior_ignoring_startup_exec_events
1022 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1024 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1026 2007-07-02 Markus Deuling <deuling@de.ibm.com>
1028 * breakpoint.c (insert_bp_location): Remove dead code
1029 (DISABLE_UNSETTABLE_BREAK).
1030 (disable_breakpoints_in_shlibs)
1031 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1033 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1035 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1036 Call insert_bp_location.
1038 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1040 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1043 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1045 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1048 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1050 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1051 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1052 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1053 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1054 to display_gdb_prompt.
1056 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1059 * target.c (memory_xfer_partial): Do not continue past targets with
1062 2007-06-30 Andreas Schwab <schwab@suse.de>
1064 * m68k-tdep.c (m68k_ps_type): New.
1065 (m68k_init_types): New.
1066 (m68k_register_type): Use m68k_ps_type for PS register.
1067 (_initialize_m68k_tdep): Call m68k_init_types.
1069 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1070 from the generic m68k arch.
1072 2007-06-28 Michael Snyder <msnyder@access-company.com>
1074 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1077 * linux-thread-db.c (thread_db_get_thread_local_address): Add
1078 gdb_assert before using return value of find_thread_pid (Coverity).
1080 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1082 * cli/cli-script.c (build_command_line): Add null pointer guard
1085 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1087 * linux-thread-db.c (thread_db_attach): Delete.
1088 (thread_db_detach): Typo fix. Call target_mourn_inferior
1089 instead of fixing up proc_handle.
1090 (have_threads_callback, have_threads): New functions.
1091 (thread_db_wait): Remove dead proc_handle.pid check. Only
1092 translate PTIDs if we have registered threads. Check for new
1093 threads if we have none.
1094 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1095 (find_new_threads_callback): Only enable event reporting if TID == 0.
1096 (same_ptid_callback): New.
1097 (thread_db_get_thread_local_address): Check for new threads.
1098 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1099 or to_post_startup_inferior.
1101 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1103 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1104 is always active if SOFTWARE_SINGLE_STEP_P is true.
1105 (resume): Use gdbarch_software_single_step[_p] instead of
1106 SOFTWARE_SINGLE_STEP[_P].
1107 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1109 * gdbarch.sh (software_single_step): Remove target macro.
1110 * gdbarch.h, gdbarch.c: Regenerate.
1112 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1114 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1115 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1116 (struct gdbarch_swap, struct gdbarch_swap_registration,
1117 struct gdbarch_swap_registry, gdbarch_swap_registry,
1118 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1119 current_gdbarch_swap_in_hack): Remove.
1120 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1121 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1122 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1123 (deprecated_current_gdbarch_select_hack): Likewise.
1124 * gdbarch.h, gdbarch.c: Regenerate.
1126 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1128 * infrun.c (clear_proceed_status): Clean up stop_registers.
1129 (normal_stop): Allocate regcache for stop_registers.
1130 (struct inferior_status): Remove stop_registers member.
1131 (save_inferior_status): Do not save stop_registers.
1132 (restore_inferior_status): Do not restore stop_registers.
1133 (discard_inferior_status): Do not discard stop_registers.
1134 (build_infrun): Remove.
1135 (_initialize_infrun): Do not swap stop_registers.
1137 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1139 * remote.c (remote_address_masked): If remote_address_size is zero,
1140 default to target address size.
1141 (build_remote_gdbarch_data): Remove.
1142 (_initialize_remote): Do not swap remote_address_size.
1144 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1146 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1147 builtin_type_char, builtin_type_short, builtin_type_int,
1148 builtin_type_long, builtin_type_signed_char,
1149 builtin_type_unsigned_char, builtin_type_unsigned_short,
1150 builtin_type_unsigned_int, builtin_type_unsigned_long,
1151 builtin_type_float, builtin_type_double, builtin_type_long_double,
1152 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1153 builtin_type_bool, builtin_type_long_long,
1154 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1155 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1156 variable declaration with compatibility macro.
1157 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1158 builtin_type_char, builtin_type_short, builtin_type_int,
1159 builtin_type_long, builtin_type_signed_char,
1160 builtin_type_unsigned_char, builtin_type_unsigned_short,
1161 builtin_type_unsigned_int, builtin_type_unsigned_long,
1162 builtin_type_float, builtin_type_double, builtin_type_long_double,
1163 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1164 builtin_type_bool, builtin_type_long_long,
1165 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1166 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1167 (build_gdbtypes): Remove.
1168 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1169 opaque-type-resolution command here. Do not call
1170 deprecated_register_gdbarch_swap.
1172 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1174 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1175 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1176 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1178 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1179 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1180 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1181 (build_parse): Remove.
1182 (_initialize_parse): Do not call build_parse. Do not register
1183 msym_ types for gdbarch-swapping.
1185 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1186 instead of creating private type.
1188 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1189 (_initialize_xcoffread): Do not initialized them.
1190 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1192 * mdebugread.c (nodebug_func_symbol_type): Remove.
1193 (nodebug_var_symbol_type): Remove.
1194 (_initialize_mdebugread): Do not initialize them.
1195 (parse_symbol): Use builtin nodebug_ type instead of them.
1196 (parse_procedure): Likewise.
1198 2007-06-21 Chris Dearman <chris@mips.com>
1200 * printcmd.c (do_one_display): If display/i, start with an initial
1201 line feed to avoid bad layout if there is a branch delay slot.
1203 2007-06-21 Nigel Stephens <nigel@mips.com>
1204 Maciej W. Rozycki <macro@mips.com>
1206 * disasm.c (gdb_print_insn): Return the number of branch delay
1207 slot instructions too.
1208 * disasm.h (gdb_print_insn): Update prototype.
1209 * printcmd.c (branch_delay_insns): New variable to record the
1210 number of delay slot instructions after disassembling a branch.
1211 (print_formatted): Record the number of branch delay slot
1213 (do_examine): When disassembling, if the last instruction
1214 disassembled has any branch delay slots, then bump the count so
1215 that they get disassembled too.
1216 * tui/tui-disasm.c (tui_disassemble): Update the call to
1218 * NEWS: Document the new behaviour.
1220 2007-06-21 Andreas Schwab <schwab@suse.de>
1222 * regcache.c (write_pc_pid): Restore missing else.
1224 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
1226 * regcache.c (regcache_print): Use get_current_regcache ()
1227 instead of current_regcache.
1229 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
1232 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1233 instead of bfd_make_section_anyway.
1234 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1235 when clearing SEC_LOAD.
1237 2007-06-19 Joseph Myers <joseph@codesourcery.com>
1239 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1240 registers for big-endian.
1242 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1244 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
1245 * disasm.c (dump_insns, gdb_print_insn): Likewise.
1246 * gdbarch.c, gdbarch.h: Regenerate.
1248 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1250 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
1251 gdbarch_believe_pcc_promotion.
1252 * stabsread.c (define_symbol): Likewise.
1253 Remove unnecessary definition.
1254 * coffread.c (process_coff_symbol): Remove unnecessary code.
1255 * gdbarch.c, gdbarch.h: Regenerate.
1257 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
1259 * configure.ac: Do not use ${objdir}.
1260 * configure: Regenerated.
1262 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
1264 * gdbarch.sh (deprecated_register_size): Remove.
1265 * gdbarch.h, gdbarch.c: Regenerate.
1267 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
1268 by INT_REGISTER_SIZE.
1269 (thumb_get_next_pc, arm_return_in_memory): Likewise.
1270 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
1271 * ia64-tdep.c (ia64_gdbarch_init): Do not call
1272 set_gdbarch_deprecated_register_size.
1274 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1276 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
1277 gdbarch_deprecated_fp_regnum.
1278 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1279 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
1280 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1281 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
1283 * gdbarch.c, gdbarch.h: Regenerate.
1285 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1287 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
1288 gdbarch_extract_return_value.
1289 * value.c (generic_use_struct_convention): Likewise (comment).
1290 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
1291 * arch-utils.c (legacy_return_value): Likewise.
1292 * arch-utils.h (legacy_return_value): Likewise (comment).
1293 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
1294 gdbarch_store_return_value.
1295 * stack.c (return_command): Likewise (comment).
1296 * arch-utils.h (legacy_return_value): Likewise (comment).
1297 * arch-utils.c (legacy_return_value): Likewise.
1298 * gdbarch.c, gdbarch.h: Regenerate.
1300 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1302 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
1303 gdbarch_deprecated_use_struct_convention.
1304 * arch-utils.c (legacy_return_value): Likewise.
1305 * gdbarch.c, gdbarch.h: Regenerate.
1307 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1309 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
1310 gdbarch_deprecated_function_start_offset.
1311 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
1312 * linespec.c (minsym_found): Likewise.
1313 * infrun.c (handle_inferior_event): Likewise.
1314 * infcall.c (find_function_addr): Likewise.
1315 * cli/cli-cmds.c (disassemble_command): Likewise.
1316 * gdbarch.c, gdbarch.h: Regenerate.
1318 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1320 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
1321 gdbarch_deprecated_reg_struct_has_addr.
1322 * infcall.c (call_function_by_hand): Likewise.
1323 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
1324 * gdbarch_deprecated_reg_struct_has_addr_p.
1325 * infcall.c (call_function_by_hand): Likewise.
1326 * gdbarch.c, gdbarch.h: Regenerate.
1328 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1330 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1331 * sh-tdep.c (sh_extract_struct_value_address): Remove.
1332 (sh_gdbarch_init): Remove
1333 set_gdbarch_deprecated_extract_struct_value_address.
1334 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
1335 (sh64_gdbarch_init): Remove
1336 set_gdbarch_deprecated_extract_struct_value_address.
1337 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
1338 (ia64_gdbarch_init): Remove
1339 set_gdbarch_deprecated_extract_struct_value_address.
1340 * frv-tdep.c (frv_extract_struct_value_address): Remove.
1341 (frv_gdbarch_init): Remove
1342 set_gdbarch_deprecated_extract_struct_value_address.
1343 * gdbarch.c, gdbarch.h: Regenerate.
1345 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1347 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
1348 * v850-tdep.c (v850_unwind_sp): Likewise.
1349 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
1350 * stack.c (frame_info): Likewise.
1351 * stabsread.c (define_symbol): Likewise.
1352 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1353 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
1354 (sh_unwind_sp): Likewise.
1355 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
1356 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
1357 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
1358 (rs6000_frame_cache): Likewise.
1359 * rs6000-nat.c (store_register): Likewise.
1360 * remote-mips.c (mips_wait): Likewise.
1361 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1362 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1363 (ppc64_sysv_abi_push_dummy_call): Likewise.
1364 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1365 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1366 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1367 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1368 * m32r-rom.c (m32r_supply_register): Likewise.
1369 * frame.c (frame_sp_unwind): Likewise.
1370 * mips-tdep.c (mips_insn16_frame_cache)
1371 (mips_insn32_frame_cache): Likewise (comment).
1372 * m68klinux-nat.c (supply_gregset): Likewise.
1373 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1374 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
1375 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1376 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1377 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
1378 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
1379 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
1380 (cris_register_type, crisv32_register_type)
1381 (cris_dwarf2_frame_init_reg): Likewise.
1382 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1383 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
1384 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1385 * libunwind-frame.c (libunwind_frame_cache): Likewise.
1387 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
1388 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
1389 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
1390 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
1391 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
1392 * v850-tdep.c (v850_unwind_pc): Likewise.
1393 * stack.c (frame_info): Likewise.
1394 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
1395 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
1396 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
1397 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
1398 (sh_dsp_show_regs): Likewise.
1399 * shnbsd-tdep.c (shnbsd_supply_gregset)
1400 (shnbsd_collect_gregset): Likewise.
1401 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
1402 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
1403 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
1404 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1405 (6000_register_reggroup_p, rs6000_unwind_pc)
1406 (rs6000_frame_cache): Likewise.
1407 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
1408 (rs6000_store_inferior_registers): Likewise.
1409 * remote-mips.c (mips_wait, mips_load): Likewise.
1410 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1411 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1412 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1413 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1414 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
1415 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1416 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
1417 (store_ppc_registers, fill_gregset): Likewise.
1418 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
1419 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
1420 * mipsnbsd-nat.c (getregs_supplies): Likewise.
1421 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1422 * m68klinux-nat.c (supply_gregset): Likewise.
1423 * irix5-nat.c (fill_gregset): Likewise.
1424 * i386-tdep.c (i386_unwind_pc): Likewise.
1425 * i386-linux-nat.c (i386_linux_resume): Likewise.
1426 * frame.c (get_prev_frame_1): Likewise.
1427 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1428 * dbug-rom.c (dbug_supply_register): Likewise.
1429 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
1430 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
1431 (cris_register_type, crisv32_register_type, crisv32_register_name)
1432 (cris_dwarf2_frame_init_reg, find_step_target)
1433 (cris_software_single_step, cris_supply_gregset)
1434 (cris_regnums): Likewise.
1435 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1436 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1437 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
1438 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
1439 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1441 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
1442 * dbug-rom.c (dbug_supply_register): Likewise.
1443 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
1444 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
1445 * win32-nat.c (win32_resume): Likewise.
1446 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
1447 * m68k-tdep.c (m68k_register_type): Likewise.
1448 * m68klinux-nat.c (supply_gregset): Likewise.
1450 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
1451 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
1452 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
1453 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1454 (fv_reg_base_num, dr_reg_base_num): Likewise.
1455 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
1456 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
1457 (sh64_extract_return_value, sh64_store_return_value)
1458 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
1459 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
1460 * procfs.c (procfs_fetch_registers, procfs_store_registers)
1461 (invalidate_cache): Likewise.
1462 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1463 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
1464 (mipsnbsd_fill_fpreg): Likewise.
1465 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1466 (mipsnbsd_store_inferior_registers): Likewise.
1467 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
1468 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
1469 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
1470 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
1471 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
1472 (fill_fpregset): Likewise.
1473 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
1474 * i386-tdep.h (struct_return): Likewise (comment).
1475 * i386-nto-tdep.c (i386nto_register_area): Likewise.
1476 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1477 (go32_store_registers): Likewise.
1478 * alpha-tdep.c (alpha_next_pc): Likewise.
1479 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1480 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1481 (alphabsd_store_inferior_registers): Likewise.
1482 * core-regset.c (fetch_core_registers): Likewise.
1483 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1485 * gdbarch.c, gdbarch.h: Regenerate.
1487 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
1489 * coffread.c (coff_sym_fns): Add default_symfile_segments.
1490 * dbxread.c (start_psymtab): Check HAVE_ELF.
1491 (aout_sym_fns): Likewise.
1492 * elfread.c (elf_symfile_segments): New.
1493 (elf_sym_fns): Add elf_symfile_segments.
1494 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
1495 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
1496 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
1497 * somread.c (som_sym_fns): Use default_symfile_segments.
1498 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
1499 (init_objfile_sect_indices): Call symfile_find_segment_sections.
1500 (default_symfile_segments): New function.
1501 (syms_from_objfile): Update call to find_sym_fns.
1502 (symfile_get_segment_data, free_symfile_segment_data): New.
1503 (symfile_map_offsets_to_segments): New.
1504 (symfile_find_segment_sections): New.
1505 * symfile.h (struct symfile_segment_data): New.
1506 (struct sym_fns): Add sym_segments.
1507 (default_symfile_segments, symfile_get_segment_data)
1508 (free_symfile_segment_data): New prototypes.
1509 (symfile_map_offsets_to_segments): Likewise.
1510 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
1511 * Makefile.in (COMMON_OBS): Remove elfread.o.
1512 (elf_internal_h): New.
1513 (elfread.o): Update.
1514 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
1516 * config.in, configure: Regenerated.
1517 * NEWS: Mention qOffsets changes.
1519 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1521 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
1522 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1523 Replace global variable declaration with compatibility macro.
1524 (struct builtin_m2_type): New data type.
1525 (builtin_m2_type): Add prototype.
1526 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
1527 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1528 Remove global variables.
1529 (m2_language_arch_info): Use builtin_m2_type instead of variables.
1530 (build_m2_types): New function.
1531 (m2_type_data): New variable.
1532 (builtin_m2_type): New function.
1533 (_initialize_m2_language): Do not build data types. Register
1534 m2_type_data per-gdbarch data.
1536 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1538 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
1539 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1540 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1541 builtin_type_f_real_s8, builtin_type_f_real_s16,
1542 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1543 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
1544 variable declaration with compatibility macro.
1545 (struct builtin_f_type): New data type.
1546 (builtin_f_type): Add prototype.
1547 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
1548 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1549 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1550 builtin_type_f_real_s8, builtin_type_f_real_s16,
1551 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1552 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
1553 (f_language_arch_info): Use builtin_f_type instead of variables.
1554 (build_fortran_types): Build builtin_f_type structure instead of
1555 setting global type variables.
1556 (f_type_data): New variable.
1557 (builtin_f_type): New function.
1558 (_initialize_f_language): Do not call build_fortran_types. Do not
1559 swap global type variables. Register f_type_data per-gdbarch data.
1561 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1563 * f-lang.c (_initialize_f_language): Do not initialize or
1564 swap builtin_type_string.
1566 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1568 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
1569 value_of_builtin_frame_reg): Remove.
1570 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
1571 inactive call to value_of_builtin_frame_reg.
1573 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1575 * gdbarch.sh (bfd_vma_bit): Remove.
1576 * gdbarch.c, gdbarch.h: Regenerate.
1578 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1579 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1580 (build_gdbtypes): Do not initialize it.
1581 (_initialize_gdbtypes): Do not swap it.
1583 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1585 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
1586 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1587 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1588 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1589 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1590 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1591 builtin_type_vec64, builtin_type_vec128): Remove.
1592 (init_simd_type): Remove.
1593 (init_vector_type): Make global.
1594 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
1595 (build_gdbtypes): Do not build vector types.
1596 (_initialize_gdbtypes): Do not swap vector types.
1597 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
1598 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1599 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1600 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1601 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1602 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1603 builtin_type_vec64, builtin_type_vec128): Remove declarations.
1604 (init_vector_type): Add prototype.
1606 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
1607 i386_sse_type members.
1608 (i386_mmx_type, i386_sse_type): Change from variables to functions.
1609 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
1610 (i386_init_types): Do not build vector types.
1611 (i386_mmx_type, i386_sse_type): New functions.
1612 (i386_register_type): Call them instead of using global variables.
1613 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
1614 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
1615 of using global variable.
1617 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
1618 and ppc_builtin_type_vec128 members.
1619 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
1620 (rs6000_builtin_type_vec128): Likewise.
1621 (rs6000_register_type): Call them instead of using builtin_type_vec64
1622 and builtin_type_vec128.
1623 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
1625 * spu-tdep.c (struct gdbarch_tdep): New data type.
1626 (spu_builtin_type_vec128): Remove variable.
1627 (spu_builtin_type_vec128): New function.
1628 (spu_register_type): Call it instead of using global variable.
1629 (spu_gdbarch_init): Allocate tdep structure.
1630 (spu_init_vector_type): Remove function.
1631 (_initialize_spu_tdep): Do not call it.
1633 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1635 * amd64-tdep.c (struct amd64_register_info): Remove.
1636 (amd64_register_info): Remove.
1637 (amd64_register_names): New static variable.
1638 (AMD64_NUM_REGS): Use amd64_register_names instead of
1639 amd64_register_info.
1640 (amd64_register_name): Likewise.
1641 (amd64_register_type): Do not refer to amd64_register_info.
1643 * s390-tdep.c (struct s390_register_info): Remove.
1644 (s390_register_info): Remove.
1645 (s390_register_name): Do not refer to s390_register_info.
1646 (s390_register_type): Likewise.
1648 * sparc64-tdep.c (struct sparc64_register_info): Remove.
1649 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
1650 (sparc64_register_names, sparc64_pseudo_register_names): New.
1651 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
1652 sparc64_register_names and sparc64_pseudo_register_names instead of
1653 sparc64_register_info and sparc64_pseudo_register_info.
1654 (sparc64_register_name): Likewise.
1655 (sparc64_register_type): Do not refer to sparc64_register_info
1656 and sparc64_pseudo_register_info.
1658 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1660 * c-lang.c (cplus_builtin_types): Remove.
1661 (enum cplus_primitive_types): New data type.
1662 (cplus_language_arch_info): New function.
1663 (cplus_language_defn): Set la_language_arch_info member. Do not set
1664 la_builtin_type_vector and string_char_type members.
1666 * f-lang.c (f_builtin_types): Remove.
1667 (enum f_primitive_types): New data type.
1668 (f_language_arch_info): New function.
1669 (f_language_de): Set la_language_arch_info member. Do not set
1670 la_builtin_type_vector and string_char_type members.
1672 * m2-lang.c (m2_builtin_types): Remove.
1673 (enum m2_primitive_types): New data type.
1674 (m2_language_arch_info): New function.
1675 (m2_language_defn): Set la_language_arch_info member. Do not set
1676 la_builtin_type_vector and string_char_type members.
1678 * objc-lang.c (objc_builtin_types): Remove.
1679 (objc_language): Set la_language_arch_info member. Do not set
1680 la_builtin_type_vector and string_char_type members.
1682 * p-lang.c (pascal_builtin_types): Remove.
1683 (enum pascal_primitive_types): New data type.
1684 (pascal_language_arch_info): New function.
1685 (pascal_language_defn): Set la_language_arch_info member. Do not set
1686 la_builtin_type_vector and string_char_type members.
1688 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1690 * regcache.c (struct regcache): Add ptid_t member.
1691 (regcache_xmalloc): Initialize it.
1692 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
1693 (regcache_dup): Likewise.
1694 (regcache_dup_no_passthrough): Likewise.
1695 (current_regcache): Make static.
1696 (registers_ptid): Remove variable.
1697 (get_thread_regcache): New function.
1698 (get_current_regcache): New function.
1699 (registers_changed): Implement by freeing current regcache.
1700 (regcache_raw_read): Do not refer to current_regcache. Set
1701 inferior_ptid to regcache->ptid while calling target routines.
1702 (regcache_raw_write): Likewise.
1703 (regcache_raw_supply): Do not refer to current_regcache.
1704 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
1705 (write_pc_pid): Likewise.
1706 (build_regcache): Remove.
1707 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
1708 or deprecated_register_gdbarch_swap. Do not initialize
1710 * regcache.h (get_current_regcache): Add prototype.
1711 (get_thread_regcache): Likewise.
1712 (current_regcache): Remove declaration.
1714 * corelow.c (core_open): Replace current_regcache by
1715 get_current_regcache ().
1716 * frame.c (frame_pop): Likewise.
1717 (put_frame_register): Likewise.
1718 (get_current_frame, create_new_frame): Likewise.
1719 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
1720 * stack.c (return_command): Likewise.
1721 * infcall.c (call_function_by_hand): Likewise.
1722 * infrun.c (resume): Likewise.
1723 (save_inferior_status, restore_inferior_status): Likewise.
1724 * linux-fork.c (fork_load_infrun_state): Likewise.
1725 (fork_save_infrun_state): Likewise.
1726 * win32-nat.c (win32_resume): Likewise.
1727 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
1728 * monitor.c (monitor_wait): Likewise.
1729 * remote.c (remote_wait): Likewise.
1730 * remote-mips.c (mips_wait): Likewise.
1732 * bsd-kvm.c (bsd_kvm_open): Likewise
1733 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
1734 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
1735 * i386-linux-nat.c (i386_linux_resume): Likewise.
1736 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
1737 (ia64_linux_stopped_data_address): Likewise.
1739 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
1740 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1741 * mep-tdep.c (current_me_module, current_options): Likewise.
1742 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
1744 * linux-nat.c (linux_nat_do_thread_registers): Use thread
1745 regcache instead of current_regcache. Call target_fetch_registers.
1746 (linux_nat_corefile_thread_callback): Update call site.
1747 (linux_nat_do_registers): Likewise.
1748 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
1749 of current_regcache.
1750 (procfs_make_note_section): Likewise.
1751 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
1752 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1753 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
1754 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1756 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1758 * regcache.c (read_register, read_register_pid): Remove.
1759 (write_register, write_register_pid): Likewise.
1760 * regcache.h (read_register, read_register_pid): Remove prototype.
1761 (write_register, write_register_pid): Likewise.
1763 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1765 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
1766 (write_pc): Likewise. Remove default implementation, add predicate.
1767 * gdbarch.c, gdbarch.h: Regenerate.
1768 * regcache.c (read_pc_pid): Use current regcache instead of calling
1770 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
1772 (generic_target_write_pc): Remove.
1773 * inferior.h (generic_target_write_pc): Remove.
1774 * frv-tdep.c (frv_gdbarch_init): Do not install it.
1775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1776 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1777 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1778 * sh-tdep.c (sh_gdbarch_init): Likewise.
1779 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1781 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
1782 argument. Use REGCACHE instead of calling read_register_pid.
1783 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
1784 * hppa-tdep.c (hppa_read_pc): Likewise.
1785 * hppa-tdep.h (hppa_read_pc): Likewise.
1786 * ia64-tdep.c (ia64_read_pc): Likewise.
1787 * m32r-tdep.c (m32r_read_pc): Likewise.
1788 * mep-tdep.c (mep_read_pc): Likewise.
1789 * mn10300-tdep.c (mn10300_read_pc): Likewise.
1790 * spu-tdep.c (spu_read_pc): Likewise.
1792 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
1793 argument. Use REGCACHE instead of calling write_register_pid.
1794 * avr-tdep.c (avr_write_pc): Likewise.
1795 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
1796 * hppa-tdep.c (hppa_write_pc): Likewise.
1797 * hppa-tdep.h (hppa_write_pc): Likewise.
1798 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
1799 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
1800 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
1801 * ia64-tdep.c (ia64_write_pc): Likewise.
1802 * ia64-tdep.h (ia64_write_pc): Likewise.
1803 * m32r-tdep.c (m32r_write_pc): Likewise.
1804 * m88k-tdep.c (m88k_write_pc): Likewise.
1805 * mep-tdep.c (mep_write_pc): Likewise.
1806 * mips-tdep.c (mips_write_pc): Likewise.
1807 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1808 * mn10300-tdep.c (mn10300_write_pc): Likewise.
1809 * sparc-tdep.c (sparc_write_pc): Likewise.
1810 * spu-tdep.c (spu_write_pc): Likewise.
1812 * mips-tdep.c (read_signed_register): Remove.
1813 (read_signed_register_pid): Likewise.
1814 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
1815 Use REGCACHE instead of calling read_signed_register_pid.
1817 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1819 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
1820 * gdbarch.c, gdbarch.h: Regenerate.
1821 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
1822 (push_dummy_code): Likewise. Pass it to callee.
1823 (call_function_by_hand): Pass current regcache to push_dummy_code.
1825 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
1826 argument. Use it instead of current_regcache.
1828 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
1829 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1831 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1833 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
1834 * gdbarch.c, gdbarch.h: Regenerate.
1835 * infrun.c (handle_inferior_event): Pass current frame to
1836 gdbarch_get_longjmp_target.
1838 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
1839 Read registers from FRAME instead of using read_register.
1840 Use get_frame_arch instead of current_gdbarch.
1841 * arm-tdep.c (arm_get_longjmp_target): Likewise.
1842 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1843 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1844 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
1845 (mips64_linux_get_longjmp_target): Likewise.
1846 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1848 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1850 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
1851 * gdbarch.c, gdbarch.h: Regenerate.
1852 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
1853 * arch-utils.h (generic_skip_trampoline_code): Likewise.
1854 * infrun.c (handle_inferior_event): Pass current frame to
1855 gdbarch_skip_trampoline_code and skip_language_trampoline.
1857 * language.c (unk_lang_trampoline): Add FRAME argument.
1858 (skip_language_trampoline): Add FRAME argument. Pass it to
1859 skip_trampoline callback.
1860 * language.h: Add forward declaration of struct frame_info.
1861 (struct language_defn): Add FRAME argument to skip_trampoline.
1862 (skip_language_trampoline): Add FRAME argument.
1863 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
1864 to skip_trampoline callback.
1865 * cp-abi.h: Add forward declaration of struct frame_info.
1866 (cplus_skip_trampoline): Add FRAME argument.
1867 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
1868 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
1869 to gdbarch_skip_trampoline_code.
1870 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
1871 to gdbarch_skip_trampoline_code.
1873 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
1874 * symtab.h (find_solib_trampoline_target): Likewise.
1875 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
1876 find_solib_trampoline_target.
1878 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
1879 from FRAME instead of calling read_register.
1881 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
1882 argument. Read registers from FRAME instead of using read_register.
1883 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
1884 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
1886 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
1889 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
1891 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
1892 registers from FRAME instead of using read_signed_register.
1894 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
1896 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
1897 instead of using read_register.
1898 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
1899 ppc64_standard_linkage_target.
1900 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
1901 Pass it to find_solib_trampoline_target. Read registers from FRAME
1902 instead of using read_register.
1904 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
1907 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1909 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
1911 * gdbarch.c, gdbarch.h: Regenerate.
1912 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
1914 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
1915 registers from FRAME instead of using read_register.
1916 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1917 to alpha_next_pc. Use get_frame_pc instead of read_pc.
1918 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
1921 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
1922 from FRAME instead of using read_register.
1923 (thumb_get_next_pc): Likewise.
1924 (arm_get_next_pc): Likewise.
1925 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1926 to arm_get_next_pc. Use get_frame_pc instead of read_register.
1927 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
1930 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
1931 from FRAME instead of using read_register.
1932 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1933 to find_step_target.
1935 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
1936 from FRAME instead of using read_register / read_signed_register.
1937 (extended_mips16_next_pc): Likewise.
1938 (mips16_next_pc): Likewise.
1939 (mips_next_pc): Likewise.
1940 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1941 to mips_next_pc. Use get_frame_pc instead of read_pc.
1942 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
1945 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
1946 of current frame. Read registers from FRAME.
1947 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
1948 branch_dest. Use get_frame_pc instead of read_pc.
1949 (rs6000_software_single_step): Likewise.
1950 (bl_to_blrl_insn_p): Do not call branch_dest.
1951 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
1954 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
1955 Read registers from FRAME instead of current regcache.
1956 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
1957 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
1958 * sparc-tdep.c (sparc_address_from_register): Remove.
1959 (sparc_analyze_control_transfer): Pass FRAME argument instead of
1960 GDBARCH. Pass FRAME to step_trap callback.
1961 (sparc_step_trap): Add FRAME argument.
1962 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1963 to sparc_analyze_control_transfer. Read registers from FRAME instead
1964 of calling sparc_address_from_register.
1965 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
1967 (sparc_address_from_register): Remove prototype.
1968 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
1969 (sparcnbsd_step_trap): Add FRAME argument.
1971 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
1972 by FRAME. Read registers from FRAME instead of REGCACHE.
1974 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1976 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
1977 instead of calling read_register.
1979 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
1980 calling write_register.
1982 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
1983 calling write_register.
1985 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
1986 instead of calling read_register.
1987 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
1988 instead of calling read_register and write_register.
1990 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
1991 instead of current_regcache.
1993 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
1994 of calling write_register.
1995 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
1996 parameter instead of current_regcache.
1998 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
1999 instead of calling read_register.
2000 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2001 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2002 (mips_n32n64_push_dummy_call): Likewise.
2003 (mips_o32_push_dummy_call): Likewise.
2004 (mips_o64_push_dummy_call): Likewise.
2006 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2007 parameter instead of current_regcache.
2009 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2010 Use it instead of read_register and write_register.
2011 (xtensa_register_read_masked): Likewise.
2012 (xtensa_pseudo_register_read): Update call.
2013 (xtensa_pseudo_register_write): Likewise.
2014 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2015 instead of calling read_register.
2016 (xtensa_push_dummy_call): Update comment.
2018 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2020 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2021 by frame_unwind_register_signed calls.
2022 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2023 frame allocations when called with NULL NEXT_FRAME parameter.
2024 (read_next_frame_reg): Remove.
2026 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2027 instead of reading the FPSCR register.
2028 (sh_frame_cache): Pass unwound FPSCR register value to
2029 sh_analyze_prologue.
2030 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2032 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2033 instead of reading the CTBP register.
2034 (v850_frame_cache): Pass unwound CTBP register value to
2035 v850_analyze_prologue.
2037 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2039 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2040 * sh-tdep.c (sh_show_regs): Likewise.
2041 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2042 (sh_generic_show_regs): Add FRAME parameter. Use register
2043 values from that frame instead of calling read_register.
2044 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2045 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2046 sh_dsp_show_regs): Likewise.
2047 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2048 sh64_show_regs): Likewise.
2050 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2052 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2053 current regcache instead of calling read_register.
2055 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2057 * mep-tdep.c (current_me_module): Read from current regcache
2058 instead of calling read_register.
2059 (current_options): Likewise.
2061 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2063 * cris-tdep.c (cris_stopped_data_address): Read register values
2064 from current frame instead of calling read_register.
2065 * frv-tdep.c (frv_stopped_data_address): Likewise.
2067 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2069 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2070 instead of write_register (PC_REGNUM, ...).
2072 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2074 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2075 explaining why the PC adjustment code is necessary.
2077 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
2079 * m68k-tdep.h (enum m68k_flavour): New.
2080 (struct gdbarch_tdep): New fields
2081 float_return, flavour and fpregs_present.
2082 * m68k-tdep.c (m68k_register_type): Use
2083 fpregs_present and conditionalize floating
2084 registers type on flavour.
2085 (m68k_register_names): New.
2086 (m68k_register_name): Use the above.
2087 (m68k_convert_register_p): Consult fpregs_present.
2088 (m68k_register_to_value, m68k_value_to_register):
2089 Use register_type to obtain the type of floating
2091 (m68k_svr4_extract_return_value): Check tdep->float_return.
2092 Use register_type to get the type of floating
2094 (m68k_svr4_store_return_value): Likewise.
2095 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2096 (m68k_analyze_register_saves): Likewise.
2097 (m68k_gdbarch_init): Extract infromation
2098 from XML description, if present. Guess coldfire by
2099 looking at the file, if present. Conditionalize
2100 setting of long double format. Set decr_pc_after_break
2101 to 2 on coldfire and fido. Enable XML-driven
2102 register description.
2103 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2104 size of tdep->fpreg_type, as opposed to hardcoded value.
2105 * Makefile.in (m68k-tdep.o): Update dependencies.
2107 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2109 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2110 qXfer:spu:write remote packet types.
2112 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2114 * xml-tdesc.c (tdesc_start_target): New.
2115 (target_attributes): New.
2116 (tdesc_elements): Use it.
2117 * features/gdb-target.dtd: Add #FIXED version attribute for
2120 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
2122 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2124 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2126 * fork-child.c (fork_inferior): Update comment.
2128 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2130 * features/Makefile: Generate regformats for mips-linux and
2132 * features/sort-regs.xsl: Correct typo.
2133 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2134 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2137 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2139 * config/mips/linux.mh (TDEP_XML): New.
2140 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2141 * mips-linux-nat.c (mips_linux_register_addr): Handle
2142 MIPS_RESTART_REGNUM.
2143 (mips64_linux_register_addr): Likewise.
2144 (super_xfer_partial, mips_linux_xfer_partial): New.
2145 (_initialize_mips_linux_nat): Add them to the target_ops.
2146 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2147 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2148 (mips_linux_o32_sigframe_init)
2149 (mips_linux_n32n64_sigframe_init): Likewise.
2150 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2151 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2152 "org.gnu.gdb.mips.linux" feature.
2153 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2154 (mips_linux_restart_reg_p): New prototype.
2155 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2156 initialization routine.
2157 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2159 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2161 * Makefile.in (mips-tdep.o): Update.
2162 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2163 (mips_n32_n64_aliases, mips_register_aliases): New.
2164 (mips_register_name): Call tdesc_register_name.
2165 (mips_tdesc_register_reggroup_p): New.
2166 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2167 (mips_gdbarch_init): Add target-described register support.
2168 Register aliases for register names.
2169 * target-descriptions.c (tdesc_register_name): Make global.
2170 (tdesc_register_in_reggroup_p): New function, broken out from
2171 tdesc_register_reggroup_p.
2172 (tdesc_register_reggroup_p): Use it.
2173 * target-descriptions.h (tdesc_register_name)
2174 (tdesc_register_in_reggroup_p): New prototypes.
2175 * NEWS: Correct formatting. Mention MIPS register support.
2176 * features/mips-cp0.xml, features/mips-fpu.xml,
2177 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2178 features/mips64-cpu.xml: New files.
2180 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2182 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2183 * valops.c (value_cast): Likewise.
2184 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2185 * ui-out.c (ui_out_field_core_addr): Likewise.
2186 * tracepoint.c (tracepoints_info): Likewise.
2187 * symtab.c (print_msymbol_info): Likewise.
2188 * solib-irix.c (irix_current_sos)
2189 (irix_open_symbol_file_object): Likewise.
2190 * remote.c (build_remote_gdbarch_data): Likewise.
2191 * prologue-value.c (make_pv_area): Likewise.
2192 * procfs.c (info_mappings_callback): Likewise.
2193 * printcmd.c (print_scalar_formatted)
2194 (deprecated_print_address_numeric): Likewise.
2195 * memattr.c (mem_info_command): Likewise.
2196 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2197 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2198 * exec.c (print_section_info): Likewise.
2199 * dwarf2read.c (read_subrange_type): Likewise.
2200 * dwarf2loc.c (find_location_expression): Likewise.
2201 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2202 (signed_address_type, execute_stack_op): Likewise.
2203 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2204 * gdbarch.c, gdbarch.h: Regenerate.
2206 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2208 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2209 * arch-utils.c (show_architecture): Likewise.
2210 * remote-mips.c (mips_open): Likewise
2211 * nto-tdep.c (nto_find_and_open_solib)
2212 (nto_init_solib_absolute_prefix): Likewise.
2213 * nto-procfs (procfs_open): Likewise.
2214 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2215 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2216 * gdbarch.c, gdbarch.h: Regenerate.
2218 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2220 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2221 * gdbtypes.c (build_flt): Likewise.
2222 * gdbarch.c, gdbarch.h: Regenerate.
2224 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2226 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2227 gdbarch_breakpoint_from_pc.
2228 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2229 * remote.c (remote_insert_breakpoint)
2230 (remote_insert_hw_breakpoint): Likewise.
2231 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2232 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2233 * breakpoint.h (bp_target_info): Likewise (comment).
2234 * breakpoint.c (read_memory_nobpt): Likewise.
2235 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2236 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2237 * gdbarch.c, gdbarch.h: Regenerate.
2239 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2241 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
2242 * solib-svr4.c (svr4_truncate_ptr): Likewise.
2243 * solib-pa64.c (read_dynamic_info): Likewise.
2244 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2245 * solib.c (info_sharedlibrary_command): Likewise.
2246 * s390-nat.c (SUBOFF): Likewise.
2247 * p-valprint.c (pascal_val_print): Likewise.
2248 * procfs.c (info_proc_mappings): Likewise.
2249 * printcmd.c (decode_format): Likewise.
2250 * nto-tdep.c (nto_truncate_ptr): Likewise.
2251 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2252 (mips64_linux_get_longjmp_target): Likewise.
2253 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2254 * jv-valprint.c (java_value_print): Likewise.
2255 * jv-lang.c (get_java_object_header_size): Likewise.
2256 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2257 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2258 (hppa_hpux_unwind_adjust_stub): Likewise.
2259 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2260 * gdbtypes.c (make_pointer_type, make_reference_type)
2261 (smash_to_memberptr_type): Likewise.
2262 * gdbarch.c, gdbarch.h: Regenerate.
2264 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2266 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
2267 (print_gp_register_row): Stop before printing a register bigger
2268 than the ABI register size.
2269 (mips_print_registers_info): Update call to mips_print_register.
2271 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2273 * expression.h (enum exp_opcode): Document a register name for
2275 * parse.c (write_dollar_variable): Write the register name for
2277 (operator_length_standard): Expect the register name following
2279 * ada-lang.c (resolve_subexp): Likewise.
2280 * ax-gdb.c (gen_expr): Likewise.
2281 * eval.c (evaluate_subexp_standard): Likewise.
2282 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2284 * tracepoint.c (encode_actions): Likewise.
2286 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2288 * utils.c (set_screen_size): Use INT_MAX for default columns.
2290 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2292 * remote.c (remote_protocol_features): Add qXfer:spu:read and
2293 qXfer:spu:write packet types.
2295 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2297 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
2298 * gdbarch.c, gdbarch.h: Regenerate.
2300 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2302 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
2303 gdbarch_stab_reg_to_regnum.
2304 * stabsread.c (define_symbol): Likewise.
2305 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
2306 gdbarch_ecoff_reg_to_regnum.
2307 * mdebugread.c (parse_symbol): Likewise.
2308 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
2309 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
2310 gdbarch_dwarf_reg_to_regnum.
2311 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
2312 * coffread.c (process_coff_symbol): Likewise.
2313 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
2314 gdbarch_dwarf2_reg_to_regnum.
2315 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
2316 (locexpr_describe_location): Likewise.
2317 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
2318 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
2319 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
2320 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
2321 * gdbarch.c, gdbarch.h: Regenerate.
2323 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2325 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
2326 gdbarch_smash_text_address.
2327 * somread.c (som_symtab_read): Likewise.
2328 * elfread.c (record_minimal_symbol): Likewise.
2329 * dbxread.c (process_one_symbol): Likewise.
2330 * coffread.c (coff_symtab_read): Likewise.
2331 * gdbarch.c, gdbarch.h: Regenerate.
2333 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2335 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
2336 * findvar.c (value_from_register): Likewise.
2337 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
2338 * valops.c (value_assign): Likewise.
2339 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
2340 gdbarch_convert_register_p.
2341 * findvar.c (value_from_register): Likewise.
2342 * valops.c (value_assign): Likewise.
2343 * gdbarch.c, gdbarch.h: Regenerate.
2345 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2347 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
2348 gdbarch_register_sim_regno.
2349 * sim-regno.h (sim_regno): Likewise (comment).
2350 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
2351 * gdbarch.c, gdbarch.h: Regenerate.
2353 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2355 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
2356 gdbarch_virtual_frame_pointer.
2357 * tracepoint.c (encode_actions): Likewise.
2358 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
2359 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
2360 * gdbarch.c, gdbarch.h: Regenerate.
2362 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2364 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
2365 * p-lang.c (pascal_create_fundamental_type): Likewise.
2366 * objc-lang.c (objc_create_fundamental_type): Likewise.
2367 * mdebugread.c (_initialize_mdebugread): Likewise.
2368 * m2-lang.c (m2_create_fundamental_type)
2369 (_initialize_m2_language): Likewise.
2370 * gdbtypes.c (build_gdbtypes): Likewise.
2371 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2372 * doublest.c (floatformat_from_length): Likewise.
2373 * c-lang.c (c_create_fundamental_type): Likewise.
2374 * ada-lang.c (ada_create_fundamental_type)
2375 (ada_language_arch_info): Likewise.
2376 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
2377 * value.c (unpack_double): Likewise (comment).
2378 * gdbtypes.c (build_gdbtypes): Likewise.
2379 * doublest.c (floatformat_from_length): Likewise.
2380 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
2381 * valarith.c (value_binop): Likewise.
2382 * p-lang.c (pascal_create_fundamental_type): Likewise.
2383 * objc-lang.c (objc_create_fundamental_type): Likewise.
2384 * mdebugread.c (_initialize_mdebugread): Likewise.
2385 * m2-lang.c (m2_create_fundamental_type): Likewise.
2386 * gdbtypes.c (build_gdbtypes): Likewise.
2387 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2388 * doublest.c (floatformat_from_length): Likewise.
2389 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
2390 * c-lang.c (c_create_fundamental_type): Likewise.
2391 * ada-lex.l (processReal): Likewise.
2392 * ada-lang.c (ada_create_fundamental_type)
2393 (ada_language_arch_info): Likewise.
2394 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
2395 * value.c (unpack_double): Likewise (comment).
2396 * gdbtypes.c (build_gdbtypes): Likewise.
2397 * doublest.c (floatformat_from_length): Likewise.
2398 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
2399 gdbarch_long_double_bit.
2400 * p-lang.c (pascal_create_fundamental_type): Likewise.
2401 * objc-lang.c (objc_create_fundamental_type): Likewise.
2402 * m2-lang.c (m2_create_fundamental_type): Likewise.
2403 * gdbtypes.c (build_gdbtypes): Likewise.
2404 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2405 * doublest.c (floatformat_from_length): Likewise.
2406 * c-lang.c (c_create_fundamental_type): Likewise.
2407 * ada-lex.l (processReal): Likewise.
2408 * ada-lang.c (ada_create_fundamental_type)
2409 (ada_language_arch_info): Likewise.
2410 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
2411 gdbarch_long_double_format.
2412 * gdbtypes.c (build_gdbtypes): Likewise.
2413 * doublest.c (floatformat_from_length): Likewise.
2414 * gdbarch.c, gdbarch.h: Regenerate.
2416 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2418 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
2419 * ada-lang.c (ada_create_fundamental_type)
2420 (ada_language_arch_info): Likewise.
2421 * c-lang.c (c_create_fundamental_type): Likewise.
2422 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2423 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2424 * m2-lang.c (m2_create_fundamental_type): Likewise.
2425 * objc-lang.c (objc_create_fundamental_type): Likewise.
2426 * p-lang.c (pascal_create_fundamental_type): Likewise.
2427 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
2428 * c-exp.y (parse_number): Likewise.
2429 * objc-exp.y (parse_number): Likewise.
2430 * ada-lex.l (processInt): Likewise.
2431 * f-exp.y (parse_number): Likewise.
2432 * p-exp.y (parse_number): Likewise.
2433 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
2434 (gdbtypes_post_init, build_gdbtypes): Likewise.
2435 * p-lang.c (pascal_create_fundamental_type): Likewise.
2436 * parse.c (build_parse): Likewise.
2437 * xcoffread.c (_initialize_xcoffread): Likewise.
2438 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
2439 (read_range_type): Likewise.
2440 * objc-lang.c (objc_create_fundamental_type): Likewise.
2441 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
2442 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
2443 (m2_create_fundamental_type): Likewise.
2444 * c-lang.c (c_create_fundamental_type): Likewise.
2445 * coffread.c (coff_read_enum_type): Likewise.
2446 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
2447 * dwarf2read.c (new_symbol): Likewise.
2448 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
2449 * c-exp.y (parse_number): Likewise.
2450 * objc-exp.y (parse_number): Likewise.
2451 * ada-lex.l (processInt): Likewise.
2452 * f-exp.y (parse_number): Likewise.
2453 * p-exp.y (parse_number): Likewise.
2454 * valarith.c (value_binop): Likewise.
2455 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
2456 * ada-lang.c (ada_create_fundamental_type)
2457 (ada_language_arch_info): Likewise.
2458 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2459 * symfile.c (TARGET_LONG_BYTES): Likewise.
2460 * p-lang.c (pascal_create_fundamental_type): Likewise.
2461 * objc-lang.c (objc_create_fundamental_type): Likewise.
2462 * m2-lang.c (m2_create_fundamental_type): Likewise.
2463 * f-lang.c (f_create_fundamental_type): Likewise.
2464 * c-lang.c (c_create_fundamental_type): Likewise.
2465 * coffread.c (decode_base_type): Likewise.
2466 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
2467 * c-exp.y (parse_number): Likewise.
2468 * objc-exp.y (parse_number): Likewise.
2469 * p-exp.y (parse_number): Likewise.
2470 * ada-lang.c (ada_create_fundamental_type)
2471 (ada_language_arch_info): Likewise.
2472 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
2473 * stabsread.c (read_range_type): Likewise.
2474 * p-lang.c (pascal_create_fundamental_type): Likewise.
2475 * objc-lang.c (objc_create_fundamental_type): Likewise.
2476 * m2-lang.c (m2_create_fundamental_type): Likewise.
2477 * f-lang.c (f_create_fundamental_type): Likewise.
2478 * c-lang.c (c_create_fundamental_type): Likewise.
2479 * gdbarch.c, gdbarch.h: Regenerate.
2481 2007-06-12 Andreas Schwab <schwab@suse.de>
2483 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
2484 (struct frame_unwind): Add dealloc_cache.
2485 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
2487 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
2488 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
2489 (libunwind_frame_unwind): Set dealloc_cache.
2490 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
2492 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2493 Markus Deuling <deuling@de.ibm.com>
2495 * remote.c (remote_write_qxfer): New function.
2496 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
2497 (remote_read_qxfer): Do not cache empty objects.
2498 (_initialize_remote): Add PACKET_qXfer_spu_read and
2499 PACKET_qXfer_spu_write.
2501 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2503 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
2504 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
2506 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
2507 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
2508 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
2509 * spu-tdep.c (infospucmdlist): New variable.
2510 (spu_register_name): Handle additional pseudo registers.
2511 (spu_register_type): Likewise.
2512 (spu_pseudo_register_read): Likewise.
2513 (spu_pseudo_register_write): Likewise.
2514 (spu_pseudo_register_read_spu): New function.
2515 (spu_pseudo_register_write_spu): Likewise.
2516 (info_spu_event_command): New function.
2517 (info_spu_signal_command): Likewise.
2518 (info_spu_mailbox_list): Likewise.
2519 (info_spu_mailbox_command): Likewise.
2520 (spu_mfc_get_bitfield): Likewise.
2521 (info_spu_dma_cmdlist): Likewise.
2522 (info_spu_dma_command): Likewise.
2523 (info_spu_proxydma_command): Likewise.
2524 (info_spu_command): Likewise.
2525 (_initialize_spu_tdep): Install "info spu" commands.
2527 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2529 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
2530 accessing non-seekable spufs files.
2532 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2534 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
2535 gdbarch_skip_trampoline_code.
2536 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2537 * objc-lang.c (objc_skip_trampoline)
2538 (objc_submethod_helper_data): Likewise.
2539 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
2540 * infrun.c (handle_inferior_event): Likewise.
2541 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
2542 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
2543 gdbarch_in_solib_return_trampoline.
2544 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2545 * infrun.c (handle_inferior_event): Likewise.
2546 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
2547 * gdbarch.c, gdbarch.h: Regenerate.
2549 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2551 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
2552 * symtab.c (find_function_start_sal, in_prologue): Likewise.
2553 * linespec.c (minsym_found): Likewise.
2554 * infrun.c (step_into_function): Likewise.
2555 * gdbarch.c, gdbarch.h: Regenerate.
2557 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2559 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
2560 * valops.c (value_allocate_space_in_inferior): Likewise.
2561 * gdbarch.c, gdbarch.h: Regenerate.
2563 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2565 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
2566 gdbarch_memory_insert_breakpoint.
2567 * mem-break.c (memory_insert_breakpoint): Likewise.
2568 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
2569 gdbarch_memory_remove_breakpoint.
2570 * mem-break.c (memory_remove_breakpoint): Likewise.
2571 * gdbarch.c, gdbarch.h: Regenerate.
2573 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2575 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
2576 gdbarch_fetch_tls_load_module_address.
2577 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
2578 gdbarch_fetch_tls_load_module_address_p.
2579 * gdbarch.c, gdbarch.h: Regenerate.
2581 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2583 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
2584 gdbarch_decr_pc_after_break.
2585 * tracepoint.c (trace_dump_command): Likewise.
2586 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2587 * linux-thread-db.c (check_event): Likewise.
2588 * linux-nat.c (cancel_breakpoints_callback): Likewise.
2589 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
2590 * frame.h: Likewise (comment).
2591 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
2592 * aix-thread.c (aix_thread_wait): Likewise.
2593 * gdbarch.c, gdbarch.h: Regenerate.
2595 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2597 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
2598 gdbarch_address_class_type_flags.
2599 * dwarf2read.c (read_tag_pointer_type): Likewise.
2600 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
2601 gdbarch_address_class_type_flags_p.
2602 * dwarf2read.c (read_tag_pointer_type): Likewise.
2603 * gdbarch.c, gdbarch.h: Regenerate.
2605 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2607 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
2608 * value.c (value_as_address): Likewise (comment).
2609 * remote-mips.c (common_breakpoint): Likewise.
2610 * regcache.c (read_pc_pid): Likewise.
2611 * printcmd.c (do_one_display): Likewise.
2612 * monitor.c (monitor_write_memory, monitor_read_memory)
2613 (monitor_insert_breakpoint): Likewise.
2614 * mips-tdep.c (heuristic_proc_start): Likewise.
2615 * infrun.c (insert_step_resume_breakpoint_at_frame)
2616 (insert_step_resume_breakpoint_at_caller): Likewise.
2617 * buildsym.c (record_line): Likewise.
2618 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
2619 (arm_get_next_pc): Likewise.
2620 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
2621 (store_regs): Likewise.
2622 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2623 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
2624 * gdbarch.c, gdbarch.h: Regenerate.
2626 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2628 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
2629 * tracepoint.c (scope_info): Likewise.
2630 * target.c (debug_print_register): Likewise.
2631 * stack.c (frame_info): Likewise.
2632 * sh-tdep.c (sh_register_reggroup_p): Likewise.
2633 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
2634 (sh64_media_print_registers_info)
2635 (sh64_compact_print_registers_info): Likewise.
2636 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
2637 * remote-sim.c (gdbsim_fetch_register): Likewise.
2638 * remote.c (packet_reg): Likewise (comment).
2639 * reggroups.c (default_register_reggroup_p): Likewise.
2640 * regcache.c (regcache_dump): Likewise.
2641 * printcmd.c (address_info): Likewise.
2642 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2643 * mt-dep.c (mt_registers_info): Likewise.
2644 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
2645 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
2646 (mips_read_fp_register_double, mips_print_fp_register)
2647 (mips_print_register, print_gp_register_row, mips_print_registers_info)
2648 (mips_register_sim_regno): Likewise.
2649 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
2650 * inf-ptrace.c (inf_ptrace_fetch_register)
2651 (inf_ptrace_store_register): Likewise.
2652 * infcmd.c (default_print_registers_info): Likewise.
2653 * ia64-linux-nat.c (ia64_linux_fetch_register)
2654 (ia64_linux_store_register): Likewise.
2655 * i386-linux-nat.c (fetch_register, store_register): Likewise.
2656 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2657 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2658 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
2659 (hppa_hpux_store_register): Likewise.
2660 * findvar.c (locate_var_value): Likewise.
2661 * dwarf2loc.c (locexpr_describe_location): Likewise.
2662 * dwarf2-frame.c (execute_cfa_program): Likewise.
2663 * arm-tdep.c (arm_push_dummy_call): Likewise.
2664 * arch-utils.c (legacy_register_sim_regno): Likewise.
2665 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
2666 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2667 * mi/mi-main.c (mi_cmd_data_list_register_names)
2668 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
2669 (mi_cmd_data_write_register_values): Likewise.
2670 * gdbarch.c, gdbarch.h: Regenerate.
2672 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2674 * target-memory.c (blocks_to_erase): Correct off-by-one error.
2676 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
2678 * remote.c (process_g_packet): Don't check size.
2679 * gdbarch.sh: Remove register_bytes_ok.
2680 * gdbarch.c: Regenerated.
2681 * gdbarch.h: Regenerated.
2682 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
2683 (m68k_register_bytes_ok): Remove.
2684 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
2686 2007-06-06 Andreas Schwab <schwab@suse.de>
2688 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
2689 (destroy_addr_space_name): Define.
2690 (libunwind_load): Get address of destroy_addr_space function.
2691 (libunwind_frame_cache): Destroy unw_addr_space_t object before
2692 returning unsuccessfully.
2693 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
2695 (libunwind_sigtramp_frame_sniffer): Likewise.
2696 (libunwind_get_reg_special): Likewise.
2698 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2700 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
2701 gdbarch_fetch_pointer_argument.
2702 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
2703 * gdbarch.c, gdbarch.h: Regenerate.
2705 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2707 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
2708 gdbarch_have_nonsteppable_watchpoint.
2709 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
2710 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
2711 gdbarch_cannot_step_breakpoint.
2712 * infrun.c (resume): Likewise.
2713 * gdbarch.c, gdbarch.h: Regenerate.
2715 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2717 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
2718 * stack.c (print_frame_args): Likewise.
2719 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
2720 * stack.c (print_args_stub, frame_info): Likewise.
2721 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
2722 * stack.c (print_args_stub, frame_info): Likewise.
2723 * gdbarch.c, gdbarch.h: Regenerate.
2725 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2727 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
2728 gdbarch_coff_make_msymbol_special.
2729 * coffread.c (coff_symtab_read): Likewise.
2730 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
2731 gdbarch_elf_make_msymbol_special.
2732 * elfread.c (elf_symtab_read): Likewise.
2733 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
2734 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
2735 * gdbarch.c, gdbarch.h: Regenerate.
2737 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2739 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
2740 gdbarch_frame_red_zone_size.
2741 * gdbarch.c, gdbarch.h: Regenerate.
2743 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2745 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
2746 * infcall.c (call_function_by_hand): Likewise.
2747 * gcore.c (derive_stack_segment): Likewise.
2748 * frame.c (frame_id_inner): Likewise.
2749 * arch-utils.c (core_addr_lessthan): Likewise (comment).
2750 * ada-lang.c (ensure_lval): Likewise.
2751 * gdbarch.c, gdbarch.h: Regenerate.
2753 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2755 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
2756 gdbarch_address_to_pointer.
2757 * findvar.c (store_typed_address): Likewise.
2758 * gdbtypes.c (make_pointer_type): Likewise (comment).
2759 * procfs.c (procfs_address_to_host_pointer): Likewise.
2760 * std-regs.c (value_of_builtin_frame_reg): Likewise.
2761 (value_of_builtin_frame_fp_reg): Likewise.
2762 (value_of_builtin_frame_pc_reg): Likewise.
2763 * utils.c (paddress): Likewise (comment).
2764 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
2765 gdbarch_pointer_to_address.
2766 * findvar.c (extract_typed_address): Likewise.
2767 * gdbtypes.c (make_pointer_type): Likewise (comment).
2768 * valops.c (value_cast): Likewise (comment).
2769 * gdbarch.c, gdbarch.h: Regenerate.
2771 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2773 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
2774 * infrun.c (handle_inferior_event): Likewise.
2775 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
2776 gdbarch_get_longjmp_target_p.
2777 * breakpoint.c (breakpoint_re_set): Likewise.
2778 * infrun.c (handle_inferior_event): Likewise.
2779 * gdbarch.c, gdbarch.h: Regenerate.
2781 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2783 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
2784 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
2785 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
2786 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
2787 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
2788 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
2789 find_stub_with_shl_get, cover_find_stub_with_shl_get,
2790 initialize_hp_cxx_exception_support, child_enable_exception_callback,
2791 current_ex_event, child_get_current_exception_event): Remove.
2792 (hppa_hpux_inferior_created): Remove.
2793 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
2795 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
2796 (deprecated_exception_support_initialized): Remove.
2797 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
2798 (deprecated_exception_support_initialized): Remove.
2799 (breakpoint_init_inferior): Remove handling of non-zero
2800 deprecated_exception_catchpoints_are_fragile.
2802 * symtab.h (deprecated_hp_som_som_object_present): Remove.
2803 * symtab.c (deprecated_hp_som_som_object_present): Remove.
2804 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
2805 deprecated_hp_som_som_object_present.
2806 * eval.c (evaluate_subexp_standard): Likewise.
2807 * valops.c (value_cast): Likewise.
2809 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
2810 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
2811 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
2813 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2815 * objfiles.h (ImportEntry, ExportEntry): Remove types.
2816 (struct objfile): Remove import_list, import_list_size,
2817 export_list, export_list_size members.
2818 (is_in_import_list): Remove prototype.
2819 * objfiles.c (is_in_import_list): Remove.
2820 * somread.c (init_import_symbols, init_export_symbols): Remove.
2821 (som_symfile_read): Do not call init_import_symbols. Do not
2822 set objfile->export_list and objfile->export_list_size.
2824 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2826 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
2827 Use the original objfile if necessary.
2829 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
2831 * defs.h (ldirname): New prototype.
2832 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
2834 * utils.c (ldirname): New function.
2835 * xml-tdesc.c (file_read_description_xml): Use ldirname.
2837 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2839 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
2841 2007-06-01 Joel Brobecker <brobecker@adacore.com>
2843 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
2845 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2847 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
2849 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2851 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
2852 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
2853 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
2854 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
2855 (ppc_linux_in_sigtramp, insn_is_sigreturn,
2856 ppc_linux_at_sigtramp_return_path): Remove.
2858 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2860 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
2861 (xtensa_register_write_masked, xtensa_register_read_masked)
2862 (xtensa_extract_return_value, xtensa_store_return_value
2863 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
2864 TARGET_BYTE_ORDER by gdbarch_byte_order.
2865 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
2866 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
2867 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
2868 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
2869 (sh64_push_dummy_call, sh64_extract_return_value)
2870 (sh64_store_return_value, sh64_register_convert_to_virtual)
2871 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
2872 (sh64_pseudo_register_write, sh64_do_fp_register)
2873 (sh64_frame_prev_register): Likewise.
2874 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
2875 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
2876 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
2877 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
2878 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2879 * ppc-linux-nat.c (store_register): Likewise.
2880 * nto-tdep.c (nto_find_and_open_solib)
2881 (nto_init_solib_absolute_prefix): Likewise.
2882 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
2883 (mips_convert_register_p, mips_eabi_push_dummy_call)
2884 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2885 (mips_o32_push_dummy_call, mips_o32_return_value)
2886 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
2887 (mips_read_fp_register_single, mips_read_fp_register_double)
2888 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
2889 (mips_breakpoint_from_pc): Likewise.
2890 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
2891 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
2892 (mips_linux_o32_sigframe_init): Likewise.
2893 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2894 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
2895 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
2896 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
2897 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
2898 * coffread.c (process_coff_symbol): Likewise.
2899 * arm-tdep.c (convert_from_extended, convert_to_extended)
2900 (gdb_print_insn_arm): Likewise.
2902 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2904 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
2905 * i386-tdep.c (i386_dbx_reg_to_regnum)
2906 (i386_svr4_reg_to_regnum): Likewise.
2907 * inf-ptrace.c (inf_ptrace_fetch_registers)
2908 (inf_ptrace_store_registers): Likewise.
2909 * corelow.c (get_core_registers): Likewise.
2910 * i386-linux-nat.c (supply_gregset, fill_gregset)
2911 (i386_linux_fetch_inferior_registers)
2912 (i386_linux_store_inferior_registers): Likewise.
2913 * remote.c (init_remote_state,packet_reg_from_regnum)
2914 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
2915 (remote_prepare_to_store,store_registers_using_G)
2916 (remote_store_registers,remote_arch_state): Likewise.
2917 * tracepoint.c (encode_actions): Likewise.
2918 * mi/mi-main.c (mi_cmd_data_list_register_names)
2919 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2920 (mi_cmd_data_write_register_values): Likewise.
2921 * tui/tui-regs.c (tui_show_register_group)
2922 (tui_show_register_group): Likewise.
2923 * xtensa-tdep.h (FP_ALIAS): Likewise.
2924 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
2925 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
2926 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
2927 * win32-nat.c (do_win32_fetch_inferior_registers)
2928 (do_win32_store_inferior_registers,fetch_elf_core_registers
2929 * user-regs.h: Likewise (comment).
2930 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2931 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2932 * target-descriptions.h: Likewise (comment).
2933 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
2934 * target.c (debug_print_register): Likewise.
2935 * stack.c (frame_info): Likewise.
2936 * stabsread.c (define_symbol): Likewise.
2937 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
2938 (sh64_media_print_registers_info)
2939 (sh64_compact_print_registers_info): Likewise.
2940 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2941 * rs6000-nat.c (fetch_register,store_register): Likewise.
2942 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
2943 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
2944 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
2945 * remote-m32r-sdi.c (m32r_fetch_registers)
2946 (m32r_store_registers): Likewise.
2947 * reggroups.c (default_register_reggroup_p): Likewise.
2948 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
2949 (regcache_restore,regcache_dump): Likewise.
2950 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
2951 * mips-tdep.c (mips_xfer_register,mips_register_name)
2952 (mips_register_reggroup_p,mips_pseudo_register_read)
2953 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
2954 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
2955 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
2956 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
2957 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
2958 (print_gp_register_row,mips_print_registers_info)
2959 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2960 (mips_register_sim_regno): Likewise.
2961 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
2962 (mips_linux_n32n64_sigframe_init): Likewise.
2963 * mips-linux-nat.c (mips_linux_register_addr)
2964 (mips64_linux_register_addr): Likewise.
2965 * findvar.c (value_of_register): Likewise.
2966 * infcmd.c (default_print_registers_info,registers_info)
2967 (print_vector_info,print_float_info): Likewise.
2968 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
2969 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2970 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2971 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
2972 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2973 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
2974 (ia64_cannot_store_register,ia64_linux_fetch_registers)
2975 (ia64_linux_store_registers): Likewise.
2976 * hpux-thread.c (hpux_thread_fetch_registers)
2977 (hpux_thread_store_registers): Likewise.
2978 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
2979 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
2980 (h8300_register_type): Likewise.
2981 * dwarf2-frame.c (dwarf2_frame_cache)
2982 (dwarf2_frame_state_alloc_regs): Likewise.
2983 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
2984 (cris_cannot_store_register,crisv32_cannot_fetch_register)
2985 (crisv32_cannot_store_register,cris_register_name): Likewise.
2986 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2987 * arch-utils.c (legacy_register_sim_regno)
2988 (legacy_virtual_frame_pointer): Likewise.
2989 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
2990 * arm-tdep.h: Likewise (comment).
2991 * frv-tdep.c (frv_register_sim_regno): Likewise.
2992 * m68klinux-nat.c (old_fetch_inferior_registers)
2993 (old_store_inferior_registers): Likewise.
2994 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2995 * irix5-nat.c (fetch_core_registers): Likewise.
2996 * hppa-tdep.c (hppa_frame_cache): Likewise.
2997 * hppa-linux-nat.c (hppa_linux_register_addr)
2998 (hppa_linux_fetch_inferior_registers)
2999 (hppa_linux_store_inferior_registers): Likewise.
3000 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3001 (hppa_hpux_store_inferior_registers): Likewise.
3002 * amd64-nat.c (amd64_native_gregset_reg_offset)
3003 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3004 * dbug-rom.c (dbug_regname): Likewise.
3005 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3006 (HARD_PAGE_REGNUM (comment)): Likewise.
3007 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3008 * i386-tdep.c (i386_dbx_reg_to_regnum)
3009 (i386_svr4_reg_to_regnum): Likewise.
3010 * mi/mi-main.c (mi_cmd_data_list_register_names)
3011 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3012 (mi_cmd_data_write_register_values): Likewise.
3013 * gdbarch.c, gdbarch.h: Regenerate.
3014 * tui/tui-regs.c (tui_show_register_group): Likewise.
3015 * xtensa-tdep.h (FP_ALIAS): Likewise.
3016 * user-regs.h: Likewise (comment).
3017 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3018 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3019 * target-descriptions.h: Likewise (comment).
3020 * target.c (debug_print_register): Likewise.
3021 * stack.c (frame_info): Likewise.
3022 * stabsread.c (define_symbol): Likewise.
3023 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3024 (sh64_compact_print_registers_info): Likewise.
3025 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3026 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3027 (regcache_restore,regcache_dump): Likewise.
3028 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3029 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3030 (mips_stab_reg_to_regnum): Likewise.
3031 * findvar.c (value_of_register): Likewise.
3032 * infcmd.c (default_print_registers_info,registers_info)
3033 (print_vector_info,print_float_info): Likewise.
3034 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3035 * h8300-tdep.c (h8300_register_type): Likewise.
3036 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3037 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3038 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3039 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3040 * parse.c: Remove comment.
3041 * gdbarch.c, gdbarch.h: Regenerate
3043 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3045 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3046 gdbarch_cannot_fetch_register.
3047 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3048 * hppa-linux-nat.c (fetch_register): Likewise.
3049 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3050 * m68klinux-nat.c (fetch_register): Likewise.
3051 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3053 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3054 gdbarch_cannot_store_register.
3055 * hppa-linux-nat.c (store_register): Likewise.
3056 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3057 * regcache.c (regcache_raw_write): Likewise.
3058 * m68klinux-nat.c (store_register): Likewise.
3059 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3060 * gdbarch.c, gdbarch.h: Regenerate.
3062 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3064 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3065 * gdbarch.c, gdbarch.h: Regenerate.
3067 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3069 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3070 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3071 * gdbarch.c, gdbarch.h: Regenerate.
3073 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3075 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3076 * ax-gdb.c (gen_bitfield_ref): Likewise.
3077 * mi/mi-main.c (get_register): Likewise.
3078 * findvar.c (default_value_from_register, extract_signed_integer)
3079 (extract_unsigned_integer, extract_long_unsigned_integer)
3080 (store_signed_integer, store_unsigned_integer): Likewise.
3081 * regcache.c (regcache_dump): Likewise.
3082 * value.c (lookup_internalvar, value_of_internalvar)
3083 (set_internalvar): Likewise.
3085 * valprint.c (print_binary_chars, print_octal_chars)
3086 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3087 * infcmd.c (default_print_registers_info): Likewise.
3088 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3089 * stabsread.c (define_symbol): Likewise.
3090 * doublest.c (floatformat_from_length, floatformat_from_type)
3091 (extract_typed_floating, store_typed_floating): Likewise.
3092 * gdbarch.c, gdbarch.h: Regenerate.
3094 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3096 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3097 gdbarch_call_dummy_location.
3098 * infcall.c (call_function_by_hand): Likewise.
3099 * inferior.h: Change comment.
3100 * arch-utils.c: Change comment.
3101 * gdbarch.c, gdbarch.h: Regenerate.
3103 2007-05-28 Joel Brobecker <brobecker@adacore.com>
3105 * solib-aix5.c: Delete.
3106 * Makefile.in (solib-aix5.o): Delete rule.
3108 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
3110 * breakpoint.h (enum bpstat_what_main_action): Remove
3111 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3112 * infrun.c (process_event_stop_test): Do not check for it.
3114 2007-05-22 Chris Dearman <chris@mips.com>
3115 Maciej W. Rozycki <macro@mips.com>
3117 * ser-unix.c (show_serial_hwflow): New function.
3118 (hardwire_raw): Add hardware flow control support.
3119 (_initialize_ser_hardwire): Add "set/show remoteflow".
3120 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3121 * NEWS: Document the new command.
3123 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3125 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3126 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3127 define for i[[3456]]86-*-linux* native configurations.
3128 * config.in, configure: Regenerate.
3130 2007-05-19 Joel Brobecker <brobecker@adacore.com>
3132 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3133 a core file. Add comment in the function description.
3135 2007-05-18 Caroline Tice <ctice@apple.com>
3137 * c-valprint.c (c_value_print): If the initialized field of the
3138 value struct is 0, print out "[uninitialized]" before the value.
3139 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3140 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3141 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3142 ctx->initialized appropriately. Verify no location op follows
3144 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3145 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3146 set_value_initialized.
3147 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3148 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3149 * value.c (struct value): New field, initialized.
3150 (allocate_value): Initialize new field.
3151 (set_value_initialized): New function.
3152 (value_initialized): New function.
3153 * value.h (value_initialized): New extern declaration.
3154 (set_value_initialized): Likewise.
3156 2007-05-18 Caroline Tice <ctice@apple.com>
3158 * MAINTAINERS (Write After Approval): Add self.
3160 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3162 * gdbtypes.c (make_reference_type): Preserve the type chain
3163 and set the length of all the variants of the pointer type.
3165 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3167 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3168 and set the length of all the variants of the pointer type.
3170 2007-05-17 Maciej W. Rozycki <macro@mips.com>
3172 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3174 (mips_o64_push_dummy_call): Reformat a comment.
3176 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
3178 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3179 (score_prologue_frame_base_address): Return fp to keep gdb print
3180 local variables correctly when debugging information is stabs.
3182 (score_analyze_prologue): For software watchpoint, fetch all the
3183 instructions from range [startaddr, pc] once and identify them locally
3184 to reduce memory access.
3185 (score_malloc_and_get_memblock, score_free_memblock)
3186 (score_adjust_memblock_ptr): New functions.
3187 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3189 (score_target_can_use_watch, score_stopped_by_watch)
3190 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3191 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3192 New functions for remote & local hw-watchpoint and hw-breakpoint.
3194 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
3196 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3197 declarations as well.
3199 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3201 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3202 * config/arm/tm-embed.h: Delete file.
3204 * arm-tdep.h (arm_software_single_step): Declare.
3205 * arm-tdep.c (arm_software_single_step): Make global.
3206 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3208 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3209 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3210 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3211 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3213 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3214 allow defines to be overriden by TM file.
3215 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3216 change default to {0xbe,0xbe}.
3217 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3218 arm_obsd_thumb_be_breakpoint): New global variables.
3219 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3220 tdep->thumb_breakpoint_size.
3221 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3222 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3223 tdep->thumb_breakpoint_size.
3225 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3227 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3229 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3232 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3233 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3234 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3235 (mips_abi_regsize): Simplify.
3236 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3237 (mips_n32n64_return_value, mips_o32_push_dummy_call)
3238 (mips_o32_return_value, mips_o64_push_dummy_call)
3239 (mips_o64_return_value): Propogate constant register sizes. Use the
3240 ABI register size instead of mips_stack_argsize.
3241 (mips_dump_tdep): Don't print mips_stack_argsize.
3242 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
3245 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3247 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
3248 * config/mips/tm-linux.h: Delete.
3249 * mips-linux-tdep.c (mips_svr4_so_ops): New.
3250 (mips_linux_in_dynsym_resolve_code): Make static. Use
3251 svr4_in_dynsym_resolve_code.
3252 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
3254 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
3256 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
3257 * Makefile.in (mips-linux-tdep.o): Update.
3258 * solib.c (set_solib_ops): New.
3259 (current_target_so_ops): Update comment.
3260 * solib.h (set_solib_ops): New prototype.
3262 2007-05-16 Chris Dearman <chris@mips.com>
3264 * printcmd.c (do_examine): Fix typos in a comment.
3266 2007-05-16 Richard Sandiford <richard@codesourcery.com>
3268 * configure.ac: Allow sysroots to be relocated under $prefix as
3269 well as $exec_prefix.
3270 * configure: Regenerate.
3272 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3274 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
3275 (offsetof): Do not define.
3276 (find_stub_with_shl_get): Use numerical value 3 instead of
3277 symbolic value TYPE_PROCEDURE.
3279 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3281 * gdb_proc_service.h (paddr_t): Delete typedef.
3282 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
3283 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
3284 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
3285 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
3286 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
3287 * Makefile.in (proc-service.o): Update.
3289 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3291 * Makefile.in (mips-tdep.o): Update.
3292 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
3295 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3297 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
3298 instead of store_typed_address.
3299 * value.c (pack_long): New.
3300 (value_from_longest): Use it.
3301 * value.h (pack_long): New prototype.
3303 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3305 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
3306 DW_EH_PE_signed if appropriate.
3308 2007-05-14 Paul Brook <paul@codesourcery.com>
3309 Daniel Jacobowitz <dan@codesourcery.com>
3311 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
3313 (dwarf_decode_lines): Check for line info without a file.
3315 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3317 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
3320 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3322 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
3324 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
3326 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
3328 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3330 * gdbarch.sh (read_sp): Remove.
3331 * gdbarch.c, gdbarch.h: Regenerate.
3332 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
3334 * avr-tdep.c (avr_read_sp): Remove.
3335 (avr_unwind_sp): New function.
3336 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
3337 * mips-tdep.c (mips_read_sp): Remove.
3338 (mips_unwind_sp): New function.
3339 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
3340 * score-tdep.c (score_read_unsigned_register): Remove.
3341 (score_read_sp): Remove.
3342 (score_unwind_sp): New function.
3343 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
3345 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
3347 * buildsym.c (start_subfile): Handle absolute pathnames
3348 while comparing subfile names.
3350 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3352 * hppa-hpux-tdep.c: Include "regcache.h".
3353 * hppa-linux-tdep.c: Likewise.
3354 * hppa-tdep.c: Include "gdb_stdint.h".
3355 (find_unwind_entry): Cast host pointer to uintptr_t before passing
3357 * Makefile.in: Update dependencies.
3359 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3361 * blockframe.c: Remove obsolete comments.
3362 * alpha-nat.c (fetch_osf_core_registers): Update comment.
3363 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
3364 * hppa-tdep.h (enum hppa_regnum): Likewise.
3365 * mips-tdep.h: Likewise.
3366 * m68hc11-tdep.c: Likewise.
3368 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3370 * inferior.h (read_sp): Remove prototype.
3371 * regcache.c (read_sp): Remove.
3372 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
3373 * infcall.c (call_function_by_hand): Likewise.
3374 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
3376 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3378 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3380 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
3381 instead of read_register and read_register_pid.
3383 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
3384 argument instead of PTID. Use regcache functions instead of
3386 (ia64_linux_insert_watchpoint): Update call.
3387 (ia64_linux_stopped_data_address): Use regcache functions
3388 instead of read_register_pid and write_register_pid.
3390 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3392 * libunwind-frame.h (struct regcache): Add forward declaration.
3393 (libunwind_get_reg_special): Add REGCACHE argument.
3394 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
3395 argument. Pass it to unw_init_remote_p.
3397 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
3398 libunwind_get_reg_special.
3399 (ia64_access_reg): Remove "write" case.
3400 (ia64_access_fpreg): Likewise. Read from next_frame passed
3401 as callback argument instead of from current_regcache.
3402 (ia64_access_rse_reg): Remove "write" case. Read from regcache
3403 passed as callback argument instead of from current_regcache.
3404 (ia64_access_rse_fpreg): New function.
3405 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
3407 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3409 * NEWS: Mention SPU overlay support.
3411 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3413 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
3415 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3417 * breakpoint.c (remove_breakpoint): Do not remove software
3418 breakpoints in unmapped overlay sections.
3420 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3422 * spu-tdep.c: Include "observer.h".
3423 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
3424 (spu_overlay_data): New variable.
3425 (struct spu_overlay_table): New type.
3426 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
3427 spu_overlay_new_objfile): New functions.
3428 (spu_gdbarch_init): Install spu_overlay_update.
3429 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
3430 allocate spu_overlay_data objfile data.
3432 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3434 * gdbarch.sh (overlay_update): New gdbarch function.
3435 (struct obj_section): Add forward declaration.
3436 * gdbarch.c, gdbarch.h: Regenerate.
3438 * symfile.c (simple_overlay_update): Make global.
3439 (target_overlay_update): Remove variable.
3440 (overlay_is_mapped): Call gdbarch_overlay_update instead of
3441 target_overlay_update.
3442 (overlay_load_command): Likewise.
3443 * symfile.h (struct obj_section): Add forward declaration.
3444 (simple_overlay_update): Add prototype.
3446 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
3448 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3450 * observer.sh: Add "struct objfile" forward declaration.
3451 * target.h (deprecated_target_new_objfile_hook): Remove.
3452 * symfile.c (deprecated_target_new_objfile_hook): Remove.
3453 (clear_symtab_users): Call observer_notify_new_objfile.
3454 (symbol_file_add_with_addrs_or_offsets): Likewise.
3455 * rs6000-nat.c: Include "observer.h".
3456 (vmap_ldinfo): Call observer_notify_new_objfile.
3457 (xcoff_relocate_core): Likewise.
3458 * remote.c (remote_new_objfile_chain): Remove.
3459 (remote_new_objfile): Do not call remote_new_objfile_chain.
3460 (_initialize_remote): Use observer_attach_new_objfile.
3461 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
3462 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
3463 (_initialize_tui_hooks): Use observer_attach_new_objfile.
3464 * aix-thread.c: Include "observer.h".
3465 (target_new_objfile_chain): Remove.
3466 (new_objfile): Do not call target_new_objfile_chain.
3467 (_initialize_aix_thread): Use observer_attach_new_objfile.
3468 * hpux-thread.c: Include "observer.h"
3469 (target_new_objfile_chain): Remove.
3470 (hpux_thread_new_objfile): Make static. Do not call
3471 target_new_objfile_chain.
3472 (_initialize_hpux_thread): Use observer_attach_new_objfile.
3473 * linux-thread-db.c: Include "observer.h".
3474 (target_new_objfile_chain): Remove.
3475 (thread_db_new_objfile): Do not call target_new_objfile_chain.
3476 (_initialize_thread_db): Use observer_attach_new_objfile.
3477 * sol-thread.c: Include "observer.h".
3478 (target_new_objfile_chain): Remove.
3479 (sol_thread_new_objfile): Make static. Do not call
3480 target_new_objfile_chain.
3481 (_initialize_sol_thread): Use observer_attach_new_objfile.
3482 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
3483 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
3486 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3488 * gdbarch.sh (remote_translate_xfer_address): Remove.
3489 * gdbarch.h, gdbarch.c: Regenerate.
3490 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
3491 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
3492 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
3493 call gdbarch_remote_translate_xfer_address.
3494 * frv-tdep.c (frv_gdbarch_init): Do not call
3495 set_gdbarch_remote_translate_xfer_address.
3496 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
3497 (ia64_gdbarch_init): Do not install it.
3499 2007-05-11 Bob Wilson <bob.wilson@acm.org>
3501 * NEWS: Mention change in handling the -tui option.
3503 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
3505 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
3508 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3510 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
3511 (breakpoint_inserted_here_p): Call it.
3512 (software_breakpoint_inserted_here_p): Likewise.
3514 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
3516 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
3517 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
3518 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
3519 (inf_ptrace_store_register): Likewise.
3520 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
3521 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
3523 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
3525 * linux-nat.c (linux_trad_target): Adapt parameter list.
3526 * linux-nat.h (linux_trad_target): Likewise.
3528 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
3530 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
3531 (mips_linux_cannot_store_register): Likewise.
3532 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
3533 Return (CORE_ADDR) -1 for registers that cannot be fetched or
3534 stored via ptrace. Use GDBARCH instead of current_gdbarch.
3535 (mips64_linux_register_addr): Likewise.
3536 (mips_linux_register_u_offset): Adapt parameter list. Pass
3537 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
3539 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3540 * config/mips/nm-linux.h: Delete file.
3542 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
3544 * remote.c (remote_detach): Error out if remote can't detach.
3546 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
3548 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
3549 instruction's opcode in the "opcode" variable and declares new
3550 variable "closing_insn".
3552 2007-05-10 Chris Dearman <chris@mips.com>
3553 Maciej W. Rozycki <macro@mips.com>
3555 * cli/cli-setshow.c (do_setshow_command): Remove trailing
3556 whitespace when setting a var_filename.
3558 2007-05-09 Bob Wilson <bob.wilson@acm.org>
3560 * main.c (captured_main): Recognize -tui option and print an error
3561 message when the TUI is not configured.
3563 2007-05-09 Andreas Schwab <schwab@suse.de>
3565 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
3566 set removed members.
3567 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3569 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3571 * gdbarch.sh (deprecated_store_struct_return): Remove.
3572 * gdbarch.c, gdbarch.h: Regenerate.
3573 * frv-tdep.c (frv_store_struct_return): Remove.
3574 (frv_gdbarch_init): Do not install it.
3576 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3578 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
3579 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
3580 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
3582 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3584 * spu-linux-nat.c: Include "gdb_stdint.h".
3585 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
3586 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3587 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
3588 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
3589 (spu_child_wait): Mark up string for translation.
3591 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
3592 Luis Machado <luisgpm@br.ibm.com>
3594 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
3595 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
3596 BC_INSTRUCTION): Define.
3597 (deal_with_atomic_sequence): New function.
3598 (rs6000_software_single_step): Call deal_with_atomic_sequence.
3599 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
3600 gdbarch_software_single_step routine.
3602 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3604 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
3605 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
3606 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
3607 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
3608 spu_child_post_attach, spu_fetch_inferior_registers,
3609 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
3610 memory addresses as ULONGEST, not CORE_ADDR.
3612 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3614 * gdbarch.sh: Add skip_permanent_breakpoint callback.
3615 * gdbarch.h, gdbarch.c: Regenerate.
3617 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
3618 (resume): Call gdbarch_skip_permanent_breakpoint instead of
3619 SKIP_PERMANENT_BREAKPOINT. Inline default case.
3621 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
3622 Add REGCACHE argument. Use it instead of read/write_register.
3623 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
3625 * config/pa/tm-hppah.h: Delete file.
3626 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
3627 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
3629 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
3631 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
3632 * NEWS: Mention improved C++ thunk support.
3633 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
3634 * cp-abi.c (cplus_skip_trampoline): New.
3635 * cp-abi.h (cplus_skip_trampoline): New prototype.
3636 (struct cp_abi_ops): Add skip_trampoline member.
3637 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
3638 (init_gnuv3_ops): Set skip_trampoline.
3640 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3642 * rs6000-tdep.c (struct frame_extra_info): Delete.
3644 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3646 * linux-thread-db.c: Update some FIXME comments.
3647 (thread_db_xfer_partial): Delete.
3648 (init_thread_db_ops): Do not set to_xfer_partial.
3650 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3652 * inftarg.c, infptrace.c: Remove files.
3653 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
3654 (inftarg.o, infptrace.o): Remove rules.
3655 * gdbcore.h (register_addr): Remove prototype.
3656 * inferior.h (kill_inferior, store_inferior_registers,
3657 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
3658 call_ptrace, pre_fork_inferior): Remove prototypes.
3659 * target.h (child_xfer_memory, child_pid_to_exec_file,
3660 child_core_file_to_sym_file, child_post_attach,
3661 child_post_startup_inferior, child_acknowledge_created_inferior,
3662 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
3663 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
3664 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
3665 child_follow_fork, child_reported_exec_events_per_exec_call,
3666 child_has_exited, child_thread_alive): Remove prototypes.
3668 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3670 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
3671 (sparc_store_inferior_registers): Likewise.
3672 * sparc-nat.c (fetch_inferior_registers): Rename to ...
3673 (sparc_fetch_inferior_registers): ... this.
3674 (store_inferior_registers): Rename to ...
3675 (sparc_store_inferior_registers): ... this.
3676 (sparc_target): Update callback names.
3677 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
3678 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
3680 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3682 * linux-nat.c (child_post_attach): Rename to ...
3683 (linux_child_post_attach): ... this. Make static.
3684 (child_follow_fork): Rename to ...
3685 (linux_child_follow_fork): ... this. Make static.
3686 (child_insert_fork_catchpoint): Rename to ...
3687 (linux_child_insert_fork_catchpoint): ... this. Make static.
3688 (child_insert_vfork_catchpoint): Rename to ...
3689 (linux_child_insert_vfork_catchpoint): ... this. Make static.
3690 (child_insert_exec_catchpoint): Rename to ...
3691 (linux_child_insert_exec_catchpoint): ... this. Make static.
3692 (child_pid_to_exec_file): Rename to ...
3693 (linux_child_pid_to_exec_file): ... this. Make static.
3695 (linux_handle_extended_wait): Update call.
3696 (linux_xfer_partial): Update callback routine names.
3698 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3700 * configure.host (alpha*-*-osf[12]*): Remove support.
3701 * NEWS: Mention removed configurations.
3703 * config/alpha/alpha-osf1.mh: Delete file.
3704 * config/alpha/alpha-osf2.mh: Delete file.
3705 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
3707 * config/alpha/nm-osf.h: Delete file.
3708 * config/alpha/nm-osf2.h: Delete file.
3709 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
3710 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
3711 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
3713 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
3714 (register_addr, kernel_u_size): Remove.
3715 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
3717 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3719 * regcache.c (regcache_invalidate): New function.
3720 (register_cached): Remove.
3721 (set_register_cached): Remove.
3722 (deprecated_registers_fetched): Remove.
3723 (registers_changed): Use regcache_invalidate instead
3724 of set_register_cached.
3725 (regcache_raw_read): Update comment.
3727 * regcache.h (regcache_invalidate): Add prototype.
3728 (register_cached): Remove.
3729 (set_register_cached): Remove.
3730 (deprecated_registers_fetched): Remove.
3732 * findvar.c (value_of_register): Do not call register_cached.
3733 * frame.c (frame_register): Likewise.
3734 * tui/tui-regs.c (tui_get_register): Likewise.
3736 * remote.c (fetch_register_using_p): Do not call set_register_cached.
3737 (process_g_packet): Likewise.
3738 (remote_fetch_registers): Likewise.
3739 * remote-sim.c (gdbsim_fetch_register): Likewise.
3740 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
3741 by regcache_invalidate.
3742 (mt_pseudo_register_write): Likewise.
3743 * sh-tdep.c (sh_pseudo_register_write): Likewise.
3745 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
3746 call by loop over regcache_raw_supply (..., NULL).
3748 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3750 * target.h (struct target_ops): Add REGCACHE parameter to
3751 to_prepare_to_store.
3752 (target_prepare_to_store): Likewise.
3753 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
3754 (update_current_target): Adapt prepare_to_store de_fault rule.
3756 * regcache.c (regcache_raw_write): Pass regcache to
3757 target_prepare_to_store.
3759 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
3760 Do not call CHILD_PREPARE_TO_STORE.
3761 * gnu-nat.c (gnu_prepare_to_store): Likewise.
3762 * procfs.c (procfs_prepare_to_store): Likewise.
3764 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
3765 * go32-nat.c (go32_prepare_to_store): Likewise.
3766 * monitor.c (monitor_prepare_to_store): Likewise.
3767 * nto-procfs.c (procfs_prepare_to_store): Likewise.
3768 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
3769 * remote-mips.c (mips_prepare_to_store): Likewise.
3770 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
3771 * win32-nat.c (win32_prepare_to_store): Likewise.
3773 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
3774 Use it instead of current_regcache.
3776 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
3777 parameter. Pass it on to next target.
3778 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
3780 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3782 * target.h (struct regcache): Add forward declaration.
3783 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
3784 and to_store_registers target operations.
3785 (target_fetch_registers, target_store_registers): Update.
3787 * regcache.c (regcache_raw_read): Replace register_cached by
3788 regcache_valid_p. Pass regcache to target_fetch_registers.
3789 (regcache_raw_write): Pass regcache to target_store_registers.
3791 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
3792 store_regs, store_wmmx_regs): Replace register_cached by
3795 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
3796 to target_fetch_registers calls.
3797 * corelow.c (core_open): Likewise.
3798 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
3799 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3800 ps_lsetfpregs): Likewise.
3801 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3802 ps_lsetfpregs): Likewise.
3803 * win32-nat.c (win32_resume): Likewise.
3804 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
3805 to target_store_registers call.
3806 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3808 * inferior.h (store_inferior_registers): Update prototype.
3809 (fetch_inferior_registers): Likewise.
3810 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
3811 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
3812 Update function pointer signatures.
3814 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
3815 use it instead of current_regcache, update calls.
3816 (aix_thread_store_registers): Likewise.
3817 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3818 (alphabsd_store_inferior_registers): Likewise.
3819 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3820 (amd64bsd_store_inferior_registers): Likewise.
3821 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
3822 (amd64_linux_store_inferior_registers): Likewise.
3823 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
3824 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
3825 fetch_wmmx_regs, store_wmmx_regs): Likewise.
3826 (arm_linux_fetch_inferior_registers): Likewise.
3827 (arm_linux_store_inferior_registers): Likewise.
3828 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
3829 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
3830 (store_register, store_regs, store_fp_register, store_fp_regs,
3831 armnbsd_store_registers): Likewise.
3832 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
3833 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3834 (bsd_uthread_store_registers): Likewise.
3835 * corelow.c (get_core_registers): Likewise.
3836 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
3837 go32_store_registers): Likewise.
3838 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
3839 (hppabsd_store_registers): Likewise.
3840 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
3841 (hppa_hpux_fetch_inferior_registers): Likewise.
3842 (hppa_hpux_store_register): Likewise.
3843 (hppa_hpux_store_inferior_registers): Likewise.
3844 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3845 (hppa_linux_fetch_inferior_registers): Likewise.
3846 (hppa_linux_store_inferior_registers): Likewise.
3847 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
3848 (hpux_thread_store_registers): Likewise.
3849 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
3850 (i386bsd_store_inferior_registers): Likewise.
3851 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
3852 gnu_store_registers): Likewise.
3853 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
3854 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
3856 (i386_linux_fetch_inferior_registers): Likewise.
3857 (i386_linux_store_inferior_registers): Likewise.
3858 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3859 (ia64_linux_fetch_registers): Likewise.
3860 (ia64_linux_store_register): Likewise.
3861 (ia64_linux_store_registers): Likewise.
3862 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3863 (inf_child_store_inferior_registers): Likewise.
3864 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3865 (inf_ptrace_fetch_registers): Likewise.
3866 (inf_ptrace_store_register): Likewise.
3867 (inf_ptrace_store_registers): Likewise.
3868 * infptrace.c (fetch_register, store_register): Likewise.
3869 (fetch_inferior_registers, store_inferior_registers): Likewise.
3870 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
3871 (m32r_linux_fetch_inferior_registers): Likewise.
3872 (m32r_linux_store_inferior_registers): Likewise.
3873 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
3874 (m68kbsd_store_inferior_registers): Likewise.
3875 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
3876 store_register, old_store_inferior_registers, fetch_regs, store_regs,
3877 fetch_fpregs, store_fpregs): Likewise.
3878 (m68k_linux_fetch_inferior_registers): Likewise.
3879 (m68k_linux_store_inferior_registers): Likewise.
3880 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
3881 (m88kbsd_store_inferior_registers): Likewise.
3882 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
3883 (mips64obsd_store_inferior_registers): Likewise.
3884 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
3885 (mips64_linux_regsets_store_registers): Likewise.
3886 (mips64_linux_fetch_registers): Likewise.
3887 (mips64_linux_store_registers): Likewise.
3888 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3889 (mipsnbsd_store_inferior_registers): Likewise.
3890 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
3891 (monitor_fetch_registers, monitor_store_registers): Likewise.
3892 * nto-procfs.c (procfs_fetch_registers): Likewise.
3893 (procfs_store_registers): Likewise.
3894 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
3895 fetch_register, supply_vrregset, fetch_altivec_registers,
3896 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
3897 (store_altivec_register, store_spe_register, store_register,
3898 fill_vrregset, store_altivec_registers, store_ppc_registers,
3899 ppc_linux_store_inferior_registers): Likewise.
3900 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
3901 (ppcnbsd_store_inferior_registers): Likewise.
3902 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
3903 (ppcobsd_store_registers): Likewise.
3904 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3905 * remote.c (fetch_register_using_p, process_g_packet,
3906 fetch_registers_using_g, remote_fetch_registers): Likewise.
3907 (store_register_using_P, store_registers_using_G,
3908 remote_store_registers): Likewise.
3909 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
3910 m32r_store_register, m32r_store_register): Likewise.
3911 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
3912 * remote-sim.c (gdbsim_fetch_register): Likewise.
3913 (gdbsim_store_register): Likewise.
3914 * rs6000-nat.c (fetch_register, store_register): Likewise.
3915 (rs6000_fetch_inferior_registers): Likewise.
3916 (rs6000_store_inferior_registers): Likewise.
3917 * s390-nat.c (fetch_regs, store_regs): Likewise.
3918 (fetch_fpregs, store_fpregs): Likewise.
3919 (s390_linux_fetch_inferior_registers): Likewise.
3920 (s390_linux_store_inferior_registers): Likewise.
3921 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3922 (shnbsd_store_inferior_registers): Likewise.
3923 * sol-thread.c (sol_thread_fetch_registers): Likewise.
3924 (sol_thread_store_registers): Likewise.
3925 * sparc-nat.c (fetch_inferior_registers): Likewise.
3926 (store_inferior_registers): Likewise.
3927 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3928 (spu_store_inferior_registers): Likewise.
3929 * target.c (debug_print_register): Likewise.
3930 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
3931 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
3932 (vaxbsd_store_inferior_registers): Likewise.
3933 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
3934 (win32_fetch_inferior_registers): Likewise.
3935 (win32_store_inferior_registers): Likewise.
3937 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3939 * gdbcore.h (struct regcache): Add forward declaration.
3940 (struct core_fns): Add REGCACHE argument to core_read_registers
3942 * corelow.c (get_core_register_section): Add REGCACHE argument,
3943 use it instead of current_regcache, pass it to core_read_registers
3945 (get_core_registers): Add current_regcache as parameter to
3946 get_core_register_section calls.
3948 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
3949 use it instead of current_regcache.
3950 * armnbsd-nat.c (fetch_core_registers): Likewise.
3951 (fetch_elfcore_registers): Likewise.
3952 * core-regset.c (fetch_core_registers): Likewise.
3953 * cris-tdep.c (fetch_core_registers): Likewise.
3954 * irix5-nat.c (fetch_core_registers): Likewise.
3955 * m68klinux-nat.c (fetch_core_registers): Likewise.
3956 * mips-linux-tdep.c (fetch_core_registers): Likewise.
3957 * win32-nat.c (fetch_elf_core_registers): Likewise.
3959 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3961 * gregset.h (struct regcache): Add forward declaration.
3962 (supply_gregset): Add REGCACHE parameter, make GREGS const.
3963 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
3964 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
3965 (fill_gregset): Add REGCACHE parameter.
3966 (fill_fpregset): Likewise.
3967 (fill_fpxregset): Likewise.
3969 Update all definitions accordingly:
3970 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
3971 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
3972 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
3973 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
3974 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
3975 (supply_gregset): Add REGCACHE parameter, use it instead of
3976 current_regcache. Make GREGSETP parameter const, adapt casts.
3977 (supply_fpregset): Add REGCACHE parameter, use it instead of
3978 current_regcache. Make FPREGSETP parameter const, adapt casts.
3979 (fill_gregset): Add REGCACHE parameter, use it instead of
3981 (fill_fpregset): Likewise.
3983 Update all callers to pass in current_regcache as the new argument:
3984 * core-regset.c: Include "regcache.h".
3985 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
3986 * procfs.c: Include "regcache.h".
3987 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
3988 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
3989 (procfs_do_thread_registers): Likewise.
3990 (procfs_make_note_section): Likewise.
3991 * proc-service.c: Include "regcache.h".
3992 (ps_lgetregs): Update fill_gregset call.
3993 (ps_lsetregs): Update supply_gregset call.
3994 (ps_lgetfpregs): Update fill_fpregset call.
3995 (ps_lsetfpregs): Update supply_fpregset call.
3996 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
3997 supply_fpregset calls.
3998 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
3999 (ps_lgetregs): Update fill_gregset call.
4000 (ps_lsetregs): Update supply_gregset call.
4001 (ps_lgetfpregs): Update fill_fpregset call.
4002 (ps_lsetfpregs): Update supply_fpregset call.
4004 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4005 fill_fpregset, and fill_fpxregset calls.
4006 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4007 (store_regs): Update fill_gregset call.
4008 (fetch_fpregs): Update supply_fpregset call.
4009 (store_fpregs): Update fill_fpregset call.
4010 (fetch_fpxregs): Update supply_fpxregset call.
4011 (store_fpxregs): Update fill_fpxregset call.
4012 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4013 (store_regs): Update fill_gregset call.
4014 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4015 (store_regs): Update fill_gregset call.
4016 (fetch_fpregs): Update supply_fpregset call.
4017 (store_fpregs): Update fill_fpregset call.
4018 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4019 * s390-nat.c (fetch_regs): Update supply_gregset call.
4020 (store_regs): Update fill_gregset call.
4021 (fetch_fpregs): Update supply_fpregset call.
4022 (store_fpregs): Update fill_fpregset call.
4024 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4027 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4029 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4030 it instead of current_regcache.
4031 (parse_register_dump): Add REGCACHE parameter, pass it to
4032 supply_register callback.
4033 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4034 parse_register_dump.
4035 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4036 parse_register_dump and dumpregs callback.
4037 (monitor_wait): Pass current_regcache to parse_register_dump and
4039 (monitor_fetch_register): Pass current_regcache to
4040 monitor_supply_register.
4041 (monitor_fetch_registers): Pass current_regcache to
4043 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4044 supply_register and dumpregs callbacks.
4045 (monitor_supply_register, monitor_dump_reg_block): Update
4047 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4048 it to monitor_supply_register.
4049 * dink32-rom.c (dink32_supply_register): Likewise.
4050 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4051 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4052 instead of current_regcache.
4054 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4056 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4057 Add REGCACHE parameter. Use it instead of current_regcache.
4058 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4059 i386nto_supply_gregset and i386nto_supply_fpregset.
4060 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4061 of current_regcache.
4063 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4064 nto_supply_ helper functions.
4065 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4067 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4069 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4070 supply_greget, supply_fpregset, supply_altregset, supply_regset,
4071 and regset_fill member function pointers.
4072 (nto_dummy_supply_regset): Adapt prototype.
4074 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4076 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4077 instead of current_regcache. Make REGS const.
4078 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4079 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4081 * shnbsd-nat.c: Include "regcache.h".
4082 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4084 (shnbsd_store_inferior_registers): Pass current_regcache to
4086 * Makefile.in (shbsd-nat.o): Update dependencies.
4088 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4090 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4091 instead of current_regcache.
4092 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4093 Make GREGSETP const, remove superfluous casts.
4094 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4095 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4097 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4098 (supply_64bit_reg): Likewise
4099 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4100 Make GREGSETP const, adapt casts accordingly.
4101 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4102 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4104 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4105 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4107 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4108 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4109 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4111 * mips-linux-nat.c: Include "regcache.h".
4112 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4113 current_regcache to mips{64}_(supply|fill)_ helper routines.
4114 (mips64_linux_regsets_fetch_registers): Likewise.
4115 (mips64_linux_regsets_store_registers): Likewise.
4117 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4118 REGCACHE argument; replace current_regcache. Make REGS const.
4119 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4120 replace current_regcache.
4121 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4122 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4123 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4124 mipsnbsd_store_inferior_registers): Pass current_regcache to
4125 mipsnbsd_(supply|fill)_... helper routines.
4127 * Makefile.in (mips-linux-nat.o): Update dependencies.
4129 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4131 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4132 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4133 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4134 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4135 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4136 * i386gnu-nat.c (store_fpregs): Likewise.
4137 * i386v4-nat.c (fill_fpregset): Likewise.
4138 * go32-nat.c (store_register, go32_store_registers): Likewise.
4140 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4142 * cris-tdep.c (supply_gregset): Rename to ...
4143 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4144 instead of current_regcache.
4145 (fetch_core_registers): Update call. Pass current_regcache.
4147 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4149 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4150 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4151 Use it instead of current_regcache.
4152 (supply_fparegset): Rename to ...
4153 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4154 Use it instead of current_regcache.
4155 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4156 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4158 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4160 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4161 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4162 use it instead of current_regcache.
4163 * alpha-tdep.h (struct regcache): Add forward declaration.
4164 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4165 alpha_fill_fp_regs): Update prototypes.
4167 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4168 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4169 * alpha-linux-nat.c: Include "regcache.h".
4170 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4171 current_regcache to alpha_supply/fill_ routines.
4173 * alphabsd-tdep.c: Include "regcache.h".
4174 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4175 pass it to alpha_supply_ routines. Make REGS const.
4176 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4177 pass it to alpha_fill_ routines.
4178 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4179 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4180 alphabsd_fill_fpreg): Update prototypes.
4182 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4183 fill_fpregset, alphabsd_fetch_inferior_registers,
4184 alphabsd_store_inferior_registers): Pass current_regcache to
4185 alphabsd_supply/fill_ routines.
4187 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4190 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4192 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4193 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4194 instead of current_regcache.
4195 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4196 REGCACHE parameter, pass it to supply_ routines.
4197 (aix_thread_fetch_registers): Pass current_regcache to
4198 fetch_regs_user_thread and fetch_regs_kernel_thread.
4200 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4201 Add REGCACHE parameter, use it instead of current_regcache.
4202 Call regcache_valid_p instead of register_cached.
4203 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4204 Also, pass REGCACHE to fill_ routines.
4205 (aix_thread_store_registers): Pass current_regcache to
4206 store_regs_user_thread and store_regs_kernel_thread.
4208 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4210 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4211 pointed to by GREGSETP.
4213 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4215 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4216 of regcache_raw_read_signed.
4217 (fill_fpregset): Use regcache_raw_collect instead of
4220 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4222 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4223 point arguments, test explicitly for use of the EABI32 ABI
4224 instead of inferring this condition from tests on register
4227 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4229 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4230 prior to allocating its location.
4232 2007-05-02 Maciej W. Rozycki <macro@mips.com>
4234 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4235 based on mips_abi_regsize() whose result is known in advance.
4236 (mips_o64_push_dummy_call): Likewise.
4238 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4240 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4241 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
4243 * mips-linux-nat.c: Include "gregset.h".
4244 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
4245 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
4246 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
4247 fill_fpregset): Move to mips-linux-nat.c.
4249 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
4251 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4253 * regcache.c (deprecated_read_register_gen): Remove, inline ...
4254 (read_register): ... here.
4255 (deprecated_write_register_gen): Remove, inline ...
4256 (write_register): ... here.
4257 * regcache.h (deprecated_read_register_gen): Remove prototype.
4258 (deprecated_write_register_gen): Likewise.
4260 * remote-sim.c (gdbsim_store_register): Replace call to
4261 deprecated_read_register_gen with regcache_cooked_read.
4262 * target.c (debug_print_register): Replace calls to
4263 deprecated_read_register_gen and read_register with
4264 regcache_cooked_read.
4266 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4268 * hpux-thread.c (hpux_thread_store_registers): Use
4269 regcache_raw_collect, not regcache_raw_read.
4270 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
4271 not regcache_raw_write.
4273 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4275 * gdbarch.sh: Remove deprecated_register_byte.
4276 * gdbarch.c, gdbarch.h: Regenerate.
4277 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
4278 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
4280 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
4281 * regcache.c (regcache_valid_p): Allow to query cooked registers in
4282 read-only register caches. Make REGCACHE parameter const.
4283 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
4285 * mi/mi-main.c (old_regs): Remove.
4286 (mi_setup_architecture_data, _initialize_mi_main): Remove.
4287 (register_changed_p): Reimplement to compare two register caches.
4288 (mi_cmd_data_list_changed_registers): Update caller.
4289 * mi/mi-main.h (mi_setup_architecture_data): Remove.
4290 * mi/mi-interp.c (mi_interpreter_init): Do not call
4291 mi_setup_architecture_data.
4293 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4295 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
4296 inline definition at the places the macros are used.
4297 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
4299 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4301 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
4303 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
4304 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
4305 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
4306 (rs6000_aix_regset_from_core_section): New function.
4307 (rs6000_aix_init_osabi): Register it.
4308 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
4309 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
4310 * rs6000-nat.c (CoreRegs): Do not define type.
4311 (fetch_core_registers, rs6000_core_fns): Remove.
4312 (_initialize_core_rs6000): Do not register it. Rename to ...
4313 (_initialize_rs6000_nat): ... this.
4314 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
4316 2007-04-27 Kevin Buettner <kevinb@redhat.com>
4318 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
4319 (dwarf2_read_address): Sign extend return address as required by
4320 target architecture.
4322 2007-04-27 Kevin Buettner <kevinb@redhat.com>
4324 * solib-frv.c (lm_base): Bail out if the main executable has
4327 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4329 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
4330 of FPCR register in fpregset.
4332 2007-04-27 Maciej W. Rozycki <macro@mips.com>
4334 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
4335 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
4337 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4339 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
4340 * rs6000-nat.c (rs6000_wait): New function.
4341 (_initialize_core_rs6000): Install it as to_wait target method.
4342 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
4344 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4346 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
4347 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
4348 * rs6000-nat.c (super_create_inferior): New variable.
4349 (rs6000_create_inferior): Make static. Adapt argument list. Call
4350 original version of create_inferior via super_create_inferior.
4351 (_initialize_core_rs6000): Install to_create_inferior target method.
4353 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4355 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
4356 (aix_thread_xfer_partial): ... this.
4357 (init_aix_thread_ops): Install to_xfer_partial instead
4358 of deprecated_xfer_memory target method.
4360 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
4361 and inftarg.o, add inf-ptrace.o.
4362 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
4363 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
4364 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
4365 (fetch_inferior_registers): Rename to ...
4366 (rs6000_fetch_inferior_registers): ... this. Make static.
4367 (store_inferior_registers): Rename to ...
4368 (rs6000_store_inferior_registers): ... this. Make static.
4369 (read_word, child_xfer_memory): Remove.
4370 (rs6000_xfer_partial): New function.
4371 (kernel_u_size): Remove.
4372 (_initialize_core_rs6000): Add inf_ptrace-based target.
4373 * Makefile.in (rs6000-nat.o): Update dependencies.
4375 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4377 * inf-ptrace.c: Include "gdb_stdint.h".
4378 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
4379 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
4380 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
4381 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
4382 (inf_ptrace_store_register): Likewise.
4383 * Makefile.in (inf-ptrace.o): Update dependencies.
4385 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4387 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
4388 * configure.tgt (rs6000-*-*): Likewise.
4389 * config/rs6000/aix4.mh: Delete file.
4390 * config/rs6000/aix4.mt: Delete file.
4391 * config/rs6000/rs6000.mh: Delete file.
4392 * config/rs6000/rs6000.mt: Delete file.
4394 * config/powerpc/nm-aix.h: Delete file.
4395 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
4397 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4399 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
4400 Remove obsolete part of comment.
4401 (store_regs_user_thread): Use uint32_t temporaries when calling
4403 (store_regs_kernel_thread): Likewise. Add assertion to verify
4404 correct size of struct ptsprs members.
4405 (aix_thread_xfer_memory): Fix type of myaddr.
4406 (aix_thread_extra_thread_info): Fix compiler warning.
4407 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
4408 (fetch_register, store_register): Adapt callers.
4410 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4412 * vec.h (vec_free): Rename to vec_free_. Adapt users.
4414 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4416 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
4418 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
4419 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
4420 (alpha_linux_regset_from_core_section): New function.
4421 (alpha_linux_init_abi): Install it.
4422 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
4423 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
4424 <sys/procfs.h>, and "gregset.h".
4425 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
4426 Move from config/alpha/nm-linux.h.
4427 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
4429 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
4430 * alpha-nat.c: Remove #ifdef __linux__ section.
4431 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
4432 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
4433 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
4434 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
4435 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
4436 (NATDEPFILES): Remove alpha-nat.o.
4437 * config/alpha/nm-linux.h: Delete file.
4438 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
4439 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4440 (alpha-linux-tdep.o): Likewise.
4442 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4444 * mips-linux-nat.c: No longer include "gdbcore.h".
4445 (mips_linux_register_addr): Move from mips-linux-tdep.c.
4446 (mips64_linux_register_addr): Likewise.
4447 (mips_linux_register_u_offset): Call mips_linux_register_addr or
4448 mips64_linux_register_addr instead of register_addr.
4449 * mips-linux-tdep.c (mips_linux_register_addr,
4450 mips64_linux_register_addr): Move to mips-linux-nat.c.
4451 (register_addr): Remove.
4452 (register_addr_data, init_register_addr_data): Remove.
4453 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
4454 (set_mips_linux_register_addr): Remove.
4455 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
4456 * Makefile.in (mips-linux-nat.o): Update dependencies.
4458 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4460 * linux-nat.c (linux_register_u_offset): Remove.
4461 (linux_target_install_ops): New function.
4462 (linux_target): Use it.
4463 (linux_trad_target): New function.
4464 * linux-nat.h (linux_trad_target): Declare.
4466 * alpha-linux-nat.c: Include "gdbcore.h".
4467 (alpha_linux_register_u_offset): New function.
4468 (_initialize_alpha_linux_nat): Use linux_trad_target.
4470 * mips-linux-nat.c: Include "gdbcore.h".
4471 (mips_linux_register_u_offset): New function.
4472 (_initialize_mips_linux_nat): Use linux_trad_target.
4474 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4475 * config/arm/nm-linux.h: Delete file.
4477 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
4478 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
4480 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4481 * config/ia64/nm-linux.h: Delete file.
4483 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4484 * config/m32r/nm-linux.h: Delete file.
4486 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4487 * config/m68k/nm-linux.h: Delete file.
4489 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4490 * config/pa/nm-linux.h: Delete file.
4492 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4493 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
4494 * config/powerpc/nm-linux.h: Delete file.
4496 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
4497 * config/s390/nm-linux.h: Delete file.
4499 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4500 * config/sparc/linux64.mh (NAT_FILE): Likewise.
4501 * config/sparc/nm-linux.h: Delete file.
4503 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4504 (mips-linux-nat.o): Likewise.
4506 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4508 * core-aout.c: Delete file.
4509 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
4510 (core-aout.o): Delete rule.
4511 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
4513 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
4515 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
4516 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
4517 KERNEL_U_ADDR): Remove.
4519 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
4520 (cannot_fetch_register, cannot_store_register): Remove.
4521 (fetch_register): Inline cannot_fetch_register and register_addr.
4522 (store_register): Inline cannot_store_register and register_addr.
4523 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
4524 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4525 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
4528 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
4529 (fetch_register): Inline register_addr.
4530 (store_register): Inline register_addr.
4531 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
4532 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4533 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
4535 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
4536 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
4537 REGISTER_U_ADDR): Remove.
4539 * hppa-linux-nat.c (register_addr): Rename to ...
4540 (hppa_linux_register_addr): ... this. Make static.
4541 (fetch_register, store_register): Adapt callers.
4542 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
4544 * ppc-linux-nat.c (kernel_u_size): Remove.
4545 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
4547 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
4548 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
4550 * config/vax/nm-vax.h: Delete file.
4552 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4554 * MAINTAINERS (Write After Approval): Add myself.
4556 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4558 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
4559 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
4560 (m68k_linux_sigcontext_reg_offset): Fix typo.
4561 (target_is_uclinux): New.
4562 (m68k_linux_inferior_created): New.
4563 (m68k_linux_get_sigtramp_info): Check for uClinux or
4564 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
4566 (_initialize_m68k_linux_tdep): Register
4567 m68k_linux_inferior_created.
4569 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
4571 * win32-nat.c (win32_detach): Remove delete_command call.
4572 Resume inferior with win32_resume instead of win32_continue.
4574 2007-04-19 Jerome Guitton <guitton@adacore.com>
4576 * ser-mingw.c (fd_is_file): New function.
4577 (file_select_thread): New function.
4578 (ser_console_wait_handle): Add special handling for files.
4580 2007-04-18 Denis Pilat <denis.pilat@st.com>
4582 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
4583 when missing from DW_TAG_subrange_type. Remove the handling of null
4584 return from die_type.
4586 2007-04-18 Maciej W. Rozycki <macro@mips.com>
4588 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
4589 change to rearrange some brackets.
4590 (mips_n32n64_push_dummy_call): Likewise.
4591 (mips_o32_push_dummy_call): Likewise.
4592 (mips_o64_push_dummy_call): Likewise.
4594 2007-04-18 Denis Pilat <denis.pilat@st.com>
4596 * infcmd.c (post_create_inferior): Start with a call to
4597 target_terminal_ours.
4599 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4601 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
4603 (mips_n32n64_push_dummy_call): Likewise. Reformat some
4605 (mips_o32_push_dummy_call): Likewise.
4606 (mips_o64_push_dummy_call): Likewise.
4608 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4610 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4613 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4615 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4617 (mips_o32_push_dummy_call): Likewise.
4619 2007-04-17 Andreas Schwab <schwab@suse.de>
4621 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
4622 sal to be bigger than the end of the function.
4624 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4625 Nigel Stephens <nigel@mips.com>
4627 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
4628 argument alignment requirements when calculating stack space
4629 required. When aligning an arg register to eight bytes
4630 boundary, align stack_offset too. Write floating-point
4631 arguments to the appropriate integer register if need go there.
4632 (mips_o64_push_dummy_call): Likewise.
4634 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4636 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
4637 "sig" arguments, add "regcache" argument.
4638 * gdbarch.c, gdbarch.h: Regenerate.
4640 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
4641 (handle_inferior_event): Call remove_single_step_breakpoints directly
4642 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
4644 * alpha-tdep.c (alpha_software_single_step): Update argument list.
4645 Remove handling of !insert_breakpoints_p case.
4646 * arm-tdep.c (arm_software_single_step): Likewise.
4647 * cris-tdep.c (cris_software_single_step): Likewise.
4648 * mips-tdep.c (mips_software_single_step): Likewise.
4649 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4650 * sparc-tdep.c (sparc_software_single_step): Likewise.
4651 * spu-tdep.c (spu_software_single_step): Likewise.
4653 * alpha-tdep.h (alpha_software_single_step): Update prototype.
4654 * mips-tdep.h (mips_software_single_step): Likewise.
4655 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4656 * sparc-tdep.h (sparc_software_single_step): Likewise.
4658 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4660 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
4661 when removing single-step breakpoints.
4663 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
4665 * varobj.h (varobj_set_frozen): New
4666 (varobj_get_frozen): New.
4667 (varobj_update): New parameter explicit.
4668 * varobj.c (struct varobj): New fields frozen
4670 (varobj_set_frozen, varobj_get_frozen): New.
4671 (install_new_value): Don't fetch values for
4672 frozen variable object, or children thereof. Allow
4673 a frozen variable object to have non-fetched value.
4674 (varobj_update): Allow updating child variables.
4675 Don't traverse frozen children.
4676 (new_variable): Initialize the frozen field.
4677 (c_value_of_variable): Return NULL for frozen
4678 variable without any value yet.
4679 * mi/mi-cmd-var.c (varobj_update_one): New parameter
4681 (mi_cmd_var_create): Output the 'frozen' field,
4682 as soon as testsuite is adjusted to expect that field.
4683 (mi_cmd_var_set_frozen): New.
4684 (mi_cmd_var_update): Pass the 'explicit' parameter to
4686 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
4687 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
4689 2007-04-13 Paul Brook <paul@codesourcery.com>
4691 * target-descriptions.c (tdesc_named_type): Add ieee_single and
4693 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
4695 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4697 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
4698 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
4699 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
4700 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
4701 * Makefile.in: Remove references to deleted files.
4702 * README: Do not mention deleted ROM monitor interfaces.
4703 * defs.h (enum language): Delete language_scm.
4704 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
4705 (dump_subexp_body_standard): Likewise.
4706 * parse.c (operator_length_standard): Likewise.
4707 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
4708 * remote-mips.c: Do not include remote-utils.h.
4709 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
4711 * value.c: Do not include scm-lang.h.
4712 (unpack_long): Delete scm_unpack call.
4713 * config/h8300/h8300.mt, config/mips/embed.mt,
4714 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
4715 config/sh/embed.mt, config/sh/linux.mt: Remove references to
4717 * NEWS: Mention removed files.
4719 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4721 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
4722 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
4724 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4726 * NEWS: Mention removal of HP aCC support.
4728 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4730 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
4731 first entry for static executables.
4732 (breakpoint_addr): Delete unused variable.
4733 (elf_locate_base): Search for _r_debug in static executables.
4734 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
4737 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4739 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
4740 (bpstat_what, print_one_breakpoint, allocate_bp_location)
4741 (mention): Remove bp_through_sigtramp support.
4742 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
4744 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4746 * breakpoint.c (bpstat_what): Give step-resume higher priority than
4749 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4751 * infrun.c: Doc fixes.
4752 (handle_inferior_event): Clarify debug message.
4753 (insert_step_resume_breakpoint_at_sal): Print a debug message.
4755 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4757 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
4759 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4761 * config/m68k/tm-monitor.h: Delete file.
4762 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
4763 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
4765 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
4766 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
4768 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
4770 * gdbarch.sh (software_single_step): Change the return type
4771 from void to int and reformatted some comments to <= 80
4773 * gdbarch.c, gdbarch.h: Regenerated.
4774 * alpha-tdep.c (alpha_software_single_step): Likewise.
4775 * alpha-tdep.h (alpha_software_single_step): Likewise.
4776 * arm-tdep.c (arm_software_single_step): Likewise.
4777 * cris-tdep.c (cris_software_single_step): Likewise.
4778 * mips-tdep.c (mips_software_single_step): Likewise.
4779 * mips-tdep.h (mips_software_single_step): Likewise.
4780 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4781 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4782 * sparc-tdep.c (sparc_software_single_step): Likewise.
4783 * sparc-tdep.h (sparc_software_single_step): Likewise.
4784 * spu-tdep.c (spu_software_single_step): Likewise.
4785 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
4786 and act accordingly.
4788 2007-04-11 Steve Ellcey <sje@cup.hp.com>
4790 * configure.ac (build_warnings): Add -Wno-char-subscripts.
4791 * configure: Regenerate.
4792 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
4794 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4796 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
4798 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4800 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
4802 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
4803 distinct on the TYPE_STUB_SUPPORTED debug targets.
4804 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
4806 2007-04-11 Joel Brobecker <brobecker@adacore.com>
4808 * sparc-tdep.c (X_RS2): New macro.
4809 (sparc_skip_stack_check): New function.
4810 (sparc_analyze_prologue): Adjust PC past stack probing
4811 sequence if necessary.
4813 2007-04-10 Andreas Schwab <schwab@suse.de>
4815 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
4818 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4820 * breakpoint.c (gdb_breakpoint_query): Really return an
4822 (gdb_breakpoint): Likewise.
4823 * thread.c (gdb_list_thread_ids): Likewise.
4824 (gdb_thread_select): Likewise.
4825 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
4826 (mi_cmd_thread_list_ids): Remove bogus initialization.
4828 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4830 * Makefile.in (SFILES): Remove hpacc-abi.c.
4831 (COMMON_OBS): Remove hpacc-abi.o.
4832 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
4833 (hpacc-abi.o, hpread.o): Delete rules.
4834 * somread.c: Delete extern declarations from hpread.c.
4835 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
4836 (som_symfile_finish): Do not call hpread_symfile_finish.
4837 (som_symfile_init): Do not call hpread_symfile_init.
4838 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
4839 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
4840 * hpacc-abi.c, hpread.c: Deleted.
4842 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4844 * solib-svr4.c (enable_break): Simplify return value.
4845 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
4847 2007-04-10 Andreas Schwab <schwab@suse.de>
4849 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
4850 l_ld_size, l_next_size, l_prev_size, l_name_size.
4852 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
4853 to extract addresses from link map.
4854 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
4855 (LM_NEXT): Likewise.
4856 (LM_NAME): Likewise.
4857 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
4858 (elf_locate_base): Likewise.
4859 (open_symbol_file_object): Likewise.
4860 (svr4_fetch_objfile_link_map): Likewise.
4861 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
4862 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
4864 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
4865 (svr4_lp64_fetch_link_map_offsets): Likewise.
4867 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
4868 removed members. Set l_ld_offset to -1 if not present.
4870 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
4872 Pass stderr of program run with "target remote |"
4874 * serial.c (serial_open): Set error_fd to -1.
4875 * serial.h (struct serial): New field error_fd.
4876 (struct serial_opts): New field avail.
4877 * ser-pipe.c (pipe_open): Create another pair
4878 of sockets. Pass stderr to gdb.
4879 * ser-mingw.c (pipe_windows_open): Pass
4880 PEX_STDERR_TO_PIPE to pex_run. Initialize
4883 (_initialize_ser_windows): Hook pipe_avail.
4884 * ser-base.c (generic_readchar): Check if there's
4885 anything in stderr channel and route that to gdb_stderr.
4887 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
4889 * dbxread.c (read_ofile_symtab): Move current_objfile
4890 clearing to after end_stabs.
4892 2007-04-01 Andreas Schwab <schwab@suse.de>
4894 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
4895 gdbarch instead of current_gdbarch.
4897 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
4899 * varobj.c (varobj_create): Keep varobj value
4900 NULL when evaluating the type.
4902 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
4904 * NEWS: Mention new Windows CE support.
4906 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
4908 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
4909 the obsoletion stanza.
4910 * NEWS: Mention deleted targets.
4912 * config/sh/tm-wince.h: Remove.
4913 * config/sh/wince.mt: Remove.
4914 * config/mips/tm-wince.h: Remove.
4915 * config/mips/wince.mt: Remove.
4918 * wince-stub.c: Remove.
4919 * wince-stub.h: Remove.
4920 * Makefile.in (wince.o): Remove rule.
4921 (wince-stub.o): Likewise.
4923 * mips-tdep.c (mips_next_pc): Make static.
4924 * mips-tdep.h (mips_next_pc): Remove declaration.
4925 * arm-tdep.c (arm_pc_is_thumb): Make static.
4926 (thumb_get_next_pc): Likewise.
4927 (arm_get_next_pc): Likewise.
4928 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
4929 (arm_pc_is_thumb): Likewise.
4930 (thumb_get_next_pc): Likewise.
4931 (arm_get_next_pc): Likewise.
4933 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4935 * MAINTAINERS: Remove d10v entry.
4936 * Makefile.in (SFILES): Remove dwarfread.c.
4937 (COMMON_OBS): Remove dwarfread.o.
4938 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
4939 (remote-est.o, rom68k-rom.o): Delete.
4940 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
4941 target est, target rom68k, and DWARF 1.
4942 * configure.tgt: Mark d10v as removed.
4943 * dwarf2read.c: Doc update.
4944 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
4946 (elf_locate_sections): Do not set them.
4947 (elf_symfile_read): Do not call dwarf_build_psymtabs.
4948 * symfile.h (dwarf_build_psymtabs): Delete prototype.
4949 * config/m68k/monitor.mt (TDEPFILES): Prune.
4950 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
4951 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
4953 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4955 * doublest.c (convert_floatformat_to_doublest): Use
4956 floatformat_classify.
4957 (floatformat_is_nan): Rename to...
4958 (floatformat_classify): ...this. Return more information.
4959 * doublest.h (enum float_kind): New.
4960 (floatformat_is_nan): Replace prototype...
4961 (floatformat_classify): ...with this one.
4962 * valprint.c (print_floating): Use floatformat_classify. Handle
4965 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4967 * README: Mention ISO C library requirement.
4969 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4971 * Makefile.in (SFILES): Remove nlmread.c.
4972 (COMMON_OBS): Remove nlmread.o.
4973 (nlmread.o): Delete rule.
4974 * README: Delete reference to remote-st.c.
4975 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
4976 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
4978 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
4979 (_initialize_i386_tdep): Do not reference them.
4980 * nlmread.c: Delete file.
4981 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
4982 * target.c: Doc update.
4983 * thread.c: Delete commented include.
4984 * config/alpha/tm-alpha.h: Doc update.
4986 2007-03-30 Chris Dearman <chris@mips.com>
4988 * utils.c (string_to_core_addr): Comment typo.
4990 2007-03-30 Chris Dearman <chris@mips.com>
4992 * mips-tdep.c: Comment typo.
4994 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
4996 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
4997 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4998 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4999 * config/powerpc/nm-ppc64-linux.h: Remove file.
5000 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5001 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5002 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5003 * infptrace.c (call_ptrace): Likewise.
5004 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5005 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5006 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5007 (store_register): Likewise.
5009 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5011 * Makefile.in (varobj.o): Add missing dependency.
5013 2007-03-29 Michael Snyder <msnyder@access-company.com>
5015 * MAINTAINERS: Update my email address.
5017 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5019 Add support for exception handling with multiple versions of
5021 * ada-lang.c: Update general comments on how Ada exception catchpoints
5023 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5024 (__gnat_raise_nodefer_with_msg): Delete.
5025 (ada_unhandled_exception_name_addr_ftype): New type.
5026 (exception_support_info): New type.
5027 (ada_unhandled_exception_name_addr): Add forward declaration.
5028 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5029 (default_exception_support_info): New constant.
5030 (exception_support_info_fallback): Likewise.
5031 (exception_info): New global variable.
5032 (ada_exception_support_info_sniffer): New function.
5033 (ada_executable_changed_observer): Likewise.
5034 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5035 ada_unhandled_exception_name_addr.
5036 (ada_unhandled_exception_name_addr): Reimplement to match the
5037 latest Ada runtime implementation.
5038 (error_breakpoint_runtime_sym_not_found): Delete.
5039 (ada_exception_sym_name): Get the exception sym name from
5040 exception_info rather than hardcoding it.
5041 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5042 Update error handling.
5043 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5045 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5047 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5048 (remote-st.o, uw-thread.o): Delete.
5049 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5050 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5051 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5052 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5053 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5054 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5055 rs6000-*-lynxos* to an obsoletion stanza.
5056 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5057 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5058 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
5059 i[34567]86-*-netware*.
5060 * NEWS: Mention deleted targets.
5062 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5063 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5064 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5065 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5066 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5067 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5068 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5069 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5070 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5071 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5072 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5073 config/rs6000/tm-rs6000ly.h: Delete files.
5075 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5077 * defs.h (deprecated_registers_changed_hook): Delete declaration.
5078 * interps.c (clear_interpreter_hooks): Do not clear
5079 deprecated_registers_changed_hook.
5080 * regcache.c (registers_changed): Do not call it.
5081 * top.c (deprecated_registers_changed_hook): Do not define it.
5082 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5083 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5084 (tui_remove_hooks): Do not remove it.
5085 (tui_selected_frame_level_changed_hook): Check for negative level.
5086 Use get_selected_frame.
5087 (tui_registers_changed_hook): Deleted.
5089 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5091 * stabsread.c (add_undefined_type): Add extra parameter.
5092 Now handles nameless types separately.
5093 (struct nat): New type.
5094 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5095 New static variables.
5096 (read_type): Update calls to add_undefined_type.
5097 (add_undefined_type_noname): New function.
5098 (add_undefined_type_1): Renames from add_undefined_type.
5099 (cleanup_undefined_types_noname): New function.
5100 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5101 (cleanup_undefined_types): New handles nameless types separately.
5102 (_initialize_stabsread): Initialize our new static constants.
5104 2007-03-29 Denis Pilat <denis.pilat@st.com>
5106 * configure.ac: Test for signal.h.
5107 * configure, config.in: Regenerate.
5109 2007-03-29 Denis Pilat <denis.pilat@st.com>
5111 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5112 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5114 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
5116 * arm-wince-tdep.c: New.
5117 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5118 (MT_CFLAGS): Delete.
5120 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5121 solib-legacy.o, solib-svr4.o, and remove wince.o.
5122 * configure.tgt (arm*-*-mingw32ce*): Add.
5123 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5124 (do_target_signal_to_host): Silence 'not used' warning.
5125 * config/arm/tm-wince.h: Remove.
5127 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5129 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5130 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5132 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5133 * config/ia64/tm-linux.h: Remove file.
5134 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5135 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5136 legacy_pc_in_sigtramp.
5137 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5138 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5139 Remove func_name argument.
5140 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5142 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5143 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5144 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5145 (HAVE_STEPPABLE_WATCHPOINT): Define.
5147 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5148 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5149 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5150 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5151 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5152 target_insert_watchpoint, target_remove_watchpoint): Remove.
5153 (FETCH_INFERIOR_REGISTERS): Define.
5154 * ia64-linux-nat.c (ia64_register_addr): Make static.
5155 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5156 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5157 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5158 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5159 (ia64_linux_stopped_by_watchpoint): Make static.
5160 (ia64_linux_can_use_hw_breakpoint): New function.
5161 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5162 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5163 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5165 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
5167 * linespec.c: Include language.h.
5168 (find_methods): Add language parameter. Call
5169 lookup_symbol_in_language. Pass language down.
5170 (add_matching_methods): Likewise. Call
5171 lookup_symbol_in_language.
5172 (add_constructors): Likewise.
5173 (find_method): Pass sym_class to collect_methods.
5174 (collect_methods): Add sym_class parameter. Pass language
5176 * symtab.c (lookup_symbol): Rename to ...
5177 (lookup_symbol_in_language): ... this. Add language
5178 parameter. Use passed language instead of current_language.
5179 (lookup_symbol): New as wrapper around
5180 lookup_symbol_in_language.
5181 (lookup_symbol_aux): Add language parameter. Use passed
5182 language instead of current_language.
5183 (search_symbols): Indent.
5184 * symtab.h (enum language): Forward declare.
5185 (lookup_symbol_in_language): Declare.
5186 (lookup_symbol): Update description.
5187 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5188 * ada-lang.c (restore_language): Remove.
5189 (lookup_symbol_in_language): Remove.
5191 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
5193 * breakpoint.c (bpstat_num): Add int *num parameter.
5194 * breakpoint.h (bpstat_num): Likewise.
5195 * infcmd.c (continue_command): Adjust to new bpstat_num
5197 (program_info): Likewise.
5199 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5201 * config/sh/tm-sh.h: Remove file.
5202 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5203 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5204 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5205 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5207 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5209 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5210 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5211 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5212 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5213 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5214 sequence if target_shortname is "remote".
5216 2007-03-27 Anton Blanchard <anton@samba.org>
5218 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5219 instead of wordsize when looking for the LR in a stack frame.
5221 2007-03-27 Andreas Schwab <schwab@suse.de>
5222 Daniel Jacobowitz <dan@codesourcery.com>
5224 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5225 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5226 argument. Update all callers.
5227 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5228 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5229 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5230 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5231 (dwarf2_frame_set_adjust_regnum): ...this.
5232 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5233 * rs6000-tdep.c: Include "dwarf2-frame.h".
5234 (rs6000_adjust_frame_regnum): Define.
5235 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5236 Register rs6000_adjust_frame_regnum.
5238 * Makefile.in (rs6000-tdep.o): Update dependencies.
5240 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
5242 * Makefile.in: Add support for a "pdf" target.
5244 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
5246 * amd64-tdep.c (amd64_init_frame_cache): New function.
5247 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
5249 2007-03-26 Nigel Stephens <nigel@mips.com>
5250 Maciej W. Rozycki <macro@mips.com>
5252 * ui-out.c (ui_out_field_core_addr): Truncate address to
5253 TARGET_ADDR_BIT size before printing.
5255 2007-03-22 Nigel Stephens <nigel@mips.com>
5256 Maciej W. Rozycki <macro@mips.com>
5258 * remote-mips.c (mips_xfer_memory): Update prototype.
5260 2007-03-22 Joel Brobecker <brobecker@adacore.com>
5262 * symfile.h: #include "symtab.h"
5264 2007-03-22 Denis Pilat <denis.pilat@st.com>
5266 * utils.c (pagination_on_command, pagination_off_command):
5267 Remove useless prototypes.
5269 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
5272 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
5273 instead of TYPE_NAME for object base class name.
5276 2007-03-19 Kevin Buettner <kevinb@redhat.com>
5278 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
5279 Specify frame type in calls to frame_func_unwind().
5281 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
5283 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
5284 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
5285 (refine_prologue_limit): Delete.
5286 (skip_prologue): Don't call it. Use extract_unsigned_integer.
5287 Assume lim_pc is set. Correct check for incomplete prologues.
5288 Do not skip clobbers of the frame pointer.
5289 * symtab.c (skip_prologue_using_sal): Fail if there is only one
5292 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5294 * frame.c (frame_pop): Check to see whether there's a frame to
5295 which we can pop first.
5297 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5299 * MAINTAINERS (Write After Approval): Add myself.
5301 2007-03-09 Markus Deuling <deuling@de.ibm.com>
5303 * infrun.c (breakpoints_failed): Remove unnecessary variable.
5304 (handle_inferior_event): Remove unnecessary braces.
5305 * breakpoint.c (bpstat_what): Remove wrong comment.
5307 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
5309 * spu-tdep.c (spu_in_function_epilogue_p): New function.
5310 (spu_gdbarch_init): Install it.
5312 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5314 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
5315 object types, not 0.
5317 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5319 * spu-tdep.c (spu_frame_align): New function.
5320 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
5322 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5324 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
5325 (spu_software_single_step): Likewise.
5326 (spu_read_pc, spu_write_pc): New functions.
5327 (spu_gdbarch_init): Install them.
5329 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5331 * cli/cli-dump.c (struct callback_data): load_offset needs to
5332 have signed long type.
5334 2007-03-07 Joel Brobecker <brobecker@adacore.com>
5336 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
5337 Revert the previous change that had some unexpected side-effects
5339 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
5340 function to get the address of the calling instruction.
5342 2007-03-07 Denis Pilat <denis.pilat@st.com>
5344 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
5345 get_selected_frame by deprecated_safe_get_selected_frame.
5347 2007-03-02 Mark Kettenis <kettenis@gnu.org>
5349 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
5350 "gdb_string.h". Don't include "nbsd-tdep.h".
5351 (SIZEOF_STRUCT_REG): Remove.
5352 (SHNBSD_SIZEOF_GREGS): New.
5353 (shnbsd_supply_gregset, shnbsd_collect_gregset)
5354 (shnbsd_regset_from_core_section): New functions.
5355 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
5356 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
5357 shnbsd_supply_gregset, shnbsd_collect_gregset.
5358 (shnbsd_gregset): New variable.
5359 (shnbsd_init_abi): Set regset_from_core_section.
5360 (GDB_OSABI_NETBSD_CORE): New define.
5361 (shnbsd_core_osabi_sniffer): New function.
5362 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
5363 * Makefile.in (shnbsd-tdep.o): Update dependencies.
5364 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
5366 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
5368 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5370 * gdbtypes.c (replace_type): Fix typo that caused us to not update
5371 length of the types referenced by the new type CV ring.
5373 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5375 * frame.c (frame_pop, frame_observer_target_changed): Call
5377 (flush_cached_frames): Rename to reinit_frame_cache and delete
5379 * frame.h (flush_cached_frames): Delete prototype and update comment.
5381 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
5382 reinit_frame_cache instead of flush_cached_frames. Do not call
5383 select_frame after reinit_frame_cache.
5384 * corelow.c (core_open): Likewise.
5385 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
5386 * infrun.c (prepare_to_proceed, context_switch)
5387 (handle_inferior_event): Likewise.
5388 * linux-fork.c (fork_load_infrun_state): Likewise.
5389 * ocd.c (ocd_start_remote): Likewise.
5390 * remote-e7000.c (e7000_start_remote): Likewise.
5391 * remote-mips.c (device): Likewise.
5392 * thread.c (switch_to_thread): Likewise.
5393 * tracepoint.c (finish_tfind_command): Likewise.
5394 * gdbarch.c: Regenerated.
5396 2007-02-28 Jerome Guitton <guitton@adacore.com>
5397 Joel Brobecker <brobecker@adacore.com>
5399 * gdbtypes.c (check_typedef): Do not replace stub type if
5400 the resolved type is not defined in the same objfile.
5402 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5404 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
5406 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5408 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
5409 symbol for Ada units when the symbol is defined using 't' rather
5410 than 'Tt' as symbol descriptor.
5412 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5414 * config/mips/tm-nbsd.h: Delete file.
5415 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5416 * config/sh/tm-nbsd.h: Delete file.
5417 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
5419 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5421 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
5422 unused WRONG_PARAM value since it was recently deleted.
5424 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
5426 * varobj.c (varobj_update): Free temporary vectors.
5428 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5430 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
5431 * config/powerpc/tm-linux.h: Delete file.
5432 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
5433 (PROCESS_LINENUMBER_HOOK): Do not undefine.
5434 (TEXT_SEGMENT_BASE): Do not redefine.
5435 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
5436 from config/rs6000/tm-rs6000.h.
5437 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5438 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
5439 (TEXT_SEGMENT_BASE): Remove.
5440 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
5441 (rs6000_in_solib_return_trampoline): Remove.
5442 (SKIP_TRAMPOLINE_CODE): Remove.
5443 (rs6000_skip_trampoline_code): Remove.
5444 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
5445 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5446 (FP0_REGNUM): Remove.
5447 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
5448 (rs6000_set_host_arch_hook): Remove.
5449 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
5450 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
5451 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
5452 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
5453 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
5454 * rs6000-nat.c: Include "rs6000-tdep.h".
5455 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
5456 (set_host_arch): Rename to ...
5457 (rs6000_create_inferior): ... this. Make public.
5458 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
5459 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
5460 (rs6000_create_inferior): Remove.
5461 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
5462 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
5463 set_gdbarch_in_solib_return_trampoline, and
5464 set_gdbarch_skip_trampoline_code.
5465 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
5466 from config/rs6000/tm-rs6000.h.
5468 2007-02-27 Joel Brobecker <brobecker@adacore.com>
5470 * buildsym.c (record_producer): Do nothing if no producer is provided.
5472 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
5474 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
5475 to check changelist is non-NULL. Call error if the frontend tries
5476 to update a non-root variable.
5478 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
5480 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5482 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
5483 (dwarf2_frame_sniffer): Update.
5484 (dwarf2_signal_frame_this_id): New function.
5485 (dwarf2_signal_frame_unwind): Use it.
5486 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
5487 * frame.c (frame_func_unwind): Add this_type argument.
5488 (get_frame_func): Update.
5489 (frame_unwind_address_in_block): Add this_type argument and check it.
5491 (get_frame_address_in_block): Update.
5492 * frame.h (enum frame_type): Move higher in the file.
5493 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
5496 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
5497 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
5498 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
5499 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
5500 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
5501 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
5502 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
5503 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
5504 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
5505 frame_func_unwind and frame_unwind_address_in_block to specify
5506 the frame type. Use frame_unwind_address_in_block instead of
5507 frame_pc_unwind in sniffers.
5509 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5511 * frame.c (deprecated_selected_frame): Rename to...
5512 (selected_frame): ...this. Make static.
5513 (get_selected_frame, select_frame): Update.
5514 * frame.h (deprected_select_frame): Delete.
5515 (deprecated_safe_get_selected_frame): Update comments.
5517 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
5518 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
5519 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
5520 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
5521 tui/tui.c: Replace references to deprecated_selected_frame.
5523 2007-02-27 Fred Fish <fnf@specifix.com>
5525 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
5526 directly decrement the stack pointer, accumulate their operand into
5527 the stack offset, and mark the function as not being frameless.
5529 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5531 * arch-utils.c (selected_byte_order): New.
5532 * arch-utils.h (selected_byte_order): New prototype.
5533 * remote-sim.c (gdbsim_open): Use selected_byte_order.
5535 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5537 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
5538 (default_symfile_offsets): Check VMA here. Update section VMAs.
5540 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5542 * remote.c (init_remote_state): Add special handling for placeholder
5545 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5547 * Makefile.in (XMLFILES): Include $(TDEP_XML).
5548 (filenames_h): New variable.
5549 (clean): Clean up xml-builtin.c and stamp-xml.
5550 (arm-linux-nat.o): Update.
5551 * config/arm/linux.mh (TDEP_XML): Define.
5552 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
5553 (arm_linux_has_wmmx_registers): New.
5554 (GET_THREAD_ID): Fix typo.
5555 (IWMMXT_REGS_SIZE): Define.
5556 (fetch_wmmx_regs, store_wmmx_regs): New.
5557 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
5558 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
5559 (super_xfer_partial, arm_linux_xfer_partial): New.
5560 (_initialize_arm_linux_nat): Use them.
5561 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
5562 (xml_builtin_xfer_partial): New function.
5563 * xml-support.h (xml_builtin_xfer_partial): New prototype.
5564 * NEWS: Update mention of iWMMXt support.
5566 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5568 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
5569 if there are no FPA registers.
5570 (arm_dwarf_reg_to_regnum): New function.
5571 (arm_register_type, arm_register_name): Return minimal values for
5572 unsupported registers.
5573 (arm_register_sim_regno): Handle iWMMXt registers.
5574 (arm_gdbarch_init): Record missing FPA registers if indicated by
5575 a target description. Recognize iWMMXt registers. Only register
5576 "info float" for FPA. Use ARM_NUM_REGS. Register
5577 arm_dwarf_reg_to_regnum.
5578 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
5580 (struct gdbarch_tdep): Add have_fpa_registers.
5581 * features/xscale-iwmmxt.xml: Update capitalization.
5582 * regformats/arm-with-iwmmxt.dat: Regenerated.
5584 2007-02-24 Kevin Buettner <kevinb@redhat.com>
5586 * NEWS (New targets): Add entry for the Toshiba Media Processor.
5588 2007-02-23 Kevin Buettner <kevinb@redhat.com>
5590 * MAINTAINERS (mep): New target.
5592 2007-02-23 Kevin Buettner <kevinb@redhat.com>
5594 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
5596 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
5597 (mep-tdep.o): New rule.
5598 * configure.tgt (mep-*-*): New target.
5599 * mep-tdep.c: New file.
5600 * config/mep/mep.mt: New file.
5602 2007-02-22 Markus Deuling <deuling@de.ibm.com>
5604 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
5605 BREAKPOINT_HIT and STOP_UNKNOWN.
5607 2007-02-22 Markus Deuling <deuling@de.ibm.com>
5609 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
5611 2007-02-20 Joel Brobecker <brobecker@adacore.com>
5613 * gdb_expat.h (XMLCALL): Define if not already defined.
5615 2007-02-20 Andreas Schwab <schwab@suse.de>
5617 * Makefile.in (symfile.o): Update dependencies.
5619 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5621 * MAINTAINERS: Disable -Werror for cris simulator. Build
5622 sparc64-solaris2.10 instead of the broken sparc-elf.
5623 * solib-frv.c: Include "solib.h".
5624 * Makefile.in (solib-frv.o): Update.
5625 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
5626 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
5627 (xtensa_frame_this_id, xtensa_frame_prev_register)
5628 (xtensa_push_dummy_call): Use %p.
5630 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5632 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5633 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
5634 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5635 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
5636 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
5637 (sparc-linux-tdep.o): Update.
5639 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
5641 * xtensa-tdep.h (xtensa_reg_mask_t): New.
5642 (xtensa_mask_t): Change mask field to be a separate array.
5643 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
5644 (xtensa_pseudo_register_write, xtensa_unwind_pc)
5645 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
5646 (xtensa_breakpoint_from_pc): Remove implicit type casting.
5647 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
5648 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
5649 (mask14, mask15): Rename to
5650 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
5651 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
5652 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
5653 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
5654 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
5655 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
5656 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
5657 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
5658 (xtensa_submask14, xtensa_submask15): New.
5659 (rmap): Follow strict aliasing rules doing static initialization.
5661 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
5663 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
5664 handling from here...
5665 (tdesc_register_type): ...to here.
5666 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
5667 * features/arm-core.xml: Use code_ptr and data_ptr.
5669 2007-02-13 Denis Pilat <denis.pilat@st.com>
5671 * varobj.h (enum varobj_update_error): New enum.
5672 * varobj.c (struct varobj_root): Add is_valid member.
5673 (varobj_get_type): Check for invalid varobj.
5674 (varobj_get_attributes): Likewise.
5675 (variable_editable):Likewise.
5676 (varobj_update): Likewise. Use varobj_update_error.
5677 (new_root_variable): Set root varobj as valid by default.
5678 (varobj_invalidate): New function.
5679 * symfile.c (clear_symtab_users): Use varobj_invalidate.
5680 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
5681 Use varobj_update_error.
5683 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
5686 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
5687 Pascal language marker.
5688 * dwarf2read.c (set_cu_language): Likewise.
5690 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
5692 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
5693 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
5694 instead of target_terminal_init since inferior_ptid isn't set yet.
5696 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
5698 * MAINTAINERS (Write After Approval): Add myself.
5700 2007-02-09 Fred Fish <fnf@specifix.com>
5702 Based on work by Apple Computer, Inc.
5703 * event-top.c (async_request_quit): Call quit() whenever either
5704 quit_flag is set or immediate_quit is set.
5706 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5708 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
5709 type to a pointer to const struct block.
5710 (ada_lookup_symbol_list): Don't cast away constness when calling
5711 remove_out_of_scope_renamings.
5713 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5715 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
5716 address of 'filename'; it is always non null.
5718 2007-02-09 Joel Brobecker <brobecker@adacore.com>
5720 * exec.c (add_to_section_table): Do not discard empty sections.
5722 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5724 * features/Makefile, features/arm-with-iwmmxt.xml,
5725 features/gdbserver-regs.xsl, features/number-regs.xsl,
5726 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
5727 * regformats/arm-with-iwmmxt.dat: Generate.
5728 * NEWS: Mention iWMMXt.
5730 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5732 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
5733 (xml-tdesc.o): Update.
5734 * xml-support.c: Add a comment.
5735 (gdb_xml_enums_boolean): New variable.
5736 (gdb_xml_parse_attr_enum): Use strcasecmp.
5737 * xml-support.h (gdb_xml_enums_boolean): Declare.
5738 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
5739 next_regnum, and current_union.
5740 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
5741 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
5742 (field_attributes, union_children, reg_attributes, union_attributes)
5743 (vector_attributes, feature_attributes, feature_children): New.
5744 (target_children): Make static. Add <feature>.
5745 (tdesc_elements): Make static.
5746 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
5747 (struct tdesc_feature, tdesc_feature_p): New types.
5748 (struct target_desc): Add features member.
5749 (struct tdesc_arch_data, tdesc_data): New.
5750 (target_find_description): Clarify error message. Warn about
5751 ignored register descriptions.
5752 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5753 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
5754 (tdesc_data_cleanup, tdesc_numbered_register)
5755 (tdesc_numbered_register_choices, tdesc_find_register)
5756 (tdesc_register_name, tdesc_register_type)
5757 (tdesc_remote_register_number, tdesc_register_reggroup_p)
5758 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
5759 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
5760 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
5761 (tdesc_create_feature, tdesc_record_type): New.
5762 (free_target_description): Free features.
5763 (_initialize_target_descriptions): Initialize tdesc_data.
5764 * arch-utils.c (default_remote_register_number): New.
5765 * arch-utils.h (default_remote_register_number): New prototype.
5766 * target-descriptions.h (set_tdesc_pseudo_register_name)
5767 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
5768 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
5769 (tdesc_numbered_register, tdesc_numbered_register_choices)
5770 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5771 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
5772 (tdesc_create_reg): Declare.
5773 * gdbarch.sh (remote_register_number): New entry.
5774 * gdbarch.c, gdbarch.h: Regenerate.
5775 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
5776 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
5778 * arm-tdep.c (arm_register_aliases): New.
5779 (arm_register_name_strings): Rename to...
5780 (arm_register_names): ...this. Make const. Delete the old version.
5781 (current_option, arm_register_byte): Delete.
5782 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
5783 (value_of_arm_user_reg): New.
5784 (arm_gdbarch_init): Verify any described registers. Call
5785 tdesc_use_registers. Don't use arm_register_byte. Create aliases
5786 for standard register names.
5787 (_initialize_arm_tdep): Do not adjust arm_register_names.
5788 * user-regs.c (struct user_reg): Add baton member.
5789 (append_user_reg, user_reg_add_builtin, user_regs_init)
5790 (user_reg_add, value_of_user_reg): Use a baton for user
5792 * std-regs.c: Update.
5793 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
5794 (user_reg_add): Add baton argument.
5795 * NEWS: Mention target description register support.
5796 * features/arm-core.xml, features/arm-fpa.xml: New.
5797 * eval.c (evaluate_subexp_standard): Allow ptype $register
5798 when the program is not running.
5800 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
5802 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
5804 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5806 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
5807 info->disassembler_options to "any".
5809 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5811 * varobj.c (install_new_value): Only call value_get_print_value
5814 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5816 Reported by timeless@gmail.com:
5817 * gdb/target.c (target_flash_erase): Do not return void value.
5818 (target_flash_done): Likewise.
5819 * gdb/cli/cli-cmds.c (source_command): Likewise.
5821 2007-02-08 Fred Fish <fnf@specifix.com>
5823 Based on work by Apple Computer, Inc.
5824 * event-top.c (handle_sigint): Set quit_flag.
5825 (async_request_quit): Don't set quit_flag. Avoid calling quit()
5826 if quit_flag has already been reset.
5828 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5830 * ser-mingw.c (pipe_windows_close): Move variable initialization back
5833 2007-02-08 Fred Fish <fnf@specifix.com>
5835 * defs.h (request_quit): Remove declaration.
5836 * utils.c (request_quit): Remove definition.
5838 2007-02-08 Joel Brobecker <brobecker@gnat.com>
5839 Jan Kratochvil <jan.kratochvil@redhat.com>
5840 Daniel Jacobowitz <dan@codesourcery.com>
5842 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
5843 (skip_prologue): Allow bl->blrl used by PIC code.
5845 2007-02-08 Mark Kettenis <kettenis@gnu.org>
5846 Daniel Jacobowitz <dan@codesourcery.com>
5848 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
5849 initialize tmp_obstack.
5850 * p-valprint.c (pascal_object_print_value_fields)
5851 (pascal_object_print_value): Likewise.
5853 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5855 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
5857 2007-02-08 Mark Kettenis <kettenis@gnu.org>
5859 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5860 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
5862 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5864 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
5866 (tdesc_parse_xml): Cache expanded descriptions.
5868 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5870 * Makefile.in (XMLFILES): New.
5871 (COMMON_OBS): Add xml-builtin.o.
5872 (xml-builtin.c, stamp-xml): New rules.
5873 (xml-tdesc.o): Update.
5874 * features/feature_to_c.sh: New file.
5875 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
5876 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
5877 (gdb_xml_start_element): Initialize scope after possibly reallocating
5878 scopes. Move cleanup later. Handle the XInclude description
5880 (gdb_xml_end_element): Only parse the body if there is a current element.
5881 Call XML_DefaultCurrent if there is no element.
5882 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
5883 (struct xinclude_parsing_data, xinclude_start_include)
5884 (xinclude_end_include, xml_xinclude_default)
5885 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
5886 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
5887 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
5888 * xml-support.h (xml_fetch_another, xml_process_xincludes)
5889 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
5890 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
5891 XInclude directives. Use the compiled in DTD.
5892 (fetch_xml_from_file): Add baton argument. Treat it as a containing
5893 directory name. Do not warn here.
5894 (file_read_description_xml): Update call. Warn here instead. Pass
5896 (fetch_available_features_from_target): New.
5897 (target_read_description_xml): Use it.
5898 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
5900 * features/xinclude.dtd: New file.
5902 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5904 * linux-thread-db.c (check_for_thread_db): Return early if we have
5905 no libthread_db support.
5907 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5909 * mi/mi-parse.h: Include <sys/time.h>.
5911 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
5913 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
5914 instead of print_variable_value to print values.
5916 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5918 * mi/mi-main.c: Numerous formatting changes.
5919 (mi_cmd_data_write_register_values): Replace clause inadvertantly
5920 removed in my previous change.
5922 2007-02-03 Eli Zaretskii <eliz@gnu.org>
5924 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
5925 Use 1000000L instead of 1000000.
5927 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5929 Based on work by Apple Computer, Inc.
5931 * configure.ac: Test for sys/resource.h and getrusage.
5932 * configure, config.in: Regenerate.
5934 * mi/mi-main.c: Include <sys/resource.h> if present.
5935 (rusage): Declare if HAVE_GETRUSAGE.
5936 (current_command_ts, do_timings): New static variables.
5937 (timestamp, print_diff_now, print_diff, timeval_diff):
5938 New static timing functions.
5939 (mi_cmd_enable_timings): New function for new MI command.
5940 (captured_mi_execute_command, mi_execute_async_cli_command):
5941 Call timing functions.
5943 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
5946 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
5948 * mi/mi-parse.h: (mi_timestamp): New structure.
5949 (mi_parse): Add mi_timestamp* member.
5951 2007-02-02 Denis Pilat <denis.pilat@st.com>
5953 * thread.c (make_cleanup_restore_current_thread): New function.
5954 (info_threads_command): Use of make_cleanup_restore_current_thread
5955 to restore the current thread and the selected frame.
5956 (restore_selected_frame): New function.
5957 (struct current_thread_cleanup): Add frame_id field.
5958 (do_restore_current_thread_cleanup): Add restoring of the selected
5960 (make_cleanup_restore_current_thread): Likewise.
5961 (thread_apply_all_command): backup the selected frame while
5962 entering the function and restore it at exit.
5963 (thread_apply_command): Likewise.
5965 2007-02-02 Denis Pilat <denis.pilat@st.com>
5967 * MAINTAINERS (Write After Approval): Add myself to the list.
5969 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5971 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
5972 (m32r_store_register): Ditto.
5974 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
5976 * ser-mingw.c (pipe_windows_open)
5977 (pipe_windows_read, pipe_windows_write): Declare
5978 variables at the top of the function.
5980 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5982 * doublest.c (floatformat_from_length): Use the right element from
5983 gdbarch floatformats.
5984 (floatformat_from_type, extract_typed_floating)
5985 (store_typed_floating): Likewise.
5986 * doublest.h: Remove declarations for undefined floatformat arrays.
5987 * gdbarch.sh (float_format, double_format, long_double_format): Change
5989 (pformat): Update for pairs.
5990 * gdbarch.c, gdbarch.h: Regenerated.
5991 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
5992 (floatformats_ieee_double_littlebyte_bigword)
5993 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
5994 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
5995 (floatformats_vax_d): New variables.
5996 (builtin_type_ieee_single, builtin_type_ieee_double)
5997 (builtin_type_arm_ext, builtin_type_ia64_spill)
5998 (builtin_type_ia64_quad): Replace arrays with individual types.
5999 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6000 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6001 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6002 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6003 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6004 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6005 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6006 unused and endian-specific types.
6007 (recursive_dump_type): Update for floatformat pairs.
6008 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6009 (build_gdbtypes): Use build_flt.
6010 (_initialize_gdbtypes): Update set of initialized types.
6011 * gdbtypes.h: Update declarations to match gdbtypes.c.
6012 (struct main_type): Store a pointer to two floatformats.
6013 * arch-utils.c (default_float_format, default_double_format): Delete.
6014 * arch-utils.h (default_float_format, default_double_format): Delete.
6016 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6017 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6018 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6019 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6020 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6022 2007-01-29 Joel Brobecker <brobecker@adacore.com>
6024 * target.c (maintenance_print_target_stack): New function.
6025 (initialize_targets): Add new "maintenance print target-stack"
6028 2007-01-28 Mark Kettenis <kettenis@gnu.org>
6030 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6032 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6034 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6035 (struct dwarf2_loclist_baton): Likewise.
6037 2007-01-27 Eli Zaretskii <eliz@gnu.org>
6039 * cli/cli-script.c: Include breakpoint.h.
6040 (build_command_line): Require arguments only for if and while
6042 (get_command_line, execute_user_command, execute_control_command):
6043 Fix wording of warning messages.
6044 (print_command_lines): Print breakpoint commands.
6045 (execute_control_command): Call commands_from_control_command to
6046 handle the `commands' command inside a body of a flow-control
6048 (read_next_line): Recognize the `commands' command and build a
6049 command line structure for it.
6050 (recurse_read_control_structure, read_command_lines): Handle
6051 `commands' similarly to `if' and `while'.
6053 * breakpoint.c (get_number_trailer): Document the special meaning
6054 of NULL as the first argument PP.
6055 (commands_from_control_command): New function.
6057 * breakpoint.h (commands_from_control_command): Add prototype.
6059 * defs.h (commands_control): New enumerated value for enum
6060 command_control_type.
6062 2007-01-26 Joel Brobecker <brobecker@adacore.com>
6064 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6065 (ada_exception_sal): Update accordingly.
6067 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6069 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6070 * NEWS: Describe CHAR array vs. string identifcation rules.
6072 2007-01-25 Paul Brook <paul@codesourcery.com>
6074 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6076 2007-01-24 Jim Blandy <jimb@codesourcery.com>
6078 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6079 expression is empty, bother to return the 'optimized out' value we
6080 construct. (Thanks to Carl Burch.)
6082 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6084 * varobj.c (c_value_of_root, c_value_of_child)
6085 (cplus_describe_child): Don't call release_value.
6087 2007-01-24 Thiemo Seufer <ths@mips.com>
6089 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6092 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6094 Refactor getting children name, value and type access
6096 * varobj.c (get_type_deref): Remove.
6097 (adjust_value_for_child_access): New.
6098 (c_number_of_children): Use the above.
6099 (c_describe_child): Likewise.
6100 (enum accessibility): New.
6101 (match_accessibility): New function.
6102 (cplus_describe_child): New function.
6103 (cplus_name_of_child, cplus_value_of_child)
6104 (cplus_type_of_child): Reimplement in terms
6105 of cplus_describe_child.
6106 (cplus_number_of_children): Use
6107 adjust_value_for_child_access.
6109 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6111 Fix computation of the 'editable' attribute and
6112 value changeability for for references.
6113 * varobj.c (get_value_type): New function.
6114 (c_variable_editable): Use get_value_type.
6115 (varobj_value_is_changeable): Likewise.
6117 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6119 * source.c (find_and_open_source): Try rewriting the source
6120 path inside filename if dirname is NULL.
6122 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6124 * dwarf2read.c (add_partial_symbol): Create an extra partial
6125 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6126 (new_symbol): Likewise for symbols.
6128 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
6130 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6132 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
6134 * value.c (value_primitive_field): Copy the full 'location'
6135 contents, instead of assuming that copying ADDRESS will
6136 bring over everything in the union. Remove obsolete comment.
6138 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
6140 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6141 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6142 (m32c_m16c_pointer_to_address): Separate code from declarations.
6144 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
6146 * target.c (update_current_target): Correct typo.
6148 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
6150 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6153 2007-01-11 Andrew Cagney <cagney@redhat.com>
6154 Daniel Jacobowitz <dan@codesourcery.com>
6155 Jan Kratochvil <jan.kratochvil@redhat.com>
6157 * dwarf2-frame.c (execute_cfa_program): New support of
6158 `DW_CFA_GNU_negative_offset_extended'.
6160 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6162 * NEWS: Mention flash support for "load" and new remote packets.
6164 2007-01-21 Markus Deuling <deuling@de.ibm.com>
6166 * breakpoint.c (delete_command): Skip redundant loop iterations.
6168 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6170 * gdbarch.sh (register_type): Update comment.
6171 * gdbarch.h: Regenerated.
6172 * arch-utils.c (generic_register_size): Call register_type.
6173 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6174 * m32c-tdep.c (check_for_saved): Likewise.
6175 * mips-tdep.c (mips_print_register, print_gp_register_row)
6176 (mips_print_registers_info): Likewise.
6177 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6179 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6180 (sh64_do_register, sh64_print_register)
6181 (sh64_media_print_registers_info): Likewise.
6182 * tui/tui-regs.c (tui_register_format): Likewise.
6184 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6186 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6188 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6189 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6190 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6191 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6192 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6193 (make_symbol_completion_list): Likewise.
6195 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6196 Daniel Jacobowitz <dan@codesourcery.com>
6198 * buildsym.c (end_symtab): Use preallocated symtab if available.
6199 Fill in SYMBOL_SYMTAB.
6200 * buildsym.h (struct subfile): Add symtab member.
6201 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6202 (struct file_entry): Add symtab.
6203 (free_cu_line_header): New function.
6204 (read_file_scope): Use it. Save line_header in the cu. Process
6206 (add_file_name): Initialize new symtab member.
6207 (dwarf_decode_lines): Create symtabs for included files.
6208 (new_symbol): Set SYMBOL_SYMTAB.
6209 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6210 (search_symbols): Likewise.
6211 * symtab.h (struct symbol): Add symtab member.
6212 (SYMBOL_SYMTAB): Define.
6214 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6216 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6218 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6220 * arch-utils.c (show_endian): Correct reversed condition.
6222 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6224 * MAINTAINERS (Write After Approval): Add myself.
6226 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
6227 Vladimir Prus <vladimir@codesourcery.com>
6229 Fix 'selected frame' varobjs.
6230 * varobj.c (struct varobj): Remove the error field.
6231 (varobj_set_value): Don't check var->error.
6232 (install_new_value): Don't set var->error.
6233 (varobj_update): Always pass the new value
6234 of the root via install_new_value.
6235 (create_child): Don't set error field.
6236 (new_variable): Likewise.
6237 (c_value_of_root): Always reevaluate the value
6238 of selected frame varobjs in the selected frame.
6239 Don't call reinit_frame_cache.
6241 2007-01-15 Joel Brobecker <brobecker@adacore.com>
6243 * source.c (_initialize_source): Improve the help text of
6244 the substitute-path commands.
6246 2007-01-14 Mark Kettenis <kettenis@gnu.org>
6248 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
6249 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
6250 (frv_skip_prologue): Remove prototypes.
6251 (frv_adjust_breakpoint_address): Renamed from
6252 frv_gdbarch_adjust_breakpoint_address.
6253 (frv_gdbarch_init): Adjust.
6255 2007-01-13 Mark Kettenis <kettenis@gnu.org>
6257 * gdbarch.sh (deprecated_extract_return_value)
6258 (deprecated_store_return_value): Remove.
6259 (extract_return_value, store_return_value): Remove default values.
6260 * gdbarch.c, gdbarch.h: Regenerate.
6261 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
6262 (legacy_store_return_value): Remove.
6263 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
6266 * mi/mi-main.c: Remove obsolete comment.
6268 * regcache.c, regcache.h (deprecated_register_bytes)
6269 (deprecated_read_register_bytes)
6270 (deprecated_write_register_bytes): Remove.
6272 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
6273 Don't forget to move destination pointer.
6275 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6277 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
6279 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
6281 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
6282 past entry function with recent newlib.
6284 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
6286 * gdb.texinfo (GDB/MI Variable Objects): Improve the
6287 introduction. Specify -var-update more exactly.
6289 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
6291 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
6293 2007-01-10 Jim Blandy <jimb@codesourcery.com>
6295 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
6296 the Global Maintainers' invitation to be a global maintainer.
6298 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
6300 * infrun.c (singlestep_pc): New variable.
6301 (resume): Set singlestep_pc.
6302 (context_switch): Add a debugging message. Flush the frame cache.
6303 (handle_inferior_event): Add debugging messages. Handle thread
6304 hops when a software single step has completed. Let context_switch
6305 handle flushing the frame cache.
6307 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6309 * NEWS: Mention target descriptions, "set tdesc filename",
6310 "unset tdesc filename", "show tdesc filename", and
6311 qXfer:features:read.
6312 * arch-utils.c (choose_architecture_for_target): New function.
6313 (gdbarch_info_fill): Call it.
6314 * target-descriptions.c (struct property): Make members non-const.
6315 (struct target_desc): Add arch member.
6316 (target_description_filename): New variable.
6317 (target_find_description): Try via XML first.
6318 (tdesc_architecture): New.
6319 (free_target_description, make_cleanup_free_target_description): New.
6320 (set_tdesc_property): Call xstrdup.
6321 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
6322 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
6323 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
6324 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
6325 * target-descriptions.h (tdesc_architecture)
6326 (make_cleanup_free_target_description, set_tdesc_architecture): New
6328 * Makefile.in (SFILES): Add xml-tdesc.c.
6329 (COMMON_OBS): Add xml-tdesc.o.
6330 (target-descriptions.o): Update.
6331 (xml-tdesc.o): New rule.
6332 * xml-tdesc.c, xml-tdesc.h: New files.
6333 * remote.c (PACKET_qXfer_features): New enum.
6334 (remote_protocol_features): Add qXfer:features:read.
6335 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
6336 (_initialize_remote): Register qXfer:features:read.
6337 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
6338 * features/gdb-target.dtd: New file.
6340 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6342 * copyright.sh: Clarify error.
6344 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6346 * symtab.c (matching_bfd_sections): Fix VMA matching for
6349 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6351 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
6354 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6356 Updated copyright notices for most files.
6358 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6360 * copyright.sh (prunes): Add step-line.inp and step-line.c.
6362 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6364 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
6366 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
6368 * configure, config.in: Regenerate.
6369 * defs.h (debug_file_directory): Declare.
6370 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
6371 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
6372 relocate it if DEBUGDIR_RELOCATABLE.
6373 * symfile.c (debug_file_directory): Make non-static.
6374 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
6375 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
6376 (_initialize_symfile): Don't initialize debug_file_directory here.
6378 2007-01-09 Jim Blandy <jimb@codesourcery.com>
6380 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
6383 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6385 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
6386 frame_unwind_register to recurse.
6387 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
6388 (alpha_heuristic_frame_prev_register): Likewise.
6389 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
6390 * m32c-tdep.c (m32c_prev_register): Likewise.
6391 * frame.c (frame_register_unwind_location): Remove FIXME.
6393 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6394 Eli Zaretskii <eliz@gnu.org>
6396 * copyright.sh: New file.
6398 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6400 * configure.ac: Check for XML_StopParser.
6401 * xml-support.c (gdb_xml_body_text): Check for an error.
6402 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
6403 (gdb_xml_end_element_wrapper): Likewise.
6404 * config.in, configure: Regenerated.
6406 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6408 * varobj.c (install_new_value): Always update print_value.
6409 (value_get_print_value): Immediately return NULL for missing
6412 2007-01-08 Jim Blandy <jimb@codesourcery.com>
6414 * configure.ac: Tighten pattern for extracting value of
6415 DEPRECATED_TM_FILE from the target makefile fragment.
6416 * configure: Regenerated.
6418 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6420 * linux-nat.c (struct simple_pid_list): Add status.
6421 (add_to_pid_list): Record the PID's status.
6422 (linux_record_stopped_pid): Likewise. Make static.
6423 (pull_pid_from_list): Return the saved status.
6424 (linux_nat_handle_extended): Deleted.
6425 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
6426 Make static. Handle non-SIGSTOP for a new thread's first signal.
6427 (flush_callback): Handle unexpected pending signals.
6428 (linux_nat_wait): Update calls to changed functions.
6429 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
6430 Remove prototypes for newly static functions.
6432 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6434 * gdbarch.sh (value_from_register): New gdbarch function.
6435 * gdbarch.c, gdbarch.h: Regenerate.
6436 * findvar.c (default_value_from_register): New function.
6437 (value_from_register): Use gdbarch_value_from_register.
6438 * value.h (default_value_from_register): Declare.
6439 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
6440 spu_value_to_register): Remove.
6441 (spu_value_from_register): New function.
6442 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6443 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6444 Call set_gdbarch_value_from_register.
6445 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
6446 s390_value_to_register): Remove.
6447 (s390_value_from_register): New function.
6448 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6449 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6450 Call set_gdbarch_value_from_register.
6452 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6454 * NEWS: Add "set sysroot" and "show sysroot".
6455 * solib.c (solib_absolute_prefix): Delete. Replace
6456 all uses with gdb_sysroot.
6457 (_initialize_solib): Add "set sysroot" and "show sysroot".
6458 Make "solib-absolute-prefix" an alias to it.
6460 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6462 * frame.c (get_frame_register_bytes): New function.
6463 (put_frame_register_bytes): Likewise.
6464 * frame.h (get_frame_register_bytes): Declare.
6465 (put_frame_register_bytes): Likewise.
6466 * findvar.c (value_from_register): Always construct lval_register
6467 values. Use get_frame_register_bytes.
6468 * valops.c (value_assign): Use get_frame_register_bytes and
6469 put_frame_register_bytes.
6471 2007-01-08 Jim Blandy <jimb@codesourcery.com>
6473 * MAINTAINERS: Update Stan Shebs' email address.
6475 2007-01-07 Joel Brobecker <brobecker@adacore.com>
6477 * ada-lang.c (is_known_support_routine): Improve the implementation.
6479 2007-01-06 Joel Brobecker <brobecker@adacore.com>
6481 * ada-lang.c: Add include of source.h.
6482 (is_known_support_routine): Improve the check verifying that the file
6483 associated to this frame exists.
6484 * Makefile.in (ada-lang.o): Add dependency on source.h.
6486 2007-01-07 Jim Blandy <jimb@codesourcery.com>
6488 * ax-general.c (ax_const_l): Select proper opcode for the given
6491 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6493 * varobj.c (c_value_of_root): Don't select frame if variable
6494 object is out of scope.
6496 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
6498 * varobj.c (struct varobj): New member print_value.
6499 (install_new_value): Compare last printed value with current one
6500 instead of contents.
6501 (new_variable): Initialize var->print_value to NULL.
6502 (free_variable): Free var->print_value.
6503 (value_get_print_value): New function derived from
6504 c_value_of_variable.
6505 (c_value_of_variable): Use value_get_print_value.
6507 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6509 * i386-tdep.c (i386_analyze_stack_align): Add comment.
6511 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6513 * NEWS: Add entries for new catch commands.
6515 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6517 * dwarf2read.c (partial_die_info): Add field has_byte_size.
6518 (add_partial_symbol): Correct identification of external references.
6519 (process_structure_scope): Likewise.
6520 (read_partial_die): Handle DW_AT_byte_size attribute.
6522 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
6524 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
6526 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
6528 * varobj.c (get_type_deref): Fix variable objects for references to
6531 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6533 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
6536 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6538 * memory-map.c (struct_memory_map_parsing_data): Remove most
6539 members. Make property_name an array.
6540 (free_memory_map_parsing_data, memory_map_start_element)
6541 (memory_map_end_element, memory_map_character_data): Delete.
6542 (memory_map_start_memory, memory_map_end_memory)
6543 (memory_map_start_property, memory_map_end_property): New functions.
6544 (property_attributes, memory_children, memory_type_enum)
6545 (memory_attributes, memory_map_children, memory_map_elements): New.
6546 (parse_memory_map): Rewrite.
6547 * xml-support.c (debug_xml): New.
6548 (xml_get_required_attribute, xml_get_integer_attribute)
6549 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
6551 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
6552 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
6553 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
6554 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
6555 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
6556 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
6557 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
6559 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
6560 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
6561 (enum gdb_xml_element_flag, struct gdb_xml_element)
6562 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
6563 (struct gdb_xml_enum): New.
6564 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
6565 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
6566 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
6567 (xml_get_required_attribute, xml_get_integer_attribute)
6568 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
6569 * Makefile.in (xml_support_h, xml-support.o): Update.
6571 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6573 * Makefile.in (eval.o): Update dependencies.
6574 * eval.c: Include "ui-out.h" and "exceptions.h".
6575 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
6576 Use value_zero if an error occurs when avoiding side effects.
6577 * varobj.c (c_value_of_root): Initialize new_val.
6579 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6581 * varobj.c (varobj_list_children): Stop if the number of children is
6583 (c_number_of_children):
6585 2007-01-04 Mark Kettenis <kettenis@gnu.org>
6587 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
6588 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
6589 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
6590 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
6591 sizeof, instead of hardcoded constants.
6593 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6595 * CONTRIBUTE: Use sourceware.org.
6597 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6599 * buildsym.c (start_subfile): Handle producer.
6600 (record_producer): New function.
6601 * buildsym.h (struct subfile): Include producer.
6602 (record_producer): New prototype.
6603 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
6604 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
6605 armcc_cfa_offsets_reversed.
6606 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
6607 (dwarf2_frame_find_quirks): New function.
6608 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
6609 (decode_frame_entry_1): Record the CIE version. Record the
6610 augmentation. Skip armcc augmentations.
6611 * dwarf2read.c (read_file_scope): Save the producer.
6612 * symtab.h (struct symtab): Rename unused version member to
6615 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6617 * configure.ac (build_warnings): Use -Wall and
6618 -Wdeclaration-after-statement.
6619 * configure: Regenerated.
6621 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6623 Simplify access to variours properties of child
6624 variable objects in C.
6625 * varobj.c (value_struct_element_index): New function.
6626 (c_describe_child): New function.
6627 (c_name_of_child, c_value_of_child)
6628 (c_type_of_child): Rewrite to use c_describe_child.
6630 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6633 * varobj.c: Include "vec.h".
6634 (varobj_p): New typedef, declare vector of those.
6635 (struct varobj): Use vector for the 'children' member.
6636 (child_exists): Remove.
6637 (save_child_in_parent): Remove.
6638 (remove_child_from_parent): Remove.
6639 (struct varobj_child): Remove.
6640 (struct vstack): Remove.
6641 (vpush, vpop): Remove.
6642 (varobj_list_children): Adjust to work work vector.
6643 (varobj_update): Likewise. Use vectors for
6644 working stack and result.
6645 (delete_variable_1): Likewise.
6646 * Makefile.in (varobj.o): Update dependencies.
6648 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6650 Port from Apple's version.
6652 * varobj.c (type_changeable): Rename to...
6653 (varobj_value_is_changeable_p): ...this. Adjust all callers.
6654 (is_root_p): New function. Use it everywhere.
6656 2007-01-04 Jim Blandy <jimb@codesourcery.com>
6658 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
6661 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6663 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
6665 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6667 * hpread.c (hpread_type_lookup): Fix compilation failure.
6669 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
6671 * NEWS: New port to S+core.
6672 * MAINTAINERS (Write After Approval, Responsible Maintainers):
6675 * Makefile.in: Add dependencies for S+core files.
6676 * configure.tgt (score*, score-*-*): Add S+core target.
6677 * config/score/embed.mt: New file.
6678 * score-tdep.c: New file.
6679 * score-tdep.h: New file.
6681 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6683 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
6684 the appropriate type rather than a bogus void type.
6686 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6688 * ada-lang.h (ada_find_printable_frame): Remove.
6689 (ada_exception_catchpoint_p, ada_decode_exception_location)
6690 (ada_decode_assert_location): Add declaration.
6691 * ada-lang.c: Add include of annotate.h and valprint.h.
6692 (exception_catchpoint_kind): New enum.
6693 (function_name_from_pc, is_known_support_routine)
6694 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
6695 (ada_exception_name_addr_1, ada_exception_name_addr)
6696 (print_it_exception, print_one_exception, print_mention_exception)
6697 (print_it_catch_exception, print_one_catch_exception)
6698 (print_mention_catch_exception, catch_exception_breakpoint_ops)
6699 (print_it_catch_exception_unhandled)
6700 (print_one_catch_exception_unhandled)
6701 (print_mention_catch_exception_unhandled, print_it_catch_assert)
6702 (print_one_catch_assert, print_mention_catch_assert)
6703 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
6704 (ada_get_next_arg, catch_ada_exception_command_split)
6705 (ada_exception_sym_name, ada_exception_sym_name)
6706 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
6707 (ada_parse_catchpoint_condition, ada_exception_sal)
6708 (ada_decode_exception_location)
6709 (ada_decode_assert_location): New function.
6710 (catch_exception_unhandled_breakpoint_ops): New global variable.
6711 (catch_assert_breakpoint_ops): New global variable.
6712 * breakpoint.c: Add include of ada-lang.h.
6713 (print_one_breakpoint): Do not print the condition for Ada
6714 exception catchpoints.
6715 (create_ada_exception_breakpoint): New function.
6716 (catch_ada_exception_command, catch_assert_command): New function.
6717 (catch_command_1): Add support for the new "catch exception" and
6718 "catch assert" commands.
6719 (_initialize_breakpoint): Add help description for the new catch
6721 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
6723 (breakpoint.o): Add dependency on ada-lang.h.
6725 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
6727 * coffread.c (cs_to_section): If bfd_section is found, always
6728 return its section index.
6729 (coff_symtab_read): Determine the minimal_symbol_type using the
6732 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6733 Daniel Jacobowitz <dan@codesourcery.com>
6735 * Makefile.in (top.o): Update.
6736 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
6737 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
6738 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
6740 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
6742 2007-01-03 Mark Kettenis <kettenis@gnu.org>
6744 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
6745 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
6747 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6749 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
6750 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
6751 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
6752 greater than or equal to zero.
6753 * m2-typeprint.c (m2_array): Likewise.
6754 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6755 * gdbtypes.c (copy_type_recursive): Correct == typo.
6756 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
6757 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
6759 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
6760 (default_macro_scope): Remove unused variable.
6761 * prologue-value.h (pv_area_find_reg): Don't name an argument
6763 * remote-fileio.c (remote_fio_func_map): Add missing braces.
6764 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
6766 (cleanup_sigint_signal_handler): Remove casts.
6767 * valprint.c (val_print): Use a volatile local for the modified
6769 * varobj.c (languages): Remove extra array dimension.
6770 (varobj_create): Correct access to languages array.
6771 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
6773 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
6774 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
6775 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
6776 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
6777 (mi_cmd_data_write_memory): Likewise.
6778 * signals/signals.c (target_signal_to_string): Cast to int before
6780 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
6783 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6785 * NEWS: Mention pointer to member improvements.
6786 * Makefile.in (gnu-v3-abi.o): Delete special rule.
6787 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
6788 * ada-valprint.c (ada_print_scalar): Update for new type codes.
6789 * c-typeprint.c (c_print_type): Update for new type codes.
6790 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
6791 (c_type_print_base): Likewise.
6792 (c_type_print_args): Rewrite.
6793 * c-valprint.c (c_val_print): Update for new type codes. Remove
6794 support for references to members. Treat methods like functions.
6795 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
6796 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
6797 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
6798 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
6799 (struct cp_abi_ops): Add corresponding members.
6800 * cp-valprint.c (cp_print_class_method): Delete.
6801 (cp_find_class_member): New function.
6802 (cp_print_class_member): Use it. Simplify support for bogus
6804 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
6805 lookup_methodptr_type.
6806 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
6807 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
6808 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
6810 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
6811 references returned by user defined operators.
6812 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
6813 (f_type_print_varspec_suffix): Remove support for member pointers.
6814 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
6816 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
6817 (lookup_methodptr_type): New.
6818 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
6819 (recursive_dump_type): Update for new types.
6820 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
6821 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
6822 (lookup_memberptr_type, lookup_methodptr_type)
6823 (smash_to_memberptr_type): New prototypes.
6824 (smash_to_method_type): Formatting fix.
6825 (lookup_member_type, smash_to_member_type): Delete prototypes.
6826 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
6827 Do not rely on debug information for the vptr or the method's
6828 enclosing type. Handle function descriptors for IA64.
6829 (gnuv3_virtual_fn_field): Rewrite using the new functions.
6830 (gnuv3_find_method_in, gnuv3_print_method_ptr)
6831 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
6832 (gnuv3_method_ptr_to_value): New.
6833 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
6834 * hpread.c (hpread_type_lookup): Update for new types.
6835 * infcall.c (value_arg_coerce): Likewise.
6836 * m2-typeprint.c (m2_print_type): Remove explicit support
6837 for member pointers.
6838 * m2-valprint.c (m2_val_print): Likewise.
6839 * p-typeprint.c (pascal_type_print_varspec_prefix)
6840 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
6841 * p-valprint.c (pascal_val_print): Likewise.
6842 (pascal_object_print_class_method, pascal_object_print_class_member):
6844 * p-lang.h (pascal_object_print_class_method)
6845 (pascal_object_print_class_member): Delete prototypes.
6846 * stabsread.c (read_type): Update for new types.
6847 * typeprint.c (print_type_scalar): Likewise.
6848 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
6849 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
6850 argument. Construct a pointer to member if the address of a
6851 function or data member is requested.
6852 (value_cast_pointers): Don't modify the input value.
6853 (value_cast): Adjust pointer to member handling for new types.
6854 Allow null pointer to member constants. Don't modify the input
6856 (value_ind): Remove pointer to member check. Handle function
6857 descriptors for function pointers.
6858 (value_struct_elt, value_find_oload_method_list, check_field):
6859 Remove pointer to member checks.
6860 * value.c (unpack_long): Allow pointers to data members.
6861 (value_from_longest): Allow member pointers.
6862 * value.h (value_aggregate_elt): Add want_address.
6863 * varobj.c (c_variable_editable): Remove check for members.
6864 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
6865 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
6867 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
6868 * c-lang.h (cp_print_class_method): Delete prototype.
6869 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
6870 * mips-tdep.c (mips_gdbarch_init): Likewise.
6871 * gdbarch.c, gdbarch.h: Regenerated.
6873 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6875 * rs6000-tdep.c (rs6000_use_struct_convention)
6876 (rs6000_extract_return_value, rs6000_store_return_value)
6877 (rs6000_extract_struct_value_address): Remove.
6878 (rs6000_return_value): New function.
6879 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
6880 store_return_value, deprecated_extract_struct_value_address and
6881 deprecated_use_struct_convention. Use rs6000_return_value
6884 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
6886 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
6887 -display-disable, -display-enable, -display-insert and
6890 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6892 * breakpoint.c (remove_breakpoint): Remove dead code.
6894 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
6896 * varobj.c: Include block.h.
6897 (c_value_of_root): Check scope within nested statements.
6899 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6901 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
6902 regcache_cooked_write_signed instead of
6903 deprecated_write_register_bytes.
6905 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6907 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
6909 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6911 Followed the Start of New Year Procedure:
6912 * ChangeLog-2006: New file, containing all the entries for 2006.
6913 * ChangeLog: Removed all 2006 entries, and changed the reference
6914 to the previous ChangeLog to point to ChangeLog 2006.
6915 * top.c (print_gdb_version): Update copyright year.
6917 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6919 * Makefile.in (remote-sds.o): Remove.
6920 * remote-sds.c: Delete.
6922 For older changes see ChangeLog-2006.
6928 version-control: never