1 2014-09-02 Gary Benson <gbenson@redhat.com>
3 * i386-nat.h: Renamed as...
4 * x86-nat.h: New file. All type, function and variable name
5 prefixes changed from "i386_" to "x86_". All references updated.
6 * i386-nat.c: Renamed as...
7 * x86-nat.c: New file. All type, function and variable name
8 prefixes changed from "i386_" to "x86_". All references updated.
9 * common/i386-xstate.h: Renamed as...
10 * common/x86-xstate.h: New file. All type, function and variable
11 name prefixes changed from "i386_" to "x86_". All references
13 * nat/i386-cpuid.h: Renamed as...
14 * nat/x86-cpuid.h: New file. All type, function and variable name
15 prefixes changed from "i386_" to "x86_". All references updated.
16 * nat/i386-gcc-cpuid.h: Renamed as...
17 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
18 name prefixes changed from "i386_" to "x86_". All references
20 * nat/i386-dregs.h: Renamed as...
21 * nat/x86-dregs.h: New file. All type, function and variable name
22 prefixes changed from "i386_" to "x86_". All references updated.
23 * nat/i386-dregs.c: Renamed as...
24 * nat/x86-dregs.c: New file. All type, function and variable name
25 prefixes changed from "i386_" to "x86_". All references updated.
27 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
29 * varobj.c (_initialize_varobj): Move to the end of file.
31 2014-08-29 Gary Benson <gbenson@redhat.com>
33 * common/common-exceptions.h: New file.
34 * common/common-exceptions.c: Likewise.
35 * Makefile.in (SFILES): Add common/common-exceptions.c.
36 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
37 (COMMON_OBS): Add common-exceptions.o.
38 (common-exceptions.o): New rule.
39 * exceptions.h (common-exceptions.h): Include.
40 (gdb_setjmp.h): Do not include.
41 (return_reason): Moved to common-exceptions.h.
42 (enum return_reason): Likewise.
43 (RETURN_MASK): Likewise.
44 (typedef return_mask): Likewise.
45 (enum errors): Likewise.
46 (struct gdb_exception): Likewise.
47 (exceptions_state_mc_init): Likewise.
48 (exceptions_state_mc_action_iter): Likewise.
49 (exceptions_state_mc_action_iter_1): Likewise.
50 (TRY_CATCH): Likewise.
51 (throw_exception): Likewise.
52 (throw_verror): Likewise.
53 (throw_vquit): Likewise.
54 (throw_error): Likewise.
55 (throw_quit): Likewise.
56 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
57 (enum catcher_action): Likewise.
58 (struct catcher): Likewise.
59 (current_catcher): Likewise.
60 (catcher_list_size): Likewise.
61 (exceptions_state_mc_init): Likewise.
62 (catcher_pop): Likewise.
63 (exceptions_state_mc): Likewise.
64 (exceptions_state_mc_action_iter): Likewise.
65 (exceptions_state_mc_action_iter_1): Likewise.
66 (throw_exception): Likewise.
67 (exception_messages): Likewise.
68 (exception_messages_size): Likewise.
70 (throw_verror): Likewise.
71 (throw_vquit): Likewise.
72 (throw_error): Likewise.
73 (throw_quit): Likewise.
74 (prepare_to_throw_exception): New function.
76 2014-08-29 Gary Benson <gbenson@redhat.com>
78 * common/gdb_setjmp.h: New file.
79 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
80 * configure.ac: Move sigsetjmp check...
81 * common/common.m4: ...here.
82 * configure: Regenerate.
83 * cp-support.c (SIGJMP_BUF): Delete.
84 (SIGSETJMP): Likewise.
85 (SIGLONGJMP): Likewise.
86 * exceptions.h (gdb_setjmp.h): Include.
87 (setjmp.h): Do not include.
88 (EXCEPTIONS_SIGJMP_BUF): Delete.
89 (EXCEPTIONS_SIGSETJMP): Likewise.
90 (EXCEPTIONS_SIGLONGJMP): Likewise.
91 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
93 * exceptions.c: Likewise.
95 2014-08-29 Gary Benson <gbenson@redhat.com>
97 * cleanups.h: Moved to...
98 * common/cleanups.h: New file.
99 * cleanups.c: Moved to...
100 * common/cleanups.c: New file. Include common-defs.h and
101 cleanups.h. Do not include defs.h.
102 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
103 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
104 (cleanups.o): New rule.
106 2014-08-29 Gary Benson <gbenson@redhat.com>
108 * common/errors.h (internal_warning): New declaration.
109 (internal_vwarning): Likewise.
110 * common/errors.c (internal_warning): New function.
111 * utils.h (internal_warning): Don't declare.
112 (internal_vwarning): Likewise.
113 * utils.c (internal_warning): Removed.
115 2014-08-29 Gary Benson <gbenson@redhat.com>
117 * main.c (captured_main): Use warning during startup.
118 Prefix startup warning messages with command name.
120 2014-08-29 Gary Benson <gbenson@redhat.com>
122 * main.c (captured_main): Handle usage errors with error.
124 2014-08-29 Gary Benson <gbenson@redhat.com>
126 * go32-nat.c (go32_create_inferior): Replace a fprintf/
127 exit pair with a call to error. Wrap the message with _().
129 2014-08-29 Gary Benson <gbenson@redhat.com>
131 * main.c (captured_main): Replace a fprintf/exit
132 pair with a call to error. Wrap the message with _().
134 2014-08-29 Gary Benson <gbenson@redhat.com>
136 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
137 pairs with calls to error. Wrap the message with _().
139 2014-08-29 Gary Benson <gbenson@redhat.com>
141 * utils.c (vwarning): Protect calls to target_terminal_ours
144 2014-08-29 Gary Benson <gbenson@redhat.com>
146 * exceptions.c (print_flush): Protect calls to
147 target_terminal_ours and wrap_here.
149 2014-08-29 Gary Benson <gbenson@redhat.com>
151 * utils.h (filtered_printing_initialized): New declaration.
152 * utils.c (abort_with_message): New function.
153 (internal_vproblem): Use abort_with_message for first level
154 recursive internal problems, and if gdb_stderr is not set up.
155 Protect calls to target_terminal_ours, begin_line and query.
157 2014-08-28 Doug Evans <dje@google.com>
159 * symtab.c (in_prologue): Move definition to better spot.
160 (skip_prologue_using_sal): Ditto.
162 2014-08-28 Doug Evans <dje@google.com>
164 * symtab.c (find_function_start_sal): Move definition to better spot.
166 2014-08-28 Yao Qi <yao@codesourcery.com>
168 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
169 found_stack_adjust in forward scan. Remove condition check
170 on found_stack_adjust which is always true. Indent the code.
172 2014-08-28 Yao Qi <yao@codesourcery.com>
174 * dwarf2read.c (dwarf_decode_lines): Update declaration.
175 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
176 (dwarf_decode_lines): Remove argument
177 want_line_info. Remove condition check on want_line_info.
180 2014-08-27 Doug Evans <dje@google.com>
182 * dwarf2read.c (dwarf_record_line): Fix typo.
184 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
186 * target.h (struct target_ops::to_terminal_save_ours): Remove
188 (target_terminal_save_ours): Remove macro.
189 * target-delegates.c: Regenerate.
190 * inf-child.c (inf_child_target): Don't set the nonexistent
191 field to_terminal_save_ours.
192 * inferior.h (child_terminal_save_ours): Remove declaration.
193 * terminal.h (gdb_save_tty_state): New declaration.
194 * inflow.c (child_terminal_save_ours): Rename to ...
195 (gdb_save_tty_state): ... this.
196 * tui/tui.c: Include terminal.h.
197 (tui_enable): Use gdb_save_tty_state instead of
198 target_terminal_save_ours.
199 (tui_disable): Likewise.
201 2014-08-25 Doug Evans <dje@google.com>
203 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
204 Pass NULL instead of 0 for context pointer.
206 2014-08-25 Yao Qi <yao@codesourcery.com>
208 * dwarf2read.c: Fix grammatical error.
210 2014-08-24 Yao Qi <yao@codesourcery.com>
212 * dwarf2read.c (scan_partial_symbols): Update comments.
213 Rename argument 'need_pc' with 'set_addrmap'.
214 (add_partial_namespace): Rename argument 'need_pc' with
216 (add_partial_module): Likewise.
217 (add_partial_subprogram): Likewise. Update comments.
218 (dwarf2_name): Fix typo.
220 2014-08-22 Doug Evans <dje@google.com>
223 * dwarf2read.c (dwarf_record_line_p): New function.
224 (dwarf_decode_lines_1): Ignore subsequent line number entries
225 for the same line if any entry had a non-zero discriminator.
227 2014-08-22 Doug Evans <dje@google.com>
229 * buildsym.h (record_line_ftype): New typedef.
230 (record_line): Use it.
231 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
232 (dwarf_decode_lines_1): Call them.
234 2014-08-22 Yao Qi <yao@codesourcery.com>
236 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
237 (ctf_end): Remove code.
239 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
241 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
242 (linux_make_corefile_notes): call update_thread_list, protected against
245 2014-08-21 Pedro Alves <palves@redhat.com>
247 * infcmd.c (attach_command): Remove comment.
249 2014-08-21 Bin Cheng <bin.cheng@arm.com>
251 * aarch64-linux-nat.c (dr_changed_t): Change the type from
252 unsigned LONGEST to ULONGEST.
254 2014-08-20 Pedro Alves <palves@redhat.com>
256 * Makefile.in (check-read1): New rule.
258 2014-08-20 Joel Brobecker <brobecker@adacore.com>
260 * value.c (value_from_contents_and_address): Strip resolved_type's
261 typedef layers before checking its TYPE_DATA_LOCATION.
263 2014-08-20 Pedro Alves <palves@redhat.com>
265 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
267 2014-08-20 Yao Qi <yao@codesourcery.com>
269 * amd64-tdep.c (amd64_classify): Add a blank line after the
270 example. Move "*/" to a new line.
271 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
272 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
273 * dwarf2read.c (psymtab_include_file_name): Likewise.
275 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
276 Pedro Alves <palves@redhat.com>
280 * ada-lang.c (coerce_unspec_val_to_type): Use
281 value_contents_copy_raw.
282 * ada-valprint.c (val_print_packed_array_elements): Adjust.
283 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
284 * cp-valprint.c (cp_print_value_fields): Let the common printing
285 code handle optimized out values.
286 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
287 * d-valprint.c (dynamic_array_type): Use
288 value_bits_any_optimized_out.
289 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
290 check_any_valid fields.
291 (check_pieced_value_bits): Delete and inline ...
292 (check_pieced_synthetic_pointer): ... here.
293 (check_pieced_value_validity): Delete.
294 (check_pieced_value_invalid): Delete.
295 (pieced_value_funcs): Remove check_validity and check_any_valid
297 (read_pieced_value): Use mark_value_bits_optimized_out.
298 (write_pieced_value): Switch to use
299 mark_value_bytes_optimized_out.
300 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
301 of assuming the whole value is optimized out.
302 * findvar.c (read_frame_register_value): Remove special handling
303 of optimized out registers.
304 (value_from_register): Use mark_value_bytes_optimized_out.
305 * frame-unwind.c (frame_unwind_got_optimized): Use
306 mark_value_bytes_optimized_out.
307 * jv-valprint.c (java_value_print): Adjust.
308 (java_print_value_fields): Let the common printing code handle
309 optimized out values.
310 * mips-tdep.c (mips_print_register): Remove special handling of
311 optimized out registers.
312 * opencl-lang.c (lval_func_check_validity): Delete.
313 (lval_func_check_any_valid): Delete.
314 (opencl_value_funcs): Remove check_validity and check_any_valid
316 * p-valprint.c (pascal_object_print_value_fields): Let the common
317 printing code handle optimized out values.
318 * stack.c (read_frame_arg): Remove special handling of optimized
319 out values. Fetch both VAL and ENTRYVAL before comparing
320 contents. Adjust to value_available_contents_eq rename.
321 * valprint.c (valprint_check_validity)
322 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
323 (val_print_array_elements): Adjust.
324 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
325 (value_bits_any_optimized_out): New function.
326 (value_entirely_covered_by_range_vector): New function, factored
327 out from value_entirely_unavailable.
328 (value_entirely_unavailable): Reimplement.
329 (value_entirely_optimized_out): New function.
330 (insert_into_bit_range_vector): New function, factored out from
331 mark_value_bits_unavailable.
332 (mark_value_bits_unavailable): Reimplement.
333 (struct ranges_and_idx): New struct.
334 (find_first_range_overlap_and_match): New function, factored out
335 from value_available_contents_bits_eq.
336 (value_available_contents_bits_eq): Rename to ...
337 (value_contents_bits_eq): ... this. Check both unavailable
338 contents and optimized out contents.
339 (value_available_contents_eq): Rename to ...
340 (value_contents_eq): ... this.
341 (allocate_value_lazy): Remove reference to the old optimized_out
343 (allocate_optimized_out_value): Use
344 mark_value_bytes_optimized_out.
345 (require_not_optimized_out): Adjust to check whether the
346 optimized_out vec is empty.
347 (ranges_copy_adjusted): New function, factored out from
348 value_contents_copy_raw.
349 (value_contents_copy_raw): Also copy the optimized out ranges.
350 Assert the destination ranges aren't optimized out.
351 (value_contents_copy): Update comment, remove call to
352 require_not_optimized_out.
353 (value_contents_equal): Adjust to check whether the optimized_out
355 (set_value_optimized_out, value_optimized_out_const): Delete.
356 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
358 (value_entirely_optimized_out, value_bits_valid): Delete.
359 (value_copy): Take a VEC copy of the 'optimized_out' field.
360 (value_primitive_field): Remove special handling of optimized out.
361 (value_fetch_lazy): Assert that lazy values have no unavailable
362 regions. Use value_bits_any_optimized_out. Remove some special
363 handling for optimized out values.
364 * value.h: Add intro comment about <optimized out> and
366 (struct lval_funcs): Remove check_validity and check_any_valid
368 (set_value_optimized_out, value_optimized_out_const): Remove.
369 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
371 (value_bits_any_optimized_out): New declaration.
372 (value_bits_valid): Delete declaration.
373 (value_available_contents_eq): Rename to ...
374 (value_contents_eq): ... this, and extend comments.
376 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
378 Fix -fsanitize=address on unreadable inferior strings.
379 * valprint.c (val_print_string): Fix access before BUFFER.
381 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
383 * target.c (target_struct_size): Remove.
384 (target_struct_allocsize): Remove.
385 (DEFAULT_ALLOCSIZE): Remove.
386 (target_ops_p): New typedef.
387 (DEF_VEC_P (target_ops_p)): New vector type.
388 (target_structs): Change type to VEC (target_ops_p).
389 (add_target_with_completer): Replace "push" code by VEC_safe_push.
390 (find_default_run_target): Rewrite for loop following changes to
393 2014-08-19 Joel Brobecker <brobecker@adacore.com>
395 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
396 Adjust code accordingly. Adjust function description comment.
398 2014-08-19 Yao Qi <yao@codesourcery.com>
400 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
403 2014-08-19 Alan Modra <amodra@gmail.com>
405 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
406 * config.in: Regenerate.
407 * configure: Regenerate.
409 2014-08-19 Tom Tromey <tromey@redhat.com>
410 Gary Benson <gbenson@redhat.com>
412 * common/common-debug.h: New file.
413 * common/common-debug.c: Likewise.
415 * Makefile.in (SFILES): Add common/common-debug.c.
416 (HFILES_NO_SRCDIR): Add common/common-debug.h.
417 (COMMON_OBS): Add common-debug.o and debug.o.
418 (common-debug.o): New rule.
419 * common/common-defs.h: Include common-debug.h.
420 * common/agent.c (debug_agent_printf): New function.
421 (DEBUG_AGENT): Redefine.
422 * nat/i386-dregs.c (debug_printf): Undefine.
424 2014-08-19 Gary Benson <gbenson@redhat.com>
426 * common/common-defs.h: Include print-utils.h.
427 * utils.h: Do not include print-utils.h.
429 2014-08-19 Tom Tromey <tromey@redhat.com>
430 Gary Benson <gbenson@redhat.com>
432 * common/common-types.h: New file.
433 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
434 * common/common-defs.h: Include common-types.h.
435 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
438 2014-08-19 Tom Tromey <tromey@redhat.com>
439 Gary Benson <gbenson@redhat.com>
441 * common/errors.h: New file.
442 * common/errors.c: Likewise.
443 * Makefile.in (SFILES): Add common/errors.c.
444 (HFILES_NO_SRCDIR): Add common/errors.h.
445 (COMMON_OBS): Add errors.o.
446 (errors.o): New rule.
447 * common/common-defs.h: Include errors.h.
448 * utils.h (perror_with_name, error, verror, warning, vwarning):
450 * common/common-utils.h: (malloc_failure, internal_error):
453 2014-08-19 Gary Benson <gbenson@redhat.com>
455 * utils.c (internal_vproblem): Always print the message.
457 2014-08-18 Doug Evans <dje@google.com>
459 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
461 2014-08-18 Joel Brobecker <brobecker@adacore.com>
463 * ada-typeprint.c (type_is_full_subrange_of_target_type):
464 Return 0 if TYPE is dynamic.
465 (print_range): Add handling of dynamic ranges.
467 2014-08-18 Keven Boell <keven.boell@intel.com>
468 Joel Brobecker <brobecker@adacore.com>
470 * gdbtypes.h (struct main_type): Add field "data_location".
471 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
472 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
473 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
474 a dynamic data location.
475 (resolve_dynamic_type): Add DW_AT_data_location handling.
476 (copy_recursive, copy_type): Copy the data_location information
478 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
479 * value.c (value_from_contents_and_address): Add
480 DW_AT_data_location handling.
482 2014-08-18 Keven Boell <keven.boell@intel.com>
483 Joel Brobecker <brobecker@adacore.com>
485 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
486 field "get_object_address".
487 * dwarf2expr.c (execute_stack_op): Add handling for
488 DW_OP_push_object_address.
489 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
490 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
491 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
492 (dwarf_expr_get_obj_addr): New function.
493 (dwarf_expr_ctx_funcs): Add get_object_address field.
494 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
495 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
496 (dwarf2_evaluate_property): Add parameter "address". Use it.
497 (needs_get_obj_addr): New function.
498 (needs_frame_ctx_funcs): Add get_object_address field.
499 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
500 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
501 (resolve_dynamic_array): Likewise.
503 2014-08-18 Joel Brobecker <brobecker@adacore.com>
505 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
506 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
507 fixed value for records and unions for which some GNAT encodings
510 2014-08-18 Joel Brobecker <brobecker@adacore.com>
512 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
513 rewrite to avoid "else if" and "else" constructs. Should be
516 2014-08-18 Joel Brobecker <brobecker@adacore.com>
518 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
521 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
524 * eval.c: Update all calls to find_overload_match.
525 * valarith.c: Likewise.
526 (value_user_defined_cpp_op, value_user_defined_op): New
527 argument NOSIDE. Update all callers.
528 * valops.c (find_overload_match): New argument NOSIDE.
529 * value.h (find_overload_match): Update signature.
531 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
533 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
534 'items' methods instead of 'iteritems' method on dictionaries.
536 2014-08-15 Doug Evans <dje@google.com>
538 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
541 2014-08-15 Doug Evans <dje@google.com>
543 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
545 2014-08-15 Doug Evans <dje@google.com>
547 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
549 2014-08-15 Doug Evans <dje@google.com>
551 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
554 2014-08-15 Eli Zaretskii <eliz@gnu.org>
556 * dcache.h: Include target.h, to avoid compile time warnings.
558 2014-08-15 Joel Brobecker <brobecker@adacore.com>
560 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
561 frame_info" partial declaration.
562 * gdbarch.h: Regenerate.
564 2014-08-15 Yao Qi <yao@codesourcery.com>
566 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
567 Add parameter 'decode_for_pst_p'. Callers update.
569 2014-08-13 Yao Qi <yao@codesourcery.com>
572 * configure.ac: Use local variable 'pos'.
573 * configure: Regenerated.
575 2014-08-11 Doug Evans <dje@google.com>
577 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
578 message, it is redundant with "Reading symbols from ..." message.
580 2014-08-10 Doug Evans <xdje42@gmail.com>
582 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
584 2014-08-09 Yao Qi <yao@codesourcery.com>
587 * remote.c (remote_xfer_partial): Remove dead code.
589 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
591 * ia64-linux-tdep.c: Include "regset.h".
592 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
593 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
594 (ia64_linux_supply_fpregset): New function.
595 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
596 (ia64_linux_regset_from_core_section): New function.
597 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
600 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
602 * m68klinux-tdep.c: Include "regset.h".
603 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
604 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
605 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
606 (m68k_linux_regset_from_core_section): New function.
607 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
610 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
612 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
613 function. Move logic to...
614 (tilegx_linux_regmap): ... this new register map.
615 (tilegx_linux_regset): Refer to register map, replace supply
616 method by regcache_supply_regset, and add collect method.
617 * tilegx-tdep.h (enum tilegx_regnum): New enum value
618 TILEGX_FIRST_EASY_REGNUM.
620 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
622 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
623 that calls regcache_supply_regset and handles the EPC register
624 separately. Move main logic to...
625 (score7_linux_gregmap): ... this new register map.
626 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
627 (score7_linux_gregset): Refer to register map. Add collect method.
628 (score7_linux_regset_from_core_section): Replace
629 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
630 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
631 (struct regset): Delete unused forward declaraction.
632 (struct pt_regs): Delete structure definition.
633 (elf_gregset_t): Delete typedef.
635 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
637 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
638 (nios2_core_regset): Add collect method.
640 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
642 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
643 platform-independent and don't write to read-only input buffer.
644 (m32r_linux_collect_gregset): New function.
645 (m32r_linux_gregset): Add collect method.
647 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
649 * hppa-linux-tdep.c (greg_map): Rename to...
650 (hppa_linux_gregmap): ... this. Also convert to
651 regcache_map_entry format.
652 (hppa_linux_supply_regset): Delete function.
653 (hppa_linux_supply_fpregset): Delete function. Move logic to...
654 (hppa_linux_fpregmap): ... this new register map.
655 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
656 register map, replace supply method by regcache_supply_regset, and
657 add collect method regcache_collect_regset.
659 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
661 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
662 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
663 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
664 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
665 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
666 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
667 (frv_linux_supply_gregset): Replace main logic by call to
668 regcache_supply_regset, but keep clearing gr32-gr63.
669 (frv_linux_supply_fpregset): Delete function.
670 (frv_linux_gregset): Refer to appropriate register map and add
671 regcache_collect_regset as the collect method.
672 (frv_linux_fpregset): Likewise. Also exchange the supply method
673 by regcache_supply_regset.
675 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
677 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
678 by call to alpha_supply_int_regs.
679 (alpha_linux_collect_gregset): New function.
680 (alpha_linux_supply_fpregset): Replace logic by call to
681 alpha_supply_fp_regs.
682 (alpha_linux_collect_fpregset): New function.
683 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
685 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
687 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
688 by call to regcache_collect_regset.
689 (supply_gregset, supply_fpregset): Call regcache_supply_regset
690 instead of aarch64_linux_supply_gregset/_fpregset.
691 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
692 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
694 (aarch64_linux_supply_gregset, supply_gregset_from_core)
695 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
696 functions. Move logic to ...
697 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
699 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
700 refer to new register maps, replace *_regset_from_core by
701 regcache_supply_regset, and also use regcache_collect_regset.
702 * aarch64-linux-tdep.h: Include "regset.h".
703 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
705 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
706 macros, moved from C source file.
707 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
708 variable declarations.
710 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
712 * s390-linux-nat.c: Include "regset.h".
713 (regmap_gregset): Delete macro.
714 (s390_64_regmap_gregset): New register map for
715 regcache_supply/_collect_regset.
716 (s390_64_gregset): New regset.
717 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
718 (regmap_fpregset): Delete macro.
719 (s390_native_supply, s390_native_collect): Delete functions.
720 (supply_gregset, fill_gregset): Replace s390-specific regmap
721 handling by a call to regcache_supply/_collect_regset.
722 (supply_fpregset, fill_fpregset): Call regcache_supply/
723 _collect_regset instead of s390_native_supply/_collect.
724 (fetch_regset, store_regset): Likewise. Also change the last
725 parameter to a regset instead of a regmap.
726 (s390_linux_fetch_inferior_registers)
727 (390_linux_store_inferior_registers): Adjust last parameter in
728 calls to fetch_regset and store_regset.
729 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
730 (s390_gregmap): ... this. Also make static const and convert to
731 regcache_map_entry format.
732 (s390x_regmap_gregset): Delete.
733 (s390_regmap_fpregset): Rename to...
734 (s390_fpregmap): ... this. Make static const and convert to
735 regcache_map_entry format.
736 (s390_regmap_upper, s390_regmap_last_break)
737 (s390x_regmap_last_break, s390_regmap_system_call)
738 (s390_regmap_tdb): Likewise.
739 (s390_supply_regset, s390_collect_regset): Remove functions.
740 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
742 (s390_gregset, s390_fpregset, s390_upper_regset)
743 (s390_last_break_regset, s390x_last_break_regset)
744 (s390_system_call_regset, s390_tdb_regset): Make global and
745 replace s390_supply/_collect_regset by regcache_supply/
747 (s390x_gregset): Delete.
748 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
749 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
750 (s390_regmap_fpregset, s390_regmap_last_break)
751 (s390x_regmap_last_break, s390_regmap_system_call)
752 (s390_regmap_tdb): Delete global variable declarations.
753 (s390_gregset, s390_fpregset, s390_last_break_regset)
754 (s390x_last_break_regset, s390_system_call_regset)
755 (s390_tdb_regset): New global variable declarations.
757 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
759 * regcache.c: Include "regset.h".
760 (regcache_transfer_regset): New local function.
761 (regcache_supply_regset, regcache_collect_regset): New functions.
762 * regcache.h (struct regcache_map_entry): New structure.
763 (REGCACHE_MAP_SKIP): New enum value.
764 (regcache_supply_regset, regcache_collect_regset): New prototypes.
766 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
768 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
769 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
770 (ppc_linux_collect_gregset ): Likewise.
771 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
772 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
773 (ppc_collect_vrregset): Likewise.
774 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
777 2014-08-07 Yao Qi <yao@codesourcery.com>
779 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
780 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
781 * remote.c (remote_read_bytes): Likewise.
783 2014-08-07 Yao Qi <yao@codesourcery.com>
785 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
787 2014-08-07 Yao Qi <yao@codesourcery.com>
790 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
791 TARGET_XFER_OK instead of 0.
793 2014-08-07 Gary Benson <gbenson@redhat.com>
795 * common/common-defs.h: Include errno.h.
796 * defs.h: Do not include errno.h.
797 * ada-typeprint.c: Likewise.
798 * c-typeprint.c: Likewise.
799 * core-regset.c: Likewise.
800 * corefile.c: Likewise.
801 * corelow.c: Likewise.
802 * event-loop.c: Likewise.
803 * f-typeprint.c: Likewise.
804 * gnu-nat.c: Likewise.
805 * go32-nat.c: Likewise.
806 * i386gnu-nat.c: Likewise.
807 * m2-typeprint.c: Likewise.
808 * nat/linux-btrace.c: Likewise.
809 * p-typeprint.c: Likewise.
810 * procfs.c: Likewise.
811 * remote-sim.c: Likewise.
812 * rs6000-nat.c: Likewise.
813 * target.c: Likewise.
814 * typeprint.c: Likewise.
815 * ui-file.c: Likewise.
816 * valops.c: Likewise.
817 * valprint.c: Likewise.
819 2014-08-07 Gary Benson <gbenson@redhat.com>
821 * common/common-defs.h: Include string.h.
822 * aarch64-tdep.c: Do not include string.h.
823 * ada-exp.y: Likewise.
824 * ada-lang.c: Likewise.
825 * ada-lex.l: Likewise.
826 * ada-typeprint.c: Likewise.
827 * ada-valprint.c: Likewise.
828 * aix-thread.c: Likewise.
829 * alpha-linux-tdep.c: Likewise.
830 * alpha-mdebug-tdep.c: Likewise.
831 * alpha-nat.c: Likewise.
832 * alpha-osf1-tdep.c: Likewise.
833 * alpha-tdep.c: Likewise.
834 * alphanbsd-tdep.c: Likewise.
835 * amd64-dicos-tdep.c: Likewise.
836 * amd64-linux-tdep.c: Likewise.
837 * amd64-nat.c: Likewise.
838 * amd64-sol2-tdep.c: Likewise.
839 * amd64fbsd-tdep.c: Likewise.
840 * amd64obsd-tdep.c: Likewise.
841 * arch-utils.c: Likewise.
842 * arm-linux-nat.c: Likewise.
843 * arm-linux-tdep.c: Likewise.
844 * arm-tdep.c: Likewise.
845 * arm-wince-tdep.c: Likewise.
846 * armbsd-tdep.c: Likewise.
847 * armnbsd-nat.c: Likewise.
848 * armnbsd-tdep.c: Likewise.
849 * armobsd-tdep.c: Likewise.
850 * avr-tdep.c: Likewise.
851 * ax-gdb.c: Likewise.
852 * ax-general.c: Likewise.
853 * bcache.c: Likewise.
854 * bfin-tdep.c: Likewise.
855 * breakpoint.c: Likewise.
856 * build-id.c: Likewise.
857 * buildsym.c: Likewise.
859 * c-lang.c: Likewise.
860 * c-typeprint.c: Likewise.
861 * c-valprint.c: Likewise.
862 * charset.c: Likewise.
863 * cli-out.c: Likewise.
864 * cli/cli-cmds.c: Likewise.
865 * cli/cli-decode.c: Likewise.
866 * cli/cli-dump.c: Likewise.
867 * cli/cli-interp.c: Likewise.
868 * cli/cli-logging.c: Likewise.
869 * cli/cli-script.c: Likewise.
870 * cli/cli-setshow.c: Likewise.
871 * cli/cli-utils.c: Likewise.
872 * coffread.c: Likewise.
873 * common/agent.c: Likewise.
874 * common/buffer.c: Likewise.
875 * common/buffer.h: Likewise.
876 * common/common-utils.c: Likewise.
877 * common/filestuff.c: Likewise.
878 * common/filestuff.c: Likewise.
879 * common/format.c: Likewise.
880 * common/print-utils.c: Likewise.
881 * common/rsp-low.c: Likewise.
882 * common/signals.c: Likewise.
883 * common/vec.h: Likewise.
884 * common/xml-utils.c: Likewise.
885 * core-regset.c: Likewise.
886 * corefile.c: Likewise.
887 * corelow.c: Likewise.
888 * cp-abi.c: Likewise.
889 * cp-name-parser.y: Likewise.
890 * cp-support.c: Likewise.
891 * cp-valprint.c: Likewise.
892 * cris-tdep.c: Likewise.
894 * darwin-nat.c: Likewise.
895 * dbxread.c: Likewise.
896 * dcache.c: Likewise.
897 * demangle.c: Likewise.
898 * dicos-tdep.c: Likewise.
899 * disasm.c: Likewise.
900 * doublest.c: Likewise.
902 * dummy-frame.c: Likewise.
903 * dwarf2-frame.c: Likewise.
904 * dwarf2loc.c: Likewise.
905 * dwarf2read.c: Likewise.
906 * elfread.c: Likewise.
907 * environ.c: Likewise.
909 * event-loop.c: Likewise.
910 * exceptions.c: Likewise.
912 * expprint.c: Likewise.
914 * f-lang.c: Likewise.
915 * f-typeprint.c: Likewise.
916 * f-valprint.c: Likewise.
917 * fbsd-nat.c: Likewise.
918 * findcmd.c: Likewise.
919 * findvar.c: Likewise.
920 * fork-child.c: Likewise.
922 * frv-linux-tdep.c: Likewise.
923 * frv-tdep.c: Likewise.
925 * gdb_bfd.c: Likewise.
926 * gdbarch.c: Likewise.
927 * gdbarch.sh: Likewise.
928 * gdbtypes.c: Likewise.
929 * gnu-nat.c: Likewise.
930 * gnu-v2-abi.c: Likewise.
931 * gnu-v3-abi.c: Likewise.
932 * go-exp.y: Likewise.
933 * go-lang.c: Likewise.
934 * go32-nat.c: Likewise.
935 * guile/guile.c: Likewise.
936 * guile/scm-auto-load.c: Likewise.
937 * hppa-hpux-tdep.c: Likewise.
938 * hppa-linux-nat.c: Likewise.
939 * hppanbsd-tdep.c: Likewise.
940 * hppaobsd-tdep.c: Likewise.
941 * i386-cygwin-tdep.c: Likewise.
942 * i386-dicos-tdep.c: Likewise.
943 * i386-linux-tdep.c: Likewise.
944 * i386-nto-tdep.c: Likewise.
945 * i386-sol2-tdep.c: Likewise.
946 * i386-tdep.c: Likewise.
947 * i386bsd-tdep.c: Likewise.
948 * i386gnu-nat.c: Likewise.
949 * i386nbsd-tdep.c: Likewise.
950 * i386obsd-tdep.c: Likewise.
951 * i387-tdep.c: Likewise.
952 * ia64-libunwind-tdep.c: Likewise.
953 * ia64-linux-nat.c: Likewise.
954 * inf-child.c: Likewise.
955 * inf-ptrace.c: Likewise.
956 * inf-ttrace.c: Likewise.
957 * infcall.c: Likewise.
958 * infcmd.c: Likewise.
959 * inflow.c: Likewise.
960 * infrun.c: Likewise.
961 * interps.c: Likewise.
962 * iq2000-tdep.c: Likewise.
963 * irix5-nat.c: Likewise.
964 * jv-exp.y: Likewise.
965 * jv-lang.c: Likewise.
966 * jv-typeprint.c: Likewise.
967 * jv-valprint.c: Likewise.
968 * language.c: Likewise.
969 * linux-fork.c: Likewise.
970 * linux-nat.c: Likewise.
971 * lm32-tdep.c: Likewise.
972 * m2-exp.y: Likewise.
973 * m2-typeprint.c: Likewise.
974 * m32c-tdep.c: Likewise.
975 * m32r-linux-nat.c: Likewise.
976 * m32r-linux-tdep.c: Likewise.
977 * m32r-rom.c: Likewise.
978 * m32r-tdep.c: Likewise.
979 * m68hc11-tdep.c: Likewise.
980 * m68k-tdep.c: Likewise.
981 * m68kbsd-tdep.c: Likewise.
982 * m68klinux-nat.c: Likewise.
983 * m68klinux-tdep.c: Likewise.
984 * m88k-tdep.c: Likewise.
985 * machoread.c: Likewise.
986 * macrocmd.c: Likewise.
988 * mdebugread.c: Likewise.
989 * mem-break.c: Likewise.
990 * memattr.c: Likewise.
991 * memory-map.c: Likewise.
992 * mep-tdep.c: Likewise.
993 * mi/mi-cmd-break.c: Likewise.
994 * mi/mi-cmd-disas.c: Likewise.
995 * mi/mi-cmd-env.c: Likewise.
996 * mi/mi-cmd-stack.c: Likewise.
997 * mi/mi-cmd-var.c: Likewise.
998 * mi/mi-cmds.c: Likewise.
999 * mi/mi-console.c: Likewise.
1000 * mi/mi-getopt.c: Likewise.
1001 * mi/mi-interp.c: Likewise.
1002 * mi/mi-main.c: Likewise.
1003 * mi/mi-parse.c: Likewise.
1004 * microblaze-rom.c: Likewise.
1005 * microblaze-tdep.c: Likewise.
1006 * mingw-hdep.c: Likewise.
1007 * minidebug.c: Likewise.
1008 * minsyms.c: Likewise.
1009 * mips-irix-tdep.c: Likewise.
1010 * mips-linux-tdep.c: Likewise.
1011 * mips-tdep.c: Likewise.
1012 * mips64obsd-tdep.c: Likewise.
1013 * mipsnbsd-tdep.c: Likewise.
1014 * mipsread.c: Likewise.
1015 * mn10300-linux-tdep.c: Likewise.
1016 * mn10300-tdep.c: Likewise.
1017 * monitor.c: Likewise.
1018 * moxie-tdep.c: Likewise.
1019 * mt-tdep.c: Likewise.
1020 * nat/linux-btrace.c: Likewise.
1021 * nat/linux-osdata.c: Likewise.
1022 * nat/linux-procfs.c: Likewise.
1023 * nat/linux-ptrace.c: Likewise.
1024 * nat/linux-waitpid.c: Likewise.
1025 * nbsd-tdep.c: Likewise.
1026 * nios2-linux-tdep.c: Likewise.
1027 * nto-procfs.c: Likewise.
1028 * nto-tdep.c: Likewise.
1029 * objc-lang.c: Likewise.
1030 * objfiles.c: Likewise.
1031 * opencl-lang.c: Likewise.
1032 * osabi.c: Likewise.
1033 * osdata.c: Likewise.
1034 * p-exp.y: Likewise.
1035 * p-lang.c: Likewise.
1036 * p-typeprint.c: Likewise.
1037 * parse.c: Likewise.
1038 * posix-hdep.c: Likewise.
1039 * ppc-linux-nat.c: Likewise.
1040 * ppc-sysv-tdep.c: Likewise.
1041 * ppcfbsd-tdep.c: Likewise.
1042 * ppcnbsd-tdep.c: Likewise.
1043 * ppcobsd-tdep.c: Likewise.
1044 * printcmd.c: Likewise.
1045 * procfs.c: Likewise.
1046 * prologue-value.c: Likewise.
1047 * python/py-auto-load.c: Likewise.
1048 * python/py-gdb-readline.c: Likewise.
1049 * ravenscar-thread.c: Likewise.
1050 * regcache.c: Likewise.
1051 * registry.c: Likewise.
1052 * remote-fileio.c: Likewise.
1053 * remote-m32r-sdi.c: Likewise.
1054 * remote-mips.c: Likewise.
1055 * remote-notif.c: Likewise.
1056 * remote-sim.c: Likewise.
1057 * remote.c: Likewise.
1058 * reverse.c: Likewise.
1059 * rs6000-aix-tdep.c: Likewise.
1060 * ser-base.c: Likewise.
1061 * ser-go32.c: Likewise.
1062 * ser-mingw.c: Likewise.
1063 * ser-pipe.c: Likewise.
1064 * ser-tcp.c: Likewise.
1065 * ser-unix.c: Likewise.
1066 * serial.c: Likewise.
1067 * sh-tdep.c: Likewise.
1068 * sh64-tdep.c: Likewise.
1069 * shnbsd-tdep.c: Likewise.
1071 * sol-thread.c: Likewise.
1072 * solib-dsbt.c: Likewise.
1073 * solib-frv.c: Likewise.
1074 * solib-osf.c: Likewise.
1075 * solib-som.c: Likewise.
1076 * solib-spu.c: Likewise.
1077 * solib-target.c: Likewise.
1078 * solib.c: Likewise.
1079 * somread.c: Likewise.
1080 * source.c: Likewise.
1081 * sparc-nat.c: Likewise.
1082 * sparc-sol2-tdep.c: Likewise.
1083 * sparc-tdep.c: Likewise.
1084 * sparc64-tdep.c: Likewise.
1085 * sparc64fbsd-tdep.c: Likewise.
1086 * sparc64nbsd-tdep.c: Likewise.
1087 * sparcnbsd-tdep.c: Likewise.
1088 * spu-linux-nat.c: Likewise.
1089 * spu-multiarch.c: Likewise.
1090 * spu-tdep.c: Likewise.
1091 * stabsread.c: Likewise.
1092 * stack.c: Likewise.
1093 * std-regs.c: Likewise.
1094 * symfile.c: Likewise.
1095 * symmisc.c: Likewise.
1096 * symtab.c: Likewise.
1097 * target.c: Likewise.
1098 * thread.c: Likewise.
1099 * tilegx-linux-nat.c: Likewise.
1100 * tilegx-tdep.c: Likewise.
1102 * tracepoint.c: Likewise.
1103 * tui/tui-command.c: Likewise.
1104 * tui/tui-data.c: Likewise.
1105 * tui/tui-disasm.c: Likewise.
1106 * tui/tui-file.c: Likewise.
1107 * tui/tui-layout.c: Likewise.
1108 * tui/tui-out.c: Likewise.
1109 * tui/tui-regs.c: Likewise.
1110 * tui/tui-source.c: Likewise.
1111 * tui/tui-stack.c: Likewise.
1112 * tui/tui-win.c: Likewise.
1113 * tui/tui-windata.c: Likewise.
1114 * tui/tui-winsource.c: Likewise.
1115 * typeprint.c: Likewise.
1116 * ui-file.c: Likewise.
1117 * ui-out.c: Likewise.
1118 * user-regs.c: Likewise.
1119 * utils.c: Likewise.
1120 * v850-tdep.c: Likewise.
1121 * valarith.c: Likewise.
1122 * valops.c: Likewise.
1123 * valprint.c: Likewise.
1124 * value.c: Likewise.
1125 * varobj.c: Likewise.
1126 * vax-tdep.c: Likewise.
1127 * vaxnbsd-tdep.c: Likewise.
1128 * vaxobsd-tdep.c: Likewise.
1129 * windows-nat.c: Likewise.
1130 * xcoffread.c: Likewise.
1131 * xml-support.c: Likewise.
1132 * xstormy16-tdep.c: Likewise.
1133 * xtensa-linux-nat.c: Likewise.
1135 2014-08-07 Gary Benson <gbenson@redhat.com>
1137 * common/common-defs.h: Include gdb_assert.h.
1138 * aarch64-tdep.c: Do not include gdb_assert.h.
1139 * addrmap.c: Likewise.
1140 * aix-thread.c: Likewise.
1141 * alpha-linux-tdep.c: Likewise.
1142 * alpha-mdebug-tdep.c: Likewise.
1143 * alphanbsd-tdep.c: Likewise.
1144 * amd64-nat.c: Likewise.
1145 * amd64-tdep.c: Likewise.
1146 * amd64bsd-nat.c: Likewise.
1147 * amd64fbsd-nat.c: Likewise.
1148 * amd64fbsd-tdep.c: Likewise.
1149 * amd64nbsd-nat.c: Likewise.
1150 * amd64nbsd-tdep.c: Likewise.
1151 * amd64obsd-nat.c: Likewise.
1152 * amd64obsd-tdep.c: Likewise.
1153 * arch-utils.c: Likewise.
1154 * arm-tdep.c: Likewise.
1155 * armbsd-tdep.c: Likewise.
1157 * bcache.c: Likewise.
1158 * bfin-tdep.c: Likewise.
1159 * blockframe.c: Likewise.
1160 * breakpoint.c: Likewise.
1161 * bsd-kvm.c: Likewise.
1162 * bsd-uthread.c: Likewise.
1163 * buildsym.c: Likewise.
1164 * c-exp.y: Likewise.
1165 * c-lang.c: Likewise.
1166 * charset.c: Likewise.
1167 * cleanups.c: Likewise.
1168 * cli-out.c: Likewise.
1169 * cli/cli-decode.c: Likewise.
1170 * cli/cli-dump.c: Likewise.
1171 * cli/cli-logging.c: Likewise.
1172 * cli/cli-script.c: Likewise.
1173 * cli/cli-utils.c: Likewise.
1174 * coffread.c: Likewise.
1175 * common/common-utils.c: Likewise.
1176 * common/queue.h: Likewise.
1177 * common/signals.c: Likewise.
1178 * common/vec.h: Likewise.
1179 * complaints.c: Likewise.
1180 * completer.c: Likewise.
1181 * corelow.c: Likewise.
1182 * cp-abi.c: Likewise.
1183 * cp-name-parser.y: Likewise.
1184 * cp-namespace.c: Likewise.
1185 * cp-support.c: Likewise.
1186 * cris-tdep.c: Likewise.
1187 * dbxread.c: Likewise.
1188 * dictionary.c: Likewise.
1189 * doublest.c: Likewise.
1190 * dsrec.c: Likewise.
1191 * dummy-frame.c: Likewise.
1192 * dwarf2-frame-tailcall.c: Likewise.
1193 * dwarf2-frame.c: Likewise.
1194 * dwarf2expr.c: Likewise.
1195 * dwarf2loc.c: Likewise.
1196 * dwarf2read.c: Likewise.
1198 * event-loop.c: Likewise.
1199 * exceptions.c: Likewise.
1200 * expprint.c: Likewise.
1201 * f-valprint.c: Likewise.
1202 * fbsd-nat.c: Likewise.
1203 * findvar.c: Likewise.
1204 * frame-unwind.c: Likewise.
1205 * frame.c: Likewise.
1206 * frv-tdep.c: Likewise.
1207 * gcore.c: Likewise.
1208 * gdb-dlfcn.c: Likewise.
1209 * gdb_bfd.c: Likewise.
1210 * gdbarch.c: Likewise.
1211 * gdbarch.sh: Likewise.
1212 * gdbtypes.c: Likewise.
1213 * gnu-nat.c: Likewise.
1214 * gnu-v3-abi.c: Likewise.
1215 * go-lang.c: Likewise.
1216 * guile/scm-exception.c: Likewise.
1217 * guile/scm-gsmob.c: Likewise.
1218 * guile/scm-lazy-string.c: Likewise.
1219 * guile/scm-math.c: Likewise.
1220 * guile/scm-pretty-print.c: Likewise.
1221 * guile/scm-safe-call.c: Likewise.
1222 * guile/scm-utils.c: Likewise.
1223 * guile/scm-value.c: Likewise.
1224 * h8300-tdep.c: Likewise.
1225 * hppa-hpux-nat.c: Likewise.
1226 * hppa-tdep.c: Likewise.
1227 * hppanbsd-tdep.c: Likewise.
1228 * hppaobsd-tdep.c: Likewise.
1229 * i386-darwin-nat.c: Likewise.
1230 * i386-darwin-tdep.c: Likewise.
1231 * i386-nto-tdep.c: Likewise.
1232 * i386-tdep.c: Likewise.
1233 * i386bsd-nat.c: Likewise.
1234 * i386fbsd-tdep.c: Likewise.
1235 * i386gnu-nat.c: Likewise.
1236 * i386nbsd-tdep.c: Likewise.
1237 * i386obsd-tdep.c: Likewise.
1238 * i387-tdep.c: Likewise.
1239 * ia64-libunwind-tdep.c: Likewise.
1240 * ia64-tdep.c: Likewise.
1241 * inf-ptrace.c: Likewise.
1242 * inf-ttrace.c: Likewise.
1243 * infcall.c: Likewise.
1244 * infcmd.c: Likewise.
1245 * infrun.c: Likewise.
1246 * inline-frame.c: Likewise.
1247 * interps.c: Likewise.
1248 * jv-lang.c: Likewise.
1249 * jv-typeprint.c: Likewise.
1250 * linux-fork.c: Likewise.
1251 * linux-nat.c: Likewise.
1252 * linux-thread-db.c: Likewise.
1253 * m32c-tdep.c: Likewise.
1254 * m32r-linux-nat.c: Likewise.
1255 * m32r-tdep.c: Likewise.
1256 * m68k-tdep.c: Likewise.
1257 * m68kbsd-nat.c: Likewise.
1258 * m68kbsd-tdep.c: Likewise.
1259 * m88k-tdep.c: Likewise.
1260 * machoread.c: Likewise.
1261 * macroexp.c: Likewise.
1262 * macrotab.c: Likewise.
1263 * maint.c: Likewise.
1264 * mdebugread.c: Likewise.
1265 * memory-map.c: Likewise.
1266 * mep-tdep.c: Likewise.
1267 * mi/mi-common.c: Likewise.
1268 * microblaze-tdep.c: Likewise.
1269 * mingw-hdep.c: Likewise.
1270 * mips-linux-nat.c: Likewise.
1271 * mips-linux-tdep.c: Likewise.
1272 * mips-tdep.c: Likewise.
1273 * mips64obsd-tdep.c: Likewise.
1274 * mipsnbsd-tdep.c: Likewise.
1275 * mn10300-linux-tdep.c: Likewise.
1276 * mn10300-tdep.c: Likewise.
1277 * moxie-tdep.c: Likewise.
1278 * mt-tdep.c: Likewise.
1279 * nat/linux-btrace.c: Likewise.
1280 * nat/linux-osdata.c: Likewise.
1281 * nat/linux-ptrace.c: Likewise.
1282 * nat/mips-linux-watch.c: Likewise.
1283 * nios2-linux-tdep.c: Likewise.
1284 * nios2-tdep.c: Likewise.
1285 * objc-lang.c: Likewise.
1286 * objfiles.c: Likewise.
1287 * obsd-nat.c: Likewise.
1288 * opencl-lang.c: Likewise.
1289 * osabi.c: Likewise.
1290 * parse.c: Likewise.
1291 * ppc-linux-nat.c: Likewise.
1292 * ppc-sysv-tdep.c: Likewise.
1293 * ppcfbsd-nat.c: Likewise.
1294 * ppcfbsd-tdep.c: Likewise.
1295 * ppcnbsd-nat.c: Likewise.
1296 * ppcnbsd-tdep.c: Likewise.
1297 * ppcobsd-nat.c: Likewise.
1298 * ppcobsd-tdep.c: Likewise.
1299 * printcmd.c: Likewise.
1300 * procfs.c: Likewise.
1301 * prologue-value.c: Likewise.
1302 * psymtab.c: Likewise.
1303 * python/py-lazy-string.c: Likewise.
1304 * python/py-value.c: Likewise.
1305 * regcache.c: Likewise.
1306 * reggroups.c: Likewise.
1307 * registry.c: Likewise.
1308 * remote-sim.c: Likewise.
1309 * remote.c: Likewise.
1310 * rs6000-aix-tdep.c: Likewise.
1311 * rs6000-tdep.c: Likewise.
1312 * s390-linux-tdep.c: Likewise.
1313 * score-tdep.c: Likewise.
1314 * ser-base.c: Likewise.
1315 * ser-mingw.c: Likewise.
1316 * sh-tdep.c: Likewise.
1317 * sh64-tdep.c: Likewise.
1318 * solib-darwin.c: Likewise.
1319 * solib-spu.c: Likewise.
1320 * solib-svr4.c: Likewise.
1321 * source.c: Likewise.
1322 * sparc-nat.c: Likewise.
1323 * sparc-sol2-tdep.c: Likewise.
1324 * sparc-tdep.c: Likewise.
1325 * sparc64-sol2-tdep.c: Likewise.
1326 * sparc64-tdep.c: Likewise.
1327 * sparc64fbsd-tdep.c: Likewise.
1328 * sparc64nbsd-tdep.c: Likewise.
1329 * sparc64obsd-tdep.c: Likewise.
1330 * sparcnbsd-tdep.c: Likewise.
1331 * sparcobsd-tdep.c: Likewise.
1332 * spu-multiarch.c: Likewise.
1333 * spu-tdep.c: Likewise.
1334 * stabsread.c: Likewise.
1335 * stack.c: Likewise.
1336 * symfile.c: Likewise.
1337 * symtab.c: Likewise.
1338 * target-descriptions.c: Likewise.
1339 * target-memory.c: Likewise.
1340 * target.c: Likewise.
1341 * tic6x-linux-tdep.c: Likewise.
1342 * tic6x-tdep.c: Likewise.
1343 * tilegx-linux-nat.c: Likewise.
1344 * tilegx-tdep.c: Likewise.
1346 * tramp-frame.c: Likewise.
1347 * tui/tui-out.c: Likewise.
1348 * tui/tui-winsource.c: Likewise.
1349 * ui-out.c: Likewise.
1350 * user-regs.c: Likewise.
1351 * utils.c: Likewise.
1352 * v850-tdep.c: Likewise.
1353 * valops.c: Likewise.
1354 * value.c: Likewise.
1355 * varobj.c: Likewise.
1356 * vax-nat.c: Likewise.
1357 * xml-syscall.c: Likewise.
1358 * xml-tdesc.c: Likewise.
1359 * xstormy16-tdep.c: Likewise.
1360 * xtensa-linux-nat.c: Likewise.
1361 * xtensa-tdep.c: Likewise.
1363 2014-08-07 Gary Benson <gbenson@redhat.com>
1365 * common/common-defs.h: Include common-utils.h.
1366 * defs.h: Do not include common-utils.h.
1367 * common/gdb_assert.h: Likewise.
1368 * darwin-nat.h: Likewise.
1369 * nat/linux-btrace.c: Likewise.
1370 * target/waitstatus.h: Likewise.
1372 2014-08-07 Gary Benson <gbenson@redhat.com>
1374 * common/common-defs.h: Include ptid.h.
1375 * defs.h: Do not include ptid.h.
1376 * inferior.h: Likewise.
1377 * infrun.h: Likewise.
1378 * nat/linux-btrace.h: Likewise.
1379 * nat/linux-osdata.h: Likewise.
1380 * target/waitstatus.h: Likewise.
1382 2014-08-07 Gary Benson <gbenson@redhat.com>
1384 * common/common-defs.h: Include gdb_locale.h.
1385 * defs.h: Do not include gdb_locale.h.
1387 2014-08-07 Gary Benson <gbenson@redhat.com>
1389 * common/common-defs.h: Include gdb/signals.h.
1390 * defs.h: Do not include gdb/signals.h.
1392 2014-08-07 Gary Benson <gbenson@redhat.com>
1394 * common/common-defs.h: Include pathmax.h.
1395 * defs.h: Do not include pathmax.h.
1397 2014-08-07 Gary Benson <gbenson@redhat.com>
1399 * common/common-defs.h: Include libiberty.h.
1400 * defs.h: Do not include libiberty.h.
1401 * common/queue.h: Likewise.
1402 * cp-name-parser.y: Likewise.
1403 * mi/mi-cmd-catch.c: Likewise.
1404 * python/python.c: Likewise.
1406 2014-08-07 Gary Benson <gbenson@redhat.com>
1408 * common/common-defs.h: Include ansidecl.h.
1409 * defs.h: Do not include ansidecl.h.
1410 * common/buffer.h: Likewise.
1411 * common/common-utils.h: Likewise.
1413 2014-08-07 Gary Benson <gbenson@redhat.com>
1415 * common/common-defs.h: Include stddef.h.
1416 * defs.h: Do not include stddef.h.
1417 * common/common-utils.h: Likewise.
1418 * amd64fbsd-nat.c: Likewise.
1419 * bcache.c: Likewise.
1420 * charset.c: Likewise.
1421 * common/buffer.h: Likewise.
1422 * common/vec.h: Likewise.
1423 * i386bsd-nat.c: Likewise.
1424 * nat/linux-btrace.h: Likewise.
1425 * ppcfbsd-nat.c: Likewise.
1426 * ppcnbsd-tdep.h: Likewise.
1427 * ppcobsd-nat.c: Likewise.
1428 * ppcobsd-tdep.h: Likewise.
1429 * python/py-gdb-readline.c: Likewise.
1431 2014-08-07 Gary Benson <gbenson@redhat.com>
1433 * common/common-defs.h: Include stdarg.h.
1434 * defs.h: Do not include stdarg.h.
1435 * ada-lang.c: Likewise.
1436 * common/common-utils.h: Likewise.
1437 * guile/scm-string.c: Likewise.
1438 * guile/scm-utils.c: Likewise.
1439 * m32c-tdep.c: Likewise.
1441 2014-08-07 Gary Benson <gbenson@redhat.com>
1443 * common/common-defs.h: Include stdlib.h.
1444 * defs.h: Do not include stdlib.h.
1445 * addrmap.c: Likewise.
1446 * bcache.c: Likewise.
1447 * common/buffer.c: Likewise.
1448 * common/common-utils.c: Likewise.
1449 * cp-name-parser.y: Likewise.
1450 * go32-nat.c: Likewise.
1451 * mn10300-linux-tdep.c: Likewise.
1452 * nat/linux-osdata.c: Likewise.
1453 * tui/tui.c: Likewise.
1454 * windows-nat.c: Likewise.
1456 2014-08-07 Gary Benson <gbenson@redhat.com>
1458 * common/common-defs.h: Include stdio.h.
1459 * defs.h: Do not include stdio.h.
1460 * ada-lang.c: Likewise.
1461 * common/buffer.c: Likewise.
1462 * common/common-utils.c: Likewise.
1463 * cp-name-parser.y: Likewise.
1464 * gnu-nat.c: Likewise.
1465 * go32-nat.c: Likewise.
1466 * i386gnu-nat.c: Likewise.
1467 * proc-api.c: Likewise.
1468 * proc-events.c: Likewise.
1469 * proc-flags.c: Likewise.
1470 * proc-why.c: Likewise.
1471 * python/python-internal.h: Likewise.
1472 * target-memory.c: Likewise.
1473 * tui/tui-io.c: Likewise.
1474 * tui/tui.c: Likewise.
1476 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1478 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1479 (scan_dyntag_auxv): Same.
1481 2014-08-06 Yao Qi <yao@codesourcery.com>
1483 * amd64-linux-nat.c: Remove duplicated include
1485 * i386-linux-nat.c: Likewise.
1487 2014-08-06 Yao Qi <yao@codesourcery.com>
1489 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1490 operand" with "Special opcode" in comments.
1492 2014-08-05 Gary Benson <gbenson@redhat.com>
1494 * interps.c (initialize_interps): Remove prototype.
1495 (interpreter_initialized): Remove static global.
1496 (interp_add): Do not call initialize_interps.
1497 (initialize_interps): Remove function.
1499 2014-08-05 Gary Benson <gbenson@redhat.com>
1501 * utils.c (vwarning): Remove spurious va_end.
1503 2014-08-05 Alan Modra <amodra@gmail.com>
1505 * charset.c (convert_between_encodings): Cast result of obstack_base.
1506 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1507 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1508 (read_unwind_info): Use size_t for some locals.
1509 * jit.c (finalize_symtab): Likewise.
1510 * utils.c (hashtab_obstack_allocate): Likewise.
1511 * symmisc.c (print_objfile_statistics): Update format strings.
1513 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1515 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1516 (Changes in GDB 7.8): ... here.
1518 2014-08-04 Tom Tromey <tromey@redhat.com>
1520 * target.c (set_targetdebug): New function.
1521 (initialize_targets): Pass set_targetdebug when creating "set
1524 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1526 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1527 if detecting a variable-sized field that is not the last field.
1528 Fix struct type length computation.
1530 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1532 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1535 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1537 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1538 Remove "+ 8" offset in computation of CHAIN_VMA.
1540 2014-07-31 Doug Evans <dje@google.com>
1542 * inflow.c (child_terminal_inferior): Add comment.
1543 (child_terminal_ours_for_output): Add comment.
1544 (child_terminal_ours): Add comment.
1545 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1546 (linux_nat_terminal_ours): Add comment.
1548 2014-07-31 Gary Benson <gbenson@redhat.com>
1550 * common/btrace-common.h: Do not include defs.h or server.h.
1551 * nat/mips-linux-watch.h: Likewise.
1552 * gdb-dlfcn.h: Do not include defs.h.
1553 * tracefile.h: Likewise.
1555 2014-07-30 Roland McGrath <mcgrathr@google.com>
1557 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1559 2014-07-30 Tom Tromey <tromey@redhat.com>
1561 * bsd-kvm.c (bsd_kvm_open): Constify.
1562 * corelow.c (core_open): Constify.
1563 * ctf.c (ctf_open): Constify.
1564 * dbug-rom.c (dbug_open): Constify.
1565 * exec.c (exec_open): Constify.
1566 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1567 * microblaze-rom.c (picobug_open): Constify.
1568 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1570 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1571 * record-btrace.c (record_btrace_open): Constify.
1572 * record-full.c (record_full_core_open_1, record_full_open_1)
1573 (record_full_open): Constify.
1574 * remote-m32r-sdi.c (m32r_open): Constify.
1575 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1576 (rockhopper_open, lsi_open): Constify.
1577 * remote-sim.c (gdbsim_open): Constify.
1578 * remote.c (remote_open, extended_remote_open, remote_open_1):
1580 * target.h (struct target_ops) <to_open>: Make "arg" const.
1581 * tracefile-tfile.c (tfile_open): Constify.
1583 2014-07-30 Tom Tromey <tromey@redhat.com>
1585 * breakpoint.c (map_breakpoint_numbers): Update.
1586 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1587 (get_number_const): New function.
1588 (get_number): Rewrite using get_number_const.
1589 (init_number_or_range): Make "string" const.
1590 (number_is_in_list): Make "list" const.
1591 * cli/cli-utils.h (get_number_const): Declare.
1592 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1593 (init_number_or_range, number_is_in_list): Update.
1594 * printcmd.c (map_display_numbers): Update.
1595 * value.c (value_from_history_ref): Constify.
1596 * value.h (value_from_history_ref): Update.
1598 2014-07-30 Tom Tromey <tromey@redhat.com>
1600 * corefile.c (hook_type, call_extra_exec_file_hooks)
1601 (specify_exec_file_hook): Constify.
1602 * exec.c (exec_file_attach): Make "filename" const.
1603 * gdbcore.h (deprecated_exec_file_display_hook)
1604 (specify_exec_file_hook, exec_file_attach): Constify.
1605 * main.c (captured_main): Use catch_command_errors_const.
1607 2014-07-30 Tom Tromey <tromey@redhat.com>
1609 * target.c (open_target): New function.
1610 (add_target_with_completer, add_deprecated_target_alias): Use
1611 set_cmd_sfunc, set_cmd_context.
1612 (debug_to_open): Remove.
1613 (setup_target_debug): Update.
1615 2014-07-30 Yao Qi <yao@codesourcery.com>
1617 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1619 * parse.c (exp_iterate): Update comments.
1621 2014-07-30 Gary Benson <gbenson@redhat.com>
1623 * common/common-defs.h: New file.
1624 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1625 * defs.h: Include common-defs.h.
1626 Do not include config.h or build-gnulib/config.h.
1628 2014-07-30 Gary Benson <gbenson@redhat.com>
1630 * common/common-utils.h: Do not include config.h.
1631 * nat/linux-btrace.h: Likewise.
1633 2014-07-30 Gary Benson <gbenson@redhat.com>
1635 * btrace.c: Include defs.h.
1636 * common/ptid.c: Include defs.h or server.h as appropriate.
1637 * nat/mips-linux-watch.c: Likewise.
1639 2014-07-29 Tom Tromey <tromey@redhat.com>
1641 * target.c (target_is_pushed): Simplify.
1643 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1647 2014-07-29 Yao Qi <yao@codesourcery.com>
1650 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1652 2014-07-28 Doug Evans <xdje42@gmail.com>
1655 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1656 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1659 2014-07-28 Will Newton <will.newton@linaro.org>
1661 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1662 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1663 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1664 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1665 (THUMB2_EABI_SYSCALL): Likewise.
1666 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1668 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1669 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1671 2014-07-27 Doug Evans <xdje42@gmail.com>
1673 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1675 2014-07-27 Doug Evans <xdje42@gmail.com>
1677 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1679 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1680 Doug Evans <xdje42@gmail.com>
1683 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1684 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1685 * configure.ac: Try to use guild to compile an scm file, if it fails
1686 then disable guile support.
1687 * configure: Regenerate.
1688 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1690 (GUILE_COMPILED_FILES): New variable.
1691 (GUILE_FILES) Update.
1692 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1693 (stamp-guile): Compile scm files.
1694 * guile/guile.c (boot_guile_support): New function.
1695 (standard_throw_args_p): New function.
1696 (print_standard_throw_error, print_throw_error): New functions.
1697 (handle_boot_error): New function.
1698 (initialize_scheme_side): Rewrite to call boot_guile_support.
1699 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1700 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1702 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1703 Doug Evans <xdje42@gmail.com>
1706 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1707 * guile/lib/gdb/support.scm: New file.
1708 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1709 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1711 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1713 (%assert-type): Ditto, and renamed to assert-type.
1714 (%exception-print-style): Delete.
1716 2014-07-26 Doug Evans <xdje42@gmail.com>
1719 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1720 * configure: Regenerate.
1721 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1723 (PYTHON_FILES): New variable.
1724 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1725 (GUILE_FILES): New variable.
1726 (stamp-python, install-python, uninstall-python): Handle empty
1728 (stamp-guile, install-guile, uninstall-guile): Ditto.
1730 2014-07-26 Doug Evans <xdje42@gmail.com>
1733 * guile/lib/gdb.scm (pretty-printers): Export.
1734 (set-pretty-printers!): Export.
1735 * guile/lib/gdb/printing.scm (gdb module): Update.
1736 (prepend-pretty-printer!, append-pretty-printer!): Update.
1737 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1738 (pretty_printer_list_var): Delete.
1739 (pretty_printer_list): New static global.
1740 (gdbscm_pretty_printers): New function.
1741 (gdbscm_set_pretty_printers_x): New function.
1742 (ppscm_find_pretty_printer_from_gdb): Update.
1743 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1744 (gdbscm_initialize_pretty_printers): Update.
1746 2014-07-26 Doug Evans <xdje42@gmail.com>
1749 * configure.ac: Add check for header gc/gc.h.
1750 Add check for function setenv.
1751 * configure: Regenerate.
1752 * config.in: Regenerate.
1753 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1755 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1757 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1758 variation in gdbarch matching.
1760 2014-07-25 Tom Tromey <tromey@redhat.com>
1762 * exec.c (using_exec_ops): Remove.
1763 (exec_close_1): Update. Remove extraneous block, reindent.
1764 (add_target_sections): Use target_is_pushed.
1766 2014-07-25 Pedro Alves <palves@redhat.com>
1768 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1769 * monitor.c (monitor_create_inferior): Likewise.
1770 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1771 * remote-sim.c (gdbsim_create_inferior): Likewise.
1772 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1773 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1774 * windows-nat.c (do_initial_windows_stuff): Likewise.
1776 2014-07-25 Pedro Alves <palves@redhat.com>
1778 * NEWS: Mention signal passing and "signal" command changes.
1779 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1781 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1783 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1784 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1785 (jump_command): Adjust clear_proceed_status call.
1786 (signal_command): Warn if other thread that are resumed have
1787 signals that will be delivered. Adjust clear_proceed_status call.
1788 (until_next_command, finish_command)
1789 (proceed_after_attach_callback, attach_command_post_wait)
1790 (attach_command): Adjust clear_proceed_status call.
1791 * infrun.c (proceed_after_vfork_done): Likewise.
1792 (proceed_after_attach_callback): Adjust comment.
1793 (clear_proceed_status_thread): Clear stop_signal if not in pass
1795 (clear_proceed_status_callback): Delete.
1796 (clear_proceed_status): New 'step' parameter. Only clear the
1797 proceed status of threads the command being prepared is about to
1799 (proceed): If passed in an explicit signal, override stop_signal
1800 with it. Don't pass the last stop signal to the thread we're
1802 (init_wait_for_inferior): Adjust clear_proceed_status call.
1803 (switch_back_to_stepped_thread): Clear the signal if it should not
1805 * infrun.h (clear_proceed_status): New 'step' parameter.
1806 (user_visible_resume_ptid): Add comment.
1807 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1808 signal is in pass state.
1809 * remote.c (append_pending_thread_resumptions): Likewise.
1810 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1812 2014-07-25 Tom Tromey <tromey@redhat.com>
1814 * target.h (target_stopped_data_address)
1815 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1818 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1820 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1822 (avr_pointer_to_address): Likewise.
1824 2014-07-24 Tom Tromey <tromey@redhat.com>
1826 * monitor.c (compile_pattern): Update.
1827 * target.h (struct target_ops) <to_shortname, to_longname,
1830 2014-07-24 Tom Tromey <tromey@redhat.com>
1832 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1833 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1834 (add_info_alias, add_com): Make "doc" const.
1835 (print_doc_line): Make "str" const.
1836 (delete_cmd): Update.
1837 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1838 (print_doc_line): Update.
1839 * cli/cli-script.c (document_command): Update.
1840 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1841 (add_com, add_info, add_info_alias): Update.
1842 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1843 * python/py-cmd.c (cmdpy_destroyer): Update.
1845 2014-07-24 Tom Tromey <tromey@redhat.com>
1847 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1848 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1849 (help_cmd_list): Constify.
1850 (lookup_cmd): Update.
1851 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1853 (help_cmd_list, apropos_cmd): Update.
1854 * cli/cli-script.c (show_user): Update.
1855 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1856 * cli/cli-setshow.h (cmd_show_list): Update.
1857 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1858 (cmd_show_list): Update.
1859 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1860 * python/py-cmd.c (cmdpy_destroyer): Update.
1862 2014-07-24 Tom Tromey <tromey@redhat.com>
1864 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1865 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1867 * command.h (deprecate_cmd): Update.
1868 * maint.c (maintenance_do_deprecate): Add casts.
1870 2014-07-24 Tom Tromey <tromey@redhat.com>
1872 * cli/cli-decode.c (help_cmd): Make parameter "const".
1873 * cli/cli-decode.h (help_cmd): Update.
1875 2014-07-24 Tom Tromey <tromey@redhat.com>
1877 * stack.c (up_silently_base, down_silently_base): Make argument
1880 2014-07-24 Tom Tromey <tromey@redhat.com>
1882 * solib.c (solib_add): Make "pattern" const.
1883 * solib.h (solib_add): Update.
1885 2014-07-24 Tom Tromey <tromey@redhat.com>
1887 * remote.c (remote_serial_open, print_packet, putpkt)
1888 (putpkt_binary): Constify.
1889 * remote.h (putpkt): Update.
1891 2014-07-24 Tom Tromey <tromey@redhat.com>
1893 * monitor.c (monitor_open): Make "args" const.
1894 * monitor.h (monitor_open): Update.
1896 2014-07-24 Tom Tromey <tromey@redhat.com>
1898 * maint.c (match_bfd_flags): Make "string" const.
1899 (print_bfd_section_info): Remove casts.
1900 (print_objfile_section_info): Make "string" const.
1902 2014-07-24 Tom Tromey <tromey@redhat.com>
1904 * inf-child.c (inf_child_open_target): Make "arg" const.
1905 * inf-child.h (inf_child_open_target): Update.
1907 2014-07-24 Tom Tromey <tromey@redhat.com>
1909 * environ.c (unset_in_environ): Make "var" const.
1910 * environ.h (unset_in_environ): Update.
1912 2014-07-24 Tom Tromey <tromey@redhat.com>
1914 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1916 (scan_filename_with_cleanup): Likewise.
1917 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1918 Make arguments const.
1919 (restore_command): Update.
1921 2014-07-24 Pedro Alves <palves@redhat.com>
1923 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1925 2014-07-24 Tom Tromey <tromey@redhat.com>
1926 Gary Benson <gbenson@redhat.com>
1928 * nat/linux-ptrace.c (additional_flags): New global.
1929 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1930 additional_flags; don't check GDBSERVER.
1931 (linux_ptrace_set_additional_flags): New function.
1932 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1934 * linux-nat.c (_initialize_linux_nat): Call
1935 linux_ptrace_set_additional_flags.
1937 2014-07-24 Tom Tromey <tromey@redhat.com>
1939 * make-target-delegates (munge_type, write_debugmethod): New
1941 (debug_names): New global.
1942 ($TARGET_DEBUG_PRINTER): New global.
1943 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1945 Write debug methods. Generate init_debug_target.
1946 * target-debug.h: New file.
1947 * target-delegates.c: Rebuild.
1948 * target.c: Include target-debug.h.
1949 (debug_target): Hoist definition.
1950 (target_kill, target_get_section_table, target_memory_map)
1951 (target_flash_erase, target_flash_done, target_detach)
1952 (target_disconnect, target_wait, target_resume)
1953 (target_pass_signals, target_program_signals, target_follow_fork)
1954 (target_mourn_inferior, target_search_memory)
1955 (target_thread_address_space, target_close)
1956 (target_find_new_threads, target_core_of_thread)
1957 (target_verify_memory, target_insert_mask_watchpoint)
1958 (target_remove_mask_watchpoint): Remove targetdebug code.
1959 (debug_to_post_attach, debug_to_prepare_to_store)
1960 (debug_to_files_info, debug_to_insert_breakpoint)
1961 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1962 (debug_to_region_ok_for_hw_watchpoint)
1963 (debug_to_can_accel_watchpoint_condition)
1964 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1965 (debug_to_watchpoint_addr_within_range)
1966 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1967 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1968 (debug_to_terminal_init, debug_to_terminal_inferior)
1969 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1970 (debug_to_terminal_save_ours, debug_to_terminal_info)
1971 (debug_to_load, debug_to_post_startup_inferior)
1972 (debug_to_insert_fork_catchpoint)
1973 (debug_to_remove_fork_catchpoint)
1974 (debug_to_insert_vfork_catchpoint)
1975 (debug_to_remove_vfork_catchpoint)
1976 (debug_to_insert_exec_catchpoint)
1977 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1978 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1979 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1980 (setup_target_debug): Call init_debug_target.
1981 * target.h (TARGET_DEBUG_PRINTER): New macro.
1982 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1983 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1985 2014-07-24 Gary Benson <gbenson@redhat.com>
1987 * exceptions.h (throw_vfatal): Renamed to...
1988 (throw_vquit): New declaration.
1989 (throw_quit): Likewise.
1990 * exceptions.c (throw_vfatal): Renamed to...
1991 (throw_vquit): New function.
1992 (throw_quit): Likewise.
1993 (throw_error): Call throw_verror rather than throw_it.
1994 * utils.h (vfatal): Removed.
1996 * utils.c (vfatal): Removed.
1998 (internal_verror): Replaced call to fatal with call to throw_quit.
1999 (quit): Replaced calls to fatal with calls to throw_quit.
2001 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2003 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2006 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2008 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2009 less than zero in conditional expression.
2011 2014-07-23 Tom Tromey <tromey@redhat.com>
2013 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2014 ($INTRO_PART): Don't match whitespace.
2015 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2017 ($METHOD): Add $METHOD_TRAILER.
2019 (scan_target_h): New sub.
2020 Change main loop not to collect state.
2021 * target-delegates.c: Rebuild.
2023 2014-07-23 Gary Benson <gbenson@redhat.com>
2025 * cp-support.c (gdb_demangle): Fix build on systems without
2028 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2030 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2031 for reference entry value target data value.
2033 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2035 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2036 value_available_contents_eq.
2038 2014-07-22 Pedro Alves <palves@redhat.com>
2040 * value.c (allocate_optimized_out_value): Don't mark value as
2043 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2045 * MAINTAINERS (Write After Approval): Update my email address.
2047 2014-07-20 Doug Evans <dje@google.com>
2050 * remote.c (putpkt_binary): Add text to error message.
2052 2014-07-20 Yao Qi <yao@codesourcery.com>
2054 * eval.c: Remove "Chill" from comments.
2055 * gdbtypes.h: Likewise.
2056 * symtab.h: Likewise.
2058 2014-07-20 Yao Qi <yao@codesourcery.com>
2060 * std-operator.def: Update comments to TERNOP_SLICE.
2062 2014-07-20 Yao Qi <yao@codesourcery.com>
2064 * std-operator.def: Remove BINOP_RANGE.
2065 * breakpoint.c (watchpoint_exp_is_const): Update.
2066 * expprint.c (dump_subexp_body_standard): Likewise.
2067 * eval.c (init_array_element): Remove dead code.
2068 (evaluate_subexp_standard): Likewise.
2070 2014-07-20 Yao Qi <yao@codesourcery.com>
2072 * std-operator.def: Remove BINOP_IN.
2073 * breakpoint.c (watchpoint_exp_is_const): Update.
2074 * eval.c (evaluate_subexp_standard): Likewise.
2075 * expprint.c (dump_subexp_body_standard): Likewise.
2077 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2079 * microblaze-tdep.c (microblaze_register_names): Add
2080 the rshr and rslr register names.
2081 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2082 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2083 Use of tdesc_numbered_register. Use of
2084 microblaze_register_g_packet_guesses. Use of
2085 tdesc_use_registers. Use of set_gdbarch_register_type.
2086 (microblaze_register_g_packet_guesses): New.
2087 * microblaze-tdep.h (microblaze_reg_num): Add
2088 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2089 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2090 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2091 * features/microblaze-core.xml: New file.
2092 * features/microblaze-stack-protect.xml: New file.
2093 * features/microblaze-with-stack-protect.c: New file.
2094 * features/microblaze-with-stack-protect.xml: New file.
2095 * features/microblaze.xml: New file.
2096 * features/microblaze.c: New file.
2097 * features/Makefile (microblaze-with-stack-protect): Add
2098 microblaze-with-stack-protect microblaze and microblaze-expedite.
2099 * regformats/microblaze-with-stack-protect.dat: New file.
2100 * regformats/microblaze.dat: New file.
2101 * doc/gdb.texinfo (MicroBlaze Features): Added.
2103 2014-07-18 Tom Tromey <tromey@redhat.com>
2105 * exec.c (exec_ops): Now static.
2106 * exec.h (exec_ops): Don't declare.
2108 2014-07-18 Tom Tromey <tromey@redhat.com>
2110 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2111 to find_target_beneath.
2112 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2113 find_target_beneath.
2114 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2116 2014-07-18 Tom Tromey <tromey@redhat.com>
2119 * utils.c (quit): Use target_supports_terminal_ours.
2120 * target.h (target_supports_terminal_ours): Declare.
2121 * target.c (target_supports_delete_record): Don't check
2122 to_delete_record against NULL.
2123 (target_supports_terminal_ours): New function.
2125 2014-07-18 Tom Tromey <tromey@redhat.com>
2128 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2129 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2130 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2131 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2132 * windows-nat.c (windows_xfer_partial): Always delegate.
2133 * record-btrace.c (record_btrace_xfer_partial): Simplify
2135 (record_btrace_fetch_registers, record_btrace_store_registers)
2136 (record_btrace_prepare_to_store, record_btrace_resume)
2137 (record_btrace_wait, record_btrace_find_new_threads)
2138 (record_btrace_thread_alive): Likewise.
2139 * procfs.c (procfs_xfer_partial): Always delegate.
2140 * corelow.c (core_xfer_partial): Always delegate.
2141 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2143 2014-07-18 Tom Tromey <tromey@redhat.com>
2145 * exec.c (exec_make_note_section): Move earlier.
2147 2014-07-17 Doug Evans <dje@google.com>
2150 * maint.c (count_symtabs_and_blocks): Handle NULL
2151 current_program_space.
2152 (report_command_stats): Check global enabled flag in addition to
2153 recorded enabled flag.
2154 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2156 2014-07-16 Pedro Alves <palves@redhat.com>
2158 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2160 2014-07-16 Tom Tromey <tromey@redhat.com>
2162 * target.h (struct target_ops) <to_delete_record>: Reformat
2165 2014-07-16 Tom Tromey <tromey@redhat.com>
2167 * target-delegates.c: Rebuild.
2169 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2171 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2172 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2173 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2174 (avr_pointer_to_address): Likewise.
2175 (avr_address_class_type_flags): New function.
2176 (avr_address_class_type_flags_to_name): Likewise.
2177 (avr_address_class_name_to_type_flags): Likewise.
2178 (avr_gdbarch_init): Set address_class_type_flags,
2179 address_class_type_flags_to_name and
2180 address_class_name_to_type_flags.
2182 2014-07-15 Pedro Alves <palves@redhat.com>
2184 * linux-nat.c (kill_callback): Save errno and work with saved
2187 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2189 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2191 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2193 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2194 breakpoint support correctly.
2196 2014-07-14 Pedro Alves <palves@redhat.com>
2198 * utils.c (prompt_for_continue): Call target_terminal_ours.
2200 2014-07-14 Pedro Alves <palves@redhat.com>
2202 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2203 catch_errors. Don't re-enable stdin or notify observers where,
2205 (fetch_inferior_event_wrapper): Delete.
2207 2014-07-14 Pedro Alves <palves@redhat.com>
2210 * top.c: Include "inf-loop.h".
2211 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2213 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2215 (gdb_readline_wrapper): Store whether the target is async, and
2218 2014-07-14 Pedro Alves <palves@redhat.com>
2221 * top.c (gdb_readline_wrapper_line): Tweak comment.
2222 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2223 the input handler callback.
2225 2014-07-14 Pedro Alves <palves@redhat.com>
2228 * main.c: Include event-top.h.
2229 (handle_command_errors): New function.
2230 (catch_command_errors, catch_command_errors_const): Use it.
2232 2014-07-14 Pedro Alves <palves@redhat.com>
2234 * exceptions.c (catch_command_errors, catch_command_errors_const):
2236 * exceptions.h (catch_command_errors_ftype)
2237 (catch_command_errors_const_ftype): Moved to main.c.
2238 (catch_command_errors, catch_command_errors_const): Delete
2240 * main.c (catch_command_errors_ftype)
2241 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2242 (catch_command_errors, catch_command_errors_const)): Moved here
2243 from exceptions.c and make static.
2245 2014-07-14 Pedro Alves <palves@redhat.com>
2247 * exceptions.c (print_any_exception): Delete.
2248 (catch_exceptions_with_msg): Use exception_print instead of
2249 print_any_exception.
2250 (catch_errors): Use exception_fprintf instead of
2251 print_any_exception.
2252 (catch_command_errors, catch_command_errors_const): Use
2253 exception_print instead of print_any_exception.
2255 2014-07-14 Pedro Alves <palves@redhat.com>
2257 * infcall.c (run_inferior_call): Set 'sync_execution' while
2258 running the inferior call.
2260 2014-07-14 Pedro Alves <palves@redhat.com>
2262 * value.c (value_contents_equal): Delete function.
2263 * value.h (value_contents_equal): Delete declaration.
2265 2014-07-14 Tom Tromey <tromey@redhat.com>
2268 * gdbtypes.c (is_dynamic_type_internal): New function, from
2270 (is_dynamic_type): Rewrite.
2271 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2272 (resolve_dynamic_struct): Likewise.
2273 (resolve_dynamic_type_internal): New function, from
2274 resolve_dynamic_type.
2275 (resolve_dynamic_type): Rewrite.
2277 2014-07-14 Tom Tromey <tromey@redhat.com>
2279 * target.c (target_require_runnable): Also check record_stratum.
2282 2014-07-11 Yao Qi <yao@codesourcery.com>
2284 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2285 thumb_instruction_restores_sp return true.
2287 2014-07-11 Yao Qi <yao@codesourcery.com>
2289 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2290 (thumb_in_function_epilogue_p): Call
2291 thumb_instruction_restores_sp.
2293 2014-07-11 Yao Qi <yao@codesourcery.com>
2295 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2297 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2299 2014-07-11 Gary Benson <gbenson@redhat.com>
2301 * amd64-linux-nat.c (gdbcore.h): Remove include.
2302 (regset.h): Likewise.
2303 (nat/linux-btrace.h): Likewise.
2304 (btrace.h): Likewise.
2305 (gdb_assert.h): Likewise.
2306 (string.h): Likewise.
2307 (sys/uio.h): Likewise.
2308 (sys/debugreg.h): Likewise.
2309 (sys/syscall.h): Likewise.
2310 (sys/procfs.h): Likewise.
2311 (sys/user.h): Likewise.
2312 (asm/ptrace.h): Likewise.
2313 (i386-nat.h): Likewise.
2314 * i386-linux-nat.c (i386-nat.h): Likewise.
2315 (regset.h): Likewise.
2316 (target.h): Likewise.
2317 (linux-nat.h): Likewise.
2318 (nat/linux-btrace.h): Likewise.
2319 (btrace.h): Likewise.
2320 (gdb_assert.h): Likewise.
2321 (string.h): Likewise.
2322 (sys/uio.h): Likewise.
2323 (sys/user.h): Likewise.
2324 (sys/procfs.h): Likewise.
2325 (sys/reg.h): Likewise.
2326 (sys/debugreg.h): Likewise.
2327 (ORIG_EAX): Remove definition.
2329 2014-07-11 Gary Benson <gbenson@redhat.com>
2331 * i386-linux-nat.h: New file.
2332 * x86-linux-nat.h: Likewise.
2333 * x86-linux-nat.c: Likewise.
2334 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2335 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2336 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2337 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2338 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2339 (PTRACE_SETREGSET): Likewise.
2340 (arch_lwp_info): Now in x86-linux-nat.c.
2341 (have_ptrace_getregset): Now in x86-linux-nat.h.
2342 (x86_linux_dr_get): Now in x86-linux-nat.c.
2343 (x86_linux_dr_set): Likewise.
2344 (x86_linux_dr_get_addr): Likewise.
2345 (x86_linux_dr_get_control): Likewise.
2346 (x86_linux_dr_get_status): Likewise.
2347 (update_debug_registers_callback): Likewise.
2348 (x86_linux_dr_set_control): Likewise.
2349 (x86_linux_dr_set_addr): Likewise.
2350 (x86_linux_prepare_to_resume): Likewise.
2351 (x86_linux_new_thread): Likewise.
2352 (x86_linux_new_fork): Likewise.
2353 (x86_linux_get_thread_area): Likewise.
2354 (super_post_startup_inferior): Likewise.
2355 (x86_linux_child_post_startup_inferior): Likewise.
2356 (AMD64_LINUX_USER64_CS): Likewise.
2357 (AMD64_LINUX_X32_DS): Likewise.
2358 (x86_linux_read_description): Likewise.
2359 (x86_linux_enable_btrace): Likewise.
2360 (x86_linux_disable_btrace): Likewise.
2361 (x86_linux_teardown_btrace): Likewise.
2362 (x86_linux_read_btrace): Likewise.
2363 (x86_linux_create_target): Likewise.
2364 (x86_linux_add_target): Likewise.
2365 * i386-linux-nat.c (x86-linux-nat.h): New include.
2366 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2367 (PTRACE_SETREGSET): Likewise.
2368 (arch_lwp_info): Now in x86-linux-nat.c.
2369 (have_ptrace_getregset): Now in x86-linux-nat.h.
2370 (x86_linux_dr_get): Now in x86-linux-nat.c.
2371 (x86_linux_dr_set): Likewise.
2372 (x86_linux_dr_get_addr): Likewise.
2373 (x86_linux_dr_get_control): Likewise.
2374 (x86_linux_dr_get_status): Likewise.
2375 (update_debug_registers_callback): Likewise.
2376 (x86_linux_dr_set_control): Likewise.
2377 (x86_linux_dr_set_addr): Likewise.
2378 (x86_linux_prepare_to_resume): Likewise.
2379 (x86_linux_new_thread): Likewise.
2380 (x86_linux_new_fork): Likewise.
2381 (x86_linux_get_thread_area): Likewise.
2382 (super_post_startup_inferior): Likewise.
2383 (x86_linux_child_post_startup_inferior): Likewise.
2384 (AMD64_LINUX_USER64_CS): Likewise.
2385 (AMD64_LINUX_X32_DS): Likewise.
2386 (x86_linux_read_description): Likewise.
2387 (x86_linux_enable_btrace): Likewise.
2388 (x86_linux_disable_btrace): Likewise.
2389 (x86_linux_teardown_btrace): Likewise.
2390 (x86_linux_read_btrace): Likewise.
2391 (x86_linux_create_target): Likewise.
2392 (x86_linux_add_target): Likewise.
2394 2014-07-11 Gary Benson <gbenson@redhat.com>
2396 * amd64-linux-nat.c: Comment and whitespace changes.
2397 * i386-linux-nat.c: Comment and whitespace changes.
2399 2014-07-11 Gary Benson <gbenson@redhat.com>
2401 * amd64-linux-nat.c (x86_linux_create_target): New function.
2402 (x86_linux_add_target): Likewise.
2403 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2404 * i386-linux-nat.c (x86_linux_create_target): New function.
2405 (x86_linux_add_target): Likewise.
2406 (_initialize_i386_linux_nat): Delegate to the above new functions.
2408 2014-07-11 Gary Benson <gbenson@redhat.com>
2410 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2411 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2412 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2413 (ps_get_thread_area): Delegate to the above.
2415 2014-07-11 Gary Benson <gbenson@redhat.com>
2417 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2418 x86_linux_read_description. All uses updated. amd64-specific
2419 code conditionalized. Conditionalized i386-specific code added.
2420 Redundant cast removed.
2421 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2422 x86_linux_read_description. All uses updated. i386-specific
2423 code conditionalized. Conditionalized amd64-specific code added.
2424 One sizeof replaced with the actual type it is describing.
2426 2014-07-11 Gary Benson <gbenson@redhat.com>
2428 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2429 x86_linux_dr_get. All uses updated.
2430 (amd64_linux_dr_set): Renamed to
2431 x86_linux_dr_set. All uses updated.
2432 (amd64_linux_dr_get_addr): Renamed to
2433 x86_linux_dr_get_addr. All uses updated.
2434 (amd64_linux_dr_get_control): Renamed to
2435 x86_linux_dr_get_control. All uses updated.
2436 (amd64_linux_dr_get_status): Renamed to
2437 x86_linux_dr_get_status. All uses updated.
2438 (amd64_linux_dr_set_control): Renamed to
2439 x86_linux_dr_set_control. All uses updated.
2440 (amd64_linux_dr_set_addr): Renamed to
2441 x86_linux_dr_set_addr. All uses updated.
2442 (amd64_linux_prepare_to_resume): Renamed to
2443 x86_linux_prepare_to_resume. All uses updated.
2444 (amd64_linux_new_thread): Renamed to
2445 x86_linux_new_thread. All uses updated.
2446 (amd64_linux_new_fork): Renamed to
2447 x86_linux_new_fork. All uses updated.
2448 (amd64_linux_child_post_startup_inferior): Renamed to
2449 x86_linux_child_post_startup_inferior. All uses updated.
2450 (amd64_linux_enable_btrace): Renamed to
2451 x86_linux_enable_btrace. All uses updated.
2452 (amd64_linux_disable_btrace): Renamed to
2453 x86_linux_disable_btrace. All uses updated.
2454 (amd64_linux_teardown_btrace): Renamed to
2455 x86_linux_teardown_btrace. All uses updated.
2456 (amd64_linux_read_btrace): Renamed to
2457 x86_linux_read_btrace. All uses updated.
2458 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2459 x86_linux_dr_get. All uses updated.
2460 (i386_linux_dr_set): Renamed to
2461 x86_linux_dr_set. All uses updated.
2462 (i386_linux_dr_get_addr): Renamed to
2463 x86_linux_dr_get_addr. All uses updated.
2464 (i386_linux_dr_get_control): Renamed to
2465 x86_linux_dr_get_control. All uses updated.
2466 (i386_linux_dr_get_status): Renamed to
2467 x86_linux_dr_get_status. All uses updated.
2468 (i386_linux_dr_set_control): Renamed to
2469 x86_linux_dr_set_control. All uses updated.
2470 (i386_linux_dr_set_addr): Renamed to
2471 x86_linux_dr_set_addr. All uses updated.
2472 (i386_linux_prepare_to_resume): Renamed to
2473 x86_linux_prepare_to_resume. All uses updated.
2474 (i386_linux_new_thread): Renamed to
2475 x86_linux_new_thread. All uses updated.
2476 (i386_linux_new_fork): Renamed to
2477 x86_linux_new_fork. All uses updated.
2478 (i386_linux_child_post_startup_inferior): Renamed to
2479 x86_linux_child_post_startup_inferior. All uses updated.
2480 (i386_linux_enable_btrace): Renamed to
2481 x86_linux_enable_btrace. All uses updated.
2482 (i386_linux_disable_btrace): Renamed to
2483 x86_linux_disable_btrace. All uses updated.
2484 (i386_linux_teardown_btrace): Renamed to
2485 x86_linux_teardown_btrace. All uses updated.
2486 (i386_linux_read_btrace): Renamed to
2487 x86_linux_read_btrace. All uses updated.
2489 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2491 * remote.c (extended_remote_post_attach): New function.
2492 (init_extended_remote_ops): Install it as to_post_attach method.
2494 2014-07-09 Pedro Alves <palves@redhat.com>
2496 * infcmd.c (attach_command_post_wait): Don't call
2497 target_terminal_inferior here.
2498 (attach_command): Call it here instead.
2500 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2502 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2504 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2505 from varobj.c, with additional checks.
2506 (c_varobj_ops): Fill in is_path_expr_parent field.
2507 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2508 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2510 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2512 (varobj_default_is_path_expr_parent): New function.
2513 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2514 (varobj_default_is_path_expr_parent): Declare new function.
2516 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2518 * infcmd.c (finish_backward): Turn internal error into normal error.
2520 2014-07-07 Pedro Alves <palves@redhat.com>
2523 * remote.c (async_handle_remote_sigint)
2524 (async_handle_remote_sigint_twice): Call
2525 gdb_call_async_signal_handler instead of
2526 mark_async_signal_handler.
2528 2014-07-07 Tom Tromey <tromey@redhat.com>
2530 * target-delegates.c: Rebuild.
2531 * target.c (target_info_record): Remove.
2532 * record.c (info_record_command): Unconditionally call
2534 * target.h (struct target_ops) <to_info_record>: Use
2535 TARGET_DEFAULT_IGNORE.
2536 (target_info_record): Remove.
2538 2014-07-07 Tom Tromey <tromey@redhat.com>
2540 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2541 TARGET_DEFAULT_NORETURN.
2542 * target.c (generic_tls_error): New function.
2543 (target_translate_tls_address): Don't search target stack.
2544 * target-delegates.c: Rebuild.
2545 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2547 * linux-thread-db.c (thread_db_get_thread_local_address):
2548 Unconditionally call beneath target.
2550 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2552 * cli/cli-logging.c (pop_output_files): Assign targerr to
2555 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2557 * MAINTAINERS (Write After Approval): Update my email address.
2559 2014-07-02 Gary Benson <gbenson@redhat.com>
2561 * proc-service.c (ps_xfer_memory): Update comment.
2562 (ps_pstop): Remove unused function.
2563 (ps_pcontinue): Likewise.
2564 (ps_lstop): Likewise.
2565 (ps_lcontinue): Likewise.
2566 (ps_lgetxregsize): Likewise.
2567 (ps_lgetxregs): Likewise.
2568 (ps_lsetxregs): Likewise.
2569 (ps_plog): Likewise.
2570 (ps_ptread): Likewise.
2571 (ps_ptwrite): Likewise.
2573 2014-07-01 Mark Wielaard <mjw@redhat.com>
2575 * dwarf2read.c (add_array_cv_type): New function.
2576 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2577 (read_tag_volatile_type): Likewise.
2579 2014-07-01 Tom Tromey <tromey@redhat.com>
2581 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2582 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2583 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2584 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2585 * command.h (cmd_cfunc_ftype): Move earlier.
2586 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2587 (add_com, add_info): Use cmd_cfunc_ftype.
2589 2014-06-30 Tom Tromey <tromey@redhat.com>
2591 * symtab.c (operator_chars): Make parameters and return type
2593 (file_matches): Make "files" const.
2594 (struct search_symbols_data) <files>: Now const.
2595 (search_symbols): Make "regexp" and "files" parameters const.
2597 (symtab_symbol_info): Remove cast.
2598 (rbreak_command): Update.
2599 * symtab.h (search_symbols): Update.
2601 2014-06-27 Yao Qi <yao@codesourcery.com>
2603 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2604 Change parameter type to 'struct thread_info *'. Caller
2606 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2608 * dummy-frame.c (struct dummy_frame_id): New.
2609 (dummy_frame_id_eq): New function.
2610 (struct dummy_frame) <id>: Change its type to 'struct
2612 (dummy_frame_push): Add parameter ptid and save it in
2614 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2616 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2618 (lookup_dummy_frame): Change parameter type to 'struct
2619 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2620 instead of frame_id_eq.
2621 (dummy_frame_pop): Add parameter ptid. Callers updated.
2622 Update comments. Compose dummy_frame_id and pass it to
2624 (dummy_frame_discard): Add parameter ptid.
2625 (dummy_frame_sniffer): Compose dummy_frame_id and call
2626 dummy_frame_id_eq instead of frame_id_eq.
2627 (fprint_dummy_frames): Print ptid.
2628 * dummy-frame.h: Remove comments.
2629 (dummy_frame_push): Add ptid in declaration.
2630 (dummy_frame_pop, dummy_frame_discard): Likewise.
2632 2014-06-26 Tom Tromey <tromey@redhat.com>
2634 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2635 * command.h (error_no_arg): Update.
2637 2014-06-26 Tom Tromey <tromey@redhat.com>
2639 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2640 (do_show_command): Make "arg" const.
2641 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2643 2014-06-26 Tom Tromey <tromey@redhat.com>
2645 * record-full.c (record_full_get_bookmark): Make "args" const.
2646 (record_full_goto_bookmark): Make "raw_bookmark" const.
2647 * record.c (record_goto): New function.
2648 (cmd_record_goto): Use it. Now static.
2649 * record.h (record_goto): Declare.
2650 (cmd_record_goto): Remove declaration.
2651 * target-delegates.c: Rebuild.
2652 * target.h (struct target_ops) <to_get_bookmark,
2653 to_goto_bookmark>: Make parameter const.
2655 2014-06-26 Tom Tromey <tromey@redhat.com>
2657 * defs.h (generic_load): Update.
2658 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2659 * monitor.c (monitor_load): Make "args" const.
2660 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2661 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2663 (mips_load): Make "file" const.
2664 * remote-sim.c (gdbsim_load): Make "args" const.
2665 * remote.c (remote_load): Make "name" const.
2666 * symfile.c (generic_load): Make "args" const.
2667 * target-delegates.c: Rebuild.
2668 * target.c (target_load): Make "arg" const.
2669 (debug_to_load): Make "args" const.
2670 * target.h (struct target_ops) <to_load>: Make parameter const.
2671 (target_load): Update.
2673 2014-06-26 Tom Tromey <tromey@redhat.com>
2676 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2677 (dwarf2_physname, read_partial_die)
2678 (guess_partial_die_structure_name, fixup_partial_die)
2679 (guess_full_die_structure_name, anonymous_struct_prefix)
2680 (dwarf2_name): Use per-BFD obstack.
2682 2014-06-26 Yao Qi <yao@codesourcery.com>
2684 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2685 dummyframe and this_id into inner block below.
2687 2014-06-26 Yao Qi <yao@codesourcery.com>
2689 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2690 with "signal_pass[0]" in the initialization of signal_pass.
2692 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2694 * record-btrace.c (record_btrace_generating_corefile)
2695 (record_btrace_prepare_to_generate_core)
2696 (record_btrace_done_generating_core): New.
2697 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2698 (record_btrace_store_registers, record_btrace_prepare_to_store):
2699 Forward request when generating a core file.
2700 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2701 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2702 to_done_generating_core.
2704 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2706 * target.h (target_ops) <to_prepare_to_generate_core>
2707 <to_done_generating_core>: New.
2708 (target_prepare_to_generate_core, target_done_generating_core): New.
2709 * target.c (target_prepare_to_generate_core)
2710 (target_done_generating_core): New.
2711 * target-delegates.c: Regenerate.
2712 * gcore.c: (write_gcore_file): Rename to ...
2713 (write_gcore_file_1): ...this.
2714 (write_gcore_file): Call target_prepare_to_generate_core
2715 and target_done_generating_core.
2717 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2719 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2720 * gcore.c (write_gcore_file): Free memory returned from
2721 make_corefile_notes.
2722 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2723 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2725 2014-06-24 Yao Qi <yao@codesourcery.com>
2727 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2728 (arm_linux_init_abi): Set skip_trampoline_code with
2729 gdbarch_skip_trampoline_code instead of
2730 find_solib_trampoline_target.
2732 2014-06-24 Yao Qi <yao@codesourcery.com>
2734 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2735 arm_skip_bx_reg returns non-zero.
2737 2014-06-24 Yao Qi <yao@codesourcery.com>
2739 * arm-tdep.c (arm_skip_bx_reg): New function.
2740 (arm_skip_stub): Call arm_skip_bx_reg.
2742 2014-06-23 Don Breazeal <donb@codesourcery.com>
2744 * MAINTAINERS: Add myself as write-after-approval maintainer.
2746 2014-06-23 Pedro Alves <palves@redhat.com>
2748 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2749 DR_CONTROL before setting DR0..DR3.
2750 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2751 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2752 bits of DR_CONTROL related to the debug register slot being
2753 disabled. If all slots are vacant, clear local slowdown as well,
2754 and assert DR_CONTROL is 0.
2756 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2758 * python/lib/gdb/command/xmethods.py
2759 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2760 current progspace only if the string "progspace" matches LOCUS_RE.
2762 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2764 Fix --with-system-readline with readline-6.3 patch 5.
2765 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2766 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2769 2014-06-20 Tom Tromey <tromey@redhat.com>
2771 * dwarf2read.c (dw2_get_real_path): Use correct type in
2773 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2775 2014-06-20 Gary Benson <gbenson@redhat.com>
2777 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2778 * common/glibc_thread_db.h: Likewise.
2779 * common/i386-cpuid.h: Likewise.
2780 * common/i386-gcc-cpuid.h: Likewise.
2781 * common/linux-btrace.h: Likewise.
2782 * common/linux-osdata.h: Likewise.
2783 * common/linux-procfs.h: Likewise.
2784 * common/linux-ptrace.h: Likewise.
2785 * common/mips-linux-watch.h: Likewise.
2786 * common/linux-btrace.c: Moved to nat.
2787 * common/linux-osdata.c: Likewise.
2788 * common/linux-procfs.c: Likewise.
2789 * common/linux-ptrace.c: Likewise.
2790 * common/mips-linux-watch.c: Likewise.
2791 * nat/gdb_thread_db.h: Moved from common.
2792 * nat/glibc_thread_db.h: Likewise.
2793 * nat/i386-cpuid.h: Likewise.
2794 * nat/i386-gcc-cpuid.h: Likewise.
2795 * nat/linux-btrace.c: Likewise.
2796 * nat/linux-btrace.h: Likewise.
2797 * nat/linux-osdata.c: Likewise.
2798 * nat/linux-osdata.h: Likewise.
2799 * nat/linux-procfs.c: Likewise.
2800 * nat/linux-procfs.h: Likewise.
2801 * nat/linux-ptrace.c: Likewise.
2802 * nat/linux-ptrace.h: Likewise.
2803 * nat/mips-linux-watch.c: Likewise.
2804 * nat/mips-linux-watch.h: Likewise.
2805 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2806 (object file files): Reordered.
2807 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2808 of glibc_thread_db.h.
2810 2014-06-20 Gary Benson <gbenson@redhat.com>
2812 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2813 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2814 (i386_dr_low): Likewise.
2815 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2816 (i386_dr_low_set_addr): Likewise.
2817 (i386_dr_low_get_addr): Likewise.
2818 (i386_dr_low_can_set_control): Likewise.
2819 (i386_dr_low_set_control): Likewise.
2820 (i386_dr_low_get_control): Likewise.
2821 (i386_dr_low_get_status): Likewise.
2822 (i386_get_debug_register_length): Likewise.
2823 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2824 (i386_dr_low): Likewise.
2825 * nat/i386-dregs.c (i386-low.h): Remove include.
2826 (i386-nat.h): Likewise.
2827 (nat/i386-dregs.h): New include.
2828 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2829 (i386_dr_low_set_addr): Likewise.
2830 (i386_dr_low_get_addr): Likewise.
2831 (i386_dr_low_can_set_control): Likewise.
2832 (i386_dr_low_set_control): Likewise.
2833 (i386_dr_low_get_control): Likewise.
2834 (i386_dr_low_get_status): Likewise.
2835 (i386_get_debug_register_length): Likewise.
2836 (debug_hw_points): Likewise.
2838 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2840 * Makefile.in (SFILES): Add d-exp.y.
2841 (YYFILES): Add d-exp.c.
2842 (YYOBJ): Add d-exp.o.
2843 (local-maintainer-clean): Delete d-exp.c.
2844 * d-exp.y: New file.
2845 * d-lang.h (d_parse): New declaration.
2846 (d_error): New declaration.
2847 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2848 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2849 PREC_ORDER operators.
2850 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2852 2014-06-19 Yao Qi <yao@codesourcery.com>
2854 * gdbthread.h (any_running): Remove the declaration.
2855 * thread.c (any_running): Remove.
2857 2014-06-19 Yao Qi <yao@codesourcery.com>
2859 * gdbthread.h (struct thread_info) <state>: Change its type to
2860 'enum thread_state'. Update comments.
2862 2014-06-19 Pedro Alves <palves@redhat.com>
2864 * gdbthread.h (ALL_THREADS): Delete.
2865 (ALL_NON_EXITED_THREADS): New macro.
2866 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2867 instead of ALL_THREADS.
2868 * infrun.c (find_thread_needs_step_over)
2869 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2870 instead of ALL_THREADS.
2871 * record-btrace.c (record_btrace_open)
2872 (record_btrace_stop_recording, record_btrace_close)
2873 (record_btrace_is_replaying, record_btrace_resume)
2874 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2875 * remote.c (append_pending_thread_resumptions): Likewise.
2876 * thread.c (thread_apply_all_command): Likewise.
2878 2014-06-19 Gary Benson <gbenson@redhat.com>
2880 * i386-nat.c (i386_stopped_by_watchpoint):
2881 Use i386_dr_stopped_by_watchpoint.
2882 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2883 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2885 2014-06-19 Gary Benson <gbenson@redhat.com>
2887 * nat/i386-dregs.c: New file.
2888 * Makefile.in (i386-dregs.o): New rule.
2889 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2890 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2891 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2892 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2893 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2894 * config/i386/go32.mh (NATDEPFILES): Likewise.
2895 * config/i386/linux.mh (NATDEPFILES): Likewise.
2896 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2897 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2898 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2899 * i386-nat.h (debug_hw_points): New declaration.
2900 * i386-nat.c (breakpoint.h): Remove include.
2901 (command.h): Likewise.
2902 (target.h): Likewise.
2903 (gdb_assert.h): Likewise.
2904 (debug_hw_points): Made nonstatic.
2905 (debug_printf): Now in i386-dregs.c.
2906 (TARGET_HAS_DR_LEN_8): Likewise.
2907 (DR_CONTROL_SHIFT): Likewise.
2908 (DR_CONTROL_SIZE): Likewise.
2909 (DR_RW_EXECUTE): Likewise.
2910 (DR_RW_WRITE): Likewise.
2911 (DR_RW_READ): Likewise.
2912 (DR_RW_IORW): Likewise.
2913 (DR_LEN_1): Likewise.
2914 (DR_LEN_2): Likewise.
2915 (DR_LEN_4): Likewise.
2916 (DR_LEN_8): Likewise.
2917 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2918 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2919 (DR_ENABLE_SIZE): Likewise.
2920 (DR_LOCAL_SLOWDOWN): Likewise.
2921 (DR_GLOBAL_SLOWDOWN): Likewise.
2922 (DR_CONTROL_RESERVED): Likewise.
2923 (I386_DR_CONTROL_MASK): Likewise.
2924 (I386_DR_VACANT): Likewise.
2925 (I386_DR_LOCAL_ENABLE): Likewise.
2926 (I386_DR_GLOBAL_ENABLE): Likewise.
2927 (I386_DR_DISABLE): Likewise.
2928 (I386_DR_SET_RW_LEN): Likewise.
2929 (I386_DR_GET_RW_LEN): Likewise.
2930 (I386_DR_WATCH_HIT): Likewise.
2931 (i386_wp_op_t): Likewise.
2932 (i386_show_dr): Likewise.
2933 (i386_length_and_rw_bits): Likewise.
2934 (i386_insert_aligned_watchpoint): Likewise.
2935 (i386_remove_aligned_watchpoint): Likewise.
2936 (i386_handle_nonaligned_watchpoint): Likewise.
2937 (i386_update_inferior_debug_regs): Likewise.
2938 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2939 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2940 (i386_region_ok_for_watchpoint):
2941 Use i386_dr_region_ok_for_watchpoint.
2942 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2944 2014-06-19 Gary Benson <gbenson@redhat.com>
2946 * i386-nat.c (i386_insert_hw_breakpoint): Use
2947 i386_insert_watchpoint.
2948 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2950 2014-06-19 Gary Benson <gbenson@redhat.com>
2952 * i386-nat.c (i386_dr_show): Renamed to
2953 i386_show_dr and made static. All uses updated.
2954 (i386_dr_length_and_rw_bits): Renamed to
2955 i386_length_and_rw_bits and made static.
2957 (i386_dr_insert_aligned_watchpoint): Renamed to
2958 i386_insert_aligned_watchpoint and made static.
2960 (i386_dr_remove_aligned_watchpoint): Renamed to
2961 i386_remove_aligned_watchpoint and made static.
2963 (i386_dr_update_inferior_debug_regs): Renamed to
2964 i386_update_inferior_debug_regs and made static.
2966 * nat/i386-dregs.h (i386_dr_show): Removed.
2967 (i386_dr_length_and_rw_bits): Likewise.
2968 (i386_dr_insert_aligned_watchpoint): Likewise.
2969 (i386_dr_remove_aligned_watchpoint): Likewise.
2970 (i386_dr_update_inferior_debug_regs): Likewise.
2972 2014-06-19 Gary Benson <gbenson@redhat.com>
2974 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2975 * configure: Regenerate.
2976 * config.in: Likewise.
2977 * main.c (signal.h): New include.
2978 (setup_alternate_signal_stack): New function.
2979 (captured_main): Call the above.
2980 * cp-support.c (signal.h): New include.
2981 (catch_demangler_crashes): New flag.
2982 (SIGJMP_BUF): New define.
2983 (SIGSETJMP): Likewise.
2984 (SIGLONGJMP): Likewise.
2985 (gdb_demangle_jmp_buf): New static global.
2986 (gdb_demangle_attempt_core_dump): Likewise.
2987 (gdb_demangle_signal_handler): New function.
2988 (gdb_demangle): If catch_demangler_crashes is set, install the
2989 above signal handler before calling bfd_demangle, and restore
2990 the original signal handler afterwards. Display the offending
2991 symbol and call demangler_warning the first time a segmentation
2993 (_initialize_cp_support): New maint set/show command.
2995 2014-06-19 Gary Benson <gbenson@redhat.com>
2997 * utils.h (resource_limit_kind): New enum.
2998 (can_dump_core): New declaration.
2999 (warn_cant_dump_core): Likewise.
3000 (dump_core): Likewise.
3001 * utils.c (dump_core): Made nonstatic. Added new
3002 parameter "limit_kind".
3003 (can_dump_core): Made nonstatic. Moved printing code to...
3004 (warn_cant_dump_core): New function.
3005 (can_dump_core_warn): Likewise.
3006 (internal_vproblem): Replace calls to can_dump_core with
3007 calls to can_dump_core_warn. Supply new argument to each.
3009 2014-06-19 Gary Benson <gbenson@redhat.com>
3011 * utils.h (demangler_vwarning): New declaration.
3012 (demangler_warning): Likewise.
3013 * utils.c (struct internal_problem)
3014 <user_settable_should_quit>: New field.
3015 <user_settable_should_dump_core>: Likewise
3016 (internal_error_problem): Add values for above new fields.
3017 (internal_warning_problem): Likewise.
3018 (demangler_warning_problem): New static global.
3019 (demangler_vwarning): New function.
3020 (demangler_warning): Likewise.
3021 (add_internal_problem_command): Selectively add commands.
3022 (_initialize_utils): New internal problem command.
3023 * maint.c (maintenance_demangler_warning): New function.
3024 (_initialize_maint_cmds): New command.
3026 2014-06-18 Tom Tromey <tromey@redhat.com>
3028 * f-valprint.c (info_common_command_for_block): Update.
3029 * symtab.h (struct general_symbol_info) <common_block>: Now
3032 2014-06-18 Tom Tromey <tromey@redhat.com>
3034 * symtab.h (struct symtab) <blockvector>: Now const.
3035 * ada-lang.c (ada_add_global_exceptions): Update.
3036 * buildsym.c (augment_type_symtab): Update.
3037 * dwarf2read.c (dw2_lookup_symbol): Update.
3038 * jit.c (finalize_symtab): Update.
3039 * jv-lang.c (add_class_symtab_symbol): Update.
3040 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3042 * objfiles.c (objfile_relocate1): Update.
3043 * psymtab.c (lookup_symbol_aux_psymtabs)
3044 (maintenance_check_psymtabs): Update.
3045 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3047 * spu-tdep.c (spu_catch_start): Update.
3048 * symmisc.c (dump_symtab_1): Update.
3049 * symtab.c (lookup_global_symbol_from_objfile)
3050 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3051 (basic_lookup_transparent_type_quick)
3052 (basic_lookup_transparent_type, find_pc_sect_symtab)
3053 (find_pc_sect_line, search_symbols): Update.
3054 * block.c (find_block_in_blockvector): Make "bl" const.
3055 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3057 (blockvector_contains_pc): Make "bv" const.
3058 (block_for_pc_sect): Update.
3059 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3060 (blockvector_contains_pc): Update.
3061 * breakpoint.c (resolve_sal_pc): Update.
3062 * inline-frame.c (block_starting_point_at): Update.
3064 2014-06-18 Tom Tromey <tromey@redhat.com>
3066 * completer.c (complete_line): Make "line_buffer" const.
3067 * completer.h (complete_line): Update.
3069 2014-06-18 Tom Tromey <tromey@redhat.com>
3071 * symtab.c (add_macro_name): Remove unneeded cast.
3073 2014-06-18 Tom Tromey <tromey@redhat.com>
3075 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3076 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3078 2014-06-18 Tom Tromey <tromey@redhat.com>
3080 * probe.c (info_probes_for_ops): Make "arg" const.
3081 * probe.h (info_probes_for_ops): Update.
3083 2014-06-18 Tom Tromey <tromey@redhat.com>
3085 * varobj.c (varobj_create): Update.
3086 * valops.c (value_of_this): Update.
3087 * tracepoint.c (add_local_symbols, scope_info): Update.
3088 * symtab.h (struct general_symbol_info) <block>: Now const.
3089 * symtab.c (skip_prologue_sal)
3090 (default_make_symbol_completion_list_break_on)
3091 (skip_prologue_using_sal): Update.
3092 * stack.h (iterate_over_block_locals)
3093 (iterate_over_block_local_vars): Update.
3094 * stack.c (print_frame_args): Update.
3095 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3097 (get_selected_block): Make return type const.
3098 * python/py-frame.c (frapy_block): Update.
3099 * python/py-block.c (gdbpy_block_for_pc): Update.
3100 * p-exp.y (%union) <bval>: Now const.
3101 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3102 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3103 * m2-exp.y (%union) <bval>: Now const.
3104 * linespec.c (get_current_search_block): Make return type const.
3105 (create_sals_line_offset, find_label_symbols): Update.
3106 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3108 (block_starting_point_at): Make "block" const.
3109 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3110 (check_exception_resume): Update.
3111 * guile/scm-frame.c (gdbscm_frame_block): Update.
3112 * guile/scm-block.c (gdbscm_lookup_block): Update.
3113 * frame.h (get_frame_block): Update.
3114 (get_selected_block): Make return type const.
3115 * frame.c (frame_id_inner): Update.
3116 * f-valprint.c (info_common_command_for_block)
3117 (info_common_command): Update.
3118 * dwarf2loc.c (dwarf2_find_location_expression)
3119 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3120 (locexpr_describe_location_piece): Update.
3121 * c-exp.y (%union) <bval>: Now const.
3122 * breakpoint.c (resolve_sal_pc): Update.
3123 * blockframe.c (get_frame_block):Make return type const.
3124 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3125 (block_innermost_frame): Update.
3126 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3127 (block_for_pc, block_for_pc_sect): Update.
3128 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3130 (block_for_pc_sect, block_for_pc): Make return type const.
3131 * ax-gdb.c (gen_expr): Update.
3132 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3133 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3134 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3135 (ada_read_var_value): Update.
3136 * ada-exp.y (struct name_info) <block>: Now const.
3138 (block_lookup): Constify.
3140 2014-06-18 Gary Benson <gbenson@redhat.com>
3142 * nat/i386-dregs.h: New file.
3143 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3144 * i386-nat.h (i386-dregs.h): New include.
3145 (DR_FIRSTADDR): Now in i386-dregs.h.
3146 (DR_LASTADDR): Likewise.
3147 (DR_NADDR): Likewise.
3148 (DR_STATUS): Likewise.
3149 (DR_CONTROL): Likewise.
3150 (i386_debug_reg_state): Likewise.
3151 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3153 2014-06-18 Don Breazeal <donb@codesourcery.com>
3155 * breakpoint.c (set_longjmp_breakpoint): Call
3156 momentary_breakpoint_from_master with additional argument.
3157 (set_longjmp_breakpoint_for_call_dummy): Call
3158 momentary_breakpoint_from_master with additional argument.
3159 (set_std_terminate_breakpoint): Call
3160 momentary_breakpoint_from_master with additional argument.
3161 (momentary_breakpoint_from_master): Add argument to function
3162 definition and use it to initialize structure member flag.
3163 (clone_momentary_breakpoint): Call
3164 momentary_breakpoint_from_master with additional argument.
3165 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3166 member flags set in momentary_breakpoint_from_master.
3168 2014-06-18 Gary Benson <gbenson@redhat.com>
3170 * i386-nat.c (i386_show_dr): Renamed to
3171 i386_dr_show and made nonstatic. All uses updated.
3172 (i386_length_and_rw_bits): Renamed to
3173 i386_dr_length_and_rw_bits and made nonstatic.
3175 (i386_insert_aligned_watchpoint): Renamed to
3176 i386_dr_insert_aligned_watchpoint and made nonstatic.
3178 (i386_remove_aligned_watchpoint): Renamed to
3179 i386_dr_remove_aligned_watchpoint and made nonstatic.
3181 (i386_update_inferior_debug_regs): Renamed to
3182 i386_dr_update_inferior_debug_regs and made nonstatic.
3185 2014-06-18 Gary Benson <gbenson@redhat.com>
3187 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3188 (i386_dr_low_can_set_control): Likewise.
3189 (i386_dr_low_set_addr): Likewise.
3190 (i386_dr_low_set_control): Likewise.
3191 (i386_dr_low_get_addr): Likewise.
3192 (i386_dr_low_get_status): Likewise.
3193 (i386_dr_low_get_control): Likewise.
3194 (i386_insert_aligned_watchpoint): Use new macros.
3195 (i386_update_inferior_debug_regs): Likewise.
3196 (i386_stopped_data_address): Likewise.
3198 2014-06-18 Gary Benson <gbenson@redhat.com>
3200 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3201 New parameter. All uses updated.
3203 2014-06-18 Gary Benson <gbenson@redhat.com>
3205 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3208 2014-06-18 Gary Benson <gbenson@redhat.com>
3210 * i386-nat.c (debug_printf): New macro.
3211 (i386_get_debug_register_length): Likewise.
3212 (TARGET_HAS_DR_LEN_8): Use above macro.
3213 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3214 and printf_unfiltered. Use phex to format values.
3216 2014-06-18 Gary Benson <gbenson@redhat.com>
3218 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3221 2014-06-18 Gary Benson <gbenson@redhat.com>
3223 * i386-nat.c: Comment changes.
3225 2014-06-18 Gary Benson <gbenson@redhat.com>
3227 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3229 2014-06-18 Gary Benson <gbenson@redhat.com>
3231 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3232 (i386_insert_aligned_watchpoint): Likewise.
3233 (i386_remove_aligned_watchpoint): Likewise.
3234 (i386_handle_nonaligned_watchpoint): Likewise.
3236 2014-06-18 Gary Benson <gbenson@redhat.com>
3238 * i386-nat.c: Whitespace changes.
3240 2014-06-17 Samuel Bronson <naesten@gmail.com>
3242 * MAINTAINERS: Update Roland McGrath's email address.
3243 Thanks to Sergio Durigan Junior for pointing out that he left
3244 Red Hat a while ago, and giving me a current address.
3246 2014-06-17 Tom Tromey <tromey@redhat.com>
3248 * utils.h (savestring): Remove declaration.
3250 2014-06-17 Tom Tromey <tromey@redhat.com>
3252 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3254 2014-06-16 Keith Seitz <keiths@redhat.com>
3257 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3258 to update the varobj if inferior_ptid is null_ptid.
3260 2014-06-16 Tom Tromey <tromey@redhat.com>
3262 * target.h (struct target_ops) <to_info_proc>: Make parameter
3264 (target_info_proc): Update.
3265 * target.c (target_info_proc): Make "args" const.
3266 * procfs.c (procfs_info_proc): Update.
3267 * linux-tdep.c (linux_info_proc): Update.
3268 (linux_core_info_proc_mappings): Make "args" const.
3269 (linux_core_info_proc): Update.
3270 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3271 * gdbarch.c: Rebuild.
3272 * gdbarch.h: Rebuild.
3273 * corelow.c (core_info_proc): Update.
3275 2014-06-16 Tom Tromey <tromey@redhat.com>
3277 * target.h (struct target_ops) <to_disconnect>: Make parameter
3279 (target_disconnect): Update.
3280 * target.c (target_disconnect): Make "args" const.
3281 * target-delegates.c: Rebuild.
3282 * remote.c (remote_disconnect): Update.
3283 * record.h (record_disconnect): Update.
3284 * record.c (record_disconnect): Update.
3285 * inf-child.c (inf_child_disconnect): Update.
3287 2014-06-16 Tom Tromey <tromey@redhat.com>
3289 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3290 * target.c (debug_to_rcmd, default_rcmd): Update.
3291 * target-delegates.c: Rebuild.
3292 * remote.c (remote_rcmd): Update.
3293 * monitor.c (monitor_rcmd): Update.
3295 2014-06-16 Pedro Alves <palves@redhat.com>
3297 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3298 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3299 have OBJF_SHARED set.
3300 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3301 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3302 instead of OBJF_USERLOADED.
3303 * objfiles.h (OBJF_SHARED): Update comment.
3304 (userloaded_objfile_contains_address_p): Rename to ...
3305 (shared_objfile_contains_address_p): ... this, and update
3307 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3309 (remove_symbol_file_command): Skip objfiles that don't have
3312 2014-06-16 Tom Tromey <tromey@redhat.com>
3314 * minsyms.h (prim_record_minimal_symbol)
3315 (prim_record_minimal_symbol_and_info): Update comments.
3317 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3319 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3320 or --without-guile, according to how GDB was built.
3322 2014-06-13 Tom Tromey <tromey@redhat.com>
3324 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3326 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3328 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3330 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3331 help_list.Pass all_commands, not -1, to help_list.
3332 * cli/cli-dump.c (dump_command, append_command)
3333 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3334 (binary_dump_command, binary_append_command): Pass all_commands,
3335 not -1, to help_list.
3336 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3338 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3340 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3342 * top.c (set_history): Pass all_commands, not -1, to help_list.
3343 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3344 all_commands, not -1, to help_list.
3345 * symfile.c (overlay_command): Pass all_commands, not -1, to
3347 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3349 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3351 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3353 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3354 not -1, to help_list.
3355 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3356 not -1, to help_list.
3357 * maint.c (maintenance_command, maintenance_info_command)
3358 (maintenance_print_command, maintenance_set_cmd): Pass
3359 all_commands, not -1, to help_list.
3360 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3362 * language.c (set_check): Pass all_commands, not -1, to help_list.
3363 * infcmd.c (unset_command): Pass all_commands, not -1, to
3365 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3367 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3369 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3371 * breakpoint.c (save_command): Pass all_commands, not -1, to
3373 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3374 all_commands, not -1, to help_list.
3376 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3378 * regcache.c (struct register_to_invalidate): New structure.
3379 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3381 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3383 2014-06-12 Yao Qi <yao@codesourcery.com>
3385 * varobj.c (varobj_get_num_children): Call
3386 varobj_is_dynamic_p.
3387 (varobj_list_children): Likewise.
3388 (varobj_update): Likewise. Update comments.
3390 2014-06-12 Yao Qi <yao@codesourcery.com>
3392 * varobj.c (varobj_pretty_printed_p): Rename to ...
3393 (varobj_is_dynamic_p): ... this. New function.
3394 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3395 (varobj_is_dynamic_p): Declare.
3396 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3397 (mi_print_value_p, varobj_update_one): Likewise.
3399 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3400 Yao Qi <yao@codesourcery.com>
3402 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3403 (varobj_get_iterator): Wrap up code for pretty-printer by
3404 "#if HAVE_PYTHON" and "#endif".
3405 (update_dynamic_varobj_children): Likewise.
3407 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3408 Yao Qi <yao@codesourcery.com>
3410 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3411 gdb_python_initialized is false. Move some code from varobj.c.
3412 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3413 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3414 (struct varobj_item): Moved to varobj-iter.h".
3415 (varobj_clear_saved_item): New function.
3416 (update_dynamic_varobj_children): Move python-related code to
3418 (free_variable): Call varobj_clear_saved_item and
3421 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3422 Yao Qi <yao@codesourcery.com>
3424 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3425 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3426 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3427 (py-varobj.o): New rule.
3428 * python/py-varobj.c: New file.
3429 * python/python-internal.h (py_varobj_get_iterator): Declare.
3430 * varobj-iter.h: New file.
3431 * varobj.c: Include "varobj-iter.h"
3432 (struct varobj) <child_iter>: Change its type from "PyObject *"
3433 to "struct varobj_iter *".
3434 <saved_item>: Likewise.
3435 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3436 [HAVE_PYTHON] (varobj_get_iterator): New function.
3437 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3438 python-specific code to python/py-varobj.c.
3439 (install_visualizer): Call varobj_iter_delete instead of
3441 * varobj.h (varobj_ensure_python_env): Declare.
3443 2014-06-12 Yao Qi <yao@codesourcery.com>
3445 * varobj.c (struct varobj_item): New structure.
3446 (create_child_with_value): Update declaration.
3447 (varobj_add_child): Replace arguments 'name' and 'value' with
3448 'item'. All callers updated.
3449 (install_dynamic_child): Likewise.
3450 (update_dynamic_varobj_children): Likewise.
3451 (varobj_add_child): Likewise.
3452 (create_child_with_value): Likewise.
3454 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3456 * NEWS: Create a new section for the next release branch.
3457 Rename the section of the current branch, now that it has
3460 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3462 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3463 * version.in: Bump version to 7.8.50.DATE-cvs.
3465 2014-06-11 Pedro Alves <palves@redhat.com>
3468 * ser-mingw.c (net_windows_socket_check_pending): New function.
3469 (net_windows_select_thread): Ignore spurious wakeups. Use
3470 net_windows_socket_check_pending.
3471 (net_windows_wait_handle): Check for pending events with
3472 ioctlsocket, through net_windows_socket_check_pending, instead of
3473 checking the socket's event.
3475 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3477 * python/python-internal.h (gdb_PyObject_GetAttrString)
3478 (gdb_PyObject_HasAttrString): New inline function definitions.
3479 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3480 char * of the second argument to PyObject_GetAttrString.
3482 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3484 * serial.c (serial_write): Fix index of character to be printed
3485 in call to serial_logchar when serial debug traces are enabled.
3487 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3489 * gdbtypes (resolve_dynamic_range): Add function description.
3491 2014-06-09 Pedro Alves <palves@redhat.com>
3493 * linux-nat.c (linux_child_follow_fork): Initialize status with
3494 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3495 inner block. Only pass the signal to PTRACE_DETACH if in pass
3498 2014-06-09 Gary Benson <gbenson@redhat.com>
3500 * common/signals.c (gdb_signal_from_host): Reorder to separate
3501 the always-available ANSI-standard signals from the signals that
3503 (do_gdb_signal_to_host): Likewise.
3504 * proc-events.c (signal_table): Likewise.
3506 2014-06-08 Hui Zhu <hui@codesourcery.com>
3508 * common/linux-ptrace.c (linux_disable_event_reporting): New
3510 * common/linux-ptrace.h (linux_disable_event_reporting): New
3512 * linux-nat.c (linux_child_follow_fork): Do a single step before
3515 2014-06-07 Keith Seitz <keiths@redhat.com>
3519 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3520 from symbol_matches_domain in symtab.c. All local callers
3521 of symbol_matches_domain updated.
3522 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3523 search STRUCT_DOMAIN.
3524 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3525 independently. standard_lookup will do that automatically.
3526 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3527 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3528 (cp_lookup_symbol_in_namespace): Likewise.
3529 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3530 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3531 may return a STRUCT_DOMAIN match.
3532 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3533 * cp-support.c: Include language.h.
3534 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3536 * psymtab.c (match_partial_symbol): Compare the requested
3537 domain with the symbol's domain directly.
3538 (lookup_partial_symbol): Likewise.
3539 * symtab.c (lookup_symbol_in_language): Explain when/why
3540 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3541 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3542 appropriate languages.
3543 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3544 and moved to ada-lang.c
3545 (lookup_block_symbol): Explain that this function only returns
3546 symbol matching the requested DOMAIN.
3547 Compare the requested domain with the symbol's domain directly.
3548 (iterate_over_symbols): Compare the requested domain with the
3549 symbol's domain directly.
3550 * symtab.h (symbol_matches_domain): Remove.
3552 2014-06-06 Doug Evans <xdje42@gmail.com>
3554 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3555 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3556 (gdbscm_guile_version_is_at_least): Declare.
3557 (gdbscm_scm_string_to_int): Declare.
3558 * guile/guile.c (gdbscm_guile_major_version): New global.
3559 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3560 (guile_datadir): New static global.
3561 (gdbscm_guile_data_directory): New function.
3562 (initialize_scheme_side): Update.
3563 (misc_guile_functions): Add guile-data-directory.
3564 (initialize_gdb_module): Fetch guile version number.
3565 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3566 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3567 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3568 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3570 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3571 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3572 * guile/scm-value.c (gdbscm_value_to_string): Only call
3573 scm_port_conversion_strategy if Guile version >= 2.0.6.
3575 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3577 * main.c (print_gdb_help): Add -q and --silent.
3579 2014-06-06 Gary Benson <gbenson@redhat.com>
3581 * common/signals.c: Remove preprocessor conditionals for
3582 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3583 SIGSEGV and SIGTERM.
3584 * proc-events.c: Likewise.
3586 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3588 * symfile.c (symfile_free_objfile): Remove restriction to
3590 * symfile-mem.c (symbol_file_add_from_memory): Call
3591 add_target_sections_of_objfile.
3593 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3595 * guile/scm-value.c (gdbscm_history_append_x): Use
3596 'vlscm_get_value_smob_arg_unsafe' instead of
3597 'vlscm_scm_to_value'.
3599 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3602 * utils.c (printchar): Don't escape at all if quoter is NUL.
3603 Update function documentation to clarify effect of parameter
3605 * remote.c (escape_buffer): Pass '\\' as the quoter to
3606 fputstrn_unfiltered.
3607 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3608 generate the output.
3609 (mi_solib_unloaded): Same.
3611 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3613 * development.sh: Delete.
3614 * Makefile.in (config.status): Adjust dependency on development.sh.
3615 * configure.ac: Adjust development.sh source call.
3616 * configure: Regenerate.
3618 2014-06-04 Doug Evans <xdje42@gmail.com>
3620 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3621 is_scheme_bkpt, spec.
3622 (bpscm_make_breakpoint_smob): Initialize new members.
3623 (gdbscm_create_breakpoint_x): Split into two ...
3624 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3625 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3626 (scheme_function breakpoint_functions): Update.
3627 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3628 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3629 register-breakpoint!.
3631 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3634 * mem-break.c (z_type_supported): Return zero if
3635 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3637 2014-06-04 Tom Tromey <tromey@redhat.com>
3639 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3640 value_from_contents_and_address_unresolved.
3641 (ada_template_to_fixed_record_type_1): Likewise.
3642 (ada_which_variant_applies): Likewise.
3643 * value.h (value_from_contents_and_address_unresolved): Declare.
3644 * value.c (value_from_contents_and_address_unresolved): New
3646 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3647 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3648 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3650 2014-06-04 Tom Tromey <tromey@redhat.com>
3652 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3654 2014-06-04 Tom Tromey <tromey@redhat.com>
3656 * procfs.c (procfs_attach): Make "args" const.
3657 * windows-nat.c (windows_attach): Make "args" const.
3658 * nto-procfs.c (procfs_attach): Make "args" const.
3659 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3660 * go32-nat.c (go32_attach): Make "args" const.
3661 * gnu-nat.c (gnu_attach): Make "args" const.
3662 * darwin-nat.c (darwin_attach): Make "args" const.
3663 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3664 * linux-nat.c (linux_nat_attach): Make "args" const.
3665 * remote.c (extended_remote_attach_1, extended_remote_attach):
3667 * target.h (struct target_ops) <to_attach>: Make "args" const.
3668 (find_default_attach): Likewise.
3669 * utils.c (parse_pid_to_attach): Make "args" const.
3670 * utils.h (parse_pid_to_attach): Update.
3672 2014-06-04 Tom Tromey <tromey@redhat.com>
3674 * target-delegates.c: Rebuild.
3675 * target.c (default_thread_address_space): New function.
3676 (target_thread_address_space): Simplify.
3677 * target.h (struct target_ops) <to_thread_address_space>: Add
3678 TARGET_DEFAULT_FUNC.
3680 2014-06-04 Doug Evans <xdje42@gmail.com>
3682 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3684 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3686 * record-btrace.c: Include event-loop.h and inf-loop.h.
3687 (record_btrace_resume_exec_dir)
3688 (record_btrace_async_inferior_event_handler)
3689 (record_btrace_handle_async_inferior_event): New.
3690 (record_btrace_open): Create async event handler.
3691 (record_btrace_close): Delete async event handler.
3692 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3693 Mark async event handler.
3694 (record_btrace_execution_direction): New.
3695 (init_record_btrace_ops): Initialize to_execution_direction.
3697 2014-06-03 Doug Evans <xdje42@gmail.com>
3699 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3700 (gdbscm_make_parameter): Ditto.
3702 2014-06-03 Doug Evans <dje@google.com>
3704 * exec.c (exec_close_1): Call clear_section_table instead of
3705 resize_section_table.
3706 (clear_section_table): New function.
3707 (resize_section_table): Make static. Rename arg num_added to
3709 * exec.h (clear_section_table): Declare.
3710 (resize_section_table): Delete.
3711 * progspace.c (release_program_space): Call clear_section_table
3712 instead of resize_section_table.
3714 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3716 * NEWS (Python Scripting): Add entry about the new xmethods
3719 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3721 * python/py-xmethods.c: New file.
3722 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3723 (objfpy_dealloc): XDECREF on the new xmethods field.
3724 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3726 (objfpy_get_xmethods): New function.
3727 (objfile_getset): New entry 'xmethods'.
3728 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3729 (pspy_dealloc): XDECREF on the new xmethods field.
3730 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3732 (pspy_get_xmethods): New function.
3733 (pspace_getset): New entry 'xmethods'.
3734 * python/python-internal.h: Add declarations for new functions.
3735 * python/python.c (_initialize_python): Invoke
3736 gdbpy_initialize_xmethods.
3737 * python/lib/gdb/__init__.py (xmethods): New
3739 * python/lib/gdb/xmethod.py: New file.
3740 * python/lib/gdb/command/xmethods.py: New file.
3742 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3744 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3745 best match method returned by find_overload_match is an xmethod.
3746 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3747 the best matching operator returned by find_overload_match is an
3749 * valops.c: #include "extension.h".
3750 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3751 Return void. The list of matching source methods is returned in
3752 "fn_list" and a vector of matching debug method workers is
3753 returned in "xm_worker_vec". Update all callers.
3754 (value_find_oload_method_list): Likewise.
3755 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3756 non-NULL, then the index of the best matching method in this
3757 vector is returned. Update all callers.
3758 (find_overload_match): Include xmethods while performing overload
3761 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3763 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3764 * extension-priv.h (struct extension_language_ops): Add the
3766 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3767 get_matching_xmethod_workers, get_xmethod_argtypes,
3768 invoke_xmethod, free_xmethod_worker,
3769 free_xmethod_worker_vec): New functions.
3770 * extension.h: #include "common/vec.h".
3771 New function declarations.
3772 (struct xmethod_worker): New struct.
3773 (VEC (xmethod_worker_ptr)): New vector type.
3774 (xmethod_worker_ptr): New typedef.
3775 (xmethod_worker_vec): Likewise.
3776 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3778 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3779 (struct builtin_type): New field "xmethod".
3780 * valarith.c (value_ptradd): Assert that the value argument is not
3782 * valops.c (value_must_coerce_to_target): Return 0 for
3783 lval_xcallable values.
3784 * value.c (struct value): New field XM_WORKER in the field
3786 (value_address, value_raw_address): Return 0 for lval_xcallable
3788 (set_value_address): Assert that the value is not an
3790 (value_free): Free the associated xmethod worker when freeing
3791 lval_xcallable values.
3792 (set_value_component_location): Assert that the WHOLE value is not
3794 (value_of_xmethod, call_xmethod): New functions.
3795 * value.h: Declare "struct xmethod_worker".
3796 Declare new functions value_of_xmethod, call_xmethod.
3798 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3799 Pedro Alves <palves@redhat.com>
3801 PR breakpoints/17000
3802 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3803 New function, extracted from software_breakpoint_inserted_here_p.
3804 (software_breakpoint_inserted_here_p): Replace factored out code
3805 by call to find_non_raw_software_breakpoint_inserted_here.
3806 (bp_target_info_copy_insertion_state): New function.
3807 (bkpt_insert_location): Handle the case of a single-step
3808 breakpoint already inserted at the same address.
3809 (bkpt_remove_location): Handle the case of a single-step
3810 breakpoint still inserted at the same address.
3811 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3812 breakpoint already inserted at the same address.
3813 (deprecated_remove_raw_breakpoint): Handle the case of a
3814 non-raw breakpoint still inserted at the same address.
3815 (find_single_step_breakpoint): New function, extracted from
3816 single_step_breakpoint_inserted_here_p.
3817 (find_single_step_breakpoint): New function,
3818 factored out from single_step_breakpoint_inserted_here_p.
3819 (single_step_breakpoint_inserted_here_p): Reimplement.
3821 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3823 Pushed by Joel Brobecker <brobecker@adacore.com>
3824 * source.c (show_substitute_path_command): Fix display of matching
3827 2014-06-03 Gary Benson <gbenson@redhat.com>
3829 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3831 2014-06-02 Doug Evans <xdje42@gmail.com>
3833 Add parameter support for Guile.
3834 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3835 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3836 (scm-param.o): New rule.
3837 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3838 (gdbscm_misc_error): Declare.
3839 (gdbscm_canonicalize_command_name): Declare.
3840 (gdbscm_scm_to_host_string): Declare.
3841 (gdbscm_scm_from_host_string): Declare.
3842 (gdbscm_initialize_parameters): Declare.
3843 * guile/guile.c (initialize_gdb_module): Call
3844 gdbscm_initialize_parameters.
3845 * guile/lib/gdb.scm: Export parameter symbols.
3846 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3847 cmdscm_canonicalize_name and made public. All callers updated.
3848 * guile/scm-exception.c (gdbscm_misc_error): New function.
3849 * guile/scm-param.c: New file.
3850 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3851 (gdbscm_scm_to_host_string): New function.
3852 (gdbscm_scm_from_host_string): New function.
3853 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3855 2014-06-02 Doug Evans <xdje42@gmail.com>
3857 Add command support for Guile.
3858 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3859 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3860 (scm-cmd.o): New rule.
3861 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3862 (gdbscm_user_error_p): Declare.
3863 (gdbscm_parse_command_name): Declare.
3864 (gdbscm_valid_command_class_p): Declare.
3865 (gdbscm_initialize_commands): Declare.
3866 * guile/guile.c (initialize_gdb_module): Call
3867 gdbscm_initialize_commands.
3868 * guile/lib/gdb.scm: Export command symbols.
3869 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3870 (throw-user-error): New function.
3871 * guile/scm-cmd.c: New file.
3872 * guile/scm-exception.c (user_error_symbol): New static global.
3873 (gdbscm_user_error_p): New function.
3874 (gdbscm_initialize_exceptions): Set user_error_symbol.
3875 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3877 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3879 * top.c (command_loop): Handle comments here...
3880 (command_line_input): ... not here.
3882 2014-06-02 Doug Evans <xdje42@gmail.com>
3884 Add progspace support for Guile.
3885 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3886 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3887 (scm-progspace.o): New rule.
3888 * guile/guile-internal.h (pspace_smob): New typedef.
3889 (psscm_pspace_smob_pretty_printers): Declare.
3890 (psscm_pspace_smob_from_pspace): Declare.
3891 (psscm_scm_from_pspace): Declare.
3892 * guile/guile.c (initialize_gdb_module): Call
3893 gdbscm_initialize_pspaces.
3894 * guile/lib/gdb.scm: Export progspace symbols.
3895 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3897 (append-pretty-printer!): Ditto.
3898 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3900 * guile/scm-progspace.c: New file.
3902 2014-06-03 Alan Modra <amodra@gmail.com>
3904 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3905 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3907 2014-06-02 Doug Evans <dje@google.com>
3909 Add support for skeletonless type units.
3910 * dwarf2read.c (struct dwarf2_per_objfile): New member
3911 n_allocated_type_units.
3912 (struct dwarf2_per_objfile) <tu_stats>: New member
3913 nr_all_type_units_reallocs.
3914 (create_signatured_type_table_from_index): Initialize
3915 n_allocated_type_units
3916 (create_all_type_units): Ditto.
3917 (add_type_unit): Move up in file. New arg slot.
3918 All callers updated. Increase space for all_type_units more
3920 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3921 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3922 (lookup_dwp_signatured_type): Ditto.
3923 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3924 All callers updated.
3925 (build_type_psymtabs_1): Leave type_unit_groups as
3926 NULL if no TUs present.
3927 (print_tu_stats): New function.
3928 (process_skeletonless_type_unit): New function.
3929 (process_dwo_file_for_skeletonless_type_units): New
3931 (process_skeletonless_type_units): New function.
3932 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3933 Call print tu_stats if debugging enabled.
3935 2014-06-02 Pedro Alves <palves@redhat.com>
3937 * breakpoint.c (build_target_command_list): Don't build a command
3938 list if we have any duplicate location that isn't a dprintf.
3940 2014-06-02 Pedro Alves <palves@redhat.com>
3942 * breakpoint.c (dprintf_breakpoint_hit): New function.
3943 (initialize_breakpoint_ops): Install it as dprintf's
3944 breakpoint_hit method.
3946 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3948 * source.c (substitute_path_rule_matches): Simplify using
3949 filename_ncmp instead of FILENAME_CMP.
3951 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3953 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3955 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3957 * configure.ac: When Guile is available, check for the
3958 availability of 'scm_new_smob'.
3959 * configure, config.h.in: Regenerate.
3960 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3963 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3965 * frame.c (struct frame_info): Add stop_string field.
3966 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3967 (get_prev_frame_always): Old content moved into
3968 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3969 TRY_CATCH, handle MEMORY_ERROR exceptions.
3970 (frame_stop_reason_string): New function definition.
3971 * frame.h (unwind_stop_reason_to_string): Extend comment to
3972 mention frame_stop_reason_string.
3973 (frame_stop_reason_string): New function declaration.
3974 * stack.c (frame_info): Switch to frame_stop_reason_string.
3975 (backtrace_command_1): Switch to frame_stop_reason_string.
3976 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3977 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3978 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3980 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3982 * frame.c (frame_stop_reason_string): Rename to ...
3983 (unwind_stop_reason_to_string): this.
3984 * frame.h (frame_stop_reason_string): Rename to ...
3985 (unwind_stop_reason_to_string): this.
3986 * stack.c (frame_info): Update call to frame_stop_reason_string.
3987 (backtrace_command_1): Likewise.
3988 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3989 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3991 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3993 * frame.c (remove_prev_frame): New function.
3994 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3997 2014-05-29 Pedro Alves <palves@redhat.com>
3999 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4000 and make it const. When a single-step decays to a continue,
4001 clear 'step', not 'hw_step'. Pass whether the caller wanted
4002 to step to user_visible_resume_ptid, not what we ask the
4005 2014-05-29 Pedro Alves <palves@redhat.com>
4007 * infrun.c (process_event_stop_test, handle_step_into_function)
4008 (handle_step_into_function_backward): Adjust.
4009 Don't set the even thread's stop_step and call stop_waiting before
4010 calling end_stepping_range. Instead do that ...
4011 (end_stepping_range): ... here. Take an ecs pointer parameter.
4013 2014-05-29 Pedro Alves <palves@redhat.com>
4015 * infrun.c (stop_stepping): Rename to ...
4016 (stop_waiting): ... this.
4017 (proceed): Update comment.
4018 (process_event_stop_test, handle_inferior_event)
4019 (handle_signal_stop, handle_step_into_function)
4020 (handle_step_into_function_backward): Update.
4022 2014-05-29 Pedro Alves <palves@redhat.com>
4024 * infcall.c (run_inferior_call): Don't check whether the current
4025 thread is running after the proceed call.
4027 2014-05-29 Pedro Alves <palves@redhat.com>
4028 Tom Tromey <tromey@redhat.com>
4030 * NEWS: Mention "maint set target-async", "set mi-async", and that
4031 background execution commands are now always available.
4032 * target.h (target_async_permitted): Update comment.
4033 * target.c (target_async_permitted, target_async_permitted_1):
4035 (set_target_async_command): Rename to ...
4036 (maint_set_target_async_command): ... this.
4037 (show_target_async_command): Rename to ...
4038 (maint_show_target_async_command): ... this.
4039 (_initialize_target): Adjust.
4040 * infcmd.c (prepare_execution_command): Make extern.
4041 * inferior.h (prepare_execution_command): Declare.
4042 * infrun.c (set_observer_mode): Leave target async alone.
4043 * mi/mi-interp.c (mi_interpreter_init): Install
4044 mi_on_sync_execution_done as sync_execution_done observer.
4045 (mi_on_sync_execution_done): New function.
4046 (mi_execute_command_input_handler): Don't print the prompt if we
4047 just started a synchronous command with an async target.
4048 (mi_on_resume): Check sync_execution before printing prompt.
4049 * mi/mi-main.h (mi_async_p): Declare.
4050 * mi/mi-main.c: Include gdbcmd.h.
4051 (mi_async_p): New function.
4052 (mi_async, mi_async_1): New globals.
4053 (set_mi_async_command, show_mi_async_command, mi_async): New
4055 (exec_continue): Call prepare_execution_command.
4056 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4057 (mi_execute_async_cli_command): Use mi_async_p.
4058 (_initialize_mi_main): Install "set mi-async". Make
4059 "target-async" a deprecated alias.
4061 2014-05-29 Pedro Alves <palves@redhat.com>
4063 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4064 (_initialize_cli_interp): Adjust.
4065 * event-loop.c: Include "observer.h".
4066 (start_event_loop): Notify 'command_error' observers instead of
4067 calling display_gdb_prompt. Remove FIXME comment.
4068 * event-top.c (display_gdb_prompt): Remove call into the
4070 * inf-loop.c: Include "observer.h".
4071 (inferior_event_handler): Notify 'command_error' observers instead
4072 of calling display_gdb_prompt.
4073 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4074 observers instead of calling display_gdb_prompt.
4075 * interps.c (interp_set): Don't call display_gdb_prompt.
4076 (current_interp_display_prompt_p): Delete.
4077 * interps.h (interp_prompt_p): Delete declaration.
4078 (interp_prompt_p_ftype): Delete.
4079 (struct interp_procs) <prompt_proc_p>: Delete field.
4080 (current_interp_display_prompt_p): Delete declaration.
4081 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4082 (_initialize_mi_interp): Adjust.
4083 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4084 'command_error' observers.
4085 (tui_on_sync_execution_done, tui_on_command_error): New
4087 (tui_display_prompt_p): Delete.
4088 (_initialize_tui_interp): Adjust.
4090 2014-05-29 Pedro Alves <palves@redhat.com>
4093 * cli/cli-interp.c: Include infrun.h and observer.h.
4094 (cli_uiout, cli_interp): New globals.
4095 (cli_on_signal_received, cli_on_end_stepping_range)
4096 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4098 (cli_interpreter_init): Install them as 'end_stepping_range',
4099 'signal_received' 'signal_exited', 'exited' and 'no_history'
4101 (_initialize_cli_interp): Remove cli_interp local.
4102 * infrun.c (handle_inferior_event): Call the several stop reason
4103 observers instead of printing the stop reason directly.
4104 (end_stepping_range): New function.
4105 (print_end_stepping_range_reason, print_signal_exited_reason)
4106 (print_exited_reason, print_signal_received_reason)
4107 (print_no_history_reason): Make static, and add an uiout
4108 parameter. Print to that instead of to CURRENT_UIOUT.
4109 * infrun.h (print_end_stepping_range_reason)
4110 (print_signal_exited_reason, print_exited_reason)
4111 (print_signal_received_reason print_no_history_reason): New
4113 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4115 <cli_uiout>: New field.
4116 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4117 uiout for CLI output. Install 'signal_received',
4118 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4120 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4121 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4122 (mi_on_no_history): New functions.
4123 (ui_out_free_cleanup): Delete function.
4124 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4125 instead use the one already stored in the MI interpreter data.
4126 (mi_ui_out): Adjust.
4127 * tui/tui-interp.c: Include infrun.h and observer.h.
4128 (tui_interp): New global.
4129 (tui_on_signal_received, tui_on_end_stepping_range)
4130 (tui_on_signal_exited, tui_on_exited)
4131 (tui_on_no_history): New functions.
4132 (tui_init): Install them as 'end_stepping_range',
4133 'signal_received' 'signal_exited', 'exited' and 'no_history'
4135 (_initialize_tui_interp): Delete tui_interp local.
4137 2014-05-29 Pedro Alves <palves@redhat.com>
4140 * linux-nat.c (linux_nat_resume_callback): Rename the second
4141 parameter to 'except'. Skip LP if it points to EXCEPT.
4142 (linux_nat_resume): Don't mark the event lwp as not stopped
4143 before resuming sibling lwps. Instead ask
4144 linux_nat_resume_callback to skip the event lwp. Mark it as not
4145 stopped after actually resuming it.
4146 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4148 (wait_lwp): Mark the lwp as stopped here.
4149 (stop_wait_callback): Mark the lwp as not stopped right after
4150 resuming it. Don't mark lwps as stopped here.
4151 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4152 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4154 2014-05-29 Pedro Alves <palves@redhat.com>
4157 * infrun.c (resume): Determine how much to resume depending on
4158 whether the caller wanted a step, not whether we can hardware step
4159 the target. Mark all threads that we intend to run as running,
4160 unless we're calling an inferior function.
4161 (normal_stop): If the thread is running an infcall, don't finish
4163 * target.c (target_resume): Don't mark threads as running here.
4165 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4167 * serial.c (_initialize_serial): Remove support for
4168 the "set remotebaud" and "show remotebaud" commands.
4169 * NEWS: Add entry documenting the removal of that command.
4171 2014-05-28 Yao Qi <yao@codesourcery.com>
4173 * charset.c: Fix typo in comments.
4175 2014-05-27 Gary Benson <gbenson@redhat.com>
4177 * utils.c (internal_vproblem): Prompt for a bug report.
4179 2014-05-26 Andy Wingo <wingo@igalia.com>
4181 * guile/scm-arch.c (arscm_mark_arch_smob):
4182 * guile/scm-block.c (bkscm_mark_block_smob)
4183 (bkscm_mark_block_syms_progress_smob):
4184 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4185 * guile/scm-exception.c (exscm_mark_exception_smob):
4186 * guile/scm-frame.c (frscm_mark_frame_smob):
4187 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4188 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4189 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4190 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4191 (ppscm_mark_pretty_printer_worker_smob):
4192 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4193 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4194 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4195 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4197 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4200 2014-05-26 Andy Wingo <wingo@igalia.com>
4201 Doug Evans <xdje42@gmail.com>
4203 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4204 empty_base_class. All uses updated.
4205 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4206 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4208 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4209 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4210 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4211 (gdbscm_gsmob_has_property_p, add_property_name)
4212 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4213 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4214 (gdb-object-has-property?, gdb-object-properties): Remove.
4215 (gdb-object-kind): Renamed from gsmob-kind.
4217 2014-05-26 Andy Wingo <wingo@igalia.com>
4219 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4220 * configure: Regenerate.
4222 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4224 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4226 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4228 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4229 (replay_memory_access_read_only, replay_memory_access_read_write)
4230 (replay_memory_access_types, replay_memory_access)
4231 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4232 (cmd_set_record_btrace, cmd_show_record_btrace)
4233 (cmd_show_replay_memory_access): New.
4234 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4235 (record_btrace_remove_breakpoint): Replace
4236 record_btrace_allow_memory_access with replay_memory_access.
4237 (_initialize_record_btrace): Add commands.
4238 * NEWS: Announce it.
4240 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4242 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4244 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4246 * MAINTAINERS (Write After Approval): Move self back from
4249 2014-05-22 Pedro Alves <palves@redhat.com>
4251 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4252 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4253 (disable_randomization, enum exec_direction_kind)
4254 (execution_direction, stop_registers, start_remote)
4255 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4256 (wait_for_inferior, normal_stop, get_last_target_status)
4257 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4258 (insert_step_resume_breakpoint_at_sal)
4259 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4260 (set_step_info, print_stop_event, signal_stop_state)
4261 (signal_print_state, signal_pass_state, signal_stop_update)
4262 (signal_print_update, signal_pass_update)
4263 (update_signals_program_target, clear_exit_convenience_vars)
4264 (displaced_step_dump_bytes, update_observer_mode)
4265 (signal_catch_update, gdb_signal_from_command): Move
4267 * infrun.h: ... to this new file.
4268 * amd64-tdep.c: Include infrun.h.
4269 * annotate.c: Include infrun.h.
4270 * arch-utils.c: Include infrun.h.
4271 * arm-linux-tdep.c: Include infrun.h.
4272 * arm-tdep.c: Include infrun.h.
4273 * break-catch-sig.c: Include infrun.h.
4274 * breakpoint.c: Include infrun.h.
4275 * common/agent.c: Include infrun.h instead of inferior.h.
4276 * corelow.c: Include infrun.h.
4277 * event-top.c: Include infrun.h.
4278 * go32-nat.c: Include infrun.h.
4279 * i386-tdep.c: Include infrun.h.
4280 * inf-loop.c: Include infrun.h.
4281 * infcall.c: Include infrun.h.
4282 * infcmd.c: Include infrun.h.
4283 * infrun.c: Include infrun.h.
4284 * linux-fork.c: Include infrun.h.
4285 * linux-nat.c: Include infrun.h.
4286 * linux-thread-db.c: Include infrun.h.
4287 * monitor.c: Include infrun.h.
4288 * nto-tdep.c: Include infrun.h.
4289 * procfs.c: Include infrun.h.
4290 * record-btrace.c: Include infrun.h.
4291 * record-full.c: Include infrun.h.
4292 * remote-m32r-sdi.c: Include infrun.h.
4293 * remote-mips.c: Include infrun.h.
4294 * remote-notif.c: Include infrun.h.
4295 * remote-sim.c: Include infrun.h.
4296 * remote.c: Include infrun.h.
4297 * reverse.c: Include infrun.h.
4298 * rs6000-tdep.c: Include infrun.h.
4299 * s390-linux-tdep.c: Include infrun.h.
4300 * solib-irix.c: Include infrun.h.
4301 * solib-osf.c: Include infrun.h.
4302 * solib-svr4.c: Include infrun.h.
4303 * target.c: Include infrun.h.
4304 * top.c: Include infrun.h.
4305 * windows-nat.c: Include infrun.h.
4306 * mi/mi-interp.c: Include infrun.h.
4307 * mi/mi-main.c: Include infrun.h.
4308 * python/py-threadevent.c: Include infrun.h.
4310 2014-05-22 Pedro Alves <palves@redhat.com>
4312 * infrun.c (handle_inferior_event): Store the exit code for
4313 --return-child-result here, instead of ...
4314 (print_exited_reason): ... here.
4316 2014-05-21 Pedro Alves <palves@redhat.com>
4319 * gdbthread.h (struct thread_control_state): New field
4321 * infrun.c (follow_fork): Copy the new thread control field to the
4323 (clear_proceed_status_thread): Clear the new thread control field.
4324 (proceed): Set the new thread control field.
4325 * interps.h (command_interp): Declare.
4326 * interps.c (command_interpreter): New global.
4327 (command_interp): New function.
4328 (interp_exec): Set `command_interpreter' while here.
4329 * cli-out.c (cli_uiout_dtor): New function.
4330 (cli_ui_out_impl): Install it.
4331 * mi/mi-interp.c: Include cli-out.h.
4332 (mi_cmd_interpreter_exec): Add comment.
4333 (restore_current_uiout_cleanup): New function.
4334 (ui_out_free_cleanup): New function.
4335 (mi_on_normal_stop): If finishing an execution command started by
4336 a CLI command, or any kind of breakpoint-like event triggered,
4337 print the stop event to the output (CLI) stream.
4338 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4340 2014-05-21 Pedro Alves <palves@redhat.com>
4342 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4343 current source line having changed.
4344 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4345 * infrun.c (normal_stop): Adjust call to
4346 set_current_sal_from_frame.
4347 * source.c (clear_lines_listed_range): New function.
4348 (set_current_source_symtab_and_line, identify_source_line): Clear
4349 the lines listed range.
4350 (line_info): Handle the first "info line" after the current source
4351 line having changed.
4352 * stack.c (print_stack_frame): Remove center handling.
4353 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4356 2014-05-21 Pedro Alves <palves@redhat.com>
4358 * inf-child.c (inf_child_mourn_inferior): New function.
4359 * inf-child.h (inf_child_mourn_inferior): New declaration.
4360 * darwin-nat.c (darwin_mourn_inferior): Use
4361 inf_child_mourn_inferior.
4362 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4363 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4364 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4365 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4366 * windows-nat.c (windows_mourn_inferior): Likewise.
4368 2014-05-21 Doug Evans <xdje42@gmail.com>
4370 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4372 2014-05-21 Doug Evans <xdje42@gmail.com>
4374 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4375 (gdbscm_out_of_range_error): Ditto.
4376 (gdbscm_memory_error): Ditto.
4377 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4378 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4379 (gdbscm_out_of_range_error): Update.
4380 (gdbscm_memory_error): Update.
4381 (gdbscm_scm_to_target_string_unsafe): Delete.
4383 2014-05-21 Pedro Alves <palves@redhat.com>
4385 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4387 (inf_child_open_target): New function.
4388 (inf_child_open): Use inf_child_open_target to push the target
4389 instead of erroring out.
4390 (inf_child_disconnect, inf_child_close)
4391 (inf_child_maybe_unpush_target): New functions.
4392 (inf_child_target): Install inf_child_disconnect and
4393 inf_child_close. Store a pointer to the returned object.
4394 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4396 * target.c (auto_connect_native_target): New global.
4397 (show_default_run_target): New function.
4398 (find_default_run_target): Return NULL if automatically connecting
4399 to the native target is disabled.
4400 (_initialize_target): Install set/show auto-connect-native-target.
4401 * NEWS: Mention "set auto-connect-native-target", and "target
4403 * linux-nat.c (super_close): New global.
4404 (linux_nat_close): Call super_close.
4405 (linux_nat_add_target): Store a pointer to the base class's
4407 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4408 inf_child_maybe_unpush.
4409 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4411 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4412 the inferior. Use inf_child_maybe_unpush_target.
4413 (inf_ttrace_attach): Don't push the target if it is already
4415 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4416 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4417 after mourning the inferior. Use inf_child_maybe_unpush_target.
4418 (darwin_attach_pid): Don't push the target if it is already
4420 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4421 mourning the inferior. Use inf_child_maybe_unpush_target.
4422 (gnu_detach): Use inf_child_maybe_unpush_target.
4423 * go32-nat.c (go32_create_inferior): Don't push the target if it
4425 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4426 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4427 (procfs_open): Rename to ...
4428 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4429 comments. Can target_preopen before changing node. Call
4430 inf_child_open_target to push the target explicitly.
4431 (procfs_attach): Don't push the target if it is already pushed.
4432 (procfs_detach): Use inf_child_maybe_unpush_target.
4433 (procfs_create_inferior): Don't push the target if it is already
4435 (nto_native_ops): New global.
4436 (procfs_open): Reimplement.
4437 (procfs_native_open): New function.
4438 (init_procfs_targets): Install procfs_native_open as to_open of
4439 "target native". Store a pointer to the "native" target in
4441 * procfs.c (procfs_attach): Don't push the target if it is already
4443 (procfs_detach): Use inf_child_maybe_unpush_target.
4444 (procfs_mourn_inferior): Only unpush the target after mourning the
4445 inferior. Use inf_child_maybe_unpush_target.
4446 (procfs_init_inferior): Don't push the target if it is already
4448 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4449 if it is already pushed.
4451 2014-05-21 Pedro Alves <palves@redhat.com>
4453 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4454 and "procfs" targets are now called "native" instead.
4456 2014-05-21 Pedro Alves <palves@redhat.com>
4458 * go32-nat.c (go32_open): Delete.
4459 (go32_target): Don't override the to_open method.
4461 2014-05-21 Pedro Alves <palves@redhat.com>
4463 * nto-procfs.c (procfs_can_run): New function.
4464 (nto_procfs_ops): New global.
4465 (init_procfs_targets): New, based on procfs_target. Install
4466 "target native" in addition to "target procfs".
4467 (_initialize_procfs): Call init_procfs_targets instead of adding
4470 2014-05-21 Pedro Alves <palves@redhat.com>
4472 * windows-nat.c (windows_target): Don't override to_shortname,
4473 to_longname or to_doc.
4475 2014-05-21 Pedro Alves <palves@redhat.com>
4477 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4480 2014-05-21 Pedro Alves <palves@redhat.com>
4482 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4483 to_shortname, to_longname or to_doc.
4485 2014-05-21 Pedro Alves <palves@redhat.com>
4487 * go32-nat.c (go32_target): Don't override to_shortname,
4488 to_longname or to_doc.
4490 2014-05-21 Pedro Alves <palves@redhat.com>
4492 * inf-child.c (inf_child_open): Remove mention of "child".
4493 (inf_child_target): Rename target to "native" instead of "child".
4495 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4497 * Makefile.in (SFILES): Delete "regset.c".
4498 (COMMON_OBS): Delete "regset.o".
4500 * regset.h (regset_alloc): Delete prototype.
4502 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4504 * sparc-linux-tdep.c (sparc32_linux_gregset)
4505 (sparc32_linux_fpregset): New static regset structures.
4506 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4507 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4509 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4510 (sparc64_linux_fpregset): New static regset structures.
4511 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4512 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4513 New static regset structures.
4514 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4515 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4516 New static regset structures.
4517 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4518 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4519 New static regset structures.
4520 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4521 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4522 New static regset structures.
4523 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4525 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4527 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4528 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4529 register maps ("regmaps") from "*regset" to "*regmap". Do this
4530 for all regmap types and variables.
4531 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4532 (sparc32_linux_supply_core_gregset)
4533 (sparc32_linux_collect_core_gregset)
4534 (sparc32_linux_supply_core_fpregset)
4535 (sparc32_linux_collect_core_fpregset): Likewise.
4536 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4537 (sparc_gregmap, sparc_fpregmap): ... these.
4538 (sparc_supply_gregset, sparc_collect_gregset)
4539 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4540 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4541 (_initialize_sparc_nat): Rename regmaps.
4542 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4543 (sparc_gregmap, sparc_fpregmap): ... these.
4544 (sparc_supply_gregset, sparc_collect_gregset)
4545 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4546 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4548 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4549 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4551 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4553 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4554 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4555 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4557 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4558 (sparc32_bsd_fpregset): Rename to...
4559 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4560 (sparc32_bsd_fpregmap): ... these.
4561 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4562 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4563 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4564 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4565 (struct sparc_gregmap, struct sparc_fpregmap)
4566 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4567 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4568 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4569 (sparc32_supply_regset, sparc32_collect_gregset)
4570 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4572 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4573 (sparc64_linux_ptrace_gregmap): ... this.
4574 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4575 (_initialize_sparc64_linux_nat): Rename regmaps.
4576 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4577 (sparc64_linux_core_gregmap): ... this.
4578 (sparc64_linux_supply_core_gregset)
4579 (sparc64_linux_collect_core_gregset)
4580 (sparc64_linux_supply_core_fpregset)
4581 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4582 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4583 (sparc64_sol2_fpregset): Rename to...
4584 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4585 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4586 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4588 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4589 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4590 (sparc64_bsd_fpregset): Rename to...
4591 (struct sparc_gregmap, sparc64_sol2_gregmap)
4592 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4593 (sparc64_bsd_fpregmap): ... these.
4594 (sparc64_supply_gregset, sparc64_collect_gregset)
4595 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4597 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4598 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4599 (sparc64fbsd_gregmap): ... this.
4600 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4601 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4603 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4604 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4605 (sparc64nbsd_collect_fpregset): Likewise.
4606 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4607 (sparc64nbsd_gregmap): ... this.
4608 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4610 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4611 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4612 (sparc64obsd_gregmap): ... this.
4613 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4615 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4616 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4617 (sparc32nbsd_gregmap): ... this.
4618 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4621 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4623 * score-tdep.c (score7_linux_gregset): New static regset
4625 (score7_linux_regset_from_core_section): Remove dynamic regset
4627 (score_gdbarch_init): Drop allocation of tdep structure.
4628 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4630 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4632 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4634 (am33_regset_from_core_section): Remove dynamic regset
4637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4639 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4640 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4642 (mips_linux_regset_from_core_section): Remove dynamic regset
4644 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4645 'gregset64', 'fpregset', and 'fpregset64'.
4646 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4647 deleted tdep fields.
4649 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4651 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4653 (amd64_regset_from_core_section): Remove dynamic regset
4655 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4657 (amd64obsd_regset_from_core_section): Remove dynamic regset
4659 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4661 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4662 x86-common regset supply function.
4663 * i386-tdep.c (i386_collect_gregset): Make static.
4664 (i386_gregset): New global regset structure.
4665 (i386_fpregset, i386_xstateregset): New static regset structures.
4666 (i386_regset_from_core_section): Remove dynamic regset
4668 (i386_gdbarch_init): Remove initialization of tdep fields
4669 'gregset', 'fpregset', and 'xstateregset'.
4670 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4671 'fpregset', and 'xstateregset'.
4672 (i386_collect_gregset): Remove prototype.
4673 (i386_gregset): New declaration.
4674 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4676 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4679 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4681 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4682 (arm_linux_vfpregset): New static regset structures.
4683 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4685 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4686 and 'vfpregset' fields.
4688 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4690 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4691 (aarch64_linux_fpregset): New static regset structures.
4692 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4693 of regset structures.
4694 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4699 * regset.h (struct regset): Remove gdbarch field.
4700 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4701 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4702 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4704 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4705 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4706 (ppc32_linux_vsxregset): Likewise.
4707 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4708 via the regcache instead of the regset.
4709 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4710 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4711 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4712 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4715 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4717 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4718 Constify structures.
4719 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4720 (alphanbsd_aout_gregset): Likewise.
4721 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4722 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4724 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4725 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4727 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4728 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4729 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4730 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4731 * m88k-tdep.c (m88k_gregset): Likewise.
4732 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4733 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4734 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4735 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4736 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4737 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4738 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4739 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4740 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4742 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4743 * sh-tdep.h (sh_corefile_gregset): Likewise.
4744 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4745 * vax-tdep.c (vax_gregset): Likewise.
4747 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4749 Fix TLS access for -static -pthread.
4750 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4751 (try_thread_db_load_1): Initialize it.
4752 (thread_db_get_thread_local_address): Call it if LM is zero.
4753 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4754 * target.h (struct target_ops) (to_get_thread_local_address): Add
4755 load_module_addr comment.
4757 2014-05-21 Pedro Alves <palves@redhat.com>
4759 * dcache.c (dcache_read_memory_partial): If reading the cache line
4760 fails, fallback to reading just the memory the caller wanted.
4762 2014-05-20 Doug Evans <dje@google.com>
4764 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4765 instead of get_current_arch.
4767 2014-05-20 Pedro Alves <palves@redhat.com>
4769 * NEWS: Mention that compare-sections now works with all targets.
4771 * remote.c (PACKET_qCRC): New enum value.
4772 (remote_verify_memory): Don't send qCRC if the target has no
4773 execution. Use packet_support/packet_ok. If the target doesn't
4774 support the qCRC packet, fallback to a deep memory copy.
4775 (compare_sections_command): Say "target image" instead of "remote
4777 (_initialize_remote): Add PACKET_qCRC to the list of config
4778 packets that have no associated command. Extend comment.
4779 * target.c (simple_verify_memory, default_verify_memory): New
4781 * target.h (struct target_ops) <to_verify_memory>: Default to
4782 default_verify_memory.
4783 (simple_verify_memory): New declaration.
4784 * target-delegates.c: Regenerate.
4786 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4788 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4790 2014-05-20 Hui Zhu <hui@codesourcery.com>
4791 Yao Qi <yao@codesourcery.com>
4794 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4795 and change address of sp and pc.
4797 2014-05-19 Tom Tromey <tromey@redhat.com>
4799 * gdbtypes.c (rank_function): Use XNEWVEC.
4800 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4802 2014-05-19 Doug Evans <dje@google.com>
4804 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4805 build_type_unit_groups and moved closer to only caller. Remove
4806 arguments. All references updated. Remove outdated .gdb_index
4808 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4809 build_type_psymtabs_1.
4811 2014-05-19 Doug Evans <dje@google.com>
4813 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4814 n_type_unit_groups, all_type_unit_groups. All uses removed.
4815 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4816 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4817 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4818 (add_type_unit_group_to_table): Delete.
4820 2014-05-19 Doug Evans <dje@google.com>
4822 * eval.c (evaluate_subexp_standard): Add some comments.
4824 2014-05-17 Doug Evans <xdje42@gmail.com>
4826 * progspace.c (remove_program_space): Delete, unused.
4827 * progspace.h (remove_program_space): Ditto.
4829 2014-05-17 Doug Evans <xdje42@gmail.com>
4831 * inferior.c (prune_inferiors): Fix comment.
4832 (remove_inferior_command): Call prune_program_spaces.
4834 2014-05-16 Doug Evans <dje@google.com>
4836 New command line option -D.
4838 * main.c (set_gdb_data_directory): New function.
4839 (captured_main): Recognize -D. Flag error for --data-directory "".
4840 Call set_gdb_data_directory.
4841 (print_gdb_help): Print --data-directory, -D.
4842 * main.h (set_gdb_data_directory): Declare.
4843 * top.c (staged_gdb_datadir): New static global.
4844 (set_gdb_datadir): Call set_gdb_data_directory
4845 (show_gdb_datadir): New function.
4846 (init_main): Update init of data-directory parameter.
4848 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4850 Import the "dirfd" gnulib module.
4851 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4852 * gnulib/aclocal.m4: Update.
4853 * gnulib/config.in: Update.
4854 * gnulib/configure: Update.
4855 * gnulib/import/Makefile.am: Update.
4856 * gnulib/import/Makefile.in: Update.
4857 * gnulib/import/dirfd.c: New.
4858 * gnulib/import/m4/dirfd.m4: New.
4859 * gnulib/import/m4/gnulib-cache.m4: Update.
4860 * gnulib/import/m4/gnulib-comp.m4: Update.
4862 2014-05-16 Pierre Muller <muller@sourceware.org>
4863 Yao Qi <yao@codesourcery.com>
4865 * valprint.c (print_wchar): Move the code on checking whether
4866 W is a printable wide char to the default branch of switch
4867 statement below. Call wchar_printable instead of gdb_iswprint.
4869 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4871 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4872 ldr.w and ldrd instructions.
4874 2014-05-15 Doug Evans <dje@google.com>
4876 * dwarf2read.c (read_structure_type): Delete outdated comments.
4878 2014-05-14 Tom Tromey <tromey@redhat.com>
4880 * macrocmd.c (print_macro_definition): Reindent.
4882 2014-05-13 Doug Evans <xdje42@gmail.com>
4884 * python/py-cmd.c (cmdpy_completer): Add comment.
4885 (completers): Make const.
4887 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4889 * infrun.c (resume): Remove should_resume (unused). Move up
4890 declaration of resume_ptid.
4892 2014-05-13 Tom Tromey <tromey@redhat.com>
4894 * language.h (unop_type_check): Remove.
4895 (binop_type_check): Don't declare.
4897 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4899 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4900 call to regcache_raw_collect.
4902 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4904 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4905 mi_console->quote as the quoting character.
4907 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4909 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4911 2014-04-29 Tom Tromey <tromey@redhat.com>
4913 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4914 "show debug varobj".
4916 2014-05-07 Kyle McMartin <kyle@redhat.com>
4918 Pushed by Joel Brobecker <brobecker@adacore.com>.
4919 * aarch64-tdep.c (aarch64_software_single_step): New function.
4920 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4921 with aarch64_software_single_step.
4923 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4927 2014-05-05 Keith Seitz <keiths@redhat.com>
4929 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4930 variable or history value is successfully parsed.
4932 2014-05-05 Yao Qi <yao@codesourcery.com>
4933 Pedro Alves <palves@redhat.com>
4935 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4936 address of blocks that intersects the requested range. Trim
4937 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4939 * ctf.c (ctf_xfer_partial): Likewise.
4941 2014-05-05 Yao Qi <yao@codesourcery.com>
4943 * printcmd.c (display_command): Remove the check to
4944 target_has_execution.
4946 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4948 * ppcobsd-nat.c: Include "obsd-nat.h".
4949 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4951 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4953 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4955 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4956 and 16-bit signed and unsigned arguments. Update comment.
4957 (stap_parse_probe_arguments): Extend code to handle such
4958 arguments. Use warning instead of complaint to notify about
4959 unrecognized bitness.
4961 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4963 PR breakpoints/16889
4964 * stap-probe.c (stap_parse_probe_arguments): Simplify
4965 check for non-prefixed probes (i.e., probes whose
4966 arguments do not start with "N@"). Always set the
4967 argument type to a sane value.
4969 2014-05-01 David Taylor <dtaylor@emc.com>
4971 * remote.c (compare_sections_command): Add -r option to compare
4972 all loadable read-only sections.
4974 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4976 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4977 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4979 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4980 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4981 Remove unused CORE_ADDR argument. Update all callers.
4983 2014-04-29 Pedro Alves <palves@redhat.com>
4985 * remote.c (struct packet_config) <detect>: Extend comment.
4986 (add_packet_config_cmd): Don't set the config's detect or support
4988 (init_all_packet_configs): Also initialize the config's 'detect'
4990 (reset_all_packet_configs_support): New function.
4991 (remote_open_1): Call reset_all_packet_configs_support instead of
4992 init_all_packet_configs.
4993 (_initialize_remote): Initialize all packet configs. Assert that
4994 all packets have an associated command, except a few known
4997 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4999 * dwarf2read.c (read_subrange_type): Handle dynamic
5000 DW_AT_lower_bound attributes.
5002 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5004 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5005 dynamic bounds before computing its upper bound.
5006 (ada_discrete_type_low_bound): Same as above with the lower bound.
5008 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5010 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5011 range types. Adjust the array handling implementation to
5012 take advantage of this change.
5013 (resolve_dynamic_range): New function, mostly extracted from
5014 resolve_dynamic_bounds.
5015 (resolve_dynamic_array): New function, mostly extracted from
5016 resolve_dynamic_bounds.
5017 (resolve_dynamic_bounds): Delete.
5018 (resolve_dynamic_type): Reimplement. Add handling of
5019 TYPE_CODE_RANGE types.
5021 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5023 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5024 handling of parallel ___XA types.
5026 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5028 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5029 unnecessary second call to static_unwrap_type.
5031 2014-04-27 Hui Zhu <hui@codesourcery.com>
5033 * stack.c (print_frame_info): Call do_gdb_disassembly with
5034 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5036 2014-04-26 Doug Evans <xdje42@gmail.com>
5038 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5040 2014-04-25 Pedro Alves <palves@redhat.com>
5043 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5044 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5045 and newline from built string.
5046 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5047 (linux_ptrace_attach_fail_reason): ... this.
5048 * linux-nat.c (linux_nat_attach): Adjust to use
5049 linux_ptrace_attach_fail_reason.
5051 2014-04-25 Pedro Alves <palves@redhat.com>
5053 * remote.c (struct remote_state): Remove multi_process_aware,
5054 non_stop_aware, cond_tracepoints, cond_breakpoints,
5055 breakpoint_commands, fast_tracepoints, static_tracepoints,
5056 install_in_trace, disconnected_tracing,
5057 enable_disable_tracepoints, string_tracing, and
5058 augmented_libraries_svr4_read fields.
5059 (remote_multi_process_p): Move further below in the file.
5060 (struct packet_config): Add comments.
5061 (update_packet_config): Delete function.
5062 (show_packet_config_cmd): Use packet_config_support.
5063 (add_packet_config_cmd): Use NULL as set callback.
5064 (packet_ok): "set remote foo-packet"-style commands no longer
5065 change config->supported -- adjust.
5066 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5067 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5068 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5069 (PACKET_QNonStop, PACKET_multiprocess_feature)
5070 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5071 (PACKET_DisconnectedTracing_feature)
5072 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5073 (set_remote_protocol_packet_cmd): Delete function.
5074 (packet_config_support, packet_support): New functions.
5075 (set_remote_protocol_Z_packet_cmd): Don't call
5076 update_packet_config.
5077 (remote_query_attached, remote_pass_signals)
5078 (remote_program_signals, remote_threads_info)
5079 (remote_threads_extra_info, remote_start_remote): Use
5081 (remote_start_remote): Use packet_config_support and
5083 (init_all_packet_configs): Set all packets to unknown support,
5084 instead of calling update_packet_config.
5085 (remote_check_symbols): Use packet_support.
5086 (remote_supported_packet): Unconditionally set the packet config's
5088 (remote_multi_process_feature, remote_non_stop_feature)
5089 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5090 (remote_breakpoint_commands_feature)
5091 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5092 (remote_install_in_trace_feature)
5093 (remote_disconnected_tracing_feature)
5094 (remote_enable_disable_tracepoint_feature)
5095 (remote_string_tracing_feature)
5096 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5097 (remote_protocol_features): Adjust to use remote_supported_packet
5098 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5099 "ConditionalTracepoints", "ConditionalBreakpoints",
5100 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5101 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5102 "EnableDisableTracepoints", and "tracenz".
5103 (remote_query_supported): Use packet_support.
5104 (remote_open_1): Adjust.
5105 (extended_remote_attach_1): Use packet_support. Switch on the
5106 result of packet_ok instead of checking whether the packet ended
5108 (remote_vcont_resume): Use packet_support.
5109 (remote_resume, remote_stop_ns, fetch_register_using_p)
5110 (remote_prepare_to_store, store_register_using_P)
5111 (check_binary_download, remote_write_bytes): Use packet_support.
5112 (remote_vkill): Use packet_support. Switch on the result of
5113 packet_ok instead of checking whether the packet ended up
5115 (extended_remote_supports_disable_randomization): Use
5117 (extended_remote_run): Switch on the result of packet_ok instead
5118 of checking whether the packet ended up disabled.
5119 (remote_insert_breakpoint, remote_remove_breakpoint)
5120 (remote_insert_watchpoint, remote_remove_watchpoint)
5121 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5123 (remote_search_memory): Use packet_config_support.
5124 (remote_get_thread_local_address, remote_get_tib_address)
5125 (remote_hostio_send_command, remote_can_execute_reverse): Use
5127 (remote_supports_cond_tracepoints)
5128 (remote_supports_cond_breakpoints)
5129 (remote_supports_fast_tracepoints)
5130 (remote_supports_static_tracepoints)
5131 (remote_supports_install_in_trace)
5132 (remote_supports_enable_disable_tracepoint)
5133 (remote_supports_string_tracing)
5134 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5135 the packet config says the feature is enabled or disabled.
5136 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5137 (remote_get_trace_status): Use packet_support.
5138 (remote_set_disconnected_tracing): Adjust to check whether the
5139 feature is enabled with packet_support.
5140 (remote_set_trace_buffer_size, remote_use_agent)
5141 (remote_can_use_agent, remote_supports_btrace): Use
5143 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5144 Use packet_config_support.
5145 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5146 the packet config says the feature is enabled or disabled.
5147 (set_range_stepping): Use packet_support.
5149 2014-04-25 Tom Tromey <tromey@redhat.com>
5151 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5154 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5156 * NEWS: Mention support for C99 variable length arrays.
5158 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5160 * ada-lang.c (standard_exc): Expand introductory comment.
5162 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5163 Walfred Tedeschi <walfred.tedeschi@intel.com>
5165 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5167 (amd64_linux_read_description): Add code to handle AVX512 xstate
5168 mask and return respective tdesc.
5169 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5170 and features/i386/x32-avx512-linux.c.
5171 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5172 (amd64_linux_core_read_description): Add code to handle AVX512
5173 xstate mask and return respective tdesc.
5174 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5175 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5177 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5178 (tdesc_amd64_avx512_linux): New prototype.
5179 (tdesc_x32_avx512_linux): Likewise.
5180 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5181 features/i386/x32-avx512.c.
5182 (amd64_ymm_avx512_names): New register names for pseudo
5184 (amd64_ymmh_avx512_names): New register names for raw registers
5186 (amd64_k_names): New register names for K registers.
5187 (amd64_zmmh_names): New register names for ZMM raw registers.
5188 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5189 (amd64_xmm_avx512_names): New register names for XMM16-31
5191 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5193 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5194 if feature is present.
5195 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5196 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5197 (AMD64_NUM_REGS): Adjust to new number of registers.
5198 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5199 registers supplied via XSTATE by AVX512 registers.
5200 (i386_linux_read_description): Add case for AVX512.
5201 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5202 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5203 (i386_linux_core_read_description): Add case for AVX512.
5204 (i386_linux_init_abi): Install supported register note section
5206 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5208 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5209 registers to be number of zmm7h + 1.
5210 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5211 * i386-tdep.c: Include features/i386/i386-avx512.c.
5212 (i386_zmm_names): Add ZMM pseudo register names array.
5213 (i386_zmmh_names): Add ZMM raw register names array.
5214 (i386_k_names): Add K raw register names array.
5215 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5216 registers. AVX512 has 16 more ZMM registers than there are YMM
5218 (i386_zmmh_regnum_p): Add function to look up register number of
5220 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5221 (i386_k_regnum_p): Likewise for K raw registers.
5222 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5223 registers added by AVX512.
5224 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5225 registers added by AVX512.
5226 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5228 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5229 (i386_pseudo_register_name): Add ZMM pseudo registers.
5230 (i386_zmm_type): Construct and return vector registers type for ZMM
5232 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5233 ZMM0-31 pseudo registers and K registers.
5234 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5235 and YMM16-31 registers from register cache.
5236 (i386_pseudo_register_write): Add code to write K, ZMM and
5238 (i386_register_reggroup_p): Add code to include/exclude AVX512
5239 registers in/from respective register groups.
5240 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5241 registers if feature is present in xcr0.
5242 (i386_gdbarch_init): Add code to initialize AVX512 feature
5243 variables in tdep structure, wire in pseudo registers and call
5244 initialize_tdesc_i386_avx512.
5245 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5247 (i386_regnum): Add AVX512 registers.
5248 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5249 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5250 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5251 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5253 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5254 (i386_ymm_avx512_regnum_p): Likewise.
5255 (i386_k_regnum_p): Likewise.
5256 (i386_zmm_regnum_p): Likewise.
5257 (i386_zmmh_regnum_p): Likewise.
5258 * i387-tdep.c : Update year in copyright notice.
5259 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5261 (XSAVE_YMM_AVX512_ADDR): New macro.
5262 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5264 (XSAVE_XMM_AVX512_ADDR): New macro.
5265 (xsave_avx512_k_offset): New table for K register offsets in
5267 (XSAVE_AVX512_K_ADDR): New macro.
5268 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5270 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5271 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5273 (i387_collect_xsave): Add code to collect AVX512 registers from
5275 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5276 of XMM16-31 registers.
5277 (I387_NUM_K_REGS): New define for number of K registers.
5278 (I387_K0_REGNUM): New define for K0 register number.
5279 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5280 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5281 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5283 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5284 (I387_XMM16_REGNUM): New define for XMM16 register number.
5285 (I387_YMM0_REGNUM): New define for YMM0 register number.
5286 (I387_KEND_REGNUM): New define for last K register number.
5287 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5288 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5290 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5292 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5294 * features/Makefile: Add AVX512 related files.
5295 * features/i386/32bit-avx512.xml: New file.
5296 * features/i386/64bit-avx512.xml: Likewise.
5297 * features/i386/amd64-avx512-linux.c: Likewise.
5298 * features/i386/amd64-avx512-linux.xml: Likewise.
5299 * features/i386/amd64-avx512.c: Likewise.
5300 * features/i386/amd64-avx512.xml: Likewise.
5301 * features/i386/i386-avx512-linux.c: Likewise.
5302 * features/i386/i386-avx512-linux.xml: Likewise.
5303 * features/i386/i386-avx512.c: Likewise.
5304 * features/i386/i386-avx512.xml: Likewise.
5305 * features/i386/x32-avx512-linux.c: Likewise.
5306 * features/i386/x32-avx512-linux.xml: Likewise.
5307 * features/i386/x32-avx512.c: Likewise.
5308 * features/i386/x32-avx512.xml: Likewise.
5309 * regformats/i386/amd64-avx512-linux.dat: New file.
5310 * regformats/i386/amd64-avx512.dat: Likewise.
5311 * regformats/i386/i386-avx512-linux.dat: Likewise.
5312 * regformats/i386/i386-avx512.dat: Likewise.
5313 * regformats/i386/x32-avx512-linux.dat: Likewise.
5314 * regformats/i386/x32-avx512.dat: Likewise.
5315 * NEWS: Add note about new support for AVX512.
5318 2014-04-23 Pedro Alves <palves@redhat.com>
5320 * breakpoint.c (insert_bp_location): Tolerate errors if the
5321 breakpoint is set in a user-loaded objfile.
5322 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5323 location is marked shlib_disabled. If the breakpoint is set in a
5324 user-loaded objfile is a GDB-side memory breakpoint, validate it
5325 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5326 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5328 * mem-break.c (memory_validate_breakpoint): New function.
5329 * objfiles.c (userloaded_objfile_contains_address_p): New
5331 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5332 * target.h (memory_validate_breakpoint): New declaration.
5334 2014-04-23 Pedro Alves <palves@redhat.com>
5336 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5337 the breakpoint is set in a shared library, only suppress
5338 errors for software breakpoints, not hardware breakpoints.
5340 2014-04-22 Pedro Alves <palves@redhat.com>
5342 * infrun.c (schedlock_applies): New function, factored out from
5343 find_thread_needs_step_over.
5344 (find_thread_needs_step_over): Use it.
5345 (switch_back_to_stepped_thread): Always clear trap_expected if the
5346 step over is finished. Return early if scheduler locking applies.
5347 Look for the stepping thread and a potential step-over thread with
5349 (currently_stepping_or_nexting_callback): Delete.
5351 2014-04-22 Nick Clifton <nickc@redhat.com>
5353 * NEWS: Mention that ARM sim now supports tracing.
5355 2014-04-22 Yao Qi <yao@codesourcery.com>
5357 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5359 * tracefile.c (tracefile_fetch_registers): ... it. New
5361 * tracefile.h (tracefile_fetch_registers): Declare.
5362 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5363 tracefile_fetch_registers.
5365 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5368 * windows-nat.c (thread_rec): Don't display a warning when
5369 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5370 fails for any reason, set th->suspended to -1, so that we don't
5371 try to resume such a thread. Also, don't return NULL in these
5372 cases, to avoid completely ruin the session due to "PC register is
5373 not available" error.
5374 (do_windows_fetch_inferior_registers): Check errors in
5375 GetThreadContext call.
5376 (windows_continue): Accept an additional argument KILLED; if not
5377 zero, ignore errors in the SetThreadContext call, since the
5378 inferior was killed and is shutting down.
5379 (windows_resume, get_windows_debug_event)
5380 (windows_create_inferior, windows_mourn_inferior)
5381 (windows_kill_inferior): All callers of windows_continue changed
5382 to adjust to its new calling sequence.
5384 2014-04-19 Yao Qi <yao@codesourcery.com>
5386 * ctf.c (ctf_open): Call post_create_inferior.
5388 2014-04-19 Yao Qi <yao@codesourcery.com>
5390 * ctf.c (handle_id): New static variable.
5391 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5392 value. Get the declaration of event "register" and get length
5393 of field "contents".
5395 2014-04-19 Yao Qi <yao@codesourcery.com>
5397 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5399 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5401 * valops.c (oload_method_static): Remove unnecessary argument
5402 METHOD. Update all callers.
5404 2014-04-18 Pedro alves <palves@redhat.com>
5405 Tom Tromey <tromey@redhat.com>
5408 * frame.c (get_prev_frame_1): Rename to ...
5409 (get_prev_frame_always): ... this, and make extern. Adjust.
5410 (skip_artificial_frames): Use get_prev_frame_always.
5411 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5412 (get_frame_unwind_stop_reason): Adjust to rename.
5413 * frame.h (get_prev_frame_always): Declare.
5414 * inline-frame.c: Include frame.h.
5415 (inline_frame_this_id): Use get_prev_frame_always.
5417 2014-04-18 Tristan Gingold <gingold@adacore.com>
5419 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5420 code by using bfd_mach_o_get_base_address.
5422 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5424 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5425 (spu_ax_pseudo_register_collect): New function.
5426 (spu_ax_pseudo_register_push_stack): Likewise.
5427 (spu_dwarf_reg_to_regnum): Likewise.
5428 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5430 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5432 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5433 Replace FRAME argument with FRAME_ID.
5434 * gdbarch.c, gdbarch.h: Regenerate.
5435 * findvar.c (default_value_from_register): Add GDBARCH argument;
5436 replace FRAME by FRAME_ID. No longer call get_frame_id.
5437 (value_from_register): Update call to gdbarch_value_from_register.
5438 * value.h (default_value_from_register): Update prototype.
5439 * s390-linux-tdep.c (s390_value_from_register): Update interface
5440 and call to default_value_from_register.
5441 * spu-tdep.c (spu_value_from_register): Likewise.
5443 * findvar.c (address_from_register): Remove TYPE argument.
5444 Do not call value_from_register; use gdbarch_value_from_register
5445 with null_frame_id instead.
5446 * value.h (address_from_register): Update prototype.
5447 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5448 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5449 address_from_register interface change.
5451 2014-04-17 Yao Qi <yao@codesourcery.com>
5453 * gdbtypes.h: Update comments to link to types and macros'
5456 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5458 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5460 2014-04-16 Keith Seitz <keiths@redhat.com>
5463 * dwarf2read.c (skip_one_die): Check that all relative-offset
5464 sibling DIEs fall within range of the current reader's buffer.
5465 (read_partial_die): Likewise.
5467 2014-04-16 Keith Seitz <keiths@redhat.com>
5470 * cp-namespace.c (lookup_symbol_file): If the type name of
5471 `this' is NULL, return immediately.
5473 2014-04-14 Keith Seitz <keiths@redhat.com>
5476 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5477 from symbol_matches_domain in symtab.c. All local callers
5478 of symbol_matches_domain updated.
5479 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5480 search STRUCT_DOMAIN.
5481 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5482 independently. standard_lookup will do that automatically.
5483 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5484 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5485 (cp_lookup_symbol_in_namespace): Likewise.
5486 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5487 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5488 may return a STRUCT_DOMAIN match.
5489 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5490 * cp-support.c: Include language.h.
5491 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5493 * psymtab.c (match_partial_symbol): Compare the requested
5494 domain with the symbol's domain directly.
5495 (lookup_partial_symbol): Likewise.
5496 * symtab.c (lookup_symbol_in_language): Explain when/why
5497 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5498 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5499 appropriate languages.
5500 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5501 and moved to ada-lang.c
5502 (lookup_block_symbol): Explain that this function only returns
5503 symbol matching the requested DOMAIN.
5504 Compare the requested domain with the symbol's domain directly.
5505 (iterate_over_symbols): Compare the requested domain with the
5506 symbol's domain directly.
5507 * symtab.h (symbol_matches_domain): Remove.
5509 2014-04-14 Tom Tromey <tromey@redhat.com>
5512 * c-exp.y (type_aggregate_p): New function.
5513 (qualified_name, classify_inner_name): Use it.
5514 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5515 and TYPE_TARGET_TYPE of an enum type.
5516 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5518 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5519 handle TYPE_DECLARED_CLASS.
5520 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5522 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5523 * valops.c (enum_constant_from_type): New function.
5524 (value_aggregate_elt): Use it.
5525 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5528 2014-04-14 Tom Tromey <tromey@redhat.com>
5530 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5531 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5533 * value.h (value_aggregate_elt): Update.
5535 2014-04-14 Tom Tromey <tromey@redhat.com>
5537 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5539 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5541 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5542 (evaluate_subexp_standard): Pass noside argument.
5543 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5544 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5545 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5546 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5547 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5549 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5551 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5552 points to a constant blob.
5554 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5556 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5557 property and store it as the high bound and flag the range accordingly.
5558 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5559 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5560 * gdbtypes.h (enum range_flags): New enum.
5561 (struct range_bounds): Add flags member.
5563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5565 * c-typeprint.c (c_type_print_varspec_suffix): Added
5566 check for not yet resolved high bound. If unresolved, print
5567 "variable length" string to the console instead of random
5570 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5572 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5574 (ada_template_to_fixed_record_type_1): Likewise.
5575 (ada_to_fixed_type_1): Likewise.
5576 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5577 (cp_print_value): Likewise.
5578 * d-valprint.c (dynamic_array_type): Likewise.
5579 * findvar.c (address_of_variable): Likewise.
5580 * jv-valprint.c (java_value_print): Likewise.
5581 * valops.c (value_ind): Likewise.
5582 * value.c (coerce_ref): Likewise.
5584 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5586 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5587 value and retrieve the dynamic type size.
5589 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5591 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5592 passed to sizeof is dynamic evaluate the argument to compute the length.
5594 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5595 Joel Brobecker <brobecker@adacore.com>
5597 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5598 (dwarf2_evaluate_property): New function.
5599 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5600 * dwarf2read.c (attr_to_dynamic_prop): New function.
5601 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5603 * gdbtypes.c: Include dwarf2loc.h.
5604 (is_dynamic_type): New function.
5605 (resolve_dynamic_type): New function.
5606 (resolve_dynamic_bounds): New function.
5607 (get_type_length): New function.
5608 (check_typedef): Use get_type_length to compute type length.
5609 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5610 (TYPE_LOW_BOUND_KIND): New macro.
5611 (is_dynamic_type): New function prototype.
5612 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5613 to resolve dynamic properties of the type. Update comment.
5614 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5616 2014-04-14 Richard Henderson <rth@redhat.com>
5618 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5620 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5621 Doug Evans <xdje42@gmail.com>
5623 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5624 dereference TYPE_CODE_REF values.
5626 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5628 Revert the following changes due to regressions:
5630 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5631 (dwarf2_evaluate_property): New function.
5632 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5633 * dwarf2read.c (attr_to_dynamic_prop): New function.
5634 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5636 * gdbtypes.c: Include dwarf2loc.h.
5637 (is_dynamic_type): New function.
5638 (resolve_dynamic_type): New function.
5639 (resolve_dynamic_bounds): New function.
5640 (get_type_length): New function.
5641 (check_typedef): Use get_type_length to compute type length.
5642 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5643 (TYPE_LOW_BOUND_KIND): New macro.
5644 (is_dynamic_type): New function prototype.
5645 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5646 to resolve dynamic properties of the type. Update comment.
5647 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5649 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5650 passed to sizeof is dynamic evaluate the argument to compute the length.
5652 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5653 value and retrieve the dynamic type size.
5655 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5656 (ada_template_to_fixed_record_type_1): Likewise.
5657 (ada_to_fixed_type_1): Likewise.
5658 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5659 (cp_print_value): Likewise.
5660 * d-valprint.c (dynamic_array_type): Likewise.
5661 * eval.c (evaluate_subexp_with_coercion): Likewise.
5662 * findvar.c (address_of_variable): Likewise.
5663 * jv-valprint.c (java_value_print): Likewise.
5664 * valops.c (value_ind): Likewise.
5665 * value.c (coerce_ref): Likewise.
5667 * c-typeprint.c (c_type_print_varspec_suffix): Added
5668 check for not yet resolved high bound. If unresolved, print
5669 "variable length" string to the console instead of random
5672 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5673 property and store it as the high bound and flag the range accordingly.
5674 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5675 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5676 * gdbtypes.h (enum range_flags): New enum.
5677 (struct range_bounds): Add flags member.
5679 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5680 points to a constant blob.
5682 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5683 (evaluate_subexp_standard): Pass noside argument.
5684 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5685 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5686 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5687 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5688 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5690 2014-04-11 Keith Seitz <keiths@redhat.com>
5693 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5694 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5697 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5699 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5700 (evaluate_subexp_standard): Pass noside argument.
5701 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5702 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5703 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5704 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5705 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5707 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5709 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5710 points to a constant blob.
5712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5714 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5715 property and store it as the high bound and flag the range accordingly.
5716 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5717 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5718 * gdbtypes.h (enum range_flags): New enum.
5719 (struct range_bounds): Add flags member.
5721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5723 * c-typeprint.c (c_type_print_varspec_suffix): Added
5724 check for not yet resolved high bound. If unresolved, print
5725 "variable length" string to the console instead of random
5728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5730 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5731 (ada_template_to_fixed_record_type_1): Likewise.
5732 (ada_to_fixed_type_1): Likewise.
5733 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5734 (cp_print_value): Likewise.
5735 * d-valprint.c (dynamic_array_type): Likewise.
5736 * eval.c (evaluate_subexp_with_coercion): Likewise.
5737 * findvar.c (address_of_variable): Likewise.
5738 * jv-valprint.c (java_value_print): Likewise.
5739 * valops.c (value_ind): Likewise.
5740 * value.c (coerce_ref): Likewise.
5742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5744 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5745 value and retrieve the dynamic type size.
5747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5749 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5750 passed to sizeof is dynamic evaluate the argument to compute the length.
5752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5754 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5755 (dwarf2_evaluate_property): New function.
5756 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5757 * dwarf2read.c (attr_to_dynamic_prop): New function.
5758 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5760 * gdbtypes.c: Include dwarf2loc.h.
5761 (is_dynamic_type): New function.
5762 (resolve_dynamic_type): New function.
5763 (resolve_dynamic_bounds): New function.
5764 (get_type_length): New function.
5765 (check_typedef): Use get_type_length to compute type length.
5766 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5767 (TYPE_LOW_BOUND_KIND): New macro.
5768 (is_dynamic_type): New function prototype.
5769 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5770 to resolve dynamic properties of the type. Update comment.
5771 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5773 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5775 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5776 declaring high/low bounds and change uses accordingly. Call
5777 create_range_type instead of create_static_range_type.
5778 * gdbtypes.c (create_range_type): New function.
5779 (create_range_type): Convert bounds into struct bound_prop and pass
5780 them to create_range_type.
5781 * gdbtypes.h (struct bound_prop): New struct.
5782 (create_range_type): New function prototype.
5783 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5784 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5785 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5787 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5789 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5791 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5792 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5793 * ada-lang.c: All uses of create_range_type updated.
5794 * coffread.c: All uses of create_range_type updated.
5795 * dwarf2read.c: All uses of create_range_type updated.
5796 * f-exp.y: All uses of create_range_type updated.
5797 * m2-valprint.c: All uses of create_range_type updated.
5798 * mdebugread.c: All uses of create_range_type updated.
5799 * stabsread.c: All uses of create_range_type updated.
5800 * valops.c: All uses of create_range_type updated.
5801 * valprint.c: All uses of create_range_type updated.
5803 2014-04-10 Pedro Alves <palves@redhat.com>
5805 * breakpoint.c (single_step_breakpoints)
5806 (single_step_gdbarch): Move up in the file.
5807 (one_breakpoint_xfer_memory): New function, factored out from ...
5808 (breakpoint_xfer_memory): ... here. Also process single-step
5811 2014-04-09 Tristan Gingold <gingold@adacore.com>
5813 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5815 (darwin_decode_exception_message): Free port only after use.
5817 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5819 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5820 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5821 when setting the size of call_length.
5823 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5825 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5826 dereference TYPE_CODE_REF values.
5828 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5830 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5831 end of warning message.
5833 2014-04-03 Doug Evans <dje@google.com>
5835 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5836 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5838 2014-04-02 Alan Modra <amodra@gmail.com>
5840 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5841 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5842 (struct symbol_file_add_from_memory_args): Add size field.
5843 (find_vdso_size): New function.
5844 (add_vsyscall_page): Attempt to find vdso size.
5846 2014-04-01 Doug Evans <dje@google.com>
5848 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5850 2014-04-01 Tristan Gingold <gingold@adacore.com>
5852 * darwin-nat.c (darwin_encode_reply): Add prototype.
5853 (darwin_decode_exception_message): Reply to unknown inferiors.
5854 (darwin_decode_message): Handle message by id. Ignore message
5855 to unknown inferior.
5856 (darwin_wait): Discard unknown messages, add debug trace.
5858 2014-03-31 Doug Evans <dje@google.com>
5860 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5863 2014-03-31 Doug Evans <dje@google.com>
5865 New option "set print symbol-loading".
5867 * solib.c (solib_read_symbols): Only print symbol loading messages
5869 (solib_add): If symbol loading is in "brief" mode, notify user
5870 symbols are being loaded.
5871 (reload_shared_libraries_1): Ditto.
5872 * symfile.c (print_symbol_loading_off): New static global.
5873 (print_symbol_loading_brief): New static global.
5874 (print_symbol_loading_full): New static global.
5875 (print_symbol_loading_enums): New static global.
5876 (print_symbol_loading): New static global.
5877 (print_symbol_loading_p): New function.
5878 (symbol_file_add_with_addrs): Only print symbol loading messages
5880 (_initialize_symfile): Register "print symbol-loading" set/show
5882 * symfile.h (print_symbol_loading_p): Declare.
5884 2014-03-30 Doug Evans <xdje42@gmail.com>
5886 * infrun.c (set_last_target_status): New function.
5887 (handle_inferior_event): Call it.
5889 2014-03-30 Doug Evans <xdje42@gmail.com>
5891 * inferior.h (enum stop_kind): Improve comment.
5893 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5895 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5896 a reference, strip the reference layer before calling
5897 the lang_ops value_has_mutated callback.
5899 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5901 Remove some globals from our parser.
5902 * language.c (unk_lang_parser): Add "struct parser_state"
5904 * language.h (struct language_defn) <la_parser>: Likewise.
5905 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5906 (initialize_expout): Add "struct parser_state" argument.
5907 Rewrite function to use the parser state.
5908 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5909 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5910 write_exp_elt_longcst, write_exp_elt_dblcst,
5911 write_exp_elt_decfloatcst, write_exp_elt_type,
5912 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5913 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5914 write_dollar_variable): Likewise.
5915 (parse_exp_in_context_1): Use parser state.
5916 (insert_type_address_space): Add "struct parser_state" argument.
5918 (increase_expout_size): New function.
5919 * parser-defs.h: Forward declare "struct language_defn" and
5920 "struct parser_state".
5921 (expout, expout_size, expout_ptr): Remove extern declarations.
5922 (parse_gdbarch, parse_language): Rewrite macro declarations to
5923 accept the parser state.
5924 (struct parser_state): New struct.
5925 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5926 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5927 write_exp_elt_decfloatcst, write_exp_elt_type,
5928 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5929 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5930 write_exp_msymbol, write_dollar_variable,
5931 mark_struct_expression, insert_type_address_space): Add "struct
5932 parser_state" argument.
5933 (increase_expout_size): New function.
5934 * utils.c (do_clear_parser_state): New function.
5935 (make_cleanup_clear_parser_state): Likewise.
5936 * utils.h (make_cleanup_clear_parser_state): New function
5938 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5939 Update calls to write_exp* in order to pass the parser state.
5940 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5941 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5942 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5943 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5944 * stap-probe.c (stap_parse_register_operand): Likewise.
5945 (stap_parse_single_operand): Likewise.
5946 (stap_parse_argument_1): Likewise.
5947 (stap_parse_argument): Use parser state.
5948 * stap-probe.h: Include "parser-defs.h".
5949 (struct stap_parse_info) <pstate>: New field.
5950 * c-exp.y (parse_type): Rewrite to use parser state.
5951 (yyparse): Redefine to c_parse_internal.
5952 (pstate): New global variable.
5953 (parse_number): Add "struct parser_state" argument.
5954 (write_destructor_name): Likewise.
5955 (type_exp): Update calls to write_exp* and similars in order to
5957 (exp1, exp, variable, qualified_name, space_identifier,
5958 typename, typebase): Likewise.
5959 (write_destructor_name, parse_number, lex_one_token,
5960 classify_name, classify_inner_name, c_parse): Add "struct
5961 parser_state" argument. Update function to use parser state.
5962 * c-lang.h: Forward declare "struct parser_state".
5963 (c_parse): Add "struct parser_state" argument.
5964 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5965 (yyparse): Redefine macro to ada_parse_internal.
5966 (pstate): New variable.
5967 (write_int, write_object_renaming, write_var_or_type,
5968 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5969 type_int, type_long, type_long_long, type_float, type_double,
5970 type_long_double, type_char, type_boolean, type_system_address):
5971 Add "struct parser_state" argument.
5972 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5973 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5974 var_or_type, aggregate, aggregate_component_list,
5975 positional_list, others, component_group,
5976 component_associations): Update calls to write_exp* and similar
5977 functions in order to use parser state.
5978 (ada_parse, write_var_from_sym, write_int,
5979 write_exp_op_with_string, write_object_renaming,
5980 find_primitive_type, write_selectors, write_ambiguous_var,
5981 write_var_or_type, write_name_assoc, type_int, type_long,
5982 type_long_long, type_float, type_double, type_long_double,
5983 type_char, type_boolean, type_system_address): Add "struct
5984 parser_state" argument. Adjust function to use parser state.
5985 * ada-lang.c (parse): Likewise.
5986 * ada-lang.h: Forward declare "struct parser_state".
5987 (ada_parse): Add "struct parser_state" argument.
5988 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5989 calls to both functions.
5990 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5992 (yyparse): Redefine macro to f_parse_internal.
5993 (pstate): New variable.
5994 (parse_number): Add "struct parser_state" argument.
5995 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5996 and similars in order to use parser state.
5997 (parse_number): Adjust code to use parser state.
5999 (f_parse): New function.
6000 * f-lang.h: Forward declare "struct parser_state".
6001 (f_parse): Add "struct parser_state" argument.
6002 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6004 (yyparse): Redefine macro for java_parse_internal.
6005 (pstate): New variable.
6006 (push_expression_name, push_expression_name, insert_exp): Add
6007 "struct parser_state" argument.
6008 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6009 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6010 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6011 PostIncrementExpression, PostDecrementExpression,
6012 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6013 UnaryExpressionNotPlusMinus, CastExpression,
6014 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6015 RelationalExpression, EqualityExpression, AndExpression,
6016 ExclusiveOrExpression, InclusiveOrExpression,
6017 ConditionalAndExpression, ConditionalOrExpression,
6018 ConditionalExpression, Assignment, LeftHandSide): Update
6019 calls to write_exp* and similars in order to use parser state.
6020 (parse_number): Ajust code to use parser state.
6022 (java_parse): New function.
6023 (push_variable): Add "struct parser_state" argument. Adjust
6024 code to user parser state.
6025 (push_fieldnames, push_qualified_expression_name,
6026 push_expression_name, insert_exp): Likewise.
6027 * jv-lang.h: Forward declare "struct parser_state".
6028 (java_parse): Add "struct parser_state" argument.
6029 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6031 (yyparse): Redefine macro to m2_parse_internal.
6032 (pstate): New variable.
6033 (type_exp, exp, fblock, variable, type): Update calls to
6034 write_exp* and similars to use parser state.
6036 (m2_parse): New function.
6037 * m2-lang.h: Forward declare "struct parser_state".
6038 (m2_parse): Add "struct parser_state" argument.
6039 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6040 * objc-lang.h: Forward declare "struct parser_state".
6041 (end_msglist): Add "struct parser_state" argument.
6042 * p-exp.y (parse_type): Rewrite macro to use parser state.
6043 (yyparse): Redefine macro to pascal_parse_internal.
6044 (pstate): New variable.
6045 (parse_number): Add "struct parser_state" argument.
6046 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6047 write_exp* and similars in order to use parser state.
6048 (parse_number, yylex): Adjust code to use parser state.
6049 (pascal_parse): New function.
6050 * p-lang.h: Forward declare "struct parser_state".
6051 (pascal_parse): Add "struct parser_state" argument.
6052 * go-exp.y (parse_type): Rewrite macro to use parser state.
6053 (yyparse): Redefine macro to go_parse_internal.
6054 (pstate): New variable.
6055 (parse_number): Add "struct parser_state" argument.
6056 (type_exp, exp1, exp, variable, type): Update calls to
6057 write_exp* and similars in order to use parser state.
6058 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6059 to use parser state.
6060 (go_parse): Likewise.
6061 * go-lang.h: Forward declare "struct parser_state".
6062 (go_parse): Add "struct parser_state" argument.
6064 2014-03-27 Doug Evans <dje@google.com>
6066 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6068 2014-03-27 Doug Evans <dje@google.com>
6070 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6071 Remove argument abbrev_section. All callers updated.
6073 2014-03-27 Doug Evans <dje@google.com>
6075 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6076 addr_base, ranges_base.
6078 2014-03-26 Keith Seitz <keiths@redhat.com>
6080 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6081 types, not VAR_DOMAIN.
6083 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6085 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6087 * features/nios2-linux.c: Regenerated.
6088 * features/nios2.c: Regenerated.
6090 2014-03-25 Pedro Alves <palves@redhat.com>
6092 * cli/cli-script.c (script_from_file): Force the interpreter to
6095 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6097 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6098 small stack allocation.
6100 2014-03-24 Tristan Gingold <gingold@adacore.com>
6102 * darwin-nat.c (exc_server): Remove unused prototype.
6103 (darwin_dump_message): Correctly display data on x86_64.
6104 (darwin_encode_reply): Fix style.
6105 Add comments and fix indentation.
6107 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6109 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6111 2014-03-22 Doug Evans <xdje42@gmail.com>
6113 * infcmd.c: Whitespace fixes.
6114 (interrupt_command): Merge two function comments into one.
6116 2014-03-22 Doug Evans <xdje42@gmail.com>
6118 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6121 2014-03-22 Yao Qi <yao@codesourcery.com>
6123 * remote.c (target_read_live_memory): Remove.
6124 (memory_xfer_live_readonly_partial): Rename it to
6125 remote_xfer_live_readonly_partial. Remove argument 'object'.
6126 All callers updated. Call remote_read_bytes_1
6127 instead of target_read_live_memory.
6128 * tracepoint.c (set_traceframe_number): Remove.
6129 (make_cleanup_restore_traceframe_number): Likewise .
6130 * tracepoint.h (set_traceframe_number): Remove declaration.
6131 (make_cleanup_restore_traceframe_number): Likewise.
6133 2014-03-22 Yao Qi <yao@codesourcery.com>
6135 * remote.c (remote_read_bytes): Move code on reading from the
6137 (remote_read_bytes_1): ... here. New function.
6139 2014-03-22 Yao Qi <yao@codesourcery.com>
6141 * ctf.c (ctf_xfer_partial): Check the return value of
6142 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6143 return TARGET_XFER_UNAVAILABLE.
6144 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6145 * target.c (target_read_live_memory): Move it to remote.c.
6146 (memory_xfer_live_readonly_partial): Likewise.
6147 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6148 * remote.c (target_read_live_memory): Moved from target.c.
6149 (memory_xfer_live_readonly_partial): Likewise.
6150 (remote_read_bytes): Factored out from
6151 memory_xfer_partial_1.
6153 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6155 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6158 2014-03-21 Pedro Alves <palves@redhat.com>
6160 * infrun.c (normal_stop): Extend comment.
6162 2014-03-21 Hui Zhu <hui@codesourcery.com>
6163 Pedro Alves <palves@redhat.com>
6165 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6167 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6168 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6169 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6171 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6173 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6174 `z' formatted output modifier.
6176 2014-03-20 Tom Tromey <tromey@redhat.com>
6177 Sergio Durigan Junior <sergiodj@redhat.com>
6179 * probe.c (parse_probes): Turn assert into an ordinary error.
6180 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6181 exceptions when parsing probes. Rearrange the code for clarity.
6183 2014-03-20 Tom Tromey <tromey@redhat.com>
6186 * top.c (execute_command): Only dispatch events if the command
6189 2014-03-20 Tom Tromey <tromey@redhat.com>
6192 * infcall.c: Include event-top.h.
6193 (run_inferior_call): Call async_disable_stdin if needed.
6195 2014-03-20 Pedro Alves <palves@redhat.com>
6197 * infrun.c (prepare_to_proceed): Delete.
6198 (thread_still_needs_step_over): New function.
6199 (find_thread_needs_step_over): New function.
6200 (proceed): If the current thread needs a step-over, set its
6201 steping_over_breakpoint flag. Adjust to use
6202 find_thread_needs_step_over instead of prepare_to_proceed.
6203 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6204 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6206 (switch_back_to_stepped_thread): Step over breakpoints of all
6207 threads not the stepping thread, before switching back to the
6210 2014-03-20 Pedro Alves <palves@redhat.com>
6212 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6214 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6215 * infrun.c (saved_singlestep_ptid)
6216 (stepping_past_singlestep_breakpoint): Delete.
6217 (resume): Remove stepping_past_singlestep_breakpoint handling.
6218 (proceed): Store the prev_pc of the stepping thread too.
6219 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6221 (enum infwait_states): Delete infwait_thread_hop_state.
6222 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6224 (handle_inferior_event): Adjust.
6225 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6226 handling and the thread-hop code. Before removing single-step
6227 breakpoints, check whether the thread hit a single-step breakpoint
6228 of another thread. If it did, the trap is not a random signal.
6229 (switch_back_to_stepped_thread): If the event thread hit a
6230 single-step breakpoint, unblock it before switching to the
6231 stepping thread. Handle the case of the stepped thread having
6233 (keep_going): Handle the case of the current thread moving past a
6234 single-step breakpoint.
6236 2014-03-20 Pedro Alves <palves@redhat.com>
6239 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6240 are being stepped over.
6241 (breakpoint_address_match): Make extern.
6242 * breakpoint.h (breakpoint_address_match): New declaration.
6243 * inferior.h (stepping_past_instruction_at): New declaration.
6244 * infrun.c (struct step_over_info): New type.
6245 (step_over_info): New global.
6246 (set_step_over_info, clear_step_over_info)
6247 (stepping_past_instruction_at): New functions.
6248 (handle_inferior_event): Clear the step-over info when
6249 trap_expected is cleared.
6250 (resume): Remove now stale comment.
6251 (clear_proceed_status): Clear step-over info.
6252 (proceed): Adjust step-over handling to set or clear the step-over
6253 info instead of removing all breakpoints.
6254 (handle_signal_stop): When setting up a thread-hop, don't remove
6256 (stop_stepping): Clear step-over info.
6257 (keep_going): Adjust step-over handling to set or clear step-over
6258 info and then always inserting breakpoints, instead of removing
6259 all breakpoints when stepping over one.
6261 2014-03-20 Pedro Alves <palves@redhat.com>
6263 * infrun.c (previous_inferior_ptid): Adjust comment.
6264 (deferred_step_ptid): Delete.
6265 (infrun_thread_ptid_changed, prepare_to_proceed)
6266 (init_wait_for_inferior): Adjust.
6267 (handle_signal_stop): Delete deferred_step_ptid handling.
6269 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6272 * defs.h (sync_quit_force_run): New declaration.
6273 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6274 * event-top.c (async_sigterm_handler): New declaration.
6275 (async_sigterm_token): New variable.
6276 (async_init_signals): Create also async_sigterm_token.
6277 (async_sigterm_handler): New function.
6278 (sync_quit_force_run): New variable.
6279 (handle_sigterm): Replace quit_force call by other calls.
6280 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6282 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6284 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6285 offset into SPE pseudo registers.
6287 2014-03-18 Pedro Alves <palves@redhat.com>
6290 * inferior.h (print_stop_event): Declare.
6291 * infrun.c (print_stop_event): New, factored out from ...
6292 (normal_stop): ... this.
6293 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6294 of bpstat_print/print_stack_frame.
6296 2014-03-17 Tom Tromey <tromey@redhat.com>
6298 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6300 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6302 * ada-lang.c (decode_constrained_packed_array): Perform a
6303 minimal coercion for reference with coerce_ref instead of
6306 2014-03-17 Tristan Gingold <gingold@adacore.com>
6308 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6309 (darwin_solib_create_inferior_hook): Emit a warning if version
6312 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6314 * python/py-value.c (get_field_flag): Cast flag_name argument to
6315 PyObject_GetAttrString to support Python 2.4.
6317 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6319 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6320 (Global Maintainers): Remove Jan Kratochvil.
6322 2014-03-14 Pedro Alves <palves@redhat.com>
6324 * inferior.h (terminal_ours_for_output): Rename to ...
6325 (child_terminal_ours_for_output): ... this.
6326 (terminal_save_ours): Rename to ...
6327 (child_terminal_save_ours): ... this.
6328 (terminal_ours): Rename to ...
6329 (child_terminal_ours): ... this.
6330 (terminal_inferior): Rename to ...
6331 (child_terminal_inferior): ... this.
6332 (terminal_init_inferior): Rename to ...
6333 (child_terminal_init_inferior): ... this.
6334 (terminal_init_inferior_with_pgrp): Rename to ...
6335 (child_terminal_init_inferior_with_pgrp): ... this.
6336 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6337 (child_terminal_init_with_pgrp): ... this.
6338 (terminal_save_ours): Rename to ...
6339 (child_terminal_save_ours): ... this.
6340 (terminal_init_inferior): Rename to ...
6341 (child_terminal_init): ... this. Adjust.
6342 (terminal_inferior): Rename to ...
6343 (child_terminal_inferior): ... this.
6344 (terminal_ours_for_output): Rename to ...
6345 (child_terminal_ours_for_output): ... this. Adjust.
6346 (terminal_ours): Rename to ...
6347 (child_terminal_ours): ... this.
6348 (terminal_ours_1): Rename to ...
6349 (child_terminal_ours_1): ... this. Adjust.
6350 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6351 * windows-nat.c (do_initial_windows_stuff): Adjust.
6352 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6353 (gnu_terminal_init): ... this. Adjust.
6354 (gnu_target): Adjust.
6355 * inf-child.c (inf_child_target): Adjust.
6357 2014-03-13 Doug Evans <xdje42@gmail.com>
6360 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6363 2014-03-13 Doug Evans <xdje42@gmail.com>
6365 * value.c (record_latest_value): Call release_value_or_incref
6366 instead of release_value.
6368 2014-03-13 Pedro Alves <palves@redhat.com>
6370 * procfs.c (procfs_target): Don't override to_shortname,
6371 to_longname or to_doc.
6373 2014-03-13 Pedro Alves <palves@redhat.com>
6375 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6376 Unix in user visible strings.
6378 2014-03-12 Stan Shebs <stan@codesourcery.com>
6380 * gdbtypes.h: Annotate comments for Doxygen, add a page
6381 block comment with some general info.
6383 2014-03-12 Pedro Alves <palves@redhat.com>
6385 * infcmd.c (prepare_execution_command): New function, factored out
6386 from several execution commands.
6387 (run_command_1, continue_command, step_1, jump_command)
6388 (signal_command, until_command, advance_command, finish_command)
6389 (attach_command): Use prepare_execution_command.
6391 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6393 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6396 (struct arm_linux_thread_points): Removed.
6397 (struct arm_linux_process_info): New.
6398 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6399 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6400 (arm_linux_find_breakpoints_by_tid): Removed.
6401 (struct arch_lwp_info): New.
6402 (arm_linux_find_process_pid): New functions.
6403 (arm_linux_add_process): New functions.
6404 (arm_linux_process_info_get): New functions.
6405 (arm_linux_forget_process): New function.
6406 (arm_linux_get_debug_reg_state): New function.
6407 (struct update_registers_data): New.
6408 (update_registers_callback): New function.
6409 (arm_linux_insert_hw_breakpoint1): Updated.
6410 (arm_linux_remove_hw_breakpoint1): Updated.
6411 (arm_linux_insert_hw_breakpoint): Updated.
6412 (arm_linux_remove_hw_breakpoint): Updated.
6413 (arm_linux_insert_watchpoint): Updated.
6414 (arm_linux_remove_watchpoint): Updated.
6415 (arm_linux_new_thread): Updated.
6416 (arm_linux_prepare_to_resume): New function.
6417 (arm_linux_new_fork): New function.
6418 (_initialize_arm_linux_nat): Updated.
6420 2014-03-12 Pedro Alves <palves@redhat.com>
6422 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6424 2014-03-12 Tom Tromey <tromey@redhat.com>
6426 * inf-child.c (return_zero): New function.
6427 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6428 * aix-thread.c (aix_thread_inferior_created): New function.
6429 (aix_thread_attach): Remove.
6430 (init_aix_thread_ops): Don't set to_attach.
6431 (_initialize_aix_thread): Register inferior_created observer.
6432 * corelow.c (init_core_ops): Don't set to_attach or
6434 * exec.c (init_exec_ops): Don't set to_attach or
6436 * infcmd.c (run_command_1): Use find_run_target. Make direct
6438 (attach_command): Use find_attach_target. Make direct target
6440 * record-btrace.c (init_record_btrace_ops): Don't set
6442 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6444 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6445 set to_create_inferior.
6446 * target.c (complete_target_initialization): Add assertion.
6447 (target_create_inferior): Remove.
6448 (find_default_attach, find_default_create_inferior): Remove.
6449 (find_attach_target, find_run_target): New functions.
6450 (find_default_is_async_p, find_default_can_async_p)
6451 (target_supports_non_stop, target_attach): Remove.
6452 (init_dummy_target): Don't set to_create_inferior or
6453 to_supports_non_stop.
6454 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6455 TARGET_DEFAULT_FUNC.
6456 <to_create_inferior>: Add comment.
6457 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6458 TARGET_DEFAULT_RETURN.
6459 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6460 (find_attach_target, find_run_target): Declare.
6461 (target_create_inferior): Remove.
6462 (target_has_execution_1): Update comment.
6463 (target_supports_non_stop): Remove.
6464 * target-delegates.c: Rebuild.
6466 2014-03-12 Pedro Alves <palves@redhat.com>
6468 * inf-child.h: Update comment to not mention Unix.
6470 2014-03-12 Pedro Alves <palves@redhat.com>
6472 * inf-child.c: Update top comment to not mention Unix. Add
6473 generic comment describing how this target is meant to be used.
6474 (inf_child_post_attach, inf_child_post_startup_inferior)
6475 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6478 2014-03-12 Pedro Alves <palves@redhat.com>
6480 * nto-procfs.c: Include inf-child.h.
6481 (procfs_ops): Delete global.
6482 (procfs_can_run): Delete method.
6483 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6484 target pointer instead of referencing procfs_ops.
6485 (procfs_prepare_to_store): Delete.
6486 (init_procfs_ops): Delete function.
6487 (procfs_target): New function, based on init_procfs_ops, but
6488 inherit inf_child_target.
6489 (_initialize_procfs): Use procfs_target.
6491 2014-03-12 Pedro Alves <palves@redhat.com>
6493 * windows-nat.c: Include inf-child.h.
6494 (windows_ops): Delete global.
6495 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6497 (init_windows_ops): Delete function.
6498 (windows_target): New function, based on init_windows_ops, but
6499 inherit inf_child_target.
6500 (_initialize_windows_nat): Use windows_target. Install x86
6501 specific target methods here.
6503 2014-03-10 Doug Evans <xdje42@gmail.com>
6505 * guile/guile.c (call_initialize_gdb_module): New function.
6506 (initialize_guile): Replace call to scm_init_guile with call to
6509 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6511 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6512 in call to TYPE_CODE macro.
6514 2014-03-10 Jerome Guitton <guitton@adacore.com>
6516 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6517 Resolve tagged types to full view.
6519 2014-03-10 Hui Zhu <hui@codesourcery.com>
6521 * target.h (target_insert_breakpoint): Remove "hardware" from its
6524 2014-03-07 Doug Evans <dje@google.com>
6526 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6528 2014-03-07 Doug Evans <dje@google.com>
6530 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6531 Remove unused local comp_dir_attr. Assert exactly one of
6532 stub_comp_unit_die, stub_comp_dir is non-NULL.
6534 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6536 * target.h (complete_target_initialization, add_target):
6539 2014-03-07 Pedro Alves <palves@redhat.com>
6541 * go32-nat.c: Include inf-child.h.
6542 (go32_ops): Delete global.
6543 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6545 (go32_create_inferior): Push the passed in target pointer instead
6546 of referencing go32_ops.
6547 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6548 (go32_target): New function, based on init_go32_ops, but inherit
6550 (_initialize_go32_nat): Use go32_target. Move parts of
6553 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6555 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6556 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6557 SYMBOL_VALUE_ADDRESS.
6558 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6560 2014-03-06 Yao Qi <yao@codesourcery.com>
6562 * breakpoint.c (get_tracepoint_by_number): Remove argument
6563 optional_p. All callers updated. Adjust comments. Update
6565 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6567 2014-03-06 Yao Qi <yao@codesourcery.com>
6569 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6570 early if get_number returns zero. Use 'p' instead of 'args'.
6572 2014-03-06 Yao Qi <yao@codesourcery.com>
6574 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6577 2014-03-06 Yao Qi <yao@codesourcery.com>
6579 PR breakpoints/16508
6580 * tracepoint.c (check_trace_running): New function.
6581 (trace_find_command): Move code to check_trace_running and
6582 call check_trace_running.
6583 (trace_find_pc_command): Likewise.
6584 (trace_find_tracepoint_command): Likewise.
6585 (trace_find_line_command): Likewise.
6586 (trace_find_range_command): Likewise.
6587 * tracepoint.h (check_trace_running): Likewise.
6588 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6590 2014-03-06 Yao Qi <yao@codesourcery.com>
6592 * target.h (struct target_ops) <to_traceframe_info>: Use
6593 TARGET_DEFAULT_NORETURN (tcomplain ()).
6594 * target-delegates.c: Regenerated.
6596 2014-03-05 Pedro Alves <palves@redhat.com>
6599 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6600 void. Update comment.
6601 (dcache_xfer_memory): Delete.
6602 (dcache_read_memory_partial): New, based on the read bits of
6604 (dcache_update): Add status parameter. Use ULONGEST for len, and
6605 adjust. Discard cache lines if the reason for the update was
6607 * dcache.h (dcache_xfer_memory): Delete declaration.
6608 (dcache_read_memory_partial): New declaration.
6609 (dcache_update): Update prototype.
6610 * target.c (raw_memory_xfer_partial): Update the dcache here.
6611 (memory_xfer_partial_1): Don't handle dcache writes here.
6613 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6615 * remote-sim.c (gdbsim_load): Add const to prog.
6617 2014-03-03 Tom Tromey <tromey@redhat.com>
6619 * elfread.c (probe_key): Change to bfd_data.
6620 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6621 now per-BFD, not per-objfile.
6622 * stap-probe.c (stap_probe_destroy): Update comment.
6623 (handle_stap_probe): Allocate on the per-BFD obstack.
6625 2014-03-03 Tom Tromey <tromey@redhat.com>
6627 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6628 * breakpoint.c (create_longjmp_master_breakpoint): Use
6630 (add_location_to_breakpoint, bkpt_probe_insert_location)
6631 (bkpt_probe_remove_location): Update.
6632 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6633 * elfread.c (elf_symfile_relocate_probe): Remove.
6634 (elf_probe_fns): Update.
6635 (insert_exception_resume_breakpoint): Change type of "probe"
6636 parameter to bound_probe.
6637 (check_exception_resume): Update.
6638 * objfiles.c (objfile_relocate1): Don't relocate probes.
6639 * probe.c (bound_probe_s): New typedef.
6640 (parse_probes): Use get_probe_address. Set sal's objfile.
6641 (find_probe_by_pc): Return a bound_probe.
6642 (collect_probes): Return a VEC(bound_probe_s).
6643 (compare_probes): Update.
6644 (gen_ui_out_table_header_info): Change type of "probes"
6646 (info_probes_for_ops): Update.
6647 (get_probe_address): New function.
6648 (probe_safe_evaluate_at_pc): Update.
6649 * probe.h (struct probe_ops) <get_probe_address>: New field.
6650 <set_semaphore, clear_semaphore>: Add objfile parameter.
6651 (struct probe) <objfile>: Remove field.
6653 <address>: Update comment.
6654 (struct bound_probe): New.
6655 (find_probe_by_pc): Return a bound_probe.
6656 (get_probe_address): Declare.
6657 * solib-svr4.c (struct probe_and_action) <address>: New field.
6658 (hash_probe_and_action, equal_probe_and_action): Update.
6659 (register_solib_event_probe): Add address parameter.
6660 (solib_event_probe_at): Update.
6661 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6663 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6664 (stap_get_probe_address): New function.
6665 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6666 (compile_probe_arg): Update.
6667 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6669 (handle_stap_probe): Don't relocate the probe.
6670 (stap_relocate): Remove.
6671 (stap_gen_info_probes_table_values): Update.
6672 (stap_probe_ops): Remove stap_relocate.
6673 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6674 (debug_sym_probe_fns): Update.
6675 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6676 * symtab.c (init_sal): Use memset.
6677 * symtab.h (struct symtab_and_line) <objfile>: New field.
6678 * tracepoint.c (start_tracing, stop_tracing): Update.
6680 2014-03-03 Tom Tromey <tromey@redhat.com>
6682 * probe.h (parse_probes, find_probe_by_pc)
6683 (find_probes_in_objfile): Fix comments.
6685 2014-03-02 Doug Evans <xdje42@gmail.com>
6687 * infrun.c (handle_signal_stop): Replace test for
6688 TARGET_WAITKIND_STOPPED with an assert.
6690 2014-03-02 Doug Evans <xdje42@gmail.com>
6692 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6694 2014-03-02 Doug Evans <xdje42@gmail.com>
6696 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6698 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6700 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6702 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6704 * i386obsd-nat.c: Include "obsd-nat.h".
6705 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6707 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6709 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6711 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6713 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6715 * mips64obsd-nat.c: Include "obsd-nath".
6716 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6718 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6720 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6722 * amd64obsd-nat.c: Include "obsd-nat,h.
6723 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6725 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6727 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6729 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6730 (find_overload_match): Update call to find_oload_champ.
6731 (find_oload_champ_namespace_loop): Likewise
6733 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6735 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6737 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6738 * config/sparc/obsd64.mh: New file.
6739 * sparc64obsd-nat.c: New file.
6741 * obsd-nat.h: New file.
6742 * obsd-nat.c: New file.
6743 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6744 (ALLDEPFILES): Add obsd-nat.c.
6746 2014-02-28 Tom Tromey <tromey@redhat.com>
6748 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6749 * cli-out.h (cli_ui_out_impl): Now const.
6750 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6751 * ui-out.c (struct ui_out) <impl>: Now const.
6752 (default_ui_out_impl): Now const.
6753 (ui_out_new): Make 'impl' parameter const.
6754 * ui-out.h (ui_out_new): Update.
6756 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6758 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6760 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6762 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6764 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6766 Additional PR 8882 fix.
6767 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6769 2014-02-27 Pedro Alves <palves@redhat.com>
6771 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6774 2014-02-27 Pedro Alves <palves@redhat.com>
6777 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6778 * nat/linux-waitpid.c: Include string.h.
6779 (status_to_str): Moved here and made extern.
6780 * nat/linux-waitpid.h (status_to_str): New declaration.
6782 2014-02-27 Hui Zhu <hui@codesourcery.com>
6785 * infrun.c (ptid_match): Move ...
6786 * common/ptid.c (ptid_match): ... here.
6787 * inferior.h (ptid_match): Move ...
6788 * common/ptid.h (ptid_match): ... here.
6790 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6792 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6793 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6796 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6798 * obsd-tdep.c (obsd_auxv_parse): New function.
6799 (obsd_init_abi): Set auxv_parse.
6801 * gdbarch.sh (auxv_parse): New.
6802 * gdbarch.h: Regenerated.
6803 * gdbarch.c: Regenerated.
6804 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6806 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6808 * guile/scm-value.c (gdbscm_history_append_x): New function.
6809 (value_functions): Add it.
6811 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6813 * dwarf2read.c (attr_value_as_address): New function.
6814 (dwarf2_find_base_address, read_call_site_scope): Use
6815 attr_value_as_address in place of DW_ADDR.
6816 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6817 the low and high addresses. Slight rework of the handling
6818 of the high pc being a constant form, and limit it to
6819 DWARF verson 4 or higher.
6820 (dwarf2_record_block_ranges): Likewise.
6821 (read_partial_die): Likewise.
6822 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6824 2014-02-26 Tom Tromey <tromey@redhat.com>
6826 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6828 2014-02-26 Tom Tromey <tromey@redhat.com>
6830 * elfread.c (elf_read_minimal_symbols): Return early if
6831 minimal symbols have already been read. Add "ei" parameter.
6832 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6833 * minsyms.c (prim_record_minimal_symbol_full): Update.
6834 * objfiles.h (struct objstats) <n_minsyms>: Move...
6835 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6836 * symmisc.c (print_objfile_statistics): Update.
6838 2014-02-26 Tom Tromey <tromey@redhat.com>
6840 * elfread.c (elf_read_minimal_symbols): New function, from
6842 (elf_symfile_read): Call it.
6844 2014-02-26 Tom Tromey <tromey@redhat.com>
6846 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6847 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6848 (lookup_minimal_symbol_solib_trampoline)
6849 (lookup_minimal_symbol_by_pc_section_1)
6850 (lookup_minimal_symbol_and_objfile): Update.
6851 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6852 Don't allocate a minimal symbol if minsyms have already been read.
6853 (build_minimal_symbol_hash_tables): Update.
6854 (install_minimal_symbols): Do nothing if minsyms already read.
6855 Use the per-BFD obstack.
6856 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6857 * objfiles.c (allocate_objfile): Call
6858 terminate_minimal_symbol_table later.
6859 (have_minimal_symbols): Update.
6860 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6861 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6862 Move from struct objfile.
6863 <minsyms_read>: New field.
6864 (struct objfile) <msymbols, minimal_symbol_count,
6865 msymbol_hash, msymbol_demangled_hash>: Move.
6866 (ALL_OBJFILE_MSYMBOLS): Update.
6867 * symfile.c (read_symbols): Set minsyms_read.
6868 (reread_symbols): Update.
6869 * symmisc.c (dump_objfile, dump_msymbols): Update.
6871 2014-02-26 Tom Tromey <tromey@redhat.com>
6873 * minsyms.c (msymbols_sort): Remove.
6874 * minsyms.h (msymbols_sort): Remove.
6875 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6876 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6877 * elfread.c (elf_symtab_read): Don't add section offsets.
6878 * xcoffread.c (record_minimal_symbol): Don't add section offset
6879 to minimal symbol address.
6880 * somread.c (text_offset, data_offset): Remove.
6881 (som_symtab_read): Don't add section offsets to minimal symbol
6883 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6884 Don't add section offsets to minimal symbols.
6885 * coffread.c (coff_symtab_read): Don't add section offsets
6886 to minimal symbol addresses.
6887 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6888 to minimal symbol addresses.
6889 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6890 section offset to minimal symbol addresses.
6891 * mdebugread.c (parse_partial_symbols): Don't add section
6892 offset to minimal symbol addresses.
6893 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6894 offset to minimal symbol addresses.
6896 2014-02-26 Tom Tromey <tromey@redhat.com>
6898 * ada-lang.c (ada_main_name): Update.
6899 (ada_add_standard_exceptions): Update.
6900 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6901 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6902 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6903 * auxv.c (ld_so_xfer_auxv): Update.
6904 * avr-tdep.c (avr_scan_prologue): Update.
6905 * ax-gdb.c (gen_var_ref): Update.
6906 * blockframe.c (get_pc_function_start)
6907 (find_pc_partial_function_gnu_ifunc): Update.
6908 * breakpoint.c (create_overlay_event_breakpoint)
6909 (create_longjmp_master_breakpoint)
6910 (create_std_terminate_master_breakpoint)
6911 (create_exception_master_breakpoint): Update.
6912 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6913 * c-valprint.c (c_val_print): Update.
6914 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6915 * common/agent.c (agent_look_up_symbols): Update.
6916 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6917 * dwarf2loc.c (call_site_to_target_addr): Update.
6918 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6919 * elfread.c (elf_gnu_ifunc_record_cache)
6920 (elf_gnu_ifunc_resolve_by_got): Update.
6921 * findvar.c (default_read_var_value): Update.
6922 * frame.c (inside_main_func): Update.
6923 * frv-tdep.c (frv_frame_this_id): Update.
6924 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6925 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6927 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6928 (hppa_hpux_find_dummy_bpaddr): Update.
6929 * hppa-tdep.c (hppa_symbol_address): Update.
6930 * infcmd.c (until_next_command): Update.
6931 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6933 * linespec.c (minsym_found, add_minsym): Update.
6934 * linux-nat.c (get_signo): Update.
6935 * linux-thread-db.c (inferior_has_bug): Update.
6936 * m32c-tdep.c (m32c_return_value)
6937 (m32c_m16c_address_to_pointer): Update.
6938 * m32r-tdep.c (m32r_frame_this_id): Update.
6939 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6940 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6941 * maint.c (maintenance_translate_address): Update.
6942 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6943 (frob_address): New function.
6944 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6945 frob_address. Rename parameter to "pc_in".
6946 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6948 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6950 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6951 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6952 * objc-lang.c (find_objc_msgsend): Update.
6953 * objfiles.c (objfile_relocate1): Update.
6954 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6955 * p-valprint.c (pascal_val_print): Update.
6956 * parse.c (write_exp_msymbol): Update.
6957 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6958 (ppc_elfv2_skip_entrypoint): Update.
6959 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6960 * printcmd.c (build_address_symbolic, msym_info)
6961 (address_info): Update.
6962 * proc-service.c (ps_pglobal_lookup): Update.
6963 * psymtab.c (find_pc_sect_psymtab_closer)
6964 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6965 Change msymbol parameter to bound_minimal_symbol.
6966 * ravenscar-thread.c (get_running_thread_id): Update.
6967 * remote.c (remote_check_symbols): Update.
6968 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6970 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6971 * solib-dsbt.c (lm_base): Update.
6972 * solib-frv.c (lm_base, main_got): Update.
6973 * solib-irix.c (locate_base): Update.
6974 * solib-som.c (som_solib_create_inferior_hook)
6975 (link_map_start): Update.
6976 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6977 * solib-svr4.c (elf_locate_base, enable_break): Update.
6978 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6979 (flush_ea_cache): Update.
6980 * stabsread.c (define_symbol, scan_file_globals): Update.
6981 * stack.c (find_frame_funname): Update.
6982 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6983 (debug_qf_find_pc_sect_symtab): Update.
6984 * symfile.c (simple_read_overlay_table)
6985 (simple_overlay_update): Update.
6986 * symfile.h (struct quick_symbol_functions)
6987 <find_pc_sect_symtab>: Change type of msymbol to
6988 bound_minimal_symbol.
6989 * symmisc.c (dump_msymbols): Update.
6990 * symtab.c (find_pc_sect_symtab_via_partial)
6991 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6992 (search_symbols, print_msymbol_info): Update.
6993 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6994 (MSYMBOL_VALUE_ADDRESS): Redefine.
6995 (BMSYMBOL_VALUE_ADDRESS): New macro.
6996 * tracepoint.c (scope_info): Update.
6997 * tui/tui-disasm.c (tui_find_disassembly_address)
6998 (tui_get_begin_asm_address): Update.
6999 * valops.c (find_function_in_inferior): Update.
7000 * value.c (value_static_field, value_fn_field): Update.
7002 2014-02-26 Tom Tromey <tromey@redhat.com>
7004 * ada-lang.c (ada_update_initial_language): Update.
7005 (ada_main_name, ada_has_this_exception_support): Update.
7006 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7007 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7008 * arm-tdep.c (arm_skip_stub): Update.
7009 * auxv.c (ld_so_xfer_auxv): Update.
7010 * avr-tdep.c (avr_scan_prologue): Update.
7011 * ax-gdb.c (gen_var_ref): Update.
7012 * breakpoint.c (struct breakpoint_objfile_data)
7013 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7014 type to bound_minimal_symbol.
7015 (create_overlay_event_breakpoint)
7016 (create_longjmp_master_breakpoint)
7017 (create_std_terminate_master_breakpoint)
7018 (create_exception_master_breakpoint): Update.
7019 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7020 * c-exp.y (classify_name): Update.
7021 * coffread.c (coff_symfile_read): Update.
7022 * common/agent.c (agent_look_up_symbols): Update.
7023 * d-lang.c (d_main_name): Update.
7024 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7025 * dec-thread.c (enable_dec_thread): Update.
7026 * dwarf2loc.c (call_site_to_target_addr): Update.
7027 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7028 * eval.c (evaluate_subexp_standard): Update.
7029 * findvar.c (struct minsym_lookup_data) <result>: Change type
7030 to bound_minimal_symbol.
7032 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7033 * frame.c (inside_main_func): Update.
7034 * frv-tdep.c (frv_frame_this_id): Update.
7035 * gcore.c (call_target_sbrk): Update.
7036 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7037 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7039 * go-lang.c (go_main_name): Update.
7040 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7041 (hppa_hpux_find_import_stub_for_addr): Update.
7042 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7043 Update. Change return type.
7044 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7046 * jit.c (jit_breakpoint_re_set_internal): Update.
7047 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7049 * linux-nat.c (get_signo): Update.
7050 * linux-thread-db.c (inferior_has_bug): Update
7051 * m32c-tdep.c (m32c_return_value)
7052 (m32c_m16c_address_to_pointer): Update.
7053 * m32r-tdep.c (m32r_frame_this_id): Update.
7054 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7055 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7056 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7057 lookup_minimal_symbol. Change return type.
7058 (lookup_minimal_symbol): Remove.
7059 (lookup_bound_minimal_symbol): Update.
7060 (lookup_minimal_symbol_text): Change return type.
7061 (lookup_minimal_symbol_solib_trampoline): Change return type.
7062 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7063 (lookup_minimal_symbol_solib_trampoline): Change return type.
7064 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7065 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7066 (value_nsstring, find_imps): Update.
7067 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7068 * p-lang.c (pascal_main_name): Update.
7069 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7070 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7071 * proc-service.c (ps_pglobal_lookup): Update.
7072 * ravenscar-thread.c (get_running_thread_msymbol): Change
7074 (has_ravenscar_runtime, get_running_thread_id): Update.
7075 * remote.c (remote_check_symbols): Update.
7076 * sol-thread.c (ps_pglobal_lookup): Update.
7077 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7078 * solib-dsbt.c (lm_base): Update.
7079 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7081 * solib-irix.c (locate_base): Update.
7082 * solib-som.c (som_solib_create_inferior_hook)
7083 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7085 * solib-spu.c (spu_enable_break): Update.
7086 * solib-svr4.c (elf_locate_base, enable_break): Update.
7087 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7088 (flush_ea_cache): Update.
7089 * stabsread.c (define_symbol): Update.
7090 * symfile.c (simple_read_overlay_table): Update.
7091 * symtab.c (find_pc_sect_line): Update.
7092 * tracepoint.c (scope_info): Update.
7093 * tui-disasm.c (tui_get_begin_asm_address): Update.
7094 * value.c (value_static_field): Update.
7096 2014-02-26 Tom Tromey <tromey@redhat.com>
7098 * minsyms.c (prim_record_minimal_symbol_full): Use
7099 SET_MSYMBOL_VALUE_ADDRESS.
7100 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7101 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7102 SET_MSYMBOL_VALUE_ADDRESS.
7103 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7104 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7106 2014-02-26 Tom Tromey <tromey@redhat.com>
7108 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7109 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7110 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7111 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7112 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7113 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7114 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7115 * ada-lang.c (ada_main_name): Update.
7116 (ada_lookup_simple_minsym): Update.
7117 (ada_make_symbol_completion_list): Update.
7118 (ada_add_standard_exceptions): Update.
7119 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7120 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7121 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7122 * arm-tdep.c (skip_prologue_function): Update.
7123 (arm_skip_stack_protector, arm_skip_stub): Update.
7124 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7125 (arm_wince_skip_main_prologue): Update.
7126 * auxv.c (ld_so_xfer_auxv): Update.
7127 * avr-tdep.c (avr_scan_prologue): Update.
7128 * ax-gdb.c (gen_var_ref): Update.
7129 * block.c (call_site_for_pc): Update.
7130 * blockframe.c (get_pc_function_start): Update.
7131 (find_pc_partial_function_gnu_ifunc): Update.
7132 * breakpoint.c (create_overlay_event_breakpoint): Update.
7133 (create_longjmp_master_breakpoint): Update.
7134 (create_std_terminate_master_breakpoint): Update.
7135 (create_exception_master_breakpoint): Update.
7136 (resolve_sal_pc): Update.
7137 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7138 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7140 * c-valprint.c (c_val_print): Update.
7141 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7142 * coffread.c (coff_symfile_read): Update.
7143 * common/agent.c (agent_look_up_symbols): Update.
7144 * dbxread.c (find_stab_function_addr): Update.
7145 (end_psymtab): Update.
7146 * dwarf2loc.c (call_site_to_target_addr): Update.
7147 (func_verify_no_selftailcall): Update.
7148 (tailcall_dump): Update.
7149 (call_site_find_chain_1): Update.
7150 (dwarf_expr_reg_to_entry_parameter): Update.
7151 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7152 (elf_gnu_ifunc_resolve_by_got): Update.
7153 * f-valprint.c (info_common_command): Update.
7154 * findvar.c (read_var_value): Update.
7155 * frame.c (get_prev_frame_1): Update.
7156 (inside_main_func): Update.
7157 * frv-tdep.c (frv_skip_main_prologue): Update.
7158 (frv_frame_this_id): Update.
7159 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7160 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7161 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7162 (gnuv3_skip_trampoline): Update.
7163 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7164 (hppa64_hpux_in_solib_call_trampoline): Update.
7165 (hppa_hpux_skip_trampoline_code): Update.
7166 (hppa64_hpux_search_dummy_call_sequence): Update.
7167 (hppa_hpux_find_import_stub_for_addr): Update.
7168 (hppa_hpux_find_dummy_bpaddr): Update.
7169 * hppa-tdep.c (hppa_symbol_address)
7170 (hppa_lookup_stub_minimal_symbol): Update.
7171 * i386-tdep.c (i386_skip_main_prologue): Update.
7172 (i386_pe_skip_trampoline_code): Update.
7173 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7174 * infcall.c (get_function_name): Update.
7175 * infcmd.c (until_next_command): Update.
7176 * jit.c (jit_breakpoint_re_set_internal): Update.
7177 (jit_inferior_init): Update.
7178 * linespec.c (minsym_found): Update.
7179 (add_minsym): Update.
7180 * linux-fork.c (info_checkpoints_command): Update.
7181 * linux-nat.c (get_signo): Update.
7182 * linux-thread-db.c (inferior_has_bug): Update.
7183 * m32c-tdep.c (m32c_return_value): Update.
7184 (m32c_m16c_address_to_pointer): Update.
7185 (m32c_m16c_pointer_to_address): Update.
7186 * m32r-tdep.c (m32r_frame_this_id): Update.
7187 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7188 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7189 * maint.c (maintenance_translate_address): Update.
7190 * minsyms.c (add_minsym_to_hash_table): Update.
7191 (add_minsym_to_demangled_hash_table): Update.
7192 (msymbol_objfile): Update.
7193 (lookup_minimal_symbol): Update.
7194 (iterate_over_minimal_symbols): Update.
7195 (lookup_minimal_symbol_text): Update.
7196 (lookup_minimal_symbol_by_pc_name): Update.
7197 (lookup_minimal_symbol_solib_trampoline): Update.
7198 (lookup_minimal_symbol_by_pc_section_1): Update.
7199 (lookup_minimal_symbol_and_objfile): Update.
7200 (prim_record_minimal_symbol_full): Update.
7201 (compare_minimal_symbols): Update.
7202 (compact_minimal_symbols): Update.
7203 (build_minimal_symbol_hash_tables): Update.
7204 (install_minimal_symbols): Update.
7205 (terminate_minimal_symbol_table): Update.
7206 (find_solib_trampoline_target): Update.
7207 (minimal_symbol_upper_bound): Update.
7208 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7209 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7210 (mips_skip_pic_trampoline_code): Update.
7211 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7212 * objc-lang.c (selectors_info): Update.
7213 (classes_info): Update.
7214 (find_methods): Update.
7215 (find_imps): Update.
7216 (find_objc_msgsend): Update.
7217 * objfiles.c (objfile_relocate1): Update.
7218 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7219 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7220 * p-valprint.c (pascal_val_print): Update.
7221 * parse.c (write_exp_msymbol): Update.
7222 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7223 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7224 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7225 * printcmd.c (build_address_symbolic): Update.
7227 (address_info): Update.
7228 * proc-service.c (ps_pglobal_lookup): Update.
7229 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7230 (find_pc_sect_psymtab): Update.
7231 * python/py-framefilter.c (py_print_frame): Update.
7232 * ravenscar-thread.c (get_running_thread_id): Update.
7233 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7235 * remote.c (remote_check_symbols): Update.
7236 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7237 (rs6000_skip_trampoline_code): Update.
7238 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7239 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7240 * solib-dsbt.c (lm_base): Update.
7241 * solib-frv.c (lm_base): Update.
7243 * solib-irix.c (locate_base): Update.
7244 * solib-som.c (som_solib_create_inferior_hook): Update.
7245 (som_solib_desire_dynamic_linker_symbols): Update.
7246 (link_map_start): Update.
7247 * solib-spu.c (spu_enable_break): Update.
7248 (ocl_enable_break): Update.
7249 * solib-svr4.c (elf_locate_base): Update.
7250 (enable_break): Update.
7251 * spu-tdep.c (spu_get_overlay_table): Update.
7252 (spu_catch_start): Update.
7253 (flush_ea_cache): Update.
7254 * stabsread.c (define_symbol): Update.
7255 (scan_file_globals): Update.
7256 * stack.c (find_frame_funname): Update.
7257 (frame_info): Update.
7258 * symfile.c (simple_read_overlay_table): Update.
7259 (simple_overlay_update): Update.
7260 * symmisc.c (dump_msymbols): Update.
7261 * symtab.c (fixup_section): Update.
7262 (find_pc_sect_line): Update.
7263 (skip_prologue_sal): Update.
7264 (search_symbols): Update.
7265 (print_msymbol_info): Update.
7266 (rbreak_command): Update.
7267 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7268 (completion_list_objc_symbol): Update.
7269 (default_make_symbol_completion_list_break_on): Update.
7270 * tracepoint.c (scope_info): Update.
7271 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7272 (tui_get_begin_asm_address): Update.
7273 * valops.c (find_function_in_inferior): Update.
7274 * value.c (value_static_field): Update.
7275 (value_fn_field): Update.
7277 2014-02-26 Tom Tromey <tromey@redhat.com>
7279 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7280 bound minimal symbols. Move code that knows about minsym
7282 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7284 * minsyms.h (minimal_symbol_upper_bound): Declare.
7285 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7286 minimal_symbol_upper_bound.
7288 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7290 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7291 Use the type's name if its basic type does not have a tag.
7293 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7295 * dwarf2read.c (read_subrange_type): Add comment.
7297 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7299 * dwarf2read.c (update_enumeration_type_from_children): New
7300 function, mostly extracted from process_structure_scope.
7301 (read_enumeration_type): Call update_enumeration_type_from_children.
7302 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7303 and flag_flag_enum fields.
7305 2014-02-26 Pedro Alves <palves@redhat.com>
7307 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7308 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7309 to_xfer_partial method.
7311 2014-02-26 Pedro Alves <palves@redhat.com>
7313 * target.c (complete_target_initialization): Don't install
7314 default_xfer_partial as to_xfer_partial hook.
7316 (update_current_target): Don't INHERIT nor de_fault
7317 deprecated_xfer_memory. Delete de_fault macro.
7318 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7319 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7320 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7323 2014-02-26 Pedro Alves <palves@redhat.com>
7325 * go32-nat.c (my_write_child): New function.
7326 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7327 (go32_xfer_partial): New function.
7328 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7329 Instead install a to_xfer_partial hook.
7331 2014-02-26 Pedro Alves <palves@redhat.com>
7333 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7334 to_xfer_partial helper. Rewrite.
7335 (procfs_xfer_partial): New function.
7336 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7337 Install a to_xfer_partial hook.
7339 2014-02-26 Pedro Alves <palves@redhat.com>
7341 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7342 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7343 (m32r_xfer_partial): New function.
7344 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7345 Install a to_xfer_partial hook.
7347 2014-02-26 Pedro Alves <palves@redhat.com>
7349 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7351 (mips_xfer_partial): New function.
7352 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7353 hook. Install a to_xfer_partial hook.
7355 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7357 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7358 * gdbtypes.c (create_array_type_with_stride): New function,
7359 renaming create_array_type, but with an added parameter
7360 called "bit_stride".
7361 (create_array_type): Re-implement using
7362 create_array_type_with_stride.
7363 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7364 and DW_AT_bit_stride attributes.
7366 2014-02-26 Pedro Alves <palves@redhat.com>
7368 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7369 task-specific breakpoints.
7371 2014-02-25 Pedro Alves <palves@redhat.com>
7373 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7374 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7376 2014-02-25 Stan Shebs <stan@codesourcery.com>
7378 * defs.h: Annotate comments for Doxygen.
7380 2014-02-25 Tom Tromey <tromey@redhat.com>
7382 * target.h (target_ignore): Don't declare.
7383 * target.c (target_ignore): Remove.
7385 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7388 * auto-load.c (auto_load_objfile_script_1): Change filename to
7391 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7393 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7394 documentation. Adjust prototype to match the target_ops
7395 to_xfer_partial method. Adjust implementation accordingly.
7397 2014-02-25 Hui Zhu <hui@codesourcery.com>
7399 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7402 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7404 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7405 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7406 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7407 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7408 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7409 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7410 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7411 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7413 (rl78_register_type): Use a data pointer type for SP and
7414 new pseudo registers mentioned above. Use a 16 bit integer
7415 type for all other register pairs.
7416 (rl78_register_name, rl78_g10_register_name): Update for
7417 new pseudo registers.
7418 (rl78_pseudo_register_read): Likewise.
7419 (rl78_pseudo_register_write): Likewise.
7420 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7421 to the newly added pseudo registers.
7423 2014-02-24 Doug Evans <dje@google.com>
7425 * value.c (record_latest_value): Fix comment.
7426 * printcmd.c (print_command_1): Remove code to handle -1 return from
7427 record_latest_value.
7429 2014-02-24 Pedro Alves <palves@redhat.com>
7431 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7432 deprecated_xfer_memory hook.
7433 (procfs_xfer_partial): Call procfs_xfer_memory instead
7434 of the deprecated_xfer_memory target hook.
7435 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7438 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7440 * windows-nat.c (windows_xfer_shared_libraries): Return
7441 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7442 requested object is TARGET_OBJECT_LIBRARIES.
7444 2014-02-24 Yao Qi <yao@codesourcery.com>
7446 * target.h (enum target_xfer_status)
7447 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7448 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7450 * corefile.c (memory_error_message): User updated.
7451 * exec.c (section_table_read_available_memory): Likewise.
7452 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7453 * target.c (target_xfer_status_to_string): Likewise.
7454 (raw_memory_xfer_partial): Likewise.
7455 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7456 * valops.c (read_value_memory): Likewise.
7457 * exec.h: Update comments.
7459 2014-02-24 Yao Qi <yao@codesourcery.com>
7461 * target.c (target_xfer_status_to_string): Rename argument err
7463 * target.h (target_xfer_status_to_string): Update declaration.
7464 Replace target_xfer_error_to_string with
7465 target_xfer_status_to_string in comment.
7467 2014-02-24 Yao Qi <yao@codesourcery.com>
7469 * mips-linux-nat.c (super_close): Update its type.
7470 (mips_linux_close): Pass 'self' to super_close.
7472 2014-02-24 Yao Qi <yao@codesourcery.com>
7474 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7475 * corefile.c (read_memory): Adjusted.
7476 * target.c (target_write_with_progress): Adjusted.
7478 2014-02-23 Yao Qi <yao@codesourcery.com>
7482 2013-10-25 Yao Qi <yao@codesourcery.com>
7484 * remote.c (remote_traceframe_info): Return early if
7485 traceframe is not selected.
7487 2013-07-19 Yao Qi <yao@codesourcery.com>
7489 * target.c (update_current_target): Change the default action
7490 of 'to_traceframe_info' from tcomplain to return_zero.
7491 * target.h (struct target_ops) <to_traceframe_info>: Add more
7494 2014-02-23 Yao Qi <yao@codesourcery.com>
7496 * valops.c (read_value_memory): Rewrite it. Call
7497 target_xfer_partial in a loop.
7498 * exec.h (section_table_available_memory): Remove declaration.
7499 Move comments to ...
7500 * exec.c (section_table_available_memory): ... here. Make it
7503 2014-02-23 Yao Qi <yao@codesourcery.com>
7505 * exec.c (section_table_read_available_memory): New function.
7506 * exec.h (section_table_read_available_memory): Declare.
7507 * ctf.c (ctf_xfer_partial): Call
7508 section_table_read_available_memory.
7509 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7511 2014-02-23 Yao Qi <yao@codesourcery.com>
7513 * ctf.c (ctf_xfer_partial): Move code to ...
7514 * exec.c (exec_read_partial_read_only): ... it. New function.
7515 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7516 * tracefile.c: Include "exec.h".
7517 * exec.h (exec_read_partial_read_only): Declare.
7519 2014-02-23 Yao Qi <yao@codesourcery.com>
7521 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7522 (tfile_has_memory): Remove.
7523 (init_tfile_ops): Don't set fields to_has_all_memory and
7524 to_has_memory of tfile_ops.
7525 * tracefile.c (tracefile_has_all_memory): New function.
7526 (tracefile_has_memory): New function.
7527 (init_tracefile_ops): Initialize fields to_has_all_memory and
7528 to_has_memory of 'ops'.
7530 2014-02-23 Yao Qi <yao@codesourcery.com>
7532 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7533 (ctf_thread_alive, ctf_get_trace_status): Remove.
7534 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7536 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7537 (tfile_has_stack, tfile_has_registers): Remove.
7538 (tfile_thread_alive): Remove.
7539 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7541 * tracefile.c (tracefile_has_stack): New function.
7542 (tracefile_has_registers): New function.
7543 (tracefile_thread_alive): New function.
7544 (tracefile_get_trace_status): New function.
7545 (init_tracefile_ops): New function.
7546 * tracefile.h (init_tracefile_ops): Declare.
7548 2014-02-23 Yao Qi <yao@codesourcery.com>
7550 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7551 (O_LARGEFILE): Likewise.
7552 (tfile_ops): Likewise.
7553 (TRACE_HEADER_SIZE): Likewise.
7554 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7555 (cur_data_size): Likewise.
7556 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7557 (tfile_close, tfile_files_info): Likewise.
7558 (tfile_get_trace_status): Likewise.
7559 (tfile_get_tracepoint_status): Likewise.
7560 (tfile_get_traceframe_address): Likewise.
7561 (tfile_trace_find, match_blocktype): Likewise.
7562 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7563 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7564 (tfile_get_trace_state_variable_value): Likewise.
7565 (tfile_has_all_memory, tfile_has_memory): Likewise.
7566 (tfile_has_stack, tfile_has_registers): Likewise.
7567 (tfile_thread_alive, build_traceframe_info): Likewise.
7568 (tfile_traceframe_info, init_tfile_ops): Likewise.
7569 (_initialize_tracepoint): Don't call init_tfile_ops
7570 and add_target_with_completer.
7571 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7572 exec.h, completer.h and filenames.h.
7573 (_initialize_tracefile_tfile): New function.
7575 2014-02-23 Yao Qi <yao@codesourcery.com>
7577 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7579 (HFILES_NO_SRCDIR): Add tracefile.h.
7580 * ctf.c: Include "tracefile.h".
7581 * tracefile.h: New file.
7582 * tracefile.c: New file
7583 * tracefile-tfile.c: New file.
7584 * tracepoint.c: Include "tracefile.h".
7585 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7586 (stop_reason_names): Add const.
7587 (trace_file_writer_xfree): Move it to tracefile.c.
7588 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7589 (trace_save_ctf): Likewise.
7590 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7591 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7592 (tfile_write_header, tfile_write_regblock_type): Likewise.
7593 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7594 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7595 (tfile_write_raw_data, tfile_end): Likewise.
7596 (tfile_trace_file_writer_new): Likewise.
7597 (free_uploaded_tp): Make it extern.
7598 (free_uploaded_tsv): Make it extern.
7599 (_initialize_tracepoint): Move code to register command 'tsave'
7601 * tracepoint.h (stop_reason_names): Declare.
7602 (struct trace_frame_write_ops): Move it to tracefile.h.
7603 (struct trace_file_write_ops): Likewise.
7604 (struct trace_file_writer): Likewise.
7605 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7607 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7610 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7612 (get_cores_used_by_process): New parameter num_cores, use it.
7613 (linux_xfer_osdata_processes): Pass num_cores to it.
7614 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7617 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7619 * target.c (memory_xfer_partial): Fix length arg in call to
7620 breakpoint_xfer_memory.
7622 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7625 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7626 number comes after the + or - signs. Adjust length of register
7627 name to be extracted.
7629 2014-02-20 Tom Tromey <tromey@redhat.com>
7631 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7632 (ada_varobj_ops): Mark "extern".
7634 2014-02-20 Tom Tromey <tromey@redhat.com>
7636 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7638 2014-02-20 Doug Evans <xdje42@gmail.com>
7640 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7641 All callers updated.
7642 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7643 All callers updated.
7644 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7645 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7647 2014-02-20 lin zuojian <manjian2006@gmail.com>
7648 Joel Brobecker <brobecker@adacore.com>
7649 Doug Evans <xdje42@gmail.com>
7652 * dwarf2read.c (struct die_info): New member in_process.
7653 (reset_die_in_process): New function.
7654 (process_die): Set it at the start, reset when returning.
7655 (inherit_abstract_dies): Only call process_die if origin_child_die
7656 not already being processed.
7658 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7660 * windows-nat.c (handle_unload_dll): Add function documentation.
7661 (do_initial_windows_stuff): Add comment explaining why we wait
7662 until after inferior initialization has finished before
7663 processing all DLLs.
7665 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7667 * windows-nat.c (get_module_name): Delete.
7668 (windows_get_exec_module_filename): New function, mostly
7669 inspired from get_module_name.
7670 (windows_pid_to_exec_file): Replace call to get_module_name
7671 by call to windows_get_exec_module_filename.
7673 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7675 * windows-nat.c (handle_load_dll): Rewrite this function's
7676 introductory comment. Remove code using get_module_name
7677 to get the DLL's name.
7679 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7681 * windows-nat.c (get_windows_debug_event): Ignore
7682 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7683 if windows_initialization_done == 0.
7684 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7685 Adjust implementation to always load all DLLs.
7686 (do_initial_windows_stuff): Replace call to
7687 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7689 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7691 * windows-nat.c (_initialize_windows_nat): Deprecate the
7692 "dll-symbols" command. Turn the "add-shared-symbol-files"
7693 and "assf" aliases into commands, and deprecate them as well.
7694 * NEWS: Add entry explaining that "dll-symbols" and its two
7695 aliases are now deprecated.
7697 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7699 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7700 new-line in debug string. Remove trailing spaces.
7702 2014-02-19 Stan Shebs <stan@codesourcery.com>
7704 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7706 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7708 * NEWS: Add entry for the new feature
7709 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7712 2014-02-19 Stan Shebs <stan@codesourcery.com>
7714 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7716 2014-02-19 Pedro Alves <palves@redhat.com>
7718 * common/ptid.h (struct ptid): Mention that process_stratum
7719 targets should prefer ptid.lwp.
7721 2014-02-19 Pedro Alves <palves@redhat.com>
7723 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7724 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7725 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7726 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7727 store remote thread ids rather than ptid.tid.
7728 (_initialize_remote): Adjust.
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7732 * target.c (target_get_unwinder): Rewrite.
7733 (target_get_tailcall_unwinder): Rewrite.
7734 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7735 (record_btrace_to_get_tailcall_unwinder): New function.
7736 (init_record_btrace_ops): Update.
7737 * target.h (struct target_ops) <to_get_unwinder,
7738 to_get_tailcall_unwinder>: Now function pointers. Use
7739 TARGET_DEFAULT_RETURN.
7741 2014-02-19 Tom Tromey <tromey@redhat.com>
7743 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7745 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7751 * target-delegates.c: Rebuild.
7752 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7753 TARGET_DEFAULT_FUNC.
7754 * target.c (default_target_decr_pc_after_break): Rename from
7755 forward_target_decr_pc_after_break. Simplify.
7756 (target_decr_pc_after_break): Rely on delegation.
7758 2014-02-19 Tom Tromey <tromey@redhat.com>
7760 * target.c (update_current_target): Do not INHERIT to_doc or
7761 to_magic. Do not de_fault to_open or to_close.
7763 2014-02-19 Tom Tromey <tromey@redhat.com>
7765 * gcore.h (objfile_find_memory_regions): Declare.
7766 * gcore.c (objfile_find_memory_regions): No longer static. Add
7768 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7769 * exec.c: Include gcore.h.
7770 (exec_set_find_memory_regions): Remove.
7771 (exec_find_memory_regions): Remove.
7772 (exec_do_find_memory_regions): Remove.
7773 (init_exec_ops): Update.
7774 * defs.h (exec_set_find_memory_regions): Remove.
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7778 * target-delegates.c: Rebuild.
7779 * target.h (struct target_ops) <to_extra_thread_info,
7780 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7781 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7782 not 0, in TARGET_DEFAULT_RETURN.
7784 2014-02-19 Tom Tromey <tromey@redhat.com>
7786 * target.c (complete_target_initialization): Remove casts. Use
7787 return_zero_has_execution.
7788 (return_zero): Add "ignore" argument.
7789 (return_zero_has_execution): New function.
7790 (init_dummy_target): Remove casts. Use
7791 return_zero_has_execution.
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target.c (update_current_target): Update comments. Do not
7798 2014-02-19 Tom Tromey <tromey@redhat.com>
7800 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7802 * corelow.c (core_read_description): Delegate when needed.
7803 * remote.c (remote_read_description): Delegate when needed.
7804 * target-delegates.c: Rebuild.
7805 * target.c (target_read_description): Rewrite.
7806 * target.h (struct target_ops) <to_read_description>: Update
7807 comment. Use TARGET_DEFAULT_RETURN.
7809 2014-02-19 Tom Tromey <tromey@redhat.com>
7811 * target-delegates.c: Rebuild.
7812 * target.c (update_current_target): Don't inherit or default
7814 (find_default_run_target): Check against delegate_can_run.
7815 * target.h (struct target_ops) <to_can_run>: Use
7816 TARGET_DEFAULT_RETURN.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * target-delegates.c: Rebuild.
7821 * target.c (target_disconnect): Unconditionally delegate.
7822 * target.h (struct target_ops) <to_disconnect>: Use
7823 TARGET_DEFAULT_NORETURN.
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7827 * record.c (record_stop): Unconditionally delegate.
7828 * target-delegates.c: Rebuild.
7829 * target.c (target_stop_recording): Unconditionally delegate.
7830 * target.h (struct target_ops) <to_stop_recording>: Use
7831 TARGET_DEFAULT_IGNORE.
7833 2014-02-19 Tom Tromey <tromey@redhat.com>
7835 * target-delegates.c: Rebuild.
7836 * target.c (target_enable_btrace): Unconditionally delegate.
7837 * target.h (struct target_ops) <to_enable_btrace>: Use
7838 TARGET_DEFAULT_NORETURN.
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7842 * target-delegates.c: Rebuild.
7843 * target.c (target_read_btrace): Unconditionally delegate.
7844 * target.h (struct target_ops) <to_read_btrace>: Use
7845 TARGET_DEFAULT_NORETURN.
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7849 * target-delegates.c: Rebuild.
7850 * target.c (target_teardown_btrace): Unconditionally delegate.
7851 * target.h (struct target_ops) <to_teardown_btrace>: Use
7852 TARGET_DEFAULT_NORETURN.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * target-delegates.c: Rebuild.
7857 * target.c (target_disable_btrace): Unconditionally delegate.
7858 * target.h (struct target_ops) <to_disable_btrace>: Use
7859 TARGET_DEFAULT_NORETURN.
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target-delegates.c: Rebuild.
7864 * target.c (default_search_memory): New function.
7865 (simple_search_memory): Update comment.
7866 (target_search_memory): Unconditionally delegate.
7867 * target.h (struct target_ops) <to_search_memory>: Use
7868 TARGET_DEFAULT_FUNC.
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7872 * auxv.c (default_auxv_parse): No longer static.
7873 (target_auxv_parse): Unconditionally delegate.
7874 * auxv.h (default_auxv_parse): Declare.
7875 * target-delegates.c: Rebuild.
7876 * target.c: Include auxv.h.
7877 * target.h (struct target_ops) <to_auxv_parse>: Use
7878 TARGET_DEFAULT_FUNC.
7880 2014-02-19 Tom Tromey <tromey@redhat.com>
7882 * target-delegates.c: Rebuild.
7883 * target.c (target_memory_map): Unconditionally delegate.
7884 * target.h (struct target_ops) <to_memory_map>: Use
7885 TARGET_DEFAULT_RETURN.
7887 2014-02-19 Tom Tromey <tromey@redhat.com>
7889 * target-delegates.c: Rebuild.
7890 * target.c (target_thread_alive): Unconditionally delegate.
7891 * target.h (struct target_ops) <to_thread_alive>: Use
7892 TARGET_DEFAULT_RETURN.
7894 2014-02-19 Tom Tromey <tromey@redhat.com>
7896 * target-delegates.c: Rebuild.
7897 * target.c (target_save_record): Unconditionally delegate.
7898 * target.h (struct target_ops) <to_save_record>: Use
7899 TARGET_DEFAULT_NORETURN.
7901 2014-02-19 Tom Tromey <tromey@redhat.com>
7903 * target-delegates.c: Rebuild.
7904 * target.c (target_delete_record): Unconditionally delegate.
7905 * target.h (struct target_ops) <to_delete_record>: Use
7906 TARGET_DEFAULT_NORETURN.
7908 2014-02-19 Tom Tromey <tromey@redhat.com>
7910 * target-delegates.c: Rebuild.
7911 * target.c (target_record_is_replaying): Unconditionally
7913 * target.h (struct target_ops) <to_record_is_replaying>: Use
7914 TARGET_DEFAULT_RETURN.
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7918 * target-delegates.c: Rebuild.
7919 * target.c (target_goto_record_begin): Unconditionally delegate.
7920 * target.h (struct target_ops) <to_goto_record_begin>: Use
7921 TARGET_DEFAULT_NORETURN.
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7925 * target-delegates.c: Rebuild.
7926 * target.c (target_goto_record_end): Unconditionally delegate.
7927 * target.h (struct target_ops) <to_goto_record_end>: Use
7928 TARGET_DEFAULT_NORETURN.
7930 2014-02-19 Tom Tromey <tromey@redhat.com>
7932 * target-delegates.c: Rebuild.
7933 * target.c (target_goto_record): Unconditionally delegate.
7934 * target.h (struct target_ops) <to_goto_record>: Use
7935 TARGET_DEFAULT_NORETURN.
7937 2014-02-19 Tom Tromey <tromey@redhat.com>
7939 * target-delegates.c: Rebuild.
7940 * target.c (target_insn_history): Unconditionally delegate.
7941 * target.h (struct target_ops) <to_insn_history>: Use
7942 TARGET_DEFAULT_NORETURN.
7944 2014-02-19 Tom Tromey <tromey@redhat.com>
7946 * target-delegates.c: Rebuild.
7947 * target.c (target_insn_history_from): Unconditionally delegate.
7948 * target.h (struct target_ops) <to_insn_history_from>: Use
7949 TARGET_DEFAULT_NORETURN.
7951 2014-02-19 Tom Tromey <tromey@redhat.com>
7953 * target-delegates.c: Rebuild.
7954 * target.c (target_insn_history_range): Unconditionally delegate.
7955 * target.h (struct target_ops) <to_insn_history_range>: Use
7956 TARGET_DEFAULT_NORETURN.
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * target-delegates.c: Rebuild.
7961 * target.c (target_call_history): Unconditionally delegate.
7962 * target.h (struct target_ops) <to_call_history>: Use
7963 TARGET_DEFAULT_NORETURN.
7965 2014-02-19 Tom Tromey <tromey@redhat.com>
7967 * target-delegates.c: Rebuild.
7968 * target.c (target_call_history_from): Unconditionally delegate.
7969 * target.h (struct target_ops) <to_call_history_from>: Use
7970 TARGET_DEFAULT_NORETURN.
7972 2014-02-19 Tom Tromey <tromey@redhat.com>
7974 * target-delegates.c: Rebuild.
7975 * target.c (target_call_history_range): Unconditionally delegate.
7976 * target.h (struct target_ops) <to_call_history_range>: Use
7977 TARGET_DEFAULT_NORETURN.
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7981 * target-delegates.c: Rebuild.
7982 * target.c (target_verify_memory): Unconditionally delegate.
7983 * target.h (struct target_ops) <to_verify_memory>: Use
7984 TARGET_DEFAULT_NORETURN.
7986 2014-02-19 Tom Tromey <tromey@redhat.com>
7988 * target-delegates.c: Rebuild.
7989 * target.c (target_core_of_thread): Unconditionally delegate.
7990 * target.h (struct target_ops) <to_core_of_thread>: Use
7991 TARGET_DEFAULT_RETURN.
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7995 * target-delegates.c: Rebuild.
7996 * target.c (target_flash_done): Unconditionally delegate.
7997 * target.h (struct target_ops) <to_flash_done>: Use
7998 TARGET_DEFAULT_NORETURN.
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8002 * target-delegates.c: Rebuild.
8003 * target.c (target_flash_erase): Unconditionally delegate.
8004 * target.h (struct target_ops) <to_flash_erase>: Use
8005 TARGET_DEFAULT_NORETURN.
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8009 * target-delegates.c: Rebuild.
8010 * target.c (target_get_section_table): Unconditionally delegate.
8011 * target.h (struct target_ops) <to_get_section_table>: Use
8012 TARGET_DEFAULT_RETURN.
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8016 * target-delegates.c: Rebuild.
8017 * target.c (target_pid_to_str): Unconditionally delegate.
8018 (init_dummy_target): Don't initialize to_pid_to_str.
8019 (default_pid_to_str): Rename from dummy_pid_to_str.
8020 * target.h (struct target_ops) <to_pid_to_str>: Use
8021 TARGET_DEFAULT_FUNC.
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8025 * target-delegates.c: Rebuild.
8026 * target.c (target_find_new_threads): Unconditionally delegate.
8027 * target.h (struct target_ops) <to_find_new_threads>: Use
8028 TARGET_DEFAULT_RETURN.
8030 2014-02-19 Tom Tromey <tromey@redhat.com>
8032 * target-delegates.c: Rebuild.
8033 * target.c (target_program_signals): Unconditionally delegate.
8034 * target.h (struct target_ops) <to_program_signals>: Use
8035 TARGET_DEFAULT_IGNORE.
8037 2014-02-19 Tom Tromey <tromey@redhat.com>
8039 * target-delegates.c: Rebuild.
8040 * target.c (target_pass_signals): Unconditionally delegate.
8041 * target.h (struct target_ops) <to_pass_signals>: Use
8042 TARGET_DEFAULT_IGNORE.
8044 2014-02-19 Tom Tromey <tromey@redhat.com>
8046 * target-delegates.c: Rebuild.
8047 * target.c (default_mourn_inferior): New function.
8048 (target_mourn_inferior): Unconditionally delegate.
8049 * target.h (struct target_ops) <to_mourn_inferior>: Use
8050 TARGET_DEFAULT_FUNC.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target-delegates.c: Rebuild.
8055 * target.c (default_follow_fork): New function.
8056 (target_follow_fork): Unconditionally delegate.
8057 * target.h (struct target_ops) <to_follow_fork>: Use
8058 TARGET_DEFAULT_FUNC.
8060 2014-02-19 Tom Tromey <tromey@redhat.com>
8062 * target-delegates.c: Rebuild.
8063 * target.c (target_kill): Unconditionally delegate.
8064 * target.h (struct target_ops) <to_kill>: Use
8065 TARGET_DEFAULT_NORETURN.
8067 2014-02-19 Tom Tromey <tromey@redhat.com>
8069 * target-delegates.c: Rebuild.
8070 * target.c (target_masked_watch_num_registers): Unconditionally
8072 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8073 Use TARGET_DEFAULT_RETURN.
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8077 * target-delegates.c: Rebuild.
8078 * target.c (target_remove_mask_watchpoint): Unconditionally
8080 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8081 TARGET_DEFAULT_RETURN.
8083 2014-02-19 Tom Tromey <tromey@redhat.com>
8085 * target-delegates.c: Rebuild.
8086 * target.c (target_insert_mask_watchpoint): Unconditionally
8088 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8089 TARGET_DEFAULT_RETURN.
8091 2014-02-19 Tom Tromey <tromey@redhat.com>
8093 * target-delegates.c: Rebuild.
8094 * target.c (target_ranged_break_num_registers): Unconditionally
8096 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8097 Use TARGET_DEFAULT_RETURN.
8099 2014-02-19 Tom Tromey <tromey@redhat.com>
8101 * target-delegates.c: Rebuild.
8102 * target.c (target_fetch_registers): Unconditionally delegate.
8103 * target.h (struct target_ops) <to_fetch_registers>: Use
8104 TARGET_DEFAULT_NORETURN.
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8108 * target-delegates.c: Rebuild.
8109 * target.c (update_current_target): Don't inherit or default
8111 * target.h (struct target_ops) <to_stop>: Use
8112 TARGET_DEFAULT_IGNORE.
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target-delegates.c: Rebuild.
8117 * target.c (update_current_target): Don't inherit or default
8118 to_can_run_breakpoint_commands.
8119 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8120 Use TARGET_DEFAULT_RETURN.
8122 2014-02-19 Tom Tromey <tromey@redhat.com>
8124 * target-delegates.c: Rebuild.
8125 * target.c (update_current_target): Don't inherit or default
8126 to_supports_evaluation_of_breakpoint_conditions.
8127 * target.h (struct target_ops)
8128 <to_supports_evaluation_of_breakpoint_conditions>: Use
8129 TARGET_DEFAULT_RETURN.
8131 2014-02-19 Tom Tromey <tromey@redhat.com>
8133 * target-delegates.c: Rebuild.
8134 * target.c (update_current_target): Don't inherit or default
8135 to_augmented_libraries_svr4_read.
8136 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8137 Use TARGET_DEFAULT_RETURN.
8139 2014-02-19 Tom Tromey <tromey@redhat.com>
8141 * target-delegates.c: Rebuild.
8142 * target.c (update_current_target): Don't inherit or default
8144 * target.h (struct target_ops) <to_can_use_agent>: Use
8145 TARGET_DEFAULT_RETURN.
8147 2014-02-19 Tom Tromey <tromey@redhat.com>
8149 * target-delegates.c: Rebuild.
8150 * target.c (update_current_target): Don't inherit or default
8152 * target.h (struct target_ops) <to_use_agent>: Use
8153 TARGET_DEFAULT_NORETURN.
8155 2014-02-19 Tom Tromey <tromey@redhat.com>
8157 * target-delegates.c: Rebuild.
8158 * target.c (update_current_target): Don't inherit or default
8160 (return_null): Remove.
8161 * target.h (struct target_ops) <to_traceframe_info>: Use
8162 TARGET_DEFAULT_RETURN.
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8168 to_static_tracepoint_markers_by_strid.
8169 * target.h (struct target_ops)
8170 <to_static_tracepoint_markers_by_strid>: 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
8177 to_static_tracepoint_marker_at.
8178 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8179 Use TARGET_DEFAULT_RETURN.
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * target-delegates.c: Rebuild.
8184 * target.c (update_current_target): Don't inherit or default
8186 * target.h (struct target_ops) <to_set_permissions>: Use
8187 TARGET_DEFAULT_IGNORE.
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8191 * target-delegates.c: Rebuild.
8192 * target.c (update_current_target): Don't inherit or default
8194 * target.h (struct target_ops) <to_get_tib_address>: Use
8195 TARGET_DEFAULT_NORETURN.
8197 2014-02-19 Tom Tromey <tromey@redhat.com>
8199 * target-delegates.c: Rebuild.
8200 * target.c (update_current_target): Don't inherit or default
8202 * target.h (struct target_ops) <to_set_trace_notes>: Use
8203 TARGET_DEFAULT_RETURN.
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8207 * target-delegates.c: Rebuild.
8208 * target.c (update_current_target): Don't initialize
8209 to_set_trace_buffer_size.
8210 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8211 TARGET_DEFAULT_IGNORE.
8213 2014-02-19 Tom Tromey <tromey@redhat.com>
8215 * target-delegates.c: Rebuild.
8216 * target.c (update_current_target): Don't inherit or default
8217 to_set_circular_trace_buffer.
8218 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8219 TARGET_DEFAULT_IGNORE.
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8223 * target-delegates.c: Rebuild.
8224 * target.c (update_current_target): Don't inherit or default
8225 to_set_disconnected_tracing.
8226 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8227 TARGET_DEFAULT_IGNORE.
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8231 * target-delegates.c: Rebuild.
8232 * target.c (update_current_target): Don't inherit or default
8233 to_get_min_fast_tracepoint_insn_len.
8234 (return_minus_one): Remove.
8235 * target.h (struct target_ops)
8236 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8240 * target-delegates.c: Rebuild.
8241 * target.c (update_current_target): Don't inherit or default
8242 to_get_raw_trace_data.
8243 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8244 TARGET_DEFAULT_NORETURN.
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8248 * target-delegates.c: Rebuild.
8249 * target.c (update_current_target): Don't inherit or default
8250 to_upload_trace_state_variables.
8251 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8252 Use TARGET_DEFAULT_RETURN.
8254 2014-02-19 Tom Tromey <tromey@redhat.com>
8256 * target-delegates.c: Rebuild.
8257 * target.c (update_current_target): Don't inherit or default
8258 to_upload_tracepoints.
8259 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8260 TARGET_DEFAULT_RETURN.
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8264 * target-delegates.c: Rebuild.
8265 * target.c (update_current_target): Don't inherit or default
8267 * target.h (struct target_ops) <to_save_trace_data>: Use
8268 TARGET_DEFAULT_NORETURN.
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target-delegates.c: Rebuild.
8273 * target.c (update_current_target): Don't inherit or default
8274 to_get_trace_state_variable_value.
8275 * target.h (struct target_ops)
8276 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * target-delegates.c: Rebuild.
8281 * target.c (update_current_target): Don't inherit or default
8283 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8285 2014-02-19 Tom Tromey <tromey@redhat.com>
8287 * target-delegates.c: Rebuild.
8288 * target.c (update_current_target): Don't inherit or default
8290 * target.h (struct target_ops) <to_trace_stop>: Use
8291 TARGET_DEFAULT_NORETURN.
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8295 * target-delegates.c: Rebuild.
8296 * target.c (update_current_target): Don't inherit or default
8297 to_get_tracepoint_status.
8298 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8299 TARGET_DEFAULT_NORETURN.
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target-delegates.c: Rebuild.
8304 * target.c (update_current_target): Don't inherit or default
8305 to_get_trace_status.
8306 * target.h (struct target_ops) <to_get_trace_status>: Use
8307 TARGET_DEFAULT_RETURN.
8309 2014-02-19 Tom Tromey <tromey@redhat.com>
8311 * target-delegates.c: Rebuild.
8312 * target.c (update_current_target): Don't inherit or default
8314 * target.h (struct target_ops) <to_trace_start>: Use
8315 TARGET_DEFAULT_NORETURN.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target-delegates.c: Rebuild.
8320 * target.c (update_current_target): Don't inherit or default
8321 to_trace_set_readonly_regions.
8322 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8323 Use TARGET_DEFAULT_NORETURN.
8325 2014-02-19 Tom Tromey <tromey@redhat.com>
8327 * target-delegates.c: Rebuild.
8328 * target.c (update_current_target): Don't inherit or default
8329 to_disable_tracepoint.
8330 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8331 TARGET_DEFAULT_NORETURN.
8333 2014-02-19 Tom Tromey <tromey@redhat.com>
8335 * target-delegates.c: Rebuild.
8336 * target.c (update_current_target): Don't inherit or default
8337 to_enable_tracepoint.
8338 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8339 TARGET_DEFAULT_NORETURN.
8341 2014-02-19 Tom Tromey <tromey@redhat.com>
8343 * target-delegates.c: Rebuild.
8344 * target.c (update_current_target): Don't inherit or default
8345 to_download_trace_state_variable.
8346 * target.h (struct target_ops) <to_download_trace_state_variable>:
8347 Use TARGET_DEFAULT_NORETURN.
8349 2014-02-19 Tom Tromey <tromey@redhat.com>
8351 * target-delegates.c: Rebuild.
8352 * target.c (update_current_target): Don't inherit or default
8353 to_can_download_tracepoint.
8354 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8355 TARGET_DEFAULT_RETURN.
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target-delegates.c: Rebuild.
8360 * target.c (update_current_target): Don't inherit or default
8361 to_download_tracepoint.
8362 * target.h (struct target_ops) <to_download_tracepoint>: Use
8363 TARGET_DEFAULT_NORETURN.
8365 2014-02-19 Tom Tromey <tromey@redhat.com>
8367 * target-delegates.c: Rebuild.
8368 * target.c (update_current_target): Don't inherit or default
8370 * target.h (struct target_ops) <to_trace_init>: Use
8371 TARGET_DEFAULT_RETURN.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target-delegates.c: Rebuild.
8376 * target.c (update_current_target): Don't inherit or default
8377 to_supports_string_tracing.
8378 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8379 TARGET_DEFAULT_RETURN.
8381 2014-02-19 Tom Tromey <tromey@redhat.com>
8383 * target-delegates.c: Rebuild.
8384 * target.c (update_current_target): Don't inherit or default
8385 to_supports_enable_disable_tracepoint.
8386 * target.h (struct target_ops)
8387 <to_supports_enable_disable_tracepoint>: Use
8388 TARGET_DEFAULT_RETURN.
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8392 * target-delegates.c: Rebuild.
8393 * target.c (update_current_target): Don't inherit or default
8394 to_supports_multi_process.
8395 * target.h (struct target_ops) <to_supports_multi_process>: Use
8396 TARGET_DEFAULT_RETURN.
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8400 * target-delegates.c: Rebuild.
8401 * target.c (update_current_target): Don't inherit or default
8402 to_get_ada_task_ptid.
8403 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8404 TARGET_DEFAULT_FUNC.
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * target-delegates.c: Rebuild.
8409 * target.c (update_current_target): Don't inherit or default
8410 to_thread_architecture.
8411 * target.h (struct target_ops) <to_thread_architecture>: Use
8412 TARGET_DEFAULT_FUNC.
8414 2014-02-19 Tom Tromey <tromey@redhat.com>
8416 * target-delegates.c: Rebuild.
8417 * target.c (update_current_target): Don't inherit or default
8418 to_execution_direction.
8419 * target.h (struct target_ops) <to_execution_direction>: Use
8420 TARGET_DEFAULT_FUNC.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * target-delegates.c: Rebuild.
8425 * target.c (update_current_target): Don't inherit or default
8426 to_can_execute_reverse.
8427 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8428 TARGET_DEFAULT_RETURN.
8429 (target_can_execute_reverse): Unconditionally delegate.
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8436 (dummy_goto_bookmark): Remove.
8437 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8438 * target.h (struct target_ops) <to_goto_bookmark>: Use
8439 TARGET_DEFAULT_NORETURN.
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8443 * target-delegates.c: Rebuild.
8444 * target.c (update_current_target): Don't inherit or default
8446 (dummy_get_bookmark): Remove.
8447 (init_dummy_target): Don't inherit or default to_get_bookmark.
8448 * target.h (struct target_ops) <to_get_bookmark>: Use
8449 TARGET_DEFAULT_NORETURN
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8455 to_make_corefile_notes.
8456 (init_dummy_target): Don't initialize to_make_corefile_notes.
8457 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8458 TARGET_DEFAULT_FUNC.
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_find_memory_regions.
8465 (init_dummy_target): Don't initialize to_find_memory_regions.
8466 * target.h (struct target_ops) <to_find_memory_regions>: Use
8467 TARGET_DEFAULT_FUNC.
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
8474 * target.h (struct target_ops) <to_log_command>: Use
8475 TARGET_DEFAULT_IGNORE.
8476 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
8483 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8484 TARGET_DEFAULT_RETURN.
8486 2014-02-19 Tom Tromey <tromey@redhat.com>
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8491 (target_thread_name): Unconditionally delegate.
8492 * target.h (struct target_ops) <to_thread_name>: Use
8493 TARGET_DEFAULT_RETURN.
8495 2014-02-19 Tom Tromey <tromey@redhat.com>
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_extra_thread_info.
8500 * target.h (struct target_ops) <to_extra_thread_info>: Use
8501 TARGET_DEFAULT_RETURN.
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8508 * target.h (struct target_ops) <to_has_exited>: Use
8509 TARGET_DEFAULT_RETURN..
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8515 to_set_syscall_catchpoint.
8516 (return_one): Remove.
8517 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8518 TARGET_DEFAULT_RETURN.
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8524 to_insert_exec_catchpoint.
8525 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8526 TARGET_DEFAULT_RETURN.
8528 2014-01-08 Tom Tromey <tromey@redhat.com>
8530 * target-delegates.c: Rebuild.
8531 * target.c (update_current_target): Don't inherit or default
8532 to_insert_exec_catchpoint.
8533 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8534 TARGET_DEFAULT_RETURN.
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8538 * target-delegates.c: Rebuild.
8539 * target.c (update_current_target): Don't inherit or default
8540 to_remove_vfork_catchpoint.
8541 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8542 TARGET_DEFAULT_RETURN.
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_insert_vfork_catchpoint.
8549 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8550 TARGET_DEFAULT_RETURN.
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_remove_fork_catchpoint.
8557 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8558 TARGET_DEFAULT_RETURN.
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_insert_fork_catchpoint.
8565 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8566 TARGET_DEFAULT_RETURN.
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8572 to_post_startup_inferior.
8573 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8574 TARGET_DEFAULT_IGNORE.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target-delegates.c: Rebuild.
8579 * target.c (update_current_target): Don't inherit or default
8581 * target.h (struct target_ops) <to_load>: Use
8582 TARGET_DEFAULT_NORETURN.
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8586 * target-delegates.c: Rebuild.
8587 * target.c (update_current_target): Don't inherit or default
8589 * target.h (struct target_ops) <to_terminal_info>: Use
8590 TARGET_DEFAULT_FUNC.
8592 2014-02-19 Tom Tromey <tromey@redhat.com>
8594 * target-delegates.c: Rebuild.
8595 * target.c (update_current_target): Don't inherit or default
8596 to_terminal_save_ours.
8597 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8598 TARGET_DEFAULT_IGNORE.
8600 2014-02-19 Tom Tromey <tromey@redhat.com>
8602 * target-delegates.c: Rebuild.
8603 * target.c (update_current_target): Don't inherit or default
8605 * target.h (struct target_ops) <to_terminal_ours>: Use
8606 TARGET_DEFAULT_IGNORE.
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8610 * target-delegates.c: Rebuild.
8611 * target.c (update_current_target): Don't inherit or default
8612 to_terminal_ours_for_output.
8613 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8614 TARGET_DEFAULT_IGNORE.
8616 2014-02-19 Tom Tromey <tromey@redhat.com>
8618 * target-delegates.c: Rebuild.
8619 * target.c (update_current_target): Don't inherit or default
8620 to_terminal_inferior.
8621 * target.h (struct target_ops) <to_terminal_inferior>: Use
8622 TARGET_DEFAULT_IGNORE.
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8626 * target-delegates.c: Rebuild.
8627 * target.c (update_current_target): Don't inherit or default
8629 * target.h (struct target_ops) <to_terminal_init>: Use
8630 TARGET_DEFAULT_IGNORE.
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8634 * target-delegates.c: Rebuild.
8635 * target.c (update_current_target): Don't inherit or default
8636 to_can_accel_watchpoint_condition.
8637 * target.h (struct target_ops)
8638 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8640 2014-02-19 Tom Tromey <tromey@redhat.com>
8642 * target-delegates.c: Rebuild.
8643 * target.c (update_current_target): Don't inherit or default
8644 to_region_ok_for_hw_watchpoint.
8645 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8646 Use TARGET_DEFAULT_FUNC.
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8650 * target-delegates.c: Rebuild.
8651 * target.c (update_current_target): Don't inherit or default
8652 to_watchpoint_addr_within_range.
8653 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8654 Use TARGET_DEFAULT_FUNC.
8656 2014-02-19 Tom Tromey <tromey@redhat.com>
8658 * target-delegates.c: Rebuild.
8659 * target.c (update_current_target): Don't inherit or default
8660 to_remove_watchpoint.
8661 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8662 TARGET_DEFAULT_NORETURN.
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8666 * target-delegates.c: Rebuild.
8667 * target.c (update_current_target): Don't inherit or default
8668 to_insert_watchpoint.
8669 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8670 TARGET_DEFAULT_RETURN.
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8674 * target-delegates.c: Rebuild.
8675 * target.c (update_current_target): Don't inherit or default
8676 to_remove_hw_breakpoint.
8677 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8678 TARGET_DEFAULT_RETURN.
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8682 * target-delegates.c: Rebuild.
8683 * target.c (update_current_target): Don't inherit or default
8684 to_insert_hw_breakpoint.
8685 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8686 TARGET_DEFAULT_RETURN.
8688 2014-02-19 Tom Tromey <tromey@redhat.com>
8690 * target-delegates.c: Rebuild.
8691 * target.c (update_current_target): Don't inherit or default
8692 to_can_use_hw_breakpoint.
8693 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8694 TARGET_DEFAULT_RETURN.
8696 2014-02-19 Tom Tromey <tromey@redhat.com>
8698 * target-delegates.c: Rebuild.
8699 * target.c (update_current_target): Don't inherit or default
8701 * target.h (struct target_ops) <to_files_info>: Use
8702 TARGET_DEFAULT_IGNORE.
8704 2014-02-19 Tom Tromey <tromey@redhat.com>
8706 * target-delegates.c: Rebuild.
8707 * target.c (update_current_target): Don't inherit or default
8709 * target.h (struct target_ops) <to_store>: Use
8710 TARGET_DEFAULT_NORETURN.
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8714 * target-delegates.c: Rebuild.
8715 * target.c (update_current_target): Don't inherit or default
8717 * target.h (struct target_ops) <to_post_attach>: Use
8718 TARGET_DEFAULT_IGNORE.
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8722 * target-delegates.c: Rebuild.
8723 * target.c (update_current_target): Don't inherit or default
8725 (default_rcmd): New function.
8726 (do_monitor_command): Unconditionally delegate.
8727 * target.h (struct target_ops) <to_rmcd>: Use
8728 TARGET_DEFAULT_FUNC.
8730 2014-02-19 Tom Tromey <tromey@redhat.com>
8732 * target-delegates.c: Rebuild.
8733 * target.c (init_dummy_target): Don't initialize to_attach.
8734 (target_attach): Unconditionally delegate.
8735 * target.h (struct target_ops) <to_attach>: Use
8736 TARGET_DEFAULT_FUNC.
8738 2014-02-19 Tom Tromey <tromey@redhat.com>
8740 * target-delegates.c: Rebuild.
8741 * target.c (target_detach): Unconditionally delegate.
8742 (init_dummy_target): Don't initialize to_detach.
8743 * target.h (struct target_ops) <to_detach>: Use
8744 TARGET_DEFAULT_IGNORE.
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8748 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8750 (target_augmented_libraries_svr4_read): Add argument.
8751 * target.c (update_current_target): Update.
8752 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target.h (struct target_ops) <to_call_history_range>: Add
8759 * target.c (target_call_history_range): Add argument.
8760 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8762 (record_btrace_call_history_from): Update.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target.h (struct target_ops) <to_call_history_from>: Add
8768 * target.c (target_call_history_from): Add argument.
8769 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8774 * target.h (struct target_ops) <to_call_history>: Add argument.
8775 * target.c (target_call_history): Add argument.
8776 * record-btrace.c (record_btrace_call_history): Add 'self'
8779 2014-02-19 Tom Tromey <tromey@redhat.com>
8781 * target.h (struct target_ops) <to_insn_history_range>: Add
8783 * target.c (target_insn_history_range): Add argument.
8784 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8786 (record_btrace_insn_history_from): Update.
8788 2014-02-19 Tom Tromey <tromey@redhat.com>
8790 * target.h (struct target_ops) <to_insn_history_from>: Add
8792 * target.c (target_insn_history_from): Add argument.
8793 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target.h (struct target_ops) <to_insn_history>: Add argument.
8799 * target.c (target_insn_history): Add argument.
8800 * record-btrace.c (record_btrace_insn_history): Add 'self'
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8805 * target.h (struct target_ops) <to_goto_record>: Add argument.
8806 * target.c (target_goto_record): Add argument.
8807 * record-full.c (record_full_goto): Add 'self' argument.
8808 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8813 * target.c (target_goto_record_end): Add argument.
8814 * record-full.c (record_full_goto_end): Add 'self' argument.
8815 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8819 * target.h (struct target_ops) <to_goto_record_begin>: Add
8821 * target.c (target_goto_record_begin): Add argument.
8822 * record-full.c (record_full_goto_begin): Add 'self' argument.
8823 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8828 * target.h (struct target_ops) <to_record_is_replaying>: Add
8830 * target.c (target_record_is_replaying): Add argument.
8831 * record-full.c (record_full_is_replaying): Add 'self' argument.
8832 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8834 (record_btrace_xfer_partial, record_btrace_store_registers)
8835 (record_btrace_prepare_to_store, record_btrace_resume)
8836 (record_btrace_wait, record_btrace_decr_pc_after_break)
8837 (record_btrace_find_new_threads, record_btrace_thread_alive):
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8842 * target.h (struct target_ops) <to_delete_record>: Add argument.
8843 * target.c (target_delete_record): Add argument.
8844 * record-full.c (record_full_delete): Add 'self' argument.
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8848 * target.h (struct target_ops) <to_save_record>: Add argument.
8849 * target.c (target_save_record): Add argument.
8850 * record-full.c (record_full_save): Add 'self' argument.
8851 (record_full_save): Add 'self' argument.
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8855 * target.h (struct target_ops) <to_info_record>: Add argument.
8856 * target.c (target_info_record): Add argument.
8857 * record.c (info_record_command): Add argument.
8858 * record-full.c (record_full_info): Add 'self' argument.
8859 * record-btrace.c (record_btrace_info): Add 'self' argument.
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8863 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8864 * target.c (target_stop_recording): Add argument.
8865 * record.c (record_stop): Add argument.
8866 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8869 2014-02-19 Tom Tromey <tromey@redhat.com>
8871 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8872 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8873 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8875 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8876 (_initialize_amd64_linux_nat): Use it.
8877 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8878 (_initialize_i386_linux_nat): Use it.
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8883 * target.c (target_teardown_btrace): Add argument.
8884 * remote.c (remote_teardown_btrace): Add 'self' argument.
8885 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8887 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8893 * target.c (target_disable_btrace): Add argument.
8894 * remote.c (remote_disable_btrace): Add 'self' argument.
8895 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8897 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8900 2014-02-19 Tom Tromey <tromey@redhat.com>
8902 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8903 * target.c (target_enable_btrace): Add argument.
8904 * remote.c (remote_enable_btrace): Add 'self' argument.
8905 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8907 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8912 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8913 (target_can_use_agent): Add argument.
8914 * target.c (update_current_target): Update.
8915 * remote.c (remote_can_use_agent): Add 'self' argument.
8916 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target.h (struct target_ops) <to_use_agent>: Add argument.
8921 (target_use_agent): Add argument.
8922 * target.c (update_current_target): Update.
8923 * remote.c (remote_use_agent): Add 'self' argument.
8924 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8929 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8930 (target_traceframe_info): Add argument.
8931 * target.c (update_current_target): Update.
8932 * remote.c (remote_traceframe_info): Add 'self' argument.
8933 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target.h (target_static_tracepoint_markers_by_strid): Add
8939 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8941 * target.c (update_current_target): Update.
8942 * remote.c (struct target_ops)
8943 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8944 * linux-nat.c (struct target_ops)
8945 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8949 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8951 (target_static_tracepoint_marker_at): Add argument.
8952 * target.c (update_current_target): Update.
8953 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8958 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8959 (target_set_permissions): Add argument.
8960 * target.c (update_current_target): Update.
8961 * remote.c (remote_set_permissions): Add 'self' argument.
8962 (remote_start_remote): Update.
8964 2014-02-19 Tom Tromey <tromey@redhat.com>
8966 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8967 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8968 (target_get_tib_address): Add argument.
8969 * target.c (update_current_target): Update.
8970 * remote.c (remote_get_tib_address): Add 'self' argument.
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8974 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8975 (target_set_trace_notes): Add argument.
8976 * target.c (update_current_target): Update.
8977 * remote.c (remote_set_trace_notes): Add 'self' argument.
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8983 (target_set_trace_buffer_size): Add argument.
8984 * target.c (update_current_target): Update.
8985 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8991 (target_set_circular_trace_buffer): Add argument.
8992 * target.c (update_current_target): Update.
8993 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8998 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9000 (target_set_disconnected_tracing): Add argument.
9001 * target.c (update_current_target): Update.
9002 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9006 * target.h (struct target_ops)
9007 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9008 (target_get_min_fast_tracepoint_insn_len): Add argument.
9009 * target.c (update_current_target): Update.
9010 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9015 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9017 (target_get_raw_trace_data): Add argument.
9018 * target.c (update_current_target): Update.
9019 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9023 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9025 (target_upload_trace_state_variables): Add argument.
9026 * target.c (update_current_target): Update.
9027 * remote.c (remote_upload_trace_state_variables): Add 'self'
9029 (remote_start_remote): Update.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9035 (target_upload_tracepoints): Add argument.
9036 * target.c (update_current_target): Update.
9037 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9038 (remote_start_remote): Update.
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9042 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9043 (target_save_trace_data): Add argument.
9044 * target.c (update_current_target): Update.
9045 * remote.c (remote_save_trace_data): Add 'self' argument.
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9049 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9051 * target.h (struct target_ops)
9052 <to_get_trace_state_variable_value>: Add argument.
9053 (target_get_trace_state_variable_value): Add argument.
9054 * target.c (update_current_target): Update.
9055 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9057 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9061 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9062 * target.h (struct target_ops) <to_trace_find>: Add argument.
9063 (target_trace_find): Add argument.
9064 * target.c (update_current_target): Update.
9065 * remote.c (remote_trace_find): Add 'self' argument.
9066 * ctf.c (ctf_trace_find): Add 'self' argument.
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9070 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9071 (target_trace_stop): Add argument.
9072 * target.c (update_current_target): Update.
9073 * remote.c (remote_trace_stop): Add 'self' argument.
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9077 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9078 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9080 (target_get_tracepoint_status): Add argument.
9081 * target.c (update_current_target): Update.
9082 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9087 * target.h (struct target_ops) <to_get_trace_status>: Add
9089 (target_get_trace_status): Add argument.
9090 * target.c (update_current_target): Update.
9091 * remote.c (remote_get_trace_status): Add 'self' argument.
9092 (remote_start_remote, remote_can_download_tracepoint): Update.
9093 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * target.h (struct target_ops) <to_trace_start>: Add argument.
9098 (target_trace_start): Add argument.
9099 * target.c (update_current_target): Update.
9100 * remote.c (remote_trace_start): Add 'self' argument.
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9106 (target_trace_set_readonly_regions): Add argument.
9107 * target.c (update_current_target): Update.
9108 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9115 (target_disable_tracepoint): Add argument.
9116 * target.c (update_current_target): Update.
9117 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9121 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9123 (target_enable_tracepoint): Add argument.
9124 * target.c (update_current_target): Update.
9125 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9127 2014-02-19 Tom Tromey <tromey@redhat.com>
9129 * target.h (struct target_ops) <to_download_trace_state_variable>:
9131 (target_download_trace_state_variable): Add argument.
9132 * target.c (update_current_target): Update.
9133 * remote.c (remote_download_trace_state_variable): Add 'self'
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9140 (target_can_download_tracepoint): Add argument.
9141 * target.c (update_current_target): Update.
9142 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9146 * target.h (struct target_ops) <to_download_tracepoint>: Add
9148 (target_download_tracepoint): Add argument.
9149 * target.c (update_current_target): Update.
9150 * remote.c (remote_download_tracepoint): Add 'self' argument.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target.h (struct target_ops) <to_trace_init>: Add argument.
9155 (target_trace_init): Add argument.
9156 * target.c (update_current_target): Update.
9157 * remote.c (remote_trace_init): Add 'self' argument.
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9162 * target.c (target_fileio_readlink): Add argument.
9163 * remote.c (remote_hostio_readlink): Add 'self' argument.
9164 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9169 * target.c (target_fileio_unlink): Add argument.
9170 * remote.c (remote_hostio_unlink): Add 'self' argument.
9171 (remote_file_delete): Update.
9172 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9176 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9177 * target.c (target_fileio_close): Add argument.
9178 * remote.c (remote_hostio_close): Add 'self' argument.
9179 (remote_hostio_close_cleanup): Update.
9180 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9182 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9187 * target.c (target_fileio_pread): Add argument.
9188 * remote.c (remote_hostio_pread): Add 'self' argument.
9189 (remote_bfd_iovec_pread, remote_file_get): Update.
9190 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9192 2014-02-19 Tom Tromey <tromey@redhat.com>
9194 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9195 * target.c (target_fileio_pwrite): Add argument.
9196 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9197 (remote_file_put): Update.
9198 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9202 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9203 * target.c (target_fileio_open): Add argument.
9204 * remote.c (remote_hostio_open): Add 'self' argument.
9205 (remote_bfd_iovec_open): Add 'self' argument.
9206 (remote_file_put): Add 'self' argument.
9207 (remote_file_get): Add 'self' argument.
9208 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9214 (target_can_run_breakpoint_commands): Add argument.
9215 * target.c (update_current_target): Update.
9216 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9218 (remote_insert_breakpoint): Add 'self' argument.
9219 (remote_insert_hw_breakpoint): Add 'self' argument.
9220 (remote_can_run_breakpoint_commands): Add 'self' argument.
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9224 * target.h (struct target_ops)
9225 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9226 (target_supports_evaluation_of_breakpoint_conditions): Add
9228 * target.c (update_current_target): Update.
9229 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9231 (remote_insert_breakpoint): Add 'self' argument.
9232 (remote_insert_hw_breakpoint): Add 'self' argument.
9233 (remote_supports_cond_breakpoints): Add 'self' argument.
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9237 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9239 (target_supports_string_tracing): Add argument.
9240 * target.c (update_current_target): Update.
9241 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target.h (struct target_ops)
9246 <to_supports_disable_randomization>: Add argument.
9247 * target.c (find_default_supports_disable_randomization): Add
9249 (target_supports_disable_randomization): Add argument.
9250 (find_default_supports_disable_randomization): Add 'self'
9252 * remote.c (extended_remote_supports_disable_randomization): Add
9254 (remote_supports_disable_randomization): Add 'self' argument.
9255 (extended_remote_create_inferior): Update.
9256 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9261 * target.h (struct target_ops)
9262 <to_supports_enable_disable_tracepoint>: Add argument.
9263 (target_supports_enable_disable_tracepoint): Add argument.
9264 * target.c (update_current_target): Update.
9265 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9270 * target.h (struct target_ops) <to_supports_multi_process>: Add
9272 (target_supports_multi_process): Add argument.
9273 * target.c (update_current_target): Update.
9274 * remote.c (remote_supports_multi_process): Add 'self' argument.
9275 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9277 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * target.h (struct target_ops) <to_execution_direction>: Add
9284 (target_execution_direction): Add argument.
9285 * target.c (default_execution_direction): Add 'self' argument.
9286 * record-full.c (record_full_execution_direction): Add 'self'
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9291 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9293 (target_can_execute_reverse): Add argument.
9294 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9295 * record-full.c (record_full_can_execute_reverse): Add 'self'
9297 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9300 2014-02-19 Tom Tromey <tromey@redhat.com>
9302 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9303 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9305 (target_get_ada_task_ptid): Add argument.
9306 * target.c (update_current_target): Update.
9307 (default_get_ada_task_ptid): Add 'self' argument.
9308 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9309 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9310 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9312 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9314 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9316 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9318 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9319 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9324 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9325 (target_goto_bookmark): Add argument.
9326 * target.c (dummy_goto_bookmark): Add 'self' argument.
9327 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9329 2014-02-19 Tom Tromey <tromey@redhat.com>
9331 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9332 (target_get_bookmark): Add argument.
9333 * target.c (dummy_get_bookmark): Add 'self' argument.
9334 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9340 (target_make_corefile_notes): Add argument.
9341 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9342 * procfs.c (procfs_make_note_section): Add 'self' argument.
9343 (procfs_make_note_section): Add 'self' argument.
9344 (procfs_make_note_section): Add 'self' argument.
9345 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9347 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9348 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9349 * exec.c (exec_make_note_section): Add 'self' argument.
9350 (exec_make_note_section): Add 'self' argument.
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target.h (struct target_ops) <to_find_memory_regions>: Add
9356 (target_find_memory_regions): Add argument.
9357 * target.c (dummy_find_memory_regions): Add 'self' argument.
9358 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9359 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9360 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9361 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9362 * exec. (exec_do_find_memory_regions): New global.
9363 (exec_set_find_memory_regions): Rewrite.
9364 (exec_find_memory_regions): New function.
9365 (init_exec_ops): Use exec_find_memory_regions.
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9369 * target.h (struct target_ops) <to_supports_non_stop>: Add
9371 * target.c (find_default_supports_non_stop): Add argument.
9372 (target_supports_non_stop): Add argument.
9373 (find_default_supports_non_stop): Add 'self' argument.
9374 * remote.c (remote_supports_non_stop): Add 'self' argument.
9375 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9379 * target.h (struct target_ops) <to_log_command>: Add argument.
9380 (target_log_command): Add argument.
9381 * serial.h (serial_log_command): Add 'self' argument.
9382 * serial.c (serial_log_command): Add 'self' argument.
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9386 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9387 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9389 (target_pid_to_exec_file): Add argument.
9390 * target.c (debug_to_pid_to_exec_file): Add argument.
9391 (update_current_target): Update.
9392 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9393 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9394 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9395 (linux_handle_extended_wait): Update.
9396 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9397 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9398 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9399 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9403 * target.h (struct target_ops) <to_rcmd>: Add argument.
9404 (target_rcmd): Add argument.
9405 * target.c (debug_to_rcmd): Add argument.
9406 (update_current_target, do_monitor_command): Update.
9407 * remote.c (remote_rcmd): Add 'self' argument.
9408 * monitor.c (monitor_rcmd): Add 'self' argument.
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9412 * windows-nat.c (windows_stop): Add 'self' argument.
9413 * target.h (struct target_ops) <to_stop>: Add argument.
9414 * target.c (target_stop): Add argument.
9415 (debug_to_stop): Add argument.
9416 (update_current_target): Update.
9417 * remote.c (remote_stop): Add 'self' argument.
9418 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9419 (gdbsim_cntrl_c): Update.
9420 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9421 * procfs.c (procfs_stop): Add 'self' argument.
9422 * nto-procfs.c (procfs_stop): Add 'self' argument.
9423 * monitor.c (monitor_stop): Add 'self' argument.
9424 (monitor_open): Update.
9425 * linux-nat.c (linux_nat_stop): Add argument.
9426 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9427 * gnu-nat.c (gnu_stop): Add 'self' argument.
9428 * darwin-nat.c (darwin_stop): Add 'self' argument.
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9432 * target.h (struct target_ops) <to_thread_name>: Add argument.
9433 * target.c (target_thread_name): Add argument.
9434 (update_current_target): Update.
9435 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target.h (struct target_ops) <to_extra_thread_info>: Add
9441 (target_extra_thread_info): Add argument.
9442 * target.c (update_current_target): Update.
9443 * remote.c (remote_threads_extra_info): Add 'self' argument.
9444 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9446 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9447 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9448 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9450 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9452 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9454 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9459 * target.h (struct target_ops) <to_program_signals>: Add argument.
9460 * target.c (target_program_signals): Add argument.
9461 * remote.c (remote_program_signals): Add 'self' argument.
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9465 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9466 * target.c (target_pass_signals): Add argument.
9467 * remote.c (remote_pass_signals): Add 'self' argument.
9468 (remote_start_remote): Update.
9469 * procfs.c (procfs_pass_signals): Add 'self' argument.
9470 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9471 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9472 (linux_nat_create_inferior, linux_nat_attach): Update.
9474 2014-02-19 Tom Tromey <tromey@redhat.com>
9476 * windows-nat.c (windows_can_run): Add 'self' argument.
9477 * target.h (struct target_ops) <to_can_run>: Add argument.
9478 (target_can_run): Add argument.
9479 * target.c (debug_to_can_run): Add argument.
9480 (update_current_target): Update.
9481 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9482 * inf-child.c (inf_child_can_run): Add 'self' argument.
9483 * go32-nat.c (go32_can_run): Add 'self' argument.
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9487 * target.h (struct target_ops) <to_has_exited>: Add argument.
9488 (target_has_exited): Add argument.
9489 * target.c (debug_to_has_exited): Add argument.
9490 (update_current_target): Update.
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9496 (target_set_syscall_catchpoint): Add argument.
9497 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9499 * target.c (update_current_target): Update.
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9503 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9505 (target_remove_exec_catchpoint): Add argument.
9506 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9507 (update_current_target): Update.
9508 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9515 (target_insert_exec_catchpoint): Add argument.
9516 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9517 (update_current_target): Update.
9518 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9523 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9525 (target_remove_vfork_catchpoint): Add argument.
9526 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9527 (update_current_target): Update.
9528 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9533 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9535 (target_insert_vfork_catchpoint): Add argument.
9536 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9537 (update_current_target): Update.
9538 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9541 2014-02-19 Tom Tromey <tromey@redhat.com>
9543 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9545 (target_remove_fork_catchpoint): Add argument.
9546 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9547 (update_current_target): Update.
9548 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9555 (target_insert_fork_catchpoint): Add argument.
9556 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9557 (update_current_target): Update.
9558 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9563 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9565 (target_post_startup_inferior): Add argument.
9566 * target.c (debug_to_post_startup_inferior): Add argument.
9567 (update_current_target): Update.
9568 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9570 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9572 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9574 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9576 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9578 (super_post_startup_inferior): Likewise.
9579 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9581 (super_post_startup_inferior): Likewise.
9582 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9583 Add 'self' argument.
9584 (super_post_startup_inferior): Likewise.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target.h (struct target_ops) <to_load>: Add argument.
9589 * target.c (target_load): Add argument.
9590 (debug_to_load): Add argument.
9591 (update_current_target): Update.
9592 * remote.c (remote_load): Add 'self' argument.
9593 * remote-sim.c (gdbsim_load): Add 'self' argument.
9594 * remote-mips.c (mips_load): Add 'self' argument.
9595 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9596 * monitor.c (monitor_load): Add 'self' argument.
9597 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9602 (target_terminal_info): Add argument.
9603 * target.c (debug_to_terminal_info): Add argument.
9604 (default_terminal_info): Likewise.
9605 * inflow.c (child_terminal_info): Add 'self' argument.
9606 * inferior.h (child_terminal_info): Add 'self' argument.
9607 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9611 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9613 (target_terminal_save_ours): Add argument.
9614 * target.c (debug_to_terminal_save_ours): Add argument.
9615 (update_current_target): Update.
9616 * inflow.c (terminal_save_ours): Add 'self' argument.
9617 * inferior.h (terminal_save_ours): Add 'self' argument.
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9621 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9622 (target_terminal_ours): Add argument.
9623 * target.c (debug_to_terminal_ours): Add argument.
9624 (update_current_target): Update.
9625 * remote.c (remote_terminal_ours): Add 'self' argument.
9626 (remote_close): Update.
9627 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9628 * inflow.c (terminal_ours): Add 'self' argument.
9629 * inferior.h (terminal_ours): Add 'self' argument.
9630 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9632 2014-02-19 Pedro Alves <palves@redhat.com>
9633 Tom Tromey <tromey@redhat.com>
9635 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9637 (target_terminal_ours_for_output): Add argument.
9638 * target.c (debug_to_terminal_ours_for_output): Add argument.
9639 (update_current_target): Update.
9640 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9641 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9642 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * target.h (struct target_ops) <to_terminal_inferior>: Add
9648 * target.c (target_terminal_inferior): Add argument.
9649 (update_current_target): Update.
9650 * remote.c (remote_terminal_inferior): Add 'self' argument.
9651 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9652 * inflow.c (terminal_inferior): Add 'self' argument.
9653 * inferior.h (terminal_inferior): Add 'self' argument.
9654 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9655 (go32_terminal_inferior): Add 'self' argument.
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9660 (target_terminal_init): Add argument.
9661 * target.c (debug_to_terminal_init): Add argument.
9662 (update_current_target): Update.
9663 * inflow.c (terminal_init_inferior): Add 'self' argument.
9664 * inferior.h (terminal_init_inferior): Add 'self' argument.
9665 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9666 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9670 * target.h (struct target_ops)
9671 <to_can_accel_watchpoint_condition>: Add argument.
9672 (target_can_accel_watchpoint_condition): Add argument.
9673 * target.c (debug_to_can_accel_watchpoint_condition): Add
9675 (update_current_target): Update.
9676 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9681 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9683 (target_region_ok_for_hw_watchpoint): Add argument.
9684 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9685 (default_region_ok_for_hw_watchpoint): Add argument.
9686 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9687 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9689 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9691 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9693 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9695 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9697 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9699 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9700 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9702 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9703 Add 'self' argument.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9709 (target_insert_watchpoint): Add argument.
9710 * target.c (debug_to_insert_watchpoint): Add argument.
9711 (update_current_target): Update.
9712 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9713 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9714 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9715 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9716 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9717 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9719 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9720 (procfs_insert_hw_watchpoint): Add 'self' argument.
9721 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9723 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9725 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9727 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9728 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9730 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9733 2014-02-19 Tom Tromey <tromey@redhat.com>
9735 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9737 (target_remove_watchpoint): Add argument.
9738 * target.c (debug_to_remove_watchpoint): Add argument.
9739 (update_current_target): Update.
9740 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9741 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9742 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9743 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9744 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9745 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9747 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9748 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9750 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9752 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9754 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9755 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9757 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9762 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9764 (target_remove_hw_breakpoint): Add argument.
9765 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9766 (update_current_target): Update.
9767 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9768 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9770 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9771 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9773 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9780 (target_insert_hw_breakpoint): Add argument.
9781 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9782 (update_current_target): Update.
9783 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9784 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9786 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9787 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9788 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9790 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9795 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9797 (target_can_use_hardware_watchpoint): Add argument.
9798 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9799 (update_current_target): Update.
9800 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9802 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9804 * remote.c (remote_check_watch_resources): Add 'self' argument.
9805 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9806 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9808 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9809 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9811 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9813 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9815 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9817 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9819 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9821 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9822 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9824 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target.h (struct target_ops) <to_post_attach>: Add argument.
9830 (target_post_attach): Add argument.
9831 * target.c (debug_to_post_attach): Add argument.
9832 (update_current_target): Update.
9833 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9834 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9835 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9836 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9837 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * windows-nat.c (windows_close): Add 'self' argument.
9842 * tracepoint.c (tfile_close): Add 'self' argument.
9843 * target.h (struct target_ops) <to_close>: Add argument.
9844 * target.c (target_close): Add argument.
9845 (update_current_target): Update.
9846 * remote.c (remote_close): Add 'self' argument.
9847 * remote-sim.c (gdbsim_close): Add 'self' argument.
9848 * remote-mips.c (mips_close): Add 'self' argument.
9849 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9850 * record-full.c (record_full_close): Add 'self' argument.
9851 * record-btrace.c (record_btrace_close): Add 'self' argument.
9852 * monitor.h (monitor_close): Add 'self' argument.
9853 * monitor.c (monitor_close): Add 'self' argument.
9854 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9855 * linux-nat.c (linux_nat_close): Add argument.
9856 * go32-nat.c (go32_close): Add 'self' argument.
9857 * exec.c (exec_close_1): Add 'self' argument.
9858 * ctf.c (ctf_close): Add 'self' argument.
9859 * corelow.c (core_close): Add 'self' argument.
9860 (core_close_cleanup): Update.
9861 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9862 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9864 2014-02-19 Tom Tromey <tromey@redhat.com>
9866 * remote.c (remote_load): New function.
9867 (init_remote_ops): Use it.
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9871 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9873 * common/linux-btrace.h (linux_supports_btrace): Update.
9874 * remote.c (remote_supports_btrace): Add "self" argument.
9875 * target-delegates.c: Rebuild.
9876 * target.c (target_supports_btrace): Remove.
9877 * target.h (struct target_ops) <to_supports_btrace>: Add
9878 target_ops argument.
9879 (target_supports_btrace): New define.
9881 2014-02-19 Tom Tromey <tromey@redhat.com>
9883 * record-full.c (record_full_beneath_to_resume_ops)
9884 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9885 (record_full_beneath_to_wait)
9886 (record_full_beneath_to_store_registers_ops)
9887 (record_full_beneath_to_store_registers)
9888 (record_full_beneath_to_xfer_partial_ops)
9889 (record_full_beneath_to_xfer_partial)
9890 (record_full_beneath_to_insert_breakpoint_ops)
9891 (record_full_beneath_to_insert_breakpoint)
9892 (record_full_beneath_to_remove_breakpoint_ops)
9893 (record_full_beneath_to_remove_breakpoint)
9894 (record_full_beneath_to_stopped_by_watchpoint)
9895 (record_full_beneath_to_stopped_data_address)
9896 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9897 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9898 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9899 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9900 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9901 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9902 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9903 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9904 (record_full_resume, record_full_wait_1)
9905 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9906 (record_full_store_registers, record_full_xfer_partial)
9907 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9908 (record_full_async, record_full_core_xfer_partial): Use target
9910 * target-delegates.c: Rebuild.
9911 * target.c (current_xfer_partial): Remove.
9912 (update_current_target): Do not INHERIT or de_fault
9913 to_insert_breakpoint, to_remove_breakpoint,
9914 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9915 to_is_async_p, to_async. Do not set to_xfer_partial field.
9916 (default_xfer_partial): Simplify.
9917 (current_xfer_partial): Remove.
9918 (target_wait, target_resume): Simplify.
9919 (find_default_can_async_p, find_default_is_async_p): Update.
9920 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9921 to_xfer_partial, to_stopped_by_watchpoint,
9922 to_stopped_data_address.
9923 (target_store_registers): Simplify.
9924 (forward_target_remove_breakpoint)
9925 (forward_target_insert_breakpoint): Remove.
9926 (target_remove_breakpoint, target_insert_breakpoint)
9927 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9928 * target.h (struct target_ops) <to_resume, to_wait,
9929 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9930 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9931 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9933 (forward_target_remove_breakpoint)
9934 (forward_target_insert_breakpoint): Remove.
9935 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9937 (record_btrace_insert_breakpoint): Delegate directly.
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target-delegates.c: New file.
9943 * target.c: Include target-delegates.c.
9944 (init_dummy_target): Call install_dummy_methods.
9945 (complete_target_initialization): Call install_delegators.
9946 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9947 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9948 * make-target-delegates: New file.
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * record.c (find_record_target): Use find_target_at.
9953 * target.c (find_target_at): New function.
9954 * target.h (find_target_at): Declare.
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9960 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9962 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9963 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9965 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9967 * linux-nat.c (save_sigtrap): Update.
9968 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9969 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9970 (linux_nat_close): Update.
9971 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9973 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9975 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9976 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9977 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9978 (tmp_to_async): Add 'ops' argument.
9979 (record_full_stopped_by_watchpoint, record_full_async)
9980 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9982 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9983 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9984 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9985 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9986 (remote_is_async_p, remote_async): Add 'ops' argument.
9987 (remote_stopped_data_address): Update.
9988 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9989 * target.c (update_current_target)
9990 (find_default_can_async_p, find_default_is_async_p): Update.
9991 (init_dummy_target): Update.
9992 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9993 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9994 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9995 (target_can_async_p, target_is_async_p, target_async)
9996 (target_stopped_by_watchpoint): Update.
9998 2014-02-19 Yao Qi <yao@codesourcery.com>
10001 * gdbarch.sh: Remove startup_gdbarch.
10002 * gdbarch.c: Regenerated.
10003 * gdbarch.h: Likewise.
10005 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10007 * rl78-tdep.c (rl78_g10_register_name): New function.
10008 (rl78_return_value): Add g10 support.
10009 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10012 2014-02-17 Doug Evans <xdje42@gmail.com>
10014 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10015 (SUBDIR_GUILE_SRCS): Ditto.
10016 (scm-gsmob.o): Ditto.
10018 2014-02-17 Yao Qi <yao@codesourcery.com>
10020 * gnu-nat.c (ILL_RPC): Declare defined function.
10022 2014-02-17 Yao Qi <yao@codesourcery.com>
10024 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10025 mach_msg_type_number_t.
10026 (gnu_write_inferior): Likewise.
10028 2014-02-17 Yao Qi <yao@codesourcery.com>
10030 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10032 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10033 (inf_validate_procs, inf_signal): Likewise.
10034 (S_exception_raise_request): Likewise.
10035 (do_mach_notify_dead_name): Likewise.
10036 (steal_exc_port): Likewise.
10037 (gnu_read_inferior): Change 'copy_count''s type to
10038 mach_msg_type_number_t.
10039 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10042 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10044 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10045 flag. Adjust all users; in particular...
10046 (gnu_wait): ..., don't decrement its value in here...
10047 (gnu_create_inferior): ..., and instead set the flag in here,
10048 around the startup_inferior call, and call that one with
10049 START_INFERIOR_TRAPS_EXPECTED.
10051 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10052 (ILL_RPC): ... new macro.
10053 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10054 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10055 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10056 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10057 functions with ILL_RPC macro.
10058 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10059 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10060 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10061 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10062 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10063 (S_proc_getlogin_reply, S_proc_getsid_reply)
10064 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10065 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10066 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10067 (S_proc_getnports_reply, S_proc_is_important_reply)
10068 (S_proc_get_code_reply): New stub functions, generated with
10071 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10072 collected the type check structures.
10074 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10076 2014-02-14 Doug Evans <dje@google.com>
10078 * target.c (target_write_partial): Fix result type.
10080 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10082 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10083 the proper offsets to access fpregset_t.
10085 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10087 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10088 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10089 * h8300-tdep.c (setmachinelist): Remove global.
10090 * hppa-tdep.c (hppa_sigtramp): Remove global.
10091 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10092 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10093 * ravenscar-thread.c (update_target_observer): Remove global.
10094 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10096 2014-02-12 Tom Tromey <tromey@redhat.com>
10098 * common/rsp-low.c: Update comments.
10099 * common/rsp-low.h: Update comments.
10101 2014-02-12 Tom Tromey <tromey@redhat.com>
10103 * common/rsp-low.c (convert_ascii_to_int): Remove.
10104 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10106 2014-02-12 Tom Tromey <tromey@redhat.com>
10108 * common/rsp-low.h (unhexify): Don't declare.
10109 * common/rsp-low.c (unhexify): Remove.
10111 2014-02-12 Tom Tromey <tromey@redhat.com>
10113 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10114 * common/rsp-low.c (convert_int_to_ascii): Remove.
10116 2014-02-12 Tom Tromey <tromey@redhat.com>
10118 * common/rsp-low.h (hexify): Don't declare.
10119 * common/rsp-low.c (hexify): Remove.
10121 2014-02-12 Tom Tromey <tromey@redhat.com>
10123 * common/rsp-low.c (hexify): Never take strlen of argument.
10125 2014-02-12 Tom Tromey <tromey@redhat.com>
10127 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10128 * remote.c (extended_remote_run, remote_rcmd)
10129 (remote_download_trace_state_variable, remote_save_trace_data)
10130 (remote_set_trace_notes): Update.
10131 * tracepoint.c (encode_source_string, tfile_write_status)
10132 (tfile_write_uploaded_tsv): Update.
10134 2014-02-12 Tom Tromey <tromey@redhat.com>
10136 * tracepoint.c: Include rsp-low.h.
10137 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10138 * remote.c: Include rsp-low.h.
10139 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10140 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10141 (remote_unescape_input): Move to common/rsp-low.c.
10142 * common/rsp-low.h: New file.
10143 * common/rsp-low.c: New file.
10144 * Makefile.in (SFILES): Add common/rsp-low.c.
10145 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10146 (COMMON_OBS): Add rsp-low.o.
10147 (rsp-low.o): New target.
10149 2014-02-12 Tom Tromey <tromey@redhat.com>
10151 * utils.h: Include print-utils.h.
10152 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10153 (int_string, core_addr_to_string, core_addr_to_string_nz)
10154 (hex_string, hex_string_custom): Don't declare.
10155 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10156 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10157 (hex_string_custom, int_string, core_addr_to_string)
10158 (core_addr_to_string_nz, host_address_to_string): Move to
10159 common/print-utils.c.
10160 * common/print-utils.h: New file.
10161 * common/print-utils.c: New file
10162 * Makefile.in (SFILES): Add common/print-utils.c.
10163 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10164 (COMMON_OBS): Add print-utils.o.
10165 (print-utils.o): New target.
10167 2014-02-12 Tom Tromey <tromey@redhat.com>
10169 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10171 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10173 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10175 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10177 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10178 if a PT_IO ptrace request returns sucessfully but indicates that 0
10179 bytes were transferred.
10181 2014-02-12 Pedro Alves <palves@redhat.com>
10182 Kevin Buettner <kevinb@redhat.com>
10184 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10185 TYPE_INSTANCE_FLAG_CODE_SPACE.
10187 2014-02-12 Pedro Alves <palves@redhat.com>
10189 * h8300-tdep.c (pseudo_from_raw_register)
10190 (raw_from_pseudo_register): New functions.
10191 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10194 2014-02-12 Pedro Alves <palves@redhat.com>
10196 * h8300-tdep.c (h8300_register_sim_regno): New function.
10197 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10198 gdbarch_register_sim_regno hook.
10200 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10202 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10204 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10206 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10208 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10210 * obsd-tdep.h (obsd_init_abi): New prototype.
10211 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10212 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10213 (obsd_init_abi): New functions.
10214 * i386obsd-tdep.c: Include "obsd-tdep.h".
10215 (i386obsd_init_abi): Call obsd_init_abi.
10216 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10217 (amd64obsd_init_abi): Call obsd_init_abi.
10218 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10219 obsd-tdep.c to gdb_target_obs.
10221 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10223 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10224 double float arguments to 16-byte in the argument slots.
10226 2014-02-11 Doug Evans <xdje42@gmail.com>
10228 * configure.ac: Don't crash if pkg-config is not found and guile
10229 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10231 * configure: Regenerate.
10233 2014-02-11 Yao Qi <yao@codesourcery.com>
10235 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10236 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10237 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10238 * gnu-nat.c (gnu_xfer_memory): Likewise.
10239 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10240 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10241 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10242 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10244 2014-02-11 Yao Qi <yao@codesourcery.com>
10246 * target.h (enum target_xfer_error): Rename to ...
10247 (enum target_xfer_status): ... it. New. All users updated.
10248 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10250 (TARGET_XFER_STATUS_ERROR_P): New macro.
10251 (target_xfer_error_to_string): Remove declaration.
10252 (target_xfer_status_to_string): Declare.
10253 (target_xfer_partial_ftype): Adjust it.
10254 (struct target_ops) <to_xfer_partial>: Return
10255 target_xfer_status. Add argument xfered_len. Update
10257 * target.c (target_xfer_error_to_string): Rename to ...
10258 (target_xfer_status_to_string): ... it. New. All callers
10260 (target_read_live_memory): Likewise. Call target_xfer_partial
10261 instead of target_read.
10262 (memory_xfer_live_readonly_partial): Return
10263 target_xfer_status. Add argument xfered_len.
10264 (raw_memory_xfer_partial): Likewise.
10265 (memory_xfer_partial_1): Likewise.
10266 (memory_xfer_partial): Likewise.
10267 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10268 properly. Update debug message.
10269 (default_xfer_partial, current_xfer_partial): Likewise.
10270 (target_write_partial): Likewise.
10271 (target_read_partial): Likewise. All callers updated.
10272 (read_whatever_is_readable): Likewise.
10273 (target_write_with_progress): Likewise.
10274 (target_read_alloc_1): Likewise.
10276 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10277 * auxv.c (procfs_xfer_auxv): Likewise.
10278 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10279 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10280 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10281 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10282 * corefile.c (read_memory): Adjust.
10283 * corelow.c (core_xfer_partial): Likewise.
10284 * ctf.c (ctf_xfer_partial): Likewise.
10285 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10287 (darwin_xfer_partial): Likewise.
10288 * exec.c (section_table_xfer_memory_partial): Likewise. All
10290 (exec_xfer_partial): Likewise.
10291 * exec.h (section_table_xfer_memory_partial): Update
10293 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10295 (gnu_xfer_partial): Likewise.
10296 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10297 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10298 (ia64_hpux_xfer_solib_got): Likewise.
10299 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10300 type of 'partial_len' to ULONGEST.
10301 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10302 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10303 (linux_nat_xfer_partial): Likewise.
10304 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10305 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10306 * monitor.c (monitor_xfer_memory): Likewise.
10307 (monitor_xfer_partial): Likewise.
10308 * procfs.c (procfs_xfer_partial): Likewise.
10309 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10310 * record-full.c (record_full_xfer_partial): Likewise.
10311 (record_full_core_xfer_partial): Likewise.
10312 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10313 (gdbsim_xfer_partial): Likewise.
10314 * remote.c (remote_write_bytes_aux): Likewise. All callers
10316 (remote_write_bytes, remote_read_bytes): Likewise. All
10318 (remote_flash_erase): Likewise. All callers updated.
10319 (remote_write_qxfer): Likewise. All callers updated.
10320 (remote_read_qxfer): Likewise. All callers updated.
10321 (remote_xfer_partial): Likewise.
10322 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10323 (rs6000_xfer_shared_libraries): Likewise.
10324 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10325 (sol_thread_xfer_partial): Likewise.
10326 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10327 (sparc_xfer_partial): Likewise.
10328 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10330 (spu_xfer_partial): Likewise.
10331 * spu-multiarch.c (spu_xfer_partial): Likewise.
10332 * tracepoint.c (tfile_xfer_partial): Likewise.
10333 * windows-nat.c (windows_xfer_memory): Likewise.
10334 (windows_xfer_shared_libraries): Likewise.
10335 (windows_xfer_partial): Likewise.
10336 * valprint.c: Replace 'target_xfer_error' with
10337 'target_xfer_status' in comments.
10339 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10341 Checked in by Joel Brobecker <brobecker@adacore.com>.
10342 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10344 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10346 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10347 function parameters.
10349 2014-02-10 Will Newton <will.newton@linaro.org>
10351 * elfread.c (elf_rel_plt_read): Look for a .got section if
10352 looking up .got.plt fails.
10353 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10354 on address passed to elf_gnu_ifunc_record_cache.
10355 (elf_gnu_ifunc_resolve_addr): Likewise.
10356 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10358 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10360 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10361 (X_RETTURN): New macro.
10362 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10364 * sparc64-tdep.c (sparc64_init_abi): Hook
10365 sparc_in_function_epilogue_p.
10367 2014-02-10 Gary Benson <gbenson@redhat.com>
10369 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10370 Rename name_matcher to symbol_matcher.
10372 2014-02-10 Gary Benson <gbenson@redhat.com>
10374 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10375 Use expand_symtabs_file_matcher_ftype and
10376 expand_symtabs_symbol_matcher_ftype.
10378 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10380 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10381 (struct ada_symbol_cache): New.
10382 (ada_free_symbol_cache): Forward declare.
10383 (struct ada_pspace_data): New.
10384 (ada_pspace_data_handle): New static global.
10385 (get_ada_pspace_data, ada_pspace_data_cleanup)
10386 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10387 (cache_space, cache): Delete, now folded inside struct
10389 (ada_get_symbol_cache): New function.
10390 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10392 (_initialize_ada_language): Remove initialization of cache_space.
10393 Move call to observer_attach_inferior_exit up, grouping it
10394 with the other observer registrations inside this function.
10395 Rename command to be more general. Add call to
10396 register_program_space_data_with_cleanup.
10398 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10400 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10401 ada_new_objfile_observer.
10402 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10403 (_initialize_tasks): Update uses of ada_new_objfile_observer
10404 and ada_tasks_normal_stop_observer.
10406 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10408 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10409 returned by the 'Length attribute to integer.
10411 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10413 * ada-lang.c (_initialize_ada_language): Initialize
10414 cache_space obstack.
10416 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10418 * ada-lang.c (HASH_SIZE): New macro.
10419 (struct cache_entry): New type.
10420 (cache_space, cache): New static globals.
10421 (ada_clear_symbol_cache, find_entry): New functions.
10422 (lookup_cached_symbol, cache_symbol): Implement.
10423 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10424 (_initialize_ada_language): Attach ada_new_objfile_observer
10425 and ada_free_objfile_observer.
10427 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10429 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10430 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10431 struct block * parameter.
10432 (ada_lookup_symbol_list_worker): Constify local variable "block".
10433 Remove cast which is no longer necessary.
10435 2014-02-10 Doug Evans <xdje42@gmail.com>
10437 Add Guile as an extension language.
10438 * NEWS: Mention Guile scripting.
10439 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10440 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10441 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10442 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10443 (CLIBS): Add GUILE_LIBS.
10444 (install-guile): New rule.
10445 (guile.o): New rule.
10446 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10447 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10448 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10449 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10450 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10451 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10452 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10453 * configure.ac: New option --with-guile.
10454 * configure: Regenerate.
10455 * config.in: Regenerate.
10456 * auto-load.c: Remove #include "python/python.h". Add #include
10457 "gdb/section-scripts.h".
10458 (source_section_scripts): Handle Guile scripts.
10459 (_initialize_auto_load): Add name of Guile objfile script to
10460 scripts-directory help text.
10461 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10462 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10463 (struct breakpoint): New member scm_bp_object.
10464 * defs.h (enum command_control_type): New value guile_control.
10465 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10467 (show_user): Update comment.
10468 (_initialize_cli_cmds): Update help text for "show user". Update help
10469 text for max-user-call-depth.
10470 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10472 (multi_line_command_p): Add guile_control.
10473 (print_command_lines): Handle guile_control.
10474 (execute_control_command, recurse_read_control_structure): Ditto.
10475 (process_next_line): Recognize "guile" commands.
10476 * disasm.c (gdb_disassemble_info): Make non-static.
10477 * disasm.h: #include "dis-asm.h".
10478 (struct gdbarch): Add forward decl.
10479 (gdb_disassemble_info): Declare.
10480 * extension.c: #include "guile/guile.h".
10481 (extension_languages): Add guile.
10482 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10483 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10484 * gdbtypes.c (get_unsigned_type_max): New function.
10485 (get_signed_type_minmax): New function.
10486 * gdbtypes.h (get_unsigned_type_max): Declare.
10487 (get_signed_type_minmax): Declare.
10488 * guile/README: New file.
10489 * guile/guile-internal.h: New file.
10490 * guile/guile.c: New file.
10491 * guile/guile.h: New file.
10492 * guile/scm-arch.c: New file.
10493 * guile/scm-auto-load.c: New file.
10494 * guile/scm-block.c: New file.
10495 * guile/scm-breakpoint.c: New file.
10496 * guile/scm-disasm.c: New file.
10497 * guile/scm-exception.c: New file.
10498 * guile/scm-frame.c: New file.
10499 * guile/scm-gsmob.c: New file.
10500 * guile/scm-iterator.c: New file.
10501 * guile/scm-lazy-string.c: New file.
10502 * guile/scm-math.c: New file.
10503 * guile/scm-objfile.c: New file.
10504 * guile/scm-ports.c: New file.
10505 * guile/scm-pretty-print.c: New file.
10506 * guile/scm-safe-call.c: New file.
10507 * guile/scm-string.c: New file.
10508 * guile/scm-symbol.c: New file.
10509 * guile/scm-symtab.c: New file.
10510 * guile/scm-type.c: New file.
10511 * guile/scm-utils.c: New file.
10512 * guile/scm-value.c: New file.
10513 * guile/lib/gdb.scm: New file.
10514 * guile/lib/gdb/boot.scm: New file.
10515 * guile/lib/gdb/experimental.scm: New file.
10516 * guile/lib/gdb/init.scm: New file.
10517 * guile/lib/gdb/iterator.scm: New file.
10518 * guile/lib/gdb/printing.scm: New file.
10519 * guile/lib/gdb/types.scm: New file.
10520 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10521 (VPATH): Add $(GUILE_SRCDIR).
10522 (GUILE_DIR): New variable.
10523 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10524 (all): Add stamp-guile dependency.
10525 (stamp-guile): New rule.
10526 (clean-guile, install-guile, uninstall-guile): New rules.
10527 (install-only): Add install-guile dependency.
10528 (uninstall): Add uninstall-guile dependency.
10529 (clean): Add clean-guile dependency.
10531 2014-02-09 Doug Evans <xdje42@gmail.com>
10533 Revert this patch (which I approved, mea culpa).
10535 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10537 * Makefile.in (all-lib): Remove.
10538 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10540 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10542 Fix Python stack corruption.
10543 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10546 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10548 * Makefile.in (all-lib): Remove.
10549 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10551 2014-02-07 Doug Evans <dje@google.com>
10553 * extension-priv.h (extension_language_script_ops): Add comment.
10554 (extension_language_ops): Add comment.
10555 (active_ext_lang_state): Fix typo in comment.
10557 2014-02-07 Pedro Alves <palves@redhat.com>
10559 PR breakpoints/16292
10560 * infrun.c (handle_signal_stop) <signal arrives while stepping
10561 over a breakpoint>: Switch back to the stepping thread.
10563 2014-02-07 Yao Qi <yao@codesourcery.com>
10565 * target.c (target_xfer_partial): Return zero if LEN is zero.
10567 2014-02-07 Yao Qi <yao@codesourcery.com>
10569 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10570 (ld_so_xfer_auxv): Likewise.
10571 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10572 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10573 * corelow.c (core_xfer_partial): Likewise.
10574 * ctf.c (ctf_xfer_partial): Likewise.
10575 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10576 (darwin_xfer_partial): Likewise.
10577 * exec.c (exec_xfer_partial): Likewise.
10578 * gnu-nat.c (gnu_xfer_partial): Likewise.
10579 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10580 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10581 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10582 * linux-nat.c (linux_xfer_siginfo): Likewise.
10583 (linux_proc_xfer_spu): Likewise.
10584 * procfs.c (procfs_xfer_partial): Likewise.
10585 * record-full.c (record_full_xfer_partial): Likewise.
10586 (record_full_core_xfer_partial): Likewise.
10587 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10588 * remote.c (remote_write_qxfer): Likewise.
10589 (remote_write_qxfer, remote_read_qxfer): Likewise.
10590 (remote_xfer_partial): Likewise.
10591 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10592 (rs6000_xfer_shared_libraries): Likewise.
10593 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10594 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10595 (spu_xfer_partial): Likewise.
10596 * target.c (memory_xfer_partial_1): Likewise.
10597 * tracepoint.c (tfile_xfer_partial): Likewise.
10598 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10599 (windows_xfer_partial): Likewise.
10601 2014-02-07 Yao Qi <yao@codesourcery.com>
10603 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10605 (core_xfer_shared_libraries_aix): Likewise.
10606 * gdbarch.c, gdbarch.h: Regenerated.
10607 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10608 ULONGEST. Change 'len_avail' type to ULONGEST.
10609 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10610 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10612 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10614 2014-02-07 Yao Qi <yao@codesourcery.com>
10616 * corefile.c (memory_error): Get 'exception' from ERR and pass
10617 'exception' to throw_error.
10619 2014-02-06 Doug Evans <xdje42@gmail.com>
10621 * configure.ac (libpython checking): Remove all but python.o from
10622 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10623 * configure: Regenerate.
10625 * Makefile.in (SFILES): Add extension.c.
10626 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10627 (COMMON_OBS): Add extension.o.
10628 * extension.h: New file.
10629 * extension-priv.h: New file.
10630 * extension.c: New file.
10632 * python/python-internal.h: #include "extension.h".
10633 (gdbpy_auto_load_enabled): Declare.
10634 (gdbpy_apply_val_pretty_printer): Declare.
10635 (gdbpy_apply_frame_filter): Declare.
10636 (gdbpy_preserve_values): Declare.
10637 (gdbpy_breakpoint_cond_says_stop): Declare.
10638 (gdbpy_breakpoint_has_cond): Declare.
10639 (void source_python_script_for_objfile): Delete.
10640 * python/python.c: #include "extension-priv.h".
10641 Delete inclusion of "observer.h".
10642 (extension_language_python): Moved here and renamed from
10643 script_language_python in py-auto-load.c.
10644 Redefined to be of type extension_language_defn.
10645 (python_extension_script_ops): New global.
10646 (python_extension_ops): New global.
10647 (struct python_env): New member previous_active.
10648 (restore_python_env): Call restore_active_ext_lang.
10649 (ensure_python_env): Call set_active_ext_lang.
10650 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10652 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10654 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10656 (gdbpy_eval_from_control_command): Renamed from
10657 eval_python_from_control_command, made static. New arg extlang.
10658 (gdbpy_source_script) Renamed from source_python_script, made static.
10660 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10661 result to int. New arg extlang.
10662 (gdbpy_source_objfile_script): Renamed from
10663 source_python_script_for_objfile, made static. New arg extlang.
10664 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10665 static. New args extlang, extlang_printers. Change result type to
10667 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10668 static. New arg extlang. Rename arg printers to extlang_printers
10669 and change type to ext_lang_type_printers *.
10670 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10671 static. Replace argument arg with extlang, extlang_printers.
10672 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10673 (!HAVE_PYTHON, source_python_script): Delete.
10674 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10675 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10676 (!HAVE_PYTHON, start_type_printers): Delete.
10677 (!HAVE_PYTHON, apply_type_printers): Delete.
10678 (!HAVE_PYTHON, free_type_printers): Delete.
10679 (_initialize_python): Delete call to observer_attach_before_prompt.
10680 (finalize_python): Set/restore active extension language.
10681 (gdbpy_finish_initialization) Renamed from
10682 finish_python_initialization, made static. New arg extlang.
10683 (gdbpy_initialized): New function.
10684 * python/python.h: #include "extension.h". Delete #include
10685 "value.h", "mi/mi-cmds.h".
10686 (extension_language_python): Declare.
10687 (GDBPY_AUTO_FILE_NAME): Delete.
10688 (enum py_bt_status): Moved to extension.h and renamed to
10689 ext_lang_bt_status.
10690 (enum frame_filter_flags): Moved to extension.h.
10691 (enum py_frame_args): Moved to extension.h and renamed to
10692 ext_lang_frame_args.
10693 (finish_python_initialization): Delete.
10694 (eval_python_from_control_command): Delete.
10695 (source_python_script): Delete.
10696 (apply_val_pretty_printer): Delete.
10697 (apply_frame_filter): Delete.
10698 (preserve_python_values): Delete.
10699 (gdbpy_script_language_defn): Delete.
10700 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10701 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10703 * auto-load.c: #include "extension.h".
10704 (GDB_AUTO_FILE_NAME): Delete.
10705 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10706 (script_language_gdb): Delete, moved to extension.c and renamed to
10707 extension_language_gdb.
10708 (source_gdb_script_for_objfile): Delete.
10709 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10710 (loaded_script): Change type of language member to
10711 struct extension_language_defn *.
10712 (init_loaded_scripts_info): Initialize
10713 unsupported_script_warning_printed.
10714 (maybe_add_script): Make static. Change type of language arg to
10715 struct extension_language_defn *.
10716 (clear_section_scripts): Reset unsupported_script_warning_printed.
10717 (auto_load_objfile_script_1): Rewrite to use extension language API.
10718 (auto_load_objfile_script): Make public. Remove support-compiled-in
10719 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10720 (source_section_scripts): Rewrite to use extension language API.
10721 (load_auto_scripts_for_objfile): Rewrite to use
10722 auto_load_scripts_for_objfile.
10723 (collect_matching_scripts_data): Change type of language member to
10724 struct extension_language_defn *.
10725 (auto_load_info_scripts): Change type of language arg to
10726 struct extension_language_defn *.
10727 (unsupported_script_warning_print): New function.
10728 (script_not_found_warning_print): Make static.
10729 (_initialize_auto_load): Rewrite construction of scripts-directory
10731 * auto-load.h (struct objfile): Add forward decl.
10732 (struct script_language): Delete.
10733 (struct auto_load_pspace_info): Add forward decl.
10734 (struct extension_language_defn): Add forward decl.
10735 (maybe_add_script): Delete.
10736 (auto_load_objfile_script): Declare.
10737 (script_not_found_warning_print): Delete.
10738 (auto_load_info_scripts): Update prototype.
10739 (auto_load_gdb_scripts_enabled): Declare.
10740 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10741 auto_load_python_scripts_enabled and made public.
10742 (script_language_python): Delete, moved to python.c.
10743 (gdbpy_script_language_defn): Delete.
10744 (info_auto_load_python_scripts): Update to use
10745 extension_language_python.
10747 * breakpoint.c (condition_command): Replace call to
10748 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10749 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10750 with call to breakpoint_ext_lang_cond_says_stop.
10751 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10752 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10753 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10754 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10756 (local_setattro): Print name of extension language with existing
10759 * valprint.c (val_print, value_print): Update to call
10760 apply_ext_lang_val_pretty_printer.
10761 * cp-valprint.c (cp_print_value): Update call to
10762 apply_ext_lang_val_pretty_printer.
10763 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10764 (gdbpy_apply_val_pretty_printer): Renamed from
10765 apply_val_pretty_printer. New arg extlang.
10766 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10768 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10769 extension language API.
10770 * cli/cli-script.c (execute_control_command): Update to call
10771 eval_ext_lang_from_control_command.
10773 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10774 enum ext_lang_bt_status values. Update call to
10775 apply_ext_lang_frame_filter.
10776 (mi_cmd_stack_list_locals): Ditto.
10777 (mi_cmd_stack_list_args): Ditto.
10778 (mi_cmd_stack_list_variables): Ditto.
10779 * mi/mi-main.c: Delete #include "python/python-internal.h".
10780 Add #include "extension.h".
10781 (mi_cmd_list_features): Replace reference to python internal variable
10782 gdb_python_initialized with call to ext_lang_initialized_p.
10784 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10785 Update to use enum ext_lang_frame_args. Update to call
10786 apply_ext_lang_frame_filter.
10787 * python/py-framefilter.c (extract_sym): Update to use enum
10788 ext_lang_bt_status.
10789 (extract_value, py_print_type, py_print_value): Ditto.
10790 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10791 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10792 (py_print_frame): Ditto.
10793 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10794 New arg extlang. Update to use enum ext_lang_bt_status.
10796 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10797 finish_python_initialization. Replace with call to
10798 finish_ext_lang_initialization.
10800 * typeprint.c (do_free_global_table): Update to call
10801 free_ext_lang_type_printers.
10802 (create_global_typedef_table): Update to call
10803 start_ext_lang_type_printers.
10804 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10805 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10806 (type_print_options): Change type of global_printers from "void *"
10807 to "struct ext_lang_type_printers *".
10809 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10810 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10811 (gdbpy_preserve_values): Renamed from preserve_python_values.
10813 (!HAVE_PYTHON, preserve_python_values): Delete.
10815 * utils.c (quit_flag): Delete, moved to extension.c.
10816 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10819 * eval.c: Delete #include "python/python.h".
10820 * main.c: Delete #include "python/python.h".
10822 * defs.h: Update comment.
10824 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10828 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10830 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10833 2014-02-05 Yao Qi <yao@codesourcery.com>
10835 * remote.c (remote_pass_signals): Remove local 'buf' and use
10837 (remote_program_signals): Likewise.
10839 2014-02-05 Yao Qi <yao@codesourcery.com>
10841 * ctf.c: Include "inferior.h" and "gdbthread.h".
10842 (CTF_PID): A new macro.
10843 (ctf_open): Call inferior_appeared and add_thread_silent.
10844 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10845 (ctf_thread_alive): New function.
10846 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10848 2014-02-05 Yao Qi <yao@codesourcery.com>
10852 2013-05-24 Yao Qi <yao@codesourcery.com>
10854 * tracepoint.c (TFILE_PID): Remove.
10855 (tfile_open): Don't add thread and inferior.
10856 (tfile_close): Don't set 'inferior_ptid'. Don't call
10857 exit_inferior_silent.
10858 (tfile_thread_alive): Remove.
10859 (init_tfile_ops): Don't set field 'to_thread_alive' of
10862 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10864 * remote.c (remote_start_remote): Call remote_check_symbols even
10865 if only symbol-file (not file) has been given.
10867 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10869 * gdbarch.sh (skip_entrypoint): New callback.
10870 * gdbarch.c, gdbarch.h: Regenerate.
10871 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10872 * infrun.c (fill_in_stop_func): Likewise.
10873 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10874 (ppc_elfv2_elf_make_msymbol_special): New function.
10875 (ppc_elfv2_skip_entrypoint): Likewise.
10876 (ppc_linux_init_abi): Install them for ELFv2.
10878 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10880 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10881 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10882 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10883 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10884 structures returned in GPRs.
10886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10888 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10889 offset to the stack parameter list for the ELFv2 ABI.
10891 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10893 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10894 set_gdbarch_convert_from_func_ptr_addr and
10895 set_gdbarch_elf_make_msymbol_special for ELFv1.
10896 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10897 function descriptors on ELFv1.
10898 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10899 set up r12 at function entry.
10901 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10903 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10904 (struct gdbarch_tdep): New member elf_abi.
10906 * rs6000-tdep.c: Include "elf/ppc64.h".
10907 (rs6000_gdbarch_init): Detect ELF ABI version.
10909 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10911 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10912 within a register pair holding a DFP 128-bit value on little-endian.
10913 (ppc64_sysv_abi_return_value_base): Likewise.
10914 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10915 (dfp_pseudo_register_write): Likewise.
10917 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10919 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10920 offset on little-endian when passing _Decimal32.
10921 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10923 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10925 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10926 of the overlapped FP register within the VSX register on little-
10928 (efpr_pseudo_register_write): Likewise.
10930 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10932 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10933 offset on little-endian when passing small structures.
10935 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10937 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10938 (struct ppc64_sysv_argpos): New data structure.
10939 (ppc64_sysv_abi_push_float): Remove.
10940 (ppc64_sysv_abi_push_val): New function.
10941 (ppc64_sysv_abi_push_integer): Likewise.
10942 (ppc64_sysv_abi_push_freg): Likewise.
10943 (ppc64_sysv_abi_push_vreg): Likewise.
10944 (ppc64_sysv_abi_push_param): Likewise.
10945 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10946 (ppc64_sysv_abi_return_value_base): New function.
10947 (ppc64_sysv_abi_return_value): Refactor to use it.
10949 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10951 * NEWS: Document new target powerpc64le-*-linux*.
10953 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10955 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10956 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10958 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10959 register set used in ELF core dumps. Add floating-point register set.
10961 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10963 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10964 dwarf2_to_gdb[] table using symbolic constants. Adjust
10965 penultimate entry from number representing the PC register
10966 to symbolic constant representing the MDR register. Add
10967 constant for the PC register to the end of the table.
10969 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10971 * bsd-kvm.c: Include <sys/param.h>
10973 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10975 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10977 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10979 * ada-lang.h (clear_ada_sym_cache): Delete.
10981 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10983 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10985 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10987 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10988 the sigreturn register save area only if the syscall is
10991 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10993 * valops.c (value_slice): Minor reformatting.
10995 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10997 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10999 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11001 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11002 New static globals.
11003 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11004 (ada_ignore_descriptive_types_p): New static global.
11005 (find_parallel_type_by_descriptive_type): Return immediately
11006 if ada_ignore_descriptive_types_p is set.
11007 (_initialize_ada_language): Register new commands "maintenance
11008 set ada", "maintenance show ada", "maintenance set ada
11009 ignore-descriptive-types" and "maintenance show ada
11010 ignore-descriptive-types".
11011 * NEWS: Add entry for new "maint ada set/show
11012 ignore-descriptive-types" commands.
11014 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11016 * record-btrace.c (record_btrace_close): Call btrace_teardown
11019 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11021 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11024 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11026 * ada-typeprint (type_is_full_subrange_of_target_type):
11028 (print_range): Add parameter bounds_prefered_p. If not set,
11029 try printing range types using the name of their base type.
11030 (print_range_type): Add parameter bounds_prefered_p.
11031 Use it in call to print_range.
11032 (print_array_type, ada_print_type): Update calls to print_range
11033 and print_range_type.
11035 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11037 * ada-typeprint.c (print_array_type, print_choices, print_range)
11038 (print_range_bound, print_dynamic_range_bound, print_range_type):
11039 Remove declaration.
11041 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11043 * ada-typeprint.c (print_range): Add missing empty line
11044 after local declaration.
11046 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11048 * ada-valprint.c (print_optional_low_bound): Get index_type's
11049 target type for as long as it is a TYPE_CODE_RANGE.
11051 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11053 * procfs.c (procfs_make_note_section): Remove assertion and
11054 associated comment.
11056 2014-01-24 Yao Qi <yao@codesourcery.com>
11058 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11059 * corelow.c (get_core_siginfo): Likewise.
11061 2014-01-24 Yao Qi <yao@codesourcery.com>
11063 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11064 ULONGEST. Don't check 'len' is negative.
11065 (remote_write_bytes): Change type of 'len' to ULONGEST.
11067 2014-01-23 Tom Tromey <tromey@redhat.com>
11070 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11071 Handle exception from frame.block.
11072 (FrameVars.fetch_frame_locals): Likewise.
11074 2014-01-23 Tom Tromey <tromey@redhat.com>
11077 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11078 on a NULL pointer. Move "goto error" to correct place.
11080 2014-01-23 Tom Tromey <tromey@redhat.com>
11083 * python/py-framefilter.c (apply_frame_filter): Call
11084 ensure_python_env after computing gdbarch.
11086 2014-01-23 Yao Qi <yao@codesourcery.com>
11088 * target.c (raw_memory_xfer_partial): Change argument type
11089 from void * to gdb_byte *.
11090 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11092 2014-01-22 Doug Evans <dje@google.com>
11094 New gdbserver option --debug-format=timestamp.
11095 * NEWS: Mention it.
11097 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11099 * syscalls/s390x-linux.xml: New file.
11100 * syscalls/s390-linux.xml: New file.
11101 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11102 (XML_SYSCALL_FILENAME_S390X): Likewise.
11103 (op_svc): New enum value for SVC opcode.
11104 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11105 (s390_linux_get_syscall_number): New function.
11106 (s390_gdbarch_init): Register '*get_syscall_number' and the
11107 syscall xml file name.
11108 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11109 "s390-linux.xml" and "s390x-linux.xml".
11110 * NEWS: Announce new feature.
11112 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11114 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11116 2014-01-22 Pedro Alves <palves@redhat.com>
11118 * xtensa-config.c: Include defs.h.
11120 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11122 * common/common-utils.h: Add "ARI:" comment beside __func__
11125 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11127 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11128 documentation a bit.
11130 2014-01-21 Roland McGrath <mcgrathr@google.com>
11132 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11133 * configure: Regenerate.
11134 * aclocal.m4: Regenerate.
11135 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11136 New substituted variables.
11137 (install-strip): New target.
11138 (INSTALL_SCRIPT): New substituted variable.
11139 (FLAGS_TO_PASS): Add it.
11140 (install-only): Use $(INSTALL_SCRIPT) rather than
11141 $(INSTALL_PROGRAM) for gcore.
11143 2014-01-20 Tom Tromey <tromey@redhat.com>
11145 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11148 2014-01-20 Tom Tromey <tromey@redhat.com>
11150 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11151 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11152 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11153 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11154 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11155 (struct cmd_list_element) <flags>: Remove.
11156 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11157 doc_allocated>: New fields.
11158 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11160 * maint.c (maintenance_do_deprecate): Update.
11161 * top.c (execute_command): Update.
11163 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11165 * xtensa-linux-nat.c: Include asm/ptrace.h.
11167 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11169 * Makefile.in (SFILES): Add d-support.c.
11170 (COMMON_OBS): Add d-support.o.
11171 * d-lang.h (d_parse_symbol): Add comment, now defined in
11173 * d-lang.c (parse_call_convention)
11174 (parse_attributes, parse_function_types)
11175 (parse_function_args, parse_type, parse_identifier)
11176 (call_convention_p, d_parse_symbol): Move functions to ...
11177 * d-support.c: ... New file.
11179 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11181 * d-lang.h (d_parse_symbol): Add declaration.
11182 * d-lang.c (extract_identifiers)
11183 (extract_type_info): Remove functions.
11184 (parse_call_convention, parse_attributes)
11185 (parse_function_types, parse_function_args)
11186 (parse_type, parse_identifier, call_convention_p)
11187 (d_parse_symbol): New functions.
11188 (d_demangle): Use d_parse_symbol to demangle D symbols.
11190 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11192 * d-lang.h (struct builtin_d_type): New data type.
11193 (builtin_d_type): Add declaration.
11194 * d-lang.c (d_language_arch_info, build_d_types)
11195 (builtin_d_type): New functions.
11196 (enum d_primitive_types): New data type.
11197 (d_language_defn): Change c_language_arch_info to
11198 d_language_arch_info.
11199 (d_type_data): New static variable.
11200 (_initialize_d_language): Initialize d_type_data.
11202 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11204 * d-lang.h (d_main_name): Add declaration.
11205 * d-lang.c (d_main_name): New function.
11206 * symtab.c (find_main_name): Add call to d_main_name.
11208 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11210 * d-lang.c (d_language_defn): Change macro_expansion_c to
11211 macro_expansion_no.
11213 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11215 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11217 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11219 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11220 gdb_exception" declaration.
11221 * remote.c (getpkt_or_notif_sane): Likewise.
11223 2014-01-17 Doug Evans <dje@google.com>
11225 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11226 function, contents of dirnames_to_char_ptr_vec_append moved here.
11227 (delim_string_to_char_ptr_vec): New function.
11228 (dirnames_to_char_ptr_vec_append): Rewrite.
11229 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11231 2014-01-17 Doug Evans <dje@google.com>
11233 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11235 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11236 #include "common-utils.h".
11237 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11238 * common/vec.h (VEC_ASSERT_PASS): Update.
11239 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11240 (MACH_CHECK_ERROR): Update.
11242 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11244 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11246 * gdbarch.h: Regenerate.
11248 2014-01-16 Tom Tromey <tromey@redhat.com>
11250 * value.c (struct value) <regnum>: Move earlier.
11252 2014-01-16 Tom Tromey <tromey@redhat.com>
11254 * remote.c (extended_remote_create_inferior): Rename from
11255 extended_remote_create_inferior_1. Add "ops" argument. Remove
11256 old implementation.
11258 2014-01-16 Pedro Alves <palves@redhat.com>
11260 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11261 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11264 2014-01-16 Doug Evans <dje@google.com>
11266 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11268 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11270 * btrace.h (btrace_thread_flag): New.
11271 (struct btrace_thread_info) <flags>: New.
11272 * record-btrace.c (record_btrace_resume_thread)
11273 (record_btrace_find_thread_to_move, btrace_step_no_history)
11274 (btrace_step_stopped, record_btrace_start_replaying)
11275 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11276 (record_btrace_find_resume_thread): New.
11277 (record_btrace_resume, record_btrace_wait): Extend.
11278 (record_btrace_can_execute_reverse): New.
11279 (record_btrace_open): Fail in non-stop mode.
11280 (record_btrace_set_replay): Split into this, ...
11281 (record_btrace_stop_replaying): ... this, ...
11282 (record_btrace_clear_histories): ... and this.
11283 (init_record_btrace_ops): Init to_can_execute_reverse.
11284 * NEWS: Announce it.
11286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11288 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11289 (forward_target_decr_pc_after_break)
11290 (target_decr_pc_after_break): New.
11291 * target.c (forward_target_decr_pc_after_break)
11292 (target_decr_pc_after_break): New.
11293 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11294 instead of gdbarch_decr_pc_after_break.
11295 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11296 instead of gdbarch_decr_pc_after_break.
11297 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11298 instead of gdbarch_decr_pc_after_break.
11299 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11300 instead of gdbarch_decr_pc_after_break.
11301 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11302 instead of gdbarch_decr_pc_after_break.
11303 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11304 instead of gdbarch_decr_pc_after_break.
11306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11308 * btrace.c: Include regcache.h.
11309 (btrace_add_pc): New.
11310 (btrace_enable): Call btrace_add_pc.
11311 (btrace_is_empty): New.
11312 * btrace.h (btrace_is_empty): New.
11313 * record-btrace.c (require_btrace, record_btrace_info): Call
11316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11318 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11319 Support delta reads.
11320 (linux_disable_btrace): Change return type.
11321 * common/linux-btrace.h (linux_read_btrace): Change parameters
11322 and return type to allow error reporting. Update users.
11323 (linux_disable_btrace): Change return type. Update users.
11324 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11326 (btrace_error): New.
11327 (btrace_block) <begin>: Comment on BEGIN == 0.
11328 * btrace.c (btrace_compute_ftrace): Start from the end of
11330 (btrace_stitch_trace, btrace_clear_history): New.
11331 (btrace_fetch): Read delta trace, return if replaying.
11332 (btrace_clear): Move clear history code to btrace_clear_history.
11333 (parse_xml_btrace): Throw an error if parsing failed.
11334 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11335 and return type to allow error reporting.
11336 (target_read_btrace): Change parameters and return type to allow
11338 * target.c (target_read_btrace): Update.
11339 * remote.c (remote_read_btrace): Support delta reads. Pass
11341 * NEWS: Announce it.
11343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11345 * record.h (record_btrace_frame_unwind)
11346 (record_btrace_tailcall_frame_unwind): New declarations.
11347 * dwarf2-frame: Include record.h
11348 (dwarf2_frame_cfa): Throw an error for btrace frames.
11349 * record-btrace.c: Include hashtab.h.
11350 (btrace_get_bfun_name): New.
11351 (btrace_call_history): Call btrace_get_bfun_name.
11352 (struct btrace_frame_cache): New.
11354 (bfcache_hash, bfcache_eq, bfcache_new): New.
11355 (btrace_get_frame_function): New.
11356 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11357 (record_btrace_frame_this_id): Compute own id.
11358 (record_btrace_frame_prev_register): Provide PC, throw_error
11359 for all other registers.
11360 (record_btrace_frame_sniffer): Detect btrace frames.
11361 (record_btrace_tailcall_frame_sniffer): New.
11362 (record_btrace_frame_dealloc_cache): New.
11363 (record_btrace_frame_unwind): Add new functions.
11364 (record_btrace_tailcall_frame_unwind): New.
11365 (_initialize_record_btrace): Allocate cache.
11366 * btrace.c (btrace_clear): Call reinit_frame_cache.
11367 * NEWS: Announce it.
11369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11371 * record-btrace.c (record_btrace_set_replay)
11372 (record_btrace_goto_begin, record_btrace_goto_end)
11373 (record_btrace_goto): New.
11374 (init_record_btrace_ops): Initialize them.
11375 * NEWS: Announce it.
11377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11379 * record-btrace.c (record_btrace_find_new_threads)
11380 (record_btrace_thread_alive): New.
11381 (init_record_btrace_ops): Initialize to_find_new_threads and
11384 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11386 * record-btrace.c (record_btrace_resume): New.
11387 (record_btrace_wait): New.
11388 (init_record_btrace_ops): Initialize to_wait and to_resume.
11390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11392 * record-btrace.c (record_btrace_xfer_partial)
11393 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11394 (record_btrace_allow_memory_access): New.
11395 (init_record_btrace_ops): Initialize new methods.
11396 * target.c (raw_memory_xfer_partial): Bail out if target reports
11397 that this memory is not available.
11399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11401 * target.h (target_ops) <to_insert_breakpoint>
11402 <to_remove_breakpoint>: Add target_ops parameter.
11403 (forward_target_insert_breakpoint): New.
11404 (forward_target_remove_breakpoint): New.
11405 (memory_remove_breakpoint, memory_insert_breakpoint):
11406 Add target_ops parameter.
11407 * target.c (target_insert_breakpoint): Split into this and ...
11408 (forward_target_insert_breakpoint): ... this.
11409 (target_remove_breakpoint): Split into this and ...
11410 (forward_target_remove_breakpoint): ... this.
11411 (debug_to_insert_breakpoint): Add target_ops parameter.
11412 Call forward_target_insert_breakpoint.
11413 (debug_to_remove_breakpoint): Add target_ops parameter.
11414 Call forward_target_remove_breakpoint.
11415 (update_current_target): Do not inherit or default to_insert_breakpoint
11416 and to_remove_breakpoint.
11417 * corelow.c (ignore): Add target_ops parameter.
11418 * exec.c (ignore): Add target_ops parameter.
11419 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11420 Add target_ops parameter.
11421 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11422 Add target_ops parameter.
11423 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11424 Add target_ops parameter.
11425 * record-full.c (record_full_beneath_to_insert_breakpoint)
11426 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11427 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11428 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11429 (record_full_core_remove_breakpoint): Add target_ops parameter.
11431 (record_full_beneath_to_insert_breakpoint_ops)
11432 (record_full_beneath_to_remove_breakpoint_ops)
11433 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11434 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11435 tmp_to_remove_breakpoint_ops,
11436 record_full_beneath_to_insert_breakpoint_ops, and
11437 record_full_beneath_to_remove_breakpoint_ops.
11438 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11439 (m32r_remove_breakpoint): Add target_ops parameter.
11440 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11441 Add target_ops parameter.
11442 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11443 Add target_ops parameter.
11445 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11446 Markus Metzger <markus.t.metzger@intel.com>
11448 * record-btrace.c: Include frame-unwind.h.
11449 (record_btrace_frame_unwind_stop_reason)
11450 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11451 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11453 (init_record_btrace_ops): Install it.
11455 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11457 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11460 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11462 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11465 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11467 * frame-unwind.c: Include target.h.
11468 (frame_unwind_try_unwinder): New function with code from ...
11469 (frame_unwind_find_by_frame): ... here. New variable
11470 unwinder_from_target, call also target_get_unwinder)
11471 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11472 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11473 * target.h (struct target_ops): New fields to_get_unwinder and
11474 to_get_tailcall_unwinder.
11475 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11479 * record-btrace.c (record_btrace_fetch_registers)
11480 (record_btrace_store_registers)
11481 (record_btrace_to_prepare_to_store): New.
11482 (init_record_btrace_ops): Add the above.
11484 2014-01-16 Tom Tromey <tromey@redhat.com>
11486 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11487 * target.h (struct target_ops) <to_prepare_to_store>: Add
11489 (target_prepare_to_store): Add argument.
11490 * target.c (debug_to_prepare_to_store): Add argument.
11491 (update_current_target): Update.
11492 * remote.c (remote_prepare_to_store): Add 'self' argument.
11493 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11494 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11495 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11496 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11498 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11499 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11500 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11501 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11502 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11506 * btrace.h (replay) <replay>: New.
11507 (btrace_is_replaying): New.
11508 * btrace.c (btrace_clear): Free replay iterator.
11509 (btrace_is_replaying): New.
11510 * record-btrace.c (record_btrace_is_replaying): New.
11511 (record_btrace_info): Print insn number if replaying.
11512 (record_btrace_insn_history): Start at replay position.
11513 (record_btrace_call_history): Start at replay position.
11514 (init_record_btrace_ops): Init to_record_is_replaying.
11516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11518 * record-btrace.c (record_btrace_insn_history_range): Include
11520 (record_btrace_insn_history_from): Adjust range.
11521 (record_btrace_call_history_range): Include
11523 (record_btrace_call_history_from): Adjust range.
11524 * NEWS: Announce changes.
11526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11528 * record.h (enum record_print_flag)
11529 <record_print_indent_calls>: New.
11530 * record.c (get_call_history_modifiers): Recognize /c modifier.
11531 (_initialize_record): Document /c modifier.
11532 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11533 Reorder fields. Optionally indent the function name. Update
11535 * NEWS: Announce changes.
11537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11539 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11543 * btrace.c (ftrace_new_function): Start counting at one.
11544 * record-btrace.c (record_btrace_info): Adjust number of calls
11546 * NEWS: Announce it.
11548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11550 * record-btrace.c (btrace_call_history_insn_range): Print
11551 insn range as [begin, end].
11553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11555 * btrace.h (struct btrace_func_link): New.
11556 (enum btrace_function_flag): New.
11557 (struct btrace_inst): Rename to ...
11558 (struct btrace_insn): ...this. Update all users.
11559 (struct btrace_func) <ibegin, iend>: Remove.
11560 (struct btrace_func_link): New.
11561 (struct btrace_func): Rename to ...
11562 (struct btrace_function): ...this. Update all users.
11563 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11564 (number, level, flags>: New.
11565 (struct btrace_insn_iterator): Rename to ...
11566 (struct btrace_insn_history): ...this.
11568 (struct btrace_insn_iterator, btrace_call_iterator): New.
11569 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11570 (struct btrace_target_info) <begin, end, level>
11571 <insn_history, call_history>: New.
11572 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11573 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11574 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11575 (btrace_call_number, btrace_call_begin, btrace_call_end)
11576 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11577 (btrace_find_function_by_number, btrace_set_insn_history)
11578 (btrace_set_call_history): New.
11579 * btrace.c (btrace_init_insn_iterator)
11580 (btrace_init_func_iterator, compute_itrace): Remove.
11581 (ftrace_print_function_name, ftrace_print_filename)
11582 (ftrace_skip_file): Change
11583 parameter to const.
11584 (ftrace_init_func): Remove.
11585 (ftrace_debug): Use new btrace_function fields.
11586 (ftrace_function_switched): Also consider gaining and
11587 losing symbol information).
11588 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11589 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11590 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11592 (ftrace_new_function): Move. Remove debug print.
11593 (ftrace_update_lines, ftrace_update_insns): New.
11594 (ftrace_update_function): Check for call, ret, and jump.
11595 (compute_ftrace): Renamed to ...
11596 (btrace_compute_ftrace): ...this. Rewritten to compute call
11598 (btrace_fetch, btrace_clear): Updated.
11599 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11600 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11601 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11602 (btrace_call_number, btrace_call_begin, btrace_call_end)
11603 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11604 (btrace_find_function_by_number, btrace_set_insn_history)
11605 (btrace_set_call_history): New.
11606 * record-btrace.c (require_btrace): Use new btrace thread
11608 (record_btrace_info, btrace_insn_history)
11609 (record_btrace_insn_history, record_btrace_insn_history_range):
11610 Use new btrace thread info fields and new iterator.
11611 (btrace_func_history_src_line): Rename to ...
11612 (btrace_call_history_src_line): ...this. Use new btrace
11613 thread info fields.
11614 (btrace_func_history): Rename to ...
11615 (btrace_call_history): ...this. Use new btrace thread info
11616 fields and new iterator.
11617 (record_btrace_call_history, record_btrace_call_history_range):
11618 Use new btrace thread info fields and new iterator.
11620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11622 * frame.h (frame_id_build_unavailable_stack_special): New.
11623 * frame.c (frame_id_build_unavailable_stack_special): New.
11625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11627 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11628 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11629 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11631 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11632 (i386_insn_is_jump, i386_jmp_p): New.
11633 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11634 insn_is_jump to gdbarch.
11635 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11636 * gdbarch.h: Regenerated.
11637 * gdbarch.c: Regenerated.
11638 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11639 (default_insn_is_jump): New.
11640 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11641 (default_insn_is_jump): New.
11643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11645 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11647 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11648 (btrace_read_type) <btrace_read_new>: Change to ...
11649 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11651 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11653 * common/linux-btrace.c (linux_read_btrace): Free trace from
11654 previous iteration.
11656 2014-01-15 Doug Evans <dje@google.com>
11658 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11661 2014-01-15 Tom Tromey <tromey@redhat.com>
11663 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11664 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11665 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11666 (set_objfile_main_name): New function.
11667 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11668 language_of_main>: New fields.
11669 (set_objfile_main_name): Declare.
11670 * symtab.c (find_main_name): Loop over objfiles to find the main
11672 (set_main_name): Now static.
11673 (get_main_info): Add comment.
11674 * symtab.h (set_main_name): Don't declare.
11676 2014-01-15 Tom Tromey <tromey@redhat.com>
11678 * symtab.c (main_progspace_key): New global.
11679 (struct main_info): New.
11680 (name_of_main, language_of_main): Remove.
11681 (get_main_info, main_info_cleanup): New function.
11682 (set_main_name, main_name, main_language): Use get_main_info.
11683 (_initialize_symtab): Initialize main_progspace_key.
11685 2014-01-15 Tom Tromey <tromey@redhat.com>
11687 * dbxread.c (process_one_symbol): Update.
11688 * dwarf2read.c (read_partial_die): Update.
11689 * symfile.c (set_initial_language): Call main_language.
11690 * symtab.c (language_of_main): Now static.
11691 (set_main_name): Add 'lang' parameter.
11692 (find_main_name): Update.
11693 (main_language): New function.
11694 (symtab_observer_executable_changed): Update.
11695 * symtab.h (set_main_name): Update.
11696 (language_of_main): Remove.
11697 (main_language): Declare.
11699 2014-01-15 Tom Tromey <tromey@redhat.com>
11701 * symfile.c (init_entry_point_info): Use new "initialized" field.
11703 * objfiles.h (struct entry_point) <initialized>: New field.
11704 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11705 (struct objfile) <ei>: ...here. Remove.
11706 * objfiles.c (entry_point_address_query): Update.
11708 2014-01-15 Tom Tromey <tromey@redhat.com>
11710 * objfiles.c (entry_point_address_query): Relocate entry point
11712 (objfile_relocate1): Do not relocate entry point address.
11713 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11714 <the_bfd_section_index>: New field.
11715 * symfile.c (init_entry_point_info): Find the entry point's
11718 2014-01-15 Tom Tromey <tromey@redhat.com>
11720 * solib-frv.c (enable_break): Use entry_point_address_query.
11722 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11724 * NEWS: Add note on improved process record-replay on
11725 arm*-linux* targets.
11727 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11729 * arm-tdep.c (enum arm_record_result): New enum.
11730 (arm_record_unsupported_insn): New function.
11731 (arm_record_coproc_data_proc): Removed.
11732 (thumb2_record_ld_st_multiple): New function.
11733 (thumb2_record_ld_st_dual_ex_tbb): New function.
11734 (thumb2_record_data_proc_sreg_mimm): New function.
11735 (thumb2_record_ps_dest_generic): New function.
11736 (thumb2_record_branch_misc_cntrl): New function.
11737 (thumb2_record_str_single_data): New function.
11738 (thumb2_record_ld_mem_hints): New function.
11739 (thumb2_record_ld_word): New function.
11740 (thumb2_record_lmul_lmla_div): New function.
11741 (thumb2_record_decode_insn_handler): New function.
11742 (decode_insn): Add thumb32 instruction handlers.
11744 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11746 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11747 (struct arm_linux_record_tdep): Declare.
11748 (arm_canonicalize_syscall): New function.
11749 (arm_all_but_pc_registers_record): New function.
11750 (arm_linux_syscall_record): New function.
11751 (arm_linux_init_abi): Add syscall recording constructs.
11752 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11753 decoding. (arm_record_coproc_data_proc): Update arm syscall
11755 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11756 <arm_syscall_record>: New field.
11757 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11760 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11762 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11763 register for push instruction recording.
11765 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11767 * arm-tdep.c (thumb_record_misc): Update to correct logical
11768 error while recording ldm, ldmia and pop instructions.
11770 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11772 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11774 2014-01-15 Pedro Alves <palves@redhat.com>
11776 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11777 (go32_resume, go32_fetch_registers, store_register)
11778 (go32_store_registers, go32_prepare_to_store)
11779 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11780 (go32_create_inferior, go32_can_run, go32_terminal_init)
11781 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11784 2014-01-15 Tom Tromey <tromey@redhat.com>
11786 * target.h (async_callback_ftype): New typedef.
11787 (struct target_ops) <to_async>: Use it.
11789 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11791 * python/py-value.c (get_field_type): Remove unnecessary curly
11792 braces for single-statement if block.
11794 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11796 * python/py-type.c (convert_field): Add missing empty line
11797 after declarations.
11799 2014-01-14 Doug Evans <dje@google.com>
11801 * symfile.h (expand_symtabs_matching): Renamed from
11802 expand_partial_symbol_names. Update prototype.
11803 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11804 * symfile.c (expand_symtabs_matching): Renamed from
11805 expand_partial_symbol_names. New args file_matcher, kind.
11806 Rename arg fun to symbol_matcher.
11807 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11808 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11809 ada_expand_partial_symbol_name.
11810 (ada_make_symbol_completion_list): Update to call
11811 expand_symtabs_matching.
11812 (ada_add_global_exceptions): Call expand_symtabs_matching.
11813 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11814 call map_symbol_filenames.
11815 * symtab.c (sources_info): Update to call map_symbol_filenames.
11816 (search_symbols): Call expand_symtabs_matching.
11817 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11818 (default_make_symbol_completion_list_break_on): Update to call
11819 expand_symtabs_matching.
11820 (make_source_files_completion_list): Update to call
11821 map_symbol_filenames.
11823 2014-01-14 Doug Evans <dje@google.com>
11825 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11826 (expand_symtabs_symbol_matcher_ftype): New typedef.
11827 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11828 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11829 * symfile.c (expand_partial_symbol_names): Update to use
11830 expand_symtabs_symbol_matcher_ftype.
11831 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11832 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11833 Arg name_matcher renamed to symbol_matcher.
11834 * psymtab.c (recursively_search_psymtabs): Update to use
11835 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11837 (expand_symtabs_matching_via_partial): Update to use
11838 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11839 Arg name_matcher renamed to symbol_matcher.
11841 2014-01-14 Doug Evans <dje@google.com>
11843 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11844 (map_partial_symbol_filenames): Ditto.
11845 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11846 (map_partial_symbol_filenames): Ditto.
11847 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11848 (map_partial_symbol_filenames): Ditto.
11849 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11850 (map_partial_symbol_filenames): Ditto.
11851 * symtab.c: Delete #include "psymtab.h".
11853 2014-01-14 Pedro Alves <palves@redhat.com>
11854 Tom Tromey <tromey@redhat.com>
11856 * infrun.c (use_displaced_stepping): Use find_record_target
11857 instead of RECORD_IS_USED.
11858 (adjust_pc_after_break): Use record_full_is_used instead of
11860 * record-btrace.c (record_btrace_open): Call record_preopen
11861 instead of checking RECORD_IS_USED.
11862 * record-full.c (record_full_shortname)
11863 (record_full_core_shortname): New globals.
11864 (record_full_is_used): New function.
11865 (find_full_open): Call record_preopen instead of checking
11867 (init_record_full_ops): Set the target's shortname to
11868 record_full_shortname.
11869 (init_record_full_core_ops): Set the target's shortname to
11870 record_full_core_shortname.
11871 * record-full.h (record_full_is_used): Declare.
11872 * record.c (find_record_target): Make extern.
11873 (record_preopen): New function.
11874 * record.h (RECORD_IS_USED): Delete macro.
11875 (find_record_target, record_preopen): Declare functions.
11877 2014-01-14 Yao Qi <yao@codesourcery.com>
11879 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11880 'len''s type to ULONGEST.
11881 (core_xfer_shared_libraries_aix): Likewise.
11882 * gdbarch.c, gdbarch.h: Regenerated.
11883 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11884 Change type of 'len' to ULONGEST.
11885 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11886 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11888 2014-01-14 Yao Qi <yao@codesourcery.com>
11890 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11891 type of 'len' to ULONGEST.
11892 (linux_xfer_osdata_processgroups): Likewise.
11893 (linux_xfer_osdata_threads): Likewise.
11894 (linux_xfer_osdata_fds): Likewise.
11895 (linux_xfer_osdata_isockets): Likewise.
11896 (linux_xfer_osdata_shm): Likewise.
11897 (linux_xfer_osdata_sem): Likewise.
11898 (linux_xfer_osdata_msg): Likewise.
11899 (linux_common_xfer_osdata): Likewise.
11900 (struct osdata_type) <getter>: Likewise.
11901 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11904 2014-01-14 Yao Qi <yao@codesourcery.com>
11906 * target.h (target_xfer_partial_ftype): Update.
11907 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11909 * aix-thread.c (aix_thread_xfer_partial): Change type of
11910 argument 'len' to ULONGEST.
11911 * auxv.c (procfs_xfer_auxv): Likewise.
11912 (ld_so_xfer_auxv): Likewise.
11913 (memory_xfer_auxv): Likewise.
11914 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11915 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11916 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11917 * corelow.c (core_xfer_partial): Likewise.
11918 * ctf.c (ctf_xfer_partial): Likewise.
11919 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11921 (darwin_read_dyld_info): Likewise.
11922 (darwin_xfer_partial): Likewise.
11923 * exec.c (section_table_xfer_memory_partial): Likewise.
11924 (exec_xfer_partial): Likewise.
11925 * exec.h (section_table_xfer_memory_partial): Update
11927 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11928 instead of plongest.
11929 (gnu_xfer_partial): Likewise.
11930 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11931 (ia64_hpux_xfer_solib_got): Likewise.
11932 (ia64_hpux_xfer_partial): Likewise.
11933 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11934 * inf-ptrace.c (inf_ptrace_xfer_partial):
11935 * inf-ttrace.c (inf_ttrace_xfer_partial):
11936 * linux-nat.c (linux_xfer_siginfo): Likewise.
11937 (linux_nat_xfer_partial): Likewise.
11938 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11939 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11940 * monitor.c (monitor_xfer_memory): Likewise.
11941 (monitor_xfer_partial): Likewise.
11942 * procfs.c (procfs_xfer_partial): Likewise.
11943 * record-full.c (record_full_xfer_partial): Likewise.
11944 (record_full_core_xfer_partial): Likewise.
11945 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11946 instead of plongest.
11947 (gdbsim_xfer_partial): Likewise.
11948 * remote.c (remote_xfer_partial): Likewise.
11949 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11950 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11952 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11953 (rs6000_xfer_shared_libraries): Likewise.
11954 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11955 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11956 (sparc_xfer_partial): Likewise.
11957 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11958 (spu_xfer_partial): Likewise.
11959 * spu-multiarch.c (spu_xfer_partial): Likewise.
11960 * target.c (target_read_live_memory): Likewise.
11961 (memory_xfer_live_readonly_partial): Likewise.
11962 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11963 (target_xfer_partial, default_xfer_partial): Likewise.
11964 (current_xfer_partial): Likewise.
11965 * tracepoint.c (tfile_xfer_partial): Likewise.
11966 * windows-nat.c (windows_xfer_memory): Likewise. Call
11967 pulongest instead of plongest.
11968 (windows_xfer_partial): Likewise.
11969 (windows_xfer_shared_libraries): Likewise.
11971 2014-01-14 Yao Qi <yao@codesourcery.com>
11973 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11974 target_xfer_partial_ftype.
11976 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11980 * valops.c (value_struct_elt_bitpos): New function
11981 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11982 object to 'None' if the field name is an empty string ("").
11983 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11984 attribute to look for a field when 'name' is 'None'.
11985 (get_field_type): New function
11987 2014-01-13 Doug Evans <dje@google.com>
11990 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11991 (try_open_dwop_file): Ditto.
11992 * gdb_bfd.c: #include "vec.h".
11993 (bfdp): New typedef.
11994 (struct gdb_bfd_data): New member included_bfds.
11995 (gdb_bfd_unref): Unref all included bfds.
11996 (gdb_bfd_record_inclusion): New function.
11997 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11999 2014-01-13 Tom Tromey <tromey@redhat.com>
12001 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12003 2014-01-13 Tom Tromey <tromey@redhat.com>
12005 * defs.h (use_windows): Remove.
12006 * gdb.c (main): Update.
12007 * main.c (captured_main, gdb_main): Update.
12008 * main.h (struct captured_main_args) <use_windows>: Remove.
12009 * top.c (use_windows): Remove.
12011 2014-01-13 Tom Tromey <tromey@redhat.com>
12013 * defs.h (deprecated_flush_hook): Remove.
12015 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12018 * linux-thread-db.c (try_thread_db_load): Add parameter
12019 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12020 (try_thread_db_load_from_pdir_1): Move it there from here.
12021 (try_thread_db_load_from_sdir): Update caller.
12022 (try_thread_db_load_from_dir): Move it there from here.
12024 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12026 * regformats/regdat.sh: Always rewrite the register file.
12028 2014-01-13 Pedro Alves <palves@redhat.com>
12030 * Makefile.in (CHECK_HEADERS): New variable.
12031 (check-headers:): New rule.
12033 2014-01-13 Tom Tromey <tromey@redhat.com>
12035 * cli/cli-setshow.c (do_set_command): Update.
12036 * defs.h (deprecated_set_hook): Remove.
12037 * top.c (deprecated_set_hook): Remove.
12039 2014-01-13 Pedro Alves <palves@redhat.com>
12041 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12042 the tracepoint if the PC is a pseudo-register.
12044 2014-01-13 Tom Tromey <tromey@redhat.com>
12046 * defs.h (XCALLOC): Remove.
12047 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12048 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12049 * dwarf2loc.c (allocate_piece_closure): Likewise.
12050 * elfread.c (elf_symfile_segments): Likewise.
12051 (elf_symfile_segments): Likewise.
12052 * gdbtypes.c (copy_type_recursive): Likewise.
12053 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12054 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12055 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12057 * mt-tdep.c (mt_gdbarch_init): Likewise.
12058 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12060 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12061 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12062 * registry.c (registry_alloc_data): Likewise.
12063 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12064 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12065 * serial.c (serial_fdopen_ops): Likewise.
12066 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12068 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12069 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12072 2014-01-13 Tom Tromey <tromey@redhat.com>
12074 * defs.h (XMALLOC): Remove.
12075 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12076 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12077 * cli-out.c (struct ui_out *): Likewise.
12078 * cli/cli-dump.c (add_dump_command): Likewise.
12079 (add_dump_command): Likewise.
12080 * complaints.c (get_complaints): Likewise.
12081 (find_complaint): Likewise.
12082 * dwarf2-frame.c (execute_cfa_program): Likewise.
12083 * dwarf2read.c (abbrev_table_read_table): Likewise.
12084 * gdbarch.sh: Likewise.
12085 * gdbarch.c: Rebuild.
12086 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12087 * interps.c (interp_new): Likewise.
12088 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12089 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12090 * mi/mi-console.c (mi_console_file_new): Likewise.
12091 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12092 * mi/mi-out.c (mi_out_new): Likewise.
12093 * mi/mi-parse.c (mi_parse): Likewise.
12094 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12095 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12096 * observer.c (xalloc_observer_list_node): Likewise.
12097 * regcache.c (regcache_xmalloc_1): Likewise.
12098 * reggroups.c (reggroup_new): Likewise.
12099 (_initialize_reggroup): Likewise.
12100 * registry.c (register_data_with_cleanup): Likewise.
12101 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12102 * ser-base.c (serial_ttystate): Likewise.
12103 * ser-mingw.c (make_pipe_state): Likewise.
12104 * ser-pipe.c (pipe_open): Likewise.
12105 * serial.c (serial_open): Likewise.
12106 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12107 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12108 (tui_alloc_win_info): Likewise.
12109 (tui_add_content_elements): Likewise.
12110 * tui/tui-file.c (tui_file_new): Likewise.
12111 * tui/tui-out.c (tui_out_new): Likewise.
12112 * ui-file.c (mem_file_new): Likewise.
12113 * ui-out.c (push_level): Likewise.
12114 (make_cleanup_ui_out_end): Likewise.
12115 (append_header_to_list): Likewise.
12116 (ui_out_new): Likewise.
12117 * user-regs.c (user_reg_add_builtin): Likewise.
12119 2014-01-13 Tom Tromey <tromey@redhat.com>
12121 * defs.h (XZALLOC): Remove.
12122 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12123 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12124 (get_ada_tasks_inferior_data): Likewise.
12125 * auto-load.c (get_auto_load_pspace_data): Likewise.
12126 * auxv.c (get_auxv_inferior_data): Likewise.
12127 * bfd-target.c (target_bfd_reopen): Likewise.
12128 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12129 (deprecated_insert_raw_breakpoint): Likewise.
12130 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12131 * corelow.c (core_open): Likewise.
12132 * darwin-nat.c (darwin_check_new_threads): Likewise.
12133 (darwin_attach_pid): Likewise.
12134 * dummy-frame.c (dummy_frame_push): Likewise.
12135 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12136 * dwarf2loc.c (allocate_piece_closure): Likewise.
12137 * elfread.c (elf_symfile_segments): Likewise.
12138 * eval.c (ptrmath_type_p): Likewise.
12139 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12140 * gdbtypes.c (alloc_type_arch): Likewise.
12141 (alloc_type_instance): Likewise.
12142 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12143 * inf-child.c (inf_child_can_use_agent): Likewise.
12144 * inflow.c (get_inflow_inferior_data): Likewise.
12145 * infrun.c (save_infcall_suspend_state): Likewise.
12146 * jit.c (jit_reader_load): Likewise.
12147 (get_jit_objfile_data): Likewise.
12148 (get_jit_program_space_data): Likewise.
12149 (jit_object_open_impl): Likewise.
12150 (jit_symtab_open_impl): Likewise.
12151 (jit_block_open_impl): Likewise.
12152 (jit_frame_sniffer): Likewise.
12153 * linux-fork.c (add_fork): Likewise.
12154 * maint.c (make_command_stats_cleanup): Likewise.
12155 * objfiles.c (get_objfile_pspace_data): Likewise.
12156 * opencl-lang.c (struct lval_closure): Likewise.
12157 * osdata.c (osdata_start_osdata): Likewise.
12158 * progspace.c (new_address_space): Likewise.
12159 (add_program_space): Likewise.
12160 * remote-sim.c (get_sim_inferior_data): Likewise.
12161 * sh-tdep.c (sh_gdbarch_init): Likewise.
12162 * skip.c (Ignore): Likewise.
12163 (skip_delete_command): Likewise.
12164 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12165 (library_list_start_library): Likewise.
12166 (solib_aix_current_sos): Likewise.
12167 * solib-darwin.c (get_darwin_info): Likewise.
12168 (darwin_current_sos): Likewise.
12169 * solib-dsbt.c (get_dsbt_info): Likewise.
12170 * solib-ia64-hpux.c (new_so_list): Likewise.
12171 (ia64_hpux_get_solib_linkage_addr): Likewise.
12172 * solib-spu.c (append_ocl_sos): Likewise.
12173 (spu_current_sos): Likewise.
12174 * solib-svr4.c (get_svr4_info): Likewise.
12175 (svr4_keep_data_in_core): Likewise.
12176 (library_list_start_library): Likewise.
12177 (svr4_default_sos): Likewise.
12178 (svr4_read_so_list): Likewise.
12179 * solib-target.c (library_list_start_library): Likewise.
12180 (solib_target_current_sos): Likewise.
12181 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12182 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12183 * symfile.c (default_symfile_segments): Likewise.
12184 * target-descriptions.c (tdesc_data_init): Likewise.
12185 (tdesc_create_reg): Likewise.
12186 (struct tdesc_type *): Likewise.
12187 (tdesc_create_vector): Likewise.
12188 (tdesc_set_struct_size): Likewise.
12189 (struct tdesc_type *): Likewise.
12190 (tdesc_free_feature): Likewise.
12191 (tdesc_create_feature): Likewise.
12192 * windows-nat.c (windows_add_thread): Likewise.
12193 (windows_make_so): Likewise.
12194 * xml-support.c (gdb_xml_body_text): Likewise.
12195 (gdb_xml_create_parser_and_cleanup): Likewise.
12196 (xml_process_xincludes): Likewise.
12197 * xml-syscall.c (allocate_syscalls_info): Likewise.
12198 (syscall_create_syscall_desc): Likewise.
12200 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12202 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12203 function, with code from i386_stap_parse_special_token.
12204 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12205 (i386_stap_parse_special_token): Move code to the two functions
12206 above; simplify it.
12208 2014-01-09 Pedro Alves <palves@redhat.com>
12209 Hui Zhu <hui@codesourcery.com>
12212 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12213 bp_err_string. Don't mark the location shlib_disabled if the
12214 error thrown wasn't a generic or memory error. Catch errors
12215 thrown while inserting breakpoints in overlayed code. Output
12216 error message of software breakpoints.
12217 * remote.c (remote_insert_breakpoint): If this breakpoint has
12218 target-side commands but this stub doesn't support Z0 packets,
12219 throw NOT_SUPPORTED_ERROR error.
12220 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12221 * target.h (target_insert_breakpoint): Extend comment.
12222 (target_insert_hw_breakpoint): Add comment.
12224 2014-01-08 Pedro Alves <palves@redhat.com>
12226 * remote.c (remote_add_thread): Add threads silently if starting
12228 (remote_notice_new_inferior): If in all-stop, and starting up,
12229 don't call notice_new_inferior.
12230 (get_current_thread): New function, factored out from ...
12231 (add_current_inferior_and_thread): ... this. Adjust.
12232 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12233 found any thread, then select the remote's current thread as GDB's
12234 current thread too.
12236 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12238 * NEWS: Create a new section for the next release branch.
12239 Rename the section of the current branch, now that it has
12242 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12244 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12245 * version.in: Bump version to 7.7.50.DATE-cvs.
12247 2014-01-08 Yao Qi <yao@codesourcery.com>
12249 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12250 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12251 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12253 2014-01-08 Yao Qi <yao@codesourcery.com>
12255 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12256 return value of bfd_get_filename to symbol_file_add_from_bfd.
12258 2014-01-08 Pierre Muller <muller@sourceware.org>
12261 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12262 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12263 to prim_record_mininal_symbol_and_info.
12264 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12265 in call to prim_record_minimal_symbol_and_info.
12266 (read_pe_exported_syms): Set index field of section_data.
12268 2014-01-07 Andrew Pinski <apinski@cavium.com>
12270 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12271 * features/aarch64.c: Regenerate.
12273 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12275 * target.c (return_null): Define.
12276 (update_current_target): Use it instead of return_zero for
12277 functions that return a pointer.
12279 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12281 * source.c (add_path): Fix check for duplicated paths in the previously
12284 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12286 * ada-lang.c: Remove duplicated include statements.
12287 * alphabsd-nat.c: Ditto.
12288 * amd64-darwin-tdep.c: Ditto.
12289 * amd64fbsd-nat.c: Ditto.
12290 * auto-load.c: Ditto.
12292 * breakpoint.c: Ditto.
12293 * dbxread.c: Ditto.
12294 * fork-child.c: Ditto.
12295 * gdb_usleep.c: Ditto.
12296 * i386-darwin-tdep.c: Ditto.
12297 * i386fbsd-nat.c: Ditto.
12299 * inferior.c: Ditto.
12300 * jv-lang.c: Ditto.
12301 * linux-nat.c: Ditto.
12302 * linux-tdep.c: Ditto.
12303 * m68kbsd-nat.c: Ditto.
12304 * m68klinux-nat.c: Ditto.
12305 * microblaze-tdep.c: Ditto.
12306 * mips-linux-tdep.c: Ditto.
12307 * mn10300-tdep.c: Ditto.
12308 * nto-tdep.c: Ditto.
12309 * opencl-lang.c: Ditto.
12311 * printcmd.c: Ditto.
12312 * regcache.c: Ditto.
12313 * remote-m32r-sdi.c: Ditto.
12315 * symfile.c: Ditto.
12317 * tilegx-linux-nat.c: Ditto.
12318 * tilegx-tdep.c: Ditto.
12319 * tracepoint.c: Ditto.
12321 * vaxbsd-nat.c: Ditto.
12322 * windows-nat.c: Ditto.
12323 * xtensa-tdep.c: Ditto.
12325 2014-01-07 Yao Qi <yao@codesourcery.com>
12327 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12329 2014-01-07 Yao Qi <yao@codesourcery.com>
12330 Joel Brobecker <brobecker@adacore.com>
12332 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12333 (pdc_write_regs): Likewise.
12334 (fetch_regs_kernel_thread): Likewise.
12335 (store_regs_kernel_thread): Likewise.
12337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12339 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12340 tagged type objects to their actual type.
12342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12344 * ada-valprint.c (print_field_values): Add "language" parameter.
12345 Update calls to print_field_values and print_variant_part.
12346 Pass new parameter "language" in call to val_print instead
12347 of "current_language". Replace call to ada_val_print by call
12349 (print_variant_part): Add "language" parameter.
12350 (ada_val_print_struct_union): Update call to print_field_values.
12352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12354 * ada-valprint.c (ui_memcpy): Delete.
12355 (ada_print_floating): Update documentation. Add empty line
12356 between between function documentation and implementation.
12357 Delete variable "buffer". Use ui_file_xstrdup in place of
12358 ui_file_put. Minor adjustments following this change.
12360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12362 * ada-valprint.c (ada_val_print_string): New function,
12363 extracted from ada_val_print_array.
12364 (ada_val_print_array): Replace extracted code by call
12365 to ada_val_print_string followed by a return. Move
12366 "else" branch to the function's top block.
12368 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12370 * ada-valprint.c (ada_val_print_array): Move implementation
12371 down. Rename parameter "offset" and "val" into "offset_aligned"
12372 and "original_value" respectively. Add parameter "offset".
12374 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12376 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12377 re-organizing the code. Change the "???" message printed
12378 when target type is a TYPE_CODE_UNDEF into
12379 "<ref to undefined type>".
12381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12383 * ada-valprint.c (print_record): Delete, implementation inlined...
12384 (ada_val_print_struct_union): ... here. Remove call to
12385 ada_check_typedef in inlined implementation.
12387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12389 * ada-valprint.c (ada_val_print_gnat_array): New function,
12390 extracted from ada_val_print_1;
12391 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12392 (ada_val_print_flt, ada_val_print_struct_union)
12393 (ada_val_print_ref): Likewise.
12394 (ada_val_print_1): Delete variables i and elttype.
12395 Replace extracted-out code by call to corresponding
12398 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12400 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12402 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12404 * ada-valprint.c (ada_val_print_1): Replace calls to
12405 ada_val_print_1 by calls to val_print.
12407 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12409 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12410 Update calls to self accordingly. Replace calls to c_val_print
12411 by calls to val_print.
12413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12415 * ada-valprint.c (print_record): Delete declaration.
12416 (adjust_type_signedness, ada_val_print_1): Likewise.
12417 (ada_val_print): Move function implementation down.
12418 (print_variant_part, print_field_values, print_record):
12419 Move function implementation up.
12421 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12423 * python/py-type.c (typy_get_name): New function.
12424 (type_object_getset): Add entry for attribute "name".
12425 * NEWS: Add entry mentioning this new attribute.
12427 2014-01-07 Yao Qi <yao@codesourcery.com>
12429 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12432 2014-01-07 Yao Qi <yao@codesourcery.com>
12434 * gnu-nat.c (info_port_rights): Add qualifier const to
12437 2014-01-07 Yao Qi <yao@codesourcery.com>
12439 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12441 2014-01-07 Yao Qi <yao@codesourcery.com>
12443 * gnu-nat.c (make_inf) Update declaration.
12444 (make_inf): Make it static.
12445 (inf_set_traced): Likewise.
12446 (inf_port_to_thread, inf_task_died_status): Likewise.
12448 2014-01-07 Yao Qi <yao@codesourcery.com>
12450 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12452 2014-01-07 Yao Qi <yao@codesourcery.com>
12454 * gnu-nat.c (_initialize_gnu_nat): Declare.
12456 2014-01-07 Yao Qi <yao@codesourcery.com>
12458 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12460 (struct gdbarch_info) <byte_order>: Change type to
12462 <byte_order_for_code>: Likewise.
12463 * gdbarch.c, gdbarch.h: Regenerated.
12465 2014-01-06 Sasha Smundak <asmundak@google.com>
12467 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12469 2014-01-06 Tom Tromey <tromey@redhat.com>
12471 * doublest.c (convert_doublest_to_floatformat): Use const, not
12473 * somread.c (som_symtab_read): Likewise.
12475 2014-01-07 Hui Zhu <hui@codesourcery.com>
12477 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12478 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12479 (gdb_bfd_fopen): Ditto.
12480 (gdb_bfd_openr): Ditto.
12481 (gdb_bfd_openw): Ditto.
12482 (gdb_bfd_openr_iovec): Ditto.
12483 (gdb_bfd_fdopenr): Ditto.
12484 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12485 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12487 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12489 * symfile-mem.c (symbol_file_add_from_memory): Removed
12490 gdb_bfd_stash_filename.
12492 2014-01-03 Doug Evans <dje@google.com>
12494 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12497 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12499 Update year range in copyright notice of all files.
12501 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12503 * top.c (print_gdb_version): Set copyright year to 2014.
12505 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12507 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12509 For older changes see ChangeLog-2013.
12515 version-control: never