3 * corefile.c (reopen_exec_file): Close any open files.
7 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8 show_memory_breakpoints to 1 while reading the instruction bundle.
12 * gdbarch.sh: Document the return_value method. Explain that
13 the FUNCTYPE parameter might be NULL.
14 * gdbarch.h: Regenerated.
15 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
16 type when calling using_struct_return, as this is unnecessary
21 * terminal.h (create_tty_session): Fix return type.
25 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
29 * breakpoint.c (condition_command, commands_from_control_command)
30 (break_command_really): Minor reformatting.
34 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
38 * amd64-tdep.c (amd64_get_longjmp_target): New.
39 (amd64_init_abi): Register amd64_get_longjmp_target as
40 gdbarch_get_longjmp_target callback.
41 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
45 * breakpoint.h (enum bpstat_what_main_action): Delete
46 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
48 * breakpoint.c (clrs): Delete.
49 (bpstat_what): Update table.
51 * infrun.c (handle_inferior_event): Remove
52 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
56 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
57 Adjust all prototypes using mi_cmd_args_ftype to use
59 (struct mi_cmd): Remove the args_func field.
60 * mi/mi-cmds.c: Don't provide value for the args_func field.
61 * mi/mi-main.c (mi_execute_async_cli_command)
62 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
63 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
64 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
65 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
66 (mi_cmd_target_download): Adjust.
67 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
68 (mi_cmd_execute): Do not check for args_func.
69 (mi_execute_async_cli_command): Adjust.
70 * mi/mi-parse.c: Don't check for args_func.
74 * breakpoint.c (bpstat_check_location)
75 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
76 New, extracted from bpstat_stop_status.
77 (bpstat_stop_status): Use the above.
81 * mi/mi-main.c (last_async_command): Rename to current_token.
82 (previous_async_command): Remove.
83 (mi_cmd_gdb_exit): Adjust.
84 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
85 (mi_cmd_target_select): Adjust.
86 (mi_cmd_execute): Don't set previous_async_command. Free token
87 here even in async mode.
88 (mi_execute_async_cli_command): Adjust.
89 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
91 (mi_load_progress): Adjust.
95 * infcmd.c (step_1_continuation): Always disable longjmp
96 breakpoint if we're not going to do another step.
101 * breakpoint.c (until_break_command_continuation): Add
102 the 'error' parameter. Directly delete the breakoint as
103 opposed to running cleanups.
104 (until_break_command): Install continuation only
105 after starting the target. Don't use exec cleanups,
106 use ordinary cleanups. Discard cleanups is successfully
107 started the target in async mode.
108 (make_cleanup_delete_breakpoint): Remove.
109 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
111 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
113 (struct continations): Add the 'error' parameter to the
114 continuation_hook field.
115 (add_continuation, do_all_continuations)
116 (add_intermediate_continuation)
117 (do_all_intermediate_continuations): Add the 'error' parameter.
118 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
119 * inf-loop.c (inferior_event_handler): Instead of calling
120 discard_all_continuations, use do_all_continuations with 1 as
121 'error' parameter. Pass 0 as 'error' parameter in existing uses
122 of discard_all_continuations.
123 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
125 (step_once): Install continuation only after resuming the target.
126 (step_1_continuation): Disable longjmp breakpoint on error.
127 (finish_command_continuation): Add the error parameter. Delete
128 the finish breakpoint directly, do not use cleanups.
129 (finish_command): Do not use exec_cleanups. Always setup
130 continuation. For sync case, immediately run them.
131 (attach_command_continuation): Add the error parameter.
132 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
133 remove step_resume_breakpoint -- adjust delete it directly.
134 * interps.c (interp_set): Adjust call to do_all_continations.
135 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
137 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
139 (mi_cmd_execute): Do not use exec_cleanup.
140 (mi_execute_async_cli_command): Simplify the string concatenation
141 logic. Do no use exec cleanup.
142 (mi_exec_async_cli_cmd_continuation): New parameter error.
143 Free last_async_command.
144 * top.c (command_line_handler_continuation): New parameter error.
145 * utils.c (exec_cleanup_chain, make_exec_cleanup)
146 (do_exec_cleanups): Remove.
147 (add_continuation, do_all_continations)
148 (add_intermediate_continuation)
149 (do_all_intermediate_continuations): New parameter error.
153 * breakpoint.h (bp_location_p): New typedef.
154 Register a vector of bp_location_p.
155 * breakpoint.c (always_inserted_mode)
156 (show_always_inserted_mode): New.
157 (unlink_locations_from_global_list): Remove.
158 (update_global_location_list)
159 (update_global_location_list_nothrow): New.
160 (update_watchpoint): Don't free locations.
161 (should_insert_location): New.
162 (insert_bp_location): Use should_insert_location.
163 (insert_breakpoint_locations): Copied from
165 (insert_breakpoint): Use insert_breakpoint_locations.
166 (bpstat_stop_status): Call update_global_location_list
167 when disabling breakpoint.
168 (allocate_bp_location): Don't add to bp_location_chain.
170 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
171 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
172 (enable_overlay_breakpoints, disable_overlay_breakpoints)
173 (set_longjmp_resume_breakpoint)
174 (enable_watchpoints_after_interactive_call_stop)
175 (disable_watchpoints_before_interactive_call_start)
176 (create_internal_breakpoint)
177 (create_fork_vfork_event_catchpoint)
178 (create_exec_event_catchpoint, set_momentary_breakpoint)
179 (create_breakpoints, break_command_1, watch_command_1)
180 (create_exception_catchpoint)
181 (handle_gnu_v3_exceptions)
182 (disable_breakpoint, breakpoint_re_set_one)
183 (create_thread_event_breakpoint, create_solib_event_breakpoint)
184 (create_ada_exception_breakpoint): : Don't call check_duplicates.
185 Call update_global_location_list.
186 (delete_breakpoint): Don't remove locations and don't
187 try to reinsert them. Call update_global_location_list.
188 (update_breakpoint_locations): Likewise.
189 (restore_always_inserted_mode): New.
190 (update_breakpoints_after_exec): Temporary disable
191 always inserted mode.
192 * Makefile.in: Update dependencies.
194 * infrun.c (proceed): Remove breakpoints while stepping
196 (handle_inferior_event): Don't remove or insert
198 * linux-fork.c (checkpoint_command): Remove breakpoints
199 before fork and insert after.
200 (linux_fork_context): Remove breakpoints before switch
202 * target.c (target_disconnect, target_detach): Remove
203 breakpoints from target.
208 * breakpoint.c (print_one_breakpoint_location): In MI
209 mode, report the location string the breakpoint was
210 originally created with.
214 * Makefile.in (xtensa-tdep.o): Update dependencies.
215 * configure.tgt (xtensa*): Update dependencies.
216 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
217 Local variable areg renamed to arreg.
218 (areg_number): New function.
219 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
220 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
221 replaced by arreg_number.
222 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
223 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
224 (xtensa_scan_prologue): New function.
225 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
226 when ENTRY instraction hasn't been executed yet. Get the frame pointer
227 value based on prologue analysis. Fix the bugs preventing WS and
228 AR4-AR7/A11 registers from getting right values for intermediate frames,
229 whose registers have been already spilled.
230 (xtensa_frame_prev_register): Fix WS register value. Use are_number
231 and arreg_number appropriately.
232 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
233 svr4_ilp32_fetch_link_map_offsets.
237 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
238 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
242 * acinclude.m4: Add override.m4.
243 * configure: Regenerate.
247 * ada-lang.c (get_selections): Variable PROMPT made non-const and
248 initialized with a trailing space now. Use PROMPT_ARG of
249 COMMAND_LINE_INPUT instead of printing it ourselves.
253 * NEWS: Document support for 64-bit core file.
257 * NEWS: Add information on calling convention and new SH CLI options.
259 * sh-tdep.c (sh_cc_gcc): New static string.
260 (sh_cc_renesas): Ditto.
261 (sh_cc_enum): New static string array.
262 (sh_active_calling_convention): New static string pointer denoting
263 active user chosen ABI.
264 (sh_is_renesas_calling_convention): New function to return function
265 specific ABI, or user choice if necessary.
266 (sh_use_struct_convention): Rename first argument and turn around its
267 meaning. Check for renesas ABI and return accordingly.
268 (sh_use_struct_convention_nofpu): New function.
269 (sh_next_flt_argreg): Get function type as third parameter. Check
270 for renesas ABI and choose floating registers accordingly.
271 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
272 struct return slot accordingly.
273 (sh_push_dummy_call_nofpu): Ditto.
274 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
275 Evaluate ABI and give to sh_use_struct_convention_nofpu.
276 (sh_return_value_fpu): Evaluate ABI and give to
277 sh_use_struct_convention.
278 (show_sh_command): New function.
279 (set_sh_command): Ditto.
280 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
283 * gdbarch.sh (return_value): Add func_type argument.
284 * gdbarch.c: Regenerate.
286 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
287 val_type so as not to collide with value_type function. Call
288 using_struct_return with additional function type argument.
289 * infcall.c (call_function_by_hand): Call using_struct_return and
290 gdbarch_return_value with additional function type argument.
291 * infcmd.c (print_return_value): Take addition func_type argument.
292 Call gdbarch_return_value with additional function type argument.
293 (finish_command_continuation): Call print_return_value with additional
294 function type argument.
295 (finish_command): Ditto.
296 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
297 additional function type argument.
298 * stack.c (return_command): Call using_struct_return and
299 gdbarch_return_value with additional function type argument.
300 * value.c (using_struct_return): Take additional function type argument.
301 * value.h (using_struct_return): Accommodate declaration.
302 * alpha-tdep.c (alpha_return_value): Add func_type argument.
303 * amd64-tdep.c (amd64_return_value): Ditto.
304 * arm-tdep.c (arm_return_value): Ditto.
305 * avr-tdep.c (avr_return_value): Ditto.
306 * cris-tdep.c (cris_return_value): Ditto.
307 * frv-tdep.c (frv_return_value): Ditto.
308 * h8300-tdep.c (h8300_return_value): Ditto.
309 (h8300h_return_value): Ditto.
310 * hppa-tdep.c (hppa32_return_value): Ditto.
311 (hppa64_return_value): Ditto.
312 * i386-tdep.c (i386_return_value): Ditto.
313 * ia64-tdep.c (ia64_return_value): Ditto.
314 * iq2000-tdep.c (iq2000_return_value): Ditto.
315 * m32c-tdep.c (m32c_return_value): Ditto.
316 * m32r-tdep.c (m32r_return_value): Ditto.
317 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
318 * m68k-tdep.c (m68k_return_value): Ditto.
319 (m68k_svr4_return_value): Ditto.
320 * m88k-tdep.c (m88k_return_value): Ditto.
321 * mep-tdep.c (mep_return_value): Ditto.
322 * mips-tdep.c (mips_eabi_return_value): Ditto.
323 (mips_n32n64_return_value): Ditto.
324 (mips_o32_return_value): Ditto.
325 (mips_o64_return_value): Ditto.
326 * mn10300-tdep.c (mn10300_return_value): Ditto.
327 * mt-tdep.c (mt_return_value): Ditto.
328 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
329 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
330 (ppc_sysv_abi_broken_return_value): Ditto.
331 (ppc64_sysv_abi_return_value): Ditto.
332 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
333 (ppc_sysv_abi_broken_return_value): Ditto.
334 (ppc64_sysv_abi_return_value): Ditto.
335 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
336 * rs6000-tdep.c (rs6000_return_value): Ditto.
337 * s390-tdep.c (s390_return_value): Ditto.
338 * score-tdep.c (score_return_value): Ditto.
339 * sh-tdep.c (sh_return_value_nofpu): Ditto.
340 (sh_return_value_fpu): Ditto.
341 * sh64-tdep.c (sh64_return_value): Ditto.
342 * sparc-tdep.c (sparc32_return_value): Ditto.
343 * sparc64-tdep.c (sparc64_return_value): Ditto.
344 * spu-tdep.c (spu_return_value): Ditto.
345 * v850-tdep.c (v850_return_value): Ditto.
346 * vax-tdep.c (vax_return_value): Ditto.
347 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
348 * xtensa-tdep.c (xtensa_return_value): Ditto.
350 * gdbtypes.h (struct type): Add calling_convention member.
351 * dwarf2read.c (read_subroutine_type): Add calling convention read
352 from DW_AT_calling_convention attribute to function type.
356 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
357 multi_f77_subscript to support values from registers.
358 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
359 * value.h (value_subscripted_rvalue): Add prototype.
361 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
363 * f-valprint.c (f_val_print): Likewise.
367 * dwarf2read.c (zlib_decompress_section): Define abfd in the
372 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
373 section is not a code section.
377 * NEWS: Add information on compressed debug sections.
381 * mi/mi-cmd-var.c (varobj_update_one): Print new
382 value for variable objects that changed type.
386 * varobj.c (varobj_invalidate): Don't touch floating
391 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
392 (multiple_symbols_cancel): Remove extra const.
393 * symtab.h: Likewise.
397 * interps.c (top_level_interpreter): Rename static variable...
398 (top_level_interpreter_ptr): ...to this.
399 (top_level_interpreter): New function.
401 * interps.h: New extern for top_level_interpreter.
403 * linespec.c: Include interps.h and mi/mi-cmds.h.
404 (decode_line_2): When using MI, always set all breakpoints in menu.
406 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
410 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
411 * config.in, configure: Regenerate.
412 * dwarf2read.c: Include zlib.h if present.
413 Modified *_SECTION macros.
415 (dwarf2_locate_sections): Use section_is_p instead of strcmp
416 (dwarf2_resize_section): New.
417 to determine whether a given section has a given name.
418 (zlib_decompress_section): New.
419 (dwarf2_read_section): Read the compressed section if present
421 * MAINTAINERS: Added myself to section Write After Approval.
425 * defs.h (exec_set_section_offsets): Remove prototype.
426 * exec.c (exec_set_section_offsets): Remove function.
430 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
431 in the search for the matching symbol.
435 * breakpoint.c (update_watchpoint): Always reparse
440 * breakpoint.c (print_one_breakpoint_location): Make sure to print
441 the breakpoint address only once.
445 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
446 rather than a hard-coded architecture, for xcoff executables.
450 * buildsym.c (watch_main_source_file_lossage): New fn.
451 (end_symtab): Call it.
453 * source.c (find_and_open_source): Add some comments clarifying
454 handling of FULLNAME argument. Make static. Remove pointless
459 * inf-loop.c (inferior_event_handler): Also run the intermediate
460 continuations in the INF_EXEC_COMPLETE case.
464 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
465 (set_cmd_async_ok, get_cmd_async_ok): Declare.
466 * cli/cli-decode.c (set_cmd_async_ok): New function.
467 (get_cmd_async_ok): New function.
468 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
470 * top.c (execute_command): Use get_cmd_async_ok.
471 * infcmd.c: Include cli/cli-decode.h.
472 (_initialize_infcmd): Mark "interrupt" as async-ok.
473 * Makefile.in (infcmd.o): Depend on cli_decode_h.
478 * exec.c: Correct "arch-utils.h" include.
483 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
484 to allow printing to 'see' real reason of stop. This fixes PR 2424.
485 * breakpoint.c (bpdisp_texst): New function. The function takes over
486 the role of bpstats static array in print_one_breakpoint_location.
487 (print_it_typical): Print "Temporary breakpoint" instead
488 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
489 protocols, print disp field.
490 (print_one_breakpoint_location): Removed bpdisps static definition.
491 Call new bpstat_text function to get value for 'disp' field.
492 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
496 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
497 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
498 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
499 * gnulib/Makefile.in: Regenerate.
503 * Makefile.in (GNULIB_H): New. Trigger all-lib.
504 (defs_h): Use $(GNULIB_H).
505 (all-lib): Depend on gnulib/Makefile.
506 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
507 * config.in, gnulib/Makefile.in: Regenerated.
511 * Makefile.in (LIBGNU, INCGNU): Define.
512 (INTERNAL_CFLAGS_BASE): Add INCGNU.
513 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
515 ($(LIBGNU), all-lib): New rules.
516 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
517 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
518 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
519 * gnulib: New directory, from gnulib-tool.
520 * configure, aclocal.m4: Regenerated.
524 * linux-thread-db.c (have_threads_callback): Check thread->private.
530 * varobj.c (value_of_root): Update the expression for
532 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
537 * mi/mi-cmd-var.c: Include "mi-getopt.h".
538 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
539 (mi_cmd_var_set_format): Use new mi_parse_format.
540 (mi_cmd_var_evaluate_expression): Support for -f option to specify
542 * Makefile.in (mi-cmd-var.o): Update dependencies.
544 * varobj.h (varobj_get_formatted_value): Declare.
545 * varobj.c (my_value_of_variable): Added format parameter.
546 (cplus_value_of_variable): Likewise.
547 (java_value_of_variable): Likewise.
548 (c_value_of_variable): Likewise. Evaluate expression based
550 (struct language_specific): Add format parameter to function member
552 (varobj_get_formatted_value): New.
553 (varobj_get_value): Added format parameter to method call.
557 * stabsread.c (cleanup_undefined_types_noname): Manually set the
558 instance flags of the undefined type before calling replace_type.
562 * target.h (enum strata): Remove the download_stratum.
566 * buildsym.h (last_source_file): Add dwarf info to comment.
567 (last_source_start_addr): Ditto.
571 * alphanbsd-tdep.c: Include "target.h".
572 * mn10300-tdep.c: Include "target.h".
573 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
577 Fix breakpoint condition that use member variables.
578 * valops.c (check_field): Remove.
579 (check_field_in): Rename to check_field.
580 (value_of_this): Use la_name_of_this.
581 * value.h (check_field): Adjust prototype.
583 * language.h (la_value_of_this): Rename to la_name_of_this.
584 * language.c (unknown_language_defn): Specify "this" for
586 (auto_language_defn): Likewise.
587 (local_language_defn): Likewise.
588 * ada-lang.c (ada_language_defn): Adjust comment.
589 * c-lang.c (c_language_defn): Adjust comment.
590 (cplus_language_defn): Specify "this" for name_of_this.
591 (asm_language_defn): Adjust comment.
592 (minimal_language_defn): Adjust comment.
593 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
594 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
595 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
596 * objc-lang.c (objc_language_defn): Specify "self" for
598 * p-lang.c (pascal_language_defn): Specify "this" for
600 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
602 * symtab.c (lookup_symbol_aux): Lookup "this" in the
603 proper scope, and check for field in type of "this", without
604 trying to create a value.
608 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
609 (mi_error_message): Delete declaration.
610 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
611 returning MI_CMD_ERROR.
612 * mi/mi-main.c (mi_error_message): Delete.
613 (mi_cmd_exec_interrupt):
614 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
615 (mi_cmd_thread_info): Call error instead of returning
617 (mi_cmd_data_list_register_values): Call error instead of
618 returning MI_CMD_ERROR. Adapt to new get_register interface.
619 (get_register): Change return typo to void. Call error instead of
620 returning MI_CMD_ERROR.
621 (mi_cmd_data_write_register_values): Call error instead of
622 returning MI_CMD_ERROR.
623 (mi_cmd_list_features): Return MI_CMD_DONE.
624 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
625 (mi_execute_command): Always print exceptions with -error.
629 * NEWS: Mention new commands set/show multiple-symbols.
633 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
634 (multiple_symbols_cancel): New constants.
635 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
636 (multiple_symbols_select_mode): New function.
637 (_initialize_symtab): Add new set/show multiple-symbols commands.
638 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
639 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
640 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
642 * linespec.c (decode_line_2): Likewise.
646 * symtab.h (enum free_code): Delete free_contents, unused.
647 * symmisc.c (free_symtab_block): Delete.
648 (free_symtab, case free_code): Delete.
652 * valops.c (value_cast_structs): New function. Cast related
653 STRUCT types up/down and return cast value. The body of this
654 function comes mostly from value_cast_pointers.
655 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
656 to value_cast_structs. Now value_cast_pointers needs only create
657 appropriate reference after using value_cast_structs for actual
659 (value_cast): Handle references.
663 * MAINTAINERS: Added myself to section Write After Approval.
667 * ia64-tdep.c (examine_prologue): Correct array access.
671 * cp-support.c (first_component_command): Return if no arguments.
675 * ser-mingw.c (ser_windows_open): Open requested name.
679 * MAINTAINERS: Added myself.
683 * target.c (find_default_run_target): Allow a NULL `do_mesg'
684 parameter. If it is NULL, don't call error.
685 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
686 `do_mesg' parameter to find_default_run_target. If no target was
691 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
692 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
693 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
695 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
703 * features/Makefile (%.dat): Set xmltarget to the base filename
704 of the XML source, without subdirectory.
705 * regformats/rs6000/powerpc-32.dat: Regenerate.
706 * regformats/rs6000/powerpc-64.dat: Regenerate.
707 * regformats/rs6000/powerpc-e500.dat: Regenerate.
711 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
716 * mi/mi-main.c (enum captured_mi_execute_command_actions):
717 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
721 * objfiles.h (struct objfile): New GDBARCH member.
722 (get_objfile_arch): Add prototype.
723 * objfiles.c: Include "arch-utils.h".
724 (allocate_objfile): Look up gdbarch associated with bfd.
725 (get_objfile_arch): New function.
726 * Makefile (objfiles.o): Update dependencies.
728 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
730 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
732 (locexpr_describe_location): Replace current_gdbarch by
734 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
735 (dwarf2_add_field): Likewise.
736 (read_tag_pointer_type): Likewise.
737 (read_base_type): Likewise.
738 (new_symbol): Likewise.
740 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
741 (decode_base_type, decode_function_type): Likewise.
742 (coff_read_struct_type, coff_read_enum_type): Likewise.
743 (coff_symtab_read): Replace current_gdbarch by objfile arch.
744 (decode_base_type): Likewise.
745 (coff_read_enum_type): Likewise.
746 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
747 (coff_read_enum_type): Likewise.
749 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
750 (end_psymtab): Likewise.
751 (process_one_symbol): Likewise.
753 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
754 (parse_procedure): Likewise.
755 (parse_partial_symbols): Likewise.
757 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
759 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
760 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
762 (read_range_type): Replace current_gdbarch by objfile arch. Replace
763 static range_index_type by built-in type.
764 (read_one_struct_field): Replace current_gdbarch by objfile arch.
765 (read_enum_type): Likewise.
767 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
772 * varobj.h (varobj_floating_p): Declare.
773 * varobj.c (varobj_floating_p): New.
774 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
775 '@' as the name, update all floating varobjs.
779 * varobj.c (struct varobj_root): Rename use_selected_frame to
780 floating, and clarify the meaning.
781 (varobj_create, varobj_update, new_root_variable): Adjust.
782 (value_of_root): Don't use type_changed as in variable,
784 (c_value_of_root): Adjust.
788 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
790 (linux_nat_wait): Add main lwp to gdb's thread list.
791 * linux-thread-db.c (find_new_threads_callback): Also attach to
792 already listed threads which thread_db didn't know about yet.
796 * linux-nat.c (drain_queued_events): Fix comment typo.
797 (linux_nat_attach): In async mode, don't rely on storing a pending
798 status. Instead place the wait status on the pipe.
799 (linux_nat_resume): Remove unreacheable shortcut code in async
801 (stop_wait_callback): In async mode, don't store pending status.
802 Instead, cancel breakpoints or resend the signal appropriatelly.
803 (cancel_breakpoint): New, refactored from
804 cancel_breakpoints_callback.
805 (cancel_breakpoints_callback): Call cancel_breakpoint.
806 (pipe_to_local_event_queue): Remove special token processing.
807 (linux_nat_wait): Issue an internal error if a pending status is
812 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
817 * varobj.c (struct varobj_root): New component thread_id.
818 (varobj_get_thread_id, check_scope): New functions.
819 (c_value_of_root): Use check_scope. Switch to the
820 proper thread if necessary.
822 * varobj.h (varobj_get_thread_id): New extern.
824 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
829 * top.c: Revert 2008-03-21 changes.
833 * thread.c (make_cleanup_restore_current_thread): Make it
835 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
836 * varobj.c (varobj_update): Don't save/restore frame.
837 (c_value_of_root): Save/restore thread and frame here,
838 using make_cleanup_restore_current_thread.
839 * Makefile.in: Update dependecies.
843 * varobj.c (struct varobj_root): Clarify
844 comment on the frame field.
845 (varobj_create): Don't set frame if we have no
851 Suggested by Jan Kratochvil:
852 * top.c (gdb_rl_operate_and_get_next_completion): Call
853 rl_redisplay_function.
854 (gdb_rl_redisplay): New.
855 (init_main): Set rl_redisplay_function.
859 * aix-thread.c (pdc_read_regs): Fix compiler warning.
860 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
861 (store_regs_kernel_thread): Likewise.
865 Linux native async support.
867 * target.h (struct target_ops): Delete to_async_mask_value and add
869 (target_is_async_p, target_async): Formatting.
870 (target_async_mask_value): Delete.
871 (target_async_mask): Delete function declaration, and add new
872 target macro with the same name.
874 * target.c (update_current_target): Replace to_async_mask_value by
875 to_async_mask. Default to_async_mask to return_one.
876 (target_async_mask): Delete.
877 (find_default_can_async_p, find_default_is_async_p): New.
878 (init_dummy_target): register find_default_can_async_p and
879 find_default_is_async_p on the dummy target.
881 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
882 (debug_linux_nat_async): New global.
883 (show_debug_linux_nat_async): New function.
884 (linux_nat_async_enabled, linux_nat_async_mask_value)
885 (linux_nat_event_pipe, linux_nat_num_queued_events)
886 (linux_nat_async_events_enabled): New globals.
887 (struct waitpid_result): New struct.
888 (waitpid_queue): New global.
889 (queued_waitpid, push_waitpid, drain_queued_events): New.
890 (my_waitpid): Call queued_waitpid.
891 (linux_child_follow_fork): Disable async events during the call.
892 (blocked_mask): Delete.
893 (sync_sigchld_action, async_sigchld_action): New globals.
894 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
895 async mode, block events during the call.
896 (linux_nat_create_inferior): New.
897 (linux_nat_attach): In sync mode, restore the mask states. In
898 async mode, wake the event loop immediatelly.
899 (detach_callback): Drain all queued events of the lwp we're
901 (linux_nat_detach): Block async mode, and drain events of the main
903 (linux_nat_resume): If in async mode, mask async events during the
904 call. If short circuiting, force event loop to wake up. If
905 resuming, set target_executing, and register target events in the
907 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
908 (linux_nat_wait): In async mode, block events during the call.
909 Only enable/disable passing SIGINT to the inferior in sync mode.
910 Get events from local waitpid queue. If no interesting events was
911 found, return to events loop. Reregister target events in the
912 event loop on exit. In sync mode, no need to reblock SIGCHLD.
913 (linux_nat_kill): Disable events on entry.
914 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
915 here. Detach async mode from the event loop if there are no more
916 forks available, otherwise leave it on.
917 (sigchld_handler): Assure this is called only in sync mode.
918 (linux_async_permitted, linux_async_permitted_1): New globals.
919 (set_maintenance_linux_async_permitted)
920 (show_maintenance_linux_async_permitted): New functions.
921 (linux_nat_is_async_p, linux_nat_can_async_p)
922 (linux_nat_async_mask): New.
923 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
924 (get_pending_events, async_sigchld_handler): New.
925 (linux_nat_async_events): New.
926 (async_terminal_is_ours): New global.
927 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
928 (async_client_callback, async_client_context): New.
929 (linux_nat_async_file_handler, linux_nat_async)
930 (linux_nat_disable_async, linux_nat_enable_async): New.
931 (linux_nat_add_target): Register linux_nat_create_inferior,
932 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
933 linux_nat_async_mask, linux_nat_terminal_inferior and
934 linux_nat_terminal_ours.
935 (_initialize_linux_nat): Remove local action variable, and update
936 code that used it to use sync_sigchld_action. Add new
937 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
938 set/show command in the maintenance class. Add new "linux-async"
939 maintenance set/show command. Block SIGCHLD by default. Setup
940 async_sichld_action, and sync_sigchld_action. Install the default
942 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
945 * linux-thread-db.c (re_check_for_thread_db): New.
946 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
947 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
948 (thread_db_async_mask): New.
949 (init_thread_db_ops): Register thread_db_can_async_p,
950 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
952 * remote.c (remote_async_mask_value): New.
953 (remote_return_zero): New.
954 (init_remote_ops): Register remote_return_zero as callbacks of
955 to_can_async_p and to_is_async_p.
956 (remote_can_async_p, remote_is_async_p, remote_async): Update to
957 use remote_async_mask_value.
958 (remote_async_mask): New.
959 (init_remote_async_ops): Remove to_async_mask_value setting and
960 register remote_async_mask as to_async_mask callback in
963 * Makefile.in (linux-nat.o): Update.
967 * gdbthread.h (add_thread_with_info): New.
968 * linux-thread-db.c: Add some documentation.
969 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
970 (struct private_thread_info): Remove th_valid and ti_valid.
972 (thread_get_info_callback): Do not add TID to the new ptid. Do
974 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
975 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
977 (attach_thread): Handle an already-existing thread. Use
978 add_thread_with_info. Cache the th and tid.
979 (detach_thread): Verify that private was set. Remove verbose
980 argument and printing. Update caller.
981 (thread_db_detach): Do not adjust inferior_ptid.
982 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
983 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
984 (thread_db_wait): Do not use lwp_from_thread.
985 (thread_db_pid_to_str): Use the cached TID.
986 (thread_db_extra_thread_info): Check that private is set.
987 (same_ptid_callback): Delete.
988 (thread_db_get_thread_local_address): Do not use it or check
989 is_thread. Check that private is set. Assume that the thread
990 handle is already cached.
991 (init_thread_db_ops): Remove to_resume and to_kill.
992 * thread.c (add_thread_with_info): New.
993 (add_thread): Use it.
994 * linux-nat.c (find_thread_from_lwp): Delete.
995 (exit_lwp): Do not use it. Check print_thread_events. Print before
997 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
998 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
999 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
1000 printf_unfiltered for thread exits.
1001 * procfs.c (procfs_wait): Likewise.
1005 * symtab.c (rbreak_command): Quote symbol name before passing
1006 it to break_command.
1010 * eval.c (evaluate_subexp_for_address): Clarify error message.
1011 Use value_must_coerce_to_target.
1012 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
1013 * valops.c (value_assign): Call value_coerce_to_target when
1014 assigning to anything but internalvars. Leave GDB-side arrays
1015 as arrays when assigning to internalvars.
1016 (value_must_coerce_to_target, value_coerce_to_target): New.
1017 (value_coerce_array, value_addr): Call value_coerce_to_target.
1018 (value_array): Create the array in GDB's memory instead of
1020 * value.h (value_must_coerce_to_target, value_coerce_to_target):
1025 * top.c (quit_confirm): Warn that we will kill the program.
1029 * inflow.c (terminal_ours_1): Guard access to
1030 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
1036 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
1037 (dwarf2_read_address): Update prototype.
1039 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
1040 (signed_address_type): Likewise.
1041 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
1042 (execute_stack_op): Update calls to unsigned_address_type,
1043 signed_address_type and dwarf2_read_address. Fix implementation
1044 of DW_OP_deref_size.
1046 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
1047 (dwarf2_per_cu_addr_size): Likewise.
1048 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
1049 (struct dwarf2_loclist_baton): Likewise.
1051 * dwarf2loc.c (find_location_expression): Update calls to
1052 dwarf2_read_address. Use dwarf2_per_cu_objfile and
1053 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
1054 (locexpr_describe_location): Likewise.
1055 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
1056 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
1057 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
1058 to dwarf2_per_cu_addr_size (per_cu).
1059 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
1060 (loclist_read_variable): Likewise.
1061 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
1063 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
1064 instead of baton->objfile.
1065 (dwarf2_per_cu_obfile): New function.
1066 (dwarf2_per_cu_addr_size): Likewise.
1068 * dwarf2-frame.c (struct comp_unit): Move higher.
1069 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
1070 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
1071 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
1072 parameter by using fde->eh_frame_p. Use read_encoded_value
1073 to implement DW_CFA_set_loc.
1074 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
1075 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
1076 execute_stack_op and execute_cfa_program.
1077 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
1078 (size_of_encoded_value): Remove.
1079 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
1080 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
1081 (add_cie): Set cie->unit backlink.
1082 (decode_frame_entry_1): Set cie->addr_size. Update calls to
1084 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
1088 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
1089 gdbarch_bfd_arch_info.
1093 * aix-thread.c (pdc_read_regs): Minor reformatting.
1097 * thread.c (print_thread_info): Don't insist
1098 on having current thread if there are no
1103 * infcmd.c (attach_command_post_wait)
1104 (attach_command_continuation): New.
1105 (attach_command): Support background async execution, and async
1106 execution in synchronous mode.
1110 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
1111 * symmisc.c (dump_symtab_1): Likewise.
1112 * wrapper.c (gdb_value_struct_elt): Likewise.
1116 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
1120 * linux-nat.c (linux_nat_filter_event): New, refactored from
1122 (linux_nat_wait): Call linux_nat_filter_event.
1126 * top.c (execute_command): Fix uninitialized variable error.
1130 * Makefile.in (amd64nbsd-nat.o): New dependency.
1131 * amd64nbsd-nat.c: Include "nbsd-nat.h".
1132 (_initialize_amd64nbsd_nat): Update target vector to use
1133 nbsd_pid_to_exec_file.
1134 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
1138 Remove ignoring leading exec events code.
1139 * fork-child.c (startup_inferior): Do not set
1140 inferior_ignoring_leading_exec_events.
1141 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
1142 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
1143 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
1144 (handle_inferior_event): Remove code for ignoring leading exec
1146 * target.c (update_current_target): Do not inherit, or default,
1147 to_reported_exec_events_per_exec_call.
1148 (debug_to_reported_exec_events_per_exec_call): Remove.
1149 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
1150 * target.h (target_reported_exec_events_per_exec_call): Remove.
1151 (struct target): Remove the to_reported_exec_events_per_exec_call
1156 Implement -thread-info.
1157 * gdbthread.h (print_thread_info): Declare.
1159 * thread.c (print_thread_info): New, extracted
1160 from info_threads_command and adjusted to
1161 work for CLI and MI.
1162 (info_threads_command): Use print_thread_info.
1163 * Makefile.in: Update dependencies.
1165 * mi/mi-cmds.c (mi_cmds): Specify a handler
1167 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
1168 * mi/mi-main.c (mi_cmd_thread_info): New.
1169 (mi_cmd_list_features): Include 'thread-info'.
1173 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
1174 to decide whether to match instruction patterns using "sw" and "sd".
1178 * infcmd.c (jump_command): Postpone disabling stdin until after
1183 * inflow.c (gdb_getpgrp): New.
1184 (gdb_has_a_terminal): Use get_getpgrp.
1185 (terminal_ours_1): If attach_flag is set, don't refetch
1186 inferior_process_group.
1190 * features/library-list.dtd: Allow "section" elements as children
1191 of "library". Add "section" element and describe its attributes.
1193 * solib-target.c (struct lm_info): Add section_bases member.
1194 (library_list_start_segment): Error out if seen a section element.
1195 (library_list_start_section): New.
1196 (library_list_end_library): New.
1197 (solib_target_free_library_list): Free section_bases.
1198 (section_attributes): New.
1199 (library_children): Make "segment" optional. Add "section" child.
1200 (library_list_children): Register library_list_end_library.
1201 (solib_target_relocate_section_addresses): Handle section bases.
1203 * NEWS: Mention new qXfer:libraries:read section offsets support.
1207 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
1208 (make_exec_error_cleanup): Remove declarations.
1209 * utils.c (exec_error_cleanup_chain): Remove.
1210 (do_exec_error_cleanups, discard_exec_error_cleanups)
1211 (make_exec_error_cleanup): Remove.
1212 * event-loop.c (start_event_loop): Adjust call to
1214 * event-top.c (async_enable_stdin): Remove the paramater dummy.
1215 (async_disable_stdin): Don't register async_enable_stdin via
1217 * inf-loop.c (inferior_event_handler): Don't
1218 call do_exec_error_cleanups. Call async_enable_stdin instead.
1219 * event-loop.c (start_event_loop): Adjust call to
1221 * tui/tui-interp.c (tui_command_loop): Adjust call to
1227 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
1228 * breakpoint.c (bpstat_do_actions): In async mode,
1229 don't jump to top expecting stop_bpstat to be already
1231 * event-loop.c (start_event_loop): Call async_enable_stdin
1233 * event-top.c (async_enable_stdin): Do nothing if sync_execution
1235 (command_handler): Do not setup continuation here.
1236 (command_line_handler_continuation): Move to...
1237 * top.c (command_line_handler_continuation): ... here.
1238 (execute_command): In async mode, register continuation.
1239 Don't check frame's language in running in async mode.
1240 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
1241 * inf-loop.c (complete_execution): Inline into...
1242 (inferior_event_handler): ... here. Clear target_executing before
1243 doing any cleanups. Don't try to show prompt if the target was
1245 * infcmd.c (signal_command): Add support for async mode.
1246 (finish_command): Only add continuation if the target was
1247 successfully resumed.
1248 * remote.c (init_async_opts): Register to_get_thread_local_address
1250 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
1251 with sync_execution.
1252 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
1257 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
1258 * exec.c (exec_bfd_mtime): Define.
1259 (exec_close): Clear it.
1260 (exec_file_attach): Set it.
1261 * gdbcore.h (exec_bfd_mtime): Declare.
1262 * source.c (find_source_lines): Do not use bfd_get_mtime.
1266 * top.c (simplified_command_loop): Remove.
1270 Remove unused remote.c hooks.
1271 * remote.c (deprecated_target_resume_hook)
1272 (deprecated_target_wait_loop_hook): Remove.
1273 (remote_resume): Do not call deprecated_target_resume_hook.
1274 (remote_wait): Do not call deprecated_target_wait_loop_hook.
1275 (remote_async_wait): Likewise.
1279 Implement MI notification for new threads.
1280 * doc/observer.texi (new_thread): Document.
1281 * observer.sh: Forward declare struct thread_info.
1282 * thread.c (add_thread): Notify observer.
1284 * interps.h (interp_init_ftype): New parameter
1286 (interp_set): Likewise.
1287 (top_level_interpreter_data): Declare.
1288 * interps.c (interp_set): New parameter top_level.
1289 Pass it to interpreter's init function. Remember
1290 top level interpreter.
1291 (interpreter_exec_cmd): Adjust.
1292 (top_level_interpreter_data): New.
1293 * main.c (captured_main): Pass 1 for top_level
1294 parameter of interp_set.
1295 * cli/cli-interp.c (cli_interpreter_init): New
1296 parameter top_level.
1297 * tui/tui-interp.c (tui_init): New parameter top_level.
1299 * mi/mi-interp.c (mi_new_thread): New.
1300 (mi_interpreter_init): If top level, register
1301 observer for new threads.
1303 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
1307 * top.c (execute_command): Disable break and stop
1308 commands in async mode.
1314 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1315 Call target_stop in the INF_QUIT_REQ case.
1316 * Makefile.in (inf-loop.o): Update.
1320 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1321 Call target_stop in the INF_QUIT_REQ case.
1322 * Makefile.in (inf-loop.o): Update.
1326 * top.c (execute_command): Enable break, info and interrupt
1327 commands in async mode.
1332 * breakpoint.h (breakpoint_restore_shadows): New
1334 * breakpoint.c (breakpoint_restore_shadows): New.
1335 (read_memory_nobpt): Delete.
1336 * gdbcore.h (read_memory_nobpt): Delete declaration.
1337 * target.c (memory_xfer_partial): Call
1338 breakpoint_restore_shadows.
1339 (restore_show_memory_breakpoints)
1340 (make_show_memory_beakpoints_cleanup): New.
1341 (show_memory_breakpoints): New.
1342 * target.h (make_show_memory_beakpoints_cleanup): Declare.
1343 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
1344 Make sure we see memory breakpoints when checking if
1345 breakpoint is still there.
1346 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
1347 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
1348 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
1349 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
1353 * thread.c (add_thread): Use printf_unfiltered to print.
1357 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
1358 that is true only on x86-solaris and x86_64-solaris.
1359 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
1360 with proc_get_LDT_entry.
1364 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
1365 * config.in, configure: Regenerate.
1366 * fork-child.c (fork_inferior): Call create_tty_session.
1367 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
1368 (create_tty_session): New function.
1369 * terminal.h: Declare create_tty_session.
1374 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
1375 * mipsread.c: Include elf/internal.h.
1376 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
1381 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
1382 to get at the current architecture and at the target specific vector.
1383 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
1384 remove define of I387_ST0_REGNUM.
1386 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
1388 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
1389 get at the current architecture
1390 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
1393 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
1394 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
1396 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
1397 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
1398 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
1400 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
1401 at the target specific vector.
1403 (i386_get_longjmp_target): Use get_frame_arch to get at the current
1404 architecture. Use gdbarch_tdep to get at the target specific vector.
1406 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
1407 update caller. Use gdbarch_tdep to get at the target specific vector.
1409 (i386_register_to_value: Use get_frame_arch to get at the current
1412 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
1415 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1416 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
1417 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
1418 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
1420 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
1423 (i387_convert_register_p, i387_register_to_value,
1424 i387_value_to_register): Update call for i386_fp_regnum_p.
1426 * i387-tdep.h: Remove comment.
1427 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
1428 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1429 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
1430 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
1431 I387_MXCSR_REGNUM): Add target specific vector as parameter.
1435 * Makefile.in (fork-child.o): Update.
1436 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
1437 argument. Gather all gdbserver features together.
1438 * fork-child.c (exec_wrapper): New variable.
1439 (fork_inferior): Use it.
1440 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
1441 (unset_exec_wrapper_command, _initialize_fork_child): New.
1445 * source.c (directory_command): Modify the determination of
1446 condition of terminal "from_tty".
1450 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
1454 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
1455 of the data passing to strtoulst function.
1456 (info_spu_signal_command): Likewise.
1460 * mi/mi-interp.c (mi_command_loop): Remove
1465 * remote.c (extended_remote_attach_1): Make local variable pid an int
1470 * solib-svr4.c (svr4_same_1): New function, originally extracted
1471 from svr4_same and expanded to handle the sparc64 case.
1472 (svr4_same): Move up and reimplement using svr4_same_1.
1473 (enable_break): Use svr4_same_1 to do shared library name comparisons.
1477 * MAINTAINERS: Move self to Paper trail.
1481 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
1482 * event-loop.c (call_async_signal_handler): New.
1483 * event-loop.h (call_async_signal_handler)
1484 (gdb_call_async_signal_handler): Declare.
1485 (mark_async_signal_handler): Add comments.
1486 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
1487 * mingw-hdep.c (sigint_event, sigint_handler): New.
1488 (gdb_select): Use them. Wait for the readline signal handler
1490 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
1491 * posix-hdep.c (gdb_call_async_signal_handler): New function.
1492 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
1494 (remote_fileio_ctrl_c_signal_handler): Use
1495 gdb_call_async_signal_handler.
1496 (initialize_remote_fileio): Initialize sigint_fileio_token.
1497 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
1498 not initialize tokens here.
1499 (handle_remote_sigint_twice): Likewise. Reinstall
1500 handle_remote_sigint.
1501 (async_remote_interrupt_twice): Just call interrupt_query.
1502 (cleanup_sigint_signal_handler): Do not delete tokens.
1503 (remote_interrupt, remote_interrupt_twice): Use
1504 gdb_call_async_signal_handler.
1505 (interrupt_query): Reinstall the default signal handler.
1506 (_initialize_remote): Initialize tokens here.
1510 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
1511 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
1512 Change the type of the lr register to code_ptr.
1513 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1514 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1515 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1516 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1517 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1518 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1519 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
1523 * MAINTAINERS: Update my email address.
1528 * configure.ac: Set tcl configdir to win under mingw.
1529 * configure: Regenerate.
1533 * breakpoint.c (fetch_watchpoint_value): New function.
1534 (update_watchpoint): Set and clear val_valid. Use
1535 fetch_watchpoint_value. Handle unreadable values on the
1536 value chain. Correct check for user-requested array watchpoints.
1537 (breakpoint_init_inferior): Clear val_valid.
1538 (watchpoint_value_print): New function.
1539 (print_it_typical): Use it. Do not free or clear old_val. Print
1540 watchpoints even if old_val == NULL.
1541 (watchpoint_check): Use fetch_watchpoint_value. Check for values
1542 becoming readable or unreadable.
1543 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
1544 (do_enable_watchpoint): Likewise.
1545 * breakpoint.h (struct breakpoint): Update comment for val. Add
1547 * NEWS: Mention watchpoints on inaccessible memory.
1551 * Makefile.in (i386-nat.o): Update.
1552 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
1553 i386_use_watchpoints.
1554 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
1555 i386_use_watchpoints.
1556 * i386-nat.c (i386_stopped_data_address): Take two arguments.
1557 (i386_stopped_by_watchpoint): Update call.
1558 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
1559 * config/i386/nm-i386.h: Conditionalize definitions on
1560 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
1561 (i386_use_watchpoints): Declare.
1562 (i386_stopped_data_address): Update.
1563 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1564 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1568 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
1569 * version.in: Bump version to 6.8.50.20080229-cvs.
1573 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
1578 * infcmd.c (notice_args_read): Print result of get_inferior_args.
1582 * infcmd.c (kill_if_already_running): Make static. Use
1583 target_require_runnable.
1584 * target.c (target_require_runnable): New.
1585 * target.h (target_require_runnable): Declare.
1589 * frame.c (reinit_frame_cache): Only annotate if frames were
1594 * regformats/reg-ppc.dat: Rename "ps" to "msr".
1595 * regformats/reg-ppc64.dat: Likewise.
1599 * features/Makefile (%.dat): Emit xmltarget statement.
1601 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
1602 Generate code to set gdbserver_xmltarget in init_registers_${name}.
1604 * regformats/arm-with-iwmmxt.dat: Regenerate.
1605 * regformats/mips64-linux.dat: Regenerate.
1606 * regformats/mips-linux.dat: Regenerate.
1607 * regformats/rs6000/powerpc-32.dat: Regenerate.
1608 * regformats/rs6000/powerpc-64.dat: Regenerate.
1609 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1611 * regformats/reg-arm.dat: Add xmlarch statement.
1612 * regformats/reg-i386.dat: Likewise.
1613 * regformats/reg-i386-linux.dat: Likewise.
1614 * regformats/reg-x86-64-linux.dat: Likewise.
1615 * regformats/reg-spu.dat: Likewise.
1619 * remote.c (remote_wait, remote_async_wait): Stop if we receive
1624 * utils.c (debug_timestamp): New.
1625 (vfprintf_unfiltered): Print timestamps if requested.
1626 (show_debug_timestamp): New.
1627 (initialize_utils): Register "set debug timestamp".
1628 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
1632 * breakpoint.c (skip_prologue_sal): New function.
1633 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
1634 computed from a line number.
1638 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
1639 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
1640 Set PC register type to "code_ptr".
1641 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1642 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1643 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1644 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1645 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1646 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1647 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
1652 * regformats/regdat.sh: Rename init_registers function in
1653 generated file to init_registers_${name}.
1655 * regformats/reg-crisv32.dat: Set "name" to crisv32.
1656 * regformats/reg-ppc64.dat: Set "name" to ppc64.
1657 * regformats/reg-s390x.dat: Set "name" to s390x.
1661 * regcache.c (registers_changed): Call reinit_frame_cache.
1665 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
1666 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
1667 and svr4_fetch_objfile_link_map.
1668 * Makefile.in (sh-linux-tdep.o): Update.
1672 * amd64-tdep.c (amd64_classify): Add support for decimal float
1674 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
1675 use the struct return convention.
1679 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
1680 to old format. Discard breakpoint address if shared library is
1682 (breakpoint_1): Adjust formatting of table header accordingly.
1686 * remote.c (remote_get_threadlist): If the response
1687 is empty, don't try to parse it.
1691 Unbreak 'target async'.
1692 * serial.c (serial_async): Set the
1693 handler function before enabling async
1698 * solib-svr4.c (enable_break): Convert r_brk to a code address.
1702 * remote.c (extended_remote_attach_1): Set attach_flag.
1703 (extended_remote_create_inferior_1): Clear attach_flag.
1707 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
1709 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1710 * solib-svr4.c (solib_svr4_r_brk): New.
1711 (open_symbol_file_object, svr4_current_sos): Always check the
1713 (svr4_fetch_objfile_link_map): Do not set debug_base.
1714 (enable_break): Use r_brk if it is set.
1715 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
1716 (svr4_lp64_fetch_link_map_offsets): Likewise.
1717 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
1722 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
1723 trad_frame_saved_reg.
1724 (trad-frame.h): New include.
1726 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
1727 instead of frame_obstack_zalloc.
1728 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
1730 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
1734 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
1735 from disassemble_info instead of gdbarch_byte_order.
1737 * mips-tdep.c (gdb_print_insn_mips): Likewise.
1738 * arm-tdep.c (gdb_print_insn_arm): Likewise.
1742 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
1743 gdbarch as parameter.
1745 * gdbarch.{c,h}: Regenerate.
1747 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1749 * mem-break.c (default_memory_insert_breakpoint)
1750 (default_memory_remove_breakpoint): Likewise.
1751 * target.h (default_memory_remove_breakpoint)
1752 (default_memory_insert_breakpoint): Likewise.
1754 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1755 parameter. Replace current_gdbarch by gdbarch.
1756 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1757 (m32r_memory_remove_breakpoint): Likewise.
1761 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
1765 * NEWS: Add entry describing Add support improvements.
1769 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
1774 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
1775 register_offset_hack anymore.
1777 * regcache.{c,h} (register_offset_hack): Remove.
1781 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
1783 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
1784 current_gdbarch by gdbarch.
1785 (hppa64_hpux_find_global_pointer): Likewise.
1786 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
1787 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
1788 find_global_pointer.
1790 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
1792 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1794 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
1795 of gdbarch_num_regs.
1797 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
1798 replace current_gdbarch by gdbarch.
1799 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
1803 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
1804 and replace current_gdbarch by gdbarch.
1806 (store_register): Update call for exec_one_dummy_insn.
1807 (fetch_register, store_register): Update call of regmap.
1809 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
1810 parameter and replace current_gdbarch by gdbarch.
1812 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
1813 the current architecture. Update call for getregs_supplies and
1815 (ppcnbsd_fetch_inferior_registers): Likewise.
1817 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
1818 replace current_gdbarch by gdbarch.
1819 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
1820 get_regcache_arch to get at the current architecture. Update call for
1825 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
1830 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
1834 * NEWS: Mention pending breakpints in MI.
1838 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
1842 Add script to build and test GDB using enable-targets=all.
1844 * gdb_buildall.sh: New file.
1848 * NEWS (New native configurations): Xtensa GNU/Linux.
1849 (New targets): Xtensa GNU/Linux.
1850 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
1852 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
1853 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
1854 * configure.tgt (xtensa*-*-linux*): New entry.
1855 * xtensa-config.c (xtensa_tdep): New variable.
1856 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
1857 (rmap): Change format based on new macro XTREG.
1858 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
1859 * xtensa-linux-nat.c: New.
1860 * xtensa-linux-tdep.c: New.
1861 * xtensa-xtregs.c: New.
1862 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
1863 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
1864 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
1865 (xtensa_register_t): New field coprocessor.
1866 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
1867 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
1868 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
1869 Update to handle privileged registers.
1870 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
1871 (xtensa_push_dummy_call): Set windowstart register correctly.
1872 (call0_analyze_prologue): Initialize xtensa_default_isa.
1873 (xtensa_derive_tdep): New.
1874 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
1875 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
1876 Call xtensa_derive_tdep().
1877 * config/xtensa/linux.mh: New.
1878 * regformats/reg-xtensa.dat: New.
1882 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
1883 (filenames.h): New include.
1884 * Makefile.in (corelow.o): Add dependency for filenames.h.
1888 * source.c (find_and_open_source): Always rewrite absolute filenames.
1892 * breakpoint.c: #include "hashtab.h".
1893 (ambiguous_names_p): New fn.
1894 (update_breakpoint_locations): When restoring bp enable status, don't
1895 compare function names if any functions have same name.
1896 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
1900 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
1901 instead of just a VEC*. Update use of SV.
1902 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
1906 * NEWS: Put all new commands since gdb-6.7 together.
1910 * ada-lang.c: #include "vec.h".
1911 (struct string_vector, new_string_vector, string_vector_append):
1913 (char_ptr): New typedef.
1914 (DEF_VEC_P (char_ptr)): New VEC type.
1915 (symbol_completion_add): Update profile to take the new VEC type
1916 instead of the old string_vector structure. Update code accordingly.
1917 (ada_make_symbol_completion_list): Use the new VEC type instead of
1918 the old string_vector structure, and update the code accordingly.
1919 * Makefile.in (ada-lang.o): Add dependency on vec.h.
1923 * p-exp.y: Set current_type in missing places.
1924 (leftdiv_is_integer): New static variable.
1925 Typecast right operand of BINOP_DIV to long_double if both operands
1930 * remote-mips.c (set_breakpoint): Rename to...
1931 (mips_set_breakpoint): ... this.
1932 (clear_breakpoint): Rename to...
1933 (mips_clear_breakpoint): ... this.
1934 (common_breakpoint): Rename to...
1935 (mips_common_breakpoint): ... this.
1936 (check_lsi_error): Rename to...
1937 (mips_check_lsi_error): ... this.
1941 * language.h (struct language_defn): Add new field
1942 la_make_symbol_completion_list.
1943 * symtab.c (default_make_symbol_completion_list): Renames
1944 make_symbol_completion_list.
1945 (make_symbol_completion_list): New function.
1946 * symtab.h (default_make_symbol_completion_list): Add declaration.
1947 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
1948 (auto_language, local_language): Likewise.
1949 * objc-lang.c (objc_language_defn): Likewise.
1950 * scm-lang.c (scm_language_defn): Likewise.
1951 * m2-lang.c (m2_language_defn): Likewise.
1952 * f-lang.c (f_language_defn): Likewise.
1953 * jv-lang.c (java_language_defn): Likewise.
1954 * p-lang.c (pascal_language_defn): Likewise.
1955 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
1956 (minimal_language_defn): Likewise.
1957 * ada-lang.c (struct string_vector): New structure.
1958 (new_string_vector, string_vector_append, ada_unqualified_name)
1959 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
1960 (ada_make_symbol_completion_list): New functions.
1961 (ada_language_defn): Set la_make_symbol_completion_list.
1962 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
1963 this function is static.
1967 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
1968 to account for call site optimizations.
1972 * tracepoint.c (read_actions): Handle end-of-text indicator
1973 in action list properly. (Committed by Jim Blandy)
1977 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
1978 pseudoregister, not an internal error.
1979 Reported by: Andrzej Zaborowski
1983 * varobj.c (c_value_of_variable): Use xstrdup.
1987 Update stored rendition of varobj value when format changes.
1988 * varobj.c (varobj_set_display_format): Recomputed
1990 (c_value_of_variable): Return print_value.
1994 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
1995 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
1996 * valops.c (value_one): New function.
1997 * value.h (value_one): Declare.
1999 Fix argument promotion for binary arithmetic ops for C.
2000 * valarith.c (unop_result_type): New fn.
2001 (binop_result_type): New fn.
2002 (value_binop): Move result type computation to binop_result_type.
2003 (value_pos, value_neg, value_complement): Move result type
2004 computation to unop_result_type.
2007 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2008 Return basetype, fieldno if found. All callers updated.
2009 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
2011 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2012 * symfile.h (fill_in_vptr_fieldno): Delete.
2016 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
2018 * typeprint.c (*): Whitespace cleanup.
2024 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
2025 don't fit into registerson the stack the way GCC does.
2029 * symtab.c (symbol_set_names): Do not add an entry in the demangling
2030 hash table for Ada symbols. Just store the linkage name as is,
2031 and leave the demangled_name as NULL.
2035 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
2036 in the global scope.
2037 (new_symbol): Likewise.
2041 * breakpoint.c (break_command_1): Return void.
2042 (break_command_really): Return void. Rethrow
2043 exceptions instead of returning.
2044 (gdb_breakpoint): Remove the error_message parameter.
2045 Return void. Rename to set_breakpoint.
2046 * gdb.h (gdb_breakpoint): Rename and move to...
2047 * breakpoint.h (set_breakpoint): ...here.
2048 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
2049 event hooks even if exception is thrown. Adjust to
2050 gdb_breakpoint interface changes.
2055 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
2056 float in both first and second word in the doubleword, to support
2061 Properly rethrow exception. This fixes errors
2062 about non-existent functions for -break-insert.
2063 * breakpoint.c (break_command_really): Use throw_exception
2064 for rethrowing. If rethrowing, don't print the exception.
2068 * NEWS: Mention Decimal Floating Point support.
2072 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
2073 value type to builtin_type_void_func_ptr.
2077 * s390-tdep.c (is_float_singleton, is_float_like,
2078 alignment_of, s390_return_value): Make checks for
2079 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
2084 * infcmd.c (default_print_registers_info): Also print hex
2085 raw contents for TYPE_CODE_DECFLOAT registers.
2086 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
2087 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
2088 (rs6000_register_name): Add support for DFP pseudo-registers.
2089 (rs6000_pseudo_register_type): Likewise.
2090 rs6000_pseudo_register_reggroup_p): Likewise.
2091 (ppc_pseudo_register_read): New function.
2092 (ppc_pseudo_register_write): Likewise.
2093 (rs6000_pseudo_register_read): Likewise.
2094 (rs6000_pseudo_register_write): Likewise.
2095 (e500_pseudo_register_read): Move checks to
2096 rs6000_pseudo_register_read.
2097 (e500_pseudo_register_write): Move checks to
2098 rs6000_pseudo_register_write.
2099 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
2100 rs6000_pseudo_register_read and rs6000_pseudo_register_write
2101 in gdbarch if SPE or DFP is available. Adjust gdbarch's
2102 num_pseudo_regs to account for DFP pseudo regs.
2106 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
2107 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
2108 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
2109 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
2110 e500_pseudo_register_read, e500_pseudo_register_write): Use
2111 IS_SPE_PSEUDOREG macro.
2112 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
2113 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
2114 Remove initialization of tdep->ppc_ev31_regnum.
2118 * printcmd.c (print_formatted): Handle references as for unformatted
2123 * eval.c (evaluate_subexp_standard): Add handling of user
2124 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
2128 * eval.c (evaluate_subexp_standard): Support
2129 BINOP_INTDIV opcode.
2133 * valarith.c (value_binop): Add floating-point BINOP_MIN and
2135 For BINOP_EXP, use length and signedness of left operand only for
2136 result, as for shifts.
2137 For integral operands to BINOP_EXP, use new integer_pow and
2138 uinteger_pow functions so as to get full range of results.
2139 (integer_pow): New function.
2140 (uinteger_pow): New function.
2144 Use vector for varobj_list_children interface.
2145 * gdb/varobj.c (varobj_list_children): Return vector
2147 * gdb/varobj.h (varobj_list_children): Adjust
2149 (varobj_p): Declare. Declare vector thereof.
2150 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
2151 for varobj_list_children change.
2152 * Makefile.in (varobj_h): Update dependencies.
2156 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
2157 TYPE_CODE_DECFLOAT arguments.
2158 (ppc64_sysv_abi_push_dummy_call) Likewise.
2159 (get_decimal_float_return_value): New function.
2160 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
2161 values by calling get_decimal_float_return_value.
2162 (ppc64_sysv_abi_return_value): Likewise.
2166 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
2167 for preprocessor macro information. Formatting changes.
2171 * remote.c (struct remote_state): Add cached_wait_status.
2172 (remote_exec_file): New variable.
2173 (PACKET_vAttach, PACKET_vRun): New constants.
2174 (extended_remote_restart): Do not query for status.
2175 (struct start_remote_args): New.
2176 (remote_start_remote): Take it as a second argument. Check
2177 whether the target is running. Issue an error for non-running
2178 non-extended targets. Cache the wait status. Set inferior_ptid
2180 (remote_open_1): Prompt to disconnect non-running targets. Make
2181 sure the target is marked running. Do not set inferior_ptid here.
2182 Update call to remote_start_remote. Do not call remote_check_symbols
2183 if the target is not running.
2184 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
2185 argument. Handle a non-running target.
2186 (remote_detach): Use it.
2187 (extended_remote_detach): New.
2188 (remote_disconnect): Fix typo. Use remoute_mourn_1.
2189 (extended_remote_attach_1, extended_remote_attach)
2190 (extended_async_remote_attach): New.
2191 (remote_vcont_resume): Remove unused variable.
2192 (remote_wait, remote_async_wait): Use any cached wait status.
2193 (putpkt_binary, getpkt): Clear any cached wait status.
2194 (extended_remoute_mourn_1): New.
2195 (extended_remote_mourn): Use it.
2196 (extended_async_remote_mourn, extended_remote_run): New.
2197 (extended_remote_create_inferior_1): New.
2198 (extended_remote_create_inferior): Use it.
2199 (extended_remote_async_create_inferior): Likewise.
2200 (remote_xfer_partial): Skip for non-executing targets.
2201 (init_extended_remote_ops): Set to_detach and to_attach.
2202 (init_extended_async_remote_ops): Likewise. Use
2203 extended_async_remote_mourn.
2204 (_initialize_remote): Register vAttach, vRun, and
2205 set remote exec-file.
2206 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
2210 * Makefile.in (symfile.o): Update.
2211 * NEWS: Mention exec tracing support.
2212 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
2214 * infcmd.c (kill_if_already_running, detach_command)
2215 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
2216 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
2217 (follow_exec): Do not check may_follow_exec. Do not mourn and push
2218 targets. Apply the sysroot path to the loaded executable. Use
2219 no_shared_libraries.
2220 * linux-nat.c (linux_child_follow_fork): Print fork following
2221 messages if verbose.
2222 (kill_wait_callback): Kill again before waiting a second time.
2223 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
2224 no_shared_libraries.
2228 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
2232 * nto-tdep.h: Remove #include "defs.h".
2233 * nto-tdep.c: Add #include "defs.h".
2234 * Makefile.in (nto_tdep_h): Update dependencies.
2235 (nto-tdep.o): Likewise.
2239 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
2241 (proceed, start_remote): Update call to wait_for_inferior.
2242 * inferior.h (wait_for_inferior): Update declaration.
2243 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
2244 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
2245 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
2246 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
2250 * varobj (adjust_value_for_child_access): Added checking for
2251 returned value from gdb_value_ind.
2252 (c_describe_child): Likewise.
2253 (cplus_describe_child): Fixed a typo.
2257 * MAINTAINERS: Update my info.
2261 Use multiple locations for hardware watchpoints.
2262 This eliminates the need to traverse value chain, doing
2263 various checks, in three different places.
2265 * breakpoint.h (struct bp_location): New fields
2266 lengths and watchpoint_type.
2267 (struct breakpoint): Remove the val_chain field.
2268 * breakpoint.c (is_hardware_watchpoint): New.
2269 (free_valchain): Remove.
2270 (update_watchpoint): New.
2271 (insert_bp_location): For hardware watchpoint, just
2273 (insert_breakpoints): Call update_watchpoint_locations
2274 on all watchpoints. If we have failed to insert
2275 any location of a hardware watchpoint, remove all inserted
2277 (remove_breakpoint): For hardware watchpoints, directly
2279 (watchpoints_triggered): Iterate over locations.
2280 (bpstat_stop_status): Use only first location of
2281 a resource watchpoint.
2282 (delete_breakpoint): Don't call free_valchain.
2283 (print_one_breakpoint): Don't print all
2284 locations for watchpoints.
2285 (breakpoint_re_set_one): Use update_watchpoint for
2290 Don't reset watchpoint block on solib load.
2292 * breakpoint.c (insert_bp_location): For watchpoints,
2293 recompute condition.
2294 (breakpoint_re_set_one): Instead of recomputing value
2295 and condition for watchpoints, just reset value and
2296 let insert_breakpoints/insert_bp_location recompute it.
2297 Don't do anything about disabled watchpoint.
2301 * valarith.c (value_binop): Handle unsigned integer
2306 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
2307 instruction pattern that appears frequently in position
2308 independent code. Fix bug in code which looks for "fmov" and
2309 backtracks if no "fmov" is found.
2313 * dbxread.c (read_dbx_symtab): Fix indentation.
2314 Reformat comments to 80 columns.
2315 Move local var def closer to only use.
2319 * fork-child.c (SHELL_FILE): Remove #ifndef.
2320 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
2324 * i386-tdep.c (i386_skip_noop): New function.
2325 (i386_analyze_prologue): Call i386_skip_noop function.
2329 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
2330 * win32-nat.c (win32_xfer_partial): Ditto.
2331 * target.c (default_xfer_partial): Minor whitespace adjustment.
2335 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
2336 strip bit 1 even if pc doesn't point to thumb code.
2340 * remote.c (remote_wait): Handle SIGINT between packets.
2341 (remote_async_wait): Likewise.
2346 * thread.c (add_thread_silent): Renamed
2348 (print_thread_events): New variable definition.
2349 (show_print_thread_events): New function.
2350 (_initialize_thread): Add "set print thread-events" and
2351 "show print thread-events" commands.
2352 (add_thread): Announce new thread.
2353 * gdbthread.h (add_thread_silent): Declare.
2354 (print_thread_events): New variable declaration.
2355 * inf-ttrace.c (inf_ttrace_wait): Don't
2356 inform about new thread, as add_thread is always
2357 called too, and will take care of that.
2358 * infrun.c (handle_inferior_event): Likewise.
2359 * procfs.c (procfs_wait): Likewise.
2360 * remote.c (remote_currthread): Likewise.
2361 * sol-thread.c (sol_thread_wait): Likewise.
2362 * win32-nat.c (get_win32_debug_event): Likewise.
2363 * linux-thread-db.c (attach_thread): Likewise.
2364 Remove the verbose parameter.
2365 (check_event): Make detach_thread be verbose
2366 only if print_thread_events is set.
2367 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
2368 about new thread. This is called only from
2369 linux-thread-db.c:attach_thread, which will take care.
2370 Remove the verbose parameter.
2371 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
2375 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
2379 * breakpoint.c (break_command_really): New parameter
2381 (break_command_1): Pass 0 as
2382 ignore_count to break_command_really.
2383 (gdb_breakpoint): Pass ignore_count to
2384 break_command_really.
2388 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
2389 sigcontext struct via pointer.
2390 (struct sigframe comment): Update to show new field `psc'.
2394 * infrun.c (handle_inferior_event): If
2395 we failed to remove breakpoints, error,
2396 don't try to increment PC by hand.
2400 Add NetBSD/hppa target and host support.
2402 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
2403 (hppabsd_gregset): Move to ...
2404 (hppabsd_regset_from_core_section): Rename
2405 hppaobsd_regset_from_core_section and move to ...
2406 (hppabsd_find_global_pointer): Update comment.
2407 (hppabsd_init_abi): Make global. Do not register
2408 hppabsd_regset_from_core_section.
2409 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
2411 (_initialize_hppabsd_tdep): Move to ...
2412 * hppaobsd-tdep.c: ... here. New file.
2413 * hppnbsd-tdep.c: New file.
2414 * hppnbsd-nat.c: New file.
2415 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
2416 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2417 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
2418 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
2419 * configure.host (hppa*-*-netbsd*): New entry.
2420 * configure.tgt (hppa*-*-netbsd*): New entry.
2421 (hppa*-*-openbsd*): Update.
2422 * NEWS (New native configuration): Mention NetBSD/hppa.
2423 (New targets): Mention NetBSD/hppa.
2427 * gdbarch.sh (function_list): Add new property bits_big_endian to
2429 * gdbarch.{c,h}: Regenerate.
2431 * value.c (struct value): Replace BITS_BIG_ENDIAN by
2432 gdbarch_bits_big_endian (comment).
2433 (unpack_field_as_long, modify_field): Likewise.
2434 * value.h: Likewise (comment).
2435 * valops.c (value_slice): Likewise.
2436 * valarith.c (value_subscript, value_bit_index): Likewise.
2437 * gdbtypes.h (field): Likewise (comment).
2438 * eval.c (evaluate_subexp_standard): Likewise.
2439 * dwarf2read.c (dwarf2_add_field): Likewise.
2440 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
2441 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
2443 * defs.h (BITS_BIG_ENDIAN): Remove.
2447 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
2449 * m2-exp.y (yylex): Likewise.
2450 * objc-exp.y (yylex): Likewise.
2452 * defs.h (DEPRECATED_STREQN): Remove.
2456 * MAINTAINERS: Update my email address.
2460 * README: Mention gdbserver/README.
2464 * valarith.c (value_binop): Handle BINOP_INTDIV
2465 for unsigned and signed integers.
2469 * s390-tdep.c (s390_gdbarch_init): Set default long double
2470 type to 128-bit IEEE quad.
2474 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
2478 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
2480 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
2481 * value.c: All callers changed.
2485 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
2486 DEPRECATED_STREQ by its expression.
2487 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
2488 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
2489 (scan_xcoff_symtab): Likewise.
2490 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
2491 * f-lang.c (find_common_for_function): Likewise.
2492 * objc-exp.y (parse_number): Likewise.
2494 * defs.h (DEPRECATED_STREQ): Remove.
2498 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
2499 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
2500 get_frame_arch to get at the current_architecture. Update AM33_MODE
2502 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
2503 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
2505 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
2509 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
2511 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
2513 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
2514 current_gdbarch by gdbarch. Update caller.
2516 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
2517 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
2518 the current architecture. Update calls of
2519 amd64_native_gregset_supplies_p.
2520 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
2521 (amd64bsd_store_inferior_registers): Likewise.
2525 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
2526 Replace current_gdbarch by gdbarch. Update caller.
2530 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
2531 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
2532 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
2533 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
2534 (stabsect_build_psymtabs): Fix indentation.
2538 * corelow.c (core_xfer_partial): Comment, cut/paste error.
2542 * win32-nat.c (win32_create_inferior): Restore code calling
2543 CloseHandle on ProcessInformation structure.
2547 * configure.ac: Check for void * as 3 argument of ptrace.
2548 * configure: regenerate.
2552 * alpha-tdep.c (alpha_heuristic_proc_start)
2553 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
2554 current_gdbarch by gdbarch.
2556 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
2557 current architecture by frame_info. Update alpha_heuristic_proc_start
2560 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
2561 get_frame_arch to get at the current architecture by frame_info. Update
2562 alpha_sigtramp_register_address call.
2564 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
2565 current_gdbarch by gdbarch. Update caller.
2566 (convert_to_extended, convert_from_extended): Add endianess parameter
2567 for comparison. Update caller.
2568 (arm_extract_return_value, arm_store_return_value): Use
2569 get_regcache_arch to get at the current architecture.
2571 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
2572 current_gdbarch by gdbarch. Update caller.
2573 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
2574 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
2576 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
2577 gdbarch as parameter. Update caller.
2578 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
2579 current_gdbarch by gdbarch. Update caller.
2581 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
2582 update caller. Replace current_gdbarch by gdbarch.
2584 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
2585 the current architecture. Replace current_gdbarch by gdbarch.
2586 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2587 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
2588 expression. Add gdbarch as parameter and replace current_gdbarch with
2590 (M6811_TDEP): Remove.
2591 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
2593 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
2594 current_gdbarch by gdbarch. Update caller.
2596 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
2598 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
2601 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
2602 caller. Relace current_gdbarch by gdbarch.
2603 (altivec_register_p, spe_register_p): Likewise.
2604 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
2606 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
2607 altivec_register_p and spe_register_p.
2609 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
2610 caller. Replace current_gdbarch by gdbarch.
2611 (score_analyze_prologue): use get_frame_arch to get at the current
2614 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
2615 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
2616 current_gdbarch by gdbarch. Update caller.
2617 (sparc_frame_cache): Use get_frame_arch to get at the current
2619 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
2620 sparc_analyze_prologue.
2622 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
2627 * exec.c: #include "arch-utils.h"
2628 (print_section_info): Use gdbarch_from_bfd to get at the
2629 current architecture. Replace current_gdbarch. Fix indention. Replace
2630 deprecated_print_address_numeric by paddress.
2631 * Makefile.in (exec.o) Add dependency to arch-utils.h.
2633 * valprint.c (val_print_string): Replace
2634 deprecated_print_address_numeric.
2635 * tracepoint.c (trace_mention, scope_info): Likewise.
2636 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
2637 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
2638 (maintenance_check_symtabs): Likewise.
2639 * symfile.c (list_overlays_command): Likewise.
2640 * stack.c (frame_info, print_block_frame_labels): Likewise.
2641 * printcmd.c (print_address, print_address_demangle)
2642 (address_info): Likewise.
2643 * corefile.c (memory_error): Likewise.
2644 * infcmd.c (jump_command): Likewise.
2645 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
2646 (mention, delete_breakpoint): Likewise.
2647 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
2648 * dwarf2read.c (dump_die): Likewise.
2649 * ada-valprint.c (ada_val_print_1): Likewise.
2650 * f-valprint.c (f_val_print): Likewise.
2651 * linux-fork.c (info_forks_command): Likewise.
2652 * m32r-com.c (m32r_load_section, m32r_load)
2653 (m32r_upload_command): Likewise.
2655 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
2659 * gdbarch.sh (skip_prologue): Add gdbarch
2661 * gdbarch.{c,h}: Regenerate.
2663 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
2664 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2665 * avr-tdep.c (avr_skip_prologue): Likewise.
2666 * cris-tdep.c (cris_skip_prologue): Likewise.
2667 * frv-tdep.c (frv_skip_prologue): Likewise.
2668 * h8300-tdep.c (h8300_skip_prologue): Likewise.
2669 * hppa-tdep.c (hppa_skip_prologue): Likewise.
2670 * i386-tdep.c (i386_skip_prologue): Likewise.
2671 * ia64-tdep.c (ia64_skip_prologue): Likewise.
2672 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
2673 * m32r-tdep.c (m32r_skip_prologue): Likewise.
2674 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
2675 * m68k-tdep.c (m68k_skip_prologue): Likewise.
2676 * m88k-tdep.c (m88k_skip_prologue): Likewise.
2677 * mep-tdep.c (mep_skip_prologue): Likewise.
2678 * mips-tdep.c (mips_skip_prologue): Likewise.
2679 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
2680 * mt-tdep.c (mt_skip_prologue): Likewise.
2681 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
2682 * score-tdep.c (score_skip_prologue): Likewise.
2683 * sh64-tdep.c (sh64_skip_prologue): Likewise.
2684 * sh-tdep.c (sh_skip_prologue): Likewise.
2685 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
2686 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
2687 * spu-tdep.c (spu_skip_prologue): Likewise.
2688 * v850-tdep.c (v850_skip_prologue): Likewise.
2689 * vax-tdep.c (vax_skip_prologue): Likewise.
2690 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2691 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
2693 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
2694 current_gdbarch by gdbarch.
2695 * m32c-tdep.c (m32c_skip_prologue): Likewise.
2696 * s390-tdep.c (s390_skip_prologue): Likewise.
2700 * defs.h (struct continuation_arg): Fix typo in comment.
2701 * target.c (target_translate_tls_address): Fix comment spelling error.
2705 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
2706 (DOUBLEST_SCAN_FORMAT): Likewise.
2707 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
2708 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
2709 * c-exp.y (parse_number): Likewise.
2710 * jv-exp.y (parse_number): Likewise.
2711 * objc-exp.y (parse_number): Likewise.
2712 * p-exp.y (parse_number): Likewise.
2716 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
2717 (check_typedef): Likewise.
2721 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
2722 seen_double_big_d, treat the new H, D, and DD modifiers as length
2727 * dwarf2read.c (read_enumeration_type): Add comment.
2731 * config.in: Regenerate.
2735 * ada-lang.c (ada_convert_actual): Renames convert_actual.
2737 (ada_convert_actuals): Delete.
2738 * ada-lang.h (ada_convert_actual): Add declaration.
2739 (ada_convert_actuals): Remove declaration.
2740 * infcall.c: #include "ada-lang.h".
2741 (value_arg_coerce): Add new parameter sp. Update function
2742 documetnation. Add handling of Ada function call parameters.
2743 * Makefile.in (infcall.o): Update dependencies.
2747 * ada-lang.c (ensure_lval): Fix value lval kind.
2748 (convert_actual): Add handling for arguments passed by reference.
2752 * dbxread.c (read_dbx_symtab): Fix indentation.
2756 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
2757 (valarith.o): Depend on dfp.h.
2758 (valops.o): Likewise.
2759 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
2760 (set_decnumber_context): New function.
2761 (decimal_check_errors): Likewise.
2762 (decimal_from_number): Likewise.
2763 (decimal_to_number): Likewise.
2764 (decimal_from_string): Use set_decnumber_context and
2765 decimal_check_errors.
2766 (decimal_from_integral): New function.
2767 (decimal_from_floating): Likewise.
2768 (decimal_to_double): Likewise.
2769 (promote_decimal): Likewise.
2770 (decimal_binop): Likewise.
2771 (decimal_is_zero): Likewise.
2772 (decimal_compare): Likewise.
2773 (decimal_convert): Likewise.
2774 * dfp.h (decimal_from_integral): New prototype.
2775 (decimal_from_floating): Likewise.
2776 (decimal_to_double): Likewise.
2777 (decimal_binop): Likewise.
2778 (decimal_is_zero): Likewise.
2779 (decimal_compare): Likewise.
2780 (decimal_convert): Likewise.
2781 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
2782 call to value_from_decfloat.
2783 * valarith.c: Include dfp.h.
2784 (value_args_as_decimal): New function.
2785 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
2786 (value_logical_not): Likewise.
2787 (value_equal): Likewise.
2788 (value_less): Likewise.
2789 (value_pos): Likewise.
2790 (value_neg): Formatting fix.
2791 * valops.c: Include dfp.h.
2792 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
2793 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
2794 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
2795 (value_from_decfloat): Remove expect_type argument.
2796 * value.h (value_from_decfloat): Update prototype.
2800 Ignore change in name of dynamic linker during
2801 execution on Solaris. This also unbreaks pending breakpoints.
2803 * solist.h (struct target_so_ops): New field same.
2804 * solib-svr4.c (svr4_same): New.
2805 (_initialize_svr4_solib): Register svr4_same.
2806 * solib.c (update_solib_list): Use ops->same, if available.
2810 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
2811 when using MS-DOS paths.
2815 * NEWS: Mention --pid and --core command line behaviour changes.
2819 * main.c (captured_main): Remove 'count' varible and the
2820 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
2821 --pid options were issued simultaneously. If an explicit pid
2822 option was passed, don't fallback to core file. Detect extra
2823 arguments better in the presence of explicit pid or core
2828 * ada-lang.c (ada_which_variant_applies): Correctly compute
2829 the value of the discriminant when the variant record is packed.
2833 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
2834 that are used to differentiate homonyms.
2838 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
2839 when the type is an anonymous pointer type.
2840 (ada_check_typedef): Avoid a seg fault when the type is null.
2841 * ada-typeprint.c (print_array_type): Add support for pointer
2846 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
2850 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
2851 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
2855 * ada-exp.y (chop_separator): New function.
2856 (write_selectors): Rewrite to re-use chop_separator.
2857 (ada_nget_field_index, get_symbol_field_type): New functions.
2858 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
2863 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
2864 of SYMBOL_VALUE when working with function symbols.
2868 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
2869 expressions. These expressions do not need to be rewriten.
2873 * dwarf2read.c (read_enumeration_type): Flag type as stub if
2874 the given die is a declaration.
2878 * ada-lang.c (ada_array_bound_from_type): Make non-static.
2879 Handle properly the case when the index type is an enumerated type.
2880 Do not return the subtype of the bounds type, just return the
2881 bounds type directly - this is not needed and is more consistent
2882 with what we do for arrays when no XA parallel type exists.
2886 * ada-lang.c (static_unwrap_type): Add forward declaration.
2887 (template_to_static_fixed_type): Fields of dynamic types sometimes
2888 also need to be unwrapped. Take this into account.
2889 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
2890 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
2891 * ada-typeprint.c (ada_print_type): Get the typename from
2892 the original type, not the base type.
2896 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
2897 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
2898 Update calls to ada_to_fixed_type.
2899 (ada_template_to_fixed_record_type_1): Ditto, but without looking
2901 (ada_to_fixed_type): Add check_tag parameter; do not look for
2902 tag if null. When looking for a tag, use a fixed record type.
2903 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
2904 * ada-valprint.c (printable_val_type, ada_value_print): Update
2905 calls to ada_to_fixed_type.
2909 * doublest.c (convert_floatformat_to_doublest): Call
2910 floatformat_to_doublest instead of floatformat_to_double and use
2912 (convert_doublest_to_floatformat): Call floatformat_from_doublest
2913 instead of floatformat_from_double and use DOUBLEST variables.
2917 * MAINTAINERS (Write After Approval): Add self.
2921 * symfile.c (set_initial_language): Make non-static.
2922 * symfile.h (set_initial_language): Add declaration.
2923 * language.c: #include "symfile.h".
2924 (set_language): Call set_initial_language if the frame language
2925 could not be determined.
2929 * eval.c (evaluate_subexp_for_address): Provide frame address to
2930 locate_var_value only if it will be needed.
2934 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
2938 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
2939 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
2940 This is needed to make sure that any other treatment applied
2941 to the resulting value does not fail for spurious reason,
2942 such as trying to take the address of this value.
2946 * ada-lang.c (ada_value_equal): Dereference reference types when
2951 Updated copyright notices for most files.
2955 * win32-nat.c (psapi_module_handle): Remove static.
2956 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
2957 return first module found if base_address is zero. Don't initialize
2958 psapi function pointers here. Convert to cygwin paths when
2960 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
2961 executable name. Use get_module_name when that fails or when
2963 (_initialize_psapi): New function. Initialize psapi stuff before it is
2964 needed or issue a warning if it is not found. Move psapi_module_handle
2969 * ada-lang.c (ada_remove_trailing_digits): New function.
2970 (ada_remove_po_subprogram_suffix): New function.
2971 (ada_decode): Improve. Move the description of the algorithm
2972 directly inside the code, instead of in the function global
2977 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
2978 and always print the dereferenced value.
2982 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
2983 of the case where the first argument is a reference.
2984 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
2988 Implement support for Ada interface types.
2990 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
2991 (ada_is_ignored_field): Ignore fields that are a dispatch table
2996 * top.c (print_gdb_version): Update copyright year.
3000 * ChangeLog-2007: New ChangeLog rotation.
3001 * ChangeLog: Reset for 2008.
3002 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
3005 For older changes see ChangeLog-2007.
3011 version-control: never