1 2014-09-03 Gary Benson <gbenson@redhat.com>
3 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
5 Loop conditions changed to equivalent form.
6 (struct x86_debug_reg_state): Updated dr_ref_count comment.
7 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
8 ALL_DEBUG_ADDRESS_REGISTERS.
10 2014-09-03 Joel Brobecker <brobecker@adacore.com>
12 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
15 2014-09-02 Doug Evans <dje@google.com>
17 * typeprint.c (find_global_typedef): Fix comment.
19 2014-09-02 Gary Benson <gbenson@redhat.com>
21 * i386-nat.h: Renamed as...
22 * x86-nat.h: New file. All type, function and variable name
23 prefixes changed from "i386_" to "x86_". All references updated.
24 * i386-nat.c: Renamed as...
25 * x86-nat.c: New file. All type, function and variable name
26 prefixes changed from "i386_" to "x86_". All references updated.
27 * common/i386-xstate.h: Renamed as...
28 * common/x86-xstate.h: New file. All type, function and variable
29 name prefixes changed from "i386_" to "x86_". All references
31 * nat/i386-cpuid.h: Renamed as...
32 * nat/x86-cpuid.h: New file. All type, function and variable name
33 prefixes changed from "i386_" to "x86_". All references updated.
34 * nat/i386-gcc-cpuid.h: Renamed as...
35 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
36 name prefixes changed from "i386_" to "x86_". All references
38 * nat/i386-dregs.h: Renamed as...
39 * nat/x86-dregs.h: New file. All type, function and variable name
40 prefixes changed from "i386_" to "x86_". All references updated.
41 * nat/i386-dregs.c: Renamed as...
42 * nat/x86-dregs.c: New file. All type, function and variable name
43 prefixes changed from "i386_" to "x86_". All references updated.
45 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
47 * varobj.c (_initialize_varobj): Move to the end of file.
49 2014-08-29 Gary Benson <gbenson@redhat.com>
51 * common/common-exceptions.h: New file.
52 * common/common-exceptions.c: Likewise.
53 * Makefile.in (SFILES): Add common/common-exceptions.c.
54 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
55 (COMMON_OBS): Add common-exceptions.o.
56 (common-exceptions.o): New rule.
57 * exceptions.h (common-exceptions.h): Include.
58 (gdb_setjmp.h): Do not include.
59 (return_reason): Moved to common-exceptions.h.
60 (enum return_reason): Likewise.
61 (RETURN_MASK): Likewise.
62 (typedef return_mask): Likewise.
63 (enum errors): Likewise.
64 (struct gdb_exception): Likewise.
65 (exceptions_state_mc_init): Likewise.
66 (exceptions_state_mc_action_iter): Likewise.
67 (exceptions_state_mc_action_iter_1): Likewise.
68 (TRY_CATCH): Likewise.
69 (throw_exception): Likewise.
70 (throw_verror): Likewise.
71 (throw_vquit): Likewise.
72 (throw_error): Likewise.
73 (throw_quit): Likewise.
74 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
75 (enum catcher_action): Likewise.
76 (struct catcher): Likewise.
77 (current_catcher): Likewise.
78 (catcher_list_size): Likewise.
79 (exceptions_state_mc_init): Likewise.
80 (catcher_pop): Likewise.
81 (exceptions_state_mc): Likewise.
82 (exceptions_state_mc_action_iter): Likewise.
83 (exceptions_state_mc_action_iter_1): Likewise.
84 (throw_exception): Likewise.
85 (exception_messages): Likewise.
86 (exception_messages_size): Likewise.
88 (throw_verror): Likewise.
89 (throw_vquit): Likewise.
90 (throw_error): Likewise.
91 (throw_quit): Likewise.
92 (prepare_to_throw_exception): New function.
94 2014-08-29 Gary Benson <gbenson@redhat.com>
96 * common/gdb_setjmp.h: New file.
97 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
98 * configure.ac: Move sigsetjmp check...
99 * common/common.m4: ...here.
100 * configure: Regenerate.
101 * cp-support.c (SIGJMP_BUF): Delete.
102 (SIGSETJMP): Likewise.
103 (SIGLONGJMP): Likewise.
104 * exceptions.h (gdb_setjmp.h): Include.
105 (setjmp.h): Do not include.
106 (EXCEPTIONS_SIGJMP_BUF): Delete.
107 (EXCEPTIONS_SIGSETJMP): Likewise.
108 (EXCEPTIONS_SIGLONGJMP): Likewise.
109 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
111 * exceptions.c: Likewise.
113 2014-08-29 Gary Benson <gbenson@redhat.com>
115 * cleanups.h: Moved to...
116 * common/cleanups.h: New file.
117 * cleanups.c: Moved to...
118 * common/cleanups.c: New file. Include common-defs.h and
119 cleanups.h. Do not include defs.h.
120 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
121 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
122 (cleanups.o): New rule.
124 2014-08-29 Gary Benson <gbenson@redhat.com>
126 * common/errors.h (internal_warning): New declaration.
127 (internal_vwarning): Likewise.
128 * common/errors.c (internal_warning): New function.
129 * utils.h (internal_warning): Don't declare.
130 (internal_vwarning): Likewise.
131 * utils.c (internal_warning): Removed.
133 2014-08-29 Gary Benson <gbenson@redhat.com>
135 * main.c (captured_main): Use warning during startup.
136 Prefix startup warning messages with command name.
138 2014-08-29 Gary Benson <gbenson@redhat.com>
140 * main.c (captured_main): Handle usage errors with error.
142 2014-08-29 Gary Benson <gbenson@redhat.com>
144 * go32-nat.c (go32_create_inferior): Replace a fprintf/
145 exit pair with a call to error. Wrap the message with _().
147 2014-08-29 Gary Benson <gbenson@redhat.com>
149 * main.c (captured_main): Replace a fprintf/exit
150 pair with a call to error. Wrap the message with _().
152 2014-08-29 Gary Benson <gbenson@redhat.com>
154 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
155 pairs with calls to error. Wrap the message with _().
157 2014-08-29 Gary Benson <gbenson@redhat.com>
159 * utils.c (vwarning): Protect calls to target_terminal_ours
162 2014-08-29 Gary Benson <gbenson@redhat.com>
164 * exceptions.c (print_flush): Protect calls to
165 target_terminal_ours and wrap_here.
167 2014-08-29 Gary Benson <gbenson@redhat.com>
169 * utils.h (filtered_printing_initialized): New declaration.
170 * utils.c (abort_with_message): New function.
171 (internal_vproblem): Use abort_with_message for first level
172 recursive internal problems, and if gdb_stderr is not set up.
173 Protect calls to target_terminal_ours, begin_line and query.
175 2014-08-28 Doug Evans <dje@google.com>
177 * symtab.c (in_prologue): Move definition to better spot.
178 (skip_prologue_using_sal): Ditto.
180 2014-08-28 Doug Evans <dje@google.com>
182 * symtab.c (find_function_start_sal): Move definition to better spot.
184 2014-08-28 Yao Qi <yao@codesourcery.com>
186 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
187 found_stack_adjust in forward scan. Remove condition check
188 on found_stack_adjust which is always true. Indent the code.
190 2014-08-28 Yao Qi <yao@codesourcery.com>
192 * dwarf2read.c (dwarf_decode_lines): Update declaration.
193 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
194 (dwarf_decode_lines): Remove argument
195 want_line_info. Remove condition check on want_line_info.
198 2014-08-27 Doug Evans <dje@google.com>
200 * dwarf2read.c (dwarf_record_line): Fix typo.
202 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
204 * target.h (struct target_ops::to_terminal_save_ours): Remove
206 (target_terminal_save_ours): Remove macro.
207 * target-delegates.c: Regenerate.
208 * inf-child.c (inf_child_target): Don't set the nonexistent
209 field to_terminal_save_ours.
210 * inferior.h (child_terminal_save_ours): Remove declaration.
211 * terminal.h (gdb_save_tty_state): New declaration.
212 * inflow.c (child_terminal_save_ours): Rename to ...
213 (gdb_save_tty_state): ... this.
214 * tui/tui.c: Include terminal.h.
215 (tui_enable): Use gdb_save_tty_state instead of
216 target_terminal_save_ours.
217 (tui_disable): Likewise.
219 2014-08-25 Doug Evans <dje@google.com>
221 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
222 Pass NULL instead of 0 for context pointer.
224 2014-08-25 Yao Qi <yao@codesourcery.com>
226 * dwarf2read.c: Fix grammatical error.
228 2014-08-24 Yao Qi <yao@codesourcery.com>
230 * dwarf2read.c (scan_partial_symbols): Update comments.
231 Rename argument 'need_pc' with 'set_addrmap'.
232 (add_partial_namespace): Rename argument 'need_pc' with
234 (add_partial_module): Likewise.
235 (add_partial_subprogram): Likewise. Update comments.
236 (dwarf2_name): Fix typo.
238 2014-08-22 Doug Evans <dje@google.com>
241 * dwarf2read.c (dwarf_record_line_p): New function.
242 (dwarf_decode_lines_1): Ignore subsequent line number entries
243 for the same line if any entry had a non-zero discriminator.
245 2014-08-22 Doug Evans <dje@google.com>
247 * buildsym.h (record_line_ftype): New typedef.
248 (record_line): Use it.
249 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
250 (dwarf_decode_lines_1): Call them.
252 2014-08-22 Yao Qi <yao@codesourcery.com>
254 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
255 (ctf_end): Remove code.
257 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
259 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
260 (linux_make_corefile_notes): call update_thread_list, protected against
263 2014-08-21 Pedro Alves <palves@redhat.com>
265 * infcmd.c (attach_command): Remove comment.
267 2014-08-21 Bin Cheng <bin.cheng@arm.com>
269 * aarch64-linux-nat.c (dr_changed_t): Change the type from
270 unsigned LONGEST to ULONGEST.
272 2014-08-20 Pedro Alves <palves@redhat.com>
274 * Makefile.in (check-read1): New rule.
276 2014-08-20 Joel Brobecker <brobecker@adacore.com>
278 * value.c (value_from_contents_and_address): Strip resolved_type's
279 typedef layers before checking its TYPE_DATA_LOCATION.
281 2014-08-20 Pedro Alves <palves@redhat.com>
283 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
285 2014-08-20 Yao Qi <yao@codesourcery.com>
287 * amd64-tdep.c (amd64_classify): Add a blank line after the
288 example. Move "*/" to a new line.
289 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
290 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
291 * dwarf2read.c (psymtab_include_file_name): Likewise.
293 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
294 Pedro Alves <palves@redhat.com>
298 * ada-lang.c (coerce_unspec_val_to_type): Use
299 value_contents_copy_raw.
300 * ada-valprint.c (val_print_packed_array_elements): Adjust.
301 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
302 * cp-valprint.c (cp_print_value_fields): Let the common printing
303 code handle optimized out values.
304 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
305 * d-valprint.c (dynamic_array_type): Use
306 value_bits_any_optimized_out.
307 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
308 check_any_valid fields.
309 (check_pieced_value_bits): Delete and inline ...
310 (check_pieced_synthetic_pointer): ... here.
311 (check_pieced_value_validity): Delete.
312 (check_pieced_value_invalid): Delete.
313 (pieced_value_funcs): Remove check_validity and check_any_valid
315 (read_pieced_value): Use mark_value_bits_optimized_out.
316 (write_pieced_value): Switch to use
317 mark_value_bytes_optimized_out.
318 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
319 of assuming the whole value is optimized out.
320 * findvar.c (read_frame_register_value): Remove special handling
321 of optimized out registers.
322 (value_from_register): Use mark_value_bytes_optimized_out.
323 * frame-unwind.c (frame_unwind_got_optimized): Use
324 mark_value_bytes_optimized_out.
325 * jv-valprint.c (java_value_print): Adjust.
326 (java_print_value_fields): Let the common printing code handle
327 optimized out values.
328 * mips-tdep.c (mips_print_register): Remove special handling of
329 optimized out registers.
330 * opencl-lang.c (lval_func_check_validity): Delete.
331 (lval_func_check_any_valid): Delete.
332 (opencl_value_funcs): Remove check_validity and check_any_valid
334 * p-valprint.c (pascal_object_print_value_fields): Let the common
335 printing code handle optimized out values.
336 * stack.c (read_frame_arg): Remove special handling of optimized
337 out values. Fetch both VAL and ENTRYVAL before comparing
338 contents. Adjust to value_available_contents_eq rename.
339 * valprint.c (valprint_check_validity)
340 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
341 (val_print_array_elements): Adjust.
342 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
343 (value_bits_any_optimized_out): New function.
344 (value_entirely_covered_by_range_vector): New function, factored
345 out from value_entirely_unavailable.
346 (value_entirely_unavailable): Reimplement.
347 (value_entirely_optimized_out): New function.
348 (insert_into_bit_range_vector): New function, factored out from
349 mark_value_bits_unavailable.
350 (mark_value_bits_unavailable): Reimplement.
351 (struct ranges_and_idx): New struct.
352 (find_first_range_overlap_and_match): New function, factored out
353 from value_available_contents_bits_eq.
354 (value_available_contents_bits_eq): Rename to ...
355 (value_contents_bits_eq): ... this. Check both unavailable
356 contents and optimized out contents.
357 (value_available_contents_eq): Rename to ...
358 (value_contents_eq): ... this.
359 (allocate_value_lazy): Remove reference to the old optimized_out
361 (allocate_optimized_out_value): Use
362 mark_value_bytes_optimized_out.
363 (require_not_optimized_out): Adjust to check whether the
364 optimized_out vec is empty.
365 (ranges_copy_adjusted): New function, factored out from
366 value_contents_copy_raw.
367 (value_contents_copy_raw): Also copy the optimized out ranges.
368 Assert the destination ranges aren't optimized out.
369 (value_contents_copy): Update comment, remove call to
370 require_not_optimized_out.
371 (value_contents_equal): Adjust to check whether the optimized_out
373 (set_value_optimized_out, value_optimized_out_const): Delete.
374 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
376 (value_entirely_optimized_out, value_bits_valid): Delete.
377 (value_copy): Take a VEC copy of the 'optimized_out' field.
378 (value_primitive_field): Remove special handling of optimized out.
379 (value_fetch_lazy): Assert that lazy values have no unavailable
380 regions. Use value_bits_any_optimized_out. Remove some special
381 handling for optimized out values.
382 * value.h: Add intro comment about <optimized out> and
384 (struct lval_funcs): Remove check_validity and check_any_valid
386 (set_value_optimized_out, value_optimized_out_const): Remove.
387 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
389 (value_bits_any_optimized_out): New declaration.
390 (value_bits_valid): Delete declaration.
391 (value_available_contents_eq): Rename to ...
392 (value_contents_eq): ... this, and extend comments.
394 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
396 Fix -fsanitize=address on unreadable inferior strings.
397 * valprint.c (val_print_string): Fix access before BUFFER.
399 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
401 * target.c (target_struct_size): Remove.
402 (target_struct_allocsize): Remove.
403 (DEFAULT_ALLOCSIZE): Remove.
404 (target_ops_p): New typedef.
405 (DEF_VEC_P (target_ops_p)): New vector type.
406 (target_structs): Change type to VEC (target_ops_p).
407 (add_target_with_completer): Replace "push" code by VEC_safe_push.
408 (find_default_run_target): Rewrite for loop following changes to
411 2014-08-19 Joel Brobecker <brobecker@adacore.com>
413 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
414 Adjust code accordingly. Adjust function description comment.
416 2014-08-19 Yao Qi <yao@codesourcery.com>
418 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
421 2014-08-19 Alan Modra <amodra@gmail.com>
423 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
424 * config.in: Regenerate.
425 * configure: Regenerate.
427 2014-08-19 Tom Tromey <tromey@redhat.com>
428 Gary Benson <gbenson@redhat.com>
430 * common/common-debug.h: New file.
431 * common/common-debug.c: Likewise.
433 * Makefile.in (SFILES): Add common/common-debug.c.
434 (HFILES_NO_SRCDIR): Add common/common-debug.h.
435 (COMMON_OBS): Add common-debug.o and debug.o.
436 (common-debug.o): New rule.
437 * common/common-defs.h: Include common-debug.h.
438 * common/agent.c (debug_agent_printf): New function.
439 (DEBUG_AGENT): Redefine.
440 * nat/i386-dregs.c (debug_printf): Undefine.
442 2014-08-19 Gary Benson <gbenson@redhat.com>
444 * common/common-defs.h: Include print-utils.h.
445 * utils.h: Do not include print-utils.h.
447 2014-08-19 Tom Tromey <tromey@redhat.com>
448 Gary Benson <gbenson@redhat.com>
450 * common/common-types.h: New file.
451 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
452 * common/common-defs.h: Include common-types.h.
453 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
456 2014-08-19 Tom Tromey <tromey@redhat.com>
457 Gary Benson <gbenson@redhat.com>
459 * common/errors.h: New file.
460 * common/errors.c: Likewise.
461 * Makefile.in (SFILES): Add common/errors.c.
462 (HFILES_NO_SRCDIR): Add common/errors.h.
463 (COMMON_OBS): Add errors.o.
464 (errors.o): New rule.
465 * common/common-defs.h: Include errors.h.
466 * utils.h (perror_with_name, error, verror, warning, vwarning):
468 * common/common-utils.h: (malloc_failure, internal_error):
471 2014-08-19 Gary Benson <gbenson@redhat.com>
473 * utils.c (internal_vproblem): Always print the message.
475 2014-08-18 Doug Evans <dje@google.com>
477 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
479 2014-08-18 Joel Brobecker <brobecker@adacore.com>
481 * ada-typeprint.c (type_is_full_subrange_of_target_type):
482 Return 0 if TYPE is dynamic.
483 (print_range): Add handling of dynamic ranges.
485 2014-08-18 Keven Boell <keven.boell@intel.com>
486 Joel Brobecker <brobecker@adacore.com>
488 * gdbtypes.h (struct main_type): Add field "data_location".
489 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
490 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
491 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
492 a dynamic data location.
493 (resolve_dynamic_type): Add DW_AT_data_location handling.
494 (copy_recursive, copy_type): Copy the data_location information
496 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
497 * value.c (value_from_contents_and_address): Add
498 DW_AT_data_location handling.
500 2014-08-18 Keven Boell <keven.boell@intel.com>
501 Joel Brobecker <brobecker@adacore.com>
503 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
504 field "get_object_address".
505 * dwarf2expr.c (execute_stack_op): Add handling for
506 DW_OP_push_object_address.
507 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
508 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
509 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
510 (dwarf_expr_get_obj_addr): New function.
511 (dwarf_expr_ctx_funcs): Add get_object_address field.
512 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
513 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
514 (dwarf2_evaluate_property): Add parameter "address". Use it.
515 (needs_get_obj_addr): New function.
516 (needs_frame_ctx_funcs): Add get_object_address field.
517 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
518 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
519 (resolve_dynamic_array): Likewise.
521 2014-08-18 Joel Brobecker <brobecker@adacore.com>
523 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
524 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
525 fixed value for records and unions for which some GNAT encodings
528 2014-08-18 Joel Brobecker <brobecker@adacore.com>
530 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
531 rewrite to avoid "else if" and "else" constructs. Should be
534 2014-08-18 Joel Brobecker <brobecker@adacore.com>
536 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
539 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
542 * eval.c: Update all calls to find_overload_match.
543 * valarith.c: Likewise.
544 (value_user_defined_cpp_op, value_user_defined_op): New
545 argument NOSIDE. Update all callers.
546 * valops.c (find_overload_match): New argument NOSIDE.
547 * value.h (find_overload_match): Update signature.
549 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
551 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
552 'items' methods instead of 'iteritems' method on dictionaries.
554 2014-08-15 Doug Evans <dje@google.com>
556 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
559 2014-08-15 Doug Evans <dje@google.com>
561 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
563 2014-08-15 Doug Evans <dje@google.com>
565 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
567 2014-08-15 Doug Evans <dje@google.com>
569 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
572 2014-08-15 Eli Zaretskii <eliz@gnu.org>
574 * dcache.h: Include target.h, to avoid compile time warnings.
576 2014-08-15 Joel Brobecker <brobecker@adacore.com>
578 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
579 frame_info" partial declaration.
580 * gdbarch.h: Regenerate.
582 2014-08-15 Yao Qi <yao@codesourcery.com>
584 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
585 Add parameter 'decode_for_pst_p'. Callers update.
587 2014-08-13 Yao Qi <yao@codesourcery.com>
590 * configure.ac: Use local variable 'pos'.
591 * configure: Regenerated.
593 2014-08-11 Doug Evans <dje@google.com>
595 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
596 message, it is redundant with "Reading symbols from ..." message.
598 2014-08-10 Doug Evans <xdje42@gmail.com>
600 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
602 2014-08-09 Yao Qi <yao@codesourcery.com>
605 * remote.c (remote_xfer_partial): Remove dead code.
607 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
609 * ia64-linux-tdep.c: Include "regset.h".
610 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
611 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
612 (ia64_linux_supply_fpregset): New function.
613 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
614 (ia64_linux_regset_from_core_section): New function.
615 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
618 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
620 * m68klinux-tdep.c: Include "regset.h".
621 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
622 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
623 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
624 (m68k_linux_regset_from_core_section): New function.
625 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
628 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
630 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
631 function. Move logic to...
632 (tilegx_linux_regmap): ... this new register map.
633 (tilegx_linux_regset): Refer to register map, replace supply
634 method by regcache_supply_regset, and add collect method.
635 * tilegx-tdep.h (enum tilegx_regnum): New enum value
636 TILEGX_FIRST_EASY_REGNUM.
638 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
640 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
641 that calls regcache_supply_regset and handles the EPC register
642 separately. Move main logic to...
643 (score7_linux_gregmap): ... this new register map.
644 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
645 (score7_linux_gregset): Refer to register map. Add collect method.
646 (score7_linux_regset_from_core_section): Replace
647 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
648 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
649 (struct regset): Delete unused forward declaraction.
650 (struct pt_regs): Delete structure definition.
651 (elf_gregset_t): Delete typedef.
653 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
655 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
656 (nios2_core_regset): Add collect method.
658 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
660 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
661 platform-independent and don't write to read-only input buffer.
662 (m32r_linux_collect_gregset): New function.
663 (m32r_linux_gregset): Add collect method.
665 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
667 * hppa-linux-tdep.c (greg_map): Rename to...
668 (hppa_linux_gregmap): ... this. Also convert to
669 regcache_map_entry format.
670 (hppa_linux_supply_regset): Delete function.
671 (hppa_linux_supply_fpregset): Delete function. Move logic to...
672 (hppa_linux_fpregmap): ... this new register map.
673 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
674 register map, replace supply method by regcache_supply_regset, and
675 add collect method regcache_collect_regset.
677 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
679 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
680 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
681 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
682 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
683 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
684 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
685 (frv_linux_supply_gregset): Replace main logic by call to
686 regcache_supply_regset, but keep clearing gr32-gr63.
687 (frv_linux_supply_fpregset): Delete function.
688 (frv_linux_gregset): Refer to appropriate register map and add
689 regcache_collect_regset as the collect method.
690 (frv_linux_fpregset): Likewise. Also exchange the supply method
691 by regcache_supply_regset.
693 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
695 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
696 by call to alpha_supply_int_regs.
697 (alpha_linux_collect_gregset): New function.
698 (alpha_linux_supply_fpregset): Replace logic by call to
699 alpha_supply_fp_regs.
700 (alpha_linux_collect_fpregset): New function.
701 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
703 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
705 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
706 by call to regcache_collect_regset.
707 (supply_gregset, supply_fpregset): Call regcache_supply_regset
708 instead of aarch64_linux_supply_gregset/_fpregset.
709 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
710 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
712 (aarch64_linux_supply_gregset, supply_gregset_from_core)
713 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
714 functions. Move logic to ...
715 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
717 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
718 refer to new register maps, replace *_regset_from_core by
719 regcache_supply_regset, and also use regcache_collect_regset.
720 * aarch64-linux-tdep.h: Include "regset.h".
721 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
723 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
724 macros, moved from C source file.
725 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
726 variable declarations.
728 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
730 * s390-linux-nat.c: Include "regset.h".
731 (regmap_gregset): Delete macro.
732 (s390_64_regmap_gregset): New register map for
733 regcache_supply/_collect_regset.
734 (s390_64_gregset): New regset.
735 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
736 (regmap_fpregset): Delete macro.
737 (s390_native_supply, s390_native_collect): Delete functions.
738 (supply_gregset, fill_gregset): Replace s390-specific regmap
739 handling by a call to regcache_supply/_collect_regset.
740 (supply_fpregset, fill_fpregset): Call regcache_supply/
741 _collect_regset instead of s390_native_supply/_collect.
742 (fetch_regset, store_regset): Likewise. Also change the last
743 parameter to a regset instead of a regmap.
744 (s390_linux_fetch_inferior_registers)
745 (390_linux_store_inferior_registers): Adjust last parameter in
746 calls to fetch_regset and store_regset.
747 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
748 (s390_gregmap): ... this. Also make static const and convert to
749 regcache_map_entry format.
750 (s390x_regmap_gregset): Delete.
751 (s390_regmap_fpregset): Rename to...
752 (s390_fpregmap): ... this. Make static const and convert to
753 regcache_map_entry format.
754 (s390_regmap_upper, s390_regmap_last_break)
755 (s390x_regmap_last_break, s390_regmap_system_call)
756 (s390_regmap_tdb): Likewise.
757 (s390_supply_regset, s390_collect_regset): Remove functions.
758 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
760 (s390_gregset, s390_fpregset, s390_upper_regset)
761 (s390_last_break_regset, s390x_last_break_regset)
762 (s390_system_call_regset, s390_tdb_regset): Make global and
763 replace s390_supply/_collect_regset by regcache_supply/
765 (s390x_gregset): Delete.
766 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
767 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
768 (s390_regmap_fpregset, s390_regmap_last_break)
769 (s390x_regmap_last_break, s390_regmap_system_call)
770 (s390_regmap_tdb): Delete global variable declarations.
771 (s390_gregset, s390_fpregset, s390_last_break_regset)
772 (s390x_last_break_regset, s390_system_call_regset)
773 (s390_tdb_regset): New global variable declarations.
775 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
777 * regcache.c: Include "regset.h".
778 (regcache_transfer_regset): New local function.
779 (regcache_supply_regset, regcache_collect_regset): New functions.
780 * regcache.h (struct regcache_map_entry): New structure.
781 (REGCACHE_MAP_SKIP): New enum value.
782 (regcache_supply_regset, regcache_collect_regset): New prototypes.
784 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
786 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
787 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
788 (ppc_linux_collect_gregset ): Likewise.
789 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
790 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
791 (ppc_collect_vrregset): Likewise.
792 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
795 2014-08-07 Yao Qi <yao@codesourcery.com>
797 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
798 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
799 * remote.c (remote_read_bytes): Likewise.
801 2014-08-07 Yao Qi <yao@codesourcery.com>
803 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
805 2014-08-07 Yao Qi <yao@codesourcery.com>
808 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
809 TARGET_XFER_OK instead of 0.
811 2014-08-07 Gary Benson <gbenson@redhat.com>
813 * common/common-defs.h: Include errno.h.
814 * defs.h: Do not include errno.h.
815 * ada-typeprint.c: Likewise.
816 * c-typeprint.c: Likewise.
817 * core-regset.c: Likewise.
818 * corefile.c: Likewise.
819 * corelow.c: Likewise.
820 * event-loop.c: Likewise.
821 * f-typeprint.c: Likewise.
822 * gnu-nat.c: Likewise.
823 * go32-nat.c: Likewise.
824 * i386gnu-nat.c: Likewise.
825 * m2-typeprint.c: Likewise.
826 * nat/linux-btrace.c: Likewise.
827 * p-typeprint.c: Likewise.
828 * procfs.c: Likewise.
829 * remote-sim.c: Likewise.
830 * rs6000-nat.c: Likewise.
831 * target.c: Likewise.
832 * typeprint.c: Likewise.
833 * ui-file.c: Likewise.
834 * valops.c: Likewise.
835 * valprint.c: Likewise.
837 2014-08-07 Gary Benson <gbenson@redhat.com>
839 * common/common-defs.h: Include string.h.
840 * aarch64-tdep.c: Do not include string.h.
841 * ada-exp.y: Likewise.
842 * ada-lang.c: Likewise.
843 * ada-lex.l: Likewise.
844 * ada-typeprint.c: Likewise.
845 * ada-valprint.c: Likewise.
846 * aix-thread.c: Likewise.
847 * alpha-linux-tdep.c: Likewise.
848 * alpha-mdebug-tdep.c: Likewise.
849 * alpha-nat.c: Likewise.
850 * alpha-osf1-tdep.c: Likewise.
851 * alpha-tdep.c: Likewise.
852 * alphanbsd-tdep.c: Likewise.
853 * amd64-dicos-tdep.c: Likewise.
854 * amd64-linux-tdep.c: Likewise.
855 * amd64-nat.c: Likewise.
856 * amd64-sol2-tdep.c: Likewise.
857 * amd64fbsd-tdep.c: Likewise.
858 * amd64obsd-tdep.c: Likewise.
859 * arch-utils.c: Likewise.
860 * arm-linux-nat.c: Likewise.
861 * arm-linux-tdep.c: Likewise.
862 * arm-tdep.c: Likewise.
863 * arm-wince-tdep.c: Likewise.
864 * armbsd-tdep.c: Likewise.
865 * armnbsd-nat.c: Likewise.
866 * armnbsd-tdep.c: Likewise.
867 * armobsd-tdep.c: Likewise.
868 * avr-tdep.c: Likewise.
869 * ax-gdb.c: Likewise.
870 * ax-general.c: Likewise.
871 * bcache.c: Likewise.
872 * bfin-tdep.c: Likewise.
873 * breakpoint.c: Likewise.
874 * build-id.c: Likewise.
875 * buildsym.c: Likewise.
877 * c-lang.c: Likewise.
878 * c-typeprint.c: Likewise.
879 * c-valprint.c: Likewise.
880 * charset.c: Likewise.
881 * cli-out.c: Likewise.
882 * cli/cli-cmds.c: Likewise.
883 * cli/cli-decode.c: Likewise.
884 * cli/cli-dump.c: Likewise.
885 * cli/cli-interp.c: Likewise.
886 * cli/cli-logging.c: Likewise.
887 * cli/cli-script.c: Likewise.
888 * cli/cli-setshow.c: Likewise.
889 * cli/cli-utils.c: Likewise.
890 * coffread.c: Likewise.
891 * common/agent.c: Likewise.
892 * common/buffer.c: Likewise.
893 * common/buffer.h: Likewise.
894 * common/common-utils.c: Likewise.
895 * common/filestuff.c: Likewise.
896 * common/filestuff.c: Likewise.
897 * common/format.c: Likewise.
898 * common/print-utils.c: Likewise.
899 * common/rsp-low.c: Likewise.
900 * common/signals.c: Likewise.
901 * common/vec.h: Likewise.
902 * common/xml-utils.c: Likewise.
903 * core-regset.c: Likewise.
904 * corefile.c: Likewise.
905 * corelow.c: Likewise.
906 * cp-abi.c: Likewise.
907 * cp-name-parser.y: Likewise.
908 * cp-support.c: Likewise.
909 * cp-valprint.c: Likewise.
910 * cris-tdep.c: Likewise.
912 * darwin-nat.c: Likewise.
913 * dbxread.c: Likewise.
914 * dcache.c: Likewise.
915 * demangle.c: Likewise.
916 * dicos-tdep.c: Likewise.
917 * disasm.c: Likewise.
918 * doublest.c: Likewise.
920 * dummy-frame.c: Likewise.
921 * dwarf2-frame.c: Likewise.
922 * dwarf2loc.c: Likewise.
923 * dwarf2read.c: Likewise.
924 * elfread.c: Likewise.
925 * environ.c: Likewise.
927 * event-loop.c: Likewise.
928 * exceptions.c: Likewise.
930 * expprint.c: Likewise.
932 * f-lang.c: Likewise.
933 * f-typeprint.c: Likewise.
934 * f-valprint.c: Likewise.
935 * fbsd-nat.c: Likewise.
936 * findcmd.c: Likewise.
937 * findvar.c: Likewise.
938 * fork-child.c: Likewise.
940 * frv-linux-tdep.c: Likewise.
941 * frv-tdep.c: Likewise.
943 * gdb_bfd.c: Likewise.
944 * gdbarch.c: Likewise.
945 * gdbarch.sh: Likewise.
946 * gdbtypes.c: Likewise.
947 * gnu-nat.c: Likewise.
948 * gnu-v2-abi.c: Likewise.
949 * gnu-v3-abi.c: Likewise.
950 * go-exp.y: Likewise.
951 * go-lang.c: Likewise.
952 * go32-nat.c: Likewise.
953 * guile/guile.c: Likewise.
954 * guile/scm-auto-load.c: Likewise.
955 * hppa-hpux-tdep.c: Likewise.
956 * hppa-linux-nat.c: Likewise.
957 * hppanbsd-tdep.c: Likewise.
958 * hppaobsd-tdep.c: Likewise.
959 * i386-cygwin-tdep.c: Likewise.
960 * i386-dicos-tdep.c: Likewise.
961 * i386-linux-tdep.c: Likewise.
962 * i386-nto-tdep.c: Likewise.
963 * i386-sol2-tdep.c: Likewise.
964 * i386-tdep.c: Likewise.
965 * i386bsd-tdep.c: Likewise.
966 * i386gnu-nat.c: Likewise.
967 * i386nbsd-tdep.c: Likewise.
968 * i386obsd-tdep.c: Likewise.
969 * i387-tdep.c: Likewise.
970 * ia64-libunwind-tdep.c: Likewise.
971 * ia64-linux-nat.c: Likewise.
972 * inf-child.c: Likewise.
973 * inf-ptrace.c: Likewise.
974 * inf-ttrace.c: Likewise.
975 * infcall.c: Likewise.
976 * infcmd.c: Likewise.
977 * inflow.c: Likewise.
978 * infrun.c: Likewise.
979 * interps.c: Likewise.
980 * iq2000-tdep.c: Likewise.
981 * irix5-nat.c: Likewise.
982 * jv-exp.y: Likewise.
983 * jv-lang.c: Likewise.
984 * jv-typeprint.c: Likewise.
985 * jv-valprint.c: Likewise.
986 * language.c: Likewise.
987 * linux-fork.c: Likewise.
988 * linux-nat.c: Likewise.
989 * lm32-tdep.c: Likewise.
990 * m2-exp.y: Likewise.
991 * m2-typeprint.c: Likewise.
992 * m32c-tdep.c: Likewise.
993 * m32r-linux-nat.c: Likewise.
994 * m32r-linux-tdep.c: Likewise.
995 * m32r-rom.c: Likewise.
996 * m32r-tdep.c: Likewise.
997 * m68hc11-tdep.c: Likewise.
998 * m68k-tdep.c: Likewise.
999 * m68kbsd-tdep.c: Likewise.
1000 * m68klinux-nat.c: Likewise.
1001 * m68klinux-tdep.c: Likewise.
1002 * m88k-tdep.c: Likewise.
1003 * machoread.c: Likewise.
1004 * macrocmd.c: Likewise.
1006 * mdebugread.c: Likewise.
1007 * mem-break.c: Likewise.
1008 * memattr.c: Likewise.
1009 * memory-map.c: Likewise.
1010 * mep-tdep.c: Likewise.
1011 * mi/mi-cmd-break.c: Likewise.
1012 * mi/mi-cmd-disas.c: Likewise.
1013 * mi/mi-cmd-env.c: Likewise.
1014 * mi/mi-cmd-stack.c: Likewise.
1015 * mi/mi-cmd-var.c: Likewise.
1016 * mi/mi-cmds.c: Likewise.
1017 * mi/mi-console.c: Likewise.
1018 * mi/mi-getopt.c: Likewise.
1019 * mi/mi-interp.c: Likewise.
1020 * mi/mi-main.c: Likewise.
1021 * mi/mi-parse.c: Likewise.
1022 * microblaze-rom.c: Likewise.
1023 * microblaze-tdep.c: Likewise.
1024 * mingw-hdep.c: Likewise.
1025 * minidebug.c: Likewise.
1026 * minsyms.c: Likewise.
1027 * mips-irix-tdep.c: Likewise.
1028 * mips-linux-tdep.c: Likewise.
1029 * mips-tdep.c: Likewise.
1030 * mips64obsd-tdep.c: Likewise.
1031 * mipsnbsd-tdep.c: Likewise.
1032 * mipsread.c: Likewise.
1033 * mn10300-linux-tdep.c: Likewise.
1034 * mn10300-tdep.c: Likewise.
1035 * monitor.c: Likewise.
1036 * moxie-tdep.c: Likewise.
1037 * mt-tdep.c: Likewise.
1038 * nat/linux-btrace.c: Likewise.
1039 * nat/linux-osdata.c: Likewise.
1040 * nat/linux-procfs.c: Likewise.
1041 * nat/linux-ptrace.c: Likewise.
1042 * nat/linux-waitpid.c: Likewise.
1043 * nbsd-tdep.c: Likewise.
1044 * nios2-linux-tdep.c: Likewise.
1045 * nto-procfs.c: Likewise.
1046 * nto-tdep.c: Likewise.
1047 * objc-lang.c: Likewise.
1048 * objfiles.c: Likewise.
1049 * opencl-lang.c: Likewise.
1050 * osabi.c: Likewise.
1051 * osdata.c: Likewise.
1052 * p-exp.y: Likewise.
1053 * p-lang.c: Likewise.
1054 * p-typeprint.c: Likewise.
1055 * parse.c: Likewise.
1056 * posix-hdep.c: Likewise.
1057 * ppc-linux-nat.c: Likewise.
1058 * ppc-sysv-tdep.c: Likewise.
1059 * ppcfbsd-tdep.c: Likewise.
1060 * ppcnbsd-tdep.c: Likewise.
1061 * ppcobsd-tdep.c: Likewise.
1062 * printcmd.c: Likewise.
1063 * procfs.c: Likewise.
1064 * prologue-value.c: Likewise.
1065 * python/py-auto-load.c: Likewise.
1066 * python/py-gdb-readline.c: Likewise.
1067 * ravenscar-thread.c: Likewise.
1068 * regcache.c: Likewise.
1069 * registry.c: Likewise.
1070 * remote-fileio.c: Likewise.
1071 * remote-m32r-sdi.c: Likewise.
1072 * remote-mips.c: Likewise.
1073 * remote-notif.c: Likewise.
1074 * remote-sim.c: Likewise.
1075 * remote.c: Likewise.
1076 * reverse.c: Likewise.
1077 * rs6000-aix-tdep.c: Likewise.
1078 * ser-base.c: Likewise.
1079 * ser-go32.c: Likewise.
1080 * ser-mingw.c: Likewise.
1081 * ser-pipe.c: Likewise.
1082 * ser-tcp.c: Likewise.
1083 * ser-unix.c: Likewise.
1084 * serial.c: Likewise.
1085 * sh-tdep.c: Likewise.
1086 * sh64-tdep.c: Likewise.
1087 * shnbsd-tdep.c: Likewise.
1089 * sol-thread.c: Likewise.
1090 * solib-dsbt.c: Likewise.
1091 * solib-frv.c: Likewise.
1092 * solib-osf.c: Likewise.
1093 * solib-som.c: Likewise.
1094 * solib-spu.c: Likewise.
1095 * solib-target.c: Likewise.
1096 * solib.c: Likewise.
1097 * somread.c: Likewise.
1098 * source.c: Likewise.
1099 * sparc-nat.c: Likewise.
1100 * sparc-sol2-tdep.c: Likewise.
1101 * sparc-tdep.c: Likewise.
1102 * sparc64-tdep.c: Likewise.
1103 * sparc64fbsd-tdep.c: Likewise.
1104 * sparc64nbsd-tdep.c: Likewise.
1105 * sparcnbsd-tdep.c: Likewise.
1106 * spu-linux-nat.c: Likewise.
1107 * spu-multiarch.c: Likewise.
1108 * spu-tdep.c: Likewise.
1109 * stabsread.c: Likewise.
1110 * stack.c: Likewise.
1111 * std-regs.c: Likewise.
1112 * symfile.c: Likewise.
1113 * symmisc.c: Likewise.
1114 * symtab.c: Likewise.
1115 * target.c: Likewise.
1116 * thread.c: Likewise.
1117 * tilegx-linux-nat.c: Likewise.
1118 * tilegx-tdep.c: Likewise.
1120 * tracepoint.c: Likewise.
1121 * tui/tui-command.c: Likewise.
1122 * tui/tui-data.c: Likewise.
1123 * tui/tui-disasm.c: Likewise.
1124 * tui/tui-file.c: Likewise.
1125 * tui/tui-layout.c: Likewise.
1126 * tui/tui-out.c: Likewise.
1127 * tui/tui-regs.c: Likewise.
1128 * tui/tui-source.c: Likewise.
1129 * tui/tui-stack.c: Likewise.
1130 * tui/tui-win.c: Likewise.
1131 * tui/tui-windata.c: Likewise.
1132 * tui/tui-winsource.c: Likewise.
1133 * typeprint.c: Likewise.
1134 * ui-file.c: Likewise.
1135 * ui-out.c: Likewise.
1136 * user-regs.c: Likewise.
1137 * utils.c: Likewise.
1138 * v850-tdep.c: Likewise.
1139 * valarith.c: Likewise.
1140 * valops.c: Likewise.
1141 * valprint.c: Likewise.
1142 * value.c: Likewise.
1143 * varobj.c: Likewise.
1144 * vax-tdep.c: Likewise.
1145 * vaxnbsd-tdep.c: Likewise.
1146 * vaxobsd-tdep.c: Likewise.
1147 * windows-nat.c: Likewise.
1148 * xcoffread.c: Likewise.
1149 * xml-support.c: Likewise.
1150 * xstormy16-tdep.c: Likewise.
1151 * xtensa-linux-nat.c: Likewise.
1153 2014-08-07 Gary Benson <gbenson@redhat.com>
1155 * common/common-defs.h: Include gdb_assert.h.
1156 * aarch64-tdep.c: Do not include gdb_assert.h.
1157 * addrmap.c: Likewise.
1158 * aix-thread.c: Likewise.
1159 * alpha-linux-tdep.c: Likewise.
1160 * alpha-mdebug-tdep.c: Likewise.
1161 * alphanbsd-tdep.c: Likewise.
1162 * amd64-nat.c: Likewise.
1163 * amd64-tdep.c: Likewise.
1164 * amd64bsd-nat.c: Likewise.
1165 * amd64fbsd-nat.c: Likewise.
1166 * amd64fbsd-tdep.c: Likewise.
1167 * amd64nbsd-nat.c: Likewise.
1168 * amd64nbsd-tdep.c: Likewise.
1169 * amd64obsd-nat.c: Likewise.
1170 * amd64obsd-tdep.c: Likewise.
1171 * arch-utils.c: Likewise.
1172 * arm-tdep.c: Likewise.
1173 * armbsd-tdep.c: Likewise.
1175 * bcache.c: Likewise.
1176 * bfin-tdep.c: Likewise.
1177 * blockframe.c: Likewise.
1178 * breakpoint.c: Likewise.
1179 * bsd-kvm.c: Likewise.
1180 * bsd-uthread.c: Likewise.
1181 * buildsym.c: Likewise.
1182 * c-exp.y: Likewise.
1183 * c-lang.c: Likewise.
1184 * charset.c: Likewise.
1185 * cleanups.c: Likewise.
1186 * cli-out.c: Likewise.
1187 * cli/cli-decode.c: Likewise.
1188 * cli/cli-dump.c: Likewise.
1189 * cli/cli-logging.c: Likewise.
1190 * cli/cli-script.c: Likewise.
1191 * cli/cli-utils.c: Likewise.
1192 * coffread.c: Likewise.
1193 * common/common-utils.c: Likewise.
1194 * common/queue.h: Likewise.
1195 * common/signals.c: Likewise.
1196 * common/vec.h: Likewise.
1197 * complaints.c: Likewise.
1198 * completer.c: Likewise.
1199 * corelow.c: Likewise.
1200 * cp-abi.c: Likewise.
1201 * cp-name-parser.y: Likewise.
1202 * cp-namespace.c: Likewise.
1203 * cp-support.c: Likewise.
1204 * cris-tdep.c: Likewise.
1205 * dbxread.c: Likewise.
1206 * dictionary.c: Likewise.
1207 * doublest.c: Likewise.
1208 * dsrec.c: Likewise.
1209 * dummy-frame.c: Likewise.
1210 * dwarf2-frame-tailcall.c: Likewise.
1211 * dwarf2-frame.c: Likewise.
1212 * dwarf2expr.c: Likewise.
1213 * dwarf2loc.c: Likewise.
1214 * dwarf2read.c: Likewise.
1216 * event-loop.c: Likewise.
1217 * exceptions.c: Likewise.
1218 * expprint.c: Likewise.
1219 * f-valprint.c: Likewise.
1220 * fbsd-nat.c: Likewise.
1221 * findvar.c: Likewise.
1222 * frame-unwind.c: Likewise.
1223 * frame.c: Likewise.
1224 * frv-tdep.c: Likewise.
1225 * gcore.c: Likewise.
1226 * gdb-dlfcn.c: Likewise.
1227 * gdb_bfd.c: Likewise.
1228 * gdbarch.c: Likewise.
1229 * gdbarch.sh: Likewise.
1230 * gdbtypes.c: Likewise.
1231 * gnu-nat.c: Likewise.
1232 * gnu-v3-abi.c: Likewise.
1233 * go-lang.c: Likewise.
1234 * guile/scm-exception.c: Likewise.
1235 * guile/scm-gsmob.c: Likewise.
1236 * guile/scm-lazy-string.c: Likewise.
1237 * guile/scm-math.c: Likewise.
1238 * guile/scm-pretty-print.c: Likewise.
1239 * guile/scm-safe-call.c: Likewise.
1240 * guile/scm-utils.c: Likewise.
1241 * guile/scm-value.c: Likewise.
1242 * h8300-tdep.c: Likewise.
1243 * hppa-hpux-nat.c: Likewise.
1244 * hppa-tdep.c: Likewise.
1245 * hppanbsd-tdep.c: Likewise.
1246 * hppaobsd-tdep.c: Likewise.
1247 * i386-darwin-nat.c: Likewise.
1248 * i386-darwin-tdep.c: Likewise.
1249 * i386-nto-tdep.c: Likewise.
1250 * i386-tdep.c: Likewise.
1251 * i386bsd-nat.c: Likewise.
1252 * i386fbsd-tdep.c: Likewise.
1253 * i386gnu-nat.c: Likewise.
1254 * i386nbsd-tdep.c: Likewise.
1255 * i386obsd-tdep.c: Likewise.
1256 * i387-tdep.c: Likewise.
1257 * ia64-libunwind-tdep.c: Likewise.
1258 * ia64-tdep.c: Likewise.
1259 * inf-ptrace.c: Likewise.
1260 * inf-ttrace.c: Likewise.
1261 * infcall.c: Likewise.
1262 * infcmd.c: Likewise.
1263 * infrun.c: Likewise.
1264 * inline-frame.c: Likewise.
1265 * interps.c: Likewise.
1266 * jv-lang.c: Likewise.
1267 * jv-typeprint.c: Likewise.
1268 * linux-fork.c: Likewise.
1269 * linux-nat.c: Likewise.
1270 * linux-thread-db.c: Likewise.
1271 * m32c-tdep.c: Likewise.
1272 * m32r-linux-nat.c: Likewise.
1273 * m32r-tdep.c: Likewise.
1274 * m68k-tdep.c: Likewise.
1275 * m68kbsd-nat.c: Likewise.
1276 * m68kbsd-tdep.c: Likewise.
1277 * m88k-tdep.c: Likewise.
1278 * machoread.c: Likewise.
1279 * macroexp.c: Likewise.
1280 * macrotab.c: Likewise.
1281 * maint.c: Likewise.
1282 * mdebugread.c: Likewise.
1283 * memory-map.c: Likewise.
1284 * mep-tdep.c: Likewise.
1285 * mi/mi-common.c: Likewise.
1286 * microblaze-tdep.c: Likewise.
1287 * mingw-hdep.c: Likewise.
1288 * mips-linux-nat.c: Likewise.
1289 * mips-linux-tdep.c: Likewise.
1290 * mips-tdep.c: Likewise.
1291 * mips64obsd-tdep.c: Likewise.
1292 * mipsnbsd-tdep.c: Likewise.
1293 * mn10300-linux-tdep.c: Likewise.
1294 * mn10300-tdep.c: Likewise.
1295 * moxie-tdep.c: Likewise.
1296 * mt-tdep.c: Likewise.
1297 * nat/linux-btrace.c: Likewise.
1298 * nat/linux-osdata.c: Likewise.
1299 * nat/linux-ptrace.c: Likewise.
1300 * nat/mips-linux-watch.c: Likewise.
1301 * nios2-linux-tdep.c: Likewise.
1302 * nios2-tdep.c: Likewise.
1303 * objc-lang.c: Likewise.
1304 * objfiles.c: Likewise.
1305 * obsd-nat.c: Likewise.
1306 * opencl-lang.c: Likewise.
1307 * osabi.c: Likewise.
1308 * parse.c: Likewise.
1309 * ppc-linux-nat.c: Likewise.
1310 * ppc-sysv-tdep.c: Likewise.
1311 * ppcfbsd-nat.c: Likewise.
1312 * ppcfbsd-tdep.c: Likewise.
1313 * ppcnbsd-nat.c: Likewise.
1314 * ppcnbsd-tdep.c: Likewise.
1315 * ppcobsd-nat.c: Likewise.
1316 * ppcobsd-tdep.c: Likewise.
1317 * printcmd.c: Likewise.
1318 * procfs.c: Likewise.
1319 * prologue-value.c: Likewise.
1320 * psymtab.c: Likewise.
1321 * python/py-lazy-string.c: Likewise.
1322 * python/py-value.c: Likewise.
1323 * regcache.c: Likewise.
1324 * reggroups.c: Likewise.
1325 * registry.c: Likewise.
1326 * remote-sim.c: Likewise.
1327 * remote.c: Likewise.
1328 * rs6000-aix-tdep.c: Likewise.
1329 * rs6000-tdep.c: Likewise.
1330 * s390-linux-tdep.c: Likewise.
1331 * score-tdep.c: Likewise.
1332 * ser-base.c: Likewise.
1333 * ser-mingw.c: Likewise.
1334 * sh-tdep.c: Likewise.
1335 * sh64-tdep.c: Likewise.
1336 * solib-darwin.c: Likewise.
1337 * solib-spu.c: Likewise.
1338 * solib-svr4.c: Likewise.
1339 * source.c: Likewise.
1340 * sparc-nat.c: Likewise.
1341 * sparc-sol2-tdep.c: Likewise.
1342 * sparc-tdep.c: Likewise.
1343 * sparc64-sol2-tdep.c: Likewise.
1344 * sparc64-tdep.c: Likewise.
1345 * sparc64fbsd-tdep.c: Likewise.
1346 * sparc64nbsd-tdep.c: Likewise.
1347 * sparc64obsd-tdep.c: Likewise.
1348 * sparcnbsd-tdep.c: Likewise.
1349 * sparcobsd-tdep.c: Likewise.
1350 * spu-multiarch.c: Likewise.
1351 * spu-tdep.c: Likewise.
1352 * stabsread.c: Likewise.
1353 * stack.c: Likewise.
1354 * symfile.c: Likewise.
1355 * symtab.c: Likewise.
1356 * target-descriptions.c: Likewise.
1357 * target-memory.c: Likewise.
1358 * target.c: Likewise.
1359 * tic6x-linux-tdep.c: Likewise.
1360 * tic6x-tdep.c: Likewise.
1361 * tilegx-linux-nat.c: Likewise.
1362 * tilegx-tdep.c: Likewise.
1364 * tramp-frame.c: Likewise.
1365 * tui/tui-out.c: Likewise.
1366 * tui/tui-winsource.c: Likewise.
1367 * ui-out.c: Likewise.
1368 * user-regs.c: Likewise.
1369 * utils.c: Likewise.
1370 * v850-tdep.c: Likewise.
1371 * valops.c: Likewise.
1372 * value.c: Likewise.
1373 * varobj.c: Likewise.
1374 * vax-nat.c: Likewise.
1375 * xml-syscall.c: Likewise.
1376 * xml-tdesc.c: Likewise.
1377 * xstormy16-tdep.c: Likewise.
1378 * xtensa-linux-nat.c: Likewise.
1379 * xtensa-tdep.c: Likewise.
1381 2014-08-07 Gary Benson <gbenson@redhat.com>
1383 * common/common-defs.h: Include common-utils.h.
1384 * defs.h: Do not include common-utils.h.
1385 * common/gdb_assert.h: Likewise.
1386 * darwin-nat.h: Likewise.
1387 * nat/linux-btrace.c: Likewise.
1388 * target/waitstatus.h: Likewise.
1390 2014-08-07 Gary Benson <gbenson@redhat.com>
1392 * common/common-defs.h: Include ptid.h.
1393 * defs.h: Do not include ptid.h.
1394 * inferior.h: Likewise.
1395 * infrun.h: Likewise.
1396 * nat/linux-btrace.h: Likewise.
1397 * nat/linux-osdata.h: Likewise.
1398 * target/waitstatus.h: Likewise.
1400 2014-08-07 Gary Benson <gbenson@redhat.com>
1402 * common/common-defs.h: Include gdb_locale.h.
1403 * defs.h: Do not include gdb_locale.h.
1405 2014-08-07 Gary Benson <gbenson@redhat.com>
1407 * common/common-defs.h: Include gdb/signals.h.
1408 * defs.h: Do not include gdb/signals.h.
1410 2014-08-07 Gary Benson <gbenson@redhat.com>
1412 * common/common-defs.h: Include pathmax.h.
1413 * defs.h: Do not include pathmax.h.
1415 2014-08-07 Gary Benson <gbenson@redhat.com>
1417 * common/common-defs.h: Include libiberty.h.
1418 * defs.h: Do not include libiberty.h.
1419 * common/queue.h: Likewise.
1420 * cp-name-parser.y: Likewise.
1421 * mi/mi-cmd-catch.c: Likewise.
1422 * python/python.c: Likewise.
1424 2014-08-07 Gary Benson <gbenson@redhat.com>
1426 * common/common-defs.h: Include ansidecl.h.
1427 * defs.h: Do not include ansidecl.h.
1428 * common/buffer.h: Likewise.
1429 * common/common-utils.h: Likewise.
1431 2014-08-07 Gary Benson <gbenson@redhat.com>
1433 * common/common-defs.h: Include stddef.h.
1434 * defs.h: Do not include stddef.h.
1435 * common/common-utils.h: Likewise.
1436 * amd64fbsd-nat.c: Likewise.
1437 * bcache.c: Likewise.
1438 * charset.c: Likewise.
1439 * common/buffer.h: Likewise.
1440 * common/vec.h: Likewise.
1441 * i386bsd-nat.c: Likewise.
1442 * nat/linux-btrace.h: Likewise.
1443 * ppcfbsd-nat.c: Likewise.
1444 * ppcnbsd-tdep.h: Likewise.
1445 * ppcobsd-nat.c: Likewise.
1446 * ppcobsd-tdep.h: Likewise.
1447 * python/py-gdb-readline.c: Likewise.
1449 2014-08-07 Gary Benson <gbenson@redhat.com>
1451 * common/common-defs.h: Include stdarg.h.
1452 * defs.h: Do not include stdarg.h.
1453 * ada-lang.c: Likewise.
1454 * common/common-utils.h: Likewise.
1455 * guile/scm-string.c: Likewise.
1456 * guile/scm-utils.c: Likewise.
1457 * m32c-tdep.c: Likewise.
1459 2014-08-07 Gary Benson <gbenson@redhat.com>
1461 * common/common-defs.h: Include stdlib.h.
1462 * defs.h: Do not include stdlib.h.
1463 * addrmap.c: Likewise.
1464 * bcache.c: Likewise.
1465 * common/buffer.c: Likewise.
1466 * common/common-utils.c: Likewise.
1467 * cp-name-parser.y: Likewise.
1468 * go32-nat.c: Likewise.
1469 * mn10300-linux-tdep.c: Likewise.
1470 * nat/linux-osdata.c: Likewise.
1471 * tui/tui.c: Likewise.
1472 * windows-nat.c: Likewise.
1474 2014-08-07 Gary Benson <gbenson@redhat.com>
1476 * common/common-defs.h: Include stdio.h.
1477 * defs.h: Do not include stdio.h.
1478 * ada-lang.c: Likewise.
1479 * common/buffer.c: Likewise.
1480 * common/common-utils.c: Likewise.
1481 * cp-name-parser.y: Likewise.
1482 * gnu-nat.c: Likewise.
1483 * go32-nat.c: Likewise.
1484 * i386gnu-nat.c: Likewise.
1485 * proc-api.c: Likewise.
1486 * proc-events.c: Likewise.
1487 * proc-flags.c: Likewise.
1488 * proc-why.c: Likewise.
1489 * python/python-internal.h: Likewise.
1490 * target-memory.c: Likewise.
1491 * tui/tui-io.c: Likewise.
1492 * tui/tui.c: Likewise.
1494 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1496 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1497 (scan_dyntag_auxv): Same.
1499 2014-08-06 Yao Qi <yao@codesourcery.com>
1501 * amd64-linux-nat.c: Remove duplicated include
1503 * i386-linux-nat.c: Likewise.
1505 2014-08-06 Yao Qi <yao@codesourcery.com>
1507 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1508 operand" with "Special opcode" in comments.
1510 2014-08-05 Gary Benson <gbenson@redhat.com>
1512 * interps.c (initialize_interps): Remove prototype.
1513 (interpreter_initialized): Remove static global.
1514 (interp_add): Do not call initialize_interps.
1515 (initialize_interps): Remove function.
1517 2014-08-05 Gary Benson <gbenson@redhat.com>
1519 * utils.c (vwarning): Remove spurious va_end.
1521 2014-08-05 Alan Modra <amodra@gmail.com>
1523 * charset.c (convert_between_encodings): Cast result of obstack_base.
1524 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1525 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1526 (read_unwind_info): Use size_t for some locals.
1527 * jit.c (finalize_symtab): Likewise.
1528 * utils.c (hashtab_obstack_allocate): Likewise.
1529 * symmisc.c (print_objfile_statistics): Update format strings.
1531 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1533 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1534 (Changes in GDB 7.8): ... here.
1536 2014-08-04 Tom Tromey <tromey@redhat.com>
1538 * target.c (set_targetdebug): New function.
1539 (initialize_targets): Pass set_targetdebug when creating "set
1542 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1544 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1545 if detecting a variable-sized field that is not the last field.
1546 Fix struct type length computation.
1548 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1550 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1553 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1555 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1556 Remove "+ 8" offset in computation of CHAIN_VMA.
1558 2014-07-31 Doug Evans <dje@google.com>
1560 * inflow.c (child_terminal_inferior): Add comment.
1561 (child_terminal_ours_for_output): Add comment.
1562 (child_terminal_ours): Add comment.
1563 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1564 (linux_nat_terminal_ours): Add comment.
1566 2014-07-31 Gary Benson <gbenson@redhat.com>
1568 * common/btrace-common.h: Do not include defs.h or server.h.
1569 * nat/mips-linux-watch.h: Likewise.
1570 * gdb-dlfcn.h: Do not include defs.h.
1571 * tracefile.h: Likewise.
1573 2014-07-30 Roland McGrath <mcgrathr@google.com>
1575 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1577 2014-07-30 Tom Tromey <tromey@redhat.com>
1579 * bsd-kvm.c (bsd_kvm_open): Constify.
1580 * corelow.c (core_open): Constify.
1581 * ctf.c (ctf_open): Constify.
1582 * dbug-rom.c (dbug_open): Constify.
1583 * exec.c (exec_open): Constify.
1584 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1585 * microblaze-rom.c (picobug_open): Constify.
1586 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1588 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1589 * record-btrace.c (record_btrace_open): Constify.
1590 * record-full.c (record_full_core_open_1, record_full_open_1)
1591 (record_full_open): Constify.
1592 * remote-m32r-sdi.c (m32r_open): Constify.
1593 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1594 (rockhopper_open, lsi_open): Constify.
1595 * remote-sim.c (gdbsim_open): Constify.
1596 * remote.c (remote_open, extended_remote_open, remote_open_1):
1598 * target.h (struct target_ops) <to_open>: Make "arg" const.
1599 * tracefile-tfile.c (tfile_open): Constify.
1601 2014-07-30 Tom Tromey <tromey@redhat.com>
1603 * breakpoint.c (map_breakpoint_numbers): Update.
1604 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1605 (get_number_const): New function.
1606 (get_number): Rewrite using get_number_const.
1607 (init_number_or_range): Make "string" const.
1608 (number_is_in_list): Make "list" const.
1609 * cli/cli-utils.h (get_number_const): Declare.
1610 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1611 (init_number_or_range, number_is_in_list): Update.
1612 * printcmd.c (map_display_numbers): Update.
1613 * value.c (value_from_history_ref): Constify.
1614 * value.h (value_from_history_ref): Update.
1616 2014-07-30 Tom Tromey <tromey@redhat.com>
1618 * corefile.c (hook_type, call_extra_exec_file_hooks)
1619 (specify_exec_file_hook): Constify.
1620 * exec.c (exec_file_attach): Make "filename" const.
1621 * gdbcore.h (deprecated_exec_file_display_hook)
1622 (specify_exec_file_hook, exec_file_attach): Constify.
1623 * main.c (captured_main): Use catch_command_errors_const.
1625 2014-07-30 Tom Tromey <tromey@redhat.com>
1627 * target.c (open_target): New function.
1628 (add_target_with_completer, add_deprecated_target_alias): Use
1629 set_cmd_sfunc, set_cmd_context.
1630 (debug_to_open): Remove.
1631 (setup_target_debug): Update.
1633 2014-07-30 Yao Qi <yao@codesourcery.com>
1635 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1637 * parse.c (exp_iterate): Update comments.
1639 2014-07-30 Gary Benson <gbenson@redhat.com>
1641 * common/common-defs.h: New file.
1642 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1643 * defs.h: Include common-defs.h.
1644 Do not include config.h or build-gnulib/config.h.
1646 2014-07-30 Gary Benson <gbenson@redhat.com>
1648 * common/common-utils.h: Do not include config.h.
1649 * nat/linux-btrace.h: Likewise.
1651 2014-07-30 Gary Benson <gbenson@redhat.com>
1653 * btrace.c: Include defs.h.
1654 * common/ptid.c: Include defs.h or server.h as appropriate.
1655 * nat/mips-linux-watch.c: Likewise.
1657 2014-07-29 Tom Tromey <tromey@redhat.com>
1659 * target.c (target_is_pushed): Simplify.
1661 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1665 2014-07-29 Yao Qi <yao@codesourcery.com>
1668 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1670 2014-07-28 Doug Evans <xdje42@gmail.com>
1673 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1674 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1677 2014-07-28 Will Newton <will.newton@linaro.org>
1679 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1680 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1681 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1682 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1683 (THUMB2_EABI_SYSCALL): Likewise.
1684 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1686 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1687 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1689 2014-07-27 Doug Evans <xdje42@gmail.com>
1691 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1693 2014-07-27 Doug Evans <xdje42@gmail.com>
1695 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1697 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1698 Doug Evans <xdje42@gmail.com>
1701 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1702 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1703 * configure.ac: Try to use guild to compile an scm file, if it fails
1704 then disable guile support.
1705 * configure: Regenerate.
1706 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1708 (GUILE_COMPILED_FILES): New variable.
1709 (GUILE_FILES) Update.
1710 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1711 (stamp-guile): Compile scm files.
1712 * guile/guile.c (boot_guile_support): New function.
1713 (standard_throw_args_p): New function.
1714 (print_standard_throw_error, print_throw_error): New functions.
1715 (handle_boot_error): New function.
1716 (initialize_scheme_side): Rewrite to call boot_guile_support.
1717 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1718 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1720 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1721 Doug Evans <xdje42@gmail.com>
1724 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1725 * guile/lib/gdb/support.scm: New file.
1726 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1727 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1729 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1731 (%assert-type): Ditto, and renamed to assert-type.
1732 (%exception-print-style): Delete.
1734 2014-07-26 Doug Evans <xdje42@gmail.com>
1737 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1738 * configure: Regenerate.
1739 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1741 (PYTHON_FILES): New variable.
1742 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1743 (GUILE_FILES): New variable.
1744 (stamp-python, install-python, uninstall-python): Handle empty
1746 (stamp-guile, install-guile, uninstall-guile): Ditto.
1748 2014-07-26 Doug Evans <xdje42@gmail.com>
1751 * guile/lib/gdb.scm (pretty-printers): Export.
1752 (set-pretty-printers!): Export.
1753 * guile/lib/gdb/printing.scm (gdb module): Update.
1754 (prepend-pretty-printer!, append-pretty-printer!): Update.
1755 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1756 (pretty_printer_list_var): Delete.
1757 (pretty_printer_list): New static global.
1758 (gdbscm_pretty_printers): New function.
1759 (gdbscm_set_pretty_printers_x): New function.
1760 (ppscm_find_pretty_printer_from_gdb): Update.
1761 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1762 (gdbscm_initialize_pretty_printers): Update.
1764 2014-07-26 Doug Evans <xdje42@gmail.com>
1767 * configure.ac: Add check for header gc/gc.h.
1768 Add check for function setenv.
1769 * configure: Regenerate.
1770 * config.in: Regenerate.
1771 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1773 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1775 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1776 variation in gdbarch matching.
1778 2014-07-25 Tom Tromey <tromey@redhat.com>
1780 * exec.c (using_exec_ops): Remove.
1781 (exec_close_1): Update. Remove extraneous block, reindent.
1782 (add_target_sections): Use target_is_pushed.
1784 2014-07-25 Pedro Alves <palves@redhat.com>
1786 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1787 * monitor.c (monitor_create_inferior): Likewise.
1788 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1789 * remote-sim.c (gdbsim_create_inferior): Likewise.
1790 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1791 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1792 * windows-nat.c (do_initial_windows_stuff): Likewise.
1794 2014-07-25 Pedro Alves <palves@redhat.com>
1796 * NEWS: Mention signal passing and "signal" command changes.
1797 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1799 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1801 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1802 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1803 (jump_command): Adjust clear_proceed_status call.
1804 (signal_command): Warn if other thread that are resumed have
1805 signals that will be delivered. Adjust clear_proceed_status call.
1806 (until_next_command, finish_command)
1807 (proceed_after_attach_callback, attach_command_post_wait)
1808 (attach_command): Adjust clear_proceed_status call.
1809 * infrun.c (proceed_after_vfork_done): Likewise.
1810 (proceed_after_attach_callback): Adjust comment.
1811 (clear_proceed_status_thread): Clear stop_signal if not in pass
1813 (clear_proceed_status_callback): Delete.
1814 (clear_proceed_status): New 'step' parameter. Only clear the
1815 proceed status of threads the command being prepared is about to
1817 (proceed): If passed in an explicit signal, override stop_signal
1818 with it. Don't pass the last stop signal to the thread we're
1820 (init_wait_for_inferior): Adjust clear_proceed_status call.
1821 (switch_back_to_stepped_thread): Clear the signal if it should not
1823 * infrun.h (clear_proceed_status): New 'step' parameter.
1824 (user_visible_resume_ptid): Add comment.
1825 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1826 signal is in pass state.
1827 * remote.c (append_pending_thread_resumptions): Likewise.
1828 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1830 2014-07-25 Tom Tromey <tromey@redhat.com>
1832 * target.h (target_stopped_data_address)
1833 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1836 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1838 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1840 (avr_pointer_to_address): Likewise.
1842 2014-07-24 Tom Tromey <tromey@redhat.com>
1844 * monitor.c (compile_pattern): Update.
1845 * target.h (struct target_ops) <to_shortname, to_longname,
1848 2014-07-24 Tom Tromey <tromey@redhat.com>
1850 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1851 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1852 (add_info_alias, add_com): Make "doc" const.
1853 (print_doc_line): Make "str" const.
1854 (delete_cmd): Update.
1855 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1856 (print_doc_line): Update.
1857 * cli/cli-script.c (document_command): Update.
1858 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1859 (add_com, add_info, add_info_alias): Update.
1860 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1861 * python/py-cmd.c (cmdpy_destroyer): Update.
1863 2014-07-24 Tom Tromey <tromey@redhat.com>
1865 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1866 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1867 (help_cmd_list): Constify.
1868 (lookup_cmd): Update.
1869 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1871 (help_cmd_list, apropos_cmd): Update.
1872 * cli/cli-script.c (show_user): Update.
1873 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1874 * cli/cli-setshow.h (cmd_show_list): Update.
1875 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1876 (cmd_show_list): Update.
1877 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1878 * python/py-cmd.c (cmdpy_destroyer): Update.
1880 2014-07-24 Tom Tromey <tromey@redhat.com>
1882 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1883 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1885 * command.h (deprecate_cmd): Update.
1886 * maint.c (maintenance_do_deprecate): Add casts.
1888 2014-07-24 Tom Tromey <tromey@redhat.com>
1890 * cli/cli-decode.c (help_cmd): Make parameter "const".
1891 * cli/cli-decode.h (help_cmd): Update.
1893 2014-07-24 Tom Tromey <tromey@redhat.com>
1895 * stack.c (up_silently_base, down_silently_base): Make argument
1898 2014-07-24 Tom Tromey <tromey@redhat.com>
1900 * solib.c (solib_add): Make "pattern" const.
1901 * solib.h (solib_add): Update.
1903 2014-07-24 Tom Tromey <tromey@redhat.com>
1905 * remote.c (remote_serial_open, print_packet, putpkt)
1906 (putpkt_binary): Constify.
1907 * remote.h (putpkt): Update.
1909 2014-07-24 Tom Tromey <tromey@redhat.com>
1911 * monitor.c (monitor_open): Make "args" const.
1912 * monitor.h (monitor_open): Update.
1914 2014-07-24 Tom Tromey <tromey@redhat.com>
1916 * maint.c (match_bfd_flags): Make "string" const.
1917 (print_bfd_section_info): Remove casts.
1918 (print_objfile_section_info): Make "string" const.
1920 2014-07-24 Tom Tromey <tromey@redhat.com>
1922 * inf-child.c (inf_child_open_target): Make "arg" const.
1923 * inf-child.h (inf_child_open_target): Update.
1925 2014-07-24 Tom Tromey <tromey@redhat.com>
1927 * environ.c (unset_in_environ): Make "var" const.
1928 * environ.h (unset_in_environ): Update.
1930 2014-07-24 Tom Tromey <tromey@redhat.com>
1932 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1934 (scan_filename_with_cleanup): Likewise.
1935 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1936 Make arguments const.
1937 (restore_command): Update.
1939 2014-07-24 Pedro Alves <palves@redhat.com>
1941 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1943 2014-07-24 Tom Tromey <tromey@redhat.com>
1944 Gary Benson <gbenson@redhat.com>
1946 * nat/linux-ptrace.c (additional_flags): New global.
1947 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1948 additional_flags; don't check GDBSERVER.
1949 (linux_ptrace_set_additional_flags): New function.
1950 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1952 * linux-nat.c (_initialize_linux_nat): Call
1953 linux_ptrace_set_additional_flags.
1955 2014-07-24 Tom Tromey <tromey@redhat.com>
1957 * make-target-delegates (munge_type, write_debugmethod): New
1959 (debug_names): New global.
1960 ($TARGET_DEBUG_PRINTER): New global.
1961 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1963 Write debug methods. Generate init_debug_target.
1964 * target-debug.h: New file.
1965 * target-delegates.c: Rebuild.
1966 * target.c: Include target-debug.h.
1967 (debug_target): Hoist definition.
1968 (target_kill, target_get_section_table, target_memory_map)
1969 (target_flash_erase, target_flash_done, target_detach)
1970 (target_disconnect, target_wait, target_resume)
1971 (target_pass_signals, target_program_signals, target_follow_fork)
1972 (target_mourn_inferior, target_search_memory)
1973 (target_thread_address_space, target_close)
1974 (target_find_new_threads, target_core_of_thread)
1975 (target_verify_memory, target_insert_mask_watchpoint)
1976 (target_remove_mask_watchpoint): Remove targetdebug code.
1977 (debug_to_post_attach, debug_to_prepare_to_store)
1978 (debug_to_files_info, debug_to_insert_breakpoint)
1979 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1980 (debug_to_region_ok_for_hw_watchpoint)
1981 (debug_to_can_accel_watchpoint_condition)
1982 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1983 (debug_to_watchpoint_addr_within_range)
1984 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1985 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1986 (debug_to_terminal_init, debug_to_terminal_inferior)
1987 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1988 (debug_to_terminal_save_ours, debug_to_terminal_info)
1989 (debug_to_load, debug_to_post_startup_inferior)
1990 (debug_to_insert_fork_catchpoint)
1991 (debug_to_remove_fork_catchpoint)
1992 (debug_to_insert_vfork_catchpoint)
1993 (debug_to_remove_vfork_catchpoint)
1994 (debug_to_insert_exec_catchpoint)
1995 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1996 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1997 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1998 (setup_target_debug): Call init_debug_target.
1999 * target.h (TARGET_DEBUG_PRINTER): New macro.
2000 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2001 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2003 2014-07-24 Gary Benson <gbenson@redhat.com>
2005 * exceptions.h (throw_vfatal): Renamed to...
2006 (throw_vquit): New declaration.
2007 (throw_quit): Likewise.
2008 * exceptions.c (throw_vfatal): Renamed to...
2009 (throw_vquit): New function.
2010 (throw_quit): Likewise.
2011 (throw_error): Call throw_verror rather than throw_it.
2012 * utils.h (vfatal): Removed.
2014 * utils.c (vfatal): Removed.
2016 (internal_verror): Replaced call to fatal with call to throw_quit.
2017 (quit): Replaced calls to fatal with calls to throw_quit.
2019 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2021 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2024 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2026 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2027 less than zero in conditional expression.
2029 2014-07-23 Tom Tromey <tromey@redhat.com>
2031 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2032 ($INTRO_PART): Don't match whitespace.
2033 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2035 ($METHOD): Add $METHOD_TRAILER.
2037 (scan_target_h): New sub.
2038 Change main loop not to collect state.
2039 * target-delegates.c: Rebuild.
2041 2014-07-23 Gary Benson <gbenson@redhat.com>
2043 * cp-support.c (gdb_demangle): Fix build on systems without
2046 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2048 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2049 for reference entry value target data value.
2051 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2053 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2054 value_available_contents_eq.
2056 2014-07-22 Pedro Alves <palves@redhat.com>
2058 * value.c (allocate_optimized_out_value): Don't mark value as
2061 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2063 * MAINTAINERS (Write After Approval): Update my email address.
2065 2014-07-20 Doug Evans <dje@google.com>
2068 * remote.c (putpkt_binary): Add text to error message.
2070 2014-07-20 Yao Qi <yao@codesourcery.com>
2072 * eval.c: Remove "Chill" from comments.
2073 * gdbtypes.h: Likewise.
2074 * symtab.h: Likewise.
2076 2014-07-20 Yao Qi <yao@codesourcery.com>
2078 * std-operator.def: Update comments to TERNOP_SLICE.
2080 2014-07-20 Yao Qi <yao@codesourcery.com>
2082 * std-operator.def: Remove BINOP_RANGE.
2083 * breakpoint.c (watchpoint_exp_is_const): Update.
2084 * expprint.c (dump_subexp_body_standard): Likewise.
2085 * eval.c (init_array_element): Remove dead code.
2086 (evaluate_subexp_standard): Likewise.
2088 2014-07-20 Yao Qi <yao@codesourcery.com>
2090 * std-operator.def: Remove BINOP_IN.
2091 * breakpoint.c (watchpoint_exp_is_const): Update.
2092 * eval.c (evaluate_subexp_standard): Likewise.
2093 * expprint.c (dump_subexp_body_standard): Likewise.
2095 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2097 * microblaze-tdep.c (microblaze_register_names): Add
2098 the rshr and rslr register names.
2099 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2100 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2101 Use of tdesc_numbered_register. Use of
2102 microblaze_register_g_packet_guesses. Use of
2103 tdesc_use_registers. Use of set_gdbarch_register_type.
2104 (microblaze_register_g_packet_guesses): New.
2105 * microblaze-tdep.h (microblaze_reg_num): Add
2106 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2107 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2108 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2109 * features/microblaze-core.xml: New file.
2110 * features/microblaze-stack-protect.xml: New file.
2111 * features/microblaze-with-stack-protect.c: New file.
2112 * features/microblaze-with-stack-protect.xml: New file.
2113 * features/microblaze.xml: New file.
2114 * features/microblaze.c: New file.
2115 * features/Makefile (microblaze-with-stack-protect): Add
2116 microblaze-with-stack-protect microblaze and microblaze-expedite.
2117 * regformats/microblaze-with-stack-protect.dat: New file.
2118 * regformats/microblaze.dat: New file.
2119 * doc/gdb.texinfo (MicroBlaze Features): Added.
2121 2014-07-18 Tom Tromey <tromey@redhat.com>
2123 * exec.c (exec_ops): Now static.
2124 * exec.h (exec_ops): Don't declare.
2126 2014-07-18 Tom Tromey <tromey@redhat.com>
2128 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2129 to find_target_beneath.
2130 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2131 find_target_beneath.
2132 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2134 2014-07-18 Tom Tromey <tromey@redhat.com>
2137 * utils.c (quit): Use target_supports_terminal_ours.
2138 * target.h (target_supports_terminal_ours): Declare.
2139 * target.c (target_supports_delete_record): Don't check
2140 to_delete_record against NULL.
2141 (target_supports_terminal_ours): New function.
2143 2014-07-18 Tom Tromey <tromey@redhat.com>
2146 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2147 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2148 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2149 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2150 * windows-nat.c (windows_xfer_partial): Always delegate.
2151 * record-btrace.c (record_btrace_xfer_partial): Simplify
2153 (record_btrace_fetch_registers, record_btrace_store_registers)
2154 (record_btrace_prepare_to_store, record_btrace_resume)
2155 (record_btrace_wait, record_btrace_find_new_threads)
2156 (record_btrace_thread_alive): Likewise.
2157 * procfs.c (procfs_xfer_partial): Always delegate.
2158 * corelow.c (core_xfer_partial): Always delegate.
2159 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2161 2014-07-18 Tom Tromey <tromey@redhat.com>
2163 * exec.c (exec_make_note_section): Move earlier.
2165 2014-07-17 Doug Evans <dje@google.com>
2168 * maint.c (count_symtabs_and_blocks): Handle NULL
2169 current_program_space.
2170 (report_command_stats): Check global enabled flag in addition to
2171 recorded enabled flag.
2172 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2174 2014-07-16 Pedro Alves <palves@redhat.com>
2176 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2178 2014-07-16 Tom Tromey <tromey@redhat.com>
2180 * target.h (struct target_ops) <to_delete_record>: Reformat
2183 2014-07-16 Tom Tromey <tromey@redhat.com>
2185 * target-delegates.c: Rebuild.
2187 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2189 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2190 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2191 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2192 (avr_pointer_to_address): Likewise.
2193 (avr_address_class_type_flags): New function.
2194 (avr_address_class_type_flags_to_name): Likewise.
2195 (avr_address_class_name_to_type_flags): Likewise.
2196 (avr_gdbarch_init): Set address_class_type_flags,
2197 address_class_type_flags_to_name and
2198 address_class_name_to_type_flags.
2200 2014-07-15 Pedro Alves <palves@redhat.com>
2202 * linux-nat.c (kill_callback): Save errno and work with saved
2205 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2207 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2209 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2211 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2212 breakpoint support correctly.
2214 2014-07-14 Pedro Alves <palves@redhat.com>
2216 * utils.c (prompt_for_continue): Call target_terminal_ours.
2218 2014-07-14 Pedro Alves <palves@redhat.com>
2220 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2221 catch_errors. Don't re-enable stdin or notify observers where,
2223 (fetch_inferior_event_wrapper): Delete.
2225 2014-07-14 Pedro Alves <palves@redhat.com>
2228 * top.c: Include "inf-loop.h".
2229 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2231 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2233 (gdb_readline_wrapper): Store whether the target is async, and
2236 2014-07-14 Pedro Alves <palves@redhat.com>
2239 * top.c (gdb_readline_wrapper_line): Tweak comment.
2240 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2241 the input handler callback.
2243 2014-07-14 Pedro Alves <palves@redhat.com>
2246 * main.c: Include event-top.h.
2247 (handle_command_errors): New function.
2248 (catch_command_errors, catch_command_errors_const): Use it.
2250 2014-07-14 Pedro Alves <palves@redhat.com>
2252 * exceptions.c (catch_command_errors, catch_command_errors_const):
2254 * exceptions.h (catch_command_errors_ftype)
2255 (catch_command_errors_const_ftype): Moved to main.c.
2256 (catch_command_errors, catch_command_errors_const): Delete
2258 * main.c (catch_command_errors_ftype)
2259 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2260 (catch_command_errors, catch_command_errors_const)): Moved here
2261 from exceptions.c and make static.
2263 2014-07-14 Pedro Alves <palves@redhat.com>
2265 * exceptions.c (print_any_exception): Delete.
2266 (catch_exceptions_with_msg): Use exception_print instead of
2267 print_any_exception.
2268 (catch_errors): Use exception_fprintf instead of
2269 print_any_exception.
2270 (catch_command_errors, catch_command_errors_const): Use
2271 exception_print instead of print_any_exception.
2273 2014-07-14 Pedro Alves <palves@redhat.com>
2275 * infcall.c (run_inferior_call): Set 'sync_execution' while
2276 running the inferior call.
2278 2014-07-14 Pedro Alves <palves@redhat.com>
2280 * value.c (value_contents_equal): Delete function.
2281 * value.h (value_contents_equal): Delete declaration.
2283 2014-07-14 Tom Tromey <tromey@redhat.com>
2286 * gdbtypes.c (is_dynamic_type_internal): New function, from
2288 (is_dynamic_type): Rewrite.
2289 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2290 (resolve_dynamic_struct): Likewise.
2291 (resolve_dynamic_type_internal): New function, from
2292 resolve_dynamic_type.
2293 (resolve_dynamic_type): Rewrite.
2295 2014-07-14 Tom Tromey <tromey@redhat.com>
2297 * target.c (target_require_runnable): Also check record_stratum.
2300 2014-07-11 Yao Qi <yao@codesourcery.com>
2302 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2303 thumb_instruction_restores_sp return true.
2305 2014-07-11 Yao Qi <yao@codesourcery.com>
2307 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2308 (thumb_in_function_epilogue_p): Call
2309 thumb_instruction_restores_sp.
2311 2014-07-11 Yao Qi <yao@codesourcery.com>
2313 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2315 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2317 2014-07-11 Gary Benson <gbenson@redhat.com>
2319 * amd64-linux-nat.c (gdbcore.h): Remove include.
2320 (regset.h): Likewise.
2321 (nat/linux-btrace.h): Likewise.
2322 (btrace.h): Likewise.
2323 (gdb_assert.h): Likewise.
2324 (string.h): Likewise.
2325 (sys/uio.h): Likewise.
2326 (sys/debugreg.h): Likewise.
2327 (sys/syscall.h): Likewise.
2328 (sys/procfs.h): Likewise.
2329 (sys/user.h): Likewise.
2330 (asm/ptrace.h): Likewise.
2331 (i386-nat.h): Likewise.
2332 * i386-linux-nat.c (i386-nat.h): Likewise.
2333 (regset.h): Likewise.
2334 (target.h): Likewise.
2335 (linux-nat.h): Likewise.
2336 (nat/linux-btrace.h): Likewise.
2337 (btrace.h): Likewise.
2338 (gdb_assert.h): Likewise.
2339 (string.h): Likewise.
2340 (sys/uio.h): Likewise.
2341 (sys/user.h): Likewise.
2342 (sys/procfs.h): Likewise.
2343 (sys/reg.h): Likewise.
2344 (sys/debugreg.h): Likewise.
2345 (ORIG_EAX): Remove definition.
2347 2014-07-11 Gary Benson <gbenson@redhat.com>
2349 * i386-linux-nat.h: New file.
2350 * x86-linux-nat.h: Likewise.
2351 * x86-linux-nat.c: Likewise.
2352 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2353 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2354 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2355 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2356 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2357 (PTRACE_SETREGSET): Likewise.
2358 (arch_lwp_info): Now in x86-linux-nat.c.
2359 (have_ptrace_getregset): Now in x86-linux-nat.h.
2360 (x86_linux_dr_get): Now in x86-linux-nat.c.
2361 (x86_linux_dr_set): Likewise.
2362 (x86_linux_dr_get_addr): Likewise.
2363 (x86_linux_dr_get_control): Likewise.
2364 (x86_linux_dr_get_status): Likewise.
2365 (update_debug_registers_callback): Likewise.
2366 (x86_linux_dr_set_control): Likewise.
2367 (x86_linux_dr_set_addr): Likewise.
2368 (x86_linux_prepare_to_resume): Likewise.
2369 (x86_linux_new_thread): Likewise.
2370 (x86_linux_new_fork): Likewise.
2371 (x86_linux_get_thread_area): Likewise.
2372 (super_post_startup_inferior): Likewise.
2373 (x86_linux_child_post_startup_inferior): Likewise.
2374 (AMD64_LINUX_USER64_CS): Likewise.
2375 (AMD64_LINUX_X32_DS): Likewise.
2376 (x86_linux_read_description): Likewise.
2377 (x86_linux_enable_btrace): Likewise.
2378 (x86_linux_disable_btrace): Likewise.
2379 (x86_linux_teardown_btrace): Likewise.
2380 (x86_linux_read_btrace): Likewise.
2381 (x86_linux_create_target): Likewise.
2382 (x86_linux_add_target): Likewise.
2383 * i386-linux-nat.c (x86-linux-nat.h): New include.
2384 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2385 (PTRACE_SETREGSET): Likewise.
2386 (arch_lwp_info): Now in x86-linux-nat.c.
2387 (have_ptrace_getregset): Now in x86-linux-nat.h.
2388 (x86_linux_dr_get): Now in x86-linux-nat.c.
2389 (x86_linux_dr_set): Likewise.
2390 (x86_linux_dr_get_addr): Likewise.
2391 (x86_linux_dr_get_control): Likewise.
2392 (x86_linux_dr_get_status): Likewise.
2393 (update_debug_registers_callback): Likewise.
2394 (x86_linux_dr_set_control): Likewise.
2395 (x86_linux_dr_set_addr): Likewise.
2396 (x86_linux_prepare_to_resume): Likewise.
2397 (x86_linux_new_thread): Likewise.
2398 (x86_linux_new_fork): Likewise.
2399 (x86_linux_get_thread_area): Likewise.
2400 (super_post_startup_inferior): Likewise.
2401 (x86_linux_child_post_startup_inferior): Likewise.
2402 (AMD64_LINUX_USER64_CS): Likewise.
2403 (AMD64_LINUX_X32_DS): Likewise.
2404 (x86_linux_read_description): Likewise.
2405 (x86_linux_enable_btrace): Likewise.
2406 (x86_linux_disable_btrace): Likewise.
2407 (x86_linux_teardown_btrace): Likewise.
2408 (x86_linux_read_btrace): Likewise.
2409 (x86_linux_create_target): Likewise.
2410 (x86_linux_add_target): Likewise.
2412 2014-07-11 Gary Benson <gbenson@redhat.com>
2414 * amd64-linux-nat.c: Comment and whitespace changes.
2415 * i386-linux-nat.c: Comment and whitespace changes.
2417 2014-07-11 Gary Benson <gbenson@redhat.com>
2419 * amd64-linux-nat.c (x86_linux_create_target): New function.
2420 (x86_linux_add_target): Likewise.
2421 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2422 * i386-linux-nat.c (x86_linux_create_target): New function.
2423 (x86_linux_add_target): Likewise.
2424 (_initialize_i386_linux_nat): Delegate to the above new functions.
2426 2014-07-11 Gary Benson <gbenson@redhat.com>
2428 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2429 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2430 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2431 (ps_get_thread_area): Delegate to the above.
2433 2014-07-11 Gary Benson <gbenson@redhat.com>
2435 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2436 x86_linux_read_description. All uses updated. amd64-specific
2437 code conditionalized. Conditionalized i386-specific code added.
2438 Redundant cast removed.
2439 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2440 x86_linux_read_description. All uses updated. i386-specific
2441 code conditionalized. Conditionalized amd64-specific code added.
2442 One sizeof replaced with the actual type it is describing.
2444 2014-07-11 Gary Benson <gbenson@redhat.com>
2446 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2447 x86_linux_dr_get. All uses updated.
2448 (amd64_linux_dr_set): Renamed to
2449 x86_linux_dr_set. All uses updated.
2450 (amd64_linux_dr_get_addr): Renamed to
2451 x86_linux_dr_get_addr. All uses updated.
2452 (amd64_linux_dr_get_control): Renamed to
2453 x86_linux_dr_get_control. All uses updated.
2454 (amd64_linux_dr_get_status): Renamed to
2455 x86_linux_dr_get_status. All uses updated.
2456 (amd64_linux_dr_set_control): Renamed to
2457 x86_linux_dr_set_control. All uses updated.
2458 (amd64_linux_dr_set_addr): Renamed to
2459 x86_linux_dr_set_addr. All uses updated.
2460 (amd64_linux_prepare_to_resume): Renamed to
2461 x86_linux_prepare_to_resume. All uses updated.
2462 (amd64_linux_new_thread): Renamed to
2463 x86_linux_new_thread. All uses updated.
2464 (amd64_linux_new_fork): Renamed to
2465 x86_linux_new_fork. All uses updated.
2466 (amd64_linux_child_post_startup_inferior): Renamed to
2467 x86_linux_child_post_startup_inferior. All uses updated.
2468 (amd64_linux_enable_btrace): Renamed to
2469 x86_linux_enable_btrace. All uses updated.
2470 (amd64_linux_disable_btrace): Renamed to
2471 x86_linux_disable_btrace. All uses updated.
2472 (amd64_linux_teardown_btrace): Renamed to
2473 x86_linux_teardown_btrace. All uses updated.
2474 (amd64_linux_read_btrace): Renamed to
2475 x86_linux_read_btrace. All uses updated.
2476 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2477 x86_linux_dr_get. All uses updated.
2478 (i386_linux_dr_set): Renamed to
2479 x86_linux_dr_set. All uses updated.
2480 (i386_linux_dr_get_addr): Renamed to
2481 x86_linux_dr_get_addr. All uses updated.
2482 (i386_linux_dr_get_control): Renamed to
2483 x86_linux_dr_get_control. All uses updated.
2484 (i386_linux_dr_get_status): Renamed to
2485 x86_linux_dr_get_status. All uses updated.
2486 (i386_linux_dr_set_control): Renamed to
2487 x86_linux_dr_set_control. All uses updated.
2488 (i386_linux_dr_set_addr): Renamed to
2489 x86_linux_dr_set_addr. All uses updated.
2490 (i386_linux_prepare_to_resume): Renamed to
2491 x86_linux_prepare_to_resume. All uses updated.
2492 (i386_linux_new_thread): Renamed to
2493 x86_linux_new_thread. All uses updated.
2494 (i386_linux_new_fork): Renamed to
2495 x86_linux_new_fork. All uses updated.
2496 (i386_linux_child_post_startup_inferior): Renamed to
2497 x86_linux_child_post_startup_inferior. All uses updated.
2498 (i386_linux_enable_btrace): Renamed to
2499 x86_linux_enable_btrace. All uses updated.
2500 (i386_linux_disable_btrace): Renamed to
2501 x86_linux_disable_btrace. All uses updated.
2502 (i386_linux_teardown_btrace): Renamed to
2503 x86_linux_teardown_btrace. All uses updated.
2504 (i386_linux_read_btrace): Renamed to
2505 x86_linux_read_btrace. All uses updated.
2507 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2509 * remote.c (extended_remote_post_attach): New function.
2510 (init_extended_remote_ops): Install it as to_post_attach method.
2512 2014-07-09 Pedro Alves <palves@redhat.com>
2514 * infcmd.c (attach_command_post_wait): Don't call
2515 target_terminal_inferior here.
2516 (attach_command): Call it here instead.
2518 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2520 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2522 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2523 from varobj.c, with additional checks.
2524 (c_varobj_ops): Fill in is_path_expr_parent field.
2525 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2526 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2528 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2530 (varobj_default_is_path_expr_parent): New function.
2531 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2532 (varobj_default_is_path_expr_parent): Declare new function.
2534 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2536 * infcmd.c (finish_backward): Turn internal error into normal error.
2538 2014-07-07 Pedro Alves <palves@redhat.com>
2541 * remote.c (async_handle_remote_sigint)
2542 (async_handle_remote_sigint_twice): Call
2543 gdb_call_async_signal_handler instead of
2544 mark_async_signal_handler.
2546 2014-07-07 Tom Tromey <tromey@redhat.com>
2548 * target-delegates.c: Rebuild.
2549 * target.c (target_info_record): Remove.
2550 * record.c (info_record_command): Unconditionally call
2552 * target.h (struct target_ops) <to_info_record>: Use
2553 TARGET_DEFAULT_IGNORE.
2554 (target_info_record): Remove.
2556 2014-07-07 Tom Tromey <tromey@redhat.com>
2558 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2559 TARGET_DEFAULT_NORETURN.
2560 * target.c (generic_tls_error): New function.
2561 (target_translate_tls_address): Don't search target stack.
2562 * target-delegates.c: Rebuild.
2563 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2565 * linux-thread-db.c (thread_db_get_thread_local_address):
2566 Unconditionally call beneath target.
2568 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2570 * cli/cli-logging.c (pop_output_files): Assign targerr to
2573 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2575 * MAINTAINERS (Write After Approval): Update my email address.
2577 2014-07-02 Gary Benson <gbenson@redhat.com>
2579 * proc-service.c (ps_xfer_memory): Update comment.
2580 (ps_pstop): Remove unused function.
2581 (ps_pcontinue): Likewise.
2582 (ps_lstop): Likewise.
2583 (ps_lcontinue): Likewise.
2584 (ps_lgetxregsize): Likewise.
2585 (ps_lgetxregs): Likewise.
2586 (ps_lsetxregs): Likewise.
2587 (ps_plog): Likewise.
2588 (ps_ptread): Likewise.
2589 (ps_ptwrite): Likewise.
2591 2014-07-01 Mark Wielaard <mjw@redhat.com>
2593 * dwarf2read.c (add_array_cv_type): New function.
2594 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2595 (read_tag_volatile_type): Likewise.
2597 2014-07-01 Tom Tromey <tromey@redhat.com>
2599 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2600 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2601 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2602 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2603 * command.h (cmd_cfunc_ftype): Move earlier.
2604 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2605 (add_com, add_info): Use cmd_cfunc_ftype.
2607 2014-06-30 Tom Tromey <tromey@redhat.com>
2609 * symtab.c (operator_chars): Make parameters and return type
2611 (file_matches): Make "files" const.
2612 (struct search_symbols_data) <files>: Now const.
2613 (search_symbols): Make "regexp" and "files" parameters const.
2615 (symtab_symbol_info): Remove cast.
2616 (rbreak_command): Update.
2617 * symtab.h (search_symbols): Update.
2619 2014-06-27 Yao Qi <yao@codesourcery.com>
2621 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2622 Change parameter type to 'struct thread_info *'. Caller
2624 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2626 * dummy-frame.c (struct dummy_frame_id): New.
2627 (dummy_frame_id_eq): New function.
2628 (struct dummy_frame) <id>: Change its type to 'struct
2630 (dummy_frame_push): Add parameter ptid and save it in
2632 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2634 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2636 (lookup_dummy_frame): Change parameter type to 'struct
2637 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2638 instead of frame_id_eq.
2639 (dummy_frame_pop): Add parameter ptid. Callers updated.
2640 Update comments. Compose dummy_frame_id and pass it to
2642 (dummy_frame_discard): Add parameter ptid.
2643 (dummy_frame_sniffer): Compose dummy_frame_id and call
2644 dummy_frame_id_eq instead of frame_id_eq.
2645 (fprint_dummy_frames): Print ptid.
2646 * dummy-frame.h: Remove comments.
2647 (dummy_frame_push): Add ptid in declaration.
2648 (dummy_frame_pop, dummy_frame_discard): Likewise.
2650 2014-06-26 Tom Tromey <tromey@redhat.com>
2652 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2653 * command.h (error_no_arg): Update.
2655 2014-06-26 Tom Tromey <tromey@redhat.com>
2657 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2658 (do_show_command): Make "arg" const.
2659 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2661 2014-06-26 Tom Tromey <tromey@redhat.com>
2663 * record-full.c (record_full_get_bookmark): Make "args" const.
2664 (record_full_goto_bookmark): Make "raw_bookmark" const.
2665 * record.c (record_goto): New function.
2666 (cmd_record_goto): Use it. Now static.
2667 * record.h (record_goto): Declare.
2668 (cmd_record_goto): Remove declaration.
2669 * target-delegates.c: Rebuild.
2670 * target.h (struct target_ops) <to_get_bookmark,
2671 to_goto_bookmark>: Make parameter const.
2673 2014-06-26 Tom Tromey <tromey@redhat.com>
2675 * defs.h (generic_load): Update.
2676 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2677 * monitor.c (monitor_load): Make "args" const.
2678 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2679 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2681 (mips_load): Make "file" const.
2682 * remote-sim.c (gdbsim_load): Make "args" const.
2683 * remote.c (remote_load): Make "name" const.
2684 * symfile.c (generic_load): Make "args" const.
2685 * target-delegates.c: Rebuild.
2686 * target.c (target_load): Make "arg" const.
2687 (debug_to_load): Make "args" const.
2688 * target.h (struct target_ops) <to_load>: Make parameter const.
2689 (target_load): Update.
2691 2014-06-26 Tom Tromey <tromey@redhat.com>
2694 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2695 (dwarf2_physname, read_partial_die)
2696 (guess_partial_die_structure_name, fixup_partial_die)
2697 (guess_full_die_structure_name, anonymous_struct_prefix)
2698 (dwarf2_name): Use per-BFD obstack.
2700 2014-06-26 Yao Qi <yao@codesourcery.com>
2702 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2703 dummyframe and this_id into inner block below.
2705 2014-06-26 Yao Qi <yao@codesourcery.com>
2707 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2708 with "signal_pass[0]" in the initialization of signal_pass.
2710 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2712 * record-btrace.c (record_btrace_generating_corefile)
2713 (record_btrace_prepare_to_generate_core)
2714 (record_btrace_done_generating_core): New.
2715 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2716 (record_btrace_store_registers, record_btrace_prepare_to_store):
2717 Forward request when generating a core file.
2718 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2719 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2720 to_done_generating_core.
2722 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2724 * target.h (target_ops) <to_prepare_to_generate_core>
2725 <to_done_generating_core>: New.
2726 (target_prepare_to_generate_core, target_done_generating_core): New.
2727 * target.c (target_prepare_to_generate_core)
2728 (target_done_generating_core): New.
2729 * target-delegates.c: Regenerate.
2730 * gcore.c: (write_gcore_file): Rename to ...
2731 (write_gcore_file_1): ...this.
2732 (write_gcore_file): Call target_prepare_to_generate_core
2733 and target_done_generating_core.
2735 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2737 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2738 * gcore.c (write_gcore_file): Free memory returned from
2739 make_corefile_notes.
2740 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2741 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2743 2014-06-24 Yao Qi <yao@codesourcery.com>
2745 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2746 (arm_linux_init_abi): Set skip_trampoline_code with
2747 gdbarch_skip_trampoline_code instead of
2748 find_solib_trampoline_target.
2750 2014-06-24 Yao Qi <yao@codesourcery.com>
2752 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2753 arm_skip_bx_reg returns non-zero.
2755 2014-06-24 Yao Qi <yao@codesourcery.com>
2757 * arm-tdep.c (arm_skip_bx_reg): New function.
2758 (arm_skip_stub): Call arm_skip_bx_reg.
2760 2014-06-23 Don Breazeal <donb@codesourcery.com>
2762 * MAINTAINERS: Add myself as write-after-approval maintainer.
2764 2014-06-23 Pedro Alves <palves@redhat.com>
2766 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2767 DR_CONTROL before setting DR0..DR3.
2768 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2769 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2770 bits of DR_CONTROL related to the debug register slot being
2771 disabled. If all slots are vacant, clear local slowdown as well,
2772 and assert DR_CONTROL is 0.
2774 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2776 * python/lib/gdb/command/xmethods.py
2777 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2778 current progspace only if the string "progspace" matches LOCUS_RE.
2780 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2782 Fix --with-system-readline with readline-6.3 patch 5.
2783 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2784 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2787 2014-06-20 Tom Tromey <tromey@redhat.com>
2789 * dwarf2read.c (dw2_get_real_path): Use correct type in
2791 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2793 2014-06-20 Gary Benson <gbenson@redhat.com>
2795 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2796 * common/glibc_thread_db.h: Likewise.
2797 * common/i386-cpuid.h: Likewise.
2798 * common/i386-gcc-cpuid.h: Likewise.
2799 * common/linux-btrace.h: Likewise.
2800 * common/linux-osdata.h: Likewise.
2801 * common/linux-procfs.h: Likewise.
2802 * common/linux-ptrace.h: Likewise.
2803 * common/mips-linux-watch.h: Likewise.
2804 * common/linux-btrace.c: Moved to nat.
2805 * common/linux-osdata.c: Likewise.
2806 * common/linux-procfs.c: Likewise.
2807 * common/linux-ptrace.c: Likewise.
2808 * common/mips-linux-watch.c: Likewise.
2809 * nat/gdb_thread_db.h: Moved from common.
2810 * nat/glibc_thread_db.h: Likewise.
2811 * nat/i386-cpuid.h: Likewise.
2812 * nat/i386-gcc-cpuid.h: Likewise.
2813 * nat/linux-btrace.c: Likewise.
2814 * nat/linux-btrace.h: Likewise.
2815 * nat/linux-osdata.c: Likewise.
2816 * nat/linux-osdata.h: Likewise.
2817 * nat/linux-procfs.c: Likewise.
2818 * nat/linux-procfs.h: Likewise.
2819 * nat/linux-ptrace.c: Likewise.
2820 * nat/linux-ptrace.h: Likewise.
2821 * nat/mips-linux-watch.c: Likewise.
2822 * nat/mips-linux-watch.h: Likewise.
2823 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2824 (object file files): Reordered.
2825 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2826 of glibc_thread_db.h.
2828 2014-06-20 Gary Benson <gbenson@redhat.com>
2830 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2831 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2832 (i386_dr_low): Likewise.
2833 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2834 (i386_dr_low_set_addr): Likewise.
2835 (i386_dr_low_get_addr): Likewise.
2836 (i386_dr_low_can_set_control): Likewise.
2837 (i386_dr_low_set_control): Likewise.
2838 (i386_dr_low_get_control): Likewise.
2839 (i386_dr_low_get_status): Likewise.
2840 (i386_get_debug_register_length): Likewise.
2841 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2842 (i386_dr_low): Likewise.
2843 * nat/i386-dregs.c (i386-low.h): Remove include.
2844 (i386-nat.h): Likewise.
2845 (nat/i386-dregs.h): New include.
2846 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2847 (i386_dr_low_set_addr): Likewise.
2848 (i386_dr_low_get_addr): Likewise.
2849 (i386_dr_low_can_set_control): Likewise.
2850 (i386_dr_low_set_control): Likewise.
2851 (i386_dr_low_get_control): Likewise.
2852 (i386_dr_low_get_status): Likewise.
2853 (i386_get_debug_register_length): Likewise.
2854 (debug_hw_points): Likewise.
2856 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2858 * Makefile.in (SFILES): Add d-exp.y.
2859 (YYFILES): Add d-exp.c.
2860 (YYOBJ): Add d-exp.o.
2861 (local-maintainer-clean): Delete d-exp.c.
2862 * d-exp.y: New file.
2863 * d-lang.h (d_parse): New declaration.
2864 (d_error): New declaration.
2865 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2866 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2867 PREC_ORDER operators.
2868 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2870 2014-06-19 Yao Qi <yao@codesourcery.com>
2872 * gdbthread.h (any_running): Remove the declaration.
2873 * thread.c (any_running): Remove.
2875 2014-06-19 Yao Qi <yao@codesourcery.com>
2877 * gdbthread.h (struct thread_info) <state>: Change its type to
2878 'enum thread_state'. Update comments.
2880 2014-06-19 Pedro Alves <palves@redhat.com>
2882 * gdbthread.h (ALL_THREADS): Delete.
2883 (ALL_NON_EXITED_THREADS): New macro.
2884 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2885 instead of ALL_THREADS.
2886 * infrun.c (find_thread_needs_step_over)
2887 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2888 instead of ALL_THREADS.
2889 * record-btrace.c (record_btrace_open)
2890 (record_btrace_stop_recording, record_btrace_close)
2891 (record_btrace_is_replaying, record_btrace_resume)
2892 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2893 * remote.c (append_pending_thread_resumptions): Likewise.
2894 * thread.c (thread_apply_all_command): Likewise.
2896 2014-06-19 Gary Benson <gbenson@redhat.com>
2898 * i386-nat.c (i386_stopped_by_watchpoint):
2899 Use i386_dr_stopped_by_watchpoint.
2900 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2901 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2903 2014-06-19 Gary Benson <gbenson@redhat.com>
2905 * nat/i386-dregs.c: New file.
2906 * Makefile.in (i386-dregs.o): New rule.
2907 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2908 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2909 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2910 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2911 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2912 * config/i386/go32.mh (NATDEPFILES): Likewise.
2913 * config/i386/linux.mh (NATDEPFILES): Likewise.
2914 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2915 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2916 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2917 * i386-nat.h (debug_hw_points): New declaration.
2918 * i386-nat.c (breakpoint.h): Remove include.
2919 (command.h): Likewise.
2920 (target.h): Likewise.
2921 (gdb_assert.h): Likewise.
2922 (debug_hw_points): Made nonstatic.
2923 (debug_printf): Now in i386-dregs.c.
2924 (TARGET_HAS_DR_LEN_8): Likewise.
2925 (DR_CONTROL_SHIFT): Likewise.
2926 (DR_CONTROL_SIZE): Likewise.
2927 (DR_RW_EXECUTE): Likewise.
2928 (DR_RW_WRITE): Likewise.
2929 (DR_RW_READ): Likewise.
2930 (DR_RW_IORW): Likewise.
2931 (DR_LEN_1): Likewise.
2932 (DR_LEN_2): Likewise.
2933 (DR_LEN_4): Likewise.
2934 (DR_LEN_8): Likewise.
2935 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2936 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2937 (DR_ENABLE_SIZE): Likewise.
2938 (DR_LOCAL_SLOWDOWN): Likewise.
2939 (DR_GLOBAL_SLOWDOWN): Likewise.
2940 (DR_CONTROL_RESERVED): Likewise.
2941 (I386_DR_CONTROL_MASK): Likewise.
2942 (I386_DR_VACANT): Likewise.
2943 (I386_DR_LOCAL_ENABLE): Likewise.
2944 (I386_DR_GLOBAL_ENABLE): Likewise.
2945 (I386_DR_DISABLE): Likewise.
2946 (I386_DR_SET_RW_LEN): Likewise.
2947 (I386_DR_GET_RW_LEN): Likewise.
2948 (I386_DR_WATCH_HIT): Likewise.
2949 (i386_wp_op_t): Likewise.
2950 (i386_show_dr): Likewise.
2951 (i386_length_and_rw_bits): Likewise.
2952 (i386_insert_aligned_watchpoint): Likewise.
2953 (i386_remove_aligned_watchpoint): Likewise.
2954 (i386_handle_nonaligned_watchpoint): Likewise.
2955 (i386_update_inferior_debug_regs): Likewise.
2956 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2957 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2958 (i386_region_ok_for_watchpoint):
2959 Use i386_dr_region_ok_for_watchpoint.
2960 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2962 2014-06-19 Gary Benson <gbenson@redhat.com>
2964 * i386-nat.c (i386_insert_hw_breakpoint): Use
2965 i386_insert_watchpoint.
2966 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2968 2014-06-19 Gary Benson <gbenson@redhat.com>
2970 * i386-nat.c (i386_dr_show): Renamed to
2971 i386_show_dr and made static. All uses updated.
2972 (i386_dr_length_and_rw_bits): Renamed to
2973 i386_length_and_rw_bits and made static.
2975 (i386_dr_insert_aligned_watchpoint): Renamed to
2976 i386_insert_aligned_watchpoint and made static.
2978 (i386_dr_remove_aligned_watchpoint): Renamed to
2979 i386_remove_aligned_watchpoint and made static.
2981 (i386_dr_update_inferior_debug_regs): Renamed to
2982 i386_update_inferior_debug_regs and made static.
2984 * nat/i386-dregs.h (i386_dr_show): Removed.
2985 (i386_dr_length_and_rw_bits): Likewise.
2986 (i386_dr_insert_aligned_watchpoint): Likewise.
2987 (i386_dr_remove_aligned_watchpoint): Likewise.
2988 (i386_dr_update_inferior_debug_regs): Likewise.
2990 2014-06-19 Gary Benson <gbenson@redhat.com>
2992 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2993 * configure: Regenerate.
2994 * config.in: Likewise.
2995 * main.c (signal.h): New include.
2996 (setup_alternate_signal_stack): New function.
2997 (captured_main): Call the above.
2998 * cp-support.c (signal.h): New include.
2999 (catch_demangler_crashes): New flag.
3000 (SIGJMP_BUF): New define.
3001 (SIGSETJMP): Likewise.
3002 (SIGLONGJMP): Likewise.
3003 (gdb_demangle_jmp_buf): New static global.
3004 (gdb_demangle_attempt_core_dump): Likewise.
3005 (gdb_demangle_signal_handler): New function.
3006 (gdb_demangle): If catch_demangler_crashes is set, install the
3007 above signal handler before calling bfd_demangle, and restore
3008 the original signal handler afterwards. Display the offending
3009 symbol and call demangler_warning the first time a segmentation
3011 (_initialize_cp_support): New maint set/show command.
3013 2014-06-19 Gary Benson <gbenson@redhat.com>
3015 * utils.h (resource_limit_kind): New enum.
3016 (can_dump_core): New declaration.
3017 (warn_cant_dump_core): Likewise.
3018 (dump_core): Likewise.
3019 * utils.c (dump_core): Made nonstatic. Added new
3020 parameter "limit_kind".
3021 (can_dump_core): Made nonstatic. Moved printing code to...
3022 (warn_cant_dump_core): New function.
3023 (can_dump_core_warn): Likewise.
3024 (internal_vproblem): Replace calls to can_dump_core with
3025 calls to can_dump_core_warn. Supply new argument to each.
3027 2014-06-19 Gary Benson <gbenson@redhat.com>
3029 * utils.h (demangler_vwarning): New declaration.
3030 (demangler_warning): Likewise.
3031 * utils.c (struct internal_problem)
3032 <user_settable_should_quit>: New field.
3033 <user_settable_should_dump_core>: Likewise
3034 (internal_error_problem): Add values for above new fields.
3035 (internal_warning_problem): Likewise.
3036 (demangler_warning_problem): New static global.
3037 (demangler_vwarning): New function.
3038 (demangler_warning): Likewise.
3039 (add_internal_problem_command): Selectively add commands.
3040 (_initialize_utils): New internal problem command.
3041 * maint.c (maintenance_demangler_warning): New function.
3042 (_initialize_maint_cmds): New command.
3044 2014-06-18 Tom Tromey <tromey@redhat.com>
3046 * f-valprint.c (info_common_command_for_block): Update.
3047 * symtab.h (struct general_symbol_info) <common_block>: Now
3050 2014-06-18 Tom Tromey <tromey@redhat.com>
3052 * symtab.h (struct symtab) <blockvector>: Now const.
3053 * ada-lang.c (ada_add_global_exceptions): Update.
3054 * buildsym.c (augment_type_symtab): Update.
3055 * dwarf2read.c (dw2_lookup_symbol): Update.
3056 * jit.c (finalize_symtab): Update.
3057 * jv-lang.c (add_class_symtab_symbol): Update.
3058 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3060 * objfiles.c (objfile_relocate1): Update.
3061 * psymtab.c (lookup_symbol_aux_psymtabs)
3062 (maintenance_check_psymtabs): Update.
3063 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3065 * spu-tdep.c (spu_catch_start): Update.
3066 * symmisc.c (dump_symtab_1): Update.
3067 * symtab.c (lookup_global_symbol_from_objfile)
3068 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3069 (basic_lookup_transparent_type_quick)
3070 (basic_lookup_transparent_type, find_pc_sect_symtab)
3071 (find_pc_sect_line, search_symbols): Update.
3072 * block.c (find_block_in_blockvector): Make "bl" const.
3073 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3075 (blockvector_contains_pc): Make "bv" const.
3076 (block_for_pc_sect): Update.
3077 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3078 (blockvector_contains_pc): Update.
3079 * breakpoint.c (resolve_sal_pc): Update.
3080 * inline-frame.c (block_starting_point_at): Update.
3082 2014-06-18 Tom Tromey <tromey@redhat.com>
3084 * completer.c (complete_line): Make "line_buffer" const.
3085 * completer.h (complete_line): Update.
3087 2014-06-18 Tom Tromey <tromey@redhat.com>
3089 * symtab.c (add_macro_name): Remove unneeded cast.
3091 2014-06-18 Tom Tromey <tromey@redhat.com>
3093 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3094 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3096 2014-06-18 Tom Tromey <tromey@redhat.com>
3098 * probe.c (info_probes_for_ops): Make "arg" const.
3099 * probe.h (info_probes_for_ops): Update.
3101 2014-06-18 Tom Tromey <tromey@redhat.com>
3103 * varobj.c (varobj_create): Update.
3104 * valops.c (value_of_this): Update.
3105 * tracepoint.c (add_local_symbols, scope_info): Update.
3106 * symtab.h (struct general_symbol_info) <block>: Now const.
3107 * symtab.c (skip_prologue_sal)
3108 (default_make_symbol_completion_list_break_on)
3109 (skip_prologue_using_sal): Update.
3110 * stack.h (iterate_over_block_locals)
3111 (iterate_over_block_local_vars): Update.
3112 * stack.c (print_frame_args): Update.
3113 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3115 (get_selected_block): Make return type const.
3116 * python/py-frame.c (frapy_block): Update.
3117 * python/py-block.c (gdbpy_block_for_pc): Update.
3118 * p-exp.y (%union) <bval>: Now const.
3119 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3120 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3121 * m2-exp.y (%union) <bval>: Now const.
3122 * linespec.c (get_current_search_block): Make return type const.
3123 (create_sals_line_offset, find_label_symbols): Update.
3124 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3126 (block_starting_point_at): Make "block" const.
3127 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3128 (check_exception_resume): Update.
3129 * guile/scm-frame.c (gdbscm_frame_block): Update.
3130 * guile/scm-block.c (gdbscm_lookup_block): Update.
3131 * frame.h (get_frame_block): Update.
3132 (get_selected_block): Make return type const.
3133 * frame.c (frame_id_inner): Update.
3134 * f-valprint.c (info_common_command_for_block)
3135 (info_common_command): Update.
3136 * dwarf2loc.c (dwarf2_find_location_expression)
3137 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3138 (locexpr_describe_location_piece): Update.
3139 * c-exp.y (%union) <bval>: Now const.
3140 * breakpoint.c (resolve_sal_pc): Update.
3141 * blockframe.c (get_frame_block):Make return type const.
3142 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3143 (block_innermost_frame): Update.
3144 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3145 (block_for_pc, block_for_pc_sect): Update.
3146 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3148 (block_for_pc_sect, block_for_pc): Make return type const.
3149 * ax-gdb.c (gen_expr): Update.
3150 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3151 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3152 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3153 (ada_read_var_value): Update.
3154 * ada-exp.y (struct name_info) <block>: Now const.
3156 (block_lookup): Constify.
3158 2014-06-18 Gary Benson <gbenson@redhat.com>
3160 * nat/i386-dregs.h: New file.
3161 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3162 * i386-nat.h (i386-dregs.h): New include.
3163 (DR_FIRSTADDR): Now in i386-dregs.h.
3164 (DR_LASTADDR): Likewise.
3165 (DR_NADDR): Likewise.
3166 (DR_STATUS): Likewise.
3167 (DR_CONTROL): Likewise.
3168 (i386_debug_reg_state): Likewise.
3169 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3171 2014-06-18 Don Breazeal <donb@codesourcery.com>
3173 * breakpoint.c (set_longjmp_breakpoint): Call
3174 momentary_breakpoint_from_master with additional argument.
3175 (set_longjmp_breakpoint_for_call_dummy): Call
3176 momentary_breakpoint_from_master with additional argument.
3177 (set_std_terminate_breakpoint): Call
3178 momentary_breakpoint_from_master with additional argument.
3179 (momentary_breakpoint_from_master): Add argument to function
3180 definition and use it to initialize structure member flag.
3181 (clone_momentary_breakpoint): Call
3182 momentary_breakpoint_from_master with additional argument.
3183 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3184 member flags set in momentary_breakpoint_from_master.
3186 2014-06-18 Gary Benson <gbenson@redhat.com>
3188 * i386-nat.c (i386_show_dr): Renamed to
3189 i386_dr_show and made nonstatic. All uses updated.
3190 (i386_length_and_rw_bits): Renamed to
3191 i386_dr_length_and_rw_bits and made nonstatic.
3193 (i386_insert_aligned_watchpoint): Renamed to
3194 i386_dr_insert_aligned_watchpoint and made nonstatic.
3196 (i386_remove_aligned_watchpoint): Renamed to
3197 i386_dr_remove_aligned_watchpoint and made nonstatic.
3199 (i386_update_inferior_debug_regs): Renamed to
3200 i386_dr_update_inferior_debug_regs and made nonstatic.
3203 2014-06-18 Gary Benson <gbenson@redhat.com>
3205 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3206 (i386_dr_low_can_set_control): Likewise.
3207 (i386_dr_low_set_addr): Likewise.
3208 (i386_dr_low_set_control): Likewise.
3209 (i386_dr_low_get_addr): Likewise.
3210 (i386_dr_low_get_status): Likewise.
3211 (i386_dr_low_get_control): Likewise.
3212 (i386_insert_aligned_watchpoint): Use new macros.
3213 (i386_update_inferior_debug_regs): Likewise.
3214 (i386_stopped_data_address): Likewise.
3216 2014-06-18 Gary Benson <gbenson@redhat.com>
3218 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3219 New parameter. All uses updated.
3221 2014-06-18 Gary Benson <gbenson@redhat.com>
3223 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3226 2014-06-18 Gary Benson <gbenson@redhat.com>
3228 * i386-nat.c (debug_printf): New macro.
3229 (i386_get_debug_register_length): Likewise.
3230 (TARGET_HAS_DR_LEN_8): Use above macro.
3231 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3232 and printf_unfiltered. Use phex to format values.
3234 2014-06-18 Gary Benson <gbenson@redhat.com>
3236 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3239 2014-06-18 Gary Benson <gbenson@redhat.com>
3241 * i386-nat.c: Comment changes.
3243 2014-06-18 Gary Benson <gbenson@redhat.com>
3245 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3247 2014-06-18 Gary Benson <gbenson@redhat.com>
3249 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3250 (i386_insert_aligned_watchpoint): Likewise.
3251 (i386_remove_aligned_watchpoint): Likewise.
3252 (i386_handle_nonaligned_watchpoint): Likewise.
3254 2014-06-18 Gary Benson <gbenson@redhat.com>
3256 * i386-nat.c: Whitespace changes.
3258 2014-06-17 Samuel Bronson <naesten@gmail.com>
3260 * MAINTAINERS: Update Roland McGrath's email address.
3261 Thanks to Sergio Durigan Junior for pointing out that he left
3262 Red Hat a while ago, and giving me a current address.
3264 2014-06-17 Tom Tromey <tromey@redhat.com>
3266 * utils.h (savestring): Remove declaration.
3268 2014-06-17 Tom Tromey <tromey@redhat.com>
3270 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3272 2014-06-16 Keith Seitz <keiths@redhat.com>
3275 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3276 to update the varobj if inferior_ptid is null_ptid.
3278 2014-06-16 Tom Tromey <tromey@redhat.com>
3280 * target.h (struct target_ops) <to_info_proc>: Make parameter
3282 (target_info_proc): Update.
3283 * target.c (target_info_proc): Make "args" const.
3284 * procfs.c (procfs_info_proc): Update.
3285 * linux-tdep.c (linux_info_proc): Update.
3286 (linux_core_info_proc_mappings): Make "args" const.
3287 (linux_core_info_proc): Update.
3288 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3289 * gdbarch.c: Rebuild.
3290 * gdbarch.h: Rebuild.
3291 * corelow.c (core_info_proc): Update.
3293 2014-06-16 Tom Tromey <tromey@redhat.com>
3295 * target.h (struct target_ops) <to_disconnect>: Make parameter
3297 (target_disconnect): Update.
3298 * target.c (target_disconnect): Make "args" const.
3299 * target-delegates.c: Rebuild.
3300 * remote.c (remote_disconnect): Update.
3301 * record.h (record_disconnect): Update.
3302 * record.c (record_disconnect): Update.
3303 * inf-child.c (inf_child_disconnect): Update.
3305 2014-06-16 Tom Tromey <tromey@redhat.com>
3307 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3308 * target.c (debug_to_rcmd, default_rcmd): Update.
3309 * target-delegates.c: Rebuild.
3310 * remote.c (remote_rcmd): Update.
3311 * monitor.c (monitor_rcmd): Update.
3313 2014-06-16 Pedro Alves <palves@redhat.com>
3315 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3316 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3317 have OBJF_SHARED set.
3318 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3319 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3320 instead of OBJF_USERLOADED.
3321 * objfiles.h (OBJF_SHARED): Update comment.
3322 (userloaded_objfile_contains_address_p): Rename to ...
3323 (shared_objfile_contains_address_p): ... this, and update
3325 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3327 (remove_symbol_file_command): Skip objfiles that don't have
3330 2014-06-16 Tom Tromey <tromey@redhat.com>
3332 * minsyms.h (prim_record_minimal_symbol)
3333 (prim_record_minimal_symbol_and_info): Update comments.
3335 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3337 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3338 or --without-guile, according to how GDB was built.
3340 2014-06-13 Tom Tromey <tromey@redhat.com>
3342 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3344 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3346 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3348 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3349 help_list.Pass all_commands, not -1, to help_list.
3350 * cli/cli-dump.c (dump_command, append_command)
3351 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3352 (binary_dump_command, binary_append_command): Pass all_commands,
3353 not -1, to help_list.
3354 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3356 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3358 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3360 * top.c (set_history): Pass all_commands, not -1, to help_list.
3361 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3362 all_commands, not -1, to help_list.
3363 * symfile.c (overlay_command): Pass all_commands, not -1, to
3365 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3367 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3369 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3371 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3372 not -1, to help_list.
3373 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3374 not -1, to help_list.
3375 * maint.c (maintenance_command, maintenance_info_command)
3376 (maintenance_print_command, maintenance_set_cmd): Pass
3377 all_commands, not -1, to help_list.
3378 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3380 * language.c (set_check): Pass all_commands, not -1, to help_list.
3381 * infcmd.c (unset_command): Pass all_commands, not -1, to
3383 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3385 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3387 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3389 * breakpoint.c (save_command): Pass all_commands, not -1, to
3391 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3392 all_commands, not -1, to help_list.
3394 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3396 * regcache.c (struct register_to_invalidate): New structure.
3397 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3399 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3401 2014-06-12 Yao Qi <yao@codesourcery.com>
3403 * varobj.c (varobj_get_num_children): Call
3404 varobj_is_dynamic_p.
3405 (varobj_list_children): Likewise.
3406 (varobj_update): Likewise. Update comments.
3408 2014-06-12 Yao Qi <yao@codesourcery.com>
3410 * varobj.c (varobj_pretty_printed_p): Rename to ...
3411 (varobj_is_dynamic_p): ... this. New function.
3412 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3413 (varobj_is_dynamic_p): Declare.
3414 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3415 (mi_print_value_p, varobj_update_one): Likewise.
3417 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3418 Yao Qi <yao@codesourcery.com>
3420 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3421 (varobj_get_iterator): Wrap up code for pretty-printer by
3422 "#if HAVE_PYTHON" and "#endif".
3423 (update_dynamic_varobj_children): Likewise.
3425 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3426 Yao Qi <yao@codesourcery.com>
3428 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3429 gdb_python_initialized is false. Move some code from varobj.c.
3430 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3431 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3432 (struct varobj_item): Moved to varobj-iter.h".
3433 (varobj_clear_saved_item): New function.
3434 (update_dynamic_varobj_children): Move python-related code to
3436 (free_variable): Call varobj_clear_saved_item and
3439 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3440 Yao Qi <yao@codesourcery.com>
3442 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3443 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3444 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3445 (py-varobj.o): New rule.
3446 * python/py-varobj.c: New file.
3447 * python/python-internal.h (py_varobj_get_iterator): Declare.
3448 * varobj-iter.h: New file.
3449 * varobj.c: Include "varobj-iter.h"
3450 (struct varobj) <child_iter>: Change its type from "PyObject *"
3451 to "struct varobj_iter *".
3452 <saved_item>: Likewise.
3453 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3454 [HAVE_PYTHON] (varobj_get_iterator): New function.
3455 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3456 python-specific code to python/py-varobj.c.
3457 (install_visualizer): Call varobj_iter_delete instead of
3459 * varobj.h (varobj_ensure_python_env): Declare.
3461 2014-06-12 Yao Qi <yao@codesourcery.com>
3463 * varobj.c (struct varobj_item): New structure.
3464 (create_child_with_value): Update declaration.
3465 (varobj_add_child): Replace arguments 'name' and 'value' with
3466 'item'. All callers updated.
3467 (install_dynamic_child): Likewise.
3468 (update_dynamic_varobj_children): Likewise.
3469 (varobj_add_child): Likewise.
3470 (create_child_with_value): Likewise.
3472 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3474 * NEWS: Create a new section for the next release branch.
3475 Rename the section of the current branch, now that it has
3478 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3480 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3481 * version.in: Bump version to 7.8.50.DATE-cvs.
3483 2014-06-11 Pedro Alves <palves@redhat.com>
3486 * ser-mingw.c (net_windows_socket_check_pending): New function.
3487 (net_windows_select_thread): Ignore spurious wakeups. Use
3488 net_windows_socket_check_pending.
3489 (net_windows_wait_handle): Check for pending events with
3490 ioctlsocket, through net_windows_socket_check_pending, instead of
3491 checking the socket's event.
3493 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3495 * python/python-internal.h (gdb_PyObject_GetAttrString)
3496 (gdb_PyObject_HasAttrString): New inline function definitions.
3497 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3498 char * of the second argument to PyObject_GetAttrString.
3500 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3502 * serial.c (serial_write): Fix index of character to be printed
3503 in call to serial_logchar when serial debug traces are enabled.
3505 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3507 * gdbtypes (resolve_dynamic_range): Add function description.
3509 2014-06-09 Pedro Alves <palves@redhat.com>
3511 * linux-nat.c (linux_child_follow_fork): Initialize status with
3512 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3513 inner block. Only pass the signal to PTRACE_DETACH if in pass
3516 2014-06-09 Gary Benson <gbenson@redhat.com>
3518 * common/signals.c (gdb_signal_from_host): Reorder to separate
3519 the always-available ANSI-standard signals from the signals that
3521 (do_gdb_signal_to_host): Likewise.
3522 * proc-events.c (signal_table): Likewise.
3524 2014-06-08 Hui Zhu <hui@codesourcery.com>
3526 * common/linux-ptrace.c (linux_disable_event_reporting): New
3528 * common/linux-ptrace.h (linux_disable_event_reporting): New
3530 * linux-nat.c (linux_child_follow_fork): Do a single step before
3533 2014-06-07 Keith Seitz <keiths@redhat.com>
3537 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3538 from symbol_matches_domain in symtab.c. All local callers
3539 of symbol_matches_domain updated.
3540 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3541 search STRUCT_DOMAIN.
3542 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3543 independently. standard_lookup will do that automatically.
3544 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3545 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3546 (cp_lookup_symbol_in_namespace): Likewise.
3547 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3548 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3549 may return a STRUCT_DOMAIN match.
3550 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3551 * cp-support.c: Include language.h.
3552 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3554 * psymtab.c (match_partial_symbol): Compare the requested
3555 domain with the symbol's domain directly.
3556 (lookup_partial_symbol): Likewise.
3557 * symtab.c (lookup_symbol_in_language): Explain when/why
3558 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3559 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3560 appropriate languages.
3561 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3562 and moved to ada-lang.c
3563 (lookup_block_symbol): Explain that this function only returns
3564 symbol matching the requested DOMAIN.
3565 Compare the requested domain with the symbol's domain directly.
3566 (iterate_over_symbols): Compare the requested domain with the
3567 symbol's domain directly.
3568 * symtab.h (symbol_matches_domain): Remove.
3570 2014-06-06 Doug Evans <xdje42@gmail.com>
3572 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3573 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3574 (gdbscm_guile_version_is_at_least): Declare.
3575 (gdbscm_scm_string_to_int): Declare.
3576 * guile/guile.c (gdbscm_guile_major_version): New global.
3577 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3578 (guile_datadir): New static global.
3579 (gdbscm_guile_data_directory): New function.
3580 (initialize_scheme_side): Update.
3581 (misc_guile_functions): Add guile-data-directory.
3582 (initialize_gdb_module): Fetch guile version number.
3583 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3584 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3585 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3586 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3588 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3589 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3590 * guile/scm-value.c (gdbscm_value_to_string): Only call
3591 scm_port_conversion_strategy if Guile version >= 2.0.6.
3593 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3595 * main.c (print_gdb_help): Add -q and --silent.
3597 2014-06-06 Gary Benson <gbenson@redhat.com>
3599 * common/signals.c: Remove preprocessor conditionals for
3600 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3601 SIGSEGV and SIGTERM.
3602 * proc-events.c: Likewise.
3604 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3606 * symfile.c (symfile_free_objfile): Remove restriction to
3608 * symfile-mem.c (symbol_file_add_from_memory): Call
3609 add_target_sections_of_objfile.
3611 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3613 * guile/scm-value.c (gdbscm_history_append_x): Use
3614 'vlscm_get_value_smob_arg_unsafe' instead of
3615 'vlscm_scm_to_value'.
3617 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3620 * utils.c (printchar): Don't escape at all if quoter is NUL.
3621 Update function documentation to clarify effect of parameter
3623 * remote.c (escape_buffer): Pass '\\' as the quoter to
3624 fputstrn_unfiltered.
3625 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3626 generate the output.
3627 (mi_solib_unloaded): Same.
3629 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3631 * development.sh: Delete.
3632 * Makefile.in (config.status): Adjust dependency on development.sh.
3633 * configure.ac: Adjust development.sh source call.
3634 * configure: Regenerate.
3636 2014-06-04 Doug Evans <xdje42@gmail.com>
3638 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3639 is_scheme_bkpt, spec.
3640 (bpscm_make_breakpoint_smob): Initialize new members.
3641 (gdbscm_create_breakpoint_x): Split into two ...
3642 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3643 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3644 (scheme_function breakpoint_functions): Update.
3645 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3646 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3647 register-breakpoint!.
3649 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3652 * mem-break.c (z_type_supported): Return zero if
3653 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3655 2014-06-04 Tom Tromey <tromey@redhat.com>
3657 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3658 value_from_contents_and_address_unresolved.
3659 (ada_template_to_fixed_record_type_1): Likewise.
3660 (ada_which_variant_applies): Likewise.
3661 * value.h (value_from_contents_and_address_unresolved): Declare.
3662 * value.c (value_from_contents_and_address_unresolved): New
3664 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3665 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3666 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3668 2014-06-04 Tom Tromey <tromey@redhat.com>
3670 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3672 2014-06-04 Tom Tromey <tromey@redhat.com>
3674 * procfs.c (procfs_attach): Make "args" const.
3675 * windows-nat.c (windows_attach): Make "args" const.
3676 * nto-procfs.c (procfs_attach): Make "args" const.
3677 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3678 * go32-nat.c (go32_attach): Make "args" const.
3679 * gnu-nat.c (gnu_attach): Make "args" const.
3680 * darwin-nat.c (darwin_attach): Make "args" const.
3681 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3682 * linux-nat.c (linux_nat_attach): Make "args" const.
3683 * remote.c (extended_remote_attach_1, extended_remote_attach):
3685 * target.h (struct target_ops) <to_attach>: Make "args" const.
3686 (find_default_attach): Likewise.
3687 * utils.c (parse_pid_to_attach): Make "args" const.
3688 * utils.h (parse_pid_to_attach): Update.
3690 2014-06-04 Tom Tromey <tromey@redhat.com>
3692 * target-delegates.c: Rebuild.
3693 * target.c (default_thread_address_space): New function.
3694 (target_thread_address_space): Simplify.
3695 * target.h (struct target_ops) <to_thread_address_space>: Add
3696 TARGET_DEFAULT_FUNC.
3698 2014-06-04 Doug Evans <xdje42@gmail.com>
3700 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3702 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3704 * record-btrace.c: Include event-loop.h and inf-loop.h.
3705 (record_btrace_resume_exec_dir)
3706 (record_btrace_async_inferior_event_handler)
3707 (record_btrace_handle_async_inferior_event): New.
3708 (record_btrace_open): Create async event handler.
3709 (record_btrace_close): Delete async event handler.
3710 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3711 Mark async event handler.
3712 (record_btrace_execution_direction): New.
3713 (init_record_btrace_ops): Initialize to_execution_direction.
3715 2014-06-03 Doug Evans <xdje42@gmail.com>
3717 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3718 (gdbscm_make_parameter): Ditto.
3720 2014-06-03 Doug Evans <dje@google.com>
3722 * exec.c (exec_close_1): Call clear_section_table instead of
3723 resize_section_table.
3724 (clear_section_table): New function.
3725 (resize_section_table): Make static. Rename arg num_added to
3727 * exec.h (clear_section_table): Declare.
3728 (resize_section_table): Delete.
3729 * progspace.c (release_program_space): Call clear_section_table
3730 instead of resize_section_table.
3732 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3734 * NEWS (Python Scripting): Add entry about the new xmethods
3737 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3739 * python/py-xmethods.c: New file.
3740 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3741 (objfpy_dealloc): XDECREF on the new xmethods field.
3742 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3744 (objfpy_get_xmethods): New function.
3745 (objfile_getset): New entry 'xmethods'.
3746 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3747 (pspy_dealloc): XDECREF on the new xmethods field.
3748 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3750 (pspy_get_xmethods): New function.
3751 (pspace_getset): New entry 'xmethods'.
3752 * python/python-internal.h: Add declarations for new functions.
3753 * python/python.c (_initialize_python): Invoke
3754 gdbpy_initialize_xmethods.
3755 * python/lib/gdb/__init__.py (xmethods): New
3757 * python/lib/gdb/xmethod.py: New file.
3758 * python/lib/gdb/command/xmethods.py: New file.
3760 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3762 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3763 best match method returned by find_overload_match is an xmethod.
3764 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3765 the best matching operator returned by find_overload_match is an
3767 * valops.c: #include "extension.h".
3768 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3769 Return void. The list of matching source methods is returned in
3770 "fn_list" and a vector of matching debug method workers is
3771 returned in "xm_worker_vec". Update all callers.
3772 (value_find_oload_method_list): Likewise.
3773 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3774 non-NULL, then the index of the best matching method in this
3775 vector is returned. Update all callers.
3776 (find_overload_match): Include xmethods while performing overload
3779 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3781 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3782 * extension-priv.h (struct extension_language_ops): Add the
3784 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3785 get_matching_xmethod_workers, get_xmethod_argtypes,
3786 invoke_xmethod, free_xmethod_worker,
3787 free_xmethod_worker_vec): New functions.
3788 * extension.h: #include "common/vec.h".
3789 New function declarations.
3790 (struct xmethod_worker): New struct.
3791 (VEC (xmethod_worker_ptr)): New vector type.
3792 (xmethod_worker_ptr): New typedef.
3793 (xmethod_worker_vec): Likewise.
3794 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3796 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3797 (struct builtin_type): New field "xmethod".
3798 * valarith.c (value_ptradd): Assert that the value argument is not
3800 * valops.c (value_must_coerce_to_target): Return 0 for
3801 lval_xcallable values.
3802 * value.c (struct value): New field XM_WORKER in the field
3804 (value_address, value_raw_address): Return 0 for lval_xcallable
3806 (set_value_address): Assert that the value is not an
3808 (value_free): Free the associated xmethod worker when freeing
3809 lval_xcallable values.
3810 (set_value_component_location): Assert that the WHOLE value is not
3812 (value_of_xmethod, call_xmethod): New functions.
3813 * value.h: Declare "struct xmethod_worker".
3814 Declare new functions value_of_xmethod, call_xmethod.
3816 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3817 Pedro Alves <palves@redhat.com>
3819 PR breakpoints/17000
3820 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3821 New function, extracted from software_breakpoint_inserted_here_p.
3822 (software_breakpoint_inserted_here_p): Replace factored out code
3823 by call to find_non_raw_software_breakpoint_inserted_here.
3824 (bp_target_info_copy_insertion_state): New function.
3825 (bkpt_insert_location): Handle the case of a single-step
3826 breakpoint already inserted at the same address.
3827 (bkpt_remove_location): Handle the case of a single-step
3828 breakpoint still inserted at the same address.
3829 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3830 breakpoint already inserted at the same address.
3831 (deprecated_remove_raw_breakpoint): Handle the case of a
3832 non-raw breakpoint still inserted at the same address.
3833 (find_single_step_breakpoint): New function, extracted from
3834 single_step_breakpoint_inserted_here_p.
3835 (find_single_step_breakpoint): New function,
3836 factored out from single_step_breakpoint_inserted_here_p.
3837 (single_step_breakpoint_inserted_here_p): Reimplement.
3839 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3841 Pushed by Joel Brobecker <brobecker@adacore.com>
3842 * source.c (show_substitute_path_command): Fix display of matching
3845 2014-06-03 Gary Benson <gbenson@redhat.com>
3847 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3849 2014-06-02 Doug Evans <xdje42@gmail.com>
3851 Add parameter support for Guile.
3852 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3853 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3854 (scm-param.o): New rule.
3855 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3856 (gdbscm_misc_error): Declare.
3857 (gdbscm_canonicalize_command_name): Declare.
3858 (gdbscm_scm_to_host_string): Declare.
3859 (gdbscm_scm_from_host_string): Declare.
3860 (gdbscm_initialize_parameters): Declare.
3861 * guile/guile.c (initialize_gdb_module): Call
3862 gdbscm_initialize_parameters.
3863 * guile/lib/gdb.scm: Export parameter symbols.
3864 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3865 cmdscm_canonicalize_name and made public. All callers updated.
3866 * guile/scm-exception.c (gdbscm_misc_error): New function.
3867 * guile/scm-param.c: New file.
3868 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3869 (gdbscm_scm_to_host_string): New function.
3870 (gdbscm_scm_from_host_string): New function.
3871 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3873 2014-06-02 Doug Evans <xdje42@gmail.com>
3875 Add command support for Guile.
3876 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3877 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3878 (scm-cmd.o): New rule.
3879 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3880 (gdbscm_user_error_p): Declare.
3881 (gdbscm_parse_command_name): Declare.
3882 (gdbscm_valid_command_class_p): Declare.
3883 (gdbscm_initialize_commands): Declare.
3884 * guile/guile.c (initialize_gdb_module): Call
3885 gdbscm_initialize_commands.
3886 * guile/lib/gdb.scm: Export command symbols.
3887 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3888 (throw-user-error): New function.
3889 * guile/scm-cmd.c: New file.
3890 * guile/scm-exception.c (user_error_symbol): New static global.
3891 (gdbscm_user_error_p): New function.
3892 (gdbscm_initialize_exceptions): Set user_error_symbol.
3893 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3895 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3897 * top.c (command_loop): Handle comments here...
3898 (command_line_input): ... not here.
3900 2014-06-02 Doug Evans <xdje42@gmail.com>
3902 Add progspace support for Guile.
3903 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3904 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3905 (scm-progspace.o): New rule.
3906 * guile/guile-internal.h (pspace_smob): New typedef.
3907 (psscm_pspace_smob_pretty_printers): Declare.
3908 (psscm_pspace_smob_from_pspace): Declare.
3909 (psscm_scm_from_pspace): Declare.
3910 * guile/guile.c (initialize_gdb_module): Call
3911 gdbscm_initialize_pspaces.
3912 * guile/lib/gdb.scm: Export progspace symbols.
3913 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3915 (append-pretty-printer!): Ditto.
3916 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3918 * guile/scm-progspace.c: New file.
3920 2014-06-03 Alan Modra <amodra@gmail.com>
3922 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3923 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3925 2014-06-02 Doug Evans <dje@google.com>
3927 Add support for skeletonless type units.
3928 * dwarf2read.c (struct dwarf2_per_objfile): New member
3929 n_allocated_type_units.
3930 (struct dwarf2_per_objfile) <tu_stats>: New member
3931 nr_all_type_units_reallocs.
3932 (create_signatured_type_table_from_index): Initialize
3933 n_allocated_type_units
3934 (create_all_type_units): Ditto.
3935 (add_type_unit): Move up in file. New arg slot.
3936 All callers updated. Increase space for all_type_units more
3938 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3939 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3940 (lookup_dwp_signatured_type): Ditto.
3941 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3942 All callers updated.
3943 (build_type_psymtabs_1): Leave type_unit_groups as
3944 NULL if no TUs present.
3945 (print_tu_stats): New function.
3946 (process_skeletonless_type_unit): New function.
3947 (process_dwo_file_for_skeletonless_type_units): New
3949 (process_skeletonless_type_units): New function.
3950 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3951 Call print tu_stats if debugging enabled.
3953 2014-06-02 Pedro Alves <palves@redhat.com>
3955 * breakpoint.c (build_target_command_list): Don't build a command
3956 list if we have any duplicate location that isn't a dprintf.
3958 2014-06-02 Pedro Alves <palves@redhat.com>
3960 * breakpoint.c (dprintf_breakpoint_hit): New function.
3961 (initialize_breakpoint_ops): Install it as dprintf's
3962 breakpoint_hit method.
3964 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3966 * source.c (substitute_path_rule_matches): Simplify using
3967 filename_ncmp instead of FILENAME_CMP.
3969 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3971 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3973 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3975 * configure.ac: When Guile is available, check for the
3976 availability of 'scm_new_smob'.
3977 * configure, config.h.in: Regenerate.
3978 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3981 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3983 * frame.c (struct frame_info): Add stop_string field.
3984 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3985 (get_prev_frame_always): Old content moved into
3986 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3987 TRY_CATCH, handle MEMORY_ERROR exceptions.
3988 (frame_stop_reason_string): New function definition.
3989 * frame.h (unwind_stop_reason_to_string): Extend comment to
3990 mention frame_stop_reason_string.
3991 (frame_stop_reason_string): New function declaration.
3992 * stack.c (frame_info): Switch to frame_stop_reason_string.
3993 (backtrace_command_1): Switch to frame_stop_reason_string.
3994 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3995 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3996 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3998 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4000 * frame.c (frame_stop_reason_string): Rename to ...
4001 (unwind_stop_reason_to_string): this.
4002 * frame.h (frame_stop_reason_string): Rename to ...
4003 (unwind_stop_reason_to_string): this.
4004 * stack.c (frame_info): Update call to frame_stop_reason_string.
4005 (backtrace_command_1): Likewise.
4006 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4007 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4009 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4011 * frame.c (remove_prev_frame): New function.
4012 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4015 2014-05-29 Pedro Alves <palves@redhat.com>
4017 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4018 and make it const. When a single-step decays to a continue,
4019 clear 'step', not 'hw_step'. Pass whether the caller wanted
4020 to step to user_visible_resume_ptid, not what we ask the
4023 2014-05-29 Pedro Alves <palves@redhat.com>
4025 * infrun.c (process_event_stop_test, handle_step_into_function)
4026 (handle_step_into_function_backward): Adjust.
4027 Don't set the even thread's stop_step and call stop_waiting before
4028 calling end_stepping_range. Instead do that ...
4029 (end_stepping_range): ... here. Take an ecs pointer parameter.
4031 2014-05-29 Pedro Alves <palves@redhat.com>
4033 * infrun.c (stop_stepping): Rename to ...
4034 (stop_waiting): ... this.
4035 (proceed): Update comment.
4036 (process_event_stop_test, handle_inferior_event)
4037 (handle_signal_stop, handle_step_into_function)
4038 (handle_step_into_function_backward): Update.
4040 2014-05-29 Pedro Alves <palves@redhat.com>
4042 * infcall.c (run_inferior_call): Don't check whether the current
4043 thread is running after the proceed call.
4045 2014-05-29 Pedro Alves <palves@redhat.com>
4046 Tom Tromey <tromey@redhat.com>
4048 * NEWS: Mention "maint set target-async", "set mi-async", and that
4049 background execution commands are now always available.
4050 * target.h (target_async_permitted): Update comment.
4051 * target.c (target_async_permitted, target_async_permitted_1):
4053 (set_target_async_command): Rename to ...
4054 (maint_set_target_async_command): ... this.
4055 (show_target_async_command): Rename to ...
4056 (maint_show_target_async_command): ... this.
4057 (_initialize_target): Adjust.
4058 * infcmd.c (prepare_execution_command): Make extern.
4059 * inferior.h (prepare_execution_command): Declare.
4060 * infrun.c (set_observer_mode): Leave target async alone.
4061 * mi/mi-interp.c (mi_interpreter_init): Install
4062 mi_on_sync_execution_done as sync_execution_done observer.
4063 (mi_on_sync_execution_done): New function.
4064 (mi_execute_command_input_handler): Don't print the prompt if we
4065 just started a synchronous command with an async target.
4066 (mi_on_resume): Check sync_execution before printing prompt.
4067 * mi/mi-main.h (mi_async_p): Declare.
4068 * mi/mi-main.c: Include gdbcmd.h.
4069 (mi_async_p): New function.
4070 (mi_async, mi_async_1): New globals.
4071 (set_mi_async_command, show_mi_async_command, mi_async): New
4073 (exec_continue): Call prepare_execution_command.
4074 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4075 (mi_execute_async_cli_command): Use mi_async_p.
4076 (_initialize_mi_main): Install "set mi-async". Make
4077 "target-async" a deprecated alias.
4079 2014-05-29 Pedro Alves <palves@redhat.com>
4081 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4082 (_initialize_cli_interp): Adjust.
4083 * event-loop.c: Include "observer.h".
4084 (start_event_loop): Notify 'command_error' observers instead of
4085 calling display_gdb_prompt. Remove FIXME comment.
4086 * event-top.c (display_gdb_prompt): Remove call into the
4088 * inf-loop.c: Include "observer.h".
4089 (inferior_event_handler): Notify 'command_error' observers instead
4090 of calling display_gdb_prompt.
4091 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4092 observers instead of calling display_gdb_prompt.
4093 * interps.c (interp_set): Don't call display_gdb_prompt.
4094 (current_interp_display_prompt_p): Delete.
4095 * interps.h (interp_prompt_p): Delete declaration.
4096 (interp_prompt_p_ftype): Delete.
4097 (struct interp_procs) <prompt_proc_p>: Delete field.
4098 (current_interp_display_prompt_p): Delete declaration.
4099 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4100 (_initialize_mi_interp): Adjust.
4101 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4102 'command_error' observers.
4103 (tui_on_sync_execution_done, tui_on_command_error): New
4105 (tui_display_prompt_p): Delete.
4106 (_initialize_tui_interp): Adjust.
4108 2014-05-29 Pedro Alves <palves@redhat.com>
4111 * cli/cli-interp.c: Include infrun.h and observer.h.
4112 (cli_uiout, cli_interp): New globals.
4113 (cli_on_signal_received, cli_on_end_stepping_range)
4114 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4116 (cli_interpreter_init): Install them as 'end_stepping_range',
4117 'signal_received' 'signal_exited', 'exited' and 'no_history'
4119 (_initialize_cli_interp): Remove cli_interp local.
4120 * infrun.c (handle_inferior_event): Call the several stop reason
4121 observers instead of printing the stop reason directly.
4122 (end_stepping_range): New function.
4123 (print_end_stepping_range_reason, print_signal_exited_reason)
4124 (print_exited_reason, print_signal_received_reason)
4125 (print_no_history_reason): Make static, and add an uiout
4126 parameter. Print to that instead of to CURRENT_UIOUT.
4127 * infrun.h (print_end_stepping_range_reason)
4128 (print_signal_exited_reason, print_exited_reason)
4129 (print_signal_received_reason print_no_history_reason): New
4131 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4133 <cli_uiout>: New field.
4134 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4135 uiout for CLI output. Install 'signal_received',
4136 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4138 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4139 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4140 (mi_on_no_history): New functions.
4141 (ui_out_free_cleanup): Delete function.
4142 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4143 instead use the one already stored in the MI interpreter data.
4144 (mi_ui_out): Adjust.
4145 * tui/tui-interp.c: Include infrun.h and observer.h.
4146 (tui_interp): New global.
4147 (tui_on_signal_received, tui_on_end_stepping_range)
4148 (tui_on_signal_exited, tui_on_exited)
4149 (tui_on_no_history): New functions.
4150 (tui_init): Install them as 'end_stepping_range',
4151 'signal_received' 'signal_exited', 'exited' and 'no_history'
4153 (_initialize_tui_interp): Delete tui_interp local.
4155 2014-05-29 Pedro Alves <palves@redhat.com>
4158 * linux-nat.c (linux_nat_resume_callback): Rename the second
4159 parameter to 'except'. Skip LP if it points to EXCEPT.
4160 (linux_nat_resume): Don't mark the event lwp as not stopped
4161 before resuming sibling lwps. Instead ask
4162 linux_nat_resume_callback to skip the event lwp. Mark it as not
4163 stopped after actually resuming it.
4164 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4166 (wait_lwp): Mark the lwp as stopped here.
4167 (stop_wait_callback): Mark the lwp as not stopped right after
4168 resuming it. Don't mark lwps as stopped here.
4169 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4170 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4172 2014-05-29 Pedro Alves <palves@redhat.com>
4175 * infrun.c (resume): Determine how much to resume depending on
4176 whether the caller wanted a step, not whether we can hardware step
4177 the target. Mark all threads that we intend to run as running,
4178 unless we're calling an inferior function.
4179 (normal_stop): If the thread is running an infcall, don't finish
4181 * target.c (target_resume): Don't mark threads as running here.
4183 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4185 * serial.c (_initialize_serial): Remove support for
4186 the "set remotebaud" and "show remotebaud" commands.
4187 * NEWS: Add entry documenting the removal of that command.
4189 2014-05-28 Yao Qi <yao@codesourcery.com>
4191 * charset.c: Fix typo in comments.
4193 2014-05-27 Gary Benson <gbenson@redhat.com>
4195 * utils.c (internal_vproblem): Prompt for a bug report.
4197 2014-05-26 Andy Wingo <wingo@igalia.com>
4199 * guile/scm-arch.c (arscm_mark_arch_smob):
4200 * guile/scm-block.c (bkscm_mark_block_smob)
4201 (bkscm_mark_block_syms_progress_smob):
4202 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4203 * guile/scm-exception.c (exscm_mark_exception_smob):
4204 * guile/scm-frame.c (frscm_mark_frame_smob):
4205 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4206 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4207 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4208 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4209 (ppscm_mark_pretty_printer_worker_smob):
4210 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4211 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4212 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4213 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4215 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4218 2014-05-26 Andy Wingo <wingo@igalia.com>
4219 Doug Evans <xdje42@gmail.com>
4221 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4222 empty_base_class. All uses updated.
4223 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4224 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4226 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4227 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4228 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4229 (gdbscm_gsmob_has_property_p, add_property_name)
4230 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4231 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4232 (gdb-object-has-property?, gdb-object-properties): Remove.
4233 (gdb-object-kind): Renamed from gsmob-kind.
4235 2014-05-26 Andy Wingo <wingo@igalia.com>
4237 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4238 * configure: Regenerate.
4240 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4242 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4244 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4246 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4247 (replay_memory_access_read_only, replay_memory_access_read_write)
4248 (replay_memory_access_types, replay_memory_access)
4249 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4250 (cmd_set_record_btrace, cmd_show_record_btrace)
4251 (cmd_show_replay_memory_access): New.
4252 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4253 (record_btrace_remove_breakpoint): Replace
4254 record_btrace_allow_memory_access with replay_memory_access.
4255 (_initialize_record_btrace): Add commands.
4256 * NEWS: Announce it.
4258 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4260 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4262 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4264 * MAINTAINERS (Write After Approval): Move self back from
4267 2014-05-22 Pedro Alves <palves@redhat.com>
4269 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4270 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4271 (disable_randomization, enum exec_direction_kind)
4272 (execution_direction, stop_registers, start_remote)
4273 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4274 (wait_for_inferior, normal_stop, get_last_target_status)
4275 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4276 (insert_step_resume_breakpoint_at_sal)
4277 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4278 (set_step_info, print_stop_event, signal_stop_state)
4279 (signal_print_state, signal_pass_state, signal_stop_update)
4280 (signal_print_update, signal_pass_update)
4281 (update_signals_program_target, clear_exit_convenience_vars)
4282 (displaced_step_dump_bytes, update_observer_mode)
4283 (signal_catch_update, gdb_signal_from_command): Move
4285 * infrun.h: ... to this new file.
4286 * amd64-tdep.c: Include infrun.h.
4287 * annotate.c: Include infrun.h.
4288 * arch-utils.c: Include infrun.h.
4289 * arm-linux-tdep.c: Include infrun.h.
4290 * arm-tdep.c: Include infrun.h.
4291 * break-catch-sig.c: Include infrun.h.
4292 * breakpoint.c: Include infrun.h.
4293 * common/agent.c: Include infrun.h instead of inferior.h.
4294 * corelow.c: Include infrun.h.
4295 * event-top.c: Include infrun.h.
4296 * go32-nat.c: Include infrun.h.
4297 * i386-tdep.c: Include infrun.h.
4298 * inf-loop.c: Include infrun.h.
4299 * infcall.c: Include infrun.h.
4300 * infcmd.c: Include infrun.h.
4301 * infrun.c: Include infrun.h.
4302 * linux-fork.c: Include infrun.h.
4303 * linux-nat.c: Include infrun.h.
4304 * linux-thread-db.c: Include infrun.h.
4305 * monitor.c: Include infrun.h.
4306 * nto-tdep.c: Include infrun.h.
4307 * procfs.c: Include infrun.h.
4308 * record-btrace.c: Include infrun.h.
4309 * record-full.c: Include infrun.h.
4310 * remote-m32r-sdi.c: Include infrun.h.
4311 * remote-mips.c: Include infrun.h.
4312 * remote-notif.c: Include infrun.h.
4313 * remote-sim.c: Include infrun.h.
4314 * remote.c: Include infrun.h.
4315 * reverse.c: Include infrun.h.
4316 * rs6000-tdep.c: Include infrun.h.
4317 * s390-linux-tdep.c: Include infrun.h.
4318 * solib-irix.c: Include infrun.h.
4319 * solib-osf.c: Include infrun.h.
4320 * solib-svr4.c: Include infrun.h.
4321 * target.c: Include infrun.h.
4322 * top.c: Include infrun.h.
4323 * windows-nat.c: Include infrun.h.
4324 * mi/mi-interp.c: Include infrun.h.
4325 * mi/mi-main.c: Include infrun.h.
4326 * python/py-threadevent.c: Include infrun.h.
4328 2014-05-22 Pedro Alves <palves@redhat.com>
4330 * infrun.c (handle_inferior_event): Store the exit code for
4331 --return-child-result here, instead of ...
4332 (print_exited_reason): ... here.
4334 2014-05-21 Pedro Alves <palves@redhat.com>
4337 * gdbthread.h (struct thread_control_state): New field
4339 * infrun.c (follow_fork): Copy the new thread control field to the
4341 (clear_proceed_status_thread): Clear the new thread control field.
4342 (proceed): Set the new thread control field.
4343 * interps.h (command_interp): Declare.
4344 * interps.c (command_interpreter): New global.
4345 (command_interp): New function.
4346 (interp_exec): Set `command_interpreter' while here.
4347 * cli-out.c (cli_uiout_dtor): New function.
4348 (cli_ui_out_impl): Install it.
4349 * mi/mi-interp.c: Include cli-out.h.
4350 (mi_cmd_interpreter_exec): Add comment.
4351 (restore_current_uiout_cleanup): New function.
4352 (ui_out_free_cleanup): New function.
4353 (mi_on_normal_stop): If finishing an execution command started by
4354 a CLI command, or any kind of breakpoint-like event triggered,
4355 print the stop event to the output (CLI) stream.
4356 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4358 2014-05-21 Pedro Alves <palves@redhat.com>
4360 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4361 current source line having changed.
4362 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4363 * infrun.c (normal_stop): Adjust call to
4364 set_current_sal_from_frame.
4365 * source.c (clear_lines_listed_range): New function.
4366 (set_current_source_symtab_and_line, identify_source_line): Clear
4367 the lines listed range.
4368 (line_info): Handle the first "info line" after the current source
4369 line having changed.
4370 * stack.c (print_stack_frame): Remove center handling.
4371 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4374 2014-05-21 Pedro Alves <palves@redhat.com>
4376 * inf-child.c (inf_child_mourn_inferior): New function.
4377 * inf-child.h (inf_child_mourn_inferior): New declaration.
4378 * darwin-nat.c (darwin_mourn_inferior): Use
4379 inf_child_mourn_inferior.
4380 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4381 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4382 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4383 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4384 * windows-nat.c (windows_mourn_inferior): Likewise.
4386 2014-05-21 Doug Evans <xdje42@gmail.com>
4388 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4390 2014-05-21 Doug Evans <xdje42@gmail.com>
4392 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4393 (gdbscm_out_of_range_error): Ditto.
4394 (gdbscm_memory_error): Ditto.
4395 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4396 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4397 (gdbscm_out_of_range_error): Update.
4398 (gdbscm_memory_error): Update.
4399 (gdbscm_scm_to_target_string_unsafe): Delete.
4401 2014-05-21 Pedro Alves <palves@redhat.com>
4403 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4405 (inf_child_open_target): New function.
4406 (inf_child_open): Use inf_child_open_target to push the target
4407 instead of erroring out.
4408 (inf_child_disconnect, inf_child_close)
4409 (inf_child_maybe_unpush_target): New functions.
4410 (inf_child_target): Install inf_child_disconnect and
4411 inf_child_close. Store a pointer to the returned object.
4412 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4414 * target.c (auto_connect_native_target): New global.
4415 (show_default_run_target): New function.
4416 (find_default_run_target): Return NULL if automatically connecting
4417 to the native target is disabled.
4418 (_initialize_target): Install set/show auto-connect-native-target.
4419 * NEWS: Mention "set auto-connect-native-target", and "target
4421 * linux-nat.c (super_close): New global.
4422 (linux_nat_close): Call super_close.
4423 (linux_nat_add_target): Store a pointer to the base class's
4425 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4426 inf_child_maybe_unpush.
4427 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4429 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4430 the inferior. Use inf_child_maybe_unpush_target.
4431 (inf_ttrace_attach): Don't push the target if it is already
4433 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4434 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4435 after mourning the inferior. Use inf_child_maybe_unpush_target.
4436 (darwin_attach_pid): Don't push the target if it is already
4438 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4439 mourning the inferior. Use inf_child_maybe_unpush_target.
4440 (gnu_detach): Use inf_child_maybe_unpush_target.
4441 * go32-nat.c (go32_create_inferior): Don't push the target if it
4443 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4444 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4445 (procfs_open): Rename to ...
4446 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4447 comments. Can target_preopen before changing node. Call
4448 inf_child_open_target to push the target explicitly.
4449 (procfs_attach): Don't push the target if it is already pushed.
4450 (procfs_detach): Use inf_child_maybe_unpush_target.
4451 (procfs_create_inferior): Don't push the target if it is already
4453 (nto_native_ops): New global.
4454 (procfs_open): Reimplement.
4455 (procfs_native_open): New function.
4456 (init_procfs_targets): Install procfs_native_open as to_open of
4457 "target native". Store a pointer to the "native" target in
4459 * procfs.c (procfs_attach): Don't push the target if it is already
4461 (procfs_detach): Use inf_child_maybe_unpush_target.
4462 (procfs_mourn_inferior): Only unpush the target after mourning the
4463 inferior. Use inf_child_maybe_unpush_target.
4464 (procfs_init_inferior): Don't push the target if it is already
4466 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4467 if it is already pushed.
4469 2014-05-21 Pedro Alves <palves@redhat.com>
4471 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4472 and "procfs" targets are now called "native" instead.
4474 2014-05-21 Pedro Alves <palves@redhat.com>
4476 * go32-nat.c (go32_open): Delete.
4477 (go32_target): Don't override the to_open method.
4479 2014-05-21 Pedro Alves <palves@redhat.com>
4481 * nto-procfs.c (procfs_can_run): New function.
4482 (nto_procfs_ops): New global.
4483 (init_procfs_targets): New, based on procfs_target. Install
4484 "target native" in addition to "target procfs".
4485 (_initialize_procfs): Call init_procfs_targets instead of adding
4488 2014-05-21 Pedro Alves <palves@redhat.com>
4490 * windows-nat.c (windows_target): Don't override to_shortname,
4491 to_longname or to_doc.
4493 2014-05-21 Pedro Alves <palves@redhat.com>
4495 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4498 2014-05-21 Pedro Alves <palves@redhat.com>
4500 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4501 to_shortname, to_longname or to_doc.
4503 2014-05-21 Pedro Alves <palves@redhat.com>
4505 * go32-nat.c (go32_target): Don't override to_shortname,
4506 to_longname or to_doc.
4508 2014-05-21 Pedro Alves <palves@redhat.com>
4510 * inf-child.c (inf_child_open): Remove mention of "child".
4511 (inf_child_target): Rename target to "native" instead of "child".
4513 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4515 * Makefile.in (SFILES): Delete "regset.c".
4516 (COMMON_OBS): Delete "regset.o".
4518 * regset.h (regset_alloc): Delete prototype.
4520 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4522 * sparc-linux-tdep.c (sparc32_linux_gregset)
4523 (sparc32_linux_fpregset): New static regset structures.
4524 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4525 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4527 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4528 (sparc64_linux_fpregset): New static regset structures.
4529 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4530 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4531 New static regset structures.
4532 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4533 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4534 New static regset structures.
4535 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4536 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4537 New static regset structures.
4538 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4539 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4540 New static regset structures.
4541 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4543 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4545 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4546 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4547 register maps ("regmaps") from "*regset" to "*regmap". Do this
4548 for all regmap types and variables.
4549 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4550 (sparc32_linux_supply_core_gregset)
4551 (sparc32_linux_collect_core_gregset)
4552 (sparc32_linux_supply_core_fpregset)
4553 (sparc32_linux_collect_core_fpregset): Likewise.
4554 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4555 (sparc_gregmap, sparc_fpregmap): ... these.
4556 (sparc_supply_gregset, sparc_collect_gregset)
4557 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4558 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4559 (_initialize_sparc_nat): Rename regmaps.
4560 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4561 (sparc_gregmap, sparc_fpregmap): ... these.
4562 (sparc_supply_gregset, sparc_collect_gregset)
4563 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4564 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4566 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4567 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4569 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4571 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4572 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4573 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4575 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4576 (sparc32_bsd_fpregset): Rename to...
4577 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4578 (sparc32_bsd_fpregmap): ... these.
4579 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4580 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4581 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4582 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4583 (struct sparc_gregmap, struct sparc_fpregmap)
4584 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4585 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4586 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4587 (sparc32_supply_regset, sparc32_collect_gregset)
4588 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4590 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4591 (sparc64_linux_ptrace_gregmap): ... this.
4592 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4593 (_initialize_sparc64_linux_nat): Rename regmaps.
4594 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4595 (sparc64_linux_core_gregmap): ... this.
4596 (sparc64_linux_supply_core_gregset)
4597 (sparc64_linux_collect_core_gregset)
4598 (sparc64_linux_supply_core_fpregset)
4599 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4600 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4601 (sparc64_sol2_fpregset): Rename to...
4602 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4603 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4604 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4606 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4607 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4608 (sparc64_bsd_fpregset): Rename to...
4609 (struct sparc_gregmap, sparc64_sol2_gregmap)
4610 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4611 (sparc64_bsd_fpregmap): ... these.
4612 (sparc64_supply_gregset, sparc64_collect_gregset)
4613 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4615 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4616 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4617 (sparc64fbsd_gregmap): ... this.
4618 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4619 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4621 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4622 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4623 (sparc64nbsd_collect_fpregset): Likewise.
4624 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4625 (sparc64nbsd_gregmap): ... this.
4626 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4628 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4629 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4630 (sparc64obsd_gregmap): ... this.
4631 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4633 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4634 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4635 (sparc32nbsd_gregmap): ... this.
4636 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4639 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4641 * score-tdep.c (score7_linux_gregset): New static regset
4643 (score7_linux_regset_from_core_section): Remove dynamic regset
4645 (score_gdbarch_init): Drop allocation of tdep structure.
4646 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4648 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4650 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4652 (am33_regset_from_core_section): Remove dynamic regset
4655 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4657 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4658 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4660 (mips_linux_regset_from_core_section): Remove dynamic regset
4662 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4663 'gregset64', 'fpregset', and 'fpregset64'.
4664 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4665 deleted tdep fields.
4667 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4669 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4671 (amd64_regset_from_core_section): Remove dynamic regset
4673 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4675 (amd64obsd_regset_from_core_section): Remove dynamic regset
4677 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4679 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4680 x86-common regset supply function.
4681 * i386-tdep.c (i386_collect_gregset): Make static.
4682 (i386_gregset): New global regset structure.
4683 (i386_fpregset, i386_xstateregset): New static regset structures.
4684 (i386_regset_from_core_section): Remove dynamic regset
4686 (i386_gdbarch_init): Remove initialization of tdep fields
4687 'gregset', 'fpregset', and 'xstateregset'.
4688 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4689 'fpregset', and 'xstateregset'.
4690 (i386_collect_gregset): Remove prototype.
4691 (i386_gregset): New declaration.
4692 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4694 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4699 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4700 (arm_linux_vfpregset): New static regset structures.
4701 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4703 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4704 and 'vfpregset' fields.
4706 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4708 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4709 (aarch64_linux_fpregset): New static regset structures.
4710 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4711 of regset structures.
4712 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4715 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4717 * regset.h (struct regset): Remove gdbarch field.
4718 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4719 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4720 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4722 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4723 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4724 (ppc32_linux_vsxregset): Likewise.
4725 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4726 via the regcache instead of the regset.
4727 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4728 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4729 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4730 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4733 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4735 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4736 Constify structures.
4737 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4738 (alphanbsd_aout_gregset): Likewise.
4739 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4740 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4742 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4743 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4745 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4746 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4747 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4748 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4749 * m88k-tdep.c (m88k_gregset): Likewise.
4750 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4751 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4752 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4753 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4754 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4755 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4756 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4757 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4758 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4760 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4761 * sh-tdep.h (sh_corefile_gregset): Likewise.
4762 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4763 * vax-tdep.c (vax_gregset): Likewise.
4765 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4767 Fix TLS access for -static -pthread.
4768 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4769 (try_thread_db_load_1): Initialize it.
4770 (thread_db_get_thread_local_address): Call it if LM is zero.
4771 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4772 * target.h (struct target_ops) (to_get_thread_local_address): Add
4773 load_module_addr comment.
4775 2014-05-21 Pedro Alves <palves@redhat.com>
4777 * dcache.c (dcache_read_memory_partial): If reading the cache line
4778 fails, fallback to reading just the memory the caller wanted.
4780 2014-05-20 Doug Evans <dje@google.com>
4782 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4783 instead of get_current_arch.
4785 2014-05-20 Pedro Alves <palves@redhat.com>
4787 * NEWS: Mention that compare-sections now works with all targets.
4789 * remote.c (PACKET_qCRC): New enum value.
4790 (remote_verify_memory): Don't send qCRC if the target has no
4791 execution. Use packet_support/packet_ok. If the target doesn't
4792 support the qCRC packet, fallback to a deep memory copy.
4793 (compare_sections_command): Say "target image" instead of "remote
4795 (_initialize_remote): Add PACKET_qCRC to the list of config
4796 packets that have no associated command. Extend comment.
4797 * target.c (simple_verify_memory, default_verify_memory): New
4799 * target.h (struct target_ops) <to_verify_memory>: Default to
4800 default_verify_memory.
4801 (simple_verify_memory): New declaration.
4802 * target-delegates.c: Regenerate.
4804 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4806 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4808 2014-05-20 Hui Zhu <hui@codesourcery.com>
4809 Yao Qi <yao@codesourcery.com>
4812 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4813 and change address of sp and pc.
4815 2014-05-19 Tom Tromey <tromey@redhat.com>
4817 * gdbtypes.c (rank_function): Use XNEWVEC.
4818 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4820 2014-05-19 Doug Evans <dje@google.com>
4822 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4823 build_type_unit_groups and moved closer to only caller. Remove
4824 arguments. All references updated. Remove outdated .gdb_index
4826 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4827 build_type_psymtabs_1.
4829 2014-05-19 Doug Evans <dje@google.com>
4831 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4832 n_type_unit_groups, all_type_unit_groups. All uses removed.
4833 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4834 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4835 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4836 (add_type_unit_group_to_table): Delete.
4838 2014-05-19 Doug Evans <dje@google.com>
4840 * eval.c (evaluate_subexp_standard): Add some comments.
4842 2014-05-17 Doug Evans <xdje42@gmail.com>
4844 * progspace.c (remove_program_space): Delete, unused.
4845 * progspace.h (remove_program_space): Ditto.
4847 2014-05-17 Doug Evans <xdje42@gmail.com>
4849 * inferior.c (prune_inferiors): Fix comment.
4850 (remove_inferior_command): Call prune_program_spaces.
4852 2014-05-16 Doug Evans <dje@google.com>
4854 New command line option -D.
4856 * main.c (set_gdb_data_directory): New function.
4857 (captured_main): Recognize -D. Flag error for --data-directory "".
4858 Call set_gdb_data_directory.
4859 (print_gdb_help): Print --data-directory, -D.
4860 * main.h (set_gdb_data_directory): Declare.
4861 * top.c (staged_gdb_datadir): New static global.
4862 (set_gdb_datadir): Call set_gdb_data_directory
4863 (show_gdb_datadir): New function.
4864 (init_main): Update init of data-directory parameter.
4866 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4868 Import the "dirfd" gnulib module.
4869 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4870 * gnulib/aclocal.m4: Update.
4871 * gnulib/config.in: Update.
4872 * gnulib/configure: Update.
4873 * gnulib/import/Makefile.am: Update.
4874 * gnulib/import/Makefile.in: Update.
4875 * gnulib/import/dirfd.c: New.
4876 * gnulib/import/m4/dirfd.m4: New.
4877 * gnulib/import/m4/gnulib-cache.m4: Update.
4878 * gnulib/import/m4/gnulib-comp.m4: Update.
4880 2014-05-16 Pierre Muller <muller@sourceware.org>
4881 Yao Qi <yao@codesourcery.com>
4883 * valprint.c (print_wchar): Move the code on checking whether
4884 W is a printable wide char to the default branch of switch
4885 statement below. Call wchar_printable instead of gdb_iswprint.
4887 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4889 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4890 ldr.w and ldrd instructions.
4892 2014-05-15 Doug Evans <dje@google.com>
4894 * dwarf2read.c (read_structure_type): Delete outdated comments.
4896 2014-05-14 Tom Tromey <tromey@redhat.com>
4898 * macrocmd.c (print_macro_definition): Reindent.
4900 2014-05-13 Doug Evans <xdje42@gmail.com>
4902 * python/py-cmd.c (cmdpy_completer): Add comment.
4903 (completers): Make const.
4905 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4907 * infrun.c (resume): Remove should_resume (unused). Move up
4908 declaration of resume_ptid.
4910 2014-05-13 Tom Tromey <tromey@redhat.com>
4912 * language.h (unop_type_check): Remove.
4913 (binop_type_check): Don't declare.
4915 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4917 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4918 call to regcache_raw_collect.
4920 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4922 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4923 mi_console->quote as the quoting character.
4925 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4927 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4929 2014-04-29 Tom Tromey <tromey@redhat.com>
4931 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4932 "show debug varobj".
4934 2014-05-07 Kyle McMartin <kyle@redhat.com>
4936 Pushed by Joel Brobecker <brobecker@adacore.com>.
4937 * aarch64-tdep.c (aarch64_software_single_step): New function.
4938 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4939 with aarch64_software_single_step.
4941 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4945 2014-05-05 Keith Seitz <keiths@redhat.com>
4947 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4948 variable or history value is successfully parsed.
4950 2014-05-05 Yao Qi <yao@codesourcery.com>
4951 Pedro Alves <palves@redhat.com>
4953 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4954 address of blocks that intersects the requested range. Trim
4955 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4957 * ctf.c (ctf_xfer_partial): Likewise.
4959 2014-05-05 Yao Qi <yao@codesourcery.com>
4961 * printcmd.c (display_command): Remove the check to
4962 target_has_execution.
4964 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4966 * ppcobsd-nat.c: Include "obsd-nat.h".
4967 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4969 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4971 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4973 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4974 and 16-bit signed and unsigned arguments. Update comment.
4975 (stap_parse_probe_arguments): Extend code to handle such
4976 arguments. Use warning instead of complaint to notify about
4977 unrecognized bitness.
4979 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4981 PR breakpoints/16889
4982 * stap-probe.c (stap_parse_probe_arguments): Simplify
4983 check for non-prefixed probes (i.e., probes whose
4984 arguments do not start with "N@"). Always set the
4985 argument type to a sane value.
4987 2014-05-01 David Taylor <dtaylor@emc.com>
4989 * remote.c (compare_sections_command): Add -r option to compare
4990 all loadable read-only sections.
4992 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4994 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4995 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4997 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4998 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4999 Remove unused CORE_ADDR argument. Update all callers.
5001 2014-04-29 Pedro Alves <palves@redhat.com>
5003 * remote.c (struct packet_config) <detect>: Extend comment.
5004 (add_packet_config_cmd): Don't set the config's detect or support
5006 (init_all_packet_configs): Also initialize the config's 'detect'
5008 (reset_all_packet_configs_support): New function.
5009 (remote_open_1): Call reset_all_packet_configs_support instead of
5010 init_all_packet_configs.
5011 (_initialize_remote): Initialize all packet configs. Assert that
5012 all packets have an associated command, except a few known
5015 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5017 * dwarf2read.c (read_subrange_type): Handle dynamic
5018 DW_AT_lower_bound attributes.
5020 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5022 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5023 dynamic bounds before computing its upper bound.
5024 (ada_discrete_type_low_bound): Same as above with the lower bound.
5026 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5028 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5029 range types. Adjust the array handling implementation to
5030 take advantage of this change.
5031 (resolve_dynamic_range): New function, mostly extracted from
5032 resolve_dynamic_bounds.
5033 (resolve_dynamic_array): New function, mostly extracted from
5034 resolve_dynamic_bounds.
5035 (resolve_dynamic_bounds): Delete.
5036 (resolve_dynamic_type): Reimplement. Add handling of
5037 TYPE_CODE_RANGE types.
5039 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5041 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5042 handling of parallel ___XA types.
5044 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5046 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5047 unnecessary second call to static_unwrap_type.
5049 2014-04-27 Hui Zhu <hui@codesourcery.com>
5051 * stack.c (print_frame_info): Call do_gdb_disassembly with
5052 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5054 2014-04-26 Doug Evans <xdje42@gmail.com>
5056 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5058 2014-04-25 Pedro Alves <palves@redhat.com>
5061 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5062 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5063 and newline from built string.
5064 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5065 (linux_ptrace_attach_fail_reason): ... this.
5066 * linux-nat.c (linux_nat_attach): Adjust to use
5067 linux_ptrace_attach_fail_reason.
5069 2014-04-25 Pedro Alves <palves@redhat.com>
5071 * remote.c (struct remote_state): Remove multi_process_aware,
5072 non_stop_aware, cond_tracepoints, cond_breakpoints,
5073 breakpoint_commands, fast_tracepoints, static_tracepoints,
5074 install_in_trace, disconnected_tracing,
5075 enable_disable_tracepoints, string_tracing, and
5076 augmented_libraries_svr4_read fields.
5077 (remote_multi_process_p): Move further below in the file.
5078 (struct packet_config): Add comments.
5079 (update_packet_config): Delete function.
5080 (show_packet_config_cmd): Use packet_config_support.
5081 (add_packet_config_cmd): Use NULL as set callback.
5082 (packet_ok): "set remote foo-packet"-style commands no longer
5083 change config->supported -- adjust.
5084 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5085 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5086 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5087 (PACKET_QNonStop, PACKET_multiprocess_feature)
5088 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5089 (PACKET_DisconnectedTracing_feature)
5090 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5091 (set_remote_protocol_packet_cmd): Delete function.
5092 (packet_config_support, packet_support): New functions.
5093 (set_remote_protocol_Z_packet_cmd): Don't call
5094 update_packet_config.
5095 (remote_query_attached, remote_pass_signals)
5096 (remote_program_signals, remote_threads_info)
5097 (remote_threads_extra_info, remote_start_remote): Use
5099 (remote_start_remote): Use packet_config_support and
5101 (init_all_packet_configs): Set all packets to unknown support,
5102 instead of calling update_packet_config.
5103 (remote_check_symbols): Use packet_support.
5104 (remote_supported_packet): Unconditionally set the packet config's
5106 (remote_multi_process_feature, remote_non_stop_feature)
5107 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5108 (remote_breakpoint_commands_feature)
5109 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5110 (remote_install_in_trace_feature)
5111 (remote_disconnected_tracing_feature)
5112 (remote_enable_disable_tracepoint_feature)
5113 (remote_string_tracing_feature)
5114 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5115 (remote_protocol_features): Adjust to use remote_supported_packet
5116 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5117 "ConditionalTracepoints", "ConditionalBreakpoints",
5118 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5119 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5120 "EnableDisableTracepoints", and "tracenz".
5121 (remote_query_supported): Use packet_support.
5122 (remote_open_1): Adjust.
5123 (extended_remote_attach_1): Use packet_support. Switch on the
5124 result of packet_ok instead of checking whether the packet ended
5126 (remote_vcont_resume): Use packet_support.
5127 (remote_resume, remote_stop_ns, fetch_register_using_p)
5128 (remote_prepare_to_store, store_register_using_P)
5129 (check_binary_download, remote_write_bytes): Use packet_support.
5130 (remote_vkill): Use packet_support. Switch on the result of
5131 packet_ok instead of checking whether the packet ended up
5133 (extended_remote_supports_disable_randomization): Use
5135 (extended_remote_run): Switch on the result of packet_ok instead
5136 of checking whether the packet ended up disabled.
5137 (remote_insert_breakpoint, remote_remove_breakpoint)
5138 (remote_insert_watchpoint, remote_remove_watchpoint)
5139 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5141 (remote_search_memory): Use packet_config_support.
5142 (remote_get_thread_local_address, remote_get_tib_address)
5143 (remote_hostio_send_command, remote_can_execute_reverse): Use
5145 (remote_supports_cond_tracepoints)
5146 (remote_supports_cond_breakpoints)
5147 (remote_supports_fast_tracepoints)
5148 (remote_supports_static_tracepoints)
5149 (remote_supports_install_in_trace)
5150 (remote_supports_enable_disable_tracepoint)
5151 (remote_supports_string_tracing)
5152 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5153 the packet config says the feature is enabled or disabled.
5154 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5155 (remote_get_trace_status): Use packet_support.
5156 (remote_set_disconnected_tracing): Adjust to check whether the
5157 feature is enabled with packet_support.
5158 (remote_set_trace_buffer_size, remote_use_agent)
5159 (remote_can_use_agent, remote_supports_btrace): Use
5161 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5162 Use packet_config_support.
5163 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5164 the packet config says the feature is enabled or disabled.
5165 (set_range_stepping): Use packet_support.
5167 2014-04-25 Tom Tromey <tromey@redhat.com>
5169 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5172 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5174 * NEWS: Mention support for C99 variable length arrays.
5176 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5178 * ada-lang.c (standard_exc): Expand introductory comment.
5180 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5181 Walfred Tedeschi <walfred.tedeschi@intel.com>
5183 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5185 (amd64_linux_read_description): Add code to handle AVX512 xstate
5186 mask and return respective tdesc.
5187 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5188 and features/i386/x32-avx512-linux.c.
5189 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5190 (amd64_linux_core_read_description): Add code to handle AVX512
5191 xstate mask and return respective tdesc.
5192 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5193 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5195 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5196 (tdesc_amd64_avx512_linux): New prototype.
5197 (tdesc_x32_avx512_linux): Likewise.
5198 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5199 features/i386/x32-avx512.c.
5200 (amd64_ymm_avx512_names): New register names for pseudo
5202 (amd64_ymmh_avx512_names): New register names for raw registers
5204 (amd64_k_names): New register names for K registers.
5205 (amd64_zmmh_names): New register names for ZMM raw registers.
5206 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5207 (amd64_xmm_avx512_names): New register names for XMM16-31
5209 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5211 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5212 if feature is present.
5213 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5214 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5215 (AMD64_NUM_REGS): Adjust to new number of registers.
5216 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5217 registers supplied via XSTATE by AVX512 registers.
5218 (i386_linux_read_description): Add case for AVX512.
5219 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5220 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5221 (i386_linux_core_read_description): Add case for AVX512.
5222 (i386_linux_init_abi): Install supported register note section
5224 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5226 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5227 registers to be number of zmm7h + 1.
5228 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5229 * i386-tdep.c: Include features/i386/i386-avx512.c.
5230 (i386_zmm_names): Add ZMM pseudo register names array.
5231 (i386_zmmh_names): Add ZMM raw register names array.
5232 (i386_k_names): Add K raw register names array.
5233 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5234 registers. AVX512 has 16 more ZMM registers than there are YMM
5236 (i386_zmmh_regnum_p): Add function to look up register number of
5238 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5239 (i386_k_regnum_p): Likewise for K raw registers.
5240 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5241 registers added by AVX512.
5242 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5243 registers added by AVX512.
5244 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5246 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5247 (i386_pseudo_register_name): Add ZMM pseudo registers.
5248 (i386_zmm_type): Construct and return vector registers type for ZMM
5250 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5251 ZMM0-31 pseudo registers and K registers.
5252 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5253 and YMM16-31 registers from register cache.
5254 (i386_pseudo_register_write): Add code to write K, ZMM and
5256 (i386_register_reggroup_p): Add code to include/exclude AVX512
5257 registers in/from respective register groups.
5258 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5259 registers if feature is present in xcr0.
5260 (i386_gdbarch_init): Add code to initialize AVX512 feature
5261 variables in tdep structure, wire in pseudo registers and call
5262 initialize_tdesc_i386_avx512.
5263 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5265 (i386_regnum): Add AVX512 registers.
5266 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5267 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5268 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5269 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5271 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5272 (i386_ymm_avx512_regnum_p): Likewise.
5273 (i386_k_regnum_p): Likewise.
5274 (i386_zmm_regnum_p): Likewise.
5275 (i386_zmmh_regnum_p): Likewise.
5276 * i387-tdep.c : Update year in copyright notice.
5277 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5279 (XSAVE_YMM_AVX512_ADDR): New macro.
5280 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5282 (XSAVE_XMM_AVX512_ADDR): New macro.
5283 (xsave_avx512_k_offset): New table for K register offsets in
5285 (XSAVE_AVX512_K_ADDR): New macro.
5286 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5288 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5289 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5291 (i387_collect_xsave): Add code to collect AVX512 registers from
5293 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5294 of XMM16-31 registers.
5295 (I387_NUM_K_REGS): New define for number of K registers.
5296 (I387_K0_REGNUM): New define for K0 register number.
5297 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5298 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5299 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5301 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5302 (I387_XMM16_REGNUM): New define for XMM16 register number.
5303 (I387_YMM0_REGNUM): New define for YMM0 register number.
5304 (I387_KEND_REGNUM): New define for last K register number.
5305 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5306 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5308 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5310 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5312 * features/Makefile: Add AVX512 related files.
5313 * features/i386/32bit-avx512.xml: New file.
5314 * features/i386/64bit-avx512.xml: Likewise.
5315 * features/i386/amd64-avx512-linux.c: Likewise.
5316 * features/i386/amd64-avx512-linux.xml: Likewise.
5317 * features/i386/amd64-avx512.c: Likewise.
5318 * features/i386/amd64-avx512.xml: Likewise.
5319 * features/i386/i386-avx512-linux.c: Likewise.
5320 * features/i386/i386-avx512-linux.xml: Likewise.
5321 * features/i386/i386-avx512.c: Likewise.
5322 * features/i386/i386-avx512.xml: Likewise.
5323 * features/i386/x32-avx512-linux.c: Likewise.
5324 * features/i386/x32-avx512-linux.xml: Likewise.
5325 * features/i386/x32-avx512.c: Likewise.
5326 * features/i386/x32-avx512.xml: Likewise.
5327 * regformats/i386/amd64-avx512-linux.dat: New file.
5328 * regformats/i386/amd64-avx512.dat: Likewise.
5329 * regformats/i386/i386-avx512-linux.dat: Likewise.
5330 * regformats/i386/i386-avx512.dat: Likewise.
5331 * regformats/i386/x32-avx512-linux.dat: Likewise.
5332 * regformats/i386/x32-avx512.dat: Likewise.
5333 * NEWS: Add note about new support for AVX512.
5336 2014-04-23 Pedro Alves <palves@redhat.com>
5338 * breakpoint.c (insert_bp_location): Tolerate errors if the
5339 breakpoint is set in a user-loaded objfile.
5340 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5341 location is marked shlib_disabled. If the breakpoint is set in a
5342 user-loaded objfile is a GDB-side memory breakpoint, validate it
5343 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5344 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5346 * mem-break.c (memory_validate_breakpoint): New function.
5347 * objfiles.c (userloaded_objfile_contains_address_p): New
5349 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5350 * target.h (memory_validate_breakpoint): New declaration.
5352 2014-04-23 Pedro Alves <palves@redhat.com>
5354 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5355 the breakpoint is set in a shared library, only suppress
5356 errors for software breakpoints, not hardware breakpoints.
5358 2014-04-22 Pedro Alves <palves@redhat.com>
5360 * infrun.c (schedlock_applies): New function, factored out from
5361 find_thread_needs_step_over.
5362 (find_thread_needs_step_over): Use it.
5363 (switch_back_to_stepped_thread): Always clear trap_expected if the
5364 step over is finished. Return early if scheduler locking applies.
5365 Look for the stepping thread and a potential step-over thread with
5367 (currently_stepping_or_nexting_callback): Delete.
5369 2014-04-22 Nick Clifton <nickc@redhat.com>
5371 * NEWS: Mention that ARM sim now supports tracing.
5373 2014-04-22 Yao Qi <yao@codesourcery.com>
5375 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5377 * tracefile.c (tracefile_fetch_registers): ... it. New
5379 * tracefile.h (tracefile_fetch_registers): Declare.
5380 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5381 tracefile_fetch_registers.
5383 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5386 * windows-nat.c (thread_rec): Don't display a warning when
5387 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5388 fails for any reason, set th->suspended to -1, so that we don't
5389 try to resume such a thread. Also, don't return NULL in these
5390 cases, to avoid completely ruin the session due to "PC register is
5391 not available" error.
5392 (do_windows_fetch_inferior_registers): Check errors in
5393 GetThreadContext call.
5394 (windows_continue): Accept an additional argument KILLED; if not
5395 zero, ignore errors in the SetThreadContext call, since the
5396 inferior was killed and is shutting down.
5397 (windows_resume, get_windows_debug_event)
5398 (windows_create_inferior, windows_mourn_inferior)
5399 (windows_kill_inferior): All callers of windows_continue changed
5400 to adjust to its new calling sequence.
5402 2014-04-19 Yao Qi <yao@codesourcery.com>
5404 * ctf.c (ctf_open): Call post_create_inferior.
5406 2014-04-19 Yao Qi <yao@codesourcery.com>
5408 * ctf.c (handle_id): New static variable.
5409 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5410 value. Get the declaration of event "register" and get length
5411 of field "contents".
5413 2014-04-19 Yao Qi <yao@codesourcery.com>
5415 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5417 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5419 * valops.c (oload_method_static): Remove unnecessary argument
5420 METHOD. Update all callers.
5422 2014-04-18 Pedro alves <palves@redhat.com>
5423 Tom Tromey <tromey@redhat.com>
5426 * frame.c (get_prev_frame_1): Rename to ...
5427 (get_prev_frame_always): ... this, and make extern. Adjust.
5428 (skip_artificial_frames): Use get_prev_frame_always.
5429 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5430 (get_frame_unwind_stop_reason): Adjust to rename.
5431 * frame.h (get_prev_frame_always): Declare.
5432 * inline-frame.c: Include frame.h.
5433 (inline_frame_this_id): Use get_prev_frame_always.
5435 2014-04-18 Tristan Gingold <gingold@adacore.com>
5437 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5438 code by using bfd_mach_o_get_base_address.
5440 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5442 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5443 (spu_ax_pseudo_register_collect): New function.
5444 (spu_ax_pseudo_register_push_stack): Likewise.
5445 (spu_dwarf_reg_to_regnum): Likewise.
5446 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5448 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5450 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5451 Replace FRAME argument with FRAME_ID.
5452 * gdbarch.c, gdbarch.h: Regenerate.
5453 * findvar.c (default_value_from_register): Add GDBARCH argument;
5454 replace FRAME by FRAME_ID. No longer call get_frame_id.
5455 (value_from_register): Update call to gdbarch_value_from_register.
5456 * value.h (default_value_from_register): Update prototype.
5457 * s390-linux-tdep.c (s390_value_from_register): Update interface
5458 and call to default_value_from_register.
5459 * spu-tdep.c (spu_value_from_register): Likewise.
5461 * findvar.c (address_from_register): Remove TYPE argument.
5462 Do not call value_from_register; use gdbarch_value_from_register
5463 with null_frame_id instead.
5464 * value.h (address_from_register): Update prototype.
5465 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5466 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5467 address_from_register interface change.
5469 2014-04-17 Yao Qi <yao@codesourcery.com>
5471 * gdbtypes.h: Update comments to link to types and macros'
5474 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5476 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5478 2014-04-16 Keith Seitz <keiths@redhat.com>
5481 * dwarf2read.c (skip_one_die): Check that all relative-offset
5482 sibling DIEs fall within range of the current reader's buffer.
5483 (read_partial_die): Likewise.
5485 2014-04-16 Keith Seitz <keiths@redhat.com>
5488 * cp-namespace.c (lookup_symbol_file): If the type name of
5489 `this' is NULL, return immediately.
5491 2014-04-14 Keith Seitz <keiths@redhat.com>
5494 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5495 from symbol_matches_domain in symtab.c. All local callers
5496 of symbol_matches_domain updated.
5497 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5498 search STRUCT_DOMAIN.
5499 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5500 independently. standard_lookup will do that automatically.
5501 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5502 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5503 (cp_lookup_symbol_in_namespace): Likewise.
5504 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5505 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5506 may return a STRUCT_DOMAIN match.
5507 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5508 * cp-support.c: Include language.h.
5509 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5511 * psymtab.c (match_partial_symbol): Compare the requested
5512 domain with the symbol's domain directly.
5513 (lookup_partial_symbol): Likewise.
5514 * symtab.c (lookup_symbol_in_language): Explain when/why
5515 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5516 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5517 appropriate languages.
5518 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5519 and moved to ada-lang.c
5520 (lookup_block_symbol): Explain that this function only returns
5521 symbol matching the requested DOMAIN.
5522 Compare the requested domain with the symbol's domain directly.
5523 (iterate_over_symbols): Compare the requested domain with the
5524 symbol's domain directly.
5525 * symtab.h (symbol_matches_domain): Remove.
5527 2014-04-14 Tom Tromey <tromey@redhat.com>
5530 * c-exp.y (type_aggregate_p): New function.
5531 (qualified_name, classify_inner_name): Use it.
5532 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5533 and TYPE_TARGET_TYPE of an enum type.
5534 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5536 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5537 handle TYPE_DECLARED_CLASS.
5538 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5540 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5541 * valops.c (enum_constant_from_type): New function.
5542 (value_aggregate_elt): Use it.
5543 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5546 2014-04-14 Tom Tromey <tromey@redhat.com>
5548 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5549 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5551 * value.h (value_aggregate_elt): Update.
5553 2014-04-14 Tom Tromey <tromey@redhat.com>
5555 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5557 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5559 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5560 (evaluate_subexp_standard): Pass noside argument.
5561 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5562 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5563 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5564 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5565 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5567 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5569 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5570 points to a constant blob.
5572 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5574 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5575 property and store it as the high bound and flag the range accordingly.
5576 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5577 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5578 * gdbtypes.h (enum range_flags): New enum.
5579 (struct range_bounds): Add flags member.
5581 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5583 * c-typeprint.c (c_type_print_varspec_suffix): Added
5584 check for not yet resolved high bound. If unresolved, print
5585 "variable length" string to the console instead of random
5588 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5590 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5592 (ada_template_to_fixed_record_type_1): Likewise.
5593 (ada_to_fixed_type_1): Likewise.
5594 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5595 (cp_print_value): Likewise.
5596 * d-valprint.c (dynamic_array_type): Likewise.
5597 * findvar.c (address_of_variable): Likewise.
5598 * jv-valprint.c (java_value_print): Likewise.
5599 * valops.c (value_ind): Likewise.
5600 * value.c (coerce_ref): Likewise.
5602 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5604 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5605 value and retrieve the dynamic type size.
5607 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5609 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5610 passed to sizeof is dynamic evaluate the argument to compute the length.
5612 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5613 Joel Brobecker <brobecker@adacore.com>
5615 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5616 (dwarf2_evaluate_property): New function.
5617 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5618 * dwarf2read.c (attr_to_dynamic_prop): New function.
5619 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5621 * gdbtypes.c: Include dwarf2loc.h.
5622 (is_dynamic_type): New function.
5623 (resolve_dynamic_type): New function.
5624 (resolve_dynamic_bounds): New function.
5625 (get_type_length): New function.
5626 (check_typedef): Use get_type_length to compute type length.
5627 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5628 (TYPE_LOW_BOUND_KIND): New macro.
5629 (is_dynamic_type): New function prototype.
5630 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5631 to resolve dynamic properties of the type. Update comment.
5632 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5634 2014-04-14 Richard Henderson <rth@redhat.com>
5636 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5638 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5639 Doug Evans <xdje42@gmail.com>
5641 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5642 dereference TYPE_CODE_REF values.
5644 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5646 Revert the following changes due to regressions:
5648 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5649 (dwarf2_evaluate_property): New function.
5650 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5651 * dwarf2read.c (attr_to_dynamic_prop): New function.
5652 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5654 * gdbtypes.c: Include dwarf2loc.h.
5655 (is_dynamic_type): New function.
5656 (resolve_dynamic_type): New function.
5657 (resolve_dynamic_bounds): New function.
5658 (get_type_length): New function.
5659 (check_typedef): Use get_type_length to compute type length.
5660 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5661 (TYPE_LOW_BOUND_KIND): New macro.
5662 (is_dynamic_type): New function prototype.
5663 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5664 to resolve dynamic properties of the type. Update comment.
5665 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5667 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5668 passed to sizeof is dynamic evaluate the argument to compute the length.
5670 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5671 value and retrieve the dynamic type size.
5673 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5674 (ada_template_to_fixed_record_type_1): Likewise.
5675 (ada_to_fixed_type_1): Likewise.
5676 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5677 (cp_print_value): Likewise.
5678 * d-valprint.c (dynamic_array_type): Likewise.
5679 * eval.c (evaluate_subexp_with_coercion): Likewise.
5680 * findvar.c (address_of_variable): Likewise.
5681 * jv-valprint.c (java_value_print): Likewise.
5682 * valops.c (value_ind): Likewise.
5683 * value.c (coerce_ref): Likewise.
5685 * c-typeprint.c (c_type_print_varspec_suffix): Added
5686 check for not yet resolved high bound. If unresolved, print
5687 "variable length" string to the console instead of random
5690 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5691 property and store it as the high bound and flag the range accordingly.
5692 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5693 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5694 * gdbtypes.h (enum range_flags): New enum.
5695 (struct range_bounds): Add flags member.
5697 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5698 points to a constant blob.
5700 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5701 (evaluate_subexp_standard): Pass noside argument.
5702 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5703 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5704 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5705 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5706 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5708 2014-04-11 Keith Seitz <keiths@redhat.com>
5711 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5712 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5715 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5717 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5718 (evaluate_subexp_standard): Pass noside argument.
5719 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5720 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5721 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5722 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5723 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5725 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5727 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5728 points to a constant blob.
5730 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5732 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5733 property and store it as the high bound and flag the range accordingly.
5734 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5735 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5736 * gdbtypes.h (enum range_flags): New enum.
5737 (struct range_bounds): Add flags member.
5739 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5741 * c-typeprint.c (c_type_print_varspec_suffix): Added
5742 check for not yet resolved high bound. If unresolved, print
5743 "variable length" string to the console instead of random
5746 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5748 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5749 (ada_template_to_fixed_record_type_1): Likewise.
5750 (ada_to_fixed_type_1): Likewise.
5751 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5752 (cp_print_value): Likewise.
5753 * d-valprint.c (dynamic_array_type): Likewise.
5754 * eval.c (evaluate_subexp_with_coercion): Likewise.
5755 * findvar.c (address_of_variable): Likewise.
5756 * jv-valprint.c (java_value_print): Likewise.
5757 * valops.c (value_ind): Likewise.
5758 * value.c (coerce_ref): Likewise.
5760 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5762 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5763 value and retrieve the dynamic type size.
5765 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5767 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5768 passed to sizeof is dynamic evaluate the argument to compute the length.
5770 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5772 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5773 (dwarf2_evaluate_property): New function.
5774 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5775 * dwarf2read.c (attr_to_dynamic_prop): New function.
5776 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5778 * gdbtypes.c: Include dwarf2loc.h.
5779 (is_dynamic_type): New function.
5780 (resolve_dynamic_type): New function.
5781 (resolve_dynamic_bounds): New function.
5782 (get_type_length): New function.
5783 (check_typedef): Use get_type_length to compute type length.
5784 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5785 (TYPE_LOW_BOUND_KIND): New macro.
5786 (is_dynamic_type): New function prototype.
5787 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5788 to resolve dynamic properties of the type. Update comment.
5789 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5791 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5793 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5794 declaring high/low bounds and change uses accordingly. Call
5795 create_range_type instead of create_static_range_type.
5796 * gdbtypes.c (create_range_type): New function.
5797 (create_range_type): Convert bounds into struct bound_prop and pass
5798 them to create_range_type.
5799 * gdbtypes.h (struct bound_prop): New struct.
5800 (create_range_type): New function prototype.
5801 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5802 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5803 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5805 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5807 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5809 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5810 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5811 * ada-lang.c: All uses of create_range_type updated.
5812 * coffread.c: All uses of create_range_type updated.
5813 * dwarf2read.c: All uses of create_range_type updated.
5814 * f-exp.y: All uses of create_range_type updated.
5815 * m2-valprint.c: All uses of create_range_type updated.
5816 * mdebugread.c: All uses of create_range_type updated.
5817 * stabsread.c: All uses of create_range_type updated.
5818 * valops.c: All uses of create_range_type updated.
5819 * valprint.c: All uses of create_range_type updated.
5821 2014-04-10 Pedro Alves <palves@redhat.com>
5823 * breakpoint.c (single_step_breakpoints)
5824 (single_step_gdbarch): Move up in the file.
5825 (one_breakpoint_xfer_memory): New function, factored out from ...
5826 (breakpoint_xfer_memory): ... here. Also process single-step
5829 2014-04-09 Tristan Gingold <gingold@adacore.com>
5831 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5833 (darwin_decode_exception_message): Free port only after use.
5835 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5837 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5838 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5839 when setting the size of call_length.
5841 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5843 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5844 dereference TYPE_CODE_REF values.
5846 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5848 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5849 end of warning message.
5851 2014-04-03 Doug Evans <dje@google.com>
5853 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5854 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5856 2014-04-02 Alan Modra <amodra@gmail.com>
5858 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5859 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5860 (struct symbol_file_add_from_memory_args): Add size field.
5861 (find_vdso_size): New function.
5862 (add_vsyscall_page): Attempt to find vdso size.
5864 2014-04-01 Doug Evans <dje@google.com>
5866 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5868 2014-04-01 Tristan Gingold <gingold@adacore.com>
5870 * darwin-nat.c (darwin_encode_reply): Add prototype.
5871 (darwin_decode_exception_message): Reply to unknown inferiors.
5872 (darwin_decode_message): Handle message by id. Ignore message
5873 to unknown inferior.
5874 (darwin_wait): Discard unknown messages, add debug trace.
5876 2014-03-31 Doug Evans <dje@google.com>
5878 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5881 2014-03-31 Doug Evans <dje@google.com>
5883 New option "set print symbol-loading".
5885 * solib.c (solib_read_symbols): Only print symbol loading messages
5887 (solib_add): If symbol loading is in "brief" mode, notify user
5888 symbols are being loaded.
5889 (reload_shared_libraries_1): Ditto.
5890 * symfile.c (print_symbol_loading_off): New static global.
5891 (print_symbol_loading_brief): New static global.
5892 (print_symbol_loading_full): New static global.
5893 (print_symbol_loading_enums): New static global.
5894 (print_symbol_loading): New static global.
5895 (print_symbol_loading_p): New function.
5896 (symbol_file_add_with_addrs): Only print symbol loading messages
5898 (_initialize_symfile): Register "print symbol-loading" set/show
5900 * symfile.h (print_symbol_loading_p): Declare.
5902 2014-03-30 Doug Evans <xdje42@gmail.com>
5904 * infrun.c (set_last_target_status): New function.
5905 (handle_inferior_event): Call it.
5907 2014-03-30 Doug Evans <xdje42@gmail.com>
5909 * inferior.h (enum stop_kind): Improve comment.
5911 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5913 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5914 a reference, strip the reference layer before calling
5915 the lang_ops value_has_mutated callback.
5917 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5919 Remove some globals from our parser.
5920 * language.c (unk_lang_parser): Add "struct parser_state"
5922 * language.h (struct language_defn) <la_parser>: Likewise.
5923 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5924 (initialize_expout): Add "struct parser_state" argument.
5925 Rewrite function to use the parser state.
5926 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5927 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5928 write_exp_elt_longcst, write_exp_elt_dblcst,
5929 write_exp_elt_decfloatcst, write_exp_elt_type,
5930 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5931 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5932 write_dollar_variable): Likewise.
5933 (parse_exp_in_context_1): Use parser state.
5934 (insert_type_address_space): Add "struct parser_state" argument.
5936 (increase_expout_size): New function.
5937 * parser-defs.h: Forward declare "struct language_defn" and
5938 "struct parser_state".
5939 (expout, expout_size, expout_ptr): Remove extern declarations.
5940 (parse_gdbarch, parse_language): Rewrite macro declarations to
5941 accept the parser state.
5942 (struct parser_state): New struct.
5943 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5944 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5945 write_exp_elt_decfloatcst, write_exp_elt_type,
5946 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5947 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5948 write_exp_msymbol, write_dollar_variable,
5949 mark_struct_expression, insert_type_address_space): Add "struct
5950 parser_state" argument.
5951 (increase_expout_size): New function.
5952 * utils.c (do_clear_parser_state): New function.
5953 (make_cleanup_clear_parser_state): Likewise.
5954 * utils.h (make_cleanup_clear_parser_state): New function
5956 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5957 Update calls to write_exp* in order to pass the parser state.
5958 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5959 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5960 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5961 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5962 * stap-probe.c (stap_parse_register_operand): Likewise.
5963 (stap_parse_single_operand): Likewise.
5964 (stap_parse_argument_1): Likewise.
5965 (stap_parse_argument): Use parser state.
5966 * stap-probe.h: Include "parser-defs.h".
5967 (struct stap_parse_info) <pstate>: New field.
5968 * c-exp.y (parse_type): Rewrite to use parser state.
5969 (yyparse): Redefine to c_parse_internal.
5970 (pstate): New global variable.
5971 (parse_number): Add "struct parser_state" argument.
5972 (write_destructor_name): Likewise.
5973 (type_exp): Update calls to write_exp* and similars in order to
5975 (exp1, exp, variable, qualified_name, space_identifier,
5976 typename, typebase): Likewise.
5977 (write_destructor_name, parse_number, lex_one_token,
5978 classify_name, classify_inner_name, c_parse): Add "struct
5979 parser_state" argument. Update function to use parser state.
5980 * c-lang.h: Forward declare "struct parser_state".
5981 (c_parse): Add "struct parser_state" argument.
5982 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5983 (yyparse): Redefine macro to ada_parse_internal.
5984 (pstate): New variable.
5985 (write_int, write_object_renaming, write_var_or_type,
5986 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5987 type_int, type_long, type_long_long, type_float, type_double,
5988 type_long_double, type_char, type_boolean, type_system_address):
5989 Add "struct parser_state" argument.
5990 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5991 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5992 var_or_type, aggregate, aggregate_component_list,
5993 positional_list, others, component_group,
5994 component_associations): Update calls to write_exp* and similar
5995 functions in order to use parser state.
5996 (ada_parse, write_var_from_sym, write_int,
5997 write_exp_op_with_string, write_object_renaming,
5998 find_primitive_type, write_selectors, write_ambiguous_var,
5999 write_var_or_type, write_name_assoc, type_int, type_long,
6000 type_long_long, type_float, type_double, type_long_double,
6001 type_char, type_boolean, type_system_address): Add "struct
6002 parser_state" argument. Adjust function to use parser state.
6003 * ada-lang.c (parse): Likewise.
6004 * ada-lang.h: Forward declare "struct parser_state".
6005 (ada_parse): Add "struct parser_state" argument.
6006 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6007 calls to both functions.
6008 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6010 (yyparse): Redefine macro to f_parse_internal.
6011 (pstate): New variable.
6012 (parse_number): Add "struct parser_state" argument.
6013 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6014 and similars in order to use parser state.
6015 (parse_number): Adjust code to use parser state.
6017 (f_parse): New function.
6018 * f-lang.h: Forward declare "struct parser_state".
6019 (f_parse): Add "struct parser_state" argument.
6020 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6022 (yyparse): Redefine macro for java_parse_internal.
6023 (pstate): New variable.
6024 (push_expression_name, push_expression_name, insert_exp): Add
6025 "struct parser_state" argument.
6026 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6027 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6028 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6029 PostIncrementExpression, PostDecrementExpression,
6030 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6031 UnaryExpressionNotPlusMinus, CastExpression,
6032 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6033 RelationalExpression, EqualityExpression, AndExpression,
6034 ExclusiveOrExpression, InclusiveOrExpression,
6035 ConditionalAndExpression, ConditionalOrExpression,
6036 ConditionalExpression, Assignment, LeftHandSide): Update
6037 calls to write_exp* and similars in order to use parser state.
6038 (parse_number): Ajust code to use parser state.
6040 (java_parse): New function.
6041 (push_variable): Add "struct parser_state" argument. Adjust
6042 code to user parser state.
6043 (push_fieldnames, push_qualified_expression_name,
6044 push_expression_name, insert_exp): Likewise.
6045 * jv-lang.h: Forward declare "struct parser_state".
6046 (java_parse): Add "struct parser_state" argument.
6047 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6049 (yyparse): Redefine macro to m2_parse_internal.
6050 (pstate): New variable.
6051 (type_exp, exp, fblock, variable, type): Update calls to
6052 write_exp* and similars to use parser state.
6054 (m2_parse): New function.
6055 * m2-lang.h: Forward declare "struct parser_state".
6056 (m2_parse): Add "struct parser_state" argument.
6057 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6058 * objc-lang.h: Forward declare "struct parser_state".
6059 (end_msglist): Add "struct parser_state" argument.
6060 * p-exp.y (parse_type): Rewrite macro to use parser state.
6061 (yyparse): Redefine macro to pascal_parse_internal.
6062 (pstate): New variable.
6063 (parse_number): Add "struct parser_state" argument.
6064 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6065 write_exp* and similars in order to use parser state.
6066 (parse_number, yylex): Adjust code to use parser state.
6067 (pascal_parse): New function.
6068 * p-lang.h: Forward declare "struct parser_state".
6069 (pascal_parse): Add "struct parser_state" argument.
6070 * go-exp.y (parse_type): Rewrite macro to use parser state.
6071 (yyparse): Redefine macro to go_parse_internal.
6072 (pstate): New variable.
6073 (parse_number): Add "struct parser_state" argument.
6074 (type_exp, exp1, exp, variable, type): Update calls to
6075 write_exp* and similars in order to use parser state.
6076 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6077 to use parser state.
6078 (go_parse): Likewise.
6079 * go-lang.h: Forward declare "struct parser_state".
6080 (go_parse): Add "struct parser_state" argument.
6082 2014-03-27 Doug Evans <dje@google.com>
6084 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6086 2014-03-27 Doug Evans <dje@google.com>
6088 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6089 Remove argument abbrev_section. All callers updated.
6091 2014-03-27 Doug Evans <dje@google.com>
6093 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6094 addr_base, ranges_base.
6096 2014-03-26 Keith Seitz <keiths@redhat.com>
6098 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6099 types, not VAR_DOMAIN.
6101 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6103 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6105 * features/nios2-linux.c: Regenerated.
6106 * features/nios2.c: Regenerated.
6108 2014-03-25 Pedro Alves <palves@redhat.com>
6110 * cli/cli-script.c (script_from_file): Force the interpreter to
6113 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6115 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6116 small stack allocation.
6118 2014-03-24 Tristan Gingold <gingold@adacore.com>
6120 * darwin-nat.c (exc_server): Remove unused prototype.
6121 (darwin_dump_message): Correctly display data on x86_64.
6122 (darwin_encode_reply): Fix style.
6123 Add comments and fix indentation.
6125 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6127 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6129 2014-03-22 Doug Evans <xdje42@gmail.com>
6131 * infcmd.c: Whitespace fixes.
6132 (interrupt_command): Merge two function comments into one.
6134 2014-03-22 Doug Evans <xdje42@gmail.com>
6136 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6139 2014-03-22 Yao Qi <yao@codesourcery.com>
6141 * remote.c (target_read_live_memory): Remove.
6142 (memory_xfer_live_readonly_partial): Rename it to
6143 remote_xfer_live_readonly_partial. Remove argument 'object'.
6144 All callers updated. Call remote_read_bytes_1
6145 instead of target_read_live_memory.
6146 * tracepoint.c (set_traceframe_number): Remove.
6147 (make_cleanup_restore_traceframe_number): Likewise .
6148 * tracepoint.h (set_traceframe_number): Remove declaration.
6149 (make_cleanup_restore_traceframe_number): Likewise.
6151 2014-03-22 Yao Qi <yao@codesourcery.com>
6153 * remote.c (remote_read_bytes): Move code on reading from the
6155 (remote_read_bytes_1): ... here. New function.
6157 2014-03-22 Yao Qi <yao@codesourcery.com>
6159 * ctf.c (ctf_xfer_partial): Check the return value of
6160 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6161 return TARGET_XFER_UNAVAILABLE.
6162 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6163 * target.c (target_read_live_memory): Move it to remote.c.
6164 (memory_xfer_live_readonly_partial): Likewise.
6165 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6166 * remote.c (target_read_live_memory): Moved from target.c.
6167 (memory_xfer_live_readonly_partial): Likewise.
6168 (remote_read_bytes): Factored out from
6169 memory_xfer_partial_1.
6171 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6173 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6176 2014-03-21 Pedro Alves <palves@redhat.com>
6178 * infrun.c (normal_stop): Extend comment.
6180 2014-03-21 Hui Zhu <hui@codesourcery.com>
6181 Pedro Alves <palves@redhat.com>
6183 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6185 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6186 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6187 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6189 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6191 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6192 `z' formatted output modifier.
6194 2014-03-20 Tom Tromey <tromey@redhat.com>
6195 Sergio Durigan Junior <sergiodj@redhat.com>
6197 * probe.c (parse_probes): Turn assert into an ordinary error.
6198 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6199 exceptions when parsing probes. Rearrange the code for clarity.
6201 2014-03-20 Tom Tromey <tromey@redhat.com>
6204 * top.c (execute_command): Only dispatch events if the command
6207 2014-03-20 Tom Tromey <tromey@redhat.com>
6210 * infcall.c: Include event-top.h.
6211 (run_inferior_call): Call async_disable_stdin if needed.
6213 2014-03-20 Pedro Alves <palves@redhat.com>
6215 * infrun.c (prepare_to_proceed): Delete.
6216 (thread_still_needs_step_over): New function.
6217 (find_thread_needs_step_over): New function.
6218 (proceed): If the current thread needs a step-over, set its
6219 steping_over_breakpoint flag. Adjust to use
6220 find_thread_needs_step_over instead of prepare_to_proceed.
6221 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6222 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6224 (switch_back_to_stepped_thread): Step over breakpoints of all
6225 threads not the stepping thread, before switching back to the
6228 2014-03-20 Pedro Alves <palves@redhat.com>
6230 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6232 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6233 * infrun.c (saved_singlestep_ptid)
6234 (stepping_past_singlestep_breakpoint): Delete.
6235 (resume): Remove stepping_past_singlestep_breakpoint handling.
6236 (proceed): Store the prev_pc of the stepping thread too.
6237 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6239 (enum infwait_states): Delete infwait_thread_hop_state.
6240 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6242 (handle_inferior_event): Adjust.
6243 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6244 handling and the thread-hop code. Before removing single-step
6245 breakpoints, check whether the thread hit a single-step breakpoint
6246 of another thread. If it did, the trap is not a random signal.
6247 (switch_back_to_stepped_thread): If the event thread hit a
6248 single-step breakpoint, unblock it before switching to the
6249 stepping thread. Handle the case of the stepped thread having
6251 (keep_going): Handle the case of the current thread moving past a
6252 single-step breakpoint.
6254 2014-03-20 Pedro Alves <palves@redhat.com>
6257 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6258 are being stepped over.
6259 (breakpoint_address_match): Make extern.
6260 * breakpoint.h (breakpoint_address_match): New declaration.
6261 * inferior.h (stepping_past_instruction_at): New declaration.
6262 * infrun.c (struct step_over_info): New type.
6263 (step_over_info): New global.
6264 (set_step_over_info, clear_step_over_info)
6265 (stepping_past_instruction_at): New functions.
6266 (handle_inferior_event): Clear the step-over info when
6267 trap_expected is cleared.
6268 (resume): Remove now stale comment.
6269 (clear_proceed_status): Clear step-over info.
6270 (proceed): Adjust step-over handling to set or clear the step-over
6271 info instead of removing all breakpoints.
6272 (handle_signal_stop): When setting up a thread-hop, don't remove
6274 (stop_stepping): Clear step-over info.
6275 (keep_going): Adjust step-over handling to set or clear step-over
6276 info and then always inserting breakpoints, instead of removing
6277 all breakpoints when stepping over one.
6279 2014-03-20 Pedro Alves <palves@redhat.com>
6281 * infrun.c (previous_inferior_ptid): Adjust comment.
6282 (deferred_step_ptid): Delete.
6283 (infrun_thread_ptid_changed, prepare_to_proceed)
6284 (init_wait_for_inferior): Adjust.
6285 (handle_signal_stop): Delete deferred_step_ptid handling.
6287 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6290 * defs.h (sync_quit_force_run): New declaration.
6291 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6292 * event-top.c (async_sigterm_handler): New declaration.
6293 (async_sigterm_token): New variable.
6294 (async_init_signals): Create also async_sigterm_token.
6295 (async_sigterm_handler): New function.
6296 (sync_quit_force_run): New variable.
6297 (handle_sigterm): Replace quit_force call by other calls.
6298 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6300 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6302 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6303 offset into SPE pseudo registers.
6305 2014-03-18 Pedro Alves <palves@redhat.com>
6308 * inferior.h (print_stop_event): Declare.
6309 * infrun.c (print_stop_event): New, factored out from ...
6310 (normal_stop): ... this.
6311 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6312 of bpstat_print/print_stack_frame.
6314 2014-03-17 Tom Tromey <tromey@redhat.com>
6316 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6318 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6320 * ada-lang.c (decode_constrained_packed_array): Perform a
6321 minimal coercion for reference with coerce_ref instead of
6324 2014-03-17 Tristan Gingold <gingold@adacore.com>
6326 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6327 (darwin_solib_create_inferior_hook): Emit a warning if version
6330 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6332 * python/py-value.c (get_field_flag): Cast flag_name argument to
6333 PyObject_GetAttrString to support Python 2.4.
6335 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6337 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6338 (Global Maintainers): Remove Jan Kratochvil.
6340 2014-03-14 Pedro Alves <palves@redhat.com>
6342 * inferior.h (terminal_ours_for_output): Rename to ...
6343 (child_terminal_ours_for_output): ... this.
6344 (terminal_save_ours): Rename to ...
6345 (child_terminal_save_ours): ... this.
6346 (terminal_ours): Rename to ...
6347 (child_terminal_ours): ... this.
6348 (terminal_inferior): Rename to ...
6349 (child_terminal_inferior): ... this.
6350 (terminal_init_inferior): Rename to ...
6351 (child_terminal_init_inferior): ... this.
6352 (terminal_init_inferior_with_pgrp): Rename to ...
6353 (child_terminal_init_inferior_with_pgrp): ... this.
6354 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6355 (child_terminal_init_with_pgrp): ... this.
6356 (terminal_save_ours): Rename to ...
6357 (child_terminal_save_ours): ... this.
6358 (terminal_init_inferior): Rename to ...
6359 (child_terminal_init): ... this. Adjust.
6360 (terminal_inferior): Rename to ...
6361 (child_terminal_inferior): ... this.
6362 (terminal_ours_for_output): Rename to ...
6363 (child_terminal_ours_for_output): ... this. Adjust.
6364 (terminal_ours): Rename to ...
6365 (child_terminal_ours): ... this.
6366 (terminal_ours_1): Rename to ...
6367 (child_terminal_ours_1): ... this. Adjust.
6368 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6369 * windows-nat.c (do_initial_windows_stuff): Adjust.
6370 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6371 (gnu_terminal_init): ... this. Adjust.
6372 (gnu_target): Adjust.
6373 * inf-child.c (inf_child_target): Adjust.
6375 2014-03-13 Doug Evans <xdje42@gmail.com>
6378 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6381 2014-03-13 Doug Evans <xdje42@gmail.com>
6383 * value.c (record_latest_value): Call release_value_or_incref
6384 instead of release_value.
6386 2014-03-13 Pedro Alves <palves@redhat.com>
6388 * procfs.c (procfs_target): Don't override to_shortname,
6389 to_longname or to_doc.
6391 2014-03-13 Pedro Alves <palves@redhat.com>
6393 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6394 Unix in user visible strings.
6396 2014-03-12 Stan Shebs <stan@codesourcery.com>
6398 * gdbtypes.h: Annotate comments for Doxygen, add a page
6399 block comment with some general info.
6401 2014-03-12 Pedro Alves <palves@redhat.com>
6403 * infcmd.c (prepare_execution_command): New function, factored out
6404 from several execution commands.
6405 (run_command_1, continue_command, step_1, jump_command)
6406 (signal_command, until_command, advance_command, finish_command)
6407 (attach_command): Use prepare_execution_command.
6409 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6411 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6414 (struct arm_linux_thread_points): Removed.
6415 (struct arm_linux_process_info): New.
6416 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6417 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6418 (arm_linux_find_breakpoints_by_tid): Removed.
6419 (struct arch_lwp_info): New.
6420 (arm_linux_find_process_pid): New functions.
6421 (arm_linux_add_process): New functions.
6422 (arm_linux_process_info_get): New functions.
6423 (arm_linux_forget_process): New function.
6424 (arm_linux_get_debug_reg_state): New function.
6425 (struct update_registers_data): New.
6426 (update_registers_callback): New function.
6427 (arm_linux_insert_hw_breakpoint1): Updated.
6428 (arm_linux_remove_hw_breakpoint1): Updated.
6429 (arm_linux_insert_hw_breakpoint): Updated.
6430 (arm_linux_remove_hw_breakpoint): Updated.
6431 (arm_linux_insert_watchpoint): Updated.
6432 (arm_linux_remove_watchpoint): Updated.
6433 (arm_linux_new_thread): Updated.
6434 (arm_linux_prepare_to_resume): New function.
6435 (arm_linux_new_fork): New function.
6436 (_initialize_arm_linux_nat): Updated.
6438 2014-03-12 Pedro Alves <palves@redhat.com>
6440 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6442 2014-03-12 Tom Tromey <tromey@redhat.com>
6444 * inf-child.c (return_zero): New function.
6445 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6446 * aix-thread.c (aix_thread_inferior_created): New function.
6447 (aix_thread_attach): Remove.
6448 (init_aix_thread_ops): Don't set to_attach.
6449 (_initialize_aix_thread): Register inferior_created observer.
6450 * corelow.c (init_core_ops): Don't set to_attach or
6452 * exec.c (init_exec_ops): Don't set to_attach or
6454 * infcmd.c (run_command_1): Use find_run_target. Make direct
6456 (attach_command): Use find_attach_target. Make direct target
6458 * record-btrace.c (init_record_btrace_ops): Don't set
6460 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6462 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6463 set to_create_inferior.
6464 * target.c (complete_target_initialization): Add assertion.
6465 (target_create_inferior): Remove.
6466 (find_default_attach, find_default_create_inferior): Remove.
6467 (find_attach_target, find_run_target): New functions.
6468 (find_default_is_async_p, find_default_can_async_p)
6469 (target_supports_non_stop, target_attach): Remove.
6470 (init_dummy_target): Don't set to_create_inferior or
6471 to_supports_non_stop.
6472 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6473 TARGET_DEFAULT_FUNC.
6474 <to_create_inferior>: Add comment.
6475 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6476 TARGET_DEFAULT_RETURN.
6477 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6478 (find_attach_target, find_run_target): Declare.
6479 (target_create_inferior): Remove.
6480 (target_has_execution_1): Update comment.
6481 (target_supports_non_stop): Remove.
6482 * target-delegates.c: Rebuild.
6484 2014-03-12 Pedro Alves <palves@redhat.com>
6486 * inf-child.h: Update comment to not mention Unix.
6488 2014-03-12 Pedro Alves <palves@redhat.com>
6490 * inf-child.c: Update top comment to not mention Unix. Add
6491 generic comment describing how this target is meant to be used.
6492 (inf_child_post_attach, inf_child_post_startup_inferior)
6493 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6496 2014-03-12 Pedro Alves <palves@redhat.com>
6498 * nto-procfs.c: Include inf-child.h.
6499 (procfs_ops): Delete global.
6500 (procfs_can_run): Delete method.
6501 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6502 target pointer instead of referencing procfs_ops.
6503 (procfs_prepare_to_store): Delete.
6504 (init_procfs_ops): Delete function.
6505 (procfs_target): New function, based on init_procfs_ops, but
6506 inherit inf_child_target.
6507 (_initialize_procfs): Use procfs_target.
6509 2014-03-12 Pedro Alves <palves@redhat.com>
6511 * windows-nat.c: Include inf-child.h.
6512 (windows_ops): Delete global.
6513 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6515 (init_windows_ops): Delete function.
6516 (windows_target): New function, based on init_windows_ops, but
6517 inherit inf_child_target.
6518 (_initialize_windows_nat): Use windows_target. Install x86
6519 specific target methods here.
6521 2014-03-10 Doug Evans <xdje42@gmail.com>
6523 * guile/guile.c (call_initialize_gdb_module): New function.
6524 (initialize_guile): Replace call to scm_init_guile with call to
6527 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6529 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6530 in call to TYPE_CODE macro.
6532 2014-03-10 Jerome Guitton <guitton@adacore.com>
6534 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6535 Resolve tagged types to full view.
6537 2014-03-10 Hui Zhu <hui@codesourcery.com>
6539 * target.h (target_insert_breakpoint): Remove "hardware" from its
6542 2014-03-07 Doug Evans <dje@google.com>
6544 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6546 2014-03-07 Doug Evans <dje@google.com>
6548 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6549 Remove unused local comp_dir_attr. Assert exactly one of
6550 stub_comp_unit_die, stub_comp_dir is non-NULL.
6552 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6554 * target.h (complete_target_initialization, add_target):
6557 2014-03-07 Pedro Alves <palves@redhat.com>
6559 * go32-nat.c: Include inf-child.h.
6560 (go32_ops): Delete global.
6561 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6563 (go32_create_inferior): Push the passed in target pointer instead
6564 of referencing go32_ops.
6565 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6566 (go32_target): New function, based on init_go32_ops, but inherit
6568 (_initialize_go32_nat): Use go32_target. Move parts of
6571 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6573 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6574 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6575 SYMBOL_VALUE_ADDRESS.
6576 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6578 2014-03-06 Yao Qi <yao@codesourcery.com>
6580 * breakpoint.c (get_tracepoint_by_number): Remove argument
6581 optional_p. All callers updated. Adjust comments. Update
6583 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6585 2014-03-06 Yao Qi <yao@codesourcery.com>
6587 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6588 early if get_number returns zero. Use 'p' instead of 'args'.
6590 2014-03-06 Yao Qi <yao@codesourcery.com>
6592 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6595 2014-03-06 Yao Qi <yao@codesourcery.com>
6597 PR breakpoints/16508
6598 * tracepoint.c (check_trace_running): New function.
6599 (trace_find_command): Move code to check_trace_running and
6600 call check_trace_running.
6601 (trace_find_pc_command): Likewise.
6602 (trace_find_tracepoint_command): Likewise.
6603 (trace_find_line_command): Likewise.
6604 (trace_find_range_command): Likewise.
6605 * tracepoint.h (check_trace_running): Likewise.
6606 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6608 2014-03-06 Yao Qi <yao@codesourcery.com>
6610 * target.h (struct target_ops) <to_traceframe_info>: Use
6611 TARGET_DEFAULT_NORETURN (tcomplain ()).
6612 * target-delegates.c: Regenerated.
6614 2014-03-05 Pedro Alves <palves@redhat.com>
6617 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6618 void. Update comment.
6619 (dcache_xfer_memory): Delete.
6620 (dcache_read_memory_partial): New, based on the read bits of
6622 (dcache_update): Add status parameter. Use ULONGEST for len, and
6623 adjust. Discard cache lines if the reason for the update was
6625 * dcache.h (dcache_xfer_memory): Delete declaration.
6626 (dcache_read_memory_partial): New declaration.
6627 (dcache_update): Update prototype.
6628 * target.c (raw_memory_xfer_partial): Update the dcache here.
6629 (memory_xfer_partial_1): Don't handle dcache writes here.
6631 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6633 * remote-sim.c (gdbsim_load): Add const to prog.
6635 2014-03-03 Tom Tromey <tromey@redhat.com>
6637 * elfread.c (probe_key): Change to bfd_data.
6638 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6639 now per-BFD, not per-objfile.
6640 * stap-probe.c (stap_probe_destroy): Update comment.
6641 (handle_stap_probe): Allocate on the per-BFD obstack.
6643 2014-03-03 Tom Tromey <tromey@redhat.com>
6645 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6646 * breakpoint.c (create_longjmp_master_breakpoint): Use
6648 (add_location_to_breakpoint, bkpt_probe_insert_location)
6649 (bkpt_probe_remove_location): Update.
6650 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6651 * elfread.c (elf_symfile_relocate_probe): Remove.
6652 (elf_probe_fns): Update.
6653 (insert_exception_resume_breakpoint): Change type of "probe"
6654 parameter to bound_probe.
6655 (check_exception_resume): Update.
6656 * objfiles.c (objfile_relocate1): Don't relocate probes.
6657 * probe.c (bound_probe_s): New typedef.
6658 (parse_probes): Use get_probe_address. Set sal's objfile.
6659 (find_probe_by_pc): Return a bound_probe.
6660 (collect_probes): Return a VEC(bound_probe_s).
6661 (compare_probes): Update.
6662 (gen_ui_out_table_header_info): Change type of "probes"
6664 (info_probes_for_ops): Update.
6665 (get_probe_address): New function.
6666 (probe_safe_evaluate_at_pc): Update.
6667 * probe.h (struct probe_ops) <get_probe_address>: New field.
6668 <set_semaphore, clear_semaphore>: Add objfile parameter.
6669 (struct probe) <objfile>: Remove field.
6671 <address>: Update comment.
6672 (struct bound_probe): New.
6673 (find_probe_by_pc): Return a bound_probe.
6674 (get_probe_address): Declare.
6675 * solib-svr4.c (struct probe_and_action) <address>: New field.
6676 (hash_probe_and_action, equal_probe_and_action): Update.
6677 (register_solib_event_probe): Add address parameter.
6678 (solib_event_probe_at): Update.
6679 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6681 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6682 (stap_get_probe_address): New function.
6683 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6684 (compile_probe_arg): Update.
6685 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6687 (handle_stap_probe): Don't relocate the probe.
6688 (stap_relocate): Remove.
6689 (stap_gen_info_probes_table_values): Update.
6690 (stap_probe_ops): Remove stap_relocate.
6691 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6692 (debug_sym_probe_fns): Update.
6693 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6694 * symtab.c (init_sal): Use memset.
6695 * symtab.h (struct symtab_and_line) <objfile>: New field.
6696 * tracepoint.c (start_tracing, stop_tracing): Update.
6698 2014-03-03 Tom Tromey <tromey@redhat.com>
6700 * probe.h (parse_probes, find_probe_by_pc)
6701 (find_probes_in_objfile): Fix comments.
6703 2014-03-02 Doug Evans <xdje42@gmail.com>
6705 * infrun.c (handle_signal_stop): Replace test for
6706 TARGET_WAITKIND_STOPPED with an assert.
6708 2014-03-02 Doug Evans <xdje42@gmail.com>
6710 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6712 2014-03-02 Doug Evans <xdje42@gmail.com>
6714 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6716 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6718 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6720 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6722 * i386obsd-nat.c: Include "obsd-nat.h".
6723 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6725 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6727 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6729 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6731 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6733 * mips64obsd-nat.c: Include "obsd-nath".
6734 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6736 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6738 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6740 * amd64obsd-nat.c: Include "obsd-nat,h.
6741 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6743 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6745 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6747 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6748 (find_overload_match): Update call to find_oload_champ.
6749 (find_oload_champ_namespace_loop): Likewise
6751 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6753 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6755 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6756 * config/sparc/obsd64.mh: New file.
6757 * sparc64obsd-nat.c: New file.
6759 * obsd-nat.h: New file.
6760 * obsd-nat.c: New file.
6761 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6762 (ALLDEPFILES): Add obsd-nat.c.
6764 2014-02-28 Tom Tromey <tromey@redhat.com>
6766 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6767 * cli-out.h (cli_ui_out_impl): Now const.
6768 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6769 * ui-out.c (struct ui_out) <impl>: Now const.
6770 (default_ui_out_impl): Now const.
6771 (ui_out_new): Make 'impl' parameter const.
6772 * ui-out.h (ui_out_new): Update.
6774 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6776 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6778 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6780 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6782 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6784 Additional PR 8882 fix.
6785 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6787 2014-02-27 Pedro Alves <palves@redhat.com>
6789 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6792 2014-02-27 Pedro Alves <palves@redhat.com>
6795 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6796 * nat/linux-waitpid.c: Include string.h.
6797 (status_to_str): Moved here and made extern.
6798 * nat/linux-waitpid.h (status_to_str): New declaration.
6800 2014-02-27 Hui Zhu <hui@codesourcery.com>
6803 * infrun.c (ptid_match): Move ...
6804 * common/ptid.c (ptid_match): ... here.
6805 * inferior.h (ptid_match): Move ...
6806 * common/ptid.h (ptid_match): ... here.
6808 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6810 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6811 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6814 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6816 * obsd-tdep.c (obsd_auxv_parse): New function.
6817 (obsd_init_abi): Set auxv_parse.
6819 * gdbarch.sh (auxv_parse): New.
6820 * gdbarch.h: Regenerated.
6821 * gdbarch.c: Regenerated.
6822 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6824 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6826 * guile/scm-value.c (gdbscm_history_append_x): New function.
6827 (value_functions): Add it.
6829 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6831 * dwarf2read.c (attr_value_as_address): New function.
6832 (dwarf2_find_base_address, read_call_site_scope): Use
6833 attr_value_as_address in place of DW_ADDR.
6834 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6835 the low and high addresses. Slight rework of the handling
6836 of the high pc being a constant form, and limit it to
6837 DWARF verson 4 or higher.
6838 (dwarf2_record_block_ranges): Likewise.
6839 (read_partial_die): Likewise.
6840 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6842 2014-02-26 Tom Tromey <tromey@redhat.com>
6844 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6846 2014-02-26 Tom Tromey <tromey@redhat.com>
6848 * elfread.c (elf_read_minimal_symbols): Return early if
6849 minimal symbols have already been read. Add "ei" parameter.
6850 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6851 * minsyms.c (prim_record_minimal_symbol_full): Update.
6852 * objfiles.h (struct objstats) <n_minsyms>: Move...
6853 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6854 * symmisc.c (print_objfile_statistics): Update.
6856 2014-02-26 Tom Tromey <tromey@redhat.com>
6858 * elfread.c (elf_read_minimal_symbols): New function, from
6860 (elf_symfile_read): Call it.
6862 2014-02-26 Tom Tromey <tromey@redhat.com>
6864 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6865 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6866 (lookup_minimal_symbol_solib_trampoline)
6867 (lookup_minimal_symbol_by_pc_section_1)
6868 (lookup_minimal_symbol_and_objfile): Update.
6869 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6870 Don't allocate a minimal symbol if minsyms have already been read.
6871 (build_minimal_symbol_hash_tables): Update.
6872 (install_minimal_symbols): Do nothing if minsyms already read.
6873 Use the per-BFD obstack.
6874 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6875 * objfiles.c (allocate_objfile): Call
6876 terminate_minimal_symbol_table later.
6877 (have_minimal_symbols): Update.
6878 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6879 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6880 Move from struct objfile.
6881 <minsyms_read>: New field.
6882 (struct objfile) <msymbols, minimal_symbol_count,
6883 msymbol_hash, msymbol_demangled_hash>: Move.
6884 (ALL_OBJFILE_MSYMBOLS): Update.
6885 * symfile.c (read_symbols): Set minsyms_read.
6886 (reread_symbols): Update.
6887 * symmisc.c (dump_objfile, dump_msymbols): Update.
6889 2014-02-26 Tom Tromey <tromey@redhat.com>
6891 * minsyms.c (msymbols_sort): Remove.
6892 * minsyms.h (msymbols_sort): Remove.
6893 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6894 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6895 * elfread.c (elf_symtab_read): Don't add section offsets.
6896 * xcoffread.c (record_minimal_symbol): Don't add section offset
6897 to minimal symbol address.
6898 * somread.c (text_offset, data_offset): Remove.
6899 (som_symtab_read): Don't add section offsets to minimal symbol
6901 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6902 Don't add section offsets to minimal symbols.
6903 * coffread.c (coff_symtab_read): Don't add section offsets
6904 to minimal symbol addresses.
6905 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6906 to minimal symbol addresses.
6907 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6908 section offset to minimal symbol addresses.
6909 * mdebugread.c (parse_partial_symbols): Don't add section
6910 offset to minimal symbol addresses.
6911 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6912 offset to minimal symbol addresses.
6914 2014-02-26 Tom Tromey <tromey@redhat.com>
6916 * ada-lang.c (ada_main_name): Update.
6917 (ada_add_standard_exceptions): Update.
6918 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6919 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6920 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6921 * auxv.c (ld_so_xfer_auxv): Update.
6922 * avr-tdep.c (avr_scan_prologue): Update.
6923 * ax-gdb.c (gen_var_ref): Update.
6924 * blockframe.c (get_pc_function_start)
6925 (find_pc_partial_function_gnu_ifunc): Update.
6926 * breakpoint.c (create_overlay_event_breakpoint)
6927 (create_longjmp_master_breakpoint)
6928 (create_std_terminate_master_breakpoint)
6929 (create_exception_master_breakpoint): Update.
6930 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6931 * c-valprint.c (c_val_print): Update.
6932 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6933 * common/agent.c (agent_look_up_symbols): Update.
6934 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6935 * dwarf2loc.c (call_site_to_target_addr): Update.
6936 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6937 * elfread.c (elf_gnu_ifunc_record_cache)
6938 (elf_gnu_ifunc_resolve_by_got): Update.
6939 * findvar.c (default_read_var_value): Update.
6940 * frame.c (inside_main_func): Update.
6941 * frv-tdep.c (frv_frame_this_id): Update.
6942 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6943 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6945 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6946 (hppa_hpux_find_dummy_bpaddr): Update.
6947 * hppa-tdep.c (hppa_symbol_address): Update.
6948 * infcmd.c (until_next_command): Update.
6949 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6951 * linespec.c (minsym_found, add_minsym): Update.
6952 * linux-nat.c (get_signo): Update.
6953 * linux-thread-db.c (inferior_has_bug): Update.
6954 * m32c-tdep.c (m32c_return_value)
6955 (m32c_m16c_address_to_pointer): Update.
6956 * m32r-tdep.c (m32r_frame_this_id): Update.
6957 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6958 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6959 * maint.c (maintenance_translate_address): Update.
6960 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6961 (frob_address): New function.
6962 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6963 frob_address. Rename parameter to "pc_in".
6964 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6966 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6968 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6969 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6970 * objc-lang.c (find_objc_msgsend): Update.
6971 * objfiles.c (objfile_relocate1): Update.
6972 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6973 * p-valprint.c (pascal_val_print): Update.
6974 * parse.c (write_exp_msymbol): Update.
6975 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6976 (ppc_elfv2_skip_entrypoint): Update.
6977 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6978 * printcmd.c (build_address_symbolic, msym_info)
6979 (address_info): Update.
6980 * proc-service.c (ps_pglobal_lookup): Update.
6981 * psymtab.c (find_pc_sect_psymtab_closer)
6982 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6983 Change msymbol parameter to bound_minimal_symbol.
6984 * ravenscar-thread.c (get_running_thread_id): Update.
6985 * remote.c (remote_check_symbols): Update.
6986 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6988 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6989 * solib-dsbt.c (lm_base): Update.
6990 * solib-frv.c (lm_base, main_got): Update.
6991 * solib-irix.c (locate_base): Update.
6992 * solib-som.c (som_solib_create_inferior_hook)
6993 (link_map_start): Update.
6994 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6995 * solib-svr4.c (elf_locate_base, enable_break): Update.
6996 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6997 (flush_ea_cache): Update.
6998 * stabsread.c (define_symbol, scan_file_globals): Update.
6999 * stack.c (find_frame_funname): Update.
7000 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7001 (debug_qf_find_pc_sect_symtab): Update.
7002 * symfile.c (simple_read_overlay_table)
7003 (simple_overlay_update): Update.
7004 * symfile.h (struct quick_symbol_functions)
7005 <find_pc_sect_symtab>: Change type of msymbol to
7006 bound_minimal_symbol.
7007 * symmisc.c (dump_msymbols): Update.
7008 * symtab.c (find_pc_sect_symtab_via_partial)
7009 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7010 (search_symbols, print_msymbol_info): Update.
7011 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7012 (MSYMBOL_VALUE_ADDRESS): Redefine.
7013 (BMSYMBOL_VALUE_ADDRESS): New macro.
7014 * tracepoint.c (scope_info): Update.
7015 * tui/tui-disasm.c (tui_find_disassembly_address)
7016 (tui_get_begin_asm_address): Update.
7017 * valops.c (find_function_in_inferior): Update.
7018 * value.c (value_static_field, value_fn_field): Update.
7020 2014-02-26 Tom Tromey <tromey@redhat.com>
7022 * ada-lang.c (ada_update_initial_language): Update.
7023 (ada_main_name, ada_has_this_exception_support): Update.
7024 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7025 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7026 * arm-tdep.c (arm_skip_stub): Update.
7027 * auxv.c (ld_so_xfer_auxv): Update.
7028 * avr-tdep.c (avr_scan_prologue): Update.
7029 * ax-gdb.c (gen_var_ref): Update.
7030 * breakpoint.c (struct breakpoint_objfile_data)
7031 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7032 type to bound_minimal_symbol.
7033 (create_overlay_event_breakpoint)
7034 (create_longjmp_master_breakpoint)
7035 (create_std_terminate_master_breakpoint)
7036 (create_exception_master_breakpoint): Update.
7037 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7038 * c-exp.y (classify_name): Update.
7039 * coffread.c (coff_symfile_read): Update.
7040 * common/agent.c (agent_look_up_symbols): Update.
7041 * d-lang.c (d_main_name): Update.
7042 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7043 * dec-thread.c (enable_dec_thread): Update.
7044 * dwarf2loc.c (call_site_to_target_addr): Update.
7045 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7046 * eval.c (evaluate_subexp_standard): Update.
7047 * findvar.c (struct minsym_lookup_data) <result>: Change type
7048 to bound_minimal_symbol.
7050 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7051 * frame.c (inside_main_func): Update.
7052 * frv-tdep.c (frv_frame_this_id): Update.
7053 * gcore.c (call_target_sbrk): Update.
7054 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7055 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7057 * go-lang.c (go_main_name): Update.
7058 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7059 (hppa_hpux_find_import_stub_for_addr): Update.
7060 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7061 Update. Change return type.
7062 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7064 * jit.c (jit_breakpoint_re_set_internal): Update.
7065 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7067 * linux-nat.c (get_signo): Update.
7068 * linux-thread-db.c (inferior_has_bug): Update
7069 * m32c-tdep.c (m32c_return_value)
7070 (m32c_m16c_address_to_pointer): Update.
7071 * m32r-tdep.c (m32r_frame_this_id): Update.
7072 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7073 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7074 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7075 lookup_minimal_symbol. Change return type.
7076 (lookup_minimal_symbol): Remove.
7077 (lookup_bound_minimal_symbol): Update.
7078 (lookup_minimal_symbol_text): Change return type.
7079 (lookup_minimal_symbol_solib_trampoline): Change return type.
7080 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7081 (lookup_minimal_symbol_solib_trampoline): Change return type.
7082 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7083 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7084 (value_nsstring, find_imps): Update.
7085 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7086 * p-lang.c (pascal_main_name): Update.
7087 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7088 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7089 * proc-service.c (ps_pglobal_lookup): Update.
7090 * ravenscar-thread.c (get_running_thread_msymbol): Change
7092 (has_ravenscar_runtime, get_running_thread_id): Update.
7093 * remote.c (remote_check_symbols): Update.
7094 * sol-thread.c (ps_pglobal_lookup): Update.
7095 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7096 * solib-dsbt.c (lm_base): Update.
7097 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7099 * solib-irix.c (locate_base): Update.
7100 * solib-som.c (som_solib_create_inferior_hook)
7101 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7103 * solib-spu.c (spu_enable_break): Update.
7104 * solib-svr4.c (elf_locate_base, enable_break): Update.
7105 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7106 (flush_ea_cache): Update.
7107 * stabsread.c (define_symbol): Update.
7108 * symfile.c (simple_read_overlay_table): Update.
7109 * symtab.c (find_pc_sect_line): Update.
7110 * tracepoint.c (scope_info): Update.
7111 * tui-disasm.c (tui_get_begin_asm_address): Update.
7112 * value.c (value_static_field): Update.
7114 2014-02-26 Tom Tromey <tromey@redhat.com>
7116 * minsyms.c (prim_record_minimal_symbol_full): Use
7117 SET_MSYMBOL_VALUE_ADDRESS.
7118 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7119 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7120 SET_MSYMBOL_VALUE_ADDRESS.
7121 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7122 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7124 2014-02-26 Tom Tromey <tromey@redhat.com>
7126 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7127 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7128 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7129 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7130 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7131 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7132 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7133 * ada-lang.c (ada_main_name): Update.
7134 (ada_lookup_simple_minsym): Update.
7135 (ada_make_symbol_completion_list): Update.
7136 (ada_add_standard_exceptions): Update.
7137 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7138 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7139 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7140 * arm-tdep.c (skip_prologue_function): Update.
7141 (arm_skip_stack_protector, arm_skip_stub): Update.
7142 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7143 (arm_wince_skip_main_prologue): Update.
7144 * auxv.c (ld_so_xfer_auxv): Update.
7145 * avr-tdep.c (avr_scan_prologue): Update.
7146 * ax-gdb.c (gen_var_ref): Update.
7147 * block.c (call_site_for_pc): Update.
7148 * blockframe.c (get_pc_function_start): Update.
7149 (find_pc_partial_function_gnu_ifunc): Update.
7150 * breakpoint.c (create_overlay_event_breakpoint): Update.
7151 (create_longjmp_master_breakpoint): Update.
7152 (create_std_terminate_master_breakpoint): Update.
7153 (create_exception_master_breakpoint): Update.
7154 (resolve_sal_pc): Update.
7155 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7156 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7158 * c-valprint.c (c_val_print): Update.
7159 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7160 * coffread.c (coff_symfile_read): Update.
7161 * common/agent.c (agent_look_up_symbols): Update.
7162 * dbxread.c (find_stab_function_addr): Update.
7163 (end_psymtab): Update.
7164 * dwarf2loc.c (call_site_to_target_addr): Update.
7165 (func_verify_no_selftailcall): Update.
7166 (tailcall_dump): Update.
7167 (call_site_find_chain_1): Update.
7168 (dwarf_expr_reg_to_entry_parameter): Update.
7169 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7170 (elf_gnu_ifunc_resolve_by_got): Update.
7171 * f-valprint.c (info_common_command): Update.
7172 * findvar.c (read_var_value): Update.
7173 * frame.c (get_prev_frame_1): Update.
7174 (inside_main_func): Update.
7175 * frv-tdep.c (frv_skip_main_prologue): Update.
7176 (frv_frame_this_id): Update.
7177 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7178 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7179 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7180 (gnuv3_skip_trampoline): Update.
7181 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7182 (hppa64_hpux_in_solib_call_trampoline): Update.
7183 (hppa_hpux_skip_trampoline_code): Update.
7184 (hppa64_hpux_search_dummy_call_sequence): Update.
7185 (hppa_hpux_find_import_stub_for_addr): Update.
7186 (hppa_hpux_find_dummy_bpaddr): Update.
7187 * hppa-tdep.c (hppa_symbol_address)
7188 (hppa_lookup_stub_minimal_symbol): Update.
7189 * i386-tdep.c (i386_skip_main_prologue): Update.
7190 (i386_pe_skip_trampoline_code): Update.
7191 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7192 * infcall.c (get_function_name): Update.
7193 * infcmd.c (until_next_command): Update.
7194 * jit.c (jit_breakpoint_re_set_internal): Update.
7195 (jit_inferior_init): Update.
7196 * linespec.c (minsym_found): Update.
7197 (add_minsym): Update.
7198 * linux-fork.c (info_checkpoints_command): Update.
7199 * linux-nat.c (get_signo): Update.
7200 * linux-thread-db.c (inferior_has_bug): Update.
7201 * m32c-tdep.c (m32c_return_value): Update.
7202 (m32c_m16c_address_to_pointer): Update.
7203 (m32c_m16c_pointer_to_address): Update.
7204 * m32r-tdep.c (m32r_frame_this_id): Update.
7205 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7206 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7207 * maint.c (maintenance_translate_address): Update.
7208 * minsyms.c (add_minsym_to_hash_table): Update.
7209 (add_minsym_to_demangled_hash_table): Update.
7210 (msymbol_objfile): Update.
7211 (lookup_minimal_symbol): Update.
7212 (iterate_over_minimal_symbols): Update.
7213 (lookup_minimal_symbol_text): Update.
7214 (lookup_minimal_symbol_by_pc_name): Update.
7215 (lookup_minimal_symbol_solib_trampoline): Update.
7216 (lookup_minimal_symbol_by_pc_section_1): Update.
7217 (lookup_minimal_symbol_and_objfile): Update.
7218 (prim_record_minimal_symbol_full): Update.
7219 (compare_minimal_symbols): Update.
7220 (compact_minimal_symbols): Update.
7221 (build_minimal_symbol_hash_tables): Update.
7222 (install_minimal_symbols): Update.
7223 (terminate_minimal_symbol_table): Update.
7224 (find_solib_trampoline_target): Update.
7225 (minimal_symbol_upper_bound): Update.
7226 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7227 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7228 (mips_skip_pic_trampoline_code): Update.
7229 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7230 * objc-lang.c (selectors_info): Update.
7231 (classes_info): Update.
7232 (find_methods): Update.
7233 (find_imps): Update.
7234 (find_objc_msgsend): Update.
7235 * objfiles.c (objfile_relocate1): Update.
7236 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7237 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7238 * p-valprint.c (pascal_val_print): Update.
7239 * parse.c (write_exp_msymbol): Update.
7240 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7241 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7242 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7243 * printcmd.c (build_address_symbolic): Update.
7245 (address_info): Update.
7246 * proc-service.c (ps_pglobal_lookup): Update.
7247 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7248 (find_pc_sect_psymtab): Update.
7249 * python/py-framefilter.c (py_print_frame): Update.
7250 * ravenscar-thread.c (get_running_thread_id): Update.
7251 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7253 * remote.c (remote_check_symbols): Update.
7254 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7255 (rs6000_skip_trampoline_code): Update.
7256 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7257 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7258 * solib-dsbt.c (lm_base): Update.
7259 * solib-frv.c (lm_base): Update.
7261 * solib-irix.c (locate_base): Update.
7262 * solib-som.c (som_solib_create_inferior_hook): Update.
7263 (som_solib_desire_dynamic_linker_symbols): Update.
7264 (link_map_start): Update.
7265 * solib-spu.c (spu_enable_break): Update.
7266 (ocl_enable_break): Update.
7267 * solib-svr4.c (elf_locate_base): Update.
7268 (enable_break): Update.
7269 * spu-tdep.c (spu_get_overlay_table): Update.
7270 (spu_catch_start): Update.
7271 (flush_ea_cache): Update.
7272 * stabsread.c (define_symbol): Update.
7273 (scan_file_globals): Update.
7274 * stack.c (find_frame_funname): Update.
7275 (frame_info): Update.
7276 * symfile.c (simple_read_overlay_table): Update.
7277 (simple_overlay_update): Update.
7278 * symmisc.c (dump_msymbols): Update.
7279 * symtab.c (fixup_section): Update.
7280 (find_pc_sect_line): Update.
7281 (skip_prologue_sal): Update.
7282 (search_symbols): Update.
7283 (print_msymbol_info): Update.
7284 (rbreak_command): Update.
7285 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7286 (completion_list_objc_symbol): Update.
7287 (default_make_symbol_completion_list_break_on): Update.
7288 * tracepoint.c (scope_info): Update.
7289 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7290 (tui_get_begin_asm_address): Update.
7291 * valops.c (find_function_in_inferior): Update.
7292 * value.c (value_static_field): Update.
7293 (value_fn_field): Update.
7295 2014-02-26 Tom Tromey <tromey@redhat.com>
7297 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7298 bound minimal symbols. Move code that knows about minsym
7300 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7302 * minsyms.h (minimal_symbol_upper_bound): Declare.
7303 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7304 minimal_symbol_upper_bound.
7306 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7308 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7309 Use the type's name if its basic type does not have a tag.
7311 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7313 * dwarf2read.c (read_subrange_type): Add comment.
7315 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7317 * dwarf2read.c (update_enumeration_type_from_children): New
7318 function, mostly extracted from process_structure_scope.
7319 (read_enumeration_type): Call update_enumeration_type_from_children.
7320 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7321 and flag_flag_enum fields.
7323 2014-02-26 Pedro Alves <palves@redhat.com>
7325 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7326 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7327 to_xfer_partial method.
7329 2014-02-26 Pedro Alves <palves@redhat.com>
7331 * target.c (complete_target_initialization): Don't install
7332 default_xfer_partial as to_xfer_partial hook.
7334 (update_current_target): Don't INHERIT nor de_fault
7335 deprecated_xfer_memory. Delete de_fault macro.
7336 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7337 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7338 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7341 2014-02-26 Pedro Alves <palves@redhat.com>
7343 * go32-nat.c (my_write_child): New function.
7344 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7345 (go32_xfer_partial): New function.
7346 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7347 Instead install a to_xfer_partial hook.
7349 2014-02-26 Pedro Alves <palves@redhat.com>
7351 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7352 to_xfer_partial helper. Rewrite.
7353 (procfs_xfer_partial): New function.
7354 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7355 Install a to_xfer_partial hook.
7357 2014-02-26 Pedro Alves <palves@redhat.com>
7359 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7360 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7361 (m32r_xfer_partial): New function.
7362 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7363 Install a to_xfer_partial hook.
7365 2014-02-26 Pedro Alves <palves@redhat.com>
7367 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7369 (mips_xfer_partial): New function.
7370 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7371 hook. Install a to_xfer_partial hook.
7373 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7375 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7376 * gdbtypes.c (create_array_type_with_stride): New function,
7377 renaming create_array_type, but with an added parameter
7378 called "bit_stride".
7379 (create_array_type): Re-implement using
7380 create_array_type_with_stride.
7381 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7382 and DW_AT_bit_stride attributes.
7384 2014-02-26 Pedro Alves <palves@redhat.com>
7386 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7387 task-specific breakpoints.
7389 2014-02-25 Pedro Alves <palves@redhat.com>
7391 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7392 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7394 2014-02-25 Stan Shebs <stan@codesourcery.com>
7396 * defs.h: Annotate comments for Doxygen.
7398 2014-02-25 Tom Tromey <tromey@redhat.com>
7400 * target.h (target_ignore): Don't declare.
7401 * target.c (target_ignore): Remove.
7403 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7406 * auto-load.c (auto_load_objfile_script_1): Change filename to
7409 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7411 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7412 documentation. Adjust prototype to match the target_ops
7413 to_xfer_partial method. Adjust implementation accordingly.
7415 2014-02-25 Hui Zhu <hui@codesourcery.com>
7417 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7420 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7422 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7423 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7424 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7425 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7426 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7427 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7428 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7429 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7431 (rl78_register_type): Use a data pointer type for SP and
7432 new pseudo registers mentioned above. Use a 16 bit integer
7433 type for all other register pairs.
7434 (rl78_register_name, rl78_g10_register_name): Update for
7435 new pseudo registers.
7436 (rl78_pseudo_register_read): Likewise.
7437 (rl78_pseudo_register_write): Likewise.
7438 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7439 to the newly added pseudo registers.
7441 2014-02-24 Doug Evans <dje@google.com>
7443 * value.c (record_latest_value): Fix comment.
7444 * printcmd.c (print_command_1): Remove code to handle -1 return from
7445 record_latest_value.
7447 2014-02-24 Pedro Alves <palves@redhat.com>
7449 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7450 deprecated_xfer_memory hook.
7451 (procfs_xfer_partial): Call procfs_xfer_memory instead
7452 of the deprecated_xfer_memory target hook.
7453 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7456 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7458 * windows-nat.c (windows_xfer_shared_libraries): Return
7459 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7460 requested object is TARGET_OBJECT_LIBRARIES.
7462 2014-02-24 Yao Qi <yao@codesourcery.com>
7464 * target.h (enum target_xfer_status)
7465 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7466 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7468 * corefile.c (memory_error_message): User updated.
7469 * exec.c (section_table_read_available_memory): Likewise.
7470 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7471 * target.c (target_xfer_status_to_string): Likewise.
7472 (raw_memory_xfer_partial): Likewise.
7473 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7474 * valops.c (read_value_memory): Likewise.
7475 * exec.h: Update comments.
7477 2014-02-24 Yao Qi <yao@codesourcery.com>
7479 * target.c (target_xfer_status_to_string): Rename argument err
7481 * target.h (target_xfer_status_to_string): Update declaration.
7482 Replace target_xfer_error_to_string with
7483 target_xfer_status_to_string in comment.
7485 2014-02-24 Yao Qi <yao@codesourcery.com>
7487 * mips-linux-nat.c (super_close): Update its type.
7488 (mips_linux_close): Pass 'self' to super_close.
7490 2014-02-24 Yao Qi <yao@codesourcery.com>
7492 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7493 * corefile.c (read_memory): Adjusted.
7494 * target.c (target_write_with_progress): Adjusted.
7496 2014-02-23 Yao Qi <yao@codesourcery.com>
7500 2013-10-25 Yao Qi <yao@codesourcery.com>
7502 * remote.c (remote_traceframe_info): Return early if
7503 traceframe is not selected.
7505 2013-07-19 Yao Qi <yao@codesourcery.com>
7507 * target.c (update_current_target): Change the default action
7508 of 'to_traceframe_info' from tcomplain to return_zero.
7509 * target.h (struct target_ops) <to_traceframe_info>: Add more
7512 2014-02-23 Yao Qi <yao@codesourcery.com>
7514 * valops.c (read_value_memory): Rewrite it. Call
7515 target_xfer_partial in a loop.
7516 * exec.h (section_table_available_memory): Remove declaration.
7517 Move comments to ...
7518 * exec.c (section_table_available_memory): ... here. Make it
7521 2014-02-23 Yao Qi <yao@codesourcery.com>
7523 * exec.c (section_table_read_available_memory): New function.
7524 * exec.h (section_table_read_available_memory): Declare.
7525 * ctf.c (ctf_xfer_partial): Call
7526 section_table_read_available_memory.
7527 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7529 2014-02-23 Yao Qi <yao@codesourcery.com>
7531 * ctf.c (ctf_xfer_partial): Move code to ...
7532 * exec.c (exec_read_partial_read_only): ... it. New function.
7533 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7534 * tracefile.c: Include "exec.h".
7535 * exec.h (exec_read_partial_read_only): Declare.
7537 2014-02-23 Yao Qi <yao@codesourcery.com>
7539 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7540 (tfile_has_memory): Remove.
7541 (init_tfile_ops): Don't set fields to_has_all_memory and
7542 to_has_memory of tfile_ops.
7543 * tracefile.c (tracefile_has_all_memory): New function.
7544 (tracefile_has_memory): New function.
7545 (init_tracefile_ops): Initialize fields to_has_all_memory and
7546 to_has_memory of 'ops'.
7548 2014-02-23 Yao Qi <yao@codesourcery.com>
7550 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7551 (ctf_thread_alive, ctf_get_trace_status): Remove.
7552 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7554 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7555 (tfile_has_stack, tfile_has_registers): Remove.
7556 (tfile_thread_alive): Remove.
7557 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7559 * tracefile.c (tracefile_has_stack): New function.
7560 (tracefile_has_registers): New function.
7561 (tracefile_thread_alive): New function.
7562 (tracefile_get_trace_status): New function.
7563 (init_tracefile_ops): New function.
7564 * tracefile.h (init_tracefile_ops): Declare.
7566 2014-02-23 Yao Qi <yao@codesourcery.com>
7568 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7569 (O_LARGEFILE): Likewise.
7570 (tfile_ops): Likewise.
7571 (TRACE_HEADER_SIZE): Likewise.
7572 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7573 (cur_data_size): Likewise.
7574 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7575 (tfile_close, tfile_files_info): Likewise.
7576 (tfile_get_trace_status): Likewise.
7577 (tfile_get_tracepoint_status): Likewise.
7578 (tfile_get_traceframe_address): Likewise.
7579 (tfile_trace_find, match_blocktype): Likewise.
7580 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7581 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7582 (tfile_get_trace_state_variable_value): Likewise.
7583 (tfile_has_all_memory, tfile_has_memory): Likewise.
7584 (tfile_has_stack, tfile_has_registers): Likewise.
7585 (tfile_thread_alive, build_traceframe_info): Likewise.
7586 (tfile_traceframe_info, init_tfile_ops): Likewise.
7587 (_initialize_tracepoint): Don't call init_tfile_ops
7588 and add_target_with_completer.
7589 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7590 exec.h, completer.h and filenames.h.
7591 (_initialize_tracefile_tfile): New function.
7593 2014-02-23 Yao Qi <yao@codesourcery.com>
7595 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7597 (HFILES_NO_SRCDIR): Add tracefile.h.
7598 * ctf.c: Include "tracefile.h".
7599 * tracefile.h: New file.
7600 * tracefile.c: New file
7601 * tracefile-tfile.c: New file.
7602 * tracepoint.c: Include "tracefile.h".
7603 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7604 (stop_reason_names): Add const.
7605 (trace_file_writer_xfree): Move it to tracefile.c.
7606 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7607 (trace_save_ctf): Likewise.
7608 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7609 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7610 (tfile_write_header, tfile_write_regblock_type): Likewise.
7611 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7612 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7613 (tfile_write_raw_data, tfile_end): Likewise.
7614 (tfile_trace_file_writer_new): Likewise.
7615 (free_uploaded_tp): Make it extern.
7616 (free_uploaded_tsv): Make it extern.
7617 (_initialize_tracepoint): Move code to register command 'tsave'
7619 * tracepoint.h (stop_reason_names): Declare.
7620 (struct trace_frame_write_ops): Move it to tracefile.h.
7621 (struct trace_file_write_ops): Likewise.
7622 (struct trace_file_writer): Likewise.
7623 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7625 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7628 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7630 (get_cores_used_by_process): New parameter num_cores, use it.
7631 (linux_xfer_osdata_processes): Pass num_cores to it.
7632 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7635 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7637 * target.c (memory_xfer_partial): Fix length arg in call to
7638 breakpoint_xfer_memory.
7640 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7643 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7644 number comes after the + or - signs. Adjust length of register
7645 name to be extracted.
7647 2014-02-20 Tom Tromey <tromey@redhat.com>
7649 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7650 (ada_varobj_ops): Mark "extern".
7652 2014-02-20 Tom Tromey <tromey@redhat.com>
7654 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7656 2014-02-20 Doug Evans <xdje42@gmail.com>
7658 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7659 All callers updated.
7660 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7661 All callers updated.
7662 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7663 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7665 2014-02-20 lin zuojian <manjian2006@gmail.com>
7666 Joel Brobecker <brobecker@adacore.com>
7667 Doug Evans <xdje42@gmail.com>
7670 * dwarf2read.c (struct die_info): New member in_process.
7671 (reset_die_in_process): New function.
7672 (process_die): Set it at the start, reset when returning.
7673 (inherit_abstract_dies): Only call process_die if origin_child_die
7674 not already being processed.
7676 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7678 * windows-nat.c (handle_unload_dll): Add function documentation.
7679 (do_initial_windows_stuff): Add comment explaining why we wait
7680 until after inferior initialization has finished before
7681 processing all DLLs.
7683 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7685 * windows-nat.c (get_module_name): Delete.
7686 (windows_get_exec_module_filename): New function, mostly
7687 inspired from get_module_name.
7688 (windows_pid_to_exec_file): Replace call to get_module_name
7689 by call to windows_get_exec_module_filename.
7691 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7693 * windows-nat.c (handle_load_dll): Rewrite this function's
7694 introductory comment. Remove code using get_module_name
7695 to get the DLL's name.
7697 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7699 * windows-nat.c (get_windows_debug_event): Ignore
7700 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7701 if windows_initialization_done == 0.
7702 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7703 Adjust implementation to always load all DLLs.
7704 (do_initial_windows_stuff): Replace call to
7705 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7707 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7709 * windows-nat.c (_initialize_windows_nat): Deprecate the
7710 "dll-symbols" command. Turn the "add-shared-symbol-files"
7711 and "assf" aliases into commands, and deprecate them as well.
7712 * NEWS: Add entry explaining that "dll-symbols" and its two
7713 aliases are now deprecated.
7715 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7717 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7718 new-line in debug string. Remove trailing spaces.
7720 2014-02-19 Stan Shebs <stan@codesourcery.com>
7722 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7724 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7726 * NEWS: Add entry for the new feature
7727 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7730 2014-02-19 Stan Shebs <stan@codesourcery.com>
7732 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7734 2014-02-19 Pedro Alves <palves@redhat.com>
7736 * common/ptid.h (struct ptid): Mention that process_stratum
7737 targets should prefer ptid.lwp.
7739 2014-02-19 Pedro Alves <palves@redhat.com>
7741 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7742 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7743 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7744 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7745 store remote thread ids rather than ptid.tid.
7746 (_initialize_remote): Adjust.
7748 2014-02-19 Tom Tromey <tromey@redhat.com>
7750 * target.c (target_get_unwinder): Rewrite.
7751 (target_get_tailcall_unwinder): Rewrite.
7752 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7753 (record_btrace_to_get_tailcall_unwinder): New function.
7754 (init_record_btrace_ops): Update.
7755 * target.h (struct target_ops) <to_get_unwinder,
7756 to_get_tailcall_unwinder>: Now function pointers. Use
7757 TARGET_DEFAULT_RETURN.
7759 2014-02-19 Tom Tromey <tromey@redhat.com>
7761 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7763 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7767 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7769 * target-delegates.c: Rebuild.
7770 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7771 TARGET_DEFAULT_FUNC.
7772 * target.c (default_target_decr_pc_after_break): Rename from
7773 forward_target_decr_pc_after_break. Simplify.
7774 (target_decr_pc_after_break): Rely on delegation.
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7778 * target.c (update_current_target): Do not INHERIT to_doc or
7779 to_magic. Do not de_fault to_open or to_close.
7781 2014-02-19 Tom Tromey <tromey@redhat.com>
7783 * gcore.h (objfile_find_memory_regions): Declare.
7784 * gcore.c (objfile_find_memory_regions): No longer static. Add
7786 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7787 * exec.c: Include gcore.h.
7788 (exec_set_find_memory_regions): Remove.
7789 (exec_find_memory_regions): Remove.
7790 (exec_do_find_memory_regions): Remove.
7791 (init_exec_ops): Update.
7792 * defs.h (exec_set_find_memory_regions): Remove.
7794 2014-02-19 Tom Tromey <tromey@redhat.com>
7796 * target-delegates.c: Rebuild.
7797 * target.h (struct target_ops) <to_extra_thread_info,
7798 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7799 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7800 not 0, in TARGET_DEFAULT_RETURN.
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7804 * target.c (complete_target_initialization): Remove casts. Use
7805 return_zero_has_execution.
7806 (return_zero): Add "ignore" argument.
7807 (return_zero_has_execution): New function.
7808 (init_dummy_target): Remove casts. Use
7809 return_zero_has_execution.
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7813 * target.c (update_current_target): Update comments. Do not
7816 2014-02-19 Tom Tromey <tromey@redhat.com>
7818 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7820 * corelow.c (core_read_description): Delegate when needed.
7821 * remote.c (remote_read_description): Delegate when needed.
7822 * target-delegates.c: Rebuild.
7823 * target.c (target_read_description): Rewrite.
7824 * target.h (struct target_ops) <to_read_description>: Update
7825 comment. Use TARGET_DEFAULT_RETURN.
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7829 * target-delegates.c: Rebuild.
7830 * target.c (update_current_target): Don't inherit or default
7832 (find_default_run_target): Check against delegate_can_run.
7833 * target.h (struct target_ops) <to_can_run>: Use
7834 TARGET_DEFAULT_RETURN.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * target-delegates.c: Rebuild.
7839 * target.c (target_disconnect): Unconditionally delegate.
7840 * target.h (struct target_ops) <to_disconnect>: Use
7841 TARGET_DEFAULT_NORETURN.
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7845 * record.c (record_stop): Unconditionally delegate.
7846 * target-delegates.c: Rebuild.
7847 * target.c (target_stop_recording): Unconditionally delegate.
7848 * target.h (struct target_ops) <to_stop_recording>: Use
7849 TARGET_DEFAULT_IGNORE.
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_enable_btrace): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_enable_btrace>: Use
7856 TARGET_DEFAULT_NORETURN.
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_read_btrace): Unconditionally delegate.
7862 * target.h (struct target_ops) <to_read_btrace>: Use
7863 TARGET_DEFAULT_NORETURN.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target-delegates.c: Rebuild.
7868 * target.c (target_teardown_btrace): Unconditionally delegate.
7869 * target.h (struct target_ops) <to_teardown_btrace>: Use
7870 TARGET_DEFAULT_NORETURN.
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7874 * target-delegates.c: Rebuild.
7875 * target.c (target_disable_btrace): Unconditionally delegate.
7876 * target.h (struct target_ops) <to_disable_btrace>: Use
7877 TARGET_DEFAULT_NORETURN.
7879 2014-02-19 Tom Tromey <tromey@redhat.com>
7881 * target-delegates.c: Rebuild.
7882 * target.c (default_search_memory): New function.
7883 (simple_search_memory): Update comment.
7884 (target_search_memory): Unconditionally delegate.
7885 * target.h (struct target_ops) <to_search_memory>: Use
7886 TARGET_DEFAULT_FUNC.
7888 2014-02-19 Tom Tromey <tromey@redhat.com>
7890 * auxv.c (default_auxv_parse): No longer static.
7891 (target_auxv_parse): Unconditionally delegate.
7892 * auxv.h (default_auxv_parse): Declare.
7893 * target-delegates.c: Rebuild.
7894 * target.c: Include auxv.h.
7895 * target.h (struct target_ops) <to_auxv_parse>: Use
7896 TARGET_DEFAULT_FUNC.
7898 2014-02-19 Tom Tromey <tromey@redhat.com>
7900 * target-delegates.c: Rebuild.
7901 * target.c (target_memory_map): Unconditionally delegate.
7902 * target.h (struct target_ops) <to_memory_map>: Use
7903 TARGET_DEFAULT_RETURN.
7905 2014-02-19 Tom Tromey <tromey@redhat.com>
7907 * target-delegates.c: Rebuild.
7908 * target.c (target_thread_alive): Unconditionally delegate.
7909 * target.h (struct target_ops) <to_thread_alive>: Use
7910 TARGET_DEFAULT_RETURN.
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7914 * target-delegates.c: Rebuild.
7915 * target.c (target_save_record): Unconditionally delegate.
7916 * target.h (struct target_ops) <to_save_record>: Use
7917 TARGET_DEFAULT_NORETURN.
7919 2014-02-19 Tom Tromey <tromey@redhat.com>
7921 * target-delegates.c: Rebuild.
7922 * target.c (target_delete_record): Unconditionally delegate.
7923 * target.h (struct target_ops) <to_delete_record>: Use
7924 TARGET_DEFAULT_NORETURN.
7926 2014-02-19 Tom Tromey <tromey@redhat.com>
7928 * target-delegates.c: Rebuild.
7929 * target.c (target_record_is_replaying): Unconditionally
7931 * target.h (struct target_ops) <to_record_is_replaying>: Use
7932 TARGET_DEFAULT_RETURN.
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7936 * target-delegates.c: Rebuild.
7937 * target.c (target_goto_record_begin): Unconditionally delegate.
7938 * target.h (struct target_ops) <to_goto_record_begin>: Use
7939 TARGET_DEFAULT_NORETURN.
7941 2014-02-19 Tom Tromey <tromey@redhat.com>
7943 * target-delegates.c: Rebuild.
7944 * target.c (target_goto_record_end): Unconditionally delegate.
7945 * target.h (struct target_ops) <to_goto_record_end>: Use
7946 TARGET_DEFAULT_NORETURN.
7948 2014-02-19 Tom Tromey <tromey@redhat.com>
7950 * target-delegates.c: Rebuild.
7951 * target.c (target_goto_record): Unconditionally delegate.
7952 * target.h (struct target_ops) <to_goto_record>: Use
7953 TARGET_DEFAULT_NORETURN.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (target_insn_history): Unconditionally delegate.
7959 * target.h (struct target_ops) <to_insn_history>: Use
7960 TARGET_DEFAULT_NORETURN.
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7964 * target-delegates.c: Rebuild.
7965 * target.c (target_insn_history_from): Unconditionally delegate.
7966 * target.h (struct target_ops) <to_insn_history_from>: Use
7967 TARGET_DEFAULT_NORETURN.
7969 2014-02-19 Tom Tromey <tromey@redhat.com>
7971 * target-delegates.c: Rebuild.
7972 * target.c (target_insn_history_range): Unconditionally delegate.
7973 * target.h (struct target_ops) <to_insn_history_range>: Use
7974 TARGET_DEFAULT_NORETURN.
7976 2014-02-19 Tom Tromey <tromey@redhat.com>
7978 * target-delegates.c: Rebuild.
7979 * target.c (target_call_history): Unconditionally delegate.
7980 * target.h (struct target_ops) <to_call_history>: Use
7981 TARGET_DEFAULT_NORETURN.
7983 2014-02-19 Tom Tromey <tromey@redhat.com>
7985 * target-delegates.c: Rebuild.
7986 * target.c (target_call_history_from): Unconditionally delegate.
7987 * target.h (struct target_ops) <to_call_history_from>: Use
7988 TARGET_DEFAULT_NORETURN.
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7992 * target-delegates.c: Rebuild.
7993 * target.c (target_call_history_range): Unconditionally delegate.
7994 * target.h (struct target_ops) <to_call_history_range>: Use
7995 TARGET_DEFAULT_NORETURN.
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7999 * target-delegates.c: Rebuild.
8000 * target.c (target_verify_memory): Unconditionally delegate.
8001 * target.h (struct target_ops) <to_verify_memory>: Use
8002 TARGET_DEFAULT_NORETURN.
8004 2014-02-19 Tom Tromey <tromey@redhat.com>
8006 * target-delegates.c: Rebuild.
8007 * target.c (target_core_of_thread): Unconditionally delegate.
8008 * target.h (struct target_ops) <to_core_of_thread>: Use
8009 TARGET_DEFAULT_RETURN.
8011 2014-02-19 Tom Tromey <tromey@redhat.com>
8013 * target-delegates.c: Rebuild.
8014 * target.c (target_flash_done): Unconditionally delegate.
8015 * target.h (struct target_ops) <to_flash_done>: Use
8016 TARGET_DEFAULT_NORETURN.
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8020 * target-delegates.c: Rebuild.
8021 * target.c (target_flash_erase): Unconditionally delegate.
8022 * target.h (struct target_ops) <to_flash_erase>: Use
8023 TARGET_DEFAULT_NORETURN.
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8027 * target-delegates.c: Rebuild.
8028 * target.c (target_get_section_table): Unconditionally delegate.
8029 * target.h (struct target_ops) <to_get_section_table>: Use
8030 TARGET_DEFAULT_RETURN.
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8034 * target-delegates.c: Rebuild.
8035 * target.c (target_pid_to_str): Unconditionally delegate.
8036 (init_dummy_target): Don't initialize to_pid_to_str.
8037 (default_pid_to_str): Rename from dummy_pid_to_str.
8038 * target.h (struct target_ops) <to_pid_to_str>: Use
8039 TARGET_DEFAULT_FUNC.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target-delegates.c: Rebuild.
8044 * target.c (target_find_new_threads): Unconditionally delegate.
8045 * target.h (struct target_ops) <to_find_new_threads>: Use
8046 TARGET_DEFAULT_RETURN.
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8050 * target-delegates.c: Rebuild.
8051 * target.c (target_program_signals): Unconditionally delegate.
8052 * target.h (struct target_ops) <to_program_signals>: Use
8053 TARGET_DEFAULT_IGNORE.
8055 2014-02-19 Tom Tromey <tromey@redhat.com>
8057 * target-delegates.c: Rebuild.
8058 * target.c (target_pass_signals): Unconditionally delegate.
8059 * target.h (struct target_ops) <to_pass_signals>: Use
8060 TARGET_DEFAULT_IGNORE.
8062 2014-02-19 Tom Tromey <tromey@redhat.com>
8064 * target-delegates.c: Rebuild.
8065 * target.c (default_mourn_inferior): New function.
8066 (target_mourn_inferior): Unconditionally delegate.
8067 * target.h (struct target_ops) <to_mourn_inferior>: Use
8068 TARGET_DEFAULT_FUNC.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (default_follow_fork): New function.
8074 (target_follow_fork): Unconditionally delegate.
8075 * target.h (struct target_ops) <to_follow_fork>: Use
8076 TARGET_DEFAULT_FUNC.
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8080 * target-delegates.c: Rebuild.
8081 * target.c (target_kill): Unconditionally delegate.
8082 * target.h (struct target_ops) <to_kill>: Use
8083 TARGET_DEFAULT_NORETURN.
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8087 * target-delegates.c: Rebuild.
8088 * target.c (target_masked_watch_num_registers): Unconditionally
8090 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8091 Use TARGET_DEFAULT_RETURN.
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8095 * target-delegates.c: Rebuild.
8096 * target.c (target_remove_mask_watchpoint): Unconditionally
8098 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8099 TARGET_DEFAULT_RETURN.
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target-delegates.c: Rebuild.
8104 * target.c (target_insert_mask_watchpoint): Unconditionally
8106 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8107 TARGET_DEFAULT_RETURN.
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8111 * target-delegates.c: Rebuild.
8112 * target.c (target_ranged_break_num_registers): Unconditionally
8114 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8115 Use TARGET_DEFAULT_RETURN.
8117 2014-02-19 Tom Tromey <tromey@redhat.com>
8119 * target-delegates.c: Rebuild.
8120 * target.c (target_fetch_registers): Unconditionally delegate.
8121 * target.h (struct target_ops) <to_fetch_registers>: Use
8122 TARGET_DEFAULT_NORETURN.
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8126 * target-delegates.c: Rebuild.
8127 * target.c (update_current_target): Don't inherit or default
8129 * target.h (struct target_ops) <to_stop>: Use
8130 TARGET_DEFAULT_IGNORE.
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8134 * target-delegates.c: Rebuild.
8135 * target.c (update_current_target): Don't inherit or default
8136 to_can_run_breakpoint_commands.
8137 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8138 Use TARGET_DEFAULT_RETURN.
8140 2014-02-19 Tom Tromey <tromey@redhat.com>
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_supports_evaluation_of_breakpoint_conditions.
8145 * target.h (struct target_ops)
8146 <to_supports_evaluation_of_breakpoint_conditions>: Use
8147 TARGET_DEFAULT_RETURN.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target-delegates.c: Rebuild.
8152 * target.c (update_current_target): Don't inherit or default
8153 to_augmented_libraries_svr4_read.
8154 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8155 Use TARGET_DEFAULT_RETURN.
8157 2014-02-19 Tom Tromey <tromey@redhat.com>
8159 * target-delegates.c: Rebuild.
8160 * target.c (update_current_target): Don't inherit or default
8162 * target.h (struct target_ops) <to_can_use_agent>: Use
8163 TARGET_DEFAULT_RETURN.
8165 2014-02-19 Tom Tromey <tromey@redhat.com>
8167 * target-delegates.c: Rebuild.
8168 * target.c (update_current_target): Don't inherit or default
8170 * target.h (struct target_ops) <to_use_agent>: Use
8171 TARGET_DEFAULT_NORETURN.
8173 2014-02-19 Tom Tromey <tromey@redhat.com>
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8178 (return_null): Remove.
8179 * target.h (struct target_ops) <to_traceframe_info>: Use
8180 TARGET_DEFAULT_RETURN.
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8184 * target-delegates.c: Rebuild.
8185 * target.c (update_current_target): Don't inherit or default
8186 to_static_tracepoint_markers_by_strid.
8187 * target.h (struct target_ops)
8188 <to_static_tracepoint_markers_by_strid>: Use
8189 TARGET_DEFAULT_NORETURN.
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8193 * target-delegates.c: Rebuild.
8194 * target.c (update_current_target): Don't inherit or default
8195 to_static_tracepoint_marker_at.
8196 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8197 Use TARGET_DEFAULT_RETURN.
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * target-delegates.c: Rebuild.
8202 * target.c (update_current_target): Don't inherit or default
8204 * target.h (struct target_ops) <to_set_permissions>: Use
8205 TARGET_DEFAULT_IGNORE.
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8209 * target-delegates.c: Rebuild.
8210 * target.c (update_current_target): Don't inherit or default
8212 * target.h (struct target_ops) <to_get_tib_address>: Use
8213 TARGET_DEFAULT_NORETURN.
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8217 * target-delegates.c: Rebuild.
8218 * target.c (update_current_target): Don't inherit or default
8220 * target.h (struct target_ops) <to_set_trace_notes>: Use
8221 TARGET_DEFAULT_RETURN.
8223 2014-02-19 Tom Tromey <tromey@redhat.com>
8225 * target-delegates.c: Rebuild.
8226 * target.c (update_current_target): Don't initialize
8227 to_set_trace_buffer_size.
8228 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8229 TARGET_DEFAULT_IGNORE.
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8233 * target-delegates.c: Rebuild.
8234 * target.c (update_current_target): Don't inherit or default
8235 to_set_circular_trace_buffer.
8236 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8237 TARGET_DEFAULT_IGNORE.
8239 2014-02-19 Tom Tromey <tromey@redhat.com>
8241 * target-delegates.c: Rebuild.
8242 * target.c (update_current_target): Don't inherit or default
8243 to_set_disconnected_tracing.
8244 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8245 TARGET_DEFAULT_IGNORE.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target-delegates.c: Rebuild.
8250 * target.c (update_current_target): Don't inherit or default
8251 to_get_min_fast_tracepoint_insn_len.
8252 (return_minus_one): Remove.
8253 * target.h (struct target_ops)
8254 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8256 2014-02-19 Tom Tromey <tromey@redhat.com>
8258 * target-delegates.c: Rebuild.
8259 * target.c (update_current_target): Don't inherit or default
8260 to_get_raw_trace_data.
8261 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8262 TARGET_DEFAULT_NORETURN.
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target-delegates.c: Rebuild.
8267 * target.c (update_current_target): Don't inherit or default
8268 to_upload_trace_state_variables.
8269 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8270 Use TARGET_DEFAULT_RETURN.
8272 2014-02-19 Tom Tromey <tromey@redhat.com>
8274 * target-delegates.c: Rebuild.
8275 * target.c (update_current_target): Don't inherit or default
8276 to_upload_tracepoints.
8277 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8278 TARGET_DEFAULT_RETURN.
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8282 * target-delegates.c: Rebuild.
8283 * target.c (update_current_target): Don't inherit or default
8285 * target.h (struct target_ops) <to_save_trace_data>: Use
8286 TARGET_DEFAULT_NORETURN.
8288 2014-02-19 Tom Tromey <tromey@redhat.com>
8290 * target-delegates.c: Rebuild.
8291 * target.c (update_current_target): Don't inherit or default
8292 to_get_trace_state_variable_value.
8293 * target.h (struct target_ops)
8294 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8296 2014-02-19 Tom Tromey <tromey@redhat.com>
8298 * target-delegates.c: Rebuild.
8299 * target.c (update_current_target): Don't inherit or default
8301 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8303 2014-02-19 Tom Tromey <tromey@redhat.com>
8305 * target-delegates.c: Rebuild.
8306 * target.c (update_current_target): Don't inherit or default
8308 * target.h (struct target_ops) <to_trace_stop>: Use
8309 TARGET_DEFAULT_NORETURN.
8311 2014-02-19 Tom Tromey <tromey@redhat.com>
8313 * target-delegates.c: Rebuild.
8314 * target.c (update_current_target): Don't inherit or default
8315 to_get_tracepoint_status.
8316 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8317 TARGET_DEFAULT_NORETURN.
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8321 * target-delegates.c: Rebuild.
8322 * target.c (update_current_target): Don't inherit or default
8323 to_get_trace_status.
8324 * target.h (struct target_ops) <to_get_trace_status>: Use
8325 TARGET_DEFAULT_RETURN.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8332 * target.h (struct target_ops) <to_trace_start>: Use
8333 TARGET_DEFAULT_NORETURN.
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8337 * target-delegates.c: Rebuild.
8338 * target.c (update_current_target): Don't inherit or default
8339 to_trace_set_readonly_regions.
8340 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8341 Use TARGET_DEFAULT_NORETURN.
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8345 * target-delegates.c: Rebuild.
8346 * target.c (update_current_target): Don't inherit or default
8347 to_disable_tracepoint.
8348 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8349 TARGET_DEFAULT_NORETURN.
8351 2014-02-19 Tom Tromey <tromey@redhat.com>
8353 * target-delegates.c: Rebuild.
8354 * target.c (update_current_target): Don't inherit or default
8355 to_enable_tracepoint.
8356 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8357 TARGET_DEFAULT_NORETURN.
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8361 * target-delegates.c: Rebuild.
8362 * target.c (update_current_target): Don't inherit or default
8363 to_download_trace_state_variable.
8364 * target.h (struct target_ops) <to_download_trace_state_variable>:
8365 Use TARGET_DEFAULT_NORETURN.
8367 2014-02-19 Tom Tromey <tromey@redhat.com>
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_can_download_tracepoint.
8372 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8373 TARGET_DEFAULT_RETURN.
8375 2014-02-19 Tom Tromey <tromey@redhat.com>
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_download_tracepoint.
8380 * target.h (struct target_ops) <to_download_tracepoint>: Use
8381 TARGET_DEFAULT_NORETURN.
8383 2014-02-19 Tom Tromey <tromey@redhat.com>
8385 * target-delegates.c: Rebuild.
8386 * target.c (update_current_target): Don't inherit or default
8388 * target.h (struct target_ops) <to_trace_init>: Use
8389 TARGET_DEFAULT_RETURN.
8391 2014-02-19 Tom Tromey <tromey@redhat.com>
8393 * target-delegates.c: Rebuild.
8394 * target.c (update_current_target): Don't inherit or default
8395 to_supports_string_tracing.
8396 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8397 TARGET_DEFAULT_RETURN.
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8401 * target-delegates.c: Rebuild.
8402 * target.c (update_current_target): Don't inherit or default
8403 to_supports_enable_disable_tracepoint.
8404 * target.h (struct target_ops)
8405 <to_supports_enable_disable_tracepoint>: Use
8406 TARGET_DEFAULT_RETURN.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8412 to_supports_multi_process.
8413 * target.h (struct target_ops) <to_supports_multi_process>: Use
8414 TARGET_DEFAULT_RETURN.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_get_ada_task_ptid.
8421 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8422 TARGET_DEFAULT_FUNC.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_thread_architecture.
8429 * target.h (struct target_ops) <to_thread_architecture>: Use
8430 TARGET_DEFAULT_FUNC.
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_execution_direction.
8437 * target.h (struct target_ops) <to_execution_direction>: Use
8438 TARGET_DEFAULT_FUNC.
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8444 to_can_execute_reverse.
8445 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8446 TARGET_DEFAULT_RETURN.
8447 (target_can_execute_reverse): Unconditionally delegate.
8449 2014-02-19 Tom Tromey <tromey@redhat.com>
8451 * target-delegates.c: Rebuild.
8452 * target.c (update_current_target): Don't inherit or default
8454 (dummy_goto_bookmark): Remove.
8455 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8456 * target.h (struct target_ops) <to_goto_bookmark>: Use
8457 TARGET_DEFAULT_NORETURN.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8464 (dummy_get_bookmark): Remove.
8465 (init_dummy_target): Don't inherit or default to_get_bookmark.
8466 * target.h (struct target_ops) <to_get_bookmark>: Use
8467 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
8474 (init_dummy_target): Don't initialize to_make_corefile_notes.
8475 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8476 TARGET_DEFAULT_FUNC.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_find_memory_regions.
8483 (init_dummy_target): Don't initialize to_find_memory_regions.
8484 * target.h (struct target_ops) <to_find_memory_regions>: Use
8485 TARGET_DEFAULT_FUNC.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8492 * target.h (struct target_ops) <to_log_command>: Use
8493 TARGET_DEFAULT_IGNORE.
8494 (target_log_command): Unconditionally delegate.
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8500 to_pid_to_exec_file.
8501 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8502 TARGET_DEFAULT_RETURN.
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8509 (target_thread_name): Unconditionally delegate.
8510 * target.h (struct target_ops) <to_thread_name>: Use
8511 TARGET_DEFAULT_RETURN.
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8515 * target-delegates.c: Rebuild.
8516 * target.c (update_current_target): Don't inherit or default
8517 to_extra_thread_info.
8518 * target.h (struct target_ops) <to_extra_thread_info>: Use
8519 TARGET_DEFAULT_RETURN.
8521 2014-02-19 Tom Tromey <tromey@redhat.com>
8523 * target-delegates.c: Rebuild.
8524 * target.c (update_current_target): Don't inherit or default
8526 * target.h (struct target_ops) <to_has_exited>: Use
8527 TARGET_DEFAULT_RETURN..
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8531 * target-delegates.c: Rebuild.
8532 * target.c (update_current_target): Don't inherit or default
8533 to_set_syscall_catchpoint.
8534 (return_one): Remove.
8535 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8536 TARGET_DEFAULT_RETURN.
8538 2014-02-19 Tom Tromey <tromey@redhat.com>
8540 * target-delegates.c: Rebuild.
8541 * target.c (update_current_target): Don't inherit or default
8542 to_insert_exec_catchpoint.
8543 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8544 TARGET_DEFAULT_RETURN.
8546 2014-01-08 Tom Tromey <tromey@redhat.com>
8548 * target-delegates.c: Rebuild.
8549 * target.c (update_current_target): Don't inherit or default
8550 to_insert_exec_catchpoint.
8551 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8552 TARGET_DEFAULT_RETURN.
8554 2014-02-19 Tom Tromey <tromey@redhat.com>
8556 * target-delegates.c: Rebuild.
8557 * target.c (update_current_target): Don't inherit or default
8558 to_remove_vfork_catchpoint.
8559 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8560 TARGET_DEFAULT_RETURN.
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8564 * target-delegates.c: Rebuild.
8565 * target.c (update_current_target): Don't inherit or default
8566 to_insert_vfork_catchpoint.
8567 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8568 TARGET_DEFAULT_RETURN.
8570 2014-02-19 Tom Tromey <tromey@redhat.com>
8572 * target-delegates.c: Rebuild.
8573 * target.c (update_current_target): Don't inherit or default
8574 to_remove_fork_catchpoint.
8575 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8576 TARGET_DEFAULT_RETURN.
8578 2014-02-19 Tom Tromey <tromey@redhat.com>
8580 * target-delegates.c: Rebuild.
8581 * target.c (update_current_target): Don't inherit or default
8582 to_insert_fork_catchpoint.
8583 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8584 TARGET_DEFAULT_RETURN.
8586 2014-02-19 Tom Tromey <tromey@redhat.com>
8588 * target-delegates.c: Rebuild.
8589 * target.c (update_current_target): Don't inherit or default
8590 to_post_startup_inferior.
8591 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8592 TARGET_DEFAULT_IGNORE.
8594 2014-02-19 Tom Tromey <tromey@redhat.com>
8596 * target-delegates.c: Rebuild.
8597 * target.c (update_current_target): Don't inherit or default
8599 * target.h (struct target_ops) <to_load>: Use
8600 TARGET_DEFAULT_NORETURN.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8607 * target.h (struct target_ops) <to_terminal_info>: Use
8608 TARGET_DEFAULT_FUNC.
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8612 * target-delegates.c: Rebuild.
8613 * target.c (update_current_target): Don't inherit or default
8614 to_terminal_save_ours.
8615 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8616 TARGET_DEFAULT_IGNORE.
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8620 * target-delegates.c: Rebuild.
8621 * target.c (update_current_target): Don't inherit or default
8623 * target.h (struct target_ops) <to_terminal_ours>: Use
8624 TARGET_DEFAULT_IGNORE.
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8628 * target-delegates.c: Rebuild.
8629 * target.c (update_current_target): Don't inherit or default
8630 to_terminal_ours_for_output.
8631 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8632 TARGET_DEFAULT_IGNORE.
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8636 * target-delegates.c: Rebuild.
8637 * target.c (update_current_target): Don't inherit or default
8638 to_terminal_inferior.
8639 * target.h (struct target_ops) <to_terminal_inferior>: Use
8640 TARGET_DEFAULT_IGNORE.
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8644 * target-delegates.c: Rebuild.
8645 * target.c (update_current_target): Don't inherit or default
8647 * target.h (struct target_ops) <to_terminal_init>: Use
8648 TARGET_DEFAULT_IGNORE.
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8652 * target-delegates.c: Rebuild.
8653 * target.c (update_current_target): Don't inherit or default
8654 to_can_accel_watchpoint_condition.
8655 * target.h (struct target_ops)
8656 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8658 2014-02-19 Tom Tromey <tromey@redhat.com>
8660 * target-delegates.c: Rebuild.
8661 * target.c (update_current_target): Don't inherit or default
8662 to_region_ok_for_hw_watchpoint.
8663 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8664 Use TARGET_DEFAULT_FUNC.
8666 2014-02-19 Tom Tromey <tromey@redhat.com>
8668 * target-delegates.c: Rebuild.
8669 * target.c (update_current_target): Don't inherit or default
8670 to_watchpoint_addr_within_range.
8671 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8672 Use TARGET_DEFAULT_FUNC.
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8676 * target-delegates.c: Rebuild.
8677 * target.c (update_current_target): Don't inherit or default
8678 to_remove_watchpoint.
8679 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8680 TARGET_DEFAULT_NORETURN.
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * target-delegates.c: Rebuild.
8685 * target.c (update_current_target): Don't inherit or default
8686 to_insert_watchpoint.
8687 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8688 TARGET_DEFAULT_RETURN.
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8692 * target-delegates.c: Rebuild.
8693 * target.c (update_current_target): Don't inherit or default
8694 to_remove_hw_breakpoint.
8695 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8696 TARGET_DEFAULT_RETURN.
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8700 * target-delegates.c: Rebuild.
8701 * target.c (update_current_target): Don't inherit or default
8702 to_insert_hw_breakpoint.
8703 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8704 TARGET_DEFAULT_RETURN.
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8710 to_can_use_hw_breakpoint.
8711 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8712 TARGET_DEFAULT_RETURN.
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8716 * target-delegates.c: Rebuild.
8717 * target.c (update_current_target): Don't inherit or default
8719 * target.h (struct target_ops) <to_files_info>: Use
8720 TARGET_DEFAULT_IGNORE.
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8724 * target-delegates.c: Rebuild.
8725 * target.c (update_current_target): Don't inherit or default
8727 * target.h (struct target_ops) <to_store>: Use
8728 TARGET_DEFAULT_NORETURN.
8730 2014-02-19 Tom Tromey <tromey@redhat.com>
8732 * target-delegates.c: Rebuild.
8733 * target.c (update_current_target): Don't inherit or default
8735 * target.h (struct target_ops) <to_post_attach>: Use
8736 TARGET_DEFAULT_IGNORE.
8738 2014-02-19 Tom Tromey <tromey@redhat.com>
8740 * target-delegates.c: Rebuild.
8741 * target.c (update_current_target): Don't inherit or default
8743 (default_rcmd): New function.
8744 (do_monitor_command): Unconditionally delegate.
8745 * target.h (struct target_ops) <to_rmcd>: Use
8746 TARGET_DEFAULT_FUNC.
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8750 * target-delegates.c: Rebuild.
8751 * target.c (init_dummy_target): Don't initialize to_attach.
8752 (target_attach): Unconditionally delegate.
8753 * target.h (struct target_ops) <to_attach>: Use
8754 TARGET_DEFAULT_FUNC.
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8758 * target-delegates.c: Rebuild.
8759 * target.c (target_detach): Unconditionally delegate.
8760 (init_dummy_target): Don't initialize to_detach.
8761 * target.h (struct target_ops) <to_detach>: Use
8762 TARGET_DEFAULT_IGNORE.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8768 (target_augmented_libraries_svr4_read): Add argument.
8769 * target.c (update_current_target): Update.
8770 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target.h (struct target_ops) <to_call_history_range>: Add
8777 * target.c (target_call_history_range): Add argument.
8778 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8780 (record_btrace_call_history_from): Update.
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target.h (struct target_ops) <to_call_history_from>: Add
8786 * target.c (target_call_history_from): Add argument.
8787 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8792 * target.h (struct target_ops) <to_call_history>: Add argument.
8793 * target.c (target_call_history): Add argument.
8794 * record-btrace.c (record_btrace_call_history): Add 'self'
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8799 * target.h (struct target_ops) <to_insn_history_range>: Add
8801 * target.c (target_insn_history_range): Add argument.
8802 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8804 (record_btrace_insn_history_from): Update.
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8808 * target.h (struct target_ops) <to_insn_history_from>: Add
8810 * target.c (target_insn_history_from): Add argument.
8811 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target.h (struct target_ops) <to_insn_history>: Add argument.
8817 * target.c (target_insn_history): Add argument.
8818 * record-btrace.c (record_btrace_insn_history): Add 'self'
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target.h (struct target_ops) <to_goto_record>: Add argument.
8824 * target.c (target_goto_record): Add argument.
8825 * record-full.c (record_full_goto): Add 'self' argument.
8826 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8828 2014-02-19 Tom Tromey <tromey@redhat.com>
8830 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8831 * target.c (target_goto_record_end): Add argument.
8832 * record-full.c (record_full_goto_end): Add 'self' argument.
8833 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target.h (struct target_ops) <to_goto_record_begin>: Add
8839 * target.c (target_goto_record_begin): Add argument.
8840 * record-full.c (record_full_goto_begin): Add 'self' argument.
8841 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8846 * target.h (struct target_ops) <to_record_is_replaying>: Add
8848 * target.c (target_record_is_replaying): Add argument.
8849 * record-full.c (record_full_is_replaying): Add 'self' argument.
8850 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8852 (record_btrace_xfer_partial, record_btrace_store_registers)
8853 (record_btrace_prepare_to_store, record_btrace_resume)
8854 (record_btrace_wait, record_btrace_decr_pc_after_break)
8855 (record_btrace_find_new_threads, record_btrace_thread_alive):
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8860 * target.h (struct target_ops) <to_delete_record>: Add argument.
8861 * target.c (target_delete_record): Add argument.
8862 * record-full.c (record_full_delete): Add 'self' argument.
8864 2014-02-19 Tom Tromey <tromey@redhat.com>
8866 * target.h (struct target_ops) <to_save_record>: Add argument.
8867 * target.c (target_save_record): Add argument.
8868 * record-full.c (record_full_save): Add 'self' argument.
8869 (record_full_save): Add 'self' argument.
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8873 * target.h (struct target_ops) <to_info_record>: Add argument.
8874 * target.c (target_info_record): Add argument.
8875 * record.c (info_record_command): Add argument.
8876 * record-full.c (record_full_info): Add 'self' argument.
8877 * record-btrace.c (record_btrace_info): Add 'self' argument.
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8881 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8882 * target.c (target_stop_recording): Add argument.
8883 * record.c (record_stop): Add argument.
8884 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8889 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8890 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8891 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8893 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8894 (_initialize_amd64_linux_nat): Use it.
8895 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8896 (_initialize_i386_linux_nat): Use it.
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8901 * target.c (target_teardown_btrace): Add argument.
8902 * remote.c (remote_teardown_btrace): Add 'self' argument.
8903 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8905 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8908 2014-02-19 Tom Tromey <tromey@redhat.com>
8910 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8911 * target.c (target_disable_btrace): Add argument.
8912 * remote.c (remote_disable_btrace): Add 'self' argument.
8913 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8915 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8921 * target.c (target_enable_btrace): Add argument.
8922 * remote.c (remote_enable_btrace): Add 'self' argument.
8923 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8925 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8931 (target_can_use_agent): Add argument.
8932 * target.c (update_current_target): Update.
8933 * remote.c (remote_can_use_agent): Add 'self' argument.
8934 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8938 * target.h (struct target_ops) <to_use_agent>: Add argument.
8939 (target_use_agent): Add argument.
8940 * target.c (update_current_target): Update.
8941 * remote.c (remote_use_agent): Add 'self' argument.
8942 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8947 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8948 (target_traceframe_info): Add argument.
8949 * target.c (update_current_target): Update.
8950 * remote.c (remote_traceframe_info): Add 'self' argument.
8951 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8955 * target.h (target_static_tracepoint_markers_by_strid): Add
8957 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8959 * target.c (update_current_target): Update.
8960 * remote.c (struct target_ops)
8961 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8962 * linux-nat.c (struct target_ops)
8963 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8969 (target_static_tracepoint_marker_at): Add argument.
8970 * target.c (update_current_target): Update.
8971 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8976 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8977 (target_set_permissions): Add argument.
8978 * target.c (update_current_target): Update.
8979 * remote.c (remote_set_permissions): Add 'self' argument.
8980 (remote_start_remote): Update.
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8985 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8986 (target_get_tib_address): Add argument.
8987 * target.c (update_current_target): Update.
8988 * remote.c (remote_get_tib_address): Add 'self' argument.
8990 2014-02-19 Tom Tromey <tromey@redhat.com>
8992 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8993 (target_set_trace_notes): Add argument.
8994 * target.c (update_current_target): Update.
8995 * remote.c (remote_set_trace_notes): Add 'self' argument.
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9001 (target_set_trace_buffer_size): Add argument.
9002 * target.c (update_current_target): Update.
9003 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9009 (target_set_circular_trace_buffer): Add argument.
9010 * target.c (update_current_target): Update.
9011 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9014 2014-02-19 Tom Tromey <tromey@redhat.com>
9016 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9018 (target_set_disconnected_tracing): Add argument.
9019 * target.c (update_current_target): Update.
9020 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target.h (struct target_ops)
9025 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9026 (target_get_min_fast_tracepoint_insn_len): Add argument.
9027 * target.c (update_current_target): Update.
9028 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9035 (target_get_raw_trace_data): Add argument.
9036 * target.c (update_current_target): Update.
9037 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9041 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9043 (target_upload_trace_state_variables): Add argument.
9044 * target.c (update_current_target): Update.
9045 * remote.c (remote_upload_trace_state_variables): Add 'self'
9047 (remote_start_remote): Update.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9053 (target_upload_tracepoints): Add argument.
9054 * target.c (update_current_target): Update.
9055 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9056 (remote_start_remote): Update.
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9060 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9061 (target_save_trace_data): Add argument.
9062 * target.c (update_current_target): Update.
9063 * remote.c (remote_save_trace_data): Add 'self' argument.
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9069 * target.h (struct target_ops)
9070 <to_get_trace_state_variable_value>: Add argument.
9071 (target_get_trace_state_variable_value): Add argument.
9072 * target.c (update_current_target): Update.
9073 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9075 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9079 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9080 * target.h (struct target_ops) <to_trace_find>: Add argument.
9081 (target_trace_find): Add argument.
9082 * target.c (update_current_target): Update.
9083 * remote.c (remote_trace_find): Add 'self' argument.
9084 * ctf.c (ctf_trace_find): Add 'self' argument.
9086 2014-02-19 Tom Tromey <tromey@redhat.com>
9088 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9089 (target_trace_stop): Add argument.
9090 * target.c (update_current_target): Update.
9091 * remote.c (remote_trace_stop): Add 'self' argument.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9096 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9098 (target_get_tracepoint_status): Add argument.
9099 * target.c (update_current_target): Update.
9100 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9105 * target.h (struct target_ops) <to_get_trace_status>: Add
9107 (target_get_trace_status): Add argument.
9108 * target.c (update_current_target): Update.
9109 * remote.c (remote_get_trace_status): Add 'self' argument.
9110 (remote_start_remote, remote_can_download_tracepoint): Update.
9111 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target.h (struct target_ops) <to_trace_start>: Add argument.
9116 (target_trace_start): Add argument.
9117 * target.c (update_current_target): Update.
9118 * remote.c (remote_trace_start): Add 'self' argument.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9124 (target_trace_set_readonly_regions): Add argument.
9125 * target.c (update_current_target): Update.
9126 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9133 (target_disable_tracepoint): Add argument.
9134 * target.c (update_current_target): Update.
9135 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9139 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9141 (target_enable_tracepoint): Add argument.
9142 * target.c (update_current_target): Update.
9143 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9147 * target.h (struct target_ops) <to_download_trace_state_variable>:
9149 (target_download_trace_state_variable): Add argument.
9150 * target.c (update_current_target): Update.
9151 * remote.c (remote_download_trace_state_variable): Add 'self'
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9158 (target_can_download_tracepoint): Add argument.
9159 * target.c (update_current_target): Update.
9160 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target.h (struct target_ops) <to_download_tracepoint>: Add
9166 (target_download_tracepoint): Add argument.
9167 * target.c (update_current_target): Update.
9168 * remote.c (remote_download_tracepoint): Add 'self' argument.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target.h (struct target_ops) <to_trace_init>: Add argument.
9173 (target_trace_init): Add argument.
9174 * target.c (update_current_target): Update.
9175 * remote.c (remote_trace_init): Add 'self' argument.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9180 * target.c (target_fileio_readlink): Add argument.
9181 * remote.c (remote_hostio_readlink): Add 'self' argument.
9182 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9187 * target.c (target_fileio_unlink): Add argument.
9188 * remote.c (remote_hostio_unlink): Add 'self' argument.
9189 (remote_file_delete): Update.
9190 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9192 2014-02-19 Tom Tromey <tromey@redhat.com>
9194 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9195 * target.c (target_fileio_close): Add argument.
9196 * remote.c (remote_hostio_close): Add 'self' argument.
9197 (remote_hostio_close_cleanup): Update.
9198 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9200 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9204 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9205 * target.c (target_fileio_pread): Add argument.
9206 * remote.c (remote_hostio_pread): Add 'self' argument.
9207 (remote_bfd_iovec_pread, remote_file_get): Update.
9208 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9213 * target.c (target_fileio_pwrite): Add argument.
9214 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9215 (remote_file_put): Update.
9216 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9220 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9221 * target.c (target_fileio_open): Add argument.
9222 * remote.c (remote_hostio_open): Add 'self' argument.
9223 (remote_bfd_iovec_open): Add 'self' argument.
9224 (remote_file_put): Add 'self' argument.
9225 (remote_file_get): Add 'self' argument.
9226 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9232 (target_can_run_breakpoint_commands): Add argument.
9233 * target.c (update_current_target): Update.
9234 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9236 (remote_insert_breakpoint): Add 'self' argument.
9237 (remote_insert_hw_breakpoint): Add 'self' argument.
9238 (remote_can_run_breakpoint_commands): Add 'self' argument.
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9242 * target.h (struct target_ops)
9243 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9244 (target_supports_evaluation_of_breakpoint_conditions): Add
9246 * target.c (update_current_target): Update.
9247 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9249 (remote_insert_breakpoint): Add 'self' argument.
9250 (remote_insert_hw_breakpoint): Add 'self' argument.
9251 (remote_supports_cond_breakpoints): Add 'self' argument.
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9257 (target_supports_string_tracing): Add argument.
9258 * target.c (update_current_target): Update.
9259 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target.h (struct target_ops)
9264 <to_supports_disable_randomization>: Add argument.
9265 * target.c (find_default_supports_disable_randomization): Add
9267 (target_supports_disable_randomization): Add argument.
9268 (find_default_supports_disable_randomization): Add 'self'
9270 * remote.c (extended_remote_supports_disable_randomization): Add
9272 (remote_supports_disable_randomization): Add 'self' argument.
9273 (extended_remote_create_inferior): Update.
9274 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target.h (struct target_ops)
9280 <to_supports_enable_disable_tracepoint>: Add argument.
9281 (target_supports_enable_disable_tracepoint): Add argument.
9282 * target.c (update_current_target): Update.
9283 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target.h (struct target_ops) <to_supports_multi_process>: Add
9290 (target_supports_multi_process): Add argument.
9291 * target.c (update_current_target): Update.
9292 * remote.c (remote_supports_multi_process): Add 'self' argument.
9293 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9295 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target.h (struct target_ops) <to_execution_direction>: Add
9302 (target_execution_direction): Add argument.
9303 * target.c (default_execution_direction): Add 'self' argument.
9304 * record-full.c (record_full_execution_direction): Add 'self'
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9311 (target_can_execute_reverse): Add argument.
9312 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9313 * record-full.c (record_full_can_execute_reverse): Add 'self'
9315 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9320 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9321 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9323 (target_get_ada_task_ptid): Add argument.
9324 * target.c (update_current_target): Update.
9325 (default_get_ada_task_ptid): Add 'self' argument.
9326 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9327 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9328 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9330 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9332 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9334 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9336 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9337 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9342 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9343 (target_goto_bookmark): Add argument.
9344 * target.c (dummy_goto_bookmark): Add 'self' argument.
9345 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9349 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9350 (target_get_bookmark): Add argument.
9351 * target.c (dummy_get_bookmark): Add 'self' argument.
9352 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9356 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9358 (target_make_corefile_notes): Add argument.
9359 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9360 * procfs.c (procfs_make_note_section): Add 'self' argument.
9361 (procfs_make_note_section): Add 'self' argument.
9362 (procfs_make_note_section): Add 'self' argument.
9363 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9365 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9366 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9367 * exec.c (exec_make_note_section): Add 'self' argument.
9368 (exec_make_note_section): Add 'self' argument.
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9372 * target.h (struct target_ops) <to_find_memory_regions>: Add
9374 (target_find_memory_regions): Add argument.
9375 * target.c (dummy_find_memory_regions): Add 'self' argument.
9376 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9377 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9378 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9379 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9380 * exec. (exec_do_find_memory_regions): New global.
9381 (exec_set_find_memory_regions): Rewrite.
9382 (exec_find_memory_regions): New function.
9383 (init_exec_ops): Use exec_find_memory_regions.
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * target.h (struct target_ops) <to_supports_non_stop>: Add
9389 * target.c (find_default_supports_non_stop): Add argument.
9390 (target_supports_non_stop): Add argument.
9391 (find_default_supports_non_stop): Add 'self' argument.
9392 * remote.c (remote_supports_non_stop): Add 'self' argument.
9393 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9397 * target.h (struct target_ops) <to_log_command>: Add argument.
9398 (target_log_command): Add argument.
9399 * serial.h (serial_log_command): Add 'self' argument.
9400 * serial.c (serial_log_command): Add 'self' argument.
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9404 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9405 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9407 (target_pid_to_exec_file): Add argument.
9408 * target.c (debug_to_pid_to_exec_file): Add argument.
9409 (update_current_target): Update.
9410 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9411 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9412 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9413 (linux_handle_extended_wait): Update.
9414 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9415 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9416 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9417 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * target.h (struct target_ops) <to_rcmd>: Add argument.
9422 (target_rcmd): Add argument.
9423 * target.c (debug_to_rcmd): Add argument.
9424 (update_current_target, do_monitor_command): Update.
9425 * remote.c (remote_rcmd): Add 'self' argument.
9426 * monitor.c (monitor_rcmd): Add 'self' argument.
9428 2014-02-19 Tom Tromey <tromey@redhat.com>
9430 * windows-nat.c (windows_stop): Add 'self' argument.
9431 * target.h (struct target_ops) <to_stop>: Add argument.
9432 * target.c (target_stop): Add argument.
9433 (debug_to_stop): Add argument.
9434 (update_current_target): Update.
9435 * remote.c (remote_stop): Add 'self' argument.
9436 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9437 (gdbsim_cntrl_c): Update.
9438 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9439 * procfs.c (procfs_stop): Add 'self' argument.
9440 * nto-procfs.c (procfs_stop): Add 'self' argument.
9441 * monitor.c (monitor_stop): Add 'self' argument.
9442 (monitor_open): Update.
9443 * linux-nat.c (linux_nat_stop): Add argument.
9444 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9445 * gnu-nat.c (gnu_stop): Add 'self' argument.
9446 * darwin-nat.c (darwin_stop): Add 'self' argument.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target.h (struct target_ops) <to_thread_name>: Add argument.
9451 * target.c (target_thread_name): Add argument.
9452 (update_current_target): Update.
9453 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target.h (struct target_ops) <to_extra_thread_info>: Add
9459 (target_extra_thread_info): Add argument.
9460 * target.c (update_current_target): Update.
9461 * remote.c (remote_threads_extra_info): Add 'self' argument.
9462 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9464 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9465 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9466 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9468 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9470 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9472 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target.h (struct target_ops) <to_program_signals>: Add argument.
9478 * target.c (target_program_signals): Add argument.
9479 * remote.c (remote_program_signals): Add 'self' argument.
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9483 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9484 * target.c (target_pass_signals): Add argument.
9485 * remote.c (remote_pass_signals): Add 'self' argument.
9486 (remote_start_remote): Update.
9487 * procfs.c (procfs_pass_signals): Add 'self' argument.
9488 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9489 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9490 (linux_nat_create_inferior, linux_nat_attach): Update.
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * windows-nat.c (windows_can_run): Add 'self' argument.
9495 * target.h (struct target_ops) <to_can_run>: Add argument.
9496 (target_can_run): Add argument.
9497 * target.c (debug_to_can_run): Add argument.
9498 (update_current_target): Update.
9499 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9500 * inf-child.c (inf_child_can_run): Add 'self' argument.
9501 * go32-nat.c (go32_can_run): Add 'self' argument.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target.h (struct target_ops) <to_has_exited>: Add argument.
9506 (target_has_exited): Add argument.
9507 * target.c (debug_to_has_exited): Add argument.
9508 (update_current_target): Update.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9514 (target_set_syscall_catchpoint): Add argument.
9515 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9517 * target.c (update_current_target): Update.
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9523 (target_remove_exec_catchpoint): Add argument.
9524 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9525 (update_current_target): Update.
9526 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9531 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9533 (target_insert_exec_catchpoint): Add argument.
9534 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9535 (update_current_target): Update.
9536 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9543 (target_remove_vfork_catchpoint): Add argument.
9544 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9545 (update_current_target): Update.
9546 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9551 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9553 (target_insert_vfork_catchpoint): Add argument.
9554 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9555 (update_current_target): Update.
9556 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9563 (target_remove_fork_catchpoint): Add argument.
9564 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9565 (update_current_target): Update.
9566 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9573 (target_insert_fork_catchpoint): Add argument.
9574 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9575 (update_current_target): Update.
9576 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9581 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9583 (target_post_startup_inferior): Add argument.
9584 * target.c (debug_to_post_startup_inferior): Add argument.
9585 (update_current_target): Update.
9586 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9588 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9590 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9592 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9594 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9596 (super_post_startup_inferior): Likewise.
9597 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9599 (super_post_startup_inferior): Likewise.
9600 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9601 Add 'self' argument.
9602 (super_post_startup_inferior): Likewise.
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target.h (struct target_ops) <to_load>: Add argument.
9607 * target.c (target_load): Add argument.
9608 (debug_to_load): Add argument.
9609 (update_current_target): Update.
9610 * remote.c (remote_load): Add 'self' argument.
9611 * remote-sim.c (gdbsim_load): Add 'self' argument.
9612 * remote-mips.c (mips_load): Add 'self' argument.
9613 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9614 * monitor.c (monitor_load): Add 'self' argument.
9615 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9620 (target_terminal_info): Add argument.
9621 * target.c (debug_to_terminal_info): Add argument.
9622 (default_terminal_info): Likewise.
9623 * inflow.c (child_terminal_info): Add 'self' argument.
9624 * inferior.h (child_terminal_info): Add 'self' argument.
9625 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9629 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9631 (target_terminal_save_ours): Add argument.
9632 * target.c (debug_to_terminal_save_ours): Add argument.
9633 (update_current_target): Update.
9634 * inflow.c (terminal_save_ours): Add 'self' argument.
9635 * inferior.h (terminal_save_ours): Add 'self' argument.
9637 2014-02-19 Tom Tromey <tromey@redhat.com>
9639 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9640 (target_terminal_ours): Add argument.
9641 * target.c (debug_to_terminal_ours): Add argument.
9642 (update_current_target): Update.
9643 * remote.c (remote_terminal_ours): Add 'self' argument.
9644 (remote_close): Update.
9645 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9646 * inflow.c (terminal_ours): Add 'self' argument.
9647 * inferior.h (terminal_ours): Add 'self' argument.
9648 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9650 2014-02-19 Pedro Alves <palves@redhat.com>
9651 Tom Tromey <tromey@redhat.com>
9653 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9655 (target_terminal_ours_for_output): Add argument.
9656 * target.c (debug_to_terminal_ours_for_output): Add argument.
9657 (update_current_target): Update.
9658 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9659 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9660 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9664 * target.h (struct target_ops) <to_terminal_inferior>: Add
9666 * target.c (target_terminal_inferior): Add argument.
9667 (update_current_target): Update.
9668 * remote.c (remote_terminal_inferior): Add 'self' argument.
9669 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9670 * inflow.c (terminal_inferior): Add 'self' argument.
9671 * inferior.h (terminal_inferior): Add 'self' argument.
9672 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9673 (go32_terminal_inferior): Add 'self' argument.
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9677 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9678 (target_terminal_init): Add argument.
9679 * target.c (debug_to_terminal_init): Add argument.
9680 (update_current_target): Update.
9681 * inflow.c (terminal_init_inferior): Add 'self' argument.
9682 * inferior.h (terminal_init_inferior): Add 'self' argument.
9683 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9684 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9688 * target.h (struct target_ops)
9689 <to_can_accel_watchpoint_condition>: Add argument.
9690 (target_can_accel_watchpoint_condition): Add argument.
9691 * target.c (debug_to_can_accel_watchpoint_condition): Add
9693 (update_current_target): Update.
9694 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9701 (target_region_ok_for_hw_watchpoint): Add argument.
9702 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9703 (default_region_ok_for_hw_watchpoint): Add argument.
9704 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9705 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9707 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9709 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9711 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9713 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9715 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9717 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9718 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9720 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9721 Add 'self' argument.
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9727 (target_insert_watchpoint): Add argument.
9728 * target.c (debug_to_insert_watchpoint): Add argument.
9729 (update_current_target): Update.
9730 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9731 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9732 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9733 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9734 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9735 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9737 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9738 (procfs_insert_hw_watchpoint): Add 'self' argument.
9739 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9741 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9743 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9745 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9746 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9748 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9753 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9755 (target_remove_watchpoint): Add argument.
9756 * target.c (debug_to_remove_watchpoint): Add argument.
9757 (update_current_target): Update.
9758 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9759 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9760 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9761 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9762 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9763 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9765 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9766 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9768 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9770 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9772 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9773 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9775 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9780 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9782 (target_remove_hw_breakpoint): Add argument.
9783 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9784 (update_current_target): Update.
9785 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9786 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9788 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9789 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9791 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9798 (target_insert_hw_breakpoint): Add argument.
9799 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9800 (update_current_target): Update.
9801 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9802 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9804 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9805 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9806 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9808 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9815 (target_can_use_hardware_watchpoint): Add argument.
9816 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9817 (update_current_target): Update.
9818 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9820 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9822 * remote.c (remote_check_watch_resources): Add 'self' argument.
9823 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9824 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9826 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9827 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9829 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9831 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9833 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9835 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9837 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9839 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9840 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9842 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops) <to_post_attach>: Add argument.
9848 (target_post_attach): Add argument.
9849 * target.c (debug_to_post_attach): Add argument.
9850 (update_current_target): Update.
9851 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9852 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9853 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9854 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9855 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9859 * windows-nat.c (windows_close): Add 'self' argument.
9860 * tracepoint.c (tfile_close): Add 'self' argument.
9861 * target.h (struct target_ops) <to_close>: Add argument.
9862 * target.c (target_close): Add argument.
9863 (update_current_target): Update.
9864 * remote.c (remote_close): Add 'self' argument.
9865 * remote-sim.c (gdbsim_close): Add 'self' argument.
9866 * remote-mips.c (mips_close): Add 'self' argument.
9867 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9868 * record-full.c (record_full_close): Add 'self' argument.
9869 * record-btrace.c (record_btrace_close): Add 'self' argument.
9870 * monitor.h (monitor_close): Add 'self' argument.
9871 * monitor.c (monitor_close): Add 'self' argument.
9872 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9873 * linux-nat.c (linux_nat_close): Add argument.
9874 * go32-nat.c (go32_close): Add 'self' argument.
9875 * exec.c (exec_close_1): Add 'self' argument.
9876 * ctf.c (ctf_close): Add 'self' argument.
9877 * corelow.c (core_close): Add 'self' argument.
9878 (core_close_cleanup): Update.
9879 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9880 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9884 * remote.c (remote_load): New function.
9885 (init_remote_ops): Use it.
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9889 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9891 * common/linux-btrace.h (linux_supports_btrace): Update.
9892 * remote.c (remote_supports_btrace): Add "self" argument.
9893 * target-delegates.c: Rebuild.
9894 * target.c (target_supports_btrace): Remove.
9895 * target.h (struct target_ops) <to_supports_btrace>: Add
9896 target_ops argument.
9897 (target_supports_btrace): New define.
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9901 * record-full.c (record_full_beneath_to_resume_ops)
9902 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9903 (record_full_beneath_to_wait)
9904 (record_full_beneath_to_store_registers_ops)
9905 (record_full_beneath_to_store_registers)
9906 (record_full_beneath_to_xfer_partial_ops)
9907 (record_full_beneath_to_xfer_partial)
9908 (record_full_beneath_to_insert_breakpoint_ops)
9909 (record_full_beneath_to_insert_breakpoint)
9910 (record_full_beneath_to_remove_breakpoint_ops)
9911 (record_full_beneath_to_remove_breakpoint)
9912 (record_full_beneath_to_stopped_by_watchpoint)
9913 (record_full_beneath_to_stopped_data_address)
9914 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9915 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9916 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9917 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9918 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9919 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9920 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9921 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9922 (record_full_resume, record_full_wait_1)
9923 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9924 (record_full_store_registers, record_full_xfer_partial)
9925 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9926 (record_full_async, record_full_core_xfer_partial): Use target
9928 * target-delegates.c: Rebuild.
9929 * target.c (current_xfer_partial): Remove.
9930 (update_current_target): Do not INHERIT or de_fault
9931 to_insert_breakpoint, to_remove_breakpoint,
9932 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9933 to_is_async_p, to_async. Do not set to_xfer_partial field.
9934 (default_xfer_partial): Simplify.
9935 (current_xfer_partial): Remove.
9936 (target_wait, target_resume): Simplify.
9937 (find_default_can_async_p, find_default_is_async_p): Update.
9938 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9939 to_xfer_partial, to_stopped_by_watchpoint,
9940 to_stopped_data_address.
9941 (target_store_registers): Simplify.
9942 (forward_target_remove_breakpoint)
9943 (forward_target_insert_breakpoint): Remove.
9944 (target_remove_breakpoint, target_insert_breakpoint)
9945 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9946 * target.h (struct target_ops) <to_resume, to_wait,
9947 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9948 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9949 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9951 (forward_target_remove_breakpoint)
9952 (forward_target_insert_breakpoint): Remove.
9953 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9955 (record_btrace_insert_breakpoint): Delegate directly.
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target-delegates.c: New file.
9961 * target.c: Include target-delegates.c.
9962 (init_dummy_target): Call install_dummy_methods.
9963 (complete_target_initialization): Call install_delegators.
9964 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9965 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9966 * make-target-delegates: New file.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * record.c (find_record_target): Use find_target_at.
9971 * target.c (find_target_at): New function.
9972 * target.h (find_target_at): Declare.
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9978 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9980 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9981 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9983 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9985 * linux-nat.c (save_sigtrap): Update.
9986 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9987 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9988 (linux_nat_close): Update.
9989 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9991 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9993 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9994 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9995 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9996 (tmp_to_async): Add 'ops' argument.
9997 (record_full_stopped_by_watchpoint, record_full_async)
9998 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10000 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10001 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10002 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10003 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10004 (remote_is_async_p, remote_async): Add 'ops' argument.
10005 (remote_stopped_data_address): Update.
10006 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10007 * target.c (update_current_target)
10008 (find_default_can_async_p, find_default_is_async_p): Update.
10009 (init_dummy_target): Update.
10010 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10011 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10012 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10013 (target_can_async_p, target_is_async_p, target_async)
10014 (target_stopped_by_watchpoint): Update.
10016 2014-02-19 Yao Qi <yao@codesourcery.com>
10019 * gdbarch.sh: Remove startup_gdbarch.
10020 * gdbarch.c: Regenerated.
10021 * gdbarch.h: Likewise.
10023 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10025 * rl78-tdep.c (rl78_g10_register_name): New function.
10026 (rl78_return_value): Add g10 support.
10027 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10030 2014-02-17 Doug Evans <xdje42@gmail.com>
10032 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10033 (SUBDIR_GUILE_SRCS): Ditto.
10034 (scm-gsmob.o): Ditto.
10036 2014-02-17 Yao Qi <yao@codesourcery.com>
10038 * gnu-nat.c (ILL_RPC): Declare defined function.
10040 2014-02-17 Yao Qi <yao@codesourcery.com>
10042 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10043 mach_msg_type_number_t.
10044 (gnu_write_inferior): Likewise.
10046 2014-02-17 Yao Qi <yao@codesourcery.com>
10048 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10050 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10051 (inf_validate_procs, inf_signal): Likewise.
10052 (S_exception_raise_request): Likewise.
10053 (do_mach_notify_dead_name): Likewise.
10054 (steal_exc_port): Likewise.
10055 (gnu_read_inferior): Change 'copy_count''s type to
10056 mach_msg_type_number_t.
10057 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10060 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10062 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10063 flag. Adjust all users; in particular...
10064 (gnu_wait): ..., don't decrement its value in here...
10065 (gnu_create_inferior): ..., and instead set the flag in here,
10066 around the startup_inferior call, and call that one with
10067 START_INFERIOR_TRAPS_EXPECTED.
10069 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10070 (ILL_RPC): ... new macro.
10071 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10072 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10073 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10074 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10075 functions with ILL_RPC macro.
10076 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10077 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10078 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10079 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10080 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10081 (S_proc_getlogin_reply, S_proc_getsid_reply)
10082 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10083 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10084 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10085 (S_proc_getnports_reply, S_proc_is_important_reply)
10086 (S_proc_get_code_reply): New stub functions, generated with
10089 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10090 collected the type check structures.
10092 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10094 2014-02-14 Doug Evans <dje@google.com>
10096 * target.c (target_write_partial): Fix result type.
10098 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10100 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10101 the proper offsets to access fpregset_t.
10103 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10105 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10106 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10107 * h8300-tdep.c (setmachinelist): Remove global.
10108 * hppa-tdep.c (hppa_sigtramp): Remove global.
10109 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10110 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10111 * ravenscar-thread.c (update_target_observer): Remove global.
10112 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10114 2014-02-12 Tom Tromey <tromey@redhat.com>
10116 * common/rsp-low.c: Update comments.
10117 * common/rsp-low.h: Update comments.
10119 2014-02-12 Tom Tromey <tromey@redhat.com>
10121 * common/rsp-low.c (convert_ascii_to_int): Remove.
10122 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10124 2014-02-12 Tom Tromey <tromey@redhat.com>
10126 * common/rsp-low.h (unhexify): Don't declare.
10127 * common/rsp-low.c (unhexify): Remove.
10129 2014-02-12 Tom Tromey <tromey@redhat.com>
10131 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10132 * common/rsp-low.c (convert_int_to_ascii): Remove.
10134 2014-02-12 Tom Tromey <tromey@redhat.com>
10136 * common/rsp-low.h (hexify): Don't declare.
10137 * common/rsp-low.c (hexify): Remove.
10139 2014-02-12 Tom Tromey <tromey@redhat.com>
10141 * common/rsp-low.c (hexify): Never take strlen of argument.
10143 2014-02-12 Tom Tromey <tromey@redhat.com>
10145 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10146 * remote.c (extended_remote_run, remote_rcmd)
10147 (remote_download_trace_state_variable, remote_save_trace_data)
10148 (remote_set_trace_notes): Update.
10149 * tracepoint.c (encode_source_string, tfile_write_status)
10150 (tfile_write_uploaded_tsv): Update.
10152 2014-02-12 Tom Tromey <tromey@redhat.com>
10154 * tracepoint.c: Include rsp-low.h.
10155 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10156 * remote.c: Include rsp-low.h.
10157 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10158 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10159 (remote_unescape_input): Move to common/rsp-low.c.
10160 * common/rsp-low.h: New file.
10161 * common/rsp-low.c: New file.
10162 * Makefile.in (SFILES): Add common/rsp-low.c.
10163 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10164 (COMMON_OBS): Add rsp-low.o.
10165 (rsp-low.o): New target.
10167 2014-02-12 Tom Tromey <tromey@redhat.com>
10169 * utils.h: Include print-utils.h.
10170 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10171 (int_string, core_addr_to_string, core_addr_to_string_nz)
10172 (hex_string, hex_string_custom): Don't declare.
10173 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10174 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10175 (hex_string_custom, int_string, core_addr_to_string)
10176 (core_addr_to_string_nz, host_address_to_string): Move to
10177 common/print-utils.c.
10178 * common/print-utils.h: New file.
10179 * common/print-utils.c: New file
10180 * Makefile.in (SFILES): Add common/print-utils.c.
10181 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10182 (COMMON_OBS): Add print-utils.o.
10183 (print-utils.o): New target.
10185 2014-02-12 Tom Tromey <tromey@redhat.com>
10187 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10189 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10191 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10193 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10195 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10196 if a PT_IO ptrace request returns sucessfully but indicates that 0
10197 bytes were transferred.
10199 2014-02-12 Pedro Alves <palves@redhat.com>
10200 Kevin Buettner <kevinb@redhat.com>
10202 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10203 TYPE_INSTANCE_FLAG_CODE_SPACE.
10205 2014-02-12 Pedro Alves <palves@redhat.com>
10207 * h8300-tdep.c (pseudo_from_raw_register)
10208 (raw_from_pseudo_register): New functions.
10209 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10212 2014-02-12 Pedro Alves <palves@redhat.com>
10214 * h8300-tdep.c (h8300_register_sim_regno): New function.
10215 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10216 gdbarch_register_sim_regno hook.
10218 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10220 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10222 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10224 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10226 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10228 * obsd-tdep.h (obsd_init_abi): New prototype.
10229 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10230 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10231 (obsd_init_abi): New functions.
10232 * i386obsd-tdep.c: Include "obsd-tdep.h".
10233 (i386obsd_init_abi): Call obsd_init_abi.
10234 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10235 (amd64obsd_init_abi): Call obsd_init_abi.
10236 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10237 obsd-tdep.c to gdb_target_obs.
10239 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10241 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10242 double float arguments to 16-byte in the argument slots.
10244 2014-02-11 Doug Evans <xdje42@gmail.com>
10246 * configure.ac: Don't crash if pkg-config is not found and guile
10247 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10249 * configure: Regenerate.
10251 2014-02-11 Yao Qi <yao@codesourcery.com>
10253 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10254 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10255 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10256 * gnu-nat.c (gnu_xfer_memory): Likewise.
10257 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10258 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10259 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10260 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10262 2014-02-11 Yao Qi <yao@codesourcery.com>
10264 * target.h (enum target_xfer_error): Rename to ...
10265 (enum target_xfer_status): ... it. New. All users updated.
10266 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10268 (TARGET_XFER_STATUS_ERROR_P): New macro.
10269 (target_xfer_error_to_string): Remove declaration.
10270 (target_xfer_status_to_string): Declare.
10271 (target_xfer_partial_ftype): Adjust it.
10272 (struct target_ops) <to_xfer_partial>: Return
10273 target_xfer_status. Add argument xfered_len. Update
10275 * target.c (target_xfer_error_to_string): Rename to ...
10276 (target_xfer_status_to_string): ... it. New. All callers
10278 (target_read_live_memory): Likewise. Call target_xfer_partial
10279 instead of target_read.
10280 (memory_xfer_live_readonly_partial): Return
10281 target_xfer_status. Add argument xfered_len.
10282 (raw_memory_xfer_partial): Likewise.
10283 (memory_xfer_partial_1): Likewise.
10284 (memory_xfer_partial): Likewise.
10285 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10286 properly. Update debug message.
10287 (default_xfer_partial, current_xfer_partial): Likewise.
10288 (target_write_partial): Likewise.
10289 (target_read_partial): Likewise. All callers updated.
10290 (read_whatever_is_readable): Likewise.
10291 (target_write_with_progress): Likewise.
10292 (target_read_alloc_1): Likewise.
10294 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10295 * auxv.c (procfs_xfer_auxv): Likewise.
10296 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10297 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10298 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10299 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10300 * corefile.c (read_memory): Adjust.
10301 * corelow.c (core_xfer_partial): Likewise.
10302 * ctf.c (ctf_xfer_partial): Likewise.
10303 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10305 (darwin_xfer_partial): Likewise.
10306 * exec.c (section_table_xfer_memory_partial): Likewise. All
10308 (exec_xfer_partial): Likewise.
10309 * exec.h (section_table_xfer_memory_partial): Update
10311 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10313 (gnu_xfer_partial): Likewise.
10314 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10315 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10316 (ia64_hpux_xfer_solib_got): Likewise.
10317 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10318 type of 'partial_len' to ULONGEST.
10319 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10320 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10321 (linux_nat_xfer_partial): Likewise.
10322 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10323 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10324 * monitor.c (monitor_xfer_memory): Likewise.
10325 (monitor_xfer_partial): Likewise.
10326 * procfs.c (procfs_xfer_partial): Likewise.
10327 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10328 * record-full.c (record_full_xfer_partial): Likewise.
10329 (record_full_core_xfer_partial): Likewise.
10330 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10331 (gdbsim_xfer_partial): Likewise.
10332 * remote.c (remote_write_bytes_aux): Likewise. All callers
10334 (remote_write_bytes, remote_read_bytes): Likewise. All
10336 (remote_flash_erase): Likewise. All callers updated.
10337 (remote_write_qxfer): Likewise. All callers updated.
10338 (remote_read_qxfer): Likewise. All callers updated.
10339 (remote_xfer_partial): Likewise.
10340 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10341 (rs6000_xfer_shared_libraries): Likewise.
10342 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10343 (sol_thread_xfer_partial): Likewise.
10344 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10345 (sparc_xfer_partial): Likewise.
10346 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10348 (spu_xfer_partial): Likewise.
10349 * spu-multiarch.c (spu_xfer_partial): Likewise.
10350 * tracepoint.c (tfile_xfer_partial): Likewise.
10351 * windows-nat.c (windows_xfer_memory): Likewise.
10352 (windows_xfer_shared_libraries): Likewise.
10353 (windows_xfer_partial): Likewise.
10354 * valprint.c: Replace 'target_xfer_error' with
10355 'target_xfer_status' in comments.
10357 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10359 Checked in by Joel Brobecker <brobecker@adacore.com>.
10360 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10362 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10364 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10365 function parameters.
10367 2014-02-10 Will Newton <will.newton@linaro.org>
10369 * elfread.c (elf_rel_plt_read): Look for a .got section if
10370 looking up .got.plt fails.
10371 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10372 on address passed to elf_gnu_ifunc_record_cache.
10373 (elf_gnu_ifunc_resolve_addr): Likewise.
10374 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10376 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10378 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10379 (X_RETTURN): New macro.
10380 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10382 * sparc64-tdep.c (sparc64_init_abi): Hook
10383 sparc_in_function_epilogue_p.
10385 2014-02-10 Gary Benson <gbenson@redhat.com>
10387 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10388 Rename name_matcher to symbol_matcher.
10390 2014-02-10 Gary Benson <gbenson@redhat.com>
10392 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10393 Use expand_symtabs_file_matcher_ftype and
10394 expand_symtabs_symbol_matcher_ftype.
10396 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10398 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10399 (struct ada_symbol_cache): New.
10400 (ada_free_symbol_cache): Forward declare.
10401 (struct ada_pspace_data): New.
10402 (ada_pspace_data_handle): New static global.
10403 (get_ada_pspace_data, ada_pspace_data_cleanup)
10404 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10405 (cache_space, cache): Delete, now folded inside struct
10407 (ada_get_symbol_cache): New function.
10408 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10410 (_initialize_ada_language): Remove initialization of cache_space.
10411 Move call to observer_attach_inferior_exit up, grouping it
10412 with the other observer registrations inside this function.
10413 Rename command to be more general. Add call to
10414 register_program_space_data_with_cleanup.
10416 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10418 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10419 ada_new_objfile_observer.
10420 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10421 (_initialize_tasks): Update uses of ada_new_objfile_observer
10422 and ada_tasks_normal_stop_observer.
10424 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10426 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10427 returned by the 'Length attribute to integer.
10429 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10431 * ada-lang.c (_initialize_ada_language): Initialize
10432 cache_space obstack.
10434 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10436 * ada-lang.c (HASH_SIZE): New macro.
10437 (struct cache_entry): New type.
10438 (cache_space, cache): New static globals.
10439 (ada_clear_symbol_cache, find_entry): New functions.
10440 (lookup_cached_symbol, cache_symbol): Implement.
10441 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10442 (_initialize_ada_language): Attach ada_new_objfile_observer
10443 and ada_free_objfile_observer.
10445 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10447 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10448 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10449 struct block * parameter.
10450 (ada_lookup_symbol_list_worker): Constify local variable "block".
10451 Remove cast which is no longer necessary.
10453 2014-02-10 Doug Evans <xdje42@gmail.com>
10455 Add Guile as an extension language.
10456 * NEWS: Mention Guile scripting.
10457 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10458 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10459 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10460 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10461 (CLIBS): Add GUILE_LIBS.
10462 (install-guile): New rule.
10463 (guile.o): New rule.
10464 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10465 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10466 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10467 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10468 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10469 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10470 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10471 * configure.ac: New option --with-guile.
10472 * configure: Regenerate.
10473 * config.in: Regenerate.
10474 * auto-load.c: Remove #include "python/python.h". Add #include
10475 "gdb/section-scripts.h".
10476 (source_section_scripts): Handle Guile scripts.
10477 (_initialize_auto_load): Add name of Guile objfile script to
10478 scripts-directory help text.
10479 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10480 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10481 (struct breakpoint): New member scm_bp_object.
10482 * defs.h (enum command_control_type): New value guile_control.
10483 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10485 (show_user): Update comment.
10486 (_initialize_cli_cmds): Update help text for "show user". Update help
10487 text for max-user-call-depth.
10488 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10490 (multi_line_command_p): Add guile_control.
10491 (print_command_lines): Handle guile_control.
10492 (execute_control_command, recurse_read_control_structure): Ditto.
10493 (process_next_line): Recognize "guile" commands.
10494 * disasm.c (gdb_disassemble_info): Make non-static.
10495 * disasm.h: #include "dis-asm.h".
10496 (struct gdbarch): Add forward decl.
10497 (gdb_disassemble_info): Declare.
10498 * extension.c: #include "guile/guile.h".
10499 (extension_languages): Add guile.
10500 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10501 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10502 * gdbtypes.c (get_unsigned_type_max): New function.
10503 (get_signed_type_minmax): New function.
10504 * gdbtypes.h (get_unsigned_type_max): Declare.
10505 (get_signed_type_minmax): Declare.
10506 * guile/README: New file.
10507 * guile/guile-internal.h: New file.
10508 * guile/guile.c: New file.
10509 * guile/guile.h: New file.
10510 * guile/scm-arch.c: New file.
10511 * guile/scm-auto-load.c: New file.
10512 * guile/scm-block.c: New file.
10513 * guile/scm-breakpoint.c: New file.
10514 * guile/scm-disasm.c: New file.
10515 * guile/scm-exception.c: New file.
10516 * guile/scm-frame.c: New file.
10517 * guile/scm-gsmob.c: New file.
10518 * guile/scm-iterator.c: New file.
10519 * guile/scm-lazy-string.c: New file.
10520 * guile/scm-math.c: New file.
10521 * guile/scm-objfile.c: New file.
10522 * guile/scm-ports.c: New file.
10523 * guile/scm-pretty-print.c: New file.
10524 * guile/scm-safe-call.c: New file.
10525 * guile/scm-string.c: New file.
10526 * guile/scm-symbol.c: New file.
10527 * guile/scm-symtab.c: New file.
10528 * guile/scm-type.c: New file.
10529 * guile/scm-utils.c: New file.
10530 * guile/scm-value.c: New file.
10531 * guile/lib/gdb.scm: New file.
10532 * guile/lib/gdb/boot.scm: New file.
10533 * guile/lib/gdb/experimental.scm: New file.
10534 * guile/lib/gdb/init.scm: New file.
10535 * guile/lib/gdb/iterator.scm: New file.
10536 * guile/lib/gdb/printing.scm: New file.
10537 * guile/lib/gdb/types.scm: New file.
10538 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10539 (VPATH): Add $(GUILE_SRCDIR).
10540 (GUILE_DIR): New variable.
10541 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10542 (all): Add stamp-guile dependency.
10543 (stamp-guile): New rule.
10544 (clean-guile, install-guile, uninstall-guile): New rules.
10545 (install-only): Add install-guile dependency.
10546 (uninstall): Add uninstall-guile dependency.
10547 (clean): Add clean-guile dependency.
10549 2014-02-09 Doug Evans <xdje42@gmail.com>
10551 Revert this patch (which I approved, mea culpa).
10553 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10555 * Makefile.in (all-lib): Remove.
10556 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10558 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10560 Fix Python stack corruption.
10561 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10564 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10566 * Makefile.in (all-lib): Remove.
10567 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10569 2014-02-07 Doug Evans <dje@google.com>
10571 * extension-priv.h (extension_language_script_ops): Add comment.
10572 (extension_language_ops): Add comment.
10573 (active_ext_lang_state): Fix typo in comment.
10575 2014-02-07 Pedro Alves <palves@redhat.com>
10577 PR breakpoints/16292
10578 * infrun.c (handle_signal_stop) <signal arrives while stepping
10579 over a breakpoint>: Switch back to the stepping thread.
10581 2014-02-07 Yao Qi <yao@codesourcery.com>
10583 * target.c (target_xfer_partial): Return zero if LEN is zero.
10585 2014-02-07 Yao Qi <yao@codesourcery.com>
10587 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10588 (ld_so_xfer_auxv): Likewise.
10589 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10590 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10591 * corelow.c (core_xfer_partial): Likewise.
10592 * ctf.c (ctf_xfer_partial): Likewise.
10593 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10594 (darwin_xfer_partial): Likewise.
10595 * exec.c (exec_xfer_partial): Likewise.
10596 * gnu-nat.c (gnu_xfer_partial): Likewise.
10597 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10598 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10599 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10600 * linux-nat.c (linux_xfer_siginfo): Likewise.
10601 (linux_proc_xfer_spu): Likewise.
10602 * procfs.c (procfs_xfer_partial): Likewise.
10603 * record-full.c (record_full_xfer_partial): Likewise.
10604 (record_full_core_xfer_partial): Likewise.
10605 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10606 * remote.c (remote_write_qxfer): Likewise.
10607 (remote_write_qxfer, remote_read_qxfer): Likewise.
10608 (remote_xfer_partial): Likewise.
10609 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10610 (rs6000_xfer_shared_libraries): Likewise.
10611 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10612 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10613 (spu_xfer_partial): Likewise.
10614 * target.c (memory_xfer_partial_1): Likewise.
10615 * tracepoint.c (tfile_xfer_partial): Likewise.
10616 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10617 (windows_xfer_partial): Likewise.
10619 2014-02-07 Yao Qi <yao@codesourcery.com>
10621 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10623 (core_xfer_shared_libraries_aix): Likewise.
10624 * gdbarch.c, gdbarch.h: Regenerated.
10625 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10626 ULONGEST. Change 'len_avail' type to ULONGEST.
10627 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10628 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10630 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10632 2014-02-07 Yao Qi <yao@codesourcery.com>
10634 * corefile.c (memory_error): Get 'exception' from ERR and pass
10635 'exception' to throw_error.
10637 2014-02-06 Doug Evans <xdje42@gmail.com>
10639 * configure.ac (libpython checking): Remove all but python.o from
10640 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10641 * configure: Regenerate.
10643 * Makefile.in (SFILES): Add extension.c.
10644 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10645 (COMMON_OBS): Add extension.o.
10646 * extension.h: New file.
10647 * extension-priv.h: New file.
10648 * extension.c: New file.
10650 * python/python-internal.h: #include "extension.h".
10651 (gdbpy_auto_load_enabled): Declare.
10652 (gdbpy_apply_val_pretty_printer): Declare.
10653 (gdbpy_apply_frame_filter): Declare.
10654 (gdbpy_preserve_values): Declare.
10655 (gdbpy_breakpoint_cond_says_stop): Declare.
10656 (gdbpy_breakpoint_has_cond): Declare.
10657 (void source_python_script_for_objfile): Delete.
10658 * python/python.c: #include "extension-priv.h".
10659 Delete inclusion of "observer.h".
10660 (extension_language_python): Moved here and renamed from
10661 script_language_python in py-auto-load.c.
10662 Redefined to be of type extension_language_defn.
10663 (python_extension_script_ops): New global.
10664 (python_extension_ops): New global.
10665 (struct python_env): New member previous_active.
10666 (restore_python_env): Call restore_active_ext_lang.
10667 (ensure_python_env): Call set_active_ext_lang.
10668 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10670 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10672 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10674 (gdbpy_eval_from_control_command): Renamed from
10675 eval_python_from_control_command, made static. New arg extlang.
10676 (gdbpy_source_script) Renamed from source_python_script, made static.
10678 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10679 result to int. New arg extlang.
10680 (gdbpy_source_objfile_script): Renamed from
10681 source_python_script_for_objfile, made static. New arg extlang.
10682 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10683 static. New args extlang, extlang_printers. Change result type to
10685 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10686 static. New arg extlang. Rename arg printers to extlang_printers
10687 and change type to ext_lang_type_printers *.
10688 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10689 static. Replace argument arg with extlang, extlang_printers.
10690 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10691 (!HAVE_PYTHON, source_python_script): Delete.
10692 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10693 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10694 (!HAVE_PYTHON, start_type_printers): Delete.
10695 (!HAVE_PYTHON, apply_type_printers): Delete.
10696 (!HAVE_PYTHON, free_type_printers): Delete.
10697 (_initialize_python): Delete call to observer_attach_before_prompt.
10698 (finalize_python): Set/restore active extension language.
10699 (gdbpy_finish_initialization) Renamed from
10700 finish_python_initialization, made static. New arg extlang.
10701 (gdbpy_initialized): New function.
10702 * python/python.h: #include "extension.h". Delete #include
10703 "value.h", "mi/mi-cmds.h".
10704 (extension_language_python): Declare.
10705 (GDBPY_AUTO_FILE_NAME): Delete.
10706 (enum py_bt_status): Moved to extension.h and renamed to
10707 ext_lang_bt_status.
10708 (enum frame_filter_flags): Moved to extension.h.
10709 (enum py_frame_args): Moved to extension.h and renamed to
10710 ext_lang_frame_args.
10711 (finish_python_initialization): Delete.
10712 (eval_python_from_control_command): Delete.
10713 (source_python_script): Delete.
10714 (apply_val_pretty_printer): Delete.
10715 (apply_frame_filter): Delete.
10716 (preserve_python_values): Delete.
10717 (gdbpy_script_language_defn): Delete.
10718 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10719 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10721 * auto-load.c: #include "extension.h".
10722 (GDB_AUTO_FILE_NAME): Delete.
10723 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10724 (script_language_gdb): Delete, moved to extension.c and renamed to
10725 extension_language_gdb.
10726 (source_gdb_script_for_objfile): Delete.
10727 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10728 (loaded_script): Change type of language member to
10729 struct extension_language_defn *.
10730 (init_loaded_scripts_info): Initialize
10731 unsupported_script_warning_printed.
10732 (maybe_add_script): Make static. Change type of language arg to
10733 struct extension_language_defn *.
10734 (clear_section_scripts): Reset unsupported_script_warning_printed.
10735 (auto_load_objfile_script_1): Rewrite to use extension language API.
10736 (auto_load_objfile_script): Make public. Remove support-compiled-in
10737 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10738 (source_section_scripts): Rewrite to use extension language API.
10739 (load_auto_scripts_for_objfile): Rewrite to use
10740 auto_load_scripts_for_objfile.
10741 (collect_matching_scripts_data): Change type of language member to
10742 struct extension_language_defn *.
10743 (auto_load_info_scripts): Change type of language arg to
10744 struct extension_language_defn *.
10745 (unsupported_script_warning_print): New function.
10746 (script_not_found_warning_print): Make static.
10747 (_initialize_auto_load): Rewrite construction of scripts-directory
10749 * auto-load.h (struct objfile): Add forward decl.
10750 (struct script_language): Delete.
10751 (struct auto_load_pspace_info): Add forward decl.
10752 (struct extension_language_defn): Add forward decl.
10753 (maybe_add_script): Delete.
10754 (auto_load_objfile_script): Declare.
10755 (script_not_found_warning_print): Delete.
10756 (auto_load_info_scripts): Update prototype.
10757 (auto_load_gdb_scripts_enabled): Declare.
10758 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10759 auto_load_python_scripts_enabled and made public.
10760 (script_language_python): Delete, moved to python.c.
10761 (gdbpy_script_language_defn): Delete.
10762 (info_auto_load_python_scripts): Update to use
10763 extension_language_python.
10765 * breakpoint.c (condition_command): Replace call to
10766 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10767 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10768 with call to breakpoint_ext_lang_cond_says_stop.
10769 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10770 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10771 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10772 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10774 (local_setattro): Print name of extension language with existing
10777 * valprint.c (val_print, value_print): Update to call
10778 apply_ext_lang_val_pretty_printer.
10779 * cp-valprint.c (cp_print_value): Update call to
10780 apply_ext_lang_val_pretty_printer.
10781 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10782 (gdbpy_apply_val_pretty_printer): Renamed from
10783 apply_val_pretty_printer. New arg extlang.
10784 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10786 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10787 extension language API.
10788 * cli/cli-script.c (execute_control_command): Update to call
10789 eval_ext_lang_from_control_command.
10791 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10792 enum ext_lang_bt_status values. Update call to
10793 apply_ext_lang_frame_filter.
10794 (mi_cmd_stack_list_locals): Ditto.
10795 (mi_cmd_stack_list_args): Ditto.
10796 (mi_cmd_stack_list_variables): Ditto.
10797 * mi/mi-main.c: Delete #include "python/python-internal.h".
10798 Add #include "extension.h".
10799 (mi_cmd_list_features): Replace reference to python internal variable
10800 gdb_python_initialized with call to ext_lang_initialized_p.
10802 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10803 Update to use enum ext_lang_frame_args. Update to call
10804 apply_ext_lang_frame_filter.
10805 * python/py-framefilter.c (extract_sym): Update to use enum
10806 ext_lang_bt_status.
10807 (extract_value, py_print_type, py_print_value): Ditto.
10808 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10809 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10810 (py_print_frame): Ditto.
10811 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10812 New arg extlang. Update to use enum ext_lang_bt_status.
10814 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10815 finish_python_initialization. Replace with call to
10816 finish_ext_lang_initialization.
10818 * typeprint.c (do_free_global_table): Update to call
10819 free_ext_lang_type_printers.
10820 (create_global_typedef_table): Update to call
10821 start_ext_lang_type_printers.
10822 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10823 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10824 (type_print_options): Change type of global_printers from "void *"
10825 to "struct ext_lang_type_printers *".
10827 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10828 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10829 (gdbpy_preserve_values): Renamed from preserve_python_values.
10831 (!HAVE_PYTHON, preserve_python_values): Delete.
10833 * utils.c (quit_flag): Delete, moved to extension.c.
10834 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10837 * eval.c: Delete #include "python/python.h".
10838 * main.c: Delete #include "python/python.h".
10840 * defs.h: Update comment.
10842 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10846 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10848 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10851 2014-02-05 Yao Qi <yao@codesourcery.com>
10853 * remote.c (remote_pass_signals): Remove local 'buf' and use
10855 (remote_program_signals): Likewise.
10857 2014-02-05 Yao Qi <yao@codesourcery.com>
10859 * ctf.c: Include "inferior.h" and "gdbthread.h".
10860 (CTF_PID): A new macro.
10861 (ctf_open): Call inferior_appeared and add_thread_silent.
10862 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10863 (ctf_thread_alive): New function.
10864 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10866 2014-02-05 Yao Qi <yao@codesourcery.com>
10870 2013-05-24 Yao Qi <yao@codesourcery.com>
10872 * tracepoint.c (TFILE_PID): Remove.
10873 (tfile_open): Don't add thread and inferior.
10874 (tfile_close): Don't set 'inferior_ptid'. Don't call
10875 exit_inferior_silent.
10876 (tfile_thread_alive): Remove.
10877 (init_tfile_ops): Don't set field 'to_thread_alive' of
10880 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10882 * remote.c (remote_start_remote): Call remote_check_symbols even
10883 if only symbol-file (not file) has been given.
10885 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10887 * gdbarch.sh (skip_entrypoint): New callback.
10888 * gdbarch.c, gdbarch.h: Regenerate.
10889 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10890 * infrun.c (fill_in_stop_func): Likewise.
10891 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10892 (ppc_elfv2_elf_make_msymbol_special): New function.
10893 (ppc_elfv2_skip_entrypoint): Likewise.
10894 (ppc_linux_init_abi): Install them for ELFv2.
10896 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10898 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10899 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10900 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10901 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10902 structures returned in GPRs.
10904 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10906 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10907 offset to the stack parameter list for the ELFv2 ABI.
10909 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10911 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10912 set_gdbarch_convert_from_func_ptr_addr and
10913 set_gdbarch_elf_make_msymbol_special for ELFv1.
10914 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10915 function descriptors on ELFv1.
10916 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10917 set up r12 at function entry.
10919 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10921 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10922 (struct gdbarch_tdep): New member elf_abi.
10924 * rs6000-tdep.c: Include "elf/ppc64.h".
10925 (rs6000_gdbarch_init): Detect ELF ABI version.
10927 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10929 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10930 within a register pair holding a DFP 128-bit value on little-endian.
10931 (ppc64_sysv_abi_return_value_base): Likewise.
10932 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10933 (dfp_pseudo_register_write): Likewise.
10935 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10937 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10938 offset on little-endian when passing _Decimal32.
10939 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10941 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10943 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10944 of the overlapped FP register within the VSX register on little-
10946 (efpr_pseudo_register_write): Likewise.
10948 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10950 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10951 offset on little-endian when passing small structures.
10953 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10955 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10956 (struct ppc64_sysv_argpos): New data structure.
10957 (ppc64_sysv_abi_push_float): Remove.
10958 (ppc64_sysv_abi_push_val): New function.
10959 (ppc64_sysv_abi_push_integer): Likewise.
10960 (ppc64_sysv_abi_push_freg): Likewise.
10961 (ppc64_sysv_abi_push_vreg): Likewise.
10962 (ppc64_sysv_abi_push_param): Likewise.
10963 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10964 (ppc64_sysv_abi_return_value_base): New function.
10965 (ppc64_sysv_abi_return_value): Refactor to use it.
10967 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10969 * NEWS: Document new target powerpc64le-*-linux*.
10971 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10973 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10974 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10976 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10977 register set used in ELF core dumps. Add floating-point register set.
10979 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10981 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10982 dwarf2_to_gdb[] table using symbolic constants. Adjust
10983 penultimate entry from number representing the PC register
10984 to symbolic constant representing the MDR register. Add
10985 constant for the PC register to the end of the table.
10987 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10989 * bsd-kvm.c: Include <sys/param.h>
10991 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10993 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10995 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10997 * ada-lang.h (clear_ada_sym_cache): Delete.
10999 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11001 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11003 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11005 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11006 the sigreturn register save area only if the syscall is
11009 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11011 * valops.c (value_slice): Minor reformatting.
11013 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11015 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11017 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11019 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11020 New static globals.
11021 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11022 (ada_ignore_descriptive_types_p): New static global.
11023 (find_parallel_type_by_descriptive_type): Return immediately
11024 if ada_ignore_descriptive_types_p is set.
11025 (_initialize_ada_language): Register new commands "maintenance
11026 set ada", "maintenance show ada", "maintenance set ada
11027 ignore-descriptive-types" and "maintenance show ada
11028 ignore-descriptive-types".
11029 * NEWS: Add entry for new "maint ada set/show
11030 ignore-descriptive-types" commands.
11032 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11034 * record-btrace.c (record_btrace_close): Call btrace_teardown
11037 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11039 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11042 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11044 * ada-typeprint (type_is_full_subrange_of_target_type):
11046 (print_range): Add parameter bounds_prefered_p. If not set,
11047 try printing range types using the name of their base type.
11048 (print_range_type): Add parameter bounds_prefered_p.
11049 Use it in call to print_range.
11050 (print_array_type, ada_print_type): Update calls to print_range
11051 and print_range_type.
11053 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11055 * ada-typeprint.c (print_array_type, print_choices, print_range)
11056 (print_range_bound, print_dynamic_range_bound, print_range_type):
11057 Remove declaration.
11059 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11061 * ada-typeprint.c (print_range): Add missing empty line
11062 after local declaration.
11064 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11066 * ada-valprint.c (print_optional_low_bound): Get index_type's
11067 target type for as long as it is a TYPE_CODE_RANGE.
11069 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11071 * procfs.c (procfs_make_note_section): Remove assertion and
11072 associated comment.
11074 2014-01-24 Yao Qi <yao@codesourcery.com>
11076 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11077 * corelow.c (get_core_siginfo): Likewise.
11079 2014-01-24 Yao Qi <yao@codesourcery.com>
11081 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11082 ULONGEST. Don't check 'len' is negative.
11083 (remote_write_bytes): Change type of 'len' to ULONGEST.
11085 2014-01-23 Tom Tromey <tromey@redhat.com>
11088 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11089 Handle exception from frame.block.
11090 (FrameVars.fetch_frame_locals): Likewise.
11092 2014-01-23 Tom Tromey <tromey@redhat.com>
11095 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11096 on a NULL pointer. Move "goto error" to correct place.
11098 2014-01-23 Tom Tromey <tromey@redhat.com>
11101 * python/py-framefilter.c (apply_frame_filter): Call
11102 ensure_python_env after computing gdbarch.
11104 2014-01-23 Yao Qi <yao@codesourcery.com>
11106 * target.c (raw_memory_xfer_partial): Change argument type
11107 from void * to gdb_byte *.
11108 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11110 2014-01-22 Doug Evans <dje@google.com>
11112 New gdbserver option --debug-format=timestamp.
11113 * NEWS: Mention it.
11115 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11117 * syscalls/s390x-linux.xml: New file.
11118 * syscalls/s390-linux.xml: New file.
11119 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11120 (XML_SYSCALL_FILENAME_S390X): Likewise.
11121 (op_svc): New enum value for SVC opcode.
11122 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11123 (s390_linux_get_syscall_number): New function.
11124 (s390_gdbarch_init): Register '*get_syscall_number' and the
11125 syscall xml file name.
11126 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11127 "s390-linux.xml" and "s390x-linux.xml".
11128 * NEWS: Announce new feature.
11130 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11132 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11134 2014-01-22 Pedro Alves <palves@redhat.com>
11136 * xtensa-config.c: Include defs.h.
11138 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11140 * common/common-utils.h: Add "ARI:" comment beside __func__
11143 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11145 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11146 documentation a bit.
11148 2014-01-21 Roland McGrath <mcgrathr@google.com>
11150 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11151 * configure: Regenerate.
11152 * aclocal.m4: Regenerate.
11153 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11154 New substituted variables.
11155 (install-strip): New target.
11156 (INSTALL_SCRIPT): New substituted variable.
11157 (FLAGS_TO_PASS): Add it.
11158 (install-only): Use $(INSTALL_SCRIPT) rather than
11159 $(INSTALL_PROGRAM) for gcore.
11161 2014-01-20 Tom Tromey <tromey@redhat.com>
11163 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11166 2014-01-20 Tom Tromey <tromey@redhat.com>
11168 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11169 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11170 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11171 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11172 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11173 (struct cmd_list_element) <flags>: Remove.
11174 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11175 doc_allocated>: New fields.
11176 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11178 * maint.c (maintenance_do_deprecate): Update.
11179 * top.c (execute_command): Update.
11181 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11183 * xtensa-linux-nat.c: Include asm/ptrace.h.
11185 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11187 * Makefile.in (SFILES): Add d-support.c.
11188 (COMMON_OBS): Add d-support.o.
11189 * d-lang.h (d_parse_symbol): Add comment, now defined in
11191 * d-lang.c (parse_call_convention)
11192 (parse_attributes, parse_function_types)
11193 (parse_function_args, parse_type, parse_identifier)
11194 (call_convention_p, d_parse_symbol): Move functions to ...
11195 * d-support.c: ... New file.
11197 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11199 * d-lang.h (d_parse_symbol): Add declaration.
11200 * d-lang.c (extract_identifiers)
11201 (extract_type_info): Remove functions.
11202 (parse_call_convention, parse_attributes)
11203 (parse_function_types, parse_function_args)
11204 (parse_type, parse_identifier, call_convention_p)
11205 (d_parse_symbol): New functions.
11206 (d_demangle): Use d_parse_symbol to demangle D symbols.
11208 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11210 * d-lang.h (struct builtin_d_type): New data type.
11211 (builtin_d_type): Add declaration.
11212 * d-lang.c (d_language_arch_info, build_d_types)
11213 (builtin_d_type): New functions.
11214 (enum d_primitive_types): New data type.
11215 (d_language_defn): Change c_language_arch_info to
11216 d_language_arch_info.
11217 (d_type_data): New static variable.
11218 (_initialize_d_language): Initialize d_type_data.
11220 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11222 * d-lang.h (d_main_name): Add declaration.
11223 * d-lang.c (d_main_name): New function.
11224 * symtab.c (find_main_name): Add call to d_main_name.
11226 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11228 * d-lang.c (d_language_defn): Change macro_expansion_c to
11229 macro_expansion_no.
11231 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11233 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11235 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11237 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11238 gdb_exception" declaration.
11239 * remote.c (getpkt_or_notif_sane): Likewise.
11241 2014-01-17 Doug Evans <dje@google.com>
11243 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11244 function, contents of dirnames_to_char_ptr_vec_append moved here.
11245 (delim_string_to_char_ptr_vec): New function.
11246 (dirnames_to_char_ptr_vec_append): Rewrite.
11247 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11249 2014-01-17 Doug Evans <dje@google.com>
11251 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11253 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11254 #include "common-utils.h".
11255 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11256 * common/vec.h (VEC_ASSERT_PASS): Update.
11257 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11258 (MACH_CHECK_ERROR): Update.
11260 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11262 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11264 * gdbarch.h: Regenerate.
11266 2014-01-16 Tom Tromey <tromey@redhat.com>
11268 * value.c (struct value) <regnum>: Move earlier.
11270 2014-01-16 Tom Tromey <tromey@redhat.com>
11272 * remote.c (extended_remote_create_inferior): Rename from
11273 extended_remote_create_inferior_1. Add "ops" argument. Remove
11274 old implementation.
11276 2014-01-16 Pedro Alves <palves@redhat.com>
11278 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11279 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11282 2014-01-16 Doug Evans <dje@google.com>
11284 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11288 * btrace.h (btrace_thread_flag): New.
11289 (struct btrace_thread_info) <flags>: New.
11290 * record-btrace.c (record_btrace_resume_thread)
11291 (record_btrace_find_thread_to_move, btrace_step_no_history)
11292 (btrace_step_stopped, record_btrace_start_replaying)
11293 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11294 (record_btrace_find_resume_thread): New.
11295 (record_btrace_resume, record_btrace_wait): Extend.
11296 (record_btrace_can_execute_reverse): New.
11297 (record_btrace_open): Fail in non-stop mode.
11298 (record_btrace_set_replay): Split into this, ...
11299 (record_btrace_stop_replaying): ... this, ...
11300 (record_btrace_clear_histories): ... and this.
11301 (init_record_btrace_ops): Init to_can_execute_reverse.
11302 * NEWS: Announce it.
11304 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11306 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11307 (forward_target_decr_pc_after_break)
11308 (target_decr_pc_after_break): New.
11309 * target.c (forward_target_decr_pc_after_break)
11310 (target_decr_pc_after_break): New.
11311 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11312 instead of gdbarch_decr_pc_after_break.
11313 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11314 instead of gdbarch_decr_pc_after_break.
11315 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11316 instead of gdbarch_decr_pc_after_break.
11317 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11318 instead of gdbarch_decr_pc_after_break.
11319 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11320 instead of gdbarch_decr_pc_after_break.
11321 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11322 instead of gdbarch_decr_pc_after_break.
11324 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11326 * btrace.c: Include regcache.h.
11327 (btrace_add_pc): New.
11328 (btrace_enable): Call btrace_add_pc.
11329 (btrace_is_empty): New.
11330 * btrace.h (btrace_is_empty): New.
11331 * record-btrace.c (require_btrace, record_btrace_info): Call
11334 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11336 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11337 Support delta reads.
11338 (linux_disable_btrace): Change return type.
11339 * common/linux-btrace.h (linux_read_btrace): Change parameters
11340 and return type to allow error reporting. Update users.
11341 (linux_disable_btrace): Change return type. Update users.
11342 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11344 (btrace_error): New.
11345 (btrace_block) <begin>: Comment on BEGIN == 0.
11346 * btrace.c (btrace_compute_ftrace): Start from the end of
11348 (btrace_stitch_trace, btrace_clear_history): New.
11349 (btrace_fetch): Read delta trace, return if replaying.
11350 (btrace_clear): Move clear history code to btrace_clear_history.
11351 (parse_xml_btrace): Throw an error if parsing failed.
11352 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11353 and return type to allow error reporting.
11354 (target_read_btrace): Change parameters and return type to allow
11356 * target.c (target_read_btrace): Update.
11357 * remote.c (remote_read_btrace): Support delta reads. Pass
11359 * NEWS: Announce it.
11361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11363 * record.h (record_btrace_frame_unwind)
11364 (record_btrace_tailcall_frame_unwind): New declarations.
11365 * dwarf2-frame: Include record.h
11366 (dwarf2_frame_cfa): Throw an error for btrace frames.
11367 * record-btrace.c: Include hashtab.h.
11368 (btrace_get_bfun_name): New.
11369 (btrace_call_history): Call btrace_get_bfun_name.
11370 (struct btrace_frame_cache): New.
11372 (bfcache_hash, bfcache_eq, bfcache_new): New.
11373 (btrace_get_frame_function): New.
11374 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11375 (record_btrace_frame_this_id): Compute own id.
11376 (record_btrace_frame_prev_register): Provide PC, throw_error
11377 for all other registers.
11378 (record_btrace_frame_sniffer): Detect btrace frames.
11379 (record_btrace_tailcall_frame_sniffer): New.
11380 (record_btrace_frame_dealloc_cache): New.
11381 (record_btrace_frame_unwind): Add new functions.
11382 (record_btrace_tailcall_frame_unwind): New.
11383 (_initialize_record_btrace): Allocate cache.
11384 * btrace.c (btrace_clear): Call reinit_frame_cache.
11385 * NEWS: Announce it.
11387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11389 * record-btrace.c (record_btrace_set_replay)
11390 (record_btrace_goto_begin, record_btrace_goto_end)
11391 (record_btrace_goto): New.
11392 (init_record_btrace_ops): Initialize them.
11393 * NEWS: Announce it.
11395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11397 * record-btrace.c (record_btrace_find_new_threads)
11398 (record_btrace_thread_alive): New.
11399 (init_record_btrace_ops): Initialize to_find_new_threads and
11402 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11404 * record-btrace.c (record_btrace_resume): New.
11405 (record_btrace_wait): New.
11406 (init_record_btrace_ops): Initialize to_wait and to_resume.
11408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11410 * record-btrace.c (record_btrace_xfer_partial)
11411 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11412 (record_btrace_allow_memory_access): New.
11413 (init_record_btrace_ops): Initialize new methods.
11414 * target.c (raw_memory_xfer_partial): Bail out if target reports
11415 that this memory is not available.
11417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11419 * target.h (target_ops) <to_insert_breakpoint>
11420 <to_remove_breakpoint>: Add target_ops parameter.
11421 (forward_target_insert_breakpoint): New.
11422 (forward_target_remove_breakpoint): New.
11423 (memory_remove_breakpoint, memory_insert_breakpoint):
11424 Add target_ops parameter.
11425 * target.c (target_insert_breakpoint): Split into this and ...
11426 (forward_target_insert_breakpoint): ... this.
11427 (target_remove_breakpoint): Split into this and ...
11428 (forward_target_remove_breakpoint): ... this.
11429 (debug_to_insert_breakpoint): Add target_ops parameter.
11430 Call forward_target_insert_breakpoint.
11431 (debug_to_remove_breakpoint): Add target_ops parameter.
11432 Call forward_target_remove_breakpoint.
11433 (update_current_target): Do not inherit or default to_insert_breakpoint
11434 and to_remove_breakpoint.
11435 * corelow.c (ignore): Add target_ops parameter.
11436 * exec.c (ignore): Add target_ops parameter.
11437 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11438 Add target_ops parameter.
11439 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11440 Add target_ops parameter.
11441 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11442 Add target_ops parameter.
11443 * record-full.c (record_full_beneath_to_insert_breakpoint)
11444 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11445 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11446 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11447 (record_full_core_remove_breakpoint): Add target_ops parameter.
11449 (record_full_beneath_to_insert_breakpoint_ops)
11450 (record_full_beneath_to_remove_breakpoint_ops)
11451 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11452 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11453 tmp_to_remove_breakpoint_ops,
11454 record_full_beneath_to_insert_breakpoint_ops, and
11455 record_full_beneath_to_remove_breakpoint_ops.
11456 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11457 (m32r_remove_breakpoint): Add target_ops parameter.
11458 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11459 Add target_ops parameter.
11460 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11461 Add target_ops parameter.
11463 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11464 Markus Metzger <markus.t.metzger@intel.com>
11466 * record-btrace.c: Include frame-unwind.h.
11467 (record_btrace_frame_unwind_stop_reason)
11468 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11469 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11471 (init_record_btrace_ops): Install it.
11473 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11475 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11478 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11480 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11483 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11485 * frame-unwind.c: Include target.h.
11486 (frame_unwind_try_unwinder): New function with code from ...
11487 (frame_unwind_find_by_frame): ... here. New variable
11488 unwinder_from_target, call also target_get_unwinder)
11489 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11490 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11491 * target.h (struct target_ops): New fields to_get_unwinder and
11492 to_get_tailcall_unwinder.
11493 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11497 * record-btrace.c (record_btrace_fetch_registers)
11498 (record_btrace_store_registers)
11499 (record_btrace_to_prepare_to_store): New.
11500 (init_record_btrace_ops): Add the above.
11502 2014-01-16 Tom Tromey <tromey@redhat.com>
11504 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11505 * target.h (struct target_ops) <to_prepare_to_store>: Add
11507 (target_prepare_to_store): Add argument.
11508 * target.c (debug_to_prepare_to_store): Add argument.
11509 (update_current_target): Update.
11510 * remote.c (remote_prepare_to_store): Add 'self' argument.
11511 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11512 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11513 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11514 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11516 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11517 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11518 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11519 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11520 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11524 * btrace.h (replay) <replay>: New.
11525 (btrace_is_replaying): New.
11526 * btrace.c (btrace_clear): Free replay iterator.
11527 (btrace_is_replaying): New.
11528 * record-btrace.c (record_btrace_is_replaying): New.
11529 (record_btrace_info): Print insn number if replaying.
11530 (record_btrace_insn_history): Start at replay position.
11531 (record_btrace_call_history): Start at replay position.
11532 (init_record_btrace_ops): Init to_record_is_replaying.
11534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11536 * record-btrace.c (record_btrace_insn_history_range): Include
11538 (record_btrace_insn_history_from): Adjust range.
11539 (record_btrace_call_history_range): Include
11541 (record_btrace_call_history_from): Adjust range.
11542 * NEWS: Announce changes.
11544 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11546 * record.h (enum record_print_flag)
11547 <record_print_indent_calls>: New.
11548 * record.c (get_call_history_modifiers): Recognize /c modifier.
11549 (_initialize_record): Document /c modifier.
11550 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11551 Reorder fields. Optionally indent the function name. Update
11553 * NEWS: Announce changes.
11555 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11557 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11559 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11561 * btrace.c (ftrace_new_function): Start counting at one.
11562 * record-btrace.c (record_btrace_info): Adjust number of calls
11564 * NEWS: Announce it.
11566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11568 * record-btrace.c (btrace_call_history_insn_range): Print
11569 insn range as [begin, end].
11571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11573 * btrace.h (struct btrace_func_link): New.
11574 (enum btrace_function_flag): New.
11575 (struct btrace_inst): Rename to ...
11576 (struct btrace_insn): ...this. Update all users.
11577 (struct btrace_func) <ibegin, iend>: Remove.
11578 (struct btrace_func_link): New.
11579 (struct btrace_func): Rename to ...
11580 (struct btrace_function): ...this. Update all users.
11581 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11582 (number, level, flags>: New.
11583 (struct btrace_insn_iterator): Rename to ...
11584 (struct btrace_insn_history): ...this.
11586 (struct btrace_insn_iterator, btrace_call_iterator): New.
11587 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11588 (struct btrace_target_info) <begin, end, level>
11589 <insn_history, call_history>: New.
11590 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11591 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11592 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11593 (btrace_call_number, btrace_call_begin, btrace_call_end)
11594 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11595 (btrace_find_function_by_number, btrace_set_insn_history)
11596 (btrace_set_call_history): New.
11597 * btrace.c (btrace_init_insn_iterator)
11598 (btrace_init_func_iterator, compute_itrace): Remove.
11599 (ftrace_print_function_name, ftrace_print_filename)
11600 (ftrace_skip_file): Change
11601 parameter to const.
11602 (ftrace_init_func): Remove.
11603 (ftrace_debug): Use new btrace_function fields.
11604 (ftrace_function_switched): Also consider gaining and
11605 losing symbol information).
11606 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11607 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11608 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11610 (ftrace_new_function): Move. Remove debug print.
11611 (ftrace_update_lines, ftrace_update_insns): New.
11612 (ftrace_update_function): Check for call, ret, and jump.
11613 (compute_ftrace): Renamed to ...
11614 (btrace_compute_ftrace): ...this. Rewritten to compute call
11616 (btrace_fetch, btrace_clear): Updated.
11617 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11618 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11619 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11620 (btrace_call_number, btrace_call_begin, btrace_call_end)
11621 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11622 (btrace_find_function_by_number, btrace_set_insn_history)
11623 (btrace_set_call_history): New.
11624 * record-btrace.c (require_btrace): Use new btrace thread
11626 (record_btrace_info, btrace_insn_history)
11627 (record_btrace_insn_history, record_btrace_insn_history_range):
11628 Use new btrace thread info fields and new iterator.
11629 (btrace_func_history_src_line): Rename to ...
11630 (btrace_call_history_src_line): ...this. Use new btrace
11631 thread info fields.
11632 (btrace_func_history): Rename to ...
11633 (btrace_call_history): ...this. Use new btrace thread info
11634 fields and new iterator.
11635 (record_btrace_call_history, record_btrace_call_history_range):
11636 Use new btrace thread info fields and new iterator.
11638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11640 * frame.h (frame_id_build_unavailable_stack_special): New.
11641 * frame.c (frame_id_build_unavailable_stack_special): New.
11643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11645 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11646 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11647 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11649 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11650 (i386_insn_is_jump, i386_jmp_p): New.
11651 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11652 insn_is_jump to gdbarch.
11653 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11654 * gdbarch.h: Regenerated.
11655 * gdbarch.c: Regenerated.
11656 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11657 (default_insn_is_jump): New.
11658 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11659 (default_insn_is_jump): New.
11661 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11663 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11665 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11666 (btrace_read_type) <btrace_read_new>: Change to ...
11667 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11671 * common/linux-btrace.c (linux_read_btrace): Free trace from
11672 previous iteration.
11674 2014-01-15 Doug Evans <dje@google.com>
11676 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11679 2014-01-15 Tom Tromey <tromey@redhat.com>
11681 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11682 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11683 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11684 (set_objfile_main_name): New function.
11685 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11686 language_of_main>: New fields.
11687 (set_objfile_main_name): Declare.
11688 * symtab.c (find_main_name): Loop over objfiles to find the main
11690 (set_main_name): Now static.
11691 (get_main_info): Add comment.
11692 * symtab.h (set_main_name): Don't declare.
11694 2014-01-15 Tom Tromey <tromey@redhat.com>
11696 * symtab.c (main_progspace_key): New global.
11697 (struct main_info): New.
11698 (name_of_main, language_of_main): Remove.
11699 (get_main_info, main_info_cleanup): New function.
11700 (set_main_name, main_name, main_language): Use get_main_info.
11701 (_initialize_symtab): Initialize main_progspace_key.
11703 2014-01-15 Tom Tromey <tromey@redhat.com>
11705 * dbxread.c (process_one_symbol): Update.
11706 * dwarf2read.c (read_partial_die): Update.
11707 * symfile.c (set_initial_language): Call main_language.
11708 * symtab.c (language_of_main): Now static.
11709 (set_main_name): Add 'lang' parameter.
11710 (find_main_name): Update.
11711 (main_language): New function.
11712 (symtab_observer_executable_changed): Update.
11713 * symtab.h (set_main_name): Update.
11714 (language_of_main): Remove.
11715 (main_language): Declare.
11717 2014-01-15 Tom Tromey <tromey@redhat.com>
11719 * symfile.c (init_entry_point_info): Use new "initialized" field.
11721 * objfiles.h (struct entry_point) <initialized>: New field.
11722 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11723 (struct objfile) <ei>: ...here. Remove.
11724 * objfiles.c (entry_point_address_query): Update.
11726 2014-01-15 Tom Tromey <tromey@redhat.com>
11728 * objfiles.c (entry_point_address_query): Relocate entry point
11730 (objfile_relocate1): Do not relocate entry point address.
11731 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11732 <the_bfd_section_index>: New field.
11733 * symfile.c (init_entry_point_info): Find the entry point's
11736 2014-01-15 Tom Tromey <tromey@redhat.com>
11738 * solib-frv.c (enable_break): Use entry_point_address_query.
11740 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11742 * NEWS: Add note on improved process record-replay on
11743 arm*-linux* targets.
11745 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11747 * arm-tdep.c (enum arm_record_result): New enum.
11748 (arm_record_unsupported_insn): New function.
11749 (arm_record_coproc_data_proc): Removed.
11750 (thumb2_record_ld_st_multiple): New function.
11751 (thumb2_record_ld_st_dual_ex_tbb): New function.
11752 (thumb2_record_data_proc_sreg_mimm): New function.
11753 (thumb2_record_ps_dest_generic): New function.
11754 (thumb2_record_branch_misc_cntrl): New function.
11755 (thumb2_record_str_single_data): New function.
11756 (thumb2_record_ld_mem_hints): New function.
11757 (thumb2_record_ld_word): New function.
11758 (thumb2_record_lmul_lmla_div): New function.
11759 (thumb2_record_decode_insn_handler): New function.
11760 (decode_insn): Add thumb32 instruction handlers.
11762 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11764 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11765 (struct arm_linux_record_tdep): Declare.
11766 (arm_canonicalize_syscall): New function.
11767 (arm_all_but_pc_registers_record): New function.
11768 (arm_linux_syscall_record): New function.
11769 (arm_linux_init_abi): Add syscall recording constructs.
11770 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11771 decoding. (arm_record_coproc_data_proc): Update arm syscall
11773 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11774 <arm_syscall_record>: New field.
11775 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11778 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11780 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11781 register for push instruction recording.
11783 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11785 * arm-tdep.c (thumb_record_misc): Update to correct logical
11786 error while recording ldm, ldmia and pop instructions.
11788 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11790 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11792 2014-01-15 Pedro Alves <palves@redhat.com>
11794 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11795 (go32_resume, go32_fetch_registers, store_register)
11796 (go32_store_registers, go32_prepare_to_store)
11797 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11798 (go32_create_inferior, go32_can_run, go32_terminal_init)
11799 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11802 2014-01-15 Tom Tromey <tromey@redhat.com>
11804 * target.h (async_callback_ftype): New typedef.
11805 (struct target_ops) <to_async>: Use it.
11807 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11809 * python/py-value.c (get_field_type): Remove unnecessary curly
11810 braces for single-statement if block.
11812 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11814 * python/py-type.c (convert_field): Add missing empty line
11815 after declarations.
11817 2014-01-14 Doug Evans <dje@google.com>
11819 * symfile.h (expand_symtabs_matching): Renamed from
11820 expand_partial_symbol_names. Update prototype.
11821 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11822 * symfile.c (expand_symtabs_matching): Renamed from
11823 expand_partial_symbol_names. New args file_matcher, kind.
11824 Rename arg fun to symbol_matcher.
11825 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11826 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11827 ada_expand_partial_symbol_name.
11828 (ada_make_symbol_completion_list): Update to call
11829 expand_symtabs_matching.
11830 (ada_add_global_exceptions): Call expand_symtabs_matching.
11831 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11832 call map_symbol_filenames.
11833 * symtab.c (sources_info): Update to call map_symbol_filenames.
11834 (search_symbols): Call expand_symtabs_matching.
11835 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11836 (default_make_symbol_completion_list_break_on): Update to call
11837 expand_symtabs_matching.
11838 (make_source_files_completion_list): Update to call
11839 map_symbol_filenames.
11841 2014-01-14 Doug Evans <dje@google.com>
11843 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11844 (expand_symtabs_symbol_matcher_ftype): New typedef.
11845 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11846 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11847 * symfile.c (expand_partial_symbol_names): Update to use
11848 expand_symtabs_symbol_matcher_ftype.
11849 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11850 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11851 Arg name_matcher renamed to symbol_matcher.
11852 * psymtab.c (recursively_search_psymtabs): Update to use
11853 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11855 (expand_symtabs_matching_via_partial): Update to use
11856 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11857 Arg name_matcher renamed to symbol_matcher.
11859 2014-01-14 Doug Evans <dje@google.com>
11861 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11862 (map_partial_symbol_filenames): Ditto.
11863 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11864 (map_partial_symbol_filenames): Ditto.
11865 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11866 (map_partial_symbol_filenames): Ditto.
11867 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11868 (map_partial_symbol_filenames): Ditto.
11869 * symtab.c: Delete #include "psymtab.h".
11871 2014-01-14 Pedro Alves <palves@redhat.com>
11872 Tom Tromey <tromey@redhat.com>
11874 * infrun.c (use_displaced_stepping): Use find_record_target
11875 instead of RECORD_IS_USED.
11876 (adjust_pc_after_break): Use record_full_is_used instead of
11878 * record-btrace.c (record_btrace_open): Call record_preopen
11879 instead of checking RECORD_IS_USED.
11880 * record-full.c (record_full_shortname)
11881 (record_full_core_shortname): New globals.
11882 (record_full_is_used): New function.
11883 (find_full_open): Call record_preopen instead of checking
11885 (init_record_full_ops): Set the target's shortname to
11886 record_full_shortname.
11887 (init_record_full_core_ops): Set the target's shortname to
11888 record_full_core_shortname.
11889 * record-full.h (record_full_is_used): Declare.
11890 * record.c (find_record_target): Make extern.
11891 (record_preopen): New function.
11892 * record.h (RECORD_IS_USED): Delete macro.
11893 (find_record_target, record_preopen): Declare functions.
11895 2014-01-14 Yao Qi <yao@codesourcery.com>
11897 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11898 'len''s type to ULONGEST.
11899 (core_xfer_shared_libraries_aix): Likewise.
11900 * gdbarch.c, gdbarch.h: Regenerated.
11901 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11902 Change type of 'len' to ULONGEST.
11903 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11904 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11906 2014-01-14 Yao Qi <yao@codesourcery.com>
11908 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11909 type of 'len' to ULONGEST.
11910 (linux_xfer_osdata_processgroups): Likewise.
11911 (linux_xfer_osdata_threads): Likewise.
11912 (linux_xfer_osdata_fds): Likewise.
11913 (linux_xfer_osdata_isockets): Likewise.
11914 (linux_xfer_osdata_shm): Likewise.
11915 (linux_xfer_osdata_sem): Likewise.
11916 (linux_xfer_osdata_msg): Likewise.
11917 (linux_common_xfer_osdata): Likewise.
11918 (struct osdata_type) <getter>: Likewise.
11919 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11922 2014-01-14 Yao Qi <yao@codesourcery.com>
11924 * target.h (target_xfer_partial_ftype): Update.
11925 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11927 * aix-thread.c (aix_thread_xfer_partial): Change type of
11928 argument 'len' to ULONGEST.
11929 * auxv.c (procfs_xfer_auxv): Likewise.
11930 (ld_so_xfer_auxv): Likewise.
11931 (memory_xfer_auxv): Likewise.
11932 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11933 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11934 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11935 * corelow.c (core_xfer_partial): Likewise.
11936 * ctf.c (ctf_xfer_partial): Likewise.
11937 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11939 (darwin_read_dyld_info): Likewise.
11940 (darwin_xfer_partial): Likewise.
11941 * exec.c (section_table_xfer_memory_partial): Likewise.
11942 (exec_xfer_partial): Likewise.
11943 * exec.h (section_table_xfer_memory_partial): Update
11945 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11946 instead of plongest.
11947 (gnu_xfer_partial): Likewise.
11948 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11949 (ia64_hpux_xfer_solib_got): Likewise.
11950 (ia64_hpux_xfer_partial): Likewise.
11951 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11952 * inf-ptrace.c (inf_ptrace_xfer_partial):
11953 * inf-ttrace.c (inf_ttrace_xfer_partial):
11954 * linux-nat.c (linux_xfer_siginfo): Likewise.
11955 (linux_nat_xfer_partial): Likewise.
11956 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11957 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11958 * monitor.c (monitor_xfer_memory): Likewise.
11959 (monitor_xfer_partial): Likewise.
11960 * procfs.c (procfs_xfer_partial): Likewise.
11961 * record-full.c (record_full_xfer_partial): Likewise.
11962 (record_full_core_xfer_partial): Likewise.
11963 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11964 instead of plongest.
11965 (gdbsim_xfer_partial): Likewise.
11966 * remote.c (remote_xfer_partial): Likewise.
11967 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11968 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11970 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11971 (rs6000_xfer_shared_libraries): Likewise.
11972 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11973 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11974 (sparc_xfer_partial): Likewise.
11975 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11976 (spu_xfer_partial): Likewise.
11977 * spu-multiarch.c (spu_xfer_partial): Likewise.
11978 * target.c (target_read_live_memory): Likewise.
11979 (memory_xfer_live_readonly_partial): Likewise.
11980 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11981 (target_xfer_partial, default_xfer_partial): Likewise.
11982 (current_xfer_partial): Likewise.
11983 * tracepoint.c (tfile_xfer_partial): Likewise.
11984 * windows-nat.c (windows_xfer_memory): Likewise. Call
11985 pulongest instead of plongest.
11986 (windows_xfer_partial): Likewise.
11987 (windows_xfer_shared_libraries): Likewise.
11989 2014-01-14 Yao Qi <yao@codesourcery.com>
11991 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11992 target_xfer_partial_ftype.
11994 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11998 * valops.c (value_struct_elt_bitpos): New function
11999 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12000 object to 'None' if the field name is an empty string ("").
12001 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12002 attribute to look for a field when 'name' is 'None'.
12003 (get_field_type): New function
12005 2014-01-13 Doug Evans <dje@google.com>
12008 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12009 (try_open_dwop_file): Ditto.
12010 * gdb_bfd.c: #include "vec.h".
12011 (bfdp): New typedef.
12012 (struct gdb_bfd_data): New member included_bfds.
12013 (gdb_bfd_unref): Unref all included bfds.
12014 (gdb_bfd_record_inclusion): New function.
12015 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12017 2014-01-13 Tom Tromey <tromey@redhat.com>
12019 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12021 2014-01-13 Tom Tromey <tromey@redhat.com>
12023 * defs.h (use_windows): Remove.
12024 * gdb.c (main): Update.
12025 * main.c (captured_main, gdb_main): Update.
12026 * main.h (struct captured_main_args) <use_windows>: Remove.
12027 * top.c (use_windows): Remove.
12029 2014-01-13 Tom Tromey <tromey@redhat.com>
12031 * defs.h (deprecated_flush_hook): Remove.
12033 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12036 * linux-thread-db.c (try_thread_db_load): Add parameter
12037 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12038 (try_thread_db_load_from_pdir_1): Move it there from here.
12039 (try_thread_db_load_from_sdir): Update caller.
12040 (try_thread_db_load_from_dir): Move it there from here.
12042 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12044 * regformats/regdat.sh: Always rewrite the register file.
12046 2014-01-13 Pedro Alves <palves@redhat.com>
12048 * Makefile.in (CHECK_HEADERS): New variable.
12049 (check-headers:): New rule.
12051 2014-01-13 Tom Tromey <tromey@redhat.com>
12053 * cli/cli-setshow.c (do_set_command): Update.
12054 * defs.h (deprecated_set_hook): Remove.
12055 * top.c (deprecated_set_hook): Remove.
12057 2014-01-13 Pedro Alves <palves@redhat.com>
12059 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12060 the tracepoint if the PC is a pseudo-register.
12062 2014-01-13 Tom Tromey <tromey@redhat.com>
12064 * defs.h (XCALLOC): Remove.
12065 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12066 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12067 * dwarf2loc.c (allocate_piece_closure): Likewise.
12068 * elfread.c (elf_symfile_segments): Likewise.
12069 (elf_symfile_segments): Likewise.
12070 * gdbtypes.c (copy_type_recursive): Likewise.
12071 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12072 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12073 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12075 * mt-tdep.c (mt_gdbarch_init): Likewise.
12076 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12078 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12079 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12080 * registry.c (registry_alloc_data): Likewise.
12081 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12082 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12083 * serial.c (serial_fdopen_ops): Likewise.
12084 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12086 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12087 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12090 2014-01-13 Tom Tromey <tromey@redhat.com>
12092 * defs.h (XMALLOC): Remove.
12093 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12094 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12095 * cli-out.c (struct ui_out *): Likewise.
12096 * cli/cli-dump.c (add_dump_command): Likewise.
12097 (add_dump_command): Likewise.
12098 * complaints.c (get_complaints): Likewise.
12099 (find_complaint): Likewise.
12100 * dwarf2-frame.c (execute_cfa_program): Likewise.
12101 * dwarf2read.c (abbrev_table_read_table): Likewise.
12102 * gdbarch.sh: Likewise.
12103 * gdbarch.c: Rebuild.
12104 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12105 * interps.c (interp_new): Likewise.
12106 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12107 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12108 * mi/mi-console.c (mi_console_file_new): Likewise.
12109 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12110 * mi/mi-out.c (mi_out_new): Likewise.
12111 * mi/mi-parse.c (mi_parse): Likewise.
12112 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12113 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12114 * observer.c (xalloc_observer_list_node): Likewise.
12115 * regcache.c (regcache_xmalloc_1): Likewise.
12116 * reggroups.c (reggroup_new): Likewise.
12117 (_initialize_reggroup): Likewise.
12118 * registry.c (register_data_with_cleanup): Likewise.
12119 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12120 * ser-base.c (serial_ttystate): Likewise.
12121 * ser-mingw.c (make_pipe_state): Likewise.
12122 * ser-pipe.c (pipe_open): Likewise.
12123 * serial.c (serial_open): Likewise.
12124 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12125 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12126 (tui_alloc_win_info): Likewise.
12127 (tui_add_content_elements): Likewise.
12128 * tui/tui-file.c (tui_file_new): Likewise.
12129 * tui/tui-out.c (tui_out_new): Likewise.
12130 * ui-file.c (mem_file_new): Likewise.
12131 * ui-out.c (push_level): Likewise.
12132 (make_cleanup_ui_out_end): Likewise.
12133 (append_header_to_list): Likewise.
12134 (ui_out_new): Likewise.
12135 * user-regs.c (user_reg_add_builtin): Likewise.
12137 2014-01-13 Tom Tromey <tromey@redhat.com>
12139 * defs.h (XZALLOC): Remove.
12140 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12141 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12142 (get_ada_tasks_inferior_data): Likewise.
12143 * auto-load.c (get_auto_load_pspace_data): Likewise.
12144 * auxv.c (get_auxv_inferior_data): Likewise.
12145 * bfd-target.c (target_bfd_reopen): Likewise.
12146 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12147 (deprecated_insert_raw_breakpoint): Likewise.
12148 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12149 * corelow.c (core_open): Likewise.
12150 * darwin-nat.c (darwin_check_new_threads): Likewise.
12151 (darwin_attach_pid): Likewise.
12152 * dummy-frame.c (dummy_frame_push): Likewise.
12153 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12154 * dwarf2loc.c (allocate_piece_closure): Likewise.
12155 * elfread.c (elf_symfile_segments): Likewise.
12156 * eval.c (ptrmath_type_p): Likewise.
12157 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12158 * gdbtypes.c (alloc_type_arch): Likewise.
12159 (alloc_type_instance): Likewise.
12160 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12161 * inf-child.c (inf_child_can_use_agent): Likewise.
12162 * inflow.c (get_inflow_inferior_data): Likewise.
12163 * infrun.c (save_infcall_suspend_state): Likewise.
12164 * jit.c (jit_reader_load): Likewise.
12165 (get_jit_objfile_data): Likewise.
12166 (get_jit_program_space_data): Likewise.
12167 (jit_object_open_impl): Likewise.
12168 (jit_symtab_open_impl): Likewise.
12169 (jit_block_open_impl): Likewise.
12170 (jit_frame_sniffer): Likewise.
12171 * linux-fork.c (add_fork): Likewise.
12172 * maint.c (make_command_stats_cleanup): Likewise.
12173 * objfiles.c (get_objfile_pspace_data): Likewise.
12174 * opencl-lang.c (struct lval_closure): Likewise.
12175 * osdata.c (osdata_start_osdata): Likewise.
12176 * progspace.c (new_address_space): Likewise.
12177 (add_program_space): Likewise.
12178 * remote-sim.c (get_sim_inferior_data): Likewise.
12179 * sh-tdep.c (sh_gdbarch_init): Likewise.
12180 * skip.c (Ignore): Likewise.
12181 (skip_delete_command): Likewise.
12182 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12183 (library_list_start_library): Likewise.
12184 (solib_aix_current_sos): Likewise.
12185 * solib-darwin.c (get_darwin_info): Likewise.
12186 (darwin_current_sos): Likewise.
12187 * solib-dsbt.c (get_dsbt_info): Likewise.
12188 * solib-ia64-hpux.c (new_so_list): Likewise.
12189 (ia64_hpux_get_solib_linkage_addr): Likewise.
12190 * solib-spu.c (append_ocl_sos): Likewise.
12191 (spu_current_sos): Likewise.
12192 * solib-svr4.c (get_svr4_info): Likewise.
12193 (svr4_keep_data_in_core): Likewise.
12194 (library_list_start_library): Likewise.
12195 (svr4_default_sos): Likewise.
12196 (svr4_read_so_list): Likewise.
12197 * solib-target.c (library_list_start_library): Likewise.
12198 (solib_target_current_sos): Likewise.
12199 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12200 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12201 * symfile.c (default_symfile_segments): Likewise.
12202 * target-descriptions.c (tdesc_data_init): Likewise.
12203 (tdesc_create_reg): Likewise.
12204 (struct tdesc_type *): Likewise.
12205 (tdesc_create_vector): Likewise.
12206 (tdesc_set_struct_size): Likewise.
12207 (struct tdesc_type *): Likewise.
12208 (tdesc_free_feature): Likewise.
12209 (tdesc_create_feature): Likewise.
12210 * windows-nat.c (windows_add_thread): Likewise.
12211 (windows_make_so): Likewise.
12212 * xml-support.c (gdb_xml_body_text): Likewise.
12213 (gdb_xml_create_parser_and_cleanup): Likewise.
12214 (xml_process_xincludes): Likewise.
12215 * xml-syscall.c (allocate_syscalls_info): Likewise.
12216 (syscall_create_syscall_desc): Likewise.
12218 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12220 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12221 function, with code from i386_stap_parse_special_token.
12222 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12223 (i386_stap_parse_special_token): Move code to the two functions
12224 above; simplify it.
12226 2014-01-09 Pedro Alves <palves@redhat.com>
12227 Hui Zhu <hui@codesourcery.com>
12230 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12231 bp_err_string. Don't mark the location shlib_disabled if the
12232 error thrown wasn't a generic or memory error. Catch errors
12233 thrown while inserting breakpoints in overlayed code. Output
12234 error message of software breakpoints.
12235 * remote.c (remote_insert_breakpoint): If this breakpoint has
12236 target-side commands but this stub doesn't support Z0 packets,
12237 throw NOT_SUPPORTED_ERROR error.
12238 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12239 * target.h (target_insert_breakpoint): Extend comment.
12240 (target_insert_hw_breakpoint): Add comment.
12242 2014-01-08 Pedro Alves <palves@redhat.com>
12244 * remote.c (remote_add_thread): Add threads silently if starting
12246 (remote_notice_new_inferior): If in all-stop, and starting up,
12247 don't call notice_new_inferior.
12248 (get_current_thread): New function, factored out from ...
12249 (add_current_inferior_and_thread): ... this. Adjust.
12250 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12251 found any thread, then select the remote's current thread as GDB's
12252 current thread too.
12254 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12256 * NEWS: Create a new section for the next release branch.
12257 Rename the section of the current branch, now that it has
12260 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12262 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12263 * version.in: Bump version to 7.7.50.DATE-cvs.
12265 2014-01-08 Yao Qi <yao@codesourcery.com>
12267 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12268 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12269 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12271 2014-01-08 Yao Qi <yao@codesourcery.com>
12273 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12274 return value of bfd_get_filename to symbol_file_add_from_bfd.
12276 2014-01-08 Pierre Muller <muller@sourceware.org>
12279 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12280 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12281 to prim_record_mininal_symbol_and_info.
12282 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12283 in call to prim_record_minimal_symbol_and_info.
12284 (read_pe_exported_syms): Set index field of section_data.
12286 2014-01-07 Andrew Pinski <apinski@cavium.com>
12288 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12289 * features/aarch64.c: Regenerate.
12291 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12293 * target.c (return_null): Define.
12294 (update_current_target): Use it instead of return_zero for
12295 functions that return a pointer.
12297 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12299 * source.c (add_path): Fix check for duplicated paths in the previously
12302 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12304 * ada-lang.c: Remove duplicated include statements.
12305 * alphabsd-nat.c: Ditto.
12306 * amd64-darwin-tdep.c: Ditto.
12307 * amd64fbsd-nat.c: Ditto.
12308 * auto-load.c: Ditto.
12310 * breakpoint.c: Ditto.
12311 * dbxread.c: Ditto.
12312 * fork-child.c: Ditto.
12313 * gdb_usleep.c: Ditto.
12314 * i386-darwin-tdep.c: Ditto.
12315 * i386fbsd-nat.c: Ditto.
12317 * inferior.c: Ditto.
12318 * jv-lang.c: Ditto.
12319 * linux-nat.c: Ditto.
12320 * linux-tdep.c: Ditto.
12321 * m68kbsd-nat.c: Ditto.
12322 * m68klinux-nat.c: Ditto.
12323 * microblaze-tdep.c: Ditto.
12324 * mips-linux-tdep.c: Ditto.
12325 * mn10300-tdep.c: Ditto.
12326 * nto-tdep.c: Ditto.
12327 * opencl-lang.c: Ditto.
12329 * printcmd.c: Ditto.
12330 * regcache.c: Ditto.
12331 * remote-m32r-sdi.c: Ditto.
12333 * symfile.c: Ditto.
12335 * tilegx-linux-nat.c: Ditto.
12336 * tilegx-tdep.c: Ditto.
12337 * tracepoint.c: Ditto.
12339 * vaxbsd-nat.c: Ditto.
12340 * windows-nat.c: Ditto.
12341 * xtensa-tdep.c: Ditto.
12343 2014-01-07 Yao Qi <yao@codesourcery.com>
12345 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12347 2014-01-07 Yao Qi <yao@codesourcery.com>
12348 Joel Brobecker <brobecker@adacore.com>
12350 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12351 (pdc_write_regs): Likewise.
12352 (fetch_regs_kernel_thread): Likewise.
12353 (store_regs_kernel_thread): Likewise.
12355 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12357 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12358 tagged type objects to their actual type.
12360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12362 * ada-valprint.c (print_field_values): Add "language" parameter.
12363 Update calls to print_field_values and print_variant_part.
12364 Pass new parameter "language" in call to val_print instead
12365 of "current_language". Replace call to ada_val_print by call
12367 (print_variant_part): Add "language" parameter.
12368 (ada_val_print_struct_union): Update call to print_field_values.
12370 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12372 * ada-valprint.c (ui_memcpy): Delete.
12373 (ada_print_floating): Update documentation. Add empty line
12374 between between function documentation and implementation.
12375 Delete variable "buffer". Use ui_file_xstrdup in place of
12376 ui_file_put. Minor adjustments following this change.
12378 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12380 * ada-valprint.c (ada_val_print_string): New function,
12381 extracted from ada_val_print_array.
12382 (ada_val_print_array): Replace extracted code by call
12383 to ada_val_print_string followed by a return. Move
12384 "else" branch to the function's top block.
12386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12388 * ada-valprint.c (ada_val_print_array): Move implementation
12389 down. Rename parameter "offset" and "val" into "offset_aligned"
12390 and "original_value" respectively. Add parameter "offset".
12392 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12394 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12395 re-organizing the code. Change the "???" message printed
12396 when target type is a TYPE_CODE_UNDEF into
12397 "<ref to undefined type>".
12399 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12401 * ada-valprint.c (print_record): Delete, implementation inlined...
12402 (ada_val_print_struct_union): ... here. Remove call to
12403 ada_check_typedef in inlined implementation.
12405 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12407 * ada-valprint.c (ada_val_print_gnat_array): New function,
12408 extracted from ada_val_print_1;
12409 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12410 (ada_val_print_flt, ada_val_print_struct_union)
12411 (ada_val_print_ref): Likewise.
12412 (ada_val_print_1): Delete variables i and elttype.
12413 Replace extracted-out code by call to corresponding
12416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12418 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12420 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12422 * ada-valprint.c (ada_val_print_1): Replace calls to
12423 ada_val_print_1 by calls to val_print.
12425 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12427 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12428 Update calls to self accordingly. Replace calls to c_val_print
12429 by calls to val_print.
12431 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12433 * ada-valprint.c (print_record): Delete declaration.
12434 (adjust_type_signedness, ada_val_print_1): Likewise.
12435 (ada_val_print): Move function implementation down.
12436 (print_variant_part, print_field_values, print_record):
12437 Move function implementation up.
12439 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12441 * python/py-type.c (typy_get_name): New function.
12442 (type_object_getset): Add entry for attribute "name".
12443 * NEWS: Add entry mentioning this new attribute.
12445 2014-01-07 Yao Qi <yao@codesourcery.com>
12447 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12450 2014-01-07 Yao Qi <yao@codesourcery.com>
12452 * gnu-nat.c (info_port_rights): Add qualifier const to
12455 2014-01-07 Yao Qi <yao@codesourcery.com>
12457 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12459 2014-01-07 Yao Qi <yao@codesourcery.com>
12461 * gnu-nat.c (make_inf) Update declaration.
12462 (make_inf): Make it static.
12463 (inf_set_traced): Likewise.
12464 (inf_port_to_thread, inf_task_died_status): Likewise.
12466 2014-01-07 Yao Qi <yao@codesourcery.com>
12468 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12470 2014-01-07 Yao Qi <yao@codesourcery.com>
12472 * gnu-nat.c (_initialize_gnu_nat): Declare.
12474 2014-01-07 Yao Qi <yao@codesourcery.com>
12476 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12478 (struct gdbarch_info) <byte_order>: Change type to
12480 <byte_order_for_code>: Likewise.
12481 * gdbarch.c, gdbarch.h: Regenerated.
12483 2014-01-06 Sasha Smundak <asmundak@google.com>
12485 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12487 2014-01-06 Tom Tromey <tromey@redhat.com>
12489 * doublest.c (convert_doublest_to_floatformat): Use const, not
12491 * somread.c (som_symtab_read): Likewise.
12493 2014-01-07 Hui Zhu <hui@codesourcery.com>
12495 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12496 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12497 (gdb_bfd_fopen): Ditto.
12498 (gdb_bfd_openr): Ditto.
12499 (gdb_bfd_openw): Ditto.
12500 (gdb_bfd_openr_iovec): Ditto.
12501 (gdb_bfd_fdopenr): Ditto.
12502 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12503 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12505 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12507 * symfile-mem.c (symbol_file_add_from_memory): Removed
12508 gdb_bfd_stash_filename.
12510 2014-01-03 Doug Evans <dje@google.com>
12512 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12515 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12517 Update year range in copyright notice of all files.
12519 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12521 * top.c (print_gdb_version): Set copyright year to 2014.
12523 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12525 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12527 For older changes see ChangeLog-2013.
12533 version-control: never