1 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3 * varobj.c (_initialize_varobj): Move to the end of file.
5 2014-08-29 Gary Benson <gbenson@redhat.com>
7 * common/common-exceptions.h: New file.
8 * common/common-exceptions.c: Likewise.
9 * Makefile.in (SFILES): Add common/common-exceptions.c.
10 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
11 (COMMON_OBS): Add common-exceptions.o.
12 (common-exceptions.o): New rule.
13 * exceptions.h (common-exceptions.h): Include.
14 (gdb_setjmp.h): Do not include.
15 (return_reason): Moved to common-exceptions.h.
16 (enum return_reason): Likewise.
17 (RETURN_MASK): Likewise.
18 (typedef return_mask): Likewise.
19 (enum errors): Likewise.
20 (struct gdb_exception): Likewise.
21 (exceptions_state_mc_init): Likewise.
22 (exceptions_state_mc_action_iter): Likewise.
23 (exceptions_state_mc_action_iter_1): Likewise.
24 (TRY_CATCH): Likewise.
25 (throw_exception): Likewise.
26 (throw_verror): Likewise.
27 (throw_vquit): Likewise.
28 (throw_error): Likewise.
29 (throw_quit): Likewise.
30 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
31 (enum catcher_action): Likewise.
32 (struct catcher): Likewise.
33 (current_catcher): Likewise.
34 (catcher_list_size): Likewise.
35 (exceptions_state_mc_init): Likewise.
36 (catcher_pop): Likewise.
37 (exceptions_state_mc): Likewise.
38 (exceptions_state_mc_action_iter): Likewise.
39 (exceptions_state_mc_action_iter_1): Likewise.
40 (throw_exception): Likewise.
41 (exception_messages): Likewise.
42 (exception_messages_size): Likewise.
44 (throw_verror): Likewise.
45 (throw_vquit): Likewise.
46 (throw_error): Likewise.
47 (throw_quit): Likewise.
48 (prepare_to_throw_exception): New function.
50 2014-08-29 Gary Benson <gbenson@redhat.com>
52 * common/gdb_setjmp.h: New file.
53 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
54 * configure.ac: Move sigsetjmp check...
55 * common/common.m4: ...here.
56 * configure: Regenerate.
57 * cp-support.c (SIGJMP_BUF): Delete.
58 (SIGSETJMP): Likewise.
59 (SIGLONGJMP): Likewise.
60 * exceptions.h (gdb_setjmp.h): Include.
61 (setjmp.h): Do not include.
62 (EXCEPTIONS_SIGJMP_BUF): Delete.
63 (EXCEPTIONS_SIGSETJMP): Likewise.
64 (EXCEPTIONS_SIGLONGJMP): Likewise.
65 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
67 * exceptions.c: Likewise.
69 2014-08-29 Gary Benson <gbenson@redhat.com>
71 * cleanups.h: Moved to...
72 * common/cleanups.h: New file.
73 * cleanups.c: Moved to...
74 * common/cleanups.c: New file. Include common-defs.h and
75 cleanups.h. Do not include defs.h.
76 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
77 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
78 (cleanups.o): New rule.
80 2014-08-29 Gary Benson <gbenson@redhat.com>
82 * common/errors.h (internal_warning): New declaration.
83 (internal_vwarning): Likewise.
84 * common/errors.c (internal_warning): New function.
85 * utils.h (internal_warning): Don't declare.
86 (internal_vwarning): Likewise.
87 * utils.c (internal_warning): Removed.
89 2014-08-29 Gary Benson <gbenson@redhat.com>
91 * main.c (captured_main): Use warning during startup.
92 Prefix startup warning messages with command name.
94 2014-08-29 Gary Benson <gbenson@redhat.com>
96 * main.c (captured_main): Handle usage errors with error.
98 2014-08-29 Gary Benson <gbenson@redhat.com>
100 * go32-nat.c (go32_create_inferior): Replace a fprintf/
101 exit pair with a call to error. Wrap the message with _().
103 2014-08-29 Gary Benson <gbenson@redhat.com>
105 * main.c (captured_main): Replace a fprintf/exit
106 pair with a call to error. Wrap the message with _().
108 2014-08-29 Gary Benson <gbenson@redhat.com>
110 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
111 pairs with calls to error. Wrap the message with _().
113 2014-08-29 Gary Benson <gbenson@redhat.com>
115 * utils.c (vwarning): Protect calls to target_terminal_ours
118 2014-08-29 Gary Benson <gbenson@redhat.com>
120 * exceptions.c (print_flush): Protect calls to
121 target_terminal_ours and wrap_here.
123 2014-08-29 Gary Benson <gbenson@redhat.com>
125 * utils.h (filtered_printing_initialized): New declaration.
126 * utils.c (abort_with_message): New function.
127 (internal_vproblem): Use abort_with_message for first level
128 recursive internal problems, and if gdb_stderr is not set up.
129 Protect calls to target_terminal_ours, begin_line and query.
131 2014-08-28 Doug Evans <dje@google.com>
133 * symtab.c (in_prologue): Move definition to better spot.
134 (skip_prologue_using_sal): Ditto.
136 2014-08-28 Doug Evans <dje@google.com>
138 * symtab.c (find_function_start_sal): Move definition to better spot.
140 2014-08-28 Yao Qi <yao@codesourcery.com>
142 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
143 found_stack_adjust in forward scan. Remove condition check
144 on found_stack_adjust which is always true. Indent the code.
146 2014-08-28 Yao Qi <yao@codesourcery.com>
148 * dwarf2read.c (dwarf_decode_lines): Update declaration.
149 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
150 (dwarf_decode_lines): Remove argument
151 want_line_info. Remove condition check on want_line_info.
154 2014-08-27 Doug Evans <dje@google.com>
156 * dwarf2read.c (dwarf_record_line): Fix typo.
158 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
160 * target.h (struct target_ops::to_terminal_save_ours): Remove
162 (target_terminal_save_ours): Remove macro.
163 * target-delegates.c: Regenerate.
164 * inf-child.c (inf_child_target): Don't set the nonexistent
165 field to_terminal_save_ours.
166 * inferior.h (child_terminal_save_ours): Remove declaration.
167 * terminal.h (gdb_save_tty_state): New declaration.
168 * inflow.c (child_terminal_save_ours): Rename to ...
169 (gdb_save_tty_state): ... this.
170 * tui/tui.c: Include terminal.h.
171 (tui_enable): Use gdb_save_tty_state instead of
172 target_terminal_save_ours.
173 (tui_disable): Likewise.
175 2014-08-25 Doug Evans <dje@google.com>
177 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
178 Pass NULL instead of 0 for context pointer.
180 2014-08-25 Yao Qi <yao@codesourcery.com>
182 * dwarf2read.c: Fix grammatical error.
184 2014-08-24 Yao Qi <yao@codesourcery.com>
186 * dwarf2read.c (scan_partial_symbols): Update comments.
187 Rename argument 'need_pc' with 'set_addrmap'.
188 (add_partial_namespace): Rename argument 'need_pc' with
190 (add_partial_module): Likewise.
191 (add_partial_subprogram): Likewise. Update comments.
192 (dwarf2_name): Fix typo.
194 2014-08-22 Doug Evans <dje@google.com>
197 * dwarf2read.c (dwarf_record_line_p): New function.
198 (dwarf_decode_lines_1): Ignore subsequent line number entries
199 for the same line if any entry had a non-zero discriminator.
201 2014-08-22 Doug Evans <dje@google.com>
203 * buildsym.h (record_line_ftype): New typedef.
204 (record_line): Use it.
205 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
206 (dwarf_decode_lines_1): Call them.
208 2014-08-22 Yao Qi <yao@codesourcery.com>
210 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
211 (ctf_end): Remove code.
213 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
215 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
216 (linux_make_corefile_notes): call update_thread_list, protected against
219 2014-08-21 Pedro Alves <palves@redhat.com>
221 * infcmd.c (attach_command): Remove comment.
223 2014-08-21 Bin Cheng <bin.cheng@arm.com>
225 * aarch64-linux-nat.c (dr_changed_t): Change the type from
226 unsigned LONGEST to ULONGEST.
228 2014-08-20 Pedro Alves <palves@redhat.com>
230 * Makefile.in (check-read1): New rule.
232 2014-08-20 Joel Brobecker <brobecker@adacore.com>
234 * value.c (value_from_contents_and_address): Strip resolved_type's
235 typedef layers before checking its TYPE_DATA_LOCATION.
237 2014-08-20 Pedro Alves <palves@redhat.com>
239 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
241 2014-08-20 Yao Qi <yao@codesourcery.com>
243 * amd64-tdep.c (amd64_classify): Add a blank line after the
244 example. Move "*/" to a new line.
245 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
246 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
247 * dwarf2read.c (psymtab_include_file_name): Likewise.
249 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
250 Pedro Alves <palves@redhat.com>
254 * ada-lang.c (coerce_unspec_val_to_type): Use
255 value_contents_copy_raw.
256 * ada-valprint.c (val_print_packed_array_elements): Adjust.
257 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
258 * cp-valprint.c (cp_print_value_fields): Let the common printing
259 code handle optimized out values.
260 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
261 * d-valprint.c (dynamic_array_type): Use
262 value_bits_any_optimized_out.
263 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
264 check_any_valid fields.
265 (check_pieced_value_bits): Delete and inline ...
266 (check_pieced_synthetic_pointer): ... here.
267 (check_pieced_value_validity): Delete.
268 (check_pieced_value_invalid): Delete.
269 (pieced_value_funcs): Remove check_validity and check_any_valid
271 (read_pieced_value): Use mark_value_bits_optimized_out.
272 (write_pieced_value): Switch to use
273 mark_value_bytes_optimized_out.
274 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
275 of assuming the whole value is optimized out.
276 * findvar.c (read_frame_register_value): Remove special handling
277 of optimized out registers.
278 (value_from_register): Use mark_value_bytes_optimized_out.
279 * frame-unwind.c (frame_unwind_got_optimized): Use
280 mark_value_bytes_optimized_out.
281 * jv-valprint.c (java_value_print): Adjust.
282 (java_print_value_fields): Let the common printing code handle
283 optimized out values.
284 * mips-tdep.c (mips_print_register): Remove special handling of
285 optimized out registers.
286 * opencl-lang.c (lval_func_check_validity): Delete.
287 (lval_func_check_any_valid): Delete.
288 (opencl_value_funcs): Remove check_validity and check_any_valid
290 * p-valprint.c (pascal_object_print_value_fields): Let the common
291 printing code handle optimized out values.
292 * stack.c (read_frame_arg): Remove special handling of optimized
293 out values. Fetch both VAL and ENTRYVAL before comparing
294 contents. Adjust to value_available_contents_eq rename.
295 * valprint.c (valprint_check_validity)
296 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
297 (val_print_array_elements): Adjust.
298 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
299 (value_bits_any_optimized_out): New function.
300 (value_entirely_covered_by_range_vector): New function, factored
301 out from value_entirely_unavailable.
302 (value_entirely_unavailable): Reimplement.
303 (value_entirely_optimized_out): New function.
304 (insert_into_bit_range_vector): New function, factored out from
305 mark_value_bits_unavailable.
306 (mark_value_bits_unavailable): Reimplement.
307 (struct ranges_and_idx): New struct.
308 (find_first_range_overlap_and_match): New function, factored out
309 from value_available_contents_bits_eq.
310 (value_available_contents_bits_eq): Rename to ...
311 (value_contents_bits_eq): ... this. Check both unavailable
312 contents and optimized out contents.
313 (value_available_contents_eq): Rename to ...
314 (value_contents_eq): ... this.
315 (allocate_value_lazy): Remove reference to the old optimized_out
317 (allocate_optimized_out_value): Use
318 mark_value_bytes_optimized_out.
319 (require_not_optimized_out): Adjust to check whether the
320 optimized_out vec is empty.
321 (ranges_copy_adjusted): New function, factored out from
322 value_contents_copy_raw.
323 (value_contents_copy_raw): Also copy the optimized out ranges.
324 Assert the destination ranges aren't optimized out.
325 (value_contents_copy): Update comment, remove call to
326 require_not_optimized_out.
327 (value_contents_equal): Adjust to check whether the optimized_out
329 (set_value_optimized_out, value_optimized_out_const): Delete.
330 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
332 (value_entirely_optimized_out, value_bits_valid): Delete.
333 (value_copy): Take a VEC copy of the 'optimized_out' field.
334 (value_primitive_field): Remove special handling of optimized out.
335 (value_fetch_lazy): Assert that lazy values have no unavailable
336 regions. Use value_bits_any_optimized_out. Remove some special
337 handling for optimized out values.
338 * value.h: Add intro comment about <optimized out> and
340 (struct lval_funcs): Remove check_validity and check_any_valid
342 (set_value_optimized_out, value_optimized_out_const): Remove.
343 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
345 (value_bits_any_optimized_out): New declaration.
346 (value_bits_valid): Delete declaration.
347 (value_available_contents_eq): Rename to ...
348 (value_contents_eq): ... this, and extend comments.
350 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
352 Fix -fsanitize=address on unreadable inferior strings.
353 * valprint.c (val_print_string): Fix access before BUFFER.
355 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
357 * target.c (target_struct_size): Remove.
358 (target_struct_allocsize): Remove.
359 (DEFAULT_ALLOCSIZE): Remove.
360 (target_ops_p): New typedef.
361 (DEF_VEC_P (target_ops_p)): New vector type.
362 (target_structs): Change type to VEC (target_ops_p).
363 (add_target_with_completer): Replace "push" code by VEC_safe_push.
364 (find_default_run_target): Rewrite for loop following changes to
367 2014-08-19 Joel Brobecker <brobecker@adacore.com>
369 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
370 Adjust code accordingly. Adjust function description comment.
372 2014-08-19 Yao Qi <yao@codesourcery.com>
374 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
377 2014-08-19 Alan Modra <amodra@gmail.com>
379 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
380 * config.in: Regenerate.
381 * configure: Regenerate.
383 2014-08-19 Tom Tromey <tromey@redhat.com>
384 Gary Benson <gbenson@redhat.com>
386 * common/common-debug.h: New file.
387 * common/common-debug.c: Likewise.
389 * Makefile.in (SFILES): Add common/common-debug.c.
390 (HFILES_NO_SRCDIR): Add common/common-debug.h.
391 (COMMON_OBS): Add common-debug.o and debug.o.
392 (common-debug.o): New rule.
393 * common/common-defs.h: Include common-debug.h.
394 * common/agent.c (debug_agent_printf): New function.
395 (DEBUG_AGENT): Redefine.
396 * nat/i386-dregs.c (debug_printf): Undefine.
398 2014-08-19 Gary Benson <gbenson@redhat.com>
400 * common/common-defs.h: Include print-utils.h.
401 * utils.h: Do not include print-utils.h.
403 2014-08-19 Tom Tromey <tromey@redhat.com>
404 Gary Benson <gbenson@redhat.com>
406 * common/common-types.h: New file.
407 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
408 * common/common-defs.h: Include common-types.h.
409 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
412 2014-08-19 Tom Tromey <tromey@redhat.com>
413 Gary Benson <gbenson@redhat.com>
415 * common/errors.h: New file.
416 * common/errors.c: Likewise.
417 * Makefile.in (SFILES): Add common/errors.c.
418 (HFILES_NO_SRCDIR): Add common/errors.h.
419 (COMMON_OBS): Add errors.o.
420 (errors.o): New rule.
421 * common/common-defs.h: Include errors.h.
422 * utils.h (perror_with_name, error, verror, warning, vwarning):
424 * common/common-utils.h: (malloc_failure, internal_error):
427 2014-08-19 Gary Benson <gbenson@redhat.com>
429 * utils.c (internal_vproblem): Always print the message.
431 2014-08-18 Doug Evans <dje@google.com>
433 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
435 2014-08-18 Joel Brobecker <brobecker@adacore.com>
437 * ada-typeprint.c (type_is_full_subrange_of_target_type):
438 Return 0 if TYPE is dynamic.
439 (print_range): Add handling of dynamic ranges.
441 2014-08-18 Keven Boell <keven.boell@intel.com>
442 Joel Brobecker <brobecker@adacore.com>
444 * gdbtypes.h (struct main_type): Add field "data_location".
445 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
446 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
447 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
448 a dynamic data location.
449 (resolve_dynamic_type): Add DW_AT_data_location handling.
450 (copy_recursive, copy_type): Copy the data_location information
452 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
453 * value.c (value_from_contents_and_address): Add
454 DW_AT_data_location handling.
456 2014-08-18 Keven Boell <keven.boell@intel.com>
457 Joel Brobecker <brobecker@adacore.com>
459 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
460 field "get_object_address".
461 * dwarf2expr.c (execute_stack_op): Add handling for
462 DW_OP_push_object_address.
463 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
464 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
465 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
466 (dwarf_expr_get_obj_addr): New function.
467 (dwarf_expr_ctx_funcs): Add get_object_address field.
468 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
469 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
470 (dwarf2_evaluate_property): Add parameter "address". Use it.
471 (needs_get_obj_addr): New function.
472 (needs_frame_ctx_funcs): Add get_object_address field.
473 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
474 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
475 (resolve_dynamic_array): Likewise.
477 2014-08-18 Joel Brobecker <brobecker@adacore.com>
479 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
480 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
481 fixed value for records and unions for which some GNAT encodings
484 2014-08-18 Joel Brobecker <brobecker@adacore.com>
486 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
487 rewrite to avoid "else if" and "else" constructs. Should be
490 2014-08-18 Joel Brobecker <brobecker@adacore.com>
492 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
495 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
498 * eval.c: Update all calls to find_overload_match.
499 * valarith.c: Likewise.
500 (value_user_defined_cpp_op, value_user_defined_op): New
501 argument NOSIDE. Update all callers.
502 * valops.c (find_overload_match): New argument NOSIDE.
503 * value.h (find_overload_match): Update signature.
505 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
507 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
508 'items' methods instead of 'iteritems' method on dictionaries.
510 2014-08-15 Doug Evans <dje@google.com>
512 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
515 2014-08-15 Doug Evans <dje@google.com>
517 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
519 2014-08-15 Doug Evans <dje@google.com>
521 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
523 2014-08-15 Doug Evans <dje@google.com>
525 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
528 2014-08-15 Eli Zaretskii <eliz@gnu.org>
530 * dcache.h: Include target.h, to avoid compile time warnings.
532 2014-08-15 Joel Brobecker <brobecker@adacore.com>
534 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
535 frame_info" partial declaration.
536 * gdbarch.h: Regenerate.
538 2014-08-15 Yao Qi <yao@codesourcery.com>
540 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
541 Add parameter 'decode_for_pst_p'. Callers update.
543 2014-08-13 Yao Qi <yao@codesourcery.com>
546 * configure.ac: Use local variable 'pos'.
547 * configure: Regenerated.
549 2014-08-11 Doug Evans <dje@google.com>
551 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
552 message, it is redundant with "Reading symbols from ..." message.
554 2014-08-10 Doug Evans <xdje42@gmail.com>
556 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
558 2014-08-09 Yao Qi <yao@codesourcery.com>
561 * remote.c (remote_xfer_partial): Remove dead code.
563 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
565 * ia64-linux-tdep.c: Include "regset.h".
566 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
567 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
568 (ia64_linux_supply_fpregset): New function.
569 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
570 (ia64_linux_regset_from_core_section): New function.
571 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
574 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
576 * m68klinux-tdep.c: Include "regset.h".
577 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
578 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
579 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
580 (m68k_linux_regset_from_core_section): New function.
581 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
584 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
586 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
587 function. Move logic to...
588 (tilegx_linux_regmap): ... this new register map.
589 (tilegx_linux_regset): Refer to register map, replace supply
590 method by regcache_supply_regset, and add collect method.
591 * tilegx-tdep.h (enum tilegx_regnum): New enum value
592 TILEGX_FIRST_EASY_REGNUM.
594 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
596 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
597 that calls regcache_supply_regset and handles the EPC register
598 separately. Move main logic to...
599 (score7_linux_gregmap): ... this new register map.
600 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
601 (score7_linux_gregset): Refer to register map. Add collect method.
602 (score7_linux_regset_from_core_section): Replace
603 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
604 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
605 (struct regset): Delete unused forward declaraction.
606 (struct pt_regs): Delete structure definition.
607 (elf_gregset_t): Delete typedef.
609 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
611 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
612 (nios2_core_regset): Add collect method.
614 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
616 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
617 platform-independent and don't write to read-only input buffer.
618 (m32r_linux_collect_gregset): New function.
619 (m32r_linux_gregset): Add collect method.
621 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
623 * hppa-linux-tdep.c (greg_map): Rename to...
624 (hppa_linux_gregmap): ... this. Also convert to
625 regcache_map_entry format.
626 (hppa_linux_supply_regset): Delete function.
627 (hppa_linux_supply_fpregset): Delete function. Move logic to...
628 (hppa_linux_fpregmap): ... this new register map.
629 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
630 register map, replace supply method by regcache_supply_regset, and
631 add collect method regcache_collect_regset.
633 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
635 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
636 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
637 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
638 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
639 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
640 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
641 (frv_linux_supply_gregset): Replace main logic by call to
642 regcache_supply_regset, but keep clearing gr32-gr63.
643 (frv_linux_supply_fpregset): Delete function.
644 (frv_linux_gregset): Refer to appropriate register map and add
645 regcache_collect_regset as the collect method.
646 (frv_linux_fpregset): Likewise. Also exchange the supply method
647 by regcache_supply_regset.
649 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
651 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
652 by call to alpha_supply_int_regs.
653 (alpha_linux_collect_gregset): New function.
654 (alpha_linux_supply_fpregset): Replace logic by call to
655 alpha_supply_fp_regs.
656 (alpha_linux_collect_fpregset): New function.
657 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
659 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
661 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
662 by call to regcache_collect_regset.
663 (supply_gregset, supply_fpregset): Call regcache_supply_regset
664 instead of aarch64_linux_supply_gregset/_fpregset.
665 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
666 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
668 (aarch64_linux_supply_gregset, supply_gregset_from_core)
669 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
670 functions. Move logic to ...
671 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
673 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
674 refer to new register maps, replace *_regset_from_core by
675 regcache_supply_regset, and also use regcache_collect_regset.
676 * aarch64-linux-tdep.h: Include "regset.h".
677 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
679 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
680 macros, moved from C source file.
681 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
682 variable declarations.
684 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
686 * s390-linux-nat.c: Include "regset.h".
687 (regmap_gregset): Delete macro.
688 (s390_64_regmap_gregset): New register map for
689 regcache_supply/_collect_regset.
690 (s390_64_gregset): New regset.
691 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
692 (regmap_fpregset): Delete macro.
693 (s390_native_supply, s390_native_collect): Delete functions.
694 (supply_gregset, fill_gregset): Replace s390-specific regmap
695 handling by a call to regcache_supply/_collect_regset.
696 (supply_fpregset, fill_fpregset): Call regcache_supply/
697 _collect_regset instead of s390_native_supply/_collect.
698 (fetch_regset, store_regset): Likewise. Also change the last
699 parameter to a regset instead of a regmap.
700 (s390_linux_fetch_inferior_registers)
701 (390_linux_store_inferior_registers): Adjust last parameter in
702 calls to fetch_regset and store_regset.
703 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
704 (s390_gregmap): ... this. Also make static const and convert to
705 regcache_map_entry format.
706 (s390x_regmap_gregset): Delete.
707 (s390_regmap_fpregset): Rename to...
708 (s390_fpregmap): ... this. Make static const and convert to
709 regcache_map_entry format.
710 (s390_regmap_upper, s390_regmap_last_break)
711 (s390x_regmap_last_break, s390_regmap_system_call)
712 (s390_regmap_tdb): Likewise.
713 (s390_supply_regset, s390_collect_regset): Remove functions.
714 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
716 (s390_gregset, s390_fpregset, s390_upper_regset)
717 (s390_last_break_regset, s390x_last_break_regset)
718 (s390_system_call_regset, s390_tdb_regset): Make global and
719 replace s390_supply/_collect_regset by regcache_supply/
721 (s390x_gregset): Delete.
722 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
723 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
724 (s390_regmap_fpregset, s390_regmap_last_break)
725 (s390x_regmap_last_break, s390_regmap_system_call)
726 (s390_regmap_tdb): Delete global variable declarations.
727 (s390_gregset, s390_fpregset, s390_last_break_regset)
728 (s390x_last_break_regset, s390_system_call_regset)
729 (s390_tdb_regset): New global variable declarations.
731 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
733 * regcache.c: Include "regset.h".
734 (regcache_transfer_regset): New local function.
735 (regcache_supply_regset, regcache_collect_regset): New functions.
736 * regcache.h (struct regcache_map_entry): New structure.
737 (REGCACHE_MAP_SKIP): New enum value.
738 (regcache_supply_regset, regcache_collect_regset): New prototypes.
740 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
742 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
743 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
744 (ppc_linux_collect_gregset ): Likewise.
745 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
746 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
747 (ppc_collect_vrregset): Likewise.
748 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
751 2014-08-07 Yao Qi <yao@codesourcery.com>
753 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
754 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
755 * remote.c (remote_read_bytes): Likewise.
757 2014-08-07 Yao Qi <yao@codesourcery.com>
759 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
761 2014-08-07 Yao Qi <yao@codesourcery.com>
764 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
765 TARGET_XFER_OK instead of 0.
767 2014-08-07 Gary Benson <gbenson@redhat.com>
769 * common/common-defs.h: Include errno.h.
770 * defs.h: Do not include errno.h.
771 * ada-typeprint.c: Likewise.
772 * c-typeprint.c: Likewise.
773 * core-regset.c: Likewise.
774 * corefile.c: Likewise.
775 * corelow.c: Likewise.
776 * event-loop.c: Likewise.
777 * f-typeprint.c: Likewise.
778 * gnu-nat.c: Likewise.
779 * go32-nat.c: Likewise.
780 * i386gnu-nat.c: Likewise.
781 * m2-typeprint.c: Likewise.
782 * nat/linux-btrace.c: Likewise.
783 * p-typeprint.c: Likewise.
784 * procfs.c: Likewise.
785 * remote-sim.c: Likewise.
786 * rs6000-nat.c: Likewise.
787 * target.c: Likewise.
788 * typeprint.c: Likewise.
789 * ui-file.c: Likewise.
790 * valops.c: Likewise.
791 * valprint.c: Likewise.
793 2014-08-07 Gary Benson <gbenson@redhat.com>
795 * common/common-defs.h: Include string.h.
796 * aarch64-tdep.c: Do not include string.h.
797 * ada-exp.y: Likewise.
798 * ada-lang.c: Likewise.
799 * ada-lex.l: Likewise.
800 * ada-typeprint.c: Likewise.
801 * ada-valprint.c: Likewise.
802 * aix-thread.c: Likewise.
803 * alpha-linux-tdep.c: Likewise.
804 * alpha-mdebug-tdep.c: Likewise.
805 * alpha-nat.c: Likewise.
806 * alpha-osf1-tdep.c: Likewise.
807 * alpha-tdep.c: Likewise.
808 * alphanbsd-tdep.c: Likewise.
809 * amd64-dicos-tdep.c: Likewise.
810 * amd64-linux-tdep.c: Likewise.
811 * amd64-nat.c: Likewise.
812 * amd64-sol2-tdep.c: Likewise.
813 * amd64fbsd-tdep.c: Likewise.
814 * amd64obsd-tdep.c: Likewise.
815 * arch-utils.c: Likewise.
816 * arm-linux-nat.c: Likewise.
817 * arm-linux-tdep.c: Likewise.
818 * arm-tdep.c: Likewise.
819 * arm-wince-tdep.c: Likewise.
820 * armbsd-tdep.c: Likewise.
821 * armnbsd-nat.c: Likewise.
822 * armnbsd-tdep.c: Likewise.
823 * armobsd-tdep.c: Likewise.
824 * avr-tdep.c: Likewise.
825 * ax-gdb.c: Likewise.
826 * ax-general.c: Likewise.
827 * bcache.c: Likewise.
828 * bfin-tdep.c: Likewise.
829 * breakpoint.c: Likewise.
830 * build-id.c: Likewise.
831 * buildsym.c: Likewise.
833 * c-lang.c: Likewise.
834 * c-typeprint.c: Likewise.
835 * c-valprint.c: Likewise.
836 * charset.c: Likewise.
837 * cli-out.c: Likewise.
838 * cli/cli-cmds.c: Likewise.
839 * cli/cli-decode.c: Likewise.
840 * cli/cli-dump.c: Likewise.
841 * cli/cli-interp.c: Likewise.
842 * cli/cli-logging.c: Likewise.
843 * cli/cli-script.c: Likewise.
844 * cli/cli-setshow.c: Likewise.
845 * cli/cli-utils.c: Likewise.
846 * coffread.c: Likewise.
847 * common/agent.c: Likewise.
848 * common/buffer.c: Likewise.
849 * common/buffer.h: Likewise.
850 * common/common-utils.c: Likewise.
851 * common/filestuff.c: Likewise.
852 * common/filestuff.c: Likewise.
853 * common/format.c: Likewise.
854 * common/print-utils.c: Likewise.
855 * common/rsp-low.c: Likewise.
856 * common/signals.c: Likewise.
857 * common/vec.h: Likewise.
858 * common/xml-utils.c: Likewise.
859 * core-regset.c: Likewise.
860 * corefile.c: Likewise.
861 * corelow.c: Likewise.
862 * cp-abi.c: Likewise.
863 * cp-name-parser.y: Likewise.
864 * cp-support.c: Likewise.
865 * cp-valprint.c: Likewise.
866 * cris-tdep.c: Likewise.
868 * darwin-nat.c: Likewise.
869 * dbxread.c: Likewise.
870 * dcache.c: Likewise.
871 * demangle.c: Likewise.
872 * dicos-tdep.c: Likewise.
873 * disasm.c: Likewise.
874 * doublest.c: Likewise.
876 * dummy-frame.c: Likewise.
877 * dwarf2-frame.c: Likewise.
878 * dwarf2loc.c: Likewise.
879 * dwarf2read.c: Likewise.
880 * elfread.c: Likewise.
881 * environ.c: Likewise.
883 * event-loop.c: Likewise.
884 * exceptions.c: Likewise.
886 * expprint.c: Likewise.
888 * f-lang.c: Likewise.
889 * f-typeprint.c: Likewise.
890 * f-valprint.c: Likewise.
891 * fbsd-nat.c: Likewise.
892 * findcmd.c: Likewise.
893 * findvar.c: Likewise.
894 * fork-child.c: Likewise.
896 * frv-linux-tdep.c: Likewise.
897 * frv-tdep.c: Likewise.
899 * gdb_bfd.c: Likewise.
900 * gdbarch.c: Likewise.
901 * gdbarch.sh: Likewise.
902 * gdbtypes.c: Likewise.
903 * gnu-nat.c: Likewise.
904 * gnu-v2-abi.c: Likewise.
905 * gnu-v3-abi.c: Likewise.
906 * go-exp.y: Likewise.
907 * go-lang.c: Likewise.
908 * go32-nat.c: Likewise.
909 * guile/guile.c: Likewise.
910 * guile/scm-auto-load.c: Likewise.
911 * hppa-hpux-tdep.c: Likewise.
912 * hppa-linux-nat.c: Likewise.
913 * hppanbsd-tdep.c: Likewise.
914 * hppaobsd-tdep.c: Likewise.
915 * i386-cygwin-tdep.c: Likewise.
916 * i386-dicos-tdep.c: Likewise.
917 * i386-linux-tdep.c: Likewise.
918 * i386-nto-tdep.c: Likewise.
919 * i386-sol2-tdep.c: Likewise.
920 * i386-tdep.c: Likewise.
921 * i386bsd-tdep.c: Likewise.
922 * i386gnu-nat.c: Likewise.
923 * i386nbsd-tdep.c: Likewise.
924 * i386obsd-tdep.c: Likewise.
925 * i387-tdep.c: Likewise.
926 * ia64-libunwind-tdep.c: Likewise.
927 * ia64-linux-nat.c: Likewise.
928 * inf-child.c: Likewise.
929 * inf-ptrace.c: Likewise.
930 * inf-ttrace.c: Likewise.
931 * infcall.c: Likewise.
932 * infcmd.c: Likewise.
933 * inflow.c: Likewise.
934 * infrun.c: Likewise.
935 * interps.c: Likewise.
936 * iq2000-tdep.c: Likewise.
937 * irix5-nat.c: Likewise.
938 * jv-exp.y: Likewise.
939 * jv-lang.c: Likewise.
940 * jv-typeprint.c: Likewise.
941 * jv-valprint.c: Likewise.
942 * language.c: Likewise.
943 * linux-fork.c: Likewise.
944 * linux-nat.c: Likewise.
945 * lm32-tdep.c: Likewise.
946 * m2-exp.y: Likewise.
947 * m2-typeprint.c: Likewise.
948 * m32c-tdep.c: Likewise.
949 * m32r-linux-nat.c: Likewise.
950 * m32r-linux-tdep.c: Likewise.
951 * m32r-rom.c: Likewise.
952 * m32r-tdep.c: Likewise.
953 * m68hc11-tdep.c: Likewise.
954 * m68k-tdep.c: Likewise.
955 * m68kbsd-tdep.c: Likewise.
956 * m68klinux-nat.c: Likewise.
957 * m68klinux-tdep.c: Likewise.
958 * m88k-tdep.c: Likewise.
959 * machoread.c: Likewise.
960 * macrocmd.c: Likewise.
962 * mdebugread.c: Likewise.
963 * mem-break.c: Likewise.
964 * memattr.c: Likewise.
965 * memory-map.c: Likewise.
966 * mep-tdep.c: Likewise.
967 * mi/mi-cmd-break.c: Likewise.
968 * mi/mi-cmd-disas.c: Likewise.
969 * mi/mi-cmd-env.c: Likewise.
970 * mi/mi-cmd-stack.c: Likewise.
971 * mi/mi-cmd-var.c: Likewise.
972 * mi/mi-cmds.c: Likewise.
973 * mi/mi-console.c: Likewise.
974 * mi/mi-getopt.c: Likewise.
975 * mi/mi-interp.c: Likewise.
976 * mi/mi-main.c: Likewise.
977 * mi/mi-parse.c: Likewise.
978 * microblaze-rom.c: Likewise.
979 * microblaze-tdep.c: Likewise.
980 * mingw-hdep.c: Likewise.
981 * minidebug.c: Likewise.
982 * minsyms.c: Likewise.
983 * mips-irix-tdep.c: Likewise.
984 * mips-linux-tdep.c: Likewise.
985 * mips-tdep.c: Likewise.
986 * mips64obsd-tdep.c: Likewise.
987 * mipsnbsd-tdep.c: Likewise.
988 * mipsread.c: Likewise.
989 * mn10300-linux-tdep.c: Likewise.
990 * mn10300-tdep.c: Likewise.
991 * monitor.c: Likewise.
992 * moxie-tdep.c: Likewise.
993 * mt-tdep.c: Likewise.
994 * nat/linux-btrace.c: Likewise.
995 * nat/linux-osdata.c: Likewise.
996 * nat/linux-procfs.c: Likewise.
997 * nat/linux-ptrace.c: Likewise.
998 * nat/linux-waitpid.c: Likewise.
999 * nbsd-tdep.c: Likewise.
1000 * nios2-linux-tdep.c: Likewise.
1001 * nto-procfs.c: Likewise.
1002 * nto-tdep.c: Likewise.
1003 * objc-lang.c: Likewise.
1004 * objfiles.c: Likewise.
1005 * opencl-lang.c: Likewise.
1006 * osabi.c: Likewise.
1007 * osdata.c: Likewise.
1008 * p-exp.y: Likewise.
1009 * p-lang.c: Likewise.
1010 * p-typeprint.c: Likewise.
1011 * parse.c: Likewise.
1012 * posix-hdep.c: Likewise.
1013 * ppc-linux-nat.c: Likewise.
1014 * ppc-sysv-tdep.c: Likewise.
1015 * ppcfbsd-tdep.c: Likewise.
1016 * ppcnbsd-tdep.c: Likewise.
1017 * ppcobsd-tdep.c: Likewise.
1018 * printcmd.c: Likewise.
1019 * procfs.c: Likewise.
1020 * prologue-value.c: Likewise.
1021 * python/py-auto-load.c: Likewise.
1022 * python/py-gdb-readline.c: Likewise.
1023 * ravenscar-thread.c: Likewise.
1024 * regcache.c: Likewise.
1025 * registry.c: Likewise.
1026 * remote-fileio.c: Likewise.
1027 * remote-m32r-sdi.c: Likewise.
1028 * remote-mips.c: Likewise.
1029 * remote-notif.c: Likewise.
1030 * remote-sim.c: Likewise.
1031 * remote.c: Likewise.
1032 * reverse.c: Likewise.
1033 * rs6000-aix-tdep.c: Likewise.
1034 * ser-base.c: Likewise.
1035 * ser-go32.c: Likewise.
1036 * ser-mingw.c: Likewise.
1037 * ser-pipe.c: Likewise.
1038 * ser-tcp.c: Likewise.
1039 * ser-unix.c: Likewise.
1040 * serial.c: Likewise.
1041 * sh-tdep.c: Likewise.
1042 * sh64-tdep.c: Likewise.
1043 * shnbsd-tdep.c: Likewise.
1045 * sol-thread.c: Likewise.
1046 * solib-dsbt.c: Likewise.
1047 * solib-frv.c: Likewise.
1048 * solib-osf.c: Likewise.
1049 * solib-som.c: Likewise.
1050 * solib-spu.c: Likewise.
1051 * solib-target.c: Likewise.
1052 * solib.c: Likewise.
1053 * somread.c: Likewise.
1054 * source.c: Likewise.
1055 * sparc-nat.c: Likewise.
1056 * sparc-sol2-tdep.c: Likewise.
1057 * sparc-tdep.c: Likewise.
1058 * sparc64-tdep.c: Likewise.
1059 * sparc64fbsd-tdep.c: Likewise.
1060 * sparc64nbsd-tdep.c: Likewise.
1061 * sparcnbsd-tdep.c: Likewise.
1062 * spu-linux-nat.c: Likewise.
1063 * spu-multiarch.c: Likewise.
1064 * spu-tdep.c: Likewise.
1065 * stabsread.c: Likewise.
1066 * stack.c: Likewise.
1067 * std-regs.c: Likewise.
1068 * symfile.c: Likewise.
1069 * symmisc.c: Likewise.
1070 * symtab.c: Likewise.
1071 * target.c: Likewise.
1072 * thread.c: Likewise.
1073 * tilegx-linux-nat.c: Likewise.
1074 * tilegx-tdep.c: Likewise.
1076 * tracepoint.c: Likewise.
1077 * tui/tui-command.c: Likewise.
1078 * tui/tui-data.c: Likewise.
1079 * tui/tui-disasm.c: Likewise.
1080 * tui/tui-file.c: Likewise.
1081 * tui/tui-layout.c: Likewise.
1082 * tui/tui-out.c: Likewise.
1083 * tui/tui-regs.c: Likewise.
1084 * tui/tui-source.c: Likewise.
1085 * tui/tui-stack.c: Likewise.
1086 * tui/tui-win.c: Likewise.
1087 * tui/tui-windata.c: Likewise.
1088 * tui/tui-winsource.c: Likewise.
1089 * typeprint.c: Likewise.
1090 * ui-file.c: Likewise.
1091 * ui-out.c: Likewise.
1092 * user-regs.c: Likewise.
1093 * utils.c: Likewise.
1094 * v850-tdep.c: Likewise.
1095 * valarith.c: Likewise.
1096 * valops.c: Likewise.
1097 * valprint.c: Likewise.
1098 * value.c: Likewise.
1099 * varobj.c: Likewise.
1100 * vax-tdep.c: Likewise.
1101 * vaxnbsd-tdep.c: Likewise.
1102 * vaxobsd-tdep.c: Likewise.
1103 * windows-nat.c: Likewise.
1104 * xcoffread.c: Likewise.
1105 * xml-support.c: Likewise.
1106 * xstormy16-tdep.c: Likewise.
1107 * xtensa-linux-nat.c: Likewise.
1109 2014-08-07 Gary Benson <gbenson@redhat.com>
1111 * common/common-defs.h: Include gdb_assert.h.
1112 * aarch64-tdep.c: Do not include gdb_assert.h.
1113 * addrmap.c: Likewise.
1114 * aix-thread.c: Likewise.
1115 * alpha-linux-tdep.c: Likewise.
1116 * alpha-mdebug-tdep.c: Likewise.
1117 * alphanbsd-tdep.c: Likewise.
1118 * amd64-nat.c: Likewise.
1119 * amd64-tdep.c: Likewise.
1120 * amd64bsd-nat.c: Likewise.
1121 * amd64fbsd-nat.c: Likewise.
1122 * amd64fbsd-tdep.c: Likewise.
1123 * amd64nbsd-nat.c: Likewise.
1124 * amd64nbsd-tdep.c: Likewise.
1125 * amd64obsd-nat.c: Likewise.
1126 * amd64obsd-tdep.c: Likewise.
1127 * arch-utils.c: Likewise.
1128 * arm-tdep.c: Likewise.
1129 * armbsd-tdep.c: Likewise.
1131 * bcache.c: Likewise.
1132 * bfin-tdep.c: Likewise.
1133 * blockframe.c: Likewise.
1134 * breakpoint.c: Likewise.
1135 * bsd-kvm.c: Likewise.
1136 * bsd-uthread.c: Likewise.
1137 * buildsym.c: Likewise.
1138 * c-exp.y: Likewise.
1139 * c-lang.c: Likewise.
1140 * charset.c: Likewise.
1141 * cleanups.c: Likewise.
1142 * cli-out.c: Likewise.
1143 * cli/cli-decode.c: Likewise.
1144 * cli/cli-dump.c: Likewise.
1145 * cli/cli-logging.c: Likewise.
1146 * cli/cli-script.c: Likewise.
1147 * cli/cli-utils.c: Likewise.
1148 * coffread.c: Likewise.
1149 * common/common-utils.c: Likewise.
1150 * common/queue.h: Likewise.
1151 * common/signals.c: Likewise.
1152 * common/vec.h: Likewise.
1153 * complaints.c: Likewise.
1154 * completer.c: Likewise.
1155 * corelow.c: Likewise.
1156 * cp-abi.c: Likewise.
1157 * cp-name-parser.y: Likewise.
1158 * cp-namespace.c: Likewise.
1159 * cp-support.c: Likewise.
1160 * cris-tdep.c: Likewise.
1161 * dbxread.c: Likewise.
1162 * dictionary.c: Likewise.
1163 * doublest.c: Likewise.
1164 * dsrec.c: Likewise.
1165 * dummy-frame.c: Likewise.
1166 * dwarf2-frame-tailcall.c: Likewise.
1167 * dwarf2-frame.c: Likewise.
1168 * dwarf2expr.c: Likewise.
1169 * dwarf2loc.c: Likewise.
1170 * dwarf2read.c: Likewise.
1172 * event-loop.c: Likewise.
1173 * exceptions.c: Likewise.
1174 * expprint.c: Likewise.
1175 * f-valprint.c: Likewise.
1176 * fbsd-nat.c: Likewise.
1177 * findvar.c: Likewise.
1178 * frame-unwind.c: Likewise.
1179 * frame.c: Likewise.
1180 * frv-tdep.c: Likewise.
1181 * gcore.c: Likewise.
1182 * gdb-dlfcn.c: Likewise.
1183 * gdb_bfd.c: Likewise.
1184 * gdbarch.c: Likewise.
1185 * gdbarch.sh: Likewise.
1186 * gdbtypes.c: Likewise.
1187 * gnu-nat.c: Likewise.
1188 * gnu-v3-abi.c: Likewise.
1189 * go-lang.c: Likewise.
1190 * guile/scm-exception.c: Likewise.
1191 * guile/scm-gsmob.c: Likewise.
1192 * guile/scm-lazy-string.c: Likewise.
1193 * guile/scm-math.c: Likewise.
1194 * guile/scm-pretty-print.c: Likewise.
1195 * guile/scm-safe-call.c: Likewise.
1196 * guile/scm-utils.c: Likewise.
1197 * guile/scm-value.c: Likewise.
1198 * h8300-tdep.c: Likewise.
1199 * hppa-hpux-nat.c: Likewise.
1200 * hppa-tdep.c: Likewise.
1201 * hppanbsd-tdep.c: Likewise.
1202 * hppaobsd-tdep.c: Likewise.
1203 * i386-darwin-nat.c: Likewise.
1204 * i386-darwin-tdep.c: Likewise.
1205 * i386-nto-tdep.c: Likewise.
1206 * i386-tdep.c: Likewise.
1207 * i386bsd-nat.c: Likewise.
1208 * i386fbsd-tdep.c: Likewise.
1209 * i386gnu-nat.c: Likewise.
1210 * i386nbsd-tdep.c: Likewise.
1211 * i386obsd-tdep.c: Likewise.
1212 * i387-tdep.c: Likewise.
1213 * ia64-libunwind-tdep.c: Likewise.
1214 * ia64-tdep.c: Likewise.
1215 * inf-ptrace.c: Likewise.
1216 * inf-ttrace.c: Likewise.
1217 * infcall.c: Likewise.
1218 * infcmd.c: Likewise.
1219 * infrun.c: Likewise.
1220 * inline-frame.c: Likewise.
1221 * interps.c: Likewise.
1222 * jv-lang.c: Likewise.
1223 * jv-typeprint.c: Likewise.
1224 * linux-fork.c: Likewise.
1225 * linux-nat.c: Likewise.
1226 * linux-thread-db.c: Likewise.
1227 * m32c-tdep.c: Likewise.
1228 * m32r-linux-nat.c: Likewise.
1229 * m32r-tdep.c: Likewise.
1230 * m68k-tdep.c: Likewise.
1231 * m68kbsd-nat.c: Likewise.
1232 * m68kbsd-tdep.c: Likewise.
1233 * m88k-tdep.c: Likewise.
1234 * machoread.c: Likewise.
1235 * macroexp.c: Likewise.
1236 * macrotab.c: Likewise.
1237 * maint.c: Likewise.
1238 * mdebugread.c: Likewise.
1239 * memory-map.c: Likewise.
1240 * mep-tdep.c: Likewise.
1241 * mi/mi-common.c: Likewise.
1242 * microblaze-tdep.c: Likewise.
1243 * mingw-hdep.c: Likewise.
1244 * mips-linux-nat.c: Likewise.
1245 * mips-linux-tdep.c: Likewise.
1246 * mips-tdep.c: Likewise.
1247 * mips64obsd-tdep.c: Likewise.
1248 * mipsnbsd-tdep.c: Likewise.
1249 * mn10300-linux-tdep.c: Likewise.
1250 * mn10300-tdep.c: Likewise.
1251 * moxie-tdep.c: Likewise.
1252 * mt-tdep.c: Likewise.
1253 * nat/linux-btrace.c: Likewise.
1254 * nat/linux-osdata.c: Likewise.
1255 * nat/linux-ptrace.c: Likewise.
1256 * nat/mips-linux-watch.c: Likewise.
1257 * nios2-linux-tdep.c: Likewise.
1258 * nios2-tdep.c: Likewise.
1259 * objc-lang.c: Likewise.
1260 * objfiles.c: Likewise.
1261 * obsd-nat.c: Likewise.
1262 * opencl-lang.c: Likewise.
1263 * osabi.c: Likewise.
1264 * parse.c: Likewise.
1265 * ppc-linux-nat.c: Likewise.
1266 * ppc-sysv-tdep.c: Likewise.
1267 * ppcfbsd-nat.c: Likewise.
1268 * ppcfbsd-tdep.c: Likewise.
1269 * ppcnbsd-nat.c: Likewise.
1270 * ppcnbsd-tdep.c: Likewise.
1271 * ppcobsd-nat.c: Likewise.
1272 * ppcobsd-tdep.c: Likewise.
1273 * printcmd.c: Likewise.
1274 * procfs.c: Likewise.
1275 * prologue-value.c: Likewise.
1276 * psymtab.c: Likewise.
1277 * python/py-lazy-string.c: Likewise.
1278 * python/py-value.c: Likewise.
1279 * regcache.c: Likewise.
1280 * reggroups.c: Likewise.
1281 * registry.c: Likewise.
1282 * remote-sim.c: Likewise.
1283 * remote.c: Likewise.
1284 * rs6000-aix-tdep.c: Likewise.
1285 * rs6000-tdep.c: Likewise.
1286 * s390-linux-tdep.c: Likewise.
1287 * score-tdep.c: Likewise.
1288 * ser-base.c: Likewise.
1289 * ser-mingw.c: Likewise.
1290 * sh-tdep.c: Likewise.
1291 * sh64-tdep.c: Likewise.
1292 * solib-darwin.c: Likewise.
1293 * solib-spu.c: Likewise.
1294 * solib-svr4.c: Likewise.
1295 * source.c: Likewise.
1296 * sparc-nat.c: Likewise.
1297 * sparc-sol2-tdep.c: Likewise.
1298 * sparc-tdep.c: Likewise.
1299 * sparc64-sol2-tdep.c: Likewise.
1300 * sparc64-tdep.c: Likewise.
1301 * sparc64fbsd-tdep.c: Likewise.
1302 * sparc64nbsd-tdep.c: Likewise.
1303 * sparc64obsd-tdep.c: Likewise.
1304 * sparcnbsd-tdep.c: Likewise.
1305 * sparcobsd-tdep.c: Likewise.
1306 * spu-multiarch.c: Likewise.
1307 * spu-tdep.c: Likewise.
1308 * stabsread.c: Likewise.
1309 * stack.c: Likewise.
1310 * symfile.c: Likewise.
1311 * symtab.c: Likewise.
1312 * target-descriptions.c: Likewise.
1313 * target-memory.c: Likewise.
1314 * target.c: Likewise.
1315 * tic6x-linux-tdep.c: Likewise.
1316 * tic6x-tdep.c: Likewise.
1317 * tilegx-linux-nat.c: Likewise.
1318 * tilegx-tdep.c: Likewise.
1320 * tramp-frame.c: Likewise.
1321 * tui/tui-out.c: Likewise.
1322 * tui/tui-winsource.c: Likewise.
1323 * ui-out.c: Likewise.
1324 * user-regs.c: Likewise.
1325 * utils.c: Likewise.
1326 * v850-tdep.c: Likewise.
1327 * valops.c: Likewise.
1328 * value.c: Likewise.
1329 * varobj.c: Likewise.
1330 * vax-nat.c: Likewise.
1331 * xml-syscall.c: Likewise.
1332 * xml-tdesc.c: Likewise.
1333 * xstormy16-tdep.c: Likewise.
1334 * xtensa-linux-nat.c: Likewise.
1335 * xtensa-tdep.c: Likewise.
1337 2014-08-07 Gary Benson <gbenson@redhat.com>
1339 * common/common-defs.h: Include common-utils.h.
1340 * defs.h: Do not include common-utils.h.
1341 * common/gdb_assert.h: Likewise.
1342 * darwin-nat.h: Likewise.
1343 * nat/linux-btrace.c: Likewise.
1344 * target/waitstatus.h: Likewise.
1346 2014-08-07 Gary Benson <gbenson@redhat.com>
1348 * common/common-defs.h: Include ptid.h.
1349 * defs.h: Do not include ptid.h.
1350 * inferior.h: Likewise.
1351 * infrun.h: Likewise.
1352 * nat/linux-btrace.h: Likewise.
1353 * nat/linux-osdata.h: Likewise.
1354 * target/waitstatus.h: Likewise.
1356 2014-08-07 Gary Benson <gbenson@redhat.com>
1358 * common/common-defs.h: Include gdb_locale.h.
1359 * defs.h: Do not include gdb_locale.h.
1361 2014-08-07 Gary Benson <gbenson@redhat.com>
1363 * common/common-defs.h: Include gdb/signals.h.
1364 * defs.h: Do not include gdb/signals.h.
1366 2014-08-07 Gary Benson <gbenson@redhat.com>
1368 * common/common-defs.h: Include pathmax.h.
1369 * defs.h: Do not include pathmax.h.
1371 2014-08-07 Gary Benson <gbenson@redhat.com>
1373 * common/common-defs.h: Include libiberty.h.
1374 * defs.h: Do not include libiberty.h.
1375 * common/queue.h: Likewise.
1376 * cp-name-parser.y: Likewise.
1377 * mi/mi-cmd-catch.c: Likewise.
1378 * python/python.c: Likewise.
1380 2014-08-07 Gary Benson <gbenson@redhat.com>
1382 * common/common-defs.h: Include ansidecl.h.
1383 * defs.h: Do not include ansidecl.h.
1384 * common/buffer.h: Likewise.
1385 * common/common-utils.h: Likewise.
1387 2014-08-07 Gary Benson <gbenson@redhat.com>
1389 * common/common-defs.h: Include stddef.h.
1390 * defs.h: Do not include stddef.h.
1391 * common/common-utils.h: Likewise.
1392 * amd64fbsd-nat.c: Likewise.
1393 * bcache.c: Likewise.
1394 * charset.c: Likewise.
1395 * common/buffer.h: Likewise.
1396 * common/vec.h: Likewise.
1397 * i386bsd-nat.c: Likewise.
1398 * nat/linux-btrace.h: Likewise.
1399 * ppcfbsd-nat.c: Likewise.
1400 * ppcnbsd-tdep.h: Likewise.
1401 * ppcobsd-nat.c: Likewise.
1402 * ppcobsd-tdep.h: Likewise.
1403 * python/py-gdb-readline.c: Likewise.
1405 2014-08-07 Gary Benson <gbenson@redhat.com>
1407 * common/common-defs.h: Include stdarg.h.
1408 * defs.h: Do not include stdarg.h.
1409 * ada-lang.c: Likewise.
1410 * common/common-utils.h: Likewise.
1411 * guile/scm-string.c: Likewise.
1412 * guile/scm-utils.c: Likewise.
1413 * m32c-tdep.c: Likewise.
1415 2014-08-07 Gary Benson <gbenson@redhat.com>
1417 * common/common-defs.h: Include stdlib.h.
1418 * defs.h: Do not include stdlib.h.
1419 * addrmap.c: Likewise.
1420 * bcache.c: Likewise.
1421 * common/buffer.c: Likewise.
1422 * common/common-utils.c: Likewise.
1423 * cp-name-parser.y: Likewise.
1424 * go32-nat.c: Likewise.
1425 * mn10300-linux-tdep.c: Likewise.
1426 * nat/linux-osdata.c: Likewise.
1427 * tui/tui.c: Likewise.
1428 * windows-nat.c: Likewise.
1430 2014-08-07 Gary Benson <gbenson@redhat.com>
1432 * common/common-defs.h: Include stdio.h.
1433 * defs.h: Do not include stdio.h.
1434 * ada-lang.c: Likewise.
1435 * common/buffer.c: Likewise.
1436 * common/common-utils.c: Likewise.
1437 * cp-name-parser.y: Likewise.
1438 * gnu-nat.c: Likewise.
1439 * go32-nat.c: Likewise.
1440 * i386gnu-nat.c: Likewise.
1441 * proc-api.c: Likewise.
1442 * proc-events.c: Likewise.
1443 * proc-flags.c: Likewise.
1444 * proc-why.c: Likewise.
1445 * python/python-internal.h: Likewise.
1446 * target-memory.c: Likewise.
1447 * tui/tui-io.c: Likewise.
1448 * tui/tui.c: Likewise.
1450 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1452 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1453 (scan_dyntag_auxv): Same.
1455 2014-08-06 Yao Qi <yao@codesourcery.com>
1457 * amd64-linux-nat.c: Remove duplicated include
1459 * i386-linux-nat.c: Likewise.
1461 2014-08-06 Yao Qi <yao@codesourcery.com>
1463 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1464 operand" with "Special opcode" in comments.
1466 2014-08-05 Gary Benson <gbenson@redhat.com>
1468 * interps.c (initialize_interps): Remove prototype.
1469 (interpreter_initialized): Remove static global.
1470 (interp_add): Do not call initialize_interps.
1471 (initialize_interps): Remove function.
1473 2014-08-05 Gary Benson <gbenson@redhat.com>
1475 * utils.c (vwarning): Remove spurious va_end.
1477 2014-08-05 Alan Modra <amodra@gmail.com>
1479 * charset.c (convert_between_encodings): Cast result of obstack_base.
1480 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1481 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1482 (read_unwind_info): Use size_t for some locals.
1483 * jit.c (finalize_symtab): Likewise.
1484 * utils.c (hashtab_obstack_allocate): Likewise.
1485 * symmisc.c (print_objfile_statistics): Update format strings.
1487 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1489 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1490 (Changes in GDB 7.8): ... here.
1492 2014-08-04 Tom Tromey <tromey@redhat.com>
1494 * target.c (set_targetdebug): New function.
1495 (initialize_targets): Pass set_targetdebug when creating "set
1498 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1500 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1501 if detecting a variable-sized field that is not the last field.
1502 Fix struct type length computation.
1504 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1506 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1509 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1511 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1512 Remove "+ 8" offset in computation of CHAIN_VMA.
1514 2014-07-31 Doug Evans <dje@google.com>
1516 * inflow.c (child_terminal_inferior): Add comment.
1517 (child_terminal_ours_for_output): Add comment.
1518 (child_terminal_ours): Add comment.
1519 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1520 (linux_nat_terminal_ours): Add comment.
1522 2014-07-31 Gary Benson <gbenson@redhat.com>
1524 * common/btrace-common.h: Do not include defs.h or server.h.
1525 * nat/mips-linux-watch.h: Likewise.
1526 * gdb-dlfcn.h: Do not include defs.h.
1527 * tracefile.h: Likewise.
1529 2014-07-30 Roland McGrath <mcgrathr@google.com>
1531 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1533 2014-07-30 Tom Tromey <tromey@redhat.com>
1535 * bsd-kvm.c (bsd_kvm_open): Constify.
1536 * corelow.c (core_open): Constify.
1537 * ctf.c (ctf_open): Constify.
1538 * dbug-rom.c (dbug_open): Constify.
1539 * exec.c (exec_open): Constify.
1540 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1541 * microblaze-rom.c (picobug_open): Constify.
1542 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1544 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1545 * record-btrace.c (record_btrace_open): Constify.
1546 * record-full.c (record_full_core_open_1, record_full_open_1)
1547 (record_full_open): Constify.
1548 * remote-m32r-sdi.c (m32r_open): Constify.
1549 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1550 (rockhopper_open, lsi_open): Constify.
1551 * remote-sim.c (gdbsim_open): Constify.
1552 * remote.c (remote_open, extended_remote_open, remote_open_1):
1554 * target.h (struct target_ops) <to_open>: Make "arg" const.
1555 * tracefile-tfile.c (tfile_open): Constify.
1557 2014-07-30 Tom Tromey <tromey@redhat.com>
1559 * breakpoint.c (map_breakpoint_numbers): Update.
1560 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1561 (get_number_const): New function.
1562 (get_number): Rewrite using get_number_const.
1563 (init_number_or_range): Make "string" const.
1564 (number_is_in_list): Make "list" const.
1565 * cli/cli-utils.h (get_number_const): Declare.
1566 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1567 (init_number_or_range, number_is_in_list): Update.
1568 * printcmd.c (map_display_numbers): Update.
1569 * value.c (value_from_history_ref): Constify.
1570 * value.h (value_from_history_ref): Update.
1572 2014-07-30 Tom Tromey <tromey@redhat.com>
1574 * corefile.c (hook_type, call_extra_exec_file_hooks)
1575 (specify_exec_file_hook): Constify.
1576 * exec.c (exec_file_attach): Make "filename" const.
1577 * gdbcore.h (deprecated_exec_file_display_hook)
1578 (specify_exec_file_hook, exec_file_attach): Constify.
1579 * main.c (captured_main): Use catch_command_errors_const.
1581 2014-07-30 Tom Tromey <tromey@redhat.com>
1583 * target.c (open_target): New function.
1584 (add_target_with_completer, add_deprecated_target_alias): Use
1585 set_cmd_sfunc, set_cmd_context.
1586 (debug_to_open): Remove.
1587 (setup_target_debug): Update.
1589 2014-07-30 Yao Qi <yao@codesourcery.com>
1591 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1593 * parse.c (exp_iterate): Update comments.
1595 2014-07-30 Gary Benson <gbenson@redhat.com>
1597 * common/common-defs.h: New file.
1598 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1599 * defs.h: Include common-defs.h.
1600 Do not include config.h or build-gnulib/config.h.
1602 2014-07-30 Gary Benson <gbenson@redhat.com>
1604 * common/common-utils.h: Do not include config.h.
1605 * nat/linux-btrace.h: Likewise.
1607 2014-07-30 Gary Benson <gbenson@redhat.com>
1609 * btrace.c: Include defs.h.
1610 * common/ptid.c: Include defs.h or server.h as appropriate.
1611 * nat/mips-linux-watch.c: Likewise.
1613 2014-07-29 Tom Tromey <tromey@redhat.com>
1615 * target.c (target_is_pushed): Simplify.
1617 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1621 2014-07-29 Yao Qi <yao@codesourcery.com>
1624 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1626 2014-07-28 Doug Evans <xdje42@gmail.com>
1629 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1630 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1633 2014-07-28 Will Newton <will.newton@linaro.org>
1635 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1636 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1637 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1638 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1639 (THUMB2_EABI_SYSCALL): Likewise.
1640 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1642 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1643 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1645 2014-07-27 Doug Evans <xdje42@gmail.com>
1647 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1649 2014-07-27 Doug Evans <xdje42@gmail.com>
1651 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1653 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1654 Doug Evans <xdje42@gmail.com>
1657 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1658 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1659 * configure.ac: Try to use guild to compile an scm file, if it fails
1660 then disable guile support.
1661 * configure: Regenerate.
1662 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1664 (GUILE_COMPILED_FILES): New variable.
1665 (GUILE_FILES) Update.
1666 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1667 (stamp-guile): Compile scm files.
1668 * guile/guile.c (boot_guile_support): New function.
1669 (standard_throw_args_p): New function.
1670 (print_standard_throw_error, print_throw_error): New functions.
1671 (handle_boot_error): New function.
1672 (initialize_scheme_side): Rewrite to call boot_guile_support.
1673 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1674 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1676 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1677 Doug Evans <xdje42@gmail.com>
1680 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1681 * guile/lib/gdb/support.scm: New file.
1682 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1683 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1685 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1687 (%assert-type): Ditto, and renamed to assert-type.
1688 (%exception-print-style): Delete.
1690 2014-07-26 Doug Evans <xdje42@gmail.com>
1693 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1694 * configure: Regenerate.
1695 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1697 (PYTHON_FILES): New variable.
1698 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1699 (GUILE_FILES): New variable.
1700 (stamp-python, install-python, uninstall-python): Handle empty
1702 (stamp-guile, install-guile, uninstall-guile): Ditto.
1704 2014-07-26 Doug Evans <xdje42@gmail.com>
1707 * guile/lib/gdb.scm (pretty-printers): Export.
1708 (set-pretty-printers!): Export.
1709 * guile/lib/gdb/printing.scm (gdb module): Update.
1710 (prepend-pretty-printer!, append-pretty-printer!): Update.
1711 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1712 (pretty_printer_list_var): Delete.
1713 (pretty_printer_list): New static global.
1714 (gdbscm_pretty_printers): New function.
1715 (gdbscm_set_pretty_printers_x): New function.
1716 (ppscm_find_pretty_printer_from_gdb): Update.
1717 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1718 (gdbscm_initialize_pretty_printers): Update.
1720 2014-07-26 Doug Evans <xdje42@gmail.com>
1723 * configure.ac: Add check for header gc/gc.h.
1724 Add check for function setenv.
1725 * configure: Regenerate.
1726 * config.in: Regenerate.
1727 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1729 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1731 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1732 variation in gdbarch matching.
1734 2014-07-25 Tom Tromey <tromey@redhat.com>
1736 * exec.c (using_exec_ops): Remove.
1737 (exec_close_1): Update. Remove extraneous block, reindent.
1738 (add_target_sections): Use target_is_pushed.
1740 2014-07-25 Pedro Alves <palves@redhat.com>
1742 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1743 * monitor.c (monitor_create_inferior): Likewise.
1744 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1745 * remote-sim.c (gdbsim_create_inferior): Likewise.
1746 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1747 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1748 * windows-nat.c (do_initial_windows_stuff): Likewise.
1750 2014-07-25 Pedro Alves <palves@redhat.com>
1752 * NEWS: Mention signal passing and "signal" command changes.
1753 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1755 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1757 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1758 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1759 (jump_command): Adjust clear_proceed_status call.
1760 (signal_command): Warn if other thread that are resumed have
1761 signals that will be delivered. Adjust clear_proceed_status call.
1762 (until_next_command, finish_command)
1763 (proceed_after_attach_callback, attach_command_post_wait)
1764 (attach_command): Adjust clear_proceed_status call.
1765 * infrun.c (proceed_after_vfork_done): Likewise.
1766 (proceed_after_attach_callback): Adjust comment.
1767 (clear_proceed_status_thread): Clear stop_signal if not in pass
1769 (clear_proceed_status_callback): Delete.
1770 (clear_proceed_status): New 'step' parameter. Only clear the
1771 proceed status of threads the command being prepared is about to
1773 (proceed): If passed in an explicit signal, override stop_signal
1774 with it. Don't pass the last stop signal to the thread we're
1776 (init_wait_for_inferior): Adjust clear_proceed_status call.
1777 (switch_back_to_stepped_thread): Clear the signal if it should not
1779 * infrun.h (clear_proceed_status): New 'step' parameter.
1780 (user_visible_resume_ptid): Add comment.
1781 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1782 signal is in pass state.
1783 * remote.c (append_pending_thread_resumptions): Likewise.
1784 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1786 2014-07-25 Tom Tromey <tromey@redhat.com>
1788 * target.h (target_stopped_data_address)
1789 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1792 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1794 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1796 (avr_pointer_to_address): Likewise.
1798 2014-07-24 Tom Tromey <tromey@redhat.com>
1800 * monitor.c (compile_pattern): Update.
1801 * target.h (struct target_ops) <to_shortname, to_longname,
1804 2014-07-24 Tom Tromey <tromey@redhat.com>
1806 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1807 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1808 (add_info_alias, add_com): Make "doc" const.
1809 (print_doc_line): Make "str" const.
1810 (delete_cmd): Update.
1811 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1812 (print_doc_line): Update.
1813 * cli/cli-script.c (document_command): Update.
1814 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1815 (add_com, add_info, add_info_alias): Update.
1816 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1817 * python/py-cmd.c (cmdpy_destroyer): Update.
1819 2014-07-24 Tom Tromey <tromey@redhat.com>
1821 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1822 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1823 (help_cmd_list): Constify.
1824 (lookup_cmd): Update.
1825 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1827 (help_cmd_list, apropos_cmd): Update.
1828 * cli/cli-script.c (show_user): Update.
1829 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1830 * cli/cli-setshow.h (cmd_show_list): Update.
1831 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1832 (cmd_show_list): Update.
1833 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1834 * python/py-cmd.c (cmdpy_destroyer): Update.
1836 2014-07-24 Tom Tromey <tromey@redhat.com>
1838 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1839 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1841 * command.h (deprecate_cmd): Update.
1842 * maint.c (maintenance_do_deprecate): Add casts.
1844 2014-07-24 Tom Tromey <tromey@redhat.com>
1846 * cli/cli-decode.c (help_cmd): Make parameter "const".
1847 * cli/cli-decode.h (help_cmd): Update.
1849 2014-07-24 Tom Tromey <tromey@redhat.com>
1851 * stack.c (up_silently_base, down_silently_base): Make argument
1854 2014-07-24 Tom Tromey <tromey@redhat.com>
1856 * solib.c (solib_add): Make "pattern" const.
1857 * solib.h (solib_add): Update.
1859 2014-07-24 Tom Tromey <tromey@redhat.com>
1861 * remote.c (remote_serial_open, print_packet, putpkt)
1862 (putpkt_binary): Constify.
1863 * remote.h (putpkt): Update.
1865 2014-07-24 Tom Tromey <tromey@redhat.com>
1867 * monitor.c (monitor_open): Make "args" const.
1868 * monitor.h (monitor_open): Update.
1870 2014-07-24 Tom Tromey <tromey@redhat.com>
1872 * maint.c (match_bfd_flags): Make "string" const.
1873 (print_bfd_section_info): Remove casts.
1874 (print_objfile_section_info): Make "string" const.
1876 2014-07-24 Tom Tromey <tromey@redhat.com>
1878 * inf-child.c (inf_child_open_target): Make "arg" const.
1879 * inf-child.h (inf_child_open_target): Update.
1881 2014-07-24 Tom Tromey <tromey@redhat.com>
1883 * environ.c (unset_in_environ): Make "var" const.
1884 * environ.h (unset_in_environ): Update.
1886 2014-07-24 Tom Tromey <tromey@redhat.com>
1888 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1890 (scan_filename_with_cleanup): Likewise.
1891 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1892 Make arguments const.
1893 (restore_command): Update.
1895 2014-07-24 Pedro Alves <palves@redhat.com>
1897 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1899 2014-07-24 Tom Tromey <tromey@redhat.com>
1900 Gary Benson <gbenson@redhat.com>
1902 * nat/linux-ptrace.c (additional_flags): New global.
1903 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1904 additional_flags; don't check GDBSERVER.
1905 (linux_ptrace_set_additional_flags): New function.
1906 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1908 * linux-nat.c (_initialize_linux_nat): Call
1909 linux_ptrace_set_additional_flags.
1911 2014-07-24 Tom Tromey <tromey@redhat.com>
1913 * make-target-delegates (munge_type, write_debugmethod): New
1915 (debug_names): New global.
1916 ($TARGET_DEBUG_PRINTER): New global.
1917 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1919 Write debug methods. Generate init_debug_target.
1920 * target-debug.h: New file.
1921 * target-delegates.c: Rebuild.
1922 * target.c: Include target-debug.h.
1923 (debug_target): Hoist definition.
1924 (target_kill, target_get_section_table, target_memory_map)
1925 (target_flash_erase, target_flash_done, target_detach)
1926 (target_disconnect, target_wait, target_resume)
1927 (target_pass_signals, target_program_signals, target_follow_fork)
1928 (target_mourn_inferior, target_search_memory)
1929 (target_thread_address_space, target_close)
1930 (target_find_new_threads, target_core_of_thread)
1931 (target_verify_memory, target_insert_mask_watchpoint)
1932 (target_remove_mask_watchpoint): Remove targetdebug code.
1933 (debug_to_post_attach, debug_to_prepare_to_store)
1934 (debug_to_files_info, debug_to_insert_breakpoint)
1935 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1936 (debug_to_region_ok_for_hw_watchpoint)
1937 (debug_to_can_accel_watchpoint_condition)
1938 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1939 (debug_to_watchpoint_addr_within_range)
1940 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1941 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1942 (debug_to_terminal_init, debug_to_terminal_inferior)
1943 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1944 (debug_to_terminal_save_ours, debug_to_terminal_info)
1945 (debug_to_load, debug_to_post_startup_inferior)
1946 (debug_to_insert_fork_catchpoint)
1947 (debug_to_remove_fork_catchpoint)
1948 (debug_to_insert_vfork_catchpoint)
1949 (debug_to_remove_vfork_catchpoint)
1950 (debug_to_insert_exec_catchpoint)
1951 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1952 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1953 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1954 (setup_target_debug): Call init_debug_target.
1955 * target.h (TARGET_DEBUG_PRINTER): New macro.
1956 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1957 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1959 2014-07-24 Gary Benson <gbenson@redhat.com>
1961 * exceptions.h (throw_vfatal): Renamed to...
1962 (throw_vquit): New declaration.
1963 (throw_quit): Likewise.
1964 * exceptions.c (throw_vfatal): Renamed to...
1965 (throw_vquit): New function.
1966 (throw_quit): Likewise.
1967 (throw_error): Call throw_verror rather than throw_it.
1968 * utils.h (vfatal): Removed.
1970 * utils.c (vfatal): Removed.
1972 (internal_verror): Replaced call to fatal with call to throw_quit.
1973 (quit): Replaced calls to fatal with calls to throw_quit.
1975 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1977 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1980 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1982 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1983 less than zero in conditional expression.
1985 2014-07-23 Tom Tromey <tromey@redhat.com>
1987 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1988 ($INTRO_PART): Don't match whitespace.
1989 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1991 ($METHOD): Add $METHOD_TRAILER.
1993 (scan_target_h): New sub.
1994 Change main loop not to collect state.
1995 * target-delegates.c: Rebuild.
1997 2014-07-23 Gary Benson <gbenson@redhat.com>
1999 * cp-support.c (gdb_demangle): Fix build on systems without
2002 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2004 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2005 for reference entry value target data value.
2007 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2010 value_available_contents_eq.
2012 2014-07-22 Pedro Alves <palves@redhat.com>
2014 * value.c (allocate_optimized_out_value): Don't mark value as
2017 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2019 * MAINTAINERS (Write After Approval): Update my email address.
2021 2014-07-20 Doug Evans <dje@google.com>
2024 * remote.c (putpkt_binary): Add text to error message.
2026 2014-07-20 Yao Qi <yao@codesourcery.com>
2028 * eval.c: Remove "Chill" from comments.
2029 * gdbtypes.h: Likewise.
2030 * symtab.h: Likewise.
2032 2014-07-20 Yao Qi <yao@codesourcery.com>
2034 * std-operator.def: Update comments to TERNOP_SLICE.
2036 2014-07-20 Yao Qi <yao@codesourcery.com>
2038 * std-operator.def: Remove BINOP_RANGE.
2039 * breakpoint.c (watchpoint_exp_is_const): Update.
2040 * expprint.c (dump_subexp_body_standard): Likewise.
2041 * eval.c (init_array_element): Remove dead code.
2042 (evaluate_subexp_standard): Likewise.
2044 2014-07-20 Yao Qi <yao@codesourcery.com>
2046 * std-operator.def: Remove BINOP_IN.
2047 * breakpoint.c (watchpoint_exp_is_const): Update.
2048 * eval.c (evaluate_subexp_standard): Likewise.
2049 * expprint.c (dump_subexp_body_standard): Likewise.
2051 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2053 * microblaze-tdep.c (microblaze_register_names): Add
2054 the rshr and rslr register names.
2055 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2056 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2057 Use of tdesc_numbered_register. Use of
2058 microblaze_register_g_packet_guesses. Use of
2059 tdesc_use_registers. Use of set_gdbarch_register_type.
2060 (microblaze_register_g_packet_guesses): New.
2061 * microblaze-tdep.h (microblaze_reg_num): Add
2062 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2063 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2064 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2065 * features/microblaze-core.xml: New file.
2066 * features/microblaze-stack-protect.xml: New file.
2067 * features/microblaze-with-stack-protect.c: New file.
2068 * features/microblaze-with-stack-protect.xml: New file.
2069 * features/microblaze.xml: New file.
2070 * features/microblaze.c: New file.
2071 * features/Makefile (microblaze-with-stack-protect): Add
2072 microblaze-with-stack-protect microblaze and microblaze-expedite.
2073 * regformats/microblaze-with-stack-protect.dat: New file.
2074 * regformats/microblaze.dat: New file.
2075 * doc/gdb.texinfo (MicroBlaze Features): Added.
2077 2014-07-18 Tom Tromey <tromey@redhat.com>
2079 * exec.c (exec_ops): Now static.
2080 * exec.h (exec_ops): Don't declare.
2082 2014-07-18 Tom Tromey <tromey@redhat.com>
2084 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2085 to find_target_beneath.
2086 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2087 find_target_beneath.
2088 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2090 2014-07-18 Tom Tromey <tromey@redhat.com>
2093 * utils.c (quit): Use target_supports_terminal_ours.
2094 * target.h (target_supports_terminal_ours): Declare.
2095 * target.c (target_supports_delete_record): Don't check
2096 to_delete_record against NULL.
2097 (target_supports_terminal_ours): New function.
2099 2014-07-18 Tom Tromey <tromey@redhat.com>
2102 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2103 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2104 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2105 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2106 * windows-nat.c (windows_xfer_partial): Always delegate.
2107 * record-btrace.c (record_btrace_xfer_partial): Simplify
2109 (record_btrace_fetch_registers, record_btrace_store_registers)
2110 (record_btrace_prepare_to_store, record_btrace_resume)
2111 (record_btrace_wait, record_btrace_find_new_threads)
2112 (record_btrace_thread_alive): Likewise.
2113 * procfs.c (procfs_xfer_partial): Always delegate.
2114 * corelow.c (core_xfer_partial): Always delegate.
2115 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2117 2014-07-18 Tom Tromey <tromey@redhat.com>
2119 * exec.c (exec_make_note_section): Move earlier.
2121 2014-07-17 Doug Evans <dje@google.com>
2124 * maint.c (count_symtabs_and_blocks): Handle NULL
2125 current_program_space.
2126 (report_command_stats): Check global enabled flag in addition to
2127 recorded enabled flag.
2128 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2130 2014-07-16 Pedro Alves <palves@redhat.com>
2132 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2134 2014-07-16 Tom Tromey <tromey@redhat.com>
2136 * target.h (struct target_ops) <to_delete_record>: Reformat
2139 2014-07-16 Tom Tromey <tromey@redhat.com>
2141 * target-delegates.c: Rebuild.
2143 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2145 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2146 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2147 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2148 (avr_pointer_to_address): Likewise.
2149 (avr_address_class_type_flags): New function.
2150 (avr_address_class_type_flags_to_name): Likewise.
2151 (avr_address_class_name_to_type_flags): Likewise.
2152 (avr_gdbarch_init): Set address_class_type_flags,
2153 address_class_type_flags_to_name and
2154 address_class_name_to_type_flags.
2156 2014-07-15 Pedro Alves <palves@redhat.com>
2158 * linux-nat.c (kill_callback): Save errno and work with saved
2161 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2163 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2165 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2167 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2168 breakpoint support correctly.
2170 2014-07-14 Pedro Alves <palves@redhat.com>
2172 * utils.c (prompt_for_continue): Call target_terminal_ours.
2174 2014-07-14 Pedro Alves <palves@redhat.com>
2176 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2177 catch_errors. Don't re-enable stdin or notify observers where,
2179 (fetch_inferior_event_wrapper): Delete.
2181 2014-07-14 Pedro Alves <palves@redhat.com>
2184 * top.c: Include "inf-loop.h".
2185 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2187 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2189 (gdb_readline_wrapper): Store whether the target is async, and
2192 2014-07-14 Pedro Alves <palves@redhat.com>
2195 * top.c (gdb_readline_wrapper_line): Tweak comment.
2196 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2197 the input handler callback.
2199 2014-07-14 Pedro Alves <palves@redhat.com>
2202 * main.c: Include event-top.h.
2203 (handle_command_errors): New function.
2204 (catch_command_errors, catch_command_errors_const): Use it.
2206 2014-07-14 Pedro Alves <palves@redhat.com>
2208 * exceptions.c (catch_command_errors, catch_command_errors_const):
2210 * exceptions.h (catch_command_errors_ftype)
2211 (catch_command_errors_const_ftype): Moved to main.c.
2212 (catch_command_errors, catch_command_errors_const): Delete
2214 * main.c (catch_command_errors_ftype)
2215 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2216 (catch_command_errors, catch_command_errors_const)): Moved here
2217 from exceptions.c and make static.
2219 2014-07-14 Pedro Alves <palves@redhat.com>
2221 * exceptions.c (print_any_exception): Delete.
2222 (catch_exceptions_with_msg): Use exception_print instead of
2223 print_any_exception.
2224 (catch_errors): Use exception_fprintf instead of
2225 print_any_exception.
2226 (catch_command_errors, catch_command_errors_const): Use
2227 exception_print instead of print_any_exception.
2229 2014-07-14 Pedro Alves <palves@redhat.com>
2231 * infcall.c (run_inferior_call): Set 'sync_execution' while
2232 running the inferior call.
2234 2014-07-14 Pedro Alves <palves@redhat.com>
2236 * value.c (value_contents_equal): Delete function.
2237 * value.h (value_contents_equal): Delete declaration.
2239 2014-07-14 Tom Tromey <tromey@redhat.com>
2242 * gdbtypes.c (is_dynamic_type_internal): New function, from
2244 (is_dynamic_type): Rewrite.
2245 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2246 (resolve_dynamic_struct): Likewise.
2247 (resolve_dynamic_type_internal): New function, from
2248 resolve_dynamic_type.
2249 (resolve_dynamic_type): Rewrite.
2251 2014-07-14 Tom Tromey <tromey@redhat.com>
2253 * target.c (target_require_runnable): Also check record_stratum.
2256 2014-07-11 Yao Qi <yao@codesourcery.com>
2258 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2259 thumb_instruction_restores_sp return true.
2261 2014-07-11 Yao Qi <yao@codesourcery.com>
2263 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2264 (thumb_in_function_epilogue_p): Call
2265 thumb_instruction_restores_sp.
2267 2014-07-11 Yao Qi <yao@codesourcery.com>
2269 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2271 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2273 2014-07-11 Gary Benson <gbenson@redhat.com>
2275 * amd64-linux-nat.c (gdbcore.h): Remove include.
2276 (regset.h): Likewise.
2277 (nat/linux-btrace.h): Likewise.
2278 (btrace.h): Likewise.
2279 (gdb_assert.h): Likewise.
2280 (string.h): Likewise.
2281 (sys/uio.h): Likewise.
2282 (sys/debugreg.h): Likewise.
2283 (sys/syscall.h): Likewise.
2284 (sys/procfs.h): Likewise.
2285 (sys/user.h): Likewise.
2286 (asm/ptrace.h): Likewise.
2287 (i386-nat.h): Likewise.
2288 * i386-linux-nat.c (i386-nat.h): Likewise.
2289 (regset.h): Likewise.
2290 (target.h): Likewise.
2291 (linux-nat.h): Likewise.
2292 (nat/linux-btrace.h): Likewise.
2293 (btrace.h): Likewise.
2294 (gdb_assert.h): Likewise.
2295 (string.h): Likewise.
2296 (sys/uio.h): Likewise.
2297 (sys/user.h): Likewise.
2298 (sys/procfs.h): Likewise.
2299 (sys/reg.h): Likewise.
2300 (sys/debugreg.h): Likewise.
2301 (ORIG_EAX): Remove definition.
2303 2014-07-11 Gary Benson <gbenson@redhat.com>
2305 * i386-linux-nat.h: New file.
2306 * x86-linux-nat.h: Likewise.
2307 * x86-linux-nat.c: Likewise.
2308 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2309 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2310 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2311 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2312 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2313 (PTRACE_SETREGSET): Likewise.
2314 (arch_lwp_info): Now in x86-linux-nat.c.
2315 (have_ptrace_getregset): Now in x86-linux-nat.h.
2316 (x86_linux_dr_get): Now in x86-linux-nat.c.
2317 (x86_linux_dr_set): Likewise.
2318 (x86_linux_dr_get_addr): Likewise.
2319 (x86_linux_dr_get_control): Likewise.
2320 (x86_linux_dr_get_status): Likewise.
2321 (update_debug_registers_callback): Likewise.
2322 (x86_linux_dr_set_control): Likewise.
2323 (x86_linux_dr_set_addr): Likewise.
2324 (x86_linux_prepare_to_resume): Likewise.
2325 (x86_linux_new_thread): Likewise.
2326 (x86_linux_new_fork): Likewise.
2327 (x86_linux_get_thread_area): Likewise.
2328 (super_post_startup_inferior): Likewise.
2329 (x86_linux_child_post_startup_inferior): Likewise.
2330 (AMD64_LINUX_USER64_CS): Likewise.
2331 (AMD64_LINUX_X32_DS): Likewise.
2332 (x86_linux_read_description): Likewise.
2333 (x86_linux_enable_btrace): Likewise.
2334 (x86_linux_disable_btrace): Likewise.
2335 (x86_linux_teardown_btrace): Likewise.
2336 (x86_linux_read_btrace): Likewise.
2337 (x86_linux_create_target): Likewise.
2338 (x86_linux_add_target): Likewise.
2339 * i386-linux-nat.c (x86-linux-nat.h): New include.
2340 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2341 (PTRACE_SETREGSET): Likewise.
2342 (arch_lwp_info): Now in x86-linux-nat.c.
2343 (have_ptrace_getregset): Now in x86-linux-nat.h.
2344 (x86_linux_dr_get): Now in x86-linux-nat.c.
2345 (x86_linux_dr_set): Likewise.
2346 (x86_linux_dr_get_addr): Likewise.
2347 (x86_linux_dr_get_control): Likewise.
2348 (x86_linux_dr_get_status): Likewise.
2349 (update_debug_registers_callback): Likewise.
2350 (x86_linux_dr_set_control): Likewise.
2351 (x86_linux_dr_set_addr): Likewise.
2352 (x86_linux_prepare_to_resume): Likewise.
2353 (x86_linux_new_thread): Likewise.
2354 (x86_linux_new_fork): Likewise.
2355 (x86_linux_get_thread_area): Likewise.
2356 (super_post_startup_inferior): Likewise.
2357 (x86_linux_child_post_startup_inferior): Likewise.
2358 (AMD64_LINUX_USER64_CS): Likewise.
2359 (AMD64_LINUX_X32_DS): Likewise.
2360 (x86_linux_read_description): Likewise.
2361 (x86_linux_enable_btrace): Likewise.
2362 (x86_linux_disable_btrace): Likewise.
2363 (x86_linux_teardown_btrace): Likewise.
2364 (x86_linux_read_btrace): Likewise.
2365 (x86_linux_create_target): Likewise.
2366 (x86_linux_add_target): Likewise.
2368 2014-07-11 Gary Benson <gbenson@redhat.com>
2370 * amd64-linux-nat.c: Comment and whitespace changes.
2371 * i386-linux-nat.c: Comment and whitespace changes.
2373 2014-07-11 Gary Benson <gbenson@redhat.com>
2375 * amd64-linux-nat.c (x86_linux_create_target): New function.
2376 (x86_linux_add_target): Likewise.
2377 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2378 * i386-linux-nat.c (x86_linux_create_target): New function.
2379 (x86_linux_add_target): Likewise.
2380 (_initialize_i386_linux_nat): Delegate to the above new functions.
2382 2014-07-11 Gary Benson <gbenson@redhat.com>
2384 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2385 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2386 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2387 (ps_get_thread_area): Delegate to the above.
2389 2014-07-11 Gary Benson <gbenson@redhat.com>
2391 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2392 x86_linux_read_description. All uses updated. amd64-specific
2393 code conditionalized. Conditionalized i386-specific code added.
2394 Redundant cast removed.
2395 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2396 x86_linux_read_description. All uses updated. i386-specific
2397 code conditionalized. Conditionalized amd64-specific code added.
2398 One sizeof replaced with the actual type it is describing.
2400 2014-07-11 Gary Benson <gbenson@redhat.com>
2402 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2403 x86_linux_dr_get. All uses updated.
2404 (amd64_linux_dr_set): Renamed to
2405 x86_linux_dr_set. All uses updated.
2406 (amd64_linux_dr_get_addr): Renamed to
2407 x86_linux_dr_get_addr. All uses updated.
2408 (amd64_linux_dr_get_control): Renamed to
2409 x86_linux_dr_get_control. All uses updated.
2410 (amd64_linux_dr_get_status): Renamed to
2411 x86_linux_dr_get_status. All uses updated.
2412 (amd64_linux_dr_set_control): Renamed to
2413 x86_linux_dr_set_control. All uses updated.
2414 (amd64_linux_dr_set_addr): Renamed to
2415 x86_linux_dr_set_addr. All uses updated.
2416 (amd64_linux_prepare_to_resume): Renamed to
2417 x86_linux_prepare_to_resume. All uses updated.
2418 (amd64_linux_new_thread): Renamed to
2419 x86_linux_new_thread. All uses updated.
2420 (amd64_linux_new_fork): Renamed to
2421 x86_linux_new_fork. All uses updated.
2422 (amd64_linux_child_post_startup_inferior): Renamed to
2423 x86_linux_child_post_startup_inferior. All uses updated.
2424 (amd64_linux_enable_btrace): Renamed to
2425 x86_linux_enable_btrace. All uses updated.
2426 (amd64_linux_disable_btrace): Renamed to
2427 x86_linux_disable_btrace. All uses updated.
2428 (amd64_linux_teardown_btrace): Renamed to
2429 x86_linux_teardown_btrace. All uses updated.
2430 (amd64_linux_read_btrace): Renamed to
2431 x86_linux_read_btrace. All uses updated.
2432 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2433 x86_linux_dr_get. All uses updated.
2434 (i386_linux_dr_set): Renamed to
2435 x86_linux_dr_set. All uses updated.
2436 (i386_linux_dr_get_addr): Renamed to
2437 x86_linux_dr_get_addr. All uses updated.
2438 (i386_linux_dr_get_control): Renamed to
2439 x86_linux_dr_get_control. All uses updated.
2440 (i386_linux_dr_get_status): Renamed to
2441 x86_linux_dr_get_status. All uses updated.
2442 (i386_linux_dr_set_control): Renamed to
2443 x86_linux_dr_set_control. All uses updated.
2444 (i386_linux_dr_set_addr): Renamed to
2445 x86_linux_dr_set_addr. All uses updated.
2446 (i386_linux_prepare_to_resume): Renamed to
2447 x86_linux_prepare_to_resume. All uses updated.
2448 (i386_linux_new_thread): Renamed to
2449 x86_linux_new_thread. All uses updated.
2450 (i386_linux_new_fork): Renamed to
2451 x86_linux_new_fork. All uses updated.
2452 (i386_linux_child_post_startup_inferior): Renamed to
2453 x86_linux_child_post_startup_inferior. All uses updated.
2454 (i386_linux_enable_btrace): Renamed to
2455 x86_linux_enable_btrace. All uses updated.
2456 (i386_linux_disable_btrace): Renamed to
2457 x86_linux_disable_btrace. All uses updated.
2458 (i386_linux_teardown_btrace): Renamed to
2459 x86_linux_teardown_btrace. All uses updated.
2460 (i386_linux_read_btrace): Renamed to
2461 x86_linux_read_btrace. All uses updated.
2463 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2465 * remote.c (extended_remote_post_attach): New function.
2466 (init_extended_remote_ops): Install it as to_post_attach method.
2468 2014-07-09 Pedro Alves <palves@redhat.com>
2470 * infcmd.c (attach_command_post_wait): Don't call
2471 target_terminal_inferior here.
2472 (attach_command): Call it here instead.
2474 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2476 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2478 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2479 from varobj.c, with additional checks.
2480 (c_varobj_ops): Fill in is_path_expr_parent field.
2481 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2482 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2484 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2486 (varobj_default_is_path_expr_parent): New function.
2487 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2488 (varobj_default_is_path_expr_parent): Declare new function.
2490 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2492 * infcmd.c (finish_backward): Turn internal error into normal error.
2494 2014-07-07 Pedro Alves <palves@redhat.com>
2497 * remote.c (async_handle_remote_sigint)
2498 (async_handle_remote_sigint_twice): Call
2499 gdb_call_async_signal_handler instead of
2500 mark_async_signal_handler.
2502 2014-07-07 Tom Tromey <tromey@redhat.com>
2504 * target-delegates.c: Rebuild.
2505 * target.c (target_info_record): Remove.
2506 * record.c (info_record_command): Unconditionally call
2508 * target.h (struct target_ops) <to_info_record>: Use
2509 TARGET_DEFAULT_IGNORE.
2510 (target_info_record): Remove.
2512 2014-07-07 Tom Tromey <tromey@redhat.com>
2514 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2515 TARGET_DEFAULT_NORETURN.
2516 * target.c (generic_tls_error): New function.
2517 (target_translate_tls_address): Don't search target stack.
2518 * target-delegates.c: Rebuild.
2519 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2521 * linux-thread-db.c (thread_db_get_thread_local_address):
2522 Unconditionally call beneath target.
2524 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2526 * cli/cli-logging.c (pop_output_files): Assign targerr to
2529 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2531 * MAINTAINERS (Write After Approval): Update my email address.
2533 2014-07-02 Gary Benson <gbenson@redhat.com>
2535 * proc-service.c (ps_xfer_memory): Update comment.
2536 (ps_pstop): Remove unused function.
2537 (ps_pcontinue): Likewise.
2538 (ps_lstop): Likewise.
2539 (ps_lcontinue): Likewise.
2540 (ps_lgetxregsize): Likewise.
2541 (ps_lgetxregs): Likewise.
2542 (ps_lsetxregs): Likewise.
2543 (ps_plog): Likewise.
2544 (ps_ptread): Likewise.
2545 (ps_ptwrite): Likewise.
2547 2014-07-01 Mark Wielaard <mjw@redhat.com>
2549 * dwarf2read.c (add_array_cv_type): New function.
2550 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2551 (read_tag_volatile_type): Likewise.
2553 2014-07-01 Tom Tromey <tromey@redhat.com>
2555 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2556 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2557 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2558 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2559 * command.h (cmd_cfunc_ftype): Move earlier.
2560 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2561 (add_com, add_info): Use cmd_cfunc_ftype.
2563 2014-06-30 Tom Tromey <tromey@redhat.com>
2565 * symtab.c (operator_chars): Make parameters and return type
2567 (file_matches): Make "files" const.
2568 (struct search_symbols_data) <files>: Now const.
2569 (search_symbols): Make "regexp" and "files" parameters const.
2571 (symtab_symbol_info): Remove cast.
2572 (rbreak_command): Update.
2573 * symtab.h (search_symbols): Update.
2575 2014-06-27 Yao Qi <yao@codesourcery.com>
2577 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2578 Change parameter type to 'struct thread_info *'. Caller
2580 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2582 * dummy-frame.c (struct dummy_frame_id): New.
2583 (dummy_frame_id_eq): New function.
2584 (struct dummy_frame) <id>: Change its type to 'struct
2586 (dummy_frame_push): Add parameter ptid and save it in
2588 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2590 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2592 (lookup_dummy_frame): Change parameter type to 'struct
2593 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2594 instead of frame_id_eq.
2595 (dummy_frame_pop): Add parameter ptid. Callers updated.
2596 Update comments. Compose dummy_frame_id and pass it to
2598 (dummy_frame_discard): Add parameter ptid.
2599 (dummy_frame_sniffer): Compose dummy_frame_id and call
2600 dummy_frame_id_eq instead of frame_id_eq.
2601 (fprint_dummy_frames): Print ptid.
2602 * dummy-frame.h: Remove comments.
2603 (dummy_frame_push): Add ptid in declaration.
2604 (dummy_frame_pop, dummy_frame_discard): Likewise.
2606 2014-06-26 Tom Tromey <tromey@redhat.com>
2608 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2609 * command.h (error_no_arg): Update.
2611 2014-06-26 Tom Tromey <tromey@redhat.com>
2613 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2614 (do_show_command): Make "arg" const.
2615 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2617 2014-06-26 Tom Tromey <tromey@redhat.com>
2619 * record-full.c (record_full_get_bookmark): Make "args" const.
2620 (record_full_goto_bookmark): Make "raw_bookmark" const.
2621 * record.c (record_goto): New function.
2622 (cmd_record_goto): Use it. Now static.
2623 * record.h (record_goto): Declare.
2624 (cmd_record_goto): Remove declaration.
2625 * target-delegates.c: Rebuild.
2626 * target.h (struct target_ops) <to_get_bookmark,
2627 to_goto_bookmark>: Make parameter const.
2629 2014-06-26 Tom Tromey <tromey@redhat.com>
2631 * defs.h (generic_load): Update.
2632 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2633 * monitor.c (monitor_load): Make "args" const.
2634 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2635 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2637 (mips_load): Make "file" const.
2638 * remote-sim.c (gdbsim_load): Make "args" const.
2639 * remote.c (remote_load): Make "name" const.
2640 * symfile.c (generic_load): Make "args" const.
2641 * target-delegates.c: Rebuild.
2642 * target.c (target_load): Make "arg" const.
2643 (debug_to_load): Make "args" const.
2644 * target.h (struct target_ops) <to_load>: Make parameter const.
2645 (target_load): Update.
2647 2014-06-26 Tom Tromey <tromey@redhat.com>
2650 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2651 (dwarf2_physname, read_partial_die)
2652 (guess_partial_die_structure_name, fixup_partial_die)
2653 (guess_full_die_structure_name, anonymous_struct_prefix)
2654 (dwarf2_name): Use per-BFD obstack.
2656 2014-06-26 Yao Qi <yao@codesourcery.com>
2658 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2659 dummyframe and this_id into inner block below.
2661 2014-06-26 Yao Qi <yao@codesourcery.com>
2663 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2664 with "signal_pass[0]" in the initialization of signal_pass.
2666 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2668 * record-btrace.c (record_btrace_generating_corefile)
2669 (record_btrace_prepare_to_generate_core)
2670 (record_btrace_done_generating_core): New.
2671 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2672 (record_btrace_store_registers, record_btrace_prepare_to_store):
2673 Forward request when generating a core file.
2674 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2675 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2676 to_done_generating_core.
2678 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2680 * target.h (target_ops) <to_prepare_to_generate_core>
2681 <to_done_generating_core>: New.
2682 (target_prepare_to_generate_core, target_done_generating_core): New.
2683 * target.c (target_prepare_to_generate_core)
2684 (target_done_generating_core): New.
2685 * target-delegates.c: Regenerate.
2686 * gcore.c: (write_gcore_file): Rename to ...
2687 (write_gcore_file_1): ...this.
2688 (write_gcore_file): Call target_prepare_to_generate_core
2689 and target_done_generating_core.
2691 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2693 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2694 * gcore.c (write_gcore_file): Free memory returned from
2695 make_corefile_notes.
2696 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2697 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2699 2014-06-24 Yao Qi <yao@codesourcery.com>
2701 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2702 (arm_linux_init_abi): Set skip_trampoline_code with
2703 gdbarch_skip_trampoline_code instead of
2704 find_solib_trampoline_target.
2706 2014-06-24 Yao Qi <yao@codesourcery.com>
2708 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2709 arm_skip_bx_reg returns non-zero.
2711 2014-06-24 Yao Qi <yao@codesourcery.com>
2713 * arm-tdep.c (arm_skip_bx_reg): New function.
2714 (arm_skip_stub): Call arm_skip_bx_reg.
2716 2014-06-23 Don Breazeal <donb@codesourcery.com>
2718 * MAINTAINERS: Add myself as write-after-approval maintainer.
2720 2014-06-23 Pedro Alves <palves@redhat.com>
2722 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2723 DR_CONTROL before setting DR0..DR3.
2724 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2725 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2726 bits of DR_CONTROL related to the debug register slot being
2727 disabled. If all slots are vacant, clear local slowdown as well,
2728 and assert DR_CONTROL is 0.
2730 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2732 * python/lib/gdb/command/xmethods.py
2733 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2734 current progspace only if the string "progspace" matches LOCUS_RE.
2736 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2738 Fix --with-system-readline with readline-6.3 patch 5.
2739 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2740 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2743 2014-06-20 Tom Tromey <tromey@redhat.com>
2745 * dwarf2read.c (dw2_get_real_path): Use correct type in
2747 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2749 2014-06-20 Gary Benson <gbenson@redhat.com>
2751 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2752 * common/glibc_thread_db.h: Likewise.
2753 * common/i386-cpuid.h: Likewise.
2754 * common/i386-gcc-cpuid.h: Likewise.
2755 * common/linux-btrace.h: Likewise.
2756 * common/linux-osdata.h: Likewise.
2757 * common/linux-procfs.h: Likewise.
2758 * common/linux-ptrace.h: Likewise.
2759 * common/mips-linux-watch.h: Likewise.
2760 * common/linux-btrace.c: Moved to nat.
2761 * common/linux-osdata.c: Likewise.
2762 * common/linux-procfs.c: Likewise.
2763 * common/linux-ptrace.c: Likewise.
2764 * common/mips-linux-watch.c: Likewise.
2765 * nat/gdb_thread_db.h: Moved from common.
2766 * nat/glibc_thread_db.h: Likewise.
2767 * nat/i386-cpuid.h: Likewise.
2768 * nat/i386-gcc-cpuid.h: Likewise.
2769 * nat/linux-btrace.c: Likewise.
2770 * nat/linux-btrace.h: Likewise.
2771 * nat/linux-osdata.c: Likewise.
2772 * nat/linux-osdata.h: Likewise.
2773 * nat/linux-procfs.c: Likewise.
2774 * nat/linux-procfs.h: Likewise.
2775 * nat/linux-ptrace.c: Likewise.
2776 * nat/linux-ptrace.h: Likewise.
2777 * nat/mips-linux-watch.c: Likewise.
2778 * nat/mips-linux-watch.h: Likewise.
2779 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2780 (object file files): Reordered.
2781 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2782 of glibc_thread_db.h.
2784 2014-06-20 Gary Benson <gbenson@redhat.com>
2786 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2787 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2788 (i386_dr_low): Likewise.
2789 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2790 (i386_dr_low_set_addr): Likewise.
2791 (i386_dr_low_get_addr): Likewise.
2792 (i386_dr_low_can_set_control): Likewise.
2793 (i386_dr_low_set_control): Likewise.
2794 (i386_dr_low_get_control): Likewise.
2795 (i386_dr_low_get_status): Likewise.
2796 (i386_get_debug_register_length): Likewise.
2797 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2798 (i386_dr_low): Likewise.
2799 * nat/i386-dregs.c (i386-low.h): Remove include.
2800 (i386-nat.h): Likewise.
2801 (nat/i386-dregs.h): New include.
2802 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2803 (i386_dr_low_set_addr): Likewise.
2804 (i386_dr_low_get_addr): Likewise.
2805 (i386_dr_low_can_set_control): Likewise.
2806 (i386_dr_low_set_control): Likewise.
2807 (i386_dr_low_get_control): Likewise.
2808 (i386_dr_low_get_status): Likewise.
2809 (i386_get_debug_register_length): Likewise.
2810 (debug_hw_points): Likewise.
2812 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2814 * Makefile.in (SFILES): Add d-exp.y.
2815 (YYFILES): Add d-exp.c.
2816 (YYOBJ): Add d-exp.o.
2817 (local-maintainer-clean): Delete d-exp.c.
2818 * d-exp.y: New file.
2819 * d-lang.h (d_parse): New declaration.
2820 (d_error): New declaration.
2821 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2822 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2823 PREC_ORDER operators.
2824 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2826 2014-06-19 Yao Qi <yao@codesourcery.com>
2828 * gdbthread.h (any_running): Remove the declaration.
2829 * thread.c (any_running): Remove.
2831 2014-06-19 Yao Qi <yao@codesourcery.com>
2833 * gdbthread.h (struct thread_info) <state>: Change its type to
2834 'enum thread_state'. Update comments.
2836 2014-06-19 Pedro Alves <palves@redhat.com>
2838 * gdbthread.h (ALL_THREADS): Delete.
2839 (ALL_NON_EXITED_THREADS): New macro.
2840 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2841 instead of ALL_THREADS.
2842 * infrun.c (find_thread_needs_step_over)
2843 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2844 instead of ALL_THREADS.
2845 * record-btrace.c (record_btrace_open)
2846 (record_btrace_stop_recording, record_btrace_close)
2847 (record_btrace_is_replaying, record_btrace_resume)
2848 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2849 * remote.c (append_pending_thread_resumptions): Likewise.
2850 * thread.c (thread_apply_all_command): Likewise.
2852 2014-06-19 Gary Benson <gbenson@redhat.com>
2854 * i386-nat.c (i386_stopped_by_watchpoint):
2855 Use i386_dr_stopped_by_watchpoint.
2856 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2857 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2859 2014-06-19 Gary Benson <gbenson@redhat.com>
2861 * nat/i386-dregs.c: New file.
2862 * Makefile.in (i386-dregs.o): New rule.
2863 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2864 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2865 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2866 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2867 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2868 * config/i386/go32.mh (NATDEPFILES): Likewise.
2869 * config/i386/linux.mh (NATDEPFILES): Likewise.
2870 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2871 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2872 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2873 * i386-nat.h (debug_hw_points): New declaration.
2874 * i386-nat.c (breakpoint.h): Remove include.
2875 (command.h): Likewise.
2876 (target.h): Likewise.
2877 (gdb_assert.h): Likewise.
2878 (debug_hw_points): Made nonstatic.
2879 (debug_printf): Now in i386-dregs.c.
2880 (TARGET_HAS_DR_LEN_8): Likewise.
2881 (DR_CONTROL_SHIFT): Likewise.
2882 (DR_CONTROL_SIZE): Likewise.
2883 (DR_RW_EXECUTE): Likewise.
2884 (DR_RW_WRITE): Likewise.
2885 (DR_RW_READ): Likewise.
2886 (DR_RW_IORW): Likewise.
2887 (DR_LEN_1): Likewise.
2888 (DR_LEN_2): Likewise.
2889 (DR_LEN_4): Likewise.
2890 (DR_LEN_8): Likewise.
2891 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2892 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2893 (DR_ENABLE_SIZE): Likewise.
2894 (DR_LOCAL_SLOWDOWN): Likewise.
2895 (DR_GLOBAL_SLOWDOWN): Likewise.
2896 (DR_CONTROL_RESERVED): Likewise.
2897 (I386_DR_CONTROL_MASK): Likewise.
2898 (I386_DR_VACANT): Likewise.
2899 (I386_DR_LOCAL_ENABLE): Likewise.
2900 (I386_DR_GLOBAL_ENABLE): Likewise.
2901 (I386_DR_DISABLE): Likewise.
2902 (I386_DR_SET_RW_LEN): Likewise.
2903 (I386_DR_GET_RW_LEN): Likewise.
2904 (I386_DR_WATCH_HIT): Likewise.
2905 (i386_wp_op_t): Likewise.
2906 (i386_show_dr): Likewise.
2907 (i386_length_and_rw_bits): Likewise.
2908 (i386_insert_aligned_watchpoint): Likewise.
2909 (i386_remove_aligned_watchpoint): Likewise.
2910 (i386_handle_nonaligned_watchpoint): Likewise.
2911 (i386_update_inferior_debug_regs): Likewise.
2912 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2913 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2914 (i386_region_ok_for_watchpoint):
2915 Use i386_dr_region_ok_for_watchpoint.
2916 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2918 2014-06-19 Gary Benson <gbenson@redhat.com>
2920 * i386-nat.c (i386_insert_hw_breakpoint): Use
2921 i386_insert_watchpoint.
2922 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2924 2014-06-19 Gary Benson <gbenson@redhat.com>
2926 * i386-nat.c (i386_dr_show): Renamed to
2927 i386_show_dr and made static. All uses updated.
2928 (i386_dr_length_and_rw_bits): Renamed to
2929 i386_length_and_rw_bits and made static.
2931 (i386_dr_insert_aligned_watchpoint): Renamed to
2932 i386_insert_aligned_watchpoint and made static.
2934 (i386_dr_remove_aligned_watchpoint): Renamed to
2935 i386_remove_aligned_watchpoint and made static.
2937 (i386_dr_update_inferior_debug_regs): Renamed to
2938 i386_update_inferior_debug_regs and made static.
2940 * nat/i386-dregs.h (i386_dr_show): Removed.
2941 (i386_dr_length_and_rw_bits): Likewise.
2942 (i386_dr_insert_aligned_watchpoint): Likewise.
2943 (i386_dr_remove_aligned_watchpoint): Likewise.
2944 (i386_dr_update_inferior_debug_regs): Likewise.
2946 2014-06-19 Gary Benson <gbenson@redhat.com>
2948 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2949 * configure: Regenerate.
2950 * config.in: Likewise.
2951 * main.c (signal.h): New include.
2952 (setup_alternate_signal_stack): New function.
2953 (captured_main): Call the above.
2954 * cp-support.c (signal.h): New include.
2955 (catch_demangler_crashes): New flag.
2956 (SIGJMP_BUF): New define.
2957 (SIGSETJMP): Likewise.
2958 (SIGLONGJMP): Likewise.
2959 (gdb_demangle_jmp_buf): New static global.
2960 (gdb_demangle_attempt_core_dump): Likewise.
2961 (gdb_demangle_signal_handler): New function.
2962 (gdb_demangle): If catch_demangler_crashes is set, install the
2963 above signal handler before calling bfd_demangle, and restore
2964 the original signal handler afterwards. Display the offending
2965 symbol and call demangler_warning the first time a segmentation
2967 (_initialize_cp_support): New maint set/show command.
2969 2014-06-19 Gary Benson <gbenson@redhat.com>
2971 * utils.h (resource_limit_kind): New enum.
2972 (can_dump_core): New declaration.
2973 (warn_cant_dump_core): Likewise.
2974 (dump_core): Likewise.
2975 * utils.c (dump_core): Made nonstatic. Added new
2976 parameter "limit_kind".
2977 (can_dump_core): Made nonstatic. Moved printing code to...
2978 (warn_cant_dump_core): New function.
2979 (can_dump_core_warn): Likewise.
2980 (internal_vproblem): Replace calls to can_dump_core with
2981 calls to can_dump_core_warn. Supply new argument to each.
2983 2014-06-19 Gary Benson <gbenson@redhat.com>
2985 * utils.h (demangler_vwarning): New declaration.
2986 (demangler_warning): Likewise.
2987 * utils.c (struct internal_problem)
2988 <user_settable_should_quit>: New field.
2989 <user_settable_should_dump_core>: Likewise
2990 (internal_error_problem): Add values for above new fields.
2991 (internal_warning_problem): Likewise.
2992 (demangler_warning_problem): New static global.
2993 (demangler_vwarning): New function.
2994 (demangler_warning): Likewise.
2995 (add_internal_problem_command): Selectively add commands.
2996 (_initialize_utils): New internal problem command.
2997 * maint.c (maintenance_demangler_warning): New function.
2998 (_initialize_maint_cmds): New command.
3000 2014-06-18 Tom Tromey <tromey@redhat.com>
3002 * f-valprint.c (info_common_command_for_block): Update.
3003 * symtab.h (struct general_symbol_info) <common_block>: Now
3006 2014-06-18 Tom Tromey <tromey@redhat.com>
3008 * symtab.h (struct symtab) <blockvector>: Now const.
3009 * ada-lang.c (ada_add_global_exceptions): Update.
3010 * buildsym.c (augment_type_symtab): Update.
3011 * dwarf2read.c (dw2_lookup_symbol): Update.
3012 * jit.c (finalize_symtab): Update.
3013 * jv-lang.c (add_class_symtab_symbol): Update.
3014 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3016 * objfiles.c (objfile_relocate1): Update.
3017 * psymtab.c (lookup_symbol_aux_psymtabs)
3018 (maintenance_check_psymtabs): Update.
3019 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3021 * spu-tdep.c (spu_catch_start): Update.
3022 * symmisc.c (dump_symtab_1): Update.
3023 * symtab.c (lookup_global_symbol_from_objfile)
3024 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3025 (basic_lookup_transparent_type_quick)
3026 (basic_lookup_transparent_type, find_pc_sect_symtab)
3027 (find_pc_sect_line, search_symbols): Update.
3028 * block.c (find_block_in_blockvector): Make "bl" const.
3029 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3031 (blockvector_contains_pc): Make "bv" const.
3032 (block_for_pc_sect): Update.
3033 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3034 (blockvector_contains_pc): Update.
3035 * breakpoint.c (resolve_sal_pc): Update.
3036 * inline-frame.c (block_starting_point_at): Update.
3038 2014-06-18 Tom Tromey <tromey@redhat.com>
3040 * completer.c (complete_line): Make "line_buffer" const.
3041 * completer.h (complete_line): Update.
3043 2014-06-18 Tom Tromey <tromey@redhat.com>
3045 * symtab.c (add_macro_name): Remove unneeded cast.
3047 2014-06-18 Tom Tromey <tromey@redhat.com>
3049 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3050 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3052 2014-06-18 Tom Tromey <tromey@redhat.com>
3054 * probe.c (info_probes_for_ops): Make "arg" const.
3055 * probe.h (info_probes_for_ops): Update.
3057 2014-06-18 Tom Tromey <tromey@redhat.com>
3059 * varobj.c (varobj_create): Update.
3060 * valops.c (value_of_this): Update.
3061 * tracepoint.c (add_local_symbols, scope_info): Update.
3062 * symtab.h (struct general_symbol_info) <block>: Now const.
3063 * symtab.c (skip_prologue_sal)
3064 (default_make_symbol_completion_list_break_on)
3065 (skip_prologue_using_sal): Update.
3066 * stack.h (iterate_over_block_locals)
3067 (iterate_over_block_local_vars): Update.
3068 * stack.c (print_frame_args): Update.
3069 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3071 (get_selected_block): Make return type const.
3072 * python/py-frame.c (frapy_block): Update.
3073 * python/py-block.c (gdbpy_block_for_pc): Update.
3074 * p-exp.y (%union) <bval>: Now const.
3075 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3076 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3077 * m2-exp.y (%union) <bval>: Now const.
3078 * linespec.c (get_current_search_block): Make return type const.
3079 (create_sals_line_offset, find_label_symbols): Update.
3080 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3082 (block_starting_point_at): Make "block" const.
3083 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3084 (check_exception_resume): Update.
3085 * guile/scm-frame.c (gdbscm_frame_block): Update.
3086 * guile/scm-block.c (gdbscm_lookup_block): Update.
3087 * frame.h (get_frame_block): Update.
3088 (get_selected_block): Make return type const.
3089 * frame.c (frame_id_inner): Update.
3090 * f-valprint.c (info_common_command_for_block)
3091 (info_common_command): Update.
3092 * dwarf2loc.c (dwarf2_find_location_expression)
3093 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3094 (locexpr_describe_location_piece): Update.
3095 * c-exp.y (%union) <bval>: Now const.
3096 * breakpoint.c (resolve_sal_pc): Update.
3097 * blockframe.c (get_frame_block):Make return type const.
3098 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3099 (block_innermost_frame): Update.
3100 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3101 (block_for_pc, block_for_pc_sect): Update.
3102 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3104 (block_for_pc_sect, block_for_pc): Make return type const.
3105 * ax-gdb.c (gen_expr): Update.
3106 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3107 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3108 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3109 (ada_read_var_value): Update.
3110 * ada-exp.y (struct name_info) <block>: Now const.
3112 (block_lookup): Constify.
3114 2014-06-18 Gary Benson <gbenson@redhat.com>
3116 * nat/i386-dregs.h: New file.
3117 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3118 * i386-nat.h (i386-dregs.h): New include.
3119 (DR_FIRSTADDR): Now in i386-dregs.h.
3120 (DR_LASTADDR): Likewise.
3121 (DR_NADDR): Likewise.
3122 (DR_STATUS): Likewise.
3123 (DR_CONTROL): Likewise.
3124 (i386_debug_reg_state): Likewise.
3125 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3127 2014-06-18 Don Breazeal <donb@codesourcery.com>
3129 * breakpoint.c (set_longjmp_breakpoint): Call
3130 momentary_breakpoint_from_master with additional argument.
3131 (set_longjmp_breakpoint_for_call_dummy): Call
3132 momentary_breakpoint_from_master with additional argument.
3133 (set_std_terminate_breakpoint): Call
3134 momentary_breakpoint_from_master with additional argument.
3135 (momentary_breakpoint_from_master): Add argument to function
3136 definition and use it to initialize structure member flag.
3137 (clone_momentary_breakpoint): Call
3138 momentary_breakpoint_from_master with additional argument.
3139 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3140 member flags set in momentary_breakpoint_from_master.
3142 2014-06-18 Gary Benson <gbenson@redhat.com>
3144 * i386-nat.c (i386_show_dr): Renamed to
3145 i386_dr_show and made nonstatic. All uses updated.
3146 (i386_length_and_rw_bits): Renamed to
3147 i386_dr_length_and_rw_bits and made nonstatic.
3149 (i386_insert_aligned_watchpoint): Renamed to
3150 i386_dr_insert_aligned_watchpoint and made nonstatic.
3152 (i386_remove_aligned_watchpoint): Renamed to
3153 i386_dr_remove_aligned_watchpoint and made nonstatic.
3155 (i386_update_inferior_debug_regs): Renamed to
3156 i386_dr_update_inferior_debug_regs and made nonstatic.
3159 2014-06-18 Gary Benson <gbenson@redhat.com>
3161 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3162 (i386_dr_low_can_set_control): Likewise.
3163 (i386_dr_low_set_addr): Likewise.
3164 (i386_dr_low_set_control): Likewise.
3165 (i386_dr_low_get_addr): Likewise.
3166 (i386_dr_low_get_status): Likewise.
3167 (i386_dr_low_get_control): Likewise.
3168 (i386_insert_aligned_watchpoint): Use new macros.
3169 (i386_update_inferior_debug_regs): Likewise.
3170 (i386_stopped_data_address): Likewise.
3172 2014-06-18 Gary Benson <gbenson@redhat.com>
3174 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3175 New parameter. All uses updated.
3177 2014-06-18 Gary Benson <gbenson@redhat.com>
3179 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3182 2014-06-18 Gary Benson <gbenson@redhat.com>
3184 * i386-nat.c (debug_printf): New macro.
3185 (i386_get_debug_register_length): Likewise.
3186 (TARGET_HAS_DR_LEN_8): Use above macro.
3187 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3188 and printf_unfiltered. Use phex to format values.
3190 2014-06-18 Gary Benson <gbenson@redhat.com>
3192 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3195 2014-06-18 Gary Benson <gbenson@redhat.com>
3197 * i386-nat.c: Comment changes.
3199 2014-06-18 Gary Benson <gbenson@redhat.com>
3201 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3203 2014-06-18 Gary Benson <gbenson@redhat.com>
3205 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3206 (i386_insert_aligned_watchpoint): Likewise.
3207 (i386_remove_aligned_watchpoint): Likewise.
3208 (i386_handle_nonaligned_watchpoint): Likewise.
3210 2014-06-18 Gary Benson <gbenson@redhat.com>
3212 * i386-nat.c: Whitespace changes.
3214 2014-06-17 Samuel Bronson <naesten@gmail.com>
3216 * MAINTAINERS: Update Roland McGrath's email address.
3217 Thanks to Sergio Durigan Junior for pointing out that he left
3218 Red Hat a while ago, and giving me a current address.
3220 2014-06-17 Tom Tromey <tromey@redhat.com>
3222 * utils.h (savestring): Remove declaration.
3224 2014-06-17 Tom Tromey <tromey@redhat.com>
3226 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3228 2014-06-16 Keith Seitz <keiths@redhat.com>
3231 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3232 to update the varobj if inferior_ptid is null_ptid.
3234 2014-06-16 Tom Tromey <tromey@redhat.com>
3236 * target.h (struct target_ops) <to_info_proc>: Make parameter
3238 (target_info_proc): Update.
3239 * target.c (target_info_proc): Make "args" const.
3240 * procfs.c (procfs_info_proc): Update.
3241 * linux-tdep.c (linux_info_proc): Update.
3242 (linux_core_info_proc_mappings): Make "args" const.
3243 (linux_core_info_proc): Update.
3244 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3245 * gdbarch.c: Rebuild.
3246 * gdbarch.h: Rebuild.
3247 * corelow.c (core_info_proc): Update.
3249 2014-06-16 Tom Tromey <tromey@redhat.com>
3251 * target.h (struct target_ops) <to_disconnect>: Make parameter
3253 (target_disconnect): Update.
3254 * target.c (target_disconnect): Make "args" const.
3255 * target-delegates.c: Rebuild.
3256 * remote.c (remote_disconnect): Update.
3257 * record.h (record_disconnect): Update.
3258 * record.c (record_disconnect): Update.
3259 * inf-child.c (inf_child_disconnect): Update.
3261 2014-06-16 Tom Tromey <tromey@redhat.com>
3263 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3264 * target.c (debug_to_rcmd, default_rcmd): Update.
3265 * target-delegates.c: Rebuild.
3266 * remote.c (remote_rcmd): Update.
3267 * monitor.c (monitor_rcmd): Update.
3269 2014-06-16 Pedro Alves <palves@redhat.com>
3271 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3272 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3273 have OBJF_SHARED set.
3274 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3275 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3276 instead of OBJF_USERLOADED.
3277 * objfiles.h (OBJF_SHARED): Update comment.
3278 (userloaded_objfile_contains_address_p): Rename to ...
3279 (shared_objfile_contains_address_p): ... this, and update
3281 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3283 (remove_symbol_file_command): Skip objfiles that don't have
3286 2014-06-16 Tom Tromey <tromey@redhat.com>
3288 * minsyms.h (prim_record_minimal_symbol)
3289 (prim_record_minimal_symbol_and_info): Update comments.
3291 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3293 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3294 or --without-guile, according to how GDB was built.
3296 2014-06-13 Tom Tromey <tromey@redhat.com>
3298 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3300 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3302 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3304 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3305 help_list.Pass all_commands, not -1, to help_list.
3306 * cli/cli-dump.c (dump_command, append_command)
3307 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3308 (binary_dump_command, binary_append_command): Pass all_commands,
3309 not -1, to help_list.
3310 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3312 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3314 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3316 * top.c (set_history): Pass all_commands, not -1, to help_list.
3317 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3318 all_commands, not -1, to help_list.
3319 * symfile.c (overlay_command): Pass all_commands, not -1, to
3321 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3323 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3325 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3327 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3328 not -1, to help_list.
3329 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3330 not -1, to help_list.
3331 * maint.c (maintenance_command, maintenance_info_command)
3332 (maintenance_print_command, maintenance_set_cmd): Pass
3333 all_commands, not -1, to help_list.
3334 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3336 * language.c (set_check): Pass all_commands, not -1, to help_list.
3337 * infcmd.c (unset_command): Pass all_commands, not -1, to
3339 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3341 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3343 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3345 * breakpoint.c (save_command): Pass all_commands, not -1, to
3347 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3348 all_commands, not -1, to help_list.
3350 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3352 * regcache.c (struct register_to_invalidate): New structure.
3353 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3355 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3357 2014-06-12 Yao Qi <yao@codesourcery.com>
3359 * varobj.c (varobj_get_num_children): Call
3360 varobj_is_dynamic_p.
3361 (varobj_list_children): Likewise.
3362 (varobj_update): Likewise. Update comments.
3364 2014-06-12 Yao Qi <yao@codesourcery.com>
3366 * varobj.c (varobj_pretty_printed_p): Rename to ...
3367 (varobj_is_dynamic_p): ... this. New function.
3368 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3369 (varobj_is_dynamic_p): Declare.
3370 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3371 (mi_print_value_p, varobj_update_one): Likewise.
3373 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3374 Yao Qi <yao@codesourcery.com>
3376 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3377 (varobj_get_iterator): Wrap up code for pretty-printer by
3378 "#if HAVE_PYTHON" and "#endif".
3379 (update_dynamic_varobj_children): Likewise.
3381 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3382 Yao Qi <yao@codesourcery.com>
3384 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3385 gdb_python_initialized is false. Move some code from varobj.c.
3386 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3387 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3388 (struct varobj_item): Moved to varobj-iter.h".
3389 (varobj_clear_saved_item): New function.
3390 (update_dynamic_varobj_children): Move python-related code to
3392 (free_variable): Call varobj_clear_saved_item and
3395 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3396 Yao Qi <yao@codesourcery.com>
3398 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3399 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3400 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3401 (py-varobj.o): New rule.
3402 * python/py-varobj.c: New file.
3403 * python/python-internal.h (py_varobj_get_iterator): Declare.
3404 * varobj-iter.h: New file.
3405 * varobj.c: Include "varobj-iter.h"
3406 (struct varobj) <child_iter>: Change its type from "PyObject *"
3407 to "struct varobj_iter *".
3408 <saved_item>: Likewise.
3409 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3410 [HAVE_PYTHON] (varobj_get_iterator): New function.
3411 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3412 python-specific code to python/py-varobj.c.
3413 (install_visualizer): Call varobj_iter_delete instead of
3415 * varobj.h (varobj_ensure_python_env): Declare.
3417 2014-06-12 Yao Qi <yao@codesourcery.com>
3419 * varobj.c (struct varobj_item): New structure.
3420 (create_child_with_value): Update declaration.
3421 (varobj_add_child): Replace arguments 'name' and 'value' with
3422 'item'. All callers updated.
3423 (install_dynamic_child): Likewise.
3424 (update_dynamic_varobj_children): Likewise.
3425 (varobj_add_child): Likewise.
3426 (create_child_with_value): Likewise.
3428 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3430 * NEWS: Create a new section for the next release branch.
3431 Rename the section of the current branch, now that it has
3434 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3436 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3437 * version.in: Bump version to 7.8.50.DATE-cvs.
3439 2014-06-11 Pedro Alves <palves@redhat.com>
3442 * ser-mingw.c (net_windows_socket_check_pending): New function.
3443 (net_windows_select_thread): Ignore spurious wakeups. Use
3444 net_windows_socket_check_pending.
3445 (net_windows_wait_handle): Check for pending events with
3446 ioctlsocket, through net_windows_socket_check_pending, instead of
3447 checking the socket's event.
3449 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3451 * python/python-internal.h (gdb_PyObject_GetAttrString)
3452 (gdb_PyObject_HasAttrString): New inline function definitions.
3453 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3454 char * of the second argument to PyObject_GetAttrString.
3456 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3458 * serial.c (serial_write): Fix index of character to be printed
3459 in call to serial_logchar when serial debug traces are enabled.
3461 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3463 * gdbtypes (resolve_dynamic_range): Add function description.
3465 2014-06-09 Pedro Alves <palves@redhat.com>
3467 * linux-nat.c (linux_child_follow_fork): Initialize status with
3468 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3469 inner block. Only pass the signal to PTRACE_DETACH if in pass
3472 2014-06-09 Gary Benson <gbenson@redhat.com>
3474 * common/signals.c (gdb_signal_from_host): Reorder to separate
3475 the always-available ANSI-standard signals from the signals that
3477 (do_gdb_signal_to_host): Likewise.
3478 * proc-events.c (signal_table): Likewise.
3480 2014-06-08 Hui Zhu <hui@codesourcery.com>
3482 * common/linux-ptrace.c (linux_disable_event_reporting): New
3484 * common/linux-ptrace.h (linux_disable_event_reporting): New
3486 * linux-nat.c (linux_child_follow_fork): Do a single step before
3489 2014-06-07 Keith Seitz <keiths@redhat.com>
3493 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3494 from symbol_matches_domain in symtab.c. All local callers
3495 of symbol_matches_domain updated.
3496 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3497 search STRUCT_DOMAIN.
3498 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3499 independently. standard_lookup will do that automatically.
3500 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3501 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3502 (cp_lookup_symbol_in_namespace): Likewise.
3503 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3504 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3505 may return a STRUCT_DOMAIN match.
3506 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3507 * cp-support.c: Include language.h.
3508 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3510 * psymtab.c (match_partial_symbol): Compare the requested
3511 domain with the symbol's domain directly.
3512 (lookup_partial_symbol): Likewise.
3513 * symtab.c (lookup_symbol_in_language): Explain when/why
3514 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3515 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3516 appropriate languages.
3517 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3518 and moved to ada-lang.c
3519 (lookup_block_symbol): Explain that this function only returns
3520 symbol matching the requested DOMAIN.
3521 Compare the requested domain with the symbol's domain directly.
3522 (iterate_over_symbols): Compare the requested domain with the
3523 symbol's domain directly.
3524 * symtab.h (symbol_matches_domain): Remove.
3526 2014-06-06 Doug Evans <xdje42@gmail.com>
3528 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3529 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3530 (gdbscm_guile_version_is_at_least): Declare.
3531 (gdbscm_scm_string_to_int): Declare.
3532 * guile/guile.c (gdbscm_guile_major_version): New global.
3533 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3534 (guile_datadir): New static global.
3535 (gdbscm_guile_data_directory): New function.
3536 (initialize_scheme_side): Update.
3537 (misc_guile_functions): Add guile-data-directory.
3538 (initialize_gdb_module): Fetch guile version number.
3539 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3540 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3541 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3542 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3544 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3545 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3546 * guile/scm-value.c (gdbscm_value_to_string): Only call
3547 scm_port_conversion_strategy if Guile version >= 2.0.6.
3549 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3551 * main.c (print_gdb_help): Add -q and --silent.
3553 2014-06-06 Gary Benson <gbenson@redhat.com>
3555 * common/signals.c: Remove preprocessor conditionals for
3556 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3557 SIGSEGV and SIGTERM.
3558 * proc-events.c: Likewise.
3560 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3562 * symfile.c (symfile_free_objfile): Remove restriction to
3564 * symfile-mem.c (symbol_file_add_from_memory): Call
3565 add_target_sections_of_objfile.
3567 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3569 * guile/scm-value.c (gdbscm_history_append_x): Use
3570 'vlscm_get_value_smob_arg_unsafe' instead of
3571 'vlscm_scm_to_value'.
3573 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3576 * utils.c (printchar): Don't escape at all if quoter is NUL.
3577 Update function documentation to clarify effect of parameter
3579 * remote.c (escape_buffer): Pass '\\' as the quoter to
3580 fputstrn_unfiltered.
3581 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3582 generate the output.
3583 (mi_solib_unloaded): Same.
3585 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3587 * development.sh: Delete.
3588 * Makefile.in (config.status): Adjust dependency on development.sh.
3589 * configure.ac: Adjust development.sh source call.
3590 * configure: Regenerate.
3592 2014-06-04 Doug Evans <xdje42@gmail.com>
3594 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3595 is_scheme_bkpt, spec.
3596 (bpscm_make_breakpoint_smob): Initialize new members.
3597 (gdbscm_create_breakpoint_x): Split into two ...
3598 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3599 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3600 (scheme_function breakpoint_functions): Update.
3601 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3602 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3603 register-breakpoint!.
3605 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3608 * mem-break.c (z_type_supported): Return zero if
3609 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3611 2014-06-04 Tom Tromey <tromey@redhat.com>
3613 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3614 value_from_contents_and_address_unresolved.
3615 (ada_template_to_fixed_record_type_1): Likewise.
3616 (ada_which_variant_applies): Likewise.
3617 * value.h (value_from_contents_and_address_unresolved): Declare.
3618 * value.c (value_from_contents_and_address_unresolved): New
3620 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3621 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3622 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3624 2014-06-04 Tom Tromey <tromey@redhat.com>
3626 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3628 2014-06-04 Tom Tromey <tromey@redhat.com>
3630 * procfs.c (procfs_attach): Make "args" const.
3631 * windows-nat.c (windows_attach): Make "args" const.
3632 * nto-procfs.c (procfs_attach): Make "args" const.
3633 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3634 * go32-nat.c (go32_attach): Make "args" const.
3635 * gnu-nat.c (gnu_attach): Make "args" const.
3636 * darwin-nat.c (darwin_attach): Make "args" const.
3637 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3638 * linux-nat.c (linux_nat_attach): Make "args" const.
3639 * remote.c (extended_remote_attach_1, extended_remote_attach):
3641 * target.h (struct target_ops) <to_attach>: Make "args" const.
3642 (find_default_attach): Likewise.
3643 * utils.c (parse_pid_to_attach): Make "args" const.
3644 * utils.h (parse_pid_to_attach): Update.
3646 2014-06-04 Tom Tromey <tromey@redhat.com>
3648 * target-delegates.c: Rebuild.
3649 * target.c (default_thread_address_space): New function.
3650 (target_thread_address_space): Simplify.
3651 * target.h (struct target_ops) <to_thread_address_space>: Add
3652 TARGET_DEFAULT_FUNC.
3654 2014-06-04 Doug Evans <xdje42@gmail.com>
3656 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3658 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3660 * record-btrace.c: Include event-loop.h and inf-loop.h.
3661 (record_btrace_resume_exec_dir)
3662 (record_btrace_async_inferior_event_handler)
3663 (record_btrace_handle_async_inferior_event): New.
3664 (record_btrace_open): Create async event handler.
3665 (record_btrace_close): Delete async event handler.
3666 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3667 Mark async event handler.
3668 (record_btrace_execution_direction): New.
3669 (init_record_btrace_ops): Initialize to_execution_direction.
3671 2014-06-03 Doug Evans <xdje42@gmail.com>
3673 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3674 (gdbscm_make_parameter): Ditto.
3676 2014-06-03 Doug Evans <dje@google.com>
3678 * exec.c (exec_close_1): Call clear_section_table instead of
3679 resize_section_table.
3680 (clear_section_table): New function.
3681 (resize_section_table): Make static. Rename arg num_added to
3683 * exec.h (clear_section_table): Declare.
3684 (resize_section_table): Delete.
3685 * progspace.c (release_program_space): Call clear_section_table
3686 instead of resize_section_table.
3688 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3690 * NEWS (Python Scripting): Add entry about the new xmethods
3693 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3695 * python/py-xmethods.c: New file.
3696 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3697 (objfpy_dealloc): XDECREF on the new xmethods field.
3698 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3700 (objfpy_get_xmethods): New function.
3701 (objfile_getset): New entry 'xmethods'.
3702 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3703 (pspy_dealloc): XDECREF on the new xmethods field.
3704 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3706 (pspy_get_xmethods): New function.
3707 (pspace_getset): New entry 'xmethods'.
3708 * python/python-internal.h: Add declarations for new functions.
3709 * python/python.c (_initialize_python): Invoke
3710 gdbpy_initialize_xmethods.
3711 * python/lib/gdb/__init__.py (xmethods): New
3713 * python/lib/gdb/xmethod.py: New file.
3714 * python/lib/gdb/command/xmethods.py: New file.
3716 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3718 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3719 best match method returned by find_overload_match is an xmethod.
3720 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3721 the best matching operator returned by find_overload_match is an
3723 * valops.c: #include "extension.h".
3724 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3725 Return void. The list of matching source methods is returned in
3726 "fn_list" and a vector of matching debug method workers is
3727 returned in "xm_worker_vec". Update all callers.
3728 (value_find_oload_method_list): Likewise.
3729 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3730 non-NULL, then the index of the best matching method in this
3731 vector is returned. Update all callers.
3732 (find_overload_match): Include xmethods while performing overload
3735 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3737 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3738 * extension-priv.h (struct extension_language_ops): Add the
3740 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3741 get_matching_xmethod_workers, get_xmethod_argtypes,
3742 invoke_xmethod, free_xmethod_worker,
3743 free_xmethod_worker_vec): New functions.
3744 * extension.h: #include "common/vec.h".
3745 New function declarations.
3746 (struct xmethod_worker): New struct.
3747 (VEC (xmethod_worker_ptr)): New vector type.
3748 (xmethod_worker_ptr): New typedef.
3749 (xmethod_worker_vec): Likewise.
3750 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3752 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3753 (struct builtin_type): New field "xmethod".
3754 * valarith.c (value_ptradd): Assert that the value argument is not
3756 * valops.c (value_must_coerce_to_target): Return 0 for
3757 lval_xcallable values.
3758 * value.c (struct value): New field XM_WORKER in the field
3760 (value_address, value_raw_address): Return 0 for lval_xcallable
3762 (set_value_address): Assert that the value is not an
3764 (value_free): Free the associated xmethod worker when freeing
3765 lval_xcallable values.
3766 (set_value_component_location): Assert that the WHOLE value is not
3768 (value_of_xmethod, call_xmethod): New functions.
3769 * value.h: Declare "struct xmethod_worker".
3770 Declare new functions value_of_xmethod, call_xmethod.
3772 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3773 Pedro Alves <palves@redhat.com>
3775 PR breakpoints/17000
3776 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3777 New function, extracted from software_breakpoint_inserted_here_p.
3778 (software_breakpoint_inserted_here_p): Replace factored out code
3779 by call to find_non_raw_software_breakpoint_inserted_here.
3780 (bp_target_info_copy_insertion_state): New function.
3781 (bkpt_insert_location): Handle the case of a single-step
3782 breakpoint already inserted at the same address.
3783 (bkpt_remove_location): Handle the case of a single-step
3784 breakpoint still inserted at the same address.
3785 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3786 breakpoint already inserted at the same address.
3787 (deprecated_remove_raw_breakpoint): Handle the case of a
3788 non-raw breakpoint still inserted at the same address.
3789 (find_single_step_breakpoint): New function, extracted from
3790 single_step_breakpoint_inserted_here_p.
3791 (find_single_step_breakpoint): New function,
3792 factored out from single_step_breakpoint_inserted_here_p.
3793 (single_step_breakpoint_inserted_here_p): Reimplement.
3795 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3797 Pushed by Joel Brobecker <brobecker@adacore.com>
3798 * source.c (show_substitute_path_command): Fix display of matching
3801 2014-06-03 Gary Benson <gbenson@redhat.com>
3803 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3805 2014-06-02 Doug Evans <xdje42@gmail.com>
3807 Add parameter support for Guile.
3808 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3809 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3810 (scm-param.o): New rule.
3811 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3812 (gdbscm_misc_error): Declare.
3813 (gdbscm_canonicalize_command_name): Declare.
3814 (gdbscm_scm_to_host_string): Declare.
3815 (gdbscm_scm_from_host_string): Declare.
3816 (gdbscm_initialize_parameters): Declare.
3817 * guile/guile.c (initialize_gdb_module): Call
3818 gdbscm_initialize_parameters.
3819 * guile/lib/gdb.scm: Export parameter symbols.
3820 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3821 cmdscm_canonicalize_name and made public. All callers updated.
3822 * guile/scm-exception.c (gdbscm_misc_error): New function.
3823 * guile/scm-param.c: New file.
3824 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3825 (gdbscm_scm_to_host_string): New function.
3826 (gdbscm_scm_from_host_string): New function.
3827 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3829 2014-06-02 Doug Evans <xdje42@gmail.com>
3831 Add command support for Guile.
3832 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3833 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3834 (scm-cmd.o): New rule.
3835 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3836 (gdbscm_user_error_p): Declare.
3837 (gdbscm_parse_command_name): Declare.
3838 (gdbscm_valid_command_class_p): Declare.
3839 (gdbscm_initialize_commands): Declare.
3840 * guile/guile.c (initialize_gdb_module): Call
3841 gdbscm_initialize_commands.
3842 * guile/lib/gdb.scm: Export command symbols.
3843 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3844 (throw-user-error): New function.
3845 * guile/scm-cmd.c: New file.
3846 * guile/scm-exception.c (user_error_symbol): New static global.
3847 (gdbscm_user_error_p): New function.
3848 (gdbscm_initialize_exceptions): Set user_error_symbol.
3849 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3851 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3853 * top.c (command_loop): Handle comments here...
3854 (command_line_input): ... not here.
3856 2014-06-02 Doug Evans <xdje42@gmail.com>
3858 Add progspace support for Guile.
3859 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3860 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3861 (scm-progspace.o): New rule.
3862 * guile/guile-internal.h (pspace_smob): New typedef.
3863 (psscm_pspace_smob_pretty_printers): Declare.
3864 (psscm_pspace_smob_from_pspace): Declare.
3865 (psscm_scm_from_pspace): Declare.
3866 * guile/guile.c (initialize_gdb_module): Call
3867 gdbscm_initialize_pspaces.
3868 * guile/lib/gdb.scm: Export progspace symbols.
3869 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3871 (append-pretty-printer!): Ditto.
3872 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3874 * guile/scm-progspace.c: New file.
3876 2014-06-03 Alan Modra <amodra@gmail.com>
3878 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3879 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3881 2014-06-02 Doug Evans <dje@google.com>
3883 Add support for skeletonless type units.
3884 * dwarf2read.c (struct dwarf2_per_objfile): New member
3885 n_allocated_type_units.
3886 (struct dwarf2_per_objfile) <tu_stats>: New member
3887 nr_all_type_units_reallocs.
3888 (create_signatured_type_table_from_index): Initialize
3889 n_allocated_type_units
3890 (create_all_type_units): Ditto.
3891 (add_type_unit): Move up in file. New arg slot.
3892 All callers updated. Increase space for all_type_units more
3894 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3895 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3896 (lookup_dwp_signatured_type): Ditto.
3897 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3898 All callers updated.
3899 (build_type_psymtabs_1): Leave type_unit_groups as
3900 NULL if no TUs present.
3901 (print_tu_stats): New function.
3902 (process_skeletonless_type_unit): New function.
3903 (process_dwo_file_for_skeletonless_type_units): New
3905 (process_skeletonless_type_units): New function.
3906 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3907 Call print tu_stats if debugging enabled.
3909 2014-06-02 Pedro Alves <palves@redhat.com>
3911 * breakpoint.c (build_target_command_list): Don't build a command
3912 list if we have any duplicate location that isn't a dprintf.
3914 2014-06-02 Pedro Alves <palves@redhat.com>
3916 * breakpoint.c (dprintf_breakpoint_hit): New function.
3917 (initialize_breakpoint_ops): Install it as dprintf's
3918 breakpoint_hit method.
3920 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3922 * source.c (substitute_path_rule_matches): Simplify using
3923 filename_ncmp instead of FILENAME_CMP.
3925 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3927 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3929 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3931 * configure.ac: When Guile is available, check for the
3932 availability of 'scm_new_smob'.
3933 * configure, config.h.in: Regenerate.
3934 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3937 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3939 * frame.c (struct frame_info): Add stop_string field.
3940 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3941 (get_prev_frame_always): Old content moved into
3942 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3943 TRY_CATCH, handle MEMORY_ERROR exceptions.
3944 (frame_stop_reason_string): New function definition.
3945 * frame.h (unwind_stop_reason_to_string): Extend comment to
3946 mention frame_stop_reason_string.
3947 (frame_stop_reason_string): New function declaration.
3948 * stack.c (frame_info): Switch to frame_stop_reason_string.
3949 (backtrace_command_1): Switch to frame_stop_reason_string.
3950 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3951 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3952 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3954 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3956 * frame.c (frame_stop_reason_string): Rename to ...
3957 (unwind_stop_reason_to_string): this.
3958 * frame.h (frame_stop_reason_string): Rename to ...
3959 (unwind_stop_reason_to_string): this.
3960 * stack.c (frame_info): Update call to frame_stop_reason_string.
3961 (backtrace_command_1): Likewise.
3962 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3963 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3965 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3967 * frame.c (remove_prev_frame): New function.
3968 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3971 2014-05-29 Pedro Alves <palves@redhat.com>
3973 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3974 and make it const. When a single-step decays to a continue,
3975 clear 'step', not 'hw_step'. Pass whether the caller wanted
3976 to step to user_visible_resume_ptid, not what we ask the
3979 2014-05-29 Pedro Alves <palves@redhat.com>
3981 * infrun.c (process_event_stop_test, handle_step_into_function)
3982 (handle_step_into_function_backward): Adjust.
3983 Don't set the even thread's stop_step and call stop_waiting before
3984 calling end_stepping_range. Instead do that ...
3985 (end_stepping_range): ... here. Take an ecs pointer parameter.
3987 2014-05-29 Pedro Alves <palves@redhat.com>
3989 * infrun.c (stop_stepping): Rename to ...
3990 (stop_waiting): ... this.
3991 (proceed): Update comment.
3992 (process_event_stop_test, handle_inferior_event)
3993 (handle_signal_stop, handle_step_into_function)
3994 (handle_step_into_function_backward): Update.
3996 2014-05-29 Pedro Alves <palves@redhat.com>
3998 * infcall.c (run_inferior_call): Don't check whether the current
3999 thread is running after the proceed call.
4001 2014-05-29 Pedro Alves <palves@redhat.com>
4002 Tom Tromey <tromey@redhat.com>
4004 * NEWS: Mention "maint set target-async", "set mi-async", and that
4005 background execution commands are now always available.
4006 * target.h (target_async_permitted): Update comment.
4007 * target.c (target_async_permitted, target_async_permitted_1):
4009 (set_target_async_command): Rename to ...
4010 (maint_set_target_async_command): ... this.
4011 (show_target_async_command): Rename to ...
4012 (maint_show_target_async_command): ... this.
4013 (_initialize_target): Adjust.
4014 * infcmd.c (prepare_execution_command): Make extern.
4015 * inferior.h (prepare_execution_command): Declare.
4016 * infrun.c (set_observer_mode): Leave target async alone.
4017 * mi/mi-interp.c (mi_interpreter_init): Install
4018 mi_on_sync_execution_done as sync_execution_done observer.
4019 (mi_on_sync_execution_done): New function.
4020 (mi_execute_command_input_handler): Don't print the prompt if we
4021 just started a synchronous command with an async target.
4022 (mi_on_resume): Check sync_execution before printing prompt.
4023 * mi/mi-main.h (mi_async_p): Declare.
4024 * mi/mi-main.c: Include gdbcmd.h.
4025 (mi_async_p): New function.
4026 (mi_async, mi_async_1): New globals.
4027 (set_mi_async_command, show_mi_async_command, mi_async): New
4029 (exec_continue): Call prepare_execution_command.
4030 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4031 (mi_execute_async_cli_command): Use mi_async_p.
4032 (_initialize_mi_main): Install "set mi-async". Make
4033 "target-async" a deprecated alias.
4035 2014-05-29 Pedro Alves <palves@redhat.com>
4037 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4038 (_initialize_cli_interp): Adjust.
4039 * event-loop.c: Include "observer.h".
4040 (start_event_loop): Notify 'command_error' observers instead of
4041 calling display_gdb_prompt. Remove FIXME comment.
4042 * event-top.c (display_gdb_prompt): Remove call into the
4044 * inf-loop.c: Include "observer.h".
4045 (inferior_event_handler): Notify 'command_error' observers instead
4046 of calling display_gdb_prompt.
4047 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4048 observers instead of calling display_gdb_prompt.
4049 * interps.c (interp_set): Don't call display_gdb_prompt.
4050 (current_interp_display_prompt_p): Delete.
4051 * interps.h (interp_prompt_p): Delete declaration.
4052 (interp_prompt_p_ftype): Delete.
4053 (struct interp_procs) <prompt_proc_p>: Delete field.
4054 (current_interp_display_prompt_p): Delete declaration.
4055 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4056 (_initialize_mi_interp): Adjust.
4057 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4058 'command_error' observers.
4059 (tui_on_sync_execution_done, tui_on_command_error): New
4061 (tui_display_prompt_p): Delete.
4062 (_initialize_tui_interp): Adjust.
4064 2014-05-29 Pedro Alves <palves@redhat.com>
4067 * cli/cli-interp.c: Include infrun.h and observer.h.
4068 (cli_uiout, cli_interp): New globals.
4069 (cli_on_signal_received, cli_on_end_stepping_range)
4070 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4072 (cli_interpreter_init): Install them as 'end_stepping_range',
4073 'signal_received' 'signal_exited', 'exited' and 'no_history'
4075 (_initialize_cli_interp): Remove cli_interp local.
4076 * infrun.c (handle_inferior_event): Call the several stop reason
4077 observers instead of printing the stop reason directly.
4078 (end_stepping_range): New function.
4079 (print_end_stepping_range_reason, print_signal_exited_reason)
4080 (print_exited_reason, print_signal_received_reason)
4081 (print_no_history_reason): Make static, and add an uiout
4082 parameter. Print to that instead of to CURRENT_UIOUT.
4083 * infrun.h (print_end_stepping_range_reason)
4084 (print_signal_exited_reason, print_exited_reason)
4085 (print_signal_received_reason print_no_history_reason): New
4087 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4089 <cli_uiout>: New field.
4090 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4091 uiout for CLI output. Install 'signal_received',
4092 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4094 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4095 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4096 (mi_on_no_history): New functions.
4097 (ui_out_free_cleanup): Delete function.
4098 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4099 instead use the one already stored in the MI interpreter data.
4100 (mi_ui_out): Adjust.
4101 * tui/tui-interp.c: Include infrun.h and observer.h.
4102 (tui_interp): New global.
4103 (tui_on_signal_received, tui_on_end_stepping_range)
4104 (tui_on_signal_exited, tui_on_exited)
4105 (tui_on_no_history): New functions.
4106 (tui_init): Install them as 'end_stepping_range',
4107 'signal_received' 'signal_exited', 'exited' and 'no_history'
4109 (_initialize_tui_interp): Delete tui_interp local.
4111 2014-05-29 Pedro Alves <palves@redhat.com>
4114 * linux-nat.c (linux_nat_resume_callback): Rename the second
4115 parameter to 'except'. Skip LP if it points to EXCEPT.
4116 (linux_nat_resume): Don't mark the event lwp as not stopped
4117 before resuming sibling lwps. Instead ask
4118 linux_nat_resume_callback to skip the event lwp. Mark it as not
4119 stopped after actually resuming it.
4120 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4122 (wait_lwp): Mark the lwp as stopped here.
4123 (stop_wait_callback): Mark the lwp as not stopped right after
4124 resuming it. Don't mark lwps as stopped here.
4125 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4126 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4128 2014-05-29 Pedro Alves <palves@redhat.com>
4131 * infrun.c (resume): Determine how much to resume depending on
4132 whether the caller wanted a step, not whether we can hardware step
4133 the target. Mark all threads that we intend to run as running,
4134 unless we're calling an inferior function.
4135 (normal_stop): If the thread is running an infcall, don't finish
4137 * target.c (target_resume): Don't mark threads as running here.
4139 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4141 * serial.c (_initialize_serial): Remove support for
4142 the "set remotebaud" and "show remotebaud" commands.
4143 * NEWS: Add entry documenting the removal of that command.
4145 2014-05-28 Yao Qi <yao@codesourcery.com>
4147 * charset.c: Fix typo in comments.
4149 2014-05-27 Gary Benson <gbenson@redhat.com>
4151 * utils.c (internal_vproblem): Prompt for a bug report.
4153 2014-05-26 Andy Wingo <wingo@igalia.com>
4155 * guile/scm-arch.c (arscm_mark_arch_smob):
4156 * guile/scm-block.c (bkscm_mark_block_smob)
4157 (bkscm_mark_block_syms_progress_smob):
4158 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4159 * guile/scm-exception.c (exscm_mark_exception_smob):
4160 * guile/scm-frame.c (frscm_mark_frame_smob):
4161 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4162 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4163 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4164 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4165 (ppscm_mark_pretty_printer_worker_smob):
4166 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4167 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4168 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4169 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4171 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4174 2014-05-26 Andy Wingo <wingo@igalia.com>
4175 Doug Evans <xdje42@gmail.com>
4177 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4178 empty_base_class. All uses updated.
4179 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4180 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4182 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4183 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4184 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4185 (gdbscm_gsmob_has_property_p, add_property_name)
4186 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4187 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4188 (gdb-object-has-property?, gdb-object-properties): Remove.
4189 (gdb-object-kind): Renamed from gsmob-kind.
4191 2014-05-26 Andy Wingo <wingo@igalia.com>
4193 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4194 * configure: Regenerate.
4196 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4198 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4200 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4202 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4203 (replay_memory_access_read_only, replay_memory_access_read_write)
4204 (replay_memory_access_types, replay_memory_access)
4205 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4206 (cmd_set_record_btrace, cmd_show_record_btrace)
4207 (cmd_show_replay_memory_access): New.
4208 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4209 (record_btrace_remove_breakpoint): Replace
4210 record_btrace_allow_memory_access with replay_memory_access.
4211 (_initialize_record_btrace): Add commands.
4212 * NEWS: Announce it.
4214 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4216 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4218 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4220 * MAINTAINERS (Write After Approval): Move self back from
4223 2014-05-22 Pedro Alves <palves@redhat.com>
4225 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4226 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4227 (disable_randomization, enum exec_direction_kind)
4228 (execution_direction, stop_registers, start_remote)
4229 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4230 (wait_for_inferior, normal_stop, get_last_target_status)
4231 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4232 (insert_step_resume_breakpoint_at_sal)
4233 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4234 (set_step_info, print_stop_event, signal_stop_state)
4235 (signal_print_state, signal_pass_state, signal_stop_update)
4236 (signal_print_update, signal_pass_update)
4237 (update_signals_program_target, clear_exit_convenience_vars)
4238 (displaced_step_dump_bytes, update_observer_mode)
4239 (signal_catch_update, gdb_signal_from_command): Move
4241 * infrun.h: ... to this new file.
4242 * amd64-tdep.c: Include infrun.h.
4243 * annotate.c: Include infrun.h.
4244 * arch-utils.c: Include infrun.h.
4245 * arm-linux-tdep.c: Include infrun.h.
4246 * arm-tdep.c: Include infrun.h.
4247 * break-catch-sig.c: Include infrun.h.
4248 * breakpoint.c: Include infrun.h.
4249 * common/agent.c: Include infrun.h instead of inferior.h.
4250 * corelow.c: Include infrun.h.
4251 * event-top.c: Include infrun.h.
4252 * go32-nat.c: Include infrun.h.
4253 * i386-tdep.c: Include infrun.h.
4254 * inf-loop.c: Include infrun.h.
4255 * infcall.c: Include infrun.h.
4256 * infcmd.c: Include infrun.h.
4257 * infrun.c: Include infrun.h.
4258 * linux-fork.c: Include infrun.h.
4259 * linux-nat.c: Include infrun.h.
4260 * linux-thread-db.c: Include infrun.h.
4261 * monitor.c: Include infrun.h.
4262 * nto-tdep.c: Include infrun.h.
4263 * procfs.c: Include infrun.h.
4264 * record-btrace.c: Include infrun.h.
4265 * record-full.c: Include infrun.h.
4266 * remote-m32r-sdi.c: Include infrun.h.
4267 * remote-mips.c: Include infrun.h.
4268 * remote-notif.c: Include infrun.h.
4269 * remote-sim.c: Include infrun.h.
4270 * remote.c: Include infrun.h.
4271 * reverse.c: Include infrun.h.
4272 * rs6000-tdep.c: Include infrun.h.
4273 * s390-linux-tdep.c: Include infrun.h.
4274 * solib-irix.c: Include infrun.h.
4275 * solib-osf.c: Include infrun.h.
4276 * solib-svr4.c: Include infrun.h.
4277 * target.c: Include infrun.h.
4278 * top.c: Include infrun.h.
4279 * windows-nat.c: Include infrun.h.
4280 * mi/mi-interp.c: Include infrun.h.
4281 * mi/mi-main.c: Include infrun.h.
4282 * python/py-threadevent.c: Include infrun.h.
4284 2014-05-22 Pedro Alves <palves@redhat.com>
4286 * infrun.c (handle_inferior_event): Store the exit code for
4287 --return-child-result here, instead of ...
4288 (print_exited_reason): ... here.
4290 2014-05-21 Pedro Alves <palves@redhat.com>
4293 * gdbthread.h (struct thread_control_state): New field
4295 * infrun.c (follow_fork): Copy the new thread control field to the
4297 (clear_proceed_status_thread): Clear the new thread control field.
4298 (proceed): Set the new thread control field.
4299 * interps.h (command_interp): Declare.
4300 * interps.c (command_interpreter): New global.
4301 (command_interp): New function.
4302 (interp_exec): Set `command_interpreter' while here.
4303 * cli-out.c (cli_uiout_dtor): New function.
4304 (cli_ui_out_impl): Install it.
4305 * mi/mi-interp.c: Include cli-out.h.
4306 (mi_cmd_interpreter_exec): Add comment.
4307 (restore_current_uiout_cleanup): New function.
4308 (ui_out_free_cleanup): New function.
4309 (mi_on_normal_stop): If finishing an execution command started by
4310 a CLI command, or any kind of breakpoint-like event triggered,
4311 print the stop event to the output (CLI) stream.
4312 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4314 2014-05-21 Pedro Alves <palves@redhat.com>
4316 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4317 current source line having changed.
4318 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4319 * infrun.c (normal_stop): Adjust call to
4320 set_current_sal_from_frame.
4321 * source.c (clear_lines_listed_range): New function.
4322 (set_current_source_symtab_and_line, identify_source_line): Clear
4323 the lines listed range.
4324 (line_info): Handle the first "info line" after the current source
4325 line having changed.
4326 * stack.c (print_stack_frame): Remove center handling.
4327 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4330 2014-05-21 Pedro Alves <palves@redhat.com>
4332 * inf-child.c (inf_child_mourn_inferior): New function.
4333 * inf-child.h (inf_child_mourn_inferior): New declaration.
4334 * darwin-nat.c (darwin_mourn_inferior): Use
4335 inf_child_mourn_inferior.
4336 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4337 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4338 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4339 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4340 * windows-nat.c (windows_mourn_inferior): Likewise.
4342 2014-05-21 Doug Evans <xdje42@gmail.com>
4344 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4346 2014-05-21 Doug Evans <xdje42@gmail.com>
4348 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4349 (gdbscm_out_of_range_error): Ditto.
4350 (gdbscm_memory_error): Ditto.
4351 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4352 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4353 (gdbscm_out_of_range_error): Update.
4354 (gdbscm_memory_error): Update.
4355 (gdbscm_scm_to_target_string_unsafe): Delete.
4357 2014-05-21 Pedro Alves <palves@redhat.com>
4359 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4361 (inf_child_open_target): New function.
4362 (inf_child_open): Use inf_child_open_target to push the target
4363 instead of erroring out.
4364 (inf_child_disconnect, inf_child_close)
4365 (inf_child_maybe_unpush_target): New functions.
4366 (inf_child_target): Install inf_child_disconnect and
4367 inf_child_close. Store a pointer to the returned object.
4368 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4370 * target.c (auto_connect_native_target): New global.
4371 (show_default_run_target): New function.
4372 (find_default_run_target): Return NULL if automatically connecting
4373 to the native target is disabled.
4374 (_initialize_target): Install set/show auto-connect-native-target.
4375 * NEWS: Mention "set auto-connect-native-target", and "target
4377 * linux-nat.c (super_close): New global.
4378 (linux_nat_close): Call super_close.
4379 (linux_nat_add_target): Store a pointer to the base class's
4381 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4382 inf_child_maybe_unpush.
4383 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4385 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4386 the inferior. Use inf_child_maybe_unpush_target.
4387 (inf_ttrace_attach): Don't push the target if it is already
4389 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4390 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4391 after mourning the inferior. Use inf_child_maybe_unpush_target.
4392 (darwin_attach_pid): Don't push the target if it is already
4394 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4395 mourning the inferior. Use inf_child_maybe_unpush_target.
4396 (gnu_detach): Use inf_child_maybe_unpush_target.
4397 * go32-nat.c (go32_create_inferior): Don't push the target if it
4399 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4400 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4401 (procfs_open): Rename to ...
4402 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4403 comments. Can target_preopen before changing node. Call
4404 inf_child_open_target to push the target explicitly.
4405 (procfs_attach): Don't push the target if it is already pushed.
4406 (procfs_detach): Use inf_child_maybe_unpush_target.
4407 (procfs_create_inferior): Don't push the target if it is already
4409 (nto_native_ops): New global.
4410 (procfs_open): Reimplement.
4411 (procfs_native_open): New function.
4412 (init_procfs_targets): Install procfs_native_open as to_open of
4413 "target native". Store a pointer to the "native" target in
4415 * procfs.c (procfs_attach): Don't push the target if it is already
4417 (procfs_detach): Use inf_child_maybe_unpush_target.
4418 (procfs_mourn_inferior): Only unpush the target after mourning the
4419 inferior. Use inf_child_maybe_unpush_target.
4420 (procfs_init_inferior): Don't push the target if it is already
4422 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4423 if it is already pushed.
4425 2014-05-21 Pedro Alves <palves@redhat.com>
4427 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4428 and "procfs" targets are now called "native" instead.
4430 2014-05-21 Pedro Alves <palves@redhat.com>
4432 * go32-nat.c (go32_open): Delete.
4433 (go32_target): Don't override the to_open method.
4435 2014-05-21 Pedro Alves <palves@redhat.com>
4437 * nto-procfs.c (procfs_can_run): New function.
4438 (nto_procfs_ops): New global.
4439 (init_procfs_targets): New, based on procfs_target. Install
4440 "target native" in addition to "target procfs".
4441 (_initialize_procfs): Call init_procfs_targets instead of adding
4444 2014-05-21 Pedro Alves <palves@redhat.com>
4446 * windows-nat.c (windows_target): Don't override to_shortname,
4447 to_longname or to_doc.
4449 2014-05-21 Pedro Alves <palves@redhat.com>
4451 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4454 2014-05-21 Pedro Alves <palves@redhat.com>
4456 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4457 to_shortname, to_longname or to_doc.
4459 2014-05-21 Pedro Alves <palves@redhat.com>
4461 * go32-nat.c (go32_target): Don't override to_shortname,
4462 to_longname or to_doc.
4464 2014-05-21 Pedro Alves <palves@redhat.com>
4466 * inf-child.c (inf_child_open): Remove mention of "child".
4467 (inf_child_target): Rename target to "native" instead of "child".
4469 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4471 * Makefile.in (SFILES): Delete "regset.c".
4472 (COMMON_OBS): Delete "regset.o".
4474 * regset.h (regset_alloc): Delete prototype.
4476 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4478 * sparc-linux-tdep.c (sparc32_linux_gregset)
4479 (sparc32_linux_fpregset): New static regset structures.
4480 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4481 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4483 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4484 (sparc64_linux_fpregset): New static regset structures.
4485 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4486 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4487 New static regset structures.
4488 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4489 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4490 New static regset structures.
4491 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4492 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4493 New static regset structures.
4494 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4495 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4496 New static regset structures.
4497 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4499 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4501 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4502 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4503 register maps ("regmaps") from "*regset" to "*regmap". Do this
4504 for all regmap types and variables.
4505 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4506 (sparc32_linux_supply_core_gregset)
4507 (sparc32_linux_collect_core_gregset)
4508 (sparc32_linux_supply_core_fpregset)
4509 (sparc32_linux_collect_core_fpregset): Likewise.
4510 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4511 (sparc_gregmap, sparc_fpregmap): ... these.
4512 (sparc_supply_gregset, sparc_collect_gregset)
4513 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4514 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4515 (_initialize_sparc_nat): Rename regmaps.
4516 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4517 (sparc_gregmap, sparc_fpregmap): ... these.
4518 (sparc_supply_gregset, sparc_collect_gregset)
4519 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4520 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4522 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4523 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4525 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4527 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4528 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4529 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4531 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4532 (sparc32_bsd_fpregset): Rename to...
4533 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4534 (sparc32_bsd_fpregmap): ... these.
4535 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4536 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4537 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4538 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4539 (struct sparc_gregmap, struct sparc_fpregmap)
4540 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4541 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4542 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4543 (sparc32_supply_regset, sparc32_collect_gregset)
4544 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4546 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4547 (sparc64_linux_ptrace_gregmap): ... this.
4548 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4549 (_initialize_sparc64_linux_nat): Rename regmaps.
4550 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4551 (sparc64_linux_core_gregmap): ... this.
4552 (sparc64_linux_supply_core_gregset)
4553 (sparc64_linux_collect_core_gregset)
4554 (sparc64_linux_supply_core_fpregset)
4555 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4556 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4557 (sparc64_sol2_fpregset): Rename to...
4558 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4559 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4560 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4562 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4563 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4564 (sparc64_bsd_fpregset): Rename to...
4565 (struct sparc_gregmap, sparc64_sol2_gregmap)
4566 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4567 (sparc64_bsd_fpregmap): ... these.
4568 (sparc64_supply_gregset, sparc64_collect_gregset)
4569 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4571 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4572 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4573 (sparc64fbsd_gregmap): ... this.
4574 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4575 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4577 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4578 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4579 (sparc64nbsd_collect_fpregset): Likewise.
4580 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4581 (sparc64nbsd_gregmap): ... this.
4582 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4584 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4585 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4586 (sparc64obsd_gregmap): ... this.
4587 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4589 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4590 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4591 (sparc32nbsd_gregmap): ... this.
4592 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4595 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4597 * score-tdep.c (score7_linux_gregset): New static regset
4599 (score7_linux_regset_from_core_section): Remove dynamic regset
4601 (score_gdbarch_init): Drop allocation of tdep structure.
4602 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4604 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4606 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4608 (am33_regset_from_core_section): Remove dynamic regset
4611 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4613 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4614 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4616 (mips_linux_regset_from_core_section): Remove dynamic regset
4618 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4619 'gregset64', 'fpregset', and 'fpregset64'.
4620 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4621 deleted tdep fields.
4623 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4625 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4627 (amd64_regset_from_core_section): Remove dynamic regset
4629 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4631 (amd64obsd_regset_from_core_section): Remove dynamic regset
4633 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4635 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4636 x86-common regset supply function.
4637 * i386-tdep.c (i386_collect_gregset): Make static.
4638 (i386_gregset): New global regset structure.
4639 (i386_fpregset, i386_xstateregset): New static regset structures.
4640 (i386_regset_from_core_section): Remove dynamic regset
4642 (i386_gdbarch_init): Remove initialization of tdep fields
4643 'gregset', 'fpregset', and 'xstateregset'.
4644 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4645 'fpregset', and 'xstateregset'.
4646 (i386_collect_gregset): Remove prototype.
4647 (i386_gregset): New declaration.
4648 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4650 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4653 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4655 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4656 (arm_linux_vfpregset): New static regset structures.
4657 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4659 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4660 and 'vfpregset' fields.
4662 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4664 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4665 (aarch64_linux_fpregset): New static regset structures.
4666 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4667 of regset structures.
4668 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4671 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4673 * regset.h (struct regset): Remove gdbarch field.
4674 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4675 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4676 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4678 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4679 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4680 (ppc32_linux_vsxregset): Likewise.
4681 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4682 via the regcache instead of the regset.
4683 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4684 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4685 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4686 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4689 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4691 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4692 Constify structures.
4693 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4694 (alphanbsd_aout_gregset): Likewise.
4695 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4696 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4698 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4699 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4701 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4702 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4703 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4704 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4705 * m88k-tdep.c (m88k_gregset): Likewise.
4706 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4707 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4708 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4709 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4710 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4711 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4712 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4713 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4714 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4716 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4717 * sh-tdep.h (sh_corefile_gregset): Likewise.
4718 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4719 * vax-tdep.c (vax_gregset): Likewise.
4721 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4723 Fix TLS access for -static -pthread.
4724 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4725 (try_thread_db_load_1): Initialize it.
4726 (thread_db_get_thread_local_address): Call it if LM is zero.
4727 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4728 * target.h (struct target_ops) (to_get_thread_local_address): Add
4729 load_module_addr comment.
4731 2014-05-21 Pedro Alves <palves@redhat.com>
4733 * dcache.c (dcache_read_memory_partial): If reading the cache line
4734 fails, fallback to reading just the memory the caller wanted.
4736 2014-05-20 Doug Evans <dje@google.com>
4738 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4739 instead of get_current_arch.
4741 2014-05-20 Pedro Alves <palves@redhat.com>
4743 * NEWS: Mention that compare-sections now works with all targets.
4745 * remote.c (PACKET_qCRC): New enum value.
4746 (remote_verify_memory): Don't send qCRC if the target has no
4747 execution. Use packet_support/packet_ok. If the target doesn't
4748 support the qCRC packet, fallback to a deep memory copy.
4749 (compare_sections_command): Say "target image" instead of "remote
4751 (_initialize_remote): Add PACKET_qCRC to the list of config
4752 packets that have no associated command. Extend comment.
4753 * target.c (simple_verify_memory, default_verify_memory): New
4755 * target.h (struct target_ops) <to_verify_memory>: Default to
4756 default_verify_memory.
4757 (simple_verify_memory): New declaration.
4758 * target-delegates.c: Regenerate.
4760 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4762 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4764 2014-05-20 Hui Zhu <hui@codesourcery.com>
4765 Yao Qi <yao@codesourcery.com>
4768 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4769 and change address of sp and pc.
4771 2014-05-19 Tom Tromey <tromey@redhat.com>
4773 * gdbtypes.c (rank_function): Use XNEWVEC.
4774 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4776 2014-05-19 Doug Evans <dje@google.com>
4778 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4779 build_type_unit_groups and moved closer to only caller. Remove
4780 arguments. All references updated. Remove outdated .gdb_index
4782 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4783 build_type_psymtabs_1.
4785 2014-05-19 Doug Evans <dje@google.com>
4787 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4788 n_type_unit_groups, all_type_unit_groups. All uses removed.
4789 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4790 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4791 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4792 (add_type_unit_group_to_table): Delete.
4794 2014-05-19 Doug Evans <dje@google.com>
4796 * eval.c (evaluate_subexp_standard): Add some comments.
4798 2014-05-17 Doug Evans <xdje42@gmail.com>
4800 * progspace.c (remove_program_space): Delete, unused.
4801 * progspace.h (remove_program_space): Ditto.
4803 2014-05-17 Doug Evans <xdje42@gmail.com>
4805 * inferior.c (prune_inferiors): Fix comment.
4806 (remove_inferior_command): Call prune_program_spaces.
4808 2014-05-16 Doug Evans <dje@google.com>
4810 New command line option -D.
4812 * main.c (set_gdb_data_directory): New function.
4813 (captured_main): Recognize -D. Flag error for --data-directory "".
4814 Call set_gdb_data_directory.
4815 (print_gdb_help): Print --data-directory, -D.
4816 * main.h (set_gdb_data_directory): Declare.
4817 * top.c (staged_gdb_datadir): New static global.
4818 (set_gdb_datadir): Call set_gdb_data_directory
4819 (show_gdb_datadir): New function.
4820 (init_main): Update init of data-directory parameter.
4822 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4824 Import the "dirfd" gnulib module.
4825 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4826 * gnulib/aclocal.m4: Update.
4827 * gnulib/config.in: Update.
4828 * gnulib/configure: Update.
4829 * gnulib/import/Makefile.am: Update.
4830 * gnulib/import/Makefile.in: Update.
4831 * gnulib/import/dirfd.c: New.
4832 * gnulib/import/m4/dirfd.m4: New.
4833 * gnulib/import/m4/gnulib-cache.m4: Update.
4834 * gnulib/import/m4/gnulib-comp.m4: Update.
4836 2014-05-16 Pierre Muller <muller@sourceware.org>
4837 Yao Qi <yao@codesourcery.com>
4839 * valprint.c (print_wchar): Move the code on checking whether
4840 W is a printable wide char to the default branch of switch
4841 statement below. Call wchar_printable instead of gdb_iswprint.
4843 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4845 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4846 ldr.w and ldrd instructions.
4848 2014-05-15 Doug Evans <dje@google.com>
4850 * dwarf2read.c (read_structure_type): Delete outdated comments.
4852 2014-05-14 Tom Tromey <tromey@redhat.com>
4854 * macrocmd.c (print_macro_definition): Reindent.
4856 2014-05-13 Doug Evans <xdje42@gmail.com>
4858 * python/py-cmd.c (cmdpy_completer): Add comment.
4859 (completers): Make const.
4861 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4863 * infrun.c (resume): Remove should_resume (unused). Move up
4864 declaration of resume_ptid.
4866 2014-05-13 Tom Tromey <tromey@redhat.com>
4868 * language.h (unop_type_check): Remove.
4869 (binop_type_check): Don't declare.
4871 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4873 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4874 call to regcache_raw_collect.
4876 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4878 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4879 mi_console->quote as the quoting character.
4881 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4883 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4885 2014-04-29 Tom Tromey <tromey@redhat.com>
4887 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4888 "show debug varobj".
4890 2014-05-07 Kyle McMartin <kyle@redhat.com>
4892 Pushed by Joel Brobecker <brobecker@adacore.com>.
4893 * aarch64-tdep.c (aarch64_software_single_step): New function.
4894 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4895 with aarch64_software_single_step.
4897 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4901 2014-05-05 Keith Seitz <keiths@redhat.com>
4903 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4904 variable or history value is successfully parsed.
4906 2014-05-05 Yao Qi <yao@codesourcery.com>
4907 Pedro Alves <palves@redhat.com>
4909 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4910 address of blocks that intersects the requested range. Trim
4911 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4913 * ctf.c (ctf_xfer_partial): Likewise.
4915 2014-05-05 Yao Qi <yao@codesourcery.com>
4917 * printcmd.c (display_command): Remove the check to
4918 target_has_execution.
4920 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4922 * ppcobsd-nat.c: Include "obsd-nat.h".
4923 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4925 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4927 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4929 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4930 and 16-bit signed and unsigned arguments. Update comment.
4931 (stap_parse_probe_arguments): Extend code to handle such
4932 arguments. Use warning instead of complaint to notify about
4933 unrecognized bitness.
4935 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4937 PR breakpoints/16889
4938 * stap-probe.c (stap_parse_probe_arguments): Simplify
4939 check for non-prefixed probes (i.e., probes whose
4940 arguments do not start with "N@"). Always set the
4941 argument type to a sane value.
4943 2014-05-01 David Taylor <dtaylor@emc.com>
4945 * remote.c (compare_sections_command): Add -r option to compare
4946 all loadable read-only sections.
4948 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4950 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4951 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4953 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4954 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4955 Remove unused CORE_ADDR argument. Update all callers.
4957 2014-04-29 Pedro Alves <palves@redhat.com>
4959 * remote.c (struct packet_config) <detect>: Extend comment.
4960 (add_packet_config_cmd): Don't set the config's detect or support
4962 (init_all_packet_configs): Also initialize the config's 'detect'
4964 (reset_all_packet_configs_support): New function.
4965 (remote_open_1): Call reset_all_packet_configs_support instead of
4966 init_all_packet_configs.
4967 (_initialize_remote): Initialize all packet configs. Assert that
4968 all packets have an associated command, except a few known
4971 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4973 * dwarf2read.c (read_subrange_type): Handle dynamic
4974 DW_AT_lower_bound attributes.
4976 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4978 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4979 dynamic bounds before computing its upper bound.
4980 (ada_discrete_type_low_bound): Same as above with the lower bound.
4982 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4984 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4985 range types. Adjust the array handling implementation to
4986 take advantage of this change.
4987 (resolve_dynamic_range): New function, mostly extracted from
4988 resolve_dynamic_bounds.
4989 (resolve_dynamic_array): New function, mostly extracted from
4990 resolve_dynamic_bounds.
4991 (resolve_dynamic_bounds): Delete.
4992 (resolve_dynamic_type): Reimplement. Add handling of
4993 TYPE_CODE_RANGE types.
4995 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4997 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4998 handling of parallel ___XA types.
5000 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5002 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5003 unnecessary second call to static_unwrap_type.
5005 2014-04-27 Hui Zhu <hui@codesourcery.com>
5007 * stack.c (print_frame_info): Call do_gdb_disassembly with
5008 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5010 2014-04-26 Doug Evans <xdje42@gmail.com>
5012 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5014 2014-04-25 Pedro Alves <palves@redhat.com>
5017 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5018 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5019 and newline from built string.
5020 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5021 (linux_ptrace_attach_fail_reason): ... this.
5022 * linux-nat.c (linux_nat_attach): Adjust to use
5023 linux_ptrace_attach_fail_reason.
5025 2014-04-25 Pedro Alves <palves@redhat.com>
5027 * remote.c (struct remote_state): Remove multi_process_aware,
5028 non_stop_aware, cond_tracepoints, cond_breakpoints,
5029 breakpoint_commands, fast_tracepoints, static_tracepoints,
5030 install_in_trace, disconnected_tracing,
5031 enable_disable_tracepoints, string_tracing, and
5032 augmented_libraries_svr4_read fields.
5033 (remote_multi_process_p): Move further below in the file.
5034 (struct packet_config): Add comments.
5035 (update_packet_config): Delete function.
5036 (show_packet_config_cmd): Use packet_config_support.
5037 (add_packet_config_cmd): Use NULL as set callback.
5038 (packet_ok): "set remote foo-packet"-style commands no longer
5039 change config->supported -- adjust.
5040 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5041 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5042 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5043 (PACKET_QNonStop, PACKET_multiprocess_feature)
5044 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5045 (PACKET_DisconnectedTracing_feature)
5046 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5047 (set_remote_protocol_packet_cmd): Delete function.
5048 (packet_config_support, packet_support): New functions.
5049 (set_remote_protocol_Z_packet_cmd): Don't call
5050 update_packet_config.
5051 (remote_query_attached, remote_pass_signals)
5052 (remote_program_signals, remote_threads_info)
5053 (remote_threads_extra_info, remote_start_remote): Use
5055 (remote_start_remote): Use packet_config_support and
5057 (init_all_packet_configs): Set all packets to unknown support,
5058 instead of calling update_packet_config.
5059 (remote_check_symbols): Use packet_support.
5060 (remote_supported_packet): Unconditionally set the packet config's
5062 (remote_multi_process_feature, remote_non_stop_feature)
5063 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5064 (remote_breakpoint_commands_feature)
5065 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5066 (remote_install_in_trace_feature)
5067 (remote_disconnected_tracing_feature)
5068 (remote_enable_disable_tracepoint_feature)
5069 (remote_string_tracing_feature)
5070 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5071 (remote_protocol_features): Adjust to use remote_supported_packet
5072 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5073 "ConditionalTracepoints", "ConditionalBreakpoints",
5074 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5075 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5076 "EnableDisableTracepoints", and "tracenz".
5077 (remote_query_supported): Use packet_support.
5078 (remote_open_1): Adjust.
5079 (extended_remote_attach_1): Use packet_support. Switch on the
5080 result of packet_ok instead of checking whether the packet ended
5082 (remote_vcont_resume): Use packet_support.
5083 (remote_resume, remote_stop_ns, fetch_register_using_p)
5084 (remote_prepare_to_store, store_register_using_P)
5085 (check_binary_download, remote_write_bytes): Use packet_support.
5086 (remote_vkill): Use packet_support. Switch on the result of
5087 packet_ok instead of checking whether the packet ended up
5089 (extended_remote_supports_disable_randomization): Use
5091 (extended_remote_run): Switch on the result of packet_ok instead
5092 of checking whether the packet ended up disabled.
5093 (remote_insert_breakpoint, remote_remove_breakpoint)
5094 (remote_insert_watchpoint, remote_remove_watchpoint)
5095 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5097 (remote_search_memory): Use packet_config_support.
5098 (remote_get_thread_local_address, remote_get_tib_address)
5099 (remote_hostio_send_command, remote_can_execute_reverse): Use
5101 (remote_supports_cond_tracepoints)
5102 (remote_supports_cond_breakpoints)
5103 (remote_supports_fast_tracepoints)
5104 (remote_supports_static_tracepoints)
5105 (remote_supports_install_in_trace)
5106 (remote_supports_enable_disable_tracepoint)
5107 (remote_supports_string_tracing)
5108 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5109 the packet config says the feature is enabled or disabled.
5110 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5111 (remote_get_trace_status): Use packet_support.
5112 (remote_set_disconnected_tracing): Adjust to check whether the
5113 feature is enabled with packet_support.
5114 (remote_set_trace_buffer_size, remote_use_agent)
5115 (remote_can_use_agent, remote_supports_btrace): Use
5117 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5118 Use packet_config_support.
5119 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5120 the packet config says the feature is enabled or disabled.
5121 (set_range_stepping): Use packet_support.
5123 2014-04-25 Tom Tromey <tromey@redhat.com>
5125 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5128 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5130 * NEWS: Mention support for C99 variable length arrays.
5132 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5134 * ada-lang.c (standard_exc): Expand introductory comment.
5136 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5137 Walfred Tedeschi <walfred.tedeschi@intel.com>
5139 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5141 (amd64_linux_read_description): Add code to handle AVX512 xstate
5142 mask and return respective tdesc.
5143 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5144 and features/i386/x32-avx512-linux.c.
5145 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5146 (amd64_linux_core_read_description): Add code to handle AVX512
5147 xstate mask and return respective tdesc.
5148 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5149 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5151 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5152 (tdesc_amd64_avx512_linux): New prototype.
5153 (tdesc_x32_avx512_linux): Likewise.
5154 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5155 features/i386/x32-avx512.c.
5156 (amd64_ymm_avx512_names): New register names for pseudo
5158 (amd64_ymmh_avx512_names): New register names for raw registers
5160 (amd64_k_names): New register names for K registers.
5161 (amd64_zmmh_names): New register names for ZMM raw registers.
5162 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5163 (amd64_xmm_avx512_names): New register names for XMM16-31
5165 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5167 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5168 if feature is present.
5169 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5170 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5171 (AMD64_NUM_REGS): Adjust to new number of registers.
5172 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5173 registers supplied via XSTATE by AVX512 registers.
5174 (i386_linux_read_description): Add case for AVX512.
5175 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5176 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5177 (i386_linux_core_read_description): Add case for AVX512.
5178 (i386_linux_init_abi): Install supported register note section
5180 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5182 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5183 registers to be number of zmm7h + 1.
5184 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5185 * i386-tdep.c: Include features/i386/i386-avx512.c.
5186 (i386_zmm_names): Add ZMM pseudo register names array.
5187 (i386_zmmh_names): Add ZMM raw register names array.
5188 (i386_k_names): Add K raw register names array.
5189 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5190 registers. AVX512 has 16 more ZMM registers than there are YMM
5192 (i386_zmmh_regnum_p): Add function to look up register number of
5194 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5195 (i386_k_regnum_p): Likewise for K raw registers.
5196 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5197 registers added by AVX512.
5198 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5199 registers added by AVX512.
5200 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5202 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5203 (i386_pseudo_register_name): Add ZMM pseudo registers.
5204 (i386_zmm_type): Construct and return vector registers type for ZMM
5206 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5207 ZMM0-31 pseudo registers and K registers.
5208 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5209 and YMM16-31 registers from register cache.
5210 (i386_pseudo_register_write): Add code to write K, ZMM and
5212 (i386_register_reggroup_p): Add code to include/exclude AVX512
5213 registers in/from respective register groups.
5214 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5215 registers if feature is present in xcr0.
5216 (i386_gdbarch_init): Add code to initialize AVX512 feature
5217 variables in tdep structure, wire in pseudo registers and call
5218 initialize_tdesc_i386_avx512.
5219 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5221 (i386_regnum): Add AVX512 registers.
5222 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5223 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5224 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5225 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5227 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5228 (i386_ymm_avx512_regnum_p): Likewise.
5229 (i386_k_regnum_p): Likewise.
5230 (i386_zmm_regnum_p): Likewise.
5231 (i386_zmmh_regnum_p): Likewise.
5232 * i387-tdep.c : Update year in copyright notice.
5233 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5235 (XSAVE_YMM_AVX512_ADDR): New macro.
5236 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5238 (XSAVE_XMM_AVX512_ADDR): New macro.
5239 (xsave_avx512_k_offset): New table for K register offsets in
5241 (XSAVE_AVX512_K_ADDR): New macro.
5242 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5244 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5245 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5247 (i387_collect_xsave): Add code to collect AVX512 registers from
5249 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5250 of XMM16-31 registers.
5251 (I387_NUM_K_REGS): New define for number of K registers.
5252 (I387_K0_REGNUM): New define for K0 register number.
5253 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5254 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5255 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5257 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5258 (I387_XMM16_REGNUM): New define for XMM16 register number.
5259 (I387_YMM0_REGNUM): New define for YMM0 register number.
5260 (I387_KEND_REGNUM): New define for last K register number.
5261 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5262 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5264 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5266 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5268 * features/Makefile: Add AVX512 related files.
5269 * features/i386/32bit-avx512.xml: New file.
5270 * features/i386/64bit-avx512.xml: Likewise.
5271 * features/i386/amd64-avx512-linux.c: Likewise.
5272 * features/i386/amd64-avx512-linux.xml: Likewise.
5273 * features/i386/amd64-avx512.c: Likewise.
5274 * features/i386/amd64-avx512.xml: Likewise.
5275 * features/i386/i386-avx512-linux.c: Likewise.
5276 * features/i386/i386-avx512-linux.xml: Likewise.
5277 * features/i386/i386-avx512.c: Likewise.
5278 * features/i386/i386-avx512.xml: Likewise.
5279 * features/i386/x32-avx512-linux.c: Likewise.
5280 * features/i386/x32-avx512-linux.xml: Likewise.
5281 * features/i386/x32-avx512.c: Likewise.
5282 * features/i386/x32-avx512.xml: Likewise.
5283 * regformats/i386/amd64-avx512-linux.dat: New file.
5284 * regformats/i386/amd64-avx512.dat: Likewise.
5285 * regformats/i386/i386-avx512-linux.dat: Likewise.
5286 * regformats/i386/i386-avx512.dat: Likewise.
5287 * regformats/i386/x32-avx512-linux.dat: Likewise.
5288 * regformats/i386/x32-avx512.dat: Likewise.
5289 * NEWS: Add note about new support for AVX512.
5292 2014-04-23 Pedro Alves <palves@redhat.com>
5294 * breakpoint.c (insert_bp_location): Tolerate errors if the
5295 breakpoint is set in a user-loaded objfile.
5296 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5297 location is marked shlib_disabled. If the breakpoint is set in a
5298 user-loaded objfile is a GDB-side memory breakpoint, validate it
5299 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5300 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5302 * mem-break.c (memory_validate_breakpoint): New function.
5303 * objfiles.c (userloaded_objfile_contains_address_p): New
5305 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5306 * target.h (memory_validate_breakpoint): New declaration.
5308 2014-04-23 Pedro Alves <palves@redhat.com>
5310 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5311 the breakpoint is set in a shared library, only suppress
5312 errors for software breakpoints, not hardware breakpoints.
5314 2014-04-22 Pedro Alves <palves@redhat.com>
5316 * infrun.c (schedlock_applies): New function, factored out from
5317 find_thread_needs_step_over.
5318 (find_thread_needs_step_over): Use it.
5319 (switch_back_to_stepped_thread): Always clear trap_expected if the
5320 step over is finished. Return early if scheduler locking applies.
5321 Look for the stepping thread and a potential step-over thread with
5323 (currently_stepping_or_nexting_callback): Delete.
5325 2014-04-22 Nick Clifton <nickc@redhat.com>
5327 * NEWS: Mention that ARM sim now supports tracing.
5329 2014-04-22 Yao Qi <yao@codesourcery.com>
5331 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5333 * tracefile.c (tracefile_fetch_registers): ... it. New
5335 * tracefile.h (tracefile_fetch_registers): Declare.
5336 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5337 tracefile_fetch_registers.
5339 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5342 * windows-nat.c (thread_rec): Don't display a warning when
5343 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5344 fails for any reason, set th->suspended to -1, so that we don't
5345 try to resume such a thread. Also, don't return NULL in these
5346 cases, to avoid completely ruin the session due to "PC register is
5347 not available" error.
5348 (do_windows_fetch_inferior_registers): Check errors in
5349 GetThreadContext call.
5350 (windows_continue): Accept an additional argument KILLED; if not
5351 zero, ignore errors in the SetThreadContext call, since the
5352 inferior was killed and is shutting down.
5353 (windows_resume, get_windows_debug_event)
5354 (windows_create_inferior, windows_mourn_inferior)
5355 (windows_kill_inferior): All callers of windows_continue changed
5356 to adjust to its new calling sequence.
5358 2014-04-19 Yao Qi <yao@codesourcery.com>
5360 * ctf.c (ctf_open): Call post_create_inferior.
5362 2014-04-19 Yao Qi <yao@codesourcery.com>
5364 * ctf.c (handle_id): New static variable.
5365 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5366 value. Get the declaration of event "register" and get length
5367 of field "contents".
5369 2014-04-19 Yao Qi <yao@codesourcery.com>
5371 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5373 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5375 * valops.c (oload_method_static): Remove unnecessary argument
5376 METHOD. Update all callers.
5378 2014-04-18 Pedro alves <palves@redhat.com>
5379 Tom Tromey <tromey@redhat.com>
5382 * frame.c (get_prev_frame_1): Rename to ...
5383 (get_prev_frame_always): ... this, and make extern. Adjust.
5384 (skip_artificial_frames): Use get_prev_frame_always.
5385 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5386 (get_frame_unwind_stop_reason): Adjust to rename.
5387 * frame.h (get_prev_frame_always): Declare.
5388 * inline-frame.c: Include frame.h.
5389 (inline_frame_this_id): Use get_prev_frame_always.
5391 2014-04-18 Tristan Gingold <gingold@adacore.com>
5393 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5394 code by using bfd_mach_o_get_base_address.
5396 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5398 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5399 (spu_ax_pseudo_register_collect): New function.
5400 (spu_ax_pseudo_register_push_stack): Likewise.
5401 (spu_dwarf_reg_to_regnum): Likewise.
5402 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5404 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5406 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5407 Replace FRAME argument with FRAME_ID.
5408 * gdbarch.c, gdbarch.h: Regenerate.
5409 * findvar.c (default_value_from_register): Add GDBARCH argument;
5410 replace FRAME by FRAME_ID. No longer call get_frame_id.
5411 (value_from_register): Update call to gdbarch_value_from_register.
5412 * value.h (default_value_from_register): Update prototype.
5413 * s390-linux-tdep.c (s390_value_from_register): Update interface
5414 and call to default_value_from_register.
5415 * spu-tdep.c (spu_value_from_register): Likewise.
5417 * findvar.c (address_from_register): Remove TYPE argument.
5418 Do not call value_from_register; use gdbarch_value_from_register
5419 with null_frame_id instead.
5420 * value.h (address_from_register): Update prototype.
5421 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5422 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5423 address_from_register interface change.
5425 2014-04-17 Yao Qi <yao@codesourcery.com>
5427 * gdbtypes.h: Update comments to link to types and macros'
5430 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5432 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5434 2014-04-16 Keith Seitz <keiths@redhat.com>
5437 * dwarf2read.c (skip_one_die): Check that all relative-offset
5438 sibling DIEs fall within range of the current reader's buffer.
5439 (read_partial_die): Likewise.
5441 2014-04-16 Keith Seitz <keiths@redhat.com>
5444 * cp-namespace.c (lookup_symbol_file): If the type name of
5445 `this' is NULL, return immediately.
5447 2014-04-14 Keith Seitz <keiths@redhat.com>
5450 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5451 from symbol_matches_domain in symtab.c. All local callers
5452 of symbol_matches_domain updated.
5453 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5454 search STRUCT_DOMAIN.
5455 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5456 independently. standard_lookup will do that automatically.
5457 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5458 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5459 (cp_lookup_symbol_in_namespace): Likewise.
5460 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5461 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5462 may return a STRUCT_DOMAIN match.
5463 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5464 * cp-support.c: Include language.h.
5465 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5467 * psymtab.c (match_partial_symbol): Compare the requested
5468 domain with the symbol's domain directly.
5469 (lookup_partial_symbol): Likewise.
5470 * symtab.c (lookup_symbol_in_language): Explain when/why
5471 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5472 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5473 appropriate languages.
5474 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5475 and moved to ada-lang.c
5476 (lookup_block_symbol): Explain that this function only returns
5477 symbol matching the requested DOMAIN.
5478 Compare the requested domain with the symbol's domain directly.
5479 (iterate_over_symbols): Compare the requested domain with the
5480 symbol's domain directly.
5481 * symtab.h (symbol_matches_domain): Remove.
5483 2014-04-14 Tom Tromey <tromey@redhat.com>
5486 * c-exp.y (type_aggregate_p): New function.
5487 (qualified_name, classify_inner_name): Use it.
5488 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5489 and TYPE_TARGET_TYPE of an enum type.
5490 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5492 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5493 handle TYPE_DECLARED_CLASS.
5494 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5496 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5497 * valops.c (enum_constant_from_type): New function.
5498 (value_aggregate_elt): Use it.
5499 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5502 2014-04-14 Tom Tromey <tromey@redhat.com>
5504 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5505 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5507 * value.h (value_aggregate_elt): Update.
5509 2014-04-14 Tom Tromey <tromey@redhat.com>
5511 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5513 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5515 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5516 (evaluate_subexp_standard): Pass noside argument.
5517 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5518 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5519 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5520 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5521 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5523 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5525 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5526 points to a constant blob.
5528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5530 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5531 property and store it as the high bound and flag the range accordingly.
5532 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5533 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5534 * gdbtypes.h (enum range_flags): New enum.
5535 (struct range_bounds): Add flags member.
5537 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5539 * c-typeprint.c (c_type_print_varspec_suffix): Added
5540 check for not yet resolved high bound. If unresolved, print
5541 "variable length" string to the console instead of random
5544 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5546 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5548 (ada_template_to_fixed_record_type_1): Likewise.
5549 (ada_to_fixed_type_1): Likewise.
5550 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5551 (cp_print_value): Likewise.
5552 * d-valprint.c (dynamic_array_type): Likewise.
5553 * findvar.c (address_of_variable): Likewise.
5554 * jv-valprint.c (java_value_print): Likewise.
5555 * valops.c (value_ind): Likewise.
5556 * value.c (coerce_ref): Likewise.
5558 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5560 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5561 value and retrieve the dynamic type size.
5563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5565 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5566 passed to sizeof is dynamic evaluate the argument to compute the length.
5568 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5569 Joel Brobecker <brobecker@adacore.com>
5571 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5572 (dwarf2_evaluate_property): New function.
5573 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5574 * dwarf2read.c (attr_to_dynamic_prop): New function.
5575 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5577 * gdbtypes.c: Include dwarf2loc.h.
5578 (is_dynamic_type): New function.
5579 (resolve_dynamic_type): New function.
5580 (resolve_dynamic_bounds): New function.
5581 (get_type_length): New function.
5582 (check_typedef): Use get_type_length to compute type length.
5583 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5584 (TYPE_LOW_BOUND_KIND): New macro.
5585 (is_dynamic_type): New function prototype.
5586 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5587 to resolve dynamic properties of the type. Update comment.
5588 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5590 2014-04-14 Richard Henderson <rth@redhat.com>
5592 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5594 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5595 Doug Evans <xdje42@gmail.com>
5597 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5598 dereference TYPE_CODE_REF values.
5600 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5602 Revert the following changes due to regressions:
5604 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5605 (dwarf2_evaluate_property): New function.
5606 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5607 * dwarf2read.c (attr_to_dynamic_prop): New function.
5608 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5610 * gdbtypes.c: Include dwarf2loc.h.
5611 (is_dynamic_type): New function.
5612 (resolve_dynamic_type): New function.
5613 (resolve_dynamic_bounds): New function.
5614 (get_type_length): New function.
5615 (check_typedef): Use get_type_length to compute type length.
5616 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5617 (TYPE_LOW_BOUND_KIND): New macro.
5618 (is_dynamic_type): New function prototype.
5619 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5620 to resolve dynamic properties of the type. Update comment.
5621 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5623 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5624 passed to sizeof is dynamic evaluate the argument to compute the length.
5626 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5627 value and retrieve the dynamic type size.
5629 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5630 (ada_template_to_fixed_record_type_1): Likewise.
5631 (ada_to_fixed_type_1): Likewise.
5632 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5633 (cp_print_value): Likewise.
5634 * d-valprint.c (dynamic_array_type): Likewise.
5635 * eval.c (evaluate_subexp_with_coercion): Likewise.
5636 * findvar.c (address_of_variable): Likewise.
5637 * jv-valprint.c (java_value_print): Likewise.
5638 * valops.c (value_ind): Likewise.
5639 * value.c (coerce_ref): Likewise.
5641 * c-typeprint.c (c_type_print_varspec_suffix): Added
5642 check for not yet resolved high bound. If unresolved, print
5643 "variable length" string to the console instead of random
5646 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5647 property and store it as the high bound and flag the range accordingly.
5648 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5649 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5650 * gdbtypes.h (enum range_flags): New enum.
5651 (struct range_bounds): Add flags member.
5653 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5654 points to a constant blob.
5656 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5657 (evaluate_subexp_standard): Pass noside argument.
5658 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5659 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5660 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5661 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5662 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5664 2014-04-11 Keith Seitz <keiths@redhat.com>
5667 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5668 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5671 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5673 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5674 (evaluate_subexp_standard): Pass noside argument.
5675 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5676 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5677 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5678 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5679 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5681 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5683 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5684 points to a constant blob.
5686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5688 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5689 property and store it as the high bound and flag the range accordingly.
5690 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5691 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5692 * gdbtypes.h (enum range_flags): New enum.
5693 (struct range_bounds): Add flags member.
5695 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5697 * c-typeprint.c (c_type_print_varspec_suffix): Added
5698 check for not yet resolved high bound. If unresolved, print
5699 "variable length" string to the console instead of random
5702 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5704 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5705 (ada_template_to_fixed_record_type_1): Likewise.
5706 (ada_to_fixed_type_1): Likewise.
5707 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5708 (cp_print_value): Likewise.
5709 * d-valprint.c (dynamic_array_type): Likewise.
5710 * eval.c (evaluate_subexp_with_coercion): Likewise.
5711 * findvar.c (address_of_variable): Likewise.
5712 * jv-valprint.c (java_value_print): Likewise.
5713 * valops.c (value_ind): Likewise.
5714 * value.c (coerce_ref): Likewise.
5716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5718 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5719 value and retrieve the dynamic type size.
5721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5723 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5724 passed to sizeof is dynamic evaluate the argument to compute the length.
5726 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5728 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5729 (dwarf2_evaluate_property): New function.
5730 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5731 * dwarf2read.c (attr_to_dynamic_prop): New function.
5732 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5734 * gdbtypes.c: Include dwarf2loc.h.
5735 (is_dynamic_type): New function.
5736 (resolve_dynamic_type): New function.
5737 (resolve_dynamic_bounds): New function.
5738 (get_type_length): New function.
5739 (check_typedef): Use get_type_length to compute type length.
5740 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5741 (TYPE_LOW_BOUND_KIND): New macro.
5742 (is_dynamic_type): New function prototype.
5743 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5744 to resolve dynamic properties of the type. Update comment.
5745 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5749 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5750 declaring high/low bounds and change uses accordingly. Call
5751 create_range_type instead of create_static_range_type.
5752 * gdbtypes.c (create_range_type): New function.
5753 (create_range_type): Convert bounds into struct bound_prop and pass
5754 them to create_range_type.
5755 * gdbtypes.h (struct bound_prop): New struct.
5756 (create_range_type): New function prototype.
5757 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5758 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5759 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5761 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5763 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5765 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5766 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5767 * ada-lang.c: All uses of create_range_type updated.
5768 * coffread.c: All uses of create_range_type updated.
5769 * dwarf2read.c: All uses of create_range_type updated.
5770 * f-exp.y: All uses of create_range_type updated.
5771 * m2-valprint.c: All uses of create_range_type updated.
5772 * mdebugread.c: All uses of create_range_type updated.
5773 * stabsread.c: All uses of create_range_type updated.
5774 * valops.c: All uses of create_range_type updated.
5775 * valprint.c: All uses of create_range_type updated.
5777 2014-04-10 Pedro Alves <palves@redhat.com>
5779 * breakpoint.c (single_step_breakpoints)
5780 (single_step_gdbarch): Move up in the file.
5781 (one_breakpoint_xfer_memory): New function, factored out from ...
5782 (breakpoint_xfer_memory): ... here. Also process single-step
5785 2014-04-09 Tristan Gingold <gingold@adacore.com>
5787 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5789 (darwin_decode_exception_message): Free port only after use.
5791 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5793 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5794 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5795 when setting the size of call_length.
5797 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5799 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5800 dereference TYPE_CODE_REF values.
5802 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5804 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5805 end of warning message.
5807 2014-04-03 Doug Evans <dje@google.com>
5809 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5810 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5812 2014-04-02 Alan Modra <amodra@gmail.com>
5814 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5815 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5816 (struct symbol_file_add_from_memory_args): Add size field.
5817 (find_vdso_size): New function.
5818 (add_vsyscall_page): Attempt to find vdso size.
5820 2014-04-01 Doug Evans <dje@google.com>
5822 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5824 2014-04-01 Tristan Gingold <gingold@adacore.com>
5826 * darwin-nat.c (darwin_encode_reply): Add prototype.
5827 (darwin_decode_exception_message): Reply to unknown inferiors.
5828 (darwin_decode_message): Handle message by id. Ignore message
5829 to unknown inferior.
5830 (darwin_wait): Discard unknown messages, add debug trace.
5832 2014-03-31 Doug Evans <dje@google.com>
5834 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5837 2014-03-31 Doug Evans <dje@google.com>
5839 New option "set print symbol-loading".
5841 * solib.c (solib_read_symbols): Only print symbol loading messages
5843 (solib_add): If symbol loading is in "brief" mode, notify user
5844 symbols are being loaded.
5845 (reload_shared_libraries_1): Ditto.
5846 * symfile.c (print_symbol_loading_off): New static global.
5847 (print_symbol_loading_brief): New static global.
5848 (print_symbol_loading_full): New static global.
5849 (print_symbol_loading_enums): New static global.
5850 (print_symbol_loading): New static global.
5851 (print_symbol_loading_p): New function.
5852 (symbol_file_add_with_addrs): Only print symbol loading messages
5854 (_initialize_symfile): Register "print symbol-loading" set/show
5856 * symfile.h (print_symbol_loading_p): Declare.
5858 2014-03-30 Doug Evans <xdje42@gmail.com>
5860 * infrun.c (set_last_target_status): New function.
5861 (handle_inferior_event): Call it.
5863 2014-03-30 Doug Evans <xdje42@gmail.com>
5865 * inferior.h (enum stop_kind): Improve comment.
5867 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5869 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5870 a reference, strip the reference layer before calling
5871 the lang_ops value_has_mutated callback.
5873 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5875 Remove some globals from our parser.
5876 * language.c (unk_lang_parser): Add "struct parser_state"
5878 * language.h (struct language_defn) <la_parser>: Likewise.
5879 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5880 (initialize_expout): Add "struct parser_state" argument.
5881 Rewrite function to use the parser state.
5882 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5883 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5884 write_exp_elt_longcst, write_exp_elt_dblcst,
5885 write_exp_elt_decfloatcst, write_exp_elt_type,
5886 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5887 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5888 write_dollar_variable): Likewise.
5889 (parse_exp_in_context_1): Use parser state.
5890 (insert_type_address_space): Add "struct parser_state" argument.
5892 (increase_expout_size): New function.
5893 * parser-defs.h: Forward declare "struct language_defn" and
5894 "struct parser_state".
5895 (expout, expout_size, expout_ptr): Remove extern declarations.
5896 (parse_gdbarch, parse_language): Rewrite macro declarations to
5897 accept the parser state.
5898 (struct parser_state): New struct.
5899 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5900 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5901 write_exp_elt_decfloatcst, write_exp_elt_type,
5902 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5903 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5904 write_exp_msymbol, write_dollar_variable,
5905 mark_struct_expression, insert_type_address_space): Add "struct
5906 parser_state" argument.
5907 (increase_expout_size): New function.
5908 * utils.c (do_clear_parser_state): New function.
5909 (make_cleanup_clear_parser_state): Likewise.
5910 * utils.h (make_cleanup_clear_parser_state): New function
5912 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5913 Update calls to write_exp* in order to pass the parser state.
5914 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5915 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5916 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5917 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5918 * stap-probe.c (stap_parse_register_operand): Likewise.
5919 (stap_parse_single_operand): Likewise.
5920 (stap_parse_argument_1): Likewise.
5921 (stap_parse_argument): Use parser state.
5922 * stap-probe.h: Include "parser-defs.h".
5923 (struct stap_parse_info) <pstate>: New field.
5924 * c-exp.y (parse_type): Rewrite to use parser state.
5925 (yyparse): Redefine to c_parse_internal.
5926 (pstate): New global variable.
5927 (parse_number): Add "struct parser_state" argument.
5928 (write_destructor_name): Likewise.
5929 (type_exp): Update calls to write_exp* and similars in order to
5931 (exp1, exp, variable, qualified_name, space_identifier,
5932 typename, typebase): Likewise.
5933 (write_destructor_name, parse_number, lex_one_token,
5934 classify_name, classify_inner_name, c_parse): Add "struct
5935 parser_state" argument. Update function to use parser state.
5936 * c-lang.h: Forward declare "struct parser_state".
5937 (c_parse): Add "struct parser_state" argument.
5938 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5939 (yyparse): Redefine macro to ada_parse_internal.
5940 (pstate): New variable.
5941 (write_int, write_object_renaming, write_var_or_type,
5942 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5943 type_int, type_long, type_long_long, type_float, type_double,
5944 type_long_double, type_char, type_boolean, type_system_address):
5945 Add "struct parser_state" argument.
5946 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5947 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5948 var_or_type, aggregate, aggregate_component_list,
5949 positional_list, others, component_group,
5950 component_associations): Update calls to write_exp* and similar
5951 functions in order to use parser state.
5952 (ada_parse, write_var_from_sym, write_int,
5953 write_exp_op_with_string, write_object_renaming,
5954 find_primitive_type, write_selectors, write_ambiguous_var,
5955 write_var_or_type, write_name_assoc, type_int, type_long,
5956 type_long_long, type_float, type_double, type_long_double,
5957 type_char, type_boolean, type_system_address): Add "struct
5958 parser_state" argument. Adjust function to use parser state.
5959 * ada-lang.c (parse): Likewise.
5960 * ada-lang.h: Forward declare "struct parser_state".
5961 (ada_parse): Add "struct parser_state" argument.
5962 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5963 calls to both functions.
5964 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5966 (yyparse): Redefine macro to f_parse_internal.
5967 (pstate): New variable.
5968 (parse_number): Add "struct parser_state" argument.
5969 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5970 and similars in order to use parser state.
5971 (parse_number): Adjust code to use parser state.
5973 (f_parse): New function.
5974 * f-lang.h: Forward declare "struct parser_state".
5975 (f_parse): Add "struct parser_state" argument.
5976 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5978 (yyparse): Redefine macro for java_parse_internal.
5979 (pstate): New variable.
5980 (push_expression_name, push_expression_name, insert_exp): Add
5981 "struct parser_state" argument.
5982 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5983 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5984 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5985 PostIncrementExpression, PostDecrementExpression,
5986 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5987 UnaryExpressionNotPlusMinus, CastExpression,
5988 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5989 RelationalExpression, EqualityExpression, AndExpression,
5990 ExclusiveOrExpression, InclusiveOrExpression,
5991 ConditionalAndExpression, ConditionalOrExpression,
5992 ConditionalExpression, Assignment, LeftHandSide): Update
5993 calls to write_exp* and similars in order to use parser state.
5994 (parse_number): Ajust code to use parser state.
5996 (java_parse): New function.
5997 (push_variable): Add "struct parser_state" argument. Adjust
5998 code to user parser state.
5999 (push_fieldnames, push_qualified_expression_name,
6000 push_expression_name, insert_exp): Likewise.
6001 * jv-lang.h: Forward declare "struct parser_state".
6002 (java_parse): Add "struct parser_state" argument.
6003 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6005 (yyparse): Redefine macro to m2_parse_internal.
6006 (pstate): New variable.
6007 (type_exp, exp, fblock, variable, type): Update calls to
6008 write_exp* and similars to use parser state.
6010 (m2_parse): New function.
6011 * m2-lang.h: Forward declare "struct parser_state".
6012 (m2_parse): Add "struct parser_state" argument.
6013 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6014 * objc-lang.h: Forward declare "struct parser_state".
6015 (end_msglist): Add "struct parser_state" argument.
6016 * p-exp.y (parse_type): Rewrite macro to use parser state.
6017 (yyparse): Redefine macro to pascal_parse_internal.
6018 (pstate): New variable.
6019 (parse_number): Add "struct parser_state" argument.
6020 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6021 write_exp* and similars in order to use parser state.
6022 (parse_number, yylex): Adjust code to use parser state.
6023 (pascal_parse): New function.
6024 * p-lang.h: Forward declare "struct parser_state".
6025 (pascal_parse): Add "struct parser_state" argument.
6026 * go-exp.y (parse_type): Rewrite macro to use parser state.
6027 (yyparse): Redefine macro to go_parse_internal.
6028 (pstate): New variable.
6029 (parse_number): Add "struct parser_state" argument.
6030 (type_exp, exp1, exp, variable, type): Update calls to
6031 write_exp* and similars in order to use parser state.
6032 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6033 to use parser state.
6034 (go_parse): Likewise.
6035 * go-lang.h: Forward declare "struct parser_state".
6036 (go_parse): Add "struct parser_state" argument.
6038 2014-03-27 Doug Evans <dje@google.com>
6040 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6042 2014-03-27 Doug Evans <dje@google.com>
6044 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6045 Remove argument abbrev_section. All callers updated.
6047 2014-03-27 Doug Evans <dje@google.com>
6049 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6050 addr_base, ranges_base.
6052 2014-03-26 Keith Seitz <keiths@redhat.com>
6054 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6055 types, not VAR_DOMAIN.
6057 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6059 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6061 * features/nios2-linux.c: Regenerated.
6062 * features/nios2.c: Regenerated.
6064 2014-03-25 Pedro Alves <palves@redhat.com>
6066 * cli/cli-script.c (script_from_file): Force the interpreter to
6069 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6071 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6072 small stack allocation.
6074 2014-03-24 Tristan Gingold <gingold@adacore.com>
6076 * darwin-nat.c (exc_server): Remove unused prototype.
6077 (darwin_dump_message): Correctly display data on x86_64.
6078 (darwin_encode_reply): Fix style.
6079 Add comments and fix indentation.
6081 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6083 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6085 2014-03-22 Doug Evans <xdje42@gmail.com>
6087 * infcmd.c: Whitespace fixes.
6088 (interrupt_command): Merge two function comments into one.
6090 2014-03-22 Doug Evans <xdje42@gmail.com>
6092 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6095 2014-03-22 Yao Qi <yao@codesourcery.com>
6097 * remote.c (target_read_live_memory): Remove.
6098 (memory_xfer_live_readonly_partial): Rename it to
6099 remote_xfer_live_readonly_partial. Remove argument 'object'.
6100 All callers updated. Call remote_read_bytes_1
6101 instead of target_read_live_memory.
6102 * tracepoint.c (set_traceframe_number): Remove.
6103 (make_cleanup_restore_traceframe_number): Likewise .
6104 * tracepoint.h (set_traceframe_number): Remove declaration.
6105 (make_cleanup_restore_traceframe_number): Likewise.
6107 2014-03-22 Yao Qi <yao@codesourcery.com>
6109 * remote.c (remote_read_bytes): Move code on reading from the
6111 (remote_read_bytes_1): ... here. New function.
6113 2014-03-22 Yao Qi <yao@codesourcery.com>
6115 * ctf.c (ctf_xfer_partial): Check the return value of
6116 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6117 return TARGET_XFER_UNAVAILABLE.
6118 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6119 * target.c (target_read_live_memory): Move it to remote.c.
6120 (memory_xfer_live_readonly_partial): Likewise.
6121 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6122 * remote.c (target_read_live_memory): Moved from target.c.
6123 (memory_xfer_live_readonly_partial): Likewise.
6124 (remote_read_bytes): Factored out from
6125 memory_xfer_partial_1.
6127 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6129 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6132 2014-03-21 Pedro Alves <palves@redhat.com>
6134 * infrun.c (normal_stop): Extend comment.
6136 2014-03-21 Hui Zhu <hui@codesourcery.com>
6137 Pedro Alves <palves@redhat.com>
6139 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6141 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6142 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6143 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6145 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6147 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6148 `z' formatted output modifier.
6150 2014-03-20 Tom Tromey <tromey@redhat.com>
6151 Sergio Durigan Junior <sergiodj@redhat.com>
6153 * probe.c (parse_probes): Turn assert into an ordinary error.
6154 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6155 exceptions when parsing probes. Rearrange the code for clarity.
6157 2014-03-20 Tom Tromey <tromey@redhat.com>
6160 * top.c (execute_command): Only dispatch events if the command
6163 2014-03-20 Tom Tromey <tromey@redhat.com>
6166 * infcall.c: Include event-top.h.
6167 (run_inferior_call): Call async_disable_stdin if needed.
6169 2014-03-20 Pedro Alves <palves@redhat.com>
6171 * infrun.c (prepare_to_proceed): Delete.
6172 (thread_still_needs_step_over): New function.
6173 (find_thread_needs_step_over): New function.
6174 (proceed): If the current thread needs a step-over, set its
6175 steping_over_breakpoint flag. Adjust to use
6176 find_thread_needs_step_over instead of prepare_to_proceed.
6177 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6178 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6180 (switch_back_to_stepped_thread): Step over breakpoints of all
6181 threads not the stepping thread, before switching back to the
6184 2014-03-20 Pedro Alves <palves@redhat.com>
6186 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6188 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6189 * infrun.c (saved_singlestep_ptid)
6190 (stepping_past_singlestep_breakpoint): Delete.
6191 (resume): Remove stepping_past_singlestep_breakpoint handling.
6192 (proceed): Store the prev_pc of the stepping thread too.
6193 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6195 (enum infwait_states): Delete infwait_thread_hop_state.
6196 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6198 (handle_inferior_event): Adjust.
6199 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6200 handling and the thread-hop code. Before removing single-step
6201 breakpoints, check whether the thread hit a single-step breakpoint
6202 of another thread. If it did, the trap is not a random signal.
6203 (switch_back_to_stepped_thread): If the event thread hit a
6204 single-step breakpoint, unblock it before switching to the
6205 stepping thread. Handle the case of the stepped thread having
6207 (keep_going): Handle the case of the current thread moving past a
6208 single-step breakpoint.
6210 2014-03-20 Pedro Alves <palves@redhat.com>
6213 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6214 are being stepped over.
6215 (breakpoint_address_match): Make extern.
6216 * breakpoint.h (breakpoint_address_match): New declaration.
6217 * inferior.h (stepping_past_instruction_at): New declaration.
6218 * infrun.c (struct step_over_info): New type.
6219 (step_over_info): New global.
6220 (set_step_over_info, clear_step_over_info)
6221 (stepping_past_instruction_at): New functions.
6222 (handle_inferior_event): Clear the step-over info when
6223 trap_expected is cleared.
6224 (resume): Remove now stale comment.
6225 (clear_proceed_status): Clear step-over info.
6226 (proceed): Adjust step-over handling to set or clear the step-over
6227 info instead of removing all breakpoints.
6228 (handle_signal_stop): When setting up a thread-hop, don't remove
6230 (stop_stepping): Clear step-over info.
6231 (keep_going): Adjust step-over handling to set or clear step-over
6232 info and then always inserting breakpoints, instead of removing
6233 all breakpoints when stepping over one.
6235 2014-03-20 Pedro Alves <palves@redhat.com>
6237 * infrun.c (previous_inferior_ptid): Adjust comment.
6238 (deferred_step_ptid): Delete.
6239 (infrun_thread_ptid_changed, prepare_to_proceed)
6240 (init_wait_for_inferior): Adjust.
6241 (handle_signal_stop): Delete deferred_step_ptid handling.
6243 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6246 * defs.h (sync_quit_force_run): New declaration.
6247 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6248 * event-top.c (async_sigterm_handler): New declaration.
6249 (async_sigterm_token): New variable.
6250 (async_init_signals): Create also async_sigterm_token.
6251 (async_sigterm_handler): New function.
6252 (sync_quit_force_run): New variable.
6253 (handle_sigterm): Replace quit_force call by other calls.
6254 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6256 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6258 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6259 offset into SPE pseudo registers.
6261 2014-03-18 Pedro Alves <palves@redhat.com>
6264 * inferior.h (print_stop_event): Declare.
6265 * infrun.c (print_stop_event): New, factored out from ...
6266 (normal_stop): ... this.
6267 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6268 of bpstat_print/print_stack_frame.
6270 2014-03-17 Tom Tromey <tromey@redhat.com>
6272 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6274 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6276 * ada-lang.c (decode_constrained_packed_array): Perform a
6277 minimal coercion for reference with coerce_ref instead of
6280 2014-03-17 Tristan Gingold <gingold@adacore.com>
6282 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6283 (darwin_solib_create_inferior_hook): Emit a warning if version
6286 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6288 * python/py-value.c (get_field_flag): Cast flag_name argument to
6289 PyObject_GetAttrString to support Python 2.4.
6291 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6293 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6294 (Global Maintainers): Remove Jan Kratochvil.
6296 2014-03-14 Pedro Alves <palves@redhat.com>
6298 * inferior.h (terminal_ours_for_output): Rename to ...
6299 (child_terminal_ours_for_output): ... this.
6300 (terminal_save_ours): Rename to ...
6301 (child_terminal_save_ours): ... this.
6302 (terminal_ours): Rename to ...
6303 (child_terminal_ours): ... this.
6304 (terminal_inferior): Rename to ...
6305 (child_terminal_inferior): ... this.
6306 (terminal_init_inferior): Rename to ...
6307 (child_terminal_init_inferior): ... this.
6308 (terminal_init_inferior_with_pgrp): Rename to ...
6309 (child_terminal_init_inferior_with_pgrp): ... this.
6310 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6311 (child_terminal_init_with_pgrp): ... this.
6312 (terminal_save_ours): Rename to ...
6313 (child_terminal_save_ours): ... this.
6314 (terminal_init_inferior): Rename to ...
6315 (child_terminal_init): ... this. Adjust.
6316 (terminal_inferior): Rename to ...
6317 (child_terminal_inferior): ... this.
6318 (terminal_ours_for_output): Rename to ...
6319 (child_terminal_ours_for_output): ... this. Adjust.
6320 (terminal_ours): Rename to ...
6321 (child_terminal_ours): ... this.
6322 (terminal_ours_1): Rename to ...
6323 (child_terminal_ours_1): ... this. Adjust.
6324 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6325 * windows-nat.c (do_initial_windows_stuff): Adjust.
6326 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6327 (gnu_terminal_init): ... this. Adjust.
6328 (gnu_target): Adjust.
6329 * inf-child.c (inf_child_target): Adjust.
6331 2014-03-13 Doug Evans <xdje42@gmail.com>
6334 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6337 2014-03-13 Doug Evans <xdje42@gmail.com>
6339 * value.c (record_latest_value): Call release_value_or_incref
6340 instead of release_value.
6342 2014-03-13 Pedro Alves <palves@redhat.com>
6344 * procfs.c (procfs_target): Don't override to_shortname,
6345 to_longname or to_doc.
6347 2014-03-13 Pedro Alves <palves@redhat.com>
6349 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6350 Unix in user visible strings.
6352 2014-03-12 Stan Shebs <stan@codesourcery.com>
6354 * gdbtypes.h: Annotate comments for Doxygen, add a page
6355 block comment with some general info.
6357 2014-03-12 Pedro Alves <palves@redhat.com>
6359 * infcmd.c (prepare_execution_command): New function, factored out
6360 from several execution commands.
6361 (run_command_1, continue_command, step_1, jump_command)
6362 (signal_command, until_command, advance_command, finish_command)
6363 (attach_command): Use prepare_execution_command.
6365 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6367 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6370 (struct arm_linux_thread_points): Removed.
6371 (struct arm_linux_process_info): New.
6372 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6373 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6374 (arm_linux_find_breakpoints_by_tid): Removed.
6375 (struct arch_lwp_info): New.
6376 (arm_linux_find_process_pid): New functions.
6377 (arm_linux_add_process): New functions.
6378 (arm_linux_process_info_get): New functions.
6379 (arm_linux_forget_process): New function.
6380 (arm_linux_get_debug_reg_state): New function.
6381 (struct update_registers_data): New.
6382 (update_registers_callback): New function.
6383 (arm_linux_insert_hw_breakpoint1): Updated.
6384 (arm_linux_remove_hw_breakpoint1): Updated.
6385 (arm_linux_insert_hw_breakpoint): Updated.
6386 (arm_linux_remove_hw_breakpoint): Updated.
6387 (arm_linux_insert_watchpoint): Updated.
6388 (arm_linux_remove_watchpoint): Updated.
6389 (arm_linux_new_thread): Updated.
6390 (arm_linux_prepare_to_resume): New function.
6391 (arm_linux_new_fork): New function.
6392 (_initialize_arm_linux_nat): Updated.
6394 2014-03-12 Pedro Alves <palves@redhat.com>
6396 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6398 2014-03-12 Tom Tromey <tromey@redhat.com>
6400 * inf-child.c (return_zero): New function.
6401 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6402 * aix-thread.c (aix_thread_inferior_created): New function.
6403 (aix_thread_attach): Remove.
6404 (init_aix_thread_ops): Don't set to_attach.
6405 (_initialize_aix_thread): Register inferior_created observer.
6406 * corelow.c (init_core_ops): Don't set to_attach or
6408 * exec.c (init_exec_ops): Don't set to_attach or
6410 * infcmd.c (run_command_1): Use find_run_target. Make direct
6412 (attach_command): Use find_attach_target. Make direct target
6414 * record-btrace.c (init_record_btrace_ops): Don't set
6416 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6418 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6419 set to_create_inferior.
6420 * target.c (complete_target_initialization): Add assertion.
6421 (target_create_inferior): Remove.
6422 (find_default_attach, find_default_create_inferior): Remove.
6423 (find_attach_target, find_run_target): New functions.
6424 (find_default_is_async_p, find_default_can_async_p)
6425 (target_supports_non_stop, target_attach): Remove.
6426 (init_dummy_target): Don't set to_create_inferior or
6427 to_supports_non_stop.
6428 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6429 TARGET_DEFAULT_FUNC.
6430 <to_create_inferior>: Add comment.
6431 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6432 TARGET_DEFAULT_RETURN.
6433 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6434 (find_attach_target, find_run_target): Declare.
6435 (target_create_inferior): Remove.
6436 (target_has_execution_1): Update comment.
6437 (target_supports_non_stop): Remove.
6438 * target-delegates.c: Rebuild.
6440 2014-03-12 Pedro Alves <palves@redhat.com>
6442 * inf-child.h: Update comment to not mention Unix.
6444 2014-03-12 Pedro Alves <palves@redhat.com>
6446 * inf-child.c: Update top comment to not mention Unix. Add
6447 generic comment describing how this target is meant to be used.
6448 (inf_child_post_attach, inf_child_post_startup_inferior)
6449 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6452 2014-03-12 Pedro Alves <palves@redhat.com>
6454 * nto-procfs.c: Include inf-child.h.
6455 (procfs_ops): Delete global.
6456 (procfs_can_run): Delete method.
6457 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6458 target pointer instead of referencing procfs_ops.
6459 (procfs_prepare_to_store): Delete.
6460 (init_procfs_ops): Delete function.
6461 (procfs_target): New function, based on init_procfs_ops, but
6462 inherit inf_child_target.
6463 (_initialize_procfs): Use procfs_target.
6465 2014-03-12 Pedro Alves <palves@redhat.com>
6467 * windows-nat.c: Include inf-child.h.
6468 (windows_ops): Delete global.
6469 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6471 (init_windows_ops): Delete function.
6472 (windows_target): New function, based on init_windows_ops, but
6473 inherit inf_child_target.
6474 (_initialize_windows_nat): Use windows_target. Install x86
6475 specific target methods here.
6477 2014-03-10 Doug Evans <xdje42@gmail.com>
6479 * guile/guile.c (call_initialize_gdb_module): New function.
6480 (initialize_guile): Replace call to scm_init_guile with call to
6483 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6485 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6486 in call to TYPE_CODE macro.
6488 2014-03-10 Jerome Guitton <guitton@adacore.com>
6490 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6491 Resolve tagged types to full view.
6493 2014-03-10 Hui Zhu <hui@codesourcery.com>
6495 * target.h (target_insert_breakpoint): Remove "hardware" from its
6498 2014-03-07 Doug Evans <dje@google.com>
6500 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6502 2014-03-07 Doug Evans <dje@google.com>
6504 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6505 Remove unused local comp_dir_attr. Assert exactly one of
6506 stub_comp_unit_die, stub_comp_dir is non-NULL.
6508 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6510 * target.h (complete_target_initialization, add_target):
6513 2014-03-07 Pedro Alves <palves@redhat.com>
6515 * go32-nat.c: Include inf-child.h.
6516 (go32_ops): Delete global.
6517 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6519 (go32_create_inferior): Push the passed in target pointer instead
6520 of referencing go32_ops.
6521 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6522 (go32_target): New function, based on init_go32_ops, but inherit
6524 (_initialize_go32_nat): Use go32_target. Move parts of
6527 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6529 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6530 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6531 SYMBOL_VALUE_ADDRESS.
6532 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6534 2014-03-06 Yao Qi <yao@codesourcery.com>
6536 * breakpoint.c (get_tracepoint_by_number): Remove argument
6537 optional_p. All callers updated. Adjust comments. Update
6539 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6541 2014-03-06 Yao Qi <yao@codesourcery.com>
6543 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6544 early if get_number returns zero. Use 'p' instead of 'args'.
6546 2014-03-06 Yao Qi <yao@codesourcery.com>
6548 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6551 2014-03-06 Yao Qi <yao@codesourcery.com>
6553 PR breakpoints/16508
6554 * tracepoint.c (check_trace_running): New function.
6555 (trace_find_command): Move code to check_trace_running and
6556 call check_trace_running.
6557 (trace_find_pc_command): Likewise.
6558 (trace_find_tracepoint_command): Likewise.
6559 (trace_find_line_command): Likewise.
6560 (trace_find_range_command): Likewise.
6561 * tracepoint.h (check_trace_running): Likewise.
6562 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6564 2014-03-06 Yao Qi <yao@codesourcery.com>
6566 * target.h (struct target_ops) <to_traceframe_info>: Use
6567 TARGET_DEFAULT_NORETURN (tcomplain ()).
6568 * target-delegates.c: Regenerated.
6570 2014-03-05 Pedro Alves <palves@redhat.com>
6573 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6574 void. Update comment.
6575 (dcache_xfer_memory): Delete.
6576 (dcache_read_memory_partial): New, based on the read bits of
6578 (dcache_update): Add status parameter. Use ULONGEST for len, and
6579 adjust. Discard cache lines if the reason for the update was
6581 * dcache.h (dcache_xfer_memory): Delete declaration.
6582 (dcache_read_memory_partial): New declaration.
6583 (dcache_update): Update prototype.
6584 * target.c (raw_memory_xfer_partial): Update the dcache here.
6585 (memory_xfer_partial_1): Don't handle dcache writes here.
6587 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6589 * remote-sim.c (gdbsim_load): Add const to prog.
6591 2014-03-03 Tom Tromey <tromey@redhat.com>
6593 * elfread.c (probe_key): Change to bfd_data.
6594 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6595 now per-BFD, not per-objfile.
6596 * stap-probe.c (stap_probe_destroy): Update comment.
6597 (handle_stap_probe): Allocate on the per-BFD obstack.
6599 2014-03-03 Tom Tromey <tromey@redhat.com>
6601 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6602 * breakpoint.c (create_longjmp_master_breakpoint): Use
6604 (add_location_to_breakpoint, bkpt_probe_insert_location)
6605 (bkpt_probe_remove_location): Update.
6606 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6607 * elfread.c (elf_symfile_relocate_probe): Remove.
6608 (elf_probe_fns): Update.
6609 (insert_exception_resume_breakpoint): Change type of "probe"
6610 parameter to bound_probe.
6611 (check_exception_resume): Update.
6612 * objfiles.c (objfile_relocate1): Don't relocate probes.
6613 * probe.c (bound_probe_s): New typedef.
6614 (parse_probes): Use get_probe_address. Set sal's objfile.
6615 (find_probe_by_pc): Return a bound_probe.
6616 (collect_probes): Return a VEC(bound_probe_s).
6617 (compare_probes): Update.
6618 (gen_ui_out_table_header_info): Change type of "probes"
6620 (info_probes_for_ops): Update.
6621 (get_probe_address): New function.
6622 (probe_safe_evaluate_at_pc): Update.
6623 * probe.h (struct probe_ops) <get_probe_address>: New field.
6624 <set_semaphore, clear_semaphore>: Add objfile parameter.
6625 (struct probe) <objfile>: Remove field.
6627 <address>: Update comment.
6628 (struct bound_probe): New.
6629 (find_probe_by_pc): Return a bound_probe.
6630 (get_probe_address): Declare.
6631 * solib-svr4.c (struct probe_and_action) <address>: New field.
6632 (hash_probe_and_action, equal_probe_and_action): Update.
6633 (register_solib_event_probe): Add address parameter.
6634 (solib_event_probe_at): Update.
6635 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6637 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6638 (stap_get_probe_address): New function.
6639 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6640 (compile_probe_arg): Update.
6641 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6643 (handle_stap_probe): Don't relocate the probe.
6644 (stap_relocate): Remove.
6645 (stap_gen_info_probes_table_values): Update.
6646 (stap_probe_ops): Remove stap_relocate.
6647 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6648 (debug_sym_probe_fns): Update.
6649 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6650 * symtab.c (init_sal): Use memset.
6651 * symtab.h (struct symtab_and_line) <objfile>: New field.
6652 * tracepoint.c (start_tracing, stop_tracing): Update.
6654 2014-03-03 Tom Tromey <tromey@redhat.com>
6656 * probe.h (parse_probes, find_probe_by_pc)
6657 (find_probes_in_objfile): Fix comments.
6659 2014-03-02 Doug Evans <xdje42@gmail.com>
6661 * infrun.c (handle_signal_stop): Replace test for
6662 TARGET_WAITKIND_STOPPED with an assert.
6664 2014-03-02 Doug Evans <xdje42@gmail.com>
6666 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6668 2014-03-02 Doug Evans <xdje42@gmail.com>
6670 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6672 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6674 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6676 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6678 * i386obsd-nat.c: Include "obsd-nat.h".
6679 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6681 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6683 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6685 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6687 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6689 * mips64obsd-nat.c: Include "obsd-nath".
6690 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6692 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6694 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6696 * amd64obsd-nat.c: Include "obsd-nat,h.
6697 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6699 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6701 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6703 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6704 (find_overload_match): Update call to find_oload_champ.
6705 (find_oload_champ_namespace_loop): Likewise
6707 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6709 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6711 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6712 * config/sparc/obsd64.mh: New file.
6713 * sparc64obsd-nat.c: New file.
6715 * obsd-nat.h: New file.
6716 * obsd-nat.c: New file.
6717 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6718 (ALLDEPFILES): Add obsd-nat.c.
6720 2014-02-28 Tom Tromey <tromey@redhat.com>
6722 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6723 * cli-out.h (cli_ui_out_impl): Now const.
6724 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6725 * ui-out.c (struct ui_out) <impl>: Now const.
6726 (default_ui_out_impl): Now const.
6727 (ui_out_new): Make 'impl' parameter const.
6728 * ui-out.h (ui_out_new): Update.
6730 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6732 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6734 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6736 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6738 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6740 Additional PR 8882 fix.
6741 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6743 2014-02-27 Pedro Alves <palves@redhat.com>
6745 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6748 2014-02-27 Pedro Alves <palves@redhat.com>
6751 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6752 * nat/linux-waitpid.c: Include string.h.
6753 (status_to_str): Moved here and made extern.
6754 * nat/linux-waitpid.h (status_to_str): New declaration.
6756 2014-02-27 Hui Zhu <hui@codesourcery.com>
6759 * infrun.c (ptid_match): Move ...
6760 * common/ptid.c (ptid_match): ... here.
6761 * inferior.h (ptid_match): Move ...
6762 * common/ptid.h (ptid_match): ... here.
6764 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6766 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6767 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6770 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6772 * obsd-tdep.c (obsd_auxv_parse): New function.
6773 (obsd_init_abi): Set auxv_parse.
6775 * gdbarch.sh (auxv_parse): New.
6776 * gdbarch.h: Regenerated.
6777 * gdbarch.c: Regenerated.
6778 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6780 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6782 * guile/scm-value.c (gdbscm_history_append_x): New function.
6783 (value_functions): Add it.
6785 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6787 * dwarf2read.c (attr_value_as_address): New function.
6788 (dwarf2_find_base_address, read_call_site_scope): Use
6789 attr_value_as_address in place of DW_ADDR.
6790 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6791 the low and high addresses. Slight rework of the handling
6792 of the high pc being a constant form, and limit it to
6793 DWARF verson 4 or higher.
6794 (dwarf2_record_block_ranges): Likewise.
6795 (read_partial_die): Likewise.
6796 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6798 2014-02-26 Tom Tromey <tromey@redhat.com>
6800 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6802 2014-02-26 Tom Tromey <tromey@redhat.com>
6804 * elfread.c (elf_read_minimal_symbols): Return early if
6805 minimal symbols have already been read. Add "ei" parameter.
6806 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6807 * minsyms.c (prim_record_minimal_symbol_full): Update.
6808 * objfiles.h (struct objstats) <n_minsyms>: Move...
6809 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6810 * symmisc.c (print_objfile_statistics): Update.
6812 2014-02-26 Tom Tromey <tromey@redhat.com>
6814 * elfread.c (elf_read_minimal_symbols): New function, from
6816 (elf_symfile_read): Call it.
6818 2014-02-26 Tom Tromey <tromey@redhat.com>
6820 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6821 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6822 (lookup_minimal_symbol_solib_trampoline)
6823 (lookup_minimal_symbol_by_pc_section_1)
6824 (lookup_minimal_symbol_and_objfile): Update.
6825 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6826 Don't allocate a minimal symbol if minsyms have already been read.
6827 (build_minimal_symbol_hash_tables): Update.
6828 (install_minimal_symbols): Do nothing if minsyms already read.
6829 Use the per-BFD obstack.
6830 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6831 * objfiles.c (allocate_objfile): Call
6832 terminate_minimal_symbol_table later.
6833 (have_minimal_symbols): Update.
6834 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6835 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6836 Move from struct objfile.
6837 <minsyms_read>: New field.
6838 (struct objfile) <msymbols, minimal_symbol_count,
6839 msymbol_hash, msymbol_demangled_hash>: Move.
6840 (ALL_OBJFILE_MSYMBOLS): Update.
6841 * symfile.c (read_symbols): Set minsyms_read.
6842 (reread_symbols): Update.
6843 * symmisc.c (dump_objfile, dump_msymbols): Update.
6845 2014-02-26 Tom Tromey <tromey@redhat.com>
6847 * minsyms.c (msymbols_sort): Remove.
6848 * minsyms.h (msymbols_sort): Remove.
6849 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6850 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6851 * elfread.c (elf_symtab_read): Don't add section offsets.
6852 * xcoffread.c (record_minimal_symbol): Don't add section offset
6853 to minimal symbol address.
6854 * somread.c (text_offset, data_offset): Remove.
6855 (som_symtab_read): Don't add section offsets to minimal symbol
6857 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6858 Don't add section offsets to minimal symbols.
6859 * coffread.c (coff_symtab_read): Don't add section offsets
6860 to minimal symbol addresses.
6861 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6862 to minimal symbol addresses.
6863 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6864 section offset to minimal symbol addresses.
6865 * mdebugread.c (parse_partial_symbols): Don't add section
6866 offset to minimal symbol addresses.
6867 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6868 offset to minimal symbol addresses.
6870 2014-02-26 Tom Tromey <tromey@redhat.com>
6872 * ada-lang.c (ada_main_name): Update.
6873 (ada_add_standard_exceptions): Update.
6874 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6875 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6876 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6877 * auxv.c (ld_so_xfer_auxv): Update.
6878 * avr-tdep.c (avr_scan_prologue): Update.
6879 * ax-gdb.c (gen_var_ref): Update.
6880 * blockframe.c (get_pc_function_start)
6881 (find_pc_partial_function_gnu_ifunc): Update.
6882 * breakpoint.c (create_overlay_event_breakpoint)
6883 (create_longjmp_master_breakpoint)
6884 (create_std_terminate_master_breakpoint)
6885 (create_exception_master_breakpoint): Update.
6886 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6887 * c-valprint.c (c_val_print): Update.
6888 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6889 * common/agent.c (agent_look_up_symbols): Update.
6890 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6891 * dwarf2loc.c (call_site_to_target_addr): Update.
6892 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6893 * elfread.c (elf_gnu_ifunc_record_cache)
6894 (elf_gnu_ifunc_resolve_by_got): Update.
6895 * findvar.c (default_read_var_value): Update.
6896 * frame.c (inside_main_func): Update.
6897 * frv-tdep.c (frv_frame_this_id): Update.
6898 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6899 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6901 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6902 (hppa_hpux_find_dummy_bpaddr): Update.
6903 * hppa-tdep.c (hppa_symbol_address): Update.
6904 * infcmd.c (until_next_command): Update.
6905 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6907 * linespec.c (minsym_found, add_minsym): Update.
6908 * linux-nat.c (get_signo): Update.
6909 * linux-thread-db.c (inferior_has_bug): Update.
6910 * m32c-tdep.c (m32c_return_value)
6911 (m32c_m16c_address_to_pointer): Update.
6912 * m32r-tdep.c (m32r_frame_this_id): Update.
6913 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6914 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6915 * maint.c (maintenance_translate_address): Update.
6916 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6917 (frob_address): New function.
6918 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6919 frob_address. Rename parameter to "pc_in".
6920 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6922 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6924 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6925 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6926 * objc-lang.c (find_objc_msgsend): Update.
6927 * objfiles.c (objfile_relocate1): Update.
6928 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6929 * p-valprint.c (pascal_val_print): Update.
6930 * parse.c (write_exp_msymbol): Update.
6931 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6932 (ppc_elfv2_skip_entrypoint): Update.
6933 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6934 * printcmd.c (build_address_symbolic, msym_info)
6935 (address_info): Update.
6936 * proc-service.c (ps_pglobal_lookup): Update.
6937 * psymtab.c (find_pc_sect_psymtab_closer)
6938 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6939 Change msymbol parameter to bound_minimal_symbol.
6940 * ravenscar-thread.c (get_running_thread_id): Update.
6941 * remote.c (remote_check_symbols): Update.
6942 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6944 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6945 * solib-dsbt.c (lm_base): Update.
6946 * solib-frv.c (lm_base, main_got): Update.
6947 * solib-irix.c (locate_base): Update.
6948 * solib-som.c (som_solib_create_inferior_hook)
6949 (link_map_start): Update.
6950 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6951 * solib-svr4.c (elf_locate_base, enable_break): Update.
6952 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6953 (flush_ea_cache): Update.
6954 * stabsread.c (define_symbol, scan_file_globals): Update.
6955 * stack.c (find_frame_funname): Update.
6956 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6957 (debug_qf_find_pc_sect_symtab): Update.
6958 * symfile.c (simple_read_overlay_table)
6959 (simple_overlay_update): Update.
6960 * symfile.h (struct quick_symbol_functions)
6961 <find_pc_sect_symtab>: Change type of msymbol to
6962 bound_minimal_symbol.
6963 * symmisc.c (dump_msymbols): Update.
6964 * symtab.c (find_pc_sect_symtab_via_partial)
6965 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6966 (search_symbols, print_msymbol_info): Update.
6967 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6968 (MSYMBOL_VALUE_ADDRESS): Redefine.
6969 (BMSYMBOL_VALUE_ADDRESS): New macro.
6970 * tracepoint.c (scope_info): Update.
6971 * tui/tui-disasm.c (tui_find_disassembly_address)
6972 (tui_get_begin_asm_address): Update.
6973 * valops.c (find_function_in_inferior): Update.
6974 * value.c (value_static_field, value_fn_field): Update.
6976 2014-02-26 Tom Tromey <tromey@redhat.com>
6978 * ada-lang.c (ada_update_initial_language): Update.
6979 (ada_main_name, ada_has_this_exception_support): Update.
6980 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6981 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6982 * arm-tdep.c (arm_skip_stub): Update.
6983 * auxv.c (ld_so_xfer_auxv): Update.
6984 * avr-tdep.c (avr_scan_prologue): Update.
6985 * ax-gdb.c (gen_var_ref): Update.
6986 * breakpoint.c (struct breakpoint_objfile_data)
6987 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6988 type to bound_minimal_symbol.
6989 (create_overlay_event_breakpoint)
6990 (create_longjmp_master_breakpoint)
6991 (create_std_terminate_master_breakpoint)
6992 (create_exception_master_breakpoint): Update.
6993 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6994 * c-exp.y (classify_name): Update.
6995 * coffread.c (coff_symfile_read): Update.
6996 * common/agent.c (agent_look_up_symbols): Update.
6997 * d-lang.c (d_main_name): Update.
6998 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6999 * dec-thread.c (enable_dec_thread): Update.
7000 * dwarf2loc.c (call_site_to_target_addr): Update.
7001 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7002 * eval.c (evaluate_subexp_standard): Update.
7003 * findvar.c (struct minsym_lookup_data) <result>: Change type
7004 to bound_minimal_symbol.
7006 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7007 * frame.c (inside_main_func): Update.
7008 * frv-tdep.c (frv_frame_this_id): Update.
7009 * gcore.c (call_target_sbrk): Update.
7010 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7011 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7013 * go-lang.c (go_main_name): Update.
7014 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7015 (hppa_hpux_find_import_stub_for_addr): Update.
7016 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7017 Update. Change return type.
7018 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7020 * jit.c (jit_breakpoint_re_set_internal): Update.
7021 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7023 * linux-nat.c (get_signo): Update.
7024 * linux-thread-db.c (inferior_has_bug): Update
7025 * m32c-tdep.c (m32c_return_value)
7026 (m32c_m16c_address_to_pointer): Update.
7027 * m32r-tdep.c (m32r_frame_this_id): Update.
7028 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7029 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7030 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7031 lookup_minimal_symbol. Change return type.
7032 (lookup_minimal_symbol): Remove.
7033 (lookup_bound_minimal_symbol): Update.
7034 (lookup_minimal_symbol_text): Change return type.
7035 (lookup_minimal_symbol_solib_trampoline): Change return type.
7036 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7037 (lookup_minimal_symbol_solib_trampoline): Change return type.
7038 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7039 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7040 (value_nsstring, find_imps): Update.
7041 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7042 * p-lang.c (pascal_main_name): Update.
7043 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7044 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7045 * proc-service.c (ps_pglobal_lookup): Update.
7046 * ravenscar-thread.c (get_running_thread_msymbol): Change
7048 (has_ravenscar_runtime, get_running_thread_id): Update.
7049 * remote.c (remote_check_symbols): Update.
7050 * sol-thread.c (ps_pglobal_lookup): Update.
7051 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7052 * solib-dsbt.c (lm_base): Update.
7053 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7055 * solib-irix.c (locate_base): Update.
7056 * solib-som.c (som_solib_create_inferior_hook)
7057 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7059 * solib-spu.c (spu_enable_break): Update.
7060 * solib-svr4.c (elf_locate_base, enable_break): Update.
7061 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7062 (flush_ea_cache): Update.
7063 * stabsread.c (define_symbol): Update.
7064 * symfile.c (simple_read_overlay_table): Update.
7065 * symtab.c (find_pc_sect_line): Update.
7066 * tracepoint.c (scope_info): Update.
7067 * tui-disasm.c (tui_get_begin_asm_address): Update.
7068 * value.c (value_static_field): Update.
7070 2014-02-26 Tom Tromey <tromey@redhat.com>
7072 * minsyms.c (prim_record_minimal_symbol_full): Use
7073 SET_MSYMBOL_VALUE_ADDRESS.
7074 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7075 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7076 SET_MSYMBOL_VALUE_ADDRESS.
7077 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7078 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7080 2014-02-26 Tom Tromey <tromey@redhat.com>
7082 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7083 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7084 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7085 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7086 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7087 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7088 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7089 * ada-lang.c (ada_main_name): Update.
7090 (ada_lookup_simple_minsym): Update.
7091 (ada_make_symbol_completion_list): Update.
7092 (ada_add_standard_exceptions): Update.
7093 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7094 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7095 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7096 * arm-tdep.c (skip_prologue_function): Update.
7097 (arm_skip_stack_protector, arm_skip_stub): Update.
7098 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7099 (arm_wince_skip_main_prologue): Update.
7100 * auxv.c (ld_so_xfer_auxv): Update.
7101 * avr-tdep.c (avr_scan_prologue): Update.
7102 * ax-gdb.c (gen_var_ref): Update.
7103 * block.c (call_site_for_pc): Update.
7104 * blockframe.c (get_pc_function_start): Update.
7105 (find_pc_partial_function_gnu_ifunc): Update.
7106 * breakpoint.c (create_overlay_event_breakpoint): Update.
7107 (create_longjmp_master_breakpoint): Update.
7108 (create_std_terminate_master_breakpoint): Update.
7109 (create_exception_master_breakpoint): Update.
7110 (resolve_sal_pc): Update.
7111 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7112 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7114 * c-valprint.c (c_val_print): Update.
7115 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7116 * coffread.c (coff_symfile_read): Update.
7117 * common/agent.c (agent_look_up_symbols): Update.
7118 * dbxread.c (find_stab_function_addr): Update.
7119 (end_psymtab): Update.
7120 * dwarf2loc.c (call_site_to_target_addr): Update.
7121 (func_verify_no_selftailcall): Update.
7122 (tailcall_dump): Update.
7123 (call_site_find_chain_1): Update.
7124 (dwarf_expr_reg_to_entry_parameter): Update.
7125 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7126 (elf_gnu_ifunc_resolve_by_got): Update.
7127 * f-valprint.c (info_common_command): Update.
7128 * findvar.c (read_var_value): Update.
7129 * frame.c (get_prev_frame_1): Update.
7130 (inside_main_func): Update.
7131 * frv-tdep.c (frv_skip_main_prologue): Update.
7132 (frv_frame_this_id): Update.
7133 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7134 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7135 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7136 (gnuv3_skip_trampoline): Update.
7137 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7138 (hppa64_hpux_in_solib_call_trampoline): Update.
7139 (hppa_hpux_skip_trampoline_code): Update.
7140 (hppa64_hpux_search_dummy_call_sequence): Update.
7141 (hppa_hpux_find_import_stub_for_addr): Update.
7142 (hppa_hpux_find_dummy_bpaddr): Update.
7143 * hppa-tdep.c (hppa_symbol_address)
7144 (hppa_lookup_stub_minimal_symbol): Update.
7145 * i386-tdep.c (i386_skip_main_prologue): Update.
7146 (i386_pe_skip_trampoline_code): Update.
7147 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7148 * infcall.c (get_function_name): Update.
7149 * infcmd.c (until_next_command): Update.
7150 * jit.c (jit_breakpoint_re_set_internal): Update.
7151 (jit_inferior_init): Update.
7152 * linespec.c (minsym_found): Update.
7153 (add_minsym): Update.
7154 * linux-fork.c (info_checkpoints_command): Update.
7155 * linux-nat.c (get_signo): Update.
7156 * linux-thread-db.c (inferior_has_bug): Update.
7157 * m32c-tdep.c (m32c_return_value): Update.
7158 (m32c_m16c_address_to_pointer): Update.
7159 (m32c_m16c_pointer_to_address): Update.
7160 * m32r-tdep.c (m32r_frame_this_id): Update.
7161 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7162 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7163 * maint.c (maintenance_translate_address): Update.
7164 * minsyms.c (add_minsym_to_hash_table): Update.
7165 (add_minsym_to_demangled_hash_table): Update.
7166 (msymbol_objfile): Update.
7167 (lookup_minimal_symbol): Update.
7168 (iterate_over_minimal_symbols): Update.
7169 (lookup_minimal_symbol_text): Update.
7170 (lookup_minimal_symbol_by_pc_name): Update.
7171 (lookup_minimal_symbol_solib_trampoline): Update.
7172 (lookup_minimal_symbol_by_pc_section_1): Update.
7173 (lookup_minimal_symbol_and_objfile): Update.
7174 (prim_record_minimal_symbol_full): Update.
7175 (compare_minimal_symbols): Update.
7176 (compact_minimal_symbols): Update.
7177 (build_minimal_symbol_hash_tables): Update.
7178 (install_minimal_symbols): Update.
7179 (terminate_minimal_symbol_table): Update.
7180 (find_solib_trampoline_target): Update.
7181 (minimal_symbol_upper_bound): Update.
7182 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7183 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7184 (mips_skip_pic_trampoline_code): Update.
7185 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7186 * objc-lang.c (selectors_info): Update.
7187 (classes_info): Update.
7188 (find_methods): Update.
7189 (find_imps): Update.
7190 (find_objc_msgsend): Update.
7191 * objfiles.c (objfile_relocate1): Update.
7192 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7193 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7194 * p-valprint.c (pascal_val_print): Update.
7195 * parse.c (write_exp_msymbol): Update.
7196 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7197 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7198 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7199 * printcmd.c (build_address_symbolic): Update.
7201 (address_info): Update.
7202 * proc-service.c (ps_pglobal_lookup): Update.
7203 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7204 (find_pc_sect_psymtab): Update.
7205 * python/py-framefilter.c (py_print_frame): Update.
7206 * ravenscar-thread.c (get_running_thread_id): Update.
7207 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7209 * remote.c (remote_check_symbols): Update.
7210 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7211 (rs6000_skip_trampoline_code): Update.
7212 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7213 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7214 * solib-dsbt.c (lm_base): Update.
7215 * solib-frv.c (lm_base): Update.
7217 * solib-irix.c (locate_base): Update.
7218 * solib-som.c (som_solib_create_inferior_hook): Update.
7219 (som_solib_desire_dynamic_linker_symbols): Update.
7220 (link_map_start): Update.
7221 * solib-spu.c (spu_enable_break): Update.
7222 (ocl_enable_break): Update.
7223 * solib-svr4.c (elf_locate_base): Update.
7224 (enable_break): Update.
7225 * spu-tdep.c (spu_get_overlay_table): Update.
7226 (spu_catch_start): Update.
7227 (flush_ea_cache): Update.
7228 * stabsread.c (define_symbol): Update.
7229 (scan_file_globals): Update.
7230 * stack.c (find_frame_funname): Update.
7231 (frame_info): Update.
7232 * symfile.c (simple_read_overlay_table): Update.
7233 (simple_overlay_update): Update.
7234 * symmisc.c (dump_msymbols): Update.
7235 * symtab.c (fixup_section): Update.
7236 (find_pc_sect_line): Update.
7237 (skip_prologue_sal): Update.
7238 (search_symbols): Update.
7239 (print_msymbol_info): Update.
7240 (rbreak_command): Update.
7241 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7242 (completion_list_objc_symbol): Update.
7243 (default_make_symbol_completion_list_break_on): Update.
7244 * tracepoint.c (scope_info): Update.
7245 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7246 (tui_get_begin_asm_address): Update.
7247 * valops.c (find_function_in_inferior): Update.
7248 * value.c (value_static_field): Update.
7249 (value_fn_field): Update.
7251 2014-02-26 Tom Tromey <tromey@redhat.com>
7253 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7254 bound minimal symbols. Move code that knows about minsym
7256 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7258 * minsyms.h (minimal_symbol_upper_bound): Declare.
7259 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7260 minimal_symbol_upper_bound.
7262 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7264 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7265 Use the type's name if its basic type does not have a tag.
7267 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7269 * dwarf2read.c (read_subrange_type): Add comment.
7271 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7273 * dwarf2read.c (update_enumeration_type_from_children): New
7274 function, mostly extracted from process_structure_scope.
7275 (read_enumeration_type): Call update_enumeration_type_from_children.
7276 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7277 and flag_flag_enum fields.
7279 2014-02-26 Pedro Alves <palves@redhat.com>
7281 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7282 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7283 to_xfer_partial method.
7285 2014-02-26 Pedro Alves <palves@redhat.com>
7287 * target.c (complete_target_initialization): Don't install
7288 default_xfer_partial as to_xfer_partial hook.
7290 (update_current_target): Don't INHERIT nor de_fault
7291 deprecated_xfer_memory. Delete de_fault macro.
7292 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7293 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7294 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7297 2014-02-26 Pedro Alves <palves@redhat.com>
7299 * go32-nat.c (my_write_child): New function.
7300 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7301 (go32_xfer_partial): New function.
7302 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7303 Instead install a to_xfer_partial hook.
7305 2014-02-26 Pedro Alves <palves@redhat.com>
7307 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7308 to_xfer_partial helper. Rewrite.
7309 (procfs_xfer_partial): New function.
7310 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7311 Install a to_xfer_partial hook.
7313 2014-02-26 Pedro Alves <palves@redhat.com>
7315 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7316 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7317 (m32r_xfer_partial): New function.
7318 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7319 Install a to_xfer_partial hook.
7321 2014-02-26 Pedro Alves <palves@redhat.com>
7323 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7325 (mips_xfer_partial): New function.
7326 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7327 hook. Install a to_xfer_partial hook.
7329 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7331 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7332 * gdbtypes.c (create_array_type_with_stride): New function,
7333 renaming create_array_type, but with an added parameter
7334 called "bit_stride".
7335 (create_array_type): Re-implement using
7336 create_array_type_with_stride.
7337 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7338 and DW_AT_bit_stride attributes.
7340 2014-02-26 Pedro Alves <palves@redhat.com>
7342 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7343 task-specific breakpoints.
7345 2014-02-25 Pedro Alves <palves@redhat.com>
7347 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7348 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7350 2014-02-25 Stan Shebs <stan@codesourcery.com>
7352 * defs.h: Annotate comments for Doxygen.
7354 2014-02-25 Tom Tromey <tromey@redhat.com>
7356 * target.h (target_ignore): Don't declare.
7357 * target.c (target_ignore): Remove.
7359 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7362 * auto-load.c (auto_load_objfile_script_1): Change filename to
7365 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7367 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7368 documentation. Adjust prototype to match the target_ops
7369 to_xfer_partial method. Adjust implementation accordingly.
7371 2014-02-25 Hui Zhu <hui@codesourcery.com>
7373 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7376 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7378 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7379 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7380 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7381 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7382 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7383 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7384 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7385 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7387 (rl78_register_type): Use a data pointer type for SP and
7388 new pseudo registers mentioned above. Use a 16 bit integer
7389 type for all other register pairs.
7390 (rl78_register_name, rl78_g10_register_name): Update for
7391 new pseudo registers.
7392 (rl78_pseudo_register_read): Likewise.
7393 (rl78_pseudo_register_write): Likewise.
7394 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7395 to the newly added pseudo registers.
7397 2014-02-24 Doug Evans <dje@google.com>
7399 * value.c (record_latest_value): Fix comment.
7400 * printcmd.c (print_command_1): Remove code to handle -1 return from
7401 record_latest_value.
7403 2014-02-24 Pedro Alves <palves@redhat.com>
7405 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7406 deprecated_xfer_memory hook.
7407 (procfs_xfer_partial): Call procfs_xfer_memory instead
7408 of the deprecated_xfer_memory target hook.
7409 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7412 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7414 * windows-nat.c (windows_xfer_shared_libraries): Return
7415 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7416 requested object is TARGET_OBJECT_LIBRARIES.
7418 2014-02-24 Yao Qi <yao@codesourcery.com>
7420 * target.h (enum target_xfer_status)
7421 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7422 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7424 * corefile.c (memory_error_message): User updated.
7425 * exec.c (section_table_read_available_memory): Likewise.
7426 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7427 * target.c (target_xfer_status_to_string): Likewise.
7428 (raw_memory_xfer_partial): Likewise.
7429 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7430 * valops.c (read_value_memory): Likewise.
7431 * exec.h: Update comments.
7433 2014-02-24 Yao Qi <yao@codesourcery.com>
7435 * target.c (target_xfer_status_to_string): Rename argument err
7437 * target.h (target_xfer_status_to_string): Update declaration.
7438 Replace target_xfer_error_to_string with
7439 target_xfer_status_to_string in comment.
7441 2014-02-24 Yao Qi <yao@codesourcery.com>
7443 * mips-linux-nat.c (super_close): Update its type.
7444 (mips_linux_close): Pass 'self' to super_close.
7446 2014-02-24 Yao Qi <yao@codesourcery.com>
7448 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7449 * corefile.c (read_memory): Adjusted.
7450 * target.c (target_write_with_progress): Adjusted.
7452 2014-02-23 Yao Qi <yao@codesourcery.com>
7456 2013-10-25 Yao Qi <yao@codesourcery.com>
7458 * remote.c (remote_traceframe_info): Return early if
7459 traceframe is not selected.
7461 2013-07-19 Yao Qi <yao@codesourcery.com>
7463 * target.c (update_current_target): Change the default action
7464 of 'to_traceframe_info' from tcomplain to return_zero.
7465 * target.h (struct target_ops) <to_traceframe_info>: Add more
7468 2014-02-23 Yao Qi <yao@codesourcery.com>
7470 * valops.c (read_value_memory): Rewrite it. Call
7471 target_xfer_partial in a loop.
7472 * exec.h (section_table_available_memory): Remove declaration.
7473 Move comments to ...
7474 * exec.c (section_table_available_memory): ... here. Make it
7477 2014-02-23 Yao Qi <yao@codesourcery.com>
7479 * exec.c (section_table_read_available_memory): New function.
7480 * exec.h (section_table_read_available_memory): Declare.
7481 * ctf.c (ctf_xfer_partial): Call
7482 section_table_read_available_memory.
7483 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7485 2014-02-23 Yao Qi <yao@codesourcery.com>
7487 * ctf.c (ctf_xfer_partial): Move code to ...
7488 * exec.c (exec_read_partial_read_only): ... it. New function.
7489 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7490 * tracefile.c: Include "exec.h".
7491 * exec.h (exec_read_partial_read_only): Declare.
7493 2014-02-23 Yao Qi <yao@codesourcery.com>
7495 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7496 (tfile_has_memory): Remove.
7497 (init_tfile_ops): Don't set fields to_has_all_memory and
7498 to_has_memory of tfile_ops.
7499 * tracefile.c (tracefile_has_all_memory): New function.
7500 (tracefile_has_memory): New function.
7501 (init_tracefile_ops): Initialize fields to_has_all_memory and
7502 to_has_memory of 'ops'.
7504 2014-02-23 Yao Qi <yao@codesourcery.com>
7506 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7507 (ctf_thread_alive, ctf_get_trace_status): Remove.
7508 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7510 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7511 (tfile_has_stack, tfile_has_registers): Remove.
7512 (tfile_thread_alive): Remove.
7513 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7515 * tracefile.c (tracefile_has_stack): New function.
7516 (tracefile_has_registers): New function.
7517 (tracefile_thread_alive): New function.
7518 (tracefile_get_trace_status): New function.
7519 (init_tracefile_ops): New function.
7520 * tracefile.h (init_tracefile_ops): Declare.
7522 2014-02-23 Yao Qi <yao@codesourcery.com>
7524 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7525 (O_LARGEFILE): Likewise.
7526 (tfile_ops): Likewise.
7527 (TRACE_HEADER_SIZE): Likewise.
7528 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7529 (cur_data_size): Likewise.
7530 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7531 (tfile_close, tfile_files_info): Likewise.
7532 (tfile_get_trace_status): Likewise.
7533 (tfile_get_tracepoint_status): Likewise.
7534 (tfile_get_traceframe_address): Likewise.
7535 (tfile_trace_find, match_blocktype): Likewise.
7536 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7537 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7538 (tfile_get_trace_state_variable_value): Likewise.
7539 (tfile_has_all_memory, tfile_has_memory): Likewise.
7540 (tfile_has_stack, tfile_has_registers): Likewise.
7541 (tfile_thread_alive, build_traceframe_info): Likewise.
7542 (tfile_traceframe_info, init_tfile_ops): Likewise.
7543 (_initialize_tracepoint): Don't call init_tfile_ops
7544 and add_target_with_completer.
7545 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7546 exec.h, completer.h and filenames.h.
7547 (_initialize_tracefile_tfile): New function.
7549 2014-02-23 Yao Qi <yao@codesourcery.com>
7551 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7553 (HFILES_NO_SRCDIR): Add tracefile.h.
7554 * ctf.c: Include "tracefile.h".
7555 * tracefile.h: New file.
7556 * tracefile.c: New file
7557 * tracefile-tfile.c: New file.
7558 * tracepoint.c: Include "tracefile.h".
7559 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7560 (stop_reason_names): Add const.
7561 (trace_file_writer_xfree): Move it to tracefile.c.
7562 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7563 (trace_save_ctf): Likewise.
7564 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7565 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7566 (tfile_write_header, tfile_write_regblock_type): Likewise.
7567 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7568 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7569 (tfile_write_raw_data, tfile_end): Likewise.
7570 (tfile_trace_file_writer_new): Likewise.
7571 (free_uploaded_tp): Make it extern.
7572 (free_uploaded_tsv): Make it extern.
7573 (_initialize_tracepoint): Move code to register command 'tsave'
7575 * tracepoint.h (stop_reason_names): Declare.
7576 (struct trace_frame_write_ops): Move it to tracefile.h.
7577 (struct trace_file_write_ops): Likewise.
7578 (struct trace_file_writer): Likewise.
7579 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7581 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7584 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7586 (get_cores_used_by_process): New parameter num_cores, use it.
7587 (linux_xfer_osdata_processes): Pass num_cores to it.
7588 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7591 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7593 * target.c (memory_xfer_partial): Fix length arg in call to
7594 breakpoint_xfer_memory.
7596 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7599 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7600 number comes after the + or - signs. Adjust length of register
7601 name to be extracted.
7603 2014-02-20 Tom Tromey <tromey@redhat.com>
7605 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7606 (ada_varobj_ops): Mark "extern".
7608 2014-02-20 Tom Tromey <tromey@redhat.com>
7610 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7612 2014-02-20 Doug Evans <xdje42@gmail.com>
7614 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7615 All callers updated.
7616 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7617 All callers updated.
7618 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7619 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7621 2014-02-20 lin zuojian <manjian2006@gmail.com>
7622 Joel Brobecker <brobecker@adacore.com>
7623 Doug Evans <xdje42@gmail.com>
7626 * dwarf2read.c (struct die_info): New member in_process.
7627 (reset_die_in_process): New function.
7628 (process_die): Set it at the start, reset when returning.
7629 (inherit_abstract_dies): Only call process_die if origin_child_die
7630 not already being processed.
7632 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7634 * windows-nat.c (handle_unload_dll): Add function documentation.
7635 (do_initial_windows_stuff): Add comment explaining why we wait
7636 until after inferior initialization has finished before
7637 processing all DLLs.
7639 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7641 * windows-nat.c (get_module_name): Delete.
7642 (windows_get_exec_module_filename): New function, mostly
7643 inspired from get_module_name.
7644 (windows_pid_to_exec_file): Replace call to get_module_name
7645 by call to windows_get_exec_module_filename.
7647 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7649 * windows-nat.c (handle_load_dll): Rewrite this function's
7650 introductory comment. Remove code using get_module_name
7651 to get the DLL's name.
7653 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7655 * windows-nat.c (get_windows_debug_event): Ignore
7656 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7657 if windows_initialization_done == 0.
7658 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7659 Adjust implementation to always load all DLLs.
7660 (do_initial_windows_stuff): Replace call to
7661 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7663 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7665 * windows-nat.c (_initialize_windows_nat): Deprecate the
7666 "dll-symbols" command. Turn the "add-shared-symbol-files"
7667 and "assf" aliases into commands, and deprecate them as well.
7668 * NEWS: Add entry explaining that "dll-symbols" and its two
7669 aliases are now deprecated.
7671 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7673 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7674 new-line in debug string. Remove trailing spaces.
7676 2014-02-19 Stan Shebs <stan@codesourcery.com>
7678 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7680 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7682 * NEWS: Add entry for the new feature
7683 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7686 2014-02-19 Stan Shebs <stan@codesourcery.com>
7688 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7690 2014-02-19 Pedro Alves <palves@redhat.com>
7692 * common/ptid.h (struct ptid): Mention that process_stratum
7693 targets should prefer ptid.lwp.
7695 2014-02-19 Pedro Alves <palves@redhat.com>
7697 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7698 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7699 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7700 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7701 store remote thread ids rather than ptid.tid.
7702 (_initialize_remote): Adjust.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target.c (target_get_unwinder): Rewrite.
7707 (target_get_tailcall_unwinder): Rewrite.
7708 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7709 (record_btrace_to_get_tailcall_unwinder): New function.
7710 (init_record_btrace_ops): Update.
7711 * target.h (struct target_ops) <to_get_unwinder,
7712 to_get_tailcall_unwinder>: Now function pointers. Use
7713 TARGET_DEFAULT_RETURN.
7715 2014-02-19 Tom Tromey <tromey@redhat.com>
7717 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7719 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7721 2014-02-19 Tom Tromey <tromey@redhat.com>
7723 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7725 * target-delegates.c: Rebuild.
7726 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7727 TARGET_DEFAULT_FUNC.
7728 * target.c (default_target_decr_pc_after_break): Rename from
7729 forward_target_decr_pc_after_break. Simplify.
7730 (target_decr_pc_after_break): Rely on delegation.
7732 2014-02-19 Tom Tromey <tromey@redhat.com>
7734 * target.c (update_current_target): Do not INHERIT to_doc or
7735 to_magic. Do not de_fault to_open or to_close.
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7739 * gcore.h (objfile_find_memory_regions): Declare.
7740 * gcore.c (objfile_find_memory_regions): No longer static. Add
7742 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7743 * exec.c: Include gcore.h.
7744 (exec_set_find_memory_regions): Remove.
7745 (exec_find_memory_regions): Remove.
7746 (exec_do_find_memory_regions): Remove.
7747 (init_exec_ops): Update.
7748 * defs.h (exec_set_find_memory_regions): Remove.
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7752 * target-delegates.c: Rebuild.
7753 * target.h (struct target_ops) <to_extra_thread_info,
7754 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7755 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7756 not 0, in TARGET_DEFAULT_RETURN.
7758 2014-02-19 Tom Tromey <tromey@redhat.com>
7760 * target.c (complete_target_initialization): Remove casts. Use
7761 return_zero_has_execution.
7762 (return_zero): Add "ignore" argument.
7763 (return_zero_has_execution): New function.
7764 (init_dummy_target): Remove casts. Use
7765 return_zero_has_execution.
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7769 * target.c (update_current_target): Update comments. Do not
7772 2014-02-19 Tom Tromey <tromey@redhat.com>
7774 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7776 * corelow.c (core_read_description): Delegate when needed.
7777 * remote.c (remote_read_description): Delegate when needed.
7778 * target-delegates.c: Rebuild.
7779 * target.c (target_read_description): Rewrite.
7780 * target.h (struct target_ops) <to_read_description>: Update
7781 comment. Use TARGET_DEFAULT_RETURN.
7783 2014-02-19 Tom Tromey <tromey@redhat.com>
7785 * target-delegates.c: Rebuild.
7786 * target.c (update_current_target): Don't inherit or default
7788 (find_default_run_target): Check against delegate_can_run.
7789 * target.h (struct target_ops) <to_can_run>: Use
7790 TARGET_DEFAULT_RETURN.
7792 2014-02-19 Tom Tromey <tromey@redhat.com>
7794 * target-delegates.c: Rebuild.
7795 * target.c (target_disconnect): Unconditionally delegate.
7796 * target.h (struct target_ops) <to_disconnect>: Use
7797 TARGET_DEFAULT_NORETURN.
7799 2014-02-19 Tom Tromey <tromey@redhat.com>
7801 * record.c (record_stop): Unconditionally delegate.
7802 * target-delegates.c: Rebuild.
7803 * target.c (target_stop_recording): Unconditionally delegate.
7804 * target.h (struct target_ops) <to_stop_recording>: Use
7805 TARGET_DEFAULT_IGNORE.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (target_enable_btrace): Unconditionally delegate.
7811 * target.h (struct target_ops) <to_enable_btrace>: Use
7812 TARGET_DEFAULT_NORETURN.
7814 2014-02-19 Tom Tromey <tromey@redhat.com>
7816 * target-delegates.c: Rebuild.
7817 * target.c (target_read_btrace): Unconditionally delegate.
7818 * target.h (struct target_ops) <to_read_btrace>: Use
7819 TARGET_DEFAULT_NORETURN.
7821 2014-02-19 Tom Tromey <tromey@redhat.com>
7823 * target-delegates.c: Rebuild.
7824 * target.c (target_teardown_btrace): Unconditionally delegate.
7825 * target.h (struct target_ops) <to_teardown_btrace>: Use
7826 TARGET_DEFAULT_NORETURN.
7828 2014-02-19 Tom Tromey <tromey@redhat.com>
7830 * target-delegates.c: Rebuild.
7831 * target.c (target_disable_btrace): Unconditionally delegate.
7832 * target.h (struct target_ops) <to_disable_btrace>: Use
7833 TARGET_DEFAULT_NORETURN.
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7837 * target-delegates.c: Rebuild.
7838 * target.c (default_search_memory): New function.
7839 (simple_search_memory): Update comment.
7840 (target_search_memory): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_search_memory>: Use
7842 TARGET_DEFAULT_FUNC.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * auxv.c (default_auxv_parse): No longer static.
7847 (target_auxv_parse): Unconditionally delegate.
7848 * auxv.h (default_auxv_parse): Declare.
7849 * target-delegates.c: Rebuild.
7850 * target.c: Include auxv.h.
7851 * target.h (struct target_ops) <to_auxv_parse>: Use
7852 TARGET_DEFAULT_FUNC.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * target-delegates.c: Rebuild.
7857 * target.c (target_memory_map): Unconditionally delegate.
7858 * target.h (struct target_ops) <to_memory_map>: Use
7859 TARGET_DEFAULT_RETURN.
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target-delegates.c: Rebuild.
7864 * target.c (target_thread_alive): Unconditionally delegate.
7865 * target.h (struct target_ops) <to_thread_alive>: Use
7866 TARGET_DEFAULT_RETURN.
7868 2014-02-19 Tom Tromey <tromey@redhat.com>
7870 * target-delegates.c: Rebuild.
7871 * target.c (target_save_record): Unconditionally delegate.
7872 * target.h (struct target_ops) <to_save_record>: Use
7873 TARGET_DEFAULT_NORETURN.
7875 2014-02-19 Tom Tromey <tromey@redhat.com>
7877 * target-delegates.c: Rebuild.
7878 * target.c (target_delete_record): Unconditionally delegate.
7879 * target.h (struct target_ops) <to_delete_record>: Use
7880 TARGET_DEFAULT_NORETURN.
7882 2014-02-19 Tom Tromey <tromey@redhat.com>
7884 * target-delegates.c: Rebuild.
7885 * target.c (target_record_is_replaying): Unconditionally
7887 * target.h (struct target_ops) <to_record_is_replaying>: Use
7888 TARGET_DEFAULT_RETURN.
7890 2014-02-19 Tom Tromey <tromey@redhat.com>
7892 * target-delegates.c: Rebuild.
7893 * target.c (target_goto_record_begin): Unconditionally delegate.
7894 * target.h (struct target_ops) <to_goto_record_begin>: Use
7895 TARGET_DEFAULT_NORETURN.
7897 2014-02-19 Tom Tromey <tromey@redhat.com>
7899 * target-delegates.c: Rebuild.
7900 * target.c (target_goto_record_end): Unconditionally delegate.
7901 * target.h (struct target_ops) <to_goto_record_end>: Use
7902 TARGET_DEFAULT_NORETURN.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_goto_record): Unconditionally delegate.
7908 * target.h (struct target_ops) <to_goto_record>: Use
7909 TARGET_DEFAULT_NORETURN.
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7913 * target-delegates.c: Rebuild.
7914 * target.c (target_insn_history): Unconditionally delegate.
7915 * target.h (struct target_ops) <to_insn_history>: Use
7916 TARGET_DEFAULT_NORETURN.
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target-delegates.c: Rebuild.
7921 * target.c (target_insn_history_from): Unconditionally delegate.
7922 * target.h (struct target_ops) <to_insn_history_from>: Use
7923 TARGET_DEFAULT_NORETURN.
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target-delegates.c: Rebuild.
7928 * target.c (target_insn_history_range): Unconditionally delegate.
7929 * target.h (struct target_ops) <to_insn_history_range>: Use
7930 TARGET_DEFAULT_NORETURN.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target-delegates.c: Rebuild.
7935 * target.c (target_call_history): Unconditionally delegate.
7936 * target.h (struct target_ops) <to_call_history>: Use
7937 TARGET_DEFAULT_NORETURN.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target-delegates.c: Rebuild.
7942 * target.c (target_call_history_from): Unconditionally delegate.
7943 * target.h (struct target_ops) <to_call_history_from>: Use
7944 TARGET_DEFAULT_NORETURN.
7946 2014-02-19 Tom Tromey <tromey@redhat.com>
7948 * target-delegates.c: Rebuild.
7949 * target.c (target_call_history_range): Unconditionally delegate.
7950 * target.h (struct target_ops) <to_call_history_range>: Use
7951 TARGET_DEFAULT_NORETURN.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * target-delegates.c: Rebuild.
7956 * target.c (target_verify_memory): Unconditionally delegate.
7957 * target.h (struct target_ops) <to_verify_memory>: Use
7958 TARGET_DEFAULT_NORETURN.
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7962 * target-delegates.c: Rebuild.
7963 * target.c (target_core_of_thread): Unconditionally delegate.
7964 * target.h (struct target_ops) <to_core_of_thread>: Use
7965 TARGET_DEFAULT_RETURN.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * target-delegates.c: Rebuild.
7970 * target.c (target_flash_done): Unconditionally delegate.
7971 * target.h (struct target_ops) <to_flash_done>: Use
7972 TARGET_DEFAULT_NORETURN.
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7976 * target-delegates.c: Rebuild.
7977 * target.c (target_flash_erase): Unconditionally delegate.
7978 * target.h (struct target_ops) <to_flash_erase>: Use
7979 TARGET_DEFAULT_NORETURN.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target-delegates.c: Rebuild.
7984 * target.c (target_get_section_table): Unconditionally delegate.
7985 * target.h (struct target_ops) <to_get_section_table>: Use
7986 TARGET_DEFAULT_RETURN.
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7990 * target-delegates.c: Rebuild.
7991 * target.c (target_pid_to_str): Unconditionally delegate.
7992 (init_dummy_target): Don't initialize to_pid_to_str.
7993 (default_pid_to_str): Rename from dummy_pid_to_str.
7994 * target.h (struct target_ops) <to_pid_to_str>: Use
7995 TARGET_DEFAULT_FUNC.
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7999 * target-delegates.c: Rebuild.
8000 * target.c (target_find_new_threads): Unconditionally delegate.
8001 * target.h (struct target_ops) <to_find_new_threads>: Use
8002 TARGET_DEFAULT_RETURN.
8004 2014-02-19 Tom Tromey <tromey@redhat.com>
8006 * target-delegates.c: Rebuild.
8007 * target.c (target_program_signals): Unconditionally delegate.
8008 * target.h (struct target_ops) <to_program_signals>: Use
8009 TARGET_DEFAULT_IGNORE.
8011 2014-02-19 Tom Tromey <tromey@redhat.com>
8013 * target-delegates.c: Rebuild.
8014 * target.c (target_pass_signals): Unconditionally delegate.
8015 * target.h (struct target_ops) <to_pass_signals>: Use
8016 TARGET_DEFAULT_IGNORE.
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8020 * target-delegates.c: Rebuild.
8021 * target.c (default_mourn_inferior): New function.
8022 (target_mourn_inferior): Unconditionally delegate.
8023 * target.h (struct target_ops) <to_mourn_inferior>: Use
8024 TARGET_DEFAULT_FUNC.
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8028 * target-delegates.c: Rebuild.
8029 * target.c (default_follow_fork): New function.
8030 (target_follow_fork): Unconditionally delegate.
8031 * target.h (struct target_ops) <to_follow_fork>: Use
8032 TARGET_DEFAULT_FUNC.
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8036 * target-delegates.c: Rebuild.
8037 * target.c (target_kill): Unconditionally delegate.
8038 * target.h (struct target_ops) <to_kill>: Use
8039 TARGET_DEFAULT_NORETURN.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target-delegates.c: Rebuild.
8044 * target.c (target_masked_watch_num_registers): Unconditionally
8046 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8047 Use TARGET_DEFAULT_RETURN.
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target-delegates.c: Rebuild.
8052 * target.c (target_remove_mask_watchpoint): Unconditionally
8054 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8055 TARGET_DEFAULT_RETURN.
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8059 * target-delegates.c: Rebuild.
8060 * target.c (target_insert_mask_watchpoint): Unconditionally
8062 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8063 TARGET_DEFAULT_RETURN.
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8067 * target-delegates.c: Rebuild.
8068 * target.c (target_ranged_break_num_registers): Unconditionally
8070 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8071 Use TARGET_DEFAULT_RETURN.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * target-delegates.c: Rebuild.
8076 * target.c (target_fetch_registers): Unconditionally delegate.
8077 * target.h (struct target_ops) <to_fetch_registers>: Use
8078 TARGET_DEFAULT_NORETURN.
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8085 * target.h (struct target_ops) <to_stop>: Use
8086 TARGET_DEFAULT_IGNORE.
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8090 * target-delegates.c: Rebuild.
8091 * target.c (update_current_target): Don't inherit or default
8092 to_can_run_breakpoint_commands.
8093 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8094 Use TARGET_DEFAULT_RETURN.
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8098 * target-delegates.c: Rebuild.
8099 * target.c (update_current_target): Don't inherit or default
8100 to_supports_evaluation_of_breakpoint_conditions.
8101 * target.h (struct target_ops)
8102 <to_supports_evaluation_of_breakpoint_conditions>: Use
8103 TARGET_DEFAULT_RETURN.
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * target-delegates.c: Rebuild.
8108 * target.c (update_current_target): Don't inherit or default
8109 to_augmented_libraries_svr4_read.
8110 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8111 Use TARGET_DEFAULT_RETURN.
8113 2014-02-19 Tom Tromey <tromey@redhat.com>
8115 * target-delegates.c: Rebuild.
8116 * target.c (update_current_target): Don't inherit or default
8118 * target.h (struct target_ops) <to_can_use_agent>: Use
8119 TARGET_DEFAULT_RETURN.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target-delegates.c: Rebuild.
8124 * target.c (update_current_target): Don't inherit or default
8126 * target.h (struct target_ops) <to_use_agent>: Use
8127 TARGET_DEFAULT_NORETURN.
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8131 * target-delegates.c: Rebuild.
8132 * target.c (update_current_target): Don't inherit or default
8134 (return_null): Remove.
8135 * target.h (struct target_ops) <to_traceframe_info>: Use
8136 TARGET_DEFAULT_RETURN.
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8140 * target-delegates.c: Rebuild.
8141 * target.c (update_current_target): Don't inherit or default
8142 to_static_tracepoint_markers_by_strid.
8143 * target.h (struct target_ops)
8144 <to_static_tracepoint_markers_by_strid>: Use
8145 TARGET_DEFAULT_NORETURN.
8147 2014-02-19 Tom Tromey <tromey@redhat.com>
8149 * target-delegates.c: Rebuild.
8150 * target.c (update_current_target): Don't inherit or default
8151 to_static_tracepoint_marker_at.
8152 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8153 Use TARGET_DEFAULT_RETURN.
8155 2014-02-19 Tom Tromey <tromey@redhat.com>
8157 * target-delegates.c: Rebuild.
8158 * target.c (update_current_target): Don't inherit or default
8160 * target.h (struct target_ops) <to_set_permissions>: Use
8161 TARGET_DEFAULT_IGNORE.
8163 2014-02-19 Tom Tromey <tromey@redhat.com>
8165 * target-delegates.c: Rebuild.
8166 * target.c (update_current_target): Don't inherit or default
8168 * target.h (struct target_ops) <to_get_tib_address>: Use
8169 TARGET_DEFAULT_NORETURN.
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8173 * target-delegates.c: Rebuild.
8174 * target.c (update_current_target): Don't inherit or default
8176 * target.h (struct target_ops) <to_set_trace_notes>: Use
8177 TARGET_DEFAULT_RETURN.
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8181 * target-delegates.c: Rebuild.
8182 * target.c (update_current_target): Don't initialize
8183 to_set_trace_buffer_size.
8184 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8185 TARGET_DEFAULT_IGNORE.
8187 2014-02-19 Tom Tromey <tromey@redhat.com>
8189 * target-delegates.c: Rebuild.
8190 * target.c (update_current_target): Don't inherit or default
8191 to_set_circular_trace_buffer.
8192 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8193 TARGET_DEFAULT_IGNORE.
8195 2014-02-19 Tom Tromey <tromey@redhat.com>
8197 * target-delegates.c: Rebuild.
8198 * target.c (update_current_target): Don't inherit or default
8199 to_set_disconnected_tracing.
8200 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8201 TARGET_DEFAULT_IGNORE.
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8205 * target-delegates.c: Rebuild.
8206 * target.c (update_current_target): Don't inherit or default
8207 to_get_min_fast_tracepoint_insn_len.
8208 (return_minus_one): Remove.
8209 * target.h (struct target_ops)
8210 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8212 2014-02-19 Tom Tromey <tromey@redhat.com>
8214 * target-delegates.c: Rebuild.
8215 * target.c (update_current_target): Don't inherit or default
8216 to_get_raw_trace_data.
8217 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8218 TARGET_DEFAULT_NORETURN.
8220 2014-02-19 Tom Tromey <tromey@redhat.com>
8222 * target-delegates.c: Rebuild.
8223 * target.c (update_current_target): Don't inherit or default
8224 to_upload_trace_state_variables.
8225 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8226 Use TARGET_DEFAULT_RETURN.
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8230 * target-delegates.c: Rebuild.
8231 * target.c (update_current_target): Don't inherit or default
8232 to_upload_tracepoints.
8233 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8234 TARGET_DEFAULT_RETURN.
8236 2014-02-19 Tom Tromey <tromey@redhat.com>
8238 * target-delegates.c: Rebuild.
8239 * target.c (update_current_target): Don't inherit or default
8241 * target.h (struct target_ops) <to_save_trace_data>: Use
8242 TARGET_DEFAULT_NORETURN.
8244 2014-02-19 Tom Tromey <tromey@redhat.com>
8246 * target-delegates.c: Rebuild.
8247 * target.c (update_current_target): Don't inherit or default
8248 to_get_trace_state_variable_value.
8249 * target.h (struct target_ops)
8250 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8257 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8259 2014-02-19 Tom Tromey <tromey@redhat.com>
8261 * target-delegates.c: Rebuild.
8262 * target.c (update_current_target): Don't inherit or default
8264 * target.h (struct target_ops) <to_trace_stop>: Use
8265 TARGET_DEFAULT_NORETURN.
8267 2014-02-19 Tom Tromey <tromey@redhat.com>
8269 * target-delegates.c: Rebuild.
8270 * target.c (update_current_target): Don't inherit or default
8271 to_get_tracepoint_status.
8272 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8273 TARGET_DEFAULT_NORETURN.
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8277 * target-delegates.c: Rebuild.
8278 * target.c (update_current_target): Don't inherit or default
8279 to_get_trace_status.
8280 * target.h (struct target_ops) <to_get_trace_status>: Use
8281 TARGET_DEFAULT_RETURN.
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8285 * target-delegates.c: Rebuild.
8286 * target.c (update_current_target): Don't inherit or default
8288 * target.h (struct target_ops) <to_trace_start>: Use
8289 TARGET_DEFAULT_NORETURN.
8291 2014-02-19 Tom Tromey <tromey@redhat.com>
8293 * target-delegates.c: Rebuild.
8294 * target.c (update_current_target): Don't inherit or default
8295 to_trace_set_readonly_regions.
8296 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8297 Use TARGET_DEFAULT_NORETURN.
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8301 * target-delegates.c: Rebuild.
8302 * target.c (update_current_target): Don't inherit or default
8303 to_disable_tracepoint.
8304 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8305 TARGET_DEFAULT_NORETURN.
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8309 * target-delegates.c: Rebuild.
8310 * target.c (update_current_target): Don't inherit or default
8311 to_enable_tracepoint.
8312 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8313 TARGET_DEFAULT_NORETURN.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_download_trace_state_variable.
8320 * target.h (struct target_ops) <to_download_trace_state_variable>:
8321 Use TARGET_DEFAULT_NORETURN.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_can_download_tracepoint.
8328 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8329 TARGET_DEFAULT_RETURN.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8335 to_download_tracepoint.
8336 * target.h (struct target_ops) <to_download_tracepoint>: Use
8337 TARGET_DEFAULT_NORETURN.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8344 * target.h (struct target_ops) <to_trace_init>: Use
8345 TARGET_DEFAULT_RETURN.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_supports_string_tracing.
8352 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8353 TARGET_DEFAULT_RETURN.
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_supports_enable_disable_tracepoint.
8360 * target.h (struct target_ops)
8361 <to_supports_enable_disable_tracepoint>: Use
8362 TARGET_DEFAULT_RETURN.
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_supports_multi_process.
8369 * target.h (struct target_ops) <to_supports_multi_process>: Use
8370 TARGET_DEFAULT_RETURN.
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_get_ada_task_ptid.
8377 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8378 TARGET_DEFAULT_FUNC.
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8384 to_thread_architecture.
8385 * target.h (struct target_ops) <to_thread_architecture>: Use
8386 TARGET_DEFAULT_FUNC.
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't inherit or default
8392 to_execution_direction.
8393 * target.h (struct target_ops) <to_execution_direction>: Use
8394 TARGET_DEFAULT_FUNC.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't inherit or default
8400 to_can_execute_reverse.
8401 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8402 TARGET_DEFAULT_RETURN.
8403 (target_can_execute_reverse): Unconditionally delegate.
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8407 * target-delegates.c: Rebuild.
8408 * target.c (update_current_target): Don't inherit or default
8410 (dummy_goto_bookmark): Remove.
8411 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8412 * target.h (struct target_ops) <to_goto_bookmark>: Use
8413 TARGET_DEFAULT_NORETURN.
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8417 * target-delegates.c: Rebuild.
8418 * target.c (update_current_target): Don't inherit or default
8420 (dummy_get_bookmark): Remove.
8421 (init_dummy_target): Don't inherit or default to_get_bookmark.
8422 * target.h (struct target_ops) <to_get_bookmark>: Use
8423 TARGET_DEFAULT_NORETURN
8425 2014-02-19 Tom Tromey <tromey@redhat.com>
8427 * target-delegates.c: Rebuild.
8428 * target.c (update_current_target): Don't inherit or default
8429 to_make_corefile_notes.
8430 (init_dummy_target): Don't initialize to_make_corefile_notes.
8431 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8432 TARGET_DEFAULT_FUNC.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_find_memory_regions.
8439 (init_dummy_target): Don't initialize to_find_memory_regions.
8440 * target.h (struct target_ops) <to_find_memory_regions>: Use
8441 TARGET_DEFAULT_FUNC.
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8448 * target.h (struct target_ops) <to_log_command>: Use
8449 TARGET_DEFAULT_IGNORE.
8450 (target_log_command): Unconditionally delegate.
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_pid_to_exec_file.
8457 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8458 TARGET_DEFAULT_RETURN.
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8465 (target_thread_name): Unconditionally delegate.
8466 * target.h (struct target_ops) <to_thread_name>: Use
8467 TARGET_DEFAULT_RETURN.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_extra_thread_info.
8474 * target.h (struct target_ops) <to_extra_thread_info>: Use
8475 TARGET_DEFAULT_RETURN.
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * target-delegates.c: Rebuild.
8480 * target.c (update_current_target): Don't inherit or default
8482 * target.h (struct target_ops) <to_has_exited>: Use
8483 TARGET_DEFAULT_RETURN..
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target-delegates.c: Rebuild.
8488 * target.c (update_current_target): Don't inherit or default
8489 to_set_syscall_catchpoint.
8490 (return_one): Remove.
8491 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8492 TARGET_DEFAULT_RETURN.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target-delegates.c: Rebuild.
8497 * target.c (update_current_target): Don't inherit or default
8498 to_insert_exec_catchpoint.
8499 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8500 TARGET_DEFAULT_RETURN.
8502 2014-01-08 Tom Tromey <tromey@redhat.com>
8504 * target-delegates.c: Rebuild.
8505 * target.c (update_current_target): Don't inherit or default
8506 to_insert_exec_catchpoint.
8507 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8508 TARGET_DEFAULT_RETURN.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * target-delegates.c: Rebuild.
8513 * target.c (update_current_target): Don't inherit or default
8514 to_remove_vfork_catchpoint.
8515 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8516 TARGET_DEFAULT_RETURN.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * target-delegates.c: Rebuild.
8521 * target.c (update_current_target): Don't inherit or default
8522 to_insert_vfork_catchpoint.
8523 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8524 TARGET_DEFAULT_RETURN.
8526 2014-02-19 Tom Tromey <tromey@redhat.com>
8528 * target-delegates.c: Rebuild.
8529 * target.c (update_current_target): Don't inherit or default
8530 to_remove_fork_catchpoint.
8531 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8532 TARGET_DEFAULT_RETURN.
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8536 * target-delegates.c: Rebuild.
8537 * target.c (update_current_target): Don't inherit or default
8538 to_insert_fork_catchpoint.
8539 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8540 TARGET_DEFAULT_RETURN.
8542 2014-02-19 Tom Tromey <tromey@redhat.com>
8544 * target-delegates.c: Rebuild.
8545 * target.c (update_current_target): Don't inherit or default
8546 to_post_startup_inferior.
8547 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8548 TARGET_DEFAULT_IGNORE.
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * target-delegates.c: Rebuild.
8553 * target.c (update_current_target): Don't inherit or default
8555 * target.h (struct target_ops) <to_load>: Use
8556 TARGET_DEFAULT_NORETURN.
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target-delegates.c: Rebuild.
8561 * target.c (update_current_target): Don't inherit or default
8563 * target.h (struct target_ops) <to_terminal_info>: Use
8564 TARGET_DEFAULT_FUNC.
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8568 * target-delegates.c: Rebuild.
8569 * target.c (update_current_target): Don't inherit or default
8570 to_terminal_save_ours.
8571 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8572 TARGET_DEFAULT_IGNORE.
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8576 * target-delegates.c: Rebuild.
8577 * target.c (update_current_target): Don't inherit or default
8579 * target.h (struct target_ops) <to_terminal_ours>: Use
8580 TARGET_DEFAULT_IGNORE.
8582 2014-02-19 Tom Tromey <tromey@redhat.com>
8584 * target-delegates.c: Rebuild.
8585 * target.c (update_current_target): Don't inherit or default
8586 to_terminal_ours_for_output.
8587 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8588 TARGET_DEFAULT_IGNORE.
8590 2014-02-19 Tom Tromey <tromey@redhat.com>
8592 * target-delegates.c: Rebuild.
8593 * target.c (update_current_target): Don't inherit or default
8594 to_terminal_inferior.
8595 * target.h (struct target_ops) <to_terminal_inferior>: Use
8596 TARGET_DEFAULT_IGNORE.
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8600 * target-delegates.c: Rebuild.
8601 * target.c (update_current_target): Don't inherit or default
8603 * target.h (struct target_ops) <to_terminal_init>: Use
8604 TARGET_DEFAULT_IGNORE.
8606 2014-02-19 Tom Tromey <tromey@redhat.com>
8608 * target-delegates.c: Rebuild.
8609 * target.c (update_current_target): Don't inherit or default
8610 to_can_accel_watchpoint_condition.
8611 * target.h (struct target_ops)
8612 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8614 2014-02-19 Tom Tromey <tromey@redhat.com>
8616 * target-delegates.c: Rebuild.
8617 * target.c (update_current_target): Don't inherit or default
8618 to_region_ok_for_hw_watchpoint.
8619 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8620 Use TARGET_DEFAULT_FUNC.
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8624 * target-delegates.c: Rebuild.
8625 * target.c (update_current_target): Don't inherit or default
8626 to_watchpoint_addr_within_range.
8627 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8628 Use TARGET_DEFAULT_FUNC.
8630 2014-02-19 Tom Tromey <tromey@redhat.com>
8632 * target-delegates.c: Rebuild.
8633 * target.c (update_current_target): Don't inherit or default
8634 to_remove_watchpoint.
8635 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8636 TARGET_DEFAULT_NORETURN.
8638 2014-02-19 Tom Tromey <tromey@redhat.com>
8640 * target-delegates.c: Rebuild.
8641 * target.c (update_current_target): Don't inherit or default
8642 to_insert_watchpoint.
8643 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8644 TARGET_DEFAULT_RETURN.
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target-delegates.c: Rebuild.
8649 * target.c (update_current_target): Don't inherit or default
8650 to_remove_hw_breakpoint.
8651 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8652 TARGET_DEFAULT_RETURN.
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8656 * target-delegates.c: Rebuild.
8657 * target.c (update_current_target): Don't inherit or default
8658 to_insert_hw_breakpoint.
8659 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8660 TARGET_DEFAULT_RETURN.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target-delegates.c: Rebuild.
8665 * target.c (update_current_target): Don't inherit or default
8666 to_can_use_hw_breakpoint.
8667 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8668 TARGET_DEFAULT_RETURN.
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8672 * target-delegates.c: Rebuild.
8673 * target.c (update_current_target): Don't inherit or default
8675 * target.h (struct target_ops) <to_files_info>: Use
8676 TARGET_DEFAULT_IGNORE.
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8683 * target.h (struct target_ops) <to_store>: Use
8684 TARGET_DEFAULT_NORETURN.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8691 * target.h (struct target_ops) <to_post_attach>: Use
8692 TARGET_DEFAULT_IGNORE.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8699 (default_rcmd): New function.
8700 (do_monitor_command): Unconditionally delegate.
8701 * target.h (struct target_ops) <to_rmcd>: Use
8702 TARGET_DEFAULT_FUNC.
8704 2014-02-19 Tom Tromey <tromey@redhat.com>
8706 * target-delegates.c: Rebuild.
8707 * target.c (init_dummy_target): Don't initialize to_attach.
8708 (target_attach): Unconditionally delegate.
8709 * target.h (struct target_ops) <to_attach>: Use
8710 TARGET_DEFAULT_FUNC.
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8714 * target-delegates.c: Rebuild.
8715 * target.c (target_detach): Unconditionally delegate.
8716 (init_dummy_target): Don't initialize to_detach.
8717 * target.h (struct target_ops) <to_detach>: Use
8718 TARGET_DEFAULT_IGNORE.
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8722 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8724 (target_augmented_libraries_svr4_read): Add argument.
8725 * target.c (update_current_target): Update.
8726 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8731 * target.h (struct target_ops) <to_call_history_range>: Add
8733 * target.c (target_call_history_range): Add argument.
8734 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8736 (record_btrace_call_history_from): Update.
8738 2014-02-19 Tom Tromey <tromey@redhat.com>
8740 * target.h (struct target_ops) <to_call_history_from>: Add
8742 * target.c (target_call_history_from): Add argument.
8743 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8748 * target.h (struct target_ops) <to_call_history>: Add argument.
8749 * target.c (target_call_history): Add argument.
8750 * record-btrace.c (record_btrace_call_history): Add 'self'
8753 2014-02-19 Tom Tromey <tromey@redhat.com>
8755 * target.h (struct target_ops) <to_insn_history_range>: Add
8757 * target.c (target_insn_history_range): Add argument.
8758 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8760 (record_btrace_insn_history_from): Update.
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target.h (struct target_ops) <to_insn_history_from>: Add
8766 * target.c (target_insn_history_from): Add argument.
8767 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8770 2014-02-19 Tom Tromey <tromey@redhat.com>
8772 * target.h (struct target_ops) <to_insn_history>: Add argument.
8773 * target.c (target_insn_history): Add argument.
8774 * record-btrace.c (record_btrace_insn_history): Add 'self'
8777 2014-02-19 Tom Tromey <tromey@redhat.com>
8779 * target.h (struct target_ops) <to_goto_record>: Add argument.
8780 * target.c (target_goto_record): Add argument.
8781 * record-full.c (record_full_goto): Add 'self' argument.
8782 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8784 2014-02-19 Tom Tromey <tromey@redhat.com>
8786 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8787 * target.c (target_goto_record_end): Add argument.
8788 * record-full.c (record_full_goto_end): Add 'self' argument.
8789 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target.h (struct target_ops) <to_goto_record_begin>: Add
8795 * target.c (target_goto_record_begin): Add argument.
8796 * record-full.c (record_full_goto_begin): Add 'self' argument.
8797 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target.h (struct target_ops) <to_record_is_replaying>: Add
8804 * target.c (target_record_is_replaying): Add argument.
8805 * record-full.c (record_full_is_replaying): Add 'self' argument.
8806 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8808 (record_btrace_xfer_partial, record_btrace_store_registers)
8809 (record_btrace_prepare_to_store, record_btrace_resume)
8810 (record_btrace_wait, record_btrace_decr_pc_after_break)
8811 (record_btrace_find_new_threads, record_btrace_thread_alive):
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target.h (struct target_ops) <to_delete_record>: Add argument.
8817 * target.c (target_delete_record): Add argument.
8818 * record-full.c (record_full_delete): Add 'self' argument.
8820 2014-02-19 Tom Tromey <tromey@redhat.com>
8822 * target.h (struct target_ops) <to_save_record>: Add argument.
8823 * target.c (target_save_record): Add argument.
8824 * record-full.c (record_full_save): Add 'self' argument.
8825 (record_full_save): Add 'self' argument.
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * target.h (struct target_ops) <to_info_record>: Add argument.
8830 * target.c (target_info_record): Add argument.
8831 * record.c (info_record_command): Add argument.
8832 * record-full.c (record_full_info): Add 'self' argument.
8833 * record-btrace.c (record_btrace_info): Add 'self' argument.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8838 * target.c (target_stop_recording): Add argument.
8839 * record.c (record_stop): Add argument.
8840 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8845 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8846 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8847 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8849 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8850 (_initialize_amd64_linux_nat): Use it.
8851 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8852 (_initialize_i386_linux_nat): Use it.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8857 * target.c (target_teardown_btrace): Add argument.
8858 * remote.c (remote_teardown_btrace): Add 'self' argument.
8859 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8861 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8864 2014-02-19 Tom Tromey <tromey@redhat.com>
8866 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8867 * target.c (target_disable_btrace): Add argument.
8868 * remote.c (remote_disable_btrace): Add 'self' argument.
8869 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8871 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8877 * target.c (target_enable_btrace): Add argument.
8878 * remote.c (remote_enable_btrace): Add 'self' argument.
8879 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8881 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8887 (target_can_use_agent): Add argument.
8888 * target.c (update_current_target): Update.
8889 * remote.c (remote_can_use_agent): Add 'self' argument.
8890 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8894 * target.h (struct target_ops) <to_use_agent>: Add argument.
8895 (target_use_agent): Add argument.
8896 * target.c (update_current_target): Update.
8897 * remote.c (remote_use_agent): Add 'self' argument.
8898 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8900 2014-02-19 Tom Tromey <tromey@redhat.com>
8902 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8903 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8904 (target_traceframe_info): Add argument.
8905 * target.c (update_current_target): Update.
8906 * remote.c (remote_traceframe_info): Add 'self' argument.
8907 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8911 * target.h (target_static_tracepoint_markers_by_strid): Add
8913 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8915 * target.c (update_current_target): Update.
8916 * remote.c (struct target_ops)
8917 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8918 * linux-nat.c (struct target_ops)
8919 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8925 (target_static_tracepoint_marker_at): Add argument.
8926 * target.c (update_current_target): Update.
8927 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8932 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8933 (target_set_permissions): Add argument.
8934 * target.c (update_current_target): Update.
8935 * remote.c (remote_set_permissions): Add 'self' argument.
8936 (remote_start_remote): Update.
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8940 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8941 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8942 (target_get_tib_address): Add argument.
8943 * target.c (update_current_target): Update.
8944 * remote.c (remote_get_tib_address): Add 'self' argument.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8949 (target_set_trace_notes): Add argument.
8950 * target.c (update_current_target): Update.
8951 * remote.c (remote_set_trace_notes): Add 'self' argument.
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8955 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8957 (target_set_trace_buffer_size): Add argument.
8958 * target.c (update_current_target): Update.
8959 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8963 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8965 (target_set_circular_trace_buffer): Add argument.
8966 * target.c (update_current_target): Update.
8967 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8972 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8974 (target_set_disconnected_tracing): Add argument.
8975 * target.c (update_current_target): Update.
8976 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8980 * target.h (struct target_ops)
8981 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8982 (target_get_min_fast_tracepoint_insn_len): Add argument.
8983 * target.c (update_current_target): Update.
8984 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8991 (target_get_raw_trace_data): Add argument.
8992 * target.c (update_current_target): Update.
8993 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8999 (target_upload_trace_state_variables): Add argument.
9000 * target.c (update_current_target): Update.
9001 * remote.c (remote_upload_trace_state_variables): Add 'self'
9003 (remote_start_remote): Update.
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9009 (target_upload_tracepoints): Add argument.
9010 * target.c (update_current_target): Update.
9011 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9012 (remote_start_remote): Update.
9014 2014-02-19 Tom Tromey <tromey@redhat.com>
9016 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9017 (target_save_trace_data): Add argument.
9018 * target.c (update_current_target): Update.
9019 * remote.c (remote_save_trace_data): Add 'self' argument.
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9023 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9025 * target.h (struct target_ops)
9026 <to_get_trace_state_variable_value>: Add argument.
9027 (target_get_trace_state_variable_value): Add argument.
9028 * target.c (update_current_target): Update.
9029 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9031 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9035 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9036 * target.h (struct target_ops) <to_trace_find>: Add argument.
9037 (target_trace_find): Add argument.
9038 * target.c (update_current_target): Update.
9039 * remote.c (remote_trace_find): Add 'self' argument.
9040 * ctf.c (ctf_trace_find): Add 'self' argument.
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9045 (target_trace_stop): Add argument.
9046 * target.c (update_current_target): Update.
9047 * remote.c (remote_trace_stop): Add 'self' argument.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9052 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9054 (target_get_tracepoint_status): Add argument.
9055 * target.c (update_current_target): Update.
9056 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9060 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9061 * target.h (struct target_ops) <to_get_trace_status>: Add
9063 (target_get_trace_status): Add argument.
9064 * target.c (update_current_target): Update.
9065 * remote.c (remote_get_trace_status): Add 'self' argument.
9066 (remote_start_remote, remote_can_download_tracepoint): Update.
9067 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9071 * target.h (struct target_ops) <to_trace_start>: Add argument.
9072 (target_trace_start): Add argument.
9073 * target.c (update_current_target): Update.
9074 * remote.c (remote_trace_start): Add 'self' argument.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9080 (target_trace_set_readonly_regions): Add argument.
9081 * target.c (update_current_target): Update.
9082 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9087 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9089 (target_disable_tracepoint): Add argument.
9090 * target.c (update_current_target): Update.
9091 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9097 (target_enable_tracepoint): Add argument.
9098 * target.c (update_current_target): Update.
9099 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9103 * target.h (struct target_ops) <to_download_trace_state_variable>:
9105 (target_download_trace_state_variable): Add argument.
9106 * target.c (update_current_target): Update.
9107 * remote.c (remote_download_trace_state_variable): Add 'self'
9110 2014-02-19 Tom Tromey <tromey@redhat.com>
9112 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9114 (target_can_download_tracepoint): Add argument.
9115 * target.c (update_current_target): Update.
9116 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9120 * target.h (struct target_ops) <to_download_tracepoint>: Add
9122 (target_download_tracepoint): Add argument.
9123 * target.c (update_current_target): Update.
9124 * remote.c (remote_download_tracepoint): Add 'self' argument.
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9128 * target.h (struct target_ops) <to_trace_init>: Add argument.
9129 (target_trace_init): Add argument.
9130 * target.c (update_current_target): Update.
9131 * remote.c (remote_trace_init): Add 'self' argument.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9136 * target.c (target_fileio_readlink): Add argument.
9137 * remote.c (remote_hostio_readlink): Add 'self' argument.
9138 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9143 * target.c (target_fileio_unlink): Add argument.
9144 * remote.c (remote_hostio_unlink): Add 'self' argument.
9145 (remote_file_delete): Update.
9146 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9151 * target.c (target_fileio_close): Add argument.
9152 * remote.c (remote_hostio_close): Add 'self' argument.
9153 (remote_hostio_close_cleanup): Update.
9154 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9156 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9160 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9161 * target.c (target_fileio_pread): Add argument.
9162 * remote.c (remote_hostio_pread): Add 'self' argument.
9163 (remote_bfd_iovec_pread, remote_file_get): Update.
9164 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9169 * target.c (target_fileio_pwrite): Add argument.
9170 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9171 (remote_file_put): Update.
9172 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9176 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9177 * target.c (target_fileio_open): Add argument.
9178 * remote.c (remote_hostio_open): Add 'self' argument.
9179 (remote_bfd_iovec_open): Add 'self' argument.
9180 (remote_file_put): Add 'self' argument.
9181 (remote_file_get): Add 'self' argument.
9182 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9188 (target_can_run_breakpoint_commands): Add argument.
9189 * target.c (update_current_target): Update.
9190 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9192 (remote_insert_breakpoint): Add 'self' argument.
9193 (remote_insert_hw_breakpoint): Add 'self' argument.
9194 (remote_can_run_breakpoint_commands): Add 'self' argument.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops)
9199 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9200 (target_supports_evaluation_of_breakpoint_conditions): Add
9202 * target.c (update_current_target): Update.
9203 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9205 (remote_insert_breakpoint): Add 'self' argument.
9206 (remote_insert_hw_breakpoint): Add 'self' argument.
9207 (remote_supports_cond_breakpoints): Add 'self' argument.
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9211 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9213 (target_supports_string_tracing): Add argument.
9214 * target.c (update_current_target): Update.
9215 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * target.h (struct target_ops)
9220 <to_supports_disable_randomization>: Add argument.
9221 * target.c (find_default_supports_disable_randomization): Add
9223 (target_supports_disable_randomization): Add argument.
9224 (find_default_supports_disable_randomization): Add 'self'
9226 * remote.c (extended_remote_supports_disable_randomization): Add
9228 (remote_supports_disable_randomization): Add 'self' argument.
9229 (extended_remote_create_inferior): Update.
9230 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9235 * target.h (struct target_ops)
9236 <to_supports_enable_disable_tracepoint>: Add argument.
9237 (target_supports_enable_disable_tracepoint): Add argument.
9238 * target.c (update_current_target): Update.
9239 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9244 * target.h (struct target_ops) <to_supports_multi_process>: Add
9246 (target_supports_multi_process): Add argument.
9247 * target.c (update_current_target): Update.
9248 * remote.c (remote_supports_multi_process): Add 'self' argument.
9249 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9251 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target.h (struct target_ops) <to_execution_direction>: Add
9258 (target_execution_direction): Add argument.
9259 * target.c (default_execution_direction): Add 'self' argument.
9260 * record-full.c (record_full_execution_direction): Add 'self'
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9267 (target_can_execute_reverse): Add argument.
9268 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9269 * record-full.c (record_full_can_execute_reverse): Add 'self'
9271 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9277 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9279 (target_get_ada_task_ptid): Add argument.
9280 * target.c (update_current_target): Update.
9281 (default_get_ada_task_ptid): Add 'self' argument.
9282 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9283 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9284 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9286 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9288 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9290 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9292 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9293 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9296 2014-02-19 Tom Tromey <tromey@redhat.com>
9298 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9299 (target_goto_bookmark): Add argument.
9300 * target.c (dummy_goto_bookmark): Add 'self' argument.
9301 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9305 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9306 (target_get_bookmark): Add argument.
9307 * target.c (dummy_get_bookmark): Add 'self' argument.
9308 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9312 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9314 (target_make_corefile_notes): Add argument.
9315 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9316 * procfs.c (procfs_make_note_section): Add 'self' argument.
9317 (procfs_make_note_section): Add 'self' argument.
9318 (procfs_make_note_section): Add 'self' argument.
9319 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9321 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9322 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9323 * exec.c (exec_make_note_section): Add 'self' argument.
9324 (exec_make_note_section): Add 'self' argument.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target.h (struct target_ops) <to_find_memory_regions>: Add
9330 (target_find_memory_regions): Add argument.
9331 * target.c (dummy_find_memory_regions): Add 'self' argument.
9332 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9333 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9334 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9335 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9336 * exec. (exec_do_find_memory_regions): New global.
9337 (exec_set_find_memory_regions): Rewrite.
9338 (exec_find_memory_regions): New function.
9339 (init_exec_ops): Use exec_find_memory_regions.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target.h (struct target_ops) <to_supports_non_stop>: Add
9345 * target.c (find_default_supports_non_stop): Add argument.
9346 (target_supports_non_stop): Add argument.
9347 (find_default_supports_non_stop): Add 'self' argument.
9348 * remote.c (remote_supports_non_stop): Add 'self' argument.
9349 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target.h (struct target_ops) <to_log_command>: Add argument.
9354 (target_log_command): Add argument.
9355 * serial.h (serial_log_command): Add 'self' argument.
9356 * serial.c (serial_log_command): Add 'self' argument.
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9361 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9363 (target_pid_to_exec_file): Add argument.
9364 * target.c (debug_to_pid_to_exec_file): Add argument.
9365 (update_current_target): Update.
9366 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9367 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9368 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9369 (linux_handle_extended_wait): Update.
9370 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9371 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9372 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9373 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9377 * target.h (struct target_ops) <to_rcmd>: Add argument.
9378 (target_rcmd): Add argument.
9379 * target.c (debug_to_rcmd): Add argument.
9380 (update_current_target, do_monitor_command): Update.
9381 * remote.c (remote_rcmd): Add 'self' argument.
9382 * monitor.c (monitor_rcmd): Add 'self' argument.
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9386 * windows-nat.c (windows_stop): Add 'self' argument.
9387 * target.h (struct target_ops) <to_stop>: Add argument.
9388 * target.c (target_stop): Add argument.
9389 (debug_to_stop): Add argument.
9390 (update_current_target): Update.
9391 * remote.c (remote_stop): Add 'self' argument.
9392 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9393 (gdbsim_cntrl_c): Update.
9394 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9395 * procfs.c (procfs_stop): Add 'self' argument.
9396 * nto-procfs.c (procfs_stop): Add 'self' argument.
9397 * monitor.c (monitor_stop): Add 'self' argument.
9398 (monitor_open): Update.
9399 * linux-nat.c (linux_nat_stop): Add argument.
9400 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9401 * gnu-nat.c (gnu_stop): Add 'self' argument.
9402 * darwin-nat.c (darwin_stop): Add 'self' argument.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target.h (struct target_ops) <to_thread_name>: Add argument.
9407 * target.c (target_thread_name): Add argument.
9408 (update_current_target): Update.
9409 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9413 * target.h (struct target_ops) <to_extra_thread_info>: Add
9415 (target_extra_thread_info): Add argument.
9416 * target.c (update_current_target): Update.
9417 * remote.c (remote_threads_extra_info): Add 'self' argument.
9418 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9420 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9421 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9422 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9424 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9426 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9428 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9433 * target.h (struct target_ops) <to_program_signals>: Add argument.
9434 * target.c (target_program_signals): Add argument.
9435 * remote.c (remote_program_signals): Add 'self' argument.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9440 * target.c (target_pass_signals): Add argument.
9441 * remote.c (remote_pass_signals): Add 'self' argument.
9442 (remote_start_remote): Update.
9443 * procfs.c (procfs_pass_signals): Add 'self' argument.
9444 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9445 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9446 (linux_nat_create_inferior, linux_nat_attach): Update.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * windows-nat.c (windows_can_run): Add 'self' argument.
9451 * target.h (struct target_ops) <to_can_run>: Add argument.
9452 (target_can_run): Add argument.
9453 * target.c (debug_to_can_run): Add argument.
9454 (update_current_target): Update.
9455 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9456 * inf-child.c (inf_child_can_run): Add 'self' argument.
9457 * go32-nat.c (go32_can_run): Add 'self' argument.
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9461 * target.h (struct target_ops) <to_has_exited>: Add argument.
9462 (target_has_exited): Add argument.
9463 * target.c (debug_to_has_exited): Add argument.
9464 (update_current_target): Update.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9470 (target_set_syscall_catchpoint): Add argument.
9471 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9473 * target.c (update_current_target): Update.
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9479 (target_remove_exec_catchpoint): Add argument.
9480 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9481 (update_current_target): Update.
9482 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9487 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9489 (target_insert_exec_catchpoint): Add argument.
9490 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9491 (update_current_target): Update.
9492 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9499 (target_remove_vfork_catchpoint): Add argument.
9500 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9501 (update_current_target): Update.
9502 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9509 (target_insert_vfork_catchpoint): Add argument.
9510 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9511 (update_current_target): Update.
9512 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9515 2014-02-19 Tom Tromey <tromey@redhat.com>
9517 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9519 (target_remove_fork_catchpoint): Add argument.
9520 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9521 (update_current_target): Update.
9522 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9529 (target_insert_fork_catchpoint): Add argument.
9530 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9531 (update_current_target): Update.
9532 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9539 (target_post_startup_inferior): Add argument.
9540 * target.c (debug_to_post_startup_inferior): Add argument.
9541 (update_current_target): Update.
9542 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9544 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9546 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9548 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9550 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9552 (super_post_startup_inferior): Likewise.
9553 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9555 (super_post_startup_inferior): Likewise.
9556 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9557 Add 'self' argument.
9558 (super_post_startup_inferior): Likewise.
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target.h (struct target_ops) <to_load>: Add argument.
9563 * target.c (target_load): Add argument.
9564 (debug_to_load): Add argument.
9565 (update_current_target): Update.
9566 * remote.c (remote_load): Add 'self' argument.
9567 * remote-sim.c (gdbsim_load): Add 'self' argument.
9568 * remote-mips.c (mips_load): Add 'self' argument.
9569 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9570 * monitor.c (monitor_load): Add 'self' argument.
9571 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9573 2014-02-19 Tom Tromey <tromey@redhat.com>
9575 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9576 (target_terminal_info): Add argument.
9577 * target.c (debug_to_terminal_info): Add argument.
9578 (default_terminal_info): Likewise.
9579 * inflow.c (child_terminal_info): Add 'self' argument.
9580 * inferior.h (child_terminal_info): Add 'self' argument.
9581 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9585 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9587 (target_terminal_save_ours): Add argument.
9588 * target.c (debug_to_terminal_save_ours): Add argument.
9589 (update_current_target): Update.
9590 * inflow.c (terminal_save_ours): Add 'self' argument.
9591 * inferior.h (terminal_save_ours): Add 'self' argument.
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9596 (target_terminal_ours): Add argument.
9597 * target.c (debug_to_terminal_ours): Add argument.
9598 (update_current_target): Update.
9599 * remote.c (remote_terminal_ours): Add 'self' argument.
9600 (remote_close): Update.
9601 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9602 * inflow.c (terminal_ours): Add 'self' argument.
9603 * inferior.h (terminal_ours): Add 'self' argument.
9604 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9606 2014-02-19 Pedro Alves <palves@redhat.com>
9607 Tom Tromey <tromey@redhat.com>
9609 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9611 (target_terminal_ours_for_output): Add argument.
9612 * target.c (debug_to_terminal_ours_for_output): Add argument.
9613 (update_current_target): Update.
9614 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9615 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9616 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target.h (struct target_ops) <to_terminal_inferior>: Add
9622 * target.c (target_terminal_inferior): Add argument.
9623 (update_current_target): Update.
9624 * remote.c (remote_terminal_inferior): Add 'self' argument.
9625 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9626 * inflow.c (terminal_inferior): Add 'self' argument.
9627 * inferior.h (terminal_inferior): Add 'self' argument.
9628 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9629 (go32_terminal_inferior): Add 'self' argument.
9631 2014-02-19 Tom Tromey <tromey@redhat.com>
9633 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9634 (target_terminal_init): Add argument.
9635 * target.c (debug_to_terminal_init): Add argument.
9636 (update_current_target): Update.
9637 * inflow.c (terminal_init_inferior): Add 'self' argument.
9638 * inferior.h (terminal_init_inferior): Add 'self' argument.
9639 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9640 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9644 * target.h (struct target_ops)
9645 <to_can_accel_watchpoint_condition>: Add argument.
9646 (target_can_accel_watchpoint_condition): Add argument.
9647 * target.c (debug_to_can_accel_watchpoint_condition): Add
9649 (update_current_target): Update.
9650 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9657 (target_region_ok_for_hw_watchpoint): Add argument.
9658 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9659 (default_region_ok_for_hw_watchpoint): Add argument.
9660 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9661 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9663 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9665 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9667 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9669 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9671 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9673 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9674 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9676 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9677 Add 'self' argument.
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9681 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9683 (target_insert_watchpoint): Add argument.
9684 * target.c (debug_to_insert_watchpoint): Add argument.
9685 (update_current_target): Update.
9686 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9687 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9688 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9689 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9690 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9691 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9693 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9694 (procfs_insert_hw_watchpoint): Add 'self' argument.
9695 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9697 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9699 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9701 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9702 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9704 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9711 (target_remove_watchpoint): Add argument.
9712 * target.c (debug_to_remove_watchpoint): Add argument.
9713 (update_current_target): Update.
9714 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9715 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9716 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9717 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9718 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9719 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9721 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9722 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9724 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9726 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9728 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9729 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9731 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9736 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9738 (target_remove_hw_breakpoint): Add argument.
9739 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9740 (update_current_target): Update.
9741 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9742 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9744 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9745 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9747 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9752 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9754 (target_insert_hw_breakpoint): Add argument.
9755 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9756 (update_current_target): Update.
9757 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9758 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9760 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9761 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9762 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9764 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9769 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9771 (target_can_use_hardware_watchpoint): Add argument.
9772 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9773 (update_current_target): Update.
9774 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9776 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9778 * remote.c (remote_check_watch_resources): Add 'self' argument.
9779 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9780 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9782 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9783 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9785 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9787 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9789 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9791 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9793 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9795 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9796 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9798 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * target.h (struct target_ops) <to_post_attach>: Add argument.
9804 (target_post_attach): Add argument.
9805 * target.c (debug_to_post_attach): Add argument.
9806 (update_current_target): Update.
9807 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9808 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9809 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9810 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9811 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * windows-nat.c (windows_close): Add 'self' argument.
9816 * tracepoint.c (tfile_close): Add 'self' argument.
9817 * target.h (struct target_ops) <to_close>: Add argument.
9818 * target.c (target_close): Add argument.
9819 (update_current_target): Update.
9820 * remote.c (remote_close): Add 'self' argument.
9821 * remote-sim.c (gdbsim_close): Add 'self' argument.
9822 * remote-mips.c (mips_close): Add 'self' argument.
9823 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9824 * record-full.c (record_full_close): Add 'self' argument.
9825 * record-btrace.c (record_btrace_close): Add 'self' argument.
9826 * monitor.h (monitor_close): Add 'self' argument.
9827 * monitor.c (monitor_close): Add 'self' argument.
9828 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9829 * linux-nat.c (linux_nat_close): Add argument.
9830 * go32-nat.c (go32_close): Add 'self' argument.
9831 * exec.c (exec_close_1): Add 'self' argument.
9832 * ctf.c (ctf_close): Add 'self' argument.
9833 * corelow.c (core_close): Add 'self' argument.
9834 (core_close_cleanup): Update.
9835 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9836 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9840 * remote.c (remote_load): New function.
9841 (init_remote_ops): Use it.
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9845 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9847 * common/linux-btrace.h (linux_supports_btrace): Update.
9848 * remote.c (remote_supports_btrace): Add "self" argument.
9849 * target-delegates.c: Rebuild.
9850 * target.c (target_supports_btrace): Remove.
9851 * target.h (struct target_ops) <to_supports_btrace>: Add
9852 target_ops argument.
9853 (target_supports_btrace): New define.
9855 2014-02-19 Tom Tromey <tromey@redhat.com>
9857 * record-full.c (record_full_beneath_to_resume_ops)
9858 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9859 (record_full_beneath_to_wait)
9860 (record_full_beneath_to_store_registers_ops)
9861 (record_full_beneath_to_store_registers)
9862 (record_full_beneath_to_xfer_partial_ops)
9863 (record_full_beneath_to_xfer_partial)
9864 (record_full_beneath_to_insert_breakpoint_ops)
9865 (record_full_beneath_to_insert_breakpoint)
9866 (record_full_beneath_to_remove_breakpoint_ops)
9867 (record_full_beneath_to_remove_breakpoint)
9868 (record_full_beneath_to_stopped_by_watchpoint)
9869 (record_full_beneath_to_stopped_data_address)
9870 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9871 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9872 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9873 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9874 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9875 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9876 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9877 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9878 (record_full_resume, record_full_wait_1)
9879 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9880 (record_full_store_registers, record_full_xfer_partial)
9881 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9882 (record_full_async, record_full_core_xfer_partial): Use target
9884 * target-delegates.c: Rebuild.
9885 * target.c (current_xfer_partial): Remove.
9886 (update_current_target): Do not INHERIT or de_fault
9887 to_insert_breakpoint, to_remove_breakpoint,
9888 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9889 to_is_async_p, to_async. Do not set to_xfer_partial field.
9890 (default_xfer_partial): Simplify.
9891 (current_xfer_partial): Remove.
9892 (target_wait, target_resume): Simplify.
9893 (find_default_can_async_p, find_default_is_async_p): Update.
9894 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9895 to_xfer_partial, to_stopped_by_watchpoint,
9896 to_stopped_data_address.
9897 (target_store_registers): Simplify.
9898 (forward_target_remove_breakpoint)
9899 (forward_target_insert_breakpoint): Remove.
9900 (target_remove_breakpoint, target_insert_breakpoint)
9901 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9902 * target.h (struct target_ops) <to_resume, to_wait,
9903 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9904 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9905 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9907 (forward_target_remove_breakpoint)
9908 (forward_target_insert_breakpoint): Remove.
9909 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9911 (record_btrace_insert_breakpoint): Delegate directly.
9913 2014-02-19 Tom Tromey <tromey@redhat.com>
9916 * target-delegates.c: New file.
9917 * target.c: Include target-delegates.c.
9918 (init_dummy_target): Call install_dummy_methods.
9919 (complete_target_initialization): Call install_delegators.
9920 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9921 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9922 * make-target-delegates: New file.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * record.c (find_record_target): Use find_target_at.
9927 * target.c (find_target_at): New function.
9928 * target.h (find_target_at): Declare.
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9932 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9934 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9936 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9937 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9939 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9941 * linux-nat.c (save_sigtrap): Update.
9942 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9943 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9944 (linux_nat_close): Update.
9945 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9947 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9949 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9950 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9951 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9952 (tmp_to_async): Add 'ops' argument.
9953 (record_full_stopped_by_watchpoint, record_full_async)
9954 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9956 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9957 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9958 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9959 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9960 (remote_is_async_p, remote_async): Add 'ops' argument.
9961 (remote_stopped_data_address): Update.
9962 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9963 * target.c (update_current_target)
9964 (find_default_can_async_p, find_default_is_async_p): Update.
9965 (init_dummy_target): Update.
9966 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9967 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9968 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9969 (target_can_async_p, target_is_async_p, target_async)
9970 (target_stopped_by_watchpoint): Update.
9972 2014-02-19 Yao Qi <yao@codesourcery.com>
9975 * gdbarch.sh: Remove startup_gdbarch.
9976 * gdbarch.c: Regenerated.
9977 * gdbarch.h: Likewise.
9979 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9981 * rl78-tdep.c (rl78_g10_register_name): New function.
9982 (rl78_return_value): Add g10 support.
9983 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9986 2014-02-17 Doug Evans <xdje42@gmail.com>
9988 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9989 (SUBDIR_GUILE_SRCS): Ditto.
9990 (scm-gsmob.o): Ditto.
9992 2014-02-17 Yao Qi <yao@codesourcery.com>
9994 * gnu-nat.c (ILL_RPC): Declare defined function.
9996 2014-02-17 Yao Qi <yao@codesourcery.com>
9998 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9999 mach_msg_type_number_t.
10000 (gnu_write_inferior): Likewise.
10002 2014-02-17 Yao Qi <yao@codesourcery.com>
10004 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10006 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10007 (inf_validate_procs, inf_signal): Likewise.
10008 (S_exception_raise_request): Likewise.
10009 (do_mach_notify_dead_name): Likewise.
10010 (steal_exc_port): Likewise.
10011 (gnu_read_inferior): Change 'copy_count''s type to
10012 mach_msg_type_number_t.
10013 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10016 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10018 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10019 flag. Adjust all users; in particular...
10020 (gnu_wait): ..., don't decrement its value in here...
10021 (gnu_create_inferior): ..., and instead set the flag in here,
10022 around the startup_inferior call, and call that one with
10023 START_INFERIOR_TRAPS_EXPECTED.
10025 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10026 (ILL_RPC): ... new macro.
10027 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10028 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10029 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10030 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10031 functions with ILL_RPC macro.
10032 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10033 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10034 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10035 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10036 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10037 (S_proc_getlogin_reply, S_proc_getsid_reply)
10038 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10039 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10040 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10041 (S_proc_getnports_reply, S_proc_is_important_reply)
10042 (S_proc_get_code_reply): New stub functions, generated with
10045 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10046 collected the type check structures.
10048 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10050 2014-02-14 Doug Evans <dje@google.com>
10052 * target.c (target_write_partial): Fix result type.
10054 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10056 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10057 the proper offsets to access fpregset_t.
10059 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10061 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10062 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10063 * h8300-tdep.c (setmachinelist): Remove global.
10064 * hppa-tdep.c (hppa_sigtramp): Remove global.
10065 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10066 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10067 * ravenscar-thread.c (update_target_observer): Remove global.
10068 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10070 2014-02-12 Tom Tromey <tromey@redhat.com>
10072 * common/rsp-low.c: Update comments.
10073 * common/rsp-low.h: Update comments.
10075 2014-02-12 Tom Tromey <tromey@redhat.com>
10077 * common/rsp-low.c (convert_ascii_to_int): Remove.
10078 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10080 2014-02-12 Tom Tromey <tromey@redhat.com>
10082 * common/rsp-low.h (unhexify): Don't declare.
10083 * common/rsp-low.c (unhexify): Remove.
10085 2014-02-12 Tom Tromey <tromey@redhat.com>
10087 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10088 * common/rsp-low.c (convert_int_to_ascii): Remove.
10090 2014-02-12 Tom Tromey <tromey@redhat.com>
10092 * common/rsp-low.h (hexify): Don't declare.
10093 * common/rsp-low.c (hexify): Remove.
10095 2014-02-12 Tom Tromey <tromey@redhat.com>
10097 * common/rsp-low.c (hexify): Never take strlen of argument.
10099 2014-02-12 Tom Tromey <tromey@redhat.com>
10101 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10102 * remote.c (extended_remote_run, remote_rcmd)
10103 (remote_download_trace_state_variable, remote_save_trace_data)
10104 (remote_set_trace_notes): Update.
10105 * tracepoint.c (encode_source_string, tfile_write_status)
10106 (tfile_write_uploaded_tsv): Update.
10108 2014-02-12 Tom Tromey <tromey@redhat.com>
10110 * tracepoint.c: Include rsp-low.h.
10111 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10112 * remote.c: Include rsp-low.h.
10113 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10114 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10115 (remote_unescape_input): Move to common/rsp-low.c.
10116 * common/rsp-low.h: New file.
10117 * common/rsp-low.c: New file.
10118 * Makefile.in (SFILES): Add common/rsp-low.c.
10119 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10120 (COMMON_OBS): Add rsp-low.o.
10121 (rsp-low.o): New target.
10123 2014-02-12 Tom Tromey <tromey@redhat.com>
10125 * utils.h: Include print-utils.h.
10126 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10127 (int_string, core_addr_to_string, core_addr_to_string_nz)
10128 (hex_string, hex_string_custom): Don't declare.
10129 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10130 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10131 (hex_string_custom, int_string, core_addr_to_string)
10132 (core_addr_to_string_nz, host_address_to_string): Move to
10133 common/print-utils.c.
10134 * common/print-utils.h: New file.
10135 * common/print-utils.c: New file
10136 * Makefile.in (SFILES): Add common/print-utils.c.
10137 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10138 (COMMON_OBS): Add print-utils.o.
10139 (print-utils.o): New target.
10141 2014-02-12 Tom Tromey <tromey@redhat.com>
10143 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10145 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10147 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10149 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10151 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10152 if a PT_IO ptrace request returns sucessfully but indicates that 0
10153 bytes were transferred.
10155 2014-02-12 Pedro Alves <palves@redhat.com>
10156 Kevin Buettner <kevinb@redhat.com>
10158 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10159 TYPE_INSTANCE_FLAG_CODE_SPACE.
10161 2014-02-12 Pedro Alves <palves@redhat.com>
10163 * h8300-tdep.c (pseudo_from_raw_register)
10164 (raw_from_pseudo_register): New functions.
10165 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10168 2014-02-12 Pedro Alves <palves@redhat.com>
10170 * h8300-tdep.c (h8300_register_sim_regno): New function.
10171 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10172 gdbarch_register_sim_regno hook.
10174 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10176 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10178 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10180 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10182 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10184 * obsd-tdep.h (obsd_init_abi): New prototype.
10185 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10186 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10187 (obsd_init_abi): New functions.
10188 * i386obsd-tdep.c: Include "obsd-tdep.h".
10189 (i386obsd_init_abi): Call obsd_init_abi.
10190 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10191 (amd64obsd_init_abi): Call obsd_init_abi.
10192 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10193 obsd-tdep.c to gdb_target_obs.
10195 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10197 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10198 double float arguments to 16-byte in the argument slots.
10200 2014-02-11 Doug Evans <xdje42@gmail.com>
10202 * configure.ac: Don't crash if pkg-config is not found and guile
10203 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10205 * configure: Regenerate.
10207 2014-02-11 Yao Qi <yao@codesourcery.com>
10209 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10210 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10211 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10212 * gnu-nat.c (gnu_xfer_memory): Likewise.
10213 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10214 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10215 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10216 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10218 2014-02-11 Yao Qi <yao@codesourcery.com>
10220 * target.h (enum target_xfer_error): Rename to ...
10221 (enum target_xfer_status): ... it. New. All users updated.
10222 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10224 (TARGET_XFER_STATUS_ERROR_P): New macro.
10225 (target_xfer_error_to_string): Remove declaration.
10226 (target_xfer_status_to_string): Declare.
10227 (target_xfer_partial_ftype): Adjust it.
10228 (struct target_ops) <to_xfer_partial>: Return
10229 target_xfer_status. Add argument xfered_len. Update
10231 * target.c (target_xfer_error_to_string): Rename to ...
10232 (target_xfer_status_to_string): ... it. New. All callers
10234 (target_read_live_memory): Likewise. Call target_xfer_partial
10235 instead of target_read.
10236 (memory_xfer_live_readonly_partial): Return
10237 target_xfer_status. Add argument xfered_len.
10238 (raw_memory_xfer_partial): Likewise.
10239 (memory_xfer_partial_1): Likewise.
10240 (memory_xfer_partial): Likewise.
10241 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10242 properly. Update debug message.
10243 (default_xfer_partial, current_xfer_partial): Likewise.
10244 (target_write_partial): Likewise.
10245 (target_read_partial): Likewise. All callers updated.
10246 (read_whatever_is_readable): Likewise.
10247 (target_write_with_progress): Likewise.
10248 (target_read_alloc_1): Likewise.
10250 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10251 * auxv.c (procfs_xfer_auxv): Likewise.
10252 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10253 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10254 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10255 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10256 * corefile.c (read_memory): Adjust.
10257 * corelow.c (core_xfer_partial): Likewise.
10258 * ctf.c (ctf_xfer_partial): Likewise.
10259 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10261 (darwin_xfer_partial): Likewise.
10262 * exec.c (section_table_xfer_memory_partial): Likewise. All
10264 (exec_xfer_partial): Likewise.
10265 * exec.h (section_table_xfer_memory_partial): Update
10267 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10269 (gnu_xfer_partial): Likewise.
10270 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10271 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10272 (ia64_hpux_xfer_solib_got): Likewise.
10273 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10274 type of 'partial_len' to ULONGEST.
10275 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10276 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10277 (linux_nat_xfer_partial): Likewise.
10278 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10279 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10280 * monitor.c (monitor_xfer_memory): Likewise.
10281 (monitor_xfer_partial): Likewise.
10282 * procfs.c (procfs_xfer_partial): Likewise.
10283 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10284 * record-full.c (record_full_xfer_partial): Likewise.
10285 (record_full_core_xfer_partial): Likewise.
10286 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10287 (gdbsim_xfer_partial): Likewise.
10288 * remote.c (remote_write_bytes_aux): Likewise. All callers
10290 (remote_write_bytes, remote_read_bytes): Likewise. All
10292 (remote_flash_erase): Likewise. All callers updated.
10293 (remote_write_qxfer): Likewise. All callers updated.
10294 (remote_read_qxfer): Likewise. All callers updated.
10295 (remote_xfer_partial): Likewise.
10296 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10297 (rs6000_xfer_shared_libraries): Likewise.
10298 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10299 (sol_thread_xfer_partial): Likewise.
10300 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10301 (sparc_xfer_partial): Likewise.
10302 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10304 (spu_xfer_partial): Likewise.
10305 * spu-multiarch.c (spu_xfer_partial): Likewise.
10306 * tracepoint.c (tfile_xfer_partial): Likewise.
10307 * windows-nat.c (windows_xfer_memory): Likewise.
10308 (windows_xfer_shared_libraries): Likewise.
10309 (windows_xfer_partial): Likewise.
10310 * valprint.c: Replace 'target_xfer_error' with
10311 'target_xfer_status' in comments.
10313 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10315 Checked in by Joel Brobecker <brobecker@adacore.com>.
10316 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10318 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10320 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10321 function parameters.
10323 2014-02-10 Will Newton <will.newton@linaro.org>
10325 * elfread.c (elf_rel_plt_read): Look for a .got section if
10326 looking up .got.plt fails.
10327 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10328 on address passed to elf_gnu_ifunc_record_cache.
10329 (elf_gnu_ifunc_resolve_addr): Likewise.
10330 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10332 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10334 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10335 (X_RETTURN): New macro.
10336 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10338 * sparc64-tdep.c (sparc64_init_abi): Hook
10339 sparc_in_function_epilogue_p.
10341 2014-02-10 Gary Benson <gbenson@redhat.com>
10343 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10344 Rename name_matcher to symbol_matcher.
10346 2014-02-10 Gary Benson <gbenson@redhat.com>
10348 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10349 Use expand_symtabs_file_matcher_ftype and
10350 expand_symtabs_symbol_matcher_ftype.
10352 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10354 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10355 (struct ada_symbol_cache): New.
10356 (ada_free_symbol_cache): Forward declare.
10357 (struct ada_pspace_data): New.
10358 (ada_pspace_data_handle): New static global.
10359 (get_ada_pspace_data, ada_pspace_data_cleanup)
10360 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10361 (cache_space, cache): Delete, now folded inside struct
10363 (ada_get_symbol_cache): New function.
10364 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10366 (_initialize_ada_language): Remove initialization of cache_space.
10367 Move call to observer_attach_inferior_exit up, grouping it
10368 with the other observer registrations inside this function.
10369 Rename command to be more general. Add call to
10370 register_program_space_data_with_cleanup.
10372 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10374 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10375 ada_new_objfile_observer.
10376 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10377 (_initialize_tasks): Update uses of ada_new_objfile_observer
10378 and ada_tasks_normal_stop_observer.
10380 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10382 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10383 returned by the 'Length attribute to integer.
10385 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10387 * ada-lang.c (_initialize_ada_language): Initialize
10388 cache_space obstack.
10390 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10392 * ada-lang.c (HASH_SIZE): New macro.
10393 (struct cache_entry): New type.
10394 (cache_space, cache): New static globals.
10395 (ada_clear_symbol_cache, find_entry): New functions.
10396 (lookup_cached_symbol, cache_symbol): Implement.
10397 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10398 (_initialize_ada_language): Attach ada_new_objfile_observer
10399 and ada_free_objfile_observer.
10401 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10403 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10404 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10405 struct block * parameter.
10406 (ada_lookup_symbol_list_worker): Constify local variable "block".
10407 Remove cast which is no longer necessary.
10409 2014-02-10 Doug Evans <xdje42@gmail.com>
10411 Add Guile as an extension language.
10412 * NEWS: Mention Guile scripting.
10413 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10414 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10415 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10416 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10417 (CLIBS): Add GUILE_LIBS.
10418 (install-guile): New rule.
10419 (guile.o): New rule.
10420 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10421 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10422 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10423 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10424 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10425 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10426 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10427 * configure.ac: New option --with-guile.
10428 * configure: Regenerate.
10429 * config.in: Regenerate.
10430 * auto-load.c: Remove #include "python/python.h". Add #include
10431 "gdb/section-scripts.h".
10432 (source_section_scripts): Handle Guile scripts.
10433 (_initialize_auto_load): Add name of Guile objfile script to
10434 scripts-directory help text.
10435 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10436 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10437 (struct breakpoint): New member scm_bp_object.
10438 * defs.h (enum command_control_type): New value guile_control.
10439 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10441 (show_user): Update comment.
10442 (_initialize_cli_cmds): Update help text for "show user". Update help
10443 text for max-user-call-depth.
10444 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10446 (multi_line_command_p): Add guile_control.
10447 (print_command_lines): Handle guile_control.
10448 (execute_control_command, recurse_read_control_structure): Ditto.
10449 (process_next_line): Recognize "guile" commands.
10450 * disasm.c (gdb_disassemble_info): Make non-static.
10451 * disasm.h: #include "dis-asm.h".
10452 (struct gdbarch): Add forward decl.
10453 (gdb_disassemble_info): Declare.
10454 * extension.c: #include "guile/guile.h".
10455 (extension_languages): Add guile.
10456 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10457 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10458 * gdbtypes.c (get_unsigned_type_max): New function.
10459 (get_signed_type_minmax): New function.
10460 * gdbtypes.h (get_unsigned_type_max): Declare.
10461 (get_signed_type_minmax): Declare.
10462 * guile/README: New file.
10463 * guile/guile-internal.h: New file.
10464 * guile/guile.c: New file.
10465 * guile/guile.h: New file.
10466 * guile/scm-arch.c: New file.
10467 * guile/scm-auto-load.c: New file.
10468 * guile/scm-block.c: New file.
10469 * guile/scm-breakpoint.c: New file.
10470 * guile/scm-disasm.c: New file.
10471 * guile/scm-exception.c: New file.
10472 * guile/scm-frame.c: New file.
10473 * guile/scm-gsmob.c: New file.
10474 * guile/scm-iterator.c: New file.
10475 * guile/scm-lazy-string.c: New file.
10476 * guile/scm-math.c: New file.
10477 * guile/scm-objfile.c: New file.
10478 * guile/scm-ports.c: New file.
10479 * guile/scm-pretty-print.c: New file.
10480 * guile/scm-safe-call.c: New file.
10481 * guile/scm-string.c: New file.
10482 * guile/scm-symbol.c: New file.
10483 * guile/scm-symtab.c: New file.
10484 * guile/scm-type.c: New file.
10485 * guile/scm-utils.c: New file.
10486 * guile/scm-value.c: New file.
10487 * guile/lib/gdb.scm: New file.
10488 * guile/lib/gdb/boot.scm: New file.
10489 * guile/lib/gdb/experimental.scm: New file.
10490 * guile/lib/gdb/init.scm: New file.
10491 * guile/lib/gdb/iterator.scm: New file.
10492 * guile/lib/gdb/printing.scm: New file.
10493 * guile/lib/gdb/types.scm: New file.
10494 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10495 (VPATH): Add $(GUILE_SRCDIR).
10496 (GUILE_DIR): New variable.
10497 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10498 (all): Add stamp-guile dependency.
10499 (stamp-guile): New rule.
10500 (clean-guile, install-guile, uninstall-guile): New rules.
10501 (install-only): Add install-guile dependency.
10502 (uninstall): Add uninstall-guile dependency.
10503 (clean): Add clean-guile dependency.
10505 2014-02-09 Doug Evans <xdje42@gmail.com>
10507 Revert this patch (which I approved, mea culpa).
10509 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10511 * Makefile.in (all-lib): Remove.
10512 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10514 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10516 Fix Python stack corruption.
10517 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10520 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10522 * Makefile.in (all-lib): Remove.
10523 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10525 2014-02-07 Doug Evans <dje@google.com>
10527 * extension-priv.h (extension_language_script_ops): Add comment.
10528 (extension_language_ops): Add comment.
10529 (active_ext_lang_state): Fix typo in comment.
10531 2014-02-07 Pedro Alves <palves@redhat.com>
10533 PR breakpoints/16292
10534 * infrun.c (handle_signal_stop) <signal arrives while stepping
10535 over a breakpoint>: Switch back to the stepping thread.
10537 2014-02-07 Yao Qi <yao@codesourcery.com>
10539 * target.c (target_xfer_partial): Return zero if LEN is zero.
10541 2014-02-07 Yao Qi <yao@codesourcery.com>
10543 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10544 (ld_so_xfer_auxv): Likewise.
10545 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10546 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10547 * corelow.c (core_xfer_partial): Likewise.
10548 * ctf.c (ctf_xfer_partial): Likewise.
10549 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10550 (darwin_xfer_partial): Likewise.
10551 * exec.c (exec_xfer_partial): Likewise.
10552 * gnu-nat.c (gnu_xfer_partial): Likewise.
10553 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10554 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10555 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10556 * linux-nat.c (linux_xfer_siginfo): Likewise.
10557 (linux_proc_xfer_spu): Likewise.
10558 * procfs.c (procfs_xfer_partial): Likewise.
10559 * record-full.c (record_full_xfer_partial): Likewise.
10560 (record_full_core_xfer_partial): Likewise.
10561 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10562 * remote.c (remote_write_qxfer): Likewise.
10563 (remote_write_qxfer, remote_read_qxfer): Likewise.
10564 (remote_xfer_partial): Likewise.
10565 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10566 (rs6000_xfer_shared_libraries): Likewise.
10567 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10568 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10569 (spu_xfer_partial): Likewise.
10570 * target.c (memory_xfer_partial_1): Likewise.
10571 * tracepoint.c (tfile_xfer_partial): Likewise.
10572 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10573 (windows_xfer_partial): Likewise.
10575 2014-02-07 Yao Qi <yao@codesourcery.com>
10577 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10579 (core_xfer_shared_libraries_aix): Likewise.
10580 * gdbarch.c, gdbarch.h: Regenerated.
10581 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10582 ULONGEST. Change 'len_avail' type to ULONGEST.
10583 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10584 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10586 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10588 2014-02-07 Yao Qi <yao@codesourcery.com>
10590 * corefile.c (memory_error): Get 'exception' from ERR and pass
10591 'exception' to throw_error.
10593 2014-02-06 Doug Evans <xdje42@gmail.com>
10595 * configure.ac (libpython checking): Remove all but python.o from
10596 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10597 * configure: Regenerate.
10599 * Makefile.in (SFILES): Add extension.c.
10600 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10601 (COMMON_OBS): Add extension.o.
10602 * extension.h: New file.
10603 * extension-priv.h: New file.
10604 * extension.c: New file.
10606 * python/python-internal.h: #include "extension.h".
10607 (gdbpy_auto_load_enabled): Declare.
10608 (gdbpy_apply_val_pretty_printer): Declare.
10609 (gdbpy_apply_frame_filter): Declare.
10610 (gdbpy_preserve_values): Declare.
10611 (gdbpy_breakpoint_cond_says_stop): Declare.
10612 (gdbpy_breakpoint_has_cond): Declare.
10613 (void source_python_script_for_objfile): Delete.
10614 * python/python.c: #include "extension-priv.h".
10615 Delete inclusion of "observer.h".
10616 (extension_language_python): Moved here and renamed from
10617 script_language_python in py-auto-load.c.
10618 Redefined to be of type extension_language_defn.
10619 (python_extension_script_ops): New global.
10620 (python_extension_ops): New global.
10621 (struct python_env): New member previous_active.
10622 (restore_python_env): Call restore_active_ext_lang.
10623 (ensure_python_env): Call set_active_ext_lang.
10624 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10626 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10628 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10630 (gdbpy_eval_from_control_command): Renamed from
10631 eval_python_from_control_command, made static. New arg extlang.
10632 (gdbpy_source_script) Renamed from source_python_script, made static.
10634 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10635 result to int. New arg extlang.
10636 (gdbpy_source_objfile_script): Renamed from
10637 source_python_script_for_objfile, made static. New arg extlang.
10638 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10639 static. New args extlang, extlang_printers. Change result type to
10641 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10642 static. New arg extlang. Rename arg printers to extlang_printers
10643 and change type to ext_lang_type_printers *.
10644 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10645 static. Replace argument arg with extlang, extlang_printers.
10646 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10647 (!HAVE_PYTHON, source_python_script): Delete.
10648 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10649 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10650 (!HAVE_PYTHON, start_type_printers): Delete.
10651 (!HAVE_PYTHON, apply_type_printers): Delete.
10652 (!HAVE_PYTHON, free_type_printers): Delete.
10653 (_initialize_python): Delete call to observer_attach_before_prompt.
10654 (finalize_python): Set/restore active extension language.
10655 (gdbpy_finish_initialization) Renamed from
10656 finish_python_initialization, made static. New arg extlang.
10657 (gdbpy_initialized): New function.
10658 * python/python.h: #include "extension.h". Delete #include
10659 "value.h", "mi/mi-cmds.h".
10660 (extension_language_python): Declare.
10661 (GDBPY_AUTO_FILE_NAME): Delete.
10662 (enum py_bt_status): Moved to extension.h and renamed to
10663 ext_lang_bt_status.
10664 (enum frame_filter_flags): Moved to extension.h.
10665 (enum py_frame_args): Moved to extension.h and renamed to
10666 ext_lang_frame_args.
10667 (finish_python_initialization): Delete.
10668 (eval_python_from_control_command): Delete.
10669 (source_python_script): Delete.
10670 (apply_val_pretty_printer): Delete.
10671 (apply_frame_filter): Delete.
10672 (preserve_python_values): Delete.
10673 (gdbpy_script_language_defn): Delete.
10674 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10675 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10677 * auto-load.c: #include "extension.h".
10678 (GDB_AUTO_FILE_NAME): Delete.
10679 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10680 (script_language_gdb): Delete, moved to extension.c and renamed to
10681 extension_language_gdb.
10682 (source_gdb_script_for_objfile): Delete.
10683 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10684 (loaded_script): Change type of language member to
10685 struct extension_language_defn *.
10686 (init_loaded_scripts_info): Initialize
10687 unsupported_script_warning_printed.
10688 (maybe_add_script): Make static. Change type of language arg to
10689 struct extension_language_defn *.
10690 (clear_section_scripts): Reset unsupported_script_warning_printed.
10691 (auto_load_objfile_script_1): Rewrite to use extension language API.
10692 (auto_load_objfile_script): Make public. Remove support-compiled-in
10693 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10694 (source_section_scripts): Rewrite to use extension language API.
10695 (load_auto_scripts_for_objfile): Rewrite to use
10696 auto_load_scripts_for_objfile.
10697 (collect_matching_scripts_data): Change type of language member to
10698 struct extension_language_defn *.
10699 (auto_load_info_scripts): Change type of language arg to
10700 struct extension_language_defn *.
10701 (unsupported_script_warning_print): New function.
10702 (script_not_found_warning_print): Make static.
10703 (_initialize_auto_load): Rewrite construction of scripts-directory
10705 * auto-load.h (struct objfile): Add forward decl.
10706 (struct script_language): Delete.
10707 (struct auto_load_pspace_info): Add forward decl.
10708 (struct extension_language_defn): Add forward decl.
10709 (maybe_add_script): Delete.
10710 (auto_load_objfile_script): Declare.
10711 (script_not_found_warning_print): Delete.
10712 (auto_load_info_scripts): Update prototype.
10713 (auto_load_gdb_scripts_enabled): Declare.
10714 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10715 auto_load_python_scripts_enabled and made public.
10716 (script_language_python): Delete, moved to python.c.
10717 (gdbpy_script_language_defn): Delete.
10718 (info_auto_load_python_scripts): Update to use
10719 extension_language_python.
10721 * breakpoint.c (condition_command): Replace call to
10722 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10723 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10724 with call to breakpoint_ext_lang_cond_says_stop.
10725 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10726 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10727 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10728 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10730 (local_setattro): Print name of extension language with existing
10733 * valprint.c (val_print, value_print): Update to call
10734 apply_ext_lang_val_pretty_printer.
10735 * cp-valprint.c (cp_print_value): Update call to
10736 apply_ext_lang_val_pretty_printer.
10737 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10738 (gdbpy_apply_val_pretty_printer): Renamed from
10739 apply_val_pretty_printer. New arg extlang.
10740 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10742 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10743 extension language API.
10744 * cli/cli-script.c (execute_control_command): Update to call
10745 eval_ext_lang_from_control_command.
10747 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10748 enum ext_lang_bt_status values. Update call to
10749 apply_ext_lang_frame_filter.
10750 (mi_cmd_stack_list_locals): Ditto.
10751 (mi_cmd_stack_list_args): Ditto.
10752 (mi_cmd_stack_list_variables): Ditto.
10753 * mi/mi-main.c: Delete #include "python/python-internal.h".
10754 Add #include "extension.h".
10755 (mi_cmd_list_features): Replace reference to python internal variable
10756 gdb_python_initialized with call to ext_lang_initialized_p.
10758 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10759 Update to use enum ext_lang_frame_args. Update to call
10760 apply_ext_lang_frame_filter.
10761 * python/py-framefilter.c (extract_sym): Update to use enum
10762 ext_lang_bt_status.
10763 (extract_value, py_print_type, py_print_value): Ditto.
10764 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10765 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10766 (py_print_frame): Ditto.
10767 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10768 New arg extlang. Update to use enum ext_lang_bt_status.
10770 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10771 finish_python_initialization. Replace with call to
10772 finish_ext_lang_initialization.
10774 * typeprint.c (do_free_global_table): Update to call
10775 free_ext_lang_type_printers.
10776 (create_global_typedef_table): Update to call
10777 start_ext_lang_type_printers.
10778 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10779 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10780 (type_print_options): Change type of global_printers from "void *"
10781 to "struct ext_lang_type_printers *".
10783 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10784 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10785 (gdbpy_preserve_values): Renamed from preserve_python_values.
10787 (!HAVE_PYTHON, preserve_python_values): Delete.
10789 * utils.c (quit_flag): Delete, moved to extension.c.
10790 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10793 * eval.c: Delete #include "python/python.h".
10794 * main.c: Delete #include "python/python.h".
10796 * defs.h: Update comment.
10798 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10802 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10804 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10807 2014-02-05 Yao Qi <yao@codesourcery.com>
10809 * remote.c (remote_pass_signals): Remove local 'buf' and use
10811 (remote_program_signals): Likewise.
10813 2014-02-05 Yao Qi <yao@codesourcery.com>
10815 * ctf.c: Include "inferior.h" and "gdbthread.h".
10816 (CTF_PID): A new macro.
10817 (ctf_open): Call inferior_appeared and add_thread_silent.
10818 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10819 (ctf_thread_alive): New function.
10820 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10822 2014-02-05 Yao Qi <yao@codesourcery.com>
10826 2013-05-24 Yao Qi <yao@codesourcery.com>
10828 * tracepoint.c (TFILE_PID): Remove.
10829 (tfile_open): Don't add thread and inferior.
10830 (tfile_close): Don't set 'inferior_ptid'. Don't call
10831 exit_inferior_silent.
10832 (tfile_thread_alive): Remove.
10833 (init_tfile_ops): Don't set field 'to_thread_alive' of
10836 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10838 * remote.c (remote_start_remote): Call remote_check_symbols even
10839 if only symbol-file (not file) has been given.
10841 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10843 * gdbarch.sh (skip_entrypoint): New callback.
10844 * gdbarch.c, gdbarch.h: Regenerate.
10845 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10846 * infrun.c (fill_in_stop_func): Likewise.
10847 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10848 (ppc_elfv2_elf_make_msymbol_special): New function.
10849 (ppc_elfv2_skip_entrypoint): Likewise.
10850 (ppc_linux_init_abi): Install them for ELFv2.
10852 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10854 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10855 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10856 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10857 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10858 structures returned in GPRs.
10860 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10862 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10863 offset to the stack parameter list for the ELFv2 ABI.
10865 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10867 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10868 set_gdbarch_convert_from_func_ptr_addr and
10869 set_gdbarch_elf_make_msymbol_special for ELFv1.
10870 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10871 function descriptors on ELFv1.
10872 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10873 set up r12 at function entry.
10875 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10877 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10878 (struct gdbarch_tdep): New member elf_abi.
10880 * rs6000-tdep.c: Include "elf/ppc64.h".
10881 (rs6000_gdbarch_init): Detect ELF ABI version.
10883 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10885 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10886 within a register pair holding a DFP 128-bit value on little-endian.
10887 (ppc64_sysv_abi_return_value_base): Likewise.
10888 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10889 (dfp_pseudo_register_write): Likewise.
10891 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10893 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10894 offset on little-endian when passing _Decimal32.
10895 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10897 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10899 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10900 of the overlapped FP register within the VSX register on little-
10902 (efpr_pseudo_register_write): Likewise.
10904 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10906 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10907 offset on little-endian when passing small structures.
10909 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10911 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10912 (struct ppc64_sysv_argpos): New data structure.
10913 (ppc64_sysv_abi_push_float): Remove.
10914 (ppc64_sysv_abi_push_val): New function.
10915 (ppc64_sysv_abi_push_integer): Likewise.
10916 (ppc64_sysv_abi_push_freg): Likewise.
10917 (ppc64_sysv_abi_push_vreg): Likewise.
10918 (ppc64_sysv_abi_push_param): Likewise.
10919 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10920 (ppc64_sysv_abi_return_value_base): New function.
10921 (ppc64_sysv_abi_return_value): Refactor to use it.
10923 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10925 * NEWS: Document new target powerpc64le-*-linux*.
10927 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10929 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10930 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10932 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10933 register set used in ELF core dumps. Add floating-point register set.
10935 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10937 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10938 dwarf2_to_gdb[] table using symbolic constants. Adjust
10939 penultimate entry from number representing the PC register
10940 to symbolic constant representing the MDR register. Add
10941 constant for the PC register to the end of the table.
10943 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10945 * bsd-kvm.c: Include <sys/param.h>
10947 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10949 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10951 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10953 * ada-lang.h (clear_ada_sym_cache): Delete.
10955 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10957 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10959 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10961 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10962 the sigreturn register save area only if the syscall is
10965 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10967 * valops.c (value_slice): Minor reformatting.
10969 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10971 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10973 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10975 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10976 New static globals.
10977 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10978 (ada_ignore_descriptive_types_p): New static global.
10979 (find_parallel_type_by_descriptive_type): Return immediately
10980 if ada_ignore_descriptive_types_p is set.
10981 (_initialize_ada_language): Register new commands "maintenance
10982 set ada", "maintenance show ada", "maintenance set ada
10983 ignore-descriptive-types" and "maintenance show ada
10984 ignore-descriptive-types".
10985 * NEWS: Add entry for new "maint ada set/show
10986 ignore-descriptive-types" commands.
10988 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10990 * record-btrace.c (record_btrace_close): Call btrace_teardown
10993 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10995 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10998 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11000 * ada-typeprint (type_is_full_subrange_of_target_type):
11002 (print_range): Add parameter bounds_prefered_p. If not set,
11003 try printing range types using the name of their base type.
11004 (print_range_type): Add parameter bounds_prefered_p.
11005 Use it in call to print_range.
11006 (print_array_type, ada_print_type): Update calls to print_range
11007 and print_range_type.
11009 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11011 * ada-typeprint.c (print_array_type, print_choices, print_range)
11012 (print_range_bound, print_dynamic_range_bound, print_range_type):
11013 Remove declaration.
11015 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11017 * ada-typeprint.c (print_range): Add missing empty line
11018 after local declaration.
11020 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11022 * ada-valprint.c (print_optional_low_bound): Get index_type's
11023 target type for as long as it is a TYPE_CODE_RANGE.
11025 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11027 * procfs.c (procfs_make_note_section): Remove assertion and
11028 associated comment.
11030 2014-01-24 Yao Qi <yao@codesourcery.com>
11032 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11033 * corelow.c (get_core_siginfo): Likewise.
11035 2014-01-24 Yao Qi <yao@codesourcery.com>
11037 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11038 ULONGEST. Don't check 'len' is negative.
11039 (remote_write_bytes): Change type of 'len' to ULONGEST.
11041 2014-01-23 Tom Tromey <tromey@redhat.com>
11044 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11045 Handle exception from frame.block.
11046 (FrameVars.fetch_frame_locals): Likewise.
11048 2014-01-23 Tom Tromey <tromey@redhat.com>
11051 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11052 on a NULL pointer. Move "goto error" to correct place.
11054 2014-01-23 Tom Tromey <tromey@redhat.com>
11057 * python/py-framefilter.c (apply_frame_filter): Call
11058 ensure_python_env after computing gdbarch.
11060 2014-01-23 Yao Qi <yao@codesourcery.com>
11062 * target.c (raw_memory_xfer_partial): Change argument type
11063 from void * to gdb_byte *.
11064 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11066 2014-01-22 Doug Evans <dje@google.com>
11068 New gdbserver option --debug-format=timestamp.
11069 * NEWS: Mention it.
11071 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11073 * syscalls/s390x-linux.xml: New file.
11074 * syscalls/s390-linux.xml: New file.
11075 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11076 (XML_SYSCALL_FILENAME_S390X): Likewise.
11077 (op_svc): New enum value for SVC opcode.
11078 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11079 (s390_linux_get_syscall_number): New function.
11080 (s390_gdbarch_init): Register '*get_syscall_number' and the
11081 syscall xml file name.
11082 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11083 "s390-linux.xml" and "s390x-linux.xml".
11084 * NEWS: Announce new feature.
11086 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11088 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11090 2014-01-22 Pedro Alves <palves@redhat.com>
11092 * xtensa-config.c: Include defs.h.
11094 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11096 * common/common-utils.h: Add "ARI:" comment beside __func__
11099 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11101 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11102 documentation a bit.
11104 2014-01-21 Roland McGrath <mcgrathr@google.com>
11106 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11107 * configure: Regenerate.
11108 * aclocal.m4: Regenerate.
11109 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11110 New substituted variables.
11111 (install-strip): New target.
11112 (INSTALL_SCRIPT): New substituted variable.
11113 (FLAGS_TO_PASS): Add it.
11114 (install-only): Use $(INSTALL_SCRIPT) rather than
11115 $(INSTALL_PROGRAM) for gcore.
11117 2014-01-20 Tom Tromey <tromey@redhat.com>
11119 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11122 2014-01-20 Tom Tromey <tromey@redhat.com>
11124 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11125 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11126 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11127 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11128 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11129 (struct cmd_list_element) <flags>: Remove.
11130 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11131 doc_allocated>: New fields.
11132 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11134 * maint.c (maintenance_do_deprecate): Update.
11135 * top.c (execute_command): Update.
11137 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11139 * xtensa-linux-nat.c: Include asm/ptrace.h.
11141 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11143 * Makefile.in (SFILES): Add d-support.c.
11144 (COMMON_OBS): Add d-support.o.
11145 * d-lang.h (d_parse_symbol): Add comment, now defined in
11147 * d-lang.c (parse_call_convention)
11148 (parse_attributes, parse_function_types)
11149 (parse_function_args, parse_type, parse_identifier)
11150 (call_convention_p, d_parse_symbol): Move functions to ...
11151 * d-support.c: ... New file.
11153 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11155 * d-lang.h (d_parse_symbol): Add declaration.
11156 * d-lang.c (extract_identifiers)
11157 (extract_type_info): Remove functions.
11158 (parse_call_convention, parse_attributes)
11159 (parse_function_types, parse_function_args)
11160 (parse_type, parse_identifier, call_convention_p)
11161 (d_parse_symbol): New functions.
11162 (d_demangle): Use d_parse_symbol to demangle D symbols.
11164 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11166 * d-lang.h (struct builtin_d_type): New data type.
11167 (builtin_d_type): Add declaration.
11168 * d-lang.c (d_language_arch_info, build_d_types)
11169 (builtin_d_type): New functions.
11170 (enum d_primitive_types): New data type.
11171 (d_language_defn): Change c_language_arch_info to
11172 d_language_arch_info.
11173 (d_type_data): New static variable.
11174 (_initialize_d_language): Initialize d_type_data.
11176 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11178 * d-lang.h (d_main_name): Add declaration.
11179 * d-lang.c (d_main_name): New function.
11180 * symtab.c (find_main_name): Add call to d_main_name.
11182 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11184 * d-lang.c (d_language_defn): Change macro_expansion_c to
11185 macro_expansion_no.
11187 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11189 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11191 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11193 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11194 gdb_exception" declaration.
11195 * remote.c (getpkt_or_notif_sane): Likewise.
11197 2014-01-17 Doug Evans <dje@google.com>
11199 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11200 function, contents of dirnames_to_char_ptr_vec_append moved here.
11201 (delim_string_to_char_ptr_vec): New function.
11202 (dirnames_to_char_ptr_vec_append): Rewrite.
11203 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11205 2014-01-17 Doug Evans <dje@google.com>
11207 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11209 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11210 #include "common-utils.h".
11211 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11212 * common/vec.h (VEC_ASSERT_PASS): Update.
11213 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11214 (MACH_CHECK_ERROR): Update.
11216 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11218 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11220 * gdbarch.h: Regenerate.
11222 2014-01-16 Tom Tromey <tromey@redhat.com>
11224 * value.c (struct value) <regnum>: Move earlier.
11226 2014-01-16 Tom Tromey <tromey@redhat.com>
11228 * remote.c (extended_remote_create_inferior): Rename from
11229 extended_remote_create_inferior_1. Add "ops" argument. Remove
11230 old implementation.
11232 2014-01-16 Pedro Alves <palves@redhat.com>
11234 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11235 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11238 2014-01-16 Doug Evans <dje@google.com>
11240 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11242 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11244 * btrace.h (btrace_thread_flag): New.
11245 (struct btrace_thread_info) <flags>: New.
11246 * record-btrace.c (record_btrace_resume_thread)
11247 (record_btrace_find_thread_to_move, btrace_step_no_history)
11248 (btrace_step_stopped, record_btrace_start_replaying)
11249 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11250 (record_btrace_find_resume_thread): New.
11251 (record_btrace_resume, record_btrace_wait): Extend.
11252 (record_btrace_can_execute_reverse): New.
11253 (record_btrace_open): Fail in non-stop mode.
11254 (record_btrace_set_replay): Split into this, ...
11255 (record_btrace_stop_replaying): ... this, ...
11256 (record_btrace_clear_histories): ... and this.
11257 (init_record_btrace_ops): Init to_can_execute_reverse.
11258 * NEWS: Announce it.
11260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11262 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11263 (forward_target_decr_pc_after_break)
11264 (target_decr_pc_after_break): New.
11265 * target.c (forward_target_decr_pc_after_break)
11266 (target_decr_pc_after_break): New.
11267 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11268 instead of gdbarch_decr_pc_after_break.
11269 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11270 instead of gdbarch_decr_pc_after_break.
11271 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11272 instead of gdbarch_decr_pc_after_break.
11273 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11274 instead of gdbarch_decr_pc_after_break.
11275 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11276 instead of gdbarch_decr_pc_after_break.
11277 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11278 instead of gdbarch_decr_pc_after_break.
11280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11282 * btrace.c: Include regcache.h.
11283 (btrace_add_pc): New.
11284 (btrace_enable): Call btrace_add_pc.
11285 (btrace_is_empty): New.
11286 * btrace.h (btrace_is_empty): New.
11287 * record-btrace.c (require_btrace, record_btrace_info): Call
11290 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11292 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11293 Support delta reads.
11294 (linux_disable_btrace): Change return type.
11295 * common/linux-btrace.h (linux_read_btrace): Change parameters
11296 and return type to allow error reporting. Update users.
11297 (linux_disable_btrace): Change return type. Update users.
11298 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11300 (btrace_error): New.
11301 (btrace_block) <begin>: Comment on BEGIN == 0.
11302 * btrace.c (btrace_compute_ftrace): Start from the end of
11304 (btrace_stitch_trace, btrace_clear_history): New.
11305 (btrace_fetch): Read delta trace, return if replaying.
11306 (btrace_clear): Move clear history code to btrace_clear_history.
11307 (parse_xml_btrace): Throw an error if parsing failed.
11308 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11309 and return type to allow error reporting.
11310 (target_read_btrace): Change parameters and return type to allow
11312 * target.c (target_read_btrace): Update.
11313 * remote.c (remote_read_btrace): Support delta reads. Pass
11315 * NEWS: Announce it.
11317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11319 * record.h (record_btrace_frame_unwind)
11320 (record_btrace_tailcall_frame_unwind): New declarations.
11321 * dwarf2-frame: Include record.h
11322 (dwarf2_frame_cfa): Throw an error for btrace frames.
11323 * record-btrace.c: Include hashtab.h.
11324 (btrace_get_bfun_name): New.
11325 (btrace_call_history): Call btrace_get_bfun_name.
11326 (struct btrace_frame_cache): New.
11328 (bfcache_hash, bfcache_eq, bfcache_new): New.
11329 (btrace_get_frame_function): New.
11330 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11331 (record_btrace_frame_this_id): Compute own id.
11332 (record_btrace_frame_prev_register): Provide PC, throw_error
11333 for all other registers.
11334 (record_btrace_frame_sniffer): Detect btrace frames.
11335 (record_btrace_tailcall_frame_sniffer): New.
11336 (record_btrace_frame_dealloc_cache): New.
11337 (record_btrace_frame_unwind): Add new functions.
11338 (record_btrace_tailcall_frame_unwind): New.
11339 (_initialize_record_btrace): Allocate cache.
11340 * btrace.c (btrace_clear): Call reinit_frame_cache.
11341 * NEWS: Announce it.
11343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11345 * record-btrace.c (record_btrace_set_replay)
11346 (record_btrace_goto_begin, record_btrace_goto_end)
11347 (record_btrace_goto): New.
11348 (init_record_btrace_ops): Initialize them.
11349 * NEWS: Announce it.
11351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11353 * record-btrace.c (record_btrace_find_new_threads)
11354 (record_btrace_thread_alive): New.
11355 (init_record_btrace_ops): Initialize to_find_new_threads and
11358 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11360 * record-btrace.c (record_btrace_resume): New.
11361 (record_btrace_wait): New.
11362 (init_record_btrace_ops): Initialize to_wait and to_resume.
11364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11366 * record-btrace.c (record_btrace_xfer_partial)
11367 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11368 (record_btrace_allow_memory_access): New.
11369 (init_record_btrace_ops): Initialize new methods.
11370 * target.c (raw_memory_xfer_partial): Bail out if target reports
11371 that this memory is not available.
11373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11375 * target.h (target_ops) <to_insert_breakpoint>
11376 <to_remove_breakpoint>: Add target_ops parameter.
11377 (forward_target_insert_breakpoint): New.
11378 (forward_target_remove_breakpoint): New.
11379 (memory_remove_breakpoint, memory_insert_breakpoint):
11380 Add target_ops parameter.
11381 * target.c (target_insert_breakpoint): Split into this and ...
11382 (forward_target_insert_breakpoint): ... this.
11383 (target_remove_breakpoint): Split into this and ...
11384 (forward_target_remove_breakpoint): ... this.
11385 (debug_to_insert_breakpoint): Add target_ops parameter.
11386 Call forward_target_insert_breakpoint.
11387 (debug_to_remove_breakpoint): Add target_ops parameter.
11388 Call forward_target_remove_breakpoint.
11389 (update_current_target): Do not inherit or default to_insert_breakpoint
11390 and to_remove_breakpoint.
11391 * corelow.c (ignore): Add target_ops parameter.
11392 * exec.c (ignore): Add target_ops parameter.
11393 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11394 Add target_ops parameter.
11395 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11396 Add target_ops parameter.
11397 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11398 Add target_ops parameter.
11399 * record-full.c (record_full_beneath_to_insert_breakpoint)
11400 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11401 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11402 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11403 (record_full_core_remove_breakpoint): Add target_ops parameter.
11405 (record_full_beneath_to_insert_breakpoint_ops)
11406 (record_full_beneath_to_remove_breakpoint_ops)
11407 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11408 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11409 tmp_to_remove_breakpoint_ops,
11410 record_full_beneath_to_insert_breakpoint_ops, and
11411 record_full_beneath_to_remove_breakpoint_ops.
11412 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11413 (m32r_remove_breakpoint): Add target_ops parameter.
11414 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11415 Add target_ops parameter.
11416 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11417 Add target_ops parameter.
11419 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11420 Markus Metzger <markus.t.metzger@intel.com>
11422 * record-btrace.c: Include frame-unwind.h.
11423 (record_btrace_frame_unwind_stop_reason)
11424 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11425 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11427 (init_record_btrace_ops): Install it.
11429 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11431 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11434 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11436 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11439 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11441 * frame-unwind.c: Include target.h.
11442 (frame_unwind_try_unwinder): New function with code from ...
11443 (frame_unwind_find_by_frame): ... here. New variable
11444 unwinder_from_target, call also target_get_unwinder)
11445 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11446 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11447 * target.h (struct target_ops): New fields to_get_unwinder and
11448 to_get_tailcall_unwinder.
11449 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11453 * record-btrace.c (record_btrace_fetch_registers)
11454 (record_btrace_store_registers)
11455 (record_btrace_to_prepare_to_store): New.
11456 (init_record_btrace_ops): Add the above.
11458 2014-01-16 Tom Tromey <tromey@redhat.com>
11460 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11461 * target.h (struct target_ops) <to_prepare_to_store>: Add
11463 (target_prepare_to_store): Add argument.
11464 * target.c (debug_to_prepare_to_store): Add argument.
11465 (update_current_target): Update.
11466 * remote.c (remote_prepare_to_store): Add 'self' argument.
11467 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11468 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11469 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11470 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11472 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11473 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11474 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11475 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11476 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11478 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11480 * btrace.h (replay) <replay>: New.
11481 (btrace_is_replaying): New.
11482 * btrace.c (btrace_clear): Free replay iterator.
11483 (btrace_is_replaying): New.
11484 * record-btrace.c (record_btrace_is_replaying): New.
11485 (record_btrace_info): Print insn number if replaying.
11486 (record_btrace_insn_history): Start at replay position.
11487 (record_btrace_call_history): Start at replay position.
11488 (init_record_btrace_ops): Init to_record_is_replaying.
11490 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11492 * record-btrace.c (record_btrace_insn_history_range): Include
11494 (record_btrace_insn_history_from): Adjust range.
11495 (record_btrace_call_history_range): Include
11497 (record_btrace_call_history_from): Adjust range.
11498 * NEWS: Announce changes.
11500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11502 * record.h (enum record_print_flag)
11503 <record_print_indent_calls>: New.
11504 * record.c (get_call_history_modifiers): Recognize /c modifier.
11505 (_initialize_record): Document /c modifier.
11506 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11507 Reorder fields. Optionally indent the function name. Update
11509 * NEWS: Announce changes.
11511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11513 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11517 * btrace.c (ftrace_new_function): Start counting at one.
11518 * record-btrace.c (record_btrace_info): Adjust number of calls
11520 * NEWS: Announce it.
11522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11524 * record-btrace.c (btrace_call_history_insn_range): Print
11525 insn range as [begin, end].
11527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11529 * btrace.h (struct btrace_func_link): New.
11530 (enum btrace_function_flag): New.
11531 (struct btrace_inst): Rename to ...
11532 (struct btrace_insn): ...this. Update all users.
11533 (struct btrace_func) <ibegin, iend>: Remove.
11534 (struct btrace_func_link): New.
11535 (struct btrace_func): Rename to ...
11536 (struct btrace_function): ...this. Update all users.
11537 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11538 (number, level, flags>: New.
11539 (struct btrace_insn_iterator): Rename to ...
11540 (struct btrace_insn_history): ...this.
11542 (struct btrace_insn_iterator, btrace_call_iterator): New.
11543 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11544 (struct btrace_target_info) <begin, end, level>
11545 <insn_history, call_history>: New.
11546 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11547 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11548 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11549 (btrace_call_number, btrace_call_begin, btrace_call_end)
11550 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11551 (btrace_find_function_by_number, btrace_set_insn_history)
11552 (btrace_set_call_history): New.
11553 * btrace.c (btrace_init_insn_iterator)
11554 (btrace_init_func_iterator, compute_itrace): Remove.
11555 (ftrace_print_function_name, ftrace_print_filename)
11556 (ftrace_skip_file): Change
11557 parameter to const.
11558 (ftrace_init_func): Remove.
11559 (ftrace_debug): Use new btrace_function fields.
11560 (ftrace_function_switched): Also consider gaining and
11561 losing symbol information).
11562 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11563 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11564 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11566 (ftrace_new_function): Move. Remove debug print.
11567 (ftrace_update_lines, ftrace_update_insns): New.
11568 (ftrace_update_function): Check for call, ret, and jump.
11569 (compute_ftrace): Renamed to ...
11570 (btrace_compute_ftrace): ...this. Rewritten to compute call
11572 (btrace_fetch, btrace_clear): Updated.
11573 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11574 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11575 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11576 (btrace_call_number, btrace_call_begin, btrace_call_end)
11577 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11578 (btrace_find_function_by_number, btrace_set_insn_history)
11579 (btrace_set_call_history): New.
11580 * record-btrace.c (require_btrace): Use new btrace thread
11582 (record_btrace_info, btrace_insn_history)
11583 (record_btrace_insn_history, record_btrace_insn_history_range):
11584 Use new btrace thread info fields and new iterator.
11585 (btrace_func_history_src_line): Rename to ...
11586 (btrace_call_history_src_line): ...this. Use new btrace
11587 thread info fields.
11588 (btrace_func_history): Rename to ...
11589 (btrace_call_history): ...this. Use new btrace thread info
11590 fields and new iterator.
11591 (record_btrace_call_history, record_btrace_call_history_range):
11592 Use new btrace thread info fields and new iterator.
11594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11596 * frame.h (frame_id_build_unavailable_stack_special): New.
11597 * frame.c (frame_id_build_unavailable_stack_special): New.
11599 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11601 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11602 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11603 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11605 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11606 (i386_insn_is_jump, i386_jmp_p): New.
11607 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11608 insn_is_jump to gdbarch.
11609 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11610 * gdbarch.h: Regenerated.
11611 * gdbarch.c: Regenerated.
11612 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11613 (default_insn_is_jump): New.
11614 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11615 (default_insn_is_jump): New.
11617 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11619 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11621 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11622 (btrace_read_type) <btrace_read_new>: Change to ...
11623 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11627 * common/linux-btrace.c (linux_read_btrace): Free trace from
11628 previous iteration.
11630 2014-01-15 Doug Evans <dje@google.com>
11632 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11635 2014-01-15 Tom Tromey <tromey@redhat.com>
11637 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11638 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11639 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11640 (set_objfile_main_name): New function.
11641 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11642 language_of_main>: New fields.
11643 (set_objfile_main_name): Declare.
11644 * symtab.c (find_main_name): Loop over objfiles to find the main
11646 (set_main_name): Now static.
11647 (get_main_info): Add comment.
11648 * symtab.h (set_main_name): Don't declare.
11650 2014-01-15 Tom Tromey <tromey@redhat.com>
11652 * symtab.c (main_progspace_key): New global.
11653 (struct main_info): New.
11654 (name_of_main, language_of_main): Remove.
11655 (get_main_info, main_info_cleanup): New function.
11656 (set_main_name, main_name, main_language): Use get_main_info.
11657 (_initialize_symtab): Initialize main_progspace_key.
11659 2014-01-15 Tom Tromey <tromey@redhat.com>
11661 * dbxread.c (process_one_symbol): Update.
11662 * dwarf2read.c (read_partial_die): Update.
11663 * symfile.c (set_initial_language): Call main_language.
11664 * symtab.c (language_of_main): Now static.
11665 (set_main_name): Add 'lang' parameter.
11666 (find_main_name): Update.
11667 (main_language): New function.
11668 (symtab_observer_executable_changed): Update.
11669 * symtab.h (set_main_name): Update.
11670 (language_of_main): Remove.
11671 (main_language): Declare.
11673 2014-01-15 Tom Tromey <tromey@redhat.com>
11675 * symfile.c (init_entry_point_info): Use new "initialized" field.
11677 * objfiles.h (struct entry_point) <initialized>: New field.
11678 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11679 (struct objfile) <ei>: ...here. Remove.
11680 * objfiles.c (entry_point_address_query): Update.
11682 2014-01-15 Tom Tromey <tromey@redhat.com>
11684 * objfiles.c (entry_point_address_query): Relocate entry point
11686 (objfile_relocate1): Do not relocate entry point address.
11687 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11688 <the_bfd_section_index>: New field.
11689 * symfile.c (init_entry_point_info): Find the entry point's
11692 2014-01-15 Tom Tromey <tromey@redhat.com>
11694 * solib-frv.c (enable_break): Use entry_point_address_query.
11696 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11698 * NEWS: Add note on improved process record-replay on
11699 arm*-linux* targets.
11701 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11703 * arm-tdep.c (enum arm_record_result): New enum.
11704 (arm_record_unsupported_insn): New function.
11705 (arm_record_coproc_data_proc): Removed.
11706 (thumb2_record_ld_st_multiple): New function.
11707 (thumb2_record_ld_st_dual_ex_tbb): New function.
11708 (thumb2_record_data_proc_sreg_mimm): New function.
11709 (thumb2_record_ps_dest_generic): New function.
11710 (thumb2_record_branch_misc_cntrl): New function.
11711 (thumb2_record_str_single_data): New function.
11712 (thumb2_record_ld_mem_hints): New function.
11713 (thumb2_record_ld_word): New function.
11714 (thumb2_record_lmul_lmla_div): New function.
11715 (thumb2_record_decode_insn_handler): New function.
11716 (decode_insn): Add thumb32 instruction handlers.
11718 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11720 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11721 (struct arm_linux_record_tdep): Declare.
11722 (arm_canonicalize_syscall): New function.
11723 (arm_all_but_pc_registers_record): New function.
11724 (arm_linux_syscall_record): New function.
11725 (arm_linux_init_abi): Add syscall recording constructs.
11726 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11727 decoding. (arm_record_coproc_data_proc): Update arm syscall
11729 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11730 <arm_syscall_record>: New field.
11731 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11734 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11736 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11737 register for push instruction recording.
11739 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11741 * arm-tdep.c (thumb_record_misc): Update to correct logical
11742 error while recording ldm, ldmia and pop instructions.
11744 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11746 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11748 2014-01-15 Pedro Alves <palves@redhat.com>
11750 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11751 (go32_resume, go32_fetch_registers, store_register)
11752 (go32_store_registers, go32_prepare_to_store)
11753 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11754 (go32_create_inferior, go32_can_run, go32_terminal_init)
11755 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11758 2014-01-15 Tom Tromey <tromey@redhat.com>
11760 * target.h (async_callback_ftype): New typedef.
11761 (struct target_ops) <to_async>: Use it.
11763 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11765 * python/py-value.c (get_field_type): Remove unnecessary curly
11766 braces for single-statement if block.
11768 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11770 * python/py-type.c (convert_field): Add missing empty line
11771 after declarations.
11773 2014-01-14 Doug Evans <dje@google.com>
11775 * symfile.h (expand_symtabs_matching): Renamed from
11776 expand_partial_symbol_names. Update prototype.
11777 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11778 * symfile.c (expand_symtabs_matching): Renamed from
11779 expand_partial_symbol_names. New args file_matcher, kind.
11780 Rename arg fun to symbol_matcher.
11781 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11782 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11783 ada_expand_partial_symbol_name.
11784 (ada_make_symbol_completion_list): Update to call
11785 expand_symtabs_matching.
11786 (ada_add_global_exceptions): Call expand_symtabs_matching.
11787 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11788 call map_symbol_filenames.
11789 * symtab.c (sources_info): Update to call map_symbol_filenames.
11790 (search_symbols): Call expand_symtabs_matching.
11791 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11792 (default_make_symbol_completion_list_break_on): Update to call
11793 expand_symtabs_matching.
11794 (make_source_files_completion_list): Update to call
11795 map_symbol_filenames.
11797 2014-01-14 Doug Evans <dje@google.com>
11799 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11800 (expand_symtabs_symbol_matcher_ftype): New typedef.
11801 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11802 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11803 * symfile.c (expand_partial_symbol_names): Update to use
11804 expand_symtabs_symbol_matcher_ftype.
11805 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11806 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11807 Arg name_matcher renamed to symbol_matcher.
11808 * psymtab.c (recursively_search_psymtabs): Update to use
11809 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11811 (expand_symtabs_matching_via_partial): Update to use
11812 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11813 Arg name_matcher renamed to symbol_matcher.
11815 2014-01-14 Doug Evans <dje@google.com>
11817 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11818 (map_partial_symbol_filenames): Ditto.
11819 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11820 (map_partial_symbol_filenames): Ditto.
11821 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11822 (map_partial_symbol_filenames): Ditto.
11823 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11824 (map_partial_symbol_filenames): Ditto.
11825 * symtab.c: Delete #include "psymtab.h".
11827 2014-01-14 Pedro Alves <palves@redhat.com>
11828 Tom Tromey <tromey@redhat.com>
11830 * infrun.c (use_displaced_stepping): Use find_record_target
11831 instead of RECORD_IS_USED.
11832 (adjust_pc_after_break): Use record_full_is_used instead of
11834 * record-btrace.c (record_btrace_open): Call record_preopen
11835 instead of checking RECORD_IS_USED.
11836 * record-full.c (record_full_shortname)
11837 (record_full_core_shortname): New globals.
11838 (record_full_is_used): New function.
11839 (find_full_open): Call record_preopen instead of checking
11841 (init_record_full_ops): Set the target's shortname to
11842 record_full_shortname.
11843 (init_record_full_core_ops): Set the target's shortname to
11844 record_full_core_shortname.
11845 * record-full.h (record_full_is_used): Declare.
11846 * record.c (find_record_target): Make extern.
11847 (record_preopen): New function.
11848 * record.h (RECORD_IS_USED): Delete macro.
11849 (find_record_target, record_preopen): Declare functions.
11851 2014-01-14 Yao Qi <yao@codesourcery.com>
11853 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11854 'len''s type to ULONGEST.
11855 (core_xfer_shared_libraries_aix): Likewise.
11856 * gdbarch.c, gdbarch.h: Regenerated.
11857 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11858 Change type of 'len' to ULONGEST.
11859 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11860 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11862 2014-01-14 Yao Qi <yao@codesourcery.com>
11864 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11865 type of 'len' to ULONGEST.
11866 (linux_xfer_osdata_processgroups): Likewise.
11867 (linux_xfer_osdata_threads): Likewise.
11868 (linux_xfer_osdata_fds): Likewise.
11869 (linux_xfer_osdata_isockets): Likewise.
11870 (linux_xfer_osdata_shm): Likewise.
11871 (linux_xfer_osdata_sem): Likewise.
11872 (linux_xfer_osdata_msg): Likewise.
11873 (linux_common_xfer_osdata): Likewise.
11874 (struct osdata_type) <getter>: Likewise.
11875 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11878 2014-01-14 Yao Qi <yao@codesourcery.com>
11880 * target.h (target_xfer_partial_ftype): Update.
11881 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11883 * aix-thread.c (aix_thread_xfer_partial): Change type of
11884 argument 'len' to ULONGEST.
11885 * auxv.c (procfs_xfer_auxv): Likewise.
11886 (ld_so_xfer_auxv): Likewise.
11887 (memory_xfer_auxv): Likewise.
11888 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11889 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11890 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11891 * corelow.c (core_xfer_partial): Likewise.
11892 * ctf.c (ctf_xfer_partial): Likewise.
11893 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11895 (darwin_read_dyld_info): Likewise.
11896 (darwin_xfer_partial): Likewise.
11897 * exec.c (section_table_xfer_memory_partial): Likewise.
11898 (exec_xfer_partial): Likewise.
11899 * exec.h (section_table_xfer_memory_partial): Update
11901 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11902 instead of plongest.
11903 (gnu_xfer_partial): Likewise.
11904 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11905 (ia64_hpux_xfer_solib_got): Likewise.
11906 (ia64_hpux_xfer_partial): Likewise.
11907 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11908 * inf-ptrace.c (inf_ptrace_xfer_partial):
11909 * inf-ttrace.c (inf_ttrace_xfer_partial):
11910 * linux-nat.c (linux_xfer_siginfo): Likewise.
11911 (linux_nat_xfer_partial): Likewise.
11912 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11913 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11914 * monitor.c (monitor_xfer_memory): Likewise.
11915 (monitor_xfer_partial): Likewise.
11916 * procfs.c (procfs_xfer_partial): Likewise.
11917 * record-full.c (record_full_xfer_partial): Likewise.
11918 (record_full_core_xfer_partial): Likewise.
11919 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11920 instead of plongest.
11921 (gdbsim_xfer_partial): Likewise.
11922 * remote.c (remote_xfer_partial): Likewise.
11923 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11924 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11926 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11927 (rs6000_xfer_shared_libraries): Likewise.
11928 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11929 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11930 (sparc_xfer_partial): Likewise.
11931 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11932 (spu_xfer_partial): Likewise.
11933 * spu-multiarch.c (spu_xfer_partial): Likewise.
11934 * target.c (target_read_live_memory): Likewise.
11935 (memory_xfer_live_readonly_partial): Likewise.
11936 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11937 (target_xfer_partial, default_xfer_partial): Likewise.
11938 (current_xfer_partial): Likewise.
11939 * tracepoint.c (tfile_xfer_partial): Likewise.
11940 * windows-nat.c (windows_xfer_memory): Likewise. Call
11941 pulongest instead of plongest.
11942 (windows_xfer_partial): Likewise.
11943 (windows_xfer_shared_libraries): Likewise.
11945 2014-01-14 Yao Qi <yao@codesourcery.com>
11947 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11948 target_xfer_partial_ftype.
11950 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11954 * valops.c (value_struct_elt_bitpos): New function
11955 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11956 object to 'None' if the field name is an empty string ("").
11957 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11958 attribute to look for a field when 'name' is 'None'.
11959 (get_field_type): New function
11961 2014-01-13 Doug Evans <dje@google.com>
11964 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11965 (try_open_dwop_file): Ditto.
11966 * gdb_bfd.c: #include "vec.h".
11967 (bfdp): New typedef.
11968 (struct gdb_bfd_data): New member included_bfds.
11969 (gdb_bfd_unref): Unref all included bfds.
11970 (gdb_bfd_record_inclusion): New function.
11971 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11973 2014-01-13 Tom Tromey <tromey@redhat.com>
11975 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11977 2014-01-13 Tom Tromey <tromey@redhat.com>
11979 * defs.h (use_windows): Remove.
11980 * gdb.c (main): Update.
11981 * main.c (captured_main, gdb_main): Update.
11982 * main.h (struct captured_main_args) <use_windows>: Remove.
11983 * top.c (use_windows): Remove.
11985 2014-01-13 Tom Tromey <tromey@redhat.com>
11987 * defs.h (deprecated_flush_hook): Remove.
11989 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11992 * linux-thread-db.c (try_thread_db_load): Add parameter
11993 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11994 (try_thread_db_load_from_pdir_1): Move it there from here.
11995 (try_thread_db_load_from_sdir): Update caller.
11996 (try_thread_db_load_from_dir): Move it there from here.
11998 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12000 * regformats/regdat.sh: Always rewrite the register file.
12002 2014-01-13 Pedro Alves <palves@redhat.com>
12004 * Makefile.in (CHECK_HEADERS): New variable.
12005 (check-headers:): New rule.
12007 2014-01-13 Tom Tromey <tromey@redhat.com>
12009 * cli/cli-setshow.c (do_set_command): Update.
12010 * defs.h (deprecated_set_hook): Remove.
12011 * top.c (deprecated_set_hook): Remove.
12013 2014-01-13 Pedro Alves <palves@redhat.com>
12015 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12016 the tracepoint if the PC is a pseudo-register.
12018 2014-01-13 Tom Tromey <tromey@redhat.com>
12020 * defs.h (XCALLOC): Remove.
12021 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12022 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12023 * dwarf2loc.c (allocate_piece_closure): Likewise.
12024 * elfread.c (elf_symfile_segments): Likewise.
12025 (elf_symfile_segments): Likewise.
12026 * gdbtypes.c (copy_type_recursive): Likewise.
12027 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12028 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12029 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12031 * mt-tdep.c (mt_gdbarch_init): Likewise.
12032 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12034 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12035 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12036 * registry.c (registry_alloc_data): Likewise.
12037 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12038 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12039 * serial.c (serial_fdopen_ops): Likewise.
12040 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12042 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12043 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12046 2014-01-13 Tom Tromey <tromey@redhat.com>
12048 * defs.h (XMALLOC): Remove.
12049 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12050 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12051 * cli-out.c (struct ui_out *): Likewise.
12052 * cli/cli-dump.c (add_dump_command): Likewise.
12053 (add_dump_command): Likewise.
12054 * complaints.c (get_complaints): Likewise.
12055 (find_complaint): Likewise.
12056 * dwarf2-frame.c (execute_cfa_program): Likewise.
12057 * dwarf2read.c (abbrev_table_read_table): Likewise.
12058 * gdbarch.sh: Likewise.
12059 * gdbarch.c: Rebuild.
12060 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12061 * interps.c (interp_new): Likewise.
12062 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12063 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12064 * mi/mi-console.c (mi_console_file_new): Likewise.
12065 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12066 * mi/mi-out.c (mi_out_new): Likewise.
12067 * mi/mi-parse.c (mi_parse): Likewise.
12068 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12069 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12070 * observer.c (xalloc_observer_list_node): Likewise.
12071 * regcache.c (regcache_xmalloc_1): Likewise.
12072 * reggroups.c (reggroup_new): Likewise.
12073 (_initialize_reggroup): Likewise.
12074 * registry.c (register_data_with_cleanup): Likewise.
12075 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12076 * ser-base.c (serial_ttystate): Likewise.
12077 * ser-mingw.c (make_pipe_state): Likewise.
12078 * ser-pipe.c (pipe_open): Likewise.
12079 * serial.c (serial_open): Likewise.
12080 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12081 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12082 (tui_alloc_win_info): Likewise.
12083 (tui_add_content_elements): Likewise.
12084 * tui/tui-file.c (tui_file_new): Likewise.
12085 * tui/tui-out.c (tui_out_new): Likewise.
12086 * ui-file.c (mem_file_new): Likewise.
12087 * ui-out.c (push_level): Likewise.
12088 (make_cleanup_ui_out_end): Likewise.
12089 (append_header_to_list): Likewise.
12090 (ui_out_new): Likewise.
12091 * user-regs.c (user_reg_add_builtin): Likewise.
12093 2014-01-13 Tom Tromey <tromey@redhat.com>
12095 * defs.h (XZALLOC): Remove.
12096 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12097 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12098 (get_ada_tasks_inferior_data): Likewise.
12099 * auto-load.c (get_auto_load_pspace_data): Likewise.
12100 * auxv.c (get_auxv_inferior_data): Likewise.
12101 * bfd-target.c (target_bfd_reopen): Likewise.
12102 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12103 (deprecated_insert_raw_breakpoint): Likewise.
12104 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12105 * corelow.c (core_open): Likewise.
12106 * darwin-nat.c (darwin_check_new_threads): Likewise.
12107 (darwin_attach_pid): Likewise.
12108 * dummy-frame.c (dummy_frame_push): Likewise.
12109 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12110 * dwarf2loc.c (allocate_piece_closure): Likewise.
12111 * elfread.c (elf_symfile_segments): Likewise.
12112 * eval.c (ptrmath_type_p): Likewise.
12113 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12114 * gdbtypes.c (alloc_type_arch): Likewise.
12115 (alloc_type_instance): Likewise.
12116 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12117 * inf-child.c (inf_child_can_use_agent): Likewise.
12118 * inflow.c (get_inflow_inferior_data): Likewise.
12119 * infrun.c (save_infcall_suspend_state): Likewise.
12120 * jit.c (jit_reader_load): Likewise.
12121 (get_jit_objfile_data): Likewise.
12122 (get_jit_program_space_data): Likewise.
12123 (jit_object_open_impl): Likewise.
12124 (jit_symtab_open_impl): Likewise.
12125 (jit_block_open_impl): Likewise.
12126 (jit_frame_sniffer): Likewise.
12127 * linux-fork.c (add_fork): Likewise.
12128 * maint.c (make_command_stats_cleanup): Likewise.
12129 * objfiles.c (get_objfile_pspace_data): Likewise.
12130 * opencl-lang.c (struct lval_closure): Likewise.
12131 * osdata.c (osdata_start_osdata): Likewise.
12132 * progspace.c (new_address_space): Likewise.
12133 (add_program_space): Likewise.
12134 * remote-sim.c (get_sim_inferior_data): Likewise.
12135 * sh-tdep.c (sh_gdbarch_init): Likewise.
12136 * skip.c (Ignore): Likewise.
12137 (skip_delete_command): Likewise.
12138 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12139 (library_list_start_library): Likewise.
12140 (solib_aix_current_sos): Likewise.
12141 * solib-darwin.c (get_darwin_info): Likewise.
12142 (darwin_current_sos): Likewise.
12143 * solib-dsbt.c (get_dsbt_info): Likewise.
12144 * solib-ia64-hpux.c (new_so_list): Likewise.
12145 (ia64_hpux_get_solib_linkage_addr): Likewise.
12146 * solib-spu.c (append_ocl_sos): Likewise.
12147 (spu_current_sos): Likewise.
12148 * solib-svr4.c (get_svr4_info): Likewise.
12149 (svr4_keep_data_in_core): Likewise.
12150 (library_list_start_library): Likewise.
12151 (svr4_default_sos): Likewise.
12152 (svr4_read_so_list): Likewise.
12153 * solib-target.c (library_list_start_library): Likewise.
12154 (solib_target_current_sos): Likewise.
12155 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12156 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12157 * symfile.c (default_symfile_segments): Likewise.
12158 * target-descriptions.c (tdesc_data_init): Likewise.
12159 (tdesc_create_reg): Likewise.
12160 (struct tdesc_type *): Likewise.
12161 (tdesc_create_vector): Likewise.
12162 (tdesc_set_struct_size): Likewise.
12163 (struct tdesc_type *): Likewise.
12164 (tdesc_free_feature): Likewise.
12165 (tdesc_create_feature): Likewise.
12166 * windows-nat.c (windows_add_thread): Likewise.
12167 (windows_make_so): Likewise.
12168 * xml-support.c (gdb_xml_body_text): Likewise.
12169 (gdb_xml_create_parser_and_cleanup): Likewise.
12170 (xml_process_xincludes): Likewise.
12171 * xml-syscall.c (allocate_syscalls_info): Likewise.
12172 (syscall_create_syscall_desc): Likewise.
12174 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12176 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12177 function, with code from i386_stap_parse_special_token.
12178 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12179 (i386_stap_parse_special_token): Move code to the two functions
12180 above; simplify it.
12182 2014-01-09 Pedro Alves <palves@redhat.com>
12183 Hui Zhu <hui@codesourcery.com>
12186 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12187 bp_err_string. Don't mark the location shlib_disabled if the
12188 error thrown wasn't a generic or memory error. Catch errors
12189 thrown while inserting breakpoints in overlayed code. Output
12190 error message of software breakpoints.
12191 * remote.c (remote_insert_breakpoint): If this breakpoint has
12192 target-side commands but this stub doesn't support Z0 packets,
12193 throw NOT_SUPPORTED_ERROR error.
12194 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12195 * target.h (target_insert_breakpoint): Extend comment.
12196 (target_insert_hw_breakpoint): Add comment.
12198 2014-01-08 Pedro Alves <palves@redhat.com>
12200 * remote.c (remote_add_thread): Add threads silently if starting
12202 (remote_notice_new_inferior): If in all-stop, and starting up,
12203 don't call notice_new_inferior.
12204 (get_current_thread): New function, factored out from ...
12205 (add_current_inferior_and_thread): ... this. Adjust.
12206 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12207 found any thread, then select the remote's current thread as GDB's
12208 current thread too.
12210 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12212 * NEWS: Create a new section for the next release branch.
12213 Rename the section of the current branch, now that it has
12216 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12218 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12219 * version.in: Bump version to 7.7.50.DATE-cvs.
12221 2014-01-08 Yao Qi <yao@codesourcery.com>
12223 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12224 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12225 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12227 2014-01-08 Yao Qi <yao@codesourcery.com>
12229 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12230 return value of bfd_get_filename to symbol_file_add_from_bfd.
12232 2014-01-08 Pierre Muller <muller@sourceware.org>
12235 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12236 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12237 to prim_record_mininal_symbol_and_info.
12238 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12239 in call to prim_record_minimal_symbol_and_info.
12240 (read_pe_exported_syms): Set index field of section_data.
12242 2014-01-07 Andrew Pinski <apinski@cavium.com>
12244 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12245 * features/aarch64.c: Regenerate.
12247 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12249 * target.c (return_null): Define.
12250 (update_current_target): Use it instead of return_zero for
12251 functions that return a pointer.
12253 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12255 * source.c (add_path): Fix check for duplicated paths in the previously
12258 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12260 * ada-lang.c: Remove duplicated include statements.
12261 * alphabsd-nat.c: Ditto.
12262 * amd64-darwin-tdep.c: Ditto.
12263 * amd64fbsd-nat.c: Ditto.
12264 * auto-load.c: Ditto.
12266 * breakpoint.c: Ditto.
12267 * dbxread.c: Ditto.
12268 * fork-child.c: Ditto.
12269 * gdb_usleep.c: Ditto.
12270 * i386-darwin-tdep.c: Ditto.
12271 * i386fbsd-nat.c: Ditto.
12273 * inferior.c: Ditto.
12274 * jv-lang.c: Ditto.
12275 * linux-nat.c: Ditto.
12276 * linux-tdep.c: Ditto.
12277 * m68kbsd-nat.c: Ditto.
12278 * m68klinux-nat.c: Ditto.
12279 * microblaze-tdep.c: Ditto.
12280 * mips-linux-tdep.c: Ditto.
12281 * mn10300-tdep.c: Ditto.
12282 * nto-tdep.c: Ditto.
12283 * opencl-lang.c: Ditto.
12285 * printcmd.c: Ditto.
12286 * regcache.c: Ditto.
12287 * remote-m32r-sdi.c: Ditto.
12289 * symfile.c: Ditto.
12291 * tilegx-linux-nat.c: Ditto.
12292 * tilegx-tdep.c: Ditto.
12293 * tracepoint.c: Ditto.
12295 * vaxbsd-nat.c: Ditto.
12296 * windows-nat.c: Ditto.
12297 * xtensa-tdep.c: Ditto.
12299 2014-01-07 Yao Qi <yao@codesourcery.com>
12301 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12303 2014-01-07 Yao Qi <yao@codesourcery.com>
12304 Joel Brobecker <brobecker@adacore.com>
12306 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12307 (pdc_write_regs): Likewise.
12308 (fetch_regs_kernel_thread): Likewise.
12309 (store_regs_kernel_thread): Likewise.
12311 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12313 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12314 tagged type objects to their actual type.
12316 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12318 * ada-valprint.c (print_field_values): Add "language" parameter.
12319 Update calls to print_field_values and print_variant_part.
12320 Pass new parameter "language" in call to val_print instead
12321 of "current_language". Replace call to ada_val_print by call
12323 (print_variant_part): Add "language" parameter.
12324 (ada_val_print_struct_union): Update call to print_field_values.
12326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12328 * ada-valprint.c (ui_memcpy): Delete.
12329 (ada_print_floating): Update documentation. Add empty line
12330 between between function documentation and implementation.
12331 Delete variable "buffer". Use ui_file_xstrdup in place of
12332 ui_file_put. Minor adjustments following this change.
12334 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12336 * ada-valprint.c (ada_val_print_string): New function,
12337 extracted from ada_val_print_array.
12338 (ada_val_print_array): Replace extracted code by call
12339 to ada_val_print_string followed by a return. Move
12340 "else" branch to the function's top block.
12342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12344 * ada-valprint.c (ada_val_print_array): Move implementation
12345 down. Rename parameter "offset" and "val" into "offset_aligned"
12346 and "original_value" respectively. Add parameter "offset".
12348 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12350 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12351 re-organizing the code. Change the "???" message printed
12352 when target type is a TYPE_CODE_UNDEF into
12353 "<ref to undefined type>".
12355 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12357 * ada-valprint.c (print_record): Delete, implementation inlined...
12358 (ada_val_print_struct_union): ... here. Remove call to
12359 ada_check_typedef in inlined implementation.
12361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12363 * ada-valprint.c (ada_val_print_gnat_array): New function,
12364 extracted from ada_val_print_1;
12365 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12366 (ada_val_print_flt, ada_val_print_struct_union)
12367 (ada_val_print_ref): Likewise.
12368 (ada_val_print_1): Delete variables i and elttype.
12369 Replace extracted-out code by call to corresponding
12372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12374 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12378 * ada-valprint.c (ada_val_print_1): Replace calls to
12379 ada_val_print_1 by calls to val_print.
12381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12383 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12384 Update calls to self accordingly. Replace calls to c_val_print
12385 by calls to val_print.
12387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12389 * ada-valprint.c (print_record): Delete declaration.
12390 (adjust_type_signedness, ada_val_print_1): Likewise.
12391 (ada_val_print): Move function implementation down.
12392 (print_variant_part, print_field_values, print_record):
12393 Move function implementation up.
12395 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12397 * python/py-type.c (typy_get_name): New function.
12398 (type_object_getset): Add entry for attribute "name".
12399 * NEWS: Add entry mentioning this new attribute.
12401 2014-01-07 Yao Qi <yao@codesourcery.com>
12403 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12406 2014-01-07 Yao Qi <yao@codesourcery.com>
12408 * gnu-nat.c (info_port_rights): Add qualifier const to
12411 2014-01-07 Yao Qi <yao@codesourcery.com>
12413 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12415 2014-01-07 Yao Qi <yao@codesourcery.com>
12417 * gnu-nat.c (make_inf) Update declaration.
12418 (make_inf): Make it static.
12419 (inf_set_traced): Likewise.
12420 (inf_port_to_thread, inf_task_died_status): Likewise.
12422 2014-01-07 Yao Qi <yao@codesourcery.com>
12424 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12426 2014-01-07 Yao Qi <yao@codesourcery.com>
12428 * gnu-nat.c (_initialize_gnu_nat): Declare.
12430 2014-01-07 Yao Qi <yao@codesourcery.com>
12432 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12434 (struct gdbarch_info) <byte_order>: Change type to
12436 <byte_order_for_code>: Likewise.
12437 * gdbarch.c, gdbarch.h: Regenerated.
12439 2014-01-06 Sasha Smundak <asmundak@google.com>
12441 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12443 2014-01-06 Tom Tromey <tromey@redhat.com>
12445 * doublest.c (convert_doublest_to_floatformat): Use const, not
12447 * somread.c (som_symtab_read): Likewise.
12449 2014-01-07 Hui Zhu <hui@codesourcery.com>
12451 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12452 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12453 (gdb_bfd_fopen): Ditto.
12454 (gdb_bfd_openr): Ditto.
12455 (gdb_bfd_openw): Ditto.
12456 (gdb_bfd_openr_iovec): Ditto.
12457 (gdb_bfd_fdopenr): Ditto.
12458 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12459 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12461 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12463 * symfile-mem.c (symbol_file_add_from_memory): Removed
12464 gdb_bfd_stash_filename.
12466 2014-01-03 Doug Evans <dje@google.com>
12468 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12471 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12473 Update year range in copyright notice of all files.
12475 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12477 * top.c (print_gdb_version): Set copyright year to 2014.
12479 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12481 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12483 For older changes see ChangeLog-2013.
12489 version-control: never