1 2007-09-04 Michael Snyder <msnyder@access-company.com>
3 * expprint.c (print_subexp_standard): Check strchr for null.
4 * Makefile.in (expprint.o): Depend on gdb_assert.h.
6 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
8 * stabsread.c (patch_block_status): Guard against null.
9 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
11 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
13 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
14 in internal error message.
16 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
17 Daniel Jacobowitz <dan@codesourcery.com>
19 * infcmd.c (post_create_inferior): Update comment.
20 (run_command_1): Always call post_create_inferior with 0 as
23 * i386-cygwin-tdep.h: New.
24 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
25 (win32_xfer_shared_library): Make it extern.
27 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
29 (win32_so_ops): Delete.
30 (get_relocated_section_addrs): Delete.
31 (solib_symbols_add): Delete.
32 (register_loaded_dll): Delete.
34 (handle_load_dll): Use win32_make_so.
35 (win32_free_so): Free the passed in so.
36 (win32_relocate_section_addresses): Delete.
37 (win32_solib_create_inferior_hook): Delete.
38 (handle_unload_dll): Don't add PE offset here. Free so with
39 win32_free_so instead of free_so.
40 (win32_special_symbol_handling): Delete.
41 (get_win32_debug_event): Remove unneeded calls. Set state to
42 TARGET_WAITKIND_LOADED on a dll unload.
43 (do_initial_win32_stuff): Clear cygwin_load_start and
45 (map_code_section_args): Delete.
46 (dll_code_sections_add): Delete.
47 (core_section_load_dll_symbols): Delete.
48 (win32_xfer_shared_libraries): New.
49 (win32_current_sos): Delete.
50 (win32_xfer_partial): New.
51 (open_symbol_file_object): Delete.
52 (in_dynsym_resolve_code): Delete.
53 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
54 of win32_ops. Remove win32_so_ops settings. Don't set
55 current_target_so_ops here.
57 * Makefile.in (i386_cygwin_tdep_h): New variable.
58 (i386-cygwin-tdep.o): Update dependencies.
59 (win32-nat.o): Update dependencies.
61 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
62 Daniel Jacobowitz <dan@codesourcery.com>
64 * gdbarch.sh (core_xfer_shared_libraries): New.
66 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
68 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
70 * xml-support.c (gdb_xml_parse): Debug output tweaks.
71 (xml_escape_text): New.
72 * xml-support.h (xml_escape_text): Declare.
74 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
75 * config/i386/cygwin.mt (TDEPFILES): ... here.
77 * win32-nat.c: (fetch_elf_core_registers): Delete.
78 (win32_elf_core_fn): Delete.
79 (_initialize_core_win32): Delete.
81 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
82 "xml-support.h" and "gdbcore.h".
83 (i386_win32_gregset_reg_offset): New.
84 (I386_WIN32_SIZEOF_GREGSET): New.
85 (i386_win32_regset_from_core_section): New.
86 (win32_xfer_shared_library): New.
87 (struct cpms_data): New.
88 (core_process_module_section): New.
89 (win32_core_xfer_shared_libraries): New.
90 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
91 gregset_num_regs, sizeof_gregset members of tdep. Register
92 regset_from_core_section and core_xfer_shared_libraries callbacks.
94 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
95 * gdbarch.h, gdbarch.c: Regenerate.
97 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
99 * corelow.c (core_xfer_partial): Pass writebuf to
100 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
102 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
104 * arm-tdep.h (arm_skip_stub): Declare.
105 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
107 (arm_pe_skip_trampoline_code): New function.
108 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
109 gdbarch_skip_trampoline_code callback.
110 * Makefile.in (arm-wince-tdep.o): Update dependencies.
112 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
114 * MAINTAINERS: Move Fred Fish to Past Maintainers.
116 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
118 * configure.ac: Add --with-expat.
119 * configure: Regenerated.
121 2007-09-03 Andreas Schwab <schwab@suse.de>
123 * configure.ac: Accept --with-system-readline.
124 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
125 * configure: Regenerate.
126 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
128 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
130 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
131 Daniel Jacobowitz <dan@codesourcery.com>
133 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
135 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
137 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
139 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
141 * top.c (print_gdb_version): Update for GPL version 3.
143 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
145 * NEWS: Mention the build-id .debug files verification.
147 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
149 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
151 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
153 * Makefile.in (symfile.o): Update dependencies.
154 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
155 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
156 (struct build_id): New structure.
157 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
158 (find_separate_debug_file): New variable BUILD_ID.
159 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
161 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
163 * varobj.c (struct varobj): Fix comment
164 for the type member not to lie when it can be
167 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
169 Implement -var-info-path-expression.
171 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
173 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
174 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
175 * varobj.c (struct varobj): New field 'path_expr'.
176 (c_path_expr_of_child, cplus_path_expr_of_child)
177 (java_path_expr_of_child): New.
178 (struct language_specific): New field path_expr_of_child.
179 (varobj_create): Initialize the path_expr field.
180 (varobj_get_path_expr): New.
181 (new_variable): Initialize the path_expr field.
182 (free_variable): Free the path_expr field.
183 (adjust_value_for_children_access): New parameter
185 (c_number_of_children): Adjust.
186 (c_describe_child): New parameter CFULL_EXPRESSION.
187 Compute full expression.
188 (c_value_of_child, c_type_of_child): Adjust.
189 (cplus_number_of_children): Adjust.
190 (cplus_describe_child): New parameter CFULL_EXPRESSION.
191 Compute full expression.
192 (cplus_name_of_child, cplus_value_of_child)
193 (cplus_type_of_child): Adjust.
194 * varobj.h (varobj_get_path_expr): Declare.
196 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
198 * mi/mi-cmd-var.c (print_varobj): If a varobj
199 type is NULL, don't try to print it.
201 2007-08-30 Alan Modra <amodra@bigpond.net.au>
203 * ppc-linux-nat.c (right_fill_reg): Delete.
204 (supply_gregset): Use ppc_supply_gregset.
205 (supply_fpregset): Use ppc_supply_fpregset.
206 (fill_gregset): Use ppc_collect_gregset.
207 (fill_fpregset): Use ppc_collect_fpregset.
208 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
209 (right_supply_register, ppc_linux_supply_gregset): Delete.
210 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
211 (ppc_linux_supply_fpregset): Delete.
212 (ppc_linux_collect_gregset): New function.
213 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
214 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
215 ppc_linux_supply_gregset, and ppc_collect_gregset.
216 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
217 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
218 (ppc_linux_regset_from_core_section): Update.
219 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
220 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
221 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
222 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
223 (ppcobsd_collect_gregset): Likewise.
224 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
225 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
226 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
227 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
228 (rs6000_aix64_reg_offsets): Likewise.
229 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
230 ppc_floating_point_unit_p.
231 (rs6000_aix_collect_regset): Similarly.
232 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
233 when regsize is larger than regcache register size.
234 (ppc_collect_reg): Similarly zero pad when regsize is larger than
235 regcache register size.
236 (ppc_greg_offset): New function, split out from..
237 (ppc_supply_gregset): ..here. Separate code handling all regs from
238 single reg case. Correct xer offset.
239 (ppc_fpreg_offset): New function, split out from..
240 (ppc_supply_fpregset): ..here. Separate code handling all regs from
242 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
243 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
244 a fp unit, instead return if no fp.
246 2007-08-29 Jim Blandy <jimb@codesourcery.com>
248 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
249 this code has not been compiled for two years.
251 2007-08-29 Michael Snyder <msnyder@access-company.com>
253 * event-top.c (gdb_readline2): Return after EOF.
255 2007-08-29 Joel Brobecker <brobecker@adacore.com>
257 * symtab.c: Remove a function that has been commented out 3 years ago.
259 2007-08-29 Randolph Chung <tausq@debian.org>
261 * hppa-tdep.c (hppa32_cannot_fetch_register)
262 (hppa64_cannot_fetch_register): New functions.
263 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
264 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
266 2007-08-28 Michael Snyder <msnyder@access-company.com>
268 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
269 check for null before calling check_typedef.
271 * NEWS: Mention Coverity bug fixes.
273 2007-08-27 Markus Deuling <deuling@de.ibm.com>
275 * spu-tdep.c (spu_pointer_to_address): New function.
276 (spu_integer_to_address): Likewise.
277 (spu_gdbarch_init): Add spu_pointer_to_address and
278 spu_integer_to_address to gdbarch.
280 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
282 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
284 2007-08-23 Joel Brobecker <brobecker@adacore.com>
286 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
287 that contains the GDB license.
288 * copying.awk: Adjust to the GPLv3 wording.
289 * copying.c: Regenerate.
291 2007-08-23 Joel Brobecker <brobecker@adacore.com>
293 * copying.awk: Protoization, and i18n markup.
295 2007-08-23 Joel Brobecker <brobecker@adacore.com>
297 * config/djgpp/djconfig.sh: Switch license to GPLv3.
298 * copyright.sh: Likewise.
299 * gdb-events.sh: Likewise.
300 * gdb_gcore.sh: Likewise.
301 * gdb_mbuild.sh: Likewise.
302 * gdbarch.sh: Likewise.
303 * observer.sh: Likewise.
304 * features/feature_to_c.sh: Likewise.
305 * regformats/regdat.sh: Likewise.
307 2007-08-23 Joel Brobecker <brobecker@adacore.com>
309 Switch the license of all .c files to GPLv3.
310 Switch the license of all .h files to GPLv3.
311 Switch the license of all .cc files to GPLv3.
313 2007-08-23 Joel Brobecker <brobecker@adacore.com>
315 * configure.ac: Switch license to GPLv3.
317 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
319 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
320 determine the file's FPU type.
322 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
324 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
325 (mips_n32n64_push_dummy_call): Always increment float_argreg along
326 with argreg. Use mips_n32n64_fp_arg_chunk_p.
328 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
330 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
332 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
333 (elf_lookup_lib_symbol): Fix formatting.
335 2007-08-21 Michael Snyder <msnyder@access-company.com>
337 * dbxread.c (read_dbx_symtab): Guard null deref.
340 * valops.c (find_overload_match): Guard against NULL.
342 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
344 * MAINTAINERS (Patch Champions): Remove self.
346 2007-08-21 Chris Smith <chris.smith@st.com>
348 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
351 2007-08-18 Michael Snyder <msnyder@access-company.com>
353 * stabsread.c (dbx_lookup_type): Memory leak.
355 * event-loop.c (delete_async_signal_handler): Move pointer null
356 test to before pointer dereference.
358 * ui-out.c (append_header_to_list): Possible cut and paste error.
360 * MAINTAINERS: white space tweak.
362 2007-08-17 Michael Snyder <msnyder@access-company.com>
364 * stack.c (print_frame): Memory leak.
366 * completer.c (filename_completer): Avoid memory leak.
367 Remove unnecessary nested block.
369 * c-exp.y (parse_number): Memory leak.
371 * completer.c (location_completer): Must free 'fn_list', except
372 in the one case where it is returned (as 'list').
374 * varobj.c (value_of_root): Memory leak.
376 * gdbtypes.h (virtual_base_list): Remove export decl.
377 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
378 (virtual_base_index): Memory leak.
379 (virtual_base_index_skip_primaries): Ditto.
381 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
383 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
384 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
385 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
386 (xtensa_read_register): New function.
387 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
388 (xtensa_insn_kind): New types.
389 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
390 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
391 (xtensa_verify_config, xtensa_pseudo_register_read)
392 (xtensa_pseudo_register_write, xtensa_extract_return_value)
393 (xtensa_store_return_value)
394 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
395 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
396 (xtensa_frame_this_id, xtensa_frame_prev_register)
397 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
398 (call0_frame_cache, call0_frame_get_reg_at_entry)
399 (call0_classify_opcode, call0_track_op)
400 (call0_analyze_prologue, call0_frame_cache): New functions.
402 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
404 * breakpoint.c (bpstat_free): New.
405 (bpstat_clear): Use bpstat_free.
406 (delete_breakpoint): Document why we cannot
407 remove bpstats from stop_bpstat.
408 * breakpoint.h (bpstat_free): Declare.
410 2007-08-16 Michael Snyder <msnyder@access-company.com>
412 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
414 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
415 Joel Brobecker <brobecker@adacore.com>
417 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
419 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
420 Joel Brobecker <brobecker@adacore.com>
422 * ada-lang.c (possible_user_operator_p): Alternative fix to last
423 checkin guarding against NULL.
425 2007-08-14 Michael Snyder <msnyder@access-company.com>
427 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
428 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
429 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
430 go at beginning of new line.
432 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
433 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
434 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
435 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
436 tui-winsource.h, tui.c, tui.h: Function declarations and
437 definitions, wrap long lines.
439 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
440 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
441 Reformat block comments to GNU standard.
443 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
444 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
445 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
446 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
447 tui.c, tui.h: Comment reformatting to coding standard (capitals,
448 spaces after periods, etc).
450 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
451 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
452 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
453 tui-winsource.h: Whitespace changes, fix pointer declarations
456 2007-08-14 Joel Brobecker <brobecker@adacore.com>
457 Michael Snyder <msnyder@access-company.com>
459 * ada-lang.c (field_alignment): Guard against NULL.
461 2007-08-14 Joel Brobecker <brobecker@adacore.com>
463 * MAINTAINERS (Global Maintainers): Add self.
465 2007-08-14 Michael Snyder <msnyder@access-company.com>
467 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
469 * ada-lang.c (possible_user_operator_p): Guard against NULL.
471 * varobj.c (cplus_describe_child): Guard against null.
472 Use "NULL" instead of "0" to initialize pointers.
474 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
476 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
477 to match any gdbarch with matching OSABI. Set default ABI and FPU
478 after running the OSABI handler.
480 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
482 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
483 * config/i386/linux.mt (TDEPFILES): ...to here.
485 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
487 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
488 the 'silent' parameter and code to implement that.
489 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
491 * win32-nat.c: Adjust.
494 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
496 * breakpoint.c (update_breakpoints_after_exec): Don't
499 2007-08-13 Michael Snyder <msnyder@access-company.com>
501 * valops.c: Whitespace clean-up.
503 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
505 * event-top.c (command_line_handler): Memory leak.
507 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
508 No need to make copy.
510 * source.c (find_source_lines): Require symtab 's'.
512 2007-08-11 Michael Snyder <msnyder@access-company.com>
514 * completer.c: Spelling fix in comments.
516 2007-08-10 Michael Snyder <msnyder@access-company.com>
518 * gdbtypes.c: Coding standard cleanup.
519 * gdbtypes.c: Comment/whitespace cleanup.
521 * stabsread.c (read_huge_number): Attempt to compute value before
522 values that it depends on.
524 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
525 (decode_objc): Use "NULL" instead of 0.
526 (find_method): Ditto.
527 (decode_all_digits): Ditto.
528 (decode_dollar): Ditto.
530 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
532 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
534 * solib-svr4.c (enable_break): Don't free tmp_pathname until
537 * completer.c: Comment/whitespace cleanup.
539 2007-08-10 Joel Brobecker <brobecker@adacore.com>
541 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
543 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
545 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
546 allocated file descriptors.
548 2007-08-10 Joel Brobecker <brobecker@adacore.com>
550 * Makefile.in: Minor cleanup throughout; add some missing variables,
551 add some missing rules, remove some rules that are no longer needed,
552 and fix the dependencies in several rules.
554 2007-08-10 Ludovic Courtès <ludo@gnu.org>
556 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
557 (scm_lang_h, scm_tags_h): New.
558 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
559 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
560 * defs.h (enum language): Add `language_scm'.
562 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
565 2007-08-09 Ludovic Courtès <ludo@gnu.org>
567 * MAINTAINERS (Write After Approval): Add myself.
569 2007-08-09 Michael Snyder <msnyder@access-company.com>
571 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
573 2007-08-09 Joel Brobecker <brobecker@adacore.com>
575 * solib-som.c (som_relocate_section_addresses): Stop saving
576 the $CODE$ section in the so_list structure.
578 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
580 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
581 (xtensa_register_group_t): Add entries for coprocessors.
582 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
583 (xtensa_add_reggroups): Likewise.
584 (xtensa_register_reggroup_p): Likewise.
585 (xtensa_coprocessor_register_group): New function.
588 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
590 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
592 2007-08-08 Michael Snyder <msnyder@access-company.com>
594 * target.c (target_read_string): Guard against null.
596 * varobj.c (value_of_root): Move alloc after return to avoid leak.
598 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
599 (tui_set_layout_for_display_command): Mem leak.
601 * top.c (command_line_input): Memory leak.
603 * solib-svr4.c (open_symbol_file_object): Memory leak.
604 (svr4_current_sos): Ditto.
605 (enable_break): Ditto.
607 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
609 * dwarf2read.c (add_partial_symbol): Memory leak.
611 2007-08-06 Michael Snyder <msnyder@access-company.com>
613 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
615 2007-08-05 Jim Blandy <jimb@codesourcery.com>
617 * macroexp.c (init_buffer): Remove testing code that overrides the
618 caller's length guess.
619 (gather_arguments): Use a larger initial size, now that the vector
620 growth code has been exercised.
622 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
624 * solib-target.c (solib_target_relocate_section_addresses): Add
625 orig_delta to addr_high.
627 2007-08-04 Michael Snyder <msnyder@access-company.com>
629 * remote-fileio.c (remote_fileio_func_write): Memory leak.
631 * breakpoint.c (print_one_breakpoint): Off by one error.
633 * tracepoint.c (add_register): Off by one error.
634 (stringify_collection_list): Free malloc buffer.
636 2007-08-03 Michael Snyder <msnyder@access-company.com>
638 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
639 stop memory leak, straighten out cleanups.
641 * jv-lang.c (java_link_class_type): Guard against NULL.
643 2007-08-02 Michael Snyder <msnyder@access-company.com>
645 * gdbtypes.c (create_set_type): Test should only be done within
646 the preceeding if block. Otherwise, variable is uninitialized.
648 * gdbtypes.c (check_typedef): Guard NULL.
650 2007-08-01 Michael Snyder <msnyder@access-company.com>
652 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
653 avoid dereference in lookup_cmd_1.
655 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
657 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
658 (tui_alloc_win_info): Ditto.
659 (tui_add_content_elements): Ditto.
660 * tui/tui-file.c (tui_file_magic): Ditto.
662 2007-07-31 Michael Snyder <msnyder@access-company.com>
664 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
665 True and false paths are mutually exclusive.
667 * event-top.c (command_line_handler): Add pedantic return.
669 * f-valprint.c (info_common_command): Bail out to prevent null
670 pointer deref. Break up a long line.
672 * exec.c (xfer_memory): Remove redundant condition from 'if'.
674 * symfile.c (reread_separate_symbols): Free xmalloced memory.
676 * printcmd.c (build_address_symbolic): Remove dead code and dead
679 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
681 * linespec.c (minsym_found): Advance to the next line if possible.
683 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
685 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
686 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
687 solib-svr4.o, and add solib-target.o
689 2007-07-27 Michael Snyder <msnyder@access-company.com>
691 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
693 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
695 * MAINTAINERS (Write After Approval): Add myself.
697 2007-07-26 Maciej W. Rozycki <macro@mips.com>
699 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
702 2007-07-25 Maciej W. Rozycki <macro@mips.com>
704 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
706 2007-07-24 Michael Snyder <msnyder@access-company.com>
708 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
709 'buffer' must cover both branches that call strcmp (Coverity).
711 * stack.c (print_frame_args): Check return value of lookup_symbol.
713 * ax-gdb.c (find_field): Guard against null ptr.
715 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
717 * regformats/reg-spu.dat: Fix order of npc, id registers.
719 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
721 * target.c (memory_xfer_partial): Accesses to unmapped overlay
722 sections should always go to the executable file.
724 2004-07-20 Chris Dearman <chris@mips.com>
726 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
727 prologue instructions.
729 2007-07-20 Maciej W. Rozycki <macro@mips.com>
731 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
734 2007-07-20 Chris Dearman <chris@mips.com>
735 Maciej W. Rozycki <macro@mips.com>
737 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
740 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
741 Daniel Jacobowitz <dan@codesourcery.com>
743 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
744 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
746 * NEWS: Mention gdbserver DLL support.
748 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
750 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
752 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
754 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
757 2007-07-13 Kevin Buettner <kevinb@redhat.com>
759 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
762 2007-07-12 Kevin Buettner <kevinb@redhat.com>
764 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
765 (mep_analyze_prologue): Add case for BRA instruction.
767 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
769 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
771 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
773 * breakpoint.c: Include "top.h".
774 (breakpoint_1): Don't set convenience variable $_ if server prefix
776 (_initialize_breakpoint): Describe this behaviour in command help.
778 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
780 * solib-target.c (library_list_start_segment): Cast address to
783 2007-07-06 Mark Kettenis <kettenis@gnu.org>
785 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
786 for terminated processes.
788 2007-07-05 Michael Snyder <msnyder@access-company.com>
790 * event-top.c (cli_command_loop): Prompt string can (and should)
791 be freed after call to readline (Coverity). Also move local var
792 declarations into block where they are used.
794 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
795 should) be freed after call to readline (Coverity). Also move
796 local var declarations into block where they are used.
798 2007-07-03 Andreas Schwab <schwab@suse.de>
800 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
803 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
804 Thiago Bauermann <bauerman@br.ibm.com>
805 Joseph S. Myers <joseph@codesourcery.com>
806 Daniel Jacobowitz <dan@codesourcery.com>
808 * remote.c (remote_check_symbols): Use
809 gdbarch_convert_from_func_ptr_addr.
810 * infcall.c (find_function_addr): Handle function descriptors
811 without debugging information.
812 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
813 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
814 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
815 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
816 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
817 allow SEC_CODE and SEC_DATA.
818 (enable_break): Update calls. Pass current_target to solib_add.
819 Use gdbarch_convert_from_func_ptr_addr.
821 2007-07-03 Ilko Iliev <iliev@ronetix.at>
822 Daniel Jacobowitz <dan@codesourcery.com>
824 * symfile.c (print_transfer_performance): Avoid integer overflow.
827 2007-07-03 Markus Deuling <deuling@de.ibm.com>
829 * cp-namespace.c (lookup_symbol_file): Add block to
830 lookup_symbol_global call.
831 * Makefile.in (solist_h): Add dependency on symtab header.
832 (symtab.o): Add dependency on solist header.
833 * solib.c (solib_global_lookup): New function.
834 * solib-svr4.c (scan_dyntag): Likewise.
835 (elf_locate_base): Call helper routine scan_dyntag.
836 (elf_lookup_lib_symbol): New function.
837 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
838 * solist.h (symtab.h): New include.
839 (struct target_so_ops): New member lookup_lib_global_symbol.
840 (solib_global_lookup): New prototype.
841 * symtab.c: New include solist.h.
842 (lookup_objfile_from_block): New function.
843 (lookup_global_symbol_from_objfile): New function.
844 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
845 (lookup_symbol_global): Call library-specific lookup procedure.
846 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
848 * NEWS: Document framework.
850 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
852 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
855 * cli/cli-script.c (build_command_line): Update NULL check.
857 2007-07-02 Michael Snyder <msnyder@access-company.com>
859 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
861 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
863 * Makefile.in (XMLFILES): Add library-list.dtd.
864 (ALLDEPFILES): Add solib-target.o.
865 (solib-target.o): New rule.
866 * remote.c (PACKET_qXfer_libraries): New constant.
867 (remote_protocol_features): Add qXfer:libraries:read.
868 (remote_wait): Recognize library stop replies.
869 (remote_async_wait): Likewise. Fix typo.
870 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
871 (init_remote_async_ops): Fix typo.
872 (_initialize_remote): Register "set remote library-info-packet".
873 * solib-som.c (som_current_sos): Set addr_low and addr_high.
874 * solib-target.c: New file.
875 * solib.c (solib_map_sections): Use addr_low and addr_high instead
877 (info_sharedlibrary_command): Likewise.
878 (solib_add_library, solib_remove_library): New.
879 * solist.h (struct so_list): Replace textsection with addr_low and
881 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
882 * NEWS: Describe new qXfer:libraries:read and shared library
884 * features/library-list.dtd: New.
886 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
888 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
889 (start_remote): Use STOP_QUIETLY_REMOTE.
890 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
891 support on a SOLIB_ADD definition. Update breakpoints_inserted.
892 Update to match shared library event breakpoint support. Only
893 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
894 (normal_stop): Handle TARGET_WAITKIND_LOADED.
895 * fork-child.c (startup_inferior): Do not set
896 inferior_ignoring_startup_exec_events
897 * inferior.h (inferior_ignoring_startup_exec_events): Delete
899 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
901 2007-07-02 Markus Deuling <deuling@de.ibm.com>
903 * breakpoint.c (insert_bp_location): Remove dead code
904 (DISABLE_UNSETTABLE_BREAK).
905 (disable_breakpoints_in_shlibs)
906 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
908 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
910 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
911 Call insert_bp_location.
913 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
915 * core-regset.c (fetch_core_registers): Work around gcc 3.4
918 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
920 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
923 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
925 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
926 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
927 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
928 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
929 to display_gdb_prompt.
931 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
934 * target.c (memory_xfer_partial): Do not continue past targets with
937 2007-06-30 Andreas Schwab <schwab@suse.de>
939 * m68k-tdep.c (m68k_ps_type): New.
940 (m68k_init_types): New.
941 (m68k_register_type): Use m68k_ps_type for PS register.
942 (_initialize_m68k_tdep): Call m68k_init_types.
944 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
945 from the generic m68k arch.
947 2007-06-28 Michael Snyder <msnyder@access-company.com>
949 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
952 * linux-thread-db.c (thread_db_get_thread_local_address): Add
953 gdb_assert before using return value of find_thread_pid (Coverity).
955 * source.c (unset_substitute_path_command): Plug leak (Coverity).
957 * cli/cli-script.c (build_command_line): Add null pointer guard
960 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
962 * linux-thread-db.c (thread_db_attach): Delete.
963 (thread_db_detach): Typo fix. Call target_mourn_inferior
964 instead of fixing up proc_handle.
965 (have_threads_callback, have_threads): New functions.
966 (thread_db_wait): Remove dead proc_handle.pid check. Only
967 translate PTIDs if we have registered threads. Check for new
968 threads if we have none.
969 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
970 (find_new_threads_callback): Only enable event reporting if TID == 0.
971 (same_ptid_callback): New.
972 (thread_db_get_thread_local_address): Check for new threads.
973 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
974 or to_post_startup_inferior.
976 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
978 * infrun.c (adjust_pc_after_break): Do not assume software single-step
979 is always active if SOFTWARE_SINGLE_STEP_P is true.
980 (resume): Use gdbarch_software_single_step[_p] instead of
981 SOFTWARE_SINGLE_STEP[_P].
982 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
984 * gdbarch.sh (software_single_step): Remove target macro.
985 * gdbarch.h, gdbarch.c: Regenerate.
987 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
989 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
990 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
991 (struct gdbarch_swap, struct gdbarch_swap_registration,
992 struct gdbarch_swap_registry, gdbarch_swap_registry,
993 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
994 current_gdbarch_swap_in_hack): Remove.
995 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
996 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
997 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
998 (deprecated_current_gdbarch_select_hack): Likewise.
999 * gdbarch.h, gdbarch.c: Regenerate.
1001 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1003 * infrun.c (clear_proceed_status): Clean up stop_registers.
1004 (normal_stop): Allocate regcache for stop_registers.
1005 (struct inferior_status): Remove stop_registers member.
1006 (save_inferior_status): Do not save stop_registers.
1007 (restore_inferior_status): Do not restore stop_registers.
1008 (discard_inferior_status): Do not discard stop_registers.
1009 (build_infrun): Remove.
1010 (_initialize_infrun): Do not swap stop_registers.
1012 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1014 * remote.c (remote_address_masked): If remote_address_size is zero,
1015 default to target address size.
1016 (build_remote_gdbarch_data): Remove.
1017 (_initialize_remote): Do not swap remote_address_size.
1019 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1021 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1022 builtin_type_char, builtin_type_short, builtin_type_int,
1023 builtin_type_long, builtin_type_signed_char,
1024 builtin_type_unsigned_char, builtin_type_unsigned_short,
1025 builtin_type_unsigned_int, builtin_type_unsigned_long,
1026 builtin_type_float, builtin_type_double, builtin_type_long_double,
1027 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1028 builtin_type_bool, builtin_type_long_long,
1029 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1030 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1031 variable declaration with compatibility macro.
1032 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1033 builtin_type_char, builtin_type_short, builtin_type_int,
1034 builtin_type_long, builtin_type_signed_char,
1035 builtin_type_unsigned_char, builtin_type_unsigned_short,
1036 builtin_type_unsigned_int, builtin_type_unsigned_long,
1037 builtin_type_float, builtin_type_double, builtin_type_long_double,
1038 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1039 builtin_type_bool, builtin_type_long_long,
1040 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1041 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1042 (build_gdbtypes): Remove.
1043 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1044 opaque-type-resolution command here. Do not call
1045 deprecated_register_gdbarch_swap.
1047 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1049 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1050 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1051 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1053 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1054 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1055 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1056 (build_parse): Remove.
1057 (_initialize_parse): Do not call build_parse. Do not register
1058 msym_ types for gdbarch-swapping.
1060 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1061 instead of creating private type.
1063 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1064 (_initialize_xcoffread): Do not initialized them.
1065 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1067 * mdebugread.c (nodebug_func_symbol_type): Remove.
1068 (nodebug_var_symbol_type): Remove.
1069 (_initialize_mdebugread): Do not initialize them.
1070 (parse_symbol): Use builtin nodebug_ type instead of them.
1071 (parse_procedure): Likewise.
1073 2007-06-21 Chris Dearman <chris@mips.com>
1075 * printcmd.c (do_one_display): If display/i, start with an initial
1076 line feed to avoid bad layout if there is a branch delay slot.
1078 2007-06-21 Nigel Stephens <nigel@mips.com>
1079 Maciej W. Rozycki <macro@mips.com>
1081 * disasm.c (gdb_print_insn): Return the number of branch delay
1082 slot instructions too.
1083 * disasm.h (gdb_print_insn): Update prototype.
1084 * printcmd.c (branch_delay_insns): New variable to record the
1085 number of delay slot instructions after disassembling a branch.
1086 (print_formatted): Record the number of branch delay slot
1088 (do_examine): When disassembling, if the last instruction
1089 disassembled has any branch delay slots, then bump the count so
1090 that they get disassembled too.
1091 * tui/tui-disasm.c (tui_disassemble): Update the call to
1093 * NEWS: Document the new behaviour.
1095 2007-06-21 Andreas Schwab <schwab@suse.de>
1097 * regcache.c (write_pc_pid): Restore missing else.
1099 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
1101 * regcache.c (regcache_print): Use get_current_regcache ()
1102 instead of current_regcache.
1104 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
1107 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1108 instead of bfd_make_section_anyway.
1109 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1110 when clearing SEC_LOAD.
1112 2007-06-19 Joseph Myers <joseph@codesourcery.com>
1114 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1115 registers for big-endian.
1117 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1119 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
1120 * disasm.c (dump_insns, gdb_print_insn): Likewise.
1121 * gdbarch.c, gdbarch.h: Regenerate.
1123 2007-06-19 Markus Deuling <deuling@de.ibm.com>
1125 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
1126 gdbarch_believe_pcc_promotion.
1127 * stabsread.c (define_symbol): Likewise.
1128 Remove unnecessary definition.
1129 * coffread.c (process_coff_symbol): Remove unnecessary code.
1130 * gdbarch.c, gdbarch.h: Regenerate.
1132 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
1134 * configure.ac: Do not use ${objdir}.
1135 * configure: Regenerated.
1137 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
1139 * gdbarch.sh (deprecated_register_size): Remove.
1140 * gdbarch.h, gdbarch.c: Regenerate.
1142 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
1143 by INT_REGISTER_SIZE.
1144 (thumb_get_next_pc, arm_return_in_memory): Likewise.
1145 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
1146 * ia64-tdep.c (ia64_gdbarch_init): Do not call
1147 set_gdbarch_deprecated_register_size.
1149 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1151 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
1152 gdbarch_deprecated_fp_regnum.
1153 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1154 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
1155 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1156 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
1158 * gdbarch.c, gdbarch.h: Regenerate.
1160 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1162 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
1163 gdbarch_extract_return_value.
1164 * value.c (generic_use_struct_convention): Likewise (comment).
1165 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
1166 * arch-utils.c (legacy_return_value): Likewise.
1167 * arch-utils.h (legacy_return_value): Likewise (comment).
1168 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
1169 gdbarch_store_return_value.
1170 * stack.c (return_command): Likewise (comment).
1171 * arch-utils.h (legacy_return_value): Likewise (comment).
1172 * arch-utils.c (legacy_return_value): Likewise.
1173 * gdbarch.c, gdbarch.h: Regenerate.
1175 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1177 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
1178 gdbarch_deprecated_use_struct_convention.
1179 * arch-utils.c (legacy_return_value): Likewise.
1180 * gdbarch.c, gdbarch.h: Regenerate.
1182 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1184 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
1185 gdbarch_deprecated_function_start_offset.
1186 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
1187 * linespec.c (minsym_found): Likewise.
1188 * infrun.c (handle_inferior_event): Likewise.
1189 * infcall.c (find_function_addr): Likewise.
1190 * cli/cli-cmds.c (disassemble_command): Likewise.
1191 * gdbarch.c, gdbarch.h: Regenerate.
1193 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1195 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
1196 gdbarch_deprecated_reg_struct_has_addr.
1197 * infcall.c (call_function_by_hand): Likewise.
1198 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
1199 * gdbarch_deprecated_reg_struct_has_addr_p.
1200 * infcall.c (call_function_by_hand): Likewise.
1201 * gdbarch.c, gdbarch.h: Regenerate.
1203 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1205 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1206 * sh-tdep.c (sh_extract_struct_value_address): Remove.
1207 (sh_gdbarch_init): Remove
1208 set_gdbarch_deprecated_extract_struct_value_address.
1209 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
1210 (sh64_gdbarch_init): Remove
1211 set_gdbarch_deprecated_extract_struct_value_address.
1212 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
1213 (ia64_gdbarch_init): Remove
1214 set_gdbarch_deprecated_extract_struct_value_address.
1215 * frv-tdep.c (frv_extract_struct_value_address): Remove.
1216 (frv_gdbarch_init): Remove
1217 set_gdbarch_deprecated_extract_struct_value_address.
1218 * gdbarch.c, gdbarch.h: Regenerate.
1220 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1222 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
1223 * v850-tdep.c (v850_unwind_sp): Likewise.
1224 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
1225 * stack.c (frame_info): Likewise.
1226 * stabsread.c (define_symbol): Likewise.
1227 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1228 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
1229 (sh_unwind_sp): Likewise.
1230 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
1231 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
1232 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
1233 (rs6000_frame_cache): Likewise.
1234 * rs6000-nat.c (store_register): Likewise.
1235 * remote-mips.c (mips_wait): Likewise.
1236 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1237 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1238 (ppc64_sysv_abi_push_dummy_call): Likewise.
1239 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1240 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1241 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1242 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1243 * m32r-rom.c (m32r_supply_register): Likewise.
1244 * frame.c (frame_sp_unwind): Likewise.
1245 * mips-tdep.c (mips_insn16_frame_cache)
1246 (mips_insn32_frame_cache): Likewise (comment).
1247 * m68klinux-nat.c (supply_gregset): Likewise.
1248 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1249 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
1250 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1251 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1252 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
1253 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
1254 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
1255 (cris_register_type, crisv32_register_type)
1256 (cris_dwarf2_frame_init_reg): Likewise.
1257 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1258 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
1259 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1260 * libunwind-frame.c (libunwind_frame_cache): Likewise.
1262 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
1263 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
1264 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
1265 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
1266 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
1267 * v850-tdep.c (v850_unwind_pc): Likewise.
1268 * stack.c (frame_info): Likewise.
1269 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
1270 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
1271 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
1272 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
1273 (sh_dsp_show_regs): Likewise.
1274 * shnbsd-tdep.c (shnbsd_supply_gregset)
1275 (shnbsd_collect_gregset): Likewise.
1276 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
1277 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
1278 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
1279 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1280 (6000_register_reggroup_p, rs6000_unwind_pc)
1281 (rs6000_frame_cache): Likewise.
1282 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
1283 (rs6000_store_inferior_registers): Likewise.
1284 * remote-mips.c (mips_wait, mips_load): Likewise.
1285 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1286 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1287 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1288 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1289 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
1290 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1291 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
1292 (store_ppc_registers, fill_gregset): Likewise.
1293 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
1294 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
1295 * mipsnbsd-nat.c (getregs_supplies): Likewise.
1296 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1297 * m68klinux-nat.c (supply_gregset): Likewise.
1298 * irix5-nat.c (fill_gregset): Likewise.
1299 * i386-tdep.c (i386_unwind_pc): Likewise.
1300 * i386-linux-nat.c (i386_linux_resume): Likewise.
1301 * frame.c (get_prev_frame_1): Likewise.
1302 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1303 * dbug-rom.c (dbug_supply_register): Likewise.
1304 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
1305 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
1306 (cris_register_type, crisv32_register_type, crisv32_register_name)
1307 (cris_dwarf2_frame_init_reg, find_step_target)
1308 (cris_software_single_step, cris_supply_gregset)
1309 (cris_regnums): Likewise.
1310 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1311 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1312 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
1313 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
1314 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1316 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
1317 * dbug-rom.c (dbug_supply_register): Likewise.
1318 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
1319 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
1320 * win32-nat.c (win32_resume): Likewise.
1321 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
1322 * m68k-tdep.c (m68k_register_type): Likewise.
1323 * m68klinux-nat.c (supply_gregset): Likewise.
1325 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
1326 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
1327 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
1328 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1329 (fv_reg_base_num, dr_reg_base_num): Likewise.
1330 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
1331 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
1332 (sh64_extract_return_value, sh64_store_return_value)
1333 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
1334 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
1335 * procfs.c (procfs_fetch_registers, procfs_store_registers)
1336 (invalidate_cache): Likewise.
1337 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1338 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
1339 (mipsnbsd_fill_fpreg): Likewise.
1340 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1341 (mipsnbsd_store_inferior_registers): Likewise.
1342 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
1343 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
1344 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
1345 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
1346 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
1347 (fill_fpregset): Likewise.
1348 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
1349 * i386-tdep.h (struct_return): Likewise (comment).
1350 * i386-nto-tdep.c (i386nto_register_area): Likewise.
1351 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1352 (go32_store_registers): Likewise.
1353 * alpha-tdep.c (alpha_next_pc): Likewise.
1354 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1355 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1356 (alphabsd_store_inferior_registers): Likewise.
1357 * core-regset.c (fetch_core_registers): Likewise.
1358 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1360 * gdbarch.c, gdbarch.h: Regenerate.
1362 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
1364 * coffread.c (coff_sym_fns): Add default_symfile_segments.
1365 * dbxread.c (start_psymtab): Check HAVE_ELF.
1366 (aout_sym_fns): Likewise.
1367 * elfread.c (elf_symfile_segments): New.
1368 (elf_sym_fns): Add elf_symfile_segments.
1369 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
1370 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
1371 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
1372 * somread.c (som_sym_fns): Use default_symfile_segments.
1373 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
1374 (init_objfile_sect_indices): Call symfile_find_segment_sections.
1375 (default_symfile_segments): New function.
1376 (syms_from_objfile): Update call to find_sym_fns.
1377 (symfile_get_segment_data, free_symfile_segment_data): New.
1378 (symfile_map_offsets_to_segments): New.
1379 (symfile_find_segment_sections): New.
1380 * symfile.h (struct symfile_segment_data): New.
1381 (struct sym_fns): Add sym_segments.
1382 (default_symfile_segments, symfile_get_segment_data)
1383 (free_symfile_segment_data): New prototypes.
1384 (symfile_map_offsets_to_segments): Likewise.
1385 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
1386 * Makefile.in (COMMON_OBS): Remove elfread.o.
1387 (elf_internal_h): New.
1388 (elfread.o): Update.
1389 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
1391 * config.in, configure: Regenerated.
1392 * NEWS: Mention qOffsets changes.
1394 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1396 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
1397 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1398 Replace global variable declaration with compatibility macro.
1399 (struct builtin_m2_type): New data type.
1400 (builtin_m2_type): Add prototype.
1401 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
1402 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1403 Remove global variables.
1404 (m2_language_arch_info): Use builtin_m2_type instead of variables.
1405 (build_m2_types): New function.
1406 (m2_type_data): New variable.
1407 (builtin_m2_type): New function.
1408 (_initialize_m2_language): Do not build data types. Register
1409 m2_type_data per-gdbarch data.
1411 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1413 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
1414 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1415 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1416 builtin_type_f_real_s8, builtin_type_f_real_s16,
1417 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1418 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
1419 variable declaration with compatibility macro.
1420 (struct builtin_f_type): New data type.
1421 (builtin_f_type): Add prototype.
1422 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
1423 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1424 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1425 builtin_type_f_real_s8, builtin_type_f_real_s16,
1426 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1427 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
1428 (f_language_arch_info): Use builtin_f_type instead of variables.
1429 (build_fortran_types): Build builtin_f_type structure instead of
1430 setting global type variables.
1431 (f_type_data): New variable.
1432 (builtin_f_type): New function.
1433 (_initialize_f_language): Do not call build_fortran_types. Do not
1434 swap global type variables. Register f_type_data per-gdbarch data.
1436 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1438 * f-lang.c (_initialize_f_language): Do not initialize or
1439 swap builtin_type_string.
1441 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1443 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
1444 value_of_builtin_frame_reg): Remove.
1445 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
1446 inactive call to value_of_builtin_frame_reg.
1448 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1450 * gdbarch.sh (bfd_vma_bit): Remove.
1451 * gdbarch.c, gdbarch.h: Regenerate.
1453 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1454 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1455 (build_gdbtypes): Do not initialize it.
1456 (_initialize_gdbtypes): Do not swap it.
1458 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1460 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
1461 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1462 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1463 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1464 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1465 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1466 builtin_type_vec64, builtin_type_vec128): Remove.
1467 (init_simd_type): Remove.
1468 (init_vector_type): Make global.
1469 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
1470 (build_gdbtypes): Do not build vector types.
1471 (_initialize_gdbtypes): Do not swap vector types.
1472 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
1473 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1474 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1475 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1476 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1477 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1478 builtin_type_vec64, builtin_type_vec128): Remove declarations.
1479 (init_vector_type): Add prototype.
1481 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
1482 i386_sse_type members.
1483 (i386_mmx_type, i386_sse_type): Change from variables to functions.
1484 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
1485 (i386_init_types): Do not build vector types.
1486 (i386_mmx_type, i386_sse_type): New functions.
1487 (i386_register_type): Call them instead of using global variables.
1488 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
1489 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
1490 of using global variable.
1492 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
1493 and ppc_builtin_type_vec128 members.
1494 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
1495 (rs6000_builtin_type_vec128): Likewise.
1496 (rs6000_register_type): Call them instead of using builtin_type_vec64
1497 and builtin_type_vec128.
1498 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
1500 * spu-tdep.c (struct gdbarch_tdep): New data type.
1501 (spu_builtin_type_vec128): Remove variable.
1502 (spu_builtin_type_vec128): New function.
1503 (spu_register_type): Call it instead of using global variable.
1504 (spu_gdbarch_init): Allocate tdep structure.
1505 (spu_init_vector_type): Remove function.
1506 (_initialize_spu_tdep): Do not call it.
1508 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1510 * amd64-tdep.c (struct amd64_register_info): Remove.
1511 (amd64_register_info): Remove.
1512 (amd64_register_names): New static variable.
1513 (AMD64_NUM_REGS): Use amd64_register_names instead of
1514 amd64_register_info.
1515 (amd64_register_name): Likewise.
1516 (amd64_register_type): Do not refer to amd64_register_info.
1518 * s390-tdep.c (struct s390_register_info): Remove.
1519 (s390_register_info): Remove.
1520 (s390_register_name): Do not refer to s390_register_info.
1521 (s390_register_type): Likewise.
1523 * sparc64-tdep.c (struct sparc64_register_info): Remove.
1524 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
1525 (sparc64_register_names, sparc64_pseudo_register_names): New.
1526 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
1527 sparc64_register_names and sparc64_pseudo_register_names instead of
1528 sparc64_register_info and sparc64_pseudo_register_info.
1529 (sparc64_register_name): Likewise.
1530 (sparc64_register_type): Do not refer to sparc64_register_info
1531 and sparc64_pseudo_register_info.
1533 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1535 * c-lang.c (cplus_builtin_types): Remove.
1536 (enum cplus_primitive_types): New data type.
1537 (cplus_language_arch_info): New function.
1538 (cplus_language_defn): Set la_language_arch_info member. Do not set
1539 la_builtin_type_vector and string_char_type members.
1541 * f-lang.c (f_builtin_types): Remove.
1542 (enum f_primitive_types): New data type.
1543 (f_language_arch_info): New function.
1544 (f_language_de): Set la_language_arch_info member. Do not set
1545 la_builtin_type_vector and string_char_type members.
1547 * m2-lang.c (m2_builtin_types): Remove.
1548 (enum m2_primitive_types): New data type.
1549 (m2_language_arch_info): New function.
1550 (m2_language_defn): Set la_language_arch_info member. Do not set
1551 la_builtin_type_vector and string_char_type members.
1553 * objc-lang.c (objc_builtin_types): Remove.
1554 (objc_language): Set la_language_arch_info member. Do not set
1555 la_builtin_type_vector and string_char_type members.
1557 * p-lang.c (pascal_builtin_types): Remove.
1558 (enum pascal_primitive_types): New data type.
1559 (pascal_language_arch_info): New function.
1560 (pascal_language_defn): Set la_language_arch_info member. Do not set
1561 la_builtin_type_vector and string_char_type members.
1563 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1565 * regcache.c (struct regcache): Add ptid_t member.
1566 (regcache_xmalloc): Initialize it.
1567 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
1568 (regcache_dup): Likewise.
1569 (regcache_dup_no_passthrough): Likewise.
1570 (current_regcache): Make static.
1571 (registers_ptid): Remove variable.
1572 (get_thread_regcache): New function.
1573 (get_current_regcache): New function.
1574 (registers_changed): Implement by freeing current regcache.
1575 (regcache_raw_read): Do not refer to current_regcache. Set
1576 inferior_ptid to regcache->ptid while calling target routines.
1577 (regcache_raw_write): Likewise.
1578 (regcache_raw_supply): Do not refer to current_regcache.
1579 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
1580 (write_pc_pid): Likewise.
1581 (build_regcache): Remove.
1582 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
1583 or deprecated_register_gdbarch_swap. Do not initialize
1585 * regcache.h (get_current_regcache): Add prototype.
1586 (get_thread_regcache): Likewise.
1587 (current_regcache): Remove declaration.
1589 * corelow.c (core_open): Replace current_regcache by
1590 get_current_regcache ().
1591 * frame.c (frame_pop): Likewise.
1592 (put_frame_register): Likewise.
1593 (get_current_frame, create_new_frame): Likewise.
1594 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
1595 * stack.c (return_command): Likewise.
1596 * infcall.c (call_function_by_hand): Likewise.
1597 * infrun.c (resume): Likewise.
1598 (save_inferior_status, restore_inferior_status): Likewise.
1599 * linux-fork.c (fork_load_infrun_state): Likewise.
1600 (fork_save_infrun_state): Likewise.
1601 * win32-nat.c (win32_resume): Likewise.
1602 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
1603 * monitor.c (monitor_wait): Likewise.
1604 * remote.c (remote_wait): Likewise.
1605 * remote-mips.c (mips_wait): Likewise.
1607 * bsd-kvm.c (bsd_kvm_open): Likewise
1608 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
1609 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
1610 * i386-linux-nat.c (i386_linux_resume): Likewise.
1611 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
1612 (ia64_linux_stopped_data_address): Likewise.
1614 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
1615 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1616 * mep-tdep.c (current_me_module, current_options): Likewise.
1617 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
1619 * linux-nat.c (linux_nat_do_thread_registers): Use thread
1620 regcache instead of current_regcache. Call target_fetch_registers.
1621 (linux_nat_corefile_thread_callback): Update call site.
1622 (linux_nat_do_registers): Likewise.
1623 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
1624 of current_regcache.
1625 (procfs_make_note_section): Likewise.
1626 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
1627 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1628 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
1629 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1631 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1633 * regcache.c (read_register, read_register_pid): Remove.
1634 (write_register, write_register_pid): Likewise.
1635 * regcache.h (read_register, read_register_pid): Remove prototype.
1636 (write_register, write_register_pid): Likewise.
1638 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1640 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
1641 (write_pc): Likewise. Remove default implementation, add predicate.
1642 * gdbarch.c, gdbarch.h: Regenerate.
1643 * regcache.c (read_pc_pid): Use current regcache instead of calling
1645 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
1647 (generic_target_write_pc): Remove.
1648 * inferior.h (generic_target_write_pc): Remove.
1649 * frv-tdep.c (frv_gdbarch_init): Do not install it.
1650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1651 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1652 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1653 * sh-tdep.c (sh_gdbarch_init): Likewise.
1654 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1656 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
1657 argument. Use REGCACHE instead of calling read_register_pid.
1658 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
1659 * hppa-tdep.c (hppa_read_pc): Likewise.
1660 * hppa-tdep.h (hppa_read_pc): Likewise.
1661 * ia64-tdep.c (ia64_read_pc): Likewise.
1662 * m32r-tdep.c (m32r_read_pc): Likewise.
1663 * mep-tdep.c (mep_read_pc): Likewise.
1664 * mn10300-tdep.c (mn10300_read_pc): Likewise.
1665 * spu-tdep.c (spu_read_pc): Likewise.
1667 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
1668 argument. Use REGCACHE instead of calling write_register_pid.
1669 * avr-tdep.c (avr_write_pc): Likewise.
1670 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
1671 * hppa-tdep.c (hppa_write_pc): Likewise.
1672 * hppa-tdep.h (hppa_write_pc): Likewise.
1673 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
1674 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
1675 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
1676 * ia64-tdep.c (ia64_write_pc): Likewise.
1677 * ia64-tdep.h (ia64_write_pc): Likewise.
1678 * m32r-tdep.c (m32r_write_pc): Likewise.
1679 * m88k-tdep.c (m88k_write_pc): Likewise.
1680 * mep-tdep.c (mep_write_pc): Likewise.
1681 * mips-tdep.c (mips_write_pc): Likewise.
1682 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1683 * mn10300-tdep.c (mn10300_write_pc): Likewise.
1684 * sparc-tdep.c (sparc_write_pc): Likewise.
1685 * spu-tdep.c (spu_write_pc): Likewise.
1687 * mips-tdep.c (read_signed_register): Remove.
1688 (read_signed_register_pid): Likewise.
1689 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
1690 Use REGCACHE instead of calling read_signed_register_pid.
1692 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1694 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
1695 * gdbarch.c, gdbarch.h: Regenerate.
1696 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
1697 (push_dummy_code): Likewise. Pass it to callee.
1698 (call_function_by_hand): Pass current regcache to push_dummy_code.
1700 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
1701 argument. Use it instead of current_regcache.
1703 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
1704 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1706 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1708 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
1709 * gdbarch.c, gdbarch.h: Regenerate.
1710 * infrun.c (handle_inferior_event): Pass current frame to
1711 gdbarch_get_longjmp_target.
1713 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
1714 Read registers from FRAME instead of using read_register.
1715 Use get_frame_arch instead of current_gdbarch.
1716 * arm-tdep.c (arm_get_longjmp_target): Likewise.
1717 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1718 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1719 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
1720 (mips64_linux_get_longjmp_target): Likewise.
1721 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1723 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1725 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
1726 * gdbarch.c, gdbarch.h: Regenerate.
1727 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
1728 * arch-utils.h (generic_skip_trampoline_code): Likewise.
1729 * infrun.c (handle_inferior_event): Pass current frame to
1730 gdbarch_skip_trampoline_code and skip_language_trampoline.
1732 * language.c (unk_lang_trampoline): Add FRAME argument.
1733 (skip_language_trampoline): Add FRAME argument. Pass it to
1734 skip_trampoline callback.
1735 * language.h: Add forward declaration of struct frame_info.
1736 (struct language_defn): Add FRAME argument to skip_trampoline.
1737 (skip_language_trampoline): Add FRAME argument.
1738 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
1739 to skip_trampoline callback.
1740 * cp-abi.h: Add forward declaration of struct frame_info.
1741 (cplus_skip_trampoline): Add FRAME argument.
1742 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
1743 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
1744 to gdbarch_skip_trampoline_code.
1745 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
1746 to gdbarch_skip_trampoline_code.
1748 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
1749 * symtab.h (find_solib_trampoline_target): Likewise.
1750 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
1751 find_solib_trampoline_target.
1753 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
1754 from FRAME instead of calling read_register.
1756 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
1757 argument. Read registers from FRAME instead of using read_register.
1758 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
1759 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
1761 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
1764 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
1766 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
1767 registers from FRAME instead of using read_signed_register.
1769 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
1771 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
1772 instead of using read_register.
1773 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
1774 ppc64_standard_linkage_target.
1775 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
1776 Pass it to find_solib_trampoline_target. Read registers from FRAME
1777 instead of using read_register.
1779 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
1782 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1784 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
1786 * gdbarch.c, gdbarch.h: Regenerate.
1787 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
1789 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
1790 registers from FRAME instead of using read_register.
1791 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1792 to alpha_next_pc. Use get_frame_pc instead of read_pc.
1793 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
1796 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
1797 from FRAME instead of using read_register.
1798 (thumb_get_next_pc): Likewise.
1799 (arm_get_next_pc): Likewise.
1800 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1801 to arm_get_next_pc. Use get_frame_pc instead of read_register.
1802 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
1805 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
1806 from FRAME instead of using read_register.
1807 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1808 to find_step_target.
1810 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
1811 from FRAME instead of using read_register / read_signed_register.
1812 (extended_mips16_next_pc): Likewise.
1813 (mips16_next_pc): Likewise.
1814 (mips_next_pc): Likewise.
1815 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1816 to mips_next_pc. Use get_frame_pc instead of read_pc.
1817 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
1820 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
1821 of current frame. Read registers from FRAME.
1822 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
1823 branch_dest. Use get_frame_pc instead of read_pc.
1824 (rs6000_software_single_step): Likewise.
1825 (bl_to_blrl_insn_p): Do not call branch_dest.
1826 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
1829 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
1830 Read registers from FRAME instead of current regcache.
1831 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
1832 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
1833 * sparc-tdep.c (sparc_address_from_register): Remove.
1834 (sparc_analyze_control_transfer): Pass FRAME argument instead of
1835 GDBARCH. Pass FRAME to step_trap callback.
1836 (sparc_step_trap): Add FRAME argument.
1837 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1838 to sparc_analyze_control_transfer. Read registers from FRAME instead
1839 of calling sparc_address_from_register.
1840 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
1842 (sparc_address_from_register): Remove prototype.
1843 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
1844 (sparcnbsd_step_trap): Add FRAME argument.
1846 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
1847 by FRAME. Read registers from FRAME instead of REGCACHE.
1849 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1851 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
1852 instead of calling read_register.
1854 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
1855 calling write_register.
1857 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
1858 calling write_register.
1860 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
1861 instead of calling read_register.
1862 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
1863 instead of calling read_register and write_register.
1865 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
1866 instead of current_regcache.
1868 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
1869 of calling write_register.
1870 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
1871 parameter instead of current_regcache.
1873 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
1874 instead of calling read_register.
1875 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
1876 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
1877 (mips_n32n64_push_dummy_call): Likewise.
1878 (mips_o32_push_dummy_call): Likewise.
1879 (mips_o64_push_dummy_call): Likewise.
1881 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
1882 parameter instead of current_regcache.
1884 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
1885 Use it instead of read_register and write_register.
1886 (xtensa_register_read_masked): Likewise.
1887 (xtensa_pseudo_register_read): Update call.
1888 (xtensa_pseudo_register_write): Likewise.
1889 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
1890 instead of calling read_register.
1891 (xtensa_push_dummy_call): Update comment.
1893 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1895 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
1896 by frame_unwind_register_signed calls.
1897 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
1898 frame allocations when called with NULL NEXT_FRAME parameter.
1899 (read_next_frame_reg): Remove.
1901 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
1902 instead of reading the FPSCR register.
1903 (sh_frame_cache): Pass unwound FPSCR register value to
1904 sh_analyze_prologue.
1905 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
1907 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
1908 instead of reading the CTBP register.
1909 (v850_frame_cache): Pass unwound CTBP register value to
1910 v850_analyze_prologue.
1912 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1914 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
1915 * sh-tdep.c (sh_show_regs): Likewise.
1916 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
1917 (sh_generic_show_regs): Add FRAME parameter. Use register
1918 values from that frame instead of calling read_register.
1919 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
1920 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
1921 sh_dsp_show_regs): Likewise.
1922 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
1923 sh64_show_regs): Likewise.
1925 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1927 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
1928 current regcache instead of calling read_register.
1930 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1932 * mep-tdep.c (current_me_module): Read from current regcache
1933 instead of calling read_register.
1934 (current_options): Likewise.
1936 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1938 * cris-tdep.c (cris_stopped_data_address): Read register values
1939 from current frame instead of calling read_register.
1940 * frv-tdep.c (frv_stopped_data_address): Likewise.
1942 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1944 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
1945 instead of write_register (PC_REGNUM, ...).
1947 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1949 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
1950 explaining why the PC adjustment code is necessary.
1952 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
1954 * m68k-tdep.h (enum m68k_flavour): New.
1955 (struct gdbarch_tdep): New fields
1956 float_return, flavour and fpregs_present.
1957 * m68k-tdep.c (m68k_register_type): Use
1958 fpregs_present and conditionalize floating
1959 registers type on flavour.
1960 (m68k_register_names): New.
1961 (m68k_register_name): Use the above.
1962 (m68k_convert_register_p): Consult fpregs_present.
1963 (m68k_register_to_value, m68k_value_to_register):
1964 Use register_type to obtain the type of floating
1966 (m68k_svr4_extract_return_value): Check tdep->float_return.
1967 Use register_type to get the type of floating
1969 (m68k_svr4_store_return_value): Likewise.
1970 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
1971 (m68k_analyze_register_saves): Likewise.
1972 (m68k_gdbarch_init): Extract infromation
1973 from XML description, if present. Guess coldfire by
1974 looking at the file, if present. Conditionalize
1975 setting of long double format. Set decr_pc_after_break
1976 to 2 on coldfire and fido. Enable XML-driven
1977 register description.
1978 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
1979 size of tdep->fpreg_type, as opposed to hardcoded value.
1980 * Makefile.in (m68k-tdep.o): Update dependencies.
1982 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1984 * NEWS: Mention "info spu" commands and qXfer:spu:read and
1985 qXfer:spu:write remote packet types.
1987 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1989 * xml-tdesc.c (tdesc_start_target): New.
1990 (target_attributes): New.
1991 (tdesc_elements): Use it.
1992 * features/gdb-target.dtd: Add #FIXED version attribute for
1995 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
1997 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
1999 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2001 * fork-child.c (fork_inferior): Update comment.
2003 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2005 * features/Makefile: Generate regformats for mips-linux and
2007 * features/sort-regs.xsl: Correct typo.
2008 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2009 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2012 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2014 * config/mips/linux.mh (TDEP_XML): New.
2015 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2016 * mips-linux-nat.c (mips_linux_register_addr): Handle
2017 MIPS_RESTART_REGNUM.
2018 (mips64_linux_register_addr): Likewise.
2019 (super_xfer_partial, mips_linux_xfer_partial): New.
2020 (_initialize_mips_linux_nat): Add them to the target_ops.
2021 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2022 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2023 (mips_linux_o32_sigframe_init)
2024 (mips_linux_n32n64_sigframe_init): Likewise.
2025 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2026 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2027 "org.gnu.gdb.mips.linux" feature.
2028 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2029 (mips_linux_restart_reg_p): New prototype.
2030 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2031 initialization routine.
2032 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2034 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2036 * Makefile.in (mips-tdep.o): Update.
2037 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2038 (mips_n32_n64_aliases, mips_register_aliases): New.
2039 (mips_register_name): Call tdesc_register_name.
2040 (mips_tdesc_register_reggroup_p): New.
2041 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2042 (mips_gdbarch_init): Add target-described register support.
2043 Register aliases for register names.
2044 * target-descriptions.c (tdesc_register_name): Make global.
2045 (tdesc_register_in_reggroup_p): New function, broken out from
2046 tdesc_register_reggroup_p.
2047 (tdesc_register_reggroup_p): Use it.
2048 * target-descriptions.h (tdesc_register_name)
2049 (tdesc_register_in_reggroup_p): New prototypes.
2050 * NEWS: Correct formatting. Mention MIPS register support.
2051 * features/mips-cp0.xml, features/mips-fpu.xml,
2052 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2053 features/mips64-cpu.xml: New files.
2055 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2057 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2058 * valops.c (value_cast): Likewise.
2059 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2060 * ui-out.c (ui_out_field_core_addr): Likewise.
2061 * tracepoint.c (tracepoints_info): Likewise.
2062 * symtab.c (print_msymbol_info): Likewise.
2063 * solib-irix.c (irix_current_sos)
2064 (irix_open_symbol_file_object): Likewise.
2065 * remote.c (build_remote_gdbarch_data): Likewise.
2066 * prologue-value.c (make_pv_area): Likewise.
2067 * procfs.c (info_mappings_callback): Likewise.
2068 * printcmd.c (print_scalar_formatted)
2069 (deprecated_print_address_numeric): Likewise.
2070 * memattr.c (mem_info_command): Likewise.
2071 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2072 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2073 * exec.c (print_section_info): Likewise.
2074 * dwarf2read.c (read_subrange_type): Likewise.
2075 * dwarf2loc.c (find_location_expression): Likewise.
2076 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2077 (signed_address_type, execute_stack_op): Likewise.
2078 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2079 * gdbarch.c, gdbarch.h: Regenerate.
2081 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2083 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2084 * arch-utils.c (show_architecture): Likewise.
2085 * remote-mips.c (mips_open): Likewise
2086 * nto-tdep.c (nto_find_and_open_solib)
2087 (nto_init_solib_absolute_prefix): Likewise.
2088 * nto-procfs (procfs_open): Likewise.
2089 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2090 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2091 * gdbarch.c, gdbarch.h: Regenerate.
2093 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2095 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2096 * gdbtypes.c (build_flt): Likewise.
2097 * gdbarch.c, gdbarch.h: Regenerate.
2099 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2101 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2102 gdbarch_breakpoint_from_pc.
2103 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2104 * remote.c (remote_insert_breakpoint)
2105 (remote_insert_hw_breakpoint): Likewise.
2106 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2107 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2108 * breakpoint.h (bp_target_info): Likewise (comment).
2109 * breakpoint.c (read_memory_nobpt): Likewise.
2110 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2111 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2112 * gdbarch.c, gdbarch.h: Regenerate.
2114 2007-06-13 Markus Deuling <deuling@de.ibm.com>
2116 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
2117 * solib-svr4.c (svr4_truncate_ptr): Likewise.
2118 * solib-pa64.c (read_dynamic_info): Likewise.
2119 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2120 * solib.c (info_sharedlibrary_command): Likewise.
2121 * s390-nat.c (SUBOFF): Likewise.
2122 * p-valprint.c (pascal_val_print): Likewise.
2123 * procfs.c (info_proc_mappings): Likewise.
2124 * printcmd.c (decode_format): Likewise.
2125 * nto-tdep.c (nto_truncate_ptr): Likewise.
2126 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2127 (mips64_linux_get_longjmp_target): Likewise.
2128 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2129 * jv-valprint.c (java_value_print): Likewise.
2130 * jv-lang.c (get_java_object_header_size): Likewise.
2131 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2132 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2133 (hppa_hpux_unwind_adjust_stub): Likewise.
2134 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2135 * gdbtypes.c (make_pointer_type, make_reference_type)
2136 (smash_to_memberptr_type): Likewise.
2137 * gdbarch.c, gdbarch.h: Regenerate.
2139 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2141 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
2142 (print_gp_register_row): Stop before printing a register bigger
2143 than the ABI register size.
2144 (mips_print_registers_info): Update call to mips_print_register.
2146 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2148 * expression.h (enum exp_opcode): Document a register name for
2150 * parse.c (write_dollar_variable): Write the register name for
2152 (operator_length_standard): Expect the register name following
2154 * ada-lang.c (resolve_subexp): Likewise.
2155 * ax-gdb.c (gen_expr): Likewise.
2156 * eval.c (evaluate_subexp_standard): Likewise.
2157 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2159 * tracepoint.c (encode_actions): Likewise.
2161 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2163 * utils.c (set_screen_size): Use INT_MAX for default columns.
2165 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2167 * remote.c (remote_protocol_features): Add qXfer:spu:read and
2168 qXfer:spu:write packet types.
2170 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2172 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
2173 * gdbarch.c, gdbarch.h: Regenerate.
2175 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2177 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
2178 gdbarch_stab_reg_to_regnum.
2179 * stabsread.c (define_symbol): Likewise.
2180 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
2181 gdbarch_ecoff_reg_to_regnum.
2182 * mdebugread.c (parse_symbol): Likewise.
2183 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
2184 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
2185 gdbarch_dwarf_reg_to_regnum.
2186 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
2187 * coffread.c (process_coff_symbol): Likewise.
2188 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
2189 gdbarch_dwarf2_reg_to_regnum.
2190 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
2191 (locexpr_describe_location): Likewise.
2192 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
2193 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
2194 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
2195 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
2196 * gdbarch.c, gdbarch.h: Regenerate.
2198 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2200 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
2201 gdbarch_smash_text_address.
2202 * somread.c (som_symtab_read): Likewise.
2203 * elfread.c (record_minimal_symbol): Likewise.
2204 * dbxread.c (process_one_symbol): Likewise.
2205 * coffread.c (coff_symtab_read): Likewise.
2206 * gdbarch.c, gdbarch.h: Regenerate.
2208 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2210 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
2211 * findvar.c (value_from_register): Likewise.
2212 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
2213 * valops.c (value_assign): Likewise.
2214 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
2215 gdbarch_convert_register_p.
2216 * findvar.c (value_from_register): Likewise.
2217 * valops.c (value_assign): Likewise.
2218 * gdbarch.c, gdbarch.h: Regenerate.
2220 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2222 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
2223 gdbarch_register_sim_regno.
2224 * sim-regno.h (sim_regno): Likewise (comment).
2225 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
2226 * gdbarch.c, gdbarch.h: Regenerate.
2228 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2230 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
2231 gdbarch_virtual_frame_pointer.
2232 * tracepoint.c (encode_actions): Likewise.
2233 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
2234 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
2235 * gdbarch.c, gdbarch.h: Regenerate.
2237 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2239 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
2240 * p-lang.c (pascal_create_fundamental_type): Likewise.
2241 * objc-lang.c (objc_create_fundamental_type): Likewise.
2242 * mdebugread.c (_initialize_mdebugread): Likewise.
2243 * m2-lang.c (m2_create_fundamental_type)
2244 (_initialize_m2_language): Likewise.
2245 * gdbtypes.c (build_gdbtypes): Likewise.
2246 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2247 * doublest.c (floatformat_from_length): Likewise.
2248 * c-lang.c (c_create_fundamental_type): Likewise.
2249 * ada-lang.c (ada_create_fundamental_type)
2250 (ada_language_arch_info): Likewise.
2251 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
2252 * value.c (unpack_double): Likewise (comment).
2253 * gdbtypes.c (build_gdbtypes): Likewise.
2254 * doublest.c (floatformat_from_length): Likewise.
2255 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
2256 * valarith.c (value_binop): Likewise.
2257 * p-lang.c (pascal_create_fundamental_type): Likewise.
2258 * objc-lang.c (objc_create_fundamental_type): Likewise.
2259 * mdebugread.c (_initialize_mdebugread): Likewise.
2260 * m2-lang.c (m2_create_fundamental_type): Likewise.
2261 * gdbtypes.c (build_gdbtypes): Likewise.
2262 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2263 * doublest.c (floatformat_from_length): Likewise.
2264 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
2265 * c-lang.c (c_create_fundamental_type): Likewise.
2266 * ada-lex.l (processReal): Likewise.
2267 * ada-lang.c (ada_create_fundamental_type)
2268 (ada_language_arch_info): Likewise.
2269 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
2270 * value.c (unpack_double): Likewise (comment).
2271 * gdbtypes.c (build_gdbtypes): Likewise.
2272 * doublest.c (floatformat_from_length): Likewise.
2273 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
2274 gdbarch_long_double_bit.
2275 * p-lang.c (pascal_create_fundamental_type): Likewise.
2276 * objc-lang.c (objc_create_fundamental_type): Likewise.
2277 * m2-lang.c (m2_create_fundamental_type): Likewise.
2278 * gdbtypes.c (build_gdbtypes): Likewise.
2279 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2280 * doublest.c (floatformat_from_length): Likewise.
2281 * c-lang.c (c_create_fundamental_type): Likewise.
2282 * ada-lex.l (processReal): Likewise.
2283 * ada-lang.c (ada_create_fundamental_type)
2284 (ada_language_arch_info): Likewise.
2285 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
2286 gdbarch_long_double_format.
2287 * gdbtypes.c (build_gdbtypes): Likewise.
2288 * doublest.c (floatformat_from_length): Likewise.
2289 * gdbarch.c, gdbarch.h: Regenerate.
2291 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2293 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
2294 * ada-lang.c (ada_create_fundamental_type)
2295 (ada_language_arch_info): Likewise.
2296 * c-lang.c (c_create_fundamental_type): Likewise.
2297 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2298 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2299 * m2-lang.c (m2_create_fundamental_type): Likewise.
2300 * objc-lang.c (objc_create_fundamental_type): Likewise.
2301 * p-lang.c (pascal_create_fundamental_type): Likewise.
2302 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
2303 * c-exp.y (parse_number): Likewise.
2304 * objc-exp.y (parse_number): Likewise.
2305 * ada-lex.l (processInt): Likewise.
2306 * f-exp.y (parse_number): Likewise.
2307 * p-exp.y (parse_number): Likewise.
2308 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
2309 (gdbtypes_post_init, build_gdbtypes): Likewise.
2310 * p-lang.c (pascal_create_fundamental_type): Likewise.
2311 * parse.c (build_parse): Likewise.
2312 * xcoffread.c (_initialize_xcoffread): Likewise.
2313 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
2314 (read_range_type): Likewise.
2315 * objc-lang.c (objc_create_fundamental_type): Likewise.
2316 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
2317 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
2318 (m2_create_fundamental_type): Likewise.
2319 * c-lang.c (c_create_fundamental_type): Likewise.
2320 * coffread.c (coff_read_enum_type): Likewise.
2321 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
2322 * dwarf2read.c (new_symbol): Likewise.
2323 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
2324 * c-exp.y (parse_number): Likewise.
2325 * objc-exp.y (parse_number): Likewise.
2326 * ada-lex.l (processInt): Likewise.
2327 * f-exp.y (parse_number): Likewise.
2328 * p-exp.y (parse_number): Likewise.
2329 * valarith.c (value_binop): Likewise.
2330 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
2331 * ada-lang.c (ada_create_fundamental_type)
2332 (ada_language_arch_info): Likewise.
2333 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2334 * symfile.c (TARGET_LONG_BYTES): Likewise.
2335 * p-lang.c (pascal_create_fundamental_type): Likewise.
2336 * objc-lang.c (objc_create_fundamental_type): Likewise.
2337 * m2-lang.c (m2_create_fundamental_type): Likewise.
2338 * f-lang.c (f_create_fundamental_type): Likewise.
2339 * c-lang.c (c_create_fundamental_type): Likewise.
2340 * coffread.c (decode_base_type): Likewise.
2341 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
2342 * c-exp.y (parse_number): Likewise.
2343 * objc-exp.y (parse_number): Likewise.
2344 * p-exp.y (parse_number): Likewise.
2345 * ada-lang.c (ada_create_fundamental_type)
2346 (ada_language_arch_info): Likewise.
2347 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
2348 * stabsread.c (read_range_type): Likewise.
2349 * p-lang.c (pascal_create_fundamental_type): Likewise.
2350 * objc-lang.c (objc_create_fundamental_type): Likewise.
2351 * m2-lang.c (m2_create_fundamental_type): Likewise.
2352 * f-lang.c (f_create_fundamental_type): Likewise.
2353 * c-lang.c (c_create_fundamental_type): Likewise.
2354 * gdbarch.c, gdbarch.h: Regenerate.
2356 2007-06-12 Andreas Schwab <schwab@suse.de>
2358 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
2359 (struct frame_unwind): Add dealloc_cache.
2360 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
2362 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
2363 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
2364 (libunwind_frame_unwind): Set dealloc_cache.
2365 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
2367 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2368 Markus Deuling <deuling@de.ibm.com>
2370 * remote.c (remote_write_qxfer): New function.
2371 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
2372 (remote_read_qxfer): Do not cache empty objects.
2373 (_initialize_remote): Add PACKET_qXfer_spu_read and
2374 PACKET_qXfer_spu_write.
2376 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2378 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
2379 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
2381 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
2382 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
2383 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
2384 * spu-tdep.c (infospucmdlist): New variable.
2385 (spu_register_name): Handle additional pseudo registers.
2386 (spu_register_type): Likewise.
2387 (spu_pseudo_register_read): Likewise.
2388 (spu_pseudo_register_write): Likewise.
2389 (spu_pseudo_register_read_spu): New function.
2390 (spu_pseudo_register_write_spu): Likewise.
2391 (info_spu_event_command): New function.
2392 (info_spu_signal_command): Likewise.
2393 (info_spu_mailbox_list): Likewise.
2394 (info_spu_mailbox_command): Likewise.
2395 (spu_mfc_get_bitfield): Likewise.
2396 (info_spu_dma_cmdlist): Likewise.
2397 (info_spu_dma_command): Likewise.
2398 (info_spu_proxydma_command): Likewise.
2399 (info_spu_command): Likewise.
2400 (_initialize_spu_tdep): Install "info spu" commands.
2402 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2404 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
2405 accessing non-seekable spufs files.
2407 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2409 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
2410 gdbarch_skip_trampoline_code.
2411 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2412 * objc-lang.c (objc_skip_trampoline)
2413 (objc_submethod_helper_data): Likewise.
2414 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
2415 * infrun.c (handle_inferior_event): Likewise.
2416 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
2417 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
2418 gdbarch_in_solib_return_trampoline.
2419 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2420 * infrun.c (handle_inferior_event): Likewise.
2421 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
2422 * gdbarch.c, gdbarch.h: Regenerate.
2424 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2426 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
2427 * symtab.c (find_function_start_sal, in_prologue): Likewise.
2428 * linespec.c (minsym_found): Likewise.
2429 * infrun.c (step_into_function): Likewise.
2430 * gdbarch.c, gdbarch.h: Regenerate.
2432 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2434 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
2435 * valops.c (value_allocate_space_in_inferior): Likewise.
2436 * gdbarch.c, gdbarch.h: Regenerate.
2438 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2440 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
2441 gdbarch_memory_insert_breakpoint.
2442 * mem-break.c (memory_insert_breakpoint): Likewise.
2443 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
2444 gdbarch_memory_remove_breakpoint.
2445 * mem-break.c (memory_remove_breakpoint): Likewise.
2446 * gdbarch.c, gdbarch.h: Regenerate.
2448 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2450 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
2451 gdbarch_fetch_tls_load_module_address.
2452 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
2453 gdbarch_fetch_tls_load_module_address_p.
2454 * gdbarch.c, gdbarch.h: Regenerate.
2456 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2458 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
2459 gdbarch_decr_pc_after_break.
2460 * tracepoint.c (trace_dump_command): Likewise.
2461 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2462 * linux-thread-db.c (check_event): Likewise.
2463 * linux-nat.c (cancel_breakpoints_callback): Likewise.
2464 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
2465 * frame.h: Likewise (comment).
2466 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
2467 * aix-thread.c (aix_thread_wait): Likewise.
2468 * gdbarch.c, gdbarch.h: Regenerate.
2470 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2472 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
2473 gdbarch_address_class_type_flags.
2474 * dwarf2read.c (read_tag_pointer_type): Likewise.
2475 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
2476 gdbarch_address_class_type_flags_p.
2477 * dwarf2read.c (read_tag_pointer_type): Likewise.
2478 * gdbarch.c, gdbarch.h: Regenerate.
2480 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2482 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
2483 * value.c (value_as_address): Likewise (comment).
2484 * remote-mips.c (common_breakpoint): Likewise.
2485 * regcache.c (read_pc_pid): Likewise.
2486 * printcmd.c (do_one_display): Likewise.
2487 * monitor.c (monitor_write_memory, monitor_read_memory)
2488 (monitor_insert_breakpoint): Likewise.
2489 * mips-tdep.c (heuristic_proc_start): Likewise.
2490 * infrun.c (insert_step_resume_breakpoint_at_frame)
2491 (insert_step_resume_breakpoint_at_caller): Likewise.
2492 * buildsym.c (record_line): Likewise.
2493 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
2494 (arm_get_next_pc): Likewise.
2495 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
2496 (store_regs): Likewise.
2497 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2498 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
2499 * gdbarch.c, gdbarch.h: Regenerate.
2501 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2503 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
2504 * tracepoint.c (scope_info): Likewise.
2505 * target.c (debug_print_register): Likewise.
2506 * stack.c (frame_info): Likewise.
2507 * sh-tdep.c (sh_register_reggroup_p): Likewise.
2508 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
2509 (sh64_media_print_registers_info)
2510 (sh64_compact_print_registers_info): Likewise.
2511 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
2512 * remote-sim.c (gdbsim_fetch_register): Likewise.
2513 * remote.c (packet_reg): Likewise (comment).
2514 * reggroups.c (default_register_reggroup_p): Likewise.
2515 * regcache.c (regcache_dump): Likewise.
2516 * printcmd.c (address_info): Likewise.
2517 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2518 * mt-dep.c (mt_registers_info): Likewise.
2519 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
2520 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
2521 (mips_read_fp_register_double, mips_print_fp_register)
2522 (mips_print_register, print_gp_register_row, mips_print_registers_info)
2523 (mips_register_sim_regno): Likewise.
2524 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
2525 * inf-ptrace.c (inf_ptrace_fetch_register)
2526 (inf_ptrace_store_register): Likewise.
2527 * infcmd.c (default_print_registers_info): Likewise.
2528 * ia64-linux-nat.c (ia64_linux_fetch_register)
2529 (ia64_linux_store_register): Likewise.
2530 * i386-linux-nat.c (fetch_register, store_register): Likewise.
2531 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2532 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2533 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
2534 (hppa_hpux_store_register): Likewise.
2535 * findvar.c (locate_var_value): Likewise.
2536 * dwarf2loc.c (locexpr_describe_location): Likewise.
2537 * dwarf2-frame.c (execute_cfa_program): Likewise.
2538 * arm-tdep.c (arm_push_dummy_call): Likewise.
2539 * arch-utils.c (legacy_register_sim_regno): Likewise.
2540 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
2541 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2542 * mi/mi-main.c (mi_cmd_data_list_register_names)
2543 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
2544 (mi_cmd_data_write_register_values): Likewise.
2545 * gdbarch.c, gdbarch.h: Regenerate.
2547 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2549 * target-memory.c (blocks_to_erase): Correct off-by-one error.
2551 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
2553 * remote.c (process_g_packet): Don't check size.
2554 * gdbarch.sh: Remove register_bytes_ok.
2555 * gdbarch.c: Regenerated.
2556 * gdbarch.h: Regenerated.
2557 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
2558 (m68k_register_bytes_ok): Remove.
2559 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
2561 2007-06-06 Andreas Schwab <schwab@suse.de>
2563 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
2564 (destroy_addr_space_name): Define.
2565 (libunwind_load): Get address of destroy_addr_space function.
2566 (libunwind_frame_cache): Destroy unw_addr_space_t object before
2567 returning unsuccessfully.
2568 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
2570 (libunwind_sigtramp_frame_sniffer): Likewise.
2571 (libunwind_get_reg_special): Likewise.
2573 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2575 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
2576 gdbarch_fetch_pointer_argument.
2577 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
2578 * gdbarch.c, gdbarch.h: Regenerate.
2580 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2582 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
2583 gdbarch_have_nonsteppable_watchpoint.
2584 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
2585 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
2586 gdbarch_cannot_step_breakpoint.
2587 * infrun.c (resume): Likewise.
2588 * gdbarch.c, gdbarch.h: Regenerate.
2590 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2592 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
2593 * stack.c (print_frame_args): Likewise.
2594 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
2595 * stack.c (print_args_stub, frame_info): Likewise.
2596 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
2597 * stack.c (print_args_stub, frame_info): Likewise.
2598 * gdbarch.c, gdbarch.h: Regenerate.
2600 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2602 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
2603 gdbarch_coff_make_msymbol_special.
2604 * coffread.c (coff_symtab_read): Likewise.
2605 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
2606 gdbarch_elf_make_msymbol_special.
2607 * elfread.c (elf_symtab_read): Likewise.
2608 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
2609 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
2610 * gdbarch.c, gdbarch.h: Regenerate.
2612 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2614 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
2615 gdbarch_frame_red_zone_size.
2616 * gdbarch.c, gdbarch.h: Regenerate.
2618 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2620 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
2621 * infcall.c (call_function_by_hand): Likewise.
2622 * gcore.c (derive_stack_segment): Likewise.
2623 * frame.c (frame_id_inner): Likewise.
2624 * arch-utils.c (core_addr_lessthan): Likewise (comment).
2625 * ada-lang.c (ensure_lval): Likewise.
2626 * gdbarch.c, gdbarch.h: Regenerate.
2628 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2630 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
2631 gdbarch_address_to_pointer.
2632 * findvar.c (store_typed_address): Likewise.
2633 * gdbtypes.c (make_pointer_type): Likewise (comment).
2634 * procfs.c (procfs_address_to_host_pointer): Likewise.
2635 * std-regs.c (value_of_builtin_frame_reg): Likewise.
2636 (value_of_builtin_frame_fp_reg): Likewise.
2637 (value_of_builtin_frame_pc_reg): Likewise.
2638 * utils.c (paddress): Likewise (comment).
2639 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
2640 gdbarch_pointer_to_address.
2641 * findvar.c (extract_typed_address): Likewise.
2642 * gdbtypes.c (make_pointer_type): Likewise (comment).
2643 * valops.c (value_cast): Likewise (comment).
2644 * gdbarch.c, gdbarch.h: Regenerate.
2646 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2648 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
2649 * infrun.c (handle_inferior_event): Likewise.
2650 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
2651 gdbarch_get_longjmp_target_p.
2652 * breakpoint.c (breakpoint_re_set): Likewise.
2653 * infrun.c (handle_inferior_event): Likewise.
2654 * gdbarch.c, gdbarch.h: Regenerate.
2656 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2658 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
2659 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
2660 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
2661 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
2662 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
2663 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
2664 find_stub_with_shl_get, cover_find_stub_with_shl_get,
2665 initialize_hp_cxx_exception_support, child_enable_exception_callback,
2666 current_ex_event, child_get_current_exception_event): Remove.
2667 (hppa_hpux_inferior_created): Remove.
2668 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
2670 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
2671 (deprecated_exception_support_initialized): Remove.
2672 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
2673 (deprecated_exception_support_initialized): Remove.
2674 (breakpoint_init_inferior): Remove handling of non-zero
2675 deprecated_exception_catchpoints_are_fragile.
2677 * symtab.h (deprecated_hp_som_som_object_present): Remove.
2678 * symtab.c (deprecated_hp_som_som_object_present): Remove.
2679 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
2680 deprecated_hp_som_som_object_present.
2681 * eval.c (evaluate_subexp_standard): Likewise.
2682 * valops.c (value_cast): Likewise.
2684 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
2685 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
2686 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
2688 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2690 * objfiles.h (ImportEntry, ExportEntry): Remove types.
2691 (struct objfile): Remove import_list, import_list_size,
2692 export_list, export_list_size members.
2693 (is_in_import_list): Remove prototype.
2694 * objfiles.c (is_in_import_list): Remove.
2695 * somread.c (init_import_symbols, init_export_symbols): Remove.
2696 (som_symfile_read): Do not call init_import_symbols. Do not
2697 set objfile->export_list and objfile->export_list_size.
2699 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2701 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
2702 Use the original objfile if necessary.
2704 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
2706 * defs.h (ldirname): New prototype.
2707 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
2709 * utils.c (ldirname): New function.
2710 * xml-tdesc.c (file_read_description_xml): Use ldirname.
2712 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2714 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
2716 2007-06-01 Joel Brobecker <brobecker@adacore.com>
2718 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
2720 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2722 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
2724 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2726 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
2727 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
2728 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
2729 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
2730 (ppc_linux_in_sigtramp, insn_is_sigreturn,
2731 ppc_linux_at_sigtramp_return_path): Remove.
2733 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2735 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
2736 (xtensa_register_write_masked, xtensa_register_read_masked)
2737 (xtensa_extract_return_value, xtensa_store_return_value
2738 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
2739 TARGET_BYTE_ORDER by gdbarch_byte_order.
2740 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
2741 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
2742 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
2743 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
2744 (sh64_push_dummy_call, sh64_extract_return_value)
2745 (sh64_store_return_value, sh64_register_convert_to_virtual)
2746 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
2747 (sh64_pseudo_register_write, sh64_do_fp_register)
2748 (sh64_frame_prev_register): Likewise.
2749 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
2750 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
2751 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
2752 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
2753 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2754 * ppc-linux-nat.c (store_register): Likewise.
2755 * nto-tdep.c (nto_find_and_open_solib)
2756 (nto_init_solib_absolute_prefix): Likewise.
2757 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
2758 (mips_convert_register_p, mips_eabi_push_dummy_call)
2759 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2760 (mips_o32_push_dummy_call, mips_o32_return_value)
2761 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
2762 (mips_read_fp_register_single, mips_read_fp_register_double)
2763 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
2764 (mips_breakpoint_from_pc): Likewise.
2765 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
2766 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
2767 (mips_linux_o32_sigframe_init): Likewise.
2768 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2769 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
2770 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
2771 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
2772 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
2773 * coffread.c (process_coff_symbol): Likewise.
2774 * arm-tdep.c (convert_from_extended, convert_to_extended)
2775 (gdb_print_insn_arm): Likewise.
2777 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2779 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
2780 * i386-tdep.c (i386_dbx_reg_to_regnum)
2781 (i386_svr4_reg_to_regnum): Likewise.
2782 * inf-ptrace.c (inf_ptrace_fetch_registers)
2783 (inf_ptrace_store_registers): Likewise.
2784 * corelow.c (get_core_registers): Likewise.
2785 * i386-linux-nat.c (supply_gregset, fill_gregset)
2786 (i386_linux_fetch_inferior_registers)
2787 (i386_linux_store_inferior_registers): Likewise.
2788 * remote.c (init_remote_state,packet_reg_from_regnum)
2789 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
2790 (remote_prepare_to_store,store_registers_using_G)
2791 (remote_store_registers,remote_arch_state): Likewise.
2792 * tracepoint.c (encode_actions): Likewise.
2793 * mi/mi-main.c (mi_cmd_data_list_register_names)
2794 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2795 (mi_cmd_data_write_register_values): Likewise.
2796 * tui/tui-regs.c (tui_show_register_group)
2797 (tui_show_register_group): Likewise.
2798 * xtensa-tdep.h (FP_ALIAS): Likewise.
2799 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
2800 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
2801 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
2802 * win32-nat.c (do_win32_fetch_inferior_registers)
2803 (do_win32_store_inferior_registers,fetch_elf_core_registers
2804 * user-regs.h: Likewise (comment).
2805 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2806 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2807 * target-descriptions.h: Likewise (comment).
2808 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
2809 * target.c (debug_print_register): Likewise.
2810 * stack.c (frame_info): Likewise.
2811 * stabsread.c (define_symbol): Likewise.
2812 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
2813 (sh64_media_print_registers_info)
2814 (sh64_compact_print_registers_info): Likewise.
2815 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2816 * rs6000-nat.c (fetch_register,store_register): Likewise.
2817 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
2818 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
2819 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
2820 * remote-m32r-sdi.c (m32r_fetch_registers)
2821 (m32r_store_registers): Likewise.
2822 * reggroups.c (default_register_reggroup_p): Likewise.
2823 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
2824 (regcache_restore,regcache_dump): Likewise.
2825 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
2826 * mips-tdep.c (mips_xfer_register,mips_register_name)
2827 (mips_register_reggroup_p,mips_pseudo_register_read)
2828 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
2829 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
2830 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
2831 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
2832 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
2833 (print_gp_register_row,mips_print_registers_info)
2834 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2835 (mips_register_sim_regno): Likewise.
2836 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
2837 (mips_linux_n32n64_sigframe_init): Likewise.
2838 * mips-linux-nat.c (mips_linux_register_addr)
2839 (mips64_linux_register_addr): Likewise.
2840 * findvar.c (value_of_register): Likewise.
2841 * infcmd.c (default_print_registers_info,registers_info)
2842 (print_vector_info,print_float_info): Likewise.
2843 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
2844 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2845 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2846 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
2847 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2848 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
2849 (ia64_cannot_store_register,ia64_linux_fetch_registers)
2850 (ia64_linux_store_registers): Likewise.
2851 * hpux-thread.c (hpux_thread_fetch_registers)
2852 (hpux_thread_store_registers): Likewise.
2853 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
2854 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
2855 (h8300_register_type): Likewise.
2856 * dwarf2-frame.c (dwarf2_frame_cache)
2857 (dwarf2_frame_state_alloc_regs): Likewise.
2858 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
2859 (cris_cannot_store_register,crisv32_cannot_fetch_register)
2860 (crisv32_cannot_store_register,cris_register_name): Likewise.
2861 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2862 * arch-utils.c (legacy_register_sim_regno)
2863 (legacy_virtual_frame_pointer): Likewise.
2864 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
2865 * arm-tdep.h: Likewise (comment).
2866 * frv-tdep.c (frv_register_sim_regno): Likewise.
2867 * m68klinux-nat.c (old_fetch_inferior_registers)
2868 (old_store_inferior_registers): Likewise.
2869 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2870 * irix5-nat.c (fetch_core_registers): Likewise.
2871 * hppa-tdep.c (hppa_frame_cache): Likewise.
2872 * hppa-linux-nat.c (hppa_linux_register_addr)
2873 (hppa_linux_fetch_inferior_registers)
2874 (hppa_linux_store_inferior_registers): Likewise.
2875 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
2876 (hppa_hpux_store_inferior_registers): Likewise.
2877 * amd64-nat.c (amd64_native_gregset_reg_offset)
2878 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
2879 * dbug-rom.c (dbug_regname): Likewise.
2880 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
2881 (HARD_PAGE_REGNUM (comment)): Likewise.
2882 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
2883 * i386-tdep.c (i386_dbx_reg_to_regnum)
2884 (i386_svr4_reg_to_regnum): Likewise.
2885 * mi/mi-main.c (mi_cmd_data_list_register_names)
2886 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2887 (mi_cmd_data_write_register_values): Likewise.
2888 * gdbarch.c, gdbarch.h: Regenerate.
2889 * tui/tui-regs.c (tui_show_register_group): Likewise.
2890 * xtensa-tdep.h (FP_ALIAS): Likewise.
2891 * user-regs.h: Likewise (comment).
2892 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2893 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2894 * target-descriptions.h: Likewise (comment).
2895 * target.c (debug_print_register): Likewise.
2896 * stack.c (frame_info): Likewise.
2897 * stabsread.c (define_symbol): Likewise.
2898 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
2899 (sh64_compact_print_registers_info): Likewise.
2900 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2901 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
2902 (regcache_restore,regcache_dump): Likewise.
2903 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
2904 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2905 (mips_stab_reg_to_regnum): Likewise.
2906 * findvar.c (value_of_register): Likewise.
2907 * infcmd.c (default_print_registers_info,registers_info)
2908 (print_vector_info,print_float_info): Likewise.
2909 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2910 * h8300-tdep.c (h8300_register_type): Likewise.
2911 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2912 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
2913 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
2914 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
2915 * parse.c: Remove comment.
2916 * gdbarch.c, gdbarch.h: Regenerate
2918 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2920 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
2921 gdbarch_cannot_fetch_register.
2922 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2923 * hppa-linux-nat.c (fetch_register): Likewise.
2924 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2925 * m68klinux-nat.c (fetch_register): Likewise.
2926 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
2928 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
2929 gdbarch_cannot_store_register.
2930 * hppa-linux-nat.c (store_register): Likewise.
2931 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
2932 * regcache.c (regcache_raw_write): Likewise.
2933 * m68klinux-nat.c (store_register): Likewise.
2934 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
2935 * gdbarch.c, gdbarch.h: Regenerate.
2937 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2939 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
2940 * gdbarch.c, gdbarch.h: Regenerate.
2942 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2944 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
2945 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2946 * gdbarch.c, gdbarch.h: Regenerate.
2948 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2950 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
2951 * ax-gdb.c (gen_bitfield_ref): Likewise.
2952 * mi/mi-main.c (get_register): Likewise.
2953 * findvar.c (default_value_from_register, extract_signed_integer)
2954 (extract_unsigned_integer, extract_long_unsigned_integer)
2955 (store_signed_integer, store_unsigned_integer): Likewise.
2956 * regcache.c (regcache_dump): Likewise.
2957 * value.c (lookup_internalvar, value_of_internalvar)
2958 (set_internalvar): Likewise.
2960 * valprint.c (print_binary_chars, print_octal_chars)
2961 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
2962 * infcmd.c (default_print_registers_info): Likewise.
2963 * arch-utils.c (selected_byte_order, show_endian): Likewise.
2964 * stabsread.c (define_symbol): Likewise.
2965 * doublest.c (floatformat_from_length, floatformat_from_type)
2966 (extract_typed_floating, store_typed_floating): Likewise.
2967 * gdbarch.c, gdbarch.h: Regenerate.
2969 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2971 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
2972 gdbarch_call_dummy_location.
2973 * infcall.c (call_function_by_hand): Likewise.
2974 * inferior.h: Change comment.
2975 * arch-utils.c: Change comment.
2976 * gdbarch.c, gdbarch.h: Regenerate.
2978 2007-05-28 Joel Brobecker <brobecker@adacore.com>
2980 * solib-aix5.c: Delete.
2981 * Makefile.in (solib-aix5.o): Delete rule.
2983 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
2985 * breakpoint.h (enum bpstat_what_main_action): Remove
2986 BPSTAT_WHAT_THROUGH_SIGTRAMP.
2987 * infrun.c (process_event_stop_test): Do not check for it.
2989 2007-05-22 Chris Dearman <chris@mips.com>
2990 Maciej W. Rozycki <macro@mips.com>
2992 * ser-unix.c (show_serial_hwflow): New function.
2993 (hardwire_raw): Add hardware flow control support.
2994 (_initialize_ser_hardwire): Add "set/show remoteflow".
2995 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
2996 * NEWS: Document the new command.
2998 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3000 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3001 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3002 define for i[[3456]]86-*-linux* native configurations.
3003 * config.in, configure: Regenerate.
3005 2007-05-19 Joel Brobecker <brobecker@adacore.com>
3007 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3008 a core file. Add comment in the function description.
3010 2007-05-18 Caroline Tice <ctice@apple.com>
3012 * c-valprint.c (c_value_print): If the initialized field of the
3013 value struct is 0, print out "[uninitialized]" before the value.
3014 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3015 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3016 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3017 ctx->initialized appropriately. Verify no location op follows
3019 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3020 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3021 set_value_initialized.
3022 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3023 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3024 * value.c (struct value): New field, initialized.
3025 (allocate_value): Initialize new field.
3026 (set_value_initialized): New function.
3027 (value_initialized): New function.
3028 * value.h (value_initialized): New extern declaration.
3029 (set_value_initialized): Likewise.
3031 2007-05-18 Caroline Tice <ctice@apple.com>
3033 * MAINTAINERS (Write After Approval): Add self.
3035 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3037 * gdbtypes.c (make_reference_type): Preserve the type chain
3038 and set the length of all the variants of the pointer type.
3040 2007-05-17 Joel Brobecker <brobecker@adacore.com>
3042 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3043 and set the length of all the variants of the pointer type.
3045 2007-05-17 Maciej W. Rozycki <macro@mips.com>
3047 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3049 (mips_o64_push_dummy_call): Reformat a comment.
3051 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
3053 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3054 (score_prologue_frame_base_address): Return fp to keep gdb print
3055 local variables correctly when debugging information is stabs.
3057 (score_analyze_prologue): For software watchpoint, fetch all the
3058 instructions from range [startaddr, pc] once and identify them locally
3059 to reduce memory access.
3060 (score_malloc_and_get_memblock, score_free_memblock)
3061 (score_adjust_memblock_ptr): New functions.
3062 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3064 (score_target_can_use_watch, score_stopped_by_watch)
3065 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3066 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3067 New functions for remote & local hw-watchpoint and hw-breakpoint.
3069 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
3071 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3072 declarations as well.
3074 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3076 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3077 * config/arm/tm-embed.h: Delete file.
3079 * arm-tdep.h (arm_software_single_step): Declare.
3080 * arm-tdep.c (arm_software_single_step): Make global.
3081 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3083 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3084 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3085 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3086 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3088 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3089 allow defines to be overriden by TM file.
3090 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3091 change default to {0xbe,0xbe}.
3092 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3093 arm_obsd_thumb_be_breakpoint): New global variables.
3094 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3095 tdep->thumb_breakpoint_size.
3096 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3097 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3098 tdep->thumb_breakpoint_size.
3100 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3102 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3104 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3107 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3108 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3109 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3110 (mips_abi_regsize): Simplify.
3111 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3112 (mips_n32n64_return_value, mips_o32_push_dummy_call)
3113 (mips_o32_return_value, mips_o64_push_dummy_call)
3114 (mips_o64_return_value): Propogate constant register sizes. Use the
3115 ABI register size instead of mips_stack_argsize.
3116 (mips_dump_tdep): Don't print mips_stack_argsize.
3117 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
3120 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3122 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
3123 * config/mips/tm-linux.h: Delete.
3124 * mips-linux-tdep.c (mips_svr4_so_ops): New.
3125 (mips_linux_in_dynsym_resolve_code): Make static. Use
3126 svr4_in_dynsym_resolve_code.
3127 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
3129 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
3131 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
3132 * Makefile.in (mips-linux-tdep.o): Update.
3133 * solib.c (set_solib_ops): New.
3134 (current_target_so_ops): Update comment.
3135 * solib.h (set_solib_ops): New prototype.
3137 2007-05-16 Chris Dearman <chris@mips.com>
3139 * printcmd.c (do_examine): Fix typos in a comment.
3141 2007-05-16 Richard Sandiford <richard@codesourcery.com>
3143 * configure.ac: Allow sysroots to be relocated under $prefix as
3144 well as $exec_prefix.
3145 * configure: Regenerate.
3147 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3149 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
3150 (offsetof): Do not define.
3151 (find_stub_with_shl_get): Use numerical value 3 instead of
3152 symbolic value TYPE_PROCEDURE.
3154 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3156 * gdb_proc_service.h (paddr_t): Delete typedef.
3157 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
3158 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
3159 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
3160 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
3161 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
3162 * Makefile.in (proc-service.o): Update.
3164 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3166 * Makefile.in (mips-tdep.o): Update.
3167 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
3170 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3172 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
3173 instead of store_typed_address.
3174 * value.c (pack_long): New.
3175 (value_from_longest): Use it.
3176 * value.h (pack_long): New prototype.
3178 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3180 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
3181 DW_EH_PE_signed if appropriate.
3183 2007-05-14 Paul Brook <paul@codesourcery.com>
3184 Daniel Jacobowitz <dan@codesourcery.com>
3186 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
3188 (dwarf_decode_lines): Check for line info without a file.
3190 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3192 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
3195 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3197 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
3199 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
3201 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
3203 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3205 * gdbarch.sh (read_sp): Remove.
3206 * gdbarch.c, gdbarch.h: Regenerate.
3207 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
3209 * avr-tdep.c (avr_read_sp): Remove.
3210 (avr_unwind_sp): New function.
3211 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
3212 * mips-tdep.c (mips_read_sp): Remove.
3213 (mips_unwind_sp): New function.
3214 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
3215 * score-tdep.c (score_read_unsigned_register): Remove.
3216 (score_read_sp): Remove.
3217 (score_unwind_sp): New function.
3218 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
3220 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
3222 * buildsym.c (start_subfile): Handle absolute pathnames
3223 while comparing subfile names.
3225 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3227 * hppa-hpux-tdep.c: Include "regcache.h".
3228 * hppa-linux-tdep.c: Likewise.
3229 * hppa-tdep.c: Include "gdb_stdint.h".
3230 (find_unwind_entry): Cast host pointer to uintptr_t before passing
3232 * Makefile.in: Update dependencies.
3234 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3236 * blockframe.c: Remove obsolete comments.
3237 * alpha-nat.c (fetch_osf_core_registers): Update comment.
3238 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
3239 * hppa-tdep.h (enum hppa_regnum): Likewise.
3240 * mips-tdep.h: Likewise.
3241 * m68hc11-tdep.c: Likewise.
3243 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3245 * inferior.h (read_sp): Remove prototype.
3246 * regcache.c (read_sp): Remove.
3247 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
3248 * infcall.c (call_function_by_hand): Likewise.
3249 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
3251 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3253 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3255 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
3256 instead of read_register and read_register_pid.
3258 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
3259 argument instead of PTID. Use regcache functions instead of
3261 (ia64_linux_insert_watchpoint): Update call.
3262 (ia64_linux_stopped_data_address): Use regcache functions
3263 instead of read_register_pid and write_register_pid.
3265 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3267 * libunwind-frame.h (struct regcache): Add forward declaration.
3268 (libunwind_get_reg_special): Add REGCACHE argument.
3269 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
3270 argument. Pass it to unw_init_remote_p.
3272 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
3273 libunwind_get_reg_special.
3274 (ia64_access_reg): Remove "write" case.
3275 (ia64_access_fpreg): Likewise. Read from next_frame passed
3276 as callback argument instead of from current_regcache.
3277 (ia64_access_rse_reg): Remove "write" case. Read from regcache
3278 passed as callback argument instead of from current_regcache.
3279 (ia64_access_rse_fpreg): New function.
3280 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
3282 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3284 * NEWS: Mention SPU overlay support.
3286 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3288 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
3290 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3292 * breakpoint.c (remove_breakpoint): Do not remove software
3293 breakpoints in unmapped overlay sections.
3295 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3297 * spu-tdep.c: Include "observer.h".
3298 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
3299 (spu_overlay_data): New variable.
3300 (struct spu_overlay_table): New type.
3301 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
3302 spu_overlay_new_objfile): New functions.
3303 (spu_gdbarch_init): Install spu_overlay_update.
3304 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
3305 allocate spu_overlay_data objfile data.
3307 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3309 * gdbarch.sh (overlay_update): New gdbarch function.
3310 (struct obj_section): Add forward declaration.
3311 * gdbarch.c, gdbarch.h: Regenerate.
3313 * symfile.c (simple_overlay_update): Make global.
3314 (target_overlay_update): Remove variable.
3315 (overlay_is_mapped): Call gdbarch_overlay_update instead of
3316 target_overlay_update.
3317 (overlay_load_command): Likewise.
3318 * symfile.h (struct obj_section): Add forward declaration.
3319 (simple_overlay_update): Add prototype.
3321 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
3323 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3325 * observer.sh: Add "struct objfile" forward declaration.
3326 * target.h (deprecated_target_new_objfile_hook): Remove.
3327 * symfile.c (deprecated_target_new_objfile_hook): Remove.
3328 (clear_symtab_users): Call observer_notify_new_objfile.
3329 (symbol_file_add_with_addrs_or_offsets): Likewise.
3330 * rs6000-nat.c: Include "observer.h".
3331 (vmap_ldinfo): Call observer_notify_new_objfile.
3332 (xcoff_relocate_core): Likewise.
3333 * remote.c (remote_new_objfile_chain): Remove.
3334 (remote_new_objfile): Do not call remote_new_objfile_chain.
3335 (_initialize_remote): Use observer_attach_new_objfile.
3336 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
3337 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
3338 (_initialize_tui_hooks): Use observer_attach_new_objfile.
3339 * aix-thread.c: Include "observer.h".
3340 (target_new_objfile_chain): Remove.
3341 (new_objfile): Do not call target_new_objfile_chain.
3342 (_initialize_aix_thread): Use observer_attach_new_objfile.
3343 * hpux-thread.c: Include "observer.h"
3344 (target_new_objfile_chain): Remove.
3345 (hpux_thread_new_objfile): Make static. Do not call
3346 target_new_objfile_chain.
3347 (_initialize_hpux_thread): Use observer_attach_new_objfile.
3348 * linux-thread-db.c: Include "observer.h".
3349 (target_new_objfile_chain): Remove.
3350 (thread_db_new_objfile): Do not call target_new_objfile_chain.
3351 (_initialize_thread_db): Use observer_attach_new_objfile.
3352 * sol-thread.c: Include "observer.h".
3353 (target_new_objfile_chain): Remove.
3354 (sol_thread_new_objfile): Make static. Do not call
3355 target_new_objfile_chain.
3356 (_initialize_sol_thread): Use observer_attach_new_objfile.
3357 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
3358 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
3361 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3363 * gdbarch.sh (remote_translate_xfer_address): Remove.
3364 * gdbarch.h, gdbarch.c: Regenerate.
3365 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
3366 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
3367 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
3368 call gdbarch_remote_translate_xfer_address.
3369 * frv-tdep.c (frv_gdbarch_init): Do not call
3370 set_gdbarch_remote_translate_xfer_address.
3371 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
3372 (ia64_gdbarch_init): Do not install it.
3374 2007-05-11 Bob Wilson <bob.wilson@acm.org>
3376 * NEWS: Mention change in handling the -tui option.
3378 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
3380 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
3383 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3385 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
3386 (breakpoint_inserted_here_p): Call it.
3387 (software_breakpoint_inserted_here_p): Likewise.
3389 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
3391 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
3392 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
3393 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
3394 (inf_ptrace_store_register): Likewise.
3395 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
3396 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
3398 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
3400 * linux-nat.c (linux_trad_target): Adapt parameter list.
3401 * linux-nat.h (linux_trad_target): Likewise.
3403 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
3405 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
3406 (mips_linux_cannot_store_register): Likewise.
3407 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
3408 Return (CORE_ADDR) -1 for registers that cannot be fetched or
3409 stored via ptrace. Use GDBARCH instead of current_gdbarch.
3410 (mips64_linux_register_addr): Likewise.
3411 (mips_linux_register_u_offset): Adapt parameter list. Pass
3412 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
3414 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3415 * config/mips/nm-linux.h: Delete file.
3417 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
3419 * remote.c (remote_detach): Error out if remote can't detach.
3421 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
3423 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
3424 instruction's opcode in the "opcode" variable and declares new
3425 variable "closing_insn".
3427 2007-05-10 Chris Dearman <chris@mips.com>
3428 Maciej W. Rozycki <macro@mips.com>
3430 * cli/cli-setshow.c (do_setshow_command): Remove trailing
3431 whitespace when setting a var_filename.
3433 2007-05-09 Bob Wilson <bob.wilson@acm.org>
3435 * main.c (captured_main): Recognize -tui option and print an error
3436 message when the TUI is not configured.
3438 2007-05-09 Andreas Schwab <schwab@suse.de>
3440 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
3441 set removed members.
3442 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3444 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3446 * gdbarch.sh (deprecated_store_struct_return): Remove.
3447 * gdbarch.c, gdbarch.h: Regenerate.
3448 * frv-tdep.c (frv_store_struct_return): Remove.
3449 (frv_gdbarch_init): Do not install it.
3451 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3453 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
3454 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
3455 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
3457 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3459 * spu-linux-nat.c: Include "gdb_stdint.h".
3460 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
3461 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3462 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
3463 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
3464 (spu_child_wait): Mark up string for translation.
3466 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
3467 Luis Machado <luisgpm@br.ibm.com>
3469 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
3470 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
3471 BC_INSTRUCTION): Define.
3472 (deal_with_atomic_sequence): New function.
3473 (rs6000_software_single_step): Call deal_with_atomic_sequence.
3474 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
3475 gdbarch_software_single_step routine.
3477 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3479 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
3480 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
3481 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
3482 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
3483 spu_child_post_attach, spu_fetch_inferior_registers,
3484 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
3485 memory addresses as ULONGEST, not CORE_ADDR.
3487 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3489 * gdbarch.sh: Add skip_permanent_breakpoint callback.
3490 * gdbarch.h, gdbarch.c: Regenerate.
3492 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
3493 (resume): Call gdbarch_skip_permanent_breakpoint instead of
3494 SKIP_PERMANENT_BREAKPOINT. Inline default case.
3496 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
3497 Add REGCACHE argument. Use it instead of read/write_register.
3498 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
3500 * config/pa/tm-hppah.h: Delete file.
3501 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
3502 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
3504 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
3506 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
3507 * NEWS: Mention improved C++ thunk support.
3508 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
3509 * cp-abi.c (cplus_skip_trampoline): New.
3510 * cp-abi.h (cplus_skip_trampoline): New prototype.
3511 (struct cp_abi_ops): Add skip_trampoline member.
3512 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
3513 (init_gnuv3_ops): Set skip_trampoline.
3515 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3517 * rs6000-tdep.c (struct frame_extra_info): Delete.
3519 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3521 * linux-thread-db.c: Update some FIXME comments.
3522 (thread_db_xfer_partial): Delete.
3523 (init_thread_db_ops): Do not set to_xfer_partial.
3525 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3527 * inftarg.c, infptrace.c: Remove files.
3528 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
3529 (inftarg.o, infptrace.o): Remove rules.
3530 * gdbcore.h (register_addr): Remove prototype.
3531 * inferior.h (kill_inferior, store_inferior_registers,
3532 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
3533 call_ptrace, pre_fork_inferior): Remove prototypes.
3534 * target.h (child_xfer_memory, child_pid_to_exec_file,
3535 child_core_file_to_sym_file, child_post_attach,
3536 child_post_startup_inferior, child_acknowledge_created_inferior,
3537 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
3538 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
3539 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
3540 child_follow_fork, child_reported_exec_events_per_exec_call,
3541 child_has_exited, child_thread_alive): Remove prototypes.
3543 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3545 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
3546 (sparc_store_inferior_registers): Likewise.
3547 * sparc-nat.c (fetch_inferior_registers): Rename to ...
3548 (sparc_fetch_inferior_registers): ... this.
3549 (store_inferior_registers): Rename to ...
3550 (sparc_store_inferior_registers): ... this.
3551 (sparc_target): Update callback names.
3552 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
3553 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
3555 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3557 * linux-nat.c (child_post_attach): Rename to ...
3558 (linux_child_post_attach): ... this. Make static.
3559 (child_follow_fork): Rename to ...
3560 (linux_child_follow_fork): ... this. Make static.
3561 (child_insert_fork_catchpoint): Rename to ...
3562 (linux_child_insert_fork_catchpoint): ... this. Make static.
3563 (child_insert_vfork_catchpoint): Rename to ...
3564 (linux_child_insert_vfork_catchpoint): ... this. Make static.
3565 (child_insert_exec_catchpoint): Rename to ...
3566 (linux_child_insert_exec_catchpoint): ... this. Make static.
3567 (child_pid_to_exec_file): Rename to ...
3568 (linux_child_pid_to_exec_file): ... this. Make static.
3570 (linux_handle_extended_wait): Update call.
3571 (linux_xfer_partial): Update callback routine names.
3573 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3575 * configure.host (alpha*-*-osf[12]*): Remove support.
3576 * NEWS: Mention removed configurations.
3578 * config/alpha/alpha-osf1.mh: Delete file.
3579 * config/alpha/alpha-osf2.mh: Delete file.
3580 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
3582 * config/alpha/nm-osf.h: Delete file.
3583 * config/alpha/nm-osf2.h: Delete file.
3584 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
3585 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
3586 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
3588 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
3589 (register_addr, kernel_u_size): Remove.
3590 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
3592 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3594 * regcache.c (regcache_invalidate): New function.
3595 (register_cached): Remove.
3596 (set_register_cached): Remove.
3597 (deprecated_registers_fetched): Remove.
3598 (registers_changed): Use regcache_invalidate instead
3599 of set_register_cached.
3600 (regcache_raw_read): Update comment.
3602 * regcache.h (regcache_invalidate): Add prototype.
3603 (register_cached): Remove.
3604 (set_register_cached): Remove.
3605 (deprecated_registers_fetched): Remove.
3607 * findvar.c (value_of_register): Do not call register_cached.
3608 * frame.c (frame_register): Likewise.
3609 * tui/tui-regs.c (tui_get_register): Likewise.
3611 * remote.c (fetch_register_using_p): Do not call set_register_cached.
3612 (process_g_packet): Likewise.
3613 (remote_fetch_registers): Likewise.
3614 * remote-sim.c (gdbsim_fetch_register): Likewise.
3615 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
3616 by regcache_invalidate.
3617 (mt_pseudo_register_write): Likewise.
3618 * sh-tdep.c (sh_pseudo_register_write): Likewise.
3620 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
3621 call by loop over regcache_raw_supply (..., NULL).
3623 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3625 * target.h (struct target_ops): Add REGCACHE parameter to
3626 to_prepare_to_store.
3627 (target_prepare_to_store): Likewise.
3628 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
3629 (update_current_target): Adapt prepare_to_store de_fault rule.
3631 * regcache.c (regcache_raw_write): Pass regcache to
3632 target_prepare_to_store.
3634 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
3635 Do not call CHILD_PREPARE_TO_STORE.
3636 * gnu-nat.c (gnu_prepare_to_store): Likewise.
3637 * procfs.c (procfs_prepare_to_store): Likewise.
3639 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
3640 * go32-nat.c (go32_prepare_to_store): Likewise.
3641 * monitor.c (monitor_prepare_to_store): Likewise.
3642 * nto-procfs.c (procfs_prepare_to_store): Likewise.
3643 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
3644 * remote-mips.c (mips_prepare_to_store): Likewise.
3645 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
3646 * win32-nat.c (win32_prepare_to_store): Likewise.
3648 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
3649 Use it instead of current_regcache.
3651 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
3652 parameter. Pass it on to next target.
3653 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
3655 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3657 * target.h (struct regcache): Add forward declaration.
3658 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
3659 and to_store_registers target operations.
3660 (target_fetch_registers, target_store_registers): Update.
3662 * regcache.c (regcache_raw_read): Replace register_cached by
3663 regcache_valid_p. Pass regcache to target_fetch_registers.
3664 (regcache_raw_write): Pass regcache to target_store_registers.
3666 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
3667 store_regs, store_wmmx_regs): Replace register_cached by
3670 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
3671 to target_fetch_registers calls.
3672 * corelow.c (core_open): Likewise.
3673 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
3674 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3675 ps_lsetfpregs): Likewise.
3676 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3677 ps_lsetfpregs): Likewise.
3678 * win32-nat.c (win32_resume): Likewise.
3679 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
3680 to target_store_registers call.
3681 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3683 * inferior.h (store_inferior_registers): Update prototype.
3684 (fetch_inferior_registers): Likewise.
3685 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
3686 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
3687 Update function pointer signatures.
3689 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
3690 use it instead of current_regcache, update calls.
3691 (aix_thread_store_registers): Likewise.
3692 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3693 (alphabsd_store_inferior_registers): Likewise.
3694 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3695 (amd64bsd_store_inferior_registers): Likewise.
3696 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
3697 (amd64_linux_store_inferior_registers): Likewise.
3698 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
3699 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
3700 fetch_wmmx_regs, store_wmmx_regs): Likewise.
3701 (arm_linux_fetch_inferior_registers): Likewise.
3702 (arm_linux_store_inferior_registers): Likewise.
3703 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
3704 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
3705 (store_register, store_regs, store_fp_register, store_fp_regs,
3706 armnbsd_store_registers): Likewise.
3707 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
3708 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3709 (bsd_uthread_store_registers): Likewise.
3710 * corelow.c (get_core_registers): Likewise.
3711 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
3712 go32_store_registers): Likewise.
3713 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
3714 (hppabsd_store_registers): Likewise.
3715 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
3716 (hppa_hpux_fetch_inferior_registers): Likewise.
3717 (hppa_hpux_store_register): Likewise.
3718 (hppa_hpux_store_inferior_registers): Likewise.
3719 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3720 (hppa_linux_fetch_inferior_registers): Likewise.
3721 (hppa_linux_store_inferior_registers): Likewise.
3722 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
3723 (hpux_thread_store_registers): Likewise.
3724 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
3725 (i386bsd_store_inferior_registers): Likewise.
3726 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
3727 gnu_store_registers): Likewise.
3728 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
3729 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
3731 (i386_linux_fetch_inferior_registers): Likewise.
3732 (i386_linux_store_inferior_registers): Likewise.
3733 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3734 (ia64_linux_fetch_registers): Likewise.
3735 (ia64_linux_store_register): Likewise.
3736 (ia64_linux_store_registers): Likewise.
3737 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3738 (inf_child_store_inferior_registers): Likewise.
3739 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3740 (inf_ptrace_fetch_registers): Likewise.
3741 (inf_ptrace_store_register): Likewise.
3742 (inf_ptrace_store_registers): Likewise.
3743 * infptrace.c (fetch_register, store_register): Likewise.
3744 (fetch_inferior_registers, store_inferior_registers): Likewise.
3745 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
3746 (m32r_linux_fetch_inferior_registers): Likewise.
3747 (m32r_linux_store_inferior_registers): Likewise.
3748 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
3749 (m68kbsd_store_inferior_registers): Likewise.
3750 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
3751 store_register, old_store_inferior_registers, fetch_regs, store_regs,
3752 fetch_fpregs, store_fpregs): Likewise.
3753 (m68k_linux_fetch_inferior_registers): Likewise.
3754 (m68k_linux_store_inferior_registers): Likewise.
3755 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
3756 (m88kbsd_store_inferior_registers): Likewise.
3757 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
3758 (mips64obsd_store_inferior_registers): Likewise.
3759 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
3760 (mips64_linux_regsets_store_registers): Likewise.
3761 (mips64_linux_fetch_registers): Likewise.
3762 (mips64_linux_store_registers): Likewise.
3763 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3764 (mipsnbsd_store_inferior_registers): Likewise.
3765 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
3766 (monitor_fetch_registers, monitor_store_registers): Likewise.
3767 * nto-procfs.c (procfs_fetch_registers): Likewise.
3768 (procfs_store_registers): Likewise.
3769 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
3770 fetch_register, supply_vrregset, fetch_altivec_registers,
3771 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
3772 (store_altivec_register, store_spe_register, store_register,
3773 fill_vrregset, store_altivec_registers, store_ppc_registers,
3774 ppc_linux_store_inferior_registers): Likewise.
3775 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
3776 (ppcnbsd_store_inferior_registers): Likewise.
3777 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
3778 (ppcobsd_store_registers): Likewise.
3779 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3780 * remote.c (fetch_register_using_p, process_g_packet,
3781 fetch_registers_using_g, remote_fetch_registers): Likewise.
3782 (store_register_using_P, store_registers_using_G,
3783 remote_store_registers): Likewise.
3784 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
3785 m32r_store_register, m32r_store_register): Likewise.
3786 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
3787 * remote-sim.c (gdbsim_fetch_register): Likewise.
3788 (gdbsim_store_register): Likewise.
3789 * rs6000-nat.c (fetch_register, store_register): Likewise.
3790 (rs6000_fetch_inferior_registers): Likewise.
3791 (rs6000_store_inferior_registers): Likewise.
3792 * s390-nat.c (fetch_regs, store_regs): Likewise.
3793 (fetch_fpregs, store_fpregs): Likewise.
3794 (s390_linux_fetch_inferior_registers): Likewise.
3795 (s390_linux_store_inferior_registers): Likewise.
3796 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3797 (shnbsd_store_inferior_registers): Likewise.
3798 * sol-thread.c (sol_thread_fetch_registers): Likewise.
3799 (sol_thread_store_registers): Likewise.
3800 * sparc-nat.c (fetch_inferior_registers): Likewise.
3801 (store_inferior_registers): Likewise.
3802 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3803 (spu_store_inferior_registers): Likewise.
3804 * target.c (debug_print_register): Likewise.
3805 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
3806 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
3807 (vaxbsd_store_inferior_registers): Likewise.
3808 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
3809 (win32_fetch_inferior_registers): Likewise.
3810 (win32_store_inferior_registers): Likewise.
3812 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3814 * gdbcore.h (struct regcache): Add forward declaration.
3815 (struct core_fns): Add REGCACHE argument to core_read_registers
3817 * corelow.c (get_core_register_section): Add REGCACHE argument,
3818 use it instead of current_regcache, pass it to core_read_registers
3820 (get_core_registers): Add current_regcache as parameter to
3821 get_core_register_section calls.
3823 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
3824 use it instead of current_regcache.
3825 * armnbsd-nat.c (fetch_core_registers): Likewise.
3826 (fetch_elfcore_registers): Likewise.
3827 * core-regset.c (fetch_core_registers): Likewise.
3828 * cris-tdep.c (fetch_core_registers): Likewise.
3829 * irix5-nat.c (fetch_core_registers): Likewise.
3830 * m68klinux-nat.c (fetch_core_registers): Likewise.
3831 * mips-linux-tdep.c (fetch_core_registers): Likewise.
3832 * win32-nat.c (fetch_elf_core_registers): Likewise.
3834 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3836 * gregset.h (struct regcache): Add forward declaration.
3837 (supply_gregset): Add REGCACHE parameter, make GREGS const.
3838 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
3839 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
3840 (fill_gregset): Add REGCACHE parameter.
3841 (fill_fpregset): Likewise.
3842 (fill_fpxregset): Likewise.
3844 Update all definitions accordingly:
3845 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
3846 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
3847 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
3848 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
3849 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
3850 (supply_gregset): Add REGCACHE parameter, use it instead of
3851 current_regcache. Make GREGSETP parameter const, adapt casts.
3852 (supply_fpregset): Add REGCACHE parameter, use it instead of
3853 current_regcache. Make FPREGSETP parameter const, adapt casts.
3854 (fill_gregset): Add REGCACHE parameter, use it instead of
3856 (fill_fpregset): Likewise.
3858 Update all callers to pass in current_regcache as the new argument:
3859 * core-regset.c: Include "regcache.h".
3860 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
3861 * procfs.c: Include "regcache.h".
3862 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
3863 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
3864 (procfs_do_thread_registers): Likewise.
3865 (procfs_make_note_section): Likewise.
3866 * proc-service.c: Include "regcache.h".
3867 (ps_lgetregs): Update fill_gregset call.
3868 (ps_lsetregs): Update supply_gregset call.
3869 (ps_lgetfpregs): Update fill_fpregset call.
3870 (ps_lsetfpregs): Update supply_fpregset call.
3871 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
3872 supply_fpregset calls.
3873 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
3874 (ps_lgetregs): Update fill_gregset call.
3875 (ps_lsetregs): Update supply_gregset call.
3876 (ps_lgetfpregs): Update fill_fpregset call.
3877 (ps_lsetfpregs): Update supply_fpregset call.
3879 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
3880 fill_fpregset, and fill_fpxregset calls.
3881 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
3882 (store_regs): Update fill_gregset call.
3883 (fetch_fpregs): Update supply_fpregset call.
3884 (store_fpregs): Update fill_fpregset call.
3885 (fetch_fpxregs): Update supply_fpxregset call.
3886 (store_fpxregs): Update fill_fpxregset call.
3887 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
3888 (store_regs): Update fill_gregset call.
3889 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
3890 (store_regs): Update fill_gregset call.
3891 (fetch_fpregs): Update supply_fpregset call.
3892 (store_fpregs): Update fill_fpregset call.
3893 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
3894 * s390-nat.c (fetch_regs): Update supply_gregset call.
3895 (store_regs): Update fill_gregset call.
3896 (fetch_fpregs): Update supply_fpregset call.
3897 (store_fpregs): Update fill_fpregset call.
3899 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
3902 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3904 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
3905 it instead of current_regcache.
3906 (parse_register_dump): Add REGCACHE parameter, pass it to
3907 supply_register callback.
3908 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
3909 parse_register_dump.
3910 (monitor_dump_regs): Add REGCACHE parameter, pass it to
3911 parse_register_dump and dumpregs callback.
3912 (monitor_wait): Pass current_regcache to parse_register_dump and
3914 (monitor_fetch_register): Pass current_regcache to
3915 monitor_supply_register.
3916 (monitor_fetch_registers): Pass current_regcache to
3918 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
3919 supply_register and dumpregs callbacks.
3920 (monitor_supply_register, monitor_dump_reg_block): Update
3922 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
3923 it to monitor_supply_register.
3924 * dink32-rom.c (dink32_supply_register): Likewise.
3925 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
3926 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
3927 instead of current_regcache.
3929 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3931 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
3932 Add REGCACHE parameter. Use it instead of current_regcache.
3933 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
3934 i386nto_supply_gregset and i386nto_supply_fpregset.
3935 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
3936 of current_regcache.
3938 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
3939 nto_supply_ helper functions.
3940 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
3942 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
3944 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
3945 supply_greget, supply_fpregset, supply_altregset, supply_regset,
3946 and regset_fill member function pointers.
3947 (nto_dummy_supply_regset): Adapt prototype.
3949 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3951 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
3952 instead of current_regcache. Make REGS const.
3953 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
3954 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
3956 * shnbsd-nat.c: Include "regcache.h".
3957 (shnbsd_fetch_inferior_registers): Pass current_regcache to
3959 (shnbsd_store_inferior_registers): Pass current_regcache to
3961 * Makefile.in (shbsd-nat.o): Update dependencies.
3963 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3965 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
3966 instead of current_regcache.
3967 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
3968 Make GREGSETP const, remove superfluous casts.
3969 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3970 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
3972 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3973 (supply_64bit_reg): Likewise
3974 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
3975 Make GREGSETP const, adapt casts accordingly.
3976 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3977 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
3979 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3980 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
3982 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
3983 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
3984 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
3986 * mips-linux-nat.c: Include "regcache.h".
3987 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3988 current_regcache to mips{64}_(supply|fill)_ helper routines.
3989 (mips64_linux_regsets_fetch_registers): Likewise.
3990 (mips64_linux_regsets_store_registers): Likewise.
3992 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
3993 REGCACHE argument; replace current_regcache. Make REGS const.
3994 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
3995 replace current_regcache.
3996 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
3997 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
3998 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
3999 mipsnbsd_store_inferior_registers): Pass current_regcache to
4000 mipsnbsd_(supply|fill)_... helper routines.
4002 * Makefile.in (mips-linux-nat.o): Update dependencies.
4004 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4006 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4007 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4008 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4009 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4010 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4011 * i386gnu-nat.c (store_fpregs): Likewise.
4012 * i386v4-nat.c (fill_fpregset): Likewise.
4013 * go32-nat.c (store_register, go32_store_registers): Likewise.
4015 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4017 * cris-tdep.c (supply_gregset): Rename to ...
4018 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4019 instead of current_regcache.
4020 (fetch_core_registers): Update call. Pass current_regcache.
4022 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4024 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4025 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4026 Use it instead of current_regcache.
4027 (supply_fparegset): Rename to ...
4028 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4029 Use it instead of current_regcache.
4030 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4031 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4033 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4035 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4036 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4037 use it instead of current_regcache.
4038 * alpha-tdep.h (struct regcache): Add forward declaration.
4039 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4040 alpha_fill_fp_regs): Update prototypes.
4042 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4043 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4044 * alpha-linux-nat.c: Include "regcache.h".
4045 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4046 current_regcache to alpha_supply/fill_ routines.
4048 * alphabsd-tdep.c: Include "regcache.h".
4049 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4050 pass it to alpha_supply_ routines. Make REGS const.
4051 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4052 pass it to alpha_fill_ routines.
4053 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4054 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4055 alphabsd_fill_fpreg): Update prototypes.
4057 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4058 fill_fpregset, alphabsd_fetch_inferior_registers,
4059 alphabsd_store_inferior_registers): Pass current_regcache to
4060 alphabsd_supply/fill_ routines.
4062 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4065 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4067 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4068 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4069 instead of current_regcache.
4070 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4071 REGCACHE parameter, pass it to supply_ routines.
4072 (aix_thread_fetch_registers): Pass current_regcache to
4073 fetch_regs_user_thread and fetch_regs_kernel_thread.
4075 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4076 Add REGCACHE parameter, use it instead of current_regcache.
4077 Call regcache_valid_p instead of register_cached.
4078 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4079 Also, pass REGCACHE to fill_ routines.
4080 (aix_thread_store_registers): Pass current_regcache to
4081 store_regs_user_thread and store_regs_kernel_thread.
4083 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4085 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4086 pointed to by GREGSETP.
4088 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4090 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4091 of regcache_raw_read_signed.
4092 (fill_fpregset): Use regcache_raw_collect instead of
4095 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4097 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4098 point arguments, test explicitly for use of the EABI32 ABI
4099 instead of inferring this condition from tests on register
4102 2007-05-03 Kevin Buettner <kevinb@redhat.com>
4104 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4105 prior to allocating its location.
4107 2007-05-02 Maciej W. Rozycki <macro@mips.com>
4109 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4110 based on mips_abi_regsize() whose result is known in advance.
4111 (mips_o64_push_dummy_call): Likewise.
4113 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4115 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4116 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
4118 * mips-linux-nat.c: Include "gregset.h".
4119 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
4120 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
4121 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
4122 fill_fpregset): Move to mips-linux-nat.c.
4124 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
4126 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4128 * regcache.c (deprecated_read_register_gen): Remove, inline ...
4129 (read_register): ... here.
4130 (deprecated_write_register_gen): Remove, inline ...
4131 (write_register): ... here.
4132 * regcache.h (deprecated_read_register_gen): Remove prototype.
4133 (deprecated_write_register_gen): Likewise.
4135 * remote-sim.c (gdbsim_store_register): Replace call to
4136 deprecated_read_register_gen with regcache_cooked_read.
4137 * target.c (debug_print_register): Replace calls to
4138 deprecated_read_register_gen and read_register with
4139 regcache_cooked_read.
4141 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4143 * hpux-thread.c (hpux_thread_store_registers): Use
4144 regcache_raw_collect, not regcache_raw_read.
4145 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
4146 not regcache_raw_write.
4148 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4150 * gdbarch.sh: Remove deprecated_register_byte.
4151 * gdbarch.c, gdbarch.h: Regenerate.
4152 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
4153 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
4155 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
4156 * regcache.c (regcache_valid_p): Allow to query cooked registers in
4157 read-only register caches. Make REGCACHE parameter const.
4158 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
4160 * mi/mi-main.c (old_regs): Remove.
4161 (mi_setup_architecture_data, _initialize_mi_main): Remove.
4162 (register_changed_p): Reimplement to compare two register caches.
4163 (mi_cmd_data_list_changed_registers): Update caller.
4164 * mi/mi-main.h (mi_setup_architecture_data): Remove.
4165 * mi/mi-interp.c (mi_interpreter_init): Do not call
4166 mi_setup_architecture_data.
4168 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4170 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
4171 inline definition at the places the macros are used.
4172 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
4174 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4176 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
4178 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
4179 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
4180 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
4181 (rs6000_aix_regset_from_core_section): New function.
4182 (rs6000_aix_init_osabi): Register it.
4183 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
4184 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
4185 * rs6000-nat.c (CoreRegs): Do not define type.
4186 (fetch_core_registers, rs6000_core_fns): Remove.
4187 (_initialize_core_rs6000): Do not register it. Rename to ...
4188 (_initialize_rs6000_nat): ... this.
4189 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
4191 2007-04-27 Kevin Buettner <kevinb@redhat.com>
4193 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
4194 (dwarf2_read_address): Sign extend return address as required by
4195 target architecture.
4197 2007-04-27 Kevin Buettner <kevinb@redhat.com>
4199 * solib-frv.c (lm_base): Bail out if the main executable has
4202 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4204 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
4205 of FPCR register in fpregset.
4207 2007-04-27 Maciej W. Rozycki <macro@mips.com>
4209 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
4210 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
4212 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4214 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
4215 * rs6000-nat.c (rs6000_wait): New function.
4216 (_initialize_core_rs6000): Install it as to_wait target method.
4217 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
4219 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4221 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
4222 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
4223 * rs6000-nat.c (super_create_inferior): New variable.
4224 (rs6000_create_inferior): Make static. Adapt argument list. Call
4225 original version of create_inferior via super_create_inferior.
4226 (_initialize_core_rs6000): Install to_create_inferior target method.
4228 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4230 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
4231 (aix_thread_xfer_partial): ... this.
4232 (init_aix_thread_ops): Install to_xfer_partial instead
4233 of deprecated_xfer_memory target method.
4235 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
4236 and inftarg.o, add inf-ptrace.o.
4237 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
4238 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
4239 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
4240 (fetch_inferior_registers): Rename to ...
4241 (rs6000_fetch_inferior_registers): ... this. Make static.
4242 (store_inferior_registers): Rename to ...
4243 (rs6000_store_inferior_registers): ... this. Make static.
4244 (read_word, child_xfer_memory): Remove.
4245 (rs6000_xfer_partial): New function.
4246 (kernel_u_size): Remove.
4247 (_initialize_core_rs6000): Add inf_ptrace-based target.
4248 * Makefile.in (rs6000-nat.o): Update dependencies.
4250 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4252 * inf-ptrace.c: Include "gdb_stdint.h".
4253 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
4254 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
4255 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
4256 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
4257 (inf_ptrace_store_register): Likewise.
4258 * Makefile.in (inf-ptrace.o): Update dependencies.
4260 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4262 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
4263 * configure.tgt (rs6000-*-*): Likewise.
4264 * config/rs6000/aix4.mh: Delete file.
4265 * config/rs6000/aix4.mt: Delete file.
4266 * config/rs6000/rs6000.mh: Delete file.
4267 * config/rs6000/rs6000.mt: Delete file.
4269 * config/powerpc/nm-aix.h: Delete file.
4270 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
4272 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4274 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
4275 Remove obsolete part of comment.
4276 (store_regs_user_thread): Use uint32_t temporaries when calling
4278 (store_regs_kernel_thread): Likewise. Add assertion to verify
4279 correct size of struct ptsprs members.
4280 (aix_thread_xfer_memory): Fix type of myaddr.
4281 (aix_thread_extra_thread_info): Fix compiler warning.
4282 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
4283 (fetch_register, store_register): Adapt callers.
4285 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4287 * vec.h (vec_free): Rename to vec_free_. Adapt users.
4289 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4291 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
4293 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
4294 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
4295 (alpha_linux_regset_from_core_section): New function.
4296 (alpha_linux_init_abi): Install it.
4297 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
4298 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
4299 <sys/procfs.h>, and "gregset.h".
4300 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
4301 Move from config/alpha/nm-linux.h.
4302 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
4304 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
4305 * alpha-nat.c: Remove #ifdef __linux__ section.
4306 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
4307 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
4308 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
4309 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
4310 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
4311 (NATDEPFILES): Remove alpha-nat.o.
4312 * config/alpha/nm-linux.h: Delete file.
4313 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
4314 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4315 (alpha-linux-tdep.o): Likewise.
4317 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4319 * mips-linux-nat.c: No longer include "gdbcore.h".
4320 (mips_linux_register_addr): Move from mips-linux-tdep.c.
4321 (mips64_linux_register_addr): Likewise.
4322 (mips_linux_register_u_offset): Call mips_linux_register_addr or
4323 mips64_linux_register_addr instead of register_addr.
4324 * mips-linux-tdep.c (mips_linux_register_addr,
4325 mips64_linux_register_addr): Move to mips-linux-nat.c.
4326 (register_addr): Remove.
4327 (register_addr_data, init_register_addr_data): Remove.
4328 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
4329 (set_mips_linux_register_addr): Remove.
4330 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
4331 * Makefile.in (mips-linux-nat.o): Update dependencies.
4333 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4335 * linux-nat.c (linux_register_u_offset): Remove.
4336 (linux_target_install_ops): New function.
4337 (linux_target): Use it.
4338 (linux_trad_target): New function.
4339 * linux-nat.h (linux_trad_target): Declare.
4341 * alpha-linux-nat.c: Include "gdbcore.h".
4342 (alpha_linux_register_u_offset): New function.
4343 (_initialize_alpha_linux_nat): Use linux_trad_target.
4345 * mips-linux-nat.c: Include "gdbcore.h".
4346 (mips_linux_register_u_offset): New function.
4347 (_initialize_mips_linux_nat): Use linux_trad_target.
4349 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4350 * config/arm/nm-linux.h: Delete file.
4352 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
4353 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
4355 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4356 * config/ia64/nm-linux.h: Delete file.
4358 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4359 * config/m32r/nm-linux.h: Delete file.
4361 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4362 * config/m68k/nm-linux.h: Delete file.
4364 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4365 * config/pa/nm-linux.h: Delete file.
4367 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4368 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
4369 * config/powerpc/nm-linux.h: Delete file.
4371 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
4372 * config/s390/nm-linux.h: Delete file.
4374 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4375 * config/sparc/linux64.mh (NAT_FILE): Likewise.
4376 * config/sparc/nm-linux.h: Delete file.
4378 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4379 (mips-linux-nat.o): Likewise.
4381 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4383 * core-aout.c: Delete file.
4384 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
4385 (core-aout.o): Delete rule.
4386 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
4388 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
4390 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
4391 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
4392 KERNEL_U_ADDR): Remove.
4394 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
4395 (cannot_fetch_register, cannot_store_register): Remove.
4396 (fetch_register): Inline cannot_fetch_register and register_addr.
4397 (store_register): Inline cannot_store_register and register_addr.
4398 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
4399 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4400 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
4403 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
4404 (fetch_register): Inline register_addr.
4405 (store_register): Inline register_addr.
4406 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
4407 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4408 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
4410 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
4411 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
4412 REGISTER_U_ADDR): Remove.
4414 * hppa-linux-nat.c (register_addr): Rename to ...
4415 (hppa_linux_register_addr): ... this. Make static.
4416 (fetch_register, store_register): Adapt callers.
4417 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
4419 * ppc-linux-nat.c (kernel_u_size): Remove.
4420 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
4422 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
4423 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
4425 * config/vax/nm-vax.h: Delete file.
4427 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4429 * MAINTAINERS (Write After Approval): Add myself.
4431 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4433 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
4434 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
4435 (m68k_linux_sigcontext_reg_offset): Fix typo.
4436 (target_is_uclinux): New.
4437 (m68k_linux_inferior_created): New.
4438 (m68k_linux_get_sigtramp_info): Check for uClinux or
4439 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
4441 (_initialize_m68k_linux_tdep): Register
4442 m68k_linux_inferior_created.
4444 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
4446 * win32-nat.c (win32_detach): Remove delete_command call.
4447 Resume inferior with win32_resume instead of win32_continue.
4449 2007-04-19 Jerome Guitton <guitton@adacore.com>
4451 * ser-mingw.c (fd_is_file): New function.
4452 (file_select_thread): New function.
4453 (ser_console_wait_handle): Add special handling for files.
4455 2007-04-18 Denis Pilat <denis.pilat@st.com>
4457 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
4458 when missing from DW_TAG_subrange_type. Remove the handling of null
4459 return from die_type.
4461 2007-04-18 Maciej W. Rozycki <macro@mips.com>
4463 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
4464 change to rearrange some brackets.
4465 (mips_n32n64_push_dummy_call): Likewise.
4466 (mips_o32_push_dummy_call): Likewise.
4467 (mips_o64_push_dummy_call): Likewise.
4469 2007-04-18 Denis Pilat <denis.pilat@st.com>
4471 * infcmd.c (post_create_inferior): Start with a call to
4472 target_terminal_ours.
4474 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4476 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
4478 (mips_n32n64_push_dummy_call): Likewise. Reformat some
4480 (mips_o32_push_dummy_call): Likewise.
4481 (mips_o64_push_dummy_call): Likewise.
4483 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4485 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4488 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4490 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4492 (mips_o32_push_dummy_call): Likewise.
4494 2007-04-17 Andreas Schwab <schwab@suse.de>
4496 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
4497 sal to be bigger than the end of the function.
4499 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4500 Nigel Stephens <nigel@mips.com>
4502 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
4503 argument alignment requirements when calculating stack space
4504 required. When aligning an arg register to eight bytes
4505 boundary, align stack_offset too. Write floating-point
4506 arguments to the appropriate integer register if need go there.
4507 (mips_o64_push_dummy_call): Likewise.
4509 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4511 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
4512 "sig" arguments, add "regcache" argument.
4513 * gdbarch.c, gdbarch.h: Regenerate.
4515 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
4516 (handle_inferior_event): Call remove_single_step_breakpoints directly
4517 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
4519 * alpha-tdep.c (alpha_software_single_step): Update argument list.
4520 Remove handling of !insert_breakpoints_p case.
4521 * arm-tdep.c (arm_software_single_step): Likewise.
4522 * cris-tdep.c (cris_software_single_step): Likewise.
4523 * mips-tdep.c (mips_software_single_step): Likewise.
4524 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4525 * sparc-tdep.c (sparc_software_single_step): Likewise.
4526 * spu-tdep.c (spu_software_single_step): Likewise.
4528 * alpha-tdep.h (alpha_software_single_step): Update prototype.
4529 * mips-tdep.h (mips_software_single_step): Likewise.
4530 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4531 * sparc-tdep.h (sparc_software_single_step): Likewise.
4533 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4535 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
4536 when removing single-step breakpoints.
4538 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
4540 * varobj.h (varobj_set_frozen): New
4541 (varobj_get_frozen): New.
4542 (varobj_update): New parameter explicit.
4543 * varobj.c (struct varobj): New fields frozen
4545 (varobj_set_frozen, varobj_get_frozen): New.
4546 (install_new_value): Don't fetch values for
4547 frozen variable object, or children thereof. Allow
4548 a frozen variable object to have non-fetched value.
4549 (varobj_update): Allow updating child variables.
4550 Don't traverse frozen children.
4551 (new_variable): Initialize the frozen field.
4552 (c_value_of_variable): Return NULL for frozen
4553 variable without any value yet.
4554 * mi/mi-cmd-var.c (varobj_update_one): New parameter
4556 (mi_cmd_var_create): Output the 'frozen' field,
4557 as soon as testsuite is adjusted to expect that field.
4558 (mi_cmd_var_set_frozen): New.
4559 (mi_cmd_var_update): Pass the 'explicit' parameter to
4561 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
4562 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
4564 2007-04-13 Paul Brook <paul@codesourcery.com>
4566 * target-descriptions.c (tdesc_named_type): Add ieee_single and
4568 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
4570 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4572 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
4573 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
4574 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
4575 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
4576 * Makefile.in: Remove references to deleted files.
4577 * README: Do not mention deleted ROM monitor interfaces.
4578 * defs.h (enum language): Delete language_scm.
4579 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
4580 (dump_subexp_body_standard): Likewise.
4581 * parse.c (operator_length_standard): Likewise.
4582 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
4583 * remote-mips.c: Do not include remote-utils.h.
4584 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
4586 * value.c: Do not include scm-lang.h.
4587 (unpack_long): Delete scm_unpack call.
4588 * config/h8300/h8300.mt, config/mips/embed.mt,
4589 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
4590 config/sh/embed.mt, config/sh/linux.mt: Remove references to
4592 * NEWS: Mention removed files.
4594 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4596 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
4597 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
4599 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4601 * NEWS: Mention removal of HP aCC support.
4603 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4605 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
4606 first entry for static executables.
4607 (breakpoint_addr): Delete unused variable.
4608 (elf_locate_base): Search for _r_debug in static executables.
4609 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
4612 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4614 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
4615 (bpstat_what, print_one_breakpoint, allocate_bp_location)
4616 (mention): Remove bp_through_sigtramp support.
4617 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
4619 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4621 * breakpoint.c (bpstat_what): Give step-resume higher priority than
4624 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4626 * infrun.c: Doc fixes.
4627 (handle_inferior_event): Clarify debug message.
4628 (insert_step_resume_breakpoint_at_sal): Print a debug message.
4630 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4632 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
4634 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4636 * config/m68k/tm-monitor.h: Delete file.
4637 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
4638 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
4640 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
4641 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
4643 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
4645 * gdbarch.sh (software_single_step): Change the return type
4646 from void to int and reformatted some comments to <= 80
4648 * gdbarch.c, gdbarch.h: Regenerated.
4649 * alpha-tdep.c (alpha_software_single_step): Likewise.
4650 * alpha-tdep.h (alpha_software_single_step): Likewise.
4651 * arm-tdep.c (arm_software_single_step): Likewise.
4652 * cris-tdep.c (cris_software_single_step): Likewise.
4653 * mips-tdep.c (mips_software_single_step): Likewise.
4654 * mips-tdep.h (mips_software_single_step): Likewise.
4655 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4656 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4657 * sparc-tdep.c (sparc_software_single_step): Likewise.
4658 * sparc-tdep.h (sparc_software_single_step): Likewise.
4659 * spu-tdep.c (spu_software_single_step): Likewise.
4660 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
4661 and act accordingly.
4663 2007-04-11 Steve Ellcey <sje@cup.hp.com>
4665 * configure.ac (build_warnings): Add -Wno-char-subscripts.
4666 * configure: Regenerate.
4667 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
4669 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4671 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
4673 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4675 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
4677 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
4678 distinct on the TYPE_STUB_SUPPORTED debug targets.
4679 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
4681 2007-04-11 Joel Brobecker <brobecker@adacore.com>
4683 * sparc-tdep.c (X_RS2): New macro.
4684 (sparc_skip_stack_check): New function.
4685 (sparc_analyze_prologue): Adjust PC past stack probing
4686 sequence if necessary.
4688 2007-04-10 Andreas Schwab <schwab@suse.de>
4690 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
4693 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4695 * breakpoint.c (gdb_breakpoint_query): Really return an
4697 (gdb_breakpoint): Likewise.
4698 * thread.c (gdb_list_thread_ids): Likewise.
4699 (gdb_thread_select): Likewise.
4700 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
4701 (mi_cmd_thread_list_ids): Remove bogus initialization.
4703 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4705 * Makefile.in (SFILES): Remove hpacc-abi.c.
4706 (COMMON_OBS): Remove hpacc-abi.o.
4707 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
4708 (hpacc-abi.o, hpread.o): Delete rules.
4709 * somread.c: Delete extern declarations from hpread.c.
4710 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
4711 (som_symfile_finish): Do not call hpread_symfile_finish.
4712 (som_symfile_init): Do not call hpread_symfile_init.
4713 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
4714 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
4715 * hpacc-abi.c, hpread.c: Deleted.
4717 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4719 * solib-svr4.c (enable_break): Simplify return value.
4720 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
4722 2007-04-10 Andreas Schwab <schwab@suse.de>
4724 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
4725 l_ld_size, l_next_size, l_prev_size, l_name_size.
4727 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
4728 to extract addresses from link map.
4729 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
4730 (LM_NEXT): Likewise.
4731 (LM_NAME): Likewise.
4732 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
4733 (elf_locate_base): Likewise.
4734 (open_symbol_file_object): Likewise.
4735 (svr4_fetch_objfile_link_map): Likewise.
4736 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
4737 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
4739 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
4740 (svr4_lp64_fetch_link_map_offsets): Likewise.
4742 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
4743 removed members. Set l_ld_offset to -1 if not present.
4745 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
4747 Pass stderr of program run with "target remote |"
4749 * serial.c (serial_open): Set error_fd to -1.
4750 * serial.h (struct serial): New field error_fd.
4751 (struct serial_opts): New field avail.
4752 * ser-pipe.c (pipe_open): Create another pair
4753 of sockets. Pass stderr to gdb.
4754 * ser-mingw.c (pipe_windows_open): Pass
4755 PEX_STDERR_TO_PIPE to pex_run. Initialize
4758 (_initialize_ser_windows): Hook pipe_avail.
4759 * ser-base.c (generic_readchar): Check if there's
4760 anything in stderr channel and route that to gdb_stderr.
4762 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
4764 * dbxread.c (read_ofile_symtab): Move current_objfile
4765 clearing to after end_stabs.
4767 2007-04-01 Andreas Schwab <schwab@suse.de>
4769 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
4770 gdbarch instead of current_gdbarch.
4772 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
4774 * varobj.c (varobj_create): Keep varobj value
4775 NULL when evaluating the type.
4777 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
4779 * NEWS: Mention new Windows CE support.
4781 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
4783 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
4784 the obsoletion stanza.
4785 * NEWS: Mention deleted targets.
4787 * config/sh/tm-wince.h: Remove.
4788 * config/sh/wince.mt: Remove.
4789 * config/mips/tm-wince.h: Remove.
4790 * config/mips/wince.mt: Remove.
4793 * wince-stub.c: Remove.
4794 * wince-stub.h: Remove.
4795 * Makefile.in (wince.o): Remove rule.
4796 (wince-stub.o): Likewise.
4798 * mips-tdep.c (mips_next_pc): Make static.
4799 * mips-tdep.h (mips_next_pc): Remove declaration.
4800 * arm-tdep.c (arm_pc_is_thumb): Make static.
4801 (thumb_get_next_pc): Likewise.
4802 (arm_get_next_pc): Likewise.
4803 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
4804 (arm_pc_is_thumb): Likewise.
4805 (thumb_get_next_pc): Likewise.
4806 (arm_get_next_pc): Likewise.
4808 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4810 * MAINTAINERS: Remove d10v entry.
4811 * Makefile.in (SFILES): Remove dwarfread.c.
4812 (COMMON_OBS): Remove dwarfread.o.
4813 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
4814 (remote-est.o, rom68k-rom.o): Delete.
4815 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
4816 target est, target rom68k, and DWARF 1.
4817 * configure.tgt: Mark d10v as removed.
4818 * dwarf2read.c: Doc update.
4819 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
4821 (elf_locate_sections): Do not set them.
4822 (elf_symfile_read): Do not call dwarf_build_psymtabs.
4823 * symfile.h (dwarf_build_psymtabs): Delete prototype.
4824 * config/m68k/monitor.mt (TDEPFILES): Prune.
4825 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
4826 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
4828 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4830 * doublest.c (convert_floatformat_to_doublest): Use
4831 floatformat_classify.
4832 (floatformat_is_nan): Rename to...
4833 (floatformat_classify): ...this. Return more information.
4834 * doublest.h (enum float_kind): New.
4835 (floatformat_is_nan): Replace prototype...
4836 (floatformat_classify): ...with this one.
4837 * valprint.c (print_floating): Use floatformat_classify. Handle
4840 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4842 * README: Mention ISO C library requirement.
4844 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4846 * Makefile.in (SFILES): Remove nlmread.c.
4847 (COMMON_OBS): Remove nlmread.o.
4848 (nlmread.o): Delete rule.
4849 * README: Delete reference to remote-st.c.
4850 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
4851 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
4853 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
4854 (_initialize_i386_tdep): Do not reference them.
4855 * nlmread.c: Delete file.
4856 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
4857 * target.c: Doc update.
4858 * thread.c: Delete commented include.
4859 * config/alpha/tm-alpha.h: Doc update.
4861 2007-03-30 Chris Dearman <chris@mips.com>
4863 * utils.c (string_to_core_addr): Comment typo.
4865 2007-03-30 Chris Dearman <chris@mips.com>
4867 * mips-tdep.c: Comment typo.
4869 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
4871 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
4872 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4873 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4874 * config/powerpc/nm-ppc64-linux.h: Remove file.
4875 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
4876 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
4877 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
4878 * infptrace.c (call_ptrace): Likewise.
4879 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
4880 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
4881 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
4882 (store_register): Likewise.
4884 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4886 * Makefile.in (varobj.o): Add missing dependency.
4888 2007-03-29 Michael Snyder <msnyder@access-company.com>
4890 * MAINTAINERS: Update my email address.
4892 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4894 Add support for exception handling with multiple versions of
4896 * ada-lang.c: Update general comments on how Ada exception catchpoints
4898 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
4899 (__gnat_raise_nodefer_with_msg): Delete.
4900 (ada_unhandled_exception_name_addr_ftype): New type.
4901 (exception_support_info): New type.
4902 (ada_unhandled_exception_name_addr): Add forward declaration.
4903 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4904 (default_exception_support_info): New constant.
4905 (exception_support_info_fallback): Likewise.
4906 (exception_info): New global variable.
4907 (ada_exception_support_info_sniffer): New function.
4908 (ada_executable_changed_observer): Likewise.
4909 (ada_unhandled_exception_name_addr_from_raise): Renamed from
4910 ada_unhandled_exception_name_addr.
4911 (ada_unhandled_exception_name_addr): Reimplement to match the
4912 latest Ada runtime implementation.
4913 (error_breakpoint_runtime_sym_not_found): Delete.
4914 (ada_exception_sym_name): Get the exception sym name from
4915 exception_info rather than hardcoding it.
4916 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
4917 Update error handling.
4918 * Makefile.in (ada-lang.o): Add dependency on observer.h.
4920 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4922 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
4923 (remote-st.o, uw-thread.o): Delete.
4924 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
4925 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4926 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
4927 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
4928 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
4929 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
4930 rs6000-*-lynxos* to an obsoletion stanza.
4931 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4932 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
4933 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
4934 i[34567]86-*-netware*.
4935 * NEWS: Mention deleted targets.
4937 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
4938 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
4939 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
4940 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
4941 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
4942 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
4943 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
4944 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
4945 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
4946 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
4947 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
4948 config/rs6000/tm-rs6000ly.h: Delete files.
4950 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4952 * defs.h (deprecated_registers_changed_hook): Delete declaration.
4953 * interps.c (clear_interpreter_hooks): Do not clear
4954 deprecated_registers_changed_hook.
4955 * regcache.c (registers_changed): Do not call it.
4956 * top.c (deprecated_registers_changed_hook): Do not define it.
4957 * mi/mi-interp.c (mi_command_loop): Do not clear it.
4958 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
4959 (tui_remove_hooks): Do not remove it.
4960 (tui_selected_frame_level_changed_hook): Check for negative level.
4961 Use get_selected_frame.
4962 (tui_registers_changed_hook): Deleted.
4964 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4966 * stabsread.c (add_undefined_type): Add extra parameter.
4967 Now handles nameless types separately.
4968 (struct nat): New type.
4969 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
4970 New static variables.
4971 (read_type): Update calls to add_undefined_type.
4972 (add_undefined_type_noname): New function.
4973 (add_undefined_type_1): Renames from add_undefined_type.
4974 (cleanup_undefined_types_noname): New function.
4975 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
4976 (cleanup_undefined_types): New handles nameless types separately.
4977 (_initialize_stabsread): Initialize our new static constants.
4979 2007-03-29 Denis Pilat <denis.pilat@st.com>
4981 * configure.ac: Test for signal.h.
4982 * configure, config.in: Regenerate.
4984 2007-03-29 Denis Pilat <denis.pilat@st.com>
4986 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
4987 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
4989 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
4991 * arm-wince-tdep.c: New.
4992 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
4993 (MT_CFLAGS): Delete.
4995 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
4996 solib-legacy.o, solib-svr4.o, and remove wince.o.
4997 * configure.tgt (arm*-*-mingw32ce*): Add.
4998 * signals/signals.c [HAVE_SIGNAL_H]: Check.
4999 (do_target_signal_to_host): Silence 'not used' warning.
5000 * config/arm/tm-wince.h: Remove.
5002 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5004 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5005 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5007 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5008 * config/ia64/tm-linux.h: Remove file.
5009 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5010 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5011 legacy_pc_in_sigtramp.
5012 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5013 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5014 Remove func_name argument.
5015 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5017 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5018 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5019 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5020 (HAVE_STEPPABLE_WATCHPOINT): Define.
5022 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5023 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5024 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5025 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5026 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5027 target_insert_watchpoint, target_remove_watchpoint): Remove.
5028 (FETCH_INFERIOR_REGISTERS): Define.
5029 * ia64-linux-nat.c (ia64_register_addr): Make static.
5030 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5031 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5032 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5033 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5034 (ia64_linux_stopped_by_watchpoint): Make static.
5035 (ia64_linux_can_use_hw_breakpoint): New function.
5036 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5037 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5038 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5040 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
5042 * linespec.c: Include language.h.
5043 (find_methods): Add language parameter. Call
5044 lookup_symbol_in_language. Pass language down.
5045 (add_matching_methods): Likewise. Call
5046 lookup_symbol_in_language.
5047 (add_constructors): Likewise.
5048 (find_method): Pass sym_class to collect_methods.
5049 (collect_methods): Add sym_class parameter. Pass language
5051 * symtab.c (lookup_symbol): Rename to ...
5052 (lookup_symbol_in_language): ... this. Add language
5053 parameter. Use passed language instead of current_language.
5054 (lookup_symbol): New as wrapper around
5055 lookup_symbol_in_language.
5056 (lookup_symbol_aux): Add language parameter. Use passed
5057 language instead of current_language.
5058 (search_symbols): Indent.
5059 * symtab.h (enum language): Forward declare.
5060 (lookup_symbol_in_language): Declare.
5061 (lookup_symbol): Update description.
5062 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5063 * ada-lang.c (restore_language): Remove.
5064 (lookup_symbol_in_language): Remove.
5066 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
5068 * breakpoint.c (bpstat_num): Add int *num parameter.
5069 * breakpoint.h (bpstat_num): Likewise.
5070 * infcmd.c (continue_command): Adjust to new bpstat_num
5072 (program_info): Likewise.
5074 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5076 * config/sh/tm-sh.h: Remove file.
5077 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5078 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5079 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5080 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5082 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5084 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5085 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5086 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5087 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5088 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5089 sequence if target_shortname is "remote".
5091 2007-03-27 Anton Blanchard <anton@samba.org>
5093 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5094 instead of wordsize when looking for the LR in a stack frame.
5096 2007-03-27 Andreas Schwab <schwab@suse.de>
5097 Daniel Jacobowitz <dan@codesourcery.com>
5099 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5100 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5101 argument. Update all callers.
5102 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5103 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5104 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5105 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5106 (dwarf2_frame_set_adjust_regnum): ...this.
5107 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5108 * rs6000-tdep.c: Include "dwarf2-frame.h".
5109 (rs6000_adjust_frame_regnum): Define.
5110 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5111 Register rs6000_adjust_frame_regnum.
5113 * Makefile.in (rs6000-tdep.o): Update dependencies.
5115 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
5117 * Makefile.in: Add support for a "pdf" target.
5119 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
5121 * amd64-tdep.c (amd64_init_frame_cache): New function.
5122 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
5124 2007-03-26 Nigel Stephens <nigel@mips.com>
5125 Maciej W. Rozycki <macro@mips.com>
5127 * ui-out.c (ui_out_field_core_addr): Truncate address to
5128 TARGET_ADDR_BIT size before printing.
5130 2007-03-22 Nigel Stephens <nigel@mips.com>
5131 Maciej W. Rozycki <macro@mips.com>
5133 * remote-mips.c (mips_xfer_memory): Update prototype.
5135 2007-03-22 Joel Brobecker <brobecker@adacore.com>
5137 * symfile.h: #include "symtab.h"
5139 2007-03-22 Denis Pilat <denis.pilat@st.com>
5141 * utils.c (pagination_on_command, pagination_off_command):
5142 Remove useless prototypes.
5144 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
5147 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
5148 instead of TYPE_NAME for object base class name.
5151 2007-03-19 Kevin Buettner <kevinb@redhat.com>
5153 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
5154 Specify frame type in calls to frame_func_unwind().
5156 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
5158 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
5159 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
5160 (refine_prologue_limit): Delete.
5161 (skip_prologue): Don't call it. Use extract_unsigned_integer.
5162 Assume lim_pc is set. Correct check for incomplete prologues.
5163 Do not skip clobbers of the frame pointer.
5164 * symtab.c (skip_prologue_using_sal): Fail if there is only one
5167 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5169 * frame.c (frame_pop): Check to see whether there's a frame to
5170 which we can pop first.
5172 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5174 * MAINTAINERS (Write After Approval): Add myself.
5176 2007-03-09 Markus Deuling <deuling@de.ibm.com>
5178 * infrun.c (breakpoints_failed): Remove unnecessary variable.
5179 (handle_inferior_event): Remove unnecessary braces.
5180 * breakpoint.c (bpstat_what): Remove wrong comment.
5182 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
5184 * spu-tdep.c (spu_in_function_epilogue_p): New function.
5185 (spu_gdbarch_init): Install it.
5187 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5189 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
5190 object types, not 0.
5192 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5194 * spu-tdep.c (spu_frame_align): New function.
5195 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
5197 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5199 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
5200 (spu_software_single_step): Likewise.
5201 (spu_read_pc, spu_write_pc): New functions.
5202 (spu_gdbarch_init): Install them.
5204 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5206 * cli/cli-dump.c (struct callback_data): load_offset needs to
5207 have signed long type.
5209 2007-03-07 Joel Brobecker <brobecker@adacore.com>
5211 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
5212 Revert the previous change that had some unexpected side-effects
5214 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
5215 function to get the address of the calling instruction.
5217 2007-03-07 Denis Pilat <denis.pilat@st.com>
5219 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
5220 get_selected_frame by deprecated_safe_get_selected_frame.
5222 2007-03-02 Mark Kettenis <kettenis@gnu.org>
5224 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
5225 "gdb_string.h". Don't include "nbsd-tdep.h".
5226 (SIZEOF_STRUCT_REG): Remove.
5227 (SHNBSD_SIZEOF_GREGS): New.
5228 (shnbsd_supply_gregset, shnbsd_collect_gregset)
5229 (shnbsd_regset_from_core_section): New functions.
5230 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
5231 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
5232 shnbsd_supply_gregset, shnbsd_collect_gregset.
5233 (shnbsd_gregset): New variable.
5234 (shnbsd_init_abi): Set regset_from_core_section.
5235 (GDB_OSABI_NETBSD_CORE): New define.
5236 (shnbsd_core_osabi_sniffer): New function.
5237 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
5238 * Makefile.in (shnbsd-tdep.o): Update dependencies.
5239 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
5241 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
5243 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5245 * gdbtypes.c (replace_type): Fix typo that caused us to not update
5246 length of the types referenced by the new type CV ring.
5248 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5250 * frame.c (frame_pop, frame_observer_target_changed): Call
5252 (flush_cached_frames): Rename to reinit_frame_cache and delete
5254 * frame.h (flush_cached_frames): Delete prototype and update comment.
5256 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
5257 reinit_frame_cache instead of flush_cached_frames. Do not call
5258 select_frame after reinit_frame_cache.
5259 * corelow.c (core_open): Likewise.
5260 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
5261 * infrun.c (prepare_to_proceed, context_switch)
5262 (handle_inferior_event): Likewise.
5263 * linux-fork.c (fork_load_infrun_state): Likewise.
5264 * ocd.c (ocd_start_remote): Likewise.
5265 * remote-e7000.c (e7000_start_remote): Likewise.
5266 * remote-mips.c (device): Likewise.
5267 * thread.c (switch_to_thread): Likewise.
5268 * tracepoint.c (finish_tfind_command): Likewise.
5269 * gdbarch.c: Regenerated.
5271 2007-02-28 Jerome Guitton <guitton@adacore.com>
5272 Joel Brobecker <brobecker@adacore.com>
5274 * gdbtypes.c (check_typedef): Do not replace stub type if
5275 the resolved type is not defined in the same objfile.
5277 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5279 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
5281 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5283 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
5284 symbol for Ada units when the symbol is defined using 't' rather
5285 than 'Tt' as symbol descriptor.
5287 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5289 * config/mips/tm-nbsd.h: Delete file.
5290 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5291 * config/sh/tm-nbsd.h: Delete file.
5292 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
5294 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5296 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
5297 unused WRONG_PARAM value since it was recently deleted.
5299 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
5301 * varobj.c (varobj_update): Free temporary vectors.
5303 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5305 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
5306 * config/powerpc/tm-linux.h: Delete file.
5307 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
5308 (PROCESS_LINENUMBER_HOOK): Do not undefine.
5309 (TEXT_SEGMENT_BASE): Do not redefine.
5310 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
5311 from config/rs6000/tm-rs6000.h.
5312 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5313 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
5314 (TEXT_SEGMENT_BASE): Remove.
5315 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
5316 (rs6000_in_solib_return_trampoline): Remove.
5317 (SKIP_TRAMPOLINE_CODE): Remove.
5318 (rs6000_skip_trampoline_code): Remove.
5319 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
5320 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5321 (FP0_REGNUM): Remove.
5322 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
5323 (rs6000_set_host_arch_hook): Remove.
5324 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
5325 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
5326 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
5327 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
5328 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
5329 * rs6000-nat.c: Include "rs6000-tdep.h".
5330 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
5331 (set_host_arch): Rename to ...
5332 (rs6000_create_inferior): ... this. Make public.
5333 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
5334 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
5335 (rs6000_create_inferior): Remove.
5336 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
5337 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
5338 set_gdbarch_in_solib_return_trampoline, and
5339 set_gdbarch_skip_trampoline_code.
5340 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
5341 from config/rs6000/tm-rs6000.h.
5343 2007-02-27 Joel Brobecker <brobecker@adacore.com>
5345 * buildsym.c (record_producer): Do nothing if no producer is provided.
5347 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
5349 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
5350 to check changelist is non-NULL. Call error if the frontend tries
5351 to update a non-root variable.
5353 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
5355 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5357 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
5358 (dwarf2_frame_sniffer): Update.
5359 (dwarf2_signal_frame_this_id): New function.
5360 (dwarf2_signal_frame_unwind): Use it.
5361 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
5362 * frame.c (frame_func_unwind): Add this_type argument.
5363 (get_frame_func): Update.
5364 (frame_unwind_address_in_block): Add this_type argument and check it.
5366 (get_frame_address_in_block): Update.
5367 * frame.h (enum frame_type): Move higher in the file.
5368 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
5371 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
5372 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
5373 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
5374 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
5375 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
5376 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
5377 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
5378 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
5379 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
5380 frame_func_unwind and frame_unwind_address_in_block to specify
5381 the frame type. Use frame_unwind_address_in_block instead of
5382 frame_pc_unwind in sniffers.
5384 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5386 * frame.c (deprecated_selected_frame): Rename to...
5387 (selected_frame): ...this. Make static.
5388 (get_selected_frame, select_frame): Update.
5389 * frame.h (deprected_select_frame): Delete.
5390 (deprecated_safe_get_selected_frame): Update comments.
5392 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
5393 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
5394 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
5395 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
5396 tui/tui.c: Replace references to deprecated_selected_frame.
5398 2007-02-27 Fred Fish <fnf@specifix.com>
5400 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
5401 directly decrement the stack pointer, accumulate their operand into
5402 the stack offset, and mark the function as not being frameless.
5404 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5406 * arch-utils.c (selected_byte_order): New.
5407 * arch-utils.h (selected_byte_order): New prototype.
5408 * remote-sim.c (gdbsim_open): Use selected_byte_order.
5410 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5412 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
5413 (default_symfile_offsets): Check VMA here. Update section VMAs.
5415 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5417 * remote.c (init_remote_state): Add special handling for placeholder
5420 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5422 * Makefile.in (XMLFILES): Include $(TDEP_XML).
5423 (filenames_h): New variable.
5424 (clean): Clean up xml-builtin.c and stamp-xml.
5425 (arm-linux-nat.o): Update.
5426 * config/arm/linux.mh (TDEP_XML): Define.
5427 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
5428 (arm_linux_has_wmmx_registers): New.
5429 (GET_THREAD_ID): Fix typo.
5430 (IWMMXT_REGS_SIZE): Define.
5431 (fetch_wmmx_regs, store_wmmx_regs): New.
5432 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
5433 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
5434 (super_xfer_partial, arm_linux_xfer_partial): New.
5435 (_initialize_arm_linux_nat): Use them.
5436 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
5437 (xml_builtin_xfer_partial): New function.
5438 * xml-support.h (xml_builtin_xfer_partial): New prototype.
5439 * NEWS: Update mention of iWMMXt support.
5441 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5443 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
5444 if there are no FPA registers.
5445 (arm_dwarf_reg_to_regnum): New function.
5446 (arm_register_type, arm_register_name): Return minimal values for
5447 unsupported registers.
5448 (arm_register_sim_regno): Handle iWMMXt registers.
5449 (arm_gdbarch_init): Record missing FPA registers if indicated by
5450 a target description. Recognize iWMMXt registers. Only register
5451 "info float" for FPA. Use ARM_NUM_REGS. Register
5452 arm_dwarf_reg_to_regnum.
5453 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
5455 (struct gdbarch_tdep): Add have_fpa_registers.
5456 * features/xscale-iwmmxt.xml: Update capitalization.
5457 * regformats/arm-with-iwmmxt.dat: Regenerated.
5459 2007-02-24 Kevin Buettner <kevinb@redhat.com>
5461 * NEWS (New targets): Add entry for the Toshiba Media Processor.
5463 2007-02-23 Kevin Buettner <kevinb@redhat.com>
5465 * MAINTAINERS (mep): New target.
5467 2007-02-23 Kevin Buettner <kevinb@redhat.com>
5469 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
5471 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
5472 (mep-tdep.o): New rule.
5473 * configure.tgt (mep-*-*): New target.
5474 * mep-tdep.c: New file.
5475 * config/mep/mep.mt: New file.
5477 2007-02-22 Markus Deuling <deuling@de.ibm.com>
5479 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
5480 BREAKPOINT_HIT and STOP_UNKNOWN.
5482 2007-02-22 Markus Deuling <deuling@de.ibm.com>
5484 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
5486 2007-02-20 Joel Brobecker <brobecker@adacore.com>
5488 * gdb_expat.h (XMLCALL): Define if not already defined.
5490 2007-02-20 Andreas Schwab <schwab@suse.de>
5492 * Makefile.in (symfile.o): Update dependencies.
5494 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5496 * MAINTAINERS: Disable -Werror for cris simulator. Build
5497 sparc64-solaris2.10 instead of the broken sparc-elf.
5498 * solib-frv.c: Include "solib.h".
5499 * Makefile.in (solib-frv.o): Update.
5500 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
5501 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
5502 (xtensa_frame_this_id, xtensa_frame_prev_register)
5503 (xtensa_push_dummy_call): Use %p.
5505 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5507 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5508 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
5509 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5510 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
5511 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
5512 (sparc-linux-tdep.o): Update.
5514 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
5516 * xtensa-tdep.h (xtensa_reg_mask_t): New.
5517 (xtensa_mask_t): Change mask field to be a separate array.
5518 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
5519 (xtensa_pseudo_register_write, xtensa_unwind_pc)
5520 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
5521 (xtensa_breakpoint_from_pc): Remove implicit type casting.
5522 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
5523 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
5524 (mask14, mask15): Rename to
5525 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
5526 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
5527 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
5528 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
5529 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
5530 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
5531 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
5532 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
5533 (xtensa_submask14, xtensa_submask15): New.
5534 (rmap): Follow strict aliasing rules doing static initialization.
5536 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
5538 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
5539 handling from here...
5540 (tdesc_register_type): ...to here.
5541 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
5542 * features/arm-core.xml: Use code_ptr and data_ptr.
5544 2007-02-13 Denis Pilat <denis.pilat@st.com>
5546 * varobj.h (enum varobj_update_error): New enum.
5547 * varobj.c (struct varobj_root): Add is_valid member.
5548 (varobj_get_type): Check for invalid varobj.
5549 (varobj_get_attributes): Likewise.
5550 (variable_editable):Likewise.
5551 (varobj_update): Likewise. Use varobj_update_error.
5552 (new_root_variable): Set root varobj as valid by default.
5553 (varobj_invalidate): New function.
5554 * symfile.c (clear_symtab_users): Use varobj_invalidate.
5555 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
5556 Use varobj_update_error.
5558 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
5561 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
5562 Pascal language marker.
5563 * dwarf2read.c (set_cu_language): Likewise.
5565 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
5567 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
5568 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
5569 instead of target_terminal_init since inferior_ptid isn't set yet.
5571 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
5573 * MAINTAINERS (Write After Approval): Add myself.
5575 2007-02-09 Fred Fish <fnf@specifix.com>
5577 Based on work by Apple Computer, Inc.
5578 * event-top.c (async_request_quit): Call quit() whenever either
5579 quit_flag is set or immediate_quit is set.
5581 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5583 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
5584 type to a pointer to const struct block.
5585 (ada_lookup_symbol_list): Don't cast away constness when calling
5586 remove_out_of_scope_renamings.
5588 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5590 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
5591 address of 'filename'; it is always non null.
5593 2007-02-09 Joel Brobecker <brobecker@adacore.com>
5595 * exec.c (add_to_section_table): Do not discard empty sections.
5597 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5599 * features/Makefile, features/arm-with-iwmmxt.xml,
5600 features/gdbserver-regs.xsl, features/number-regs.xsl,
5601 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
5602 * regformats/arm-with-iwmmxt.dat: Generate.
5603 * NEWS: Mention iWMMXt.
5605 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5607 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
5608 (xml-tdesc.o): Update.
5609 * xml-support.c: Add a comment.
5610 (gdb_xml_enums_boolean): New variable.
5611 (gdb_xml_parse_attr_enum): Use strcasecmp.
5612 * xml-support.h (gdb_xml_enums_boolean): Declare.
5613 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
5614 next_regnum, and current_union.
5615 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
5616 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
5617 (field_attributes, union_children, reg_attributes, union_attributes)
5618 (vector_attributes, feature_attributes, feature_children): New.
5619 (target_children): Make static. Add <feature>.
5620 (tdesc_elements): Make static.
5621 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
5622 (struct tdesc_feature, tdesc_feature_p): New types.
5623 (struct target_desc): Add features member.
5624 (struct tdesc_arch_data, tdesc_data): New.
5625 (target_find_description): Clarify error message. Warn about
5626 ignored register descriptions.
5627 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5628 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
5629 (tdesc_data_cleanup, tdesc_numbered_register)
5630 (tdesc_numbered_register_choices, tdesc_find_register)
5631 (tdesc_register_name, tdesc_register_type)
5632 (tdesc_remote_register_number, tdesc_register_reggroup_p)
5633 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
5634 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
5635 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
5636 (tdesc_create_feature, tdesc_record_type): New.
5637 (free_target_description): Free features.
5638 (_initialize_target_descriptions): Initialize tdesc_data.
5639 * arch-utils.c (default_remote_register_number): New.
5640 * arch-utils.h (default_remote_register_number): New prototype.
5641 * target-descriptions.h (set_tdesc_pseudo_register_name)
5642 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
5643 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
5644 (tdesc_numbered_register, tdesc_numbered_register_choices)
5645 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5646 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
5647 (tdesc_create_reg): Declare.
5648 * gdbarch.sh (remote_register_number): New entry.
5649 * gdbarch.c, gdbarch.h: Regenerate.
5650 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
5651 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
5653 * arm-tdep.c (arm_register_aliases): New.
5654 (arm_register_name_strings): Rename to...
5655 (arm_register_names): ...this. Make const. Delete the old version.
5656 (current_option, arm_register_byte): Delete.
5657 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
5658 (value_of_arm_user_reg): New.
5659 (arm_gdbarch_init): Verify any described registers. Call
5660 tdesc_use_registers. Don't use arm_register_byte. Create aliases
5661 for standard register names.
5662 (_initialize_arm_tdep): Do not adjust arm_register_names.
5663 * user-regs.c (struct user_reg): Add baton member.
5664 (append_user_reg, user_reg_add_builtin, user_regs_init)
5665 (user_reg_add, value_of_user_reg): Use a baton for user
5667 * std-regs.c: Update.
5668 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
5669 (user_reg_add): Add baton argument.
5670 * NEWS: Mention target description register support.
5671 * features/arm-core.xml, features/arm-fpa.xml: New.
5672 * eval.c (evaluate_subexp_standard): Allow ptype $register
5673 when the program is not running.
5675 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
5677 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
5679 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5681 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
5682 info->disassembler_options to "any".
5684 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5686 * varobj.c (install_new_value): Only call value_get_print_value
5689 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5691 Reported by timeless@gmail.com:
5692 * gdb/target.c (target_flash_erase): Do not return void value.
5693 (target_flash_done): Likewise.
5694 * gdb/cli/cli-cmds.c (source_command): Likewise.
5696 2007-02-08 Fred Fish <fnf@specifix.com>
5698 Based on work by Apple Computer, Inc.
5699 * event-top.c (handle_sigint): Set quit_flag.
5700 (async_request_quit): Don't set quit_flag. Avoid calling quit()
5701 if quit_flag has already been reset.
5703 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5705 * ser-mingw.c (pipe_windows_close): Move variable initialization back
5708 2007-02-08 Fred Fish <fnf@specifix.com>
5710 * defs.h (request_quit): Remove declaration.
5711 * utils.c (request_quit): Remove definition.
5713 2007-02-08 Joel Brobecker <brobecker@gnat.com>
5714 Jan Kratochvil <jan.kratochvil@redhat.com>
5715 Daniel Jacobowitz <dan@codesourcery.com>
5717 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
5718 (skip_prologue): Allow bl->blrl used by PIC code.
5720 2007-02-08 Mark Kettenis <kettenis@gnu.org>
5721 Daniel Jacobowitz <dan@codesourcery.com>
5723 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
5724 initialize tmp_obstack.
5725 * p-valprint.c (pascal_object_print_value_fields)
5726 (pascal_object_print_value): Likewise.
5728 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5730 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
5732 2007-02-08 Mark Kettenis <kettenis@gnu.org>
5734 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5735 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
5737 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5739 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
5741 (tdesc_parse_xml): Cache expanded descriptions.
5743 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5745 * Makefile.in (XMLFILES): New.
5746 (COMMON_OBS): Add xml-builtin.o.
5747 (xml-builtin.c, stamp-xml): New rules.
5748 (xml-tdesc.o): Update.
5749 * features/feature_to_c.sh: New file.
5750 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
5751 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
5752 (gdb_xml_start_element): Initialize scope after possibly reallocating
5753 scopes. Move cleanup later. Handle the XInclude description
5755 (gdb_xml_end_element): Only parse the body if there is a current element.
5756 Call XML_DefaultCurrent if there is no element.
5757 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
5758 (struct xinclude_parsing_data, xinclude_start_include)
5759 (xinclude_end_include, xml_xinclude_default)
5760 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
5761 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
5762 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
5763 * xml-support.h (xml_fetch_another, xml_process_xincludes)
5764 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
5765 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
5766 XInclude directives. Use the compiled in DTD.
5767 (fetch_xml_from_file): Add baton argument. Treat it as a containing
5768 directory name. Do not warn here.
5769 (file_read_description_xml): Update call. Warn here instead. Pass
5771 (fetch_available_features_from_target): New.
5772 (target_read_description_xml): Use it.
5773 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
5775 * features/xinclude.dtd: New file.
5777 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5779 * linux-thread-db.c (check_for_thread_db): Return early if we have
5780 no libthread_db support.
5782 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5784 * mi/mi-parse.h: Include <sys/time.h>.
5786 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
5788 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
5789 instead of print_variable_value to print values.
5791 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5793 * mi/mi-main.c: Numerous formatting changes.
5794 (mi_cmd_data_write_register_values): Replace clause inadvertantly
5795 removed in my previous change.
5797 2007-02-03 Eli Zaretskii <eliz@gnu.org>
5799 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
5800 Use 1000000L instead of 1000000.
5802 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5804 Based on work by Apple Computer, Inc.
5806 * configure.ac: Test for sys/resource.h and getrusage.
5807 * configure, config.in: Regenerate.
5809 * mi/mi-main.c: Include <sys/resource.h> if present.
5810 (rusage): Declare if HAVE_GETRUSAGE.
5811 (current_command_ts, do_timings): New static variables.
5812 (timestamp, print_diff_now, print_diff, timeval_diff):
5813 New static timing functions.
5814 (mi_cmd_enable_timings): New function for new MI command.
5815 (captured_mi_execute_command, mi_execute_async_cli_command):
5816 Call timing functions.
5818 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
5821 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
5823 * mi/mi-parse.h: (mi_timestamp): New structure.
5824 (mi_parse): Add mi_timestamp* member.
5826 2007-02-02 Denis Pilat <denis.pilat@st.com>
5828 * thread.c (make_cleanup_restore_current_thread): New function.
5829 (info_threads_command): Use of make_cleanup_restore_current_thread
5830 to restore the current thread and the selected frame.
5831 (restore_selected_frame): New function.
5832 (struct current_thread_cleanup): Add frame_id field.
5833 (do_restore_current_thread_cleanup): Add restoring of the selected
5835 (make_cleanup_restore_current_thread): Likewise.
5836 (thread_apply_all_command): backup the selected frame while
5837 entering the function and restore it at exit.
5838 (thread_apply_command): Likewise.
5840 2007-02-02 Denis Pilat <denis.pilat@st.com>
5842 * MAINTAINERS (Write After Approval): Add myself to the list.
5844 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5846 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
5847 (m32r_store_register): Ditto.
5849 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
5851 * ser-mingw.c (pipe_windows_open)
5852 (pipe_windows_read, pipe_windows_write): Declare
5853 variables at the top of the function.
5855 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5857 * doublest.c (floatformat_from_length): Use the right element from
5858 gdbarch floatformats.
5859 (floatformat_from_type, extract_typed_floating)
5860 (store_typed_floating): Likewise.
5861 * doublest.h: Remove declarations for undefined floatformat arrays.
5862 * gdbarch.sh (float_format, double_format, long_double_format): Change
5864 (pformat): Update for pairs.
5865 * gdbarch.c, gdbarch.h: Regenerated.
5866 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
5867 (floatformats_ieee_double_littlebyte_bigword)
5868 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
5869 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
5870 (floatformats_vax_d): New variables.
5871 (builtin_type_ieee_single, builtin_type_ieee_double)
5872 (builtin_type_arm_ext, builtin_type_ia64_spill)
5873 (builtin_type_ia64_quad): Replace arrays with individual types.
5874 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
5875 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
5876 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
5877 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
5878 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
5879 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
5880 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
5881 unused and endian-specific types.
5882 (recursive_dump_type): Update for floatformat pairs.
5883 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
5884 (build_gdbtypes): Use build_flt.
5885 (_initialize_gdbtypes): Update set of initialized types.
5886 * gdbtypes.h: Update declarations to match gdbtypes.c.
5887 (struct main_type): Store a pointer to two floatformats.
5888 * arch-utils.c (default_float_format, default_double_format): Delete.
5889 * arch-utils.h (default_float_format, default_double_format): Delete.
5891 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5892 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
5893 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
5894 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
5895 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
5897 2007-01-29 Joel Brobecker <brobecker@adacore.com>
5899 * target.c (maintenance_print_target_stack): New function.
5900 (initialize_targets): Add new "maintenance print target-stack"
5903 2007-01-28 Mark Kettenis <kettenis@gnu.org>
5905 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
5907 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
5909 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
5910 (struct dwarf2_loclist_baton): Likewise.
5912 2007-01-27 Eli Zaretskii <eliz@gnu.org>
5914 * cli/cli-script.c: Include breakpoint.h.
5915 (build_command_line): Require arguments only for if and while
5917 (get_command_line, execute_user_command, execute_control_command):
5918 Fix wording of warning messages.
5919 (print_command_lines): Print breakpoint commands.
5920 (execute_control_command): Call commands_from_control_command to
5921 handle the `commands' command inside a body of a flow-control
5923 (read_next_line): Recognize the `commands' command and build a
5924 command line structure for it.
5925 (recurse_read_control_structure, read_command_lines): Handle
5926 `commands' similarly to `if' and `while'.
5928 * breakpoint.c (get_number_trailer): Document the special meaning
5929 of NULL as the first argument PP.
5930 (commands_from_control_command): New function.
5932 * breakpoint.h (commands_from_control_command): Add prototype.
5934 * defs.h (commands_control): New enumerated value for enum
5935 command_control_type.
5937 2007-01-26 Joel Brobecker <brobecker@adacore.com>
5939 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
5940 (ada_exception_sal): Update accordingly.
5942 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5944 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
5945 * NEWS: Describe CHAR array vs. string identifcation rules.
5947 2007-01-25 Paul Brook <paul@codesourcery.com>
5949 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
5951 2007-01-24 Jim Blandy <jimb@codesourcery.com>
5953 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
5954 expression is empty, bother to return the 'optimized out' value we
5955 construct. (Thanks to Carl Burch.)
5957 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5959 * varobj.c (c_value_of_root, c_value_of_child)
5960 (cplus_describe_child): Don't call release_value.
5962 2007-01-24 Thiemo Seufer <ths@mips.com>
5964 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
5967 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5969 Refactor getting children name, value and type access
5971 * varobj.c (get_type_deref): Remove.
5972 (adjust_value_for_child_access): New.
5973 (c_number_of_children): Use the above.
5974 (c_describe_child): Likewise.
5975 (enum accessibility): New.
5976 (match_accessibility): New function.
5977 (cplus_describe_child): New function.
5978 (cplus_name_of_child, cplus_value_of_child)
5979 (cplus_type_of_child): Reimplement in terms
5980 of cplus_describe_child.
5981 (cplus_number_of_children): Use
5982 adjust_value_for_child_access.
5984 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5986 Fix computation of the 'editable' attribute and
5987 value changeability for for references.
5988 * varobj.c (get_value_type): New function.
5989 (c_variable_editable): Use get_value_type.
5990 (varobj_value_is_changeable): Likewise.
5992 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5994 * source.c (find_and_open_source): Try rewriting the source
5995 path inside filename if dirname is NULL.
5997 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5999 * dwarf2read.c (add_partial_symbol): Create an extra partial
6000 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6001 (new_symbol): Likewise for symbols.
6003 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
6005 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6007 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
6009 * value.c (value_primitive_field): Copy the full 'location'
6010 contents, instead of assuming that copying ADDRESS will
6011 bring over everything in the union. Remove obsolete comment.
6013 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
6015 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6016 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6017 (m32c_m16c_pointer_to_address): Separate code from declarations.
6019 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
6021 * target.c (update_current_target): Correct typo.
6023 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
6025 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6028 2007-01-11 Andrew Cagney <cagney@redhat.com>
6029 Daniel Jacobowitz <dan@codesourcery.com>
6030 Jan Kratochvil <jan.kratochvil@redhat.com>
6032 * dwarf2-frame.c (execute_cfa_program): New support of
6033 `DW_CFA_GNU_negative_offset_extended'.
6035 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6037 * NEWS: Mention flash support for "load" and new remote packets.
6039 2007-01-21 Markus Deuling <deuling@de.ibm.com>
6041 * breakpoint.c (delete_command): Skip redundant loop iterations.
6043 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6045 * gdbarch.sh (register_type): Update comment.
6046 * gdbarch.h: Regenerated.
6047 * arch-utils.c (generic_register_size): Call register_type.
6048 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6049 * m32c-tdep.c (check_for_saved): Likewise.
6050 * mips-tdep.c (mips_print_register, print_gp_register_row)
6051 (mips_print_registers_info): Likewise.
6052 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6054 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6055 (sh64_do_register, sh64_print_register)
6056 (sh64_media_print_registers_info): Likewise.
6057 * tui/tui-regs.c (tui_register_format): Likewise.
6059 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6061 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6063 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6064 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6065 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6066 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6067 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6068 (make_symbol_completion_list): Likewise.
6070 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6071 Daniel Jacobowitz <dan@codesourcery.com>
6073 * buildsym.c (end_symtab): Use preallocated symtab if available.
6074 Fill in SYMBOL_SYMTAB.
6075 * buildsym.h (struct subfile): Add symtab member.
6076 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6077 (struct file_entry): Add symtab.
6078 (free_cu_line_header): New function.
6079 (read_file_scope): Use it. Save line_header in the cu. Process
6081 (add_file_name): Initialize new symtab member.
6082 (dwarf_decode_lines): Create symtabs for included files.
6083 (new_symbol): Set SYMBOL_SYMTAB.
6084 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6085 (search_symbols): Likewise.
6086 * symtab.h (struct symbol): Add symtab member.
6087 (SYMBOL_SYMTAB): Define.
6089 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6091 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6093 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6095 * arch-utils.c (show_endian): Correct reversed condition.
6097 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6099 * MAINTAINERS (Write After Approval): Add myself.
6101 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
6102 Vladimir Prus <vladimir@codesourcery.com>
6104 Fix 'selected frame' varobjs.
6105 * varobj.c (struct varobj): Remove the error field.
6106 (varobj_set_value): Don't check var->error.
6107 (install_new_value): Don't set var->error.
6108 (varobj_update): Always pass the new value
6109 of the root via install_new_value.
6110 (create_child): Don't set error field.
6111 (new_variable): Likewise.
6112 (c_value_of_root): Always reevaluate the value
6113 of selected frame varobjs in the selected frame.
6114 Don't call reinit_frame_cache.
6116 2007-01-15 Joel Brobecker <brobecker@adacore.com>
6118 * source.c (_initialize_source): Improve the help text of
6119 the substitute-path commands.
6121 2007-01-14 Mark Kettenis <kettenis@gnu.org>
6123 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
6124 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
6125 (frv_skip_prologue): Remove prototypes.
6126 (frv_adjust_breakpoint_address): Renamed from
6127 frv_gdbarch_adjust_breakpoint_address.
6128 (frv_gdbarch_init): Adjust.
6130 2007-01-13 Mark Kettenis <kettenis@gnu.org>
6132 * gdbarch.sh (deprecated_extract_return_value)
6133 (deprecated_store_return_value): Remove.
6134 (extract_return_value, store_return_value): Remove default values.
6135 * gdbarch.c, gdbarch.h: Regenerate.
6136 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
6137 (legacy_store_return_value): Remove.
6138 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
6141 * mi/mi-main.c: Remove obsolete comment.
6143 * regcache.c, regcache.h (deprecated_register_bytes)
6144 (deprecated_read_register_bytes)
6145 (deprecated_write_register_bytes): Remove.
6147 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
6148 Don't forget to move destination pointer.
6150 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6152 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
6154 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
6156 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
6157 past entry function with recent newlib.
6159 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
6161 * gdb.texinfo (GDB/MI Variable Objects): Improve the
6162 introduction. Specify -var-update more exactly.
6164 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
6166 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
6168 2007-01-10 Jim Blandy <jimb@codesourcery.com>
6170 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
6171 the Global Maintainers' invitation to be a global maintainer.
6173 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
6175 * infrun.c (singlestep_pc): New variable.
6176 (resume): Set singlestep_pc.
6177 (context_switch): Add a debugging message. Flush the frame cache.
6178 (handle_inferior_event): Add debugging messages. Handle thread
6179 hops when a software single step has completed. Let context_switch
6180 handle flushing the frame cache.
6182 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6184 * NEWS: Mention target descriptions, "set tdesc filename",
6185 "unset tdesc filename", "show tdesc filename", and
6186 qXfer:features:read.
6187 * arch-utils.c (choose_architecture_for_target): New function.
6188 (gdbarch_info_fill): Call it.
6189 * target-descriptions.c (struct property): Make members non-const.
6190 (struct target_desc): Add arch member.
6191 (target_description_filename): New variable.
6192 (target_find_description): Try via XML first.
6193 (tdesc_architecture): New.
6194 (free_target_description, make_cleanup_free_target_description): New.
6195 (set_tdesc_property): Call xstrdup.
6196 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
6197 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
6198 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
6199 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
6200 * target-descriptions.h (tdesc_architecture)
6201 (make_cleanup_free_target_description, set_tdesc_architecture): New
6203 * Makefile.in (SFILES): Add xml-tdesc.c.
6204 (COMMON_OBS): Add xml-tdesc.o.
6205 (target-descriptions.o): Update.
6206 (xml-tdesc.o): New rule.
6207 * xml-tdesc.c, xml-tdesc.h: New files.
6208 * remote.c (PACKET_qXfer_features): New enum.
6209 (remote_protocol_features): Add qXfer:features:read.
6210 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
6211 (_initialize_remote): Register qXfer:features:read.
6212 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
6213 * features/gdb-target.dtd: New file.
6215 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6217 * copyright.sh: Clarify error.
6219 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6221 * symtab.c (matching_bfd_sections): Fix VMA matching for
6224 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6226 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
6229 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6231 Updated copyright notices for most files.
6233 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6235 * copyright.sh (prunes): Add step-line.inp and step-line.c.
6237 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6239 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
6241 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
6243 * configure, config.in: Regenerate.
6244 * defs.h (debug_file_directory): Declare.
6245 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
6246 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
6247 relocate it if DEBUGDIR_RELOCATABLE.
6248 * symfile.c (debug_file_directory): Make non-static.
6249 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
6250 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
6251 (_initialize_symfile): Don't initialize debug_file_directory here.
6253 2007-01-09 Jim Blandy <jimb@codesourcery.com>
6255 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
6258 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6260 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
6261 frame_unwind_register to recurse.
6262 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
6263 (alpha_heuristic_frame_prev_register): Likewise.
6264 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
6265 * m32c-tdep.c (m32c_prev_register): Likewise.
6266 * frame.c (frame_register_unwind_location): Remove FIXME.
6268 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6269 Eli Zaretskii <eliz@gnu.org>
6271 * copyright.sh: New file.
6273 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6275 * configure.ac: Check for XML_StopParser.
6276 * xml-support.c (gdb_xml_body_text): Check for an error.
6277 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
6278 (gdb_xml_end_element_wrapper): Likewise.
6279 * config.in, configure: Regenerated.
6281 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6283 * varobj.c (install_new_value): Always update print_value.
6284 (value_get_print_value): Immediately return NULL for missing
6287 2007-01-08 Jim Blandy <jimb@codesourcery.com>
6289 * configure.ac: Tighten pattern for extracting value of
6290 DEPRECATED_TM_FILE from the target makefile fragment.
6291 * configure: Regenerated.
6293 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6295 * linux-nat.c (struct simple_pid_list): Add status.
6296 (add_to_pid_list): Record the PID's status.
6297 (linux_record_stopped_pid): Likewise. Make static.
6298 (pull_pid_from_list): Return the saved status.
6299 (linux_nat_handle_extended): Deleted.
6300 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
6301 Make static. Handle non-SIGSTOP for a new thread's first signal.
6302 (flush_callback): Handle unexpected pending signals.
6303 (linux_nat_wait): Update calls to changed functions.
6304 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
6305 Remove prototypes for newly static functions.
6307 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6309 * gdbarch.sh (value_from_register): New gdbarch function.
6310 * gdbarch.c, gdbarch.h: Regenerate.
6311 * findvar.c (default_value_from_register): New function.
6312 (value_from_register): Use gdbarch_value_from_register.
6313 * value.h (default_value_from_register): Declare.
6314 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
6315 spu_value_to_register): Remove.
6316 (spu_value_from_register): New function.
6317 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6318 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6319 Call set_gdbarch_value_from_register.
6320 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
6321 s390_value_to_register): Remove.
6322 (s390_value_from_register): New function.
6323 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6324 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6325 Call set_gdbarch_value_from_register.
6327 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6329 * NEWS: Add "set sysroot" and "show sysroot".
6330 * solib.c (solib_absolute_prefix): Delete. Replace
6331 all uses with gdb_sysroot.
6332 (_initialize_solib): Add "set sysroot" and "show sysroot".
6333 Make "solib-absolute-prefix" an alias to it.
6335 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6337 * frame.c (get_frame_register_bytes): New function.
6338 (put_frame_register_bytes): Likewise.
6339 * frame.h (get_frame_register_bytes): Declare.
6340 (put_frame_register_bytes): Likewise.
6341 * findvar.c (value_from_register): Always construct lval_register
6342 values. Use get_frame_register_bytes.
6343 * valops.c (value_assign): Use get_frame_register_bytes and
6344 put_frame_register_bytes.
6346 2007-01-08 Jim Blandy <jimb@codesourcery.com>
6348 * MAINTAINERS: Update Stan Shebs' email address.
6350 2007-01-07 Joel Brobecker <brobecker@adacore.com>
6352 * ada-lang.c (is_known_support_routine): Improve the implementation.
6354 2007-01-06 Joel Brobecker <brobecker@adacore.com>
6356 * ada-lang.c: Add include of source.h.
6357 (is_known_support_routine): Improve the check verifying that the file
6358 associated to this frame exists.
6359 * Makefile.in (ada-lang.o): Add dependency on source.h.
6361 2007-01-07 Jim Blandy <jimb@codesourcery.com>
6363 * ax-general.c (ax_const_l): Select proper opcode for the given
6366 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6368 * varobj.c (c_value_of_root): Don't select frame if variable
6369 object is out of scope.
6371 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
6373 * varobj.c (struct varobj): New member print_value.
6374 (install_new_value): Compare last printed value with current one
6375 instead of contents.
6376 (new_variable): Initialize var->print_value to NULL.
6377 (free_variable): Free var->print_value.
6378 (value_get_print_value): New function derived from
6379 c_value_of_variable.
6380 (c_value_of_variable): Use value_get_print_value.
6382 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6384 * i386-tdep.c (i386_analyze_stack_align): Add comment.
6386 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6388 * NEWS: Add entries for new catch commands.
6390 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6392 * dwarf2read.c (partial_die_info): Add field has_byte_size.
6393 (add_partial_symbol): Correct identification of external references.
6394 (process_structure_scope): Likewise.
6395 (read_partial_die): Handle DW_AT_byte_size attribute.
6397 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
6399 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
6401 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
6403 * varobj.c (get_type_deref): Fix variable objects for references to
6406 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6408 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
6411 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6413 * memory-map.c (struct_memory_map_parsing_data): Remove most
6414 members. Make property_name an array.
6415 (free_memory_map_parsing_data, memory_map_start_element)
6416 (memory_map_end_element, memory_map_character_data): Delete.
6417 (memory_map_start_memory, memory_map_end_memory)
6418 (memory_map_start_property, memory_map_end_property): New functions.
6419 (property_attributes, memory_children, memory_type_enum)
6420 (memory_attributes, memory_map_children, memory_map_elements): New.
6421 (parse_memory_map): Rewrite.
6422 * xml-support.c (debug_xml): New.
6423 (xml_get_required_attribute, xml_get_integer_attribute)
6424 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
6426 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
6427 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
6428 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
6429 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
6430 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
6431 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
6432 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
6434 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
6435 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
6436 (enum gdb_xml_element_flag, struct gdb_xml_element)
6437 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
6438 (struct gdb_xml_enum): New.
6439 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
6440 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
6441 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
6442 (xml_get_required_attribute, xml_get_integer_attribute)
6443 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
6444 * Makefile.in (xml_support_h, xml-support.o): Update.
6446 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6448 * Makefile.in (eval.o): Update dependencies.
6449 * eval.c: Include "ui-out.h" and "exceptions.h".
6450 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
6451 Use value_zero if an error occurs when avoiding side effects.
6452 * varobj.c (c_value_of_root): Initialize new_val.
6454 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6456 * varobj.c (varobj_list_children): Stop if the number of children is
6458 (c_number_of_children):
6460 2007-01-04 Mark Kettenis <kettenis@gnu.org>
6462 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
6463 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
6464 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
6465 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
6466 sizeof, instead of hardcoded constants.
6468 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6470 * CONTRIBUTE: Use sourceware.org.
6472 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6474 * buildsym.c (start_subfile): Handle producer.
6475 (record_producer): New function.
6476 * buildsym.h (struct subfile): Include producer.
6477 (record_producer): New prototype.
6478 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
6479 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
6480 armcc_cfa_offsets_reversed.
6481 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
6482 (dwarf2_frame_find_quirks): New function.
6483 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
6484 (decode_frame_entry_1): Record the CIE version. Record the
6485 augmentation. Skip armcc augmentations.
6486 * dwarf2read.c (read_file_scope): Save the producer.
6487 * symtab.h (struct symtab): Rename unused version member to
6490 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6492 * configure.ac (build_warnings): Use -Wall and
6493 -Wdeclaration-after-statement.
6494 * configure: Regenerated.
6496 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6498 Simplify access to variours properties of child
6499 variable objects in C.
6500 * varobj.c (value_struct_element_index): New function.
6501 (c_describe_child): New function.
6502 (c_name_of_child, c_value_of_child)
6503 (c_type_of_child): Rewrite to use c_describe_child.
6505 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6508 * varobj.c: Include "vec.h".
6509 (varobj_p): New typedef, declare vector of those.
6510 (struct varobj): Use vector for the 'children' member.
6511 (child_exists): Remove.
6512 (save_child_in_parent): Remove.
6513 (remove_child_from_parent): Remove.
6514 (struct varobj_child): Remove.
6515 (struct vstack): Remove.
6516 (vpush, vpop): Remove.
6517 (varobj_list_children): Adjust to work work vector.
6518 (varobj_update): Likewise. Use vectors for
6519 working stack and result.
6520 (delete_variable_1): Likewise.
6521 * Makefile.in (varobj.o): Update dependencies.
6523 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6525 Port from Apple's version.
6527 * varobj.c (type_changeable): Rename to...
6528 (varobj_value_is_changeable_p): ...this. Adjust all callers.
6529 (is_root_p): New function. Use it everywhere.
6531 2007-01-04 Jim Blandy <jimb@codesourcery.com>
6533 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
6536 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6538 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
6540 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6542 * hpread.c (hpread_type_lookup): Fix compilation failure.
6544 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
6546 * NEWS: New port to S+core.
6547 * MAINTAINERS (Write After Approval, Responsible Maintainers):
6550 * Makefile.in: Add dependencies for S+core files.
6551 * configure.tgt (score*, score-*-*): Add S+core target.
6552 * config/score/embed.mt: New file.
6553 * score-tdep.c: New file.
6554 * score-tdep.h: New file.
6556 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6558 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
6559 the appropriate type rather than a bogus void type.
6561 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6563 * ada-lang.h (ada_find_printable_frame): Remove.
6564 (ada_exception_catchpoint_p, ada_decode_exception_location)
6565 (ada_decode_assert_location): Add declaration.
6566 * ada-lang.c: Add include of annotate.h and valprint.h.
6567 (exception_catchpoint_kind): New enum.
6568 (function_name_from_pc, is_known_support_routine)
6569 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
6570 (ada_exception_name_addr_1, ada_exception_name_addr)
6571 (print_it_exception, print_one_exception, print_mention_exception)
6572 (print_it_catch_exception, print_one_catch_exception)
6573 (print_mention_catch_exception, catch_exception_breakpoint_ops)
6574 (print_it_catch_exception_unhandled)
6575 (print_one_catch_exception_unhandled)
6576 (print_mention_catch_exception_unhandled, print_it_catch_assert)
6577 (print_one_catch_assert, print_mention_catch_assert)
6578 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
6579 (ada_get_next_arg, catch_ada_exception_command_split)
6580 (ada_exception_sym_name, ada_exception_sym_name)
6581 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
6582 (ada_parse_catchpoint_condition, ada_exception_sal)
6583 (ada_decode_exception_location)
6584 (ada_decode_assert_location): New function.
6585 (catch_exception_unhandled_breakpoint_ops): New global variable.
6586 (catch_assert_breakpoint_ops): New global variable.
6587 * breakpoint.c: Add include of ada-lang.h.
6588 (print_one_breakpoint): Do not print the condition for Ada
6589 exception catchpoints.
6590 (create_ada_exception_breakpoint): New function.
6591 (catch_ada_exception_command, catch_assert_command): New function.
6592 (catch_command_1): Add support for the new "catch exception" and
6593 "catch assert" commands.
6594 (_initialize_breakpoint): Add help description for the new catch
6596 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
6598 (breakpoint.o): Add dependency on ada-lang.h.
6600 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
6602 * coffread.c (cs_to_section): If bfd_section is found, always
6603 return its section index.
6604 (coff_symtab_read): Determine the minimal_symbol_type using the
6607 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6608 Daniel Jacobowitz <dan@codesourcery.com>
6610 * Makefile.in (top.o): Update.
6611 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
6612 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
6613 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
6615 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
6617 2007-01-03 Mark Kettenis <kettenis@gnu.org>
6619 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
6620 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
6622 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6624 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
6625 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
6626 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
6627 greater than or equal to zero.
6628 * m2-typeprint.c (m2_array): Likewise.
6629 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6630 * gdbtypes.c (copy_type_recursive): Correct == typo.
6631 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
6632 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
6634 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
6635 (default_macro_scope): Remove unused variable.
6636 * prologue-value.h (pv_area_find_reg): Don't name an argument
6638 * remote-fileio.c (remote_fio_func_map): Add missing braces.
6639 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
6641 (cleanup_sigint_signal_handler): Remove casts.
6642 * valprint.c (val_print): Use a volatile local for the modified
6644 * varobj.c (languages): Remove extra array dimension.
6645 (varobj_create): Correct access to languages array.
6646 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
6648 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
6649 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
6650 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
6651 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
6652 (mi_cmd_data_write_memory): Likewise.
6653 * signals/signals.c (target_signal_to_string): Cast to int before
6655 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
6658 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6660 * NEWS: Mention pointer to member improvements.
6661 * Makefile.in (gnu-v3-abi.o): Delete special rule.
6662 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
6663 * ada-valprint.c (ada_print_scalar): Update for new type codes.
6664 * c-typeprint.c (c_print_type): Update for new type codes.
6665 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
6666 (c_type_print_base): Likewise.
6667 (c_type_print_args): Rewrite.
6668 * c-valprint.c (c_val_print): Update for new type codes. Remove
6669 support for references to members. Treat methods like functions.
6670 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
6671 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
6672 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
6673 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
6674 (struct cp_abi_ops): Add corresponding members.
6675 * cp-valprint.c (cp_print_class_method): Delete.
6676 (cp_find_class_member): New function.
6677 (cp_print_class_member): Use it. Simplify support for bogus
6679 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
6680 lookup_methodptr_type.
6681 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
6682 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
6683 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
6685 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
6686 references returned by user defined operators.
6687 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
6688 (f_type_print_varspec_suffix): Remove support for member pointers.
6689 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
6691 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
6692 (lookup_methodptr_type): New.
6693 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
6694 (recursive_dump_type): Update for new types.
6695 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
6696 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
6697 (lookup_memberptr_type, lookup_methodptr_type)
6698 (smash_to_memberptr_type): New prototypes.
6699 (smash_to_method_type): Formatting fix.
6700 (lookup_member_type, smash_to_member_type): Delete prototypes.
6701 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
6702 Do not rely on debug information for the vptr or the method's
6703 enclosing type. Handle function descriptors for IA64.
6704 (gnuv3_virtual_fn_field): Rewrite using the new functions.
6705 (gnuv3_find_method_in, gnuv3_print_method_ptr)
6706 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
6707 (gnuv3_method_ptr_to_value): New.
6708 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
6709 * hpread.c (hpread_type_lookup): Update for new types.
6710 * infcall.c (value_arg_coerce): Likewise.
6711 * m2-typeprint.c (m2_print_type): Remove explicit support
6712 for member pointers.
6713 * m2-valprint.c (m2_val_print): Likewise.
6714 * p-typeprint.c (pascal_type_print_varspec_prefix)
6715 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
6716 * p-valprint.c (pascal_val_print): Likewise.
6717 (pascal_object_print_class_method, pascal_object_print_class_member):
6719 * p-lang.h (pascal_object_print_class_method)
6720 (pascal_object_print_class_member): Delete prototypes.
6721 * stabsread.c (read_type): Update for new types.
6722 * typeprint.c (print_type_scalar): Likewise.
6723 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
6724 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
6725 argument. Construct a pointer to member if the address of a
6726 function or data member is requested.
6727 (value_cast_pointers): Don't modify the input value.
6728 (value_cast): Adjust pointer to member handling for new types.
6729 Allow null pointer to member constants. Don't modify the input
6731 (value_ind): Remove pointer to member check. Handle function
6732 descriptors for function pointers.
6733 (value_struct_elt, value_find_oload_method_list, check_field):
6734 Remove pointer to member checks.
6735 * value.c (unpack_long): Allow pointers to data members.
6736 (value_from_longest): Allow member pointers.
6737 * value.h (value_aggregate_elt): Add want_address.
6738 * varobj.c (c_variable_editable): Remove check for members.
6739 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
6740 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
6742 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
6743 * c-lang.h (cp_print_class_method): Delete prototype.
6744 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
6745 * mips-tdep.c (mips_gdbarch_init): Likewise.
6746 * gdbarch.c, gdbarch.h: Regenerated.
6748 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6750 * rs6000-tdep.c (rs6000_use_struct_convention)
6751 (rs6000_extract_return_value, rs6000_store_return_value)
6752 (rs6000_extract_struct_value_address): Remove.
6753 (rs6000_return_value): New function.
6754 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
6755 store_return_value, deprecated_extract_struct_value_address and
6756 deprecated_use_struct_convention. Use rs6000_return_value
6759 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
6761 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
6762 -display-disable, -display-enable, -display-insert and
6765 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6767 * breakpoint.c (remove_breakpoint): Remove dead code.
6769 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
6771 * varobj.c: Include block.h.
6772 (c_value_of_root): Check scope within nested statements.
6774 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6776 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
6777 regcache_cooked_write_signed instead of
6778 deprecated_write_register_bytes.
6780 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6782 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
6784 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6786 Followed the Start of New Year Procedure:
6787 * ChangeLog-2006: New file, containing all the entries for 2006.
6788 * ChangeLog: Removed all 2006 entries, and changed the reference
6789 to the previous ChangeLog to point to ChangeLog 2006.
6790 * top.c (print_gdb_version): Update copyright year.
6792 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6794 * Makefile.in (remote-sds.o): Remove.
6795 * remote-sds.c: Delete.
6797 For older changes see ChangeLog-2006.
6803 version-control: never