1 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * Makefile.in (symfile.o): Update dependencies.
4 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
5 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
6 (struct build_id): New structure.
7 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
8 (find_separate_debug_file): New variable BUILD_ID.
9 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
11 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
13 * varobj.c (struct varobj): Fix comment
14 for the type member not to lie when it can be
17 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
19 Implement -var-info-path-expression.
21 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
23 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
24 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
25 * varobj.c (struct varobj): New field 'path_expr'.
26 (c_path_expr_of_child, cplus_path_expr_of_child)
27 (java_path_expr_of_child): New.
28 (struct language_specific): New field path_expr_of_child.
29 (varobj_create): Initialize the path_expr field.
30 (varobj_get_path_expr): New.
31 (new_variable): Initialize the path_expr field.
32 (free_variable): Free the path_expr field.
33 (adjust_value_for_children_access): New parameter
35 (c_number_of_children): Adjust.
36 (c_describe_child): New parameter CFULL_EXPRESSION.
37 Compute full expression.
38 (c_value_of_child, c_type_of_child): Adjust.
39 (cplus_number_of_children): Adjust.
40 (cplus_describe_child): New parameter CFULL_EXPRESSION.
41 Compute full expression.
42 (cplus_name_of_child, cplus_value_of_child)
43 (cplus_type_of_child): Adjust.
44 * varobj.h (varobj_get_path_expr): Declare.
46 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
48 * mi/mi-cmd-var.c (print_varobj): If a varobj
49 type is NULL, don't try to print it.
51 2007-08-30 Alan Modra <amodra@bigpond.net.au>
53 * ppc-linux-nat.c (right_fill_reg): Delete.
54 (supply_gregset): Use ppc_supply_gregset.
55 (supply_fpregset): Use ppc_supply_fpregset.
56 (fill_gregset): Use ppc_collect_gregset.
57 (fill_fpregset): Use ppc_collect_fpregset.
58 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
59 (right_supply_register, ppc_linux_supply_gregset): Delete.
60 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
61 (ppc_linux_supply_fpregset): Delete.
62 (ppc_linux_collect_gregset): New function.
63 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
64 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
65 ppc_linux_supply_gregset, and ppc_collect_gregset.
66 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
67 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
68 (ppc_linux_regset_from_core_section): Update.
69 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
70 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
71 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
72 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
73 (ppcobsd_collect_gregset): Likewise.
74 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
75 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
76 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
77 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
78 (rs6000_aix64_reg_offsets): Likewise.
79 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
80 ppc_floating_point_unit_p.
81 (rs6000_aix_collect_regset): Similarly.
82 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
83 when regsize is larger than regcache register size.
84 (ppc_collect_reg): Similarly zero pad when regsize is larger than
85 regcache register size.
86 (ppc_greg_offset): New function, split out from..
87 (ppc_supply_gregset): ..here. Separate code handling all regs from
88 single reg case. Correct xer offset.
89 (ppc_fpreg_offset): New function, split out from..
90 (ppc_supply_fpregset): ..here. Separate code handling all regs from
92 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
93 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
94 a fp unit, instead return if no fp.
96 2007-08-29 Jim Blandy <jimb@codesourcery.com>
98 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
99 this code has not been compiled for two years.
101 2007-08-29 Michael Snyder <msnyder@access-company.com>
103 * event-top.c (gdb_readline2): Return after EOF.
105 2007-08-29 Joel Brobecker <brobecker@adacore.com>
107 * symtab.c: Remove a function that has been commented out 3 years ago.
109 2007-08-29 Randolph Chung <tausq@debian.org>
111 * hppa-tdep.c (hppa32_cannot_fetch_register)
112 (hppa64_cannot_fetch_register): New functions.
113 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
114 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
116 2007-08-28 Michael Snyder <msnyder@access-company.com>
118 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
119 check for null before calling check_typedef.
121 * NEWS: Mention Coverity bug fixes.
123 2007-08-27 Markus Deuling <deuling@de.ibm.com>
125 * spu-tdep.c (spu_pointer_to_address): New function.
126 (spu_integer_to_address): Likewise.
127 (spu_gdbarch_init): Add spu_pointer_to_address and
128 spu_integer_to_address to gdbarch.
130 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
132 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
134 2007-08-23 Joel Brobecker <brobecker@adacore.com>
136 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
137 that contains the GDB license.
138 * copying.awk: Adjust to the GPLv3 wording.
139 * copying.c: Regenerate.
141 2007-08-23 Joel Brobecker <brobecker@adacore.com>
143 * copying.awk: Protoization, and i18n markup.
145 2007-08-23 Joel Brobecker <brobecker@adacore.com>
147 * config/djgpp/djconfig.sh: Switch license to GPLv3.
148 * copyright.sh: Likewise.
149 * gdb-events.sh: Likewise.
150 * gdb_gcore.sh: Likewise.
151 * gdb_mbuild.sh: Likewise.
152 * gdbarch.sh: Likewise.
153 * observer.sh: Likewise.
154 * features/feature_to_c.sh: Likewise.
155 * regformats/regdat.sh: Likewise.
157 2007-08-23 Joel Brobecker <brobecker@adacore.com>
159 Switch the license of all .c files to GPLv3.
160 Switch the license of all .h files to GPLv3.
161 Switch the license of all .cc files to GPLv3.
163 2007-08-23 Joel Brobecker <brobecker@adacore.com>
165 * configure.ac: Switch license to GPLv3.
167 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
169 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
170 determine the file's FPU type.
172 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
174 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
175 (mips_n32n64_push_dummy_call): Always increment float_argreg along
176 with argreg. Use mips_n32n64_fp_arg_chunk_p.
178 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
180 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
182 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
183 (elf_lookup_lib_symbol): Fix formatting.
185 2007-08-21 Michael Snyder <msnyder@access-company.com>
187 * dbxread.c (read_dbx_symtab): Guard null deref.
190 * valops.c (find_overload_match): Guard against NULL.
192 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
194 * MAINTAINERS (Patch Champions): Remove self.
196 2007-08-21 Chris Smith <chris.smith@st.com>
198 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
201 2007-08-18 Michael Snyder <msnyder@access-company.com>
203 * stabsread.c (dbx_lookup_type): Memory leak.
205 * event-loop.c (delete_async_signal_handler): Move pointer null
206 test to before pointer dereference.
208 * ui-out.c (append_header_to_list): Possible cut and paste error.
210 * MAINTAINERS: white space tweak.
212 2007-08-17 Michael Snyder <msnyder@access-company.com>
214 * stack.c (print_frame): Memory leak.
216 * completer.c (filename_completer): Avoid memory leak.
217 Remove unnecessary nested block.
219 * c-exp.y (parse_number): Memory leak.
221 * completer.c (location_completer): Must free 'fn_list', except
222 in the one case where it is returned (as 'list').
224 * varobj.c (value_of_root): Memory leak.
226 * gdbtypes.h (virtual_base_list): Remove export decl.
227 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
228 (virtual_base_index): Memory leak.
229 (virtual_base_index_skip_primaries): Ditto.
231 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
233 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
234 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
235 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
236 (xtensa_read_register): New function.
237 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
238 (xtensa_insn_kind): New types.
239 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
240 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
241 (xtensa_verify_config, xtensa_pseudo_register_read)
242 (xtensa_pseudo_register_write, xtensa_extract_return_value)
243 (xtensa_store_return_value)
244 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
245 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
246 (xtensa_frame_this_id, xtensa_frame_prev_register)
247 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
248 (call0_frame_cache, call0_frame_get_reg_at_entry)
249 (call0_classify_opcode, call0_track_op)
250 (call0_analyze_prologue, call0_frame_cache): New functions.
252 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
254 * breakpoint.c (bpstat_free): New.
255 (bpstat_clear): Use bpstat_free.
256 (delete_breakpoint): Document why we cannot
257 remove bpstats from stop_bpstat.
258 * breakpoint.h (bpstat_free): Declare.
260 2007-08-16 Michael Snyder <msnyder@access-company.com>
262 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
264 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
265 Joel Brobecker <brobecker@adacore.com>
267 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
269 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
270 Joel Brobecker <brobecker@adacore.com>
272 * ada-lang.c (possible_user_operator_p): Alternative fix to last
273 checkin guarding against NULL.
275 2007-08-14 Michael Snyder <msnyder@access-company.com>
277 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
278 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
279 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
280 go at beginning of new line.
282 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
283 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
284 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
285 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
286 tui-winsource.h, tui.c, tui.h: Function declarations and
287 definitions, wrap long lines.
289 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
290 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
291 Reformat block comments to GNU standard.
293 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
294 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
295 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
296 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
297 tui.c, tui.h: Comment reformatting to coding standard (capitals,
298 spaces after periods, etc).
300 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
301 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
302 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
303 tui-winsource.h: Whitespace changes, fix pointer declarations
306 2007-08-14 Joel Brobecker <brobecker@adacore.com>
307 Michael Snyder <msnyder@access-company.com>
309 * ada-lang.c (field_alignment): Guard against NULL.
311 2007-08-14 Joel Brobecker <brobecker@adacore.com>
313 * MAINTAINERS (Global Maintainers): Add self.
315 2007-08-14 Michael Snyder <msnyder@access-company.com>
317 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
319 * ada-lang.c (possible_user_operator_p): Guard against NULL.
321 * varobj.c (cplus_describe_child): Guard against null.
322 Use "NULL" instead of "0" to initialize pointers.
324 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
326 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
327 to match any gdbarch with matching OSABI. Set default ABI and FPU
328 after running the OSABI handler.
330 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
332 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
333 * config/i386/linux.mt (TDEPFILES): ...to here.
335 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
337 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
338 the 'silent' parameter and code to implement that.
339 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
341 * win32-nat.c: Adjust.
344 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
346 * breakpoint.c (update_breakpoints_after_exec): Don't
349 2007-08-13 Michael Snyder <msnyder@access-company.com>
351 * valops.c: Whitespace clean-up.
353 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
355 * event-top.c (command_line_handler): Memory leak.
357 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
358 No need to make copy.
360 * source.c (find_source_lines): Require symtab 's'.
362 2007-08-11 Michael Snyder <msnyder@access-company.com>
364 * completer.c: Spelling fix in comments.
366 2007-08-10 Michael Snyder <msnyder@access-company.com>
368 * gdbtypes.c: Coding standard cleanup.
369 * gdbtypes.c: Comment/whitespace cleanup.
371 * stabsread.c (read_huge_number): Attempt to compute value before
372 values that it depends on.
374 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
375 (decode_objc): Use "NULL" instead of 0.
376 (find_method): Ditto.
377 (decode_all_digits): Ditto.
378 (decode_dollar): Ditto.
380 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
382 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
384 * solib-svr4.c (enable_break): Don't free tmp_pathname until
387 * completer.c: Comment/whitespace cleanup.
389 2007-08-10 Joel Brobecker <brobecker@adacore.com>
391 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
393 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
395 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
396 allocated file descriptors.
398 2007-08-10 Joel Brobecker <brobecker@adacore.com>
400 * Makefile.in: Minor cleanup throughout; add some missing variables,
401 add some missing rules, remove some rules that are no longer needed,
402 and fix the dependencies in several rules.
404 2007-08-10 Ludovic Courtès <ludo@gnu.org>
406 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
407 (scm_lang_h, scm_tags_h): New.
408 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
409 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
410 * defs.h (enum language): Add `language_scm'.
412 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
415 2007-08-09 Ludovic Courtès <ludo@gnu.org>
417 * MAINTAINERS (Write After Approval): Add myself.
419 2007-08-09 Michael Snyder <msnyder@access-company.com>
421 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
423 2007-08-09 Joel Brobecker <brobecker@adacore.com>
425 * solib-som.c (som_relocate_section_addresses): Stop saving
426 the $CODE$ section in the so_list structure.
428 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
430 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
431 (xtensa_register_group_t): Add entries for coprocessors.
432 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
433 (xtensa_add_reggroups): Likewise.
434 (xtensa_register_reggroup_p): Likewise.
435 (xtensa_coprocessor_register_group): New function.
438 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
440 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
442 2007-08-08 Michael Snyder <msnyder@access-company.com>
444 * target.c (target_read_string): Guard against null.
446 * varobj.c (value_of_root): Move alloc after return to avoid leak.
448 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
450 * top.c (command_line_input): Memory leak.
452 * solib-svr4.c (open_symbol_file_object): Memory leak.
453 (svr4_current_sos): Ditto.
454 (enable_break): Ditto.
456 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
458 * dwarf2read.c (add_partial_symbol): Memory leak.
460 2007-08-06 Michael Snyder <msnyder@access-company.com>
462 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
464 2007-08-05 Jim Blandy <jimb@codesourcery.com>
466 * macroexp.c (init_buffer): Remove testing code that overrides the
467 caller's length guess.
468 (gather_arguments): Use a larger initial size, now that the vector
469 growth code has been exercised.
471 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
473 * solib-target.c (solib_target_relocate_section_addresses): Add
474 orig_delta to addr_high.
476 2007-08-04 Michael Snyder <msnyder@access-company.com>
478 * remote-fileio.c (remote_fileio_func_write): Memory leak.
480 * breakpoint.c (print_one_breakpoint): Off by one error.
482 * tracepoint.c (add_register): Off by one error.
483 (stringify_collection_list): Free malloc buffer.
485 2007-08-03 Michael Snyder <msnyder@access-company.com>
487 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
488 stop memory leak, straighten out cleanups.
490 * jv-lang.c (java_link_class_type): Guard against NULL.
492 2007-08-02 Michael Snyder <msnyder@access-company.com>
494 * gdbtypes.c (create_set_type): Test should only be done within
495 the preceeding if block. Otherwise, variable is uninitialized.
497 * gdbtypes.c (check_typedef): Guard NULL.
499 2007-08-01 Michael Snyder <msnyder@access-company.com>
501 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
502 avoid dereference in lookup_cmd_1.
504 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
506 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
507 (tui_alloc_win_info): Ditto.
508 (tui_add_content_elements): Ditto.
509 * tui/tui-file.c (tui_file_magic): Ditto.
511 2007-07-31 Michael Snyder <msnyder@access-company.com>
513 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
514 True and false paths are mutually exclusive.
516 * event-top.c (command_line_handler): Add pedantic return.
518 * f-valprint.c (info_common_command): Bail out to prevent null
519 pointer deref. Break up a long line.
521 * exec.c (xfer_memory): Remove redundant condition from 'if'.
523 * symfile.c (reread_separate_symbols): Free xmalloced memory.
525 * printcmd.c (build_address_symbolic): Remove dead code and dead
528 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
530 * linespec.c (minsym_found): Advance to the next line if possible.
532 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
534 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
535 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
536 solib-svr4.o, and add solib-target.o
538 2007-07-27 Michael Snyder <msnyder@access-company.com>
540 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
542 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
544 * MAINTAINERS (Write After Approval): Add myself.
546 2007-07-26 Maciej W. Rozycki <macro@mips.com>
548 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
551 2007-07-25 Maciej W. Rozycki <macro@mips.com>
553 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
555 2007-07-24 Michael Snyder <msnyder@access-company.com>
557 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
558 'buffer' must cover both branches that call strcmp (Coverity).
560 * stack.c (print_frame_args): Check return value of lookup_symbol.
562 * ax-gdb.c (find_field): Guard against null ptr.
564 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
566 * regformats/reg-spu.dat: Fix order of npc, id registers.
568 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
570 * target.c (memory_xfer_partial): Accesses to unmapped overlay
571 sections should always go to the executable file.
573 2004-07-20 Chris Dearman <chris@mips.com>
575 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
576 prologue instructions.
578 2007-07-20 Maciej W. Rozycki <macro@mips.com>
580 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
583 2007-07-20 Chris Dearman <chris@mips.com>
584 Maciej W. Rozycki <macro@mips.com>
586 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
589 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
590 Daniel Jacobowitz <dan@codesourcery.com>
592 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
593 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
595 * NEWS: Mention gdbserver DLL support.
597 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
599 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
601 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
603 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
606 2007-07-13 Kevin Buettner <kevinb@redhat.com>
608 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
611 2007-07-12 Kevin Buettner <kevinb@redhat.com>
613 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
614 (mep_analyze_prologue): Add case for BRA instruction.
616 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
618 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
620 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
622 * breakpoint.c: Include "top.h".
623 (breakpoint_1): Don't set convenience variable $_ if server prefix
625 (_initialize_breakpoint): Describe this behaviour in command help.
627 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
629 * solib-target.c (library_list_start_segment): Cast address to
632 2007-07-06 Mark Kettenis <kettenis@gnu.org>
634 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
635 for terminated processes.
637 2007-07-05 Michael Snyder <msnyder@access-company.com>
639 * event-top.c (cli_command_loop): Prompt string can (and should)
640 be freed after call to readline (Coverity). Also move local var
641 declarations into block where they are used.
643 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
644 should) be freed after call to readline (Coverity). Also move
645 local var declarations into block where they are used.
647 2007-07-03 Andreas Schwab <schwab@suse.de>
649 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
652 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
653 Thiago Bauermann <bauerman@br.ibm.com>
654 Joseph S. Myers <joseph@codesourcery.com>
655 Daniel Jacobowitz <dan@codesourcery.com>
657 * remote.c (remote_check_symbols): Use
658 gdbarch_convert_from_func_ptr_addr.
659 * infcall.c (find_function_addr): Handle function descriptors
660 without debugging information.
661 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
662 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
663 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
664 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
665 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
666 allow SEC_CODE and SEC_DATA.
667 (enable_break): Update calls. Pass current_target to solib_add.
668 Use gdbarch_convert_from_func_ptr_addr.
670 2007-07-03 Ilko Iliev <iliev@ronetix.at>
671 Daniel Jacobowitz <dan@codesourcery.com>
673 * symfile.c (print_transfer_performance): Avoid integer overflow.
676 2007-07-03 Markus Deuling <deuling@de.ibm.com>
678 * cp-namespace.c (lookup_symbol_file): Add block to
679 lookup_symbol_global call.
680 * Makefile.in (solist_h): Add dependency on symtab header.
681 (symtab.o): Add dependency on solist header.
682 * solib.c (solib_global_lookup): New function.
683 * solib-svr4.c (scan_dyntag): Likewise.
684 (elf_locate_base): Call helper routine scan_dyntag.
685 (elf_lookup_lib_symbol): New function.
686 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
687 * solist.h (symtab.h): New include.
688 (struct target_so_ops): New member lookup_lib_global_symbol.
689 (solib_global_lookup): New prototype.
690 * symtab.c: New include solist.h.
691 (lookup_objfile_from_block): New function.
692 (lookup_global_symbol_from_objfile): New function.
693 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
694 (lookup_symbol_global): Call library-specific lookup procedure.
695 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
697 * NEWS: Document framework.
699 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
701 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
704 * cli/cli-script.c (build_command_line): Update NULL check.
706 2007-07-02 Michael Snyder <msnyder@access-company.com>
708 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
710 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
712 * Makefile.in (XMLFILES): Add library-list.dtd.
713 (ALLDEPFILES): Add solib-target.o.
714 (solib-target.o): New rule.
715 * remote.c (PACKET_qXfer_libraries): New constant.
716 (remote_protocol_features): Add qXfer:libraries:read.
717 (remote_wait): Recognize library stop replies.
718 (remote_async_wait): Likewise. Fix typo.
719 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
720 (init_remote_async_ops): Fix typo.
721 (_initialize_remote): Register "set remote library-info-packet".
722 * solib-som.c (som_current_sos): Set addr_low and addr_high.
723 * solib-target.c: New file.
724 * solib.c (solib_map_sections): Use addr_low and addr_high instead
726 (info_sharedlibrary_command): Likewise.
727 (solib_add_library, solib_remove_library): New.
728 * solist.h (struct so_list): Replace textsection with addr_low and
730 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
731 * NEWS: Describe new qXfer:libraries:read and shared library
733 * features/library-list.dtd: New.
735 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
737 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
738 (start_remote): Use STOP_QUIETLY_REMOTE.
739 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
740 support on a SOLIB_ADD definition. Update breakpoints_inserted.
741 Update to match shared library event breakpoint support. Only
742 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
743 (normal_stop): Handle TARGET_WAITKIND_LOADED.
744 * fork-child.c (startup_inferior): Do not set
745 inferior_ignoring_startup_exec_events
746 * inferior.h (inferior_ignoring_startup_exec_events): Delete
748 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
750 2007-07-02 Markus Deuling <deuling@de.ibm.com>
752 * breakpoint.c (insert_bp_location): Remove dead code
753 (DISABLE_UNSETTABLE_BREAK).
754 (disable_breakpoints_in_shlibs)
755 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
757 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
759 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
760 Call insert_bp_location.
762 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
764 * core-regset.c (fetch_core_registers): Work around gcc 3.4
767 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
769 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
772 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
774 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
775 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
776 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
777 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
778 to display_gdb_prompt.
780 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
783 * target.c (memory_xfer_partial): Do not continue past targets with
786 2007-06-30 Andreas Schwab <schwab@suse.de>
788 * m68k-tdep.c (m68k_ps_type): New.
789 (m68k_init_types): New.
790 (m68k_register_type): Use m68k_ps_type for PS register.
791 (_initialize_m68k_tdep): Call m68k_init_types.
793 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
794 from the generic m68k arch.
796 2007-06-28 Michael Snyder <msnyder@access-company.com>
798 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
801 * linux-thread-db.c (thread_db_get_thread_local_address): Add
802 gdb_assert before using return value of find_thread_pid (Coverity).
804 * source.c (unset_substitute_path_command): Plug leak (Coverity).
806 * cli/cli-script.c (build_command_line): Add null pointer guard
809 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
811 * linux-thread-db.c (thread_db_attach): Delete.
812 (thread_db_detach): Typo fix. Call target_mourn_inferior
813 instead of fixing up proc_handle.
814 (have_threads_callback, have_threads): New functions.
815 (thread_db_wait): Remove dead proc_handle.pid check. Only
816 translate PTIDs if we have registered threads. Check for new
817 threads if we have none.
818 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
819 (find_new_threads_callback): Only enable event reporting if TID == 0.
820 (same_ptid_callback): New.
821 (thread_db_get_thread_local_address): Check for new threads.
822 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
823 or to_post_startup_inferior.
825 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
827 * infrun.c (adjust_pc_after_break): Do not assume software single-step
828 is always active if SOFTWARE_SINGLE_STEP_P is true.
829 (resume): Use gdbarch_software_single_step[_p] instead of
830 SOFTWARE_SINGLE_STEP[_P].
831 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
833 * gdbarch.sh (software_single_step): Remove target macro.
834 * gdbarch.h, gdbarch.c: Regenerate.
836 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
838 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
839 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
840 (struct gdbarch_swap, struct gdbarch_swap_registration,
841 struct gdbarch_swap_registry, gdbarch_swap_registry,
842 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
843 current_gdbarch_swap_in_hack): Remove.
844 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
845 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
846 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
847 (deprecated_current_gdbarch_select_hack): Likewise.
848 * gdbarch.h, gdbarch.c: Regenerate.
850 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
852 * infrun.c (clear_proceed_status): Clean up stop_registers.
853 (normal_stop): Allocate regcache for stop_registers.
854 (struct inferior_status): Remove stop_registers member.
855 (save_inferior_status): Do not save stop_registers.
856 (restore_inferior_status): Do not restore stop_registers.
857 (discard_inferior_status): Do not discard stop_registers.
858 (build_infrun): Remove.
859 (_initialize_infrun): Do not swap stop_registers.
861 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
863 * remote.c (remote_address_masked): If remote_address_size is zero,
864 default to target address size.
865 (build_remote_gdbarch_data): Remove.
866 (_initialize_remote): Do not swap remote_address_size.
868 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
870 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
871 builtin_type_char, builtin_type_short, builtin_type_int,
872 builtin_type_long, builtin_type_signed_char,
873 builtin_type_unsigned_char, builtin_type_unsigned_short,
874 builtin_type_unsigned_int, builtin_type_unsigned_long,
875 builtin_type_float, builtin_type_double, builtin_type_long_double,
876 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
877 builtin_type_bool, builtin_type_long_long,
878 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
879 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
880 variable declaration with compatibility macro.
881 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
882 builtin_type_char, builtin_type_short, builtin_type_int,
883 builtin_type_long, builtin_type_signed_char,
884 builtin_type_unsigned_char, builtin_type_unsigned_short,
885 builtin_type_unsigned_int, builtin_type_unsigned_long,
886 builtin_type_float, builtin_type_double, builtin_type_long_double,
887 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
888 builtin_type_bool, builtin_type_long_long,
889 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
890 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
891 (build_gdbtypes): Remove.
892 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
893 opaque-type-resolution command here. Do not call
894 deprecated_register_gdbarch_swap.
896 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
898 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
899 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
900 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
902 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
903 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
904 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
905 (build_parse): Remove.
906 (_initialize_parse): Do not call build_parse. Do not register
907 msym_ types for gdbarch-swapping.
909 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
910 instead of creating private type.
912 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
913 (_initialize_xcoffread): Do not initialized them.
914 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
916 * mdebugread.c (nodebug_func_symbol_type): Remove.
917 (nodebug_var_symbol_type): Remove.
918 (_initialize_mdebugread): Do not initialize them.
919 (parse_symbol): Use builtin nodebug_ type instead of them.
920 (parse_procedure): Likewise.
922 2007-06-21 Chris Dearman <chris@mips.com>
924 * printcmd.c (do_one_display): If display/i, start with an initial
925 line feed to avoid bad layout if there is a branch delay slot.
927 2007-06-21 Nigel Stephens <nigel@mips.com>
928 Maciej W. Rozycki <macro@mips.com>
930 * disasm.c (gdb_print_insn): Return the number of branch delay
931 slot instructions too.
932 * disasm.h (gdb_print_insn): Update prototype.
933 * printcmd.c (branch_delay_insns): New variable to record the
934 number of delay slot instructions after disassembling a branch.
935 (print_formatted): Record the number of branch delay slot
937 (do_examine): When disassembling, if the last instruction
938 disassembled has any branch delay slots, then bump the count so
939 that they get disassembled too.
940 * tui/tui-disasm.c (tui_disassemble): Update the call to
942 * NEWS: Document the new behaviour.
944 2007-06-21 Andreas Schwab <schwab@suse.de>
946 * regcache.c (write_pc_pid): Restore missing else.
948 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
950 * regcache.c (regcache_print): Use get_current_regcache ()
951 instead of current_regcache.
953 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
956 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
957 instead of bfd_make_section_anyway.
958 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
959 when clearing SEC_LOAD.
961 2007-06-19 Joseph Myers <joseph@codesourcery.com>
963 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
964 registers for big-endian.
966 2007-06-19 Markus Deuling <deuling@de.ibm.com>
968 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
969 * disasm.c (dump_insns, gdb_print_insn): Likewise.
970 * gdbarch.c, gdbarch.h: Regenerate.
972 2007-06-19 Markus Deuling <deuling@de.ibm.com>
974 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
975 gdbarch_believe_pcc_promotion.
976 * stabsread.c (define_symbol): Likewise.
977 Remove unnecessary definition.
978 * coffread.c (process_coff_symbol): Remove unnecessary code.
979 * gdbarch.c, gdbarch.h: Regenerate.
981 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
983 * configure.ac: Do not use ${objdir}.
984 * configure: Regenerated.
986 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
988 * gdbarch.sh (deprecated_register_size): Remove.
989 * gdbarch.h, gdbarch.c: Regenerate.
991 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
992 by INT_REGISTER_SIZE.
993 (thumb_get_next_pc, arm_return_in_memory): Likewise.
994 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
995 * ia64-tdep.c (ia64_gdbarch_init): Do not call
996 set_gdbarch_deprecated_register_size.
998 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1000 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
1001 gdbarch_deprecated_fp_regnum.
1002 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1003 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
1004 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1005 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
1007 * gdbarch.c, gdbarch.h: Regenerate.
1009 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1011 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
1012 gdbarch_extract_return_value.
1013 * value.c (generic_use_struct_convention): Likewise (comment).
1014 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
1015 * arch-utils.c (legacy_return_value): Likewise.
1016 * arch-utils.h (legacy_return_value): Likewise (comment).
1017 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
1018 gdbarch_store_return_value.
1019 * stack.c (return_command): Likewise (comment).
1020 * arch-utils.h (legacy_return_value): Likewise (comment).
1021 * arch-utils.c (legacy_return_value): Likewise.
1022 * gdbarch.c, gdbarch.h: Regenerate.
1024 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1026 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
1027 gdbarch_deprecated_use_struct_convention.
1028 * arch-utils.c (legacy_return_value): Likewise.
1029 * gdbarch.c, gdbarch.h: Regenerate.
1031 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1033 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
1034 gdbarch_deprecated_function_start_offset.
1035 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
1036 * linespec.c (minsym_found): Likewise.
1037 * infrun.c (handle_inferior_event): Likewise.
1038 * infcall.c (find_function_addr): Likewise.
1039 * cli/cli-cmds.c (disassemble_command): Likewise.
1040 * gdbarch.c, gdbarch.h: Regenerate.
1042 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1044 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
1045 gdbarch_deprecated_reg_struct_has_addr.
1046 * infcall.c (call_function_by_hand): Likewise.
1047 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
1048 * gdbarch_deprecated_reg_struct_has_addr_p.
1049 * infcall.c (call_function_by_hand): Likewise.
1050 * gdbarch.c, gdbarch.h: Regenerate.
1052 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1054 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1055 * sh-tdep.c (sh_extract_struct_value_address): Remove.
1056 (sh_gdbarch_init): Remove
1057 set_gdbarch_deprecated_extract_struct_value_address.
1058 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
1059 (sh64_gdbarch_init): Remove
1060 set_gdbarch_deprecated_extract_struct_value_address.
1061 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
1062 (ia64_gdbarch_init): Remove
1063 set_gdbarch_deprecated_extract_struct_value_address.
1064 * frv-tdep.c (frv_extract_struct_value_address): Remove.
1065 (frv_gdbarch_init): Remove
1066 set_gdbarch_deprecated_extract_struct_value_address.
1067 * gdbarch.c, gdbarch.h: Regenerate.
1069 2007-06-18 Markus Deuling <deuling@de.ibm.com>
1071 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
1072 * v850-tdep.c (v850_unwind_sp): Likewise.
1073 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
1074 * stack.c (frame_info): Likewise.
1075 * stabsread.c (define_symbol): Likewise.
1076 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1077 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
1078 (sh_unwind_sp): Likewise.
1079 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
1080 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
1081 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
1082 (rs6000_frame_cache): Likewise.
1083 * rs6000-nat.c (store_register): Likewise.
1084 * remote-mips.c (mips_wait): Likewise.
1085 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1086 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1087 (ppc64_sysv_abi_push_dummy_call): Likewise.
1088 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1089 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1090 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1091 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1092 * m32r-rom.c (m32r_supply_register): Likewise.
1093 * frame.c (frame_sp_unwind): Likewise.
1094 * mips-tdep.c (mips_insn16_frame_cache)
1095 (mips_insn32_frame_cache): Likewise (comment).
1096 * m68klinux-nat.c (supply_gregset): Likewise.
1097 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1098 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
1099 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1100 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1101 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
1102 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
1103 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
1104 (cris_register_type, crisv32_register_type)
1105 (cris_dwarf2_frame_init_reg): Likewise.
1106 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1107 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
1108 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1109 * libunwind-frame.c (libunwind_frame_cache): Likewise.
1111 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
1112 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
1113 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
1114 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
1115 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
1116 * v850-tdep.c (v850_unwind_pc): Likewise.
1117 * stack.c (frame_info): Likewise.
1118 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
1119 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
1120 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
1121 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
1122 (sh_dsp_show_regs): Likewise.
1123 * shnbsd-tdep.c (shnbsd_supply_gregset)
1124 (shnbsd_collect_gregset): Likewise.
1125 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
1126 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
1127 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
1128 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1129 (6000_register_reggroup_p, rs6000_unwind_pc)
1130 (rs6000_frame_cache): Likewise.
1131 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
1132 (rs6000_store_inferior_registers): Likewise.
1133 * remote-mips.c (mips_wait, mips_load): Likewise.
1134 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1135 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1136 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1137 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1138 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
1139 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1140 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
1141 (store_ppc_registers, fill_gregset): Likewise.
1142 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
1143 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
1144 * mipsnbsd-nat.c (getregs_supplies): Likewise.
1145 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1146 * m68klinux-nat.c (supply_gregset): Likewise.
1147 * irix5-nat.c (fill_gregset): Likewise.
1148 * i386-tdep.c (i386_unwind_pc): Likewise.
1149 * i386-linux-nat.c (i386_linux_resume): Likewise.
1150 * frame.c (get_prev_frame_1): Likewise.
1151 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1152 * dbug-rom.c (dbug_supply_register): Likewise.
1153 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
1154 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
1155 (cris_register_type, crisv32_register_type, crisv32_register_name)
1156 (cris_dwarf2_frame_init_reg, find_step_target)
1157 (cris_software_single_step, cris_supply_gregset)
1158 (cris_regnums): Likewise.
1159 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1160 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1161 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
1162 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
1163 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1165 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
1166 * dbug-rom.c (dbug_supply_register): Likewise.
1167 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
1168 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
1169 * win32-nat.c (win32_resume): Likewise.
1170 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
1171 * m68k-tdep.c (m68k_register_type): Likewise.
1172 * m68klinux-nat.c (supply_gregset): Likewise.
1174 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
1175 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
1176 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
1177 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1178 (fv_reg_base_num, dr_reg_base_num): Likewise.
1179 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
1180 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
1181 (sh64_extract_return_value, sh64_store_return_value)
1182 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
1183 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
1184 * procfs.c (procfs_fetch_registers, procfs_store_registers)
1185 (invalidate_cache): Likewise.
1186 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1187 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
1188 (mipsnbsd_fill_fpreg): Likewise.
1189 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1190 (mipsnbsd_store_inferior_registers): Likewise.
1191 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
1192 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
1193 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
1194 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
1195 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
1196 (fill_fpregset): Likewise.
1197 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
1198 * i386-tdep.h (struct_return): Likewise (comment).
1199 * i386-nto-tdep.c (i386nto_register_area): Likewise.
1200 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1201 (go32_store_registers): Likewise.
1202 * alpha-tdep.c (alpha_next_pc): Likewise.
1203 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1204 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1205 (alphabsd_store_inferior_registers): Likewise.
1206 * core-regset.c (fetch_core_registers): Likewise.
1207 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1209 * gdbarch.c, gdbarch.h: Regenerate.
1211 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
1213 * coffread.c (coff_sym_fns): Add default_symfile_segments.
1214 * dbxread.c (start_psymtab): Check HAVE_ELF.
1215 (aout_sym_fns): Likewise.
1216 * elfread.c (elf_symfile_segments): New.
1217 (elf_sym_fns): Add elf_symfile_segments.
1218 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
1219 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
1220 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
1221 * somread.c (som_sym_fns): Use default_symfile_segments.
1222 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
1223 (init_objfile_sect_indices): Call symfile_find_segment_sections.
1224 (default_symfile_segments): New function.
1225 (syms_from_objfile): Update call to find_sym_fns.
1226 (symfile_get_segment_data, free_symfile_segment_data): New.
1227 (symfile_map_offsets_to_segments): New.
1228 (symfile_find_segment_sections): New.
1229 * symfile.h (struct symfile_segment_data): New.
1230 (struct sym_fns): Add sym_segments.
1231 (default_symfile_segments, symfile_get_segment_data)
1232 (free_symfile_segment_data): New prototypes.
1233 (symfile_map_offsets_to_segments): Likewise.
1234 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
1235 * Makefile.in (COMMON_OBS): Remove elfread.o.
1236 (elf_internal_h): New.
1237 (elfread.o): Update.
1238 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
1240 * config.in, configure: Regenerated.
1241 * NEWS: Mention qOffsets changes.
1243 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1245 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
1246 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1247 Replace global variable declaration with compatibility macro.
1248 (struct builtin_m2_type): New data type.
1249 (builtin_m2_type): Add prototype.
1250 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
1251 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1252 Remove global variables.
1253 (m2_language_arch_info): Use builtin_m2_type instead of variables.
1254 (build_m2_types): New function.
1255 (m2_type_data): New variable.
1256 (builtin_m2_type): New function.
1257 (_initialize_m2_language): Do not build data types. Register
1258 m2_type_data per-gdbarch data.
1260 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1262 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
1263 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1264 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1265 builtin_type_f_real_s8, builtin_type_f_real_s16,
1266 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1267 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
1268 variable declaration with compatibility macro.
1269 (struct builtin_f_type): New data type.
1270 (builtin_f_type): Add prototype.
1271 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
1272 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1273 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1274 builtin_type_f_real_s8, builtin_type_f_real_s16,
1275 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1276 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
1277 (f_language_arch_info): Use builtin_f_type instead of variables.
1278 (build_fortran_types): Build builtin_f_type structure instead of
1279 setting global type variables.
1280 (f_type_data): New variable.
1281 (builtin_f_type): New function.
1282 (_initialize_f_language): Do not call build_fortran_types. Do not
1283 swap global type variables. Register f_type_data per-gdbarch data.
1285 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1287 * f-lang.c (_initialize_f_language): Do not initialize or
1288 swap builtin_type_string.
1290 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1292 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
1293 value_of_builtin_frame_reg): Remove.
1294 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
1295 inactive call to value_of_builtin_frame_reg.
1297 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1299 * gdbarch.sh (bfd_vma_bit): Remove.
1300 * gdbarch.c, gdbarch.h: Regenerate.
1302 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1303 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1304 (build_gdbtypes): Do not initialize it.
1305 (_initialize_gdbtypes): Do not swap it.
1307 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1309 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
1310 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1311 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1312 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1313 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1314 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1315 builtin_type_vec64, builtin_type_vec128): Remove.
1316 (init_simd_type): Remove.
1317 (init_vector_type): Make global.
1318 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
1319 (build_gdbtypes): Do not build vector types.
1320 (_initialize_gdbtypes): Do not swap vector types.
1321 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
1322 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1323 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1324 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1325 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1326 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1327 builtin_type_vec64, builtin_type_vec128): Remove declarations.
1328 (init_vector_type): Add prototype.
1330 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
1331 i386_sse_type members.
1332 (i386_mmx_type, i386_sse_type): Change from variables to functions.
1333 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
1334 (i386_init_types): Do not build vector types.
1335 (i386_mmx_type, i386_sse_type): New functions.
1336 (i386_register_type): Call them instead of using global variables.
1337 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
1338 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
1339 of using global variable.
1341 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
1342 and ppc_builtin_type_vec128 members.
1343 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
1344 (rs6000_builtin_type_vec128): Likewise.
1345 (rs6000_register_type): Call them instead of using builtin_type_vec64
1346 and builtin_type_vec128.
1347 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
1349 * spu-tdep.c (struct gdbarch_tdep): New data type.
1350 (spu_builtin_type_vec128): Remove variable.
1351 (spu_builtin_type_vec128): New function.
1352 (spu_register_type): Call it instead of using global variable.
1353 (spu_gdbarch_init): Allocate tdep structure.
1354 (spu_init_vector_type): Remove function.
1355 (_initialize_spu_tdep): Do not call it.
1357 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1359 * amd64-tdep.c (struct amd64_register_info): Remove.
1360 (amd64_register_info): Remove.
1361 (amd64_register_names): New static variable.
1362 (AMD64_NUM_REGS): Use amd64_register_names instead of
1363 amd64_register_info.
1364 (amd64_register_name): Likewise.
1365 (amd64_register_type): Do not refer to amd64_register_info.
1367 * s390-tdep.c (struct s390_register_info): Remove.
1368 (s390_register_info): Remove.
1369 (s390_register_name): Do not refer to s390_register_info.
1370 (s390_register_type): Likewise.
1372 * sparc64-tdep.c (struct sparc64_register_info): Remove.
1373 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
1374 (sparc64_register_names, sparc64_pseudo_register_names): New.
1375 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
1376 sparc64_register_names and sparc64_pseudo_register_names instead of
1377 sparc64_register_info and sparc64_pseudo_register_info.
1378 (sparc64_register_name): Likewise.
1379 (sparc64_register_type): Do not refer to sparc64_register_info
1380 and sparc64_pseudo_register_info.
1382 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1384 * c-lang.c (cplus_builtin_types): Remove.
1385 (enum cplus_primitive_types): New data type.
1386 (cplus_language_arch_info): New function.
1387 (cplus_language_defn): Set la_language_arch_info member. Do not set
1388 la_builtin_type_vector and string_char_type members.
1390 * f-lang.c (f_builtin_types): Remove.
1391 (enum f_primitive_types): New data type.
1392 (f_language_arch_info): New function.
1393 (f_language_de): Set la_language_arch_info member. Do not set
1394 la_builtin_type_vector and string_char_type members.
1396 * m2-lang.c (m2_builtin_types): Remove.
1397 (enum m2_primitive_types): New data type.
1398 (m2_language_arch_info): New function.
1399 (m2_language_defn): Set la_language_arch_info member. Do not set
1400 la_builtin_type_vector and string_char_type members.
1402 * objc-lang.c (objc_builtin_types): Remove.
1403 (objc_language): Set la_language_arch_info member. Do not set
1404 la_builtin_type_vector and string_char_type members.
1406 * p-lang.c (pascal_builtin_types): Remove.
1407 (enum pascal_primitive_types): New data type.
1408 (pascal_language_arch_info): New function.
1409 (pascal_language_defn): Set la_language_arch_info member. Do not set
1410 la_builtin_type_vector and string_char_type members.
1412 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1414 * regcache.c (struct regcache): Add ptid_t member.
1415 (regcache_xmalloc): Initialize it.
1416 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
1417 (regcache_dup): Likewise.
1418 (regcache_dup_no_passthrough): Likewise.
1419 (current_regcache): Make static.
1420 (registers_ptid): Remove variable.
1421 (get_thread_regcache): New function.
1422 (get_current_regcache): New function.
1423 (registers_changed): Implement by freeing current regcache.
1424 (regcache_raw_read): Do not refer to current_regcache. Set
1425 inferior_ptid to regcache->ptid while calling target routines.
1426 (regcache_raw_write): Likewise.
1427 (regcache_raw_supply): Do not refer to current_regcache.
1428 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
1429 (write_pc_pid): Likewise.
1430 (build_regcache): Remove.
1431 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
1432 or deprecated_register_gdbarch_swap. Do not initialize
1434 * regcache.h (get_current_regcache): Add prototype.
1435 (get_thread_regcache): Likewise.
1436 (current_regcache): Remove declaration.
1438 * corelow.c (core_open): Replace current_regcache by
1439 get_current_regcache ().
1440 * frame.c (frame_pop): Likewise.
1441 (put_frame_register): Likewise.
1442 (get_current_frame, create_new_frame): Likewise.
1443 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
1444 * stack.c (return_command): Likewise.
1445 * infcall.c (call_function_by_hand): Likewise.
1446 * infrun.c (resume): Likewise.
1447 (save_inferior_status, restore_inferior_status): Likewise.
1448 * linux-fork.c (fork_load_infrun_state): Likewise.
1449 (fork_save_infrun_state): Likewise.
1450 * win32-nat.c (win32_resume): Likewise.
1451 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
1452 * monitor.c (monitor_wait): Likewise.
1453 * remote.c (remote_wait): Likewise.
1454 * remote-mips.c (mips_wait): Likewise.
1456 * bsd-kvm.c (bsd_kvm_open): Likewise
1457 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
1458 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
1459 * i386-linux-nat.c (i386_linux_resume): Likewise.
1460 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
1461 (ia64_linux_stopped_data_address): Likewise.
1463 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
1464 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1465 * mep-tdep.c (current_me_module, current_options): Likewise.
1466 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
1468 * linux-nat.c (linux_nat_do_thread_registers): Use thread
1469 regcache instead of current_regcache. Call target_fetch_registers.
1470 (linux_nat_corefile_thread_callback): Update call site.
1471 (linux_nat_do_registers): Likewise.
1472 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
1473 of current_regcache.
1474 (procfs_make_note_section): Likewise.
1475 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
1476 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1477 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
1478 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1480 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1482 * regcache.c (read_register, read_register_pid): Remove.
1483 (write_register, write_register_pid): Likewise.
1484 * regcache.h (read_register, read_register_pid): Remove prototype.
1485 (write_register, write_register_pid): Likewise.
1487 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1489 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
1490 (write_pc): Likewise. Remove default implementation, add predicate.
1491 * gdbarch.c, gdbarch.h: Regenerate.
1492 * regcache.c (read_pc_pid): Use current regcache instead of calling
1494 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
1496 (generic_target_write_pc): Remove.
1497 * inferior.h (generic_target_write_pc): Remove.
1498 * frv-tdep.c (frv_gdbarch_init): Do not install it.
1499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1500 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1501 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1502 * sh-tdep.c (sh_gdbarch_init): Likewise.
1503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1505 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
1506 argument. Use REGCACHE instead of calling read_register_pid.
1507 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
1508 * hppa-tdep.c (hppa_read_pc): Likewise.
1509 * hppa-tdep.h (hppa_read_pc): Likewise.
1510 * ia64-tdep.c (ia64_read_pc): Likewise.
1511 * m32r-tdep.c (m32r_read_pc): Likewise.
1512 * mep-tdep.c (mep_read_pc): Likewise.
1513 * mn10300-tdep.c (mn10300_read_pc): Likewise.
1514 * spu-tdep.c (spu_read_pc): Likewise.
1516 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
1517 argument. Use REGCACHE instead of calling write_register_pid.
1518 * avr-tdep.c (avr_write_pc): Likewise.
1519 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
1520 * hppa-tdep.c (hppa_write_pc): Likewise.
1521 * hppa-tdep.h (hppa_write_pc): Likewise.
1522 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
1523 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
1524 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
1525 * ia64-tdep.c (ia64_write_pc): Likewise.
1526 * ia64-tdep.h (ia64_write_pc): Likewise.
1527 * m32r-tdep.c (m32r_write_pc): Likewise.
1528 * m88k-tdep.c (m88k_write_pc): Likewise.
1529 * mep-tdep.c (mep_write_pc): Likewise.
1530 * mips-tdep.c (mips_write_pc): Likewise.
1531 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1532 * mn10300-tdep.c (mn10300_write_pc): Likewise.
1533 * sparc-tdep.c (sparc_write_pc): Likewise.
1534 * spu-tdep.c (spu_write_pc): Likewise.
1536 * mips-tdep.c (read_signed_register): Remove.
1537 (read_signed_register_pid): Likewise.
1538 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
1539 Use REGCACHE instead of calling read_signed_register_pid.
1541 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1543 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
1544 * gdbarch.c, gdbarch.h: Regenerate.
1545 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
1546 (push_dummy_code): Likewise. Pass it to callee.
1547 (call_function_by_hand): Pass current regcache to push_dummy_code.
1549 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
1550 argument. Use it instead of current_regcache.
1552 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
1553 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1555 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1557 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
1558 * gdbarch.c, gdbarch.h: Regenerate.
1559 * infrun.c (handle_inferior_event): Pass current frame to
1560 gdbarch_get_longjmp_target.
1562 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
1563 Read registers from FRAME instead of using read_register.
1564 Use get_frame_arch instead of current_gdbarch.
1565 * arm-tdep.c (arm_get_longjmp_target): Likewise.
1566 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1567 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1568 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
1569 (mips64_linux_get_longjmp_target): Likewise.
1570 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1572 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1574 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
1575 * gdbarch.c, gdbarch.h: Regenerate.
1576 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
1577 * arch-utils.h (generic_skip_trampoline_code): Likewise.
1578 * infrun.c (handle_inferior_event): Pass current frame to
1579 gdbarch_skip_trampoline_code and skip_language_trampoline.
1581 * language.c (unk_lang_trampoline): Add FRAME argument.
1582 (skip_language_trampoline): Add FRAME argument. Pass it to
1583 skip_trampoline callback.
1584 * language.h: Add forward declaration of struct frame_info.
1585 (struct language_defn): Add FRAME argument to skip_trampoline.
1586 (skip_language_trampoline): Add FRAME argument.
1587 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
1588 to skip_trampoline callback.
1589 * cp-abi.h: Add forward declaration of struct frame_info.
1590 (cplus_skip_trampoline): Add FRAME argument.
1591 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
1592 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
1593 to gdbarch_skip_trampoline_code.
1594 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
1595 to gdbarch_skip_trampoline_code.
1597 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
1598 * symtab.h (find_solib_trampoline_target): Likewise.
1599 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
1600 find_solib_trampoline_target.
1602 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
1603 from FRAME instead of calling read_register.
1605 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
1606 argument. Read registers from FRAME instead of using read_register.
1607 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
1608 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
1610 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
1613 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
1615 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
1616 registers from FRAME instead of using read_signed_register.
1618 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
1620 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
1621 instead of using read_register.
1622 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
1623 ppc64_standard_linkage_target.
1624 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
1625 Pass it to find_solib_trampoline_target. Read registers from FRAME
1626 instead of using read_register.
1628 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
1631 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1633 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
1635 * gdbarch.c, gdbarch.h: Regenerate.
1636 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
1638 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
1639 registers from FRAME instead of using read_register.
1640 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1641 to alpha_next_pc. Use get_frame_pc instead of read_pc.
1642 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
1645 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
1646 from FRAME instead of using read_register.
1647 (thumb_get_next_pc): Likewise.
1648 (arm_get_next_pc): Likewise.
1649 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1650 to arm_get_next_pc. Use get_frame_pc instead of read_register.
1651 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
1654 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
1655 from FRAME instead of using read_register.
1656 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1657 to find_step_target.
1659 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
1660 from FRAME instead of using read_register / read_signed_register.
1661 (extended_mips16_next_pc): Likewise.
1662 (mips16_next_pc): Likewise.
1663 (mips_next_pc): Likewise.
1664 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1665 to mips_next_pc. Use get_frame_pc instead of read_pc.
1666 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
1669 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
1670 of current frame. Read registers from FRAME.
1671 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
1672 branch_dest. Use get_frame_pc instead of read_pc.
1673 (rs6000_software_single_step): Likewise.
1674 (bl_to_blrl_insn_p): Do not call branch_dest.
1675 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
1678 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
1679 Read registers from FRAME instead of current regcache.
1680 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
1681 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
1682 * sparc-tdep.c (sparc_address_from_register): Remove.
1683 (sparc_analyze_control_transfer): Pass FRAME argument instead of
1684 GDBARCH. Pass FRAME to step_trap callback.
1685 (sparc_step_trap): Add FRAME argument.
1686 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1687 to sparc_analyze_control_transfer. Read registers from FRAME instead
1688 of calling sparc_address_from_register.
1689 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
1691 (sparc_address_from_register): Remove prototype.
1692 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
1693 (sparcnbsd_step_trap): Add FRAME argument.
1695 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
1696 by FRAME. Read registers from FRAME instead of REGCACHE.
1698 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1700 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
1701 instead of calling read_register.
1703 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
1704 calling write_register.
1706 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
1707 calling write_register.
1709 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
1710 instead of calling read_register.
1711 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
1712 instead of calling read_register and write_register.
1714 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
1715 instead of current_regcache.
1717 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
1718 of calling write_register.
1719 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
1720 parameter instead of current_regcache.
1722 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
1723 instead of calling read_register.
1724 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
1725 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
1726 (mips_n32n64_push_dummy_call): Likewise.
1727 (mips_o32_push_dummy_call): Likewise.
1728 (mips_o64_push_dummy_call): Likewise.
1730 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
1731 parameter instead of current_regcache.
1733 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
1734 Use it instead of read_register and write_register.
1735 (xtensa_register_read_masked): Likewise.
1736 (xtensa_pseudo_register_read): Update call.
1737 (xtensa_pseudo_register_write): Likewise.
1738 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
1739 instead of calling read_register.
1740 (xtensa_push_dummy_call): Update comment.
1742 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1744 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
1745 by frame_unwind_register_signed calls.
1746 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
1747 frame allocations when called with NULL NEXT_FRAME parameter.
1748 (read_next_frame_reg): Remove.
1750 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
1751 instead of reading the FPSCR register.
1752 (sh_frame_cache): Pass unwound FPSCR register value to
1753 sh_analyze_prologue.
1754 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
1756 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
1757 instead of reading the CTBP register.
1758 (v850_frame_cache): Pass unwound CTBP register value to
1759 v850_analyze_prologue.
1761 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1763 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
1764 * sh-tdep.c (sh_show_regs): Likewise.
1765 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
1766 (sh_generic_show_regs): Add FRAME parameter. Use register
1767 values from that frame instead of calling read_register.
1768 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
1769 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
1770 sh_dsp_show_regs): Likewise.
1771 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
1772 sh64_show_regs): Likewise.
1774 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1776 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
1777 current regcache instead of calling read_register.
1779 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1781 * mep-tdep.c (current_me_module): Read from current regcache
1782 instead of calling read_register.
1783 (current_options): Likewise.
1785 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1787 * cris-tdep.c (cris_stopped_data_address): Read register values
1788 from current frame instead of calling read_register.
1789 * frv-tdep.c (frv_stopped_data_address): Likewise.
1791 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1793 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
1794 instead of write_register (PC_REGNUM, ...).
1796 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1798 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
1799 explaining why the PC adjustment code is necessary.
1801 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
1803 * m68k-tdep.h (enum m68k_flavour): New.
1804 (struct gdbarch_tdep): New fields
1805 float_return, flavour and fpregs_present.
1806 * m68k-tdep.c (m68k_register_type): Use
1807 fpregs_present and conditionalize floating
1808 registers type on flavour.
1809 (m68k_register_names): New.
1810 (m68k_register_name): Use the above.
1811 (m68k_convert_register_p): Consult fpregs_present.
1812 (m68k_register_to_value, m68k_value_to_register):
1813 Use register_type to obtain the type of floating
1815 (m68k_svr4_extract_return_value): Check tdep->float_return.
1816 Use register_type to get the type of floating
1818 (m68k_svr4_store_return_value): Likewise.
1819 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
1820 (m68k_analyze_register_saves): Likewise.
1821 (m68k_gdbarch_init): Extract infromation
1822 from XML description, if present. Guess coldfire by
1823 looking at the file, if present. Conditionalize
1824 setting of long double format. Set decr_pc_after_break
1825 to 2 on coldfire and fido. Enable XML-driven
1826 register description.
1827 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
1828 size of tdep->fpreg_type, as opposed to hardcoded value.
1829 * Makefile.in (m68k-tdep.o): Update dependencies.
1831 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1833 * NEWS: Mention "info spu" commands and qXfer:spu:read and
1834 qXfer:spu:write remote packet types.
1836 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1838 * xml-tdesc.c (tdesc_start_target): New.
1839 (target_attributes): New.
1840 (tdesc_elements): Use it.
1841 * features/gdb-target.dtd: Add #FIXED version attribute for
1844 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
1846 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
1848 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
1850 * fork-child.c (fork_inferior): Update comment.
1852 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1854 * features/Makefile: Generate regformats for mips-linux and
1856 * features/sort-regs.xsl: Correct typo.
1857 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
1858 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
1861 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1863 * config/mips/linux.mh (TDEP_XML): New.
1864 * features/mips-linux.xml, features/mips64-linux.xml: New files.
1865 * mips-linux-nat.c (mips_linux_register_addr): Handle
1866 MIPS_RESTART_REGNUM.
1867 (mips64_linux_register_addr): Likewise.
1868 (super_xfer_partial, mips_linux_xfer_partial): New.
1869 (_initialize_mips_linux_nat): Add them to the target_ops.
1870 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
1871 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
1872 (mips_linux_o32_sigframe_init)
1873 (mips_linux_n32n64_sigframe_init): Likewise.
1874 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
1875 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
1876 "org.gnu.gdb.mips.linux" feature.
1877 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
1878 (mips_linux_restart_reg_p): New prototype.
1879 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
1880 initialization routine.
1881 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
1883 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1885 * Makefile.in (mips-tdep.o): Update.
1886 * mips-tdep.c (struct register_alias, mips_o32_aliases)
1887 (mips_n32_n64_aliases, mips_register_aliases): New.
1888 (mips_register_name): Call tdesc_register_name.
1889 (mips_tdesc_register_reggroup_p): New.
1890 (mips_pseudo_register_type, value_of_mips_user_reg): New.
1891 (mips_gdbarch_init): Add target-described register support.
1892 Register aliases for register names.
1893 * target-descriptions.c (tdesc_register_name): Make global.
1894 (tdesc_register_in_reggroup_p): New function, broken out from
1895 tdesc_register_reggroup_p.
1896 (tdesc_register_reggroup_p): Use it.
1897 * target-descriptions.h (tdesc_register_name)
1898 (tdesc_register_in_reggroup_p): New prototypes.
1899 * NEWS: Correct formatting. Mention MIPS register support.
1900 * features/mips-cp0.xml, features/mips-fpu.xml,
1901 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
1902 features/mips64-cpu.xml: New files.
1904 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1906 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
1907 * valops.c (value_cast): Likewise.
1908 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
1909 * ui-out.c (ui_out_field_core_addr): Likewise.
1910 * tracepoint.c (tracepoints_info): Likewise.
1911 * symtab.c (print_msymbol_info): Likewise.
1912 * solib-irix.c (irix_current_sos)
1913 (irix_open_symbol_file_object): Likewise.
1914 * remote.c (build_remote_gdbarch_data): Likewise.
1915 * prologue-value.c (make_pv_area): Likewise.
1916 * procfs.c (info_mappings_callback): Likewise.
1917 * printcmd.c (print_scalar_formatted)
1918 (deprecated_print_address_numeric): Likewise.
1919 * memattr.c (mem_info_command): Likewise.
1920 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1921 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
1922 * exec.c (print_section_info): Likewise.
1923 * dwarf2read.c (read_subrange_type): Likewise.
1924 * dwarf2loc.c (find_location_expression): Likewise.
1925 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
1926 (signed_address_type, execute_stack_op): Likewise.
1927 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
1928 * gdbarch.c, gdbarch.h: Regenerate.
1930 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1932 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
1933 * arch-utils.c (show_architecture): Likewise.
1934 * remote-mips.c (mips_open): Likewise
1935 * nto-tdep.c (nto_find_and_open_solib)
1936 (nto_init_solib_absolute_prefix): Likewise.
1937 * nto-procfs (procfs_open): Likewise.
1938 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
1939 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
1940 * gdbarch.c, gdbarch.h: Regenerate.
1942 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1944 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
1945 * gdbtypes.c (build_flt): Likewise.
1946 * gdbarch.c, gdbarch.h: Regenerate.
1948 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1950 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
1951 gdbarch_breakpoint_from_pc.
1952 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
1953 * remote.c (remote_insert_breakpoint)
1954 (remote_insert_hw_breakpoint): Likewise.
1955 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1956 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
1957 * breakpoint.h (bp_target_info): Likewise (comment).
1958 * breakpoint.c (read_memory_nobpt): Likewise.
1959 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1960 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
1961 * gdbarch.c, gdbarch.h: Regenerate.
1963 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1965 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
1966 * solib-svr4.c (svr4_truncate_ptr): Likewise.
1967 * solib-pa64.c (read_dynamic_info): Likewise.
1968 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1969 * solib.c (info_sharedlibrary_command): Likewise.
1970 * s390-nat.c (SUBOFF): Likewise.
1971 * p-valprint.c (pascal_val_print): Likewise.
1972 * procfs.c (info_proc_mappings): Likewise.
1973 * printcmd.c (decode_format): Likewise.
1974 * nto-tdep.c (nto_truncate_ptr): Likewise.
1975 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1976 (mips64_linux_get_longjmp_target): Likewise.
1977 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1978 * jv-valprint.c (java_value_print): Likewise.
1979 * jv-lang.c (get_java_object_header_size): Likewise.
1980 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1981 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1982 (hppa_hpux_unwind_adjust_stub): Likewise.
1983 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1984 * gdbtypes.c (make_pointer_type, make_reference_type)
1985 (smash_to_memberptr_type): Likewise.
1986 * gdbarch.c, gdbarch.h: Regenerate.
1988 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1990 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
1991 (print_gp_register_row): Stop before printing a register bigger
1992 than the ABI register size.
1993 (mips_print_registers_info): Update call to mips_print_register.
1995 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1997 * expression.h (enum exp_opcode): Document a register name for
1999 * parse.c (write_dollar_variable): Write the register name for
2001 (operator_length_standard): Expect the register name following
2003 * ada-lang.c (resolve_subexp): Likewise.
2004 * ax-gdb.c (gen_expr): Likewise.
2005 * eval.c (evaluate_subexp_standard): Likewise.
2006 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2008 * tracepoint.c (encode_actions): Likewise.
2010 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2012 * utils.c (set_screen_size): Use INT_MAX for default columns.
2014 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2016 * remote.c (remote_protocol_features): Add qXfer:spu:read and
2017 qXfer:spu:write packet types.
2019 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2021 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
2022 * gdbarch.c, gdbarch.h: Regenerate.
2024 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2026 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
2027 gdbarch_stab_reg_to_regnum.
2028 * stabsread.c (define_symbol): Likewise.
2029 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
2030 gdbarch_ecoff_reg_to_regnum.
2031 * mdebugread.c (parse_symbol): Likewise.
2032 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
2033 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
2034 gdbarch_dwarf_reg_to_regnum.
2035 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
2036 * coffread.c (process_coff_symbol): Likewise.
2037 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
2038 gdbarch_dwarf2_reg_to_regnum.
2039 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
2040 (locexpr_describe_location): Likewise.
2041 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
2042 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
2043 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
2044 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
2045 * gdbarch.c, gdbarch.h: Regenerate.
2047 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2049 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
2050 gdbarch_smash_text_address.
2051 * somread.c (som_symtab_read): Likewise.
2052 * elfread.c (record_minimal_symbol): Likewise.
2053 * dbxread.c (process_one_symbol): Likewise.
2054 * coffread.c (coff_symtab_read): Likewise.
2055 * gdbarch.c, gdbarch.h: Regenerate.
2057 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2059 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
2060 * findvar.c (value_from_register): Likewise.
2061 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
2062 * valops.c (value_assign): Likewise.
2063 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
2064 gdbarch_convert_register_p.
2065 * findvar.c (value_from_register): Likewise.
2066 * valops.c (value_assign): Likewise.
2067 * gdbarch.c, gdbarch.h: Regenerate.
2069 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2071 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
2072 gdbarch_register_sim_regno.
2073 * sim-regno.h (sim_regno): Likewise (comment).
2074 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
2075 * gdbarch.c, gdbarch.h: Regenerate.
2077 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2079 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
2080 gdbarch_virtual_frame_pointer.
2081 * tracepoint.c (encode_actions): Likewise.
2082 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
2083 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
2084 * gdbarch.c, gdbarch.h: Regenerate.
2086 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2088 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
2089 * p-lang.c (pascal_create_fundamental_type): Likewise.
2090 * objc-lang.c (objc_create_fundamental_type): Likewise.
2091 * mdebugread.c (_initialize_mdebugread): Likewise.
2092 * m2-lang.c (m2_create_fundamental_type)
2093 (_initialize_m2_language): Likewise.
2094 * gdbtypes.c (build_gdbtypes): Likewise.
2095 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2096 * doublest.c (floatformat_from_length): Likewise.
2097 * c-lang.c (c_create_fundamental_type): Likewise.
2098 * ada-lang.c (ada_create_fundamental_type)
2099 (ada_language_arch_info): Likewise.
2100 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
2101 * value.c (unpack_double): Likewise (comment).
2102 * gdbtypes.c (build_gdbtypes): Likewise.
2103 * doublest.c (floatformat_from_length): Likewise.
2104 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
2105 * valarith.c (value_binop): Likewise.
2106 * p-lang.c (pascal_create_fundamental_type): Likewise.
2107 * objc-lang.c (objc_create_fundamental_type): Likewise.
2108 * mdebugread.c (_initialize_mdebugread): Likewise.
2109 * m2-lang.c (m2_create_fundamental_type): Likewise.
2110 * gdbtypes.c (build_gdbtypes): Likewise.
2111 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2112 * doublest.c (floatformat_from_length): Likewise.
2113 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
2114 * c-lang.c (c_create_fundamental_type): Likewise.
2115 * ada-lex.l (processReal): Likewise.
2116 * ada-lang.c (ada_create_fundamental_type)
2117 (ada_language_arch_info): Likewise.
2118 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
2119 * value.c (unpack_double): Likewise (comment).
2120 * gdbtypes.c (build_gdbtypes): Likewise.
2121 * doublest.c (floatformat_from_length): Likewise.
2122 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
2123 gdbarch_long_double_bit.
2124 * p-lang.c (pascal_create_fundamental_type): Likewise.
2125 * objc-lang.c (objc_create_fundamental_type): Likewise.
2126 * m2-lang.c (m2_create_fundamental_type): Likewise.
2127 * gdbtypes.c (build_gdbtypes): Likewise.
2128 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2129 * doublest.c (floatformat_from_length): Likewise.
2130 * c-lang.c (c_create_fundamental_type): Likewise.
2131 * ada-lex.l (processReal): Likewise.
2132 * ada-lang.c (ada_create_fundamental_type)
2133 (ada_language_arch_info): Likewise.
2134 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
2135 gdbarch_long_double_format.
2136 * gdbtypes.c (build_gdbtypes): Likewise.
2137 * doublest.c (floatformat_from_length): Likewise.
2138 * gdbarch.c, gdbarch.h: Regenerate.
2140 2007-06-12 Markus Deuling <deuling@de.ibm.com>
2142 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
2143 * ada-lang.c (ada_create_fundamental_type)
2144 (ada_language_arch_info): Likewise.
2145 * c-lang.c (c_create_fundamental_type): Likewise.
2146 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2147 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2148 * m2-lang.c (m2_create_fundamental_type): Likewise.
2149 * objc-lang.c (objc_create_fundamental_type): Likewise.
2150 * p-lang.c (pascal_create_fundamental_type): Likewise.
2151 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
2152 * c-exp.y (parse_number): Likewise.
2153 * objc-exp.y (parse_number): Likewise.
2154 * ada-lex.l (processInt): Likewise.
2155 * f-exp.y (parse_number): Likewise.
2156 * p-exp.y (parse_number): Likewise.
2157 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
2158 (gdbtypes_post_init, build_gdbtypes): Likewise.
2159 * p-lang.c (pascal_create_fundamental_type): Likewise.
2160 * parse.c (build_parse): Likewise.
2161 * xcoffread.c (_initialize_xcoffread): Likewise.
2162 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
2163 (read_range_type): Likewise.
2164 * objc-lang.c (objc_create_fundamental_type): Likewise.
2165 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
2166 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
2167 (m2_create_fundamental_type): Likewise.
2168 * c-lang.c (c_create_fundamental_type): Likewise.
2169 * coffread.c (coff_read_enum_type): Likewise.
2170 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
2171 * dwarf2read.c (new_symbol): Likewise.
2172 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
2173 * c-exp.y (parse_number): Likewise.
2174 * objc-exp.y (parse_number): Likewise.
2175 * ada-lex.l (processInt): Likewise.
2176 * f-exp.y (parse_number): Likewise.
2177 * p-exp.y (parse_number): Likewise.
2178 * valarith.c (value_binop): Likewise.
2179 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
2180 * ada-lang.c (ada_create_fundamental_type)
2181 (ada_language_arch_info): Likewise.
2182 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2183 * symfile.c (TARGET_LONG_BYTES): Likewise.
2184 * p-lang.c (pascal_create_fundamental_type): Likewise.
2185 * objc-lang.c (objc_create_fundamental_type): Likewise.
2186 * m2-lang.c (m2_create_fundamental_type): Likewise.
2187 * f-lang.c (f_create_fundamental_type): Likewise.
2188 * c-lang.c (c_create_fundamental_type): Likewise.
2189 * coffread.c (decode_base_type): Likewise.
2190 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
2191 * c-exp.y (parse_number): Likewise.
2192 * objc-exp.y (parse_number): Likewise.
2193 * p-exp.y (parse_number): Likewise.
2194 * ada-lang.c (ada_create_fundamental_type)
2195 (ada_language_arch_info): Likewise.
2196 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
2197 * stabsread.c (read_range_type): Likewise.
2198 * p-lang.c (pascal_create_fundamental_type): Likewise.
2199 * objc-lang.c (objc_create_fundamental_type): Likewise.
2200 * m2-lang.c (m2_create_fundamental_type): Likewise.
2201 * f-lang.c (f_create_fundamental_type): Likewise.
2202 * c-lang.c (c_create_fundamental_type): Likewise.
2203 * gdbarch.c, gdbarch.h: Regenerate.
2205 2007-06-12 Andreas Schwab <schwab@suse.de>
2207 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
2208 (struct frame_unwind): Add dealloc_cache.
2209 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
2211 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
2212 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
2213 (libunwind_frame_unwind): Set dealloc_cache.
2214 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
2216 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2217 Markus Deuling <deuling@de.ibm.com>
2219 * remote.c (remote_write_qxfer): New function.
2220 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
2221 (remote_read_qxfer): Do not cache empty objects.
2222 (_initialize_remote): Add PACKET_qXfer_spu_read and
2223 PACKET_qXfer_spu_write.
2225 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2227 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
2228 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
2230 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
2231 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
2232 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
2233 * spu-tdep.c (infospucmdlist): New variable.
2234 (spu_register_name): Handle additional pseudo registers.
2235 (spu_register_type): Likewise.
2236 (spu_pseudo_register_read): Likewise.
2237 (spu_pseudo_register_write): Likewise.
2238 (spu_pseudo_register_read_spu): New function.
2239 (spu_pseudo_register_write_spu): Likewise.
2240 (info_spu_event_command): New function.
2241 (info_spu_signal_command): Likewise.
2242 (info_spu_mailbox_list): Likewise.
2243 (info_spu_mailbox_command): Likewise.
2244 (spu_mfc_get_bitfield): Likewise.
2245 (info_spu_dma_cmdlist): Likewise.
2246 (info_spu_dma_command): Likewise.
2247 (info_spu_proxydma_command): Likewise.
2248 (info_spu_command): Likewise.
2249 (_initialize_spu_tdep): Install "info spu" commands.
2251 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2253 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
2254 accessing non-seekable spufs files.
2256 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2258 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
2259 gdbarch_skip_trampoline_code.
2260 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2261 * objc-lang.c (objc_skip_trampoline)
2262 (objc_submethod_helper_data): Likewise.
2263 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
2264 * infrun.c (handle_inferior_event): Likewise.
2265 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
2266 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
2267 gdbarch_in_solib_return_trampoline.
2268 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2269 * infrun.c (handle_inferior_event): Likewise.
2270 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
2271 * gdbarch.c, gdbarch.h: Regenerate.
2273 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2275 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
2276 * symtab.c (find_function_start_sal, in_prologue): Likewise.
2277 * linespec.c (minsym_found): Likewise.
2278 * infrun.c (step_into_function): Likewise.
2279 * gdbarch.c, gdbarch.h: Regenerate.
2281 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2283 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
2284 * valops.c (value_allocate_space_in_inferior): Likewise.
2285 * gdbarch.c, gdbarch.h: Regenerate.
2287 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2289 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
2290 gdbarch_memory_insert_breakpoint.
2291 * mem-break.c (memory_insert_breakpoint): Likewise.
2292 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
2293 gdbarch_memory_remove_breakpoint.
2294 * mem-break.c (memory_remove_breakpoint): Likewise.
2295 * gdbarch.c, gdbarch.h: Regenerate.
2297 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2299 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
2300 gdbarch_fetch_tls_load_module_address.
2301 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
2302 gdbarch_fetch_tls_load_module_address_p.
2303 * gdbarch.c, gdbarch.h: Regenerate.
2305 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2307 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
2308 gdbarch_decr_pc_after_break.
2309 * tracepoint.c (trace_dump_command): Likewise.
2310 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2311 * linux-thread-db.c (check_event): Likewise.
2312 * linux-nat.c (cancel_breakpoints_callback): Likewise.
2313 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
2314 * frame.h: Likewise (comment).
2315 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
2316 * aix-thread.c (aix_thread_wait): Likewise.
2317 * gdbarch.c, gdbarch.h: Regenerate.
2319 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2321 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
2322 gdbarch_address_class_type_flags.
2323 * dwarf2read.c (read_tag_pointer_type): Likewise.
2324 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
2325 gdbarch_address_class_type_flags_p.
2326 * dwarf2read.c (read_tag_pointer_type): Likewise.
2327 * gdbarch.c, gdbarch.h: Regenerate.
2329 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2331 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
2332 * value.c (value_as_address): Likewise (comment).
2333 * remote-mips.c (common_breakpoint): Likewise.
2334 * regcache.c (read_pc_pid): Likewise.
2335 * printcmd.c (do_one_display): Likewise.
2336 * monitor.c (monitor_write_memory, monitor_read_memory)
2337 (monitor_insert_breakpoint): Likewise.
2338 * mips-tdep.c (heuristic_proc_start): Likewise.
2339 * infrun.c (insert_step_resume_breakpoint_at_frame)
2340 (insert_step_resume_breakpoint_at_caller): Likewise.
2341 * buildsym.c (record_line): Likewise.
2342 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
2343 (arm_get_next_pc): Likewise.
2344 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
2345 (store_regs): Likewise.
2346 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2347 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
2348 * gdbarch.c, gdbarch.h: Regenerate.
2350 2007-06-09 Markus Deuling <deuling@de.ibm.com>
2352 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
2353 * tracepoint.c (scope_info): Likewise.
2354 * target.c (debug_print_register): Likewise.
2355 * stack.c (frame_info): Likewise.
2356 * sh-tdep.c (sh_register_reggroup_p): Likewise.
2357 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
2358 (sh64_media_print_registers_info)
2359 (sh64_compact_print_registers_info): Likewise.
2360 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
2361 * remote-sim.c (gdbsim_fetch_register): Likewise.
2362 * remote.c (packet_reg): Likewise (comment).
2363 * reggroups.c (default_register_reggroup_p): Likewise.
2364 * regcache.c (regcache_dump): Likewise.
2365 * printcmd.c (address_info): Likewise.
2366 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2367 * mt-dep.c (mt_registers_info): Likewise.
2368 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
2369 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
2370 (mips_read_fp_register_double, mips_print_fp_register)
2371 (mips_print_register, print_gp_register_row, mips_print_registers_info)
2372 (mips_register_sim_regno): Likewise.
2373 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
2374 * inf-ptrace.c (inf_ptrace_fetch_register)
2375 (inf_ptrace_store_register): Likewise.
2376 * infcmd.c (default_print_registers_info): Likewise.
2377 * ia64-linux-nat.c (ia64_linux_fetch_register)
2378 (ia64_linux_store_register): Likewise.
2379 * i386-linux-nat.c (fetch_register, store_register): Likewise.
2380 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2381 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2382 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
2383 (hppa_hpux_store_register): Likewise.
2384 * findvar.c (locate_var_value): Likewise.
2385 * dwarf2loc.c (locexpr_describe_location): Likewise.
2386 * dwarf2-frame.c (execute_cfa_program): Likewise.
2387 * arm-tdep.c (arm_push_dummy_call): Likewise.
2388 * arch-utils.c (legacy_register_sim_regno): Likewise.
2389 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
2390 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2391 * mi/mi-main.c (mi_cmd_data_list_register_names)
2392 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
2393 (mi_cmd_data_write_register_values): Likewise.
2394 * gdbarch.c, gdbarch.h: Regenerate.
2396 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2398 * target-memory.c (blocks_to_erase): Correct off-by-one error.
2400 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
2402 * remote.c (process_g_packet): Don't check size.
2403 * gdbarch.sh: Remove register_bytes_ok.
2404 * gdbarch.c: Regenerated.
2405 * gdbarch.h: Regenerated.
2406 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
2407 (m68k_register_bytes_ok): Remove.
2408 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
2410 2007-06-06 Andreas Schwab <schwab@suse.de>
2412 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
2413 (destroy_addr_space_name): Define.
2414 (libunwind_load): Get address of destroy_addr_space function.
2415 (libunwind_frame_cache): Destroy unw_addr_space_t object before
2416 returning unsuccessfully.
2417 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
2419 (libunwind_sigtramp_frame_sniffer): Likewise.
2420 (libunwind_get_reg_special): Likewise.
2422 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2424 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
2425 gdbarch_fetch_pointer_argument.
2426 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
2427 * gdbarch.c, gdbarch.h: Regenerate.
2429 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2431 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
2432 gdbarch_have_nonsteppable_watchpoint.
2433 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
2434 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
2435 gdbarch_cannot_step_breakpoint.
2436 * infrun.c (resume): Likewise.
2437 * gdbarch.c, gdbarch.h: Regenerate.
2439 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2441 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
2442 * stack.c (print_frame_args): Likewise.
2443 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
2444 * stack.c (print_args_stub, frame_info): Likewise.
2445 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
2446 * stack.c (print_args_stub, frame_info): Likewise.
2447 * gdbarch.c, gdbarch.h: Regenerate.
2449 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2451 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
2452 gdbarch_coff_make_msymbol_special.
2453 * coffread.c (coff_symtab_read): Likewise.
2454 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
2455 gdbarch_elf_make_msymbol_special.
2456 * elfread.c (elf_symtab_read): Likewise.
2457 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
2458 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
2459 * gdbarch.c, gdbarch.h: Regenerate.
2461 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2463 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
2464 gdbarch_frame_red_zone_size.
2465 * gdbarch.c, gdbarch.h: Regenerate.
2467 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2469 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
2470 * infcall.c (call_function_by_hand): Likewise.
2471 * gcore.c (derive_stack_segment): Likewise.
2472 * frame.c (frame_id_inner): Likewise.
2473 * arch-utils.c (core_addr_lessthan): Likewise (comment).
2474 * ada-lang.c (ensure_lval): Likewise.
2475 * gdbarch.c, gdbarch.h: Regenerate.
2477 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2479 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
2480 gdbarch_address_to_pointer.
2481 * findvar.c (store_typed_address): Likewise.
2482 * gdbtypes.c (make_pointer_type): Likewise (comment).
2483 * procfs.c (procfs_address_to_host_pointer): Likewise.
2484 * std-regs.c (value_of_builtin_frame_reg): Likewise.
2485 (value_of_builtin_frame_fp_reg): Likewise.
2486 (value_of_builtin_frame_pc_reg): Likewise.
2487 * utils.c (paddress): Likewise (comment).
2488 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
2489 gdbarch_pointer_to_address.
2490 * findvar.c (extract_typed_address): Likewise.
2491 * gdbtypes.c (make_pointer_type): Likewise (comment).
2492 * valops.c (value_cast): Likewise (comment).
2493 * gdbarch.c, gdbarch.h: Regenerate.
2495 2007-06-06 Markus Deuling <deuling@de.ibm.com>
2497 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
2498 * infrun.c (handle_inferior_event): Likewise.
2499 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
2500 gdbarch_get_longjmp_target_p.
2501 * breakpoint.c (breakpoint_re_set): Likewise.
2502 * infrun.c (handle_inferior_event): Likewise.
2503 * gdbarch.c, gdbarch.h: Regenerate.
2505 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2507 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
2508 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
2509 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
2510 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
2511 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
2512 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
2513 find_stub_with_shl_get, cover_find_stub_with_shl_get,
2514 initialize_hp_cxx_exception_support, child_enable_exception_callback,
2515 current_ex_event, child_get_current_exception_event): Remove.
2516 (hppa_hpux_inferior_created): Remove.
2517 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
2519 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
2520 (deprecated_exception_support_initialized): Remove.
2521 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
2522 (deprecated_exception_support_initialized): Remove.
2523 (breakpoint_init_inferior): Remove handling of non-zero
2524 deprecated_exception_catchpoints_are_fragile.
2526 * symtab.h (deprecated_hp_som_som_object_present): Remove.
2527 * symtab.c (deprecated_hp_som_som_object_present): Remove.
2528 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
2529 deprecated_hp_som_som_object_present.
2530 * eval.c (evaluate_subexp_standard): Likewise.
2531 * valops.c (value_cast): Likewise.
2533 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
2534 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
2535 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
2537 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2539 * objfiles.h (ImportEntry, ExportEntry): Remove types.
2540 (struct objfile): Remove import_list, import_list_size,
2541 export_list, export_list_size members.
2542 (is_in_import_list): Remove prototype.
2543 * objfiles.c (is_in_import_list): Remove.
2544 * somread.c (init_import_symbols, init_export_symbols): Remove.
2545 (som_symfile_read): Do not call init_import_symbols. Do not
2546 set objfile->export_list and objfile->export_list_size.
2548 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2550 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
2551 Use the original objfile if necessary.
2553 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
2555 * defs.h (ldirname): New prototype.
2556 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
2558 * utils.c (ldirname): New function.
2559 * xml-tdesc.c (file_read_description_xml): Use ldirname.
2561 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2563 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
2565 2007-06-01 Joel Brobecker <brobecker@adacore.com>
2567 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
2569 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2571 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
2573 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2575 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
2576 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
2577 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
2578 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
2579 (ppc_linux_in_sigtramp, insn_is_sigreturn,
2580 ppc_linux_at_sigtramp_return_path): Remove.
2582 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2584 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
2585 (xtensa_register_write_masked, xtensa_register_read_masked)
2586 (xtensa_extract_return_value, xtensa_store_return_value
2587 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
2588 TARGET_BYTE_ORDER by gdbarch_byte_order.
2589 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
2590 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
2591 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
2592 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
2593 (sh64_push_dummy_call, sh64_extract_return_value)
2594 (sh64_store_return_value, sh64_register_convert_to_virtual)
2595 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
2596 (sh64_pseudo_register_write, sh64_do_fp_register)
2597 (sh64_frame_prev_register): Likewise.
2598 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
2599 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
2600 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
2601 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
2602 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2603 * ppc-linux-nat.c (store_register): Likewise.
2604 * nto-tdep.c (nto_find_and_open_solib)
2605 (nto_init_solib_absolute_prefix): Likewise.
2606 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
2607 (mips_convert_register_p, mips_eabi_push_dummy_call)
2608 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2609 (mips_o32_push_dummy_call, mips_o32_return_value)
2610 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
2611 (mips_read_fp_register_single, mips_read_fp_register_double)
2612 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
2613 (mips_breakpoint_from_pc): Likewise.
2614 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
2615 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
2616 (mips_linux_o32_sigframe_init): Likewise.
2617 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2618 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
2619 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
2620 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
2621 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
2622 * coffread.c (process_coff_symbol): Likewise.
2623 * arm-tdep.c (convert_from_extended, convert_to_extended)
2624 (gdb_print_insn_arm): Likewise.
2626 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2628 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
2629 * i386-tdep.c (i386_dbx_reg_to_regnum)
2630 (i386_svr4_reg_to_regnum): Likewise.
2631 * inf-ptrace.c (inf_ptrace_fetch_registers)
2632 (inf_ptrace_store_registers): Likewise.
2633 * corelow.c (get_core_registers): Likewise.
2634 * i386-linux-nat.c (supply_gregset, fill_gregset)
2635 (i386_linux_fetch_inferior_registers)
2636 (i386_linux_store_inferior_registers): Likewise.
2637 * remote.c (init_remote_state,packet_reg_from_regnum)
2638 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
2639 (remote_prepare_to_store,store_registers_using_G)
2640 (remote_store_registers,remote_arch_state): Likewise.
2641 * tracepoint.c (encode_actions): Likewise.
2642 * mi/mi-main.c (mi_cmd_data_list_register_names)
2643 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2644 (mi_cmd_data_write_register_values): Likewise.
2645 * tui/tui-regs.c (tui_show_register_group)
2646 (tui_show_register_group): Likewise.
2647 * xtensa-tdep.h (FP_ALIAS): Likewise.
2648 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
2649 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
2650 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
2651 * win32-nat.c (do_win32_fetch_inferior_registers)
2652 (do_win32_store_inferior_registers,fetch_elf_core_registers
2653 * user-regs.h: Likewise (comment).
2654 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2655 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2656 * target-descriptions.h: Likewise (comment).
2657 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
2658 * target.c (debug_print_register): Likewise.
2659 * stack.c (frame_info): Likewise.
2660 * stabsread.c (define_symbol): Likewise.
2661 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
2662 (sh64_media_print_registers_info)
2663 (sh64_compact_print_registers_info): Likewise.
2664 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2665 * rs6000-nat.c (fetch_register,store_register): Likewise.
2666 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
2667 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
2668 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
2669 * remote-m32r-sdi.c (m32r_fetch_registers)
2670 (m32r_store_registers): Likewise.
2671 * reggroups.c (default_register_reggroup_p): Likewise.
2672 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
2673 (regcache_restore,regcache_dump): Likewise.
2674 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
2675 * mips-tdep.c (mips_xfer_register,mips_register_name)
2676 (mips_register_reggroup_p,mips_pseudo_register_read)
2677 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
2678 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
2679 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
2680 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
2681 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
2682 (print_gp_register_row,mips_print_registers_info)
2683 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2684 (mips_register_sim_regno): Likewise.
2685 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
2686 (mips_linux_n32n64_sigframe_init): Likewise.
2687 * mips-linux-nat.c (mips_linux_register_addr)
2688 (mips64_linux_register_addr): Likewise.
2689 * findvar.c (value_of_register): Likewise.
2690 * infcmd.c (default_print_registers_info,registers_info)
2691 (print_vector_info,print_float_info): Likewise.
2692 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
2693 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2694 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2695 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
2696 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2697 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
2698 (ia64_cannot_store_register,ia64_linux_fetch_registers)
2699 (ia64_linux_store_registers): Likewise.
2700 * hpux-thread.c (hpux_thread_fetch_registers)
2701 (hpux_thread_store_registers): Likewise.
2702 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
2703 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
2704 (h8300_register_type): Likewise.
2705 * dwarf2-frame.c (dwarf2_frame_cache)
2706 (dwarf2_frame_state_alloc_regs): Likewise.
2707 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
2708 (cris_cannot_store_register,crisv32_cannot_fetch_register)
2709 (crisv32_cannot_store_register,cris_register_name): Likewise.
2710 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2711 * arch-utils.c (legacy_register_sim_regno)
2712 (legacy_virtual_frame_pointer): Likewise.
2713 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
2714 * arm-tdep.h: Likewise (comment).
2715 * frv-tdep.c (frv_register_sim_regno): Likewise.
2716 * m68klinux-nat.c (old_fetch_inferior_registers)
2717 (old_store_inferior_registers): Likewise.
2718 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2719 * irix5-nat.c (fetch_core_registers): Likewise.
2720 * hppa-tdep.c (hppa_frame_cache): Likewise.
2721 * hppa-linux-nat.c (hppa_linux_register_addr)
2722 (hppa_linux_fetch_inferior_registers)
2723 (hppa_linux_store_inferior_registers): Likewise.
2724 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
2725 (hppa_hpux_store_inferior_registers): Likewise.
2726 * amd64-nat.c (amd64_native_gregset_reg_offset)
2727 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
2728 * dbug-rom.c (dbug_regname): Likewise.
2729 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
2730 (HARD_PAGE_REGNUM (comment)): Likewise.
2731 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
2732 * i386-tdep.c (i386_dbx_reg_to_regnum)
2733 (i386_svr4_reg_to_regnum): Likewise.
2734 * mi/mi-main.c (mi_cmd_data_list_register_names)
2735 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2736 (mi_cmd_data_write_register_values): Likewise.
2737 * gdbarch.c, gdbarch.h: Regenerate.
2738 * tui/tui-regs.c (tui_show_register_group): Likewise.
2739 * xtensa-tdep.h (FP_ALIAS): Likewise.
2740 * user-regs.h: Likewise (comment).
2741 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2742 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2743 * target-descriptions.h: Likewise (comment).
2744 * target.c (debug_print_register): Likewise.
2745 * stack.c (frame_info): Likewise.
2746 * stabsread.c (define_symbol): Likewise.
2747 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
2748 (sh64_compact_print_registers_info): Likewise.
2749 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2750 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
2751 (regcache_restore,regcache_dump): Likewise.
2752 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
2753 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2754 (mips_stab_reg_to_regnum): Likewise.
2755 * findvar.c (value_of_register): Likewise.
2756 * infcmd.c (default_print_registers_info,registers_info)
2757 (print_vector_info,print_float_info): Likewise.
2758 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2759 * h8300-tdep.c (h8300_register_type): Likewise.
2760 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2761 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
2762 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
2763 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
2764 * parse.c: Remove comment.
2765 * gdbarch.c, gdbarch.h: Regenerate
2767 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2769 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
2770 gdbarch_cannot_fetch_register.
2771 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2772 * hppa-linux-nat.c (fetch_register): Likewise.
2773 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2774 * m68klinux-nat.c (fetch_register): Likewise.
2775 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
2777 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
2778 gdbarch_cannot_store_register.
2779 * hppa-linux-nat.c (store_register): Likewise.
2780 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
2781 * regcache.c (regcache_raw_write): Likewise.
2782 * m68klinux-nat.c (store_register): Likewise.
2783 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
2784 * gdbarch.c, gdbarch.h: Regenerate.
2786 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2788 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
2789 * gdbarch.c, gdbarch.h: Regenerate.
2791 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2793 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
2794 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2795 * gdbarch.c, gdbarch.h: Regenerate.
2797 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2799 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
2800 * ax-gdb.c (gen_bitfield_ref): Likewise.
2801 * mi/mi-main.c (get_register): Likewise.
2802 * findvar.c (default_value_from_register, extract_signed_integer)
2803 (extract_unsigned_integer, extract_long_unsigned_integer)
2804 (store_signed_integer, store_unsigned_integer): Likewise.
2805 * regcache.c (regcache_dump): Likewise.
2806 * value.c (lookup_internalvar, value_of_internalvar)
2807 (set_internalvar): Likewise.
2809 * valprint.c (print_binary_chars, print_octal_chars)
2810 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
2811 * infcmd.c (default_print_registers_info): Likewise.
2812 * arch-utils.c (selected_byte_order, show_endian): Likewise.
2813 * stabsread.c (define_symbol): Likewise.
2814 * doublest.c (floatformat_from_length, floatformat_from_type)
2815 (extract_typed_floating, store_typed_floating): Likewise.
2816 * gdbarch.c, gdbarch.h: Regenerate.
2818 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2820 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
2821 gdbarch_call_dummy_location.
2822 * infcall.c (call_function_by_hand): Likewise.
2823 * inferior.h: Change comment.
2824 * arch-utils.c: Change comment.
2825 * gdbarch.c, gdbarch.h: Regenerate.
2827 2007-05-28 Joel Brobecker <brobecker@adacore.com>
2829 * solib-aix5.c: Delete.
2830 * Makefile.in (solib-aix5.o): Delete rule.
2832 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
2834 * breakpoint.h (enum bpstat_what_main_action): Remove
2835 BPSTAT_WHAT_THROUGH_SIGTRAMP.
2836 * infrun.c (process_event_stop_test): Do not check for it.
2838 2007-05-22 Chris Dearman <chris@mips.com>
2839 Maciej W. Rozycki <macro@mips.com>
2841 * ser-unix.c (show_serial_hwflow): New function.
2842 (hardwire_raw): Add hardware flow control support.
2843 (_initialize_ser_hardwire): Add "set/show remoteflow".
2844 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
2845 * NEWS: Document the new command.
2847 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2849 * config/i386/tm-linux.h (sys_quotactl): Do not define.
2850 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
2851 define for i[[3456]]86-*-linux* native configurations.
2852 * config.in, configure: Regenerate.
2854 2007-05-19 Joel Brobecker <brobecker@adacore.com>
2856 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
2857 a core file. Add comment in the function description.
2859 2007-05-18 Caroline Tice <ctice@apple.com>
2861 * c-valprint.c (c_value_print): If the initialized field of the
2862 value struct is 0, print out "[uninitialized]" before the value.
2863 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
2864 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
2865 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
2866 ctx->initialized appropriately. Verify no location op follows
2868 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
2869 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
2870 set_value_initialized.
2871 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
2872 (decode_locdesc): Add case for DW_OP_GNU_uninit.
2873 * value.c (struct value): New field, initialized.
2874 (allocate_value): Initialize new field.
2875 (set_value_initialized): New function.
2876 (value_initialized): New function.
2877 * value.h (value_initialized): New extern declaration.
2878 (set_value_initialized): Likewise.
2880 2007-05-18 Caroline Tice <ctice@apple.com>
2882 * MAINTAINERS (Write After Approval): Add self.
2884 2007-05-17 Joel Brobecker <brobecker@adacore.com>
2886 * gdbtypes.c (make_reference_type): Preserve the type chain
2887 and set the length of all the variants of the pointer type.
2889 2007-05-17 Joel Brobecker <brobecker@adacore.com>
2891 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
2892 and set the length of all the variants of the pointer type.
2894 2007-05-17 Maciej W. Rozycki <macro@mips.com>
2896 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
2898 (mips_o64_push_dummy_call): Reformat a comment.
2900 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
2902 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
2903 (score_prologue_frame_base_address): Return fp to keep gdb print
2904 local variables correctly when debugging information is stabs.
2906 (score_analyze_prologue): For software watchpoint, fetch all the
2907 instructions from range [startaddr, pc] once and identify them locally
2908 to reduce memory access.
2909 (score_malloc_and_get_memblock, score_free_memblock)
2910 (score_adjust_memblock_ptr): New functions.
2911 (score_fetch_inst): Fetch single instruction or mutiple instructions.
2913 (score_target_can_use_watch, score_stopped_by_watch)
2914 (score_target_insert_watchpoint, score_target_remove_watchpoint)
2915 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
2916 New functions for remote & local hw-watchpoint and hw-breakpoint.
2918 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
2920 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
2921 declarations as well.
2923 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2925 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
2926 * config/arm/tm-embed.h: Delete file.
2928 * arm-tdep.h (arm_software_single_step): Declare.
2929 * arm-tdep.c (arm_software_single_step): Make global.
2930 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
2932 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
2933 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
2934 * armobsd-tdep.c (armobsd_init_abi): ... here ...
2935 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
2937 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
2938 allow defines to be overriden by TM file.
2939 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
2940 change default to {0xbe,0xbe}.
2941 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
2942 arm_obsd_thumb_be_breakpoint): New global variables.
2943 (armobsd_init_abi): Override tdep->thumb_breakpoint and
2944 tdep->thumb_breakpoint_size.
2945 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
2946 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
2947 tdep->thumb_breakpoint_size.
2949 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
2951 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2953 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
2956 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
2957 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
2958 (mips_stack_argsize_string, mips_stack_argsize): Delete.
2959 (mips_abi_regsize): Simplify.
2960 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2961 (mips_n32n64_return_value, mips_o32_push_dummy_call)
2962 (mips_o32_return_value, mips_o64_push_dummy_call)
2963 (mips_o64_return_value): Propogate constant register sizes. Use the
2964 ABI register size instead of mips_stack_argsize.
2965 (mips_dump_tdep): Don't print mips_stack_argsize.
2966 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
2969 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2971 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
2972 * config/mips/tm-linux.h: Delete.
2973 * mips-linux-tdep.c (mips_svr4_so_ops): New.
2974 (mips_linux_in_dynsym_resolve_code): Make static. Use
2975 svr4_in_dynsym_resolve_code.
2976 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
2978 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
2980 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
2981 * Makefile.in (mips-linux-tdep.o): Update.
2982 * solib.c (set_solib_ops): New.
2983 (current_target_so_ops): Update comment.
2984 * solib.h (set_solib_ops): New prototype.
2986 2007-05-16 Chris Dearman <chris@mips.com>
2988 * printcmd.c (do_examine): Fix typos in a comment.
2990 2007-05-16 Richard Sandiford <richard@codesourcery.com>
2992 * configure.ac: Allow sysroots to be relocated under $prefix as
2993 well as $exec_prefix.
2994 * configure: Regenerate.
2996 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2998 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
2999 (offsetof): Do not define.
3000 (find_stub_with_shl_get): Use numerical value 3 instead of
3001 symbolic value TYPE_PROCEDURE.
3003 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3005 * gdb_proc_service.h (paddr_t): Delete typedef.
3006 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
3007 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
3008 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
3009 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
3010 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
3011 * Makefile.in (proc-service.o): Update.
3013 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3015 * Makefile.in (mips-tdep.o): Update.
3016 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
3019 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3021 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
3022 instead of store_typed_address.
3023 * value.c (pack_long): New.
3024 (value_from_longest): Use it.
3025 * value.h (pack_long): New prototype.
3027 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3029 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
3030 DW_EH_PE_signed if appropriate.
3032 2007-05-14 Paul Brook <paul@codesourcery.com>
3033 Daniel Jacobowitz <dan@codesourcery.com>
3035 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
3037 (dwarf_decode_lines): Check for line info without a file.
3039 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3041 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
3044 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3046 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
3048 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
3050 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
3052 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3054 * gdbarch.sh (read_sp): Remove.
3055 * gdbarch.c, gdbarch.h: Regenerate.
3056 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
3058 * avr-tdep.c (avr_read_sp): Remove.
3059 (avr_unwind_sp): New function.
3060 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
3061 * mips-tdep.c (mips_read_sp): Remove.
3062 (mips_unwind_sp): New function.
3063 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
3064 * score-tdep.c (score_read_unsigned_register): Remove.
3065 (score_read_sp): Remove.
3066 (score_unwind_sp): New function.
3067 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
3069 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
3071 * buildsym.c (start_subfile): Handle absolute pathnames
3072 while comparing subfile names.
3074 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3076 * hppa-hpux-tdep.c: Include "regcache.h".
3077 * hppa-linux-tdep.c: Likewise.
3078 * hppa-tdep.c: Include "gdb_stdint.h".
3079 (find_unwind_entry): Cast host pointer to uintptr_t before passing
3081 * Makefile.in: Update dependencies.
3083 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3085 * blockframe.c: Remove obsolete comments.
3086 * alpha-nat.c (fetch_osf_core_registers): Update comment.
3087 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
3088 * hppa-tdep.h (enum hppa_regnum): Likewise.
3089 * mips-tdep.h: Likewise.
3090 * m68hc11-tdep.c: Likewise.
3092 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3094 * inferior.h (read_sp): Remove prototype.
3095 * regcache.c (read_sp): Remove.
3096 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
3097 * infcall.c (call_function_by_hand): Likewise.
3098 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
3100 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3102 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3104 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
3105 instead of read_register and read_register_pid.
3107 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
3108 argument instead of PTID. Use regcache functions instead of
3110 (ia64_linux_insert_watchpoint): Update call.
3111 (ia64_linux_stopped_data_address): Use regcache functions
3112 instead of read_register_pid and write_register_pid.
3114 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3116 * libunwind-frame.h (struct regcache): Add forward declaration.
3117 (libunwind_get_reg_special): Add REGCACHE argument.
3118 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
3119 argument. Pass it to unw_init_remote_p.
3121 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
3122 libunwind_get_reg_special.
3123 (ia64_access_reg): Remove "write" case.
3124 (ia64_access_fpreg): Likewise. Read from next_frame passed
3125 as callback argument instead of from current_regcache.
3126 (ia64_access_rse_reg): Remove "write" case. Read from regcache
3127 passed as callback argument instead of from current_regcache.
3128 (ia64_access_rse_fpreg): New function.
3129 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
3131 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3133 * NEWS: Mention SPU overlay support.
3135 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3137 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
3139 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3141 * breakpoint.c (remove_breakpoint): Do not remove software
3142 breakpoints in unmapped overlay sections.
3144 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3146 * spu-tdep.c: Include "observer.h".
3147 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
3148 (spu_overlay_data): New variable.
3149 (struct spu_overlay_table): New type.
3150 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
3151 spu_overlay_new_objfile): New functions.
3152 (spu_gdbarch_init): Install spu_overlay_update.
3153 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
3154 allocate spu_overlay_data objfile data.
3156 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3158 * gdbarch.sh (overlay_update): New gdbarch function.
3159 (struct obj_section): Add forward declaration.
3160 * gdbarch.c, gdbarch.h: Regenerate.
3162 * symfile.c (simple_overlay_update): Make global.
3163 (target_overlay_update): Remove variable.
3164 (overlay_is_mapped): Call gdbarch_overlay_update instead of
3165 target_overlay_update.
3166 (overlay_load_command): Likewise.
3167 * symfile.h (struct obj_section): Add forward declaration.
3168 (simple_overlay_update): Add prototype.
3170 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
3172 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3174 * observer.sh: Add "struct objfile" forward declaration.
3175 * target.h (deprecated_target_new_objfile_hook): Remove.
3176 * symfile.c (deprecated_target_new_objfile_hook): Remove.
3177 (clear_symtab_users): Call observer_notify_new_objfile.
3178 (symbol_file_add_with_addrs_or_offsets): Likewise.
3179 * rs6000-nat.c: Include "observer.h".
3180 (vmap_ldinfo): Call observer_notify_new_objfile.
3181 (xcoff_relocate_core): Likewise.
3182 * remote.c (remote_new_objfile_chain): Remove.
3183 (remote_new_objfile): Do not call remote_new_objfile_chain.
3184 (_initialize_remote): Use observer_attach_new_objfile.
3185 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
3186 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
3187 (_initialize_tui_hooks): Use observer_attach_new_objfile.
3188 * aix-thread.c: Include "observer.h".
3189 (target_new_objfile_chain): Remove.
3190 (new_objfile): Do not call target_new_objfile_chain.
3191 (_initialize_aix_thread): Use observer_attach_new_objfile.
3192 * hpux-thread.c: Include "observer.h"
3193 (target_new_objfile_chain): Remove.
3194 (hpux_thread_new_objfile): Make static. Do not call
3195 target_new_objfile_chain.
3196 (_initialize_hpux_thread): Use observer_attach_new_objfile.
3197 * linux-thread-db.c: Include "observer.h".
3198 (target_new_objfile_chain): Remove.
3199 (thread_db_new_objfile): Do not call target_new_objfile_chain.
3200 (_initialize_thread_db): Use observer_attach_new_objfile.
3201 * sol-thread.c: Include "observer.h".
3202 (target_new_objfile_chain): Remove.
3203 (sol_thread_new_objfile): Make static. Do not call
3204 target_new_objfile_chain.
3205 (_initialize_sol_thread): Use observer_attach_new_objfile.
3206 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
3207 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
3210 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3212 * gdbarch.sh (remote_translate_xfer_address): Remove.
3213 * gdbarch.h, gdbarch.c: Regenerate.
3214 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
3215 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
3216 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
3217 call gdbarch_remote_translate_xfer_address.
3218 * frv-tdep.c (frv_gdbarch_init): Do not call
3219 set_gdbarch_remote_translate_xfer_address.
3220 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
3221 (ia64_gdbarch_init): Do not install it.
3223 2007-05-11 Bob Wilson <bob.wilson@acm.org>
3225 * NEWS: Mention change in handling the -tui option.
3227 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
3229 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
3232 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3234 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
3235 (breakpoint_inserted_here_p): Call it.
3236 (software_breakpoint_inserted_here_p): Likewise.
3238 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
3240 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
3241 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
3242 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
3243 (inf_ptrace_store_register): Likewise.
3244 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
3245 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
3247 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
3249 * linux-nat.c (linux_trad_target): Adapt parameter list.
3250 * linux-nat.h (linux_trad_target): Likewise.
3252 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
3254 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
3255 (mips_linux_cannot_store_register): Likewise.
3256 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
3257 Return (CORE_ADDR) -1 for registers that cannot be fetched or
3258 stored via ptrace. Use GDBARCH instead of current_gdbarch.
3259 (mips64_linux_register_addr): Likewise.
3260 (mips_linux_register_u_offset): Adapt parameter list. Pass
3261 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
3263 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3264 * config/mips/nm-linux.h: Delete file.
3266 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
3268 * remote.c (remote_detach): Error out if remote can't detach.
3270 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
3272 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
3273 instruction's opcode in the "opcode" variable and declares new
3274 variable "closing_insn".
3276 2007-05-10 Chris Dearman <chris@mips.com>
3277 Maciej W. Rozycki <macro@mips.com>
3279 * cli/cli-setshow.c (do_setshow_command): Remove trailing
3280 whitespace when setting a var_filename.
3282 2007-05-09 Bob Wilson <bob.wilson@acm.org>
3284 * main.c (captured_main): Recognize -tui option and print an error
3285 message when the TUI is not configured.
3287 2007-05-09 Andreas Schwab <schwab@suse.de>
3289 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
3290 set removed members.
3291 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3293 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3295 * gdbarch.sh (deprecated_store_struct_return): Remove.
3296 * gdbarch.c, gdbarch.h: Regenerate.
3297 * frv-tdep.c (frv_store_struct_return): Remove.
3298 (frv_gdbarch_init): Do not install it.
3300 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3302 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
3303 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
3304 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
3306 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3308 * spu-linux-nat.c: Include "gdb_stdint.h".
3309 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
3310 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3311 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
3312 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
3313 (spu_child_wait): Mark up string for translation.
3315 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
3316 Luis Machado <luisgpm@br.ibm.com>
3318 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
3319 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
3320 BC_INSTRUCTION): Define.
3321 (deal_with_atomic_sequence): New function.
3322 (rs6000_software_single_step): Call deal_with_atomic_sequence.
3323 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
3324 gdbarch_software_single_step routine.
3326 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3328 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
3329 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
3330 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
3331 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
3332 spu_child_post_attach, spu_fetch_inferior_registers,
3333 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
3334 memory addresses as ULONGEST, not CORE_ADDR.
3336 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3338 * gdbarch.sh: Add skip_permanent_breakpoint callback.
3339 * gdbarch.h, gdbarch.c: Regenerate.
3341 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
3342 (resume): Call gdbarch_skip_permanent_breakpoint instead of
3343 SKIP_PERMANENT_BREAKPOINT. Inline default case.
3345 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
3346 Add REGCACHE argument. Use it instead of read/write_register.
3347 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
3349 * config/pa/tm-hppah.h: Delete file.
3350 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
3351 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
3353 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
3355 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
3356 * NEWS: Mention improved C++ thunk support.
3357 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
3358 * cp-abi.c (cplus_skip_trampoline): New.
3359 * cp-abi.h (cplus_skip_trampoline): New prototype.
3360 (struct cp_abi_ops): Add skip_trampoline member.
3361 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
3362 (init_gnuv3_ops): Set skip_trampoline.
3364 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3366 * rs6000-tdep.c (struct frame_extra_info): Delete.
3368 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3370 * linux-thread-db.c: Update some FIXME comments.
3371 (thread_db_xfer_partial): Delete.
3372 (init_thread_db_ops): Do not set to_xfer_partial.
3374 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3376 * inftarg.c, infptrace.c: Remove files.
3377 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
3378 (inftarg.o, infptrace.o): Remove rules.
3379 * gdbcore.h (register_addr): Remove prototype.
3380 * inferior.h (kill_inferior, store_inferior_registers,
3381 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
3382 call_ptrace, pre_fork_inferior): Remove prototypes.
3383 * target.h (child_xfer_memory, child_pid_to_exec_file,
3384 child_core_file_to_sym_file, child_post_attach,
3385 child_post_startup_inferior, child_acknowledge_created_inferior,
3386 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
3387 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
3388 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
3389 child_follow_fork, child_reported_exec_events_per_exec_call,
3390 child_has_exited, child_thread_alive): Remove prototypes.
3392 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3394 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
3395 (sparc_store_inferior_registers): Likewise.
3396 * sparc-nat.c (fetch_inferior_registers): Rename to ...
3397 (sparc_fetch_inferior_registers): ... this.
3398 (store_inferior_registers): Rename to ...
3399 (sparc_store_inferior_registers): ... this.
3400 (sparc_target): Update callback names.
3401 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
3402 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
3404 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3406 * linux-nat.c (child_post_attach): Rename to ...
3407 (linux_child_post_attach): ... this. Make static.
3408 (child_follow_fork): Rename to ...
3409 (linux_child_follow_fork): ... this. Make static.
3410 (child_insert_fork_catchpoint): Rename to ...
3411 (linux_child_insert_fork_catchpoint): ... this. Make static.
3412 (child_insert_vfork_catchpoint): Rename to ...
3413 (linux_child_insert_vfork_catchpoint): ... this. Make static.
3414 (child_insert_exec_catchpoint): Rename to ...
3415 (linux_child_insert_exec_catchpoint): ... this. Make static.
3416 (child_pid_to_exec_file): Rename to ...
3417 (linux_child_pid_to_exec_file): ... this. Make static.
3419 (linux_handle_extended_wait): Update call.
3420 (linux_xfer_partial): Update callback routine names.
3422 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3424 * configure.host (alpha*-*-osf[12]*): Remove support.
3425 * NEWS: Mention removed configurations.
3427 * config/alpha/alpha-osf1.mh: Delete file.
3428 * config/alpha/alpha-osf2.mh: Delete file.
3429 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
3431 * config/alpha/nm-osf.h: Delete file.
3432 * config/alpha/nm-osf2.h: Delete file.
3433 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
3434 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
3435 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
3437 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
3438 (register_addr, kernel_u_size): Remove.
3439 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
3441 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3443 * regcache.c (regcache_invalidate): New function.
3444 (register_cached): Remove.
3445 (set_register_cached): Remove.
3446 (deprecated_registers_fetched): Remove.
3447 (registers_changed): Use regcache_invalidate instead
3448 of set_register_cached.
3449 (regcache_raw_read): Update comment.
3451 * regcache.h (regcache_invalidate): Add prototype.
3452 (register_cached): Remove.
3453 (set_register_cached): Remove.
3454 (deprecated_registers_fetched): Remove.
3456 * findvar.c (value_of_register): Do not call register_cached.
3457 * frame.c (frame_register): Likewise.
3458 * tui/tui-regs.c (tui_get_register): Likewise.
3460 * remote.c (fetch_register_using_p): Do not call set_register_cached.
3461 (process_g_packet): Likewise.
3462 (remote_fetch_registers): Likewise.
3463 * remote-sim.c (gdbsim_fetch_register): Likewise.
3464 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
3465 by regcache_invalidate.
3466 (mt_pseudo_register_write): Likewise.
3467 * sh-tdep.c (sh_pseudo_register_write): Likewise.
3469 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
3470 call by loop over regcache_raw_supply (..., NULL).
3472 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3474 * target.h (struct target_ops): Add REGCACHE parameter to
3475 to_prepare_to_store.
3476 (target_prepare_to_store): Likewise.
3477 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
3478 (update_current_target): Adapt prepare_to_store de_fault rule.
3480 * regcache.c (regcache_raw_write): Pass regcache to
3481 target_prepare_to_store.
3483 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
3484 Do not call CHILD_PREPARE_TO_STORE.
3485 * gnu-nat.c (gnu_prepare_to_store): Likewise.
3486 * procfs.c (procfs_prepare_to_store): Likewise.
3488 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
3489 * go32-nat.c (go32_prepare_to_store): Likewise.
3490 * monitor.c (monitor_prepare_to_store): Likewise.
3491 * nto-procfs.c (procfs_prepare_to_store): Likewise.
3492 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
3493 * remote-mips.c (mips_prepare_to_store): Likewise.
3494 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
3495 * win32-nat.c (win32_prepare_to_store): Likewise.
3497 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
3498 Use it instead of current_regcache.
3500 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
3501 parameter. Pass it on to next target.
3502 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
3504 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3506 * target.h (struct regcache): Add forward declaration.
3507 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
3508 and to_store_registers target operations.
3509 (target_fetch_registers, target_store_registers): Update.
3511 * regcache.c (regcache_raw_read): Replace register_cached by
3512 regcache_valid_p. Pass regcache to target_fetch_registers.
3513 (regcache_raw_write): Pass regcache to target_store_registers.
3515 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
3516 store_regs, store_wmmx_regs): Replace register_cached by
3519 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
3520 to target_fetch_registers calls.
3521 * corelow.c (core_open): Likewise.
3522 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
3523 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3524 ps_lsetfpregs): Likewise.
3525 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3526 ps_lsetfpregs): Likewise.
3527 * win32-nat.c (win32_resume): Likewise.
3528 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
3529 to target_store_registers call.
3530 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3532 * inferior.h (store_inferior_registers): Update prototype.
3533 (fetch_inferior_registers): Likewise.
3534 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
3535 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
3536 Update function pointer signatures.
3538 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
3539 use it instead of current_regcache, update calls.
3540 (aix_thread_store_registers): Likewise.
3541 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3542 (alphabsd_store_inferior_registers): Likewise.
3543 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3544 (amd64bsd_store_inferior_registers): Likewise.
3545 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
3546 (amd64_linux_store_inferior_registers): Likewise.
3547 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
3548 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
3549 fetch_wmmx_regs, store_wmmx_regs): Likewise.
3550 (arm_linux_fetch_inferior_registers): Likewise.
3551 (arm_linux_store_inferior_registers): Likewise.
3552 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
3553 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
3554 (store_register, store_regs, store_fp_register, store_fp_regs,
3555 armnbsd_store_registers): Likewise.
3556 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
3557 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3558 (bsd_uthread_store_registers): Likewise.
3559 * corelow.c (get_core_registers): Likewise.
3560 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
3561 go32_store_registers): Likewise.
3562 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
3563 (hppabsd_store_registers): Likewise.
3564 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
3565 (hppa_hpux_fetch_inferior_registers): Likewise.
3566 (hppa_hpux_store_register): Likewise.
3567 (hppa_hpux_store_inferior_registers): Likewise.
3568 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3569 (hppa_linux_fetch_inferior_registers): Likewise.
3570 (hppa_linux_store_inferior_registers): Likewise.
3571 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
3572 (hpux_thread_store_registers): Likewise.
3573 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
3574 (i386bsd_store_inferior_registers): Likewise.
3575 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
3576 gnu_store_registers): Likewise.
3577 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
3578 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
3580 (i386_linux_fetch_inferior_registers): Likewise.
3581 (i386_linux_store_inferior_registers): Likewise.
3582 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3583 (ia64_linux_fetch_registers): Likewise.
3584 (ia64_linux_store_register): Likewise.
3585 (ia64_linux_store_registers): Likewise.
3586 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3587 (inf_child_store_inferior_registers): Likewise.
3588 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3589 (inf_ptrace_fetch_registers): Likewise.
3590 (inf_ptrace_store_register): Likewise.
3591 (inf_ptrace_store_registers): Likewise.
3592 * infptrace.c (fetch_register, store_register): Likewise.
3593 (fetch_inferior_registers, store_inferior_registers): Likewise.
3594 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
3595 (m32r_linux_fetch_inferior_registers): Likewise.
3596 (m32r_linux_store_inferior_registers): Likewise.
3597 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
3598 (m68kbsd_store_inferior_registers): Likewise.
3599 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
3600 store_register, old_store_inferior_registers, fetch_regs, store_regs,
3601 fetch_fpregs, store_fpregs): Likewise.
3602 (m68k_linux_fetch_inferior_registers): Likewise.
3603 (m68k_linux_store_inferior_registers): Likewise.
3604 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
3605 (m88kbsd_store_inferior_registers): Likewise.
3606 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
3607 (mips64obsd_store_inferior_registers): Likewise.
3608 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
3609 (mips64_linux_regsets_store_registers): Likewise.
3610 (mips64_linux_fetch_registers): Likewise.
3611 (mips64_linux_store_registers): Likewise.
3612 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3613 (mipsnbsd_store_inferior_registers): Likewise.
3614 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
3615 (monitor_fetch_registers, monitor_store_registers): Likewise.
3616 * nto-procfs.c (procfs_fetch_registers): Likewise.
3617 (procfs_store_registers): Likewise.
3618 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
3619 fetch_register, supply_vrregset, fetch_altivec_registers,
3620 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
3621 (store_altivec_register, store_spe_register, store_register,
3622 fill_vrregset, store_altivec_registers, store_ppc_registers,
3623 ppc_linux_store_inferior_registers): Likewise.
3624 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
3625 (ppcnbsd_store_inferior_registers): Likewise.
3626 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
3627 (ppcobsd_store_registers): Likewise.
3628 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3629 * remote.c (fetch_register_using_p, process_g_packet,
3630 fetch_registers_using_g, remote_fetch_registers): Likewise.
3631 (store_register_using_P, store_registers_using_G,
3632 remote_store_registers): Likewise.
3633 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
3634 m32r_store_register, m32r_store_register): Likewise.
3635 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
3636 * remote-sim.c (gdbsim_fetch_register): Likewise.
3637 (gdbsim_store_register): Likewise.
3638 * rs6000-nat.c (fetch_register, store_register): Likewise.
3639 (rs6000_fetch_inferior_registers): Likewise.
3640 (rs6000_store_inferior_registers): Likewise.
3641 * s390-nat.c (fetch_regs, store_regs): Likewise.
3642 (fetch_fpregs, store_fpregs): Likewise.
3643 (s390_linux_fetch_inferior_registers): Likewise.
3644 (s390_linux_store_inferior_registers): Likewise.
3645 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3646 (shnbsd_store_inferior_registers): Likewise.
3647 * sol-thread.c (sol_thread_fetch_registers): Likewise.
3648 (sol_thread_store_registers): Likewise.
3649 * sparc-nat.c (fetch_inferior_registers): Likewise.
3650 (store_inferior_registers): Likewise.
3651 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3652 (spu_store_inferior_registers): Likewise.
3653 * target.c (debug_print_register): Likewise.
3654 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
3655 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
3656 (vaxbsd_store_inferior_registers): Likewise.
3657 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
3658 (win32_fetch_inferior_registers): Likewise.
3659 (win32_store_inferior_registers): Likewise.
3661 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3663 * gdbcore.h (struct regcache): Add forward declaration.
3664 (struct core_fns): Add REGCACHE argument to core_read_registers
3666 * corelow.c (get_core_register_section): Add REGCACHE argument,
3667 use it instead of current_regcache, pass it to core_read_registers
3669 (get_core_registers): Add current_regcache as parameter to
3670 get_core_register_section calls.
3672 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
3673 use it instead of current_regcache.
3674 * armnbsd-nat.c (fetch_core_registers): Likewise.
3675 (fetch_elfcore_registers): Likewise.
3676 * core-regset.c (fetch_core_registers): Likewise.
3677 * cris-tdep.c (fetch_core_registers): Likewise.
3678 * irix5-nat.c (fetch_core_registers): Likewise.
3679 * m68klinux-nat.c (fetch_core_registers): Likewise.
3680 * mips-linux-tdep.c (fetch_core_registers): Likewise.
3681 * win32-nat.c (fetch_elf_core_registers): Likewise.
3683 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3685 * gregset.h (struct regcache): Add forward declaration.
3686 (supply_gregset): Add REGCACHE parameter, make GREGS const.
3687 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
3688 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
3689 (fill_gregset): Add REGCACHE parameter.
3690 (fill_fpregset): Likewise.
3691 (fill_fpxregset): Likewise.
3693 Update all definitions accordingly:
3694 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
3695 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
3696 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
3697 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
3698 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
3699 (supply_gregset): Add REGCACHE parameter, use it instead of
3700 current_regcache. Make GREGSETP parameter const, adapt casts.
3701 (supply_fpregset): Add REGCACHE parameter, use it instead of
3702 current_regcache. Make FPREGSETP parameter const, adapt casts.
3703 (fill_gregset): Add REGCACHE parameter, use it instead of
3705 (fill_fpregset): Likewise.
3707 Update all callers to pass in current_regcache as the new argument:
3708 * core-regset.c: Include "regcache.h".
3709 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
3710 * procfs.c: Include "regcache.h".
3711 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
3712 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
3713 (procfs_do_thread_registers): Likewise.
3714 (procfs_make_note_section): Likewise.
3715 * proc-service.c: Include "regcache.h".
3716 (ps_lgetregs): Update fill_gregset call.
3717 (ps_lsetregs): Update supply_gregset call.
3718 (ps_lgetfpregs): Update fill_fpregset call.
3719 (ps_lsetfpregs): Update supply_fpregset call.
3720 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
3721 supply_fpregset calls.
3722 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
3723 (ps_lgetregs): Update fill_gregset call.
3724 (ps_lsetregs): Update supply_gregset call.
3725 (ps_lgetfpregs): Update fill_fpregset call.
3726 (ps_lsetfpregs): Update supply_fpregset call.
3728 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
3729 fill_fpregset, and fill_fpxregset calls.
3730 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
3731 (store_regs): Update fill_gregset call.
3732 (fetch_fpregs): Update supply_fpregset call.
3733 (store_fpregs): Update fill_fpregset call.
3734 (fetch_fpxregs): Update supply_fpxregset call.
3735 (store_fpxregs): Update fill_fpxregset call.
3736 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
3737 (store_regs): Update fill_gregset call.
3738 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
3739 (store_regs): Update fill_gregset call.
3740 (fetch_fpregs): Update supply_fpregset call.
3741 (store_fpregs): Update fill_fpregset call.
3742 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
3743 * s390-nat.c (fetch_regs): Update supply_gregset call.
3744 (store_regs): Update fill_gregset call.
3745 (fetch_fpregs): Update supply_fpregset call.
3746 (store_fpregs): Update fill_fpregset call.
3748 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
3751 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3753 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
3754 it instead of current_regcache.
3755 (parse_register_dump): Add REGCACHE parameter, pass it to
3756 supply_register callback.
3757 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
3758 parse_register_dump.
3759 (monitor_dump_regs): Add REGCACHE parameter, pass it to
3760 parse_register_dump and dumpregs callback.
3761 (monitor_wait): Pass current_regcache to parse_register_dump and
3763 (monitor_fetch_register): Pass current_regcache to
3764 monitor_supply_register.
3765 (monitor_fetch_registers): Pass current_regcache to
3767 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
3768 supply_register and dumpregs callbacks.
3769 (monitor_supply_register, monitor_dump_reg_block): Update
3771 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
3772 it to monitor_supply_register.
3773 * dink32-rom.c (dink32_supply_register): Likewise.
3774 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
3775 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
3776 instead of current_regcache.
3778 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3780 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
3781 Add REGCACHE parameter. Use it instead of current_regcache.
3782 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
3783 i386nto_supply_gregset and i386nto_supply_fpregset.
3784 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
3785 of current_regcache.
3787 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
3788 nto_supply_ helper functions.
3789 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
3791 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
3793 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
3794 supply_greget, supply_fpregset, supply_altregset, supply_regset,
3795 and regset_fill member function pointers.
3796 (nto_dummy_supply_regset): Adapt prototype.
3798 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3800 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
3801 instead of current_regcache. Make REGS const.
3802 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
3803 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
3805 * shnbsd-nat.c: Include "regcache.h".
3806 (shnbsd_fetch_inferior_registers): Pass current_regcache to
3808 (shnbsd_store_inferior_registers): Pass current_regcache to
3810 * Makefile.in (shbsd-nat.o): Update dependencies.
3812 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3814 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
3815 instead of current_regcache.
3816 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
3817 Make GREGSETP const, remove superfluous casts.
3818 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3819 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
3821 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3822 (supply_64bit_reg): Likewise
3823 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
3824 Make GREGSETP const, adapt casts accordingly.
3825 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3826 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
3828 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3829 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
3831 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
3832 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
3833 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
3835 * mips-linux-nat.c: Include "regcache.h".
3836 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3837 current_regcache to mips{64}_(supply|fill)_ helper routines.
3838 (mips64_linux_regsets_fetch_registers): Likewise.
3839 (mips64_linux_regsets_store_registers): Likewise.
3841 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
3842 REGCACHE argument; replace current_regcache. Make REGS const.
3843 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
3844 replace current_regcache.
3845 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
3846 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
3847 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
3848 mipsnbsd_store_inferior_registers): Pass current_regcache to
3849 mipsnbsd_(supply|fill)_... helper routines.
3851 * Makefile.in (mips-linux-nat.o): Update dependencies.
3853 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3855 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
3856 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
3857 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
3858 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
3859 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
3860 * i386gnu-nat.c (store_fpregs): Likewise.
3861 * i386v4-nat.c (fill_fpregset): Likewise.
3862 * go32-nat.c (store_register, go32_store_registers): Likewise.
3864 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3866 * cris-tdep.c (supply_gregset): Rename to ...
3867 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
3868 instead of current_regcache.
3869 (fetch_core_registers): Update call. Pass current_regcache.
3871 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3873 * arnmnbsd-nat.c (supply_gregset): Rename to ...
3874 (arm_supply_gregset): ... this. Add REGCACHE parameter.
3875 Use it instead of current_regcache.
3876 (supply_fparegset): Rename to ...
3877 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
3878 Use it instead of current_regcache.
3879 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
3880 (fetch_core_registers, fetch_elfcore_registers): Likewise.
3882 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3884 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
3885 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
3886 use it instead of current_regcache.
3887 * alpha-tdep.h (struct regcache): Add forward declaration.
3888 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
3889 alpha_fill_fp_regs): Update prototypes.
3891 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
3892 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
3893 * alpha-linux-nat.c: Include "regcache.h".
3894 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3895 current_regcache to alpha_supply/fill_ routines.
3897 * alphabsd-tdep.c: Include "regcache.h".
3898 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
3899 pass it to alpha_supply_ routines. Make REGS const.
3900 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
3901 pass it to alpha_fill_ routines.
3902 * alphabsd-tdep.h (struct regcache): Add forward declaration.
3903 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
3904 alphabsd_fill_fpreg): Update prototypes.
3906 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
3907 fill_fpregset, alphabsd_fetch_inferior_registers,
3908 alphabsd_store_inferior_registers): Pass current_regcache to
3909 alphabsd_supply/fill_ routines.
3911 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
3914 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3916 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
3917 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
3918 instead of current_regcache.
3919 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
3920 REGCACHE parameter, pass it to supply_ routines.
3921 (aix_thread_fetch_registers): Pass current_regcache to
3922 fetch_regs_user_thread and fetch_regs_kernel_thread.
3924 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
3925 Add REGCACHE parameter, use it instead of current_regcache.
3926 Call regcache_valid_p instead of register_cached.
3927 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
3928 Also, pass REGCACHE to fill_ routines.
3929 (aix_thread_store_registers): Pass current_regcache to
3930 store_regs_user_thread and store_regs_kernel_thread.
3932 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3934 * m32r-linux-nat.c (supply_gregset): Do not modify contents
3935 pointed to by GREGSETP.
3937 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3939 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
3940 of regcache_raw_read_signed.
3941 (fill_fpregset): Use regcache_raw_collect instead of
3944 2007-05-03 Kevin Buettner <kevinb@redhat.com>
3946 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
3947 point arguments, test explicitly for use of the EABI32 ABI
3948 instead of inferring this condition from tests on register
3951 2007-05-03 Kevin Buettner <kevinb@redhat.com>
3953 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
3954 prior to allocating its location.
3956 2007-05-02 Maciej W. Rozycki <macro@mips.com>
3958 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
3959 based on mips_abi_regsize() whose result is known in advance.
3960 (mips_o64_push_dummy_call): Likewise.
3962 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
3964 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
3965 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
3967 * mips-linux-nat.c: Include "gregset.h".
3968 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
3969 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
3970 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3971 fill_fpregset): Move to mips-linux-nat.c.
3973 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
3975 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3977 * regcache.c (deprecated_read_register_gen): Remove, inline ...
3978 (read_register): ... here.
3979 (deprecated_write_register_gen): Remove, inline ...
3980 (write_register): ... here.
3981 * regcache.h (deprecated_read_register_gen): Remove prototype.
3982 (deprecated_write_register_gen): Likewise.
3984 * remote-sim.c (gdbsim_store_register): Replace call to
3985 deprecated_read_register_gen with regcache_cooked_read.
3986 * target.c (debug_print_register): Replace calls to
3987 deprecated_read_register_gen and read_register with
3988 regcache_cooked_read.
3990 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3992 * hpux-thread.c (hpux_thread_store_registers): Use
3993 regcache_raw_collect, not regcache_raw_read.
3994 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
3995 not regcache_raw_write.
3997 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3999 * gdbarch.sh: Remove deprecated_register_byte.
4000 * gdbarch.c, gdbarch.h: Regenerate.
4001 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
4002 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
4004 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
4005 * regcache.c (regcache_valid_p): Allow to query cooked registers in
4006 read-only register caches. Make REGCACHE parameter const.
4007 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
4009 * mi/mi-main.c (old_regs): Remove.
4010 (mi_setup_architecture_data, _initialize_mi_main): Remove.
4011 (register_changed_p): Reimplement to compare two register caches.
4012 (mi_cmd_data_list_changed_registers): Update caller.
4013 * mi/mi-main.h (mi_setup_architecture_data): Remove.
4014 * mi/mi-interp.c (mi_interpreter_init): Do not call
4015 mi_setup_architecture_data.
4017 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4019 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
4020 inline definition at the places the macros are used.
4021 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
4023 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4025 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
4027 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
4028 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
4029 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
4030 (rs6000_aix_regset_from_core_section): New function.
4031 (rs6000_aix_init_osabi): Register it.
4032 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
4033 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
4034 * rs6000-nat.c (CoreRegs): Do not define type.
4035 (fetch_core_registers, rs6000_core_fns): Remove.
4036 (_initialize_core_rs6000): Do not register it. Rename to ...
4037 (_initialize_rs6000_nat): ... this.
4038 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
4040 2007-04-27 Kevin Buettner <kevinb@redhat.com>
4042 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
4043 (dwarf2_read_address): Sign extend return address as required by
4044 target architecture.
4046 2007-04-27 Kevin Buettner <kevinb@redhat.com>
4048 * solib-frv.c (lm_base): Bail out if the main executable has
4051 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4053 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
4054 of FPCR register in fpregset.
4056 2007-04-27 Maciej W. Rozycki <macro@mips.com>
4058 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
4059 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
4061 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4063 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
4064 * rs6000-nat.c (rs6000_wait): New function.
4065 (_initialize_core_rs6000): Install it as to_wait target method.
4066 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
4068 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4070 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
4071 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
4072 * rs6000-nat.c (super_create_inferior): New variable.
4073 (rs6000_create_inferior): Make static. Adapt argument list. Call
4074 original version of create_inferior via super_create_inferior.
4075 (_initialize_core_rs6000): Install to_create_inferior target method.
4077 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4079 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
4080 (aix_thread_xfer_partial): ... this.
4081 (init_aix_thread_ops): Install to_xfer_partial instead
4082 of deprecated_xfer_memory target method.
4084 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
4085 and inftarg.o, add inf-ptrace.o.
4086 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
4087 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
4088 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
4089 (fetch_inferior_registers): Rename to ...
4090 (rs6000_fetch_inferior_registers): ... this. Make static.
4091 (store_inferior_registers): Rename to ...
4092 (rs6000_store_inferior_registers): ... this. Make static.
4093 (read_word, child_xfer_memory): Remove.
4094 (rs6000_xfer_partial): New function.
4095 (kernel_u_size): Remove.
4096 (_initialize_core_rs6000): Add inf_ptrace-based target.
4097 * Makefile.in (rs6000-nat.o): Update dependencies.
4099 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4101 * inf-ptrace.c: Include "gdb_stdint.h".
4102 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
4103 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
4104 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
4105 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
4106 (inf_ptrace_store_register): Likewise.
4107 * Makefile.in (inf-ptrace.o): Update dependencies.
4109 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4111 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
4112 * configure.tgt (rs6000-*-*): Likewise.
4113 * config/rs6000/aix4.mh: Delete file.
4114 * config/rs6000/aix4.mt: Delete file.
4115 * config/rs6000/rs6000.mh: Delete file.
4116 * config/rs6000/rs6000.mt: Delete file.
4118 * config/powerpc/nm-aix.h: Delete file.
4119 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
4121 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4123 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
4124 Remove obsolete part of comment.
4125 (store_regs_user_thread): Use uint32_t temporaries when calling
4127 (store_regs_kernel_thread): Likewise. Add assertion to verify
4128 correct size of struct ptsprs members.
4129 (aix_thread_xfer_memory): Fix type of myaddr.
4130 (aix_thread_extra_thread_info): Fix compiler warning.
4131 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
4132 (fetch_register, store_register): Adapt callers.
4134 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4136 * vec.h (vec_free): Rename to vec_free_. Adapt users.
4138 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4140 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
4142 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
4143 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
4144 (alpha_linux_regset_from_core_section): New function.
4145 (alpha_linux_init_abi): Install it.
4146 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
4147 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
4148 <sys/procfs.h>, and "gregset.h".
4149 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
4150 Move from config/alpha/nm-linux.h.
4151 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
4153 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
4154 * alpha-nat.c: Remove #ifdef __linux__ section.
4155 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
4156 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
4157 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
4158 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
4159 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
4160 (NATDEPFILES): Remove alpha-nat.o.
4161 * config/alpha/nm-linux.h: Delete file.
4162 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
4163 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4164 (alpha-linux-tdep.o): Likewise.
4166 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4168 * mips-linux-nat.c: No longer include "gdbcore.h".
4169 (mips_linux_register_addr): Move from mips-linux-tdep.c.
4170 (mips64_linux_register_addr): Likewise.
4171 (mips_linux_register_u_offset): Call mips_linux_register_addr or
4172 mips64_linux_register_addr instead of register_addr.
4173 * mips-linux-tdep.c (mips_linux_register_addr,
4174 mips64_linux_register_addr): Move to mips-linux-nat.c.
4175 (register_addr): Remove.
4176 (register_addr_data, init_register_addr_data): Remove.
4177 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
4178 (set_mips_linux_register_addr): Remove.
4179 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
4180 * Makefile.in (mips-linux-nat.o): Update dependencies.
4182 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4184 * linux-nat.c (linux_register_u_offset): Remove.
4185 (linux_target_install_ops): New function.
4186 (linux_target): Use it.
4187 (linux_trad_target): New function.
4188 * linux-nat.h (linux_trad_target): Declare.
4190 * alpha-linux-nat.c: Include "gdbcore.h".
4191 (alpha_linux_register_u_offset): New function.
4192 (_initialize_alpha_linux_nat): Use linux_trad_target.
4194 * mips-linux-nat.c: Include "gdbcore.h".
4195 (mips_linux_register_u_offset): New function.
4196 (_initialize_mips_linux_nat): Use linux_trad_target.
4198 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4199 * config/arm/nm-linux.h: Delete file.
4201 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
4202 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
4204 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4205 * config/ia64/nm-linux.h: Delete file.
4207 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4208 * config/m32r/nm-linux.h: Delete file.
4210 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4211 * config/m68k/nm-linux.h: Delete file.
4213 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4214 * config/pa/nm-linux.h: Delete file.
4216 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4217 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
4218 * config/powerpc/nm-linux.h: Delete file.
4220 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
4221 * config/s390/nm-linux.h: Delete file.
4223 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4224 * config/sparc/linux64.mh (NAT_FILE): Likewise.
4225 * config/sparc/nm-linux.h: Delete file.
4227 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4228 (mips-linux-nat.o): Likewise.
4230 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4232 * core-aout.c: Delete file.
4233 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
4234 (core-aout.o): Delete rule.
4235 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
4237 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
4239 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
4240 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
4241 KERNEL_U_ADDR): Remove.
4243 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
4244 (cannot_fetch_register, cannot_store_register): Remove.
4245 (fetch_register): Inline cannot_fetch_register and register_addr.
4246 (store_register): Inline cannot_store_register and register_addr.
4247 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
4248 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4249 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
4252 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
4253 (fetch_register): Inline register_addr.
4254 (store_register): Inline register_addr.
4255 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
4256 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4257 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
4259 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
4260 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
4261 REGISTER_U_ADDR): Remove.
4263 * hppa-linux-nat.c (register_addr): Rename to ...
4264 (hppa_linux_register_addr): ... this. Make static.
4265 (fetch_register, store_register): Adapt callers.
4266 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
4268 * ppc-linux-nat.c (kernel_u_size): Remove.
4269 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
4271 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
4272 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
4274 * config/vax/nm-vax.h: Delete file.
4276 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4278 * MAINTAINERS (Write After Approval): Add myself.
4280 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4282 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
4283 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
4284 (m68k_linux_sigcontext_reg_offset): Fix typo.
4285 (target_is_uclinux): New.
4286 (m68k_linux_inferior_created): New.
4287 (m68k_linux_get_sigtramp_info): Check for uClinux or
4288 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
4290 (_initialize_m68k_linux_tdep): Register
4291 m68k_linux_inferior_created.
4293 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
4295 * win32-nat.c (win32_detach): Remove delete_command call.
4296 Resume inferior with win32_resume instead of win32_continue.
4298 2007-04-19 Jerome Guitton <guitton@adacore.com>
4300 * ser-mingw.c (fd_is_file): New function.
4301 (file_select_thread): New function.
4302 (ser_console_wait_handle): Add special handling for files.
4304 2007-04-18 Denis Pilat <denis.pilat@st.com>
4306 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
4307 when missing from DW_TAG_subrange_type. Remove the handling of null
4308 return from die_type.
4310 2007-04-18 Maciej W. Rozycki <macro@mips.com>
4312 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
4313 change to rearrange some brackets.
4314 (mips_n32n64_push_dummy_call): Likewise.
4315 (mips_o32_push_dummy_call): Likewise.
4316 (mips_o64_push_dummy_call): Likewise.
4318 2007-04-18 Denis Pilat <denis.pilat@st.com>
4320 * infcmd.c (post_create_inferior): Start with a call to
4321 target_terminal_ours.
4323 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4325 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
4327 (mips_n32n64_push_dummy_call): Likewise. Reformat some
4329 (mips_o32_push_dummy_call): Likewise.
4330 (mips_o64_push_dummy_call): Likewise.
4332 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4334 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4337 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4339 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4341 (mips_o32_push_dummy_call): Likewise.
4343 2007-04-17 Andreas Schwab <schwab@suse.de>
4345 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
4346 sal to be bigger than the end of the function.
4348 2007-04-17 Maciej W. Rozycki <macro@mips.com>
4349 Nigel Stephens <nigel@mips.com>
4351 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
4352 argument alignment requirements when calculating stack space
4353 required. When aligning an arg register to eight bytes
4354 boundary, align stack_offset too. Write floating-point
4355 arguments to the appropriate integer register if need go there.
4356 (mips_o64_push_dummy_call): Likewise.
4358 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4360 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
4361 "sig" arguments, add "regcache" argument.
4362 * gdbarch.c, gdbarch.h: Regenerate.
4364 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
4365 (handle_inferior_event): Call remove_single_step_breakpoints directly
4366 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
4368 * alpha-tdep.c (alpha_software_single_step): Update argument list.
4369 Remove handling of !insert_breakpoints_p case.
4370 * arm-tdep.c (arm_software_single_step): Likewise.
4371 * cris-tdep.c (cris_software_single_step): Likewise.
4372 * mips-tdep.c (mips_software_single_step): Likewise.
4373 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4374 * sparc-tdep.c (sparc_software_single_step): Likewise.
4375 * spu-tdep.c (spu_software_single_step): Likewise.
4377 * alpha-tdep.h (alpha_software_single_step): Update prototype.
4378 * mips-tdep.h (mips_software_single_step): Likewise.
4379 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4380 * sparc-tdep.h (sparc_software_single_step): Likewise.
4382 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4384 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
4385 when removing single-step breakpoints.
4387 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
4389 * varobj.h (varobj_set_frozen): New
4390 (varobj_get_frozen): New.
4391 (varobj_update): New parameter explicit.
4392 * varobj.c (struct varobj): New fields frozen
4394 (varobj_set_frozen, varobj_get_frozen): New.
4395 (install_new_value): Don't fetch values for
4396 frozen variable object, or children thereof. Allow
4397 a frozen variable object to have non-fetched value.
4398 (varobj_update): Allow updating child variables.
4399 Don't traverse frozen children.
4400 (new_variable): Initialize the frozen field.
4401 (c_value_of_variable): Return NULL for frozen
4402 variable without any value yet.
4403 * mi/mi-cmd-var.c (varobj_update_one): New parameter
4405 (mi_cmd_var_create): Output the 'frozen' field,
4406 as soon as testsuite is adjusted to expect that field.
4407 (mi_cmd_var_set_frozen): New.
4408 (mi_cmd_var_update): Pass the 'explicit' parameter to
4410 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
4411 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
4413 2007-04-13 Paul Brook <paul@codesourcery.com>
4415 * target-descriptions.c (tdesc_named_type): Add ieee_single and
4417 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
4419 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4421 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
4422 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
4423 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
4424 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
4425 * Makefile.in: Remove references to deleted files.
4426 * README: Do not mention deleted ROM monitor interfaces.
4427 * defs.h (enum language): Delete language_scm.
4428 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
4429 (dump_subexp_body_standard): Likewise.
4430 * parse.c (operator_length_standard): Likewise.
4431 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
4432 * remote-mips.c: Do not include remote-utils.h.
4433 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
4435 * value.c: Do not include scm-lang.h.
4436 (unpack_long): Delete scm_unpack call.
4437 * config/h8300/h8300.mt, config/mips/embed.mt,
4438 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
4439 config/sh/embed.mt, config/sh/linux.mt: Remove references to
4441 * NEWS: Mention removed files.
4443 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4445 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
4446 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
4448 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4450 * NEWS: Mention removal of HP aCC support.
4452 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4454 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
4455 first entry for static executables.
4456 (breakpoint_addr): Delete unused variable.
4457 (elf_locate_base): Search for _r_debug in static executables.
4458 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
4461 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4463 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
4464 (bpstat_what, print_one_breakpoint, allocate_bp_location)
4465 (mention): Remove bp_through_sigtramp support.
4466 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
4468 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4470 * breakpoint.c (bpstat_what): Give step-resume higher priority than
4473 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4475 * infrun.c: Doc fixes.
4476 (handle_inferior_event): Clarify debug message.
4477 (insert_step_resume_breakpoint_at_sal): Print a debug message.
4479 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4481 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
4483 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4485 * config/m68k/tm-monitor.h: Delete file.
4486 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
4487 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
4489 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
4490 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
4492 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
4494 * gdbarch.sh (software_single_step): Change the return type
4495 from void to int and reformatted some comments to <= 80
4497 * gdbarch.c, gdbarch.h: Regenerated.
4498 * alpha-tdep.c (alpha_software_single_step): Likewise.
4499 * alpha-tdep.h (alpha_software_single_step): Likewise.
4500 * arm-tdep.c (arm_software_single_step): Likewise.
4501 * cris-tdep.c (cris_software_single_step): Likewise.
4502 * mips-tdep.c (mips_software_single_step): Likewise.
4503 * mips-tdep.h (mips_software_single_step): Likewise.
4504 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4505 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4506 * sparc-tdep.c (sparc_software_single_step): Likewise.
4507 * sparc-tdep.h (sparc_software_single_step): Likewise.
4508 * spu-tdep.c (spu_software_single_step): Likewise.
4509 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
4510 and act accordingly.
4512 2007-04-11 Steve Ellcey <sje@cup.hp.com>
4514 * configure.ac (build_warnings): Add -Wno-char-subscripts.
4515 * configure: Regenerate.
4516 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
4518 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4520 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
4522 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4524 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
4526 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
4527 distinct on the TYPE_STUB_SUPPORTED debug targets.
4528 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
4530 2007-04-11 Joel Brobecker <brobecker@adacore.com>
4532 * sparc-tdep.c (X_RS2): New macro.
4533 (sparc_skip_stack_check): New function.
4534 (sparc_analyze_prologue): Adjust PC past stack probing
4535 sequence if necessary.
4537 2007-04-10 Andreas Schwab <schwab@suse.de>
4539 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
4542 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4544 * breakpoint.c (gdb_breakpoint_query): Really return an
4546 (gdb_breakpoint): Likewise.
4547 * thread.c (gdb_list_thread_ids): Likewise.
4548 (gdb_thread_select): Likewise.
4549 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
4550 (mi_cmd_thread_list_ids): Remove bogus initialization.
4552 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4554 * Makefile.in (SFILES): Remove hpacc-abi.c.
4555 (COMMON_OBS): Remove hpacc-abi.o.
4556 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
4557 (hpacc-abi.o, hpread.o): Delete rules.
4558 * somread.c: Delete extern declarations from hpread.c.
4559 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
4560 (som_symfile_finish): Do not call hpread_symfile_finish.
4561 (som_symfile_init): Do not call hpread_symfile_init.
4562 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
4563 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
4564 * hpacc-abi.c, hpread.c: Deleted.
4566 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4568 * solib-svr4.c (enable_break): Simplify return value.
4569 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
4571 2007-04-10 Andreas Schwab <schwab@suse.de>
4573 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
4574 l_ld_size, l_next_size, l_prev_size, l_name_size.
4576 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
4577 to extract addresses from link map.
4578 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
4579 (LM_NEXT): Likewise.
4580 (LM_NAME): Likewise.
4581 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
4582 (elf_locate_base): Likewise.
4583 (open_symbol_file_object): Likewise.
4584 (svr4_fetch_objfile_link_map): Likewise.
4585 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
4586 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
4588 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
4589 (svr4_lp64_fetch_link_map_offsets): Likewise.
4591 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
4592 removed members. Set l_ld_offset to -1 if not present.
4594 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
4596 Pass stderr of program run with "target remote |"
4598 * serial.c (serial_open): Set error_fd to -1.
4599 * serial.h (struct serial): New field error_fd.
4600 (struct serial_opts): New field avail.
4601 * ser-pipe.c (pipe_open): Create another pair
4602 of sockets. Pass stderr to gdb.
4603 * ser-mingw.c (pipe_windows_open): Pass
4604 PEX_STDERR_TO_PIPE to pex_run. Initialize
4607 (_initialize_ser_windows): Hook pipe_avail.
4608 * ser-base.c (generic_readchar): Check if there's
4609 anything in stderr channel and route that to gdb_stderr.
4611 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
4613 * dbxread.c (read_ofile_symtab): Move current_objfile
4614 clearing to after end_stabs.
4616 2007-04-01 Andreas Schwab <schwab@suse.de>
4618 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
4619 gdbarch instead of current_gdbarch.
4621 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
4623 * varobj.c (varobj_create): Keep varobj value
4624 NULL when evaluating the type.
4626 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
4628 * NEWS: Mention new Windows CE support.
4630 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
4632 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
4633 the obsoletion stanza.
4634 * NEWS: Mention deleted targets.
4636 * config/sh/tm-wince.h: Remove.
4637 * config/sh/wince.mt: Remove.
4638 * config/mips/tm-wince.h: Remove.
4639 * config/mips/wince.mt: Remove.
4642 * wince-stub.c: Remove.
4643 * wince-stub.h: Remove.
4644 * Makefile.in (wince.o): Remove rule.
4645 (wince-stub.o): Likewise.
4647 * mips-tdep.c (mips_next_pc): Make static.
4648 * mips-tdep.h (mips_next_pc): Remove declaration.
4649 * arm-tdep.c (arm_pc_is_thumb): Make static.
4650 (thumb_get_next_pc): Likewise.
4651 (arm_get_next_pc): Likewise.
4652 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
4653 (arm_pc_is_thumb): Likewise.
4654 (thumb_get_next_pc): Likewise.
4655 (arm_get_next_pc): Likewise.
4657 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4659 * MAINTAINERS: Remove d10v entry.
4660 * Makefile.in (SFILES): Remove dwarfread.c.
4661 (COMMON_OBS): Remove dwarfread.o.
4662 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
4663 (remote-est.o, rom68k-rom.o): Delete.
4664 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
4665 target est, target rom68k, and DWARF 1.
4666 * configure.tgt: Mark d10v as removed.
4667 * dwarf2read.c: Doc update.
4668 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
4670 (elf_locate_sections): Do not set them.
4671 (elf_symfile_read): Do not call dwarf_build_psymtabs.
4672 * symfile.h (dwarf_build_psymtabs): Delete prototype.
4673 * config/m68k/monitor.mt (TDEPFILES): Prune.
4674 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
4675 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
4677 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4679 * doublest.c (convert_floatformat_to_doublest): Use
4680 floatformat_classify.
4681 (floatformat_is_nan): Rename to...
4682 (floatformat_classify): ...this. Return more information.
4683 * doublest.h (enum float_kind): New.
4684 (floatformat_is_nan): Replace prototype...
4685 (floatformat_classify): ...with this one.
4686 * valprint.c (print_floating): Use floatformat_classify. Handle
4689 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4691 * README: Mention ISO C library requirement.
4693 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4695 * Makefile.in (SFILES): Remove nlmread.c.
4696 (COMMON_OBS): Remove nlmread.o.
4697 (nlmread.o): Delete rule.
4698 * README: Delete reference to remote-st.c.
4699 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
4700 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
4702 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
4703 (_initialize_i386_tdep): Do not reference them.
4704 * nlmread.c: Delete file.
4705 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
4706 * target.c: Doc update.
4707 * thread.c: Delete commented include.
4708 * config/alpha/tm-alpha.h: Doc update.
4710 2007-03-30 Chris Dearman <chris@mips.com>
4712 * utils.c (string_to_core_addr): Comment typo.
4714 2007-03-30 Chris Dearman <chris@mips.com>
4716 * mips-tdep.c: Comment typo.
4718 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
4720 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
4721 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4722 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4723 * config/powerpc/nm-ppc64-linux.h: Remove file.
4724 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
4725 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
4726 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
4727 * infptrace.c (call_ptrace): Likewise.
4728 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
4729 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
4730 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
4731 (store_register): Likewise.
4733 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4735 * Makefile.in (varobj.o): Add missing dependency.
4737 2007-03-29 Michael Snyder <msnyder@access-company.com>
4739 * MAINTAINERS: Update my email address.
4741 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4743 Add support for exception handling with multiple versions of
4745 * ada-lang.c: Update general comments on how Ada exception catchpoints
4747 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
4748 (__gnat_raise_nodefer_with_msg): Delete.
4749 (ada_unhandled_exception_name_addr_ftype): New type.
4750 (exception_support_info): New type.
4751 (ada_unhandled_exception_name_addr): Add forward declaration.
4752 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4753 (default_exception_support_info): New constant.
4754 (exception_support_info_fallback): Likewise.
4755 (exception_info): New global variable.
4756 (ada_exception_support_info_sniffer): New function.
4757 (ada_executable_changed_observer): Likewise.
4758 (ada_unhandled_exception_name_addr_from_raise): Renamed from
4759 ada_unhandled_exception_name_addr.
4760 (ada_unhandled_exception_name_addr): Reimplement to match the
4761 latest Ada runtime implementation.
4762 (error_breakpoint_runtime_sym_not_found): Delete.
4763 (ada_exception_sym_name): Get the exception sym name from
4764 exception_info rather than hardcoding it.
4765 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
4766 Update error handling.
4767 * Makefile.in (ada-lang.o): Add dependency on observer.h.
4769 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4771 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
4772 (remote-st.o, uw-thread.o): Delete.
4773 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
4774 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4775 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
4776 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
4777 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
4778 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
4779 rs6000-*-lynxos* to an obsoletion stanza.
4780 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4781 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
4782 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
4783 i[34567]86-*-netware*.
4784 * NEWS: Mention deleted targets.
4786 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
4787 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
4788 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
4789 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
4790 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
4791 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
4792 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
4793 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
4794 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
4795 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
4796 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
4797 config/rs6000/tm-rs6000ly.h: Delete files.
4799 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4801 * defs.h (deprecated_registers_changed_hook): Delete declaration.
4802 * interps.c (clear_interpreter_hooks): Do not clear
4803 deprecated_registers_changed_hook.
4804 * regcache.c (registers_changed): Do not call it.
4805 * top.c (deprecated_registers_changed_hook): Do not define it.
4806 * mi/mi-interp.c (mi_command_loop): Do not clear it.
4807 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
4808 (tui_remove_hooks): Do not remove it.
4809 (tui_selected_frame_level_changed_hook): Check for negative level.
4810 Use get_selected_frame.
4811 (tui_registers_changed_hook): Deleted.
4813 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4815 * stabsread.c (add_undefined_type): Add extra parameter.
4816 Now handles nameless types separately.
4817 (struct nat): New type.
4818 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
4819 New static variables.
4820 (read_type): Update calls to add_undefined_type.
4821 (add_undefined_type_noname): New function.
4822 (add_undefined_type_1): Renames from add_undefined_type.
4823 (cleanup_undefined_types_noname): New function.
4824 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
4825 (cleanup_undefined_types): New handles nameless types separately.
4826 (_initialize_stabsread): Initialize our new static constants.
4828 2007-03-29 Denis Pilat <denis.pilat@st.com>
4830 * configure.ac: Test for signal.h.
4831 * configure, config.in: Regenerate.
4833 2007-03-29 Denis Pilat <denis.pilat@st.com>
4835 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
4836 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
4838 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
4840 * arm-wince-tdep.c: New.
4841 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
4842 (MT_CFLAGS): Delete.
4844 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
4845 solib-legacy.o, solib-svr4.o, and remove wince.o.
4846 * configure.tgt (arm*-*-mingw32ce*): Add.
4847 * signals/signals.c [HAVE_SIGNAL_H]: Check.
4848 (do_target_signal_to_host): Silence 'not used' warning.
4849 * config/arm/tm-wince.h: Remove.
4851 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
4853 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
4854 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
4856 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
4857 * config/ia64/tm-linux.h: Remove file.
4858 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
4859 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
4860 legacy_pc_in_sigtramp.
4861 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
4862 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
4863 Remove func_name argument.
4864 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
4866 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
4867 * target.c (update_current_target): Add to_have_steppable_watchpoint.
4868 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
4869 (HAVE_STEPPABLE_WATCHPOINT): Define.
4871 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
4872 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
4873 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
4874 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
4875 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
4876 target_insert_watchpoint, target_remove_watchpoint): Remove.
4877 (FETCH_INFERIOR_REGISTERS): Define.
4878 * ia64-linux-nat.c (ia64_register_addr): Make static.
4879 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
4880 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
4881 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
4882 (ia64_linux_stopped_data_address): Make static. Add target_ops.
4883 (ia64_linux_stopped_by_watchpoint): Make static.
4884 (ia64_linux_can_use_hw_breakpoint): New function.
4885 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
4886 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
4887 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
4889 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
4891 * linespec.c: Include language.h.
4892 (find_methods): Add language parameter. Call
4893 lookup_symbol_in_language. Pass language down.
4894 (add_matching_methods): Likewise. Call
4895 lookup_symbol_in_language.
4896 (add_constructors): Likewise.
4897 (find_method): Pass sym_class to collect_methods.
4898 (collect_methods): Add sym_class parameter. Pass language
4900 * symtab.c (lookup_symbol): Rename to ...
4901 (lookup_symbol_in_language): ... this. Add language
4902 parameter. Use passed language instead of current_language.
4903 (lookup_symbol): New as wrapper around
4904 lookup_symbol_in_language.
4905 (lookup_symbol_aux): Add language parameter. Use passed
4906 language instead of current_language.
4907 (search_symbols): Indent.
4908 * symtab.h (enum language): Forward declare.
4909 (lookup_symbol_in_language): Declare.
4910 (lookup_symbol): Update description.
4911 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
4912 * ada-lang.c (restore_language): Remove.
4913 (lookup_symbol_in_language): Remove.
4915 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
4917 * breakpoint.c (bpstat_num): Add int *num parameter.
4918 * breakpoint.h (bpstat_num): Likewise.
4919 * infcmd.c (continue_command): Adjust to new bpstat_num
4921 (program_info): Likewise.
4923 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4925 * config/sh/tm-sh.h: Remove file.
4926 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
4927 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
4928 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4929 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
4931 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4933 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
4934 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
4935 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
4936 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
4937 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
4938 sequence if target_shortname is "remote".
4940 2007-03-27 Anton Blanchard <anton@samba.org>
4942 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
4943 instead of wordsize when looking for the LR in a stack frame.
4945 2007-03-27 Andreas Schwab <schwab@suse.de>
4946 Daniel Jacobowitz <dan@codesourcery.com>
4948 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
4949 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
4950 argument. Update all callers.
4951 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
4952 (dwarf2_frame_set_eh_frame_regnum): Rename to...
4953 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
4954 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
4955 (dwarf2_frame_set_adjust_regnum): ...this.
4956 (dwarf2_frame_eh_frame_regnum): Delete prototype.
4957 * rs6000-tdep.c: Include "dwarf2-frame.h".
4958 (rs6000_adjust_frame_regnum): Define.
4959 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
4960 Register rs6000_adjust_frame_regnum.
4962 * Makefile.in (rs6000-tdep.o): Update dependencies.
4964 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
4966 * Makefile.in: Add support for a "pdf" target.
4968 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
4970 * amd64-tdep.c (amd64_init_frame_cache): New function.
4971 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
4973 2007-03-26 Nigel Stephens <nigel@mips.com>
4974 Maciej W. Rozycki <macro@mips.com>
4976 * ui-out.c (ui_out_field_core_addr): Truncate address to
4977 TARGET_ADDR_BIT size before printing.
4979 2007-03-22 Nigel Stephens <nigel@mips.com>
4980 Maciej W. Rozycki <macro@mips.com>
4982 * remote-mips.c (mips_xfer_memory): Update prototype.
4984 2007-03-22 Joel Brobecker <brobecker@adacore.com>
4986 * symfile.h: #include "symtab.h"
4988 2007-03-22 Denis Pilat <denis.pilat@st.com>
4990 * utils.c (pagination_on_command, pagination_off_command):
4991 Remove useless prototypes.
4993 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
4996 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
4997 instead of TYPE_NAME for object base class name.
5000 2007-03-19 Kevin Buettner <kevinb@redhat.com>
5002 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
5003 Specify frame type in calls to frame_func_unwind().
5005 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
5007 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
5008 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
5009 (refine_prologue_limit): Delete.
5010 (skip_prologue): Don't call it. Use extract_unsigned_integer.
5011 Assume lim_pc is set. Correct check for incomplete prologues.
5012 Do not skip clobbers of the frame pointer.
5013 * symtab.c (skip_prologue_using_sal): Fail if there is only one
5016 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5018 * frame.c (frame_pop): Check to see whether there's a frame to
5019 which we can pop first.
5021 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5023 * MAINTAINERS (Write After Approval): Add myself.
5025 2007-03-09 Markus Deuling <deuling@de.ibm.com>
5027 * infrun.c (breakpoints_failed): Remove unnecessary variable.
5028 (handle_inferior_event): Remove unnecessary braces.
5029 * breakpoint.c (bpstat_what): Remove wrong comment.
5031 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
5033 * spu-tdep.c (spu_in_function_epilogue_p): New function.
5034 (spu_gdbarch_init): Install it.
5036 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5038 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
5039 object types, not 0.
5041 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5043 * spu-tdep.c (spu_frame_align): New function.
5044 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
5046 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5048 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
5049 (spu_software_single_step): Likewise.
5050 (spu_read_pc, spu_write_pc): New functions.
5051 (spu_gdbarch_init): Install them.
5053 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5055 * cli/cli-dump.c (struct callback_data): load_offset needs to
5056 have signed long type.
5058 2007-03-07 Joel Brobecker <brobecker@adacore.com>
5060 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
5061 Revert the previous change that had some unexpected side-effects
5063 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
5064 function to get the address of the calling instruction.
5066 2007-03-07 Denis Pilat <denis.pilat@st.com>
5068 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
5069 get_selected_frame by deprecated_safe_get_selected_frame.
5071 2007-03-02 Mark Kettenis <kettenis@gnu.org>
5073 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
5074 "gdb_string.h". Don't include "nbsd-tdep.h".
5075 (SIZEOF_STRUCT_REG): Remove.
5076 (SHNBSD_SIZEOF_GREGS): New.
5077 (shnbsd_supply_gregset, shnbsd_collect_gregset)
5078 (shnbsd_regset_from_core_section): New functions.
5079 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
5080 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
5081 shnbsd_supply_gregset, shnbsd_collect_gregset.
5082 (shnbsd_gregset): New variable.
5083 (shnbsd_init_abi): Set regset_from_core_section.
5084 (GDB_OSABI_NETBSD_CORE): New define.
5085 (shnbsd_core_osabi_sniffer): New function.
5086 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
5087 * Makefile.in (shnbsd-tdep.o): Update dependencies.
5088 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
5090 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
5092 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5094 * gdbtypes.c (replace_type): Fix typo that caused us to not update
5095 length of the types referenced by the new type CV ring.
5097 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5099 * frame.c (frame_pop, frame_observer_target_changed): Call
5101 (flush_cached_frames): Rename to reinit_frame_cache and delete
5103 * frame.h (flush_cached_frames): Delete prototype and update comment.
5105 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
5106 reinit_frame_cache instead of flush_cached_frames. Do not call
5107 select_frame after reinit_frame_cache.
5108 * corelow.c (core_open): Likewise.
5109 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
5110 * infrun.c (prepare_to_proceed, context_switch)
5111 (handle_inferior_event): Likewise.
5112 * linux-fork.c (fork_load_infrun_state): Likewise.
5113 * ocd.c (ocd_start_remote): Likewise.
5114 * remote-e7000.c (e7000_start_remote): Likewise.
5115 * remote-mips.c (device): Likewise.
5116 * thread.c (switch_to_thread): Likewise.
5117 * tracepoint.c (finish_tfind_command): Likewise.
5118 * gdbarch.c: Regenerated.
5120 2007-02-28 Jerome Guitton <guitton@adacore.com>
5121 Joel Brobecker <brobecker@adacore.com>
5123 * gdbtypes.c (check_typedef): Do not replace stub type if
5124 the resolved type is not defined in the same objfile.
5126 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5128 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
5130 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5132 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
5133 symbol for Ada units when the symbol is defined using 't' rather
5134 than 'Tt' as symbol descriptor.
5136 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5138 * config/mips/tm-nbsd.h: Delete file.
5139 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5140 * config/sh/tm-nbsd.h: Delete file.
5141 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
5143 2007-02-28 Joel Brobecker <brobecker@adacore.com>
5145 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
5146 unused WRONG_PARAM value since it was recently deleted.
5148 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
5150 * varobj.c (varobj_update): Free temporary vectors.
5152 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5154 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
5155 * config/powerpc/tm-linux.h: Delete file.
5156 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
5157 (PROCESS_LINENUMBER_HOOK): Do not undefine.
5158 (TEXT_SEGMENT_BASE): Do not redefine.
5159 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
5160 from config/rs6000/tm-rs6000.h.
5161 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5162 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
5163 (TEXT_SEGMENT_BASE): Remove.
5164 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
5165 (rs6000_in_solib_return_trampoline): Remove.
5166 (SKIP_TRAMPOLINE_CODE): Remove.
5167 (rs6000_skip_trampoline_code): Remove.
5168 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
5169 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5170 (FP0_REGNUM): Remove.
5171 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
5172 (rs6000_set_host_arch_hook): Remove.
5173 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
5174 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
5175 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
5176 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
5177 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
5178 * rs6000-nat.c: Include "rs6000-tdep.h".
5179 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
5180 (set_host_arch): Rename to ...
5181 (rs6000_create_inferior): ... this. Make public.
5182 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
5183 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
5184 (rs6000_create_inferior): Remove.
5185 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
5186 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
5187 set_gdbarch_in_solib_return_trampoline, and
5188 set_gdbarch_skip_trampoline_code.
5189 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
5190 from config/rs6000/tm-rs6000.h.
5192 2007-02-27 Joel Brobecker <brobecker@adacore.com>
5194 * buildsym.c (record_producer): Do nothing if no producer is provided.
5196 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
5198 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
5199 to check changelist is non-NULL. Call error if the frontend tries
5200 to update a non-root variable.
5202 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
5204 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5206 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
5207 (dwarf2_frame_sniffer): Update.
5208 (dwarf2_signal_frame_this_id): New function.
5209 (dwarf2_signal_frame_unwind): Use it.
5210 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
5211 * frame.c (frame_func_unwind): Add this_type argument.
5212 (get_frame_func): Update.
5213 (frame_unwind_address_in_block): Add this_type argument and check it.
5215 (get_frame_address_in_block): Update.
5216 * frame.h (enum frame_type): Move higher in the file.
5217 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
5220 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
5221 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
5222 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
5223 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
5224 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
5225 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
5226 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
5227 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
5228 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
5229 frame_func_unwind and frame_unwind_address_in_block to specify
5230 the frame type. Use frame_unwind_address_in_block instead of
5231 frame_pc_unwind in sniffers.
5233 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5235 * frame.c (deprecated_selected_frame): Rename to...
5236 (selected_frame): ...this. Make static.
5237 (get_selected_frame, select_frame): Update.
5238 * frame.h (deprected_select_frame): Delete.
5239 (deprecated_safe_get_selected_frame): Update comments.
5241 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
5242 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
5243 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
5244 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
5245 tui/tui.c: Replace references to deprecated_selected_frame.
5247 2007-02-27 Fred Fish <fnf@specifix.com>
5249 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
5250 directly decrement the stack pointer, accumulate their operand into
5251 the stack offset, and mark the function as not being frameless.
5253 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5255 * arch-utils.c (selected_byte_order): New.
5256 * arch-utils.h (selected_byte_order): New prototype.
5257 * remote-sim.c (gdbsim_open): Use selected_byte_order.
5259 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5261 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
5262 (default_symfile_offsets): Check VMA here. Update section VMAs.
5264 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5266 * remote.c (init_remote_state): Add special handling for placeholder
5269 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5271 * Makefile.in (XMLFILES): Include $(TDEP_XML).
5272 (filenames_h): New variable.
5273 (clean): Clean up xml-builtin.c and stamp-xml.
5274 (arm-linux-nat.o): Update.
5275 * config/arm/linux.mh (TDEP_XML): Define.
5276 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
5277 (arm_linux_has_wmmx_registers): New.
5278 (GET_THREAD_ID): Fix typo.
5279 (IWMMXT_REGS_SIZE): Define.
5280 (fetch_wmmx_regs, store_wmmx_regs): New.
5281 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
5282 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
5283 (super_xfer_partial, arm_linux_xfer_partial): New.
5284 (_initialize_arm_linux_nat): Use them.
5285 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
5286 (xml_builtin_xfer_partial): New function.
5287 * xml-support.h (xml_builtin_xfer_partial): New prototype.
5288 * NEWS: Update mention of iWMMXt support.
5290 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5292 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
5293 if there are no FPA registers.
5294 (arm_dwarf_reg_to_regnum): New function.
5295 (arm_register_type, arm_register_name): Return minimal values for
5296 unsupported registers.
5297 (arm_register_sim_regno): Handle iWMMXt registers.
5298 (arm_gdbarch_init): Record missing FPA registers if indicated by
5299 a target description. Recognize iWMMXt registers. Only register
5300 "info float" for FPA. Use ARM_NUM_REGS. Register
5301 arm_dwarf_reg_to_regnum.
5302 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
5304 (struct gdbarch_tdep): Add have_fpa_registers.
5305 * features/xscale-iwmmxt.xml: Update capitalization.
5306 * regformats/arm-with-iwmmxt.dat: Regenerated.
5308 2007-02-24 Kevin Buettner <kevinb@redhat.com>
5310 * NEWS (New targets): Add entry for the Toshiba Media Processor.
5312 2007-02-23 Kevin Buettner <kevinb@redhat.com>
5314 * MAINTAINERS (mep): New target.
5316 2007-02-23 Kevin Buettner <kevinb@redhat.com>
5318 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
5320 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
5321 (mep-tdep.o): New rule.
5322 * configure.tgt (mep-*-*): New target.
5323 * mep-tdep.c: New file.
5324 * config/mep/mep.mt: New file.
5326 2007-02-22 Markus Deuling <deuling@de.ibm.com>
5328 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
5329 BREAKPOINT_HIT and STOP_UNKNOWN.
5331 2007-02-22 Markus Deuling <deuling@de.ibm.com>
5333 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
5335 2007-02-20 Joel Brobecker <brobecker@adacore.com>
5337 * gdb_expat.h (XMLCALL): Define if not already defined.
5339 2007-02-20 Andreas Schwab <schwab@suse.de>
5341 * Makefile.in (symfile.o): Update dependencies.
5343 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5345 * MAINTAINERS: Disable -Werror for cris simulator. Build
5346 sparc64-solaris2.10 instead of the broken sparc-elf.
5347 * solib-frv.c: Include "solib.h".
5348 * Makefile.in (solib-frv.o): Update.
5349 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
5350 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
5351 (xtensa_frame_this_id, xtensa_frame_prev_register)
5352 (xtensa_push_dummy_call): Use %p.
5354 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5356 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5357 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
5358 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5359 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
5360 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
5361 (sparc-linux-tdep.o): Update.
5363 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
5365 * xtensa-tdep.h (xtensa_reg_mask_t): New.
5366 (xtensa_mask_t): Change mask field to be a separate array.
5367 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
5368 (xtensa_pseudo_register_write, xtensa_unwind_pc)
5369 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
5370 (xtensa_breakpoint_from_pc): Remove implicit type casting.
5371 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
5372 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
5373 (mask14, mask15): Rename to
5374 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
5375 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
5376 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
5377 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
5378 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
5379 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
5380 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
5381 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
5382 (xtensa_submask14, xtensa_submask15): New.
5383 (rmap): Follow strict aliasing rules doing static initialization.
5385 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
5387 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
5388 handling from here...
5389 (tdesc_register_type): ...to here.
5390 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
5391 * features/arm-core.xml: Use code_ptr and data_ptr.
5393 2007-02-13 Denis Pilat <denis.pilat@st.com>
5395 * varobj.h (enum varobj_update_error): New enum.
5396 * varobj.c (struct varobj_root): Add is_valid member.
5397 (varobj_get_type): Check for invalid varobj.
5398 (varobj_get_attributes): Likewise.
5399 (variable_editable):Likewise.
5400 (varobj_update): Likewise. Use varobj_update_error.
5401 (new_root_variable): Set root varobj as valid by default.
5402 (varobj_invalidate): New function.
5403 * symfile.c (clear_symtab_users): Use varobj_invalidate.
5404 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
5405 Use varobj_update_error.
5407 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
5410 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
5411 Pascal language marker.
5412 * dwarf2read.c (set_cu_language): Likewise.
5414 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
5416 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
5417 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
5418 instead of target_terminal_init since inferior_ptid isn't set yet.
5420 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
5422 * MAINTAINERS (Write After Approval): Add myself.
5424 2007-02-09 Fred Fish <fnf@specifix.com>
5426 Based on work by Apple Computer, Inc.
5427 * event-top.c (async_request_quit): Call quit() whenever either
5428 quit_flag is set or immediate_quit is set.
5430 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5432 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
5433 type to a pointer to const struct block.
5434 (ada_lookup_symbol_list): Don't cast away constness when calling
5435 remove_out_of_scope_renamings.
5437 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5439 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
5440 address of 'filename'; it is always non null.
5442 2007-02-09 Joel Brobecker <brobecker@adacore.com>
5444 * exec.c (add_to_section_table): Do not discard empty sections.
5446 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5448 * features/Makefile, features/arm-with-iwmmxt.xml,
5449 features/gdbserver-regs.xsl, features/number-regs.xsl,
5450 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
5451 * regformats/arm-with-iwmmxt.dat: Generate.
5452 * NEWS: Mention iWMMXt.
5454 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5456 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
5457 (xml-tdesc.o): Update.
5458 * xml-support.c: Add a comment.
5459 (gdb_xml_enums_boolean): New variable.
5460 (gdb_xml_parse_attr_enum): Use strcasecmp.
5461 * xml-support.h (gdb_xml_enums_boolean): Declare.
5462 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
5463 next_regnum, and current_union.
5464 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
5465 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
5466 (field_attributes, union_children, reg_attributes, union_attributes)
5467 (vector_attributes, feature_attributes, feature_children): New.
5468 (target_children): Make static. Add <feature>.
5469 (tdesc_elements): Make static.
5470 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
5471 (struct tdesc_feature, tdesc_feature_p): New types.
5472 (struct target_desc): Add features member.
5473 (struct tdesc_arch_data, tdesc_data): New.
5474 (target_find_description): Clarify error message. Warn about
5475 ignored register descriptions.
5476 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5477 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
5478 (tdesc_data_cleanup, tdesc_numbered_register)
5479 (tdesc_numbered_register_choices, tdesc_find_register)
5480 (tdesc_register_name, tdesc_register_type)
5481 (tdesc_remote_register_number, tdesc_register_reggroup_p)
5482 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
5483 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
5484 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
5485 (tdesc_create_feature, tdesc_record_type): New.
5486 (free_target_description): Free features.
5487 (_initialize_target_descriptions): Initialize tdesc_data.
5488 * arch-utils.c (default_remote_register_number): New.
5489 * arch-utils.h (default_remote_register_number): New prototype.
5490 * target-descriptions.h (set_tdesc_pseudo_register_name)
5491 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
5492 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
5493 (tdesc_numbered_register, tdesc_numbered_register_choices)
5494 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5495 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
5496 (tdesc_create_reg): Declare.
5497 * gdbarch.sh (remote_register_number): New entry.
5498 * gdbarch.c, gdbarch.h: Regenerate.
5499 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
5500 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
5502 * arm-tdep.c (arm_register_aliases): New.
5503 (arm_register_name_strings): Rename to...
5504 (arm_register_names): ...this. Make const. Delete the old version.
5505 (current_option, arm_register_byte): Delete.
5506 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
5507 (value_of_arm_user_reg): New.
5508 (arm_gdbarch_init): Verify any described registers. Call
5509 tdesc_use_registers. Don't use arm_register_byte. Create aliases
5510 for standard register names.
5511 (_initialize_arm_tdep): Do not adjust arm_register_names.
5512 * user-regs.c (struct user_reg): Add baton member.
5513 (append_user_reg, user_reg_add_builtin, user_regs_init)
5514 (user_reg_add, value_of_user_reg): Use a baton for user
5516 * std-regs.c: Update.
5517 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
5518 (user_reg_add): Add baton argument.
5519 * NEWS: Mention target description register support.
5520 * features/arm-core.xml, features/arm-fpa.xml: New.
5521 * eval.c (evaluate_subexp_standard): Allow ptype $register
5522 when the program is not running.
5524 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
5526 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
5528 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5530 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
5531 info->disassembler_options to "any".
5533 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5535 * varobj.c (install_new_value): Only call value_get_print_value
5538 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5540 Reported by timeless@gmail.com:
5541 * gdb/target.c (target_flash_erase): Do not return void value.
5542 (target_flash_done): Likewise.
5543 * gdb/cli/cli-cmds.c (source_command): Likewise.
5545 2007-02-08 Fred Fish <fnf@specifix.com>
5547 Based on work by Apple Computer, Inc.
5548 * event-top.c (handle_sigint): Set quit_flag.
5549 (async_request_quit): Don't set quit_flag. Avoid calling quit()
5550 if quit_flag has already been reset.
5552 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5554 * ser-mingw.c (pipe_windows_close): Move variable initialization back
5557 2007-02-08 Fred Fish <fnf@specifix.com>
5559 * defs.h (request_quit): Remove declaration.
5560 * utils.c (request_quit): Remove definition.
5562 2007-02-08 Joel Brobecker <brobecker@gnat.com>
5563 Jan Kratochvil <jan.kratochvil@redhat.com>
5564 Daniel Jacobowitz <dan@codesourcery.com>
5566 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
5567 (skip_prologue): Allow bl->blrl used by PIC code.
5569 2007-02-08 Mark Kettenis <kettenis@gnu.org>
5570 Daniel Jacobowitz <dan@codesourcery.com>
5572 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
5573 initialize tmp_obstack.
5574 * p-valprint.c (pascal_object_print_value_fields)
5575 (pascal_object_print_value): Likewise.
5577 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5579 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
5581 2007-02-08 Mark Kettenis <kettenis@gnu.org>
5583 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5584 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
5586 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5588 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
5590 (tdesc_parse_xml): Cache expanded descriptions.
5592 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5594 * Makefile.in (XMLFILES): New.
5595 (COMMON_OBS): Add xml-builtin.o.
5596 (xml-builtin.c, stamp-xml): New rules.
5597 (xml-tdesc.o): Update.
5598 * features/feature_to_c.sh: New file.
5599 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
5600 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
5601 (gdb_xml_start_element): Initialize scope after possibly reallocating
5602 scopes. Move cleanup later. Handle the XInclude description
5604 (gdb_xml_end_element): Only parse the body if there is a current element.
5605 Call XML_DefaultCurrent if there is no element.
5606 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
5607 (struct xinclude_parsing_data, xinclude_start_include)
5608 (xinclude_end_include, xml_xinclude_default)
5609 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
5610 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
5611 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
5612 * xml-support.h (xml_fetch_another, xml_process_xincludes)
5613 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
5614 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
5615 XInclude directives. Use the compiled in DTD.
5616 (fetch_xml_from_file): Add baton argument. Treat it as a containing
5617 directory name. Do not warn here.
5618 (file_read_description_xml): Update call. Warn here instead. Pass
5620 (fetch_available_features_from_target): New.
5621 (target_read_description_xml): Use it.
5622 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
5624 * features/xinclude.dtd: New file.
5626 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5628 * linux-thread-db.c (check_for_thread_db): Return early if we have
5629 no libthread_db support.
5631 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5633 * mi/mi-parse.h: Include <sys/time.h>.
5635 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
5637 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
5638 instead of print_variable_value to print values.
5640 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5642 * mi/mi-main.c: Numerous formatting changes.
5643 (mi_cmd_data_write_register_values): Replace clause inadvertantly
5644 removed in my previous change.
5646 2007-02-03 Eli Zaretskii <eliz@gnu.org>
5648 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
5649 Use 1000000L instead of 1000000.
5651 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5653 Based on work by Apple Computer, Inc.
5655 * configure.ac: Test for sys/resource.h and getrusage.
5656 * configure, config.in: Regenerate.
5658 * mi/mi-main.c: Include <sys/resource.h> if present.
5659 (rusage): Declare if HAVE_GETRUSAGE.
5660 (current_command_ts, do_timings): New static variables.
5661 (timestamp, print_diff_now, print_diff, timeval_diff):
5662 New static timing functions.
5663 (mi_cmd_enable_timings): New function for new MI command.
5664 (captured_mi_execute_command, mi_execute_async_cli_command):
5665 Call timing functions.
5667 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
5670 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
5672 * mi/mi-parse.h: (mi_timestamp): New structure.
5673 (mi_parse): Add mi_timestamp* member.
5675 2007-02-02 Denis Pilat <denis.pilat@st.com>
5677 * thread.c (make_cleanup_restore_current_thread): New function.
5678 (info_threads_command): Use of make_cleanup_restore_current_thread
5679 to restore the current thread and the selected frame.
5680 (restore_selected_frame): New function.
5681 (struct current_thread_cleanup): Add frame_id field.
5682 (do_restore_current_thread_cleanup): Add restoring of the selected
5684 (make_cleanup_restore_current_thread): Likewise.
5685 (thread_apply_all_command): backup the selected frame while
5686 entering the function and restore it at exit.
5687 (thread_apply_command): Likewise.
5689 2007-02-02 Denis Pilat <denis.pilat@st.com>
5691 * MAINTAINERS (Write After Approval): Add myself to the list.
5693 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5695 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
5696 (m32r_store_register): Ditto.
5698 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
5700 * ser-mingw.c (pipe_windows_open)
5701 (pipe_windows_read, pipe_windows_write): Declare
5702 variables at the top of the function.
5704 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5706 * doublest.c (floatformat_from_length): Use the right element from
5707 gdbarch floatformats.
5708 (floatformat_from_type, extract_typed_floating)
5709 (store_typed_floating): Likewise.
5710 * doublest.h: Remove declarations for undefined floatformat arrays.
5711 * gdbarch.sh (float_format, double_format, long_double_format): Change
5713 (pformat): Update for pairs.
5714 * gdbarch.c, gdbarch.h: Regenerated.
5715 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
5716 (floatformats_ieee_double_littlebyte_bigword)
5717 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
5718 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
5719 (floatformats_vax_d): New variables.
5720 (builtin_type_ieee_single, builtin_type_ieee_double)
5721 (builtin_type_arm_ext, builtin_type_ia64_spill)
5722 (builtin_type_ia64_quad): Replace arrays with individual types.
5723 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
5724 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
5725 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
5726 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
5727 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
5728 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
5729 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
5730 unused and endian-specific types.
5731 (recursive_dump_type): Update for floatformat pairs.
5732 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
5733 (build_gdbtypes): Use build_flt.
5734 (_initialize_gdbtypes): Update set of initialized types.
5735 * gdbtypes.h: Update declarations to match gdbtypes.c.
5736 (struct main_type): Store a pointer to two floatformats.
5737 * arch-utils.c (default_float_format, default_double_format): Delete.
5738 * arch-utils.h (default_float_format, default_double_format): Delete.
5740 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5741 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
5742 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
5743 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
5744 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
5746 2007-01-29 Joel Brobecker <brobecker@adacore.com>
5748 * target.c (maintenance_print_target_stack): New function.
5749 (initialize_targets): Add new "maintenance print target-stack"
5752 2007-01-28 Mark Kettenis <kettenis@gnu.org>
5754 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
5756 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
5758 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
5759 (struct dwarf2_loclist_baton): Likewise.
5761 2007-01-27 Eli Zaretskii <eliz@gnu.org>
5763 * cli/cli-script.c: Include breakpoint.h.
5764 (build_command_line): Require arguments only for if and while
5766 (get_command_line, execute_user_command, execute_control_command):
5767 Fix wording of warning messages.
5768 (print_command_lines): Print breakpoint commands.
5769 (execute_control_command): Call commands_from_control_command to
5770 handle the `commands' command inside a body of a flow-control
5772 (read_next_line): Recognize the `commands' command and build a
5773 command line structure for it.
5774 (recurse_read_control_structure, read_command_lines): Handle
5775 `commands' similarly to `if' and `while'.
5777 * breakpoint.c (get_number_trailer): Document the special meaning
5778 of NULL as the first argument PP.
5779 (commands_from_control_command): New function.
5781 * breakpoint.h (commands_from_control_command): Add prototype.
5783 * defs.h (commands_control): New enumerated value for enum
5784 command_control_type.
5786 2007-01-26 Joel Brobecker <brobecker@adacore.com>
5788 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
5789 (ada_exception_sal): Update accordingly.
5791 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5793 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
5794 * NEWS: Describe CHAR array vs. string identifcation rules.
5796 2007-01-25 Paul Brook <paul@codesourcery.com>
5798 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
5800 2007-01-24 Jim Blandy <jimb@codesourcery.com>
5802 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
5803 expression is empty, bother to return the 'optimized out' value we
5804 construct. (Thanks to Carl Burch.)
5806 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5808 * varobj.c (c_value_of_root, c_value_of_child)
5809 (cplus_describe_child): Don't call release_value.
5811 2007-01-24 Thiemo Seufer <ths@mips.com>
5813 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
5816 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5818 Refactor getting children name, value and type access
5820 * varobj.c (get_type_deref): Remove.
5821 (adjust_value_for_child_access): New.
5822 (c_number_of_children): Use the above.
5823 (c_describe_child): Likewise.
5824 (enum accessibility): New.
5825 (match_accessibility): New function.
5826 (cplus_describe_child): New function.
5827 (cplus_name_of_child, cplus_value_of_child)
5828 (cplus_type_of_child): Reimplement in terms
5829 of cplus_describe_child.
5830 (cplus_number_of_children): Use
5831 adjust_value_for_child_access.
5833 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5835 Fix computation of the 'editable' attribute and
5836 value changeability for for references.
5837 * varobj.c (get_value_type): New function.
5838 (c_variable_editable): Use get_value_type.
5839 (varobj_value_is_changeable): Likewise.
5841 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5843 * source.c (find_and_open_source): Try rewriting the source
5844 path inside filename if dirname is NULL.
5846 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5848 * dwarf2read.c (add_partial_symbol): Create an extra partial
5849 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
5850 (new_symbol): Likewise for symbols.
5852 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
5854 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
5856 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
5858 * value.c (value_primitive_field): Copy the full 'location'
5859 contents, instead of assuming that copying ADDRESS will
5860 bring over everything in the union. Remove obsolete comment.
5862 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
5864 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
5865 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
5866 (m32c_m16c_pointer_to_address): Separate code from declarations.
5868 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
5870 * target.c (update_current_target): Correct typo.
5872 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
5874 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
5877 2007-01-11 Andrew Cagney <cagney@redhat.com>
5878 Daniel Jacobowitz <dan@codesourcery.com>
5879 Jan Kratochvil <jan.kratochvil@redhat.com>
5881 * dwarf2-frame.c (execute_cfa_program): New support of
5882 `DW_CFA_GNU_negative_offset_extended'.
5884 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5886 * NEWS: Mention flash support for "load" and new remote packets.
5888 2007-01-21 Markus Deuling <deuling@de.ibm.com>
5890 * breakpoint.c (delete_command): Skip redundant loop iterations.
5892 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5894 * gdbarch.sh (register_type): Update comment.
5895 * gdbarch.h: Regenerated.
5896 * arch-utils.c (generic_register_size): Call register_type.
5897 * ia64-tdep.c (ia64_extract_return_value): Likewise.
5898 * m32c-tdep.c (check_for_saved): Likewise.
5899 * mips-tdep.c (mips_print_register, print_gp_register_row)
5900 (mips_print_registers_info): Likewise.
5901 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
5903 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
5904 (sh64_do_register, sh64_print_register)
5905 (sh64_media_print_registers_info): Likewise.
5906 * tui/tui-regs.c (tui_register_format): Likewise.
5908 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5910 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
5912 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
5913 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
5914 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
5915 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5916 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
5917 (make_symbol_completion_list): Likewise.
5919 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5920 Daniel Jacobowitz <dan@codesourcery.com>
5922 * buildsym.c (end_symtab): Use preallocated symtab if available.
5923 Fill in SYMBOL_SYMTAB.
5924 * buildsym.h (struct subfile): Add symtab member.
5925 * dwarf2read.c (struct dwarf2_cu): Add line_header.
5926 (struct file_entry): Add symtab.
5927 (free_cu_line_header): New function.
5928 (read_file_scope): Use it. Save line_header in the cu. Process
5930 (add_file_name): Initialize new symtab member.
5931 (dwarf_decode_lines): Create symtabs for included files.
5932 (new_symbol): Set SYMBOL_SYMTAB.
5933 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
5934 (search_symbols): Likewise.
5935 * symtab.h (struct symbol): Add symtab member.
5936 (SYMBOL_SYMTAB): Define.
5938 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5940 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
5942 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5944 * arch-utils.c (show_endian): Correct reversed condition.
5946 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5948 * MAINTAINERS (Write After Approval): Add myself.
5950 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
5951 Vladimir Prus <vladimir@codesourcery.com>
5953 Fix 'selected frame' varobjs.
5954 * varobj.c (struct varobj): Remove the error field.
5955 (varobj_set_value): Don't check var->error.
5956 (install_new_value): Don't set var->error.
5957 (varobj_update): Always pass the new value
5958 of the root via install_new_value.
5959 (create_child): Don't set error field.
5960 (new_variable): Likewise.
5961 (c_value_of_root): Always reevaluate the value
5962 of selected frame varobjs in the selected frame.
5963 Don't call reinit_frame_cache.
5965 2007-01-15 Joel Brobecker <brobecker@adacore.com>
5967 * source.c (_initialize_source): Improve the help text of
5968 the substitute-path commands.
5970 2007-01-14 Mark Kettenis <kettenis@gnu.org>
5972 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
5973 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
5974 (frv_skip_prologue): Remove prototypes.
5975 (frv_adjust_breakpoint_address): Renamed from
5976 frv_gdbarch_adjust_breakpoint_address.
5977 (frv_gdbarch_init): Adjust.
5979 2007-01-13 Mark Kettenis <kettenis@gnu.org>
5981 * gdbarch.sh (deprecated_extract_return_value)
5982 (deprecated_store_return_value): Remove.
5983 (extract_return_value, store_return_value): Remove default values.
5984 * gdbarch.c, gdbarch.h: Regenerate.
5985 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
5986 (legacy_store_return_value): Remove.
5987 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
5990 * mi/mi-main.c: Remove obsolete comment.
5992 * regcache.c, regcache.h (deprecated_register_bytes)
5993 (deprecated_read_register_bytes)
5994 (deprecated_write_register_bytes): Remove.
5996 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
5997 Don't forget to move destination pointer.
5999 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6001 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
6003 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
6005 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
6006 past entry function with recent newlib.
6008 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
6010 * gdb.texinfo (GDB/MI Variable Objects): Improve the
6011 introduction. Specify -var-update more exactly.
6013 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
6015 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
6017 2007-01-10 Jim Blandy <jimb@codesourcery.com>
6019 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
6020 the Global Maintainers' invitation to be a global maintainer.
6022 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
6024 * infrun.c (singlestep_pc): New variable.
6025 (resume): Set singlestep_pc.
6026 (context_switch): Add a debugging message. Flush the frame cache.
6027 (handle_inferior_event): Add debugging messages. Handle thread
6028 hops when a software single step has completed. Let context_switch
6029 handle flushing the frame cache.
6031 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6033 * NEWS: Mention target descriptions, "set tdesc filename",
6034 "unset tdesc filename", "show tdesc filename", and
6035 qXfer:features:read.
6036 * arch-utils.c (choose_architecture_for_target): New function.
6037 (gdbarch_info_fill): Call it.
6038 * target-descriptions.c (struct property): Make members non-const.
6039 (struct target_desc): Add arch member.
6040 (target_description_filename): New variable.
6041 (target_find_description): Try via XML first.
6042 (tdesc_architecture): New.
6043 (free_target_description, make_cleanup_free_target_description): New.
6044 (set_tdesc_property): Call xstrdup.
6045 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
6046 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
6047 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
6048 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
6049 * target-descriptions.h (tdesc_architecture)
6050 (make_cleanup_free_target_description, set_tdesc_architecture): New
6052 * Makefile.in (SFILES): Add xml-tdesc.c.
6053 (COMMON_OBS): Add xml-tdesc.o.
6054 (target-descriptions.o): Update.
6055 (xml-tdesc.o): New rule.
6056 * xml-tdesc.c, xml-tdesc.h: New files.
6057 * remote.c (PACKET_qXfer_features): New enum.
6058 (remote_protocol_features): Add qXfer:features:read.
6059 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
6060 (_initialize_remote): Register qXfer:features:read.
6061 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
6062 * features/gdb-target.dtd: New file.
6064 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6066 * copyright.sh: Clarify error.
6068 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6070 * symtab.c (matching_bfd_sections): Fix VMA matching for
6073 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6075 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
6078 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6080 Updated copyright notices for most files.
6082 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6084 * copyright.sh (prunes): Add step-line.inp and step-line.c.
6086 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6088 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
6090 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
6092 * configure, config.in: Regenerate.
6093 * defs.h (debug_file_directory): Declare.
6094 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
6095 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
6096 relocate it if DEBUGDIR_RELOCATABLE.
6097 * symfile.c (debug_file_directory): Make non-static.
6098 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
6099 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
6100 (_initialize_symfile): Don't initialize debug_file_directory here.
6102 2007-01-09 Jim Blandy <jimb@codesourcery.com>
6104 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
6107 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6109 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
6110 frame_unwind_register to recurse.
6111 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
6112 (alpha_heuristic_frame_prev_register): Likewise.
6113 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
6114 * m32c-tdep.c (m32c_prev_register): Likewise.
6115 * frame.c (frame_register_unwind_location): Remove FIXME.
6117 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6118 Eli Zaretskii <eliz@gnu.org>
6120 * copyright.sh: New file.
6122 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6124 * configure.ac: Check for XML_StopParser.
6125 * xml-support.c (gdb_xml_body_text): Check for an error.
6126 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
6127 (gdb_xml_end_element_wrapper): Likewise.
6128 * config.in, configure: Regenerated.
6130 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6132 * varobj.c (install_new_value): Always update print_value.
6133 (value_get_print_value): Immediately return NULL for missing
6136 2007-01-08 Jim Blandy <jimb@codesourcery.com>
6138 * configure.ac: Tighten pattern for extracting value of
6139 DEPRECATED_TM_FILE from the target makefile fragment.
6140 * configure: Regenerated.
6142 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6144 * linux-nat.c (struct simple_pid_list): Add status.
6145 (add_to_pid_list): Record the PID's status.
6146 (linux_record_stopped_pid): Likewise. Make static.
6147 (pull_pid_from_list): Return the saved status.
6148 (linux_nat_handle_extended): Deleted.
6149 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
6150 Make static. Handle non-SIGSTOP for a new thread's first signal.
6151 (flush_callback): Handle unexpected pending signals.
6152 (linux_nat_wait): Update calls to changed functions.
6153 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
6154 Remove prototypes for newly static functions.
6156 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6158 * gdbarch.sh (value_from_register): New gdbarch function.
6159 * gdbarch.c, gdbarch.h: Regenerate.
6160 * findvar.c (default_value_from_register): New function.
6161 (value_from_register): Use gdbarch_value_from_register.
6162 * value.h (default_value_from_register): Declare.
6163 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
6164 spu_value_to_register): Remove.
6165 (spu_value_from_register): New function.
6166 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6167 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6168 Call set_gdbarch_value_from_register.
6169 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
6170 s390_value_to_register): Remove.
6171 (s390_value_from_register): New function.
6172 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6173 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6174 Call set_gdbarch_value_from_register.
6176 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6178 * NEWS: Add "set sysroot" and "show sysroot".
6179 * solib.c (solib_absolute_prefix): Delete. Replace
6180 all uses with gdb_sysroot.
6181 (_initialize_solib): Add "set sysroot" and "show sysroot".
6182 Make "solib-absolute-prefix" an alias to it.
6184 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6186 * frame.c (get_frame_register_bytes): New function.
6187 (put_frame_register_bytes): Likewise.
6188 * frame.h (get_frame_register_bytes): Declare.
6189 (put_frame_register_bytes): Likewise.
6190 * findvar.c (value_from_register): Always construct lval_register
6191 values. Use get_frame_register_bytes.
6192 * valops.c (value_assign): Use get_frame_register_bytes and
6193 put_frame_register_bytes.
6195 2007-01-08 Jim Blandy <jimb@codesourcery.com>
6197 * MAINTAINERS: Update Stan Shebs' email address.
6199 2007-01-07 Joel Brobecker <brobecker@adacore.com>
6201 * ada-lang.c (is_known_support_routine): Improve the implementation.
6203 2007-01-06 Joel Brobecker <brobecker@adacore.com>
6205 * ada-lang.c: Add include of source.h.
6206 (is_known_support_routine): Improve the check verifying that the file
6207 associated to this frame exists.
6208 * Makefile.in (ada-lang.o): Add dependency on source.h.
6210 2007-01-07 Jim Blandy <jimb@codesourcery.com>
6212 * ax-general.c (ax_const_l): Select proper opcode for the given
6215 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6217 * varobj.c (c_value_of_root): Don't select frame if variable
6218 object is out of scope.
6220 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
6222 * varobj.c (struct varobj): New member print_value.
6223 (install_new_value): Compare last printed value with current one
6224 instead of contents.
6225 (new_variable): Initialize var->print_value to NULL.
6226 (free_variable): Free var->print_value.
6227 (value_get_print_value): New function derived from
6228 c_value_of_variable.
6229 (c_value_of_variable): Use value_get_print_value.
6231 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6233 * i386-tdep.c (i386_analyze_stack_align): Add comment.
6235 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6237 * NEWS: Add entries for new catch commands.
6239 2007-01-05 Joel Brobecker <brobecker@adacore.com>
6241 * dwarf2read.c (partial_die_info): Add field has_byte_size.
6242 (add_partial_symbol): Correct identification of external references.
6243 (process_structure_scope): Likewise.
6244 (read_partial_die): Handle DW_AT_byte_size attribute.
6246 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
6248 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
6250 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
6252 * varobj.c (get_type_deref): Fix variable objects for references to
6255 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6257 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
6260 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6262 * memory-map.c (struct_memory_map_parsing_data): Remove most
6263 members. Make property_name an array.
6264 (free_memory_map_parsing_data, memory_map_start_element)
6265 (memory_map_end_element, memory_map_character_data): Delete.
6266 (memory_map_start_memory, memory_map_end_memory)
6267 (memory_map_start_property, memory_map_end_property): New functions.
6268 (property_attributes, memory_children, memory_type_enum)
6269 (memory_attributes, memory_map_children, memory_map_elements): New.
6270 (parse_memory_map): Rewrite.
6271 * xml-support.c (debug_xml): New.
6272 (xml_get_required_attribute, xml_get_integer_attribute)
6273 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
6275 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
6276 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
6277 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
6278 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
6279 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
6280 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
6281 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
6283 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
6284 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
6285 (enum gdb_xml_element_flag, struct gdb_xml_element)
6286 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
6287 (struct gdb_xml_enum): New.
6288 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
6289 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
6290 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
6291 (xml_get_required_attribute, xml_get_integer_attribute)
6292 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
6293 * Makefile.in (xml_support_h, xml-support.o): Update.
6295 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6297 * Makefile.in (eval.o): Update dependencies.
6298 * eval.c: Include "ui-out.h" and "exceptions.h".
6299 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
6300 Use value_zero if an error occurs when avoiding side effects.
6301 * varobj.c (c_value_of_root): Initialize new_val.
6303 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6305 * varobj.c (varobj_list_children): Stop if the number of children is
6307 (c_number_of_children):
6309 2007-01-04 Mark Kettenis <kettenis@gnu.org>
6311 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
6312 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
6313 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
6314 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
6315 sizeof, instead of hardcoded constants.
6317 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6319 * CONTRIBUTE: Use sourceware.org.
6321 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6323 * buildsym.c (start_subfile): Handle producer.
6324 (record_producer): New function.
6325 * buildsym.h (struct subfile): Include producer.
6326 (record_producer): New prototype.
6327 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
6328 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
6329 armcc_cfa_offsets_reversed.
6330 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
6331 (dwarf2_frame_find_quirks): New function.
6332 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
6333 (decode_frame_entry_1): Record the CIE version. Record the
6334 augmentation. Skip armcc augmentations.
6335 * dwarf2read.c (read_file_scope): Save the producer.
6336 * symtab.h (struct symtab): Rename unused version member to
6339 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6341 * configure.ac (build_warnings): Use -Wall and
6342 -Wdeclaration-after-statement.
6343 * configure: Regenerated.
6345 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6347 Simplify access to variours properties of child
6348 variable objects in C.
6349 * varobj.c (value_struct_element_index): New function.
6350 (c_describe_child): New function.
6351 (c_name_of_child, c_value_of_child)
6352 (c_type_of_child): Rewrite to use c_describe_child.
6354 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6357 * varobj.c: Include "vec.h".
6358 (varobj_p): New typedef, declare vector of those.
6359 (struct varobj): Use vector for the 'children' member.
6360 (child_exists): Remove.
6361 (save_child_in_parent): Remove.
6362 (remove_child_from_parent): Remove.
6363 (struct varobj_child): Remove.
6364 (struct vstack): Remove.
6365 (vpush, vpop): Remove.
6366 (varobj_list_children): Adjust to work work vector.
6367 (varobj_update): Likewise. Use vectors for
6368 working stack and result.
6369 (delete_variable_1): Likewise.
6370 * Makefile.in (varobj.o): Update dependencies.
6372 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6374 Port from Apple's version.
6376 * varobj.c (type_changeable): Rename to...
6377 (varobj_value_is_changeable_p): ...this. Adjust all callers.
6378 (is_root_p): New function. Use it everywhere.
6380 2007-01-04 Jim Blandy <jimb@codesourcery.com>
6382 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
6385 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6387 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
6389 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6391 * hpread.c (hpread_type_lookup): Fix compilation failure.
6393 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
6395 * NEWS: New port to S+core.
6396 * MAINTAINERS (Write After Approval, Responsible Maintainers):
6399 * Makefile.in: Add dependencies for S+core files.
6400 * configure.tgt (score*, score-*-*): Add S+core target.
6401 * config/score/embed.mt: New file.
6402 * score-tdep.c: New file.
6403 * score-tdep.h: New file.
6405 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6407 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
6408 the appropriate type rather than a bogus void type.
6410 2007-01-04 Joel Brobecker <brobecker@adacore.com>
6412 * ada-lang.h (ada_find_printable_frame): Remove.
6413 (ada_exception_catchpoint_p, ada_decode_exception_location)
6414 (ada_decode_assert_location): Add declaration.
6415 * ada-lang.c: Add include of annotate.h and valprint.h.
6416 (exception_catchpoint_kind): New enum.
6417 (function_name_from_pc, is_known_support_routine)
6418 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
6419 (ada_exception_name_addr_1, ada_exception_name_addr)
6420 (print_it_exception, print_one_exception, print_mention_exception)
6421 (print_it_catch_exception, print_one_catch_exception)
6422 (print_mention_catch_exception, catch_exception_breakpoint_ops)
6423 (print_it_catch_exception_unhandled)
6424 (print_one_catch_exception_unhandled)
6425 (print_mention_catch_exception_unhandled, print_it_catch_assert)
6426 (print_one_catch_assert, print_mention_catch_assert)
6427 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
6428 (ada_get_next_arg, catch_ada_exception_command_split)
6429 (ada_exception_sym_name, ada_exception_sym_name)
6430 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
6431 (ada_parse_catchpoint_condition, ada_exception_sal)
6432 (ada_decode_exception_location)
6433 (ada_decode_assert_location): New function.
6434 (catch_exception_unhandled_breakpoint_ops): New global variable.
6435 (catch_assert_breakpoint_ops): New global variable.
6436 * breakpoint.c: Add include of ada-lang.h.
6437 (print_one_breakpoint): Do not print the condition for Ada
6438 exception catchpoints.
6439 (create_ada_exception_breakpoint): New function.
6440 (catch_ada_exception_command, catch_assert_command): New function.
6441 (catch_command_1): Add support for the new "catch exception" and
6442 "catch assert" commands.
6443 (_initialize_breakpoint): Add help description for the new catch
6445 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
6447 (breakpoint.o): Add dependency on ada-lang.h.
6449 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
6451 * coffread.c (cs_to_section): If bfd_section is found, always
6452 return its section index.
6453 (coff_symtab_read): Determine the minimal_symbol_type using the
6456 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6457 Daniel Jacobowitz <dan@codesourcery.com>
6459 * Makefile.in (top.o): Update.
6460 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
6461 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
6462 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
6464 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
6466 2007-01-03 Mark Kettenis <kettenis@gnu.org>
6468 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
6469 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
6471 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6473 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
6474 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
6475 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
6476 greater than or equal to zero.
6477 * m2-typeprint.c (m2_array): Likewise.
6478 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6479 * gdbtypes.c (copy_type_recursive): Correct == typo.
6480 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
6481 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
6483 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
6484 (default_macro_scope): Remove unused variable.
6485 * prologue-value.h (pv_area_find_reg): Don't name an argument
6487 * remote-fileio.c (remote_fio_func_map): Add missing braces.
6488 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
6490 (cleanup_sigint_signal_handler): Remove casts.
6491 * valprint.c (val_print): Use a volatile local for the modified
6493 * varobj.c (languages): Remove extra array dimension.
6494 (varobj_create): Correct access to languages array.
6495 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
6497 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
6498 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
6499 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
6500 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
6501 (mi_cmd_data_write_memory): Likewise.
6502 * signals/signals.c (target_signal_to_string): Cast to int before
6504 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
6507 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6509 * NEWS: Mention pointer to member improvements.
6510 * Makefile.in (gnu-v3-abi.o): Delete special rule.
6511 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
6512 * ada-valprint.c (ada_print_scalar): Update for new type codes.
6513 * c-typeprint.c (c_print_type): Update for new type codes.
6514 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
6515 (c_type_print_base): Likewise.
6516 (c_type_print_args): Rewrite.
6517 * c-valprint.c (c_val_print): Update for new type codes. Remove
6518 support for references to members. Treat methods like functions.
6519 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
6520 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
6521 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
6522 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
6523 (struct cp_abi_ops): Add corresponding members.
6524 * cp-valprint.c (cp_print_class_method): Delete.
6525 (cp_find_class_member): New function.
6526 (cp_print_class_member): Use it. Simplify support for bogus
6528 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
6529 lookup_methodptr_type.
6530 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
6531 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
6532 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
6534 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
6535 references returned by user defined operators.
6536 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
6537 (f_type_print_varspec_suffix): Remove support for member pointers.
6538 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
6540 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
6541 (lookup_methodptr_type): New.
6542 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
6543 (recursive_dump_type): Update for new types.
6544 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
6545 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
6546 (lookup_memberptr_type, lookup_methodptr_type)
6547 (smash_to_memberptr_type): New prototypes.
6548 (smash_to_method_type): Formatting fix.
6549 (lookup_member_type, smash_to_member_type): Delete prototypes.
6550 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
6551 Do not rely on debug information for the vptr or the method's
6552 enclosing type. Handle function descriptors for IA64.
6553 (gnuv3_virtual_fn_field): Rewrite using the new functions.
6554 (gnuv3_find_method_in, gnuv3_print_method_ptr)
6555 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
6556 (gnuv3_method_ptr_to_value): New.
6557 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
6558 * hpread.c (hpread_type_lookup): Update for new types.
6559 * infcall.c (value_arg_coerce): Likewise.
6560 * m2-typeprint.c (m2_print_type): Remove explicit support
6561 for member pointers.
6562 * m2-valprint.c (m2_val_print): Likewise.
6563 * p-typeprint.c (pascal_type_print_varspec_prefix)
6564 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
6565 * p-valprint.c (pascal_val_print): Likewise.
6566 (pascal_object_print_class_method, pascal_object_print_class_member):
6568 * p-lang.h (pascal_object_print_class_method)
6569 (pascal_object_print_class_member): Delete prototypes.
6570 * stabsread.c (read_type): Update for new types.
6571 * typeprint.c (print_type_scalar): Likewise.
6572 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
6573 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
6574 argument. Construct a pointer to member if the address of a
6575 function or data member is requested.
6576 (value_cast_pointers): Don't modify the input value.
6577 (value_cast): Adjust pointer to member handling for new types.
6578 Allow null pointer to member constants. Don't modify the input
6580 (value_ind): Remove pointer to member check. Handle function
6581 descriptors for function pointers.
6582 (value_struct_elt, value_find_oload_method_list, check_field):
6583 Remove pointer to member checks.
6584 * value.c (unpack_long): Allow pointers to data members.
6585 (value_from_longest): Allow member pointers.
6586 * value.h (value_aggregate_elt): Add want_address.
6587 * varobj.c (c_variable_editable): Remove check for members.
6588 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
6589 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
6591 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
6592 * c-lang.h (cp_print_class_method): Delete prototype.
6593 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
6594 * mips-tdep.c (mips_gdbarch_init): Likewise.
6595 * gdbarch.c, gdbarch.h: Regenerated.
6597 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6599 * rs6000-tdep.c (rs6000_use_struct_convention)
6600 (rs6000_extract_return_value, rs6000_store_return_value)
6601 (rs6000_extract_struct_value_address): Remove.
6602 (rs6000_return_value): New function.
6603 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
6604 store_return_value, deprecated_extract_struct_value_address and
6605 deprecated_use_struct_convention. Use rs6000_return_value
6608 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
6610 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
6611 -display-disable, -display-enable, -display-insert and
6614 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6616 * breakpoint.c (remove_breakpoint): Remove dead code.
6618 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
6620 * varobj.c: Include block.h.
6621 (c_value_of_root): Check scope within nested statements.
6623 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6625 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
6626 regcache_cooked_write_signed instead of
6627 deprecated_write_register_bytes.
6629 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6631 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
6633 2007-01-01 Joel Brobecker <brobecker@adacore.com>
6635 Followed the Start of New Year Procedure:
6636 * ChangeLog-2006: New file, containing all the entries for 2006.
6637 * ChangeLog: Removed all 2006 entries, and changed the reference
6638 to the previous ChangeLog to point to ChangeLog 2006.
6639 * top.c (print_gdb_version): Update copyright year.
6641 2007-01-01 Mark Kettenis <kettenis@gnu.org>
6643 * Makefile.in (remote-sds.o): Remove.
6644 * remote-sds.c: Delete.
6646 For older changes see ChangeLog-2006.
6652 version-control: never