1 2007-09-07 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3 * p-valprint.c: Fix 7 ARI reported problems.
4 (pascal_val_print): Fix one operator at end of line issue.
5 Use paddress function to remove use of
6 deprecated_print_address_numeric function (2 times).
7 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
8 (pascal_value_print): Fix 3 operator at end of line issues.
10 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
13 * arm-tdep.c (arm_in_call_stub): Delete.
14 (arm_skip_stub): Handle from_arm and from_thumb stubs.
16 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
18 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
21 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
22 Jim Blandy <jimb@codesourcery.com>
24 * NEWS: Update description of string changes. Mention print/s.
25 * c-valprint.c (textual_element_type): New.
26 (c_val_print): Use it. Do not skip address printing for pointers
28 (c_value_print): Doc update.
29 * dwarf2read.c (read_array_type): Use make_vector_type.
30 * gdbtypes.c (make_vector_type): New.
31 (init_vector_type): Use it.
32 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
33 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
34 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
35 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
36 (make_vector_type): New.
37 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
38 Call the language print routine for string format.
39 (print_scalar_formatted): Call val_print for string format. Handle
40 unsigned original types for char format.
41 (validate_format): Do not reject string format.
42 * stabsread.c (read_type): Use make_vector_type.
43 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
45 2007-09-04 Michael Snyder <msnyder@access-company.com>
47 * expprint.c (print_subexp_standard): Check strchr for null.
48 * Makefile.in (expprint.o): Depend on gdb_assert.h.
50 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
52 * stabsread.c (patch_block_status): Guard against null.
53 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
55 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
57 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
58 in internal error message.
60 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
61 Daniel Jacobowitz <dan@codesourcery.com>
63 * infcmd.c (post_create_inferior): Update comment.
64 (run_command_1): Always call post_create_inferior with 0 as
67 * i386-cygwin-tdep.h: New.
68 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
69 (win32_xfer_shared_library): Make it extern.
71 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
73 (win32_so_ops): Delete.
74 (get_relocated_section_addrs): Delete.
75 (solib_symbols_add): Delete.
76 (register_loaded_dll): Delete.
78 (handle_load_dll): Use win32_make_so.
79 (win32_free_so): Free the passed in so.
80 (win32_relocate_section_addresses): Delete.
81 (win32_solib_create_inferior_hook): Delete.
82 (handle_unload_dll): Don't add PE offset here. Free so with
83 win32_free_so instead of free_so.
84 (win32_special_symbol_handling): Delete.
85 (get_win32_debug_event): Remove unneeded calls. Set state to
86 TARGET_WAITKIND_LOADED on a dll unload.
87 (do_initial_win32_stuff): Clear cygwin_load_start and
89 (map_code_section_args): Delete.
90 (dll_code_sections_add): Delete.
91 (core_section_load_dll_symbols): Delete.
92 (win32_xfer_shared_libraries): New.
93 (win32_current_sos): Delete.
94 (win32_xfer_partial): New.
95 (open_symbol_file_object): Delete.
96 (in_dynsym_resolve_code): Delete.
97 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
98 of win32_ops. Remove win32_so_ops settings. Don't set
99 current_target_so_ops here.
101 * Makefile.in (i386_cygwin_tdep_h): New variable.
102 (i386-cygwin-tdep.o): Update dependencies.
103 (win32-nat.o): Update dependencies.
105 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
106 Daniel Jacobowitz <dan@codesourcery.com>
108 * gdbarch.sh (core_xfer_shared_libraries): New.
110 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
112 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
114 * xml-support.c (gdb_xml_parse): Debug output tweaks.
115 (xml_escape_text): New.
116 * xml-support.h (xml_escape_text): Declare.
118 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
119 * config/i386/cygwin.mt (TDEPFILES): ... here.
121 * win32-nat.c: (fetch_elf_core_registers): Delete.
122 (win32_elf_core_fn): Delete.
123 (_initialize_core_win32): Delete.
125 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
126 "xml-support.h" and "gdbcore.h".
127 (i386_win32_gregset_reg_offset): New.
128 (I386_WIN32_SIZEOF_GREGSET): New.
129 (i386_win32_regset_from_core_section): New.
130 (win32_xfer_shared_library): New.
131 (struct cpms_data): New.
132 (core_process_module_section): New.
133 (win32_core_xfer_shared_libraries): New.
134 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
135 gregset_num_regs, sizeof_gregset members of tdep. Register
136 regset_from_core_section and core_xfer_shared_libraries callbacks.
138 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
139 * gdbarch.h, gdbarch.c: Regenerate.
141 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
143 * corelow.c (core_xfer_partial): Pass writebuf to
144 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
146 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
148 * arm-tdep.h (arm_skip_stub): Declare.
149 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
151 (arm_pe_skip_trampoline_code): New function.
152 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
153 gdbarch_skip_trampoline_code callback.
154 * Makefile.in (arm-wince-tdep.o): Update dependencies.
156 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
158 * MAINTAINERS: Move Fred Fish to Past Maintainers.
160 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
162 * configure.ac: Add --with-expat.
163 * configure: Regenerated.
165 2007-09-03 Andreas Schwab <schwab@suse.de>
167 * configure.ac: Accept --with-system-readline.
168 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
169 * configure: Regenerate.
170 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
172 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
174 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
175 Daniel Jacobowitz <dan@codesourcery.com>
177 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
179 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
181 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
183 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
185 * top.c (print_gdb_version): Update for GPL version 3.
187 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
189 * NEWS: Mention the build-id .debug files verification.
191 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
193 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
195 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
197 * Makefile.in (symfile.o): Update dependencies.
198 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
199 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
200 (struct build_id): New structure.
201 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
202 (find_separate_debug_file): New variable BUILD_ID.
203 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
205 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
207 * varobj.c (struct varobj): Fix comment
208 for the type member not to lie when it can be
211 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
213 Implement -var-info-path-expression.
215 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
217 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
218 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
219 * varobj.c (struct varobj): New field 'path_expr'.
220 (c_path_expr_of_child, cplus_path_expr_of_child)
221 (java_path_expr_of_child): New.
222 (struct language_specific): New field path_expr_of_child.
223 (varobj_create): Initialize the path_expr field.
224 (varobj_get_path_expr): New.
225 (new_variable): Initialize the path_expr field.
226 (free_variable): Free the path_expr field.
227 (adjust_value_for_children_access): New parameter
229 (c_number_of_children): Adjust.
230 (c_describe_child): New parameter CFULL_EXPRESSION.
231 Compute full expression.
232 (c_value_of_child, c_type_of_child): Adjust.
233 (cplus_number_of_children): Adjust.
234 (cplus_describe_child): New parameter CFULL_EXPRESSION.
235 Compute full expression.
236 (cplus_name_of_child, cplus_value_of_child)
237 (cplus_type_of_child): Adjust.
238 * varobj.h (varobj_get_path_expr): Declare.
240 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
242 * mi/mi-cmd-var.c (print_varobj): If a varobj
243 type is NULL, don't try to print it.
245 2007-08-30 Alan Modra <amodra@bigpond.net.au>
247 * ppc-linux-nat.c (right_fill_reg): Delete.
248 (supply_gregset): Use ppc_supply_gregset.
249 (supply_fpregset): Use ppc_supply_fpregset.
250 (fill_gregset): Use ppc_collect_gregset.
251 (fill_fpregset): Use ppc_collect_fpregset.
252 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
253 (right_supply_register, ppc_linux_supply_gregset): Delete.
254 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
255 (ppc_linux_supply_fpregset): Delete.
256 (ppc_linux_collect_gregset): New function.
257 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
258 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
259 ppc_linux_supply_gregset, and ppc_collect_gregset.
260 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
261 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
262 (ppc_linux_regset_from_core_section): Update.
263 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
264 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
265 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
266 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
267 (ppcobsd_collect_gregset): Likewise.
268 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
269 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
270 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
271 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
272 (rs6000_aix64_reg_offsets): Likewise.
273 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
274 ppc_floating_point_unit_p.
275 (rs6000_aix_collect_regset): Similarly.
276 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
277 when regsize is larger than regcache register size.
278 (ppc_collect_reg): Similarly zero pad when regsize is larger than
279 regcache register size.
280 (ppc_greg_offset): New function, split out from..
281 (ppc_supply_gregset): ..here. Separate code handling all regs from
282 single reg case. Correct xer offset.
283 (ppc_fpreg_offset): New function, split out from..
284 (ppc_supply_fpregset): ..here. Separate code handling all regs from
286 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
287 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
288 a fp unit, instead return if no fp.
290 2007-08-29 Jim Blandy <jimb@codesourcery.com>
292 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
293 this code has not been compiled for two years.
295 2007-08-29 Michael Snyder <msnyder@access-company.com>
297 * event-top.c (gdb_readline2): Return after EOF.
299 2007-08-29 Joel Brobecker <brobecker@adacore.com>
301 * symtab.c: Remove a function that has been commented out 3 years ago.
303 2007-08-29 Randolph Chung <tausq@debian.org>
305 * hppa-tdep.c (hppa32_cannot_fetch_register)
306 (hppa64_cannot_fetch_register): New functions.
307 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
308 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
310 2007-08-28 Michael Snyder <msnyder@access-company.com>
312 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
313 check for null before calling check_typedef.
315 * NEWS: Mention Coverity bug fixes.
317 2007-08-27 Markus Deuling <deuling@de.ibm.com>
319 * spu-tdep.c (spu_pointer_to_address): New function.
320 (spu_integer_to_address): Likewise.
321 (spu_gdbarch_init): Add spu_pointer_to_address and
322 spu_integer_to_address to gdbarch.
324 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
326 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
328 2007-08-23 Joel Brobecker <brobecker@adacore.com>
330 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
331 that contains the GDB license.
332 * copying.awk: Adjust to the GPLv3 wording.
333 * copying.c: Regenerate.
335 2007-08-23 Joel Brobecker <brobecker@adacore.com>
337 * copying.awk: Protoization, and i18n markup.
339 2007-08-23 Joel Brobecker <brobecker@adacore.com>
341 * config/djgpp/djconfig.sh: Switch license to GPLv3.
342 * copyright.sh: Likewise.
343 * gdb-events.sh: Likewise.
344 * gdb_gcore.sh: Likewise.
345 * gdb_mbuild.sh: Likewise.
346 * gdbarch.sh: Likewise.
347 * observer.sh: Likewise.
348 * features/feature_to_c.sh: Likewise.
349 * regformats/regdat.sh: Likewise.
351 2007-08-23 Joel Brobecker <brobecker@adacore.com>
353 Switch the license of all .c files to GPLv3.
354 Switch the license of all .h files to GPLv3.
355 Switch the license of all .cc files to GPLv3.
357 2007-08-23 Joel Brobecker <brobecker@adacore.com>
359 * configure.ac: Switch license to GPLv3.
361 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
363 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
364 determine the file's FPU type.
366 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
368 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
369 (mips_n32n64_push_dummy_call): Always increment float_argreg along
370 with argreg. Use mips_n32n64_fp_arg_chunk_p.
372 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
374 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
376 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
377 (elf_lookup_lib_symbol): Fix formatting.
379 2007-08-21 Michael Snyder <msnyder@access-company.com>
381 * dbxread.c (read_dbx_symtab): Guard null deref.
384 * valops.c (find_overload_match): Guard against NULL.
386 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
388 * MAINTAINERS (Patch Champions): Remove self.
390 2007-08-21 Chris Smith <chris.smith@st.com>
392 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
395 2007-08-18 Michael Snyder <msnyder@access-company.com>
397 * stabsread.c (dbx_lookup_type): Memory leak.
399 * event-loop.c (delete_async_signal_handler): Move pointer null
400 test to before pointer dereference.
402 * ui-out.c (append_header_to_list): Possible cut and paste error.
404 * MAINTAINERS: white space tweak.
406 2007-08-17 Michael Snyder <msnyder@access-company.com>
408 * stack.c (print_frame): Memory leak.
410 * completer.c (filename_completer): Avoid memory leak.
411 Remove unnecessary nested block.
413 * c-exp.y (parse_number): Memory leak.
415 * completer.c (location_completer): Must free 'fn_list', except
416 in the one case where it is returned (as 'list').
418 * varobj.c (value_of_root): Memory leak.
420 * gdbtypes.h (virtual_base_list): Remove export decl.
421 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
422 (virtual_base_index): Memory leak.
423 (virtual_base_index_skip_primaries): Ditto.
425 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
427 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
428 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
429 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
430 (xtensa_read_register): New function.
431 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
432 (xtensa_insn_kind): New types.
433 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
434 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
435 (xtensa_verify_config, xtensa_pseudo_register_read)
436 (xtensa_pseudo_register_write, xtensa_extract_return_value)
437 (xtensa_store_return_value)
438 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
439 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
440 (xtensa_frame_this_id, xtensa_frame_prev_register)
441 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
442 (call0_frame_cache, call0_frame_get_reg_at_entry)
443 (call0_classify_opcode, call0_track_op)
444 (call0_analyze_prologue, call0_frame_cache): New functions.
446 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
448 * breakpoint.c (bpstat_free): New.
449 (bpstat_clear): Use bpstat_free.
450 (delete_breakpoint): Document why we cannot
451 remove bpstats from stop_bpstat.
452 * breakpoint.h (bpstat_free): Declare.
454 2007-08-16 Michael Snyder <msnyder@access-company.com>
456 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
458 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
459 Joel Brobecker <brobecker@adacore.com>
461 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
463 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
464 Joel Brobecker <brobecker@adacore.com>
466 * ada-lang.c (possible_user_operator_p): Alternative fix to last
467 checkin guarding against NULL.
469 2007-08-14 Michael Snyder <msnyder@access-company.com>
471 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
472 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
473 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
474 go at beginning of new line.
476 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
477 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
478 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
479 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
480 tui-winsource.h, tui.c, tui.h: Function declarations and
481 definitions, wrap long lines.
483 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
484 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
485 Reformat block comments to GNU standard.
487 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
488 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
489 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
490 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
491 tui.c, tui.h: Comment reformatting to coding standard (capitals,
492 spaces after periods, etc).
494 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
495 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
496 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
497 tui-winsource.h: Whitespace changes, fix pointer declarations
500 2007-08-14 Joel Brobecker <brobecker@adacore.com>
501 Michael Snyder <msnyder@access-company.com>
503 * ada-lang.c (field_alignment): Guard against NULL.
505 2007-08-14 Joel Brobecker <brobecker@adacore.com>
507 * MAINTAINERS (Global Maintainers): Add self.
509 2007-08-14 Michael Snyder <msnyder@access-company.com>
511 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
513 * ada-lang.c (possible_user_operator_p): Guard against NULL.
515 * varobj.c (cplus_describe_child): Guard against null.
516 Use "NULL" instead of "0" to initialize pointers.
518 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
520 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
521 to match any gdbarch with matching OSABI. Set default ABI and FPU
522 after running the OSABI handler.
524 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
526 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
527 * config/i386/linux.mt (TDEPFILES): ...to here.
529 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
531 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
532 the 'silent' parameter and code to implement that.
533 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
535 * win32-nat.c: Adjust.
538 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
540 * breakpoint.c (update_breakpoints_after_exec): Don't
543 2007-08-13 Michael Snyder <msnyder@access-company.com>
545 * valops.c: Whitespace clean-up.
547 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
549 * event-top.c (command_line_handler): Memory leak.
551 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
552 No need to make copy.
554 * source.c (find_source_lines): Require symtab 's'.
556 2007-08-11 Michael Snyder <msnyder@access-company.com>
558 * completer.c: Spelling fix in comments.
560 2007-08-10 Michael Snyder <msnyder@access-company.com>
562 * gdbtypes.c: Coding standard cleanup.
563 * gdbtypes.c: Comment/whitespace cleanup.
565 * stabsread.c (read_huge_number): Attempt to compute value before
566 values that it depends on.
568 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
569 (decode_objc): Use "NULL" instead of 0.
570 (find_method): Ditto.
571 (decode_all_digits): Ditto.
572 (decode_dollar): Ditto.
574 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
576 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
578 * solib-svr4.c (enable_break): Don't free tmp_pathname until
581 * completer.c: Comment/whitespace cleanup.
583 2007-08-10 Joel Brobecker <brobecker@adacore.com>
585 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
587 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
589 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
590 allocated file descriptors.
592 2007-08-10 Joel Brobecker <brobecker@adacore.com>
594 * Makefile.in: Minor cleanup throughout; add some missing variables,
595 add some missing rules, remove some rules that are no longer needed,
596 and fix the dependencies in several rules.
598 2007-08-10 Ludovic Courtès <ludo@gnu.org>
600 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
601 (scm_lang_h, scm_tags_h): New.
602 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
603 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
604 * defs.h (enum language): Add `language_scm'.
606 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
609 2007-08-09 Ludovic Courtès <ludo@gnu.org>
611 * MAINTAINERS (Write After Approval): Add myself.
613 2007-08-09 Michael Snyder <msnyder@access-company.com>
615 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
617 2007-08-09 Joel Brobecker <brobecker@adacore.com>
619 * solib-som.c (som_relocate_section_addresses): Stop saving
620 the $CODE$ section in the so_list structure.
622 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
624 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
625 (xtensa_register_group_t): Add entries for coprocessors.
626 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
627 (xtensa_add_reggroups): Likewise.
628 (xtensa_register_reggroup_p): Likewise.
629 (xtensa_coprocessor_register_group): New function.
632 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
634 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
636 2007-08-08 Michael Snyder <msnyder@access-company.com>
638 * target.c (target_read_string): Guard against null.
640 * varobj.c (value_of_root): Move alloc after return to avoid leak.
642 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
643 (tui_set_layout_for_display_command): Mem leak.
645 * top.c (command_line_input): Memory leak.
647 * solib-svr4.c (open_symbol_file_object): Memory leak.
648 (svr4_current_sos): Ditto.
649 (enable_break): Ditto.
651 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
653 * dwarf2read.c (add_partial_symbol): Memory leak.
655 2007-08-06 Michael Snyder <msnyder@access-company.com>
657 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
659 2007-08-05 Jim Blandy <jimb@codesourcery.com>
661 * macroexp.c (init_buffer): Remove testing code that overrides the
662 caller's length guess.
663 (gather_arguments): Use a larger initial size, now that the vector
664 growth code has been exercised.
666 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
668 * solib-target.c (solib_target_relocate_section_addresses): Add
669 orig_delta to addr_high.
671 2007-08-04 Michael Snyder <msnyder@access-company.com>
673 * remote-fileio.c (remote_fileio_func_write): Memory leak.
675 * breakpoint.c (print_one_breakpoint): Off by one error.
677 * tracepoint.c (add_register): Off by one error.
678 (stringify_collection_list): Free malloc buffer.
680 2007-08-03 Michael Snyder <msnyder@access-company.com>
682 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
683 stop memory leak, straighten out cleanups.
685 * jv-lang.c (java_link_class_type): Guard against NULL.
687 2007-08-02 Michael Snyder <msnyder@access-company.com>
689 * gdbtypes.c (create_set_type): Test should only be done within
690 the preceeding if block. Otherwise, variable is uninitialized.
692 * gdbtypes.c (check_typedef): Guard NULL.
694 2007-08-01 Michael Snyder <msnyder@access-company.com>
696 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
697 avoid dereference in lookup_cmd_1.
699 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
701 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
702 (tui_alloc_win_info): Ditto.
703 (tui_add_content_elements): Ditto.
704 * tui/tui-file.c (tui_file_magic): Ditto.
706 2007-07-31 Michael Snyder <msnyder@access-company.com>
708 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
709 True and false paths are mutually exclusive.
711 * event-top.c (command_line_handler): Add pedantic return.
713 * f-valprint.c (info_common_command): Bail out to prevent null
714 pointer deref. Break up a long line.
716 * exec.c (xfer_memory): Remove redundant condition from 'if'.
718 * symfile.c (reread_separate_symbols): Free xmalloced memory.
720 * printcmd.c (build_address_symbolic): Remove dead code and dead
723 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
725 * linespec.c (minsym_found): Advance to the next line if possible.
727 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
729 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
730 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
731 solib-svr4.o, and add solib-target.o
733 2007-07-27 Michael Snyder <msnyder@access-company.com>
735 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
737 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
739 * MAINTAINERS (Write After Approval): Add myself.
741 2007-07-26 Maciej W. Rozycki <macro@mips.com>
743 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
746 2007-07-25 Maciej W. Rozycki <macro@mips.com>
748 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
750 2007-07-24 Michael Snyder <msnyder@access-company.com>
752 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
753 'buffer' must cover both branches that call strcmp (Coverity).
755 * stack.c (print_frame_args): Check return value of lookup_symbol.
757 * ax-gdb.c (find_field): Guard against null ptr.
759 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
761 * regformats/reg-spu.dat: Fix order of npc, id registers.
763 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
765 * target.c (memory_xfer_partial): Accesses to unmapped overlay
766 sections should always go to the executable file.
768 2004-07-20 Chris Dearman <chris@mips.com>
770 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
771 prologue instructions.
773 2007-07-20 Maciej W. Rozycki <macro@mips.com>
775 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
778 2007-07-20 Chris Dearman <chris@mips.com>
779 Maciej W. Rozycki <macro@mips.com>
781 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
784 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
785 Daniel Jacobowitz <dan@codesourcery.com>
787 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
788 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
790 * NEWS: Mention gdbserver DLL support.
792 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
794 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
796 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
798 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
801 2007-07-13 Kevin Buettner <kevinb@redhat.com>
803 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
806 2007-07-12 Kevin Buettner <kevinb@redhat.com>
808 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
809 (mep_analyze_prologue): Add case for BRA instruction.
811 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
813 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
815 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
817 * breakpoint.c: Include "top.h".
818 (breakpoint_1): Don't set convenience variable $_ if server prefix
820 (_initialize_breakpoint): Describe this behaviour in command help.
822 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
824 * solib-target.c (library_list_start_segment): Cast address to
827 2007-07-06 Mark Kettenis <kettenis@gnu.org>
829 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
830 for terminated processes.
832 2007-07-05 Michael Snyder <msnyder@access-company.com>
834 * event-top.c (cli_command_loop): Prompt string can (and should)
835 be freed after call to readline (Coverity). Also move local var
836 declarations into block where they are used.
838 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
839 should) be freed after call to readline (Coverity). Also move
840 local var declarations into block where they are used.
842 2007-07-03 Andreas Schwab <schwab@suse.de>
844 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
847 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
848 Thiago Bauermann <bauerman@br.ibm.com>
849 Joseph S. Myers <joseph@codesourcery.com>
850 Daniel Jacobowitz <dan@codesourcery.com>
852 * remote.c (remote_check_symbols): Use
853 gdbarch_convert_from_func_ptr_addr.
854 * infcall.c (find_function_addr): Handle function descriptors
855 without debugging information.
856 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
857 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
858 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
859 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
860 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
861 allow SEC_CODE and SEC_DATA.
862 (enable_break): Update calls. Pass current_target to solib_add.
863 Use gdbarch_convert_from_func_ptr_addr.
865 2007-07-03 Ilko Iliev <iliev@ronetix.at>
866 Daniel Jacobowitz <dan@codesourcery.com>
868 * symfile.c (print_transfer_performance): Avoid integer overflow.
871 2007-07-03 Markus Deuling <deuling@de.ibm.com>
873 * cp-namespace.c (lookup_symbol_file): Add block to
874 lookup_symbol_global call.
875 * Makefile.in (solist_h): Add dependency on symtab header.
876 (symtab.o): Add dependency on solist header.
877 * solib.c (solib_global_lookup): New function.
878 * solib-svr4.c (scan_dyntag): Likewise.
879 (elf_locate_base): Call helper routine scan_dyntag.
880 (elf_lookup_lib_symbol): New function.
881 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
882 * solist.h (symtab.h): New include.
883 (struct target_so_ops): New member lookup_lib_global_symbol.
884 (solib_global_lookup): New prototype.
885 * symtab.c: New include solist.h.
886 (lookup_objfile_from_block): New function.
887 (lookup_global_symbol_from_objfile): New function.
888 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
889 (lookup_symbol_global): Call library-specific lookup procedure.
890 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
892 * NEWS: Document framework.
894 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
896 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
899 * cli/cli-script.c (build_command_line): Update NULL check.
901 2007-07-02 Michael Snyder <msnyder@access-company.com>
903 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
905 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
907 * Makefile.in (XMLFILES): Add library-list.dtd.
908 (ALLDEPFILES): Add solib-target.o.
909 (solib-target.o): New rule.
910 * remote.c (PACKET_qXfer_libraries): New constant.
911 (remote_protocol_features): Add qXfer:libraries:read.
912 (remote_wait): Recognize library stop replies.
913 (remote_async_wait): Likewise. Fix typo.
914 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
915 (init_remote_async_ops): Fix typo.
916 (_initialize_remote): Register "set remote library-info-packet".
917 * solib-som.c (som_current_sos): Set addr_low and addr_high.
918 * solib-target.c: New file.
919 * solib.c (solib_map_sections): Use addr_low and addr_high instead
921 (info_sharedlibrary_command): Likewise.
922 (solib_add_library, solib_remove_library): New.
923 * solist.h (struct so_list): Replace textsection with addr_low and
925 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
926 * NEWS: Describe new qXfer:libraries:read and shared library
928 * features/library-list.dtd: New.
930 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
932 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
933 (start_remote): Use STOP_QUIETLY_REMOTE.
934 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
935 support on a SOLIB_ADD definition. Update breakpoints_inserted.
936 Update to match shared library event breakpoint support. Only
937 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
938 (normal_stop): Handle TARGET_WAITKIND_LOADED.
939 * fork-child.c (startup_inferior): Do not set
940 inferior_ignoring_startup_exec_events
941 * inferior.h (inferior_ignoring_startup_exec_events): Delete
943 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
945 2007-07-02 Markus Deuling <deuling@de.ibm.com>
947 * breakpoint.c (insert_bp_location): Remove dead code
948 (DISABLE_UNSETTABLE_BREAK).
949 (disable_breakpoints_in_shlibs)
950 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
952 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
954 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
955 Call insert_bp_location.
957 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
959 * core-regset.c (fetch_core_registers): Work around gcc 3.4
962 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
964 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
967 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
969 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
970 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
971 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
972 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
973 to display_gdb_prompt.
975 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
978 * target.c (memory_xfer_partial): Do not continue past targets with
981 2007-06-30 Andreas Schwab <schwab@suse.de>
983 * m68k-tdep.c (m68k_ps_type): New.
984 (m68k_init_types): New.
985 (m68k_register_type): Use m68k_ps_type for PS register.
986 (_initialize_m68k_tdep): Call m68k_init_types.
988 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
989 from the generic m68k arch.
991 2007-06-28 Michael Snyder <msnyder@access-company.com>
993 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
996 * linux-thread-db.c (thread_db_get_thread_local_address): Add
997 gdb_assert before using return value of find_thread_pid (Coverity).
999 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1001 * cli/cli-script.c (build_command_line): Add null pointer guard
1004 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1006 * linux-thread-db.c (thread_db_attach): Delete.
1007 (thread_db_detach): Typo fix. Call target_mourn_inferior
1008 instead of fixing up proc_handle.
1009 (have_threads_callback, have_threads): New functions.
1010 (thread_db_wait): Remove dead proc_handle.pid check. Only
1011 translate PTIDs if we have registered threads. Check for new
1012 threads if we have none.
1013 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1014 (find_new_threads_callback): Only enable event reporting if TID == 0.
1015 (same_ptid_callback): New.
1016 (thread_db_get_thread_local_address): Check for new threads.
1017 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1018 or to_post_startup_inferior.
1020 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1022 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1023 is always active if SOFTWARE_SINGLE_STEP_P is true.
1024 (resume): Use gdbarch_software_single_step[_p] instead of
1025 SOFTWARE_SINGLE_STEP[_P].
1026 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1028 * gdbarch.sh (software_single_step): Remove target macro.
1029 * gdbarch.h, gdbarch.c: Regenerate.
1031 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1033 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1034 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1035 (struct gdbarch_swap, struct gdbarch_swap_registration,
1036 struct gdbarch_swap_registry, gdbarch_swap_registry,
1037 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1038 current_gdbarch_swap_in_hack): Remove.
1039 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1040 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1041 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1042 (deprecated_current_gdbarch_select_hack): Likewise.
1043 * gdbarch.h, gdbarch.c: Regenerate.
1045 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1047 * infrun.c (clear_proceed_status): Clean up stop_registers.
1048 (normal_stop): Allocate regcache for stop_registers.
1049 (struct inferior_status): Remove stop_registers member.
1050 (save_inferior_status): Do not save stop_registers.
1051 (restore_inferior_status): Do not restore stop_registers.
1052 (discard_inferior_status): Do not discard stop_registers.
1053 (build_infrun): Remove.
1054 (_initialize_infrun): Do not swap stop_registers.
1056 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1058 * remote.c (remote_address_masked): If remote_address_size is zero,
1059 default to target address size.
1060 (build_remote_gdbarch_data): Remove.
1061 (_initialize_remote): Do not swap remote_address_size.
1063 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1065 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1066 builtin_type_char, builtin_type_short, builtin_type_int,
1067 builtin_type_long, builtin_type_signed_char,
1068 builtin_type_unsigned_char, builtin_type_unsigned_short,
1069 builtin_type_unsigned_int, builtin_type_unsigned_long,
1070 builtin_type_float, builtin_type_double, builtin_type_long_double,
1071 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1072 builtin_type_bool, builtin_type_long_long,
1073 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1074 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1075 variable declaration with compatibility macro.
1076 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1077 builtin_type_char, builtin_type_short, builtin_type_int,
1078 builtin_type_long, builtin_type_signed_char,
1079 builtin_type_unsigned_char, builtin_type_unsigned_short,
1080 builtin_type_unsigned_int, builtin_type_unsigned_long,
1081 builtin_type_float, builtin_type_double, builtin_type_long_double,
1082 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1083 builtin_type_bool, builtin_type_long_long,
1084 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1085 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1086 (build_gdbtypes): Remove.
1087 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1088 opaque-type-resolution command here. Do not call
1089 deprecated_register_gdbarch_swap.
1091 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1093 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1094 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1095 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1097 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1098 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1099 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1100 (build_parse): Remove.
1101 (_initialize_parse): Do not call build_parse. Do not register
1102 msym_ types for gdbarch-swapping.
1104 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1105 instead of creating private type.
1107 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1108 (_initialize_xcoffread): Do not initialized them.
1109 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1111 * mdebugread.c (nodebug_func_symbol_type): Remove.
1112 (nodebug_var_symbol_type): Remove.
1113 (_initialize_mdebugread): Do not initialize them.
1114 (parse_symbol): Use builtin nodebug_ type instead of them.
1115 (parse_procedure): Likewise.
1117 2007-06-21 Chris Dearman <chris@mips.com>
1119 * printcmd.c (do_one_display): If display/i, start with an initial
1120 line feed to avoid bad layout if there is a branch delay slot.
1122 2007-06-21 Nigel Stephens <nigel@mips.com>
1123 Maciej W. Rozycki <macro@mips.com>
1125 * disasm.c (gdb_print_insn): Return the number of branch delay
1126 slot instructions too.
1127 * disasm.h (gdb_print_insn): Update prototype.
1128 * printcmd.c (branch_delay_insns): New variable to record the
1129 number of delay slot instructions after disassembling a branch.
1130 (print_formatted): Record the number of branch delay slot
1132 (do_examine): When disassembling, if the last instruction
1133 disassembled has any branch delay slots, then bump the count so
1134 that they get disassembled too.
1135 * tui/tui-disasm.c (tui_disassemble): Update the call to
1137 * NEWS: Document the new behaviour.
1139 2007-06-21 Andreas Schwab <schwab@suse.de>
1141 * regcache.c (write_pc_pid): Restore missing else.
1143 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
1145 * regcache.c (regcache_print): Use get_current_regcache ()
1146 instead of current_regcache.
1148 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
1151 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1152 instead of bfd_make_section_anyway.
1153 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1154 when clearing SEC_LOAD.
1156 2007-06-19 Joseph Myers <joseph@codesourcery.com>
1158 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1159 registers for big-endian.
1161 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1163 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
1164 * disasm.c (dump_insns, gdb_print_insn): Likewise.
1165 * gdbarch.c, gdbarch.h: Regenerate.
1167 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1169 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
1170 gdbarch_believe_pcc_promotion.
1171 * stabsread.c (define_symbol): Likewise.
1172 Remove unnecessary definition.
1173 * coffread.c (process_coff_symbol): Remove unnecessary code.
1174 * gdbarch.c, gdbarch.h: Regenerate.
1176 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
1178 * configure.ac: Do not use ${objdir}.
1179 * configure: Regenerated.
1181 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
1183 * gdbarch.sh (deprecated_register_size): Remove.
1184 * gdbarch.h, gdbarch.c: Regenerate.
1186 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
1187 by INT_REGISTER_SIZE.
1188 (thumb_get_next_pc, arm_return_in_memory): Likewise.
1189 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
1190 * ia64-tdep.c (ia64_gdbarch_init): Do not call
1191 set_gdbarch_deprecated_register_size.
1193 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1195 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
1196 gdbarch_deprecated_fp_regnum.
1197 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1198 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
1199 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1200 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
1202 * gdbarch.c, gdbarch.h: Regenerate.
1204 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1206 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
1207 gdbarch_extract_return_value.
1208 * value.c (generic_use_struct_convention): Likewise (comment).
1209 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
1210 * arch-utils.c (legacy_return_value): Likewise.
1211 * arch-utils.h (legacy_return_value): Likewise (comment).
1212 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
1213 gdbarch_store_return_value.
1214 * stack.c (return_command): Likewise (comment).
1215 * arch-utils.h (legacy_return_value): Likewise (comment).
1216 * arch-utils.c (legacy_return_value): Likewise.
1217 * gdbarch.c, gdbarch.h: Regenerate.
1219 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1221 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
1222 gdbarch_deprecated_use_struct_convention.
1223 * arch-utils.c (legacy_return_value): Likewise.
1224 * gdbarch.c, gdbarch.h: Regenerate.
1226 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1228 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
1229 gdbarch_deprecated_function_start_offset.
1230 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
1231 * linespec.c (minsym_found): Likewise.
1232 * infrun.c (handle_inferior_event): Likewise.
1233 * infcall.c (find_function_addr): Likewise.
1234 * cli/cli-cmds.c (disassemble_command): Likewise.
1235 * gdbarch.c, gdbarch.h: Regenerate.
1237 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1239 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
1240 gdbarch_deprecated_reg_struct_has_addr.
1241 * infcall.c (call_function_by_hand): Likewise.
1242 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
1243 * gdbarch_deprecated_reg_struct_has_addr_p.
1244 * infcall.c (call_function_by_hand): Likewise.
1245 * gdbarch.c, gdbarch.h: Regenerate.
1247 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1249 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1250 * sh-tdep.c (sh_extract_struct_value_address): Remove.
1251 (sh_gdbarch_init): Remove
1252 set_gdbarch_deprecated_extract_struct_value_address.
1253 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
1254 (sh64_gdbarch_init): Remove
1255 set_gdbarch_deprecated_extract_struct_value_address.
1256 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
1257 (ia64_gdbarch_init): Remove
1258 set_gdbarch_deprecated_extract_struct_value_address.
1259 * frv-tdep.c (frv_extract_struct_value_address): Remove.
1260 (frv_gdbarch_init): Remove
1261 set_gdbarch_deprecated_extract_struct_value_address.
1262 * gdbarch.c, gdbarch.h: Regenerate.
1264 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1266 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
1267 * v850-tdep.c (v850_unwind_sp): Likewise.
1268 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
1269 * stack.c (frame_info): Likewise.
1270 * stabsread.c (define_symbol): Likewise.
1271 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1272 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
1273 (sh_unwind_sp): Likewise.
1274 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
1275 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
1276 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
1277 (rs6000_frame_cache): Likewise.
1278 * rs6000-nat.c (store_register): Likewise.
1279 * remote-mips.c (mips_wait): Likewise.
1280 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1281 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1282 (ppc64_sysv_abi_push_dummy_call): Likewise.
1283 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1284 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1285 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1286 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1287 * m32r-rom.c (m32r_supply_register): Likewise.
1288 * frame.c (frame_sp_unwind): Likewise.
1289 * mips-tdep.c (mips_insn16_frame_cache)
1290 (mips_insn32_frame_cache): Likewise (comment).
1291 * m68klinux-nat.c (supply_gregset): Likewise.
1292 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1293 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
1294 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1295 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1296 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
1297 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
1298 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
1299 (cris_register_type, crisv32_register_type)
1300 (cris_dwarf2_frame_init_reg): Likewise.
1301 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1302 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
1303 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1304 * libunwind-frame.c (libunwind_frame_cache): Likewise.
1306 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
1307 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
1308 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
1309 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
1310 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
1311 * v850-tdep.c (v850_unwind_pc): Likewise.
1312 * stack.c (frame_info): Likewise.
1313 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
1314 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
1315 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
1316 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
1317 (sh_dsp_show_regs): Likewise.
1318 * shnbsd-tdep.c (shnbsd_supply_gregset)
1319 (shnbsd_collect_gregset): Likewise.
1320 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
1321 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
1322 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
1323 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1324 (6000_register_reggroup_p, rs6000_unwind_pc)
1325 (rs6000_frame_cache): Likewise.
1326 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
1327 (rs6000_store_inferior_registers): Likewise.
1328 * remote-mips.c (mips_wait, mips_load): Likewise.
1329 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1330 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1331 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1332 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1333 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
1334 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1335 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
1336 (store_ppc_registers, fill_gregset): Likewise.
1337 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
1338 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
1339 * mipsnbsd-nat.c (getregs_supplies): Likewise.
1340 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1341 * m68klinux-nat.c (supply_gregset): Likewise.
1342 * irix5-nat.c (fill_gregset): Likewise.
1343 * i386-tdep.c (i386_unwind_pc): Likewise.
1344 * i386-linux-nat.c (i386_linux_resume): Likewise.
1345 * frame.c (get_prev_frame_1): Likewise.
1346 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1347 * dbug-rom.c (dbug_supply_register): Likewise.
1348 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
1349 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
1350 (cris_register_type, crisv32_register_type, crisv32_register_name)
1351 (cris_dwarf2_frame_init_reg, find_step_target)
1352 (cris_software_single_step, cris_supply_gregset)
1353 (cris_regnums): Likewise.
1354 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1355 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1356 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
1357 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
1358 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1360 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
1361 * dbug-rom.c (dbug_supply_register): Likewise.
1362 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
1363 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
1364 * win32-nat.c (win32_resume): Likewise.
1365 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
1366 * m68k-tdep.c (m68k_register_type): Likewise.
1367 * m68klinux-nat.c (supply_gregset): Likewise.
1369 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
1370 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
1371 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
1372 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1373 (fv_reg_base_num, dr_reg_base_num): Likewise.
1374 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
1375 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
1376 (sh64_extract_return_value, sh64_store_return_value)
1377 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
1378 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
1379 * procfs.c (procfs_fetch_registers, procfs_store_registers)
1380 (invalidate_cache): Likewise.
1381 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1382 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
1383 (mipsnbsd_fill_fpreg): Likewise.
1384 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1385 (mipsnbsd_store_inferior_registers): Likewise.
1386 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
1387 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
1388 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
1389 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
1390 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
1391 (fill_fpregset): Likewise.
1392 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
1393 * i386-tdep.h (struct_return): Likewise (comment).
1394 * i386-nto-tdep.c (i386nto_register_area): Likewise.
1395 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1396 (go32_store_registers): Likewise.
1397 * alpha-tdep.c (alpha_next_pc): Likewise.
1398 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1399 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1400 (alphabsd_store_inferior_registers): Likewise.
1401 * core-regset.c (fetch_core_registers): Likewise.
1402 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1404 * gdbarch.c, gdbarch.h: Regenerate.
1406 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
1408 * coffread.c (coff_sym_fns): Add default_symfile_segments.
1409 * dbxread.c (start_psymtab): Check HAVE_ELF.
1410 (aout_sym_fns): Likewise.
1411 * elfread.c (elf_symfile_segments): New.
1412 (elf_sym_fns): Add elf_symfile_segments.
1413 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
1414 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
1415 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
1416 * somread.c (som_sym_fns): Use default_symfile_segments.
1417 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
1418 (init_objfile_sect_indices): Call symfile_find_segment_sections.
1419 (default_symfile_segments): New function.
1420 (syms_from_objfile): Update call to find_sym_fns.
1421 (symfile_get_segment_data, free_symfile_segment_data): New.
1422 (symfile_map_offsets_to_segments): New.
1423 (symfile_find_segment_sections): New.
1424 * symfile.h (struct symfile_segment_data): New.
1425 (struct sym_fns): Add sym_segments.
1426 (default_symfile_segments, symfile_get_segment_data)
1427 (free_symfile_segment_data): New prototypes.
1428 (symfile_map_offsets_to_segments): Likewise.
1429 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
1430 * Makefile.in (COMMON_OBS): Remove elfread.o.
1431 (elf_internal_h): New.
1432 (elfread.o): Update.
1433 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
1435 * config.in, configure: Regenerated.
1436 * NEWS: Mention qOffsets changes.
1438 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1440 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
1441 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1442 Replace global variable declaration with compatibility macro.
1443 (struct builtin_m2_type): New data type.
1444 (builtin_m2_type): Add prototype.
1445 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
1446 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1447 Remove global variables.
1448 (m2_language_arch_info): Use builtin_m2_type instead of variables.
1449 (build_m2_types): New function.
1450 (m2_type_data): New variable.
1451 (builtin_m2_type): New function.
1452 (_initialize_m2_language): Do not build data types. Register
1453 m2_type_data per-gdbarch data.
1455 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1457 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
1458 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1459 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1460 builtin_type_f_real_s8, builtin_type_f_real_s16,
1461 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1462 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
1463 variable declaration with compatibility macro.
1464 (struct builtin_f_type): New data type.
1465 (builtin_f_type): Add prototype.
1466 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
1467 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1468 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1469 builtin_type_f_real_s8, builtin_type_f_real_s16,
1470 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1471 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
1472 (f_language_arch_info): Use builtin_f_type instead of variables.
1473 (build_fortran_types): Build builtin_f_type structure instead of
1474 setting global type variables.
1475 (f_type_data): New variable.
1476 (builtin_f_type): New function.
1477 (_initialize_f_language): Do not call build_fortran_types. Do not
1478 swap global type variables. Register f_type_data per-gdbarch data.
1480 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1482 * f-lang.c (_initialize_f_language): Do not initialize or
1483 swap builtin_type_string.
1485 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1487 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
1488 value_of_builtin_frame_reg): Remove.
1489 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
1490 inactive call to value_of_builtin_frame_reg.
1492 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1494 * gdbarch.sh (bfd_vma_bit): Remove.
1495 * gdbarch.c, gdbarch.h: Regenerate.
1497 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1498 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1499 (build_gdbtypes): Do not initialize it.
1500 (_initialize_gdbtypes): Do not swap it.
1502 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1504 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
1505 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1506 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1507 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1508 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1509 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1510 builtin_type_vec64, builtin_type_vec128): Remove.
1511 (init_simd_type): Remove.
1512 (init_vector_type): Make global.
1513 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
1514 (build_gdbtypes): Do not build vector types.
1515 (_initialize_gdbtypes): Do not swap vector types.
1516 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
1517 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1518 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1519 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1520 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1521 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1522 builtin_type_vec64, builtin_type_vec128): Remove declarations.
1523 (init_vector_type): Add prototype.
1525 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
1526 i386_sse_type members.
1527 (i386_mmx_type, i386_sse_type): Change from variables to functions.
1528 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
1529 (i386_init_types): Do not build vector types.
1530 (i386_mmx_type, i386_sse_type): New functions.
1531 (i386_register_type): Call them instead of using global variables.
1532 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
1533 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
1534 of using global variable.
1536 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
1537 and ppc_builtin_type_vec128 members.
1538 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
1539 (rs6000_builtin_type_vec128): Likewise.
1540 (rs6000_register_type): Call them instead of using builtin_type_vec64
1541 and builtin_type_vec128.
1542 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
1544 * spu-tdep.c (struct gdbarch_tdep): New data type.
1545 (spu_builtin_type_vec128): Remove variable.
1546 (spu_builtin_type_vec128): New function.
1547 (spu_register_type): Call it instead of using global variable.
1548 (spu_gdbarch_init): Allocate tdep structure.
1549 (spu_init_vector_type): Remove function.
1550 (_initialize_spu_tdep): Do not call it.
1552 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1554 * amd64-tdep.c (struct amd64_register_info): Remove.
1555 (amd64_register_info): Remove.
1556 (amd64_register_names): New static variable.
1557 (AMD64_NUM_REGS): Use amd64_register_names instead of
1558 amd64_register_info.
1559 (amd64_register_name): Likewise.
1560 (amd64_register_type): Do not refer to amd64_register_info.
1562 * s390-tdep.c (struct s390_register_info): Remove.
1563 (s390_register_info): Remove.
1564 (s390_register_name): Do not refer to s390_register_info.
1565 (s390_register_type): Likewise.
1567 * sparc64-tdep.c (struct sparc64_register_info): Remove.
1568 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
1569 (sparc64_register_names, sparc64_pseudo_register_names): New.
1570 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
1571 sparc64_register_names and sparc64_pseudo_register_names instead of
1572 sparc64_register_info and sparc64_pseudo_register_info.
1573 (sparc64_register_name): Likewise.
1574 (sparc64_register_type): Do not refer to sparc64_register_info
1575 and sparc64_pseudo_register_info.
1577 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1579 * c-lang.c (cplus_builtin_types): Remove.
1580 (enum cplus_primitive_types): New data type.
1581 (cplus_language_arch_info): New function.
1582 (cplus_language_defn): Set la_language_arch_info member. Do not set
1583 la_builtin_type_vector and string_char_type members.
1585 * f-lang.c (f_builtin_types): Remove.
1586 (enum f_primitive_types): New data type.
1587 (f_language_arch_info): New function.
1588 (f_language_de): Set la_language_arch_info member. Do not set
1589 la_builtin_type_vector and string_char_type members.
1591 * m2-lang.c (m2_builtin_types): Remove.
1592 (enum m2_primitive_types): New data type.
1593 (m2_language_arch_info): New function.
1594 (m2_language_defn): Set la_language_arch_info member. Do not set
1595 la_builtin_type_vector and string_char_type members.
1597 * objc-lang.c (objc_builtin_types): Remove.
1598 (objc_language): Set la_language_arch_info member. Do not set
1599 la_builtin_type_vector and string_char_type members.
1601 * p-lang.c (pascal_builtin_types): Remove.
1602 (enum pascal_primitive_types): New data type.
1603 (pascal_language_arch_info): New function.
1604 (pascal_language_defn): Set la_language_arch_info member. Do not set
1605 la_builtin_type_vector and string_char_type members.
1607 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1609 * regcache.c (struct regcache): Add ptid_t member.
1610 (regcache_xmalloc): Initialize it.
1611 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
1612 (regcache_dup): Likewise.
1613 (regcache_dup_no_passthrough): Likewise.
1614 (current_regcache): Make static.
1615 (registers_ptid): Remove variable.
1616 (get_thread_regcache): New function.
1617 (get_current_regcache): New function.
1618 (registers_changed): Implement by freeing current regcache.
1619 (regcache_raw_read): Do not refer to current_regcache. Set
1620 inferior_ptid to regcache->ptid while calling target routines.
1621 (regcache_raw_write): Likewise.
1622 (regcache_raw_supply): Do not refer to current_regcache.
1623 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
1624 (write_pc_pid): Likewise.
1625 (build_regcache): Remove.
1626 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
1627 or deprecated_register_gdbarch_swap. Do not initialize
1629 * regcache.h (get_current_regcache): Add prototype.
1630 (get_thread_regcache): Likewise.
1631 (current_regcache): Remove declaration.
1633 * corelow.c (core_open): Replace current_regcache by
1634 get_current_regcache ().
1635 * frame.c (frame_pop): Likewise.
1636 (put_frame_register): Likewise.
1637 (get_current_frame, create_new_frame): Likewise.
1638 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
1639 * stack.c (return_command): Likewise.
1640 * infcall.c (call_function_by_hand): Likewise.
1641 * infrun.c (resume): Likewise.
1642 (save_inferior_status, restore_inferior_status): Likewise.
1643 * linux-fork.c (fork_load_infrun_state): Likewise.
1644 (fork_save_infrun_state): Likewise.
1645 * win32-nat.c (win32_resume): Likewise.
1646 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
1647 * monitor.c (monitor_wait): Likewise.
1648 * remote.c (remote_wait): Likewise.
1649 * remote-mips.c (mips_wait): Likewise.
1651 * bsd-kvm.c (bsd_kvm_open): Likewise
1652 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
1653 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
1654 * i386-linux-nat.c (i386_linux_resume): Likewise.
1655 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
1656 (ia64_linux_stopped_data_address): Likewise.
1658 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
1659 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1660 * mep-tdep.c (current_me_module, current_options): Likewise.
1661 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
1663 * linux-nat.c (linux_nat_do_thread_registers): Use thread
1664 regcache instead of current_regcache. Call target_fetch_registers.
1665 (linux_nat_corefile_thread_callback): Update call site.
1666 (linux_nat_do_registers): Likewise.
1667 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
1668 of current_regcache.
1669 (procfs_make_note_section): Likewise.
1670 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
1671 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1672 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
1673 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1675 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1677 * regcache.c (read_register, read_register_pid): Remove.
1678 (write_register, write_register_pid): Likewise.
1679 * regcache.h (read_register, read_register_pid): Remove prototype.
1680 (write_register, write_register_pid): Likewise.
1682 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1684 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
1685 (write_pc): Likewise. Remove default implementation, add predicate.
1686 * gdbarch.c, gdbarch.h: Regenerate.
1687 * regcache.c (read_pc_pid): Use current regcache instead of calling
1689 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
1691 (generic_target_write_pc): Remove.
1692 * inferior.h (generic_target_write_pc): Remove.
1693 * frv-tdep.c (frv_gdbarch_init): Do not install it.
1694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1695 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1696 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1697 * sh-tdep.c (sh_gdbarch_init): Likewise.
1698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1700 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
1701 argument. Use REGCACHE instead of calling read_register_pid.
1702 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
1703 * hppa-tdep.c (hppa_read_pc): Likewise.
1704 * hppa-tdep.h (hppa_read_pc): Likewise.
1705 * ia64-tdep.c (ia64_read_pc): Likewise.
1706 * m32r-tdep.c (m32r_read_pc): Likewise.
1707 * mep-tdep.c (mep_read_pc): Likewise.
1708 * mn10300-tdep.c (mn10300_read_pc): Likewise.
1709 * spu-tdep.c (spu_read_pc): Likewise.
1711 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
1712 argument. Use REGCACHE instead of calling write_register_pid.
1713 * avr-tdep.c (avr_write_pc): Likewise.
1714 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
1715 * hppa-tdep.c (hppa_write_pc): Likewise.
1716 * hppa-tdep.h (hppa_write_pc): Likewise.
1717 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
1718 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
1719 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
1720 * ia64-tdep.c (ia64_write_pc): Likewise.
1721 * ia64-tdep.h (ia64_write_pc): Likewise.
1722 * m32r-tdep.c (m32r_write_pc): Likewise.
1723 * m88k-tdep.c (m88k_write_pc): Likewise.
1724 * mep-tdep.c (mep_write_pc): Likewise.
1725 * mips-tdep.c (mips_write_pc): Likewise.
1726 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1727 * mn10300-tdep.c (mn10300_write_pc): Likewise.
1728 * sparc-tdep.c (sparc_write_pc): Likewise.
1729 * spu-tdep.c (spu_write_pc): Likewise.
1731 * mips-tdep.c (read_signed_register): Remove.
1732 (read_signed_register_pid): Likewise.
1733 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
1734 Use REGCACHE instead of calling read_signed_register_pid.
1736 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1738 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
1739 * gdbarch.c, gdbarch.h: Regenerate.
1740 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
1741 (push_dummy_code): Likewise. Pass it to callee.
1742 (call_function_by_hand): Pass current regcache to push_dummy_code.
1744 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
1745 argument. Use it instead of current_regcache.
1747 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
1748 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1750 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1752 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
1753 * gdbarch.c, gdbarch.h: Regenerate.
1754 * infrun.c (handle_inferior_event): Pass current frame to
1755 gdbarch_get_longjmp_target.
1757 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
1758 Read registers from FRAME instead of using read_register.
1759 Use get_frame_arch instead of current_gdbarch.
1760 * arm-tdep.c (arm_get_longjmp_target): Likewise.
1761 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1762 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1763 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
1764 (mips64_linux_get_longjmp_target): Likewise.
1765 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1767 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1769 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
1770 * gdbarch.c, gdbarch.h: Regenerate.
1771 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
1772 * arch-utils.h (generic_skip_trampoline_code): Likewise.
1773 * infrun.c (handle_inferior_event): Pass current frame to
1774 gdbarch_skip_trampoline_code and skip_language_trampoline.
1776 * language.c (unk_lang_trampoline): Add FRAME argument.
1777 (skip_language_trampoline): Add FRAME argument. Pass it to
1778 skip_trampoline callback.
1779 * language.h: Add forward declaration of struct frame_info.
1780 (struct language_defn): Add FRAME argument to skip_trampoline.
1781 (skip_language_trampoline): Add FRAME argument.
1782 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
1783 to skip_trampoline callback.
1784 * cp-abi.h: Add forward declaration of struct frame_info.
1785 (cplus_skip_trampoline): Add FRAME argument.
1786 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
1787 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
1788 to gdbarch_skip_trampoline_code.
1789 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
1790 to gdbarch_skip_trampoline_code.
1792 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
1793 * symtab.h (find_solib_trampoline_target): Likewise.
1794 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
1795 find_solib_trampoline_target.
1797 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
1798 from FRAME instead of calling read_register.
1800 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
1801 argument. Read registers from FRAME instead of using read_register.
1802 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
1803 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
1805 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
1808 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
1810 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
1811 registers from FRAME instead of using read_signed_register.
1813 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
1815 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
1816 instead of using read_register.
1817 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
1818 ppc64_standard_linkage_target.
1819 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
1820 Pass it to find_solib_trampoline_target. Read registers from FRAME
1821 instead of using read_register.
1823 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
1826 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1828 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
1830 * gdbarch.c, gdbarch.h: Regenerate.
1831 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
1833 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
1834 registers from FRAME instead of using read_register.
1835 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1836 to alpha_next_pc. Use get_frame_pc instead of read_pc.
1837 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
1840 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
1841 from FRAME instead of using read_register.
1842 (thumb_get_next_pc): Likewise.
1843 (arm_get_next_pc): Likewise.
1844 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1845 to arm_get_next_pc. Use get_frame_pc instead of read_register.
1846 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
1849 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
1850 from FRAME instead of using read_register.
1851 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1852 to find_step_target.
1854 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
1855 from FRAME instead of using read_register / read_signed_register.
1856 (extended_mips16_next_pc): Likewise.
1857 (mips16_next_pc): Likewise.
1858 (mips_next_pc): Likewise.
1859 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1860 to mips_next_pc. Use get_frame_pc instead of read_pc.
1861 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
1864 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
1865 of current frame. Read registers from FRAME.
1866 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
1867 branch_dest. Use get_frame_pc instead of read_pc.
1868 (rs6000_software_single_step): Likewise.
1869 (bl_to_blrl_insn_p): Do not call branch_dest.
1870 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
1873 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
1874 Read registers from FRAME instead of current regcache.
1875 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
1876 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
1877 * sparc-tdep.c (sparc_address_from_register): Remove.
1878 (sparc_analyze_control_transfer): Pass FRAME argument instead of
1879 GDBARCH. Pass FRAME to step_trap callback.
1880 (sparc_step_trap): Add FRAME argument.
1881 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1882 to sparc_analyze_control_transfer. Read registers from FRAME instead
1883 of calling sparc_address_from_register.
1884 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
1886 (sparc_address_from_register): Remove prototype.
1887 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
1888 (sparcnbsd_step_trap): Add FRAME argument.
1890 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
1891 by FRAME. Read registers from FRAME instead of REGCACHE.
1893 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1895 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
1896 instead of calling read_register.
1898 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
1899 calling write_register.
1901 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
1902 calling write_register.
1904 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
1905 instead of calling read_register.
1906 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
1907 instead of calling read_register and write_register.
1909 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
1910 instead of current_regcache.
1912 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
1913 of calling write_register.
1914 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
1915 parameter instead of current_regcache.
1917 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
1918 instead of calling read_register.
1919 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
1920 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
1921 (mips_n32n64_push_dummy_call): Likewise.
1922 (mips_o32_push_dummy_call): Likewise.
1923 (mips_o64_push_dummy_call): Likewise.
1925 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
1926 parameter instead of current_regcache.
1928 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
1929 Use it instead of read_register and write_register.
1930 (xtensa_register_read_masked): Likewise.
1931 (xtensa_pseudo_register_read): Update call.
1932 (xtensa_pseudo_register_write): Likewise.
1933 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
1934 instead of calling read_register.
1935 (xtensa_push_dummy_call): Update comment.
1937 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1939 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
1940 by frame_unwind_register_signed calls.
1941 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
1942 frame allocations when called with NULL NEXT_FRAME parameter.
1943 (read_next_frame_reg): Remove.
1945 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
1946 instead of reading the FPSCR register.
1947 (sh_frame_cache): Pass unwound FPSCR register value to
1948 sh_analyze_prologue.
1949 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
1951 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
1952 instead of reading the CTBP register.
1953 (v850_frame_cache): Pass unwound CTBP register value to
1954 v850_analyze_prologue.
1956 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1958 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
1959 * sh-tdep.c (sh_show_regs): Likewise.
1960 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
1961 (sh_generic_show_regs): Add FRAME parameter. Use register
1962 values from that frame instead of calling read_register.
1963 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
1964 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
1965 sh_dsp_show_regs): Likewise.
1966 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
1967 sh64_show_regs): Likewise.
1969 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1971 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
1972 current regcache instead of calling read_register.
1974 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1976 * mep-tdep.c (current_me_module): Read from current regcache
1977 instead of calling read_register.
1978 (current_options): Likewise.
1980 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1982 * cris-tdep.c (cris_stopped_data_address): Read register values
1983 from current frame instead of calling read_register.
1984 * frv-tdep.c (frv_stopped_data_address): Likewise.
1986 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1988 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
1989 instead of write_register (PC_REGNUM, ...).
1991 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1993 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
1994 explaining why the PC adjustment code is necessary.
1996 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
1998 * m68k-tdep.h (enum m68k_flavour): New.
1999 (struct gdbarch_tdep): New fields
2000 float_return, flavour and fpregs_present.
2001 * m68k-tdep.c (m68k_register_type): Use
2002 fpregs_present and conditionalize floating
2003 registers type on flavour.
2004 (m68k_register_names): New.
2005 (m68k_register_name): Use the above.
2006 (m68k_convert_register_p): Consult fpregs_present.
2007 (m68k_register_to_value, m68k_value_to_register):
2008 Use register_type to obtain the type of floating
2010 (m68k_svr4_extract_return_value): Check tdep->float_return.
2011 Use register_type to get the type of floating
2013 (m68k_svr4_store_return_value): Likewise.
2014 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2015 (m68k_analyze_register_saves): Likewise.
2016 (m68k_gdbarch_init): Extract infromation
2017 from XML description, if present. Guess coldfire by
2018 looking at the file, if present. Conditionalize
2019 setting of long double format. Set decr_pc_after_break
2020 to 2 on coldfire and fido. Enable XML-driven
2021 register description.
2022 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2023 size of tdep->fpreg_type, as opposed to hardcoded value.
2024 * Makefile.in (m68k-tdep.o): Update dependencies.
2026 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2028 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2029 qXfer:spu:write remote packet types.
2031 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2033 * xml-tdesc.c (tdesc_start_target): New.
2034 (target_attributes): New.
2035 (tdesc_elements): Use it.
2036 * features/gdb-target.dtd: Add #FIXED version attribute for
2039 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
2041 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2043 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2045 * fork-child.c (fork_inferior): Update comment.
2047 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2049 * features/Makefile: Generate regformats for mips-linux and
2051 * features/sort-regs.xsl: Correct typo.
2052 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2053 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2056 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2058 * config/mips/linux.mh (TDEP_XML): New.
2059 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2060 * mips-linux-nat.c (mips_linux_register_addr): Handle
2061 MIPS_RESTART_REGNUM.
2062 (mips64_linux_register_addr): Likewise.
2063 (super_xfer_partial, mips_linux_xfer_partial): New.
2064 (_initialize_mips_linux_nat): Add them to the target_ops.
2065 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2066 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2067 (mips_linux_o32_sigframe_init)
2068 (mips_linux_n32n64_sigframe_init): Likewise.
2069 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2070 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2071 "org.gnu.gdb.mips.linux" feature.
2072 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2073 (mips_linux_restart_reg_p): New prototype.
2074 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2075 initialization routine.
2076 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2078 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2080 * Makefile.in (mips-tdep.o): Update.
2081 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2082 (mips_n32_n64_aliases, mips_register_aliases): New.
2083 (mips_register_name): Call tdesc_register_name.
2084 (mips_tdesc_register_reggroup_p): New.
2085 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2086 (mips_gdbarch_init): Add target-described register support.
2087 Register aliases for register names.
2088 * target-descriptions.c (tdesc_register_name): Make global.
2089 (tdesc_register_in_reggroup_p): New function, broken out from
2090 tdesc_register_reggroup_p.
2091 (tdesc_register_reggroup_p): Use it.
2092 * target-descriptions.h (tdesc_register_name)
2093 (tdesc_register_in_reggroup_p): New prototypes.
2094 * NEWS: Correct formatting. Mention MIPS register support.
2095 * features/mips-cp0.xml, features/mips-fpu.xml,
2096 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2097 features/mips64-cpu.xml: New files.
2099 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2101 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2102 * valops.c (value_cast): Likewise.
2103 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2104 * ui-out.c (ui_out_field_core_addr): Likewise.
2105 * tracepoint.c (tracepoints_info): Likewise.
2106 * symtab.c (print_msymbol_info): Likewise.
2107 * solib-irix.c (irix_current_sos)
2108 (irix_open_symbol_file_object): Likewise.
2109 * remote.c (build_remote_gdbarch_data): Likewise.
2110 * prologue-value.c (make_pv_area): Likewise.
2111 * procfs.c (info_mappings_callback): Likewise.
2112 * printcmd.c (print_scalar_formatted)
2113 (deprecated_print_address_numeric): Likewise.
2114 * memattr.c (mem_info_command): Likewise.
2115 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2116 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2117 * exec.c (print_section_info): Likewise.
2118 * dwarf2read.c (read_subrange_type): Likewise.
2119 * dwarf2loc.c (find_location_expression): Likewise.
2120 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2121 (signed_address_type, execute_stack_op): Likewise.
2122 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2123 * gdbarch.c, gdbarch.h: Regenerate.
2125 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2127 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2128 * arch-utils.c (show_architecture): Likewise.
2129 * remote-mips.c (mips_open): Likewise
2130 * nto-tdep.c (nto_find_and_open_solib)
2131 (nto_init_solib_absolute_prefix): Likewise.
2132 * nto-procfs (procfs_open): Likewise.
2133 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2134 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2135 * gdbarch.c, gdbarch.h: Regenerate.
2137 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2139 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2140 * gdbtypes.c (build_flt): Likewise.
2141 * gdbarch.c, gdbarch.h: Regenerate.
2143 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2145 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2146 gdbarch_breakpoint_from_pc.
2147 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2148 * remote.c (remote_insert_breakpoint)
2149 (remote_insert_hw_breakpoint): Likewise.
2150 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2151 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2152 * breakpoint.h (bp_target_info): Likewise (comment).
2153 * breakpoint.c (read_memory_nobpt): Likewise.
2154 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2155 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2156 * gdbarch.c, gdbarch.h: Regenerate.
2158 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2160 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
2161 * solib-svr4.c (svr4_truncate_ptr): Likewise.
2162 * solib-pa64.c (read_dynamic_info): Likewise.
2163 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2164 * solib.c (info_sharedlibrary_command): Likewise.
2165 * s390-nat.c (SUBOFF): Likewise.
2166 * p-valprint.c (pascal_val_print): Likewise.
2167 * procfs.c (info_proc_mappings): Likewise.
2168 * printcmd.c (decode_format): Likewise.
2169 * nto-tdep.c (nto_truncate_ptr): Likewise.
2170 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2171 (mips64_linux_get_longjmp_target): Likewise.
2172 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2173 * jv-valprint.c (java_value_print): Likewise.
2174 * jv-lang.c (get_java_object_header_size): Likewise.
2175 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2176 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2177 (hppa_hpux_unwind_adjust_stub): Likewise.
2178 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2179 * gdbtypes.c (make_pointer_type, make_reference_type)
2180 (smash_to_memberptr_type): Likewise.
2181 * gdbarch.c, gdbarch.h: Regenerate.
2183 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2185 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
2186 (print_gp_register_row): Stop before printing a register bigger
2187 than the ABI register size.
2188 (mips_print_registers_info): Update call to mips_print_register.
2190 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2192 * expression.h (enum exp_opcode): Document a register name for
2194 * parse.c (write_dollar_variable): Write the register name for
2196 (operator_length_standard): Expect the register name following
2198 * ada-lang.c (resolve_subexp): Likewise.
2199 * ax-gdb.c (gen_expr): Likewise.
2200 * eval.c (evaluate_subexp_standard): Likewise.
2201 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2203 * tracepoint.c (encode_actions): Likewise.
2205 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2207 * utils.c (set_screen_size): Use INT_MAX for default columns.
2209 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2211 * remote.c (remote_protocol_features): Add qXfer:spu:read and
2212 qXfer:spu:write packet types.
2214 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2216 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
2217 * gdbarch.c, gdbarch.h: Regenerate.
2219 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2221 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
2222 gdbarch_stab_reg_to_regnum.
2223 * stabsread.c (define_symbol): Likewise.
2224 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
2225 gdbarch_ecoff_reg_to_regnum.
2226 * mdebugread.c (parse_symbol): Likewise.
2227 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
2228 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
2229 gdbarch_dwarf_reg_to_regnum.
2230 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
2231 * coffread.c (process_coff_symbol): Likewise.
2232 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
2233 gdbarch_dwarf2_reg_to_regnum.
2234 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
2235 (locexpr_describe_location): Likewise.
2236 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
2237 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
2238 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
2239 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
2240 * gdbarch.c, gdbarch.h: Regenerate.
2242 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2244 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
2245 gdbarch_smash_text_address.
2246 * somread.c (som_symtab_read): Likewise.
2247 * elfread.c (record_minimal_symbol): Likewise.
2248 * dbxread.c (process_one_symbol): Likewise.
2249 * coffread.c (coff_symtab_read): Likewise.
2250 * gdbarch.c, gdbarch.h: Regenerate.
2252 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2254 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
2255 * findvar.c (value_from_register): Likewise.
2256 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
2257 * valops.c (value_assign): Likewise.
2258 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
2259 gdbarch_convert_register_p.
2260 * findvar.c (value_from_register): Likewise.
2261 * valops.c (value_assign): Likewise.
2262 * gdbarch.c, gdbarch.h: Regenerate.
2264 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2266 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
2267 gdbarch_register_sim_regno.
2268 * sim-regno.h (sim_regno): Likewise (comment).
2269 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
2270 * gdbarch.c, gdbarch.h: Regenerate.
2272 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2274 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
2275 gdbarch_virtual_frame_pointer.
2276 * tracepoint.c (encode_actions): Likewise.
2277 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
2278 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
2279 * gdbarch.c, gdbarch.h: Regenerate.
2281 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2283 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
2284 * p-lang.c (pascal_create_fundamental_type): Likewise.
2285 * objc-lang.c (objc_create_fundamental_type): Likewise.
2286 * mdebugread.c (_initialize_mdebugread): Likewise.
2287 * m2-lang.c (m2_create_fundamental_type)
2288 (_initialize_m2_language): Likewise.
2289 * gdbtypes.c (build_gdbtypes): Likewise.
2290 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2291 * doublest.c (floatformat_from_length): Likewise.
2292 * c-lang.c (c_create_fundamental_type): Likewise.
2293 * ada-lang.c (ada_create_fundamental_type)
2294 (ada_language_arch_info): Likewise.
2295 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
2296 * value.c (unpack_double): Likewise (comment).
2297 * gdbtypes.c (build_gdbtypes): Likewise.
2298 * doublest.c (floatformat_from_length): Likewise.
2299 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
2300 * valarith.c (value_binop): Likewise.
2301 * p-lang.c (pascal_create_fundamental_type): Likewise.
2302 * objc-lang.c (objc_create_fundamental_type): Likewise.
2303 * mdebugread.c (_initialize_mdebugread): Likewise.
2304 * m2-lang.c (m2_create_fundamental_type): Likewise.
2305 * gdbtypes.c (build_gdbtypes): Likewise.
2306 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2307 * doublest.c (floatformat_from_length): Likewise.
2308 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
2309 * c-lang.c (c_create_fundamental_type): Likewise.
2310 * ada-lex.l (processReal): Likewise.
2311 * ada-lang.c (ada_create_fundamental_type)
2312 (ada_language_arch_info): Likewise.
2313 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
2314 * value.c (unpack_double): Likewise (comment).
2315 * gdbtypes.c (build_gdbtypes): Likewise.
2316 * doublest.c (floatformat_from_length): Likewise.
2317 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
2318 gdbarch_long_double_bit.
2319 * p-lang.c (pascal_create_fundamental_type): Likewise.
2320 * objc-lang.c (objc_create_fundamental_type): Likewise.
2321 * m2-lang.c (m2_create_fundamental_type): Likewise.
2322 * gdbtypes.c (build_gdbtypes): Likewise.
2323 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2324 * doublest.c (floatformat_from_length): Likewise.
2325 * c-lang.c (c_create_fundamental_type): Likewise.
2326 * ada-lex.l (processReal): Likewise.
2327 * ada-lang.c (ada_create_fundamental_type)
2328 (ada_language_arch_info): Likewise.
2329 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
2330 gdbarch_long_double_format.
2331 * gdbtypes.c (build_gdbtypes): Likewise.
2332 * doublest.c (floatformat_from_length): Likewise.
2333 * gdbarch.c, gdbarch.h: Regenerate.
2335 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2337 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
2338 * ada-lang.c (ada_create_fundamental_type)
2339 (ada_language_arch_info): Likewise.
2340 * c-lang.c (c_create_fundamental_type): Likewise.
2341 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2342 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2343 * m2-lang.c (m2_create_fundamental_type): Likewise.
2344 * objc-lang.c (objc_create_fundamental_type): Likewise.
2345 * p-lang.c (pascal_create_fundamental_type): Likewise.
2346 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
2347 * c-exp.y (parse_number): Likewise.
2348 * objc-exp.y (parse_number): Likewise.
2349 * ada-lex.l (processInt): Likewise.
2350 * f-exp.y (parse_number): Likewise.
2351 * p-exp.y (parse_number): Likewise.
2352 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
2353 (gdbtypes_post_init, build_gdbtypes): Likewise.
2354 * p-lang.c (pascal_create_fundamental_type): Likewise.
2355 * parse.c (build_parse): Likewise.
2356 * xcoffread.c (_initialize_xcoffread): Likewise.
2357 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
2358 (read_range_type): Likewise.
2359 * objc-lang.c (objc_create_fundamental_type): Likewise.
2360 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
2361 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
2362 (m2_create_fundamental_type): Likewise.
2363 * c-lang.c (c_create_fundamental_type): Likewise.
2364 * coffread.c (coff_read_enum_type): Likewise.
2365 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
2366 * dwarf2read.c (new_symbol): Likewise.
2367 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
2368 * c-exp.y (parse_number): Likewise.
2369 * objc-exp.y (parse_number): Likewise.
2370 * ada-lex.l (processInt): Likewise.
2371 * f-exp.y (parse_number): Likewise.
2372 * p-exp.y (parse_number): Likewise.
2373 * valarith.c (value_binop): Likewise.
2374 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
2375 * ada-lang.c (ada_create_fundamental_type)
2376 (ada_language_arch_info): Likewise.
2377 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2378 * symfile.c (TARGET_LONG_BYTES): Likewise.
2379 * p-lang.c (pascal_create_fundamental_type): Likewise.
2380 * objc-lang.c (objc_create_fundamental_type): Likewise.
2381 * m2-lang.c (m2_create_fundamental_type): Likewise.
2382 * f-lang.c (f_create_fundamental_type): Likewise.
2383 * c-lang.c (c_create_fundamental_type): Likewise.
2384 * coffread.c (decode_base_type): Likewise.
2385 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
2386 * c-exp.y (parse_number): Likewise.
2387 * objc-exp.y (parse_number): Likewise.
2388 * p-exp.y (parse_number): Likewise.
2389 * ada-lang.c (ada_create_fundamental_type)
2390 (ada_language_arch_info): Likewise.
2391 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
2392 * stabsread.c (read_range_type): Likewise.
2393 * p-lang.c (pascal_create_fundamental_type): Likewise.
2394 * objc-lang.c (objc_create_fundamental_type): Likewise.
2395 * m2-lang.c (m2_create_fundamental_type): Likewise.
2396 * f-lang.c (f_create_fundamental_type): Likewise.
2397 * c-lang.c (c_create_fundamental_type): Likewise.
2398 * gdbarch.c, gdbarch.h: Regenerate.
2400 2007-06-12 Andreas Schwab <schwab@suse.de>
2402 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
2403 (struct frame_unwind): Add dealloc_cache.
2404 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
2406 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
2407 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
2408 (libunwind_frame_unwind): Set dealloc_cache.
2409 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
2411 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2412 Markus Deuling <deuling@de.ibm.com>
2414 * remote.c (remote_write_qxfer): New function.
2415 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
2416 (remote_read_qxfer): Do not cache empty objects.
2417 (_initialize_remote): Add PACKET_qXfer_spu_read and
2418 PACKET_qXfer_spu_write.
2420 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2422 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
2423 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
2425 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
2426 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
2427 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
2428 * spu-tdep.c (infospucmdlist): New variable.
2429 (spu_register_name): Handle additional pseudo registers.
2430 (spu_register_type): Likewise.
2431 (spu_pseudo_register_read): Likewise.
2432 (spu_pseudo_register_write): Likewise.
2433 (spu_pseudo_register_read_spu): New function.
2434 (spu_pseudo_register_write_spu): Likewise.
2435 (info_spu_event_command): New function.
2436 (info_spu_signal_command): Likewise.
2437 (info_spu_mailbox_list): Likewise.
2438 (info_spu_mailbox_command): Likewise.
2439 (spu_mfc_get_bitfield): Likewise.
2440 (info_spu_dma_cmdlist): Likewise.
2441 (info_spu_dma_command): Likewise.
2442 (info_spu_proxydma_command): Likewise.
2443 (info_spu_command): Likewise.
2444 (_initialize_spu_tdep): Install "info spu" commands.
2446 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2448 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
2449 accessing non-seekable spufs files.
2451 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2453 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
2454 gdbarch_skip_trampoline_code.
2455 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2456 * objc-lang.c (objc_skip_trampoline)
2457 (objc_submethod_helper_data): Likewise.
2458 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
2459 * infrun.c (handle_inferior_event): Likewise.
2460 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
2461 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
2462 gdbarch_in_solib_return_trampoline.
2463 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2464 * infrun.c (handle_inferior_event): Likewise.
2465 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
2466 * gdbarch.c, gdbarch.h: Regenerate.
2468 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2470 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
2471 * symtab.c (find_function_start_sal, in_prologue): Likewise.
2472 * linespec.c (minsym_found): Likewise.
2473 * infrun.c (step_into_function): Likewise.
2474 * gdbarch.c, gdbarch.h: Regenerate.
2476 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2478 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
2479 * valops.c (value_allocate_space_in_inferior): Likewise.
2480 * gdbarch.c, gdbarch.h: Regenerate.
2482 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2484 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
2485 gdbarch_memory_insert_breakpoint.
2486 * mem-break.c (memory_insert_breakpoint): Likewise.
2487 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
2488 gdbarch_memory_remove_breakpoint.
2489 * mem-break.c (memory_remove_breakpoint): Likewise.
2490 * gdbarch.c, gdbarch.h: Regenerate.
2492 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2494 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
2495 gdbarch_fetch_tls_load_module_address.
2496 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
2497 gdbarch_fetch_tls_load_module_address_p.
2498 * gdbarch.c, gdbarch.h: Regenerate.
2500 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2502 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
2503 gdbarch_decr_pc_after_break.
2504 * tracepoint.c (trace_dump_command): Likewise.
2505 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2506 * linux-thread-db.c (check_event): Likewise.
2507 * linux-nat.c (cancel_breakpoints_callback): Likewise.
2508 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
2509 * frame.h: Likewise (comment).
2510 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
2511 * aix-thread.c (aix_thread_wait): Likewise.
2512 * gdbarch.c, gdbarch.h: Regenerate.
2514 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2516 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
2517 gdbarch_address_class_type_flags.
2518 * dwarf2read.c (read_tag_pointer_type): Likewise.
2519 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
2520 gdbarch_address_class_type_flags_p.
2521 * dwarf2read.c (read_tag_pointer_type): Likewise.
2522 * gdbarch.c, gdbarch.h: Regenerate.
2524 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2526 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
2527 * value.c (value_as_address): Likewise (comment).
2528 * remote-mips.c (common_breakpoint): Likewise.
2529 * regcache.c (read_pc_pid): Likewise.
2530 * printcmd.c (do_one_display): Likewise.
2531 * monitor.c (monitor_write_memory, monitor_read_memory)
2532 (monitor_insert_breakpoint): Likewise.
2533 * mips-tdep.c (heuristic_proc_start): Likewise.
2534 * infrun.c (insert_step_resume_breakpoint_at_frame)
2535 (insert_step_resume_breakpoint_at_caller): Likewise.
2536 * buildsym.c (record_line): Likewise.
2537 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
2538 (arm_get_next_pc): Likewise.
2539 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
2540 (store_regs): Likewise.
2541 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2542 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
2543 * gdbarch.c, gdbarch.h: Regenerate.
2545 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2547 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
2548 * tracepoint.c (scope_info): Likewise.
2549 * target.c (debug_print_register): Likewise.
2550 * stack.c (frame_info): Likewise.
2551 * sh-tdep.c (sh_register_reggroup_p): Likewise.
2552 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
2553 (sh64_media_print_registers_info)
2554 (sh64_compact_print_registers_info): Likewise.
2555 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
2556 * remote-sim.c (gdbsim_fetch_register): Likewise.
2557 * remote.c (packet_reg): Likewise (comment).
2558 * reggroups.c (default_register_reggroup_p): Likewise.
2559 * regcache.c (regcache_dump): Likewise.
2560 * printcmd.c (address_info): Likewise.
2561 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2562 * mt-dep.c (mt_registers_info): Likewise.
2563 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
2564 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
2565 (mips_read_fp_register_double, mips_print_fp_register)
2566 (mips_print_register, print_gp_register_row, mips_print_registers_info)
2567 (mips_register_sim_regno): Likewise.
2568 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
2569 * inf-ptrace.c (inf_ptrace_fetch_register)
2570 (inf_ptrace_store_register): Likewise.
2571 * infcmd.c (default_print_registers_info): Likewise.
2572 * ia64-linux-nat.c (ia64_linux_fetch_register)
2573 (ia64_linux_store_register): Likewise.
2574 * i386-linux-nat.c (fetch_register, store_register): Likewise.
2575 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2576 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2577 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
2578 (hppa_hpux_store_register): Likewise.
2579 * findvar.c (locate_var_value): Likewise.
2580 * dwarf2loc.c (locexpr_describe_location): Likewise.
2581 * dwarf2-frame.c (execute_cfa_program): Likewise.
2582 * arm-tdep.c (arm_push_dummy_call): Likewise.
2583 * arch-utils.c (legacy_register_sim_regno): Likewise.
2584 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
2585 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2586 * mi/mi-main.c (mi_cmd_data_list_register_names)
2587 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
2588 (mi_cmd_data_write_register_values): Likewise.
2589 * gdbarch.c, gdbarch.h: Regenerate.
2591 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2593 * target-memory.c (blocks_to_erase): Correct off-by-one error.
2595 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
2597 * remote.c (process_g_packet): Don't check size.
2598 * gdbarch.sh: Remove register_bytes_ok.
2599 * gdbarch.c: Regenerated.
2600 * gdbarch.h: Regenerated.
2601 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
2602 (m68k_register_bytes_ok): Remove.
2603 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
2605 2007-06-06 Andreas Schwab <schwab@suse.de>
2607 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
2608 (destroy_addr_space_name): Define.
2609 (libunwind_load): Get address of destroy_addr_space function.
2610 (libunwind_frame_cache): Destroy unw_addr_space_t object before
2611 returning unsuccessfully.
2612 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
2614 (libunwind_sigtramp_frame_sniffer): Likewise.
2615 (libunwind_get_reg_special): Likewise.
2617 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2619 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
2620 gdbarch_fetch_pointer_argument.
2621 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
2622 * gdbarch.c, gdbarch.h: Regenerate.
2624 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2626 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
2627 gdbarch_have_nonsteppable_watchpoint.
2628 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
2629 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
2630 gdbarch_cannot_step_breakpoint.
2631 * infrun.c (resume): Likewise.
2632 * gdbarch.c, gdbarch.h: Regenerate.
2634 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2636 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
2637 * stack.c (print_frame_args): Likewise.
2638 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
2639 * stack.c (print_args_stub, frame_info): Likewise.
2640 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
2641 * stack.c (print_args_stub, frame_info): Likewise.
2642 * gdbarch.c, gdbarch.h: Regenerate.
2644 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2646 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
2647 gdbarch_coff_make_msymbol_special.
2648 * coffread.c (coff_symtab_read): Likewise.
2649 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
2650 gdbarch_elf_make_msymbol_special.
2651 * elfread.c (elf_symtab_read): Likewise.
2652 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
2653 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
2654 * gdbarch.c, gdbarch.h: Regenerate.
2656 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2658 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
2659 gdbarch_frame_red_zone_size.
2660 * gdbarch.c, gdbarch.h: Regenerate.
2662 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2664 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
2665 * infcall.c (call_function_by_hand): Likewise.
2666 * gcore.c (derive_stack_segment): Likewise.
2667 * frame.c (frame_id_inner): Likewise.
2668 * arch-utils.c (core_addr_lessthan): Likewise (comment).
2669 * ada-lang.c (ensure_lval): Likewise.
2670 * gdbarch.c, gdbarch.h: Regenerate.
2672 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2674 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
2675 gdbarch_address_to_pointer.
2676 * findvar.c (store_typed_address): Likewise.
2677 * gdbtypes.c (make_pointer_type): Likewise (comment).
2678 * procfs.c (procfs_address_to_host_pointer): Likewise.
2679 * std-regs.c (value_of_builtin_frame_reg): Likewise.
2680 (value_of_builtin_frame_fp_reg): Likewise.
2681 (value_of_builtin_frame_pc_reg): Likewise.
2682 * utils.c (paddress): Likewise (comment).
2683 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
2684 gdbarch_pointer_to_address.
2685 * findvar.c (extract_typed_address): Likewise.
2686 * gdbtypes.c (make_pointer_type): Likewise (comment).
2687 * valops.c (value_cast): Likewise (comment).
2688 * gdbarch.c, gdbarch.h: Regenerate.
2690 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2692 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
2693 * infrun.c (handle_inferior_event): Likewise.
2694 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
2695 gdbarch_get_longjmp_target_p.
2696 * breakpoint.c (breakpoint_re_set): Likewise.
2697 * infrun.c (handle_inferior_event): Likewise.
2698 * gdbarch.c, gdbarch.h: Regenerate.
2700 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2702 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
2703 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
2704 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
2705 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
2706 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
2707 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
2708 find_stub_with_shl_get, cover_find_stub_with_shl_get,
2709 initialize_hp_cxx_exception_support, child_enable_exception_callback,
2710 current_ex_event, child_get_current_exception_event): Remove.
2711 (hppa_hpux_inferior_created): Remove.
2712 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
2714 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
2715 (deprecated_exception_support_initialized): Remove.
2716 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
2717 (deprecated_exception_support_initialized): Remove.
2718 (breakpoint_init_inferior): Remove handling of non-zero
2719 deprecated_exception_catchpoints_are_fragile.
2721 * symtab.h (deprecated_hp_som_som_object_present): Remove.
2722 * symtab.c (deprecated_hp_som_som_object_present): Remove.
2723 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
2724 deprecated_hp_som_som_object_present.
2725 * eval.c (evaluate_subexp_standard): Likewise.
2726 * valops.c (value_cast): Likewise.
2728 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
2729 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
2730 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
2732 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2734 * objfiles.h (ImportEntry, ExportEntry): Remove types.
2735 (struct objfile): Remove import_list, import_list_size,
2736 export_list, export_list_size members.
2737 (is_in_import_list): Remove prototype.
2738 * objfiles.c (is_in_import_list): Remove.
2739 * somread.c (init_import_symbols, init_export_symbols): Remove.
2740 (som_symfile_read): Do not call init_import_symbols. Do not
2741 set objfile->export_list and objfile->export_list_size.
2743 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2745 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
2746 Use the original objfile if necessary.
2748 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
2750 * defs.h (ldirname): New prototype.
2751 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
2753 * utils.c (ldirname): New function.
2754 * xml-tdesc.c (file_read_description_xml): Use ldirname.
2756 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2758 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
2760 2007-06-01 Joel Brobecker <brobecker@adacore.com>
2762 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
2764 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2766 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
2768 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2770 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
2771 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
2772 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
2773 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
2774 (ppc_linux_in_sigtramp, insn_is_sigreturn,
2775 ppc_linux_at_sigtramp_return_path): Remove.
2777 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2779 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
2780 (xtensa_register_write_masked, xtensa_register_read_masked)
2781 (xtensa_extract_return_value, xtensa_store_return_value
2782 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
2783 TARGET_BYTE_ORDER by gdbarch_byte_order.
2784 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
2785 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
2786 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
2787 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
2788 (sh64_push_dummy_call, sh64_extract_return_value)
2789 (sh64_store_return_value, sh64_register_convert_to_virtual)
2790 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
2791 (sh64_pseudo_register_write, sh64_do_fp_register)
2792 (sh64_frame_prev_register): Likewise.
2793 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
2794 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
2795 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
2796 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
2797 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2798 * ppc-linux-nat.c (store_register): Likewise.
2799 * nto-tdep.c (nto_find_and_open_solib)
2800 (nto_init_solib_absolute_prefix): Likewise.
2801 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
2802 (mips_convert_register_p, mips_eabi_push_dummy_call)
2803 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2804 (mips_o32_push_dummy_call, mips_o32_return_value)
2805 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
2806 (mips_read_fp_register_single, mips_read_fp_register_double)
2807 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
2808 (mips_breakpoint_from_pc): Likewise.
2809 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
2810 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
2811 (mips_linux_o32_sigframe_init): Likewise.
2812 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2813 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
2814 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
2815 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
2816 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
2817 * coffread.c (process_coff_symbol): Likewise.
2818 * arm-tdep.c (convert_from_extended, convert_to_extended)
2819 (gdb_print_insn_arm): Likewise.
2821 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2823 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
2824 * i386-tdep.c (i386_dbx_reg_to_regnum)
2825 (i386_svr4_reg_to_regnum): Likewise.
2826 * inf-ptrace.c (inf_ptrace_fetch_registers)
2827 (inf_ptrace_store_registers): Likewise.
2828 * corelow.c (get_core_registers): Likewise.
2829 * i386-linux-nat.c (supply_gregset, fill_gregset)
2830 (i386_linux_fetch_inferior_registers)
2831 (i386_linux_store_inferior_registers): Likewise.
2832 * remote.c (init_remote_state,packet_reg_from_regnum)
2833 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
2834 (remote_prepare_to_store,store_registers_using_G)
2835 (remote_store_registers,remote_arch_state): Likewise.
2836 * tracepoint.c (encode_actions): Likewise.
2837 * mi/mi-main.c (mi_cmd_data_list_register_names)
2838 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2839 (mi_cmd_data_write_register_values): Likewise.
2840 * tui/tui-regs.c (tui_show_register_group)
2841 (tui_show_register_group): Likewise.
2842 * xtensa-tdep.h (FP_ALIAS): Likewise.
2843 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
2844 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
2845 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
2846 * win32-nat.c (do_win32_fetch_inferior_registers)
2847 (do_win32_store_inferior_registers,fetch_elf_core_registers
2848 * user-regs.h: Likewise (comment).
2849 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2850 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2851 * target-descriptions.h: Likewise (comment).
2852 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
2853 * target.c (debug_print_register): Likewise.
2854 * stack.c (frame_info): Likewise.
2855 * stabsread.c (define_symbol): Likewise.
2856 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
2857 (sh64_media_print_registers_info)
2858 (sh64_compact_print_registers_info): Likewise.
2859 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2860 * rs6000-nat.c (fetch_register,store_register): Likewise.
2861 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
2862 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
2863 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
2864 * remote-m32r-sdi.c (m32r_fetch_registers)
2865 (m32r_store_registers): Likewise.
2866 * reggroups.c (default_register_reggroup_p): Likewise.
2867 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
2868 (regcache_restore,regcache_dump): Likewise.
2869 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
2870 * mips-tdep.c (mips_xfer_register,mips_register_name)
2871 (mips_register_reggroup_p,mips_pseudo_register_read)
2872 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
2873 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
2874 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
2875 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
2876 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
2877 (print_gp_register_row,mips_print_registers_info)
2878 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2879 (mips_register_sim_regno): Likewise.
2880 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
2881 (mips_linux_n32n64_sigframe_init): Likewise.
2882 * mips-linux-nat.c (mips_linux_register_addr)
2883 (mips64_linux_register_addr): Likewise.
2884 * findvar.c (value_of_register): Likewise.
2885 * infcmd.c (default_print_registers_info,registers_info)
2886 (print_vector_info,print_float_info): Likewise.
2887 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
2888 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2889 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2890 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
2891 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2892 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
2893 (ia64_cannot_store_register,ia64_linux_fetch_registers)
2894 (ia64_linux_store_registers): Likewise.
2895 * hpux-thread.c (hpux_thread_fetch_registers)
2896 (hpux_thread_store_registers): Likewise.
2897 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
2898 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
2899 (h8300_register_type): Likewise.
2900 * dwarf2-frame.c (dwarf2_frame_cache)
2901 (dwarf2_frame_state_alloc_regs): Likewise.
2902 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
2903 (cris_cannot_store_register,crisv32_cannot_fetch_register)
2904 (crisv32_cannot_store_register,cris_register_name): Likewise.
2905 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2906 * arch-utils.c (legacy_register_sim_regno)
2907 (legacy_virtual_frame_pointer): Likewise.
2908 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
2909 * arm-tdep.h: Likewise (comment).
2910 * frv-tdep.c (frv_register_sim_regno): Likewise.
2911 * m68klinux-nat.c (old_fetch_inferior_registers)
2912 (old_store_inferior_registers): Likewise.
2913 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2914 * irix5-nat.c (fetch_core_registers): Likewise.
2915 * hppa-tdep.c (hppa_frame_cache): Likewise.
2916 * hppa-linux-nat.c (hppa_linux_register_addr)
2917 (hppa_linux_fetch_inferior_registers)
2918 (hppa_linux_store_inferior_registers): Likewise.
2919 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
2920 (hppa_hpux_store_inferior_registers): Likewise.
2921 * amd64-nat.c (amd64_native_gregset_reg_offset)
2922 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
2923 * dbug-rom.c (dbug_regname): Likewise.
2924 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
2925 (HARD_PAGE_REGNUM (comment)): Likewise.
2926 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
2927 * i386-tdep.c (i386_dbx_reg_to_regnum)
2928 (i386_svr4_reg_to_regnum): Likewise.
2929 * mi/mi-main.c (mi_cmd_data_list_register_names)
2930 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2931 (mi_cmd_data_write_register_values): Likewise.
2932 * gdbarch.c, gdbarch.h: Regenerate.
2933 * tui/tui-regs.c (tui_show_register_group): Likewise.
2934 * xtensa-tdep.h (FP_ALIAS): Likewise.
2935 * user-regs.h: Likewise (comment).
2936 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2937 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2938 * target-descriptions.h: Likewise (comment).
2939 * target.c (debug_print_register): Likewise.
2940 * stack.c (frame_info): Likewise.
2941 * stabsread.c (define_symbol): Likewise.
2942 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
2943 (sh64_compact_print_registers_info): Likewise.
2944 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2945 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
2946 (regcache_restore,regcache_dump): Likewise.
2947 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
2948 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2949 (mips_stab_reg_to_regnum): Likewise.
2950 * findvar.c (value_of_register): Likewise.
2951 * infcmd.c (default_print_registers_info,registers_info)
2952 (print_vector_info,print_float_info): Likewise.
2953 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2954 * h8300-tdep.c (h8300_register_type): Likewise.
2955 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2956 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
2957 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
2958 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
2959 * parse.c: Remove comment.
2960 * gdbarch.c, gdbarch.h: Regenerate
2962 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2964 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
2965 gdbarch_cannot_fetch_register.
2966 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2967 * hppa-linux-nat.c (fetch_register): Likewise.
2968 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2969 * m68klinux-nat.c (fetch_register): Likewise.
2970 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
2972 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
2973 gdbarch_cannot_store_register.
2974 * hppa-linux-nat.c (store_register): Likewise.
2975 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
2976 * regcache.c (regcache_raw_write): Likewise.
2977 * m68klinux-nat.c (store_register): Likewise.
2978 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
2979 * gdbarch.c, gdbarch.h: Regenerate.
2981 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2983 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
2984 * gdbarch.c, gdbarch.h: Regenerate.
2986 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2988 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
2989 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2990 * gdbarch.c, gdbarch.h: Regenerate.
2992 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2994 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
2995 * ax-gdb.c (gen_bitfield_ref): Likewise.
2996 * mi/mi-main.c (get_register): Likewise.
2997 * findvar.c (default_value_from_register, extract_signed_integer)
2998 (extract_unsigned_integer, extract_long_unsigned_integer)
2999 (store_signed_integer, store_unsigned_integer): Likewise.
3000 * regcache.c (regcache_dump): Likewise.
3001 * value.c (lookup_internalvar, value_of_internalvar)
3002 (set_internalvar): Likewise.
3004 * valprint.c (print_binary_chars, print_octal_chars)
3005 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3006 * infcmd.c (default_print_registers_info): Likewise.
3007 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3008 * stabsread.c (define_symbol): Likewise.
3009 * doublest.c (floatformat_from_length, floatformat_from_type)
3010 (extract_typed_floating, store_typed_floating): Likewise.
3011 * gdbarch.c, gdbarch.h: Regenerate.
3013 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3015 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3016 gdbarch_call_dummy_location.
3017 * infcall.c (call_function_by_hand): Likewise.
3018 * inferior.h: Change comment.
3019 * arch-utils.c: Change comment.
3020 * gdbarch.c, gdbarch.h: Regenerate.
3022 2007-05-28 Joel Brobecker <brobecker@adacore.com>
3024 * solib-aix5.c: Delete.
3025 * Makefile.in (solib-aix5.o): Delete rule.
3027 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
3029 * breakpoint.h (enum bpstat_what_main_action): Remove
3030 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3031 * infrun.c (process_event_stop_test): Do not check for it.
3033 2007-05-22 Chris Dearman <chris@mips.com>
3034 Maciej W. Rozycki <macro@mips.com>
3036 * ser-unix.c (show_serial_hwflow): New function.
3037 (hardwire_raw): Add hardware flow control support.
3038 (_initialize_ser_hardwire): Add "set/show remoteflow".
3039 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3040 * NEWS: Document the new command.
3042 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3044 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3045 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3046 define for i[[3456]]86-*-linux* native configurations.
3047 * config.in, configure: Regenerate.
3049 2007-05-19 Joel Brobecker <brobecker@adacore.com>
3051 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3052 a core file. Add comment in the function description.
3054 2007-05-18 Caroline Tice <ctice@apple.com>
3056 * c-valprint.c (c_value_print): If the initialized field of the
3057 value struct is 0, print out "[uninitialized]" before the value.
3058 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3059 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3060 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3061 ctx->initialized appropriately. Verify no location op follows
3063 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3064 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3065 set_value_initialized.
3066 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3067 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3068 * value.c (struct value): New field, initialized.
3069 (allocate_value): Initialize new field.
3070 (set_value_initialized): New function.
3071 (value_initialized): New function.
3072 * value.h (value_initialized): New extern declaration.
3073 (set_value_initialized): Likewise.
3075 2007-05-18 Caroline Tice <ctice@apple.com>
3077 * MAINTAINERS (Write After Approval): Add self.
3079 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3081 * gdbtypes.c (make_reference_type): Preserve the type chain
3082 and set the length of all the variants of the pointer type.
3084 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3086 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3087 and set the length of all the variants of the pointer type.
3089 2007-05-17 Maciej W. Rozycki <macro@mips.com>
3091 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3093 (mips_o64_push_dummy_call): Reformat a comment.
3095 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
3097 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3098 (score_prologue_frame_base_address): Return fp to keep gdb print
3099 local variables correctly when debugging information is stabs.
3101 (score_analyze_prologue): For software watchpoint, fetch all the
3102 instructions from range [startaddr, pc] once and identify them locally
3103 to reduce memory access.
3104 (score_malloc_and_get_memblock, score_free_memblock)
3105 (score_adjust_memblock_ptr): New functions.
3106 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3108 (score_target_can_use_watch, score_stopped_by_watch)
3109 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3110 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3111 New functions for remote & local hw-watchpoint and hw-breakpoint.
3113 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
3115 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3116 declarations as well.
3118 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3120 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3121 * config/arm/tm-embed.h: Delete file.
3123 * arm-tdep.h (arm_software_single_step): Declare.
3124 * arm-tdep.c (arm_software_single_step): Make global.
3125 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3127 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3128 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3129 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3130 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3132 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3133 allow defines to be overriden by TM file.
3134 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3135 change default to {0xbe,0xbe}.
3136 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3137 arm_obsd_thumb_be_breakpoint): New global variables.
3138 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3139 tdep->thumb_breakpoint_size.
3140 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3141 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3142 tdep->thumb_breakpoint_size.
3144 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3146 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3148 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3151 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3152 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3153 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3154 (mips_abi_regsize): Simplify.
3155 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3156 (mips_n32n64_return_value, mips_o32_push_dummy_call)
3157 (mips_o32_return_value, mips_o64_push_dummy_call)
3158 (mips_o64_return_value): Propogate constant register sizes. Use the
3159 ABI register size instead of mips_stack_argsize.
3160 (mips_dump_tdep): Don't print mips_stack_argsize.
3161 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
3164 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3166 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
3167 * config/mips/tm-linux.h: Delete.
3168 * mips-linux-tdep.c (mips_svr4_so_ops): New.
3169 (mips_linux_in_dynsym_resolve_code): Make static. Use
3170 svr4_in_dynsym_resolve_code.
3171 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
3173 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
3175 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
3176 * Makefile.in (mips-linux-tdep.o): Update.
3177 * solib.c (set_solib_ops): New.
3178 (current_target_so_ops): Update comment.
3179 * solib.h (set_solib_ops): New prototype.
3181 2007-05-16 Chris Dearman <chris@mips.com>
3183 * printcmd.c (do_examine): Fix typos in a comment.
3185 2007-05-16 Richard Sandiford <richard@codesourcery.com>
3187 * configure.ac: Allow sysroots to be relocated under $prefix as
3188 well as $exec_prefix.
3189 * configure: Regenerate.
3191 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3193 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
3194 (offsetof): Do not define.
3195 (find_stub_with_shl_get): Use numerical value 3 instead of
3196 symbolic value TYPE_PROCEDURE.
3198 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3200 * gdb_proc_service.h (paddr_t): Delete typedef.
3201 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
3202 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
3203 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
3204 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
3205 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
3206 * Makefile.in (proc-service.o): Update.
3208 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3210 * Makefile.in (mips-tdep.o): Update.
3211 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
3214 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3216 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
3217 instead of store_typed_address.
3218 * value.c (pack_long): New.
3219 (value_from_longest): Use it.
3220 * value.h (pack_long): New prototype.
3222 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3224 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
3225 DW_EH_PE_signed if appropriate.
3227 2007-05-14 Paul Brook <paul@codesourcery.com>
3228 Daniel Jacobowitz <dan@codesourcery.com>
3230 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
3232 (dwarf_decode_lines): Check for line info without a file.
3234 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3236 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
3239 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3241 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
3243 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
3245 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
3247 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3249 * gdbarch.sh (read_sp): Remove.
3250 * gdbarch.c, gdbarch.h: Regenerate.
3251 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
3253 * avr-tdep.c (avr_read_sp): Remove.
3254 (avr_unwind_sp): New function.
3255 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
3256 * mips-tdep.c (mips_read_sp): Remove.
3257 (mips_unwind_sp): New function.
3258 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
3259 * score-tdep.c (score_read_unsigned_register): Remove.
3260 (score_read_sp): Remove.
3261 (score_unwind_sp): New function.
3262 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
3264 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
3266 * buildsym.c (start_subfile): Handle absolute pathnames
3267 while comparing subfile names.
3269 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3271 * hppa-hpux-tdep.c: Include "regcache.h".
3272 * hppa-linux-tdep.c: Likewise.
3273 * hppa-tdep.c: Include "gdb_stdint.h".
3274 (find_unwind_entry): Cast host pointer to uintptr_t before passing
3276 * Makefile.in: Update dependencies.
3278 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3280 * blockframe.c: Remove obsolete comments.
3281 * alpha-nat.c (fetch_osf_core_registers): Update comment.
3282 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
3283 * hppa-tdep.h (enum hppa_regnum): Likewise.
3284 * mips-tdep.h: Likewise.
3285 * m68hc11-tdep.c: Likewise.
3287 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3289 * inferior.h (read_sp): Remove prototype.
3290 * regcache.c (read_sp): Remove.
3291 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
3292 * infcall.c (call_function_by_hand): Likewise.
3293 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
3295 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3297 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3299 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
3300 instead of read_register and read_register_pid.
3302 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
3303 argument instead of PTID. Use regcache functions instead of
3305 (ia64_linux_insert_watchpoint): Update call.
3306 (ia64_linux_stopped_data_address): Use regcache functions
3307 instead of read_register_pid and write_register_pid.
3309 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3311 * libunwind-frame.h (struct regcache): Add forward declaration.
3312 (libunwind_get_reg_special): Add REGCACHE argument.
3313 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
3314 argument. Pass it to unw_init_remote_p.
3316 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
3317 libunwind_get_reg_special.
3318 (ia64_access_reg): Remove "write" case.
3319 (ia64_access_fpreg): Likewise. Read from next_frame passed
3320 as callback argument instead of from current_regcache.
3321 (ia64_access_rse_reg): Remove "write" case. Read from regcache
3322 passed as callback argument instead of from current_regcache.
3323 (ia64_access_rse_fpreg): New function.
3324 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
3326 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3328 * NEWS: Mention SPU overlay support.
3330 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3332 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
3334 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3336 * breakpoint.c (remove_breakpoint): Do not remove software
3337 breakpoints in unmapped overlay sections.
3339 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3341 * spu-tdep.c: Include "observer.h".
3342 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
3343 (spu_overlay_data): New variable.
3344 (struct spu_overlay_table): New type.
3345 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
3346 spu_overlay_new_objfile): New functions.
3347 (spu_gdbarch_init): Install spu_overlay_update.
3348 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
3349 allocate spu_overlay_data objfile data.
3351 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3353 * gdbarch.sh (overlay_update): New gdbarch function.
3354 (struct obj_section): Add forward declaration.
3355 * gdbarch.c, gdbarch.h: Regenerate.
3357 * symfile.c (simple_overlay_update): Make global.
3358 (target_overlay_update): Remove variable.
3359 (overlay_is_mapped): Call gdbarch_overlay_update instead of
3360 target_overlay_update.
3361 (overlay_load_command): Likewise.
3362 * symfile.h (struct obj_section): Add forward declaration.
3363 (simple_overlay_update): Add prototype.
3365 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
3367 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3369 * observer.sh: Add "struct objfile" forward declaration.
3370 * target.h (deprecated_target_new_objfile_hook): Remove.
3371 * symfile.c (deprecated_target_new_objfile_hook): Remove.
3372 (clear_symtab_users): Call observer_notify_new_objfile.
3373 (symbol_file_add_with_addrs_or_offsets): Likewise.
3374 * rs6000-nat.c: Include "observer.h".
3375 (vmap_ldinfo): Call observer_notify_new_objfile.
3376 (xcoff_relocate_core): Likewise.
3377 * remote.c (remote_new_objfile_chain): Remove.
3378 (remote_new_objfile): Do not call remote_new_objfile_chain.
3379 (_initialize_remote): Use observer_attach_new_objfile.
3380 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
3381 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
3382 (_initialize_tui_hooks): Use observer_attach_new_objfile.
3383 * aix-thread.c: Include "observer.h".
3384 (target_new_objfile_chain): Remove.
3385 (new_objfile): Do not call target_new_objfile_chain.
3386 (_initialize_aix_thread): Use observer_attach_new_objfile.
3387 * hpux-thread.c: Include "observer.h"
3388 (target_new_objfile_chain): Remove.
3389 (hpux_thread_new_objfile): Make static. Do not call
3390 target_new_objfile_chain.
3391 (_initialize_hpux_thread): Use observer_attach_new_objfile.
3392 * linux-thread-db.c: Include "observer.h".
3393 (target_new_objfile_chain): Remove.
3394 (thread_db_new_objfile): Do not call target_new_objfile_chain.
3395 (_initialize_thread_db): Use observer_attach_new_objfile.
3396 * sol-thread.c: Include "observer.h".
3397 (target_new_objfile_chain): Remove.
3398 (sol_thread_new_objfile): Make static. Do not call
3399 target_new_objfile_chain.
3400 (_initialize_sol_thread): Use observer_attach_new_objfile.
3401 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
3402 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
3405 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3407 * gdbarch.sh (remote_translate_xfer_address): Remove.
3408 * gdbarch.h, gdbarch.c: Regenerate.
3409 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
3410 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
3411 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
3412 call gdbarch_remote_translate_xfer_address.
3413 * frv-tdep.c (frv_gdbarch_init): Do not call
3414 set_gdbarch_remote_translate_xfer_address.
3415 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
3416 (ia64_gdbarch_init): Do not install it.
3418 2007-05-11 Bob Wilson <bob.wilson@acm.org>
3420 * NEWS: Mention change in handling the -tui option.
3422 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
3424 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
3427 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3429 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
3430 (breakpoint_inserted_here_p): Call it.
3431 (software_breakpoint_inserted_here_p): Likewise.
3433 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
3435 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
3436 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
3437 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
3438 (inf_ptrace_store_register): Likewise.
3439 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
3440 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
3442 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
3444 * linux-nat.c (linux_trad_target): Adapt parameter list.
3445 * linux-nat.h (linux_trad_target): Likewise.
3447 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
3449 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
3450 (mips_linux_cannot_store_register): Likewise.
3451 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
3452 Return (CORE_ADDR) -1 for registers that cannot be fetched or
3453 stored via ptrace. Use GDBARCH instead of current_gdbarch.
3454 (mips64_linux_register_addr): Likewise.
3455 (mips_linux_register_u_offset): Adapt parameter list. Pass
3456 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
3458 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3459 * config/mips/nm-linux.h: Delete file.
3461 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
3463 * remote.c (remote_detach): Error out if remote can't detach.
3465 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
3467 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
3468 instruction's opcode in the "opcode" variable and declares new
3469 variable "closing_insn".
3471 2007-05-10 Chris Dearman <chris@mips.com>
3472 Maciej W. Rozycki <macro@mips.com>
3474 * cli/cli-setshow.c (do_setshow_command): Remove trailing
3475 whitespace when setting a var_filename.
3477 2007-05-09 Bob Wilson <bob.wilson@acm.org>
3479 * main.c (captured_main): Recognize -tui option and print an error
3480 message when the TUI is not configured.
3482 2007-05-09 Andreas Schwab <schwab@suse.de>
3484 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
3485 set removed members.
3486 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3488 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3490 * gdbarch.sh (deprecated_store_struct_return): Remove.
3491 * gdbarch.c, gdbarch.h: Regenerate.
3492 * frv-tdep.c (frv_store_struct_return): Remove.
3493 (frv_gdbarch_init): Do not install it.
3495 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3497 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
3498 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
3499 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
3501 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3503 * spu-linux-nat.c: Include "gdb_stdint.h".
3504 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
3505 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3506 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
3507 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
3508 (spu_child_wait): Mark up string for translation.
3510 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
3511 Luis Machado <luisgpm@br.ibm.com>
3513 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
3514 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
3515 BC_INSTRUCTION): Define.
3516 (deal_with_atomic_sequence): New function.
3517 (rs6000_software_single_step): Call deal_with_atomic_sequence.
3518 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
3519 gdbarch_software_single_step routine.
3521 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3523 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
3524 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
3525 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
3526 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
3527 spu_child_post_attach, spu_fetch_inferior_registers,
3528 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
3529 memory addresses as ULONGEST, not CORE_ADDR.
3531 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3533 * gdbarch.sh: Add skip_permanent_breakpoint callback.
3534 * gdbarch.h, gdbarch.c: Regenerate.
3536 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
3537 (resume): Call gdbarch_skip_permanent_breakpoint instead of
3538 SKIP_PERMANENT_BREAKPOINT. Inline default case.
3540 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
3541 Add REGCACHE argument. Use it instead of read/write_register.
3542 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
3544 * config/pa/tm-hppah.h: Delete file.
3545 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
3546 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
3548 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
3550 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
3551 * NEWS: Mention improved C++ thunk support.
3552 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
3553 * cp-abi.c (cplus_skip_trampoline): New.
3554 * cp-abi.h (cplus_skip_trampoline): New prototype.
3555 (struct cp_abi_ops): Add skip_trampoline member.
3556 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
3557 (init_gnuv3_ops): Set skip_trampoline.
3559 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3561 * rs6000-tdep.c (struct frame_extra_info): Delete.
3563 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3565 * linux-thread-db.c: Update some FIXME comments.
3566 (thread_db_xfer_partial): Delete.
3567 (init_thread_db_ops): Do not set to_xfer_partial.
3569 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3571 * inftarg.c, infptrace.c: Remove files.
3572 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
3573 (inftarg.o, infptrace.o): Remove rules.
3574 * gdbcore.h (register_addr): Remove prototype.
3575 * inferior.h (kill_inferior, store_inferior_registers,
3576 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
3577 call_ptrace, pre_fork_inferior): Remove prototypes.
3578 * target.h (child_xfer_memory, child_pid_to_exec_file,
3579 child_core_file_to_sym_file, child_post_attach,
3580 child_post_startup_inferior, child_acknowledge_created_inferior,
3581 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
3582 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
3583 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
3584 child_follow_fork, child_reported_exec_events_per_exec_call,
3585 child_has_exited, child_thread_alive): Remove prototypes.
3587 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3589 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
3590 (sparc_store_inferior_registers): Likewise.
3591 * sparc-nat.c (fetch_inferior_registers): Rename to ...
3592 (sparc_fetch_inferior_registers): ... this.
3593 (store_inferior_registers): Rename to ...
3594 (sparc_store_inferior_registers): ... this.
3595 (sparc_target): Update callback names.
3596 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
3597 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
3599 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3601 * linux-nat.c (child_post_attach): Rename to ...
3602 (linux_child_post_attach): ... this. Make static.
3603 (child_follow_fork): Rename to ...
3604 (linux_child_follow_fork): ... this. Make static.
3605 (child_insert_fork_catchpoint): Rename to ...
3606 (linux_child_insert_fork_catchpoint): ... this. Make static.
3607 (child_insert_vfork_catchpoint): Rename to ...
3608 (linux_child_insert_vfork_catchpoint): ... this. Make static.
3609 (child_insert_exec_catchpoint): Rename to ...
3610 (linux_child_insert_exec_catchpoint): ... this. Make static.
3611 (child_pid_to_exec_file): Rename to ...
3612 (linux_child_pid_to_exec_file): ... this. Make static.
3614 (linux_handle_extended_wait): Update call.
3615 (linux_xfer_partial): Update callback routine names.
3617 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3619 * configure.host (alpha*-*-osf[12]*): Remove support.
3620 * NEWS: Mention removed configurations.
3622 * config/alpha/alpha-osf1.mh: Delete file.
3623 * config/alpha/alpha-osf2.mh: Delete file.
3624 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
3626 * config/alpha/nm-osf.h: Delete file.
3627 * config/alpha/nm-osf2.h: Delete file.
3628 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
3629 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
3630 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
3632 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
3633 (register_addr, kernel_u_size): Remove.
3634 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
3636 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3638 * regcache.c (regcache_invalidate): New function.
3639 (register_cached): Remove.
3640 (set_register_cached): Remove.
3641 (deprecated_registers_fetched): Remove.
3642 (registers_changed): Use regcache_invalidate instead
3643 of set_register_cached.
3644 (regcache_raw_read): Update comment.
3646 * regcache.h (regcache_invalidate): Add prototype.
3647 (register_cached): Remove.
3648 (set_register_cached): Remove.
3649 (deprecated_registers_fetched): Remove.
3651 * findvar.c (value_of_register): Do not call register_cached.
3652 * frame.c (frame_register): Likewise.
3653 * tui/tui-regs.c (tui_get_register): Likewise.
3655 * remote.c (fetch_register_using_p): Do not call set_register_cached.
3656 (process_g_packet): Likewise.
3657 (remote_fetch_registers): Likewise.
3658 * remote-sim.c (gdbsim_fetch_register): Likewise.
3659 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
3660 by regcache_invalidate.
3661 (mt_pseudo_register_write): Likewise.
3662 * sh-tdep.c (sh_pseudo_register_write): Likewise.
3664 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
3665 call by loop over regcache_raw_supply (..., NULL).
3667 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3669 * target.h (struct target_ops): Add REGCACHE parameter to
3670 to_prepare_to_store.
3671 (target_prepare_to_store): Likewise.
3672 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
3673 (update_current_target): Adapt prepare_to_store de_fault rule.
3675 * regcache.c (regcache_raw_write): Pass regcache to
3676 target_prepare_to_store.
3678 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
3679 Do not call CHILD_PREPARE_TO_STORE.
3680 * gnu-nat.c (gnu_prepare_to_store): Likewise.
3681 * procfs.c (procfs_prepare_to_store): Likewise.
3683 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
3684 * go32-nat.c (go32_prepare_to_store): Likewise.
3685 * monitor.c (monitor_prepare_to_store): Likewise.
3686 * nto-procfs.c (procfs_prepare_to_store): Likewise.
3687 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
3688 * remote-mips.c (mips_prepare_to_store): Likewise.
3689 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
3690 * win32-nat.c (win32_prepare_to_store): Likewise.
3692 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
3693 Use it instead of current_regcache.
3695 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
3696 parameter. Pass it on to next target.
3697 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
3699 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3701 * target.h (struct regcache): Add forward declaration.
3702 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
3703 and to_store_registers target operations.
3704 (target_fetch_registers, target_store_registers): Update.
3706 * regcache.c (regcache_raw_read): Replace register_cached by
3707 regcache_valid_p. Pass regcache to target_fetch_registers.
3708 (regcache_raw_write): Pass regcache to target_store_registers.
3710 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
3711 store_regs, store_wmmx_regs): Replace register_cached by
3714 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
3715 to target_fetch_registers calls.
3716 * corelow.c (core_open): Likewise.
3717 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
3718 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3719 ps_lsetfpregs): Likewise.
3720 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3721 ps_lsetfpregs): Likewise.
3722 * win32-nat.c (win32_resume): Likewise.
3723 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
3724 to target_store_registers call.
3725 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3727 * inferior.h (store_inferior_registers): Update prototype.
3728 (fetch_inferior_registers): Likewise.
3729 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
3730 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
3731 Update function pointer signatures.
3733 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
3734 use it instead of current_regcache, update calls.
3735 (aix_thread_store_registers): Likewise.
3736 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3737 (alphabsd_store_inferior_registers): Likewise.
3738 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3739 (amd64bsd_store_inferior_registers): Likewise.
3740 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
3741 (amd64_linux_store_inferior_registers): Likewise.
3742 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
3743 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
3744 fetch_wmmx_regs, store_wmmx_regs): Likewise.
3745 (arm_linux_fetch_inferior_registers): Likewise.
3746 (arm_linux_store_inferior_registers): Likewise.
3747 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
3748 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
3749 (store_register, store_regs, store_fp_register, store_fp_regs,
3750 armnbsd_store_registers): Likewise.
3751 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
3752 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3753 (bsd_uthread_store_registers): Likewise.
3754 * corelow.c (get_core_registers): Likewise.
3755 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
3756 go32_store_registers): Likewise.
3757 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
3758 (hppabsd_store_registers): Likewise.
3759 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
3760 (hppa_hpux_fetch_inferior_registers): Likewise.
3761 (hppa_hpux_store_register): Likewise.
3762 (hppa_hpux_store_inferior_registers): Likewise.
3763 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3764 (hppa_linux_fetch_inferior_registers): Likewise.
3765 (hppa_linux_store_inferior_registers): Likewise.
3766 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
3767 (hpux_thread_store_registers): Likewise.
3768 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
3769 (i386bsd_store_inferior_registers): Likewise.
3770 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
3771 gnu_store_registers): Likewise.
3772 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
3773 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
3775 (i386_linux_fetch_inferior_registers): Likewise.
3776 (i386_linux_store_inferior_registers): Likewise.
3777 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3778 (ia64_linux_fetch_registers): Likewise.
3779 (ia64_linux_store_register): Likewise.
3780 (ia64_linux_store_registers): Likewise.
3781 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3782 (inf_child_store_inferior_registers): Likewise.
3783 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3784 (inf_ptrace_fetch_registers): Likewise.
3785 (inf_ptrace_store_register): Likewise.
3786 (inf_ptrace_store_registers): Likewise.
3787 * infptrace.c (fetch_register, store_register): Likewise.
3788 (fetch_inferior_registers, store_inferior_registers): Likewise.
3789 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
3790 (m32r_linux_fetch_inferior_registers): Likewise.
3791 (m32r_linux_store_inferior_registers): Likewise.
3792 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
3793 (m68kbsd_store_inferior_registers): Likewise.
3794 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
3795 store_register, old_store_inferior_registers, fetch_regs, store_regs,
3796 fetch_fpregs, store_fpregs): Likewise.
3797 (m68k_linux_fetch_inferior_registers): Likewise.
3798 (m68k_linux_store_inferior_registers): Likewise.
3799 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
3800 (m88kbsd_store_inferior_registers): Likewise.
3801 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
3802 (mips64obsd_store_inferior_registers): Likewise.
3803 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
3804 (mips64_linux_regsets_store_registers): Likewise.
3805 (mips64_linux_fetch_registers): Likewise.
3806 (mips64_linux_store_registers): Likewise.
3807 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3808 (mipsnbsd_store_inferior_registers): Likewise.
3809 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
3810 (monitor_fetch_registers, monitor_store_registers): Likewise.
3811 * nto-procfs.c (procfs_fetch_registers): Likewise.
3812 (procfs_store_registers): Likewise.
3813 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
3814 fetch_register, supply_vrregset, fetch_altivec_registers,
3815 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
3816 (store_altivec_register, store_spe_register, store_register,
3817 fill_vrregset, store_altivec_registers, store_ppc_registers,
3818 ppc_linux_store_inferior_registers): Likewise.
3819 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
3820 (ppcnbsd_store_inferior_registers): Likewise.
3821 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
3822 (ppcobsd_store_registers): Likewise.
3823 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3824 * remote.c (fetch_register_using_p, process_g_packet,
3825 fetch_registers_using_g, remote_fetch_registers): Likewise.
3826 (store_register_using_P, store_registers_using_G,
3827 remote_store_registers): Likewise.
3828 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
3829 m32r_store_register, m32r_store_register): Likewise.
3830 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
3831 * remote-sim.c (gdbsim_fetch_register): Likewise.
3832 (gdbsim_store_register): Likewise.
3833 * rs6000-nat.c (fetch_register, store_register): Likewise.
3834 (rs6000_fetch_inferior_registers): Likewise.
3835 (rs6000_store_inferior_registers): Likewise.
3836 * s390-nat.c (fetch_regs, store_regs): Likewise.
3837 (fetch_fpregs, store_fpregs): Likewise.
3838 (s390_linux_fetch_inferior_registers): Likewise.
3839 (s390_linux_store_inferior_registers): Likewise.
3840 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3841 (shnbsd_store_inferior_registers): Likewise.
3842 * sol-thread.c (sol_thread_fetch_registers): Likewise.
3843 (sol_thread_store_registers): Likewise.
3844 * sparc-nat.c (fetch_inferior_registers): Likewise.
3845 (store_inferior_registers): Likewise.
3846 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3847 (spu_store_inferior_registers): Likewise.
3848 * target.c (debug_print_register): Likewise.
3849 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
3850 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
3851 (vaxbsd_store_inferior_registers): Likewise.
3852 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
3853 (win32_fetch_inferior_registers): Likewise.
3854 (win32_store_inferior_registers): Likewise.
3856 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3858 * gdbcore.h (struct regcache): Add forward declaration.
3859 (struct core_fns): Add REGCACHE argument to core_read_registers
3861 * corelow.c (get_core_register_section): Add REGCACHE argument,
3862 use it instead of current_regcache, pass it to core_read_registers
3864 (get_core_registers): Add current_regcache as parameter to
3865 get_core_register_section calls.
3867 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
3868 use it instead of current_regcache.
3869 * armnbsd-nat.c (fetch_core_registers): Likewise.
3870 (fetch_elfcore_registers): Likewise.
3871 * core-regset.c (fetch_core_registers): Likewise.
3872 * cris-tdep.c (fetch_core_registers): Likewise.
3873 * irix5-nat.c (fetch_core_registers): Likewise.
3874 * m68klinux-nat.c (fetch_core_registers): Likewise.
3875 * mips-linux-tdep.c (fetch_core_registers): Likewise.
3876 * win32-nat.c (fetch_elf_core_registers): Likewise.
3878 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3880 * gregset.h (struct regcache): Add forward declaration.
3881 (supply_gregset): Add REGCACHE parameter, make GREGS const.
3882 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
3883 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
3884 (fill_gregset): Add REGCACHE parameter.
3885 (fill_fpregset): Likewise.
3886 (fill_fpxregset): Likewise.
3888 Update all definitions accordingly:
3889 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
3890 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
3891 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
3892 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
3893 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
3894 (supply_gregset): Add REGCACHE parameter, use it instead of
3895 current_regcache. Make GREGSETP parameter const, adapt casts.
3896 (supply_fpregset): Add REGCACHE parameter, use it instead of
3897 current_regcache. Make FPREGSETP parameter const, adapt casts.
3898 (fill_gregset): Add REGCACHE parameter, use it instead of
3900 (fill_fpregset): Likewise.
3902 Update all callers to pass in current_regcache as the new argument:
3903 * core-regset.c: Include "regcache.h".
3904 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
3905 * procfs.c: Include "regcache.h".
3906 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
3907 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
3908 (procfs_do_thread_registers): Likewise.
3909 (procfs_make_note_section): Likewise.
3910 * proc-service.c: Include "regcache.h".
3911 (ps_lgetregs): Update fill_gregset call.
3912 (ps_lsetregs): Update supply_gregset call.
3913 (ps_lgetfpregs): Update fill_fpregset call.
3914 (ps_lsetfpregs): Update supply_fpregset call.
3915 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
3916 supply_fpregset calls.
3917 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
3918 (ps_lgetregs): Update fill_gregset call.
3919 (ps_lsetregs): Update supply_gregset call.
3920 (ps_lgetfpregs): Update fill_fpregset call.
3921 (ps_lsetfpregs): Update supply_fpregset call.
3923 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
3924 fill_fpregset, and fill_fpxregset calls.
3925 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
3926 (store_regs): Update fill_gregset call.
3927 (fetch_fpregs): Update supply_fpregset call.
3928 (store_fpregs): Update fill_fpregset call.
3929 (fetch_fpxregs): Update supply_fpxregset call.
3930 (store_fpxregs): Update fill_fpxregset call.
3931 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
3932 (store_regs): Update fill_gregset call.
3933 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
3934 (store_regs): Update fill_gregset call.
3935 (fetch_fpregs): Update supply_fpregset call.
3936 (store_fpregs): Update fill_fpregset call.
3937 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
3938 * s390-nat.c (fetch_regs): Update supply_gregset call.
3939 (store_regs): Update fill_gregset call.
3940 (fetch_fpregs): Update supply_fpregset call.
3941 (store_fpregs): Update fill_fpregset call.
3943 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
3946 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3948 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
3949 it instead of current_regcache.
3950 (parse_register_dump): Add REGCACHE parameter, pass it to
3951 supply_register callback.
3952 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
3953 parse_register_dump.
3954 (monitor_dump_regs): Add REGCACHE parameter, pass it to
3955 parse_register_dump and dumpregs callback.
3956 (monitor_wait): Pass current_regcache to parse_register_dump and
3958 (monitor_fetch_register): Pass current_regcache to
3959 monitor_supply_register.
3960 (monitor_fetch_registers): Pass current_regcache to
3962 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
3963 supply_register and dumpregs callbacks.
3964 (monitor_supply_register, monitor_dump_reg_block): Update
3966 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
3967 it to monitor_supply_register.
3968 * dink32-rom.c (dink32_supply_register): Likewise.
3969 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
3970 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
3971 instead of current_regcache.
3973 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3975 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
3976 Add REGCACHE parameter. Use it instead of current_regcache.
3977 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
3978 i386nto_supply_gregset and i386nto_supply_fpregset.
3979 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
3980 of current_regcache.
3982 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
3983 nto_supply_ helper functions.
3984 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
3986 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
3988 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
3989 supply_greget, supply_fpregset, supply_altregset, supply_regset,
3990 and regset_fill member function pointers.
3991 (nto_dummy_supply_regset): Adapt prototype.
3993 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3995 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
3996 instead of current_regcache. Make REGS const.
3997 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
3998 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4000 * shnbsd-nat.c: Include "regcache.h".
4001 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4003 (shnbsd_store_inferior_registers): Pass current_regcache to
4005 * Makefile.in (shbsd-nat.o): Update dependencies.
4007 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4009 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4010 instead of current_regcache.
4011 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4012 Make GREGSETP const, remove superfluous casts.
4013 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4014 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4016 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4017 (supply_64bit_reg): Likewise
4018 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4019 Make GREGSETP const, adapt casts accordingly.
4020 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4021 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4023 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4024 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4026 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4027 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4028 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4030 * mips-linux-nat.c: Include "regcache.h".
4031 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4032 current_regcache to mips{64}_(supply|fill)_ helper routines.
4033 (mips64_linux_regsets_fetch_registers): Likewise.
4034 (mips64_linux_regsets_store_registers): Likewise.
4036 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4037 REGCACHE argument; replace current_regcache. Make REGS const.
4038 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4039 replace current_regcache.
4040 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4041 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4042 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4043 mipsnbsd_store_inferior_registers): Pass current_regcache to
4044 mipsnbsd_(supply|fill)_... helper routines.
4046 * Makefile.in (mips-linux-nat.o): Update dependencies.
4048 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4050 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4051 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4052 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4053 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4054 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4055 * i386gnu-nat.c (store_fpregs): Likewise.
4056 * i386v4-nat.c (fill_fpregset): Likewise.
4057 * go32-nat.c (store_register, go32_store_registers): Likewise.
4059 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4061 * cris-tdep.c (supply_gregset): Rename to ...
4062 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4063 instead of current_regcache.
4064 (fetch_core_registers): Update call. Pass current_regcache.
4066 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4068 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4069 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4070 Use it instead of current_regcache.
4071 (supply_fparegset): Rename to ...
4072 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4073 Use it instead of current_regcache.
4074 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4075 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4077 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4079 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4080 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4081 use it instead of current_regcache.
4082 * alpha-tdep.h (struct regcache): Add forward declaration.
4083 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4084 alpha_fill_fp_regs): Update prototypes.
4086 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4087 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4088 * alpha-linux-nat.c: Include "regcache.h".
4089 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4090 current_regcache to alpha_supply/fill_ routines.
4092 * alphabsd-tdep.c: Include "regcache.h".
4093 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4094 pass it to alpha_supply_ routines. Make REGS const.
4095 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4096 pass it to alpha_fill_ routines.
4097 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4098 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4099 alphabsd_fill_fpreg): Update prototypes.
4101 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4102 fill_fpregset, alphabsd_fetch_inferior_registers,
4103 alphabsd_store_inferior_registers): Pass current_regcache to
4104 alphabsd_supply/fill_ routines.
4106 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4109 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4111 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4112 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4113 instead of current_regcache.
4114 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4115 REGCACHE parameter, pass it to supply_ routines.
4116 (aix_thread_fetch_registers): Pass current_regcache to
4117 fetch_regs_user_thread and fetch_regs_kernel_thread.
4119 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4120 Add REGCACHE parameter, use it instead of current_regcache.
4121 Call regcache_valid_p instead of register_cached.
4122 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4123 Also, pass REGCACHE to fill_ routines.
4124 (aix_thread_store_registers): Pass current_regcache to
4125 store_regs_user_thread and store_regs_kernel_thread.
4127 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4129 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4130 pointed to by GREGSETP.
4132 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4134 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4135 of regcache_raw_read_signed.
4136 (fill_fpregset): Use regcache_raw_collect instead of
4139 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4141 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4142 point arguments, test explicitly for use of the EABI32 ABI
4143 instead of inferring this condition from tests on register
4146 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4148 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4149 prior to allocating its location.
4151 2007-05-02 Maciej W. Rozycki <macro@mips.com>
4153 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4154 based on mips_abi_regsize() whose result is known in advance.
4155 (mips_o64_push_dummy_call): Likewise.
4157 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4159 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4160 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
4162 * mips-linux-nat.c: Include "gregset.h".
4163 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
4164 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
4165 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
4166 fill_fpregset): Move to mips-linux-nat.c.
4168 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
4170 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4172 * regcache.c (deprecated_read_register_gen): Remove, inline ...
4173 (read_register): ... here.
4174 (deprecated_write_register_gen): Remove, inline ...
4175 (write_register): ... here.
4176 * regcache.h (deprecated_read_register_gen): Remove prototype.
4177 (deprecated_write_register_gen): Likewise.
4179 * remote-sim.c (gdbsim_store_register): Replace call to
4180 deprecated_read_register_gen with regcache_cooked_read.
4181 * target.c (debug_print_register): Replace calls to
4182 deprecated_read_register_gen and read_register with
4183 regcache_cooked_read.
4185 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4187 * hpux-thread.c (hpux_thread_store_registers): Use
4188 regcache_raw_collect, not regcache_raw_read.
4189 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
4190 not regcache_raw_write.
4192 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4194 * gdbarch.sh: Remove deprecated_register_byte.
4195 * gdbarch.c, gdbarch.h: Regenerate.
4196 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
4197 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
4199 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
4200 * regcache.c (regcache_valid_p): Allow to query cooked registers in
4201 read-only register caches. Make REGCACHE parameter const.
4202 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
4204 * mi/mi-main.c (old_regs): Remove.
4205 (mi_setup_architecture_data, _initialize_mi_main): Remove.
4206 (register_changed_p): Reimplement to compare two register caches.
4207 (mi_cmd_data_list_changed_registers): Update caller.
4208 * mi/mi-main.h (mi_setup_architecture_data): Remove.
4209 * mi/mi-interp.c (mi_interpreter_init): Do not call
4210 mi_setup_architecture_data.
4212 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4214 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
4215 inline definition at the places the macros are used.
4216 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
4218 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4220 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
4222 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
4223 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
4224 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
4225 (rs6000_aix_regset_from_core_section): New function.
4226 (rs6000_aix_init_osabi): Register it.
4227 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
4228 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
4229 * rs6000-nat.c (CoreRegs): Do not define type.
4230 (fetch_core_registers, rs6000_core_fns): Remove.
4231 (_initialize_core_rs6000): Do not register it. Rename to ...
4232 (_initialize_rs6000_nat): ... this.
4233 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
4235 2007-04-27 Kevin Buettner <kevinb@redhat.com>
4237 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
4238 (dwarf2_read_address): Sign extend return address as required by
4239 target architecture.
4241 2007-04-27 Kevin Buettner <kevinb@redhat.com>
4243 * solib-frv.c (lm_base): Bail out if the main executable has
4246 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4248 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
4249 of FPCR register in fpregset.
4251 2007-04-27 Maciej W. Rozycki <macro@mips.com>
4253 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
4254 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
4256 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4258 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
4259 * rs6000-nat.c (rs6000_wait): New function.
4260 (_initialize_core_rs6000): Install it as to_wait target method.
4261 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
4263 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4265 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
4266 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
4267 * rs6000-nat.c (super_create_inferior): New variable.
4268 (rs6000_create_inferior): Make static. Adapt argument list. Call
4269 original version of create_inferior via super_create_inferior.
4270 (_initialize_core_rs6000): Install to_create_inferior target method.
4272 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4274 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
4275 (aix_thread_xfer_partial): ... this.
4276 (init_aix_thread_ops): Install to_xfer_partial instead
4277 of deprecated_xfer_memory target method.
4279 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
4280 and inftarg.o, add inf-ptrace.o.
4281 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
4282 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
4283 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
4284 (fetch_inferior_registers): Rename to ...
4285 (rs6000_fetch_inferior_registers): ... this. Make static.
4286 (store_inferior_registers): Rename to ...
4287 (rs6000_store_inferior_registers): ... this. Make static.
4288 (read_word, child_xfer_memory): Remove.
4289 (rs6000_xfer_partial): New function.
4290 (kernel_u_size): Remove.
4291 (_initialize_core_rs6000): Add inf_ptrace-based target.
4292 * Makefile.in (rs6000-nat.o): Update dependencies.
4294 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4296 * inf-ptrace.c: Include "gdb_stdint.h".
4297 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
4298 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
4299 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
4300 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
4301 (inf_ptrace_store_register): Likewise.
4302 * Makefile.in (inf-ptrace.o): Update dependencies.
4304 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4306 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
4307 * configure.tgt (rs6000-*-*): Likewise.
4308 * config/rs6000/aix4.mh: Delete file.
4309 * config/rs6000/aix4.mt: Delete file.
4310 * config/rs6000/rs6000.mh: Delete file.
4311 * config/rs6000/rs6000.mt: Delete file.
4313 * config/powerpc/nm-aix.h: Delete file.
4314 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
4316 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4318 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
4319 Remove obsolete part of comment.
4320 (store_regs_user_thread): Use uint32_t temporaries when calling
4322 (store_regs_kernel_thread): Likewise. Add assertion to verify
4323 correct size of struct ptsprs members.
4324 (aix_thread_xfer_memory): Fix type of myaddr.
4325 (aix_thread_extra_thread_info): Fix compiler warning.
4326 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
4327 (fetch_register, store_register): Adapt callers.
4329 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4331 * vec.h (vec_free): Rename to vec_free_. Adapt users.
4333 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4335 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
4337 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
4338 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
4339 (alpha_linux_regset_from_core_section): New function.
4340 (alpha_linux_init_abi): Install it.
4341 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
4342 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
4343 <sys/procfs.h>, and "gregset.h".
4344 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
4345 Move from config/alpha/nm-linux.h.
4346 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
4348 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
4349 * alpha-nat.c: Remove #ifdef __linux__ section.
4350 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
4351 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
4352 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
4353 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
4354 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
4355 (NATDEPFILES): Remove alpha-nat.o.
4356 * config/alpha/nm-linux.h: Delete file.
4357 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
4358 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4359 (alpha-linux-tdep.o): Likewise.
4361 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4363 * mips-linux-nat.c: No longer include "gdbcore.h".
4364 (mips_linux_register_addr): Move from mips-linux-tdep.c.
4365 (mips64_linux_register_addr): Likewise.
4366 (mips_linux_register_u_offset): Call mips_linux_register_addr or
4367 mips64_linux_register_addr instead of register_addr.
4368 * mips-linux-tdep.c (mips_linux_register_addr,
4369 mips64_linux_register_addr): Move to mips-linux-nat.c.
4370 (register_addr): Remove.
4371 (register_addr_data, init_register_addr_data): Remove.
4372 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
4373 (set_mips_linux_register_addr): Remove.
4374 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
4375 * Makefile.in (mips-linux-nat.o): Update dependencies.
4377 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4379 * linux-nat.c (linux_register_u_offset): Remove.
4380 (linux_target_install_ops): New function.
4381 (linux_target): Use it.
4382 (linux_trad_target): New function.
4383 * linux-nat.h (linux_trad_target): Declare.
4385 * alpha-linux-nat.c: Include "gdbcore.h".
4386 (alpha_linux_register_u_offset): New function.
4387 (_initialize_alpha_linux_nat): Use linux_trad_target.
4389 * mips-linux-nat.c: Include "gdbcore.h".
4390 (mips_linux_register_u_offset): New function.
4391 (_initialize_mips_linux_nat): Use linux_trad_target.
4393 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4394 * config/arm/nm-linux.h: Delete file.
4396 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
4397 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
4399 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4400 * config/ia64/nm-linux.h: Delete file.
4402 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4403 * config/m32r/nm-linux.h: Delete file.
4405 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4406 * config/m68k/nm-linux.h: Delete file.
4408 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4409 * config/pa/nm-linux.h: Delete file.
4411 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4412 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
4413 * config/powerpc/nm-linux.h: Delete file.
4415 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
4416 * config/s390/nm-linux.h: Delete file.
4418 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4419 * config/sparc/linux64.mh (NAT_FILE): Likewise.
4420 * config/sparc/nm-linux.h: Delete file.
4422 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4423 (mips-linux-nat.o): Likewise.
4425 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4427 * core-aout.c: Delete file.
4428 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
4429 (core-aout.o): Delete rule.
4430 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
4432 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
4434 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
4435 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
4436 KERNEL_U_ADDR): Remove.
4438 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
4439 (cannot_fetch_register, cannot_store_register): Remove.
4440 (fetch_register): Inline cannot_fetch_register and register_addr.
4441 (store_register): Inline cannot_store_register and register_addr.
4442 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
4443 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4444 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
4447 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
4448 (fetch_register): Inline register_addr.
4449 (store_register): Inline register_addr.
4450 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
4451 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4452 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
4454 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
4455 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
4456 REGISTER_U_ADDR): Remove.
4458 * hppa-linux-nat.c (register_addr): Rename to ...
4459 (hppa_linux_register_addr): ... this. Make static.
4460 (fetch_register, store_register): Adapt callers.
4461 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
4463 * ppc-linux-nat.c (kernel_u_size): Remove.
4464 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
4466 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
4467 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
4469 * config/vax/nm-vax.h: Delete file.
4471 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4473 * MAINTAINERS (Write After Approval): Add myself.
4475 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4477 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
4478 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
4479 (m68k_linux_sigcontext_reg_offset): Fix typo.
4480 (target_is_uclinux): New.
4481 (m68k_linux_inferior_created): New.
4482 (m68k_linux_get_sigtramp_info): Check for uClinux or
4483 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
4485 (_initialize_m68k_linux_tdep): Register
4486 m68k_linux_inferior_created.
4488 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
4490 * win32-nat.c (win32_detach): Remove delete_command call.
4491 Resume inferior with win32_resume instead of win32_continue.
4493 2007-04-19 Jerome Guitton <guitton@adacore.com>
4495 * ser-mingw.c (fd_is_file): New function.
4496 (file_select_thread): New function.
4497 (ser_console_wait_handle): Add special handling for files.
4499 2007-04-18 Denis Pilat <denis.pilat@st.com>
4501 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
4502 when missing from DW_TAG_subrange_type. Remove the handling of null
4503 return from die_type.
4505 2007-04-18 Maciej W. Rozycki <macro@mips.com>
4507 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
4508 change to rearrange some brackets.
4509 (mips_n32n64_push_dummy_call): Likewise.
4510 (mips_o32_push_dummy_call): Likewise.
4511 (mips_o64_push_dummy_call): Likewise.
4513 2007-04-18 Denis Pilat <denis.pilat@st.com>
4515 * infcmd.c (post_create_inferior): Start with a call to
4516 target_terminal_ours.
4518 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4520 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
4522 (mips_n32n64_push_dummy_call): Likewise. Reformat some
4524 (mips_o32_push_dummy_call): Likewise.
4525 (mips_o64_push_dummy_call): Likewise.
4527 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4529 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4532 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4534 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4536 (mips_o32_push_dummy_call): Likewise.
4538 2007-04-17 Andreas Schwab <schwab@suse.de>
4540 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
4541 sal to be bigger than the end of the function.
4543 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4544 Nigel Stephens <nigel@mips.com>
4546 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
4547 argument alignment requirements when calculating stack space
4548 required. When aligning an arg register to eight bytes
4549 boundary, align stack_offset too. Write floating-point
4550 arguments to the appropriate integer register if need go there.
4551 (mips_o64_push_dummy_call): Likewise.
4553 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4555 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
4556 "sig" arguments, add "regcache" argument.
4557 * gdbarch.c, gdbarch.h: Regenerate.
4559 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
4560 (handle_inferior_event): Call remove_single_step_breakpoints directly
4561 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
4563 * alpha-tdep.c (alpha_software_single_step): Update argument list.
4564 Remove handling of !insert_breakpoints_p case.
4565 * arm-tdep.c (arm_software_single_step): Likewise.
4566 * cris-tdep.c (cris_software_single_step): Likewise.
4567 * mips-tdep.c (mips_software_single_step): Likewise.
4568 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4569 * sparc-tdep.c (sparc_software_single_step): Likewise.
4570 * spu-tdep.c (spu_software_single_step): Likewise.
4572 * alpha-tdep.h (alpha_software_single_step): Update prototype.
4573 * mips-tdep.h (mips_software_single_step): Likewise.
4574 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4575 * sparc-tdep.h (sparc_software_single_step): Likewise.
4577 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4579 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
4580 when removing single-step breakpoints.
4582 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
4584 * varobj.h (varobj_set_frozen): New
4585 (varobj_get_frozen): New.
4586 (varobj_update): New parameter explicit.
4587 * varobj.c (struct varobj): New fields frozen
4589 (varobj_set_frozen, varobj_get_frozen): New.
4590 (install_new_value): Don't fetch values for
4591 frozen variable object, or children thereof. Allow
4592 a frozen variable object to have non-fetched value.
4593 (varobj_update): Allow updating child variables.
4594 Don't traverse frozen children.
4595 (new_variable): Initialize the frozen field.
4596 (c_value_of_variable): Return NULL for frozen
4597 variable without any value yet.
4598 * mi/mi-cmd-var.c (varobj_update_one): New parameter
4600 (mi_cmd_var_create): Output the 'frozen' field,
4601 as soon as testsuite is adjusted to expect that field.
4602 (mi_cmd_var_set_frozen): New.
4603 (mi_cmd_var_update): Pass the 'explicit' parameter to
4605 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
4606 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
4608 2007-04-13 Paul Brook <paul@codesourcery.com>
4610 * target-descriptions.c (tdesc_named_type): Add ieee_single and
4612 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
4614 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4616 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
4617 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
4618 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
4619 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
4620 * Makefile.in: Remove references to deleted files.
4621 * README: Do not mention deleted ROM monitor interfaces.
4622 * defs.h (enum language): Delete language_scm.
4623 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
4624 (dump_subexp_body_standard): Likewise.
4625 * parse.c (operator_length_standard): Likewise.
4626 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
4627 * remote-mips.c: Do not include remote-utils.h.
4628 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
4630 * value.c: Do not include scm-lang.h.
4631 (unpack_long): Delete scm_unpack call.
4632 * config/h8300/h8300.mt, config/mips/embed.mt,
4633 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
4634 config/sh/embed.mt, config/sh/linux.mt: Remove references to
4636 * NEWS: Mention removed files.
4638 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4640 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
4641 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
4643 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4645 * NEWS: Mention removal of HP aCC support.
4647 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4649 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
4650 first entry for static executables.
4651 (breakpoint_addr): Delete unused variable.
4652 (elf_locate_base): Search for _r_debug in static executables.
4653 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
4656 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4658 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
4659 (bpstat_what, print_one_breakpoint, allocate_bp_location)
4660 (mention): Remove bp_through_sigtramp support.
4661 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
4663 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4665 * breakpoint.c (bpstat_what): Give step-resume higher priority than
4668 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4670 * infrun.c: Doc fixes.
4671 (handle_inferior_event): Clarify debug message.
4672 (insert_step_resume_breakpoint_at_sal): Print a debug message.
4674 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4676 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
4678 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4680 * config/m68k/tm-monitor.h: Delete file.
4681 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
4682 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
4684 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
4685 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
4687 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
4689 * gdbarch.sh (software_single_step): Change the return type
4690 from void to int and reformatted some comments to <= 80
4692 * gdbarch.c, gdbarch.h: Regenerated.
4693 * alpha-tdep.c (alpha_software_single_step): Likewise.
4694 * alpha-tdep.h (alpha_software_single_step): Likewise.
4695 * arm-tdep.c (arm_software_single_step): Likewise.
4696 * cris-tdep.c (cris_software_single_step): Likewise.
4697 * mips-tdep.c (mips_software_single_step): Likewise.
4698 * mips-tdep.h (mips_software_single_step): Likewise.
4699 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4700 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4701 * sparc-tdep.c (sparc_software_single_step): Likewise.
4702 * sparc-tdep.h (sparc_software_single_step): Likewise.
4703 * spu-tdep.c (spu_software_single_step): Likewise.
4704 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
4705 and act accordingly.
4707 2007-04-11 Steve Ellcey <sje@cup.hp.com>
4709 * configure.ac (build_warnings): Add -Wno-char-subscripts.
4710 * configure: Regenerate.
4711 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
4713 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4715 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
4717 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4719 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
4721 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
4722 distinct on the TYPE_STUB_SUPPORTED debug targets.
4723 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
4725 2007-04-11 Joel Brobecker <brobecker@adacore.com>
4727 * sparc-tdep.c (X_RS2): New macro.
4728 (sparc_skip_stack_check): New function.
4729 (sparc_analyze_prologue): Adjust PC past stack probing
4730 sequence if necessary.
4732 2007-04-10 Andreas Schwab <schwab@suse.de>
4734 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
4737 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4739 * breakpoint.c (gdb_breakpoint_query): Really return an
4741 (gdb_breakpoint): Likewise.
4742 * thread.c (gdb_list_thread_ids): Likewise.
4743 (gdb_thread_select): Likewise.
4744 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
4745 (mi_cmd_thread_list_ids): Remove bogus initialization.
4747 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4749 * Makefile.in (SFILES): Remove hpacc-abi.c.
4750 (COMMON_OBS): Remove hpacc-abi.o.
4751 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
4752 (hpacc-abi.o, hpread.o): Delete rules.
4753 * somread.c: Delete extern declarations from hpread.c.
4754 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
4755 (som_symfile_finish): Do not call hpread_symfile_finish.
4756 (som_symfile_init): Do not call hpread_symfile_init.
4757 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
4758 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
4759 * hpacc-abi.c, hpread.c: Deleted.
4761 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4763 * solib-svr4.c (enable_break): Simplify return value.
4764 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
4766 2007-04-10 Andreas Schwab <schwab@suse.de>
4768 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
4769 l_ld_size, l_next_size, l_prev_size, l_name_size.
4771 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
4772 to extract addresses from link map.
4773 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
4774 (LM_NEXT): Likewise.
4775 (LM_NAME): Likewise.
4776 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
4777 (elf_locate_base): Likewise.
4778 (open_symbol_file_object): Likewise.
4779 (svr4_fetch_objfile_link_map): Likewise.
4780 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
4781 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
4783 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
4784 (svr4_lp64_fetch_link_map_offsets): Likewise.
4786 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
4787 removed members. Set l_ld_offset to -1 if not present.
4789 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
4791 Pass stderr of program run with "target remote |"
4793 * serial.c (serial_open): Set error_fd to -1.
4794 * serial.h (struct serial): New field error_fd.
4795 (struct serial_opts): New field avail.
4796 * ser-pipe.c (pipe_open): Create another pair
4797 of sockets. Pass stderr to gdb.
4798 * ser-mingw.c (pipe_windows_open): Pass
4799 PEX_STDERR_TO_PIPE to pex_run. Initialize
4802 (_initialize_ser_windows): Hook pipe_avail.
4803 * ser-base.c (generic_readchar): Check if there's
4804 anything in stderr channel and route that to gdb_stderr.
4806 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
4808 * dbxread.c (read_ofile_symtab): Move current_objfile
4809 clearing to after end_stabs.
4811 2007-04-01 Andreas Schwab <schwab@suse.de>
4813 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
4814 gdbarch instead of current_gdbarch.
4816 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
4818 * varobj.c (varobj_create): Keep varobj value
4819 NULL when evaluating the type.
4821 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
4823 * NEWS: Mention new Windows CE support.
4825 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
4827 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
4828 the obsoletion stanza.
4829 * NEWS: Mention deleted targets.
4831 * config/sh/tm-wince.h: Remove.
4832 * config/sh/wince.mt: Remove.
4833 * config/mips/tm-wince.h: Remove.
4834 * config/mips/wince.mt: Remove.
4837 * wince-stub.c: Remove.
4838 * wince-stub.h: Remove.
4839 * Makefile.in (wince.o): Remove rule.
4840 (wince-stub.o): Likewise.
4842 * mips-tdep.c (mips_next_pc): Make static.
4843 * mips-tdep.h (mips_next_pc): Remove declaration.
4844 * arm-tdep.c (arm_pc_is_thumb): Make static.
4845 (thumb_get_next_pc): Likewise.
4846 (arm_get_next_pc): Likewise.
4847 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
4848 (arm_pc_is_thumb): Likewise.
4849 (thumb_get_next_pc): Likewise.
4850 (arm_get_next_pc): Likewise.
4852 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4854 * MAINTAINERS: Remove d10v entry.
4855 * Makefile.in (SFILES): Remove dwarfread.c.
4856 (COMMON_OBS): Remove dwarfread.o.
4857 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
4858 (remote-est.o, rom68k-rom.o): Delete.
4859 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
4860 target est, target rom68k, and DWARF 1.
4861 * configure.tgt: Mark d10v as removed.
4862 * dwarf2read.c: Doc update.
4863 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
4865 (elf_locate_sections): Do not set them.
4866 (elf_symfile_read): Do not call dwarf_build_psymtabs.
4867 * symfile.h (dwarf_build_psymtabs): Delete prototype.
4868 * config/m68k/monitor.mt (TDEPFILES): Prune.
4869 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
4870 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
4872 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4874 * doublest.c (convert_floatformat_to_doublest): Use
4875 floatformat_classify.
4876 (floatformat_is_nan): Rename to...
4877 (floatformat_classify): ...this. Return more information.
4878 * doublest.h (enum float_kind): New.
4879 (floatformat_is_nan): Replace prototype...
4880 (floatformat_classify): ...with this one.
4881 * valprint.c (print_floating): Use floatformat_classify. Handle
4884 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4886 * README: Mention ISO C library requirement.
4888 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4890 * Makefile.in (SFILES): Remove nlmread.c.
4891 (COMMON_OBS): Remove nlmread.o.
4892 (nlmread.o): Delete rule.
4893 * README: Delete reference to remote-st.c.
4894 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
4895 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
4897 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
4898 (_initialize_i386_tdep): Do not reference them.
4899 * nlmread.c: Delete file.
4900 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
4901 * target.c: Doc update.
4902 * thread.c: Delete commented include.
4903 * config/alpha/tm-alpha.h: Doc update.
4905 2007-03-30 Chris Dearman <chris@mips.com>
4907 * utils.c (string_to_core_addr): Comment typo.
4909 2007-03-30 Chris Dearman <chris@mips.com>
4911 * mips-tdep.c: Comment typo.
4913 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
4915 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
4916 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4917 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4918 * config/powerpc/nm-ppc64-linux.h: Remove file.
4919 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
4920 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
4921 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
4922 * infptrace.c (call_ptrace): Likewise.
4923 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
4924 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
4925 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
4926 (store_register): Likewise.
4928 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4930 * Makefile.in (varobj.o): Add missing dependency.
4932 2007-03-29 Michael Snyder <msnyder@access-company.com>
4934 * MAINTAINERS: Update my email address.
4936 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4938 Add support for exception handling with multiple versions of
4940 * ada-lang.c: Update general comments on how Ada exception catchpoints
4942 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
4943 (__gnat_raise_nodefer_with_msg): Delete.
4944 (ada_unhandled_exception_name_addr_ftype): New type.
4945 (exception_support_info): New type.
4946 (ada_unhandled_exception_name_addr): Add forward declaration.
4947 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4948 (default_exception_support_info): New constant.
4949 (exception_support_info_fallback): Likewise.
4950 (exception_info): New global variable.
4951 (ada_exception_support_info_sniffer): New function.
4952 (ada_executable_changed_observer): Likewise.
4953 (ada_unhandled_exception_name_addr_from_raise): Renamed from
4954 ada_unhandled_exception_name_addr.
4955 (ada_unhandled_exception_name_addr): Reimplement to match the
4956 latest Ada runtime implementation.
4957 (error_breakpoint_runtime_sym_not_found): Delete.
4958 (ada_exception_sym_name): Get the exception sym name from
4959 exception_info rather than hardcoding it.
4960 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
4961 Update error handling.
4962 * Makefile.in (ada-lang.o): Add dependency on observer.h.
4964 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4966 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
4967 (remote-st.o, uw-thread.o): Delete.
4968 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
4969 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4970 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
4971 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
4972 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
4973 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
4974 rs6000-*-lynxos* to an obsoletion stanza.
4975 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4976 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
4977 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
4978 i[34567]86-*-netware*.
4979 * NEWS: Mention deleted targets.
4981 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
4982 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
4983 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
4984 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
4985 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
4986 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
4987 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
4988 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
4989 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
4990 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
4991 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
4992 config/rs6000/tm-rs6000ly.h: Delete files.
4994 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4996 * defs.h (deprecated_registers_changed_hook): Delete declaration.
4997 * interps.c (clear_interpreter_hooks): Do not clear
4998 deprecated_registers_changed_hook.
4999 * regcache.c (registers_changed): Do not call it.
5000 * top.c (deprecated_registers_changed_hook): Do not define it.
5001 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5002 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5003 (tui_remove_hooks): Do not remove it.
5004 (tui_selected_frame_level_changed_hook): Check for negative level.
5005 Use get_selected_frame.
5006 (tui_registers_changed_hook): Deleted.
5008 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5010 * stabsread.c (add_undefined_type): Add extra parameter.
5011 Now handles nameless types separately.
5012 (struct nat): New type.
5013 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5014 New static variables.
5015 (read_type): Update calls to add_undefined_type.
5016 (add_undefined_type_noname): New function.
5017 (add_undefined_type_1): Renames from add_undefined_type.
5018 (cleanup_undefined_types_noname): New function.
5019 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5020 (cleanup_undefined_types): New handles nameless types separately.
5021 (_initialize_stabsread): Initialize our new static constants.
5023 2007-03-29 Denis Pilat <denis.pilat@st.com>
5025 * configure.ac: Test for signal.h.
5026 * configure, config.in: Regenerate.
5028 2007-03-29 Denis Pilat <denis.pilat@st.com>
5030 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5031 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5033 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
5035 * arm-wince-tdep.c: New.
5036 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5037 (MT_CFLAGS): Delete.
5039 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5040 solib-legacy.o, solib-svr4.o, and remove wince.o.
5041 * configure.tgt (arm*-*-mingw32ce*): Add.
5042 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5043 (do_target_signal_to_host): Silence 'not used' warning.
5044 * config/arm/tm-wince.h: Remove.
5046 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5048 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5049 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5051 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5052 * config/ia64/tm-linux.h: Remove file.
5053 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5054 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5055 legacy_pc_in_sigtramp.
5056 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5057 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5058 Remove func_name argument.
5059 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5061 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5062 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5063 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5064 (HAVE_STEPPABLE_WATCHPOINT): Define.
5066 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5067 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5068 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5069 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5070 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5071 target_insert_watchpoint, target_remove_watchpoint): Remove.
5072 (FETCH_INFERIOR_REGISTERS): Define.
5073 * ia64-linux-nat.c (ia64_register_addr): Make static.
5074 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5075 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5076 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5077 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5078 (ia64_linux_stopped_by_watchpoint): Make static.
5079 (ia64_linux_can_use_hw_breakpoint): New function.
5080 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5081 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5082 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5084 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
5086 * linespec.c: Include language.h.
5087 (find_methods): Add language parameter. Call
5088 lookup_symbol_in_language. Pass language down.
5089 (add_matching_methods): Likewise. Call
5090 lookup_symbol_in_language.
5091 (add_constructors): Likewise.
5092 (find_method): Pass sym_class to collect_methods.
5093 (collect_methods): Add sym_class parameter. Pass language
5095 * symtab.c (lookup_symbol): Rename to ...
5096 (lookup_symbol_in_language): ... this. Add language
5097 parameter. Use passed language instead of current_language.
5098 (lookup_symbol): New as wrapper around
5099 lookup_symbol_in_language.
5100 (lookup_symbol_aux): Add language parameter. Use passed
5101 language instead of current_language.
5102 (search_symbols): Indent.
5103 * symtab.h (enum language): Forward declare.
5104 (lookup_symbol_in_language): Declare.
5105 (lookup_symbol): Update description.
5106 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5107 * ada-lang.c (restore_language): Remove.
5108 (lookup_symbol_in_language): Remove.
5110 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
5112 * breakpoint.c (bpstat_num): Add int *num parameter.
5113 * breakpoint.h (bpstat_num): Likewise.
5114 * infcmd.c (continue_command): Adjust to new bpstat_num
5116 (program_info): Likewise.
5118 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5120 * config/sh/tm-sh.h: Remove file.
5121 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5122 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5123 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5124 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5126 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5128 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5129 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5130 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5131 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5132 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5133 sequence if target_shortname is "remote".
5135 2007-03-27 Anton Blanchard <anton@samba.org>
5137 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5138 instead of wordsize when looking for the LR in a stack frame.
5140 2007-03-27 Andreas Schwab <schwab@suse.de>
5141 Daniel Jacobowitz <dan@codesourcery.com>
5143 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5144 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5145 argument. Update all callers.
5146 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5147 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5148 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5149 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5150 (dwarf2_frame_set_adjust_regnum): ...this.
5151 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5152 * rs6000-tdep.c: Include "dwarf2-frame.h".
5153 (rs6000_adjust_frame_regnum): Define.
5154 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5155 Register rs6000_adjust_frame_regnum.
5157 * Makefile.in (rs6000-tdep.o): Update dependencies.
5159 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
5161 * Makefile.in: Add support for a "pdf" target.
5163 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
5165 * amd64-tdep.c (amd64_init_frame_cache): New function.
5166 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
5168 2007-03-26 Nigel Stephens <nigel@mips.com>
5169 Maciej W. Rozycki <macro@mips.com>
5171 * ui-out.c (ui_out_field_core_addr): Truncate address to
5172 TARGET_ADDR_BIT size before printing.
5174 2007-03-22 Nigel Stephens <nigel@mips.com>
5175 Maciej W. Rozycki <macro@mips.com>
5177 * remote-mips.c (mips_xfer_memory): Update prototype.
5179 2007-03-22 Joel Brobecker <brobecker@adacore.com>
5181 * symfile.h: #include "symtab.h"
5183 2007-03-22 Denis Pilat <denis.pilat@st.com>
5185 * utils.c (pagination_on_command, pagination_off_command):
5186 Remove useless prototypes.
5188 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
5191 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
5192 instead of TYPE_NAME for object base class name.
5195 2007-03-19 Kevin Buettner <kevinb@redhat.com>
5197 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
5198 Specify frame type in calls to frame_func_unwind().
5200 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
5202 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
5203 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
5204 (refine_prologue_limit): Delete.
5205 (skip_prologue): Don't call it. Use extract_unsigned_integer.
5206 Assume lim_pc is set. Correct check for incomplete prologues.
5207 Do not skip clobbers of the frame pointer.
5208 * symtab.c (skip_prologue_using_sal): Fail if there is only one
5211 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5213 * frame.c (frame_pop): Check to see whether there's a frame to
5214 which we can pop first.
5216 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5218 * MAINTAINERS (Write After Approval): Add myself.
5220 2007-03-09 Markus Deuling <deuling@de.ibm.com>
5222 * infrun.c (breakpoints_failed): Remove unnecessary variable.
5223 (handle_inferior_event): Remove unnecessary braces.
5224 * breakpoint.c (bpstat_what): Remove wrong comment.
5226 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
5228 * spu-tdep.c (spu_in_function_epilogue_p): New function.
5229 (spu_gdbarch_init): Install it.
5231 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5233 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
5234 object types, not 0.
5236 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5238 * spu-tdep.c (spu_frame_align): New function.
5239 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
5241 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5243 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
5244 (spu_software_single_step): Likewise.
5245 (spu_read_pc, spu_write_pc): New functions.
5246 (spu_gdbarch_init): Install them.
5248 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5250 * cli/cli-dump.c (struct callback_data): load_offset needs to
5251 have signed long type.
5253 2007-03-07 Joel Brobecker <brobecker@adacore.com>
5255 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
5256 Revert the previous change that had some unexpected side-effects
5258 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
5259 function to get the address of the calling instruction.
5261 2007-03-07 Denis Pilat <denis.pilat@st.com>
5263 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
5264 get_selected_frame by deprecated_safe_get_selected_frame.
5266 2007-03-02 Mark Kettenis <kettenis@gnu.org>
5268 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
5269 "gdb_string.h". Don't include "nbsd-tdep.h".
5270 (SIZEOF_STRUCT_REG): Remove.
5271 (SHNBSD_SIZEOF_GREGS): New.
5272 (shnbsd_supply_gregset, shnbsd_collect_gregset)
5273 (shnbsd_regset_from_core_section): New functions.
5274 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
5275 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
5276 shnbsd_supply_gregset, shnbsd_collect_gregset.
5277 (shnbsd_gregset): New variable.
5278 (shnbsd_init_abi): Set regset_from_core_section.
5279 (GDB_OSABI_NETBSD_CORE): New define.
5280 (shnbsd_core_osabi_sniffer): New function.
5281 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
5282 * Makefile.in (shnbsd-tdep.o): Update dependencies.
5283 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
5285 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
5287 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5289 * gdbtypes.c (replace_type): Fix typo that caused us to not update
5290 length of the types referenced by the new type CV ring.
5292 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5294 * frame.c (frame_pop, frame_observer_target_changed): Call
5296 (flush_cached_frames): Rename to reinit_frame_cache and delete
5298 * frame.h (flush_cached_frames): Delete prototype and update comment.
5300 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
5301 reinit_frame_cache instead of flush_cached_frames. Do not call
5302 select_frame after reinit_frame_cache.
5303 * corelow.c (core_open): Likewise.
5304 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
5305 * infrun.c (prepare_to_proceed, context_switch)
5306 (handle_inferior_event): Likewise.
5307 * linux-fork.c (fork_load_infrun_state): Likewise.
5308 * ocd.c (ocd_start_remote): Likewise.
5309 * remote-e7000.c (e7000_start_remote): Likewise.
5310 * remote-mips.c (device): Likewise.
5311 * thread.c (switch_to_thread): Likewise.
5312 * tracepoint.c (finish_tfind_command): Likewise.
5313 * gdbarch.c: Regenerated.
5315 2007-02-28 Jerome Guitton <guitton@adacore.com>
5316 Joel Brobecker <brobecker@adacore.com>
5318 * gdbtypes.c (check_typedef): Do not replace stub type if
5319 the resolved type is not defined in the same objfile.
5321 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5323 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
5325 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5327 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
5328 symbol for Ada units when the symbol is defined using 't' rather
5329 than 'Tt' as symbol descriptor.
5331 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5333 * config/mips/tm-nbsd.h: Delete file.
5334 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5335 * config/sh/tm-nbsd.h: Delete file.
5336 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
5338 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5340 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
5341 unused WRONG_PARAM value since it was recently deleted.
5343 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
5345 * varobj.c (varobj_update): Free temporary vectors.
5347 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5349 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
5350 * config/powerpc/tm-linux.h: Delete file.
5351 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
5352 (PROCESS_LINENUMBER_HOOK): Do not undefine.
5353 (TEXT_SEGMENT_BASE): Do not redefine.
5354 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
5355 from config/rs6000/tm-rs6000.h.
5356 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5357 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
5358 (TEXT_SEGMENT_BASE): Remove.
5359 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
5360 (rs6000_in_solib_return_trampoline): Remove.
5361 (SKIP_TRAMPOLINE_CODE): Remove.
5362 (rs6000_skip_trampoline_code): Remove.
5363 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
5364 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5365 (FP0_REGNUM): Remove.
5366 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
5367 (rs6000_set_host_arch_hook): Remove.
5368 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
5369 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
5370 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
5371 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
5372 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
5373 * rs6000-nat.c: Include "rs6000-tdep.h".
5374 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
5375 (set_host_arch): Rename to ...
5376 (rs6000_create_inferior): ... this. Make public.
5377 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
5378 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
5379 (rs6000_create_inferior): Remove.
5380 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
5381 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
5382 set_gdbarch_in_solib_return_trampoline, and
5383 set_gdbarch_skip_trampoline_code.
5384 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
5385 from config/rs6000/tm-rs6000.h.
5387 2007-02-27 Joel Brobecker <brobecker@adacore.com>
5389 * buildsym.c (record_producer): Do nothing if no producer is provided.
5391 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
5393 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
5394 to check changelist is non-NULL. Call error if the frontend tries
5395 to update a non-root variable.
5397 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
5399 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5401 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
5402 (dwarf2_frame_sniffer): Update.
5403 (dwarf2_signal_frame_this_id): New function.
5404 (dwarf2_signal_frame_unwind): Use it.
5405 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
5406 * frame.c (frame_func_unwind): Add this_type argument.
5407 (get_frame_func): Update.
5408 (frame_unwind_address_in_block): Add this_type argument and check it.
5410 (get_frame_address_in_block): Update.
5411 * frame.h (enum frame_type): Move higher in the file.
5412 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
5415 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
5416 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
5417 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
5418 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
5419 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
5420 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
5421 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
5422 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
5423 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
5424 frame_func_unwind and frame_unwind_address_in_block to specify
5425 the frame type. Use frame_unwind_address_in_block instead of
5426 frame_pc_unwind in sniffers.
5428 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5430 * frame.c (deprecated_selected_frame): Rename to...
5431 (selected_frame): ...this. Make static.
5432 (get_selected_frame, select_frame): Update.
5433 * frame.h (deprected_select_frame): Delete.
5434 (deprecated_safe_get_selected_frame): Update comments.
5436 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
5437 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
5438 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
5439 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
5440 tui/tui.c: Replace references to deprecated_selected_frame.
5442 2007-02-27 Fred Fish <fnf@specifix.com>
5444 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
5445 directly decrement the stack pointer, accumulate their operand into
5446 the stack offset, and mark the function as not being frameless.
5448 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5450 * arch-utils.c (selected_byte_order): New.
5451 * arch-utils.h (selected_byte_order): New prototype.
5452 * remote-sim.c (gdbsim_open): Use selected_byte_order.
5454 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5456 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
5457 (default_symfile_offsets): Check VMA here. Update section VMAs.
5459 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5461 * remote.c (init_remote_state): Add special handling for placeholder
5464 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5466 * Makefile.in (XMLFILES): Include $(TDEP_XML).
5467 (filenames_h): New variable.
5468 (clean): Clean up xml-builtin.c and stamp-xml.
5469 (arm-linux-nat.o): Update.
5470 * config/arm/linux.mh (TDEP_XML): Define.
5471 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
5472 (arm_linux_has_wmmx_registers): New.
5473 (GET_THREAD_ID): Fix typo.
5474 (IWMMXT_REGS_SIZE): Define.
5475 (fetch_wmmx_regs, store_wmmx_regs): New.
5476 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
5477 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
5478 (super_xfer_partial, arm_linux_xfer_partial): New.
5479 (_initialize_arm_linux_nat): Use them.
5480 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
5481 (xml_builtin_xfer_partial): New function.
5482 * xml-support.h (xml_builtin_xfer_partial): New prototype.
5483 * NEWS: Update mention of iWMMXt support.
5485 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5487 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
5488 if there are no FPA registers.
5489 (arm_dwarf_reg_to_regnum): New function.
5490 (arm_register_type, arm_register_name): Return minimal values for
5491 unsupported registers.
5492 (arm_register_sim_regno): Handle iWMMXt registers.
5493 (arm_gdbarch_init): Record missing FPA registers if indicated by
5494 a target description. Recognize iWMMXt registers. Only register
5495 "info float" for FPA. Use ARM_NUM_REGS. Register
5496 arm_dwarf_reg_to_regnum.
5497 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
5499 (struct gdbarch_tdep): Add have_fpa_registers.
5500 * features/xscale-iwmmxt.xml: Update capitalization.
5501 * regformats/arm-with-iwmmxt.dat: Regenerated.
5503 2007-02-24 Kevin Buettner <kevinb@redhat.com>
5505 * NEWS (New targets): Add entry for the Toshiba Media Processor.
5507 2007-02-23 Kevin Buettner <kevinb@redhat.com>
5509 * MAINTAINERS (mep): New target.
5511 2007-02-23 Kevin Buettner <kevinb@redhat.com>
5513 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
5515 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
5516 (mep-tdep.o): New rule.
5517 * configure.tgt (mep-*-*): New target.
5518 * mep-tdep.c: New file.
5519 * config/mep/mep.mt: New file.
5521 2007-02-22 Markus Deuling <deuling@de.ibm.com>
5523 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
5524 BREAKPOINT_HIT and STOP_UNKNOWN.
5526 2007-02-22 Markus Deuling <deuling@de.ibm.com>
5528 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
5530 2007-02-20 Joel Brobecker <brobecker@adacore.com>
5532 * gdb_expat.h (XMLCALL): Define if not already defined.
5534 2007-02-20 Andreas Schwab <schwab@suse.de>
5536 * Makefile.in (symfile.o): Update dependencies.
5538 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5540 * MAINTAINERS: Disable -Werror for cris simulator. Build
5541 sparc64-solaris2.10 instead of the broken sparc-elf.
5542 * solib-frv.c: Include "solib.h".
5543 * Makefile.in (solib-frv.o): Update.
5544 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
5545 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
5546 (xtensa_frame_this_id, xtensa_frame_prev_register)
5547 (xtensa_push_dummy_call): Use %p.
5549 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5551 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5552 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
5553 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5554 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
5555 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
5556 (sparc-linux-tdep.o): Update.
5558 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
5560 * xtensa-tdep.h (xtensa_reg_mask_t): New.
5561 (xtensa_mask_t): Change mask field to be a separate array.
5562 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
5563 (xtensa_pseudo_register_write, xtensa_unwind_pc)
5564 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
5565 (xtensa_breakpoint_from_pc): Remove implicit type casting.
5566 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
5567 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
5568 (mask14, mask15): Rename to
5569 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
5570 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
5571 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
5572 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
5573 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
5574 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
5575 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
5576 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
5577 (xtensa_submask14, xtensa_submask15): New.
5578 (rmap): Follow strict aliasing rules doing static initialization.
5580 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
5582 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
5583 handling from here...
5584 (tdesc_register_type): ...to here.
5585 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
5586 * features/arm-core.xml: Use code_ptr and data_ptr.
5588 2007-02-13 Denis Pilat <denis.pilat@st.com>
5590 * varobj.h (enum varobj_update_error): New enum.
5591 * varobj.c (struct varobj_root): Add is_valid member.
5592 (varobj_get_type): Check for invalid varobj.
5593 (varobj_get_attributes): Likewise.
5594 (variable_editable):Likewise.
5595 (varobj_update): Likewise. Use varobj_update_error.
5596 (new_root_variable): Set root varobj as valid by default.
5597 (varobj_invalidate): New function.
5598 * symfile.c (clear_symtab_users): Use varobj_invalidate.
5599 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
5600 Use varobj_update_error.
5602 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
5605 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
5606 Pascal language marker.
5607 * dwarf2read.c (set_cu_language): Likewise.
5609 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
5611 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
5612 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
5613 instead of target_terminal_init since inferior_ptid isn't set yet.
5615 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
5617 * MAINTAINERS (Write After Approval): Add myself.
5619 2007-02-09 Fred Fish <fnf@specifix.com>
5621 Based on work by Apple Computer, Inc.
5622 * event-top.c (async_request_quit): Call quit() whenever either
5623 quit_flag is set or immediate_quit is set.
5625 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5627 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
5628 type to a pointer to const struct block.
5629 (ada_lookup_symbol_list): Don't cast away constness when calling
5630 remove_out_of_scope_renamings.
5632 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5634 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
5635 address of 'filename'; it is always non null.
5637 2007-02-09 Joel Brobecker <brobecker@adacore.com>
5639 * exec.c (add_to_section_table): Do not discard empty sections.
5641 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5643 * features/Makefile, features/arm-with-iwmmxt.xml,
5644 features/gdbserver-regs.xsl, features/number-regs.xsl,
5645 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
5646 * regformats/arm-with-iwmmxt.dat: Generate.
5647 * NEWS: Mention iWMMXt.
5649 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5651 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
5652 (xml-tdesc.o): Update.
5653 * xml-support.c: Add a comment.
5654 (gdb_xml_enums_boolean): New variable.
5655 (gdb_xml_parse_attr_enum): Use strcasecmp.
5656 * xml-support.h (gdb_xml_enums_boolean): Declare.
5657 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
5658 next_regnum, and current_union.
5659 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
5660 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
5661 (field_attributes, union_children, reg_attributes, union_attributes)
5662 (vector_attributes, feature_attributes, feature_children): New.
5663 (target_children): Make static. Add <feature>.
5664 (tdesc_elements): Make static.
5665 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
5666 (struct tdesc_feature, tdesc_feature_p): New types.
5667 (struct target_desc): Add features member.
5668 (struct tdesc_arch_data, tdesc_data): New.
5669 (target_find_description): Clarify error message. Warn about
5670 ignored register descriptions.
5671 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5672 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
5673 (tdesc_data_cleanup, tdesc_numbered_register)
5674 (tdesc_numbered_register_choices, tdesc_find_register)
5675 (tdesc_register_name, tdesc_register_type)
5676 (tdesc_remote_register_number, tdesc_register_reggroup_p)
5677 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
5678 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
5679 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
5680 (tdesc_create_feature, tdesc_record_type): New.
5681 (free_target_description): Free features.
5682 (_initialize_target_descriptions): Initialize tdesc_data.
5683 * arch-utils.c (default_remote_register_number): New.
5684 * arch-utils.h (default_remote_register_number): New prototype.
5685 * target-descriptions.h (set_tdesc_pseudo_register_name)
5686 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
5687 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
5688 (tdesc_numbered_register, tdesc_numbered_register_choices)
5689 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5690 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
5691 (tdesc_create_reg): Declare.
5692 * gdbarch.sh (remote_register_number): New entry.
5693 * gdbarch.c, gdbarch.h: Regenerate.
5694 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
5695 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
5697 * arm-tdep.c (arm_register_aliases): New.
5698 (arm_register_name_strings): Rename to...
5699 (arm_register_names): ...this. Make const. Delete the old version.
5700 (current_option, arm_register_byte): Delete.
5701 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
5702 (value_of_arm_user_reg): New.
5703 (arm_gdbarch_init): Verify any described registers. Call
5704 tdesc_use_registers. Don't use arm_register_byte. Create aliases
5705 for standard register names.
5706 (_initialize_arm_tdep): Do not adjust arm_register_names.
5707 * user-regs.c (struct user_reg): Add baton member.
5708 (append_user_reg, user_reg_add_builtin, user_regs_init)
5709 (user_reg_add, value_of_user_reg): Use a baton for user
5711 * std-regs.c: Update.
5712 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
5713 (user_reg_add): Add baton argument.
5714 * NEWS: Mention target description register support.
5715 * features/arm-core.xml, features/arm-fpa.xml: New.
5716 * eval.c (evaluate_subexp_standard): Allow ptype $register
5717 when the program is not running.
5719 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
5721 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
5723 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5725 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
5726 info->disassembler_options to "any".
5728 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5730 * varobj.c (install_new_value): Only call value_get_print_value
5733 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5735 Reported by timeless@gmail.com:
5736 * gdb/target.c (target_flash_erase): Do not return void value.
5737 (target_flash_done): Likewise.
5738 * gdb/cli/cli-cmds.c (source_command): Likewise.
5740 2007-02-08 Fred Fish <fnf@specifix.com>
5742 Based on work by Apple Computer, Inc.
5743 * event-top.c (handle_sigint): Set quit_flag.
5744 (async_request_quit): Don't set quit_flag. Avoid calling quit()
5745 if quit_flag has already been reset.
5747 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5749 * ser-mingw.c (pipe_windows_close): Move variable initialization back
5752 2007-02-08 Fred Fish <fnf@specifix.com>
5754 * defs.h (request_quit): Remove declaration.
5755 * utils.c (request_quit): Remove definition.
5757 2007-02-08 Joel Brobecker <brobecker@gnat.com>
5758 Jan Kratochvil <jan.kratochvil@redhat.com>
5759 Daniel Jacobowitz <dan@codesourcery.com>
5761 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
5762 (skip_prologue): Allow bl->blrl used by PIC code.
5764 2007-02-08 Mark Kettenis <kettenis@gnu.org>
5765 Daniel Jacobowitz <dan@codesourcery.com>
5767 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
5768 initialize tmp_obstack.
5769 * p-valprint.c (pascal_object_print_value_fields)
5770 (pascal_object_print_value): Likewise.
5772 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5774 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
5776 2007-02-08 Mark Kettenis <kettenis@gnu.org>
5778 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5779 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
5781 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5783 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
5785 (tdesc_parse_xml): Cache expanded descriptions.
5787 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5789 * Makefile.in (XMLFILES): New.
5790 (COMMON_OBS): Add xml-builtin.o.
5791 (xml-builtin.c, stamp-xml): New rules.
5792 (xml-tdesc.o): Update.
5793 * features/feature_to_c.sh: New file.
5794 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
5795 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
5796 (gdb_xml_start_element): Initialize scope after possibly reallocating
5797 scopes. Move cleanup later. Handle the XInclude description
5799 (gdb_xml_end_element): Only parse the body if there is a current element.
5800 Call XML_DefaultCurrent if there is no element.
5801 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
5802 (struct xinclude_parsing_data, xinclude_start_include)
5803 (xinclude_end_include, xml_xinclude_default)
5804 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
5805 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
5806 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
5807 * xml-support.h (xml_fetch_another, xml_process_xincludes)
5808 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
5809 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
5810 XInclude directives. Use the compiled in DTD.
5811 (fetch_xml_from_file): Add baton argument. Treat it as a containing
5812 directory name. Do not warn here.
5813 (file_read_description_xml): Update call. Warn here instead. Pass
5815 (fetch_available_features_from_target): New.
5816 (target_read_description_xml): Use it.
5817 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
5819 * features/xinclude.dtd: New file.
5821 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5823 * linux-thread-db.c (check_for_thread_db): Return early if we have
5824 no libthread_db support.
5826 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5828 * mi/mi-parse.h: Include <sys/time.h>.
5830 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
5832 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
5833 instead of print_variable_value to print values.
5835 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5837 * mi/mi-main.c: Numerous formatting changes.
5838 (mi_cmd_data_write_register_values): Replace clause inadvertantly
5839 removed in my previous change.
5841 2007-02-03 Eli Zaretskii <eliz@gnu.org>
5843 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
5844 Use 1000000L instead of 1000000.
5846 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5848 Based on work by Apple Computer, Inc.
5850 * configure.ac: Test for sys/resource.h and getrusage.
5851 * configure, config.in: Regenerate.
5853 * mi/mi-main.c: Include <sys/resource.h> if present.
5854 (rusage): Declare if HAVE_GETRUSAGE.
5855 (current_command_ts, do_timings): New static variables.
5856 (timestamp, print_diff_now, print_diff, timeval_diff):
5857 New static timing functions.
5858 (mi_cmd_enable_timings): New function for new MI command.
5859 (captured_mi_execute_command, mi_execute_async_cli_command):
5860 Call timing functions.
5862 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
5865 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
5867 * mi/mi-parse.h: (mi_timestamp): New structure.
5868 (mi_parse): Add mi_timestamp* member.
5870 2007-02-02 Denis Pilat <denis.pilat@st.com>
5872 * thread.c (make_cleanup_restore_current_thread): New function.
5873 (info_threads_command): Use of make_cleanup_restore_current_thread
5874 to restore the current thread and the selected frame.
5875 (restore_selected_frame): New function.
5876 (struct current_thread_cleanup): Add frame_id field.
5877 (do_restore_current_thread_cleanup): Add restoring of the selected
5879 (make_cleanup_restore_current_thread): Likewise.
5880 (thread_apply_all_command): backup the selected frame while
5881 entering the function and restore it at exit.
5882 (thread_apply_command): Likewise.
5884 2007-02-02 Denis Pilat <denis.pilat@st.com>
5886 * MAINTAINERS (Write After Approval): Add myself to the list.
5888 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5890 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
5891 (m32r_store_register): Ditto.
5893 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
5895 * ser-mingw.c (pipe_windows_open)
5896 (pipe_windows_read, pipe_windows_write): Declare
5897 variables at the top of the function.
5899 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5901 * doublest.c (floatformat_from_length): Use the right element from
5902 gdbarch floatformats.
5903 (floatformat_from_type, extract_typed_floating)
5904 (store_typed_floating): Likewise.
5905 * doublest.h: Remove declarations for undefined floatformat arrays.
5906 * gdbarch.sh (float_format, double_format, long_double_format): Change
5908 (pformat): Update for pairs.
5909 * gdbarch.c, gdbarch.h: Regenerated.
5910 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
5911 (floatformats_ieee_double_littlebyte_bigword)
5912 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
5913 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
5914 (floatformats_vax_d): New variables.
5915 (builtin_type_ieee_single, builtin_type_ieee_double)
5916 (builtin_type_arm_ext, builtin_type_ia64_spill)
5917 (builtin_type_ia64_quad): Replace arrays with individual types.
5918 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
5919 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
5920 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
5921 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
5922 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
5923 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
5924 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
5925 unused and endian-specific types.
5926 (recursive_dump_type): Update for floatformat pairs.
5927 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
5928 (build_gdbtypes): Use build_flt.
5929 (_initialize_gdbtypes): Update set of initialized types.
5930 * gdbtypes.h: Update declarations to match gdbtypes.c.
5931 (struct main_type): Store a pointer to two floatformats.
5932 * arch-utils.c (default_float_format, default_double_format): Delete.
5933 * arch-utils.h (default_float_format, default_double_format): Delete.
5935 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5936 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
5937 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
5938 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
5939 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
5941 2007-01-29 Joel Brobecker <brobecker@adacore.com>
5943 * target.c (maintenance_print_target_stack): New function.
5944 (initialize_targets): Add new "maintenance print target-stack"
5947 2007-01-28 Mark Kettenis <kettenis@gnu.org>
5949 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
5951 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
5953 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
5954 (struct dwarf2_loclist_baton): Likewise.
5956 2007-01-27 Eli Zaretskii <eliz@gnu.org>
5958 * cli/cli-script.c: Include breakpoint.h.
5959 (build_command_line): Require arguments only for if and while
5961 (get_command_line, execute_user_command, execute_control_command):
5962 Fix wording of warning messages.
5963 (print_command_lines): Print breakpoint commands.
5964 (execute_control_command): Call commands_from_control_command to
5965 handle the `commands' command inside a body of a flow-control
5967 (read_next_line): Recognize the `commands' command and build a
5968 command line structure for it.
5969 (recurse_read_control_structure, read_command_lines): Handle
5970 `commands' similarly to `if' and `while'.
5972 * breakpoint.c (get_number_trailer): Document the special meaning
5973 of NULL as the first argument PP.
5974 (commands_from_control_command): New function.
5976 * breakpoint.h (commands_from_control_command): Add prototype.
5978 * defs.h (commands_control): New enumerated value for enum
5979 command_control_type.
5981 2007-01-26 Joel Brobecker <brobecker@adacore.com>
5983 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
5984 (ada_exception_sal): Update accordingly.
5986 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5988 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
5989 * NEWS: Describe CHAR array vs. string identifcation rules.
5991 2007-01-25 Paul Brook <paul@codesourcery.com>
5993 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
5995 2007-01-24 Jim Blandy <jimb@codesourcery.com>
5997 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
5998 expression is empty, bother to return the 'optimized out' value we
5999 construct. (Thanks to Carl Burch.)
6001 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6003 * varobj.c (c_value_of_root, c_value_of_child)
6004 (cplus_describe_child): Don't call release_value.
6006 2007-01-24 Thiemo Seufer <ths@mips.com>
6008 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6011 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6013 Refactor getting children name, value and type access
6015 * varobj.c (get_type_deref): Remove.
6016 (adjust_value_for_child_access): New.
6017 (c_number_of_children): Use the above.
6018 (c_describe_child): Likewise.
6019 (enum accessibility): New.
6020 (match_accessibility): New function.
6021 (cplus_describe_child): New function.
6022 (cplus_name_of_child, cplus_value_of_child)
6023 (cplus_type_of_child): Reimplement in terms
6024 of cplus_describe_child.
6025 (cplus_number_of_children): Use
6026 adjust_value_for_child_access.
6028 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6030 Fix computation of the 'editable' attribute and
6031 value changeability for for references.
6032 * varobj.c (get_value_type): New function.
6033 (c_variable_editable): Use get_value_type.
6034 (varobj_value_is_changeable): Likewise.
6036 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6038 * source.c (find_and_open_source): Try rewriting the source
6039 path inside filename if dirname is NULL.
6041 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6043 * dwarf2read.c (add_partial_symbol): Create an extra partial
6044 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6045 (new_symbol): Likewise for symbols.
6047 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
6049 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6051 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
6053 * value.c (value_primitive_field): Copy the full 'location'
6054 contents, instead of assuming that copying ADDRESS will
6055 bring over everything in the union. Remove obsolete comment.
6057 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
6059 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6060 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6061 (m32c_m16c_pointer_to_address): Separate code from declarations.
6063 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
6065 * target.c (update_current_target): Correct typo.
6067 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
6069 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6072 2007-01-11 Andrew Cagney <cagney@redhat.com>
6073 Daniel Jacobowitz <dan@codesourcery.com>
6074 Jan Kratochvil <jan.kratochvil@redhat.com>
6076 * dwarf2-frame.c (execute_cfa_program): New support of
6077 `DW_CFA_GNU_negative_offset_extended'.
6079 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6081 * NEWS: Mention flash support for "load" and new remote packets.
6083 2007-01-21 Markus Deuling <deuling@de.ibm.com>
6085 * breakpoint.c (delete_command): Skip redundant loop iterations.
6087 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6089 * gdbarch.sh (register_type): Update comment.
6090 * gdbarch.h: Regenerated.
6091 * arch-utils.c (generic_register_size): Call register_type.
6092 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6093 * m32c-tdep.c (check_for_saved): Likewise.
6094 * mips-tdep.c (mips_print_register, print_gp_register_row)
6095 (mips_print_registers_info): Likewise.
6096 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6098 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6099 (sh64_do_register, sh64_print_register)
6100 (sh64_media_print_registers_info): Likewise.
6101 * tui/tui-regs.c (tui_register_format): Likewise.
6103 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6105 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6107 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6108 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6109 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6110 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6111 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6112 (make_symbol_completion_list): Likewise.
6114 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6115 Daniel Jacobowitz <dan@codesourcery.com>
6117 * buildsym.c (end_symtab): Use preallocated symtab if available.
6118 Fill in SYMBOL_SYMTAB.
6119 * buildsym.h (struct subfile): Add symtab member.
6120 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6121 (struct file_entry): Add symtab.
6122 (free_cu_line_header): New function.
6123 (read_file_scope): Use it. Save line_header in the cu. Process
6125 (add_file_name): Initialize new symtab member.
6126 (dwarf_decode_lines): Create symtabs for included files.
6127 (new_symbol): Set SYMBOL_SYMTAB.
6128 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6129 (search_symbols): Likewise.
6130 * symtab.h (struct symbol): Add symtab member.
6131 (SYMBOL_SYMTAB): Define.
6133 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6135 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6137 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6139 * arch-utils.c (show_endian): Correct reversed condition.
6141 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6143 * MAINTAINERS (Write After Approval): Add myself.
6145 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
6146 Vladimir Prus <vladimir@codesourcery.com>
6148 Fix 'selected frame' varobjs.
6149 * varobj.c (struct varobj): Remove the error field.
6150 (varobj_set_value): Don't check var->error.
6151 (install_new_value): Don't set var->error.
6152 (varobj_update): Always pass the new value
6153 of the root via install_new_value.
6154 (create_child): Don't set error field.
6155 (new_variable): Likewise.
6156 (c_value_of_root): Always reevaluate the value
6157 of selected frame varobjs in the selected frame.
6158 Don't call reinit_frame_cache.
6160 2007-01-15 Joel Brobecker <brobecker@adacore.com>
6162 * source.c (_initialize_source): Improve the help text of
6163 the substitute-path commands.
6165 2007-01-14 Mark Kettenis <kettenis@gnu.org>
6167 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
6168 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
6169 (frv_skip_prologue): Remove prototypes.
6170 (frv_adjust_breakpoint_address): Renamed from
6171 frv_gdbarch_adjust_breakpoint_address.
6172 (frv_gdbarch_init): Adjust.
6174 2007-01-13 Mark Kettenis <kettenis@gnu.org>
6176 * gdbarch.sh (deprecated_extract_return_value)
6177 (deprecated_store_return_value): Remove.
6178 (extract_return_value, store_return_value): Remove default values.
6179 * gdbarch.c, gdbarch.h: Regenerate.
6180 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
6181 (legacy_store_return_value): Remove.
6182 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
6185 * mi/mi-main.c: Remove obsolete comment.
6187 * regcache.c, regcache.h (deprecated_register_bytes)
6188 (deprecated_read_register_bytes)
6189 (deprecated_write_register_bytes): Remove.
6191 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
6192 Don't forget to move destination pointer.
6194 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6196 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
6198 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
6200 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
6201 past entry function with recent newlib.
6203 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
6205 * gdb.texinfo (GDB/MI Variable Objects): Improve the
6206 introduction. Specify -var-update more exactly.
6208 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
6210 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
6212 2007-01-10 Jim Blandy <jimb@codesourcery.com>
6214 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
6215 the Global Maintainers' invitation to be a global maintainer.
6217 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
6219 * infrun.c (singlestep_pc): New variable.
6220 (resume): Set singlestep_pc.
6221 (context_switch): Add a debugging message. Flush the frame cache.
6222 (handle_inferior_event): Add debugging messages. Handle thread
6223 hops when a software single step has completed. Let context_switch
6224 handle flushing the frame cache.
6226 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6228 * NEWS: Mention target descriptions, "set tdesc filename",
6229 "unset tdesc filename", "show tdesc filename", and
6230 qXfer:features:read.
6231 * arch-utils.c (choose_architecture_for_target): New function.
6232 (gdbarch_info_fill): Call it.
6233 * target-descriptions.c (struct property): Make members non-const.
6234 (struct target_desc): Add arch member.
6235 (target_description_filename): New variable.
6236 (target_find_description): Try via XML first.
6237 (tdesc_architecture): New.
6238 (free_target_description, make_cleanup_free_target_description): New.
6239 (set_tdesc_property): Call xstrdup.
6240 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
6241 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
6242 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
6243 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
6244 * target-descriptions.h (tdesc_architecture)
6245 (make_cleanup_free_target_description, set_tdesc_architecture): New
6247 * Makefile.in (SFILES): Add xml-tdesc.c.
6248 (COMMON_OBS): Add xml-tdesc.o.
6249 (target-descriptions.o): Update.
6250 (xml-tdesc.o): New rule.
6251 * xml-tdesc.c, xml-tdesc.h: New files.
6252 * remote.c (PACKET_qXfer_features): New enum.
6253 (remote_protocol_features): Add qXfer:features:read.
6254 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
6255 (_initialize_remote): Register qXfer:features:read.
6256 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
6257 * features/gdb-target.dtd: New file.
6259 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6261 * copyright.sh: Clarify error.
6263 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6265 * symtab.c (matching_bfd_sections): Fix VMA matching for
6268 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6270 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
6273 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6275 Updated copyright notices for most files.
6277 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6279 * copyright.sh (prunes): Add step-line.inp and step-line.c.
6281 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6283 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
6285 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
6287 * configure, config.in: Regenerate.
6288 * defs.h (debug_file_directory): Declare.
6289 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
6290 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
6291 relocate it if DEBUGDIR_RELOCATABLE.
6292 * symfile.c (debug_file_directory): Make non-static.
6293 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
6294 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
6295 (_initialize_symfile): Don't initialize debug_file_directory here.
6297 2007-01-09 Jim Blandy <jimb@codesourcery.com>
6299 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
6302 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6304 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
6305 frame_unwind_register to recurse.
6306 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
6307 (alpha_heuristic_frame_prev_register): Likewise.
6308 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
6309 * m32c-tdep.c (m32c_prev_register): Likewise.
6310 * frame.c (frame_register_unwind_location): Remove FIXME.
6312 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6313 Eli Zaretskii <eliz@gnu.org>
6315 * copyright.sh: New file.
6317 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6319 * configure.ac: Check for XML_StopParser.
6320 * xml-support.c (gdb_xml_body_text): Check for an error.
6321 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
6322 (gdb_xml_end_element_wrapper): Likewise.
6323 * config.in, configure: Regenerated.
6325 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6327 * varobj.c (install_new_value): Always update print_value.
6328 (value_get_print_value): Immediately return NULL for missing
6331 2007-01-08 Jim Blandy <jimb@codesourcery.com>
6333 * configure.ac: Tighten pattern for extracting value of
6334 DEPRECATED_TM_FILE from the target makefile fragment.
6335 * configure: Regenerated.
6337 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6339 * linux-nat.c (struct simple_pid_list): Add status.
6340 (add_to_pid_list): Record the PID's status.
6341 (linux_record_stopped_pid): Likewise. Make static.
6342 (pull_pid_from_list): Return the saved status.
6343 (linux_nat_handle_extended): Deleted.
6344 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
6345 Make static. Handle non-SIGSTOP for a new thread's first signal.
6346 (flush_callback): Handle unexpected pending signals.
6347 (linux_nat_wait): Update calls to changed functions.
6348 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
6349 Remove prototypes for newly static functions.
6351 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6353 * gdbarch.sh (value_from_register): New gdbarch function.
6354 * gdbarch.c, gdbarch.h: Regenerate.
6355 * findvar.c (default_value_from_register): New function.
6356 (value_from_register): Use gdbarch_value_from_register.
6357 * value.h (default_value_from_register): Declare.
6358 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
6359 spu_value_to_register): Remove.
6360 (spu_value_from_register): New function.
6361 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6362 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6363 Call set_gdbarch_value_from_register.
6364 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
6365 s390_value_to_register): Remove.
6366 (s390_value_from_register): New function.
6367 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6368 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6369 Call set_gdbarch_value_from_register.
6371 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6373 * NEWS: Add "set sysroot" and "show sysroot".
6374 * solib.c (solib_absolute_prefix): Delete. Replace
6375 all uses with gdb_sysroot.
6376 (_initialize_solib): Add "set sysroot" and "show sysroot".
6377 Make "solib-absolute-prefix" an alias to it.
6379 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6381 * frame.c (get_frame_register_bytes): New function.
6382 (put_frame_register_bytes): Likewise.
6383 * frame.h (get_frame_register_bytes): Declare.
6384 (put_frame_register_bytes): Likewise.
6385 * findvar.c (value_from_register): Always construct lval_register
6386 values. Use get_frame_register_bytes.
6387 * valops.c (value_assign): Use get_frame_register_bytes and
6388 put_frame_register_bytes.
6390 2007-01-08 Jim Blandy <jimb@codesourcery.com>
6392 * MAINTAINERS: Update Stan Shebs' email address.
6394 2007-01-07 Joel Brobecker <brobecker@adacore.com>
6396 * ada-lang.c (is_known_support_routine): Improve the implementation.
6398 2007-01-06 Joel Brobecker <brobecker@adacore.com>
6400 * ada-lang.c: Add include of source.h.
6401 (is_known_support_routine): Improve the check verifying that the file
6402 associated to this frame exists.
6403 * Makefile.in (ada-lang.o): Add dependency on source.h.
6405 2007-01-07 Jim Blandy <jimb@codesourcery.com>
6407 * ax-general.c (ax_const_l): Select proper opcode for the given
6410 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6412 * varobj.c (c_value_of_root): Don't select frame if variable
6413 object is out of scope.
6415 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
6417 * varobj.c (struct varobj): New member print_value.
6418 (install_new_value): Compare last printed value with current one
6419 instead of contents.
6420 (new_variable): Initialize var->print_value to NULL.
6421 (free_variable): Free var->print_value.
6422 (value_get_print_value): New function derived from
6423 c_value_of_variable.
6424 (c_value_of_variable): Use value_get_print_value.
6426 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6428 * i386-tdep.c (i386_analyze_stack_align): Add comment.
6430 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6432 * NEWS: Add entries for new catch commands.
6434 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6436 * dwarf2read.c (partial_die_info): Add field has_byte_size.
6437 (add_partial_symbol): Correct identification of external references.
6438 (process_structure_scope): Likewise.
6439 (read_partial_die): Handle DW_AT_byte_size attribute.
6441 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
6443 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
6445 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
6447 * varobj.c (get_type_deref): Fix variable objects for references to
6450 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6452 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
6455 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6457 * memory-map.c (struct_memory_map_parsing_data): Remove most
6458 members. Make property_name an array.
6459 (free_memory_map_parsing_data, memory_map_start_element)
6460 (memory_map_end_element, memory_map_character_data): Delete.
6461 (memory_map_start_memory, memory_map_end_memory)
6462 (memory_map_start_property, memory_map_end_property): New functions.
6463 (property_attributes, memory_children, memory_type_enum)
6464 (memory_attributes, memory_map_children, memory_map_elements): New.
6465 (parse_memory_map): Rewrite.
6466 * xml-support.c (debug_xml): New.
6467 (xml_get_required_attribute, xml_get_integer_attribute)
6468 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
6470 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
6471 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
6472 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
6473 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
6474 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
6475 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
6476 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
6478 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
6479 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
6480 (enum gdb_xml_element_flag, struct gdb_xml_element)
6481 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
6482 (struct gdb_xml_enum): New.
6483 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
6484 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
6485 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
6486 (xml_get_required_attribute, xml_get_integer_attribute)
6487 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
6488 * Makefile.in (xml_support_h, xml-support.o): Update.
6490 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6492 * Makefile.in (eval.o): Update dependencies.
6493 * eval.c: Include "ui-out.h" and "exceptions.h".
6494 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
6495 Use value_zero if an error occurs when avoiding side effects.
6496 * varobj.c (c_value_of_root): Initialize new_val.
6498 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6500 * varobj.c (varobj_list_children): Stop if the number of children is
6502 (c_number_of_children):
6504 2007-01-04 Mark Kettenis <kettenis@gnu.org>
6506 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
6507 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
6508 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
6509 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
6510 sizeof, instead of hardcoded constants.
6512 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6514 * CONTRIBUTE: Use sourceware.org.
6516 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6518 * buildsym.c (start_subfile): Handle producer.
6519 (record_producer): New function.
6520 * buildsym.h (struct subfile): Include producer.
6521 (record_producer): New prototype.
6522 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
6523 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
6524 armcc_cfa_offsets_reversed.
6525 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
6526 (dwarf2_frame_find_quirks): New function.
6527 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
6528 (decode_frame_entry_1): Record the CIE version. Record the
6529 augmentation. Skip armcc augmentations.
6530 * dwarf2read.c (read_file_scope): Save the producer.
6531 * symtab.h (struct symtab): Rename unused version member to
6534 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6536 * configure.ac (build_warnings): Use -Wall and
6537 -Wdeclaration-after-statement.
6538 * configure: Regenerated.
6540 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6542 Simplify access to variours properties of child
6543 variable objects in C.
6544 * varobj.c (value_struct_element_index): New function.
6545 (c_describe_child): New function.
6546 (c_name_of_child, c_value_of_child)
6547 (c_type_of_child): Rewrite to use c_describe_child.
6549 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6552 * varobj.c: Include "vec.h".
6553 (varobj_p): New typedef, declare vector of those.
6554 (struct varobj): Use vector for the 'children' member.
6555 (child_exists): Remove.
6556 (save_child_in_parent): Remove.
6557 (remove_child_from_parent): Remove.
6558 (struct varobj_child): Remove.
6559 (struct vstack): Remove.
6560 (vpush, vpop): Remove.
6561 (varobj_list_children): Adjust to work work vector.
6562 (varobj_update): Likewise. Use vectors for
6563 working stack and result.
6564 (delete_variable_1): Likewise.
6565 * Makefile.in (varobj.o): Update dependencies.
6567 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6569 Port from Apple's version.
6571 * varobj.c (type_changeable): Rename to...
6572 (varobj_value_is_changeable_p): ...this. Adjust all callers.
6573 (is_root_p): New function. Use it everywhere.
6575 2007-01-04 Jim Blandy <jimb@codesourcery.com>
6577 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
6580 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6582 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
6584 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6586 * hpread.c (hpread_type_lookup): Fix compilation failure.
6588 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
6590 * NEWS: New port to S+core.
6591 * MAINTAINERS (Write After Approval, Responsible Maintainers):
6594 * Makefile.in: Add dependencies for S+core files.
6595 * configure.tgt (score*, score-*-*): Add S+core target.
6596 * config/score/embed.mt: New file.
6597 * score-tdep.c: New file.
6598 * score-tdep.h: New file.
6600 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6602 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
6603 the appropriate type rather than a bogus void type.
6605 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6607 * ada-lang.h (ada_find_printable_frame): Remove.
6608 (ada_exception_catchpoint_p, ada_decode_exception_location)
6609 (ada_decode_assert_location): Add declaration.
6610 * ada-lang.c: Add include of annotate.h and valprint.h.
6611 (exception_catchpoint_kind): New enum.
6612 (function_name_from_pc, is_known_support_routine)
6613 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
6614 (ada_exception_name_addr_1, ada_exception_name_addr)
6615 (print_it_exception, print_one_exception, print_mention_exception)
6616 (print_it_catch_exception, print_one_catch_exception)
6617 (print_mention_catch_exception, catch_exception_breakpoint_ops)
6618 (print_it_catch_exception_unhandled)
6619 (print_one_catch_exception_unhandled)
6620 (print_mention_catch_exception_unhandled, print_it_catch_assert)
6621 (print_one_catch_assert, print_mention_catch_assert)
6622 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
6623 (ada_get_next_arg, catch_ada_exception_command_split)
6624 (ada_exception_sym_name, ada_exception_sym_name)
6625 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
6626 (ada_parse_catchpoint_condition, ada_exception_sal)
6627 (ada_decode_exception_location)
6628 (ada_decode_assert_location): New function.
6629 (catch_exception_unhandled_breakpoint_ops): New global variable.
6630 (catch_assert_breakpoint_ops): New global variable.
6631 * breakpoint.c: Add include of ada-lang.h.
6632 (print_one_breakpoint): Do not print the condition for Ada
6633 exception catchpoints.
6634 (create_ada_exception_breakpoint): New function.
6635 (catch_ada_exception_command, catch_assert_command): New function.
6636 (catch_command_1): Add support for the new "catch exception" and
6637 "catch assert" commands.
6638 (_initialize_breakpoint): Add help description for the new catch
6640 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
6642 (breakpoint.o): Add dependency on ada-lang.h.
6644 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
6646 * coffread.c (cs_to_section): If bfd_section is found, always
6647 return its section index.
6648 (coff_symtab_read): Determine the minimal_symbol_type using the
6651 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6652 Daniel Jacobowitz <dan@codesourcery.com>
6654 * Makefile.in (top.o): Update.
6655 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
6656 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
6657 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
6659 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
6661 2007-01-03 Mark Kettenis <kettenis@gnu.org>
6663 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
6664 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
6666 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6668 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
6669 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
6670 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
6671 greater than or equal to zero.
6672 * m2-typeprint.c (m2_array): Likewise.
6673 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6674 * gdbtypes.c (copy_type_recursive): Correct == typo.
6675 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
6676 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
6678 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
6679 (default_macro_scope): Remove unused variable.
6680 * prologue-value.h (pv_area_find_reg): Don't name an argument
6682 * remote-fileio.c (remote_fio_func_map): Add missing braces.
6683 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
6685 (cleanup_sigint_signal_handler): Remove casts.
6686 * valprint.c (val_print): Use a volatile local for the modified
6688 * varobj.c (languages): Remove extra array dimension.
6689 (varobj_create): Correct access to languages array.
6690 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
6692 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
6693 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
6694 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
6695 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
6696 (mi_cmd_data_write_memory): Likewise.
6697 * signals/signals.c (target_signal_to_string): Cast to int before
6699 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
6702 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6704 * NEWS: Mention pointer to member improvements.
6705 * Makefile.in (gnu-v3-abi.o): Delete special rule.
6706 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
6707 * ada-valprint.c (ada_print_scalar): Update for new type codes.
6708 * c-typeprint.c (c_print_type): Update for new type codes.
6709 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
6710 (c_type_print_base): Likewise.
6711 (c_type_print_args): Rewrite.
6712 * c-valprint.c (c_val_print): Update for new type codes. Remove
6713 support for references to members. Treat methods like functions.
6714 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
6715 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
6716 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
6717 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
6718 (struct cp_abi_ops): Add corresponding members.
6719 * cp-valprint.c (cp_print_class_method): Delete.
6720 (cp_find_class_member): New function.
6721 (cp_print_class_member): Use it. Simplify support for bogus
6723 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
6724 lookup_methodptr_type.
6725 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
6726 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
6727 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
6729 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
6730 references returned by user defined operators.
6731 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
6732 (f_type_print_varspec_suffix): Remove support for member pointers.
6733 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
6735 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
6736 (lookup_methodptr_type): New.
6737 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
6738 (recursive_dump_type): Update for new types.
6739 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
6740 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
6741 (lookup_memberptr_type, lookup_methodptr_type)
6742 (smash_to_memberptr_type): New prototypes.
6743 (smash_to_method_type): Formatting fix.
6744 (lookup_member_type, smash_to_member_type): Delete prototypes.
6745 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
6746 Do not rely on debug information for the vptr or the method's
6747 enclosing type. Handle function descriptors for IA64.
6748 (gnuv3_virtual_fn_field): Rewrite using the new functions.
6749 (gnuv3_find_method_in, gnuv3_print_method_ptr)
6750 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
6751 (gnuv3_method_ptr_to_value): New.
6752 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
6753 * hpread.c (hpread_type_lookup): Update for new types.
6754 * infcall.c (value_arg_coerce): Likewise.
6755 * m2-typeprint.c (m2_print_type): Remove explicit support
6756 for member pointers.
6757 * m2-valprint.c (m2_val_print): Likewise.
6758 * p-typeprint.c (pascal_type_print_varspec_prefix)
6759 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
6760 * p-valprint.c (pascal_val_print): Likewise.
6761 (pascal_object_print_class_method, pascal_object_print_class_member):
6763 * p-lang.h (pascal_object_print_class_method)
6764 (pascal_object_print_class_member): Delete prototypes.
6765 * stabsread.c (read_type): Update for new types.
6766 * typeprint.c (print_type_scalar): Likewise.
6767 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
6768 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
6769 argument. Construct a pointer to member if the address of a
6770 function or data member is requested.
6771 (value_cast_pointers): Don't modify the input value.
6772 (value_cast): Adjust pointer to member handling for new types.
6773 Allow null pointer to member constants. Don't modify the input
6775 (value_ind): Remove pointer to member check. Handle function
6776 descriptors for function pointers.
6777 (value_struct_elt, value_find_oload_method_list, check_field):
6778 Remove pointer to member checks.
6779 * value.c (unpack_long): Allow pointers to data members.
6780 (value_from_longest): Allow member pointers.
6781 * value.h (value_aggregate_elt): Add want_address.
6782 * varobj.c (c_variable_editable): Remove check for members.
6783 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
6784 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
6786 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
6787 * c-lang.h (cp_print_class_method): Delete prototype.
6788 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
6789 * mips-tdep.c (mips_gdbarch_init): Likewise.
6790 * gdbarch.c, gdbarch.h: Regenerated.
6792 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6794 * rs6000-tdep.c (rs6000_use_struct_convention)
6795 (rs6000_extract_return_value, rs6000_store_return_value)
6796 (rs6000_extract_struct_value_address): Remove.
6797 (rs6000_return_value): New function.
6798 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
6799 store_return_value, deprecated_extract_struct_value_address and
6800 deprecated_use_struct_convention. Use rs6000_return_value
6803 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
6805 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
6806 -display-disable, -display-enable, -display-insert and
6809 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6811 * breakpoint.c (remove_breakpoint): Remove dead code.
6813 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
6815 * varobj.c: Include block.h.
6816 (c_value_of_root): Check scope within nested statements.
6818 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6820 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
6821 regcache_cooked_write_signed instead of
6822 deprecated_write_register_bytes.
6824 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6826 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
6828 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6830 Followed the Start of New Year Procedure:
6831 * ChangeLog-2006: New file, containing all the entries for 2006.
6832 * ChangeLog: Removed all 2006 entries, and changed the reference
6833 to the previous ChangeLog to point to ChangeLog 2006.
6834 * top.c (print_gdb_version): Update copyright year.
6836 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6838 * Makefile.in (remote-sds.o): Remove.
6839 * remote-sds.c: Delete.
6841 For older changes see ChangeLog-2006.
6847 version-control: never