1 2014-09-02 Doug Evans <dje@google.com>
3 * typeprint.c (find_global_typedef): Fix comment.
5 2014-09-02 Gary Benson <gbenson@redhat.com>
7 * i386-nat.h: Renamed as...
8 * x86-nat.h: New file. All type, function and variable name
9 prefixes changed from "i386_" to "x86_". All references updated.
10 * i386-nat.c: Renamed as...
11 * x86-nat.c: New file. All type, function and variable name
12 prefixes changed from "i386_" to "x86_". All references updated.
13 * common/i386-xstate.h: Renamed as...
14 * common/x86-xstate.h: New file. All type, function and variable
15 name prefixes changed from "i386_" to "x86_". All references
17 * nat/i386-cpuid.h: Renamed as...
18 * nat/x86-cpuid.h: New file. All type, function and variable name
19 prefixes changed from "i386_" to "x86_". All references updated.
20 * nat/i386-gcc-cpuid.h: Renamed as...
21 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
22 name prefixes changed from "i386_" to "x86_". All references
24 * nat/i386-dregs.h: Renamed as...
25 * nat/x86-dregs.h: New file. All type, function and variable name
26 prefixes changed from "i386_" to "x86_". All references updated.
27 * nat/i386-dregs.c: Renamed as...
28 * nat/x86-dregs.c: New file. All type, function and variable name
29 prefixes changed from "i386_" to "x86_". All references updated.
31 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
33 * varobj.c (_initialize_varobj): Move to the end of file.
35 2014-08-29 Gary Benson <gbenson@redhat.com>
37 * common/common-exceptions.h: New file.
38 * common/common-exceptions.c: Likewise.
39 * Makefile.in (SFILES): Add common/common-exceptions.c.
40 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
41 (COMMON_OBS): Add common-exceptions.o.
42 (common-exceptions.o): New rule.
43 * exceptions.h (common-exceptions.h): Include.
44 (gdb_setjmp.h): Do not include.
45 (return_reason): Moved to common-exceptions.h.
46 (enum return_reason): Likewise.
47 (RETURN_MASK): Likewise.
48 (typedef return_mask): Likewise.
49 (enum errors): Likewise.
50 (struct gdb_exception): Likewise.
51 (exceptions_state_mc_init): Likewise.
52 (exceptions_state_mc_action_iter): Likewise.
53 (exceptions_state_mc_action_iter_1): Likewise.
54 (TRY_CATCH): Likewise.
55 (throw_exception): Likewise.
56 (throw_verror): Likewise.
57 (throw_vquit): Likewise.
58 (throw_error): Likewise.
59 (throw_quit): Likewise.
60 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
61 (enum catcher_action): Likewise.
62 (struct catcher): Likewise.
63 (current_catcher): Likewise.
64 (catcher_list_size): Likewise.
65 (exceptions_state_mc_init): Likewise.
66 (catcher_pop): Likewise.
67 (exceptions_state_mc): Likewise.
68 (exceptions_state_mc_action_iter): Likewise.
69 (exceptions_state_mc_action_iter_1): Likewise.
70 (throw_exception): Likewise.
71 (exception_messages): Likewise.
72 (exception_messages_size): Likewise.
74 (throw_verror): Likewise.
75 (throw_vquit): Likewise.
76 (throw_error): Likewise.
77 (throw_quit): Likewise.
78 (prepare_to_throw_exception): New function.
80 2014-08-29 Gary Benson <gbenson@redhat.com>
82 * common/gdb_setjmp.h: New file.
83 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
84 * configure.ac: Move sigsetjmp check...
85 * common/common.m4: ...here.
86 * configure: Regenerate.
87 * cp-support.c (SIGJMP_BUF): Delete.
88 (SIGSETJMP): Likewise.
89 (SIGLONGJMP): Likewise.
90 * exceptions.h (gdb_setjmp.h): Include.
91 (setjmp.h): Do not include.
92 (EXCEPTIONS_SIGJMP_BUF): Delete.
93 (EXCEPTIONS_SIGSETJMP): Likewise.
94 (EXCEPTIONS_SIGLONGJMP): Likewise.
95 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
97 * exceptions.c: Likewise.
99 2014-08-29 Gary Benson <gbenson@redhat.com>
101 * cleanups.h: Moved to...
102 * common/cleanups.h: New file.
103 * cleanups.c: Moved to...
104 * common/cleanups.c: New file. Include common-defs.h and
105 cleanups.h. Do not include defs.h.
106 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
107 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
108 (cleanups.o): New rule.
110 2014-08-29 Gary Benson <gbenson@redhat.com>
112 * common/errors.h (internal_warning): New declaration.
113 (internal_vwarning): Likewise.
114 * common/errors.c (internal_warning): New function.
115 * utils.h (internal_warning): Don't declare.
116 (internal_vwarning): Likewise.
117 * utils.c (internal_warning): Removed.
119 2014-08-29 Gary Benson <gbenson@redhat.com>
121 * main.c (captured_main): Use warning during startup.
122 Prefix startup warning messages with command name.
124 2014-08-29 Gary Benson <gbenson@redhat.com>
126 * main.c (captured_main): Handle usage errors with error.
128 2014-08-29 Gary Benson <gbenson@redhat.com>
130 * go32-nat.c (go32_create_inferior): Replace a fprintf/
131 exit pair with a call to error. Wrap the message with _().
133 2014-08-29 Gary Benson <gbenson@redhat.com>
135 * main.c (captured_main): Replace a fprintf/exit
136 pair with a call to error. Wrap the message with _().
138 2014-08-29 Gary Benson <gbenson@redhat.com>
140 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
141 pairs with calls to error. Wrap the message with _().
143 2014-08-29 Gary Benson <gbenson@redhat.com>
145 * utils.c (vwarning): Protect calls to target_terminal_ours
148 2014-08-29 Gary Benson <gbenson@redhat.com>
150 * exceptions.c (print_flush): Protect calls to
151 target_terminal_ours and wrap_here.
153 2014-08-29 Gary Benson <gbenson@redhat.com>
155 * utils.h (filtered_printing_initialized): New declaration.
156 * utils.c (abort_with_message): New function.
157 (internal_vproblem): Use abort_with_message for first level
158 recursive internal problems, and if gdb_stderr is not set up.
159 Protect calls to target_terminal_ours, begin_line and query.
161 2014-08-28 Doug Evans <dje@google.com>
163 * symtab.c (in_prologue): Move definition to better spot.
164 (skip_prologue_using_sal): Ditto.
166 2014-08-28 Doug Evans <dje@google.com>
168 * symtab.c (find_function_start_sal): Move definition to better spot.
170 2014-08-28 Yao Qi <yao@codesourcery.com>
172 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
173 found_stack_adjust in forward scan. Remove condition check
174 on found_stack_adjust which is always true. Indent the code.
176 2014-08-28 Yao Qi <yao@codesourcery.com>
178 * dwarf2read.c (dwarf_decode_lines): Update declaration.
179 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
180 (dwarf_decode_lines): Remove argument
181 want_line_info. Remove condition check on want_line_info.
184 2014-08-27 Doug Evans <dje@google.com>
186 * dwarf2read.c (dwarf_record_line): Fix typo.
188 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
190 * target.h (struct target_ops::to_terminal_save_ours): Remove
192 (target_terminal_save_ours): Remove macro.
193 * target-delegates.c: Regenerate.
194 * inf-child.c (inf_child_target): Don't set the nonexistent
195 field to_terminal_save_ours.
196 * inferior.h (child_terminal_save_ours): Remove declaration.
197 * terminal.h (gdb_save_tty_state): New declaration.
198 * inflow.c (child_terminal_save_ours): Rename to ...
199 (gdb_save_tty_state): ... this.
200 * tui/tui.c: Include terminal.h.
201 (tui_enable): Use gdb_save_tty_state instead of
202 target_terminal_save_ours.
203 (tui_disable): Likewise.
205 2014-08-25 Doug Evans <dje@google.com>
207 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
208 Pass NULL instead of 0 for context pointer.
210 2014-08-25 Yao Qi <yao@codesourcery.com>
212 * dwarf2read.c: Fix grammatical error.
214 2014-08-24 Yao Qi <yao@codesourcery.com>
216 * dwarf2read.c (scan_partial_symbols): Update comments.
217 Rename argument 'need_pc' with 'set_addrmap'.
218 (add_partial_namespace): Rename argument 'need_pc' with
220 (add_partial_module): Likewise.
221 (add_partial_subprogram): Likewise. Update comments.
222 (dwarf2_name): Fix typo.
224 2014-08-22 Doug Evans <dje@google.com>
227 * dwarf2read.c (dwarf_record_line_p): New function.
228 (dwarf_decode_lines_1): Ignore subsequent line number entries
229 for the same line if any entry had a non-zero discriminator.
231 2014-08-22 Doug Evans <dje@google.com>
233 * buildsym.h (record_line_ftype): New typedef.
234 (record_line): Use it.
235 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
236 (dwarf_decode_lines_1): Call them.
238 2014-08-22 Yao Qi <yao@codesourcery.com>
240 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
241 (ctf_end): Remove code.
243 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
245 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
246 (linux_make_corefile_notes): call update_thread_list, protected against
249 2014-08-21 Pedro Alves <palves@redhat.com>
251 * infcmd.c (attach_command): Remove comment.
253 2014-08-21 Bin Cheng <bin.cheng@arm.com>
255 * aarch64-linux-nat.c (dr_changed_t): Change the type from
256 unsigned LONGEST to ULONGEST.
258 2014-08-20 Pedro Alves <palves@redhat.com>
260 * Makefile.in (check-read1): New rule.
262 2014-08-20 Joel Brobecker <brobecker@adacore.com>
264 * value.c (value_from_contents_and_address): Strip resolved_type's
265 typedef layers before checking its TYPE_DATA_LOCATION.
267 2014-08-20 Pedro Alves <palves@redhat.com>
269 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
271 2014-08-20 Yao Qi <yao@codesourcery.com>
273 * amd64-tdep.c (amd64_classify): Add a blank line after the
274 example. Move "*/" to a new line.
275 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
276 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
277 * dwarf2read.c (psymtab_include_file_name): Likewise.
279 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
280 Pedro Alves <palves@redhat.com>
284 * ada-lang.c (coerce_unspec_val_to_type): Use
285 value_contents_copy_raw.
286 * ada-valprint.c (val_print_packed_array_elements): Adjust.
287 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
288 * cp-valprint.c (cp_print_value_fields): Let the common printing
289 code handle optimized out values.
290 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
291 * d-valprint.c (dynamic_array_type): Use
292 value_bits_any_optimized_out.
293 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
294 check_any_valid fields.
295 (check_pieced_value_bits): Delete and inline ...
296 (check_pieced_synthetic_pointer): ... here.
297 (check_pieced_value_validity): Delete.
298 (check_pieced_value_invalid): Delete.
299 (pieced_value_funcs): Remove check_validity and check_any_valid
301 (read_pieced_value): Use mark_value_bits_optimized_out.
302 (write_pieced_value): Switch to use
303 mark_value_bytes_optimized_out.
304 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
305 of assuming the whole value is optimized out.
306 * findvar.c (read_frame_register_value): Remove special handling
307 of optimized out registers.
308 (value_from_register): Use mark_value_bytes_optimized_out.
309 * frame-unwind.c (frame_unwind_got_optimized): Use
310 mark_value_bytes_optimized_out.
311 * jv-valprint.c (java_value_print): Adjust.
312 (java_print_value_fields): Let the common printing code handle
313 optimized out values.
314 * mips-tdep.c (mips_print_register): Remove special handling of
315 optimized out registers.
316 * opencl-lang.c (lval_func_check_validity): Delete.
317 (lval_func_check_any_valid): Delete.
318 (opencl_value_funcs): Remove check_validity and check_any_valid
320 * p-valprint.c (pascal_object_print_value_fields): Let the common
321 printing code handle optimized out values.
322 * stack.c (read_frame_arg): Remove special handling of optimized
323 out values. Fetch both VAL and ENTRYVAL before comparing
324 contents. Adjust to value_available_contents_eq rename.
325 * valprint.c (valprint_check_validity)
326 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
327 (val_print_array_elements): Adjust.
328 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
329 (value_bits_any_optimized_out): New function.
330 (value_entirely_covered_by_range_vector): New function, factored
331 out from value_entirely_unavailable.
332 (value_entirely_unavailable): Reimplement.
333 (value_entirely_optimized_out): New function.
334 (insert_into_bit_range_vector): New function, factored out from
335 mark_value_bits_unavailable.
336 (mark_value_bits_unavailable): Reimplement.
337 (struct ranges_and_idx): New struct.
338 (find_first_range_overlap_and_match): New function, factored out
339 from value_available_contents_bits_eq.
340 (value_available_contents_bits_eq): Rename to ...
341 (value_contents_bits_eq): ... this. Check both unavailable
342 contents and optimized out contents.
343 (value_available_contents_eq): Rename to ...
344 (value_contents_eq): ... this.
345 (allocate_value_lazy): Remove reference to the old optimized_out
347 (allocate_optimized_out_value): Use
348 mark_value_bytes_optimized_out.
349 (require_not_optimized_out): Adjust to check whether the
350 optimized_out vec is empty.
351 (ranges_copy_adjusted): New function, factored out from
352 value_contents_copy_raw.
353 (value_contents_copy_raw): Also copy the optimized out ranges.
354 Assert the destination ranges aren't optimized out.
355 (value_contents_copy): Update comment, remove call to
356 require_not_optimized_out.
357 (value_contents_equal): Adjust to check whether the optimized_out
359 (set_value_optimized_out, value_optimized_out_const): Delete.
360 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
362 (value_entirely_optimized_out, value_bits_valid): Delete.
363 (value_copy): Take a VEC copy of the 'optimized_out' field.
364 (value_primitive_field): Remove special handling of optimized out.
365 (value_fetch_lazy): Assert that lazy values have no unavailable
366 regions. Use value_bits_any_optimized_out. Remove some special
367 handling for optimized out values.
368 * value.h: Add intro comment about <optimized out> and
370 (struct lval_funcs): Remove check_validity and check_any_valid
372 (set_value_optimized_out, value_optimized_out_const): Remove.
373 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
375 (value_bits_any_optimized_out): New declaration.
376 (value_bits_valid): Delete declaration.
377 (value_available_contents_eq): Rename to ...
378 (value_contents_eq): ... this, and extend comments.
380 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
382 Fix -fsanitize=address on unreadable inferior strings.
383 * valprint.c (val_print_string): Fix access before BUFFER.
385 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
387 * target.c (target_struct_size): Remove.
388 (target_struct_allocsize): Remove.
389 (DEFAULT_ALLOCSIZE): Remove.
390 (target_ops_p): New typedef.
391 (DEF_VEC_P (target_ops_p)): New vector type.
392 (target_structs): Change type to VEC (target_ops_p).
393 (add_target_with_completer): Replace "push" code by VEC_safe_push.
394 (find_default_run_target): Rewrite for loop following changes to
397 2014-08-19 Joel Brobecker <brobecker@adacore.com>
399 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
400 Adjust code accordingly. Adjust function description comment.
402 2014-08-19 Yao Qi <yao@codesourcery.com>
404 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
407 2014-08-19 Alan Modra <amodra@gmail.com>
409 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
410 * config.in: Regenerate.
411 * configure: Regenerate.
413 2014-08-19 Tom Tromey <tromey@redhat.com>
414 Gary Benson <gbenson@redhat.com>
416 * common/common-debug.h: New file.
417 * common/common-debug.c: Likewise.
419 * Makefile.in (SFILES): Add common/common-debug.c.
420 (HFILES_NO_SRCDIR): Add common/common-debug.h.
421 (COMMON_OBS): Add common-debug.o and debug.o.
422 (common-debug.o): New rule.
423 * common/common-defs.h: Include common-debug.h.
424 * common/agent.c (debug_agent_printf): New function.
425 (DEBUG_AGENT): Redefine.
426 * nat/i386-dregs.c (debug_printf): Undefine.
428 2014-08-19 Gary Benson <gbenson@redhat.com>
430 * common/common-defs.h: Include print-utils.h.
431 * utils.h: Do not include print-utils.h.
433 2014-08-19 Tom Tromey <tromey@redhat.com>
434 Gary Benson <gbenson@redhat.com>
436 * common/common-types.h: New file.
437 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
438 * common/common-defs.h: Include common-types.h.
439 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
442 2014-08-19 Tom Tromey <tromey@redhat.com>
443 Gary Benson <gbenson@redhat.com>
445 * common/errors.h: New file.
446 * common/errors.c: Likewise.
447 * Makefile.in (SFILES): Add common/errors.c.
448 (HFILES_NO_SRCDIR): Add common/errors.h.
449 (COMMON_OBS): Add errors.o.
450 (errors.o): New rule.
451 * common/common-defs.h: Include errors.h.
452 * utils.h (perror_with_name, error, verror, warning, vwarning):
454 * common/common-utils.h: (malloc_failure, internal_error):
457 2014-08-19 Gary Benson <gbenson@redhat.com>
459 * utils.c (internal_vproblem): Always print the message.
461 2014-08-18 Doug Evans <dje@google.com>
463 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
465 2014-08-18 Joel Brobecker <brobecker@adacore.com>
467 * ada-typeprint.c (type_is_full_subrange_of_target_type):
468 Return 0 if TYPE is dynamic.
469 (print_range): Add handling of dynamic ranges.
471 2014-08-18 Keven Boell <keven.boell@intel.com>
472 Joel Brobecker <brobecker@adacore.com>
474 * gdbtypes.h (struct main_type): Add field "data_location".
475 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
476 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
477 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
478 a dynamic data location.
479 (resolve_dynamic_type): Add DW_AT_data_location handling.
480 (copy_recursive, copy_type): Copy the data_location information
482 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
483 * value.c (value_from_contents_and_address): Add
484 DW_AT_data_location handling.
486 2014-08-18 Keven Boell <keven.boell@intel.com>
487 Joel Brobecker <brobecker@adacore.com>
489 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
490 field "get_object_address".
491 * dwarf2expr.c (execute_stack_op): Add handling for
492 DW_OP_push_object_address.
493 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
494 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
495 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
496 (dwarf_expr_get_obj_addr): New function.
497 (dwarf_expr_ctx_funcs): Add get_object_address field.
498 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
499 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
500 (dwarf2_evaluate_property): Add parameter "address". Use it.
501 (needs_get_obj_addr): New function.
502 (needs_frame_ctx_funcs): Add get_object_address field.
503 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
504 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
505 (resolve_dynamic_array): Likewise.
507 2014-08-18 Joel Brobecker <brobecker@adacore.com>
509 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
510 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
511 fixed value for records and unions for which some GNAT encodings
514 2014-08-18 Joel Brobecker <brobecker@adacore.com>
516 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
517 rewrite to avoid "else if" and "else" constructs. Should be
520 2014-08-18 Joel Brobecker <brobecker@adacore.com>
522 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
525 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
528 * eval.c: Update all calls to find_overload_match.
529 * valarith.c: Likewise.
530 (value_user_defined_cpp_op, value_user_defined_op): New
531 argument NOSIDE. Update all callers.
532 * valops.c (find_overload_match): New argument NOSIDE.
533 * value.h (find_overload_match): Update signature.
535 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
537 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
538 'items' methods instead of 'iteritems' method on dictionaries.
540 2014-08-15 Doug Evans <dje@google.com>
542 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
545 2014-08-15 Doug Evans <dje@google.com>
547 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
549 2014-08-15 Doug Evans <dje@google.com>
551 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
553 2014-08-15 Doug Evans <dje@google.com>
555 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
558 2014-08-15 Eli Zaretskii <eliz@gnu.org>
560 * dcache.h: Include target.h, to avoid compile time warnings.
562 2014-08-15 Joel Brobecker <brobecker@adacore.com>
564 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
565 frame_info" partial declaration.
566 * gdbarch.h: Regenerate.
568 2014-08-15 Yao Qi <yao@codesourcery.com>
570 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
571 Add parameter 'decode_for_pst_p'. Callers update.
573 2014-08-13 Yao Qi <yao@codesourcery.com>
576 * configure.ac: Use local variable 'pos'.
577 * configure: Regenerated.
579 2014-08-11 Doug Evans <dje@google.com>
581 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
582 message, it is redundant with "Reading symbols from ..." message.
584 2014-08-10 Doug Evans <xdje42@gmail.com>
586 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
588 2014-08-09 Yao Qi <yao@codesourcery.com>
591 * remote.c (remote_xfer_partial): Remove dead code.
593 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
595 * ia64-linux-tdep.c: Include "regset.h".
596 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
597 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
598 (ia64_linux_supply_fpregset): New function.
599 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
600 (ia64_linux_regset_from_core_section): New function.
601 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
604 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
606 * m68klinux-tdep.c: Include "regset.h".
607 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
608 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
609 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
610 (m68k_linux_regset_from_core_section): New function.
611 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
614 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
616 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
617 function. Move logic to...
618 (tilegx_linux_regmap): ... this new register map.
619 (tilegx_linux_regset): Refer to register map, replace supply
620 method by regcache_supply_regset, and add collect method.
621 * tilegx-tdep.h (enum tilegx_regnum): New enum value
622 TILEGX_FIRST_EASY_REGNUM.
624 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
626 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
627 that calls regcache_supply_regset and handles the EPC register
628 separately. Move main logic to...
629 (score7_linux_gregmap): ... this new register map.
630 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
631 (score7_linux_gregset): Refer to register map. Add collect method.
632 (score7_linux_regset_from_core_section): Replace
633 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
634 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
635 (struct regset): Delete unused forward declaraction.
636 (struct pt_regs): Delete structure definition.
637 (elf_gregset_t): Delete typedef.
639 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
641 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
642 (nios2_core_regset): Add collect method.
644 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
646 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
647 platform-independent and don't write to read-only input buffer.
648 (m32r_linux_collect_gregset): New function.
649 (m32r_linux_gregset): Add collect method.
651 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
653 * hppa-linux-tdep.c (greg_map): Rename to...
654 (hppa_linux_gregmap): ... this. Also convert to
655 regcache_map_entry format.
656 (hppa_linux_supply_regset): Delete function.
657 (hppa_linux_supply_fpregset): Delete function. Move logic to...
658 (hppa_linux_fpregmap): ... this new register map.
659 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
660 register map, replace supply method by regcache_supply_regset, and
661 add collect method regcache_collect_regset.
663 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
665 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
666 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
667 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
668 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
669 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
670 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
671 (frv_linux_supply_gregset): Replace main logic by call to
672 regcache_supply_regset, but keep clearing gr32-gr63.
673 (frv_linux_supply_fpregset): Delete function.
674 (frv_linux_gregset): Refer to appropriate register map and add
675 regcache_collect_regset as the collect method.
676 (frv_linux_fpregset): Likewise. Also exchange the supply method
677 by regcache_supply_regset.
679 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
681 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
682 by call to alpha_supply_int_regs.
683 (alpha_linux_collect_gregset): New function.
684 (alpha_linux_supply_fpregset): Replace logic by call to
685 alpha_supply_fp_regs.
686 (alpha_linux_collect_fpregset): New function.
687 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
689 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
691 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
692 by call to regcache_collect_regset.
693 (supply_gregset, supply_fpregset): Call regcache_supply_regset
694 instead of aarch64_linux_supply_gregset/_fpregset.
695 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
696 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
698 (aarch64_linux_supply_gregset, supply_gregset_from_core)
699 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
700 functions. Move logic to ...
701 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
703 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
704 refer to new register maps, replace *_regset_from_core by
705 regcache_supply_regset, and also use regcache_collect_regset.
706 * aarch64-linux-tdep.h: Include "regset.h".
707 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
709 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
710 macros, moved from C source file.
711 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
712 variable declarations.
714 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
716 * s390-linux-nat.c: Include "regset.h".
717 (regmap_gregset): Delete macro.
718 (s390_64_regmap_gregset): New register map for
719 regcache_supply/_collect_regset.
720 (s390_64_gregset): New regset.
721 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
722 (regmap_fpregset): Delete macro.
723 (s390_native_supply, s390_native_collect): Delete functions.
724 (supply_gregset, fill_gregset): Replace s390-specific regmap
725 handling by a call to regcache_supply/_collect_regset.
726 (supply_fpregset, fill_fpregset): Call regcache_supply/
727 _collect_regset instead of s390_native_supply/_collect.
728 (fetch_regset, store_regset): Likewise. Also change the last
729 parameter to a regset instead of a regmap.
730 (s390_linux_fetch_inferior_registers)
731 (390_linux_store_inferior_registers): Adjust last parameter in
732 calls to fetch_regset and store_regset.
733 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
734 (s390_gregmap): ... this. Also make static const and convert to
735 regcache_map_entry format.
736 (s390x_regmap_gregset): Delete.
737 (s390_regmap_fpregset): Rename to...
738 (s390_fpregmap): ... this. Make static const and convert to
739 regcache_map_entry format.
740 (s390_regmap_upper, s390_regmap_last_break)
741 (s390x_regmap_last_break, s390_regmap_system_call)
742 (s390_regmap_tdb): Likewise.
743 (s390_supply_regset, s390_collect_regset): Remove functions.
744 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
746 (s390_gregset, s390_fpregset, s390_upper_regset)
747 (s390_last_break_regset, s390x_last_break_regset)
748 (s390_system_call_regset, s390_tdb_regset): Make global and
749 replace s390_supply/_collect_regset by regcache_supply/
751 (s390x_gregset): Delete.
752 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
753 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
754 (s390_regmap_fpregset, s390_regmap_last_break)
755 (s390x_regmap_last_break, s390_regmap_system_call)
756 (s390_regmap_tdb): Delete global variable declarations.
757 (s390_gregset, s390_fpregset, s390_last_break_regset)
758 (s390x_last_break_regset, s390_system_call_regset)
759 (s390_tdb_regset): New global variable declarations.
761 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
763 * regcache.c: Include "regset.h".
764 (regcache_transfer_regset): New local function.
765 (regcache_supply_regset, regcache_collect_regset): New functions.
766 * regcache.h (struct regcache_map_entry): New structure.
767 (REGCACHE_MAP_SKIP): New enum value.
768 (regcache_supply_regset, regcache_collect_regset): New prototypes.
770 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
772 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
773 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
774 (ppc_linux_collect_gregset ): Likewise.
775 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
776 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
777 (ppc_collect_vrregset): Likewise.
778 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
781 2014-08-07 Yao Qi <yao@codesourcery.com>
783 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
784 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
785 * remote.c (remote_read_bytes): Likewise.
787 2014-08-07 Yao Qi <yao@codesourcery.com>
789 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
791 2014-08-07 Yao Qi <yao@codesourcery.com>
794 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
795 TARGET_XFER_OK instead of 0.
797 2014-08-07 Gary Benson <gbenson@redhat.com>
799 * common/common-defs.h: Include errno.h.
800 * defs.h: Do not include errno.h.
801 * ada-typeprint.c: Likewise.
802 * c-typeprint.c: Likewise.
803 * core-regset.c: Likewise.
804 * corefile.c: Likewise.
805 * corelow.c: Likewise.
806 * event-loop.c: Likewise.
807 * f-typeprint.c: Likewise.
808 * gnu-nat.c: Likewise.
809 * go32-nat.c: Likewise.
810 * i386gnu-nat.c: Likewise.
811 * m2-typeprint.c: Likewise.
812 * nat/linux-btrace.c: Likewise.
813 * p-typeprint.c: Likewise.
814 * procfs.c: Likewise.
815 * remote-sim.c: Likewise.
816 * rs6000-nat.c: Likewise.
817 * target.c: Likewise.
818 * typeprint.c: Likewise.
819 * ui-file.c: Likewise.
820 * valops.c: Likewise.
821 * valprint.c: Likewise.
823 2014-08-07 Gary Benson <gbenson@redhat.com>
825 * common/common-defs.h: Include string.h.
826 * aarch64-tdep.c: Do not include string.h.
827 * ada-exp.y: Likewise.
828 * ada-lang.c: Likewise.
829 * ada-lex.l: Likewise.
830 * ada-typeprint.c: Likewise.
831 * ada-valprint.c: Likewise.
832 * aix-thread.c: Likewise.
833 * alpha-linux-tdep.c: Likewise.
834 * alpha-mdebug-tdep.c: Likewise.
835 * alpha-nat.c: Likewise.
836 * alpha-osf1-tdep.c: Likewise.
837 * alpha-tdep.c: Likewise.
838 * alphanbsd-tdep.c: Likewise.
839 * amd64-dicos-tdep.c: Likewise.
840 * amd64-linux-tdep.c: Likewise.
841 * amd64-nat.c: Likewise.
842 * amd64-sol2-tdep.c: Likewise.
843 * amd64fbsd-tdep.c: Likewise.
844 * amd64obsd-tdep.c: Likewise.
845 * arch-utils.c: Likewise.
846 * arm-linux-nat.c: Likewise.
847 * arm-linux-tdep.c: Likewise.
848 * arm-tdep.c: Likewise.
849 * arm-wince-tdep.c: Likewise.
850 * armbsd-tdep.c: Likewise.
851 * armnbsd-nat.c: Likewise.
852 * armnbsd-tdep.c: Likewise.
853 * armobsd-tdep.c: Likewise.
854 * avr-tdep.c: Likewise.
855 * ax-gdb.c: Likewise.
856 * ax-general.c: Likewise.
857 * bcache.c: Likewise.
858 * bfin-tdep.c: Likewise.
859 * breakpoint.c: Likewise.
860 * build-id.c: Likewise.
861 * buildsym.c: Likewise.
863 * c-lang.c: Likewise.
864 * c-typeprint.c: Likewise.
865 * c-valprint.c: Likewise.
866 * charset.c: Likewise.
867 * cli-out.c: Likewise.
868 * cli/cli-cmds.c: Likewise.
869 * cli/cli-decode.c: Likewise.
870 * cli/cli-dump.c: Likewise.
871 * cli/cli-interp.c: Likewise.
872 * cli/cli-logging.c: Likewise.
873 * cli/cli-script.c: Likewise.
874 * cli/cli-setshow.c: Likewise.
875 * cli/cli-utils.c: Likewise.
876 * coffread.c: Likewise.
877 * common/agent.c: Likewise.
878 * common/buffer.c: Likewise.
879 * common/buffer.h: Likewise.
880 * common/common-utils.c: Likewise.
881 * common/filestuff.c: Likewise.
882 * common/filestuff.c: Likewise.
883 * common/format.c: Likewise.
884 * common/print-utils.c: Likewise.
885 * common/rsp-low.c: Likewise.
886 * common/signals.c: Likewise.
887 * common/vec.h: Likewise.
888 * common/xml-utils.c: Likewise.
889 * core-regset.c: Likewise.
890 * corefile.c: Likewise.
891 * corelow.c: Likewise.
892 * cp-abi.c: Likewise.
893 * cp-name-parser.y: Likewise.
894 * cp-support.c: Likewise.
895 * cp-valprint.c: Likewise.
896 * cris-tdep.c: Likewise.
898 * darwin-nat.c: Likewise.
899 * dbxread.c: Likewise.
900 * dcache.c: Likewise.
901 * demangle.c: Likewise.
902 * dicos-tdep.c: Likewise.
903 * disasm.c: Likewise.
904 * doublest.c: Likewise.
906 * dummy-frame.c: Likewise.
907 * dwarf2-frame.c: Likewise.
908 * dwarf2loc.c: Likewise.
909 * dwarf2read.c: Likewise.
910 * elfread.c: Likewise.
911 * environ.c: Likewise.
913 * event-loop.c: Likewise.
914 * exceptions.c: Likewise.
916 * expprint.c: Likewise.
918 * f-lang.c: Likewise.
919 * f-typeprint.c: Likewise.
920 * f-valprint.c: Likewise.
921 * fbsd-nat.c: Likewise.
922 * findcmd.c: Likewise.
923 * findvar.c: Likewise.
924 * fork-child.c: Likewise.
926 * frv-linux-tdep.c: Likewise.
927 * frv-tdep.c: Likewise.
929 * gdb_bfd.c: Likewise.
930 * gdbarch.c: Likewise.
931 * gdbarch.sh: Likewise.
932 * gdbtypes.c: Likewise.
933 * gnu-nat.c: Likewise.
934 * gnu-v2-abi.c: Likewise.
935 * gnu-v3-abi.c: Likewise.
936 * go-exp.y: Likewise.
937 * go-lang.c: Likewise.
938 * go32-nat.c: Likewise.
939 * guile/guile.c: Likewise.
940 * guile/scm-auto-load.c: Likewise.
941 * hppa-hpux-tdep.c: Likewise.
942 * hppa-linux-nat.c: Likewise.
943 * hppanbsd-tdep.c: Likewise.
944 * hppaobsd-tdep.c: Likewise.
945 * i386-cygwin-tdep.c: Likewise.
946 * i386-dicos-tdep.c: Likewise.
947 * i386-linux-tdep.c: Likewise.
948 * i386-nto-tdep.c: Likewise.
949 * i386-sol2-tdep.c: Likewise.
950 * i386-tdep.c: Likewise.
951 * i386bsd-tdep.c: Likewise.
952 * i386gnu-nat.c: Likewise.
953 * i386nbsd-tdep.c: Likewise.
954 * i386obsd-tdep.c: Likewise.
955 * i387-tdep.c: Likewise.
956 * ia64-libunwind-tdep.c: Likewise.
957 * ia64-linux-nat.c: Likewise.
958 * inf-child.c: Likewise.
959 * inf-ptrace.c: Likewise.
960 * inf-ttrace.c: Likewise.
961 * infcall.c: Likewise.
962 * infcmd.c: Likewise.
963 * inflow.c: Likewise.
964 * infrun.c: Likewise.
965 * interps.c: Likewise.
966 * iq2000-tdep.c: Likewise.
967 * irix5-nat.c: Likewise.
968 * jv-exp.y: Likewise.
969 * jv-lang.c: Likewise.
970 * jv-typeprint.c: Likewise.
971 * jv-valprint.c: Likewise.
972 * language.c: Likewise.
973 * linux-fork.c: Likewise.
974 * linux-nat.c: Likewise.
975 * lm32-tdep.c: Likewise.
976 * m2-exp.y: Likewise.
977 * m2-typeprint.c: Likewise.
978 * m32c-tdep.c: Likewise.
979 * m32r-linux-nat.c: Likewise.
980 * m32r-linux-tdep.c: Likewise.
981 * m32r-rom.c: Likewise.
982 * m32r-tdep.c: Likewise.
983 * m68hc11-tdep.c: Likewise.
984 * m68k-tdep.c: Likewise.
985 * m68kbsd-tdep.c: Likewise.
986 * m68klinux-nat.c: Likewise.
987 * m68klinux-tdep.c: Likewise.
988 * m88k-tdep.c: Likewise.
989 * machoread.c: Likewise.
990 * macrocmd.c: Likewise.
992 * mdebugread.c: Likewise.
993 * mem-break.c: Likewise.
994 * memattr.c: Likewise.
995 * memory-map.c: Likewise.
996 * mep-tdep.c: Likewise.
997 * mi/mi-cmd-break.c: Likewise.
998 * mi/mi-cmd-disas.c: Likewise.
999 * mi/mi-cmd-env.c: Likewise.
1000 * mi/mi-cmd-stack.c: Likewise.
1001 * mi/mi-cmd-var.c: Likewise.
1002 * mi/mi-cmds.c: Likewise.
1003 * mi/mi-console.c: Likewise.
1004 * mi/mi-getopt.c: Likewise.
1005 * mi/mi-interp.c: Likewise.
1006 * mi/mi-main.c: Likewise.
1007 * mi/mi-parse.c: Likewise.
1008 * microblaze-rom.c: Likewise.
1009 * microblaze-tdep.c: Likewise.
1010 * mingw-hdep.c: Likewise.
1011 * minidebug.c: Likewise.
1012 * minsyms.c: Likewise.
1013 * mips-irix-tdep.c: Likewise.
1014 * mips-linux-tdep.c: Likewise.
1015 * mips-tdep.c: Likewise.
1016 * mips64obsd-tdep.c: Likewise.
1017 * mipsnbsd-tdep.c: Likewise.
1018 * mipsread.c: Likewise.
1019 * mn10300-linux-tdep.c: Likewise.
1020 * mn10300-tdep.c: Likewise.
1021 * monitor.c: Likewise.
1022 * moxie-tdep.c: Likewise.
1023 * mt-tdep.c: Likewise.
1024 * nat/linux-btrace.c: Likewise.
1025 * nat/linux-osdata.c: Likewise.
1026 * nat/linux-procfs.c: Likewise.
1027 * nat/linux-ptrace.c: Likewise.
1028 * nat/linux-waitpid.c: Likewise.
1029 * nbsd-tdep.c: Likewise.
1030 * nios2-linux-tdep.c: Likewise.
1031 * nto-procfs.c: Likewise.
1032 * nto-tdep.c: Likewise.
1033 * objc-lang.c: Likewise.
1034 * objfiles.c: Likewise.
1035 * opencl-lang.c: Likewise.
1036 * osabi.c: Likewise.
1037 * osdata.c: Likewise.
1038 * p-exp.y: Likewise.
1039 * p-lang.c: Likewise.
1040 * p-typeprint.c: Likewise.
1041 * parse.c: Likewise.
1042 * posix-hdep.c: Likewise.
1043 * ppc-linux-nat.c: Likewise.
1044 * ppc-sysv-tdep.c: Likewise.
1045 * ppcfbsd-tdep.c: Likewise.
1046 * ppcnbsd-tdep.c: Likewise.
1047 * ppcobsd-tdep.c: Likewise.
1048 * printcmd.c: Likewise.
1049 * procfs.c: Likewise.
1050 * prologue-value.c: Likewise.
1051 * python/py-auto-load.c: Likewise.
1052 * python/py-gdb-readline.c: Likewise.
1053 * ravenscar-thread.c: Likewise.
1054 * regcache.c: Likewise.
1055 * registry.c: Likewise.
1056 * remote-fileio.c: Likewise.
1057 * remote-m32r-sdi.c: Likewise.
1058 * remote-mips.c: Likewise.
1059 * remote-notif.c: Likewise.
1060 * remote-sim.c: Likewise.
1061 * remote.c: Likewise.
1062 * reverse.c: Likewise.
1063 * rs6000-aix-tdep.c: Likewise.
1064 * ser-base.c: Likewise.
1065 * ser-go32.c: Likewise.
1066 * ser-mingw.c: Likewise.
1067 * ser-pipe.c: Likewise.
1068 * ser-tcp.c: Likewise.
1069 * ser-unix.c: Likewise.
1070 * serial.c: Likewise.
1071 * sh-tdep.c: Likewise.
1072 * sh64-tdep.c: Likewise.
1073 * shnbsd-tdep.c: Likewise.
1075 * sol-thread.c: Likewise.
1076 * solib-dsbt.c: Likewise.
1077 * solib-frv.c: Likewise.
1078 * solib-osf.c: Likewise.
1079 * solib-som.c: Likewise.
1080 * solib-spu.c: Likewise.
1081 * solib-target.c: Likewise.
1082 * solib.c: Likewise.
1083 * somread.c: Likewise.
1084 * source.c: Likewise.
1085 * sparc-nat.c: Likewise.
1086 * sparc-sol2-tdep.c: Likewise.
1087 * sparc-tdep.c: Likewise.
1088 * sparc64-tdep.c: Likewise.
1089 * sparc64fbsd-tdep.c: Likewise.
1090 * sparc64nbsd-tdep.c: Likewise.
1091 * sparcnbsd-tdep.c: Likewise.
1092 * spu-linux-nat.c: Likewise.
1093 * spu-multiarch.c: Likewise.
1094 * spu-tdep.c: Likewise.
1095 * stabsread.c: Likewise.
1096 * stack.c: Likewise.
1097 * std-regs.c: Likewise.
1098 * symfile.c: Likewise.
1099 * symmisc.c: Likewise.
1100 * symtab.c: Likewise.
1101 * target.c: Likewise.
1102 * thread.c: Likewise.
1103 * tilegx-linux-nat.c: Likewise.
1104 * tilegx-tdep.c: Likewise.
1106 * tracepoint.c: Likewise.
1107 * tui/tui-command.c: Likewise.
1108 * tui/tui-data.c: Likewise.
1109 * tui/tui-disasm.c: Likewise.
1110 * tui/tui-file.c: Likewise.
1111 * tui/tui-layout.c: Likewise.
1112 * tui/tui-out.c: Likewise.
1113 * tui/tui-regs.c: Likewise.
1114 * tui/tui-source.c: Likewise.
1115 * tui/tui-stack.c: Likewise.
1116 * tui/tui-win.c: Likewise.
1117 * tui/tui-windata.c: Likewise.
1118 * tui/tui-winsource.c: Likewise.
1119 * typeprint.c: Likewise.
1120 * ui-file.c: Likewise.
1121 * ui-out.c: Likewise.
1122 * user-regs.c: Likewise.
1123 * utils.c: Likewise.
1124 * v850-tdep.c: Likewise.
1125 * valarith.c: Likewise.
1126 * valops.c: Likewise.
1127 * valprint.c: Likewise.
1128 * value.c: Likewise.
1129 * varobj.c: Likewise.
1130 * vax-tdep.c: Likewise.
1131 * vaxnbsd-tdep.c: Likewise.
1132 * vaxobsd-tdep.c: Likewise.
1133 * windows-nat.c: Likewise.
1134 * xcoffread.c: Likewise.
1135 * xml-support.c: Likewise.
1136 * xstormy16-tdep.c: Likewise.
1137 * xtensa-linux-nat.c: Likewise.
1139 2014-08-07 Gary Benson <gbenson@redhat.com>
1141 * common/common-defs.h: Include gdb_assert.h.
1142 * aarch64-tdep.c: Do not include gdb_assert.h.
1143 * addrmap.c: Likewise.
1144 * aix-thread.c: Likewise.
1145 * alpha-linux-tdep.c: Likewise.
1146 * alpha-mdebug-tdep.c: Likewise.
1147 * alphanbsd-tdep.c: Likewise.
1148 * amd64-nat.c: Likewise.
1149 * amd64-tdep.c: Likewise.
1150 * amd64bsd-nat.c: Likewise.
1151 * amd64fbsd-nat.c: Likewise.
1152 * amd64fbsd-tdep.c: Likewise.
1153 * amd64nbsd-nat.c: Likewise.
1154 * amd64nbsd-tdep.c: Likewise.
1155 * amd64obsd-nat.c: Likewise.
1156 * amd64obsd-tdep.c: Likewise.
1157 * arch-utils.c: Likewise.
1158 * arm-tdep.c: Likewise.
1159 * armbsd-tdep.c: Likewise.
1161 * bcache.c: Likewise.
1162 * bfin-tdep.c: Likewise.
1163 * blockframe.c: Likewise.
1164 * breakpoint.c: Likewise.
1165 * bsd-kvm.c: Likewise.
1166 * bsd-uthread.c: Likewise.
1167 * buildsym.c: Likewise.
1168 * c-exp.y: Likewise.
1169 * c-lang.c: Likewise.
1170 * charset.c: Likewise.
1171 * cleanups.c: Likewise.
1172 * cli-out.c: Likewise.
1173 * cli/cli-decode.c: Likewise.
1174 * cli/cli-dump.c: Likewise.
1175 * cli/cli-logging.c: Likewise.
1176 * cli/cli-script.c: Likewise.
1177 * cli/cli-utils.c: Likewise.
1178 * coffread.c: Likewise.
1179 * common/common-utils.c: Likewise.
1180 * common/queue.h: Likewise.
1181 * common/signals.c: Likewise.
1182 * common/vec.h: Likewise.
1183 * complaints.c: Likewise.
1184 * completer.c: Likewise.
1185 * corelow.c: Likewise.
1186 * cp-abi.c: Likewise.
1187 * cp-name-parser.y: Likewise.
1188 * cp-namespace.c: Likewise.
1189 * cp-support.c: Likewise.
1190 * cris-tdep.c: Likewise.
1191 * dbxread.c: Likewise.
1192 * dictionary.c: Likewise.
1193 * doublest.c: Likewise.
1194 * dsrec.c: Likewise.
1195 * dummy-frame.c: Likewise.
1196 * dwarf2-frame-tailcall.c: Likewise.
1197 * dwarf2-frame.c: Likewise.
1198 * dwarf2expr.c: Likewise.
1199 * dwarf2loc.c: Likewise.
1200 * dwarf2read.c: Likewise.
1202 * event-loop.c: Likewise.
1203 * exceptions.c: Likewise.
1204 * expprint.c: Likewise.
1205 * f-valprint.c: Likewise.
1206 * fbsd-nat.c: Likewise.
1207 * findvar.c: Likewise.
1208 * frame-unwind.c: Likewise.
1209 * frame.c: Likewise.
1210 * frv-tdep.c: Likewise.
1211 * gcore.c: Likewise.
1212 * gdb-dlfcn.c: Likewise.
1213 * gdb_bfd.c: Likewise.
1214 * gdbarch.c: Likewise.
1215 * gdbarch.sh: Likewise.
1216 * gdbtypes.c: Likewise.
1217 * gnu-nat.c: Likewise.
1218 * gnu-v3-abi.c: Likewise.
1219 * go-lang.c: Likewise.
1220 * guile/scm-exception.c: Likewise.
1221 * guile/scm-gsmob.c: Likewise.
1222 * guile/scm-lazy-string.c: Likewise.
1223 * guile/scm-math.c: Likewise.
1224 * guile/scm-pretty-print.c: Likewise.
1225 * guile/scm-safe-call.c: Likewise.
1226 * guile/scm-utils.c: Likewise.
1227 * guile/scm-value.c: Likewise.
1228 * h8300-tdep.c: Likewise.
1229 * hppa-hpux-nat.c: Likewise.
1230 * hppa-tdep.c: Likewise.
1231 * hppanbsd-tdep.c: Likewise.
1232 * hppaobsd-tdep.c: Likewise.
1233 * i386-darwin-nat.c: Likewise.
1234 * i386-darwin-tdep.c: Likewise.
1235 * i386-nto-tdep.c: Likewise.
1236 * i386-tdep.c: Likewise.
1237 * i386bsd-nat.c: Likewise.
1238 * i386fbsd-tdep.c: Likewise.
1239 * i386gnu-nat.c: Likewise.
1240 * i386nbsd-tdep.c: Likewise.
1241 * i386obsd-tdep.c: Likewise.
1242 * i387-tdep.c: Likewise.
1243 * ia64-libunwind-tdep.c: Likewise.
1244 * ia64-tdep.c: Likewise.
1245 * inf-ptrace.c: Likewise.
1246 * inf-ttrace.c: Likewise.
1247 * infcall.c: Likewise.
1248 * infcmd.c: Likewise.
1249 * infrun.c: Likewise.
1250 * inline-frame.c: Likewise.
1251 * interps.c: Likewise.
1252 * jv-lang.c: Likewise.
1253 * jv-typeprint.c: Likewise.
1254 * linux-fork.c: Likewise.
1255 * linux-nat.c: Likewise.
1256 * linux-thread-db.c: Likewise.
1257 * m32c-tdep.c: Likewise.
1258 * m32r-linux-nat.c: Likewise.
1259 * m32r-tdep.c: Likewise.
1260 * m68k-tdep.c: Likewise.
1261 * m68kbsd-nat.c: Likewise.
1262 * m68kbsd-tdep.c: Likewise.
1263 * m88k-tdep.c: Likewise.
1264 * machoread.c: Likewise.
1265 * macroexp.c: Likewise.
1266 * macrotab.c: Likewise.
1267 * maint.c: Likewise.
1268 * mdebugread.c: Likewise.
1269 * memory-map.c: Likewise.
1270 * mep-tdep.c: Likewise.
1271 * mi/mi-common.c: Likewise.
1272 * microblaze-tdep.c: Likewise.
1273 * mingw-hdep.c: Likewise.
1274 * mips-linux-nat.c: Likewise.
1275 * mips-linux-tdep.c: Likewise.
1276 * mips-tdep.c: Likewise.
1277 * mips64obsd-tdep.c: Likewise.
1278 * mipsnbsd-tdep.c: Likewise.
1279 * mn10300-linux-tdep.c: Likewise.
1280 * mn10300-tdep.c: Likewise.
1281 * moxie-tdep.c: Likewise.
1282 * mt-tdep.c: Likewise.
1283 * nat/linux-btrace.c: Likewise.
1284 * nat/linux-osdata.c: Likewise.
1285 * nat/linux-ptrace.c: Likewise.
1286 * nat/mips-linux-watch.c: Likewise.
1287 * nios2-linux-tdep.c: Likewise.
1288 * nios2-tdep.c: Likewise.
1289 * objc-lang.c: Likewise.
1290 * objfiles.c: Likewise.
1291 * obsd-nat.c: Likewise.
1292 * opencl-lang.c: Likewise.
1293 * osabi.c: Likewise.
1294 * parse.c: Likewise.
1295 * ppc-linux-nat.c: Likewise.
1296 * ppc-sysv-tdep.c: Likewise.
1297 * ppcfbsd-nat.c: Likewise.
1298 * ppcfbsd-tdep.c: Likewise.
1299 * ppcnbsd-nat.c: Likewise.
1300 * ppcnbsd-tdep.c: Likewise.
1301 * ppcobsd-nat.c: Likewise.
1302 * ppcobsd-tdep.c: Likewise.
1303 * printcmd.c: Likewise.
1304 * procfs.c: Likewise.
1305 * prologue-value.c: Likewise.
1306 * psymtab.c: Likewise.
1307 * python/py-lazy-string.c: Likewise.
1308 * python/py-value.c: Likewise.
1309 * regcache.c: Likewise.
1310 * reggroups.c: Likewise.
1311 * registry.c: Likewise.
1312 * remote-sim.c: Likewise.
1313 * remote.c: Likewise.
1314 * rs6000-aix-tdep.c: Likewise.
1315 * rs6000-tdep.c: Likewise.
1316 * s390-linux-tdep.c: Likewise.
1317 * score-tdep.c: Likewise.
1318 * ser-base.c: Likewise.
1319 * ser-mingw.c: Likewise.
1320 * sh-tdep.c: Likewise.
1321 * sh64-tdep.c: Likewise.
1322 * solib-darwin.c: Likewise.
1323 * solib-spu.c: Likewise.
1324 * solib-svr4.c: Likewise.
1325 * source.c: Likewise.
1326 * sparc-nat.c: Likewise.
1327 * sparc-sol2-tdep.c: Likewise.
1328 * sparc-tdep.c: Likewise.
1329 * sparc64-sol2-tdep.c: Likewise.
1330 * sparc64-tdep.c: Likewise.
1331 * sparc64fbsd-tdep.c: Likewise.
1332 * sparc64nbsd-tdep.c: Likewise.
1333 * sparc64obsd-tdep.c: Likewise.
1334 * sparcnbsd-tdep.c: Likewise.
1335 * sparcobsd-tdep.c: Likewise.
1336 * spu-multiarch.c: Likewise.
1337 * spu-tdep.c: Likewise.
1338 * stabsread.c: Likewise.
1339 * stack.c: Likewise.
1340 * symfile.c: Likewise.
1341 * symtab.c: Likewise.
1342 * target-descriptions.c: Likewise.
1343 * target-memory.c: Likewise.
1344 * target.c: Likewise.
1345 * tic6x-linux-tdep.c: Likewise.
1346 * tic6x-tdep.c: Likewise.
1347 * tilegx-linux-nat.c: Likewise.
1348 * tilegx-tdep.c: Likewise.
1350 * tramp-frame.c: Likewise.
1351 * tui/tui-out.c: Likewise.
1352 * tui/tui-winsource.c: Likewise.
1353 * ui-out.c: Likewise.
1354 * user-regs.c: Likewise.
1355 * utils.c: Likewise.
1356 * v850-tdep.c: Likewise.
1357 * valops.c: Likewise.
1358 * value.c: Likewise.
1359 * varobj.c: Likewise.
1360 * vax-nat.c: Likewise.
1361 * xml-syscall.c: Likewise.
1362 * xml-tdesc.c: Likewise.
1363 * xstormy16-tdep.c: Likewise.
1364 * xtensa-linux-nat.c: Likewise.
1365 * xtensa-tdep.c: Likewise.
1367 2014-08-07 Gary Benson <gbenson@redhat.com>
1369 * common/common-defs.h: Include common-utils.h.
1370 * defs.h: Do not include common-utils.h.
1371 * common/gdb_assert.h: Likewise.
1372 * darwin-nat.h: Likewise.
1373 * nat/linux-btrace.c: Likewise.
1374 * target/waitstatus.h: Likewise.
1376 2014-08-07 Gary Benson <gbenson@redhat.com>
1378 * common/common-defs.h: Include ptid.h.
1379 * defs.h: Do not include ptid.h.
1380 * inferior.h: Likewise.
1381 * infrun.h: Likewise.
1382 * nat/linux-btrace.h: Likewise.
1383 * nat/linux-osdata.h: Likewise.
1384 * target/waitstatus.h: Likewise.
1386 2014-08-07 Gary Benson <gbenson@redhat.com>
1388 * common/common-defs.h: Include gdb_locale.h.
1389 * defs.h: Do not include gdb_locale.h.
1391 2014-08-07 Gary Benson <gbenson@redhat.com>
1393 * common/common-defs.h: Include gdb/signals.h.
1394 * defs.h: Do not include gdb/signals.h.
1396 2014-08-07 Gary Benson <gbenson@redhat.com>
1398 * common/common-defs.h: Include pathmax.h.
1399 * defs.h: Do not include pathmax.h.
1401 2014-08-07 Gary Benson <gbenson@redhat.com>
1403 * common/common-defs.h: Include libiberty.h.
1404 * defs.h: Do not include libiberty.h.
1405 * common/queue.h: Likewise.
1406 * cp-name-parser.y: Likewise.
1407 * mi/mi-cmd-catch.c: Likewise.
1408 * python/python.c: Likewise.
1410 2014-08-07 Gary Benson <gbenson@redhat.com>
1412 * common/common-defs.h: Include ansidecl.h.
1413 * defs.h: Do not include ansidecl.h.
1414 * common/buffer.h: Likewise.
1415 * common/common-utils.h: Likewise.
1417 2014-08-07 Gary Benson <gbenson@redhat.com>
1419 * common/common-defs.h: Include stddef.h.
1420 * defs.h: Do not include stddef.h.
1421 * common/common-utils.h: Likewise.
1422 * amd64fbsd-nat.c: Likewise.
1423 * bcache.c: Likewise.
1424 * charset.c: Likewise.
1425 * common/buffer.h: Likewise.
1426 * common/vec.h: Likewise.
1427 * i386bsd-nat.c: Likewise.
1428 * nat/linux-btrace.h: Likewise.
1429 * ppcfbsd-nat.c: Likewise.
1430 * ppcnbsd-tdep.h: Likewise.
1431 * ppcobsd-nat.c: Likewise.
1432 * ppcobsd-tdep.h: Likewise.
1433 * python/py-gdb-readline.c: Likewise.
1435 2014-08-07 Gary Benson <gbenson@redhat.com>
1437 * common/common-defs.h: Include stdarg.h.
1438 * defs.h: Do not include stdarg.h.
1439 * ada-lang.c: Likewise.
1440 * common/common-utils.h: Likewise.
1441 * guile/scm-string.c: Likewise.
1442 * guile/scm-utils.c: Likewise.
1443 * m32c-tdep.c: Likewise.
1445 2014-08-07 Gary Benson <gbenson@redhat.com>
1447 * common/common-defs.h: Include stdlib.h.
1448 * defs.h: Do not include stdlib.h.
1449 * addrmap.c: Likewise.
1450 * bcache.c: Likewise.
1451 * common/buffer.c: Likewise.
1452 * common/common-utils.c: Likewise.
1453 * cp-name-parser.y: Likewise.
1454 * go32-nat.c: Likewise.
1455 * mn10300-linux-tdep.c: Likewise.
1456 * nat/linux-osdata.c: Likewise.
1457 * tui/tui.c: Likewise.
1458 * windows-nat.c: Likewise.
1460 2014-08-07 Gary Benson <gbenson@redhat.com>
1462 * common/common-defs.h: Include stdio.h.
1463 * defs.h: Do not include stdio.h.
1464 * ada-lang.c: Likewise.
1465 * common/buffer.c: Likewise.
1466 * common/common-utils.c: Likewise.
1467 * cp-name-parser.y: Likewise.
1468 * gnu-nat.c: Likewise.
1469 * go32-nat.c: Likewise.
1470 * i386gnu-nat.c: Likewise.
1471 * proc-api.c: Likewise.
1472 * proc-events.c: Likewise.
1473 * proc-flags.c: Likewise.
1474 * proc-why.c: Likewise.
1475 * python/python-internal.h: Likewise.
1476 * target-memory.c: Likewise.
1477 * tui/tui-io.c: Likewise.
1478 * tui/tui.c: Likewise.
1480 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1482 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1483 (scan_dyntag_auxv): Same.
1485 2014-08-06 Yao Qi <yao@codesourcery.com>
1487 * amd64-linux-nat.c: Remove duplicated include
1489 * i386-linux-nat.c: Likewise.
1491 2014-08-06 Yao Qi <yao@codesourcery.com>
1493 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1494 operand" with "Special opcode" in comments.
1496 2014-08-05 Gary Benson <gbenson@redhat.com>
1498 * interps.c (initialize_interps): Remove prototype.
1499 (interpreter_initialized): Remove static global.
1500 (interp_add): Do not call initialize_interps.
1501 (initialize_interps): Remove function.
1503 2014-08-05 Gary Benson <gbenson@redhat.com>
1505 * utils.c (vwarning): Remove spurious va_end.
1507 2014-08-05 Alan Modra <amodra@gmail.com>
1509 * charset.c (convert_between_encodings): Cast result of obstack_base.
1510 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1511 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1512 (read_unwind_info): Use size_t for some locals.
1513 * jit.c (finalize_symtab): Likewise.
1514 * utils.c (hashtab_obstack_allocate): Likewise.
1515 * symmisc.c (print_objfile_statistics): Update format strings.
1517 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1519 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1520 (Changes in GDB 7.8): ... here.
1522 2014-08-04 Tom Tromey <tromey@redhat.com>
1524 * target.c (set_targetdebug): New function.
1525 (initialize_targets): Pass set_targetdebug when creating "set
1528 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1530 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1531 if detecting a variable-sized field that is not the last field.
1532 Fix struct type length computation.
1534 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1536 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1539 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1541 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1542 Remove "+ 8" offset in computation of CHAIN_VMA.
1544 2014-07-31 Doug Evans <dje@google.com>
1546 * inflow.c (child_terminal_inferior): Add comment.
1547 (child_terminal_ours_for_output): Add comment.
1548 (child_terminal_ours): Add comment.
1549 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1550 (linux_nat_terminal_ours): Add comment.
1552 2014-07-31 Gary Benson <gbenson@redhat.com>
1554 * common/btrace-common.h: Do not include defs.h or server.h.
1555 * nat/mips-linux-watch.h: Likewise.
1556 * gdb-dlfcn.h: Do not include defs.h.
1557 * tracefile.h: Likewise.
1559 2014-07-30 Roland McGrath <mcgrathr@google.com>
1561 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1563 2014-07-30 Tom Tromey <tromey@redhat.com>
1565 * bsd-kvm.c (bsd_kvm_open): Constify.
1566 * corelow.c (core_open): Constify.
1567 * ctf.c (ctf_open): Constify.
1568 * dbug-rom.c (dbug_open): Constify.
1569 * exec.c (exec_open): Constify.
1570 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1571 * microblaze-rom.c (picobug_open): Constify.
1572 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1574 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1575 * record-btrace.c (record_btrace_open): Constify.
1576 * record-full.c (record_full_core_open_1, record_full_open_1)
1577 (record_full_open): Constify.
1578 * remote-m32r-sdi.c (m32r_open): Constify.
1579 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1580 (rockhopper_open, lsi_open): Constify.
1581 * remote-sim.c (gdbsim_open): Constify.
1582 * remote.c (remote_open, extended_remote_open, remote_open_1):
1584 * target.h (struct target_ops) <to_open>: Make "arg" const.
1585 * tracefile-tfile.c (tfile_open): Constify.
1587 2014-07-30 Tom Tromey <tromey@redhat.com>
1589 * breakpoint.c (map_breakpoint_numbers): Update.
1590 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1591 (get_number_const): New function.
1592 (get_number): Rewrite using get_number_const.
1593 (init_number_or_range): Make "string" const.
1594 (number_is_in_list): Make "list" const.
1595 * cli/cli-utils.h (get_number_const): Declare.
1596 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1597 (init_number_or_range, number_is_in_list): Update.
1598 * printcmd.c (map_display_numbers): Update.
1599 * value.c (value_from_history_ref): Constify.
1600 * value.h (value_from_history_ref): Update.
1602 2014-07-30 Tom Tromey <tromey@redhat.com>
1604 * corefile.c (hook_type, call_extra_exec_file_hooks)
1605 (specify_exec_file_hook): Constify.
1606 * exec.c (exec_file_attach): Make "filename" const.
1607 * gdbcore.h (deprecated_exec_file_display_hook)
1608 (specify_exec_file_hook, exec_file_attach): Constify.
1609 * main.c (captured_main): Use catch_command_errors_const.
1611 2014-07-30 Tom Tromey <tromey@redhat.com>
1613 * target.c (open_target): New function.
1614 (add_target_with_completer, add_deprecated_target_alias): Use
1615 set_cmd_sfunc, set_cmd_context.
1616 (debug_to_open): Remove.
1617 (setup_target_debug): Update.
1619 2014-07-30 Yao Qi <yao@codesourcery.com>
1621 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1623 * parse.c (exp_iterate): Update comments.
1625 2014-07-30 Gary Benson <gbenson@redhat.com>
1627 * common/common-defs.h: New file.
1628 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1629 * defs.h: Include common-defs.h.
1630 Do not include config.h or build-gnulib/config.h.
1632 2014-07-30 Gary Benson <gbenson@redhat.com>
1634 * common/common-utils.h: Do not include config.h.
1635 * nat/linux-btrace.h: Likewise.
1637 2014-07-30 Gary Benson <gbenson@redhat.com>
1639 * btrace.c: Include defs.h.
1640 * common/ptid.c: Include defs.h or server.h as appropriate.
1641 * nat/mips-linux-watch.c: Likewise.
1643 2014-07-29 Tom Tromey <tromey@redhat.com>
1645 * target.c (target_is_pushed): Simplify.
1647 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1651 2014-07-29 Yao Qi <yao@codesourcery.com>
1654 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1656 2014-07-28 Doug Evans <xdje42@gmail.com>
1659 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1660 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1663 2014-07-28 Will Newton <will.newton@linaro.org>
1665 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1666 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1667 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1668 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1669 (THUMB2_EABI_SYSCALL): Likewise.
1670 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1672 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1673 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1675 2014-07-27 Doug Evans <xdje42@gmail.com>
1677 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1679 2014-07-27 Doug Evans <xdje42@gmail.com>
1681 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1683 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1684 Doug Evans <xdje42@gmail.com>
1687 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1688 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1689 * configure.ac: Try to use guild to compile an scm file, if it fails
1690 then disable guile support.
1691 * configure: Regenerate.
1692 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1694 (GUILE_COMPILED_FILES): New variable.
1695 (GUILE_FILES) Update.
1696 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1697 (stamp-guile): Compile scm files.
1698 * guile/guile.c (boot_guile_support): New function.
1699 (standard_throw_args_p): New function.
1700 (print_standard_throw_error, print_throw_error): New functions.
1701 (handle_boot_error): New function.
1702 (initialize_scheme_side): Rewrite to call boot_guile_support.
1703 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1704 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1706 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1707 Doug Evans <xdje42@gmail.com>
1710 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1711 * guile/lib/gdb/support.scm: New file.
1712 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1713 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1715 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1717 (%assert-type): Ditto, and renamed to assert-type.
1718 (%exception-print-style): Delete.
1720 2014-07-26 Doug Evans <xdje42@gmail.com>
1723 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1724 * configure: Regenerate.
1725 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1727 (PYTHON_FILES): New variable.
1728 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1729 (GUILE_FILES): New variable.
1730 (stamp-python, install-python, uninstall-python): Handle empty
1732 (stamp-guile, install-guile, uninstall-guile): Ditto.
1734 2014-07-26 Doug Evans <xdje42@gmail.com>
1737 * guile/lib/gdb.scm (pretty-printers): Export.
1738 (set-pretty-printers!): Export.
1739 * guile/lib/gdb/printing.scm (gdb module): Update.
1740 (prepend-pretty-printer!, append-pretty-printer!): Update.
1741 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1742 (pretty_printer_list_var): Delete.
1743 (pretty_printer_list): New static global.
1744 (gdbscm_pretty_printers): New function.
1745 (gdbscm_set_pretty_printers_x): New function.
1746 (ppscm_find_pretty_printer_from_gdb): Update.
1747 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1748 (gdbscm_initialize_pretty_printers): Update.
1750 2014-07-26 Doug Evans <xdje42@gmail.com>
1753 * configure.ac: Add check for header gc/gc.h.
1754 Add check for function setenv.
1755 * configure: Regenerate.
1756 * config.in: Regenerate.
1757 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1759 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1761 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1762 variation in gdbarch matching.
1764 2014-07-25 Tom Tromey <tromey@redhat.com>
1766 * exec.c (using_exec_ops): Remove.
1767 (exec_close_1): Update. Remove extraneous block, reindent.
1768 (add_target_sections): Use target_is_pushed.
1770 2014-07-25 Pedro Alves <palves@redhat.com>
1772 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1773 * monitor.c (monitor_create_inferior): Likewise.
1774 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1775 * remote-sim.c (gdbsim_create_inferior): Likewise.
1776 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1777 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1778 * windows-nat.c (do_initial_windows_stuff): Likewise.
1780 2014-07-25 Pedro Alves <palves@redhat.com>
1782 * NEWS: Mention signal passing and "signal" command changes.
1783 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1785 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1787 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1788 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1789 (jump_command): Adjust clear_proceed_status call.
1790 (signal_command): Warn if other thread that are resumed have
1791 signals that will be delivered. Adjust clear_proceed_status call.
1792 (until_next_command, finish_command)
1793 (proceed_after_attach_callback, attach_command_post_wait)
1794 (attach_command): Adjust clear_proceed_status call.
1795 * infrun.c (proceed_after_vfork_done): Likewise.
1796 (proceed_after_attach_callback): Adjust comment.
1797 (clear_proceed_status_thread): Clear stop_signal if not in pass
1799 (clear_proceed_status_callback): Delete.
1800 (clear_proceed_status): New 'step' parameter. Only clear the
1801 proceed status of threads the command being prepared is about to
1803 (proceed): If passed in an explicit signal, override stop_signal
1804 with it. Don't pass the last stop signal to the thread we're
1806 (init_wait_for_inferior): Adjust clear_proceed_status call.
1807 (switch_back_to_stepped_thread): Clear the signal if it should not
1809 * infrun.h (clear_proceed_status): New 'step' parameter.
1810 (user_visible_resume_ptid): Add comment.
1811 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1812 signal is in pass state.
1813 * remote.c (append_pending_thread_resumptions): Likewise.
1814 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1816 2014-07-25 Tom Tromey <tromey@redhat.com>
1818 * target.h (target_stopped_data_address)
1819 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1822 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1824 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1826 (avr_pointer_to_address): Likewise.
1828 2014-07-24 Tom Tromey <tromey@redhat.com>
1830 * monitor.c (compile_pattern): Update.
1831 * target.h (struct target_ops) <to_shortname, to_longname,
1834 2014-07-24 Tom Tromey <tromey@redhat.com>
1836 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1837 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1838 (add_info_alias, add_com): Make "doc" const.
1839 (print_doc_line): Make "str" const.
1840 (delete_cmd): Update.
1841 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1842 (print_doc_line): Update.
1843 * cli/cli-script.c (document_command): Update.
1844 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1845 (add_com, add_info, add_info_alias): Update.
1846 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1847 * python/py-cmd.c (cmdpy_destroyer): Update.
1849 2014-07-24 Tom Tromey <tromey@redhat.com>
1851 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1852 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1853 (help_cmd_list): Constify.
1854 (lookup_cmd): Update.
1855 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1857 (help_cmd_list, apropos_cmd): Update.
1858 * cli/cli-script.c (show_user): Update.
1859 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1860 * cli/cli-setshow.h (cmd_show_list): Update.
1861 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1862 (cmd_show_list): Update.
1863 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1864 * python/py-cmd.c (cmdpy_destroyer): Update.
1866 2014-07-24 Tom Tromey <tromey@redhat.com>
1868 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1869 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1871 * command.h (deprecate_cmd): Update.
1872 * maint.c (maintenance_do_deprecate): Add casts.
1874 2014-07-24 Tom Tromey <tromey@redhat.com>
1876 * cli/cli-decode.c (help_cmd): Make parameter "const".
1877 * cli/cli-decode.h (help_cmd): Update.
1879 2014-07-24 Tom Tromey <tromey@redhat.com>
1881 * stack.c (up_silently_base, down_silently_base): Make argument
1884 2014-07-24 Tom Tromey <tromey@redhat.com>
1886 * solib.c (solib_add): Make "pattern" const.
1887 * solib.h (solib_add): Update.
1889 2014-07-24 Tom Tromey <tromey@redhat.com>
1891 * remote.c (remote_serial_open, print_packet, putpkt)
1892 (putpkt_binary): Constify.
1893 * remote.h (putpkt): Update.
1895 2014-07-24 Tom Tromey <tromey@redhat.com>
1897 * monitor.c (monitor_open): Make "args" const.
1898 * monitor.h (monitor_open): Update.
1900 2014-07-24 Tom Tromey <tromey@redhat.com>
1902 * maint.c (match_bfd_flags): Make "string" const.
1903 (print_bfd_section_info): Remove casts.
1904 (print_objfile_section_info): Make "string" const.
1906 2014-07-24 Tom Tromey <tromey@redhat.com>
1908 * inf-child.c (inf_child_open_target): Make "arg" const.
1909 * inf-child.h (inf_child_open_target): Update.
1911 2014-07-24 Tom Tromey <tromey@redhat.com>
1913 * environ.c (unset_in_environ): Make "var" const.
1914 * environ.h (unset_in_environ): Update.
1916 2014-07-24 Tom Tromey <tromey@redhat.com>
1918 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1920 (scan_filename_with_cleanup): Likewise.
1921 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1922 Make arguments const.
1923 (restore_command): Update.
1925 2014-07-24 Pedro Alves <palves@redhat.com>
1927 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1929 2014-07-24 Tom Tromey <tromey@redhat.com>
1930 Gary Benson <gbenson@redhat.com>
1932 * nat/linux-ptrace.c (additional_flags): New global.
1933 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1934 additional_flags; don't check GDBSERVER.
1935 (linux_ptrace_set_additional_flags): New function.
1936 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1938 * linux-nat.c (_initialize_linux_nat): Call
1939 linux_ptrace_set_additional_flags.
1941 2014-07-24 Tom Tromey <tromey@redhat.com>
1943 * make-target-delegates (munge_type, write_debugmethod): New
1945 (debug_names): New global.
1946 ($TARGET_DEBUG_PRINTER): New global.
1947 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1949 Write debug methods. Generate init_debug_target.
1950 * target-debug.h: New file.
1951 * target-delegates.c: Rebuild.
1952 * target.c: Include target-debug.h.
1953 (debug_target): Hoist definition.
1954 (target_kill, target_get_section_table, target_memory_map)
1955 (target_flash_erase, target_flash_done, target_detach)
1956 (target_disconnect, target_wait, target_resume)
1957 (target_pass_signals, target_program_signals, target_follow_fork)
1958 (target_mourn_inferior, target_search_memory)
1959 (target_thread_address_space, target_close)
1960 (target_find_new_threads, target_core_of_thread)
1961 (target_verify_memory, target_insert_mask_watchpoint)
1962 (target_remove_mask_watchpoint): Remove targetdebug code.
1963 (debug_to_post_attach, debug_to_prepare_to_store)
1964 (debug_to_files_info, debug_to_insert_breakpoint)
1965 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1966 (debug_to_region_ok_for_hw_watchpoint)
1967 (debug_to_can_accel_watchpoint_condition)
1968 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1969 (debug_to_watchpoint_addr_within_range)
1970 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1971 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1972 (debug_to_terminal_init, debug_to_terminal_inferior)
1973 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1974 (debug_to_terminal_save_ours, debug_to_terminal_info)
1975 (debug_to_load, debug_to_post_startup_inferior)
1976 (debug_to_insert_fork_catchpoint)
1977 (debug_to_remove_fork_catchpoint)
1978 (debug_to_insert_vfork_catchpoint)
1979 (debug_to_remove_vfork_catchpoint)
1980 (debug_to_insert_exec_catchpoint)
1981 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1982 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1983 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1984 (setup_target_debug): Call init_debug_target.
1985 * target.h (TARGET_DEBUG_PRINTER): New macro.
1986 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1987 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1989 2014-07-24 Gary Benson <gbenson@redhat.com>
1991 * exceptions.h (throw_vfatal): Renamed to...
1992 (throw_vquit): New declaration.
1993 (throw_quit): Likewise.
1994 * exceptions.c (throw_vfatal): Renamed to...
1995 (throw_vquit): New function.
1996 (throw_quit): Likewise.
1997 (throw_error): Call throw_verror rather than throw_it.
1998 * utils.h (vfatal): Removed.
2000 * utils.c (vfatal): Removed.
2002 (internal_verror): Replaced call to fatal with call to throw_quit.
2003 (quit): Replaced calls to fatal with calls to throw_quit.
2005 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2007 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2010 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2012 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2013 less than zero in conditional expression.
2015 2014-07-23 Tom Tromey <tromey@redhat.com>
2017 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2018 ($INTRO_PART): Don't match whitespace.
2019 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2021 ($METHOD): Add $METHOD_TRAILER.
2023 (scan_target_h): New sub.
2024 Change main loop not to collect state.
2025 * target-delegates.c: Rebuild.
2027 2014-07-23 Gary Benson <gbenson@redhat.com>
2029 * cp-support.c (gdb_demangle): Fix build on systems without
2032 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2034 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2035 for reference entry value target data value.
2037 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2039 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2040 value_available_contents_eq.
2042 2014-07-22 Pedro Alves <palves@redhat.com>
2044 * value.c (allocate_optimized_out_value): Don't mark value as
2047 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2049 * MAINTAINERS (Write After Approval): Update my email address.
2051 2014-07-20 Doug Evans <dje@google.com>
2054 * remote.c (putpkt_binary): Add text to error message.
2056 2014-07-20 Yao Qi <yao@codesourcery.com>
2058 * eval.c: Remove "Chill" from comments.
2059 * gdbtypes.h: Likewise.
2060 * symtab.h: Likewise.
2062 2014-07-20 Yao Qi <yao@codesourcery.com>
2064 * std-operator.def: Update comments to TERNOP_SLICE.
2066 2014-07-20 Yao Qi <yao@codesourcery.com>
2068 * std-operator.def: Remove BINOP_RANGE.
2069 * breakpoint.c (watchpoint_exp_is_const): Update.
2070 * expprint.c (dump_subexp_body_standard): Likewise.
2071 * eval.c (init_array_element): Remove dead code.
2072 (evaluate_subexp_standard): Likewise.
2074 2014-07-20 Yao Qi <yao@codesourcery.com>
2076 * std-operator.def: Remove BINOP_IN.
2077 * breakpoint.c (watchpoint_exp_is_const): Update.
2078 * eval.c (evaluate_subexp_standard): Likewise.
2079 * expprint.c (dump_subexp_body_standard): Likewise.
2081 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2083 * microblaze-tdep.c (microblaze_register_names): Add
2084 the rshr and rslr register names.
2085 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2086 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2087 Use of tdesc_numbered_register. Use of
2088 microblaze_register_g_packet_guesses. Use of
2089 tdesc_use_registers. Use of set_gdbarch_register_type.
2090 (microblaze_register_g_packet_guesses): New.
2091 * microblaze-tdep.h (microblaze_reg_num): Add
2092 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2093 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2094 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2095 * features/microblaze-core.xml: New file.
2096 * features/microblaze-stack-protect.xml: New file.
2097 * features/microblaze-with-stack-protect.c: New file.
2098 * features/microblaze-with-stack-protect.xml: New file.
2099 * features/microblaze.xml: New file.
2100 * features/microblaze.c: New file.
2101 * features/Makefile (microblaze-with-stack-protect): Add
2102 microblaze-with-stack-protect microblaze and microblaze-expedite.
2103 * regformats/microblaze-with-stack-protect.dat: New file.
2104 * regformats/microblaze.dat: New file.
2105 * doc/gdb.texinfo (MicroBlaze Features): Added.
2107 2014-07-18 Tom Tromey <tromey@redhat.com>
2109 * exec.c (exec_ops): Now static.
2110 * exec.h (exec_ops): Don't declare.
2112 2014-07-18 Tom Tromey <tromey@redhat.com>
2114 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2115 to find_target_beneath.
2116 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2117 find_target_beneath.
2118 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2120 2014-07-18 Tom Tromey <tromey@redhat.com>
2123 * utils.c (quit): Use target_supports_terminal_ours.
2124 * target.h (target_supports_terminal_ours): Declare.
2125 * target.c (target_supports_delete_record): Don't check
2126 to_delete_record against NULL.
2127 (target_supports_terminal_ours): New function.
2129 2014-07-18 Tom Tromey <tromey@redhat.com>
2132 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2133 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2134 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2135 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2136 * windows-nat.c (windows_xfer_partial): Always delegate.
2137 * record-btrace.c (record_btrace_xfer_partial): Simplify
2139 (record_btrace_fetch_registers, record_btrace_store_registers)
2140 (record_btrace_prepare_to_store, record_btrace_resume)
2141 (record_btrace_wait, record_btrace_find_new_threads)
2142 (record_btrace_thread_alive): Likewise.
2143 * procfs.c (procfs_xfer_partial): Always delegate.
2144 * corelow.c (core_xfer_partial): Always delegate.
2145 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2147 2014-07-18 Tom Tromey <tromey@redhat.com>
2149 * exec.c (exec_make_note_section): Move earlier.
2151 2014-07-17 Doug Evans <dje@google.com>
2154 * maint.c (count_symtabs_and_blocks): Handle NULL
2155 current_program_space.
2156 (report_command_stats): Check global enabled flag in addition to
2157 recorded enabled flag.
2158 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2160 2014-07-16 Pedro Alves <palves@redhat.com>
2162 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2164 2014-07-16 Tom Tromey <tromey@redhat.com>
2166 * target.h (struct target_ops) <to_delete_record>: Reformat
2169 2014-07-16 Tom Tromey <tromey@redhat.com>
2171 * target-delegates.c: Rebuild.
2173 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2175 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2176 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2177 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2178 (avr_pointer_to_address): Likewise.
2179 (avr_address_class_type_flags): New function.
2180 (avr_address_class_type_flags_to_name): Likewise.
2181 (avr_address_class_name_to_type_flags): Likewise.
2182 (avr_gdbarch_init): Set address_class_type_flags,
2183 address_class_type_flags_to_name and
2184 address_class_name_to_type_flags.
2186 2014-07-15 Pedro Alves <palves@redhat.com>
2188 * linux-nat.c (kill_callback): Save errno and work with saved
2191 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2193 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2195 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2197 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2198 breakpoint support correctly.
2200 2014-07-14 Pedro Alves <palves@redhat.com>
2202 * utils.c (prompt_for_continue): Call target_terminal_ours.
2204 2014-07-14 Pedro Alves <palves@redhat.com>
2206 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2207 catch_errors. Don't re-enable stdin or notify observers where,
2209 (fetch_inferior_event_wrapper): Delete.
2211 2014-07-14 Pedro Alves <palves@redhat.com>
2214 * top.c: Include "inf-loop.h".
2215 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2217 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2219 (gdb_readline_wrapper): Store whether the target is async, and
2222 2014-07-14 Pedro Alves <palves@redhat.com>
2225 * top.c (gdb_readline_wrapper_line): Tweak comment.
2226 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2227 the input handler callback.
2229 2014-07-14 Pedro Alves <palves@redhat.com>
2232 * main.c: Include event-top.h.
2233 (handle_command_errors): New function.
2234 (catch_command_errors, catch_command_errors_const): Use it.
2236 2014-07-14 Pedro Alves <palves@redhat.com>
2238 * exceptions.c (catch_command_errors, catch_command_errors_const):
2240 * exceptions.h (catch_command_errors_ftype)
2241 (catch_command_errors_const_ftype): Moved to main.c.
2242 (catch_command_errors, catch_command_errors_const): Delete
2244 * main.c (catch_command_errors_ftype)
2245 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2246 (catch_command_errors, catch_command_errors_const)): Moved here
2247 from exceptions.c and make static.
2249 2014-07-14 Pedro Alves <palves@redhat.com>
2251 * exceptions.c (print_any_exception): Delete.
2252 (catch_exceptions_with_msg): Use exception_print instead of
2253 print_any_exception.
2254 (catch_errors): Use exception_fprintf instead of
2255 print_any_exception.
2256 (catch_command_errors, catch_command_errors_const): Use
2257 exception_print instead of print_any_exception.
2259 2014-07-14 Pedro Alves <palves@redhat.com>
2261 * infcall.c (run_inferior_call): Set 'sync_execution' while
2262 running the inferior call.
2264 2014-07-14 Pedro Alves <palves@redhat.com>
2266 * value.c (value_contents_equal): Delete function.
2267 * value.h (value_contents_equal): Delete declaration.
2269 2014-07-14 Tom Tromey <tromey@redhat.com>
2272 * gdbtypes.c (is_dynamic_type_internal): New function, from
2274 (is_dynamic_type): Rewrite.
2275 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2276 (resolve_dynamic_struct): Likewise.
2277 (resolve_dynamic_type_internal): New function, from
2278 resolve_dynamic_type.
2279 (resolve_dynamic_type): Rewrite.
2281 2014-07-14 Tom Tromey <tromey@redhat.com>
2283 * target.c (target_require_runnable): Also check record_stratum.
2286 2014-07-11 Yao Qi <yao@codesourcery.com>
2288 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2289 thumb_instruction_restores_sp return true.
2291 2014-07-11 Yao Qi <yao@codesourcery.com>
2293 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2294 (thumb_in_function_epilogue_p): Call
2295 thumb_instruction_restores_sp.
2297 2014-07-11 Yao Qi <yao@codesourcery.com>
2299 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2301 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2303 2014-07-11 Gary Benson <gbenson@redhat.com>
2305 * amd64-linux-nat.c (gdbcore.h): Remove include.
2306 (regset.h): Likewise.
2307 (nat/linux-btrace.h): Likewise.
2308 (btrace.h): Likewise.
2309 (gdb_assert.h): Likewise.
2310 (string.h): Likewise.
2311 (sys/uio.h): Likewise.
2312 (sys/debugreg.h): Likewise.
2313 (sys/syscall.h): Likewise.
2314 (sys/procfs.h): Likewise.
2315 (sys/user.h): Likewise.
2316 (asm/ptrace.h): Likewise.
2317 (i386-nat.h): Likewise.
2318 * i386-linux-nat.c (i386-nat.h): Likewise.
2319 (regset.h): Likewise.
2320 (target.h): Likewise.
2321 (linux-nat.h): Likewise.
2322 (nat/linux-btrace.h): Likewise.
2323 (btrace.h): Likewise.
2324 (gdb_assert.h): Likewise.
2325 (string.h): Likewise.
2326 (sys/uio.h): Likewise.
2327 (sys/user.h): Likewise.
2328 (sys/procfs.h): Likewise.
2329 (sys/reg.h): Likewise.
2330 (sys/debugreg.h): Likewise.
2331 (ORIG_EAX): Remove definition.
2333 2014-07-11 Gary Benson <gbenson@redhat.com>
2335 * i386-linux-nat.h: New file.
2336 * x86-linux-nat.h: Likewise.
2337 * x86-linux-nat.c: Likewise.
2338 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2339 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2340 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2341 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2342 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2343 (PTRACE_SETREGSET): Likewise.
2344 (arch_lwp_info): Now in x86-linux-nat.c.
2345 (have_ptrace_getregset): Now in x86-linux-nat.h.
2346 (x86_linux_dr_get): Now in x86-linux-nat.c.
2347 (x86_linux_dr_set): Likewise.
2348 (x86_linux_dr_get_addr): Likewise.
2349 (x86_linux_dr_get_control): Likewise.
2350 (x86_linux_dr_get_status): Likewise.
2351 (update_debug_registers_callback): Likewise.
2352 (x86_linux_dr_set_control): Likewise.
2353 (x86_linux_dr_set_addr): Likewise.
2354 (x86_linux_prepare_to_resume): Likewise.
2355 (x86_linux_new_thread): Likewise.
2356 (x86_linux_new_fork): Likewise.
2357 (x86_linux_get_thread_area): Likewise.
2358 (super_post_startup_inferior): Likewise.
2359 (x86_linux_child_post_startup_inferior): Likewise.
2360 (AMD64_LINUX_USER64_CS): Likewise.
2361 (AMD64_LINUX_X32_DS): Likewise.
2362 (x86_linux_read_description): Likewise.
2363 (x86_linux_enable_btrace): Likewise.
2364 (x86_linux_disable_btrace): Likewise.
2365 (x86_linux_teardown_btrace): Likewise.
2366 (x86_linux_read_btrace): Likewise.
2367 (x86_linux_create_target): Likewise.
2368 (x86_linux_add_target): Likewise.
2369 * i386-linux-nat.c (x86-linux-nat.h): New include.
2370 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2371 (PTRACE_SETREGSET): Likewise.
2372 (arch_lwp_info): Now in x86-linux-nat.c.
2373 (have_ptrace_getregset): Now in x86-linux-nat.h.
2374 (x86_linux_dr_get): Now in x86-linux-nat.c.
2375 (x86_linux_dr_set): Likewise.
2376 (x86_linux_dr_get_addr): Likewise.
2377 (x86_linux_dr_get_control): Likewise.
2378 (x86_linux_dr_get_status): Likewise.
2379 (update_debug_registers_callback): Likewise.
2380 (x86_linux_dr_set_control): Likewise.
2381 (x86_linux_dr_set_addr): Likewise.
2382 (x86_linux_prepare_to_resume): Likewise.
2383 (x86_linux_new_thread): Likewise.
2384 (x86_linux_new_fork): Likewise.
2385 (x86_linux_get_thread_area): Likewise.
2386 (super_post_startup_inferior): Likewise.
2387 (x86_linux_child_post_startup_inferior): Likewise.
2388 (AMD64_LINUX_USER64_CS): Likewise.
2389 (AMD64_LINUX_X32_DS): Likewise.
2390 (x86_linux_read_description): Likewise.
2391 (x86_linux_enable_btrace): Likewise.
2392 (x86_linux_disable_btrace): Likewise.
2393 (x86_linux_teardown_btrace): Likewise.
2394 (x86_linux_read_btrace): Likewise.
2395 (x86_linux_create_target): Likewise.
2396 (x86_linux_add_target): Likewise.
2398 2014-07-11 Gary Benson <gbenson@redhat.com>
2400 * amd64-linux-nat.c: Comment and whitespace changes.
2401 * i386-linux-nat.c: Comment and whitespace changes.
2403 2014-07-11 Gary Benson <gbenson@redhat.com>
2405 * amd64-linux-nat.c (x86_linux_create_target): New function.
2406 (x86_linux_add_target): Likewise.
2407 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2408 * i386-linux-nat.c (x86_linux_create_target): New function.
2409 (x86_linux_add_target): Likewise.
2410 (_initialize_i386_linux_nat): Delegate to the above new functions.
2412 2014-07-11 Gary Benson <gbenson@redhat.com>
2414 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2415 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2416 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2417 (ps_get_thread_area): Delegate to the above.
2419 2014-07-11 Gary Benson <gbenson@redhat.com>
2421 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2422 x86_linux_read_description. All uses updated. amd64-specific
2423 code conditionalized. Conditionalized i386-specific code added.
2424 Redundant cast removed.
2425 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2426 x86_linux_read_description. All uses updated. i386-specific
2427 code conditionalized. Conditionalized amd64-specific code added.
2428 One sizeof replaced with the actual type it is describing.
2430 2014-07-11 Gary Benson <gbenson@redhat.com>
2432 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2433 x86_linux_dr_get. All uses updated.
2434 (amd64_linux_dr_set): Renamed to
2435 x86_linux_dr_set. All uses updated.
2436 (amd64_linux_dr_get_addr): Renamed to
2437 x86_linux_dr_get_addr. All uses updated.
2438 (amd64_linux_dr_get_control): Renamed to
2439 x86_linux_dr_get_control. All uses updated.
2440 (amd64_linux_dr_get_status): Renamed to
2441 x86_linux_dr_get_status. All uses updated.
2442 (amd64_linux_dr_set_control): Renamed to
2443 x86_linux_dr_set_control. All uses updated.
2444 (amd64_linux_dr_set_addr): Renamed to
2445 x86_linux_dr_set_addr. All uses updated.
2446 (amd64_linux_prepare_to_resume): Renamed to
2447 x86_linux_prepare_to_resume. All uses updated.
2448 (amd64_linux_new_thread): Renamed to
2449 x86_linux_new_thread. All uses updated.
2450 (amd64_linux_new_fork): Renamed to
2451 x86_linux_new_fork. All uses updated.
2452 (amd64_linux_child_post_startup_inferior): Renamed to
2453 x86_linux_child_post_startup_inferior. All uses updated.
2454 (amd64_linux_enable_btrace): Renamed to
2455 x86_linux_enable_btrace. All uses updated.
2456 (amd64_linux_disable_btrace): Renamed to
2457 x86_linux_disable_btrace. All uses updated.
2458 (amd64_linux_teardown_btrace): Renamed to
2459 x86_linux_teardown_btrace. All uses updated.
2460 (amd64_linux_read_btrace): Renamed to
2461 x86_linux_read_btrace. All uses updated.
2462 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2463 x86_linux_dr_get. All uses updated.
2464 (i386_linux_dr_set): Renamed to
2465 x86_linux_dr_set. All uses updated.
2466 (i386_linux_dr_get_addr): Renamed to
2467 x86_linux_dr_get_addr. All uses updated.
2468 (i386_linux_dr_get_control): Renamed to
2469 x86_linux_dr_get_control. All uses updated.
2470 (i386_linux_dr_get_status): Renamed to
2471 x86_linux_dr_get_status. All uses updated.
2472 (i386_linux_dr_set_control): Renamed to
2473 x86_linux_dr_set_control. All uses updated.
2474 (i386_linux_dr_set_addr): Renamed to
2475 x86_linux_dr_set_addr. All uses updated.
2476 (i386_linux_prepare_to_resume): Renamed to
2477 x86_linux_prepare_to_resume. All uses updated.
2478 (i386_linux_new_thread): Renamed to
2479 x86_linux_new_thread. All uses updated.
2480 (i386_linux_new_fork): Renamed to
2481 x86_linux_new_fork. All uses updated.
2482 (i386_linux_child_post_startup_inferior): Renamed to
2483 x86_linux_child_post_startup_inferior. All uses updated.
2484 (i386_linux_enable_btrace): Renamed to
2485 x86_linux_enable_btrace. All uses updated.
2486 (i386_linux_disable_btrace): Renamed to
2487 x86_linux_disable_btrace. All uses updated.
2488 (i386_linux_teardown_btrace): Renamed to
2489 x86_linux_teardown_btrace. All uses updated.
2490 (i386_linux_read_btrace): Renamed to
2491 x86_linux_read_btrace. All uses updated.
2493 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2495 * remote.c (extended_remote_post_attach): New function.
2496 (init_extended_remote_ops): Install it as to_post_attach method.
2498 2014-07-09 Pedro Alves <palves@redhat.com>
2500 * infcmd.c (attach_command_post_wait): Don't call
2501 target_terminal_inferior here.
2502 (attach_command): Call it here instead.
2504 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2506 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2508 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2509 from varobj.c, with additional checks.
2510 (c_varobj_ops): Fill in is_path_expr_parent field.
2511 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2512 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2514 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2516 (varobj_default_is_path_expr_parent): New function.
2517 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2518 (varobj_default_is_path_expr_parent): Declare new function.
2520 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2522 * infcmd.c (finish_backward): Turn internal error into normal error.
2524 2014-07-07 Pedro Alves <palves@redhat.com>
2527 * remote.c (async_handle_remote_sigint)
2528 (async_handle_remote_sigint_twice): Call
2529 gdb_call_async_signal_handler instead of
2530 mark_async_signal_handler.
2532 2014-07-07 Tom Tromey <tromey@redhat.com>
2534 * target-delegates.c: Rebuild.
2535 * target.c (target_info_record): Remove.
2536 * record.c (info_record_command): Unconditionally call
2538 * target.h (struct target_ops) <to_info_record>: Use
2539 TARGET_DEFAULT_IGNORE.
2540 (target_info_record): Remove.
2542 2014-07-07 Tom Tromey <tromey@redhat.com>
2544 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2545 TARGET_DEFAULT_NORETURN.
2546 * target.c (generic_tls_error): New function.
2547 (target_translate_tls_address): Don't search target stack.
2548 * target-delegates.c: Rebuild.
2549 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2551 * linux-thread-db.c (thread_db_get_thread_local_address):
2552 Unconditionally call beneath target.
2554 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2556 * cli/cli-logging.c (pop_output_files): Assign targerr to
2559 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2561 * MAINTAINERS (Write After Approval): Update my email address.
2563 2014-07-02 Gary Benson <gbenson@redhat.com>
2565 * proc-service.c (ps_xfer_memory): Update comment.
2566 (ps_pstop): Remove unused function.
2567 (ps_pcontinue): Likewise.
2568 (ps_lstop): Likewise.
2569 (ps_lcontinue): Likewise.
2570 (ps_lgetxregsize): Likewise.
2571 (ps_lgetxregs): Likewise.
2572 (ps_lsetxregs): Likewise.
2573 (ps_plog): Likewise.
2574 (ps_ptread): Likewise.
2575 (ps_ptwrite): Likewise.
2577 2014-07-01 Mark Wielaard <mjw@redhat.com>
2579 * dwarf2read.c (add_array_cv_type): New function.
2580 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2581 (read_tag_volatile_type): Likewise.
2583 2014-07-01 Tom Tromey <tromey@redhat.com>
2585 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2586 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2587 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2588 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2589 * command.h (cmd_cfunc_ftype): Move earlier.
2590 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2591 (add_com, add_info): Use cmd_cfunc_ftype.
2593 2014-06-30 Tom Tromey <tromey@redhat.com>
2595 * symtab.c (operator_chars): Make parameters and return type
2597 (file_matches): Make "files" const.
2598 (struct search_symbols_data) <files>: Now const.
2599 (search_symbols): Make "regexp" and "files" parameters const.
2601 (symtab_symbol_info): Remove cast.
2602 (rbreak_command): Update.
2603 * symtab.h (search_symbols): Update.
2605 2014-06-27 Yao Qi <yao@codesourcery.com>
2607 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2608 Change parameter type to 'struct thread_info *'. Caller
2610 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2612 * dummy-frame.c (struct dummy_frame_id): New.
2613 (dummy_frame_id_eq): New function.
2614 (struct dummy_frame) <id>: Change its type to 'struct
2616 (dummy_frame_push): Add parameter ptid and save it in
2618 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2620 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2622 (lookup_dummy_frame): Change parameter type to 'struct
2623 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2624 instead of frame_id_eq.
2625 (dummy_frame_pop): Add parameter ptid. Callers updated.
2626 Update comments. Compose dummy_frame_id and pass it to
2628 (dummy_frame_discard): Add parameter ptid.
2629 (dummy_frame_sniffer): Compose dummy_frame_id and call
2630 dummy_frame_id_eq instead of frame_id_eq.
2631 (fprint_dummy_frames): Print ptid.
2632 * dummy-frame.h: Remove comments.
2633 (dummy_frame_push): Add ptid in declaration.
2634 (dummy_frame_pop, dummy_frame_discard): Likewise.
2636 2014-06-26 Tom Tromey <tromey@redhat.com>
2638 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2639 * command.h (error_no_arg): Update.
2641 2014-06-26 Tom Tromey <tromey@redhat.com>
2643 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2644 (do_show_command): Make "arg" const.
2645 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2647 2014-06-26 Tom Tromey <tromey@redhat.com>
2649 * record-full.c (record_full_get_bookmark): Make "args" const.
2650 (record_full_goto_bookmark): Make "raw_bookmark" const.
2651 * record.c (record_goto): New function.
2652 (cmd_record_goto): Use it. Now static.
2653 * record.h (record_goto): Declare.
2654 (cmd_record_goto): Remove declaration.
2655 * target-delegates.c: Rebuild.
2656 * target.h (struct target_ops) <to_get_bookmark,
2657 to_goto_bookmark>: Make parameter const.
2659 2014-06-26 Tom Tromey <tromey@redhat.com>
2661 * defs.h (generic_load): Update.
2662 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2663 * monitor.c (monitor_load): Make "args" const.
2664 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2665 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2667 (mips_load): Make "file" const.
2668 * remote-sim.c (gdbsim_load): Make "args" const.
2669 * remote.c (remote_load): Make "name" const.
2670 * symfile.c (generic_load): Make "args" const.
2671 * target-delegates.c: Rebuild.
2672 * target.c (target_load): Make "arg" const.
2673 (debug_to_load): Make "args" const.
2674 * target.h (struct target_ops) <to_load>: Make parameter const.
2675 (target_load): Update.
2677 2014-06-26 Tom Tromey <tromey@redhat.com>
2680 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2681 (dwarf2_physname, read_partial_die)
2682 (guess_partial_die_structure_name, fixup_partial_die)
2683 (guess_full_die_structure_name, anonymous_struct_prefix)
2684 (dwarf2_name): Use per-BFD obstack.
2686 2014-06-26 Yao Qi <yao@codesourcery.com>
2688 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2689 dummyframe and this_id into inner block below.
2691 2014-06-26 Yao Qi <yao@codesourcery.com>
2693 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2694 with "signal_pass[0]" in the initialization of signal_pass.
2696 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2698 * record-btrace.c (record_btrace_generating_corefile)
2699 (record_btrace_prepare_to_generate_core)
2700 (record_btrace_done_generating_core): New.
2701 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2702 (record_btrace_store_registers, record_btrace_prepare_to_store):
2703 Forward request when generating a core file.
2704 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2705 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2706 to_done_generating_core.
2708 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2710 * target.h (target_ops) <to_prepare_to_generate_core>
2711 <to_done_generating_core>: New.
2712 (target_prepare_to_generate_core, target_done_generating_core): New.
2713 * target.c (target_prepare_to_generate_core)
2714 (target_done_generating_core): New.
2715 * target-delegates.c: Regenerate.
2716 * gcore.c: (write_gcore_file): Rename to ...
2717 (write_gcore_file_1): ...this.
2718 (write_gcore_file): Call target_prepare_to_generate_core
2719 and target_done_generating_core.
2721 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2723 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2724 * gcore.c (write_gcore_file): Free memory returned from
2725 make_corefile_notes.
2726 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2727 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2729 2014-06-24 Yao Qi <yao@codesourcery.com>
2731 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2732 (arm_linux_init_abi): Set skip_trampoline_code with
2733 gdbarch_skip_trampoline_code instead of
2734 find_solib_trampoline_target.
2736 2014-06-24 Yao Qi <yao@codesourcery.com>
2738 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2739 arm_skip_bx_reg returns non-zero.
2741 2014-06-24 Yao Qi <yao@codesourcery.com>
2743 * arm-tdep.c (arm_skip_bx_reg): New function.
2744 (arm_skip_stub): Call arm_skip_bx_reg.
2746 2014-06-23 Don Breazeal <donb@codesourcery.com>
2748 * MAINTAINERS: Add myself as write-after-approval maintainer.
2750 2014-06-23 Pedro Alves <palves@redhat.com>
2752 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2753 DR_CONTROL before setting DR0..DR3.
2754 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2755 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2756 bits of DR_CONTROL related to the debug register slot being
2757 disabled. If all slots are vacant, clear local slowdown as well,
2758 and assert DR_CONTROL is 0.
2760 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2762 * python/lib/gdb/command/xmethods.py
2763 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2764 current progspace only if the string "progspace" matches LOCUS_RE.
2766 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2768 Fix --with-system-readline with readline-6.3 patch 5.
2769 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2770 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2773 2014-06-20 Tom Tromey <tromey@redhat.com>
2775 * dwarf2read.c (dw2_get_real_path): Use correct type in
2777 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2779 2014-06-20 Gary Benson <gbenson@redhat.com>
2781 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2782 * common/glibc_thread_db.h: Likewise.
2783 * common/i386-cpuid.h: Likewise.
2784 * common/i386-gcc-cpuid.h: Likewise.
2785 * common/linux-btrace.h: Likewise.
2786 * common/linux-osdata.h: Likewise.
2787 * common/linux-procfs.h: Likewise.
2788 * common/linux-ptrace.h: Likewise.
2789 * common/mips-linux-watch.h: Likewise.
2790 * common/linux-btrace.c: Moved to nat.
2791 * common/linux-osdata.c: Likewise.
2792 * common/linux-procfs.c: Likewise.
2793 * common/linux-ptrace.c: Likewise.
2794 * common/mips-linux-watch.c: Likewise.
2795 * nat/gdb_thread_db.h: Moved from common.
2796 * nat/glibc_thread_db.h: Likewise.
2797 * nat/i386-cpuid.h: Likewise.
2798 * nat/i386-gcc-cpuid.h: Likewise.
2799 * nat/linux-btrace.c: Likewise.
2800 * nat/linux-btrace.h: Likewise.
2801 * nat/linux-osdata.c: Likewise.
2802 * nat/linux-osdata.h: Likewise.
2803 * nat/linux-procfs.c: Likewise.
2804 * nat/linux-procfs.h: Likewise.
2805 * nat/linux-ptrace.c: Likewise.
2806 * nat/linux-ptrace.h: Likewise.
2807 * nat/mips-linux-watch.c: Likewise.
2808 * nat/mips-linux-watch.h: Likewise.
2809 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2810 (object file files): Reordered.
2811 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2812 of glibc_thread_db.h.
2814 2014-06-20 Gary Benson <gbenson@redhat.com>
2816 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2817 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2818 (i386_dr_low): Likewise.
2819 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2820 (i386_dr_low_set_addr): Likewise.
2821 (i386_dr_low_get_addr): Likewise.
2822 (i386_dr_low_can_set_control): Likewise.
2823 (i386_dr_low_set_control): Likewise.
2824 (i386_dr_low_get_control): Likewise.
2825 (i386_dr_low_get_status): Likewise.
2826 (i386_get_debug_register_length): Likewise.
2827 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2828 (i386_dr_low): Likewise.
2829 * nat/i386-dregs.c (i386-low.h): Remove include.
2830 (i386-nat.h): Likewise.
2831 (nat/i386-dregs.h): New include.
2832 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2833 (i386_dr_low_set_addr): Likewise.
2834 (i386_dr_low_get_addr): Likewise.
2835 (i386_dr_low_can_set_control): Likewise.
2836 (i386_dr_low_set_control): Likewise.
2837 (i386_dr_low_get_control): Likewise.
2838 (i386_dr_low_get_status): Likewise.
2839 (i386_get_debug_register_length): Likewise.
2840 (debug_hw_points): Likewise.
2842 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2844 * Makefile.in (SFILES): Add d-exp.y.
2845 (YYFILES): Add d-exp.c.
2846 (YYOBJ): Add d-exp.o.
2847 (local-maintainer-clean): Delete d-exp.c.
2848 * d-exp.y: New file.
2849 * d-lang.h (d_parse): New declaration.
2850 (d_error): New declaration.
2851 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2852 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2853 PREC_ORDER operators.
2854 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2856 2014-06-19 Yao Qi <yao@codesourcery.com>
2858 * gdbthread.h (any_running): Remove the declaration.
2859 * thread.c (any_running): Remove.
2861 2014-06-19 Yao Qi <yao@codesourcery.com>
2863 * gdbthread.h (struct thread_info) <state>: Change its type to
2864 'enum thread_state'. Update comments.
2866 2014-06-19 Pedro Alves <palves@redhat.com>
2868 * gdbthread.h (ALL_THREADS): Delete.
2869 (ALL_NON_EXITED_THREADS): New macro.
2870 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2871 instead of ALL_THREADS.
2872 * infrun.c (find_thread_needs_step_over)
2873 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2874 instead of ALL_THREADS.
2875 * record-btrace.c (record_btrace_open)
2876 (record_btrace_stop_recording, record_btrace_close)
2877 (record_btrace_is_replaying, record_btrace_resume)
2878 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2879 * remote.c (append_pending_thread_resumptions): Likewise.
2880 * thread.c (thread_apply_all_command): Likewise.
2882 2014-06-19 Gary Benson <gbenson@redhat.com>
2884 * i386-nat.c (i386_stopped_by_watchpoint):
2885 Use i386_dr_stopped_by_watchpoint.
2886 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2887 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2889 2014-06-19 Gary Benson <gbenson@redhat.com>
2891 * nat/i386-dregs.c: New file.
2892 * Makefile.in (i386-dregs.o): New rule.
2893 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2894 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2895 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2896 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2897 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2898 * config/i386/go32.mh (NATDEPFILES): Likewise.
2899 * config/i386/linux.mh (NATDEPFILES): Likewise.
2900 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2901 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2902 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2903 * i386-nat.h (debug_hw_points): New declaration.
2904 * i386-nat.c (breakpoint.h): Remove include.
2905 (command.h): Likewise.
2906 (target.h): Likewise.
2907 (gdb_assert.h): Likewise.
2908 (debug_hw_points): Made nonstatic.
2909 (debug_printf): Now in i386-dregs.c.
2910 (TARGET_HAS_DR_LEN_8): Likewise.
2911 (DR_CONTROL_SHIFT): Likewise.
2912 (DR_CONTROL_SIZE): Likewise.
2913 (DR_RW_EXECUTE): Likewise.
2914 (DR_RW_WRITE): Likewise.
2915 (DR_RW_READ): Likewise.
2916 (DR_RW_IORW): Likewise.
2917 (DR_LEN_1): Likewise.
2918 (DR_LEN_2): Likewise.
2919 (DR_LEN_4): Likewise.
2920 (DR_LEN_8): Likewise.
2921 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2922 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2923 (DR_ENABLE_SIZE): Likewise.
2924 (DR_LOCAL_SLOWDOWN): Likewise.
2925 (DR_GLOBAL_SLOWDOWN): Likewise.
2926 (DR_CONTROL_RESERVED): Likewise.
2927 (I386_DR_CONTROL_MASK): Likewise.
2928 (I386_DR_VACANT): Likewise.
2929 (I386_DR_LOCAL_ENABLE): Likewise.
2930 (I386_DR_GLOBAL_ENABLE): Likewise.
2931 (I386_DR_DISABLE): Likewise.
2932 (I386_DR_SET_RW_LEN): Likewise.
2933 (I386_DR_GET_RW_LEN): Likewise.
2934 (I386_DR_WATCH_HIT): Likewise.
2935 (i386_wp_op_t): Likewise.
2936 (i386_show_dr): Likewise.
2937 (i386_length_and_rw_bits): Likewise.
2938 (i386_insert_aligned_watchpoint): Likewise.
2939 (i386_remove_aligned_watchpoint): Likewise.
2940 (i386_handle_nonaligned_watchpoint): Likewise.
2941 (i386_update_inferior_debug_regs): Likewise.
2942 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2943 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2944 (i386_region_ok_for_watchpoint):
2945 Use i386_dr_region_ok_for_watchpoint.
2946 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2948 2014-06-19 Gary Benson <gbenson@redhat.com>
2950 * i386-nat.c (i386_insert_hw_breakpoint): Use
2951 i386_insert_watchpoint.
2952 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2954 2014-06-19 Gary Benson <gbenson@redhat.com>
2956 * i386-nat.c (i386_dr_show): Renamed to
2957 i386_show_dr and made static. All uses updated.
2958 (i386_dr_length_and_rw_bits): Renamed to
2959 i386_length_and_rw_bits and made static.
2961 (i386_dr_insert_aligned_watchpoint): Renamed to
2962 i386_insert_aligned_watchpoint and made static.
2964 (i386_dr_remove_aligned_watchpoint): Renamed to
2965 i386_remove_aligned_watchpoint and made static.
2967 (i386_dr_update_inferior_debug_regs): Renamed to
2968 i386_update_inferior_debug_regs and made static.
2970 * nat/i386-dregs.h (i386_dr_show): Removed.
2971 (i386_dr_length_and_rw_bits): Likewise.
2972 (i386_dr_insert_aligned_watchpoint): Likewise.
2973 (i386_dr_remove_aligned_watchpoint): Likewise.
2974 (i386_dr_update_inferior_debug_regs): Likewise.
2976 2014-06-19 Gary Benson <gbenson@redhat.com>
2978 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2979 * configure: Regenerate.
2980 * config.in: Likewise.
2981 * main.c (signal.h): New include.
2982 (setup_alternate_signal_stack): New function.
2983 (captured_main): Call the above.
2984 * cp-support.c (signal.h): New include.
2985 (catch_demangler_crashes): New flag.
2986 (SIGJMP_BUF): New define.
2987 (SIGSETJMP): Likewise.
2988 (SIGLONGJMP): Likewise.
2989 (gdb_demangle_jmp_buf): New static global.
2990 (gdb_demangle_attempt_core_dump): Likewise.
2991 (gdb_demangle_signal_handler): New function.
2992 (gdb_demangle): If catch_demangler_crashes is set, install the
2993 above signal handler before calling bfd_demangle, and restore
2994 the original signal handler afterwards. Display the offending
2995 symbol and call demangler_warning the first time a segmentation
2997 (_initialize_cp_support): New maint set/show command.
2999 2014-06-19 Gary Benson <gbenson@redhat.com>
3001 * utils.h (resource_limit_kind): New enum.
3002 (can_dump_core): New declaration.
3003 (warn_cant_dump_core): Likewise.
3004 (dump_core): Likewise.
3005 * utils.c (dump_core): Made nonstatic. Added new
3006 parameter "limit_kind".
3007 (can_dump_core): Made nonstatic. Moved printing code to...
3008 (warn_cant_dump_core): New function.
3009 (can_dump_core_warn): Likewise.
3010 (internal_vproblem): Replace calls to can_dump_core with
3011 calls to can_dump_core_warn. Supply new argument to each.
3013 2014-06-19 Gary Benson <gbenson@redhat.com>
3015 * utils.h (demangler_vwarning): New declaration.
3016 (demangler_warning): Likewise.
3017 * utils.c (struct internal_problem)
3018 <user_settable_should_quit>: New field.
3019 <user_settable_should_dump_core>: Likewise
3020 (internal_error_problem): Add values for above new fields.
3021 (internal_warning_problem): Likewise.
3022 (demangler_warning_problem): New static global.
3023 (demangler_vwarning): New function.
3024 (demangler_warning): Likewise.
3025 (add_internal_problem_command): Selectively add commands.
3026 (_initialize_utils): New internal problem command.
3027 * maint.c (maintenance_demangler_warning): New function.
3028 (_initialize_maint_cmds): New command.
3030 2014-06-18 Tom Tromey <tromey@redhat.com>
3032 * f-valprint.c (info_common_command_for_block): Update.
3033 * symtab.h (struct general_symbol_info) <common_block>: Now
3036 2014-06-18 Tom Tromey <tromey@redhat.com>
3038 * symtab.h (struct symtab) <blockvector>: Now const.
3039 * ada-lang.c (ada_add_global_exceptions): Update.
3040 * buildsym.c (augment_type_symtab): Update.
3041 * dwarf2read.c (dw2_lookup_symbol): Update.
3042 * jit.c (finalize_symtab): Update.
3043 * jv-lang.c (add_class_symtab_symbol): Update.
3044 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3046 * objfiles.c (objfile_relocate1): Update.
3047 * psymtab.c (lookup_symbol_aux_psymtabs)
3048 (maintenance_check_psymtabs): Update.
3049 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3051 * spu-tdep.c (spu_catch_start): Update.
3052 * symmisc.c (dump_symtab_1): Update.
3053 * symtab.c (lookup_global_symbol_from_objfile)
3054 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3055 (basic_lookup_transparent_type_quick)
3056 (basic_lookup_transparent_type, find_pc_sect_symtab)
3057 (find_pc_sect_line, search_symbols): Update.
3058 * block.c (find_block_in_blockvector): Make "bl" const.
3059 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3061 (blockvector_contains_pc): Make "bv" const.
3062 (block_for_pc_sect): Update.
3063 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3064 (blockvector_contains_pc): Update.
3065 * breakpoint.c (resolve_sal_pc): Update.
3066 * inline-frame.c (block_starting_point_at): Update.
3068 2014-06-18 Tom Tromey <tromey@redhat.com>
3070 * completer.c (complete_line): Make "line_buffer" const.
3071 * completer.h (complete_line): Update.
3073 2014-06-18 Tom Tromey <tromey@redhat.com>
3075 * symtab.c (add_macro_name): Remove unneeded cast.
3077 2014-06-18 Tom Tromey <tromey@redhat.com>
3079 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3080 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3082 2014-06-18 Tom Tromey <tromey@redhat.com>
3084 * probe.c (info_probes_for_ops): Make "arg" const.
3085 * probe.h (info_probes_for_ops): Update.
3087 2014-06-18 Tom Tromey <tromey@redhat.com>
3089 * varobj.c (varobj_create): Update.
3090 * valops.c (value_of_this): Update.
3091 * tracepoint.c (add_local_symbols, scope_info): Update.
3092 * symtab.h (struct general_symbol_info) <block>: Now const.
3093 * symtab.c (skip_prologue_sal)
3094 (default_make_symbol_completion_list_break_on)
3095 (skip_prologue_using_sal): Update.
3096 * stack.h (iterate_over_block_locals)
3097 (iterate_over_block_local_vars): Update.
3098 * stack.c (print_frame_args): Update.
3099 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3101 (get_selected_block): Make return type const.
3102 * python/py-frame.c (frapy_block): Update.
3103 * python/py-block.c (gdbpy_block_for_pc): Update.
3104 * p-exp.y (%union) <bval>: Now const.
3105 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3106 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3107 * m2-exp.y (%union) <bval>: Now const.
3108 * linespec.c (get_current_search_block): Make return type const.
3109 (create_sals_line_offset, find_label_symbols): Update.
3110 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3112 (block_starting_point_at): Make "block" const.
3113 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3114 (check_exception_resume): Update.
3115 * guile/scm-frame.c (gdbscm_frame_block): Update.
3116 * guile/scm-block.c (gdbscm_lookup_block): Update.
3117 * frame.h (get_frame_block): Update.
3118 (get_selected_block): Make return type const.
3119 * frame.c (frame_id_inner): Update.
3120 * f-valprint.c (info_common_command_for_block)
3121 (info_common_command): Update.
3122 * dwarf2loc.c (dwarf2_find_location_expression)
3123 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3124 (locexpr_describe_location_piece): Update.
3125 * c-exp.y (%union) <bval>: Now const.
3126 * breakpoint.c (resolve_sal_pc): Update.
3127 * blockframe.c (get_frame_block):Make return type const.
3128 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3129 (block_innermost_frame): Update.
3130 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3131 (block_for_pc, block_for_pc_sect): Update.
3132 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3134 (block_for_pc_sect, block_for_pc): Make return type const.
3135 * ax-gdb.c (gen_expr): Update.
3136 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3137 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3138 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3139 (ada_read_var_value): Update.
3140 * ada-exp.y (struct name_info) <block>: Now const.
3142 (block_lookup): Constify.
3144 2014-06-18 Gary Benson <gbenson@redhat.com>
3146 * nat/i386-dregs.h: New file.
3147 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3148 * i386-nat.h (i386-dregs.h): New include.
3149 (DR_FIRSTADDR): Now in i386-dregs.h.
3150 (DR_LASTADDR): Likewise.
3151 (DR_NADDR): Likewise.
3152 (DR_STATUS): Likewise.
3153 (DR_CONTROL): Likewise.
3154 (i386_debug_reg_state): Likewise.
3155 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3157 2014-06-18 Don Breazeal <donb@codesourcery.com>
3159 * breakpoint.c (set_longjmp_breakpoint): Call
3160 momentary_breakpoint_from_master with additional argument.
3161 (set_longjmp_breakpoint_for_call_dummy): Call
3162 momentary_breakpoint_from_master with additional argument.
3163 (set_std_terminate_breakpoint): Call
3164 momentary_breakpoint_from_master with additional argument.
3165 (momentary_breakpoint_from_master): Add argument to function
3166 definition and use it to initialize structure member flag.
3167 (clone_momentary_breakpoint): Call
3168 momentary_breakpoint_from_master with additional argument.
3169 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3170 member flags set in momentary_breakpoint_from_master.
3172 2014-06-18 Gary Benson <gbenson@redhat.com>
3174 * i386-nat.c (i386_show_dr): Renamed to
3175 i386_dr_show and made nonstatic. All uses updated.
3176 (i386_length_and_rw_bits): Renamed to
3177 i386_dr_length_and_rw_bits and made nonstatic.
3179 (i386_insert_aligned_watchpoint): Renamed to
3180 i386_dr_insert_aligned_watchpoint and made nonstatic.
3182 (i386_remove_aligned_watchpoint): Renamed to
3183 i386_dr_remove_aligned_watchpoint and made nonstatic.
3185 (i386_update_inferior_debug_regs): Renamed to
3186 i386_dr_update_inferior_debug_regs and made nonstatic.
3189 2014-06-18 Gary Benson <gbenson@redhat.com>
3191 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3192 (i386_dr_low_can_set_control): Likewise.
3193 (i386_dr_low_set_addr): Likewise.
3194 (i386_dr_low_set_control): Likewise.
3195 (i386_dr_low_get_addr): Likewise.
3196 (i386_dr_low_get_status): Likewise.
3197 (i386_dr_low_get_control): Likewise.
3198 (i386_insert_aligned_watchpoint): Use new macros.
3199 (i386_update_inferior_debug_regs): Likewise.
3200 (i386_stopped_data_address): Likewise.
3202 2014-06-18 Gary Benson <gbenson@redhat.com>
3204 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3205 New parameter. All uses updated.
3207 2014-06-18 Gary Benson <gbenson@redhat.com>
3209 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3212 2014-06-18 Gary Benson <gbenson@redhat.com>
3214 * i386-nat.c (debug_printf): New macro.
3215 (i386_get_debug_register_length): Likewise.
3216 (TARGET_HAS_DR_LEN_8): Use above macro.
3217 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3218 and printf_unfiltered. Use phex to format values.
3220 2014-06-18 Gary Benson <gbenson@redhat.com>
3222 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3225 2014-06-18 Gary Benson <gbenson@redhat.com>
3227 * i386-nat.c: Comment changes.
3229 2014-06-18 Gary Benson <gbenson@redhat.com>
3231 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3233 2014-06-18 Gary Benson <gbenson@redhat.com>
3235 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3236 (i386_insert_aligned_watchpoint): Likewise.
3237 (i386_remove_aligned_watchpoint): Likewise.
3238 (i386_handle_nonaligned_watchpoint): Likewise.
3240 2014-06-18 Gary Benson <gbenson@redhat.com>
3242 * i386-nat.c: Whitespace changes.
3244 2014-06-17 Samuel Bronson <naesten@gmail.com>
3246 * MAINTAINERS: Update Roland McGrath's email address.
3247 Thanks to Sergio Durigan Junior for pointing out that he left
3248 Red Hat a while ago, and giving me a current address.
3250 2014-06-17 Tom Tromey <tromey@redhat.com>
3252 * utils.h (savestring): Remove declaration.
3254 2014-06-17 Tom Tromey <tromey@redhat.com>
3256 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3258 2014-06-16 Keith Seitz <keiths@redhat.com>
3261 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3262 to update the varobj if inferior_ptid is null_ptid.
3264 2014-06-16 Tom Tromey <tromey@redhat.com>
3266 * target.h (struct target_ops) <to_info_proc>: Make parameter
3268 (target_info_proc): Update.
3269 * target.c (target_info_proc): Make "args" const.
3270 * procfs.c (procfs_info_proc): Update.
3271 * linux-tdep.c (linux_info_proc): Update.
3272 (linux_core_info_proc_mappings): Make "args" const.
3273 (linux_core_info_proc): Update.
3274 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3275 * gdbarch.c: Rebuild.
3276 * gdbarch.h: Rebuild.
3277 * corelow.c (core_info_proc): Update.
3279 2014-06-16 Tom Tromey <tromey@redhat.com>
3281 * target.h (struct target_ops) <to_disconnect>: Make parameter
3283 (target_disconnect): Update.
3284 * target.c (target_disconnect): Make "args" const.
3285 * target-delegates.c: Rebuild.
3286 * remote.c (remote_disconnect): Update.
3287 * record.h (record_disconnect): Update.
3288 * record.c (record_disconnect): Update.
3289 * inf-child.c (inf_child_disconnect): Update.
3291 2014-06-16 Tom Tromey <tromey@redhat.com>
3293 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3294 * target.c (debug_to_rcmd, default_rcmd): Update.
3295 * target-delegates.c: Rebuild.
3296 * remote.c (remote_rcmd): Update.
3297 * monitor.c (monitor_rcmd): Update.
3299 2014-06-16 Pedro Alves <palves@redhat.com>
3301 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3302 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3303 have OBJF_SHARED set.
3304 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3305 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3306 instead of OBJF_USERLOADED.
3307 * objfiles.h (OBJF_SHARED): Update comment.
3308 (userloaded_objfile_contains_address_p): Rename to ...
3309 (shared_objfile_contains_address_p): ... this, and update
3311 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3313 (remove_symbol_file_command): Skip objfiles that don't have
3316 2014-06-16 Tom Tromey <tromey@redhat.com>
3318 * minsyms.h (prim_record_minimal_symbol)
3319 (prim_record_minimal_symbol_and_info): Update comments.
3321 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3323 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3324 or --without-guile, according to how GDB was built.
3326 2014-06-13 Tom Tromey <tromey@redhat.com>
3328 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3330 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3332 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3334 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3335 help_list.Pass all_commands, not -1, to help_list.
3336 * cli/cli-dump.c (dump_command, append_command)
3337 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3338 (binary_dump_command, binary_append_command): Pass all_commands,
3339 not -1, to help_list.
3340 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3342 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3344 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3346 * top.c (set_history): Pass all_commands, not -1, to help_list.
3347 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3348 all_commands, not -1, to help_list.
3349 * symfile.c (overlay_command): Pass all_commands, not -1, to
3351 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3353 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3355 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3357 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3358 not -1, to help_list.
3359 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3360 not -1, to help_list.
3361 * maint.c (maintenance_command, maintenance_info_command)
3362 (maintenance_print_command, maintenance_set_cmd): Pass
3363 all_commands, not -1, to help_list.
3364 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3366 * language.c (set_check): Pass all_commands, not -1, to help_list.
3367 * infcmd.c (unset_command): Pass all_commands, not -1, to
3369 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3371 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3373 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3375 * breakpoint.c (save_command): Pass all_commands, not -1, to
3377 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3378 all_commands, not -1, to help_list.
3380 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3382 * regcache.c (struct register_to_invalidate): New structure.
3383 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3385 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3387 2014-06-12 Yao Qi <yao@codesourcery.com>
3389 * varobj.c (varobj_get_num_children): Call
3390 varobj_is_dynamic_p.
3391 (varobj_list_children): Likewise.
3392 (varobj_update): Likewise. Update comments.
3394 2014-06-12 Yao Qi <yao@codesourcery.com>
3396 * varobj.c (varobj_pretty_printed_p): Rename to ...
3397 (varobj_is_dynamic_p): ... this. New function.
3398 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3399 (varobj_is_dynamic_p): Declare.
3400 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3401 (mi_print_value_p, varobj_update_one): Likewise.
3403 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3404 Yao Qi <yao@codesourcery.com>
3406 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3407 (varobj_get_iterator): Wrap up code for pretty-printer by
3408 "#if HAVE_PYTHON" and "#endif".
3409 (update_dynamic_varobj_children): Likewise.
3411 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3412 Yao Qi <yao@codesourcery.com>
3414 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3415 gdb_python_initialized is false. Move some code from varobj.c.
3416 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3417 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3418 (struct varobj_item): Moved to varobj-iter.h".
3419 (varobj_clear_saved_item): New function.
3420 (update_dynamic_varobj_children): Move python-related code to
3422 (free_variable): Call varobj_clear_saved_item and
3425 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3426 Yao Qi <yao@codesourcery.com>
3428 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3429 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3430 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3431 (py-varobj.o): New rule.
3432 * python/py-varobj.c: New file.
3433 * python/python-internal.h (py_varobj_get_iterator): Declare.
3434 * varobj-iter.h: New file.
3435 * varobj.c: Include "varobj-iter.h"
3436 (struct varobj) <child_iter>: Change its type from "PyObject *"
3437 to "struct varobj_iter *".
3438 <saved_item>: Likewise.
3439 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3440 [HAVE_PYTHON] (varobj_get_iterator): New function.
3441 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3442 python-specific code to python/py-varobj.c.
3443 (install_visualizer): Call varobj_iter_delete instead of
3445 * varobj.h (varobj_ensure_python_env): Declare.
3447 2014-06-12 Yao Qi <yao@codesourcery.com>
3449 * varobj.c (struct varobj_item): New structure.
3450 (create_child_with_value): Update declaration.
3451 (varobj_add_child): Replace arguments 'name' and 'value' with
3452 'item'. All callers updated.
3453 (install_dynamic_child): Likewise.
3454 (update_dynamic_varobj_children): Likewise.
3455 (varobj_add_child): Likewise.
3456 (create_child_with_value): Likewise.
3458 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3460 * NEWS: Create a new section for the next release branch.
3461 Rename the section of the current branch, now that it has
3464 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3466 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3467 * version.in: Bump version to 7.8.50.DATE-cvs.
3469 2014-06-11 Pedro Alves <palves@redhat.com>
3472 * ser-mingw.c (net_windows_socket_check_pending): New function.
3473 (net_windows_select_thread): Ignore spurious wakeups. Use
3474 net_windows_socket_check_pending.
3475 (net_windows_wait_handle): Check for pending events with
3476 ioctlsocket, through net_windows_socket_check_pending, instead of
3477 checking the socket's event.
3479 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3481 * python/python-internal.h (gdb_PyObject_GetAttrString)
3482 (gdb_PyObject_HasAttrString): New inline function definitions.
3483 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3484 char * of the second argument to PyObject_GetAttrString.
3486 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3488 * serial.c (serial_write): Fix index of character to be printed
3489 in call to serial_logchar when serial debug traces are enabled.
3491 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3493 * gdbtypes (resolve_dynamic_range): Add function description.
3495 2014-06-09 Pedro Alves <palves@redhat.com>
3497 * linux-nat.c (linux_child_follow_fork): Initialize status with
3498 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3499 inner block. Only pass the signal to PTRACE_DETACH if in pass
3502 2014-06-09 Gary Benson <gbenson@redhat.com>
3504 * common/signals.c (gdb_signal_from_host): Reorder to separate
3505 the always-available ANSI-standard signals from the signals that
3507 (do_gdb_signal_to_host): Likewise.
3508 * proc-events.c (signal_table): Likewise.
3510 2014-06-08 Hui Zhu <hui@codesourcery.com>
3512 * common/linux-ptrace.c (linux_disable_event_reporting): New
3514 * common/linux-ptrace.h (linux_disable_event_reporting): New
3516 * linux-nat.c (linux_child_follow_fork): Do a single step before
3519 2014-06-07 Keith Seitz <keiths@redhat.com>
3523 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3524 from symbol_matches_domain in symtab.c. All local callers
3525 of symbol_matches_domain updated.
3526 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3527 search STRUCT_DOMAIN.
3528 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3529 independently. standard_lookup will do that automatically.
3530 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3531 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3532 (cp_lookup_symbol_in_namespace): Likewise.
3533 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3534 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3535 may return a STRUCT_DOMAIN match.
3536 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3537 * cp-support.c: Include language.h.
3538 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3540 * psymtab.c (match_partial_symbol): Compare the requested
3541 domain with the symbol's domain directly.
3542 (lookup_partial_symbol): Likewise.
3543 * symtab.c (lookup_symbol_in_language): Explain when/why
3544 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3545 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3546 appropriate languages.
3547 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3548 and moved to ada-lang.c
3549 (lookup_block_symbol): Explain that this function only returns
3550 symbol matching the requested DOMAIN.
3551 Compare the requested domain with the symbol's domain directly.
3552 (iterate_over_symbols): Compare the requested domain with the
3553 symbol's domain directly.
3554 * symtab.h (symbol_matches_domain): Remove.
3556 2014-06-06 Doug Evans <xdje42@gmail.com>
3558 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3559 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3560 (gdbscm_guile_version_is_at_least): Declare.
3561 (gdbscm_scm_string_to_int): Declare.
3562 * guile/guile.c (gdbscm_guile_major_version): New global.
3563 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3564 (guile_datadir): New static global.
3565 (gdbscm_guile_data_directory): New function.
3566 (initialize_scheme_side): Update.
3567 (misc_guile_functions): Add guile-data-directory.
3568 (initialize_gdb_module): Fetch guile version number.
3569 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3570 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3571 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3572 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3574 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3575 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3576 * guile/scm-value.c (gdbscm_value_to_string): Only call
3577 scm_port_conversion_strategy if Guile version >= 2.0.6.
3579 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3581 * main.c (print_gdb_help): Add -q and --silent.
3583 2014-06-06 Gary Benson <gbenson@redhat.com>
3585 * common/signals.c: Remove preprocessor conditionals for
3586 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3587 SIGSEGV and SIGTERM.
3588 * proc-events.c: Likewise.
3590 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3592 * symfile.c (symfile_free_objfile): Remove restriction to
3594 * symfile-mem.c (symbol_file_add_from_memory): Call
3595 add_target_sections_of_objfile.
3597 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3599 * guile/scm-value.c (gdbscm_history_append_x): Use
3600 'vlscm_get_value_smob_arg_unsafe' instead of
3601 'vlscm_scm_to_value'.
3603 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3606 * utils.c (printchar): Don't escape at all if quoter is NUL.
3607 Update function documentation to clarify effect of parameter
3609 * remote.c (escape_buffer): Pass '\\' as the quoter to
3610 fputstrn_unfiltered.
3611 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3612 generate the output.
3613 (mi_solib_unloaded): Same.
3615 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3617 * development.sh: Delete.
3618 * Makefile.in (config.status): Adjust dependency on development.sh.
3619 * configure.ac: Adjust development.sh source call.
3620 * configure: Regenerate.
3622 2014-06-04 Doug Evans <xdje42@gmail.com>
3624 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3625 is_scheme_bkpt, spec.
3626 (bpscm_make_breakpoint_smob): Initialize new members.
3627 (gdbscm_create_breakpoint_x): Split into two ...
3628 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3629 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3630 (scheme_function breakpoint_functions): Update.
3631 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3632 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3633 register-breakpoint!.
3635 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3638 * mem-break.c (z_type_supported): Return zero if
3639 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3641 2014-06-04 Tom Tromey <tromey@redhat.com>
3643 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3644 value_from_contents_and_address_unresolved.
3645 (ada_template_to_fixed_record_type_1): Likewise.
3646 (ada_which_variant_applies): Likewise.
3647 * value.h (value_from_contents_and_address_unresolved): Declare.
3648 * value.c (value_from_contents_and_address_unresolved): New
3650 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3651 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3652 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3654 2014-06-04 Tom Tromey <tromey@redhat.com>
3656 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3658 2014-06-04 Tom Tromey <tromey@redhat.com>
3660 * procfs.c (procfs_attach): Make "args" const.
3661 * windows-nat.c (windows_attach): Make "args" const.
3662 * nto-procfs.c (procfs_attach): Make "args" const.
3663 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3664 * go32-nat.c (go32_attach): Make "args" const.
3665 * gnu-nat.c (gnu_attach): Make "args" const.
3666 * darwin-nat.c (darwin_attach): Make "args" const.
3667 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3668 * linux-nat.c (linux_nat_attach): Make "args" const.
3669 * remote.c (extended_remote_attach_1, extended_remote_attach):
3671 * target.h (struct target_ops) <to_attach>: Make "args" const.
3672 (find_default_attach): Likewise.
3673 * utils.c (parse_pid_to_attach): Make "args" const.
3674 * utils.h (parse_pid_to_attach): Update.
3676 2014-06-04 Tom Tromey <tromey@redhat.com>
3678 * target-delegates.c: Rebuild.
3679 * target.c (default_thread_address_space): New function.
3680 (target_thread_address_space): Simplify.
3681 * target.h (struct target_ops) <to_thread_address_space>: Add
3682 TARGET_DEFAULT_FUNC.
3684 2014-06-04 Doug Evans <xdje42@gmail.com>
3686 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3688 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3690 * record-btrace.c: Include event-loop.h and inf-loop.h.
3691 (record_btrace_resume_exec_dir)
3692 (record_btrace_async_inferior_event_handler)
3693 (record_btrace_handle_async_inferior_event): New.
3694 (record_btrace_open): Create async event handler.
3695 (record_btrace_close): Delete async event handler.
3696 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3697 Mark async event handler.
3698 (record_btrace_execution_direction): New.
3699 (init_record_btrace_ops): Initialize to_execution_direction.
3701 2014-06-03 Doug Evans <xdje42@gmail.com>
3703 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3704 (gdbscm_make_parameter): Ditto.
3706 2014-06-03 Doug Evans <dje@google.com>
3708 * exec.c (exec_close_1): Call clear_section_table instead of
3709 resize_section_table.
3710 (clear_section_table): New function.
3711 (resize_section_table): Make static. Rename arg num_added to
3713 * exec.h (clear_section_table): Declare.
3714 (resize_section_table): Delete.
3715 * progspace.c (release_program_space): Call clear_section_table
3716 instead of resize_section_table.
3718 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3720 * NEWS (Python Scripting): Add entry about the new xmethods
3723 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3725 * python/py-xmethods.c: New file.
3726 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3727 (objfpy_dealloc): XDECREF on the new xmethods field.
3728 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3730 (objfpy_get_xmethods): New function.
3731 (objfile_getset): New entry 'xmethods'.
3732 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3733 (pspy_dealloc): XDECREF on the new xmethods field.
3734 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3736 (pspy_get_xmethods): New function.
3737 (pspace_getset): New entry 'xmethods'.
3738 * python/python-internal.h: Add declarations for new functions.
3739 * python/python.c (_initialize_python): Invoke
3740 gdbpy_initialize_xmethods.
3741 * python/lib/gdb/__init__.py (xmethods): New
3743 * python/lib/gdb/xmethod.py: New file.
3744 * python/lib/gdb/command/xmethods.py: New file.
3746 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3748 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3749 best match method returned by find_overload_match is an xmethod.
3750 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3751 the best matching operator returned by find_overload_match is an
3753 * valops.c: #include "extension.h".
3754 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3755 Return void. The list of matching source methods is returned in
3756 "fn_list" and a vector of matching debug method workers is
3757 returned in "xm_worker_vec". Update all callers.
3758 (value_find_oload_method_list): Likewise.
3759 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3760 non-NULL, then the index of the best matching method in this
3761 vector is returned. Update all callers.
3762 (find_overload_match): Include xmethods while performing overload
3765 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3767 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3768 * extension-priv.h (struct extension_language_ops): Add the
3770 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3771 get_matching_xmethod_workers, get_xmethod_argtypes,
3772 invoke_xmethod, free_xmethod_worker,
3773 free_xmethod_worker_vec): New functions.
3774 * extension.h: #include "common/vec.h".
3775 New function declarations.
3776 (struct xmethod_worker): New struct.
3777 (VEC (xmethod_worker_ptr)): New vector type.
3778 (xmethod_worker_ptr): New typedef.
3779 (xmethod_worker_vec): Likewise.
3780 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3782 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3783 (struct builtin_type): New field "xmethod".
3784 * valarith.c (value_ptradd): Assert that the value argument is not
3786 * valops.c (value_must_coerce_to_target): Return 0 for
3787 lval_xcallable values.
3788 * value.c (struct value): New field XM_WORKER in the field
3790 (value_address, value_raw_address): Return 0 for lval_xcallable
3792 (set_value_address): Assert that the value is not an
3794 (value_free): Free the associated xmethod worker when freeing
3795 lval_xcallable values.
3796 (set_value_component_location): Assert that the WHOLE value is not
3798 (value_of_xmethod, call_xmethod): New functions.
3799 * value.h: Declare "struct xmethod_worker".
3800 Declare new functions value_of_xmethod, call_xmethod.
3802 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3803 Pedro Alves <palves@redhat.com>
3805 PR breakpoints/17000
3806 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3807 New function, extracted from software_breakpoint_inserted_here_p.
3808 (software_breakpoint_inserted_here_p): Replace factored out code
3809 by call to find_non_raw_software_breakpoint_inserted_here.
3810 (bp_target_info_copy_insertion_state): New function.
3811 (bkpt_insert_location): Handle the case of a single-step
3812 breakpoint already inserted at the same address.
3813 (bkpt_remove_location): Handle the case of a single-step
3814 breakpoint still inserted at the same address.
3815 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3816 breakpoint already inserted at the same address.
3817 (deprecated_remove_raw_breakpoint): Handle the case of a
3818 non-raw breakpoint still inserted at the same address.
3819 (find_single_step_breakpoint): New function, extracted from
3820 single_step_breakpoint_inserted_here_p.
3821 (find_single_step_breakpoint): New function,
3822 factored out from single_step_breakpoint_inserted_here_p.
3823 (single_step_breakpoint_inserted_here_p): Reimplement.
3825 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3827 Pushed by Joel Brobecker <brobecker@adacore.com>
3828 * source.c (show_substitute_path_command): Fix display of matching
3831 2014-06-03 Gary Benson <gbenson@redhat.com>
3833 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3835 2014-06-02 Doug Evans <xdje42@gmail.com>
3837 Add parameter support for Guile.
3838 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3839 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3840 (scm-param.o): New rule.
3841 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3842 (gdbscm_misc_error): Declare.
3843 (gdbscm_canonicalize_command_name): Declare.
3844 (gdbscm_scm_to_host_string): Declare.
3845 (gdbscm_scm_from_host_string): Declare.
3846 (gdbscm_initialize_parameters): Declare.
3847 * guile/guile.c (initialize_gdb_module): Call
3848 gdbscm_initialize_parameters.
3849 * guile/lib/gdb.scm: Export parameter symbols.
3850 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3851 cmdscm_canonicalize_name and made public. All callers updated.
3852 * guile/scm-exception.c (gdbscm_misc_error): New function.
3853 * guile/scm-param.c: New file.
3854 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3855 (gdbscm_scm_to_host_string): New function.
3856 (gdbscm_scm_from_host_string): New function.
3857 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3859 2014-06-02 Doug Evans <xdje42@gmail.com>
3861 Add command support for Guile.
3862 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3863 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3864 (scm-cmd.o): New rule.
3865 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3866 (gdbscm_user_error_p): Declare.
3867 (gdbscm_parse_command_name): Declare.
3868 (gdbscm_valid_command_class_p): Declare.
3869 (gdbscm_initialize_commands): Declare.
3870 * guile/guile.c (initialize_gdb_module): Call
3871 gdbscm_initialize_commands.
3872 * guile/lib/gdb.scm: Export command symbols.
3873 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3874 (throw-user-error): New function.
3875 * guile/scm-cmd.c: New file.
3876 * guile/scm-exception.c (user_error_symbol): New static global.
3877 (gdbscm_user_error_p): New function.
3878 (gdbscm_initialize_exceptions): Set user_error_symbol.
3879 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3881 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3883 * top.c (command_loop): Handle comments here...
3884 (command_line_input): ... not here.
3886 2014-06-02 Doug Evans <xdje42@gmail.com>
3888 Add progspace support for Guile.
3889 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3890 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3891 (scm-progspace.o): New rule.
3892 * guile/guile-internal.h (pspace_smob): New typedef.
3893 (psscm_pspace_smob_pretty_printers): Declare.
3894 (psscm_pspace_smob_from_pspace): Declare.
3895 (psscm_scm_from_pspace): Declare.
3896 * guile/guile.c (initialize_gdb_module): Call
3897 gdbscm_initialize_pspaces.
3898 * guile/lib/gdb.scm: Export progspace symbols.
3899 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3901 (append-pretty-printer!): Ditto.
3902 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3904 * guile/scm-progspace.c: New file.
3906 2014-06-03 Alan Modra <amodra@gmail.com>
3908 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3909 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3911 2014-06-02 Doug Evans <dje@google.com>
3913 Add support for skeletonless type units.
3914 * dwarf2read.c (struct dwarf2_per_objfile): New member
3915 n_allocated_type_units.
3916 (struct dwarf2_per_objfile) <tu_stats>: New member
3917 nr_all_type_units_reallocs.
3918 (create_signatured_type_table_from_index): Initialize
3919 n_allocated_type_units
3920 (create_all_type_units): Ditto.
3921 (add_type_unit): Move up in file. New arg slot.
3922 All callers updated. Increase space for all_type_units more
3924 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3925 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3926 (lookup_dwp_signatured_type): Ditto.
3927 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3928 All callers updated.
3929 (build_type_psymtabs_1): Leave type_unit_groups as
3930 NULL if no TUs present.
3931 (print_tu_stats): New function.
3932 (process_skeletonless_type_unit): New function.
3933 (process_dwo_file_for_skeletonless_type_units): New
3935 (process_skeletonless_type_units): New function.
3936 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3937 Call print tu_stats if debugging enabled.
3939 2014-06-02 Pedro Alves <palves@redhat.com>
3941 * breakpoint.c (build_target_command_list): Don't build a command
3942 list if we have any duplicate location that isn't a dprintf.
3944 2014-06-02 Pedro Alves <palves@redhat.com>
3946 * breakpoint.c (dprintf_breakpoint_hit): New function.
3947 (initialize_breakpoint_ops): Install it as dprintf's
3948 breakpoint_hit method.
3950 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3952 * source.c (substitute_path_rule_matches): Simplify using
3953 filename_ncmp instead of FILENAME_CMP.
3955 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3957 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3959 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3961 * configure.ac: When Guile is available, check for the
3962 availability of 'scm_new_smob'.
3963 * configure, config.h.in: Regenerate.
3964 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3967 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3969 * frame.c (struct frame_info): Add stop_string field.
3970 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3971 (get_prev_frame_always): Old content moved into
3972 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3973 TRY_CATCH, handle MEMORY_ERROR exceptions.
3974 (frame_stop_reason_string): New function definition.
3975 * frame.h (unwind_stop_reason_to_string): Extend comment to
3976 mention frame_stop_reason_string.
3977 (frame_stop_reason_string): New function declaration.
3978 * stack.c (frame_info): Switch to frame_stop_reason_string.
3979 (backtrace_command_1): Switch to frame_stop_reason_string.
3980 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3981 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3982 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3984 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3986 * frame.c (frame_stop_reason_string): Rename to ...
3987 (unwind_stop_reason_to_string): this.
3988 * frame.h (frame_stop_reason_string): Rename to ...
3989 (unwind_stop_reason_to_string): this.
3990 * stack.c (frame_info): Update call to frame_stop_reason_string.
3991 (backtrace_command_1): Likewise.
3992 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3993 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3995 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3997 * frame.c (remove_prev_frame): New function.
3998 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4001 2014-05-29 Pedro Alves <palves@redhat.com>
4003 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4004 and make it const. When a single-step decays to a continue,
4005 clear 'step', not 'hw_step'. Pass whether the caller wanted
4006 to step to user_visible_resume_ptid, not what we ask the
4009 2014-05-29 Pedro Alves <palves@redhat.com>
4011 * infrun.c (process_event_stop_test, handle_step_into_function)
4012 (handle_step_into_function_backward): Adjust.
4013 Don't set the even thread's stop_step and call stop_waiting before
4014 calling end_stepping_range. Instead do that ...
4015 (end_stepping_range): ... here. Take an ecs pointer parameter.
4017 2014-05-29 Pedro Alves <palves@redhat.com>
4019 * infrun.c (stop_stepping): Rename to ...
4020 (stop_waiting): ... this.
4021 (proceed): Update comment.
4022 (process_event_stop_test, handle_inferior_event)
4023 (handle_signal_stop, handle_step_into_function)
4024 (handle_step_into_function_backward): Update.
4026 2014-05-29 Pedro Alves <palves@redhat.com>
4028 * infcall.c (run_inferior_call): Don't check whether the current
4029 thread is running after the proceed call.
4031 2014-05-29 Pedro Alves <palves@redhat.com>
4032 Tom Tromey <tromey@redhat.com>
4034 * NEWS: Mention "maint set target-async", "set mi-async", and that
4035 background execution commands are now always available.
4036 * target.h (target_async_permitted): Update comment.
4037 * target.c (target_async_permitted, target_async_permitted_1):
4039 (set_target_async_command): Rename to ...
4040 (maint_set_target_async_command): ... this.
4041 (show_target_async_command): Rename to ...
4042 (maint_show_target_async_command): ... this.
4043 (_initialize_target): Adjust.
4044 * infcmd.c (prepare_execution_command): Make extern.
4045 * inferior.h (prepare_execution_command): Declare.
4046 * infrun.c (set_observer_mode): Leave target async alone.
4047 * mi/mi-interp.c (mi_interpreter_init): Install
4048 mi_on_sync_execution_done as sync_execution_done observer.
4049 (mi_on_sync_execution_done): New function.
4050 (mi_execute_command_input_handler): Don't print the prompt if we
4051 just started a synchronous command with an async target.
4052 (mi_on_resume): Check sync_execution before printing prompt.
4053 * mi/mi-main.h (mi_async_p): Declare.
4054 * mi/mi-main.c: Include gdbcmd.h.
4055 (mi_async_p): New function.
4056 (mi_async, mi_async_1): New globals.
4057 (set_mi_async_command, show_mi_async_command, mi_async): New
4059 (exec_continue): Call prepare_execution_command.
4060 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4061 (mi_execute_async_cli_command): Use mi_async_p.
4062 (_initialize_mi_main): Install "set mi-async". Make
4063 "target-async" a deprecated alias.
4065 2014-05-29 Pedro Alves <palves@redhat.com>
4067 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4068 (_initialize_cli_interp): Adjust.
4069 * event-loop.c: Include "observer.h".
4070 (start_event_loop): Notify 'command_error' observers instead of
4071 calling display_gdb_prompt. Remove FIXME comment.
4072 * event-top.c (display_gdb_prompt): Remove call into the
4074 * inf-loop.c: Include "observer.h".
4075 (inferior_event_handler): Notify 'command_error' observers instead
4076 of calling display_gdb_prompt.
4077 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4078 observers instead of calling display_gdb_prompt.
4079 * interps.c (interp_set): Don't call display_gdb_prompt.
4080 (current_interp_display_prompt_p): Delete.
4081 * interps.h (interp_prompt_p): Delete declaration.
4082 (interp_prompt_p_ftype): Delete.
4083 (struct interp_procs) <prompt_proc_p>: Delete field.
4084 (current_interp_display_prompt_p): Delete declaration.
4085 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4086 (_initialize_mi_interp): Adjust.
4087 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4088 'command_error' observers.
4089 (tui_on_sync_execution_done, tui_on_command_error): New
4091 (tui_display_prompt_p): Delete.
4092 (_initialize_tui_interp): Adjust.
4094 2014-05-29 Pedro Alves <palves@redhat.com>
4097 * cli/cli-interp.c: Include infrun.h and observer.h.
4098 (cli_uiout, cli_interp): New globals.
4099 (cli_on_signal_received, cli_on_end_stepping_range)
4100 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4102 (cli_interpreter_init): Install them as 'end_stepping_range',
4103 'signal_received' 'signal_exited', 'exited' and 'no_history'
4105 (_initialize_cli_interp): Remove cli_interp local.
4106 * infrun.c (handle_inferior_event): Call the several stop reason
4107 observers instead of printing the stop reason directly.
4108 (end_stepping_range): New function.
4109 (print_end_stepping_range_reason, print_signal_exited_reason)
4110 (print_exited_reason, print_signal_received_reason)
4111 (print_no_history_reason): Make static, and add an uiout
4112 parameter. Print to that instead of to CURRENT_UIOUT.
4113 * infrun.h (print_end_stepping_range_reason)
4114 (print_signal_exited_reason, print_exited_reason)
4115 (print_signal_received_reason print_no_history_reason): New
4117 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4119 <cli_uiout>: New field.
4120 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4121 uiout for CLI output. Install 'signal_received',
4122 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4124 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4125 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4126 (mi_on_no_history): New functions.
4127 (ui_out_free_cleanup): Delete function.
4128 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4129 instead use the one already stored in the MI interpreter data.
4130 (mi_ui_out): Adjust.
4131 * tui/tui-interp.c: Include infrun.h and observer.h.
4132 (tui_interp): New global.
4133 (tui_on_signal_received, tui_on_end_stepping_range)
4134 (tui_on_signal_exited, tui_on_exited)
4135 (tui_on_no_history): New functions.
4136 (tui_init): Install them as 'end_stepping_range',
4137 'signal_received' 'signal_exited', 'exited' and 'no_history'
4139 (_initialize_tui_interp): Delete tui_interp local.
4141 2014-05-29 Pedro Alves <palves@redhat.com>
4144 * linux-nat.c (linux_nat_resume_callback): Rename the second
4145 parameter to 'except'. Skip LP if it points to EXCEPT.
4146 (linux_nat_resume): Don't mark the event lwp as not stopped
4147 before resuming sibling lwps. Instead ask
4148 linux_nat_resume_callback to skip the event lwp. Mark it as not
4149 stopped after actually resuming it.
4150 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4152 (wait_lwp): Mark the lwp as stopped here.
4153 (stop_wait_callback): Mark the lwp as not stopped right after
4154 resuming it. Don't mark lwps as stopped here.
4155 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4156 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4158 2014-05-29 Pedro Alves <palves@redhat.com>
4161 * infrun.c (resume): Determine how much to resume depending on
4162 whether the caller wanted a step, not whether we can hardware step
4163 the target. Mark all threads that we intend to run as running,
4164 unless we're calling an inferior function.
4165 (normal_stop): If the thread is running an infcall, don't finish
4167 * target.c (target_resume): Don't mark threads as running here.
4169 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4171 * serial.c (_initialize_serial): Remove support for
4172 the "set remotebaud" and "show remotebaud" commands.
4173 * NEWS: Add entry documenting the removal of that command.
4175 2014-05-28 Yao Qi <yao@codesourcery.com>
4177 * charset.c: Fix typo in comments.
4179 2014-05-27 Gary Benson <gbenson@redhat.com>
4181 * utils.c (internal_vproblem): Prompt for a bug report.
4183 2014-05-26 Andy Wingo <wingo@igalia.com>
4185 * guile/scm-arch.c (arscm_mark_arch_smob):
4186 * guile/scm-block.c (bkscm_mark_block_smob)
4187 (bkscm_mark_block_syms_progress_smob):
4188 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4189 * guile/scm-exception.c (exscm_mark_exception_smob):
4190 * guile/scm-frame.c (frscm_mark_frame_smob):
4191 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4192 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4193 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4194 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4195 (ppscm_mark_pretty_printer_worker_smob):
4196 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4197 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4198 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4199 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4201 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4204 2014-05-26 Andy Wingo <wingo@igalia.com>
4205 Doug Evans <xdje42@gmail.com>
4207 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4208 empty_base_class. All uses updated.
4209 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4210 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4212 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4213 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4214 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4215 (gdbscm_gsmob_has_property_p, add_property_name)
4216 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4217 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4218 (gdb-object-has-property?, gdb-object-properties): Remove.
4219 (gdb-object-kind): Renamed from gsmob-kind.
4221 2014-05-26 Andy Wingo <wingo@igalia.com>
4223 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4224 * configure: Regenerate.
4226 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4228 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4230 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4232 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4233 (replay_memory_access_read_only, replay_memory_access_read_write)
4234 (replay_memory_access_types, replay_memory_access)
4235 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4236 (cmd_set_record_btrace, cmd_show_record_btrace)
4237 (cmd_show_replay_memory_access): New.
4238 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4239 (record_btrace_remove_breakpoint): Replace
4240 record_btrace_allow_memory_access with replay_memory_access.
4241 (_initialize_record_btrace): Add commands.
4242 * NEWS: Announce it.
4244 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4246 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4248 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4250 * MAINTAINERS (Write After Approval): Move self back from
4253 2014-05-22 Pedro Alves <palves@redhat.com>
4255 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4256 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4257 (disable_randomization, enum exec_direction_kind)
4258 (execution_direction, stop_registers, start_remote)
4259 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4260 (wait_for_inferior, normal_stop, get_last_target_status)
4261 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4262 (insert_step_resume_breakpoint_at_sal)
4263 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4264 (set_step_info, print_stop_event, signal_stop_state)
4265 (signal_print_state, signal_pass_state, signal_stop_update)
4266 (signal_print_update, signal_pass_update)
4267 (update_signals_program_target, clear_exit_convenience_vars)
4268 (displaced_step_dump_bytes, update_observer_mode)
4269 (signal_catch_update, gdb_signal_from_command): Move
4271 * infrun.h: ... to this new file.
4272 * amd64-tdep.c: Include infrun.h.
4273 * annotate.c: Include infrun.h.
4274 * arch-utils.c: Include infrun.h.
4275 * arm-linux-tdep.c: Include infrun.h.
4276 * arm-tdep.c: Include infrun.h.
4277 * break-catch-sig.c: Include infrun.h.
4278 * breakpoint.c: Include infrun.h.
4279 * common/agent.c: Include infrun.h instead of inferior.h.
4280 * corelow.c: Include infrun.h.
4281 * event-top.c: Include infrun.h.
4282 * go32-nat.c: Include infrun.h.
4283 * i386-tdep.c: Include infrun.h.
4284 * inf-loop.c: Include infrun.h.
4285 * infcall.c: Include infrun.h.
4286 * infcmd.c: Include infrun.h.
4287 * infrun.c: Include infrun.h.
4288 * linux-fork.c: Include infrun.h.
4289 * linux-nat.c: Include infrun.h.
4290 * linux-thread-db.c: Include infrun.h.
4291 * monitor.c: Include infrun.h.
4292 * nto-tdep.c: Include infrun.h.
4293 * procfs.c: Include infrun.h.
4294 * record-btrace.c: Include infrun.h.
4295 * record-full.c: Include infrun.h.
4296 * remote-m32r-sdi.c: Include infrun.h.
4297 * remote-mips.c: Include infrun.h.
4298 * remote-notif.c: Include infrun.h.
4299 * remote-sim.c: Include infrun.h.
4300 * remote.c: Include infrun.h.
4301 * reverse.c: Include infrun.h.
4302 * rs6000-tdep.c: Include infrun.h.
4303 * s390-linux-tdep.c: Include infrun.h.
4304 * solib-irix.c: Include infrun.h.
4305 * solib-osf.c: Include infrun.h.
4306 * solib-svr4.c: Include infrun.h.
4307 * target.c: Include infrun.h.
4308 * top.c: Include infrun.h.
4309 * windows-nat.c: Include infrun.h.
4310 * mi/mi-interp.c: Include infrun.h.
4311 * mi/mi-main.c: Include infrun.h.
4312 * python/py-threadevent.c: Include infrun.h.
4314 2014-05-22 Pedro Alves <palves@redhat.com>
4316 * infrun.c (handle_inferior_event): Store the exit code for
4317 --return-child-result here, instead of ...
4318 (print_exited_reason): ... here.
4320 2014-05-21 Pedro Alves <palves@redhat.com>
4323 * gdbthread.h (struct thread_control_state): New field
4325 * infrun.c (follow_fork): Copy the new thread control field to the
4327 (clear_proceed_status_thread): Clear the new thread control field.
4328 (proceed): Set the new thread control field.
4329 * interps.h (command_interp): Declare.
4330 * interps.c (command_interpreter): New global.
4331 (command_interp): New function.
4332 (interp_exec): Set `command_interpreter' while here.
4333 * cli-out.c (cli_uiout_dtor): New function.
4334 (cli_ui_out_impl): Install it.
4335 * mi/mi-interp.c: Include cli-out.h.
4336 (mi_cmd_interpreter_exec): Add comment.
4337 (restore_current_uiout_cleanup): New function.
4338 (ui_out_free_cleanup): New function.
4339 (mi_on_normal_stop): If finishing an execution command started by
4340 a CLI command, or any kind of breakpoint-like event triggered,
4341 print the stop event to the output (CLI) stream.
4342 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4344 2014-05-21 Pedro Alves <palves@redhat.com>
4346 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4347 current source line having changed.
4348 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4349 * infrun.c (normal_stop): Adjust call to
4350 set_current_sal_from_frame.
4351 * source.c (clear_lines_listed_range): New function.
4352 (set_current_source_symtab_and_line, identify_source_line): Clear
4353 the lines listed range.
4354 (line_info): Handle the first "info line" after the current source
4355 line having changed.
4356 * stack.c (print_stack_frame): Remove center handling.
4357 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4360 2014-05-21 Pedro Alves <palves@redhat.com>
4362 * inf-child.c (inf_child_mourn_inferior): New function.
4363 * inf-child.h (inf_child_mourn_inferior): New declaration.
4364 * darwin-nat.c (darwin_mourn_inferior): Use
4365 inf_child_mourn_inferior.
4366 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4367 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4368 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4369 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4370 * windows-nat.c (windows_mourn_inferior): Likewise.
4372 2014-05-21 Doug Evans <xdje42@gmail.com>
4374 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4376 2014-05-21 Doug Evans <xdje42@gmail.com>
4378 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4379 (gdbscm_out_of_range_error): Ditto.
4380 (gdbscm_memory_error): Ditto.
4381 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4382 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4383 (gdbscm_out_of_range_error): Update.
4384 (gdbscm_memory_error): Update.
4385 (gdbscm_scm_to_target_string_unsafe): Delete.
4387 2014-05-21 Pedro Alves <palves@redhat.com>
4389 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4391 (inf_child_open_target): New function.
4392 (inf_child_open): Use inf_child_open_target to push the target
4393 instead of erroring out.
4394 (inf_child_disconnect, inf_child_close)
4395 (inf_child_maybe_unpush_target): New functions.
4396 (inf_child_target): Install inf_child_disconnect and
4397 inf_child_close. Store a pointer to the returned object.
4398 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4400 * target.c (auto_connect_native_target): New global.
4401 (show_default_run_target): New function.
4402 (find_default_run_target): Return NULL if automatically connecting
4403 to the native target is disabled.
4404 (_initialize_target): Install set/show auto-connect-native-target.
4405 * NEWS: Mention "set auto-connect-native-target", and "target
4407 * linux-nat.c (super_close): New global.
4408 (linux_nat_close): Call super_close.
4409 (linux_nat_add_target): Store a pointer to the base class's
4411 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4412 inf_child_maybe_unpush.
4413 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4415 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4416 the inferior. Use inf_child_maybe_unpush_target.
4417 (inf_ttrace_attach): Don't push the target if it is already
4419 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4420 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4421 after mourning the inferior. Use inf_child_maybe_unpush_target.
4422 (darwin_attach_pid): Don't push the target if it is already
4424 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4425 mourning the inferior. Use inf_child_maybe_unpush_target.
4426 (gnu_detach): Use inf_child_maybe_unpush_target.
4427 * go32-nat.c (go32_create_inferior): Don't push the target if it
4429 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4430 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4431 (procfs_open): Rename to ...
4432 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4433 comments. Can target_preopen before changing node. Call
4434 inf_child_open_target to push the target explicitly.
4435 (procfs_attach): Don't push the target if it is already pushed.
4436 (procfs_detach): Use inf_child_maybe_unpush_target.
4437 (procfs_create_inferior): Don't push the target if it is already
4439 (nto_native_ops): New global.
4440 (procfs_open): Reimplement.
4441 (procfs_native_open): New function.
4442 (init_procfs_targets): Install procfs_native_open as to_open of
4443 "target native". Store a pointer to the "native" target in
4445 * procfs.c (procfs_attach): Don't push the target if it is already
4447 (procfs_detach): Use inf_child_maybe_unpush_target.
4448 (procfs_mourn_inferior): Only unpush the target after mourning the
4449 inferior. Use inf_child_maybe_unpush_target.
4450 (procfs_init_inferior): Don't push the target if it is already
4452 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4453 if it is already pushed.
4455 2014-05-21 Pedro Alves <palves@redhat.com>
4457 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4458 and "procfs" targets are now called "native" instead.
4460 2014-05-21 Pedro Alves <palves@redhat.com>
4462 * go32-nat.c (go32_open): Delete.
4463 (go32_target): Don't override the to_open method.
4465 2014-05-21 Pedro Alves <palves@redhat.com>
4467 * nto-procfs.c (procfs_can_run): New function.
4468 (nto_procfs_ops): New global.
4469 (init_procfs_targets): New, based on procfs_target. Install
4470 "target native" in addition to "target procfs".
4471 (_initialize_procfs): Call init_procfs_targets instead of adding
4474 2014-05-21 Pedro Alves <palves@redhat.com>
4476 * windows-nat.c (windows_target): Don't override to_shortname,
4477 to_longname or to_doc.
4479 2014-05-21 Pedro Alves <palves@redhat.com>
4481 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4484 2014-05-21 Pedro Alves <palves@redhat.com>
4486 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4487 to_shortname, to_longname or to_doc.
4489 2014-05-21 Pedro Alves <palves@redhat.com>
4491 * go32-nat.c (go32_target): Don't override to_shortname,
4492 to_longname or to_doc.
4494 2014-05-21 Pedro Alves <palves@redhat.com>
4496 * inf-child.c (inf_child_open): Remove mention of "child".
4497 (inf_child_target): Rename target to "native" instead of "child".
4499 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4501 * Makefile.in (SFILES): Delete "regset.c".
4502 (COMMON_OBS): Delete "regset.o".
4504 * regset.h (regset_alloc): Delete prototype.
4506 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4508 * sparc-linux-tdep.c (sparc32_linux_gregset)
4509 (sparc32_linux_fpregset): New static regset structures.
4510 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4511 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4513 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4514 (sparc64_linux_fpregset): New static regset structures.
4515 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4516 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4517 New static regset structures.
4518 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4519 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4520 New static regset structures.
4521 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4522 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4523 New static regset structures.
4524 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4525 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4526 New static regset structures.
4527 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4529 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4531 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4532 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4533 register maps ("regmaps") from "*regset" to "*regmap". Do this
4534 for all regmap types and variables.
4535 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4536 (sparc32_linux_supply_core_gregset)
4537 (sparc32_linux_collect_core_gregset)
4538 (sparc32_linux_supply_core_fpregset)
4539 (sparc32_linux_collect_core_fpregset): Likewise.
4540 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4541 (sparc_gregmap, sparc_fpregmap): ... these.
4542 (sparc_supply_gregset, sparc_collect_gregset)
4543 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4544 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4545 (_initialize_sparc_nat): Rename regmaps.
4546 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4547 (sparc_gregmap, sparc_fpregmap): ... these.
4548 (sparc_supply_gregset, sparc_collect_gregset)
4549 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4550 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4552 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4553 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4555 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4557 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4558 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4559 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4561 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4562 (sparc32_bsd_fpregset): Rename to...
4563 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4564 (sparc32_bsd_fpregmap): ... these.
4565 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4566 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4567 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4568 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4569 (struct sparc_gregmap, struct sparc_fpregmap)
4570 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4571 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4572 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4573 (sparc32_supply_regset, sparc32_collect_gregset)
4574 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4576 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4577 (sparc64_linux_ptrace_gregmap): ... this.
4578 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4579 (_initialize_sparc64_linux_nat): Rename regmaps.
4580 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4581 (sparc64_linux_core_gregmap): ... this.
4582 (sparc64_linux_supply_core_gregset)
4583 (sparc64_linux_collect_core_gregset)
4584 (sparc64_linux_supply_core_fpregset)
4585 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4586 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4587 (sparc64_sol2_fpregset): Rename to...
4588 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4589 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4590 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4592 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4593 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4594 (sparc64_bsd_fpregset): Rename to...
4595 (struct sparc_gregmap, sparc64_sol2_gregmap)
4596 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4597 (sparc64_bsd_fpregmap): ... these.
4598 (sparc64_supply_gregset, sparc64_collect_gregset)
4599 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4601 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4602 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4603 (sparc64fbsd_gregmap): ... this.
4604 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4605 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4607 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4608 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4609 (sparc64nbsd_collect_fpregset): Likewise.
4610 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4611 (sparc64nbsd_gregmap): ... this.
4612 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4614 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4615 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4616 (sparc64obsd_gregmap): ... this.
4617 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4619 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4620 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4621 (sparc32nbsd_gregmap): ... this.
4622 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4625 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4627 * score-tdep.c (score7_linux_gregset): New static regset
4629 (score7_linux_regset_from_core_section): Remove dynamic regset
4631 (score_gdbarch_init): Drop allocation of tdep structure.
4632 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4634 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4636 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4638 (am33_regset_from_core_section): Remove dynamic regset
4641 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4643 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4644 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4646 (mips_linux_regset_from_core_section): Remove dynamic regset
4648 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4649 'gregset64', 'fpregset', and 'fpregset64'.
4650 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4651 deleted tdep fields.
4653 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4655 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4657 (amd64_regset_from_core_section): Remove dynamic regset
4659 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4661 (amd64obsd_regset_from_core_section): Remove dynamic regset
4663 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4665 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4666 x86-common regset supply function.
4667 * i386-tdep.c (i386_collect_gregset): Make static.
4668 (i386_gregset): New global regset structure.
4669 (i386_fpregset, i386_xstateregset): New static regset structures.
4670 (i386_regset_from_core_section): Remove dynamic regset
4672 (i386_gdbarch_init): Remove initialization of tdep fields
4673 'gregset', 'fpregset', and 'xstateregset'.
4674 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4675 'fpregset', and 'xstateregset'.
4676 (i386_collect_gregset): Remove prototype.
4677 (i386_gregset): New declaration.
4678 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4680 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4683 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4685 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4686 (arm_linux_vfpregset): New static regset structures.
4687 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4689 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4690 and 'vfpregset' fields.
4692 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4694 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4695 (aarch64_linux_fpregset): New static regset structures.
4696 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4697 of regset structures.
4698 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4701 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4703 * regset.h (struct regset): Remove gdbarch field.
4704 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4705 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4706 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4708 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4709 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4710 (ppc32_linux_vsxregset): Likewise.
4711 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4712 via the regcache instead of the regset.
4713 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4714 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4715 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4716 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4719 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4721 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4722 Constify structures.
4723 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4724 (alphanbsd_aout_gregset): Likewise.
4725 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4726 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4728 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4729 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4731 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4732 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4733 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4734 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4735 * m88k-tdep.c (m88k_gregset): Likewise.
4736 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4737 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4738 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4739 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4740 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4741 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4742 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4743 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4744 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4746 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4747 * sh-tdep.h (sh_corefile_gregset): Likewise.
4748 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4749 * vax-tdep.c (vax_gregset): Likewise.
4751 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4753 Fix TLS access for -static -pthread.
4754 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4755 (try_thread_db_load_1): Initialize it.
4756 (thread_db_get_thread_local_address): Call it if LM is zero.
4757 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4758 * target.h (struct target_ops) (to_get_thread_local_address): Add
4759 load_module_addr comment.
4761 2014-05-21 Pedro Alves <palves@redhat.com>
4763 * dcache.c (dcache_read_memory_partial): If reading the cache line
4764 fails, fallback to reading just the memory the caller wanted.
4766 2014-05-20 Doug Evans <dje@google.com>
4768 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4769 instead of get_current_arch.
4771 2014-05-20 Pedro Alves <palves@redhat.com>
4773 * NEWS: Mention that compare-sections now works with all targets.
4775 * remote.c (PACKET_qCRC): New enum value.
4776 (remote_verify_memory): Don't send qCRC if the target has no
4777 execution. Use packet_support/packet_ok. If the target doesn't
4778 support the qCRC packet, fallback to a deep memory copy.
4779 (compare_sections_command): Say "target image" instead of "remote
4781 (_initialize_remote): Add PACKET_qCRC to the list of config
4782 packets that have no associated command. Extend comment.
4783 * target.c (simple_verify_memory, default_verify_memory): New
4785 * target.h (struct target_ops) <to_verify_memory>: Default to
4786 default_verify_memory.
4787 (simple_verify_memory): New declaration.
4788 * target-delegates.c: Regenerate.
4790 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4792 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4794 2014-05-20 Hui Zhu <hui@codesourcery.com>
4795 Yao Qi <yao@codesourcery.com>
4798 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4799 and change address of sp and pc.
4801 2014-05-19 Tom Tromey <tromey@redhat.com>
4803 * gdbtypes.c (rank_function): Use XNEWVEC.
4804 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4806 2014-05-19 Doug Evans <dje@google.com>
4808 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4809 build_type_unit_groups and moved closer to only caller. Remove
4810 arguments. All references updated. Remove outdated .gdb_index
4812 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4813 build_type_psymtabs_1.
4815 2014-05-19 Doug Evans <dje@google.com>
4817 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4818 n_type_unit_groups, all_type_unit_groups. All uses removed.
4819 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4820 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4821 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4822 (add_type_unit_group_to_table): Delete.
4824 2014-05-19 Doug Evans <dje@google.com>
4826 * eval.c (evaluate_subexp_standard): Add some comments.
4828 2014-05-17 Doug Evans <xdje42@gmail.com>
4830 * progspace.c (remove_program_space): Delete, unused.
4831 * progspace.h (remove_program_space): Ditto.
4833 2014-05-17 Doug Evans <xdje42@gmail.com>
4835 * inferior.c (prune_inferiors): Fix comment.
4836 (remove_inferior_command): Call prune_program_spaces.
4838 2014-05-16 Doug Evans <dje@google.com>
4840 New command line option -D.
4842 * main.c (set_gdb_data_directory): New function.
4843 (captured_main): Recognize -D. Flag error for --data-directory "".
4844 Call set_gdb_data_directory.
4845 (print_gdb_help): Print --data-directory, -D.
4846 * main.h (set_gdb_data_directory): Declare.
4847 * top.c (staged_gdb_datadir): New static global.
4848 (set_gdb_datadir): Call set_gdb_data_directory
4849 (show_gdb_datadir): New function.
4850 (init_main): Update init of data-directory parameter.
4852 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4854 Import the "dirfd" gnulib module.
4855 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4856 * gnulib/aclocal.m4: Update.
4857 * gnulib/config.in: Update.
4858 * gnulib/configure: Update.
4859 * gnulib/import/Makefile.am: Update.
4860 * gnulib/import/Makefile.in: Update.
4861 * gnulib/import/dirfd.c: New.
4862 * gnulib/import/m4/dirfd.m4: New.
4863 * gnulib/import/m4/gnulib-cache.m4: Update.
4864 * gnulib/import/m4/gnulib-comp.m4: Update.
4866 2014-05-16 Pierre Muller <muller@sourceware.org>
4867 Yao Qi <yao@codesourcery.com>
4869 * valprint.c (print_wchar): Move the code on checking whether
4870 W is a printable wide char to the default branch of switch
4871 statement below. Call wchar_printable instead of gdb_iswprint.
4873 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4875 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4876 ldr.w and ldrd instructions.
4878 2014-05-15 Doug Evans <dje@google.com>
4880 * dwarf2read.c (read_structure_type): Delete outdated comments.
4882 2014-05-14 Tom Tromey <tromey@redhat.com>
4884 * macrocmd.c (print_macro_definition): Reindent.
4886 2014-05-13 Doug Evans <xdje42@gmail.com>
4888 * python/py-cmd.c (cmdpy_completer): Add comment.
4889 (completers): Make const.
4891 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4893 * infrun.c (resume): Remove should_resume (unused). Move up
4894 declaration of resume_ptid.
4896 2014-05-13 Tom Tromey <tromey@redhat.com>
4898 * language.h (unop_type_check): Remove.
4899 (binop_type_check): Don't declare.
4901 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4903 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4904 call to regcache_raw_collect.
4906 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4908 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4909 mi_console->quote as the quoting character.
4911 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4913 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4915 2014-04-29 Tom Tromey <tromey@redhat.com>
4917 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4918 "show debug varobj".
4920 2014-05-07 Kyle McMartin <kyle@redhat.com>
4922 Pushed by Joel Brobecker <brobecker@adacore.com>.
4923 * aarch64-tdep.c (aarch64_software_single_step): New function.
4924 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4925 with aarch64_software_single_step.
4927 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4931 2014-05-05 Keith Seitz <keiths@redhat.com>
4933 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4934 variable or history value is successfully parsed.
4936 2014-05-05 Yao Qi <yao@codesourcery.com>
4937 Pedro Alves <palves@redhat.com>
4939 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4940 address of blocks that intersects the requested range. Trim
4941 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4943 * ctf.c (ctf_xfer_partial): Likewise.
4945 2014-05-05 Yao Qi <yao@codesourcery.com>
4947 * printcmd.c (display_command): Remove the check to
4948 target_has_execution.
4950 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4952 * ppcobsd-nat.c: Include "obsd-nat.h".
4953 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4955 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4957 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4959 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4960 and 16-bit signed and unsigned arguments. Update comment.
4961 (stap_parse_probe_arguments): Extend code to handle such
4962 arguments. Use warning instead of complaint to notify about
4963 unrecognized bitness.
4965 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4967 PR breakpoints/16889
4968 * stap-probe.c (stap_parse_probe_arguments): Simplify
4969 check for non-prefixed probes (i.e., probes whose
4970 arguments do not start with "N@"). Always set the
4971 argument type to a sane value.
4973 2014-05-01 David Taylor <dtaylor@emc.com>
4975 * remote.c (compare_sections_command): Add -r option to compare
4976 all loadable read-only sections.
4978 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4980 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4981 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4983 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4984 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4985 Remove unused CORE_ADDR argument. Update all callers.
4987 2014-04-29 Pedro Alves <palves@redhat.com>
4989 * remote.c (struct packet_config) <detect>: Extend comment.
4990 (add_packet_config_cmd): Don't set the config's detect or support
4992 (init_all_packet_configs): Also initialize the config's 'detect'
4994 (reset_all_packet_configs_support): New function.
4995 (remote_open_1): Call reset_all_packet_configs_support instead of
4996 init_all_packet_configs.
4997 (_initialize_remote): Initialize all packet configs. Assert that
4998 all packets have an associated command, except a few known
5001 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5003 * dwarf2read.c (read_subrange_type): Handle dynamic
5004 DW_AT_lower_bound attributes.
5006 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5008 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5009 dynamic bounds before computing its upper bound.
5010 (ada_discrete_type_low_bound): Same as above with the lower bound.
5012 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5014 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5015 range types. Adjust the array handling implementation to
5016 take advantage of this change.
5017 (resolve_dynamic_range): New function, mostly extracted from
5018 resolve_dynamic_bounds.
5019 (resolve_dynamic_array): New function, mostly extracted from
5020 resolve_dynamic_bounds.
5021 (resolve_dynamic_bounds): Delete.
5022 (resolve_dynamic_type): Reimplement. Add handling of
5023 TYPE_CODE_RANGE types.
5025 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5027 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5028 handling of parallel ___XA types.
5030 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5032 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5033 unnecessary second call to static_unwrap_type.
5035 2014-04-27 Hui Zhu <hui@codesourcery.com>
5037 * stack.c (print_frame_info): Call do_gdb_disassembly with
5038 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5040 2014-04-26 Doug Evans <xdje42@gmail.com>
5042 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5044 2014-04-25 Pedro Alves <palves@redhat.com>
5047 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5048 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5049 and newline from built string.
5050 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5051 (linux_ptrace_attach_fail_reason): ... this.
5052 * linux-nat.c (linux_nat_attach): Adjust to use
5053 linux_ptrace_attach_fail_reason.
5055 2014-04-25 Pedro Alves <palves@redhat.com>
5057 * remote.c (struct remote_state): Remove multi_process_aware,
5058 non_stop_aware, cond_tracepoints, cond_breakpoints,
5059 breakpoint_commands, fast_tracepoints, static_tracepoints,
5060 install_in_trace, disconnected_tracing,
5061 enable_disable_tracepoints, string_tracing, and
5062 augmented_libraries_svr4_read fields.
5063 (remote_multi_process_p): Move further below in the file.
5064 (struct packet_config): Add comments.
5065 (update_packet_config): Delete function.
5066 (show_packet_config_cmd): Use packet_config_support.
5067 (add_packet_config_cmd): Use NULL as set callback.
5068 (packet_ok): "set remote foo-packet"-style commands no longer
5069 change config->supported -- adjust.
5070 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5071 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5072 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5073 (PACKET_QNonStop, PACKET_multiprocess_feature)
5074 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5075 (PACKET_DisconnectedTracing_feature)
5076 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5077 (set_remote_protocol_packet_cmd): Delete function.
5078 (packet_config_support, packet_support): New functions.
5079 (set_remote_protocol_Z_packet_cmd): Don't call
5080 update_packet_config.
5081 (remote_query_attached, remote_pass_signals)
5082 (remote_program_signals, remote_threads_info)
5083 (remote_threads_extra_info, remote_start_remote): Use
5085 (remote_start_remote): Use packet_config_support and
5087 (init_all_packet_configs): Set all packets to unknown support,
5088 instead of calling update_packet_config.
5089 (remote_check_symbols): Use packet_support.
5090 (remote_supported_packet): Unconditionally set the packet config's
5092 (remote_multi_process_feature, remote_non_stop_feature)
5093 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5094 (remote_breakpoint_commands_feature)
5095 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5096 (remote_install_in_trace_feature)
5097 (remote_disconnected_tracing_feature)
5098 (remote_enable_disable_tracepoint_feature)
5099 (remote_string_tracing_feature)
5100 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5101 (remote_protocol_features): Adjust to use remote_supported_packet
5102 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5103 "ConditionalTracepoints", "ConditionalBreakpoints",
5104 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5105 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5106 "EnableDisableTracepoints", and "tracenz".
5107 (remote_query_supported): Use packet_support.
5108 (remote_open_1): Adjust.
5109 (extended_remote_attach_1): Use packet_support. Switch on the
5110 result of packet_ok instead of checking whether the packet ended
5112 (remote_vcont_resume): Use packet_support.
5113 (remote_resume, remote_stop_ns, fetch_register_using_p)
5114 (remote_prepare_to_store, store_register_using_P)
5115 (check_binary_download, remote_write_bytes): Use packet_support.
5116 (remote_vkill): Use packet_support. Switch on the result of
5117 packet_ok instead of checking whether the packet ended up
5119 (extended_remote_supports_disable_randomization): Use
5121 (extended_remote_run): Switch on the result of packet_ok instead
5122 of checking whether the packet ended up disabled.
5123 (remote_insert_breakpoint, remote_remove_breakpoint)
5124 (remote_insert_watchpoint, remote_remove_watchpoint)
5125 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5127 (remote_search_memory): Use packet_config_support.
5128 (remote_get_thread_local_address, remote_get_tib_address)
5129 (remote_hostio_send_command, remote_can_execute_reverse): Use
5131 (remote_supports_cond_tracepoints)
5132 (remote_supports_cond_breakpoints)
5133 (remote_supports_fast_tracepoints)
5134 (remote_supports_static_tracepoints)
5135 (remote_supports_install_in_trace)
5136 (remote_supports_enable_disable_tracepoint)
5137 (remote_supports_string_tracing)
5138 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5139 the packet config says the feature is enabled or disabled.
5140 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5141 (remote_get_trace_status): Use packet_support.
5142 (remote_set_disconnected_tracing): Adjust to check whether the
5143 feature is enabled with packet_support.
5144 (remote_set_trace_buffer_size, remote_use_agent)
5145 (remote_can_use_agent, remote_supports_btrace): Use
5147 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5148 Use packet_config_support.
5149 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5150 the packet config says the feature is enabled or disabled.
5151 (set_range_stepping): Use packet_support.
5153 2014-04-25 Tom Tromey <tromey@redhat.com>
5155 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5158 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5160 * NEWS: Mention support for C99 variable length arrays.
5162 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5164 * ada-lang.c (standard_exc): Expand introductory comment.
5166 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5167 Walfred Tedeschi <walfred.tedeschi@intel.com>
5169 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5171 (amd64_linux_read_description): Add code to handle AVX512 xstate
5172 mask and return respective tdesc.
5173 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5174 and features/i386/x32-avx512-linux.c.
5175 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5176 (amd64_linux_core_read_description): Add code to handle AVX512
5177 xstate mask and return respective tdesc.
5178 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5179 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5181 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5182 (tdesc_amd64_avx512_linux): New prototype.
5183 (tdesc_x32_avx512_linux): Likewise.
5184 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5185 features/i386/x32-avx512.c.
5186 (amd64_ymm_avx512_names): New register names for pseudo
5188 (amd64_ymmh_avx512_names): New register names for raw registers
5190 (amd64_k_names): New register names for K registers.
5191 (amd64_zmmh_names): New register names for ZMM raw registers.
5192 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5193 (amd64_xmm_avx512_names): New register names for XMM16-31
5195 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5197 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5198 if feature is present.
5199 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5200 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5201 (AMD64_NUM_REGS): Adjust to new number of registers.
5202 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5203 registers supplied via XSTATE by AVX512 registers.
5204 (i386_linux_read_description): Add case for AVX512.
5205 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5206 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5207 (i386_linux_core_read_description): Add case for AVX512.
5208 (i386_linux_init_abi): Install supported register note section
5210 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5212 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5213 registers to be number of zmm7h + 1.
5214 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5215 * i386-tdep.c: Include features/i386/i386-avx512.c.
5216 (i386_zmm_names): Add ZMM pseudo register names array.
5217 (i386_zmmh_names): Add ZMM raw register names array.
5218 (i386_k_names): Add K raw register names array.
5219 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5220 registers. AVX512 has 16 more ZMM registers than there are YMM
5222 (i386_zmmh_regnum_p): Add function to look up register number of
5224 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5225 (i386_k_regnum_p): Likewise for K raw registers.
5226 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5227 registers added by AVX512.
5228 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5229 registers added by AVX512.
5230 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5232 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5233 (i386_pseudo_register_name): Add ZMM pseudo registers.
5234 (i386_zmm_type): Construct and return vector registers type for ZMM
5236 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5237 ZMM0-31 pseudo registers and K registers.
5238 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5239 and YMM16-31 registers from register cache.
5240 (i386_pseudo_register_write): Add code to write K, ZMM and
5242 (i386_register_reggroup_p): Add code to include/exclude AVX512
5243 registers in/from respective register groups.
5244 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5245 registers if feature is present in xcr0.
5246 (i386_gdbarch_init): Add code to initialize AVX512 feature
5247 variables in tdep structure, wire in pseudo registers and call
5248 initialize_tdesc_i386_avx512.
5249 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5251 (i386_regnum): Add AVX512 registers.
5252 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5253 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5254 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5255 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5257 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5258 (i386_ymm_avx512_regnum_p): Likewise.
5259 (i386_k_regnum_p): Likewise.
5260 (i386_zmm_regnum_p): Likewise.
5261 (i386_zmmh_regnum_p): Likewise.
5262 * i387-tdep.c : Update year in copyright notice.
5263 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5265 (XSAVE_YMM_AVX512_ADDR): New macro.
5266 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5268 (XSAVE_XMM_AVX512_ADDR): New macro.
5269 (xsave_avx512_k_offset): New table for K register offsets in
5271 (XSAVE_AVX512_K_ADDR): New macro.
5272 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5274 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5275 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5277 (i387_collect_xsave): Add code to collect AVX512 registers from
5279 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5280 of XMM16-31 registers.
5281 (I387_NUM_K_REGS): New define for number of K registers.
5282 (I387_K0_REGNUM): New define for K0 register number.
5283 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5284 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5285 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5287 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5288 (I387_XMM16_REGNUM): New define for XMM16 register number.
5289 (I387_YMM0_REGNUM): New define for YMM0 register number.
5290 (I387_KEND_REGNUM): New define for last K register number.
5291 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5292 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5294 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5296 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5298 * features/Makefile: Add AVX512 related files.
5299 * features/i386/32bit-avx512.xml: New file.
5300 * features/i386/64bit-avx512.xml: Likewise.
5301 * features/i386/amd64-avx512-linux.c: Likewise.
5302 * features/i386/amd64-avx512-linux.xml: Likewise.
5303 * features/i386/amd64-avx512.c: Likewise.
5304 * features/i386/amd64-avx512.xml: Likewise.
5305 * features/i386/i386-avx512-linux.c: Likewise.
5306 * features/i386/i386-avx512-linux.xml: Likewise.
5307 * features/i386/i386-avx512.c: Likewise.
5308 * features/i386/i386-avx512.xml: Likewise.
5309 * features/i386/x32-avx512-linux.c: Likewise.
5310 * features/i386/x32-avx512-linux.xml: Likewise.
5311 * features/i386/x32-avx512.c: Likewise.
5312 * features/i386/x32-avx512.xml: Likewise.
5313 * regformats/i386/amd64-avx512-linux.dat: New file.
5314 * regformats/i386/amd64-avx512.dat: Likewise.
5315 * regformats/i386/i386-avx512-linux.dat: Likewise.
5316 * regformats/i386/i386-avx512.dat: Likewise.
5317 * regformats/i386/x32-avx512-linux.dat: Likewise.
5318 * regformats/i386/x32-avx512.dat: Likewise.
5319 * NEWS: Add note about new support for AVX512.
5322 2014-04-23 Pedro Alves <palves@redhat.com>
5324 * breakpoint.c (insert_bp_location): Tolerate errors if the
5325 breakpoint is set in a user-loaded objfile.
5326 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5327 location is marked shlib_disabled. If the breakpoint is set in a
5328 user-loaded objfile is a GDB-side memory breakpoint, validate it
5329 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5330 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5332 * mem-break.c (memory_validate_breakpoint): New function.
5333 * objfiles.c (userloaded_objfile_contains_address_p): New
5335 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5336 * target.h (memory_validate_breakpoint): New declaration.
5338 2014-04-23 Pedro Alves <palves@redhat.com>
5340 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5341 the breakpoint is set in a shared library, only suppress
5342 errors for software breakpoints, not hardware breakpoints.
5344 2014-04-22 Pedro Alves <palves@redhat.com>
5346 * infrun.c (schedlock_applies): New function, factored out from
5347 find_thread_needs_step_over.
5348 (find_thread_needs_step_over): Use it.
5349 (switch_back_to_stepped_thread): Always clear trap_expected if the
5350 step over is finished. Return early if scheduler locking applies.
5351 Look for the stepping thread and a potential step-over thread with
5353 (currently_stepping_or_nexting_callback): Delete.
5355 2014-04-22 Nick Clifton <nickc@redhat.com>
5357 * NEWS: Mention that ARM sim now supports tracing.
5359 2014-04-22 Yao Qi <yao@codesourcery.com>
5361 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5363 * tracefile.c (tracefile_fetch_registers): ... it. New
5365 * tracefile.h (tracefile_fetch_registers): Declare.
5366 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5367 tracefile_fetch_registers.
5369 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5372 * windows-nat.c (thread_rec): Don't display a warning when
5373 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5374 fails for any reason, set th->suspended to -1, so that we don't
5375 try to resume such a thread. Also, don't return NULL in these
5376 cases, to avoid completely ruin the session due to "PC register is
5377 not available" error.
5378 (do_windows_fetch_inferior_registers): Check errors in
5379 GetThreadContext call.
5380 (windows_continue): Accept an additional argument KILLED; if not
5381 zero, ignore errors in the SetThreadContext call, since the
5382 inferior was killed and is shutting down.
5383 (windows_resume, get_windows_debug_event)
5384 (windows_create_inferior, windows_mourn_inferior)
5385 (windows_kill_inferior): All callers of windows_continue changed
5386 to adjust to its new calling sequence.
5388 2014-04-19 Yao Qi <yao@codesourcery.com>
5390 * ctf.c (ctf_open): Call post_create_inferior.
5392 2014-04-19 Yao Qi <yao@codesourcery.com>
5394 * ctf.c (handle_id): New static variable.
5395 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5396 value. Get the declaration of event "register" and get length
5397 of field "contents".
5399 2014-04-19 Yao Qi <yao@codesourcery.com>
5401 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5403 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5405 * valops.c (oload_method_static): Remove unnecessary argument
5406 METHOD. Update all callers.
5408 2014-04-18 Pedro alves <palves@redhat.com>
5409 Tom Tromey <tromey@redhat.com>
5412 * frame.c (get_prev_frame_1): Rename to ...
5413 (get_prev_frame_always): ... this, and make extern. Adjust.
5414 (skip_artificial_frames): Use get_prev_frame_always.
5415 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5416 (get_frame_unwind_stop_reason): Adjust to rename.
5417 * frame.h (get_prev_frame_always): Declare.
5418 * inline-frame.c: Include frame.h.
5419 (inline_frame_this_id): Use get_prev_frame_always.
5421 2014-04-18 Tristan Gingold <gingold@adacore.com>
5423 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5424 code by using bfd_mach_o_get_base_address.
5426 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5428 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5429 (spu_ax_pseudo_register_collect): New function.
5430 (spu_ax_pseudo_register_push_stack): Likewise.
5431 (spu_dwarf_reg_to_regnum): Likewise.
5432 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5434 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5436 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5437 Replace FRAME argument with FRAME_ID.
5438 * gdbarch.c, gdbarch.h: Regenerate.
5439 * findvar.c (default_value_from_register): Add GDBARCH argument;
5440 replace FRAME by FRAME_ID. No longer call get_frame_id.
5441 (value_from_register): Update call to gdbarch_value_from_register.
5442 * value.h (default_value_from_register): Update prototype.
5443 * s390-linux-tdep.c (s390_value_from_register): Update interface
5444 and call to default_value_from_register.
5445 * spu-tdep.c (spu_value_from_register): Likewise.
5447 * findvar.c (address_from_register): Remove TYPE argument.
5448 Do not call value_from_register; use gdbarch_value_from_register
5449 with null_frame_id instead.
5450 * value.h (address_from_register): Update prototype.
5451 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5452 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5453 address_from_register interface change.
5455 2014-04-17 Yao Qi <yao@codesourcery.com>
5457 * gdbtypes.h: Update comments to link to types and macros'
5460 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5462 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5464 2014-04-16 Keith Seitz <keiths@redhat.com>
5467 * dwarf2read.c (skip_one_die): Check that all relative-offset
5468 sibling DIEs fall within range of the current reader's buffer.
5469 (read_partial_die): Likewise.
5471 2014-04-16 Keith Seitz <keiths@redhat.com>
5474 * cp-namespace.c (lookup_symbol_file): If the type name of
5475 `this' is NULL, return immediately.
5477 2014-04-14 Keith Seitz <keiths@redhat.com>
5480 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5481 from symbol_matches_domain in symtab.c. All local callers
5482 of symbol_matches_domain updated.
5483 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5484 search STRUCT_DOMAIN.
5485 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5486 independently. standard_lookup will do that automatically.
5487 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5488 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5489 (cp_lookup_symbol_in_namespace): Likewise.
5490 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5491 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5492 may return a STRUCT_DOMAIN match.
5493 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5494 * cp-support.c: Include language.h.
5495 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5497 * psymtab.c (match_partial_symbol): Compare the requested
5498 domain with the symbol's domain directly.
5499 (lookup_partial_symbol): Likewise.
5500 * symtab.c (lookup_symbol_in_language): Explain when/why
5501 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5502 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5503 appropriate languages.
5504 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5505 and moved to ada-lang.c
5506 (lookup_block_symbol): Explain that this function only returns
5507 symbol matching the requested DOMAIN.
5508 Compare the requested domain with the symbol's domain directly.
5509 (iterate_over_symbols): Compare the requested domain with the
5510 symbol's domain directly.
5511 * symtab.h (symbol_matches_domain): Remove.
5513 2014-04-14 Tom Tromey <tromey@redhat.com>
5516 * c-exp.y (type_aggregate_p): New function.
5517 (qualified_name, classify_inner_name): Use it.
5518 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5519 and TYPE_TARGET_TYPE of an enum type.
5520 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5522 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5523 handle TYPE_DECLARED_CLASS.
5524 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5526 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5527 * valops.c (enum_constant_from_type): New function.
5528 (value_aggregate_elt): Use it.
5529 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5532 2014-04-14 Tom Tromey <tromey@redhat.com>
5534 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5535 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5537 * value.h (value_aggregate_elt): Update.
5539 2014-04-14 Tom Tromey <tromey@redhat.com>
5541 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5543 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5545 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5546 (evaluate_subexp_standard): Pass noside argument.
5547 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5548 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5549 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5550 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5551 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5553 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5555 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5556 points to a constant blob.
5558 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5560 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5561 property and store it as the high bound and flag the range accordingly.
5562 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5563 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5564 * gdbtypes.h (enum range_flags): New enum.
5565 (struct range_bounds): Add flags member.
5567 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5569 * c-typeprint.c (c_type_print_varspec_suffix): Added
5570 check for not yet resolved high bound. If unresolved, print
5571 "variable length" string to the console instead of random
5574 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5576 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5578 (ada_template_to_fixed_record_type_1): Likewise.
5579 (ada_to_fixed_type_1): Likewise.
5580 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5581 (cp_print_value): Likewise.
5582 * d-valprint.c (dynamic_array_type): Likewise.
5583 * findvar.c (address_of_variable): Likewise.
5584 * jv-valprint.c (java_value_print): Likewise.
5585 * valops.c (value_ind): Likewise.
5586 * value.c (coerce_ref): Likewise.
5588 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5590 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5591 value and retrieve the dynamic type size.
5593 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5595 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5596 passed to sizeof is dynamic evaluate the argument to compute the length.
5598 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5599 Joel Brobecker <brobecker@adacore.com>
5601 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5602 (dwarf2_evaluate_property): New function.
5603 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5604 * dwarf2read.c (attr_to_dynamic_prop): New function.
5605 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5607 * gdbtypes.c: Include dwarf2loc.h.
5608 (is_dynamic_type): New function.
5609 (resolve_dynamic_type): New function.
5610 (resolve_dynamic_bounds): New function.
5611 (get_type_length): New function.
5612 (check_typedef): Use get_type_length to compute type length.
5613 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5614 (TYPE_LOW_BOUND_KIND): New macro.
5615 (is_dynamic_type): New function prototype.
5616 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5617 to resolve dynamic properties of the type. Update comment.
5618 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5620 2014-04-14 Richard Henderson <rth@redhat.com>
5622 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5624 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5625 Doug Evans <xdje42@gmail.com>
5627 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5628 dereference TYPE_CODE_REF values.
5630 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5632 Revert the following changes due to regressions:
5634 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5635 (dwarf2_evaluate_property): New function.
5636 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5637 * dwarf2read.c (attr_to_dynamic_prop): New function.
5638 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5640 * gdbtypes.c: Include dwarf2loc.h.
5641 (is_dynamic_type): New function.
5642 (resolve_dynamic_type): New function.
5643 (resolve_dynamic_bounds): New function.
5644 (get_type_length): New function.
5645 (check_typedef): Use get_type_length to compute type length.
5646 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5647 (TYPE_LOW_BOUND_KIND): New macro.
5648 (is_dynamic_type): New function prototype.
5649 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5650 to resolve dynamic properties of the type. Update comment.
5651 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5653 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5654 passed to sizeof is dynamic evaluate the argument to compute the length.
5656 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5657 value and retrieve the dynamic type size.
5659 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5660 (ada_template_to_fixed_record_type_1): Likewise.
5661 (ada_to_fixed_type_1): Likewise.
5662 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5663 (cp_print_value): Likewise.
5664 * d-valprint.c (dynamic_array_type): Likewise.
5665 * eval.c (evaluate_subexp_with_coercion): Likewise.
5666 * findvar.c (address_of_variable): Likewise.
5667 * jv-valprint.c (java_value_print): Likewise.
5668 * valops.c (value_ind): Likewise.
5669 * value.c (coerce_ref): Likewise.
5671 * c-typeprint.c (c_type_print_varspec_suffix): Added
5672 check for not yet resolved high bound. If unresolved, print
5673 "variable length" string to the console instead of random
5676 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5677 property and store it as the high bound and flag the range accordingly.
5678 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5679 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5680 * gdbtypes.h (enum range_flags): New enum.
5681 (struct range_bounds): Add flags member.
5683 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5684 points to a constant blob.
5686 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5687 (evaluate_subexp_standard): Pass noside argument.
5688 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5689 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5690 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5691 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5692 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5694 2014-04-11 Keith Seitz <keiths@redhat.com>
5697 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5698 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5701 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5703 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5704 (evaluate_subexp_standard): Pass noside argument.
5705 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5706 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5707 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5708 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5709 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5711 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5713 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5714 points to a constant blob.
5716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5718 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5719 property and store it as the high bound and flag the range accordingly.
5720 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5721 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5722 * gdbtypes.h (enum range_flags): New enum.
5723 (struct range_bounds): Add flags member.
5725 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5727 * c-typeprint.c (c_type_print_varspec_suffix): Added
5728 check for not yet resolved high bound. If unresolved, print
5729 "variable length" string to the console instead of random
5732 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5734 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5735 (ada_template_to_fixed_record_type_1): Likewise.
5736 (ada_to_fixed_type_1): Likewise.
5737 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5738 (cp_print_value): Likewise.
5739 * d-valprint.c (dynamic_array_type): Likewise.
5740 * eval.c (evaluate_subexp_with_coercion): Likewise.
5741 * findvar.c (address_of_variable): Likewise.
5742 * jv-valprint.c (java_value_print): Likewise.
5743 * valops.c (value_ind): Likewise.
5744 * value.c (coerce_ref): Likewise.
5746 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5748 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5749 value and retrieve the dynamic type size.
5751 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5753 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5754 passed to sizeof is dynamic evaluate the argument to compute the length.
5756 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5758 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5759 (dwarf2_evaluate_property): New function.
5760 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5761 * dwarf2read.c (attr_to_dynamic_prop): New function.
5762 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5764 * gdbtypes.c: Include dwarf2loc.h.
5765 (is_dynamic_type): New function.
5766 (resolve_dynamic_type): New function.
5767 (resolve_dynamic_bounds): New function.
5768 (get_type_length): New function.
5769 (check_typedef): Use get_type_length to compute type length.
5770 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5771 (TYPE_LOW_BOUND_KIND): New macro.
5772 (is_dynamic_type): New function prototype.
5773 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5774 to resolve dynamic properties of the type. Update comment.
5775 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5777 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5779 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5780 declaring high/low bounds and change uses accordingly. Call
5781 create_range_type instead of create_static_range_type.
5782 * gdbtypes.c (create_range_type): New function.
5783 (create_range_type): Convert bounds into struct bound_prop and pass
5784 them to create_range_type.
5785 * gdbtypes.h (struct bound_prop): New struct.
5786 (create_range_type): New function prototype.
5787 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5788 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5789 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5791 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5793 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5795 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5796 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5797 * ada-lang.c: All uses of create_range_type updated.
5798 * coffread.c: All uses of create_range_type updated.
5799 * dwarf2read.c: All uses of create_range_type updated.
5800 * f-exp.y: All uses of create_range_type updated.
5801 * m2-valprint.c: All uses of create_range_type updated.
5802 * mdebugread.c: All uses of create_range_type updated.
5803 * stabsread.c: All uses of create_range_type updated.
5804 * valops.c: All uses of create_range_type updated.
5805 * valprint.c: All uses of create_range_type updated.
5807 2014-04-10 Pedro Alves <palves@redhat.com>
5809 * breakpoint.c (single_step_breakpoints)
5810 (single_step_gdbarch): Move up in the file.
5811 (one_breakpoint_xfer_memory): New function, factored out from ...
5812 (breakpoint_xfer_memory): ... here. Also process single-step
5815 2014-04-09 Tristan Gingold <gingold@adacore.com>
5817 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5819 (darwin_decode_exception_message): Free port only after use.
5821 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5823 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5824 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5825 when setting the size of call_length.
5827 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5829 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5830 dereference TYPE_CODE_REF values.
5832 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5834 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5835 end of warning message.
5837 2014-04-03 Doug Evans <dje@google.com>
5839 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5840 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5842 2014-04-02 Alan Modra <amodra@gmail.com>
5844 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5845 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5846 (struct symbol_file_add_from_memory_args): Add size field.
5847 (find_vdso_size): New function.
5848 (add_vsyscall_page): Attempt to find vdso size.
5850 2014-04-01 Doug Evans <dje@google.com>
5852 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5854 2014-04-01 Tristan Gingold <gingold@adacore.com>
5856 * darwin-nat.c (darwin_encode_reply): Add prototype.
5857 (darwin_decode_exception_message): Reply to unknown inferiors.
5858 (darwin_decode_message): Handle message by id. Ignore message
5859 to unknown inferior.
5860 (darwin_wait): Discard unknown messages, add debug trace.
5862 2014-03-31 Doug Evans <dje@google.com>
5864 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5867 2014-03-31 Doug Evans <dje@google.com>
5869 New option "set print symbol-loading".
5871 * solib.c (solib_read_symbols): Only print symbol loading messages
5873 (solib_add): If symbol loading is in "brief" mode, notify user
5874 symbols are being loaded.
5875 (reload_shared_libraries_1): Ditto.
5876 * symfile.c (print_symbol_loading_off): New static global.
5877 (print_symbol_loading_brief): New static global.
5878 (print_symbol_loading_full): New static global.
5879 (print_symbol_loading_enums): New static global.
5880 (print_symbol_loading): New static global.
5881 (print_symbol_loading_p): New function.
5882 (symbol_file_add_with_addrs): Only print symbol loading messages
5884 (_initialize_symfile): Register "print symbol-loading" set/show
5886 * symfile.h (print_symbol_loading_p): Declare.
5888 2014-03-30 Doug Evans <xdje42@gmail.com>
5890 * infrun.c (set_last_target_status): New function.
5891 (handle_inferior_event): Call it.
5893 2014-03-30 Doug Evans <xdje42@gmail.com>
5895 * inferior.h (enum stop_kind): Improve comment.
5897 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5899 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5900 a reference, strip the reference layer before calling
5901 the lang_ops value_has_mutated callback.
5903 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5905 Remove some globals from our parser.
5906 * language.c (unk_lang_parser): Add "struct parser_state"
5908 * language.h (struct language_defn) <la_parser>: Likewise.
5909 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5910 (initialize_expout): Add "struct parser_state" argument.
5911 Rewrite function to use the parser state.
5912 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5913 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5914 write_exp_elt_longcst, write_exp_elt_dblcst,
5915 write_exp_elt_decfloatcst, write_exp_elt_type,
5916 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5917 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5918 write_dollar_variable): Likewise.
5919 (parse_exp_in_context_1): Use parser state.
5920 (insert_type_address_space): Add "struct parser_state" argument.
5922 (increase_expout_size): New function.
5923 * parser-defs.h: Forward declare "struct language_defn" and
5924 "struct parser_state".
5925 (expout, expout_size, expout_ptr): Remove extern declarations.
5926 (parse_gdbarch, parse_language): Rewrite macro declarations to
5927 accept the parser state.
5928 (struct parser_state): New struct.
5929 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5930 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5931 write_exp_elt_decfloatcst, write_exp_elt_type,
5932 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5933 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5934 write_exp_msymbol, write_dollar_variable,
5935 mark_struct_expression, insert_type_address_space): Add "struct
5936 parser_state" argument.
5937 (increase_expout_size): New function.
5938 * utils.c (do_clear_parser_state): New function.
5939 (make_cleanup_clear_parser_state): Likewise.
5940 * utils.h (make_cleanup_clear_parser_state): New function
5942 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5943 Update calls to write_exp* in order to pass the parser state.
5944 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5945 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5946 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5947 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5948 * stap-probe.c (stap_parse_register_operand): Likewise.
5949 (stap_parse_single_operand): Likewise.
5950 (stap_parse_argument_1): Likewise.
5951 (stap_parse_argument): Use parser state.
5952 * stap-probe.h: Include "parser-defs.h".
5953 (struct stap_parse_info) <pstate>: New field.
5954 * c-exp.y (parse_type): Rewrite to use parser state.
5955 (yyparse): Redefine to c_parse_internal.
5956 (pstate): New global variable.
5957 (parse_number): Add "struct parser_state" argument.
5958 (write_destructor_name): Likewise.
5959 (type_exp): Update calls to write_exp* and similars in order to
5961 (exp1, exp, variable, qualified_name, space_identifier,
5962 typename, typebase): Likewise.
5963 (write_destructor_name, parse_number, lex_one_token,
5964 classify_name, classify_inner_name, c_parse): Add "struct
5965 parser_state" argument. Update function to use parser state.
5966 * c-lang.h: Forward declare "struct parser_state".
5967 (c_parse): Add "struct parser_state" argument.
5968 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5969 (yyparse): Redefine macro to ada_parse_internal.
5970 (pstate): New variable.
5971 (write_int, write_object_renaming, write_var_or_type,
5972 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5973 type_int, type_long, type_long_long, type_float, type_double,
5974 type_long_double, type_char, type_boolean, type_system_address):
5975 Add "struct parser_state" argument.
5976 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5977 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5978 var_or_type, aggregate, aggregate_component_list,
5979 positional_list, others, component_group,
5980 component_associations): Update calls to write_exp* and similar
5981 functions in order to use parser state.
5982 (ada_parse, write_var_from_sym, write_int,
5983 write_exp_op_with_string, write_object_renaming,
5984 find_primitive_type, write_selectors, write_ambiguous_var,
5985 write_var_or_type, write_name_assoc, type_int, type_long,
5986 type_long_long, type_float, type_double, type_long_double,
5987 type_char, type_boolean, type_system_address): Add "struct
5988 parser_state" argument. Adjust function to use parser state.
5989 * ada-lang.c (parse): Likewise.
5990 * ada-lang.h: Forward declare "struct parser_state".
5991 (ada_parse): Add "struct parser_state" argument.
5992 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5993 calls to both functions.
5994 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5996 (yyparse): Redefine macro to f_parse_internal.
5997 (pstate): New variable.
5998 (parse_number): Add "struct parser_state" argument.
5999 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6000 and similars in order to use parser state.
6001 (parse_number): Adjust code to use parser state.
6003 (f_parse): New function.
6004 * f-lang.h: Forward declare "struct parser_state".
6005 (f_parse): Add "struct parser_state" argument.
6006 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6008 (yyparse): Redefine macro for java_parse_internal.
6009 (pstate): New variable.
6010 (push_expression_name, push_expression_name, insert_exp): Add
6011 "struct parser_state" argument.
6012 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6013 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6014 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6015 PostIncrementExpression, PostDecrementExpression,
6016 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6017 UnaryExpressionNotPlusMinus, CastExpression,
6018 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6019 RelationalExpression, EqualityExpression, AndExpression,
6020 ExclusiveOrExpression, InclusiveOrExpression,
6021 ConditionalAndExpression, ConditionalOrExpression,
6022 ConditionalExpression, Assignment, LeftHandSide): Update
6023 calls to write_exp* and similars in order to use parser state.
6024 (parse_number): Ajust code to use parser state.
6026 (java_parse): New function.
6027 (push_variable): Add "struct parser_state" argument. Adjust
6028 code to user parser state.
6029 (push_fieldnames, push_qualified_expression_name,
6030 push_expression_name, insert_exp): Likewise.
6031 * jv-lang.h: Forward declare "struct parser_state".
6032 (java_parse): Add "struct parser_state" argument.
6033 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6035 (yyparse): Redefine macro to m2_parse_internal.
6036 (pstate): New variable.
6037 (type_exp, exp, fblock, variable, type): Update calls to
6038 write_exp* and similars to use parser state.
6040 (m2_parse): New function.
6041 * m2-lang.h: Forward declare "struct parser_state".
6042 (m2_parse): Add "struct parser_state" argument.
6043 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6044 * objc-lang.h: Forward declare "struct parser_state".
6045 (end_msglist): Add "struct parser_state" argument.
6046 * p-exp.y (parse_type): Rewrite macro to use parser state.
6047 (yyparse): Redefine macro to pascal_parse_internal.
6048 (pstate): New variable.
6049 (parse_number): Add "struct parser_state" argument.
6050 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6051 write_exp* and similars in order to use parser state.
6052 (parse_number, yylex): Adjust code to use parser state.
6053 (pascal_parse): New function.
6054 * p-lang.h: Forward declare "struct parser_state".
6055 (pascal_parse): Add "struct parser_state" argument.
6056 * go-exp.y (parse_type): Rewrite macro to use parser state.
6057 (yyparse): Redefine macro to go_parse_internal.
6058 (pstate): New variable.
6059 (parse_number): Add "struct parser_state" argument.
6060 (type_exp, exp1, exp, variable, type): Update calls to
6061 write_exp* and similars in order to use parser state.
6062 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6063 to use parser state.
6064 (go_parse): Likewise.
6065 * go-lang.h: Forward declare "struct parser_state".
6066 (go_parse): Add "struct parser_state" argument.
6068 2014-03-27 Doug Evans <dje@google.com>
6070 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6072 2014-03-27 Doug Evans <dje@google.com>
6074 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6075 Remove argument abbrev_section. All callers updated.
6077 2014-03-27 Doug Evans <dje@google.com>
6079 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6080 addr_base, ranges_base.
6082 2014-03-26 Keith Seitz <keiths@redhat.com>
6084 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6085 types, not VAR_DOMAIN.
6087 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6089 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6091 * features/nios2-linux.c: Regenerated.
6092 * features/nios2.c: Regenerated.
6094 2014-03-25 Pedro Alves <palves@redhat.com>
6096 * cli/cli-script.c (script_from_file): Force the interpreter to
6099 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6101 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6102 small stack allocation.
6104 2014-03-24 Tristan Gingold <gingold@adacore.com>
6106 * darwin-nat.c (exc_server): Remove unused prototype.
6107 (darwin_dump_message): Correctly display data on x86_64.
6108 (darwin_encode_reply): Fix style.
6109 Add comments and fix indentation.
6111 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6113 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6115 2014-03-22 Doug Evans <xdje42@gmail.com>
6117 * infcmd.c: Whitespace fixes.
6118 (interrupt_command): Merge two function comments into one.
6120 2014-03-22 Doug Evans <xdje42@gmail.com>
6122 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6125 2014-03-22 Yao Qi <yao@codesourcery.com>
6127 * remote.c (target_read_live_memory): Remove.
6128 (memory_xfer_live_readonly_partial): Rename it to
6129 remote_xfer_live_readonly_partial. Remove argument 'object'.
6130 All callers updated. Call remote_read_bytes_1
6131 instead of target_read_live_memory.
6132 * tracepoint.c (set_traceframe_number): Remove.
6133 (make_cleanup_restore_traceframe_number): Likewise .
6134 * tracepoint.h (set_traceframe_number): Remove declaration.
6135 (make_cleanup_restore_traceframe_number): Likewise.
6137 2014-03-22 Yao Qi <yao@codesourcery.com>
6139 * remote.c (remote_read_bytes): Move code on reading from the
6141 (remote_read_bytes_1): ... here. New function.
6143 2014-03-22 Yao Qi <yao@codesourcery.com>
6145 * ctf.c (ctf_xfer_partial): Check the return value of
6146 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6147 return TARGET_XFER_UNAVAILABLE.
6148 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6149 * target.c (target_read_live_memory): Move it to remote.c.
6150 (memory_xfer_live_readonly_partial): Likewise.
6151 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6152 * remote.c (target_read_live_memory): Moved from target.c.
6153 (memory_xfer_live_readonly_partial): Likewise.
6154 (remote_read_bytes): Factored out from
6155 memory_xfer_partial_1.
6157 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6159 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6162 2014-03-21 Pedro Alves <palves@redhat.com>
6164 * infrun.c (normal_stop): Extend comment.
6166 2014-03-21 Hui Zhu <hui@codesourcery.com>
6167 Pedro Alves <palves@redhat.com>
6169 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6171 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6172 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6173 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6175 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6177 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6178 `z' formatted output modifier.
6180 2014-03-20 Tom Tromey <tromey@redhat.com>
6181 Sergio Durigan Junior <sergiodj@redhat.com>
6183 * probe.c (parse_probes): Turn assert into an ordinary error.
6184 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6185 exceptions when parsing probes. Rearrange the code for clarity.
6187 2014-03-20 Tom Tromey <tromey@redhat.com>
6190 * top.c (execute_command): Only dispatch events if the command
6193 2014-03-20 Tom Tromey <tromey@redhat.com>
6196 * infcall.c: Include event-top.h.
6197 (run_inferior_call): Call async_disable_stdin if needed.
6199 2014-03-20 Pedro Alves <palves@redhat.com>
6201 * infrun.c (prepare_to_proceed): Delete.
6202 (thread_still_needs_step_over): New function.
6203 (find_thread_needs_step_over): New function.
6204 (proceed): If the current thread needs a step-over, set its
6205 steping_over_breakpoint flag. Adjust to use
6206 find_thread_needs_step_over instead of prepare_to_proceed.
6207 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6208 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6210 (switch_back_to_stepped_thread): Step over breakpoints of all
6211 threads not the stepping thread, before switching back to the
6214 2014-03-20 Pedro Alves <palves@redhat.com>
6216 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6218 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6219 * infrun.c (saved_singlestep_ptid)
6220 (stepping_past_singlestep_breakpoint): Delete.
6221 (resume): Remove stepping_past_singlestep_breakpoint handling.
6222 (proceed): Store the prev_pc of the stepping thread too.
6223 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6225 (enum infwait_states): Delete infwait_thread_hop_state.
6226 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6228 (handle_inferior_event): Adjust.
6229 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6230 handling and the thread-hop code. Before removing single-step
6231 breakpoints, check whether the thread hit a single-step breakpoint
6232 of another thread. If it did, the trap is not a random signal.
6233 (switch_back_to_stepped_thread): If the event thread hit a
6234 single-step breakpoint, unblock it before switching to the
6235 stepping thread. Handle the case of the stepped thread having
6237 (keep_going): Handle the case of the current thread moving past a
6238 single-step breakpoint.
6240 2014-03-20 Pedro Alves <palves@redhat.com>
6243 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6244 are being stepped over.
6245 (breakpoint_address_match): Make extern.
6246 * breakpoint.h (breakpoint_address_match): New declaration.
6247 * inferior.h (stepping_past_instruction_at): New declaration.
6248 * infrun.c (struct step_over_info): New type.
6249 (step_over_info): New global.
6250 (set_step_over_info, clear_step_over_info)
6251 (stepping_past_instruction_at): New functions.
6252 (handle_inferior_event): Clear the step-over info when
6253 trap_expected is cleared.
6254 (resume): Remove now stale comment.
6255 (clear_proceed_status): Clear step-over info.
6256 (proceed): Adjust step-over handling to set or clear the step-over
6257 info instead of removing all breakpoints.
6258 (handle_signal_stop): When setting up a thread-hop, don't remove
6260 (stop_stepping): Clear step-over info.
6261 (keep_going): Adjust step-over handling to set or clear step-over
6262 info and then always inserting breakpoints, instead of removing
6263 all breakpoints when stepping over one.
6265 2014-03-20 Pedro Alves <palves@redhat.com>
6267 * infrun.c (previous_inferior_ptid): Adjust comment.
6268 (deferred_step_ptid): Delete.
6269 (infrun_thread_ptid_changed, prepare_to_proceed)
6270 (init_wait_for_inferior): Adjust.
6271 (handle_signal_stop): Delete deferred_step_ptid handling.
6273 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6276 * defs.h (sync_quit_force_run): New declaration.
6277 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6278 * event-top.c (async_sigterm_handler): New declaration.
6279 (async_sigterm_token): New variable.
6280 (async_init_signals): Create also async_sigterm_token.
6281 (async_sigterm_handler): New function.
6282 (sync_quit_force_run): New variable.
6283 (handle_sigterm): Replace quit_force call by other calls.
6284 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6286 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6288 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6289 offset into SPE pseudo registers.
6291 2014-03-18 Pedro Alves <palves@redhat.com>
6294 * inferior.h (print_stop_event): Declare.
6295 * infrun.c (print_stop_event): New, factored out from ...
6296 (normal_stop): ... this.
6297 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6298 of bpstat_print/print_stack_frame.
6300 2014-03-17 Tom Tromey <tromey@redhat.com>
6302 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6304 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6306 * ada-lang.c (decode_constrained_packed_array): Perform a
6307 minimal coercion for reference with coerce_ref instead of
6310 2014-03-17 Tristan Gingold <gingold@adacore.com>
6312 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6313 (darwin_solib_create_inferior_hook): Emit a warning if version
6316 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6318 * python/py-value.c (get_field_flag): Cast flag_name argument to
6319 PyObject_GetAttrString to support Python 2.4.
6321 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6323 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6324 (Global Maintainers): Remove Jan Kratochvil.
6326 2014-03-14 Pedro Alves <palves@redhat.com>
6328 * inferior.h (terminal_ours_for_output): Rename to ...
6329 (child_terminal_ours_for_output): ... this.
6330 (terminal_save_ours): Rename to ...
6331 (child_terminal_save_ours): ... this.
6332 (terminal_ours): Rename to ...
6333 (child_terminal_ours): ... this.
6334 (terminal_inferior): Rename to ...
6335 (child_terminal_inferior): ... this.
6336 (terminal_init_inferior): Rename to ...
6337 (child_terminal_init_inferior): ... this.
6338 (terminal_init_inferior_with_pgrp): Rename to ...
6339 (child_terminal_init_inferior_with_pgrp): ... this.
6340 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6341 (child_terminal_init_with_pgrp): ... this.
6342 (terminal_save_ours): Rename to ...
6343 (child_terminal_save_ours): ... this.
6344 (terminal_init_inferior): Rename to ...
6345 (child_terminal_init): ... this. Adjust.
6346 (terminal_inferior): Rename to ...
6347 (child_terminal_inferior): ... this.
6348 (terminal_ours_for_output): Rename to ...
6349 (child_terminal_ours_for_output): ... this. Adjust.
6350 (terminal_ours): Rename to ...
6351 (child_terminal_ours): ... this.
6352 (terminal_ours_1): Rename to ...
6353 (child_terminal_ours_1): ... this. Adjust.
6354 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6355 * windows-nat.c (do_initial_windows_stuff): Adjust.
6356 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6357 (gnu_terminal_init): ... this. Adjust.
6358 (gnu_target): Adjust.
6359 * inf-child.c (inf_child_target): Adjust.
6361 2014-03-13 Doug Evans <xdje42@gmail.com>
6364 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6367 2014-03-13 Doug Evans <xdje42@gmail.com>
6369 * value.c (record_latest_value): Call release_value_or_incref
6370 instead of release_value.
6372 2014-03-13 Pedro Alves <palves@redhat.com>
6374 * procfs.c (procfs_target): Don't override to_shortname,
6375 to_longname or to_doc.
6377 2014-03-13 Pedro Alves <palves@redhat.com>
6379 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6380 Unix in user visible strings.
6382 2014-03-12 Stan Shebs <stan@codesourcery.com>
6384 * gdbtypes.h: Annotate comments for Doxygen, add a page
6385 block comment with some general info.
6387 2014-03-12 Pedro Alves <palves@redhat.com>
6389 * infcmd.c (prepare_execution_command): New function, factored out
6390 from several execution commands.
6391 (run_command_1, continue_command, step_1, jump_command)
6392 (signal_command, until_command, advance_command, finish_command)
6393 (attach_command): Use prepare_execution_command.
6395 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6397 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6400 (struct arm_linux_thread_points): Removed.
6401 (struct arm_linux_process_info): New.
6402 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6403 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6404 (arm_linux_find_breakpoints_by_tid): Removed.
6405 (struct arch_lwp_info): New.
6406 (arm_linux_find_process_pid): New functions.
6407 (arm_linux_add_process): New functions.
6408 (arm_linux_process_info_get): New functions.
6409 (arm_linux_forget_process): New function.
6410 (arm_linux_get_debug_reg_state): New function.
6411 (struct update_registers_data): New.
6412 (update_registers_callback): New function.
6413 (arm_linux_insert_hw_breakpoint1): Updated.
6414 (arm_linux_remove_hw_breakpoint1): Updated.
6415 (arm_linux_insert_hw_breakpoint): Updated.
6416 (arm_linux_remove_hw_breakpoint): Updated.
6417 (arm_linux_insert_watchpoint): Updated.
6418 (arm_linux_remove_watchpoint): Updated.
6419 (arm_linux_new_thread): Updated.
6420 (arm_linux_prepare_to_resume): New function.
6421 (arm_linux_new_fork): New function.
6422 (_initialize_arm_linux_nat): Updated.
6424 2014-03-12 Pedro Alves <palves@redhat.com>
6426 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6428 2014-03-12 Tom Tromey <tromey@redhat.com>
6430 * inf-child.c (return_zero): New function.
6431 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6432 * aix-thread.c (aix_thread_inferior_created): New function.
6433 (aix_thread_attach): Remove.
6434 (init_aix_thread_ops): Don't set to_attach.
6435 (_initialize_aix_thread): Register inferior_created observer.
6436 * corelow.c (init_core_ops): Don't set to_attach or
6438 * exec.c (init_exec_ops): Don't set to_attach or
6440 * infcmd.c (run_command_1): Use find_run_target. Make direct
6442 (attach_command): Use find_attach_target. Make direct target
6444 * record-btrace.c (init_record_btrace_ops): Don't set
6446 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6448 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6449 set to_create_inferior.
6450 * target.c (complete_target_initialization): Add assertion.
6451 (target_create_inferior): Remove.
6452 (find_default_attach, find_default_create_inferior): Remove.
6453 (find_attach_target, find_run_target): New functions.
6454 (find_default_is_async_p, find_default_can_async_p)
6455 (target_supports_non_stop, target_attach): Remove.
6456 (init_dummy_target): Don't set to_create_inferior or
6457 to_supports_non_stop.
6458 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6459 TARGET_DEFAULT_FUNC.
6460 <to_create_inferior>: Add comment.
6461 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6462 TARGET_DEFAULT_RETURN.
6463 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6464 (find_attach_target, find_run_target): Declare.
6465 (target_create_inferior): Remove.
6466 (target_has_execution_1): Update comment.
6467 (target_supports_non_stop): Remove.
6468 * target-delegates.c: Rebuild.
6470 2014-03-12 Pedro Alves <palves@redhat.com>
6472 * inf-child.h: Update comment to not mention Unix.
6474 2014-03-12 Pedro Alves <palves@redhat.com>
6476 * inf-child.c: Update top comment to not mention Unix. Add
6477 generic comment describing how this target is meant to be used.
6478 (inf_child_post_attach, inf_child_post_startup_inferior)
6479 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6482 2014-03-12 Pedro Alves <palves@redhat.com>
6484 * nto-procfs.c: Include inf-child.h.
6485 (procfs_ops): Delete global.
6486 (procfs_can_run): Delete method.
6487 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6488 target pointer instead of referencing procfs_ops.
6489 (procfs_prepare_to_store): Delete.
6490 (init_procfs_ops): Delete function.
6491 (procfs_target): New function, based on init_procfs_ops, but
6492 inherit inf_child_target.
6493 (_initialize_procfs): Use procfs_target.
6495 2014-03-12 Pedro Alves <palves@redhat.com>
6497 * windows-nat.c: Include inf-child.h.
6498 (windows_ops): Delete global.
6499 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6501 (init_windows_ops): Delete function.
6502 (windows_target): New function, based on init_windows_ops, but
6503 inherit inf_child_target.
6504 (_initialize_windows_nat): Use windows_target. Install x86
6505 specific target methods here.
6507 2014-03-10 Doug Evans <xdje42@gmail.com>
6509 * guile/guile.c (call_initialize_gdb_module): New function.
6510 (initialize_guile): Replace call to scm_init_guile with call to
6513 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6515 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6516 in call to TYPE_CODE macro.
6518 2014-03-10 Jerome Guitton <guitton@adacore.com>
6520 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6521 Resolve tagged types to full view.
6523 2014-03-10 Hui Zhu <hui@codesourcery.com>
6525 * target.h (target_insert_breakpoint): Remove "hardware" from its
6528 2014-03-07 Doug Evans <dje@google.com>
6530 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6532 2014-03-07 Doug Evans <dje@google.com>
6534 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6535 Remove unused local comp_dir_attr. Assert exactly one of
6536 stub_comp_unit_die, stub_comp_dir is non-NULL.
6538 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6540 * target.h (complete_target_initialization, add_target):
6543 2014-03-07 Pedro Alves <palves@redhat.com>
6545 * go32-nat.c: Include inf-child.h.
6546 (go32_ops): Delete global.
6547 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6549 (go32_create_inferior): Push the passed in target pointer instead
6550 of referencing go32_ops.
6551 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6552 (go32_target): New function, based on init_go32_ops, but inherit
6554 (_initialize_go32_nat): Use go32_target. Move parts of
6557 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6559 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6560 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6561 SYMBOL_VALUE_ADDRESS.
6562 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6564 2014-03-06 Yao Qi <yao@codesourcery.com>
6566 * breakpoint.c (get_tracepoint_by_number): Remove argument
6567 optional_p. All callers updated. Adjust comments. Update
6569 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6571 2014-03-06 Yao Qi <yao@codesourcery.com>
6573 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6574 early if get_number returns zero. Use 'p' instead of 'args'.
6576 2014-03-06 Yao Qi <yao@codesourcery.com>
6578 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6581 2014-03-06 Yao Qi <yao@codesourcery.com>
6583 PR breakpoints/16508
6584 * tracepoint.c (check_trace_running): New function.
6585 (trace_find_command): Move code to check_trace_running and
6586 call check_trace_running.
6587 (trace_find_pc_command): Likewise.
6588 (trace_find_tracepoint_command): Likewise.
6589 (trace_find_line_command): Likewise.
6590 (trace_find_range_command): Likewise.
6591 * tracepoint.h (check_trace_running): Likewise.
6592 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6594 2014-03-06 Yao Qi <yao@codesourcery.com>
6596 * target.h (struct target_ops) <to_traceframe_info>: Use
6597 TARGET_DEFAULT_NORETURN (tcomplain ()).
6598 * target-delegates.c: Regenerated.
6600 2014-03-05 Pedro Alves <palves@redhat.com>
6603 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6604 void. Update comment.
6605 (dcache_xfer_memory): Delete.
6606 (dcache_read_memory_partial): New, based on the read bits of
6608 (dcache_update): Add status parameter. Use ULONGEST for len, and
6609 adjust. Discard cache lines if the reason for the update was
6611 * dcache.h (dcache_xfer_memory): Delete declaration.
6612 (dcache_read_memory_partial): New declaration.
6613 (dcache_update): Update prototype.
6614 * target.c (raw_memory_xfer_partial): Update the dcache here.
6615 (memory_xfer_partial_1): Don't handle dcache writes here.
6617 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6619 * remote-sim.c (gdbsim_load): Add const to prog.
6621 2014-03-03 Tom Tromey <tromey@redhat.com>
6623 * elfread.c (probe_key): Change to bfd_data.
6624 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6625 now per-BFD, not per-objfile.
6626 * stap-probe.c (stap_probe_destroy): Update comment.
6627 (handle_stap_probe): Allocate on the per-BFD obstack.
6629 2014-03-03 Tom Tromey <tromey@redhat.com>
6631 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6632 * breakpoint.c (create_longjmp_master_breakpoint): Use
6634 (add_location_to_breakpoint, bkpt_probe_insert_location)
6635 (bkpt_probe_remove_location): Update.
6636 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6637 * elfread.c (elf_symfile_relocate_probe): Remove.
6638 (elf_probe_fns): Update.
6639 (insert_exception_resume_breakpoint): Change type of "probe"
6640 parameter to bound_probe.
6641 (check_exception_resume): Update.
6642 * objfiles.c (objfile_relocate1): Don't relocate probes.
6643 * probe.c (bound_probe_s): New typedef.
6644 (parse_probes): Use get_probe_address. Set sal's objfile.
6645 (find_probe_by_pc): Return a bound_probe.
6646 (collect_probes): Return a VEC(bound_probe_s).
6647 (compare_probes): Update.
6648 (gen_ui_out_table_header_info): Change type of "probes"
6650 (info_probes_for_ops): Update.
6651 (get_probe_address): New function.
6652 (probe_safe_evaluate_at_pc): Update.
6653 * probe.h (struct probe_ops) <get_probe_address>: New field.
6654 <set_semaphore, clear_semaphore>: Add objfile parameter.
6655 (struct probe) <objfile>: Remove field.
6657 <address>: Update comment.
6658 (struct bound_probe): New.
6659 (find_probe_by_pc): Return a bound_probe.
6660 (get_probe_address): Declare.
6661 * solib-svr4.c (struct probe_and_action) <address>: New field.
6662 (hash_probe_and_action, equal_probe_and_action): Update.
6663 (register_solib_event_probe): Add address parameter.
6664 (solib_event_probe_at): Update.
6665 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6667 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6668 (stap_get_probe_address): New function.
6669 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6670 (compile_probe_arg): Update.
6671 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6673 (handle_stap_probe): Don't relocate the probe.
6674 (stap_relocate): Remove.
6675 (stap_gen_info_probes_table_values): Update.
6676 (stap_probe_ops): Remove stap_relocate.
6677 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6678 (debug_sym_probe_fns): Update.
6679 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6680 * symtab.c (init_sal): Use memset.
6681 * symtab.h (struct symtab_and_line) <objfile>: New field.
6682 * tracepoint.c (start_tracing, stop_tracing): Update.
6684 2014-03-03 Tom Tromey <tromey@redhat.com>
6686 * probe.h (parse_probes, find_probe_by_pc)
6687 (find_probes_in_objfile): Fix comments.
6689 2014-03-02 Doug Evans <xdje42@gmail.com>
6691 * infrun.c (handle_signal_stop): Replace test for
6692 TARGET_WAITKIND_STOPPED with an assert.
6694 2014-03-02 Doug Evans <xdje42@gmail.com>
6696 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6698 2014-03-02 Doug Evans <xdje42@gmail.com>
6700 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6702 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6704 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6706 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6708 * i386obsd-nat.c: Include "obsd-nat.h".
6709 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6711 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6713 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6715 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6717 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6719 * mips64obsd-nat.c: Include "obsd-nath".
6720 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6722 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6724 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6726 * amd64obsd-nat.c: Include "obsd-nat,h.
6727 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6729 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6731 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6733 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6734 (find_overload_match): Update call to find_oload_champ.
6735 (find_oload_champ_namespace_loop): Likewise
6737 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6739 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6741 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6742 * config/sparc/obsd64.mh: New file.
6743 * sparc64obsd-nat.c: New file.
6745 * obsd-nat.h: New file.
6746 * obsd-nat.c: New file.
6747 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6748 (ALLDEPFILES): Add obsd-nat.c.
6750 2014-02-28 Tom Tromey <tromey@redhat.com>
6752 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6753 * cli-out.h (cli_ui_out_impl): Now const.
6754 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6755 * ui-out.c (struct ui_out) <impl>: Now const.
6756 (default_ui_out_impl): Now const.
6757 (ui_out_new): Make 'impl' parameter const.
6758 * ui-out.h (ui_out_new): Update.
6760 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6762 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6764 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6766 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6768 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6770 Additional PR 8882 fix.
6771 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6773 2014-02-27 Pedro Alves <palves@redhat.com>
6775 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6778 2014-02-27 Pedro Alves <palves@redhat.com>
6781 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6782 * nat/linux-waitpid.c: Include string.h.
6783 (status_to_str): Moved here and made extern.
6784 * nat/linux-waitpid.h (status_to_str): New declaration.
6786 2014-02-27 Hui Zhu <hui@codesourcery.com>
6789 * infrun.c (ptid_match): Move ...
6790 * common/ptid.c (ptid_match): ... here.
6791 * inferior.h (ptid_match): Move ...
6792 * common/ptid.h (ptid_match): ... here.
6794 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6796 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6797 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6800 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6802 * obsd-tdep.c (obsd_auxv_parse): New function.
6803 (obsd_init_abi): Set auxv_parse.
6805 * gdbarch.sh (auxv_parse): New.
6806 * gdbarch.h: Regenerated.
6807 * gdbarch.c: Regenerated.
6808 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6810 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6812 * guile/scm-value.c (gdbscm_history_append_x): New function.
6813 (value_functions): Add it.
6815 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6817 * dwarf2read.c (attr_value_as_address): New function.
6818 (dwarf2_find_base_address, read_call_site_scope): Use
6819 attr_value_as_address in place of DW_ADDR.
6820 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6821 the low and high addresses. Slight rework of the handling
6822 of the high pc being a constant form, and limit it to
6823 DWARF verson 4 or higher.
6824 (dwarf2_record_block_ranges): Likewise.
6825 (read_partial_die): Likewise.
6826 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6828 2014-02-26 Tom Tromey <tromey@redhat.com>
6830 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6832 2014-02-26 Tom Tromey <tromey@redhat.com>
6834 * elfread.c (elf_read_minimal_symbols): Return early if
6835 minimal symbols have already been read. Add "ei" parameter.
6836 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6837 * minsyms.c (prim_record_minimal_symbol_full): Update.
6838 * objfiles.h (struct objstats) <n_minsyms>: Move...
6839 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6840 * symmisc.c (print_objfile_statistics): Update.
6842 2014-02-26 Tom Tromey <tromey@redhat.com>
6844 * elfread.c (elf_read_minimal_symbols): New function, from
6846 (elf_symfile_read): Call it.
6848 2014-02-26 Tom Tromey <tromey@redhat.com>
6850 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6851 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6852 (lookup_minimal_symbol_solib_trampoline)
6853 (lookup_minimal_symbol_by_pc_section_1)
6854 (lookup_minimal_symbol_and_objfile): Update.
6855 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6856 Don't allocate a minimal symbol if minsyms have already been read.
6857 (build_minimal_symbol_hash_tables): Update.
6858 (install_minimal_symbols): Do nothing if minsyms already read.
6859 Use the per-BFD obstack.
6860 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6861 * objfiles.c (allocate_objfile): Call
6862 terminate_minimal_symbol_table later.
6863 (have_minimal_symbols): Update.
6864 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6865 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6866 Move from struct objfile.
6867 <minsyms_read>: New field.
6868 (struct objfile) <msymbols, minimal_symbol_count,
6869 msymbol_hash, msymbol_demangled_hash>: Move.
6870 (ALL_OBJFILE_MSYMBOLS): Update.
6871 * symfile.c (read_symbols): Set minsyms_read.
6872 (reread_symbols): Update.
6873 * symmisc.c (dump_objfile, dump_msymbols): Update.
6875 2014-02-26 Tom Tromey <tromey@redhat.com>
6877 * minsyms.c (msymbols_sort): Remove.
6878 * minsyms.h (msymbols_sort): Remove.
6879 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6880 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6881 * elfread.c (elf_symtab_read): Don't add section offsets.
6882 * xcoffread.c (record_minimal_symbol): Don't add section offset
6883 to minimal symbol address.
6884 * somread.c (text_offset, data_offset): Remove.
6885 (som_symtab_read): Don't add section offsets to minimal symbol
6887 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6888 Don't add section offsets to minimal symbols.
6889 * coffread.c (coff_symtab_read): Don't add section offsets
6890 to minimal symbol addresses.
6891 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6892 to minimal symbol addresses.
6893 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6894 section offset to minimal symbol addresses.
6895 * mdebugread.c (parse_partial_symbols): Don't add section
6896 offset to minimal symbol addresses.
6897 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6898 offset to minimal symbol addresses.
6900 2014-02-26 Tom Tromey <tromey@redhat.com>
6902 * ada-lang.c (ada_main_name): Update.
6903 (ada_add_standard_exceptions): Update.
6904 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6905 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6906 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6907 * auxv.c (ld_so_xfer_auxv): Update.
6908 * avr-tdep.c (avr_scan_prologue): Update.
6909 * ax-gdb.c (gen_var_ref): Update.
6910 * blockframe.c (get_pc_function_start)
6911 (find_pc_partial_function_gnu_ifunc): Update.
6912 * breakpoint.c (create_overlay_event_breakpoint)
6913 (create_longjmp_master_breakpoint)
6914 (create_std_terminate_master_breakpoint)
6915 (create_exception_master_breakpoint): Update.
6916 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6917 * c-valprint.c (c_val_print): Update.
6918 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6919 * common/agent.c (agent_look_up_symbols): Update.
6920 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6921 * dwarf2loc.c (call_site_to_target_addr): Update.
6922 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6923 * elfread.c (elf_gnu_ifunc_record_cache)
6924 (elf_gnu_ifunc_resolve_by_got): Update.
6925 * findvar.c (default_read_var_value): Update.
6926 * frame.c (inside_main_func): Update.
6927 * frv-tdep.c (frv_frame_this_id): Update.
6928 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6929 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6931 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6932 (hppa_hpux_find_dummy_bpaddr): Update.
6933 * hppa-tdep.c (hppa_symbol_address): Update.
6934 * infcmd.c (until_next_command): Update.
6935 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6937 * linespec.c (minsym_found, add_minsym): Update.
6938 * linux-nat.c (get_signo): Update.
6939 * linux-thread-db.c (inferior_has_bug): Update.
6940 * m32c-tdep.c (m32c_return_value)
6941 (m32c_m16c_address_to_pointer): Update.
6942 * m32r-tdep.c (m32r_frame_this_id): Update.
6943 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6944 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6945 * maint.c (maintenance_translate_address): Update.
6946 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6947 (frob_address): New function.
6948 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6949 frob_address. Rename parameter to "pc_in".
6950 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6952 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6954 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6955 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6956 * objc-lang.c (find_objc_msgsend): Update.
6957 * objfiles.c (objfile_relocate1): Update.
6958 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6959 * p-valprint.c (pascal_val_print): Update.
6960 * parse.c (write_exp_msymbol): Update.
6961 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6962 (ppc_elfv2_skip_entrypoint): Update.
6963 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6964 * printcmd.c (build_address_symbolic, msym_info)
6965 (address_info): Update.
6966 * proc-service.c (ps_pglobal_lookup): Update.
6967 * psymtab.c (find_pc_sect_psymtab_closer)
6968 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6969 Change msymbol parameter to bound_minimal_symbol.
6970 * ravenscar-thread.c (get_running_thread_id): Update.
6971 * remote.c (remote_check_symbols): Update.
6972 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6974 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6975 * solib-dsbt.c (lm_base): Update.
6976 * solib-frv.c (lm_base, main_got): Update.
6977 * solib-irix.c (locate_base): Update.
6978 * solib-som.c (som_solib_create_inferior_hook)
6979 (link_map_start): Update.
6980 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6981 * solib-svr4.c (elf_locate_base, enable_break): Update.
6982 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6983 (flush_ea_cache): Update.
6984 * stabsread.c (define_symbol, scan_file_globals): Update.
6985 * stack.c (find_frame_funname): Update.
6986 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6987 (debug_qf_find_pc_sect_symtab): Update.
6988 * symfile.c (simple_read_overlay_table)
6989 (simple_overlay_update): Update.
6990 * symfile.h (struct quick_symbol_functions)
6991 <find_pc_sect_symtab>: Change type of msymbol to
6992 bound_minimal_symbol.
6993 * symmisc.c (dump_msymbols): Update.
6994 * symtab.c (find_pc_sect_symtab_via_partial)
6995 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6996 (search_symbols, print_msymbol_info): Update.
6997 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6998 (MSYMBOL_VALUE_ADDRESS): Redefine.
6999 (BMSYMBOL_VALUE_ADDRESS): New macro.
7000 * tracepoint.c (scope_info): Update.
7001 * tui/tui-disasm.c (tui_find_disassembly_address)
7002 (tui_get_begin_asm_address): Update.
7003 * valops.c (find_function_in_inferior): Update.
7004 * value.c (value_static_field, value_fn_field): Update.
7006 2014-02-26 Tom Tromey <tromey@redhat.com>
7008 * ada-lang.c (ada_update_initial_language): Update.
7009 (ada_main_name, ada_has_this_exception_support): Update.
7010 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7011 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7012 * arm-tdep.c (arm_skip_stub): Update.
7013 * auxv.c (ld_so_xfer_auxv): Update.
7014 * avr-tdep.c (avr_scan_prologue): Update.
7015 * ax-gdb.c (gen_var_ref): Update.
7016 * breakpoint.c (struct breakpoint_objfile_data)
7017 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7018 type to bound_minimal_symbol.
7019 (create_overlay_event_breakpoint)
7020 (create_longjmp_master_breakpoint)
7021 (create_std_terminate_master_breakpoint)
7022 (create_exception_master_breakpoint): Update.
7023 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7024 * c-exp.y (classify_name): Update.
7025 * coffread.c (coff_symfile_read): Update.
7026 * common/agent.c (agent_look_up_symbols): Update.
7027 * d-lang.c (d_main_name): Update.
7028 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7029 * dec-thread.c (enable_dec_thread): Update.
7030 * dwarf2loc.c (call_site_to_target_addr): Update.
7031 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7032 * eval.c (evaluate_subexp_standard): Update.
7033 * findvar.c (struct minsym_lookup_data) <result>: Change type
7034 to bound_minimal_symbol.
7036 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7037 * frame.c (inside_main_func): Update.
7038 * frv-tdep.c (frv_frame_this_id): Update.
7039 * gcore.c (call_target_sbrk): Update.
7040 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7041 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7043 * go-lang.c (go_main_name): Update.
7044 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7045 (hppa_hpux_find_import_stub_for_addr): Update.
7046 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7047 Update. Change return type.
7048 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7050 * jit.c (jit_breakpoint_re_set_internal): Update.
7051 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7053 * linux-nat.c (get_signo): Update.
7054 * linux-thread-db.c (inferior_has_bug): Update
7055 * m32c-tdep.c (m32c_return_value)
7056 (m32c_m16c_address_to_pointer): Update.
7057 * m32r-tdep.c (m32r_frame_this_id): Update.
7058 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7059 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7060 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7061 lookup_minimal_symbol. Change return type.
7062 (lookup_minimal_symbol): Remove.
7063 (lookup_bound_minimal_symbol): Update.
7064 (lookup_minimal_symbol_text): Change return type.
7065 (lookup_minimal_symbol_solib_trampoline): Change return type.
7066 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7067 (lookup_minimal_symbol_solib_trampoline): Change return type.
7068 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7069 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7070 (value_nsstring, find_imps): Update.
7071 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7072 * p-lang.c (pascal_main_name): Update.
7073 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7074 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7075 * proc-service.c (ps_pglobal_lookup): Update.
7076 * ravenscar-thread.c (get_running_thread_msymbol): Change
7078 (has_ravenscar_runtime, get_running_thread_id): Update.
7079 * remote.c (remote_check_symbols): Update.
7080 * sol-thread.c (ps_pglobal_lookup): Update.
7081 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7082 * solib-dsbt.c (lm_base): Update.
7083 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7085 * solib-irix.c (locate_base): Update.
7086 * solib-som.c (som_solib_create_inferior_hook)
7087 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7089 * solib-spu.c (spu_enable_break): Update.
7090 * solib-svr4.c (elf_locate_base, enable_break): Update.
7091 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7092 (flush_ea_cache): Update.
7093 * stabsread.c (define_symbol): Update.
7094 * symfile.c (simple_read_overlay_table): Update.
7095 * symtab.c (find_pc_sect_line): Update.
7096 * tracepoint.c (scope_info): Update.
7097 * tui-disasm.c (tui_get_begin_asm_address): Update.
7098 * value.c (value_static_field): Update.
7100 2014-02-26 Tom Tromey <tromey@redhat.com>
7102 * minsyms.c (prim_record_minimal_symbol_full): Use
7103 SET_MSYMBOL_VALUE_ADDRESS.
7104 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7105 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7106 SET_MSYMBOL_VALUE_ADDRESS.
7107 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7108 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7110 2014-02-26 Tom Tromey <tromey@redhat.com>
7112 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7113 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7114 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7115 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7116 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7117 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7118 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7119 * ada-lang.c (ada_main_name): Update.
7120 (ada_lookup_simple_minsym): Update.
7121 (ada_make_symbol_completion_list): Update.
7122 (ada_add_standard_exceptions): Update.
7123 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7124 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7125 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7126 * arm-tdep.c (skip_prologue_function): Update.
7127 (arm_skip_stack_protector, arm_skip_stub): Update.
7128 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7129 (arm_wince_skip_main_prologue): Update.
7130 * auxv.c (ld_so_xfer_auxv): Update.
7131 * avr-tdep.c (avr_scan_prologue): Update.
7132 * ax-gdb.c (gen_var_ref): Update.
7133 * block.c (call_site_for_pc): Update.
7134 * blockframe.c (get_pc_function_start): Update.
7135 (find_pc_partial_function_gnu_ifunc): Update.
7136 * breakpoint.c (create_overlay_event_breakpoint): Update.
7137 (create_longjmp_master_breakpoint): Update.
7138 (create_std_terminate_master_breakpoint): Update.
7139 (create_exception_master_breakpoint): Update.
7140 (resolve_sal_pc): Update.
7141 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7142 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7144 * c-valprint.c (c_val_print): Update.
7145 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7146 * coffread.c (coff_symfile_read): Update.
7147 * common/agent.c (agent_look_up_symbols): Update.
7148 * dbxread.c (find_stab_function_addr): Update.
7149 (end_psymtab): Update.
7150 * dwarf2loc.c (call_site_to_target_addr): Update.
7151 (func_verify_no_selftailcall): Update.
7152 (tailcall_dump): Update.
7153 (call_site_find_chain_1): Update.
7154 (dwarf_expr_reg_to_entry_parameter): Update.
7155 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7156 (elf_gnu_ifunc_resolve_by_got): Update.
7157 * f-valprint.c (info_common_command): Update.
7158 * findvar.c (read_var_value): Update.
7159 * frame.c (get_prev_frame_1): Update.
7160 (inside_main_func): Update.
7161 * frv-tdep.c (frv_skip_main_prologue): Update.
7162 (frv_frame_this_id): Update.
7163 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7164 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7165 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7166 (gnuv3_skip_trampoline): Update.
7167 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7168 (hppa64_hpux_in_solib_call_trampoline): Update.
7169 (hppa_hpux_skip_trampoline_code): Update.
7170 (hppa64_hpux_search_dummy_call_sequence): Update.
7171 (hppa_hpux_find_import_stub_for_addr): Update.
7172 (hppa_hpux_find_dummy_bpaddr): Update.
7173 * hppa-tdep.c (hppa_symbol_address)
7174 (hppa_lookup_stub_minimal_symbol): Update.
7175 * i386-tdep.c (i386_skip_main_prologue): Update.
7176 (i386_pe_skip_trampoline_code): Update.
7177 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7178 * infcall.c (get_function_name): Update.
7179 * infcmd.c (until_next_command): Update.
7180 * jit.c (jit_breakpoint_re_set_internal): Update.
7181 (jit_inferior_init): Update.
7182 * linespec.c (minsym_found): Update.
7183 (add_minsym): Update.
7184 * linux-fork.c (info_checkpoints_command): Update.
7185 * linux-nat.c (get_signo): Update.
7186 * linux-thread-db.c (inferior_has_bug): Update.
7187 * m32c-tdep.c (m32c_return_value): Update.
7188 (m32c_m16c_address_to_pointer): Update.
7189 (m32c_m16c_pointer_to_address): Update.
7190 * m32r-tdep.c (m32r_frame_this_id): Update.
7191 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7192 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7193 * maint.c (maintenance_translate_address): Update.
7194 * minsyms.c (add_minsym_to_hash_table): Update.
7195 (add_minsym_to_demangled_hash_table): Update.
7196 (msymbol_objfile): Update.
7197 (lookup_minimal_symbol): Update.
7198 (iterate_over_minimal_symbols): Update.
7199 (lookup_minimal_symbol_text): Update.
7200 (lookup_minimal_symbol_by_pc_name): Update.
7201 (lookup_minimal_symbol_solib_trampoline): Update.
7202 (lookup_minimal_symbol_by_pc_section_1): Update.
7203 (lookup_minimal_symbol_and_objfile): Update.
7204 (prim_record_minimal_symbol_full): Update.
7205 (compare_minimal_symbols): Update.
7206 (compact_minimal_symbols): Update.
7207 (build_minimal_symbol_hash_tables): Update.
7208 (install_minimal_symbols): Update.
7209 (terminate_minimal_symbol_table): Update.
7210 (find_solib_trampoline_target): Update.
7211 (minimal_symbol_upper_bound): Update.
7212 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7213 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7214 (mips_skip_pic_trampoline_code): Update.
7215 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7216 * objc-lang.c (selectors_info): Update.
7217 (classes_info): Update.
7218 (find_methods): Update.
7219 (find_imps): Update.
7220 (find_objc_msgsend): Update.
7221 * objfiles.c (objfile_relocate1): Update.
7222 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7223 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7224 * p-valprint.c (pascal_val_print): Update.
7225 * parse.c (write_exp_msymbol): Update.
7226 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7227 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7228 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7229 * printcmd.c (build_address_symbolic): Update.
7231 (address_info): Update.
7232 * proc-service.c (ps_pglobal_lookup): Update.
7233 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7234 (find_pc_sect_psymtab): Update.
7235 * python/py-framefilter.c (py_print_frame): Update.
7236 * ravenscar-thread.c (get_running_thread_id): Update.
7237 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7239 * remote.c (remote_check_symbols): Update.
7240 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7241 (rs6000_skip_trampoline_code): Update.
7242 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7243 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7244 * solib-dsbt.c (lm_base): Update.
7245 * solib-frv.c (lm_base): Update.
7247 * solib-irix.c (locate_base): Update.
7248 * solib-som.c (som_solib_create_inferior_hook): Update.
7249 (som_solib_desire_dynamic_linker_symbols): Update.
7250 (link_map_start): Update.
7251 * solib-spu.c (spu_enable_break): Update.
7252 (ocl_enable_break): Update.
7253 * solib-svr4.c (elf_locate_base): Update.
7254 (enable_break): Update.
7255 * spu-tdep.c (spu_get_overlay_table): Update.
7256 (spu_catch_start): Update.
7257 (flush_ea_cache): Update.
7258 * stabsread.c (define_symbol): Update.
7259 (scan_file_globals): Update.
7260 * stack.c (find_frame_funname): Update.
7261 (frame_info): Update.
7262 * symfile.c (simple_read_overlay_table): Update.
7263 (simple_overlay_update): Update.
7264 * symmisc.c (dump_msymbols): Update.
7265 * symtab.c (fixup_section): Update.
7266 (find_pc_sect_line): Update.
7267 (skip_prologue_sal): Update.
7268 (search_symbols): Update.
7269 (print_msymbol_info): Update.
7270 (rbreak_command): Update.
7271 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7272 (completion_list_objc_symbol): Update.
7273 (default_make_symbol_completion_list_break_on): Update.
7274 * tracepoint.c (scope_info): Update.
7275 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7276 (tui_get_begin_asm_address): Update.
7277 * valops.c (find_function_in_inferior): Update.
7278 * value.c (value_static_field): Update.
7279 (value_fn_field): Update.
7281 2014-02-26 Tom Tromey <tromey@redhat.com>
7283 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7284 bound minimal symbols. Move code that knows about minsym
7286 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7288 * minsyms.h (minimal_symbol_upper_bound): Declare.
7289 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7290 minimal_symbol_upper_bound.
7292 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7294 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7295 Use the type's name if its basic type does not have a tag.
7297 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7299 * dwarf2read.c (read_subrange_type): Add comment.
7301 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7303 * dwarf2read.c (update_enumeration_type_from_children): New
7304 function, mostly extracted from process_structure_scope.
7305 (read_enumeration_type): Call update_enumeration_type_from_children.
7306 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7307 and flag_flag_enum fields.
7309 2014-02-26 Pedro Alves <palves@redhat.com>
7311 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7312 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7313 to_xfer_partial method.
7315 2014-02-26 Pedro Alves <palves@redhat.com>
7317 * target.c (complete_target_initialization): Don't install
7318 default_xfer_partial as to_xfer_partial hook.
7320 (update_current_target): Don't INHERIT nor de_fault
7321 deprecated_xfer_memory. Delete de_fault macro.
7322 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7323 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7324 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7327 2014-02-26 Pedro Alves <palves@redhat.com>
7329 * go32-nat.c (my_write_child): New function.
7330 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7331 (go32_xfer_partial): New function.
7332 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7333 Instead install a to_xfer_partial hook.
7335 2014-02-26 Pedro Alves <palves@redhat.com>
7337 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7338 to_xfer_partial helper. Rewrite.
7339 (procfs_xfer_partial): New function.
7340 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7341 Install a to_xfer_partial hook.
7343 2014-02-26 Pedro Alves <palves@redhat.com>
7345 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7346 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7347 (m32r_xfer_partial): New function.
7348 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7349 Install a to_xfer_partial hook.
7351 2014-02-26 Pedro Alves <palves@redhat.com>
7353 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7355 (mips_xfer_partial): New function.
7356 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7357 hook. Install a to_xfer_partial hook.
7359 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7361 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7362 * gdbtypes.c (create_array_type_with_stride): New function,
7363 renaming create_array_type, but with an added parameter
7364 called "bit_stride".
7365 (create_array_type): Re-implement using
7366 create_array_type_with_stride.
7367 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7368 and DW_AT_bit_stride attributes.
7370 2014-02-26 Pedro Alves <palves@redhat.com>
7372 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7373 task-specific breakpoints.
7375 2014-02-25 Pedro Alves <palves@redhat.com>
7377 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7378 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7380 2014-02-25 Stan Shebs <stan@codesourcery.com>
7382 * defs.h: Annotate comments for Doxygen.
7384 2014-02-25 Tom Tromey <tromey@redhat.com>
7386 * target.h (target_ignore): Don't declare.
7387 * target.c (target_ignore): Remove.
7389 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7392 * auto-load.c (auto_load_objfile_script_1): Change filename to
7395 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7397 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7398 documentation. Adjust prototype to match the target_ops
7399 to_xfer_partial method. Adjust implementation accordingly.
7401 2014-02-25 Hui Zhu <hui@codesourcery.com>
7403 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7406 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7408 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7409 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7410 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7411 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7412 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7413 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7414 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7415 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7417 (rl78_register_type): Use a data pointer type for SP and
7418 new pseudo registers mentioned above. Use a 16 bit integer
7419 type for all other register pairs.
7420 (rl78_register_name, rl78_g10_register_name): Update for
7421 new pseudo registers.
7422 (rl78_pseudo_register_read): Likewise.
7423 (rl78_pseudo_register_write): Likewise.
7424 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7425 to the newly added pseudo registers.
7427 2014-02-24 Doug Evans <dje@google.com>
7429 * value.c (record_latest_value): Fix comment.
7430 * printcmd.c (print_command_1): Remove code to handle -1 return from
7431 record_latest_value.
7433 2014-02-24 Pedro Alves <palves@redhat.com>
7435 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7436 deprecated_xfer_memory hook.
7437 (procfs_xfer_partial): Call procfs_xfer_memory instead
7438 of the deprecated_xfer_memory target hook.
7439 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7442 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7444 * windows-nat.c (windows_xfer_shared_libraries): Return
7445 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7446 requested object is TARGET_OBJECT_LIBRARIES.
7448 2014-02-24 Yao Qi <yao@codesourcery.com>
7450 * target.h (enum target_xfer_status)
7451 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7452 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7454 * corefile.c (memory_error_message): User updated.
7455 * exec.c (section_table_read_available_memory): Likewise.
7456 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7457 * target.c (target_xfer_status_to_string): Likewise.
7458 (raw_memory_xfer_partial): Likewise.
7459 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7460 * valops.c (read_value_memory): Likewise.
7461 * exec.h: Update comments.
7463 2014-02-24 Yao Qi <yao@codesourcery.com>
7465 * target.c (target_xfer_status_to_string): Rename argument err
7467 * target.h (target_xfer_status_to_string): Update declaration.
7468 Replace target_xfer_error_to_string with
7469 target_xfer_status_to_string in comment.
7471 2014-02-24 Yao Qi <yao@codesourcery.com>
7473 * mips-linux-nat.c (super_close): Update its type.
7474 (mips_linux_close): Pass 'self' to super_close.
7476 2014-02-24 Yao Qi <yao@codesourcery.com>
7478 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7479 * corefile.c (read_memory): Adjusted.
7480 * target.c (target_write_with_progress): Adjusted.
7482 2014-02-23 Yao Qi <yao@codesourcery.com>
7486 2013-10-25 Yao Qi <yao@codesourcery.com>
7488 * remote.c (remote_traceframe_info): Return early if
7489 traceframe is not selected.
7491 2013-07-19 Yao Qi <yao@codesourcery.com>
7493 * target.c (update_current_target): Change the default action
7494 of 'to_traceframe_info' from tcomplain to return_zero.
7495 * target.h (struct target_ops) <to_traceframe_info>: Add more
7498 2014-02-23 Yao Qi <yao@codesourcery.com>
7500 * valops.c (read_value_memory): Rewrite it. Call
7501 target_xfer_partial in a loop.
7502 * exec.h (section_table_available_memory): Remove declaration.
7503 Move comments to ...
7504 * exec.c (section_table_available_memory): ... here. Make it
7507 2014-02-23 Yao Qi <yao@codesourcery.com>
7509 * exec.c (section_table_read_available_memory): New function.
7510 * exec.h (section_table_read_available_memory): Declare.
7511 * ctf.c (ctf_xfer_partial): Call
7512 section_table_read_available_memory.
7513 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7515 2014-02-23 Yao Qi <yao@codesourcery.com>
7517 * ctf.c (ctf_xfer_partial): Move code to ...
7518 * exec.c (exec_read_partial_read_only): ... it. New function.
7519 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7520 * tracefile.c: Include "exec.h".
7521 * exec.h (exec_read_partial_read_only): Declare.
7523 2014-02-23 Yao Qi <yao@codesourcery.com>
7525 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7526 (tfile_has_memory): Remove.
7527 (init_tfile_ops): Don't set fields to_has_all_memory and
7528 to_has_memory of tfile_ops.
7529 * tracefile.c (tracefile_has_all_memory): New function.
7530 (tracefile_has_memory): New function.
7531 (init_tracefile_ops): Initialize fields to_has_all_memory and
7532 to_has_memory of 'ops'.
7534 2014-02-23 Yao Qi <yao@codesourcery.com>
7536 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7537 (ctf_thread_alive, ctf_get_trace_status): Remove.
7538 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7540 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7541 (tfile_has_stack, tfile_has_registers): Remove.
7542 (tfile_thread_alive): Remove.
7543 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7545 * tracefile.c (tracefile_has_stack): New function.
7546 (tracefile_has_registers): New function.
7547 (tracefile_thread_alive): New function.
7548 (tracefile_get_trace_status): New function.
7549 (init_tracefile_ops): New function.
7550 * tracefile.h (init_tracefile_ops): Declare.
7552 2014-02-23 Yao Qi <yao@codesourcery.com>
7554 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7555 (O_LARGEFILE): Likewise.
7556 (tfile_ops): Likewise.
7557 (TRACE_HEADER_SIZE): Likewise.
7558 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7559 (cur_data_size): Likewise.
7560 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7561 (tfile_close, tfile_files_info): Likewise.
7562 (tfile_get_trace_status): Likewise.
7563 (tfile_get_tracepoint_status): Likewise.
7564 (tfile_get_traceframe_address): Likewise.
7565 (tfile_trace_find, match_blocktype): Likewise.
7566 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7567 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7568 (tfile_get_trace_state_variable_value): Likewise.
7569 (tfile_has_all_memory, tfile_has_memory): Likewise.
7570 (tfile_has_stack, tfile_has_registers): Likewise.
7571 (tfile_thread_alive, build_traceframe_info): Likewise.
7572 (tfile_traceframe_info, init_tfile_ops): Likewise.
7573 (_initialize_tracepoint): Don't call init_tfile_ops
7574 and add_target_with_completer.
7575 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7576 exec.h, completer.h and filenames.h.
7577 (_initialize_tracefile_tfile): New function.
7579 2014-02-23 Yao Qi <yao@codesourcery.com>
7581 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7583 (HFILES_NO_SRCDIR): Add tracefile.h.
7584 * ctf.c: Include "tracefile.h".
7585 * tracefile.h: New file.
7586 * tracefile.c: New file
7587 * tracefile-tfile.c: New file.
7588 * tracepoint.c: Include "tracefile.h".
7589 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7590 (stop_reason_names): Add const.
7591 (trace_file_writer_xfree): Move it to tracefile.c.
7592 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7593 (trace_save_ctf): Likewise.
7594 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7595 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7596 (tfile_write_header, tfile_write_regblock_type): Likewise.
7597 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7598 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7599 (tfile_write_raw_data, tfile_end): Likewise.
7600 (tfile_trace_file_writer_new): Likewise.
7601 (free_uploaded_tp): Make it extern.
7602 (free_uploaded_tsv): Make it extern.
7603 (_initialize_tracepoint): Move code to register command 'tsave'
7605 * tracepoint.h (stop_reason_names): Declare.
7606 (struct trace_frame_write_ops): Move it to tracefile.h.
7607 (struct trace_file_write_ops): Likewise.
7608 (struct trace_file_writer): Likewise.
7609 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7611 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7614 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7616 (get_cores_used_by_process): New parameter num_cores, use it.
7617 (linux_xfer_osdata_processes): Pass num_cores to it.
7618 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7621 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7623 * target.c (memory_xfer_partial): Fix length arg in call to
7624 breakpoint_xfer_memory.
7626 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7629 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7630 number comes after the + or - signs. Adjust length of register
7631 name to be extracted.
7633 2014-02-20 Tom Tromey <tromey@redhat.com>
7635 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7636 (ada_varobj_ops): Mark "extern".
7638 2014-02-20 Tom Tromey <tromey@redhat.com>
7640 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7642 2014-02-20 Doug Evans <xdje42@gmail.com>
7644 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7645 All callers updated.
7646 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7647 All callers updated.
7648 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7649 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7651 2014-02-20 lin zuojian <manjian2006@gmail.com>
7652 Joel Brobecker <brobecker@adacore.com>
7653 Doug Evans <xdje42@gmail.com>
7656 * dwarf2read.c (struct die_info): New member in_process.
7657 (reset_die_in_process): New function.
7658 (process_die): Set it at the start, reset when returning.
7659 (inherit_abstract_dies): Only call process_die if origin_child_die
7660 not already being processed.
7662 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7664 * windows-nat.c (handle_unload_dll): Add function documentation.
7665 (do_initial_windows_stuff): Add comment explaining why we wait
7666 until after inferior initialization has finished before
7667 processing all DLLs.
7669 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7671 * windows-nat.c (get_module_name): Delete.
7672 (windows_get_exec_module_filename): New function, mostly
7673 inspired from get_module_name.
7674 (windows_pid_to_exec_file): Replace call to get_module_name
7675 by call to windows_get_exec_module_filename.
7677 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7679 * windows-nat.c (handle_load_dll): Rewrite this function's
7680 introductory comment. Remove code using get_module_name
7681 to get the DLL's name.
7683 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7685 * windows-nat.c (get_windows_debug_event): Ignore
7686 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7687 if windows_initialization_done == 0.
7688 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7689 Adjust implementation to always load all DLLs.
7690 (do_initial_windows_stuff): Replace call to
7691 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7693 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7695 * windows-nat.c (_initialize_windows_nat): Deprecate the
7696 "dll-symbols" command. Turn the "add-shared-symbol-files"
7697 and "assf" aliases into commands, and deprecate them as well.
7698 * NEWS: Add entry explaining that "dll-symbols" and its two
7699 aliases are now deprecated.
7701 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7703 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7704 new-line in debug string. Remove trailing spaces.
7706 2014-02-19 Stan Shebs <stan@codesourcery.com>
7708 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7710 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7712 * NEWS: Add entry for the new feature
7713 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7716 2014-02-19 Stan Shebs <stan@codesourcery.com>
7718 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7720 2014-02-19 Pedro Alves <palves@redhat.com>
7722 * common/ptid.h (struct ptid): Mention that process_stratum
7723 targets should prefer ptid.lwp.
7725 2014-02-19 Pedro Alves <palves@redhat.com>
7727 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7728 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7729 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7730 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7731 store remote thread ids rather than ptid.tid.
7732 (_initialize_remote): Adjust.
7734 2014-02-19 Tom Tromey <tromey@redhat.com>
7736 * target.c (target_get_unwinder): Rewrite.
7737 (target_get_tailcall_unwinder): Rewrite.
7738 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7739 (record_btrace_to_get_tailcall_unwinder): New function.
7740 (init_record_btrace_ops): Update.
7741 * target.h (struct target_ops) <to_get_unwinder,
7742 to_get_tailcall_unwinder>: Now function pointers. Use
7743 TARGET_DEFAULT_RETURN.
7745 2014-02-19 Tom Tromey <tromey@redhat.com>
7747 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7749 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7751 2014-02-19 Tom Tromey <tromey@redhat.com>
7753 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7755 * target-delegates.c: Rebuild.
7756 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7757 TARGET_DEFAULT_FUNC.
7758 * target.c (default_target_decr_pc_after_break): Rename from
7759 forward_target_decr_pc_after_break. Simplify.
7760 (target_decr_pc_after_break): Rely on delegation.
7762 2014-02-19 Tom Tromey <tromey@redhat.com>
7764 * target.c (update_current_target): Do not INHERIT to_doc or
7765 to_magic. Do not de_fault to_open or to_close.
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7769 * gcore.h (objfile_find_memory_regions): Declare.
7770 * gcore.c (objfile_find_memory_regions): No longer static. Add
7772 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7773 * exec.c: Include gcore.h.
7774 (exec_set_find_memory_regions): Remove.
7775 (exec_find_memory_regions): Remove.
7776 (exec_do_find_memory_regions): Remove.
7777 (init_exec_ops): Update.
7778 * defs.h (exec_set_find_memory_regions): Remove.
7780 2014-02-19 Tom Tromey <tromey@redhat.com>
7782 * target-delegates.c: Rebuild.
7783 * target.h (struct target_ops) <to_extra_thread_info,
7784 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7785 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7786 not 0, in TARGET_DEFAULT_RETURN.
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * target.c (complete_target_initialization): Remove casts. Use
7791 return_zero_has_execution.
7792 (return_zero): Add "ignore" argument.
7793 (return_zero_has_execution): New function.
7794 (init_dummy_target): Remove casts. Use
7795 return_zero_has_execution.
7797 2014-02-19 Tom Tromey <tromey@redhat.com>
7799 * target.c (update_current_target): Update comments. Do not
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7804 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7806 * corelow.c (core_read_description): Delegate when needed.
7807 * remote.c (remote_read_description): Delegate when needed.
7808 * target-delegates.c: Rebuild.
7809 * target.c (target_read_description): Rewrite.
7810 * target.h (struct target_ops) <to_read_description>: Update
7811 comment. Use TARGET_DEFAULT_RETURN.
7813 2014-02-19 Tom Tromey <tromey@redhat.com>
7815 * target-delegates.c: Rebuild.
7816 * target.c (update_current_target): Don't inherit or default
7818 (find_default_run_target): Check against delegate_can_run.
7819 * target.h (struct target_ops) <to_can_run>: Use
7820 TARGET_DEFAULT_RETURN.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target-delegates.c: Rebuild.
7825 * target.c (target_disconnect): Unconditionally delegate.
7826 * target.h (struct target_ops) <to_disconnect>: Use
7827 TARGET_DEFAULT_NORETURN.
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7831 * record.c (record_stop): Unconditionally delegate.
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_stop_recording): Unconditionally delegate.
7834 * target.h (struct target_ops) <to_stop_recording>: Use
7835 TARGET_DEFAULT_IGNORE.
7837 2014-02-19 Tom Tromey <tromey@redhat.com>
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_enable_btrace): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_enable_btrace>: Use
7842 TARGET_DEFAULT_NORETURN.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * target-delegates.c: Rebuild.
7847 * target.c (target_read_btrace): Unconditionally delegate.
7848 * target.h (struct target_ops) <to_read_btrace>: Use
7849 TARGET_DEFAULT_NORETURN.
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_teardown_btrace): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_teardown_btrace>: Use
7856 TARGET_DEFAULT_NORETURN.
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_disable_btrace): Unconditionally delegate.
7862 * target.h (struct target_ops) <to_disable_btrace>: Use
7863 TARGET_DEFAULT_NORETURN.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target-delegates.c: Rebuild.
7868 * target.c (default_search_memory): New function.
7869 (simple_search_memory): Update comment.
7870 (target_search_memory): Unconditionally delegate.
7871 * target.h (struct target_ops) <to_search_memory>: Use
7872 TARGET_DEFAULT_FUNC.
7874 2014-02-19 Tom Tromey <tromey@redhat.com>
7876 * auxv.c (default_auxv_parse): No longer static.
7877 (target_auxv_parse): Unconditionally delegate.
7878 * auxv.h (default_auxv_parse): Declare.
7879 * target-delegates.c: Rebuild.
7880 * target.c: Include auxv.h.
7881 * target.h (struct target_ops) <to_auxv_parse>: Use
7882 TARGET_DEFAULT_FUNC.
7884 2014-02-19 Tom Tromey <tromey@redhat.com>
7886 * target-delegates.c: Rebuild.
7887 * target.c (target_memory_map): Unconditionally delegate.
7888 * target.h (struct target_ops) <to_memory_map>: Use
7889 TARGET_DEFAULT_RETURN.
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7893 * target-delegates.c: Rebuild.
7894 * target.c (target_thread_alive): Unconditionally delegate.
7895 * target.h (struct target_ops) <to_thread_alive>: Use
7896 TARGET_DEFAULT_RETURN.
7898 2014-02-19 Tom Tromey <tromey@redhat.com>
7900 * target-delegates.c: Rebuild.
7901 * target.c (target_save_record): Unconditionally delegate.
7902 * target.h (struct target_ops) <to_save_record>: Use
7903 TARGET_DEFAULT_NORETURN.
7905 2014-02-19 Tom Tromey <tromey@redhat.com>
7907 * target-delegates.c: Rebuild.
7908 * target.c (target_delete_record): Unconditionally delegate.
7909 * target.h (struct target_ops) <to_delete_record>: Use
7910 TARGET_DEFAULT_NORETURN.
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7914 * target-delegates.c: Rebuild.
7915 * target.c (target_record_is_replaying): Unconditionally
7917 * target.h (struct target_ops) <to_record_is_replaying>: Use
7918 TARGET_DEFAULT_RETURN.
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7922 * target-delegates.c: Rebuild.
7923 * target.c (target_goto_record_begin): Unconditionally delegate.
7924 * target.h (struct target_ops) <to_goto_record_begin>: Use
7925 TARGET_DEFAULT_NORETURN.
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7929 * target-delegates.c: Rebuild.
7930 * target.c (target_goto_record_end): Unconditionally delegate.
7931 * target.h (struct target_ops) <to_goto_record_end>: Use
7932 TARGET_DEFAULT_NORETURN.
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7936 * target-delegates.c: Rebuild.
7937 * target.c (target_goto_record): Unconditionally delegate.
7938 * target.h (struct target_ops) <to_goto_record>: Use
7939 TARGET_DEFAULT_NORETURN.
7941 2014-02-19 Tom Tromey <tromey@redhat.com>
7943 * target-delegates.c: Rebuild.
7944 * target.c (target_insn_history): Unconditionally delegate.
7945 * target.h (struct target_ops) <to_insn_history>: Use
7946 TARGET_DEFAULT_NORETURN.
7948 2014-02-19 Tom Tromey <tromey@redhat.com>
7950 * target-delegates.c: Rebuild.
7951 * target.c (target_insn_history_from): Unconditionally delegate.
7952 * target.h (struct target_ops) <to_insn_history_from>: Use
7953 TARGET_DEFAULT_NORETURN.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (target_insn_history_range): Unconditionally delegate.
7959 * target.h (struct target_ops) <to_insn_history_range>: Use
7960 TARGET_DEFAULT_NORETURN.
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7964 * target-delegates.c: Rebuild.
7965 * target.c (target_call_history): Unconditionally delegate.
7966 * target.h (struct target_ops) <to_call_history>: Use
7967 TARGET_DEFAULT_NORETURN.
7969 2014-02-19 Tom Tromey <tromey@redhat.com>
7971 * target-delegates.c: Rebuild.
7972 * target.c (target_call_history_from): Unconditionally delegate.
7973 * target.h (struct target_ops) <to_call_history_from>: Use
7974 TARGET_DEFAULT_NORETURN.
7976 2014-02-19 Tom Tromey <tromey@redhat.com>
7978 * target-delegates.c: Rebuild.
7979 * target.c (target_call_history_range): Unconditionally delegate.
7980 * target.h (struct target_ops) <to_call_history_range>: Use
7981 TARGET_DEFAULT_NORETURN.
7983 2014-02-19 Tom Tromey <tromey@redhat.com>
7985 * target-delegates.c: Rebuild.
7986 * target.c (target_verify_memory): Unconditionally delegate.
7987 * target.h (struct target_ops) <to_verify_memory>: Use
7988 TARGET_DEFAULT_NORETURN.
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7992 * target-delegates.c: Rebuild.
7993 * target.c (target_core_of_thread): Unconditionally delegate.
7994 * target.h (struct target_ops) <to_core_of_thread>: Use
7995 TARGET_DEFAULT_RETURN.
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7999 * target-delegates.c: Rebuild.
8000 * target.c (target_flash_done): Unconditionally delegate.
8001 * target.h (struct target_ops) <to_flash_done>: Use
8002 TARGET_DEFAULT_NORETURN.
8004 2014-02-19 Tom Tromey <tromey@redhat.com>
8006 * target-delegates.c: Rebuild.
8007 * target.c (target_flash_erase): Unconditionally delegate.
8008 * target.h (struct target_ops) <to_flash_erase>: Use
8009 TARGET_DEFAULT_NORETURN.
8011 2014-02-19 Tom Tromey <tromey@redhat.com>
8013 * target-delegates.c: Rebuild.
8014 * target.c (target_get_section_table): Unconditionally delegate.
8015 * target.h (struct target_ops) <to_get_section_table>: Use
8016 TARGET_DEFAULT_RETURN.
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8020 * target-delegates.c: Rebuild.
8021 * target.c (target_pid_to_str): Unconditionally delegate.
8022 (init_dummy_target): Don't initialize to_pid_to_str.
8023 (default_pid_to_str): Rename from dummy_pid_to_str.
8024 * target.h (struct target_ops) <to_pid_to_str>: Use
8025 TARGET_DEFAULT_FUNC.
8027 2014-02-19 Tom Tromey <tromey@redhat.com>
8029 * target-delegates.c: Rebuild.
8030 * target.c (target_find_new_threads): Unconditionally delegate.
8031 * target.h (struct target_ops) <to_find_new_threads>: Use
8032 TARGET_DEFAULT_RETURN.
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8036 * target-delegates.c: Rebuild.
8037 * target.c (target_program_signals): Unconditionally delegate.
8038 * target.h (struct target_ops) <to_program_signals>: Use
8039 TARGET_DEFAULT_IGNORE.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target-delegates.c: Rebuild.
8044 * target.c (target_pass_signals): Unconditionally delegate.
8045 * target.h (struct target_ops) <to_pass_signals>: Use
8046 TARGET_DEFAULT_IGNORE.
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8050 * target-delegates.c: Rebuild.
8051 * target.c (default_mourn_inferior): New function.
8052 (target_mourn_inferior): Unconditionally delegate.
8053 * target.h (struct target_ops) <to_mourn_inferior>: Use
8054 TARGET_DEFAULT_FUNC.
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: Rebuild.
8059 * target.c (default_follow_fork): New function.
8060 (target_follow_fork): Unconditionally delegate.
8061 * target.h (struct target_ops) <to_follow_fork>: Use
8062 TARGET_DEFAULT_FUNC.
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * target-delegates.c: Rebuild.
8067 * target.c (target_kill): Unconditionally delegate.
8068 * target.h (struct target_ops) <to_kill>: Use
8069 TARGET_DEFAULT_NORETURN.
8071 2014-02-19 Tom Tromey <tromey@redhat.com>
8073 * target-delegates.c: Rebuild.
8074 * target.c (target_masked_watch_num_registers): Unconditionally
8076 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8077 Use TARGET_DEFAULT_RETURN.
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8081 * target-delegates.c: Rebuild.
8082 * target.c (target_remove_mask_watchpoint): Unconditionally
8084 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8085 TARGET_DEFAULT_RETURN.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target-delegates.c: Rebuild.
8090 * target.c (target_insert_mask_watchpoint): Unconditionally
8092 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8093 TARGET_DEFAULT_RETURN.
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target-delegates.c: Rebuild.
8098 * target.c (target_ranged_break_num_registers): Unconditionally
8100 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8101 Use TARGET_DEFAULT_RETURN.
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target-delegates.c: Rebuild.
8106 * target.c (target_fetch_registers): Unconditionally delegate.
8107 * target.h (struct target_ops) <to_fetch_registers>: Use
8108 TARGET_DEFAULT_NORETURN.
8110 2014-02-19 Tom Tromey <tromey@redhat.com>
8112 * target-delegates.c: Rebuild.
8113 * target.c (update_current_target): Don't inherit or default
8115 * target.h (struct target_ops) <to_stop>: Use
8116 TARGET_DEFAULT_IGNORE.
8118 2014-02-19 Tom Tromey <tromey@redhat.com>
8120 * target-delegates.c: Rebuild.
8121 * target.c (update_current_target): Don't inherit or default
8122 to_can_run_breakpoint_commands.
8123 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8124 Use TARGET_DEFAULT_RETURN.
8126 2014-02-19 Tom Tromey <tromey@redhat.com>
8128 * target-delegates.c: Rebuild.
8129 * target.c (update_current_target): Don't inherit or default
8130 to_supports_evaluation_of_breakpoint_conditions.
8131 * target.h (struct target_ops)
8132 <to_supports_evaluation_of_breakpoint_conditions>: Use
8133 TARGET_DEFAULT_RETURN.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target-delegates.c: Rebuild.
8138 * target.c (update_current_target): Don't inherit or default
8139 to_augmented_libraries_svr4_read.
8140 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8141 Use TARGET_DEFAULT_RETURN.
8143 2014-02-19 Tom Tromey <tromey@redhat.com>
8145 * target-delegates.c: Rebuild.
8146 * target.c (update_current_target): Don't inherit or default
8148 * target.h (struct target_ops) <to_can_use_agent>: Use
8149 TARGET_DEFAULT_RETURN.
8151 2014-02-19 Tom Tromey <tromey@redhat.com>
8153 * target-delegates.c: Rebuild.
8154 * target.c (update_current_target): Don't inherit or default
8156 * target.h (struct target_ops) <to_use_agent>: Use
8157 TARGET_DEFAULT_NORETURN.
8159 2014-02-19 Tom Tromey <tromey@redhat.com>
8161 * target-delegates.c: Rebuild.
8162 * target.c (update_current_target): Don't inherit or default
8164 (return_null): Remove.
8165 * target.h (struct target_ops) <to_traceframe_info>: Use
8166 TARGET_DEFAULT_RETURN.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8172 to_static_tracepoint_markers_by_strid.
8173 * target.h (struct target_ops)
8174 <to_static_tracepoint_markers_by_strid>: Use
8175 TARGET_DEFAULT_NORETURN.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target-delegates.c: Rebuild.
8180 * target.c (update_current_target): Don't inherit or default
8181 to_static_tracepoint_marker_at.
8182 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8183 Use TARGET_DEFAULT_RETURN.
8185 2014-02-19 Tom Tromey <tromey@redhat.com>
8187 * target-delegates.c: Rebuild.
8188 * target.c (update_current_target): Don't inherit or default
8190 * target.h (struct target_ops) <to_set_permissions>: Use
8191 TARGET_DEFAULT_IGNORE.
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8195 * target-delegates.c: Rebuild.
8196 * target.c (update_current_target): Don't inherit or default
8198 * target.h (struct target_ops) <to_get_tib_address>: Use
8199 TARGET_DEFAULT_NORETURN.
8201 2014-02-19 Tom Tromey <tromey@redhat.com>
8203 * target-delegates.c: Rebuild.
8204 * target.c (update_current_target): Don't inherit or default
8206 * target.h (struct target_ops) <to_set_trace_notes>: Use
8207 TARGET_DEFAULT_RETURN.
8209 2014-02-19 Tom Tromey <tromey@redhat.com>
8211 * target-delegates.c: Rebuild.
8212 * target.c (update_current_target): Don't initialize
8213 to_set_trace_buffer_size.
8214 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8215 TARGET_DEFAULT_IGNORE.
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8219 * target-delegates.c: Rebuild.
8220 * target.c (update_current_target): Don't inherit or default
8221 to_set_circular_trace_buffer.
8222 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8223 TARGET_DEFAULT_IGNORE.
8225 2014-02-19 Tom Tromey <tromey@redhat.com>
8227 * target-delegates.c: Rebuild.
8228 * target.c (update_current_target): Don't inherit or default
8229 to_set_disconnected_tracing.
8230 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8231 TARGET_DEFAULT_IGNORE.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target-delegates.c: Rebuild.
8236 * target.c (update_current_target): Don't inherit or default
8237 to_get_min_fast_tracepoint_insn_len.
8238 (return_minus_one): Remove.
8239 * target.h (struct target_ops)
8240 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8242 2014-02-19 Tom Tromey <tromey@redhat.com>
8244 * target-delegates.c: Rebuild.
8245 * target.c (update_current_target): Don't inherit or default
8246 to_get_raw_trace_data.
8247 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8248 TARGET_DEFAULT_NORETURN.
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8252 * target-delegates.c: Rebuild.
8253 * target.c (update_current_target): Don't inherit or default
8254 to_upload_trace_state_variables.
8255 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8256 Use TARGET_DEFAULT_RETURN.
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target-delegates.c: Rebuild.
8261 * target.c (update_current_target): Don't inherit or default
8262 to_upload_tracepoints.
8263 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8264 TARGET_DEFAULT_RETURN.
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8271 * target.h (struct target_ops) <to_save_trace_data>: Use
8272 TARGET_DEFAULT_NORETURN.
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8276 * target-delegates.c: Rebuild.
8277 * target.c (update_current_target): Don't inherit or default
8278 to_get_trace_state_variable_value.
8279 * target.h (struct target_ops)
8280 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't inherit or default
8287 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8291 * target-delegates.c: Rebuild.
8292 * target.c (update_current_target): Don't inherit or default
8294 * target.h (struct target_ops) <to_trace_stop>: Use
8295 TARGET_DEFAULT_NORETURN.
8297 2014-02-19 Tom Tromey <tromey@redhat.com>
8299 * target-delegates.c: Rebuild.
8300 * target.c (update_current_target): Don't inherit or default
8301 to_get_tracepoint_status.
8302 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8303 TARGET_DEFAULT_NORETURN.
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8307 * target-delegates.c: Rebuild.
8308 * target.c (update_current_target): Don't inherit or default
8309 to_get_trace_status.
8310 * target.h (struct target_ops) <to_get_trace_status>: Use
8311 TARGET_DEFAULT_RETURN.
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8315 * target-delegates.c: Rebuild.
8316 * target.c (update_current_target): Don't inherit or default
8318 * target.h (struct target_ops) <to_trace_start>: Use
8319 TARGET_DEFAULT_NORETURN.
8321 2014-02-19 Tom Tromey <tromey@redhat.com>
8323 * target-delegates.c: Rebuild.
8324 * target.c (update_current_target): Don't inherit or default
8325 to_trace_set_readonly_regions.
8326 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8327 Use TARGET_DEFAULT_NORETURN.
8329 2014-02-19 Tom Tromey <tromey@redhat.com>
8331 * target-delegates.c: Rebuild.
8332 * target.c (update_current_target): Don't inherit or default
8333 to_disable_tracepoint.
8334 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8335 TARGET_DEFAULT_NORETURN.
8337 2014-02-19 Tom Tromey <tromey@redhat.com>
8339 * target-delegates.c: Rebuild.
8340 * target.c (update_current_target): Don't inherit or default
8341 to_enable_tracepoint.
8342 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8343 TARGET_DEFAULT_NORETURN.
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8347 * target-delegates.c: Rebuild.
8348 * target.c (update_current_target): Don't inherit or default
8349 to_download_trace_state_variable.
8350 * target.h (struct target_ops) <to_download_trace_state_variable>:
8351 Use TARGET_DEFAULT_NORETURN.
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8355 * target-delegates.c: Rebuild.
8356 * target.c (update_current_target): Don't inherit or default
8357 to_can_download_tracepoint.
8358 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8359 TARGET_DEFAULT_RETURN.
8361 2014-02-19 Tom Tromey <tromey@redhat.com>
8363 * target-delegates.c: Rebuild.
8364 * target.c (update_current_target): Don't inherit or default
8365 to_download_tracepoint.
8366 * target.h (struct target_ops) <to_download_tracepoint>: Use
8367 TARGET_DEFAULT_NORETURN.
8369 2014-02-19 Tom Tromey <tromey@redhat.com>
8371 * target-delegates.c: Rebuild.
8372 * target.c (update_current_target): Don't inherit or default
8374 * target.h (struct target_ops) <to_trace_init>: Use
8375 TARGET_DEFAULT_RETURN.
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8379 * target-delegates.c: Rebuild.
8380 * target.c (update_current_target): Don't inherit or default
8381 to_supports_string_tracing.
8382 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8383 TARGET_DEFAULT_RETURN.
8385 2014-02-19 Tom Tromey <tromey@redhat.com>
8387 * target-delegates.c: Rebuild.
8388 * target.c (update_current_target): Don't inherit or default
8389 to_supports_enable_disable_tracepoint.
8390 * target.h (struct target_ops)
8391 <to_supports_enable_disable_tracepoint>: Use
8392 TARGET_DEFAULT_RETURN.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_supports_multi_process.
8399 * target.h (struct target_ops) <to_supports_multi_process>: Use
8400 TARGET_DEFAULT_RETURN.
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_get_ada_task_ptid.
8407 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8408 TARGET_DEFAULT_FUNC.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_thread_architecture.
8415 * target.h (struct target_ops) <to_thread_architecture>: Use
8416 TARGET_DEFAULT_FUNC.
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_execution_direction.
8423 * target.h (struct target_ops) <to_execution_direction>: Use
8424 TARGET_DEFAULT_FUNC.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_can_execute_reverse.
8431 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8432 TARGET_DEFAULT_RETURN.
8433 (target_can_execute_reverse): Unconditionally delegate.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8440 (dummy_goto_bookmark): Remove.
8441 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8442 * target.h (struct target_ops) <to_goto_bookmark>: Use
8443 TARGET_DEFAULT_NORETURN.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target-delegates.c: Rebuild.
8448 * target.c (update_current_target): Don't inherit or default
8450 (dummy_get_bookmark): Remove.
8451 (init_dummy_target): Don't inherit or default to_get_bookmark.
8452 * target.h (struct target_ops) <to_get_bookmark>: Use
8453 TARGET_DEFAULT_NORETURN
8455 2014-02-19 Tom Tromey <tromey@redhat.com>
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8459 to_make_corefile_notes.
8460 (init_dummy_target): Don't initialize to_make_corefile_notes.
8461 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8462 TARGET_DEFAULT_FUNC.
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8466 * target-delegates.c: Rebuild.
8467 * target.c (update_current_target): Don't inherit or default
8468 to_find_memory_regions.
8469 (init_dummy_target): Don't initialize to_find_memory_regions.
8470 * target.h (struct target_ops) <to_find_memory_regions>: Use
8471 TARGET_DEFAULT_FUNC.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * target-delegates.c: Rebuild.
8476 * target.c (update_current_target): Don't inherit or default
8478 * target.h (struct target_ops) <to_log_command>: Use
8479 TARGET_DEFAULT_IGNORE.
8480 (target_log_command): Unconditionally delegate.
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8484 * target-delegates.c: Rebuild.
8485 * target.c (update_current_target): Don't inherit or default
8486 to_pid_to_exec_file.
8487 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8488 TARGET_DEFAULT_RETURN.
8490 2014-02-19 Tom Tromey <tromey@redhat.com>
8492 * target-delegates.c: Rebuild.
8493 * target.c (update_current_target): Don't inherit or default
8495 (target_thread_name): Unconditionally delegate.
8496 * target.h (struct target_ops) <to_thread_name>: Use
8497 TARGET_DEFAULT_RETURN.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_extra_thread_info.
8504 * target.h (struct target_ops) <to_extra_thread_info>: Use
8505 TARGET_DEFAULT_RETURN.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8512 * target.h (struct target_ops) <to_has_exited>: Use
8513 TARGET_DEFAULT_RETURN..
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_set_syscall_catchpoint.
8520 (return_one): Remove.
8521 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8522 TARGET_DEFAULT_RETURN.
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_insert_exec_catchpoint.
8529 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8530 TARGET_DEFAULT_RETURN.
8532 2014-01-08 Tom Tromey <tromey@redhat.com>
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_insert_exec_catchpoint.
8537 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8538 TARGET_DEFAULT_RETURN.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_remove_vfork_catchpoint.
8545 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8546 TARGET_DEFAULT_RETURN.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_insert_vfork_catchpoint.
8553 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8554 TARGET_DEFAULT_RETURN.
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_remove_fork_catchpoint.
8561 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8562 TARGET_DEFAULT_RETURN.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_insert_fork_catchpoint.
8569 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8570 TARGET_DEFAULT_RETURN.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_post_startup_inferior.
8577 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8578 TARGET_DEFAULT_IGNORE.
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8585 * target.h (struct target_ops) <to_load>: Use
8586 TARGET_DEFAULT_NORETURN.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8593 * target.h (struct target_ops) <to_terminal_info>: Use
8594 TARGET_DEFAULT_FUNC.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8600 to_terminal_save_ours.
8601 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8602 TARGET_DEFAULT_IGNORE.
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8609 * target.h (struct target_ops) <to_terminal_ours>: Use
8610 TARGET_DEFAULT_IGNORE.
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8614 * target-delegates.c: Rebuild.
8615 * target.c (update_current_target): Don't inherit or default
8616 to_terminal_ours_for_output.
8617 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8618 TARGET_DEFAULT_IGNORE.
8620 2014-02-19 Tom Tromey <tromey@redhat.com>
8622 * target-delegates.c: Rebuild.
8623 * target.c (update_current_target): Don't inherit or default
8624 to_terminal_inferior.
8625 * target.h (struct target_ops) <to_terminal_inferior>: Use
8626 TARGET_DEFAULT_IGNORE.
8628 2014-02-19 Tom Tromey <tromey@redhat.com>
8630 * target-delegates.c: Rebuild.
8631 * target.c (update_current_target): Don't inherit or default
8633 * target.h (struct target_ops) <to_terminal_init>: Use
8634 TARGET_DEFAULT_IGNORE.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target-delegates.c: Rebuild.
8639 * target.c (update_current_target): Don't inherit or default
8640 to_can_accel_watchpoint_condition.
8641 * target.h (struct target_ops)
8642 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (update_current_target): Don't inherit or default
8648 to_region_ok_for_hw_watchpoint.
8649 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8650 Use TARGET_DEFAULT_FUNC.
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8654 * target-delegates.c: Rebuild.
8655 * target.c (update_current_target): Don't inherit or default
8656 to_watchpoint_addr_within_range.
8657 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8658 Use TARGET_DEFAULT_FUNC.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't inherit or default
8664 to_remove_watchpoint.
8665 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8666 TARGET_DEFAULT_NORETURN.
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8670 * target-delegates.c: Rebuild.
8671 * target.c (update_current_target): Don't inherit or default
8672 to_insert_watchpoint.
8673 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8674 TARGET_DEFAULT_RETURN.
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8678 * target-delegates.c: Rebuild.
8679 * target.c (update_current_target): Don't inherit or default
8680 to_remove_hw_breakpoint.
8681 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8682 TARGET_DEFAULT_RETURN.
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8686 * target-delegates.c: Rebuild.
8687 * target.c (update_current_target): Don't inherit or default
8688 to_insert_hw_breakpoint.
8689 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8690 TARGET_DEFAULT_RETURN.
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8694 * target-delegates.c: Rebuild.
8695 * target.c (update_current_target): Don't inherit or default
8696 to_can_use_hw_breakpoint.
8697 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8698 TARGET_DEFAULT_RETURN.
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8705 * target.h (struct target_ops) <to_files_info>: Use
8706 TARGET_DEFAULT_IGNORE.
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8710 * target-delegates.c: Rebuild.
8711 * target.c (update_current_target): Don't inherit or default
8713 * target.h (struct target_ops) <to_store>: Use
8714 TARGET_DEFAULT_NORETURN.
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8721 * target.h (struct target_ops) <to_post_attach>: Use
8722 TARGET_DEFAULT_IGNORE.
8724 2014-02-19 Tom Tromey <tromey@redhat.com>
8726 * target-delegates.c: Rebuild.
8727 * target.c (update_current_target): Don't inherit or default
8729 (default_rcmd): New function.
8730 (do_monitor_command): Unconditionally delegate.
8731 * target.h (struct target_ops) <to_rmcd>: Use
8732 TARGET_DEFAULT_FUNC.
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target-delegates.c: Rebuild.
8737 * target.c (init_dummy_target): Don't initialize to_attach.
8738 (target_attach): Unconditionally delegate.
8739 * target.h (struct target_ops) <to_attach>: Use
8740 TARGET_DEFAULT_FUNC.
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8744 * target-delegates.c: Rebuild.
8745 * target.c (target_detach): Unconditionally delegate.
8746 (init_dummy_target): Don't initialize to_detach.
8747 * target.h (struct target_ops) <to_detach>: Use
8748 TARGET_DEFAULT_IGNORE.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8754 (target_augmented_libraries_svr4_read): Add argument.
8755 * target.c (update_current_target): Update.
8756 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8761 * target.h (struct target_ops) <to_call_history_range>: Add
8763 * target.c (target_call_history_range): Add argument.
8764 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8766 (record_btrace_call_history_from): Update.
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8770 * target.h (struct target_ops) <to_call_history_from>: Add
8772 * target.c (target_call_history_from): Add argument.
8773 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * target.h (struct target_ops) <to_call_history>: Add argument.
8779 * target.c (target_call_history): Add argument.
8780 * record-btrace.c (record_btrace_call_history): Add 'self'
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target.h (struct target_ops) <to_insn_history_range>: Add
8787 * target.c (target_insn_history_range): Add argument.
8788 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8790 (record_btrace_insn_history_from): Update.
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8794 * target.h (struct target_ops) <to_insn_history_from>: Add
8796 * target.c (target_insn_history_from): Add argument.
8797 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target.h (struct target_ops) <to_insn_history>: Add argument.
8803 * target.c (target_insn_history): Add argument.
8804 * record-btrace.c (record_btrace_insn_history): Add 'self'
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8809 * target.h (struct target_ops) <to_goto_record>: Add argument.
8810 * target.c (target_goto_record): Add argument.
8811 * record-full.c (record_full_goto): Add 'self' argument.
8812 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8817 * target.c (target_goto_record_end): Add argument.
8818 * record-full.c (record_full_goto_end): Add 'self' argument.
8819 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target.h (struct target_ops) <to_goto_record_begin>: Add
8825 * target.c (target_goto_record_begin): Add argument.
8826 * record-full.c (record_full_goto_begin): Add 'self' argument.
8827 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target.h (struct target_ops) <to_record_is_replaying>: Add
8834 * target.c (target_record_is_replaying): Add argument.
8835 * record-full.c (record_full_is_replaying): Add 'self' argument.
8836 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8838 (record_btrace_xfer_partial, record_btrace_store_registers)
8839 (record_btrace_prepare_to_store, record_btrace_resume)
8840 (record_btrace_wait, record_btrace_decr_pc_after_break)
8841 (record_btrace_find_new_threads, record_btrace_thread_alive):
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8846 * target.h (struct target_ops) <to_delete_record>: Add argument.
8847 * target.c (target_delete_record): Add argument.
8848 * record-full.c (record_full_delete): Add 'self' argument.
8850 2014-02-19 Tom Tromey <tromey@redhat.com>
8852 * target.h (struct target_ops) <to_save_record>: Add argument.
8853 * target.c (target_save_record): Add argument.
8854 * record-full.c (record_full_save): Add 'self' argument.
8855 (record_full_save): Add 'self' argument.
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target.h (struct target_ops) <to_info_record>: Add argument.
8860 * target.c (target_info_record): Add argument.
8861 * record.c (info_record_command): Add argument.
8862 * record-full.c (record_full_info): Add 'self' argument.
8863 * record-btrace.c (record_btrace_info): Add 'self' argument.
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8867 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8868 * target.c (target_stop_recording): Add argument.
8869 * record.c (record_stop): Add argument.
8870 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8875 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8876 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8877 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8879 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8880 (_initialize_amd64_linux_nat): Use it.
8881 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8882 (_initialize_i386_linux_nat): Use it.
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8887 * target.c (target_teardown_btrace): Add argument.
8888 * remote.c (remote_teardown_btrace): Add 'self' argument.
8889 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8891 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8894 2014-02-19 Tom Tromey <tromey@redhat.com>
8896 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8897 * target.c (target_disable_btrace): Add argument.
8898 * remote.c (remote_disable_btrace): Add 'self' argument.
8899 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8901 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8906 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8907 * target.c (target_enable_btrace): Add argument.
8908 * remote.c (remote_enable_btrace): Add 'self' argument.
8909 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8911 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8917 (target_can_use_agent): Add argument.
8918 * target.c (update_current_target): Update.
8919 * remote.c (remote_can_use_agent): Add 'self' argument.
8920 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8924 * target.h (struct target_ops) <to_use_agent>: Add argument.
8925 (target_use_agent): Add argument.
8926 * target.c (update_current_target): Update.
8927 * remote.c (remote_use_agent): Add 'self' argument.
8928 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8932 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8933 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8934 (target_traceframe_info): Add argument.
8935 * target.c (update_current_target): Update.
8936 * remote.c (remote_traceframe_info): Add 'self' argument.
8937 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8941 * target.h (target_static_tracepoint_markers_by_strid): Add
8943 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8945 * target.c (update_current_target): Update.
8946 * remote.c (struct target_ops)
8947 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8948 * linux-nat.c (struct target_ops)
8949 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8955 (target_static_tracepoint_marker_at): Add argument.
8956 * target.c (update_current_target): Update.
8957 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8960 2014-02-19 Tom Tromey <tromey@redhat.com>
8962 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8963 (target_set_permissions): Add argument.
8964 * target.c (update_current_target): Update.
8965 * remote.c (remote_set_permissions): Add 'self' argument.
8966 (remote_start_remote): Update.
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8970 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8971 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8972 (target_get_tib_address): Add argument.
8973 * target.c (update_current_target): Update.
8974 * remote.c (remote_get_tib_address): Add 'self' argument.
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8978 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8979 (target_set_trace_notes): Add argument.
8980 * target.c (update_current_target): Update.
8981 * remote.c (remote_set_trace_notes): Add 'self' argument.
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8987 (target_set_trace_buffer_size): Add argument.
8988 * target.c (update_current_target): Update.
8989 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8993 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8995 (target_set_circular_trace_buffer): Add argument.
8996 * target.c (update_current_target): Update.
8997 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9004 (target_set_disconnected_tracing): Add argument.
9005 * target.c (update_current_target): Update.
9006 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target.h (struct target_ops)
9011 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9012 (target_get_min_fast_tracepoint_insn_len): Add argument.
9013 * target.c (update_current_target): Update.
9014 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9019 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9021 (target_get_raw_trace_data): Add argument.
9022 * target.c (update_current_target): Update.
9023 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9025 2014-02-19 Tom Tromey <tromey@redhat.com>
9027 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9029 (target_upload_trace_state_variables): Add argument.
9030 * target.c (update_current_target): Update.
9031 * remote.c (remote_upload_trace_state_variables): Add 'self'
9033 (remote_start_remote): Update.
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9037 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9039 (target_upload_tracepoints): Add argument.
9040 * target.c (update_current_target): Update.
9041 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9042 (remote_start_remote): Update.
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9046 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9047 (target_save_trace_data): Add argument.
9048 * target.c (update_current_target): Update.
9049 * remote.c (remote_save_trace_data): Add 'self' argument.
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9053 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9055 * target.h (struct target_ops)
9056 <to_get_trace_state_variable_value>: Add argument.
9057 (target_get_trace_state_variable_value): Add argument.
9058 * target.c (update_current_target): Update.
9059 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9061 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9065 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9066 * target.h (struct target_ops) <to_trace_find>: Add argument.
9067 (target_trace_find): Add argument.
9068 * target.c (update_current_target): Update.
9069 * remote.c (remote_trace_find): Add 'self' argument.
9070 * ctf.c (ctf_trace_find): Add 'self' argument.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9075 (target_trace_stop): Add argument.
9076 * target.c (update_current_target): Update.
9077 * remote.c (remote_trace_stop): Add 'self' argument.
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9081 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9082 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9084 (target_get_tracepoint_status): Add argument.
9085 * target.c (update_current_target): Update.
9086 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9091 * target.h (struct target_ops) <to_get_trace_status>: Add
9093 (target_get_trace_status): Add argument.
9094 * target.c (update_current_target): Update.
9095 * remote.c (remote_get_trace_status): Add 'self' argument.
9096 (remote_start_remote, remote_can_download_tracepoint): Update.
9097 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9101 * target.h (struct target_ops) <to_trace_start>: Add argument.
9102 (target_trace_start): Add argument.
9103 * target.c (update_current_target): Update.
9104 * remote.c (remote_trace_start): Add 'self' argument.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9110 (target_trace_set_readonly_regions): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9117 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9119 (target_disable_tracepoint): Add argument.
9120 * target.c (update_current_target): Update.
9121 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9127 (target_enable_tracepoint): Add argument.
9128 * target.c (update_current_target): Update.
9129 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9133 * target.h (struct target_ops) <to_download_trace_state_variable>:
9135 (target_download_trace_state_variable): Add argument.
9136 * target.c (update_current_target): Update.
9137 * remote.c (remote_download_trace_state_variable): Add 'self'
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9144 (target_can_download_tracepoint): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * target.h (struct target_ops) <to_download_tracepoint>: Add
9152 (target_download_tracepoint): Add argument.
9153 * target.c (update_current_target): Update.
9154 * remote.c (remote_download_tracepoint): Add 'self' argument.
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target.h (struct target_ops) <to_trace_init>: Add argument.
9159 (target_trace_init): Add argument.
9160 * target.c (update_current_target): Update.
9161 * remote.c (remote_trace_init): Add 'self' argument.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9166 * target.c (target_fileio_readlink): Add argument.
9167 * remote.c (remote_hostio_readlink): Add 'self' argument.
9168 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9173 * target.c (target_fileio_unlink): Add argument.
9174 * remote.c (remote_hostio_unlink): Add 'self' argument.
9175 (remote_file_delete): Update.
9176 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9181 * target.c (target_fileio_close): Add argument.
9182 * remote.c (remote_hostio_close): Add 'self' argument.
9183 (remote_hostio_close_cleanup): Update.
9184 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9186 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9190 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9191 * target.c (target_fileio_pread): Add argument.
9192 * remote.c (remote_hostio_pread): Add 'self' argument.
9193 (remote_bfd_iovec_pread, remote_file_get): Update.
9194 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9199 * target.c (target_fileio_pwrite): Add argument.
9200 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9201 (remote_file_put): Update.
9202 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9207 * target.c (target_fileio_open): Add argument.
9208 * remote.c (remote_hostio_open): Add 'self' argument.
9209 (remote_bfd_iovec_open): Add 'self' argument.
9210 (remote_file_put): Add 'self' argument.
9211 (remote_file_get): Add 'self' argument.
9212 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9214 2014-02-19 Tom Tromey <tromey@redhat.com>
9216 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9218 (target_can_run_breakpoint_commands): Add argument.
9219 * target.c (update_current_target): Update.
9220 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9222 (remote_insert_breakpoint): Add 'self' argument.
9223 (remote_insert_hw_breakpoint): Add 'self' argument.
9224 (remote_can_run_breakpoint_commands): Add 'self' argument.
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9228 * target.h (struct target_ops)
9229 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9230 (target_supports_evaluation_of_breakpoint_conditions): Add
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9235 (remote_insert_breakpoint): Add 'self' argument.
9236 (remote_insert_hw_breakpoint): Add 'self' argument.
9237 (remote_supports_cond_breakpoints): Add 'self' argument.
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9241 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9243 (target_supports_string_tracing): Add argument.
9244 * target.c (update_current_target): Update.
9245 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9249 * target.h (struct target_ops)
9250 <to_supports_disable_randomization>: Add argument.
9251 * target.c (find_default_supports_disable_randomization): Add
9253 (target_supports_disable_randomization): Add argument.
9254 (find_default_supports_disable_randomization): Add 'self'
9256 * remote.c (extended_remote_supports_disable_randomization): Add
9258 (remote_supports_disable_randomization): Add 'self' argument.
9259 (extended_remote_create_inferior): Update.
9260 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops)
9266 <to_supports_enable_disable_tracepoint>: Add argument.
9267 (target_supports_enable_disable_tracepoint): Add argument.
9268 * target.c (update_current_target): Update.
9269 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9274 * target.h (struct target_ops) <to_supports_multi_process>: Add
9276 (target_supports_multi_process): Add argument.
9277 * target.c (update_current_target): Update.
9278 * remote.c (remote_supports_multi_process): Add 'self' argument.
9279 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9281 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9286 * target.h (struct target_ops) <to_execution_direction>: Add
9288 (target_execution_direction): Add argument.
9289 * target.c (default_execution_direction): Add 'self' argument.
9290 * record-full.c (record_full_execution_direction): Add 'self'
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9297 (target_can_execute_reverse): Add argument.
9298 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9299 * record-full.c (record_full_can_execute_reverse): Add 'self'
9301 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9304 2014-02-19 Tom Tromey <tromey@redhat.com>
9306 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9307 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9309 (target_get_ada_task_ptid): Add argument.
9310 * target.c (update_current_target): Update.
9311 (default_get_ada_task_ptid): Add 'self' argument.
9312 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9313 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9314 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9316 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9318 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9320 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9322 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9323 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9329 (target_goto_bookmark): Add argument.
9330 * target.c (dummy_goto_bookmark): Add 'self' argument.
9331 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9335 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9336 (target_get_bookmark): Add argument.
9337 * target.c (dummy_get_bookmark): Add 'self' argument.
9338 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9342 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9344 (target_make_corefile_notes): Add argument.
9345 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9346 * procfs.c (procfs_make_note_section): Add 'self' argument.
9347 (procfs_make_note_section): Add 'self' argument.
9348 (procfs_make_note_section): Add 'self' argument.
9349 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9351 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9352 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9353 * exec.c (exec_make_note_section): Add 'self' argument.
9354 (exec_make_note_section): Add 'self' argument.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target.h (struct target_ops) <to_find_memory_regions>: Add
9360 (target_find_memory_regions): Add argument.
9361 * target.c (dummy_find_memory_regions): Add 'self' argument.
9362 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9363 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9364 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9365 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9366 * exec. (exec_do_find_memory_regions): New global.
9367 (exec_set_find_memory_regions): Rewrite.
9368 (exec_find_memory_regions): New function.
9369 (init_exec_ops): Use exec_find_memory_regions.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target.h (struct target_ops) <to_supports_non_stop>: Add
9375 * target.c (find_default_supports_non_stop): Add argument.
9376 (target_supports_non_stop): Add argument.
9377 (find_default_supports_non_stop): Add 'self' argument.
9378 * remote.c (remote_supports_non_stop): Add 'self' argument.
9379 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * target.h (struct target_ops) <to_log_command>: Add argument.
9384 (target_log_command): Add argument.
9385 * serial.h (serial_log_command): Add 'self' argument.
9386 * serial.c (serial_log_command): Add 'self' argument.
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9390 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9391 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9393 (target_pid_to_exec_file): Add argument.
9394 * target.c (debug_to_pid_to_exec_file): Add argument.
9395 (update_current_target): Update.
9396 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9397 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9398 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9399 (linux_handle_extended_wait): Update.
9400 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9401 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9402 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9403 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9407 * target.h (struct target_ops) <to_rcmd>: Add argument.
9408 (target_rcmd): Add argument.
9409 * target.c (debug_to_rcmd): Add argument.
9410 (update_current_target, do_monitor_command): Update.
9411 * remote.c (remote_rcmd): Add 'self' argument.
9412 * monitor.c (monitor_rcmd): Add 'self' argument.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * windows-nat.c (windows_stop): Add 'self' argument.
9417 * target.h (struct target_ops) <to_stop>: Add argument.
9418 * target.c (target_stop): Add argument.
9419 (debug_to_stop): Add argument.
9420 (update_current_target): Update.
9421 * remote.c (remote_stop): Add 'self' argument.
9422 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9423 (gdbsim_cntrl_c): Update.
9424 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9425 * procfs.c (procfs_stop): Add 'self' argument.
9426 * nto-procfs.c (procfs_stop): Add 'self' argument.
9427 * monitor.c (monitor_stop): Add 'self' argument.
9428 (monitor_open): Update.
9429 * linux-nat.c (linux_nat_stop): Add argument.
9430 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9431 * gnu-nat.c (gnu_stop): Add 'self' argument.
9432 * darwin-nat.c (darwin_stop): Add 'self' argument.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target.h (struct target_ops) <to_thread_name>: Add argument.
9437 * target.c (target_thread_name): Add argument.
9438 (update_current_target): Update.
9439 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target.h (struct target_ops) <to_extra_thread_info>: Add
9445 (target_extra_thread_info): Add argument.
9446 * target.c (update_current_target): Update.
9447 * remote.c (remote_threads_extra_info): Add 'self' argument.
9448 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9450 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9451 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9452 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9454 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9456 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9458 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * target.h (struct target_ops) <to_program_signals>: Add argument.
9464 * target.c (target_program_signals): Add argument.
9465 * remote.c (remote_program_signals): Add 'self' argument.
9467 2014-02-19 Tom Tromey <tromey@redhat.com>
9469 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9470 * target.c (target_pass_signals): Add argument.
9471 * remote.c (remote_pass_signals): Add 'self' argument.
9472 (remote_start_remote): Update.
9473 * procfs.c (procfs_pass_signals): Add 'self' argument.
9474 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9475 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9476 (linux_nat_create_inferior, linux_nat_attach): Update.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * windows-nat.c (windows_can_run): Add 'self' argument.
9481 * target.h (struct target_ops) <to_can_run>: Add argument.
9482 (target_can_run): Add argument.
9483 * target.c (debug_to_can_run): Add argument.
9484 (update_current_target): Update.
9485 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9486 * inf-child.c (inf_child_can_run): Add 'self' argument.
9487 * go32-nat.c (go32_can_run): Add 'self' argument.
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9491 * target.h (struct target_ops) <to_has_exited>: Add argument.
9492 (target_has_exited): Add argument.
9493 * target.c (debug_to_has_exited): Add argument.
9494 (update_current_target): Update.
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9500 (target_set_syscall_catchpoint): Add argument.
9501 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9503 * target.c (update_current_target): Update.
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9509 (target_remove_exec_catchpoint): Add argument.
9510 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9511 (update_current_target): Update.
9512 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9515 2014-02-19 Tom Tromey <tromey@redhat.com>
9517 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9519 (target_insert_exec_catchpoint): Add argument.
9520 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9521 (update_current_target): Update.
9522 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9529 (target_remove_vfork_catchpoint): Add argument.
9530 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9531 (update_current_target): Update.
9532 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9539 (target_insert_vfork_catchpoint): Add argument.
9540 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9541 (update_current_target): Update.
9542 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9547 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9549 (target_remove_fork_catchpoint): Add argument.
9550 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9551 (update_current_target): Update.
9552 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9559 (target_insert_fork_catchpoint): Add argument.
9560 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9561 (update_current_target): Update.
9562 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9567 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9569 (target_post_startup_inferior): Add argument.
9570 * target.c (debug_to_post_startup_inferior): Add argument.
9571 (update_current_target): Update.
9572 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9574 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9576 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9578 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9580 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9582 (super_post_startup_inferior): Likewise.
9583 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9585 (super_post_startup_inferior): Likewise.
9586 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9587 Add 'self' argument.
9588 (super_post_startup_inferior): Likewise.
9590 2014-02-19 Tom Tromey <tromey@redhat.com>
9592 * target.h (struct target_ops) <to_load>: Add argument.
9593 * target.c (target_load): Add argument.
9594 (debug_to_load): Add argument.
9595 (update_current_target): Update.
9596 * remote.c (remote_load): Add 'self' argument.
9597 * remote-sim.c (gdbsim_load): Add 'self' argument.
9598 * remote-mips.c (mips_load): Add 'self' argument.
9599 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9600 * monitor.c (monitor_load): Add 'self' argument.
9601 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9605 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9606 (target_terminal_info): Add argument.
9607 * target.c (debug_to_terminal_info): Add argument.
9608 (default_terminal_info): Likewise.
9609 * inflow.c (child_terminal_info): Add 'self' argument.
9610 * inferior.h (child_terminal_info): Add 'self' argument.
9611 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9613 2014-02-19 Tom Tromey <tromey@redhat.com>
9615 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9617 (target_terminal_save_ours): Add argument.
9618 * target.c (debug_to_terminal_save_ours): Add argument.
9619 (update_current_target): Update.
9620 * inflow.c (terminal_save_ours): Add 'self' argument.
9621 * inferior.h (terminal_save_ours): Add 'self' argument.
9623 2014-02-19 Tom Tromey <tromey@redhat.com>
9625 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9626 (target_terminal_ours): Add argument.
9627 * target.c (debug_to_terminal_ours): Add argument.
9628 (update_current_target): Update.
9629 * remote.c (remote_terminal_ours): Add 'self' argument.
9630 (remote_close): Update.
9631 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9632 * inflow.c (terminal_ours): Add 'self' argument.
9633 * inferior.h (terminal_ours): Add 'self' argument.
9634 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9636 2014-02-19 Pedro Alves <palves@redhat.com>
9637 Tom Tromey <tromey@redhat.com>
9639 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9641 (target_terminal_ours_for_output): Add argument.
9642 * target.c (debug_to_terminal_ours_for_output): Add argument.
9643 (update_current_target): Update.
9644 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9645 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9646 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9650 * target.h (struct target_ops) <to_terminal_inferior>: Add
9652 * target.c (target_terminal_inferior): Add argument.
9653 (update_current_target): Update.
9654 * remote.c (remote_terminal_inferior): Add 'self' argument.
9655 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9656 * inflow.c (terminal_inferior): Add 'self' argument.
9657 * inferior.h (terminal_inferior): Add 'self' argument.
9658 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9659 (go32_terminal_inferior): Add 'self' argument.
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9663 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9664 (target_terminal_init): Add argument.
9665 * target.c (debug_to_terminal_init): Add argument.
9666 (update_current_target): Update.
9667 * inflow.c (terminal_init_inferior): Add 'self' argument.
9668 * inferior.h (terminal_init_inferior): Add 'self' argument.
9669 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9670 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9674 * target.h (struct target_ops)
9675 <to_can_accel_watchpoint_condition>: Add argument.
9676 (target_can_accel_watchpoint_condition): Add argument.
9677 * target.c (debug_to_can_accel_watchpoint_condition): Add
9679 (update_current_target): Update.
9680 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9687 (target_region_ok_for_hw_watchpoint): Add argument.
9688 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9689 (default_region_ok_for_hw_watchpoint): Add argument.
9690 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9691 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9693 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9695 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9697 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9699 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9701 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9703 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9704 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9706 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9707 Add 'self' argument.
9709 2014-02-19 Tom Tromey <tromey@redhat.com>
9711 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9713 (target_insert_watchpoint): Add argument.
9714 * target.c (debug_to_insert_watchpoint): Add argument.
9715 (update_current_target): Update.
9716 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9717 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9718 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9719 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9720 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9721 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9723 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9724 (procfs_insert_hw_watchpoint): Add 'self' argument.
9725 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9727 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9729 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9731 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9732 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9734 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9739 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9741 (target_remove_watchpoint): Add argument.
9742 * target.c (debug_to_remove_watchpoint): Add argument.
9743 (update_current_target): Update.
9744 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9745 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9746 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9747 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9748 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9749 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9751 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9752 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9754 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9756 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9758 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9759 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9761 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9768 (target_remove_hw_breakpoint): Add argument.
9769 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9770 (update_current_target): Update.
9771 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9772 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9774 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9775 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9777 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9782 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9784 (target_insert_hw_breakpoint): Add argument.
9785 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9786 (update_current_target): Update.
9787 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9788 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9790 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9791 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9792 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9794 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9797 2014-02-19 Tom Tromey <tromey@redhat.com>
9799 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9801 (target_can_use_hardware_watchpoint): Add argument.
9802 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9803 (update_current_target): Update.
9804 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9806 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9808 * remote.c (remote_check_watch_resources): Add 'self' argument.
9809 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9810 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9812 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9813 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9815 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9817 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9819 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9821 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9823 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9825 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9826 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9828 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9833 * target.h (struct target_ops) <to_post_attach>: Add argument.
9834 (target_post_attach): Add argument.
9835 * target.c (debug_to_post_attach): Add argument.
9836 (update_current_target): Update.
9837 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9838 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9839 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9840 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9841 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9845 * windows-nat.c (windows_close): Add 'self' argument.
9846 * tracepoint.c (tfile_close): Add 'self' argument.
9847 * target.h (struct target_ops) <to_close>: Add argument.
9848 * target.c (target_close): Add argument.
9849 (update_current_target): Update.
9850 * remote.c (remote_close): Add 'self' argument.
9851 * remote-sim.c (gdbsim_close): Add 'self' argument.
9852 * remote-mips.c (mips_close): Add 'self' argument.
9853 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9854 * record-full.c (record_full_close): Add 'self' argument.
9855 * record-btrace.c (record_btrace_close): Add 'self' argument.
9856 * monitor.h (monitor_close): Add 'self' argument.
9857 * monitor.c (monitor_close): Add 'self' argument.
9858 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9859 * linux-nat.c (linux_nat_close): Add argument.
9860 * go32-nat.c (go32_close): Add 'self' argument.
9861 * exec.c (exec_close_1): Add 'self' argument.
9862 * ctf.c (ctf_close): Add 'self' argument.
9863 * corelow.c (core_close): Add 'self' argument.
9864 (core_close_cleanup): Update.
9865 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9866 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9870 * remote.c (remote_load): New function.
9871 (init_remote_ops): Use it.
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9875 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9877 * common/linux-btrace.h (linux_supports_btrace): Update.
9878 * remote.c (remote_supports_btrace): Add "self" argument.
9879 * target-delegates.c: Rebuild.
9880 * target.c (target_supports_btrace): Remove.
9881 * target.h (struct target_ops) <to_supports_btrace>: Add
9882 target_ops argument.
9883 (target_supports_btrace): New define.
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9887 * record-full.c (record_full_beneath_to_resume_ops)
9888 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9889 (record_full_beneath_to_wait)
9890 (record_full_beneath_to_store_registers_ops)
9891 (record_full_beneath_to_store_registers)
9892 (record_full_beneath_to_xfer_partial_ops)
9893 (record_full_beneath_to_xfer_partial)
9894 (record_full_beneath_to_insert_breakpoint_ops)
9895 (record_full_beneath_to_insert_breakpoint)
9896 (record_full_beneath_to_remove_breakpoint_ops)
9897 (record_full_beneath_to_remove_breakpoint)
9898 (record_full_beneath_to_stopped_by_watchpoint)
9899 (record_full_beneath_to_stopped_data_address)
9900 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9901 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9902 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9903 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9904 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9905 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9906 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9907 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9908 (record_full_resume, record_full_wait_1)
9909 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9910 (record_full_store_registers, record_full_xfer_partial)
9911 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9912 (record_full_async, record_full_core_xfer_partial): Use target
9914 * target-delegates.c: Rebuild.
9915 * target.c (current_xfer_partial): Remove.
9916 (update_current_target): Do not INHERIT or de_fault
9917 to_insert_breakpoint, to_remove_breakpoint,
9918 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9919 to_is_async_p, to_async. Do not set to_xfer_partial field.
9920 (default_xfer_partial): Simplify.
9921 (current_xfer_partial): Remove.
9922 (target_wait, target_resume): Simplify.
9923 (find_default_can_async_p, find_default_is_async_p): Update.
9924 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9925 to_xfer_partial, to_stopped_by_watchpoint,
9926 to_stopped_data_address.
9927 (target_store_registers): Simplify.
9928 (forward_target_remove_breakpoint)
9929 (forward_target_insert_breakpoint): Remove.
9930 (target_remove_breakpoint, target_insert_breakpoint)
9931 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9932 * target.h (struct target_ops) <to_resume, to_wait,
9933 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9934 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9935 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9937 (forward_target_remove_breakpoint)
9938 (forward_target_insert_breakpoint): Remove.
9939 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9941 (record_btrace_insert_breakpoint): Delegate directly.
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9946 * target-delegates.c: New file.
9947 * target.c: Include target-delegates.c.
9948 (init_dummy_target): Call install_dummy_methods.
9949 (complete_target_initialization): Call install_delegators.
9950 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9951 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9952 * make-target-delegates: New file.
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * record.c (find_record_target): Use find_target_at.
9957 * target.c (find_target_at): New function.
9958 * target.h (find_target_at): Declare.
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9962 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9964 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9966 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9967 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9969 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9971 * linux-nat.c (save_sigtrap): Update.
9972 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9973 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9974 (linux_nat_close): Update.
9975 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9977 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9979 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9980 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9981 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9982 (tmp_to_async): Add 'ops' argument.
9983 (record_full_stopped_by_watchpoint, record_full_async)
9984 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9986 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9987 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9988 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9989 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9990 (remote_is_async_p, remote_async): Add 'ops' argument.
9991 (remote_stopped_data_address): Update.
9992 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9993 * target.c (update_current_target)
9994 (find_default_can_async_p, find_default_is_async_p): Update.
9995 (init_dummy_target): Update.
9996 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9997 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9998 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9999 (target_can_async_p, target_is_async_p, target_async)
10000 (target_stopped_by_watchpoint): Update.
10002 2014-02-19 Yao Qi <yao@codesourcery.com>
10005 * gdbarch.sh: Remove startup_gdbarch.
10006 * gdbarch.c: Regenerated.
10007 * gdbarch.h: Likewise.
10009 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10011 * rl78-tdep.c (rl78_g10_register_name): New function.
10012 (rl78_return_value): Add g10 support.
10013 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10016 2014-02-17 Doug Evans <xdje42@gmail.com>
10018 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10019 (SUBDIR_GUILE_SRCS): Ditto.
10020 (scm-gsmob.o): Ditto.
10022 2014-02-17 Yao Qi <yao@codesourcery.com>
10024 * gnu-nat.c (ILL_RPC): Declare defined function.
10026 2014-02-17 Yao Qi <yao@codesourcery.com>
10028 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10029 mach_msg_type_number_t.
10030 (gnu_write_inferior): Likewise.
10032 2014-02-17 Yao Qi <yao@codesourcery.com>
10034 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10036 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10037 (inf_validate_procs, inf_signal): Likewise.
10038 (S_exception_raise_request): Likewise.
10039 (do_mach_notify_dead_name): Likewise.
10040 (steal_exc_port): Likewise.
10041 (gnu_read_inferior): Change 'copy_count''s type to
10042 mach_msg_type_number_t.
10043 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10046 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10048 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10049 flag. Adjust all users; in particular...
10050 (gnu_wait): ..., don't decrement its value in here...
10051 (gnu_create_inferior): ..., and instead set the flag in here,
10052 around the startup_inferior call, and call that one with
10053 START_INFERIOR_TRAPS_EXPECTED.
10055 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10056 (ILL_RPC): ... new macro.
10057 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10058 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10059 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10060 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10061 functions with ILL_RPC macro.
10062 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10063 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10064 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10065 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10066 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10067 (S_proc_getlogin_reply, S_proc_getsid_reply)
10068 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10069 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10070 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10071 (S_proc_getnports_reply, S_proc_is_important_reply)
10072 (S_proc_get_code_reply): New stub functions, generated with
10075 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10076 collected the type check structures.
10078 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10080 2014-02-14 Doug Evans <dje@google.com>
10082 * target.c (target_write_partial): Fix result type.
10084 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10086 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10087 the proper offsets to access fpregset_t.
10089 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10091 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10092 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10093 * h8300-tdep.c (setmachinelist): Remove global.
10094 * hppa-tdep.c (hppa_sigtramp): Remove global.
10095 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10096 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10097 * ravenscar-thread.c (update_target_observer): Remove global.
10098 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10100 2014-02-12 Tom Tromey <tromey@redhat.com>
10102 * common/rsp-low.c: Update comments.
10103 * common/rsp-low.h: Update comments.
10105 2014-02-12 Tom Tromey <tromey@redhat.com>
10107 * common/rsp-low.c (convert_ascii_to_int): Remove.
10108 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10110 2014-02-12 Tom Tromey <tromey@redhat.com>
10112 * common/rsp-low.h (unhexify): Don't declare.
10113 * common/rsp-low.c (unhexify): Remove.
10115 2014-02-12 Tom Tromey <tromey@redhat.com>
10117 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10118 * common/rsp-low.c (convert_int_to_ascii): Remove.
10120 2014-02-12 Tom Tromey <tromey@redhat.com>
10122 * common/rsp-low.h (hexify): Don't declare.
10123 * common/rsp-low.c (hexify): Remove.
10125 2014-02-12 Tom Tromey <tromey@redhat.com>
10127 * common/rsp-low.c (hexify): Never take strlen of argument.
10129 2014-02-12 Tom Tromey <tromey@redhat.com>
10131 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10132 * remote.c (extended_remote_run, remote_rcmd)
10133 (remote_download_trace_state_variable, remote_save_trace_data)
10134 (remote_set_trace_notes): Update.
10135 * tracepoint.c (encode_source_string, tfile_write_status)
10136 (tfile_write_uploaded_tsv): Update.
10138 2014-02-12 Tom Tromey <tromey@redhat.com>
10140 * tracepoint.c: Include rsp-low.h.
10141 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10142 * remote.c: Include rsp-low.h.
10143 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10144 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10145 (remote_unescape_input): Move to common/rsp-low.c.
10146 * common/rsp-low.h: New file.
10147 * common/rsp-low.c: New file.
10148 * Makefile.in (SFILES): Add common/rsp-low.c.
10149 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10150 (COMMON_OBS): Add rsp-low.o.
10151 (rsp-low.o): New target.
10153 2014-02-12 Tom Tromey <tromey@redhat.com>
10155 * utils.h: Include print-utils.h.
10156 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10157 (int_string, core_addr_to_string, core_addr_to_string_nz)
10158 (hex_string, hex_string_custom): Don't declare.
10159 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10160 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10161 (hex_string_custom, int_string, core_addr_to_string)
10162 (core_addr_to_string_nz, host_address_to_string): Move to
10163 common/print-utils.c.
10164 * common/print-utils.h: New file.
10165 * common/print-utils.c: New file
10166 * Makefile.in (SFILES): Add common/print-utils.c.
10167 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10168 (COMMON_OBS): Add print-utils.o.
10169 (print-utils.o): New target.
10171 2014-02-12 Tom Tromey <tromey@redhat.com>
10173 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10175 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10177 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10179 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10181 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10182 if a PT_IO ptrace request returns sucessfully but indicates that 0
10183 bytes were transferred.
10185 2014-02-12 Pedro Alves <palves@redhat.com>
10186 Kevin Buettner <kevinb@redhat.com>
10188 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10189 TYPE_INSTANCE_FLAG_CODE_SPACE.
10191 2014-02-12 Pedro Alves <palves@redhat.com>
10193 * h8300-tdep.c (pseudo_from_raw_register)
10194 (raw_from_pseudo_register): New functions.
10195 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10198 2014-02-12 Pedro Alves <palves@redhat.com>
10200 * h8300-tdep.c (h8300_register_sim_regno): New function.
10201 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10202 gdbarch_register_sim_regno hook.
10204 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10206 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10208 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10210 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10212 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10214 * obsd-tdep.h (obsd_init_abi): New prototype.
10215 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10216 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10217 (obsd_init_abi): New functions.
10218 * i386obsd-tdep.c: Include "obsd-tdep.h".
10219 (i386obsd_init_abi): Call obsd_init_abi.
10220 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10221 (amd64obsd_init_abi): Call obsd_init_abi.
10222 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10223 obsd-tdep.c to gdb_target_obs.
10225 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10227 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10228 double float arguments to 16-byte in the argument slots.
10230 2014-02-11 Doug Evans <xdje42@gmail.com>
10232 * configure.ac: Don't crash if pkg-config is not found and guile
10233 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10235 * configure: Regenerate.
10237 2014-02-11 Yao Qi <yao@codesourcery.com>
10239 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10240 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10241 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10242 * gnu-nat.c (gnu_xfer_memory): Likewise.
10243 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10244 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10245 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10246 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10248 2014-02-11 Yao Qi <yao@codesourcery.com>
10250 * target.h (enum target_xfer_error): Rename to ...
10251 (enum target_xfer_status): ... it. New. All users updated.
10252 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10254 (TARGET_XFER_STATUS_ERROR_P): New macro.
10255 (target_xfer_error_to_string): Remove declaration.
10256 (target_xfer_status_to_string): Declare.
10257 (target_xfer_partial_ftype): Adjust it.
10258 (struct target_ops) <to_xfer_partial>: Return
10259 target_xfer_status. Add argument xfered_len. Update
10261 * target.c (target_xfer_error_to_string): Rename to ...
10262 (target_xfer_status_to_string): ... it. New. All callers
10264 (target_read_live_memory): Likewise. Call target_xfer_partial
10265 instead of target_read.
10266 (memory_xfer_live_readonly_partial): Return
10267 target_xfer_status. Add argument xfered_len.
10268 (raw_memory_xfer_partial): Likewise.
10269 (memory_xfer_partial_1): Likewise.
10270 (memory_xfer_partial): Likewise.
10271 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10272 properly. Update debug message.
10273 (default_xfer_partial, current_xfer_partial): Likewise.
10274 (target_write_partial): Likewise.
10275 (target_read_partial): Likewise. All callers updated.
10276 (read_whatever_is_readable): Likewise.
10277 (target_write_with_progress): Likewise.
10278 (target_read_alloc_1): Likewise.
10280 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10281 * auxv.c (procfs_xfer_auxv): Likewise.
10282 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10283 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10284 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10285 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10286 * corefile.c (read_memory): Adjust.
10287 * corelow.c (core_xfer_partial): Likewise.
10288 * ctf.c (ctf_xfer_partial): Likewise.
10289 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10291 (darwin_xfer_partial): Likewise.
10292 * exec.c (section_table_xfer_memory_partial): Likewise. All
10294 (exec_xfer_partial): Likewise.
10295 * exec.h (section_table_xfer_memory_partial): Update
10297 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10299 (gnu_xfer_partial): Likewise.
10300 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10301 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10302 (ia64_hpux_xfer_solib_got): Likewise.
10303 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10304 type of 'partial_len' to ULONGEST.
10305 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10306 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10307 (linux_nat_xfer_partial): Likewise.
10308 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10309 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10310 * monitor.c (monitor_xfer_memory): Likewise.
10311 (monitor_xfer_partial): Likewise.
10312 * procfs.c (procfs_xfer_partial): Likewise.
10313 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10314 * record-full.c (record_full_xfer_partial): Likewise.
10315 (record_full_core_xfer_partial): Likewise.
10316 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10317 (gdbsim_xfer_partial): Likewise.
10318 * remote.c (remote_write_bytes_aux): Likewise. All callers
10320 (remote_write_bytes, remote_read_bytes): Likewise. All
10322 (remote_flash_erase): Likewise. All callers updated.
10323 (remote_write_qxfer): Likewise. All callers updated.
10324 (remote_read_qxfer): Likewise. All callers updated.
10325 (remote_xfer_partial): Likewise.
10326 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10327 (rs6000_xfer_shared_libraries): Likewise.
10328 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10329 (sol_thread_xfer_partial): Likewise.
10330 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10331 (sparc_xfer_partial): Likewise.
10332 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10334 (spu_xfer_partial): Likewise.
10335 * spu-multiarch.c (spu_xfer_partial): Likewise.
10336 * tracepoint.c (tfile_xfer_partial): Likewise.
10337 * windows-nat.c (windows_xfer_memory): Likewise.
10338 (windows_xfer_shared_libraries): Likewise.
10339 (windows_xfer_partial): Likewise.
10340 * valprint.c: Replace 'target_xfer_error' with
10341 'target_xfer_status' in comments.
10343 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10345 Checked in by Joel Brobecker <brobecker@adacore.com>.
10346 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10348 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10350 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10351 function parameters.
10353 2014-02-10 Will Newton <will.newton@linaro.org>
10355 * elfread.c (elf_rel_plt_read): Look for a .got section if
10356 looking up .got.plt fails.
10357 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10358 on address passed to elf_gnu_ifunc_record_cache.
10359 (elf_gnu_ifunc_resolve_addr): Likewise.
10360 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10362 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10364 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10365 (X_RETTURN): New macro.
10366 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10368 * sparc64-tdep.c (sparc64_init_abi): Hook
10369 sparc_in_function_epilogue_p.
10371 2014-02-10 Gary Benson <gbenson@redhat.com>
10373 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10374 Rename name_matcher to symbol_matcher.
10376 2014-02-10 Gary Benson <gbenson@redhat.com>
10378 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10379 Use expand_symtabs_file_matcher_ftype and
10380 expand_symtabs_symbol_matcher_ftype.
10382 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10384 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10385 (struct ada_symbol_cache): New.
10386 (ada_free_symbol_cache): Forward declare.
10387 (struct ada_pspace_data): New.
10388 (ada_pspace_data_handle): New static global.
10389 (get_ada_pspace_data, ada_pspace_data_cleanup)
10390 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10391 (cache_space, cache): Delete, now folded inside struct
10393 (ada_get_symbol_cache): New function.
10394 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10396 (_initialize_ada_language): Remove initialization of cache_space.
10397 Move call to observer_attach_inferior_exit up, grouping it
10398 with the other observer registrations inside this function.
10399 Rename command to be more general. Add call to
10400 register_program_space_data_with_cleanup.
10402 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10404 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10405 ada_new_objfile_observer.
10406 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10407 (_initialize_tasks): Update uses of ada_new_objfile_observer
10408 and ada_tasks_normal_stop_observer.
10410 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10412 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10413 returned by the 'Length attribute to integer.
10415 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10417 * ada-lang.c (_initialize_ada_language): Initialize
10418 cache_space obstack.
10420 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10422 * ada-lang.c (HASH_SIZE): New macro.
10423 (struct cache_entry): New type.
10424 (cache_space, cache): New static globals.
10425 (ada_clear_symbol_cache, find_entry): New functions.
10426 (lookup_cached_symbol, cache_symbol): Implement.
10427 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10428 (_initialize_ada_language): Attach ada_new_objfile_observer
10429 and ada_free_objfile_observer.
10431 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10433 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10434 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10435 struct block * parameter.
10436 (ada_lookup_symbol_list_worker): Constify local variable "block".
10437 Remove cast which is no longer necessary.
10439 2014-02-10 Doug Evans <xdje42@gmail.com>
10441 Add Guile as an extension language.
10442 * NEWS: Mention Guile scripting.
10443 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10444 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10445 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10446 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10447 (CLIBS): Add GUILE_LIBS.
10448 (install-guile): New rule.
10449 (guile.o): New rule.
10450 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10451 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10452 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10453 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10454 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10455 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10456 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10457 * configure.ac: New option --with-guile.
10458 * configure: Regenerate.
10459 * config.in: Regenerate.
10460 * auto-load.c: Remove #include "python/python.h". Add #include
10461 "gdb/section-scripts.h".
10462 (source_section_scripts): Handle Guile scripts.
10463 (_initialize_auto_load): Add name of Guile objfile script to
10464 scripts-directory help text.
10465 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10466 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10467 (struct breakpoint): New member scm_bp_object.
10468 * defs.h (enum command_control_type): New value guile_control.
10469 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10471 (show_user): Update comment.
10472 (_initialize_cli_cmds): Update help text for "show user". Update help
10473 text for max-user-call-depth.
10474 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10476 (multi_line_command_p): Add guile_control.
10477 (print_command_lines): Handle guile_control.
10478 (execute_control_command, recurse_read_control_structure): Ditto.
10479 (process_next_line): Recognize "guile" commands.
10480 * disasm.c (gdb_disassemble_info): Make non-static.
10481 * disasm.h: #include "dis-asm.h".
10482 (struct gdbarch): Add forward decl.
10483 (gdb_disassemble_info): Declare.
10484 * extension.c: #include "guile/guile.h".
10485 (extension_languages): Add guile.
10486 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10487 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10488 * gdbtypes.c (get_unsigned_type_max): New function.
10489 (get_signed_type_minmax): New function.
10490 * gdbtypes.h (get_unsigned_type_max): Declare.
10491 (get_signed_type_minmax): Declare.
10492 * guile/README: New file.
10493 * guile/guile-internal.h: New file.
10494 * guile/guile.c: New file.
10495 * guile/guile.h: New file.
10496 * guile/scm-arch.c: New file.
10497 * guile/scm-auto-load.c: New file.
10498 * guile/scm-block.c: New file.
10499 * guile/scm-breakpoint.c: New file.
10500 * guile/scm-disasm.c: New file.
10501 * guile/scm-exception.c: New file.
10502 * guile/scm-frame.c: New file.
10503 * guile/scm-gsmob.c: New file.
10504 * guile/scm-iterator.c: New file.
10505 * guile/scm-lazy-string.c: New file.
10506 * guile/scm-math.c: New file.
10507 * guile/scm-objfile.c: New file.
10508 * guile/scm-ports.c: New file.
10509 * guile/scm-pretty-print.c: New file.
10510 * guile/scm-safe-call.c: New file.
10511 * guile/scm-string.c: New file.
10512 * guile/scm-symbol.c: New file.
10513 * guile/scm-symtab.c: New file.
10514 * guile/scm-type.c: New file.
10515 * guile/scm-utils.c: New file.
10516 * guile/scm-value.c: New file.
10517 * guile/lib/gdb.scm: New file.
10518 * guile/lib/gdb/boot.scm: New file.
10519 * guile/lib/gdb/experimental.scm: New file.
10520 * guile/lib/gdb/init.scm: New file.
10521 * guile/lib/gdb/iterator.scm: New file.
10522 * guile/lib/gdb/printing.scm: New file.
10523 * guile/lib/gdb/types.scm: New file.
10524 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10525 (VPATH): Add $(GUILE_SRCDIR).
10526 (GUILE_DIR): New variable.
10527 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10528 (all): Add stamp-guile dependency.
10529 (stamp-guile): New rule.
10530 (clean-guile, install-guile, uninstall-guile): New rules.
10531 (install-only): Add install-guile dependency.
10532 (uninstall): Add uninstall-guile dependency.
10533 (clean): Add clean-guile dependency.
10535 2014-02-09 Doug Evans <xdje42@gmail.com>
10537 Revert this patch (which I approved, mea culpa).
10539 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10541 * Makefile.in (all-lib): Remove.
10542 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10544 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10546 Fix Python stack corruption.
10547 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10550 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10552 * Makefile.in (all-lib): Remove.
10553 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10555 2014-02-07 Doug Evans <dje@google.com>
10557 * extension-priv.h (extension_language_script_ops): Add comment.
10558 (extension_language_ops): Add comment.
10559 (active_ext_lang_state): Fix typo in comment.
10561 2014-02-07 Pedro Alves <palves@redhat.com>
10563 PR breakpoints/16292
10564 * infrun.c (handle_signal_stop) <signal arrives while stepping
10565 over a breakpoint>: Switch back to the stepping thread.
10567 2014-02-07 Yao Qi <yao@codesourcery.com>
10569 * target.c (target_xfer_partial): Return zero if LEN is zero.
10571 2014-02-07 Yao Qi <yao@codesourcery.com>
10573 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10574 (ld_so_xfer_auxv): Likewise.
10575 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10576 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10577 * corelow.c (core_xfer_partial): Likewise.
10578 * ctf.c (ctf_xfer_partial): Likewise.
10579 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10580 (darwin_xfer_partial): Likewise.
10581 * exec.c (exec_xfer_partial): Likewise.
10582 * gnu-nat.c (gnu_xfer_partial): Likewise.
10583 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10584 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10585 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10586 * linux-nat.c (linux_xfer_siginfo): Likewise.
10587 (linux_proc_xfer_spu): Likewise.
10588 * procfs.c (procfs_xfer_partial): Likewise.
10589 * record-full.c (record_full_xfer_partial): Likewise.
10590 (record_full_core_xfer_partial): Likewise.
10591 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10592 * remote.c (remote_write_qxfer): Likewise.
10593 (remote_write_qxfer, remote_read_qxfer): Likewise.
10594 (remote_xfer_partial): Likewise.
10595 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10596 (rs6000_xfer_shared_libraries): Likewise.
10597 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10598 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10599 (spu_xfer_partial): Likewise.
10600 * target.c (memory_xfer_partial_1): Likewise.
10601 * tracepoint.c (tfile_xfer_partial): Likewise.
10602 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10603 (windows_xfer_partial): Likewise.
10605 2014-02-07 Yao Qi <yao@codesourcery.com>
10607 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10609 (core_xfer_shared_libraries_aix): Likewise.
10610 * gdbarch.c, gdbarch.h: Regenerated.
10611 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10612 ULONGEST. Change 'len_avail' type to ULONGEST.
10613 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10614 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10616 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10618 2014-02-07 Yao Qi <yao@codesourcery.com>
10620 * corefile.c (memory_error): Get 'exception' from ERR and pass
10621 'exception' to throw_error.
10623 2014-02-06 Doug Evans <xdje42@gmail.com>
10625 * configure.ac (libpython checking): Remove all but python.o from
10626 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10627 * configure: Regenerate.
10629 * Makefile.in (SFILES): Add extension.c.
10630 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10631 (COMMON_OBS): Add extension.o.
10632 * extension.h: New file.
10633 * extension-priv.h: New file.
10634 * extension.c: New file.
10636 * python/python-internal.h: #include "extension.h".
10637 (gdbpy_auto_load_enabled): Declare.
10638 (gdbpy_apply_val_pretty_printer): Declare.
10639 (gdbpy_apply_frame_filter): Declare.
10640 (gdbpy_preserve_values): Declare.
10641 (gdbpy_breakpoint_cond_says_stop): Declare.
10642 (gdbpy_breakpoint_has_cond): Declare.
10643 (void source_python_script_for_objfile): Delete.
10644 * python/python.c: #include "extension-priv.h".
10645 Delete inclusion of "observer.h".
10646 (extension_language_python): Moved here and renamed from
10647 script_language_python in py-auto-load.c.
10648 Redefined to be of type extension_language_defn.
10649 (python_extension_script_ops): New global.
10650 (python_extension_ops): New global.
10651 (struct python_env): New member previous_active.
10652 (restore_python_env): Call restore_active_ext_lang.
10653 (ensure_python_env): Call set_active_ext_lang.
10654 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10656 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10658 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10660 (gdbpy_eval_from_control_command): Renamed from
10661 eval_python_from_control_command, made static. New arg extlang.
10662 (gdbpy_source_script) Renamed from source_python_script, made static.
10664 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10665 result to int. New arg extlang.
10666 (gdbpy_source_objfile_script): Renamed from
10667 source_python_script_for_objfile, made static. New arg extlang.
10668 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10669 static. New args extlang, extlang_printers. Change result type to
10671 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10672 static. New arg extlang. Rename arg printers to extlang_printers
10673 and change type to ext_lang_type_printers *.
10674 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10675 static. Replace argument arg with extlang, extlang_printers.
10676 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10677 (!HAVE_PYTHON, source_python_script): Delete.
10678 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10679 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10680 (!HAVE_PYTHON, start_type_printers): Delete.
10681 (!HAVE_PYTHON, apply_type_printers): Delete.
10682 (!HAVE_PYTHON, free_type_printers): Delete.
10683 (_initialize_python): Delete call to observer_attach_before_prompt.
10684 (finalize_python): Set/restore active extension language.
10685 (gdbpy_finish_initialization) Renamed from
10686 finish_python_initialization, made static. New arg extlang.
10687 (gdbpy_initialized): New function.
10688 * python/python.h: #include "extension.h". Delete #include
10689 "value.h", "mi/mi-cmds.h".
10690 (extension_language_python): Declare.
10691 (GDBPY_AUTO_FILE_NAME): Delete.
10692 (enum py_bt_status): Moved to extension.h and renamed to
10693 ext_lang_bt_status.
10694 (enum frame_filter_flags): Moved to extension.h.
10695 (enum py_frame_args): Moved to extension.h and renamed to
10696 ext_lang_frame_args.
10697 (finish_python_initialization): Delete.
10698 (eval_python_from_control_command): Delete.
10699 (source_python_script): Delete.
10700 (apply_val_pretty_printer): Delete.
10701 (apply_frame_filter): Delete.
10702 (preserve_python_values): Delete.
10703 (gdbpy_script_language_defn): Delete.
10704 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10705 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10707 * auto-load.c: #include "extension.h".
10708 (GDB_AUTO_FILE_NAME): Delete.
10709 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10710 (script_language_gdb): Delete, moved to extension.c and renamed to
10711 extension_language_gdb.
10712 (source_gdb_script_for_objfile): Delete.
10713 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10714 (loaded_script): Change type of language member to
10715 struct extension_language_defn *.
10716 (init_loaded_scripts_info): Initialize
10717 unsupported_script_warning_printed.
10718 (maybe_add_script): Make static. Change type of language arg to
10719 struct extension_language_defn *.
10720 (clear_section_scripts): Reset unsupported_script_warning_printed.
10721 (auto_load_objfile_script_1): Rewrite to use extension language API.
10722 (auto_load_objfile_script): Make public. Remove support-compiled-in
10723 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10724 (source_section_scripts): Rewrite to use extension language API.
10725 (load_auto_scripts_for_objfile): Rewrite to use
10726 auto_load_scripts_for_objfile.
10727 (collect_matching_scripts_data): Change type of language member to
10728 struct extension_language_defn *.
10729 (auto_load_info_scripts): Change type of language arg to
10730 struct extension_language_defn *.
10731 (unsupported_script_warning_print): New function.
10732 (script_not_found_warning_print): Make static.
10733 (_initialize_auto_load): Rewrite construction of scripts-directory
10735 * auto-load.h (struct objfile): Add forward decl.
10736 (struct script_language): Delete.
10737 (struct auto_load_pspace_info): Add forward decl.
10738 (struct extension_language_defn): Add forward decl.
10739 (maybe_add_script): Delete.
10740 (auto_load_objfile_script): Declare.
10741 (script_not_found_warning_print): Delete.
10742 (auto_load_info_scripts): Update prototype.
10743 (auto_load_gdb_scripts_enabled): Declare.
10744 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10745 auto_load_python_scripts_enabled and made public.
10746 (script_language_python): Delete, moved to python.c.
10747 (gdbpy_script_language_defn): Delete.
10748 (info_auto_load_python_scripts): Update to use
10749 extension_language_python.
10751 * breakpoint.c (condition_command): Replace call to
10752 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10753 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10754 with call to breakpoint_ext_lang_cond_says_stop.
10755 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10756 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10757 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10758 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10760 (local_setattro): Print name of extension language with existing
10763 * valprint.c (val_print, value_print): Update to call
10764 apply_ext_lang_val_pretty_printer.
10765 * cp-valprint.c (cp_print_value): Update call to
10766 apply_ext_lang_val_pretty_printer.
10767 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10768 (gdbpy_apply_val_pretty_printer): Renamed from
10769 apply_val_pretty_printer. New arg extlang.
10770 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10772 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10773 extension language API.
10774 * cli/cli-script.c (execute_control_command): Update to call
10775 eval_ext_lang_from_control_command.
10777 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10778 enum ext_lang_bt_status values. Update call to
10779 apply_ext_lang_frame_filter.
10780 (mi_cmd_stack_list_locals): Ditto.
10781 (mi_cmd_stack_list_args): Ditto.
10782 (mi_cmd_stack_list_variables): Ditto.
10783 * mi/mi-main.c: Delete #include "python/python-internal.h".
10784 Add #include "extension.h".
10785 (mi_cmd_list_features): Replace reference to python internal variable
10786 gdb_python_initialized with call to ext_lang_initialized_p.
10788 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10789 Update to use enum ext_lang_frame_args. Update to call
10790 apply_ext_lang_frame_filter.
10791 * python/py-framefilter.c (extract_sym): Update to use enum
10792 ext_lang_bt_status.
10793 (extract_value, py_print_type, py_print_value): Ditto.
10794 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10795 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10796 (py_print_frame): Ditto.
10797 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10798 New arg extlang. Update to use enum ext_lang_bt_status.
10800 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10801 finish_python_initialization. Replace with call to
10802 finish_ext_lang_initialization.
10804 * typeprint.c (do_free_global_table): Update to call
10805 free_ext_lang_type_printers.
10806 (create_global_typedef_table): Update to call
10807 start_ext_lang_type_printers.
10808 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10809 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10810 (type_print_options): Change type of global_printers from "void *"
10811 to "struct ext_lang_type_printers *".
10813 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10814 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10815 (gdbpy_preserve_values): Renamed from preserve_python_values.
10817 (!HAVE_PYTHON, preserve_python_values): Delete.
10819 * utils.c (quit_flag): Delete, moved to extension.c.
10820 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10823 * eval.c: Delete #include "python/python.h".
10824 * main.c: Delete #include "python/python.h".
10826 * defs.h: Update comment.
10828 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10832 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10834 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10837 2014-02-05 Yao Qi <yao@codesourcery.com>
10839 * remote.c (remote_pass_signals): Remove local 'buf' and use
10841 (remote_program_signals): Likewise.
10843 2014-02-05 Yao Qi <yao@codesourcery.com>
10845 * ctf.c: Include "inferior.h" and "gdbthread.h".
10846 (CTF_PID): A new macro.
10847 (ctf_open): Call inferior_appeared and add_thread_silent.
10848 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10849 (ctf_thread_alive): New function.
10850 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10852 2014-02-05 Yao Qi <yao@codesourcery.com>
10856 2013-05-24 Yao Qi <yao@codesourcery.com>
10858 * tracepoint.c (TFILE_PID): Remove.
10859 (tfile_open): Don't add thread and inferior.
10860 (tfile_close): Don't set 'inferior_ptid'. Don't call
10861 exit_inferior_silent.
10862 (tfile_thread_alive): Remove.
10863 (init_tfile_ops): Don't set field 'to_thread_alive' of
10866 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10868 * remote.c (remote_start_remote): Call remote_check_symbols even
10869 if only symbol-file (not file) has been given.
10871 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10873 * gdbarch.sh (skip_entrypoint): New callback.
10874 * gdbarch.c, gdbarch.h: Regenerate.
10875 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10876 * infrun.c (fill_in_stop_func): Likewise.
10877 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10878 (ppc_elfv2_elf_make_msymbol_special): New function.
10879 (ppc_elfv2_skip_entrypoint): Likewise.
10880 (ppc_linux_init_abi): Install them for ELFv2.
10882 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10884 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10885 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10886 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10887 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10888 structures returned in GPRs.
10890 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10892 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10893 offset to the stack parameter list for the ELFv2 ABI.
10895 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10897 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10898 set_gdbarch_convert_from_func_ptr_addr and
10899 set_gdbarch_elf_make_msymbol_special for ELFv1.
10900 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10901 function descriptors on ELFv1.
10902 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10903 set up r12 at function entry.
10905 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10907 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10908 (struct gdbarch_tdep): New member elf_abi.
10910 * rs6000-tdep.c: Include "elf/ppc64.h".
10911 (rs6000_gdbarch_init): Detect ELF ABI version.
10913 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10915 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10916 within a register pair holding a DFP 128-bit value on little-endian.
10917 (ppc64_sysv_abi_return_value_base): Likewise.
10918 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10919 (dfp_pseudo_register_write): Likewise.
10921 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10923 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10924 offset on little-endian when passing _Decimal32.
10925 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10927 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10929 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10930 of the overlapped FP register within the VSX register on little-
10932 (efpr_pseudo_register_write): Likewise.
10934 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10936 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10937 offset on little-endian when passing small structures.
10939 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10941 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10942 (struct ppc64_sysv_argpos): New data structure.
10943 (ppc64_sysv_abi_push_float): Remove.
10944 (ppc64_sysv_abi_push_val): New function.
10945 (ppc64_sysv_abi_push_integer): Likewise.
10946 (ppc64_sysv_abi_push_freg): Likewise.
10947 (ppc64_sysv_abi_push_vreg): Likewise.
10948 (ppc64_sysv_abi_push_param): Likewise.
10949 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10950 (ppc64_sysv_abi_return_value_base): New function.
10951 (ppc64_sysv_abi_return_value): Refactor to use it.
10953 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10955 * NEWS: Document new target powerpc64le-*-linux*.
10957 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10959 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10960 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10962 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10963 register set used in ELF core dumps. Add floating-point register set.
10965 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10967 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10968 dwarf2_to_gdb[] table using symbolic constants. Adjust
10969 penultimate entry from number representing the PC register
10970 to symbolic constant representing the MDR register. Add
10971 constant for the PC register to the end of the table.
10973 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10975 * bsd-kvm.c: Include <sys/param.h>
10977 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10979 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10981 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10983 * ada-lang.h (clear_ada_sym_cache): Delete.
10985 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10987 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10989 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10991 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10992 the sigreturn register save area only if the syscall is
10995 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10997 * valops.c (value_slice): Minor reformatting.
10999 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11001 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11003 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11005 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11006 New static globals.
11007 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11008 (ada_ignore_descriptive_types_p): New static global.
11009 (find_parallel_type_by_descriptive_type): Return immediately
11010 if ada_ignore_descriptive_types_p is set.
11011 (_initialize_ada_language): Register new commands "maintenance
11012 set ada", "maintenance show ada", "maintenance set ada
11013 ignore-descriptive-types" and "maintenance show ada
11014 ignore-descriptive-types".
11015 * NEWS: Add entry for new "maint ada set/show
11016 ignore-descriptive-types" commands.
11018 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11020 * record-btrace.c (record_btrace_close): Call btrace_teardown
11023 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11025 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11028 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11030 * ada-typeprint (type_is_full_subrange_of_target_type):
11032 (print_range): Add parameter bounds_prefered_p. If not set,
11033 try printing range types using the name of their base type.
11034 (print_range_type): Add parameter bounds_prefered_p.
11035 Use it in call to print_range.
11036 (print_array_type, ada_print_type): Update calls to print_range
11037 and print_range_type.
11039 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11041 * ada-typeprint.c (print_array_type, print_choices, print_range)
11042 (print_range_bound, print_dynamic_range_bound, print_range_type):
11043 Remove declaration.
11045 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11047 * ada-typeprint.c (print_range): Add missing empty line
11048 after local declaration.
11050 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11052 * ada-valprint.c (print_optional_low_bound): Get index_type's
11053 target type for as long as it is a TYPE_CODE_RANGE.
11055 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11057 * procfs.c (procfs_make_note_section): Remove assertion and
11058 associated comment.
11060 2014-01-24 Yao Qi <yao@codesourcery.com>
11062 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11063 * corelow.c (get_core_siginfo): Likewise.
11065 2014-01-24 Yao Qi <yao@codesourcery.com>
11067 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11068 ULONGEST. Don't check 'len' is negative.
11069 (remote_write_bytes): Change type of 'len' to ULONGEST.
11071 2014-01-23 Tom Tromey <tromey@redhat.com>
11074 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11075 Handle exception from frame.block.
11076 (FrameVars.fetch_frame_locals): Likewise.
11078 2014-01-23 Tom Tromey <tromey@redhat.com>
11081 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11082 on a NULL pointer. Move "goto error" to correct place.
11084 2014-01-23 Tom Tromey <tromey@redhat.com>
11087 * python/py-framefilter.c (apply_frame_filter): Call
11088 ensure_python_env after computing gdbarch.
11090 2014-01-23 Yao Qi <yao@codesourcery.com>
11092 * target.c (raw_memory_xfer_partial): Change argument type
11093 from void * to gdb_byte *.
11094 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11096 2014-01-22 Doug Evans <dje@google.com>
11098 New gdbserver option --debug-format=timestamp.
11099 * NEWS: Mention it.
11101 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11103 * syscalls/s390x-linux.xml: New file.
11104 * syscalls/s390-linux.xml: New file.
11105 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11106 (XML_SYSCALL_FILENAME_S390X): Likewise.
11107 (op_svc): New enum value for SVC opcode.
11108 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11109 (s390_linux_get_syscall_number): New function.
11110 (s390_gdbarch_init): Register '*get_syscall_number' and the
11111 syscall xml file name.
11112 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11113 "s390-linux.xml" and "s390x-linux.xml".
11114 * NEWS: Announce new feature.
11116 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11118 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11120 2014-01-22 Pedro Alves <palves@redhat.com>
11122 * xtensa-config.c: Include defs.h.
11124 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11126 * common/common-utils.h: Add "ARI:" comment beside __func__
11129 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11131 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11132 documentation a bit.
11134 2014-01-21 Roland McGrath <mcgrathr@google.com>
11136 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11137 * configure: Regenerate.
11138 * aclocal.m4: Regenerate.
11139 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11140 New substituted variables.
11141 (install-strip): New target.
11142 (INSTALL_SCRIPT): New substituted variable.
11143 (FLAGS_TO_PASS): Add it.
11144 (install-only): Use $(INSTALL_SCRIPT) rather than
11145 $(INSTALL_PROGRAM) for gcore.
11147 2014-01-20 Tom Tromey <tromey@redhat.com>
11149 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11152 2014-01-20 Tom Tromey <tromey@redhat.com>
11154 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11155 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11156 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11157 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11158 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11159 (struct cmd_list_element) <flags>: Remove.
11160 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11161 doc_allocated>: New fields.
11162 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11164 * maint.c (maintenance_do_deprecate): Update.
11165 * top.c (execute_command): Update.
11167 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11169 * xtensa-linux-nat.c: Include asm/ptrace.h.
11171 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11173 * Makefile.in (SFILES): Add d-support.c.
11174 (COMMON_OBS): Add d-support.o.
11175 * d-lang.h (d_parse_symbol): Add comment, now defined in
11177 * d-lang.c (parse_call_convention)
11178 (parse_attributes, parse_function_types)
11179 (parse_function_args, parse_type, parse_identifier)
11180 (call_convention_p, d_parse_symbol): Move functions to ...
11181 * d-support.c: ... New file.
11183 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11185 * d-lang.h (d_parse_symbol): Add declaration.
11186 * d-lang.c (extract_identifiers)
11187 (extract_type_info): Remove functions.
11188 (parse_call_convention, parse_attributes)
11189 (parse_function_types, parse_function_args)
11190 (parse_type, parse_identifier, call_convention_p)
11191 (d_parse_symbol): New functions.
11192 (d_demangle): Use d_parse_symbol to demangle D symbols.
11194 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11196 * d-lang.h (struct builtin_d_type): New data type.
11197 (builtin_d_type): Add declaration.
11198 * d-lang.c (d_language_arch_info, build_d_types)
11199 (builtin_d_type): New functions.
11200 (enum d_primitive_types): New data type.
11201 (d_language_defn): Change c_language_arch_info to
11202 d_language_arch_info.
11203 (d_type_data): New static variable.
11204 (_initialize_d_language): Initialize d_type_data.
11206 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11208 * d-lang.h (d_main_name): Add declaration.
11209 * d-lang.c (d_main_name): New function.
11210 * symtab.c (find_main_name): Add call to d_main_name.
11212 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11214 * d-lang.c (d_language_defn): Change macro_expansion_c to
11215 macro_expansion_no.
11217 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11219 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11221 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11223 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11224 gdb_exception" declaration.
11225 * remote.c (getpkt_or_notif_sane): Likewise.
11227 2014-01-17 Doug Evans <dje@google.com>
11229 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11230 function, contents of dirnames_to_char_ptr_vec_append moved here.
11231 (delim_string_to_char_ptr_vec): New function.
11232 (dirnames_to_char_ptr_vec_append): Rewrite.
11233 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11235 2014-01-17 Doug Evans <dje@google.com>
11237 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11239 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11240 #include "common-utils.h".
11241 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11242 * common/vec.h (VEC_ASSERT_PASS): Update.
11243 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11244 (MACH_CHECK_ERROR): Update.
11246 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11248 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11250 * gdbarch.h: Regenerate.
11252 2014-01-16 Tom Tromey <tromey@redhat.com>
11254 * value.c (struct value) <regnum>: Move earlier.
11256 2014-01-16 Tom Tromey <tromey@redhat.com>
11258 * remote.c (extended_remote_create_inferior): Rename from
11259 extended_remote_create_inferior_1. Add "ops" argument. Remove
11260 old implementation.
11262 2014-01-16 Pedro Alves <palves@redhat.com>
11264 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11265 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11268 2014-01-16 Doug Evans <dje@google.com>
11270 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11272 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11274 * btrace.h (btrace_thread_flag): New.
11275 (struct btrace_thread_info) <flags>: New.
11276 * record-btrace.c (record_btrace_resume_thread)
11277 (record_btrace_find_thread_to_move, btrace_step_no_history)
11278 (btrace_step_stopped, record_btrace_start_replaying)
11279 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11280 (record_btrace_find_resume_thread): New.
11281 (record_btrace_resume, record_btrace_wait): Extend.
11282 (record_btrace_can_execute_reverse): New.
11283 (record_btrace_open): Fail in non-stop mode.
11284 (record_btrace_set_replay): Split into this, ...
11285 (record_btrace_stop_replaying): ... this, ...
11286 (record_btrace_clear_histories): ... and this.
11287 (init_record_btrace_ops): Init to_can_execute_reverse.
11288 * NEWS: Announce it.
11290 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11292 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11293 (forward_target_decr_pc_after_break)
11294 (target_decr_pc_after_break): New.
11295 * target.c (forward_target_decr_pc_after_break)
11296 (target_decr_pc_after_break): New.
11297 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11298 instead of gdbarch_decr_pc_after_break.
11299 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11300 instead of gdbarch_decr_pc_after_break.
11301 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11302 instead of gdbarch_decr_pc_after_break.
11303 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11304 instead of gdbarch_decr_pc_after_break.
11305 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11306 instead of gdbarch_decr_pc_after_break.
11307 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11308 instead of gdbarch_decr_pc_after_break.
11310 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11312 * btrace.c: Include regcache.h.
11313 (btrace_add_pc): New.
11314 (btrace_enable): Call btrace_add_pc.
11315 (btrace_is_empty): New.
11316 * btrace.h (btrace_is_empty): New.
11317 * record-btrace.c (require_btrace, record_btrace_info): Call
11320 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11322 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11323 Support delta reads.
11324 (linux_disable_btrace): Change return type.
11325 * common/linux-btrace.h (linux_read_btrace): Change parameters
11326 and return type to allow error reporting. Update users.
11327 (linux_disable_btrace): Change return type. Update users.
11328 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11330 (btrace_error): New.
11331 (btrace_block) <begin>: Comment on BEGIN == 0.
11332 * btrace.c (btrace_compute_ftrace): Start from the end of
11334 (btrace_stitch_trace, btrace_clear_history): New.
11335 (btrace_fetch): Read delta trace, return if replaying.
11336 (btrace_clear): Move clear history code to btrace_clear_history.
11337 (parse_xml_btrace): Throw an error if parsing failed.
11338 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11339 and return type to allow error reporting.
11340 (target_read_btrace): Change parameters and return type to allow
11342 * target.c (target_read_btrace): Update.
11343 * remote.c (remote_read_btrace): Support delta reads. Pass
11345 * NEWS: Announce it.
11347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11349 * record.h (record_btrace_frame_unwind)
11350 (record_btrace_tailcall_frame_unwind): New declarations.
11351 * dwarf2-frame: Include record.h
11352 (dwarf2_frame_cfa): Throw an error for btrace frames.
11353 * record-btrace.c: Include hashtab.h.
11354 (btrace_get_bfun_name): New.
11355 (btrace_call_history): Call btrace_get_bfun_name.
11356 (struct btrace_frame_cache): New.
11358 (bfcache_hash, bfcache_eq, bfcache_new): New.
11359 (btrace_get_frame_function): New.
11360 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11361 (record_btrace_frame_this_id): Compute own id.
11362 (record_btrace_frame_prev_register): Provide PC, throw_error
11363 for all other registers.
11364 (record_btrace_frame_sniffer): Detect btrace frames.
11365 (record_btrace_tailcall_frame_sniffer): New.
11366 (record_btrace_frame_dealloc_cache): New.
11367 (record_btrace_frame_unwind): Add new functions.
11368 (record_btrace_tailcall_frame_unwind): New.
11369 (_initialize_record_btrace): Allocate cache.
11370 * btrace.c (btrace_clear): Call reinit_frame_cache.
11371 * NEWS: Announce it.
11373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11375 * record-btrace.c (record_btrace_set_replay)
11376 (record_btrace_goto_begin, record_btrace_goto_end)
11377 (record_btrace_goto): New.
11378 (init_record_btrace_ops): Initialize them.
11379 * NEWS: Announce it.
11381 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11383 * record-btrace.c (record_btrace_find_new_threads)
11384 (record_btrace_thread_alive): New.
11385 (init_record_btrace_ops): Initialize to_find_new_threads and
11388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11390 * record-btrace.c (record_btrace_resume): New.
11391 (record_btrace_wait): New.
11392 (init_record_btrace_ops): Initialize to_wait and to_resume.
11394 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11396 * record-btrace.c (record_btrace_xfer_partial)
11397 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11398 (record_btrace_allow_memory_access): New.
11399 (init_record_btrace_ops): Initialize new methods.
11400 * target.c (raw_memory_xfer_partial): Bail out if target reports
11401 that this memory is not available.
11403 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11405 * target.h (target_ops) <to_insert_breakpoint>
11406 <to_remove_breakpoint>: Add target_ops parameter.
11407 (forward_target_insert_breakpoint): New.
11408 (forward_target_remove_breakpoint): New.
11409 (memory_remove_breakpoint, memory_insert_breakpoint):
11410 Add target_ops parameter.
11411 * target.c (target_insert_breakpoint): Split into this and ...
11412 (forward_target_insert_breakpoint): ... this.
11413 (target_remove_breakpoint): Split into this and ...
11414 (forward_target_remove_breakpoint): ... this.
11415 (debug_to_insert_breakpoint): Add target_ops parameter.
11416 Call forward_target_insert_breakpoint.
11417 (debug_to_remove_breakpoint): Add target_ops parameter.
11418 Call forward_target_remove_breakpoint.
11419 (update_current_target): Do not inherit or default to_insert_breakpoint
11420 and to_remove_breakpoint.
11421 * corelow.c (ignore): Add target_ops parameter.
11422 * exec.c (ignore): Add target_ops parameter.
11423 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11424 Add target_ops parameter.
11425 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11426 Add target_ops parameter.
11427 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11428 Add target_ops parameter.
11429 * record-full.c (record_full_beneath_to_insert_breakpoint)
11430 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11431 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11432 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11433 (record_full_core_remove_breakpoint): Add target_ops parameter.
11435 (record_full_beneath_to_insert_breakpoint_ops)
11436 (record_full_beneath_to_remove_breakpoint_ops)
11437 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11438 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11439 tmp_to_remove_breakpoint_ops,
11440 record_full_beneath_to_insert_breakpoint_ops, and
11441 record_full_beneath_to_remove_breakpoint_ops.
11442 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11443 (m32r_remove_breakpoint): Add target_ops parameter.
11444 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11445 Add target_ops parameter.
11446 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11447 Add target_ops parameter.
11449 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11450 Markus Metzger <markus.t.metzger@intel.com>
11452 * record-btrace.c: Include frame-unwind.h.
11453 (record_btrace_frame_unwind_stop_reason)
11454 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11455 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11457 (init_record_btrace_ops): Install it.
11459 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11461 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11464 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11466 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11469 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11471 * frame-unwind.c: Include target.h.
11472 (frame_unwind_try_unwinder): New function with code from ...
11473 (frame_unwind_find_by_frame): ... here. New variable
11474 unwinder_from_target, call also target_get_unwinder)
11475 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11476 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11477 * target.h (struct target_ops): New fields to_get_unwinder and
11478 to_get_tailcall_unwinder.
11479 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11483 * record-btrace.c (record_btrace_fetch_registers)
11484 (record_btrace_store_registers)
11485 (record_btrace_to_prepare_to_store): New.
11486 (init_record_btrace_ops): Add the above.
11488 2014-01-16 Tom Tromey <tromey@redhat.com>
11490 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11491 * target.h (struct target_ops) <to_prepare_to_store>: Add
11493 (target_prepare_to_store): Add argument.
11494 * target.c (debug_to_prepare_to_store): Add argument.
11495 (update_current_target): Update.
11496 * remote.c (remote_prepare_to_store): Add 'self' argument.
11497 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11498 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11499 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11500 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11502 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11503 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11504 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11505 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11506 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11510 * btrace.h (replay) <replay>: New.
11511 (btrace_is_replaying): New.
11512 * btrace.c (btrace_clear): Free replay iterator.
11513 (btrace_is_replaying): New.
11514 * record-btrace.c (record_btrace_is_replaying): New.
11515 (record_btrace_info): Print insn number if replaying.
11516 (record_btrace_insn_history): Start at replay position.
11517 (record_btrace_call_history): Start at replay position.
11518 (init_record_btrace_ops): Init to_record_is_replaying.
11520 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11522 * record-btrace.c (record_btrace_insn_history_range): Include
11524 (record_btrace_insn_history_from): Adjust range.
11525 (record_btrace_call_history_range): Include
11527 (record_btrace_call_history_from): Adjust range.
11528 * NEWS: Announce changes.
11530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11532 * record.h (enum record_print_flag)
11533 <record_print_indent_calls>: New.
11534 * record.c (get_call_history_modifiers): Recognize /c modifier.
11535 (_initialize_record): Document /c modifier.
11536 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11537 Reorder fields. Optionally indent the function name. Update
11539 * NEWS: Announce changes.
11541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11543 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11547 * btrace.c (ftrace_new_function): Start counting at one.
11548 * record-btrace.c (record_btrace_info): Adjust number of calls
11550 * NEWS: Announce it.
11552 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11554 * record-btrace.c (btrace_call_history_insn_range): Print
11555 insn range as [begin, end].
11557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11559 * btrace.h (struct btrace_func_link): New.
11560 (enum btrace_function_flag): New.
11561 (struct btrace_inst): Rename to ...
11562 (struct btrace_insn): ...this. Update all users.
11563 (struct btrace_func) <ibegin, iend>: Remove.
11564 (struct btrace_func_link): New.
11565 (struct btrace_func): Rename to ...
11566 (struct btrace_function): ...this. Update all users.
11567 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11568 (number, level, flags>: New.
11569 (struct btrace_insn_iterator): Rename to ...
11570 (struct btrace_insn_history): ...this.
11572 (struct btrace_insn_iterator, btrace_call_iterator): New.
11573 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11574 (struct btrace_target_info) <begin, end, level>
11575 <insn_history, call_history>: New.
11576 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11577 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11578 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11579 (btrace_call_number, btrace_call_begin, btrace_call_end)
11580 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11581 (btrace_find_function_by_number, btrace_set_insn_history)
11582 (btrace_set_call_history): New.
11583 * btrace.c (btrace_init_insn_iterator)
11584 (btrace_init_func_iterator, compute_itrace): Remove.
11585 (ftrace_print_function_name, ftrace_print_filename)
11586 (ftrace_skip_file): Change
11587 parameter to const.
11588 (ftrace_init_func): Remove.
11589 (ftrace_debug): Use new btrace_function fields.
11590 (ftrace_function_switched): Also consider gaining and
11591 losing symbol information).
11592 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11593 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11594 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11596 (ftrace_new_function): Move. Remove debug print.
11597 (ftrace_update_lines, ftrace_update_insns): New.
11598 (ftrace_update_function): Check for call, ret, and jump.
11599 (compute_ftrace): Renamed to ...
11600 (btrace_compute_ftrace): ...this. Rewritten to compute call
11602 (btrace_fetch, btrace_clear): Updated.
11603 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11604 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11605 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11606 (btrace_call_number, btrace_call_begin, btrace_call_end)
11607 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11608 (btrace_find_function_by_number, btrace_set_insn_history)
11609 (btrace_set_call_history): New.
11610 * record-btrace.c (require_btrace): Use new btrace thread
11612 (record_btrace_info, btrace_insn_history)
11613 (record_btrace_insn_history, record_btrace_insn_history_range):
11614 Use new btrace thread info fields and new iterator.
11615 (btrace_func_history_src_line): Rename to ...
11616 (btrace_call_history_src_line): ...this. Use new btrace
11617 thread info fields.
11618 (btrace_func_history): Rename to ...
11619 (btrace_call_history): ...this. Use new btrace thread info
11620 fields and new iterator.
11621 (record_btrace_call_history, record_btrace_call_history_range):
11622 Use new btrace thread info fields and new iterator.
11624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11626 * frame.h (frame_id_build_unavailable_stack_special): New.
11627 * frame.c (frame_id_build_unavailable_stack_special): New.
11629 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11631 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11632 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11633 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11635 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11636 (i386_insn_is_jump, i386_jmp_p): New.
11637 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11638 insn_is_jump to gdbarch.
11639 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11640 * gdbarch.h: Regenerated.
11641 * gdbarch.c: Regenerated.
11642 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11643 (default_insn_is_jump): New.
11644 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11645 (default_insn_is_jump): New.
11647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11649 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11651 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11652 (btrace_read_type) <btrace_read_new>: Change to ...
11653 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11657 * common/linux-btrace.c (linux_read_btrace): Free trace from
11658 previous iteration.
11660 2014-01-15 Doug Evans <dje@google.com>
11662 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11665 2014-01-15 Tom Tromey <tromey@redhat.com>
11667 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11668 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11669 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11670 (set_objfile_main_name): New function.
11671 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11672 language_of_main>: New fields.
11673 (set_objfile_main_name): Declare.
11674 * symtab.c (find_main_name): Loop over objfiles to find the main
11676 (set_main_name): Now static.
11677 (get_main_info): Add comment.
11678 * symtab.h (set_main_name): Don't declare.
11680 2014-01-15 Tom Tromey <tromey@redhat.com>
11682 * symtab.c (main_progspace_key): New global.
11683 (struct main_info): New.
11684 (name_of_main, language_of_main): Remove.
11685 (get_main_info, main_info_cleanup): New function.
11686 (set_main_name, main_name, main_language): Use get_main_info.
11687 (_initialize_symtab): Initialize main_progspace_key.
11689 2014-01-15 Tom Tromey <tromey@redhat.com>
11691 * dbxread.c (process_one_symbol): Update.
11692 * dwarf2read.c (read_partial_die): Update.
11693 * symfile.c (set_initial_language): Call main_language.
11694 * symtab.c (language_of_main): Now static.
11695 (set_main_name): Add 'lang' parameter.
11696 (find_main_name): Update.
11697 (main_language): New function.
11698 (symtab_observer_executable_changed): Update.
11699 * symtab.h (set_main_name): Update.
11700 (language_of_main): Remove.
11701 (main_language): Declare.
11703 2014-01-15 Tom Tromey <tromey@redhat.com>
11705 * symfile.c (init_entry_point_info): Use new "initialized" field.
11707 * objfiles.h (struct entry_point) <initialized>: New field.
11708 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11709 (struct objfile) <ei>: ...here. Remove.
11710 * objfiles.c (entry_point_address_query): Update.
11712 2014-01-15 Tom Tromey <tromey@redhat.com>
11714 * objfiles.c (entry_point_address_query): Relocate entry point
11716 (objfile_relocate1): Do not relocate entry point address.
11717 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11718 <the_bfd_section_index>: New field.
11719 * symfile.c (init_entry_point_info): Find the entry point's
11722 2014-01-15 Tom Tromey <tromey@redhat.com>
11724 * solib-frv.c (enable_break): Use entry_point_address_query.
11726 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11728 * NEWS: Add note on improved process record-replay on
11729 arm*-linux* targets.
11731 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11733 * arm-tdep.c (enum arm_record_result): New enum.
11734 (arm_record_unsupported_insn): New function.
11735 (arm_record_coproc_data_proc): Removed.
11736 (thumb2_record_ld_st_multiple): New function.
11737 (thumb2_record_ld_st_dual_ex_tbb): New function.
11738 (thumb2_record_data_proc_sreg_mimm): New function.
11739 (thumb2_record_ps_dest_generic): New function.
11740 (thumb2_record_branch_misc_cntrl): New function.
11741 (thumb2_record_str_single_data): New function.
11742 (thumb2_record_ld_mem_hints): New function.
11743 (thumb2_record_ld_word): New function.
11744 (thumb2_record_lmul_lmla_div): New function.
11745 (thumb2_record_decode_insn_handler): New function.
11746 (decode_insn): Add thumb32 instruction handlers.
11748 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11750 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11751 (struct arm_linux_record_tdep): Declare.
11752 (arm_canonicalize_syscall): New function.
11753 (arm_all_but_pc_registers_record): New function.
11754 (arm_linux_syscall_record): New function.
11755 (arm_linux_init_abi): Add syscall recording constructs.
11756 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11757 decoding. (arm_record_coproc_data_proc): Update arm syscall
11759 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11760 <arm_syscall_record>: New field.
11761 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11764 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11766 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11767 register for push instruction recording.
11769 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11771 * arm-tdep.c (thumb_record_misc): Update to correct logical
11772 error while recording ldm, ldmia and pop instructions.
11774 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11776 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11778 2014-01-15 Pedro Alves <palves@redhat.com>
11780 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11781 (go32_resume, go32_fetch_registers, store_register)
11782 (go32_store_registers, go32_prepare_to_store)
11783 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11784 (go32_create_inferior, go32_can_run, go32_terminal_init)
11785 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11788 2014-01-15 Tom Tromey <tromey@redhat.com>
11790 * target.h (async_callback_ftype): New typedef.
11791 (struct target_ops) <to_async>: Use it.
11793 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11795 * python/py-value.c (get_field_type): Remove unnecessary curly
11796 braces for single-statement if block.
11798 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11800 * python/py-type.c (convert_field): Add missing empty line
11801 after declarations.
11803 2014-01-14 Doug Evans <dje@google.com>
11805 * symfile.h (expand_symtabs_matching): Renamed from
11806 expand_partial_symbol_names. Update prototype.
11807 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11808 * symfile.c (expand_symtabs_matching): Renamed from
11809 expand_partial_symbol_names. New args file_matcher, kind.
11810 Rename arg fun to symbol_matcher.
11811 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11812 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11813 ada_expand_partial_symbol_name.
11814 (ada_make_symbol_completion_list): Update to call
11815 expand_symtabs_matching.
11816 (ada_add_global_exceptions): Call expand_symtabs_matching.
11817 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11818 call map_symbol_filenames.
11819 * symtab.c (sources_info): Update to call map_symbol_filenames.
11820 (search_symbols): Call expand_symtabs_matching.
11821 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11822 (default_make_symbol_completion_list_break_on): Update to call
11823 expand_symtabs_matching.
11824 (make_source_files_completion_list): Update to call
11825 map_symbol_filenames.
11827 2014-01-14 Doug Evans <dje@google.com>
11829 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11830 (expand_symtabs_symbol_matcher_ftype): New typedef.
11831 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11832 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11833 * symfile.c (expand_partial_symbol_names): Update to use
11834 expand_symtabs_symbol_matcher_ftype.
11835 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11836 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11837 Arg name_matcher renamed to symbol_matcher.
11838 * psymtab.c (recursively_search_psymtabs): Update to use
11839 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11841 (expand_symtabs_matching_via_partial): Update to use
11842 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11843 Arg name_matcher renamed to symbol_matcher.
11845 2014-01-14 Doug Evans <dje@google.com>
11847 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11848 (map_partial_symbol_filenames): Ditto.
11849 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11850 (map_partial_symbol_filenames): Ditto.
11851 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11852 (map_partial_symbol_filenames): Ditto.
11853 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11854 (map_partial_symbol_filenames): Ditto.
11855 * symtab.c: Delete #include "psymtab.h".
11857 2014-01-14 Pedro Alves <palves@redhat.com>
11858 Tom Tromey <tromey@redhat.com>
11860 * infrun.c (use_displaced_stepping): Use find_record_target
11861 instead of RECORD_IS_USED.
11862 (adjust_pc_after_break): Use record_full_is_used instead of
11864 * record-btrace.c (record_btrace_open): Call record_preopen
11865 instead of checking RECORD_IS_USED.
11866 * record-full.c (record_full_shortname)
11867 (record_full_core_shortname): New globals.
11868 (record_full_is_used): New function.
11869 (find_full_open): Call record_preopen instead of checking
11871 (init_record_full_ops): Set the target's shortname to
11872 record_full_shortname.
11873 (init_record_full_core_ops): Set the target's shortname to
11874 record_full_core_shortname.
11875 * record-full.h (record_full_is_used): Declare.
11876 * record.c (find_record_target): Make extern.
11877 (record_preopen): New function.
11878 * record.h (RECORD_IS_USED): Delete macro.
11879 (find_record_target, record_preopen): Declare functions.
11881 2014-01-14 Yao Qi <yao@codesourcery.com>
11883 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11884 'len''s type to ULONGEST.
11885 (core_xfer_shared_libraries_aix): Likewise.
11886 * gdbarch.c, gdbarch.h: Regenerated.
11887 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11888 Change type of 'len' to ULONGEST.
11889 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11890 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11892 2014-01-14 Yao Qi <yao@codesourcery.com>
11894 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11895 type of 'len' to ULONGEST.
11896 (linux_xfer_osdata_processgroups): Likewise.
11897 (linux_xfer_osdata_threads): Likewise.
11898 (linux_xfer_osdata_fds): Likewise.
11899 (linux_xfer_osdata_isockets): Likewise.
11900 (linux_xfer_osdata_shm): Likewise.
11901 (linux_xfer_osdata_sem): Likewise.
11902 (linux_xfer_osdata_msg): Likewise.
11903 (linux_common_xfer_osdata): Likewise.
11904 (struct osdata_type) <getter>: Likewise.
11905 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11908 2014-01-14 Yao Qi <yao@codesourcery.com>
11910 * target.h (target_xfer_partial_ftype): Update.
11911 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11913 * aix-thread.c (aix_thread_xfer_partial): Change type of
11914 argument 'len' to ULONGEST.
11915 * auxv.c (procfs_xfer_auxv): Likewise.
11916 (ld_so_xfer_auxv): Likewise.
11917 (memory_xfer_auxv): Likewise.
11918 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11919 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11920 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11921 * corelow.c (core_xfer_partial): Likewise.
11922 * ctf.c (ctf_xfer_partial): Likewise.
11923 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11925 (darwin_read_dyld_info): Likewise.
11926 (darwin_xfer_partial): Likewise.
11927 * exec.c (section_table_xfer_memory_partial): Likewise.
11928 (exec_xfer_partial): Likewise.
11929 * exec.h (section_table_xfer_memory_partial): Update
11931 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11932 instead of plongest.
11933 (gnu_xfer_partial): Likewise.
11934 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11935 (ia64_hpux_xfer_solib_got): Likewise.
11936 (ia64_hpux_xfer_partial): Likewise.
11937 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11938 * inf-ptrace.c (inf_ptrace_xfer_partial):
11939 * inf-ttrace.c (inf_ttrace_xfer_partial):
11940 * linux-nat.c (linux_xfer_siginfo): Likewise.
11941 (linux_nat_xfer_partial): Likewise.
11942 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11943 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11944 * monitor.c (monitor_xfer_memory): Likewise.
11945 (monitor_xfer_partial): Likewise.
11946 * procfs.c (procfs_xfer_partial): Likewise.
11947 * record-full.c (record_full_xfer_partial): Likewise.
11948 (record_full_core_xfer_partial): Likewise.
11949 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11950 instead of plongest.
11951 (gdbsim_xfer_partial): Likewise.
11952 * remote.c (remote_xfer_partial): Likewise.
11953 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11954 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11956 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11957 (rs6000_xfer_shared_libraries): Likewise.
11958 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11959 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11960 (sparc_xfer_partial): Likewise.
11961 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11962 (spu_xfer_partial): Likewise.
11963 * spu-multiarch.c (spu_xfer_partial): Likewise.
11964 * target.c (target_read_live_memory): Likewise.
11965 (memory_xfer_live_readonly_partial): Likewise.
11966 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11967 (target_xfer_partial, default_xfer_partial): Likewise.
11968 (current_xfer_partial): Likewise.
11969 * tracepoint.c (tfile_xfer_partial): Likewise.
11970 * windows-nat.c (windows_xfer_memory): Likewise. Call
11971 pulongest instead of plongest.
11972 (windows_xfer_partial): Likewise.
11973 (windows_xfer_shared_libraries): Likewise.
11975 2014-01-14 Yao Qi <yao@codesourcery.com>
11977 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11978 target_xfer_partial_ftype.
11980 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11984 * valops.c (value_struct_elt_bitpos): New function
11985 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11986 object to 'None' if the field name is an empty string ("").
11987 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11988 attribute to look for a field when 'name' is 'None'.
11989 (get_field_type): New function
11991 2014-01-13 Doug Evans <dje@google.com>
11994 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11995 (try_open_dwop_file): Ditto.
11996 * gdb_bfd.c: #include "vec.h".
11997 (bfdp): New typedef.
11998 (struct gdb_bfd_data): New member included_bfds.
11999 (gdb_bfd_unref): Unref all included bfds.
12000 (gdb_bfd_record_inclusion): New function.
12001 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12003 2014-01-13 Tom Tromey <tromey@redhat.com>
12005 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12007 2014-01-13 Tom Tromey <tromey@redhat.com>
12009 * defs.h (use_windows): Remove.
12010 * gdb.c (main): Update.
12011 * main.c (captured_main, gdb_main): Update.
12012 * main.h (struct captured_main_args) <use_windows>: Remove.
12013 * top.c (use_windows): Remove.
12015 2014-01-13 Tom Tromey <tromey@redhat.com>
12017 * defs.h (deprecated_flush_hook): Remove.
12019 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12022 * linux-thread-db.c (try_thread_db_load): Add parameter
12023 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12024 (try_thread_db_load_from_pdir_1): Move it there from here.
12025 (try_thread_db_load_from_sdir): Update caller.
12026 (try_thread_db_load_from_dir): Move it there from here.
12028 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12030 * regformats/regdat.sh: Always rewrite the register file.
12032 2014-01-13 Pedro Alves <palves@redhat.com>
12034 * Makefile.in (CHECK_HEADERS): New variable.
12035 (check-headers:): New rule.
12037 2014-01-13 Tom Tromey <tromey@redhat.com>
12039 * cli/cli-setshow.c (do_set_command): Update.
12040 * defs.h (deprecated_set_hook): Remove.
12041 * top.c (deprecated_set_hook): Remove.
12043 2014-01-13 Pedro Alves <palves@redhat.com>
12045 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12046 the tracepoint if the PC is a pseudo-register.
12048 2014-01-13 Tom Tromey <tromey@redhat.com>
12050 * defs.h (XCALLOC): Remove.
12051 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12052 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12053 * dwarf2loc.c (allocate_piece_closure): Likewise.
12054 * elfread.c (elf_symfile_segments): Likewise.
12055 (elf_symfile_segments): Likewise.
12056 * gdbtypes.c (copy_type_recursive): Likewise.
12057 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12058 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12059 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12061 * mt-tdep.c (mt_gdbarch_init): Likewise.
12062 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12064 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12065 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12066 * registry.c (registry_alloc_data): Likewise.
12067 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12068 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12069 * serial.c (serial_fdopen_ops): Likewise.
12070 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12072 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12073 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12076 2014-01-13 Tom Tromey <tromey@redhat.com>
12078 * defs.h (XMALLOC): Remove.
12079 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12080 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12081 * cli-out.c (struct ui_out *): Likewise.
12082 * cli/cli-dump.c (add_dump_command): Likewise.
12083 (add_dump_command): Likewise.
12084 * complaints.c (get_complaints): Likewise.
12085 (find_complaint): Likewise.
12086 * dwarf2-frame.c (execute_cfa_program): Likewise.
12087 * dwarf2read.c (abbrev_table_read_table): Likewise.
12088 * gdbarch.sh: Likewise.
12089 * gdbarch.c: Rebuild.
12090 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12091 * interps.c (interp_new): Likewise.
12092 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12093 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12094 * mi/mi-console.c (mi_console_file_new): Likewise.
12095 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12096 * mi/mi-out.c (mi_out_new): Likewise.
12097 * mi/mi-parse.c (mi_parse): Likewise.
12098 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12099 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12100 * observer.c (xalloc_observer_list_node): Likewise.
12101 * regcache.c (regcache_xmalloc_1): Likewise.
12102 * reggroups.c (reggroup_new): Likewise.
12103 (_initialize_reggroup): Likewise.
12104 * registry.c (register_data_with_cleanup): Likewise.
12105 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12106 * ser-base.c (serial_ttystate): Likewise.
12107 * ser-mingw.c (make_pipe_state): Likewise.
12108 * ser-pipe.c (pipe_open): Likewise.
12109 * serial.c (serial_open): Likewise.
12110 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12111 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12112 (tui_alloc_win_info): Likewise.
12113 (tui_add_content_elements): Likewise.
12114 * tui/tui-file.c (tui_file_new): Likewise.
12115 * tui/tui-out.c (tui_out_new): Likewise.
12116 * ui-file.c (mem_file_new): Likewise.
12117 * ui-out.c (push_level): Likewise.
12118 (make_cleanup_ui_out_end): Likewise.
12119 (append_header_to_list): Likewise.
12120 (ui_out_new): Likewise.
12121 * user-regs.c (user_reg_add_builtin): Likewise.
12123 2014-01-13 Tom Tromey <tromey@redhat.com>
12125 * defs.h (XZALLOC): Remove.
12126 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12127 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12128 (get_ada_tasks_inferior_data): Likewise.
12129 * auto-load.c (get_auto_load_pspace_data): Likewise.
12130 * auxv.c (get_auxv_inferior_data): Likewise.
12131 * bfd-target.c (target_bfd_reopen): Likewise.
12132 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12133 (deprecated_insert_raw_breakpoint): Likewise.
12134 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12135 * corelow.c (core_open): Likewise.
12136 * darwin-nat.c (darwin_check_new_threads): Likewise.
12137 (darwin_attach_pid): Likewise.
12138 * dummy-frame.c (dummy_frame_push): Likewise.
12139 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12140 * dwarf2loc.c (allocate_piece_closure): Likewise.
12141 * elfread.c (elf_symfile_segments): Likewise.
12142 * eval.c (ptrmath_type_p): Likewise.
12143 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12144 * gdbtypes.c (alloc_type_arch): Likewise.
12145 (alloc_type_instance): Likewise.
12146 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12147 * inf-child.c (inf_child_can_use_agent): Likewise.
12148 * inflow.c (get_inflow_inferior_data): Likewise.
12149 * infrun.c (save_infcall_suspend_state): Likewise.
12150 * jit.c (jit_reader_load): Likewise.
12151 (get_jit_objfile_data): Likewise.
12152 (get_jit_program_space_data): Likewise.
12153 (jit_object_open_impl): Likewise.
12154 (jit_symtab_open_impl): Likewise.
12155 (jit_block_open_impl): Likewise.
12156 (jit_frame_sniffer): Likewise.
12157 * linux-fork.c (add_fork): Likewise.
12158 * maint.c (make_command_stats_cleanup): Likewise.
12159 * objfiles.c (get_objfile_pspace_data): Likewise.
12160 * opencl-lang.c (struct lval_closure): Likewise.
12161 * osdata.c (osdata_start_osdata): Likewise.
12162 * progspace.c (new_address_space): Likewise.
12163 (add_program_space): Likewise.
12164 * remote-sim.c (get_sim_inferior_data): Likewise.
12165 * sh-tdep.c (sh_gdbarch_init): Likewise.
12166 * skip.c (Ignore): Likewise.
12167 (skip_delete_command): Likewise.
12168 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12169 (library_list_start_library): Likewise.
12170 (solib_aix_current_sos): Likewise.
12171 * solib-darwin.c (get_darwin_info): Likewise.
12172 (darwin_current_sos): Likewise.
12173 * solib-dsbt.c (get_dsbt_info): Likewise.
12174 * solib-ia64-hpux.c (new_so_list): Likewise.
12175 (ia64_hpux_get_solib_linkage_addr): Likewise.
12176 * solib-spu.c (append_ocl_sos): Likewise.
12177 (spu_current_sos): Likewise.
12178 * solib-svr4.c (get_svr4_info): Likewise.
12179 (svr4_keep_data_in_core): Likewise.
12180 (library_list_start_library): Likewise.
12181 (svr4_default_sos): Likewise.
12182 (svr4_read_so_list): Likewise.
12183 * solib-target.c (library_list_start_library): Likewise.
12184 (solib_target_current_sos): Likewise.
12185 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12186 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12187 * symfile.c (default_symfile_segments): Likewise.
12188 * target-descriptions.c (tdesc_data_init): Likewise.
12189 (tdesc_create_reg): Likewise.
12190 (struct tdesc_type *): Likewise.
12191 (tdesc_create_vector): Likewise.
12192 (tdesc_set_struct_size): Likewise.
12193 (struct tdesc_type *): Likewise.
12194 (tdesc_free_feature): Likewise.
12195 (tdesc_create_feature): Likewise.
12196 * windows-nat.c (windows_add_thread): Likewise.
12197 (windows_make_so): Likewise.
12198 * xml-support.c (gdb_xml_body_text): Likewise.
12199 (gdb_xml_create_parser_and_cleanup): Likewise.
12200 (xml_process_xincludes): Likewise.
12201 * xml-syscall.c (allocate_syscalls_info): Likewise.
12202 (syscall_create_syscall_desc): Likewise.
12204 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12206 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12207 function, with code from i386_stap_parse_special_token.
12208 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12209 (i386_stap_parse_special_token): Move code to the two functions
12210 above; simplify it.
12212 2014-01-09 Pedro Alves <palves@redhat.com>
12213 Hui Zhu <hui@codesourcery.com>
12216 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12217 bp_err_string. Don't mark the location shlib_disabled if the
12218 error thrown wasn't a generic or memory error. Catch errors
12219 thrown while inserting breakpoints in overlayed code. Output
12220 error message of software breakpoints.
12221 * remote.c (remote_insert_breakpoint): If this breakpoint has
12222 target-side commands but this stub doesn't support Z0 packets,
12223 throw NOT_SUPPORTED_ERROR error.
12224 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12225 * target.h (target_insert_breakpoint): Extend comment.
12226 (target_insert_hw_breakpoint): Add comment.
12228 2014-01-08 Pedro Alves <palves@redhat.com>
12230 * remote.c (remote_add_thread): Add threads silently if starting
12232 (remote_notice_new_inferior): If in all-stop, and starting up,
12233 don't call notice_new_inferior.
12234 (get_current_thread): New function, factored out from ...
12235 (add_current_inferior_and_thread): ... this. Adjust.
12236 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12237 found any thread, then select the remote's current thread as GDB's
12238 current thread too.
12240 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12242 * NEWS: Create a new section for the next release branch.
12243 Rename the section of the current branch, now that it has
12246 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12248 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12249 * version.in: Bump version to 7.7.50.DATE-cvs.
12251 2014-01-08 Yao Qi <yao@codesourcery.com>
12253 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12254 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12255 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12257 2014-01-08 Yao Qi <yao@codesourcery.com>
12259 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12260 return value of bfd_get_filename to symbol_file_add_from_bfd.
12262 2014-01-08 Pierre Muller <muller@sourceware.org>
12265 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12266 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12267 to prim_record_mininal_symbol_and_info.
12268 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12269 in call to prim_record_minimal_symbol_and_info.
12270 (read_pe_exported_syms): Set index field of section_data.
12272 2014-01-07 Andrew Pinski <apinski@cavium.com>
12274 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12275 * features/aarch64.c: Regenerate.
12277 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12279 * target.c (return_null): Define.
12280 (update_current_target): Use it instead of return_zero for
12281 functions that return a pointer.
12283 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12285 * source.c (add_path): Fix check for duplicated paths in the previously
12288 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12290 * ada-lang.c: Remove duplicated include statements.
12291 * alphabsd-nat.c: Ditto.
12292 * amd64-darwin-tdep.c: Ditto.
12293 * amd64fbsd-nat.c: Ditto.
12294 * auto-load.c: Ditto.
12296 * breakpoint.c: Ditto.
12297 * dbxread.c: Ditto.
12298 * fork-child.c: Ditto.
12299 * gdb_usleep.c: Ditto.
12300 * i386-darwin-tdep.c: Ditto.
12301 * i386fbsd-nat.c: Ditto.
12303 * inferior.c: Ditto.
12304 * jv-lang.c: Ditto.
12305 * linux-nat.c: Ditto.
12306 * linux-tdep.c: Ditto.
12307 * m68kbsd-nat.c: Ditto.
12308 * m68klinux-nat.c: Ditto.
12309 * microblaze-tdep.c: Ditto.
12310 * mips-linux-tdep.c: Ditto.
12311 * mn10300-tdep.c: Ditto.
12312 * nto-tdep.c: Ditto.
12313 * opencl-lang.c: Ditto.
12315 * printcmd.c: Ditto.
12316 * regcache.c: Ditto.
12317 * remote-m32r-sdi.c: Ditto.
12319 * symfile.c: Ditto.
12321 * tilegx-linux-nat.c: Ditto.
12322 * tilegx-tdep.c: Ditto.
12323 * tracepoint.c: Ditto.
12325 * vaxbsd-nat.c: Ditto.
12326 * windows-nat.c: Ditto.
12327 * xtensa-tdep.c: Ditto.
12329 2014-01-07 Yao Qi <yao@codesourcery.com>
12331 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12333 2014-01-07 Yao Qi <yao@codesourcery.com>
12334 Joel Brobecker <brobecker@adacore.com>
12336 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12337 (pdc_write_regs): Likewise.
12338 (fetch_regs_kernel_thread): Likewise.
12339 (store_regs_kernel_thread): Likewise.
12341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12343 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12344 tagged type objects to their actual type.
12346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12348 * ada-valprint.c (print_field_values): Add "language" parameter.
12349 Update calls to print_field_values and print_variant_part.
12350 Pass new parameter "language" in call to val_print instead
12351 of "current_language". Replace call to ada_val_print by call
12353 (print_variant_part): Add "language" parameter.
12354 (ada_val_print_struct_union): Update call to print_field_values.
12356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12358 * ada-valprint.c (ui_memcpy): Delete.
12359 (ada_print_floating): Update documentation. Add empty line
12360 between between function documentation and implementation.
12361 Delete variable "buffer". Use ui_file_xstrdup in place of
12362 ui_file_put. Minor adjustments following this change.
12364 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12366 * ada-valprint.c (ada_val_print_string): New function,
12367 extracted from ada_val_print_array.
12368 (ada_val_print_array): Replace extracted code by call
12369 to ada_val_print_string followed by a return. Move
12370 "else" branch to the function's top block.
12372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12374 * ada-valprint.c (ada_val_print_array): Move implementation
12375 down. Rename parameter "offset" and "val" into "offset_aligned"
12376 and "original_value" respectively. Add parameter "offset".
12378 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12380 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12381 re-organizing the code. Change the "???" message printed
12382 when target type is a TYPE_CODE_UNDEF into
12383 "<ref to undefined type>".
12385 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12387 * ada-valprint.c (print_record): Delete, implementation inlined...
12388 (ada_val_print_struct_union): ... here. Remove call to
12389 ada_check_typedef in inlined implementation.
12391 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12393 * ada-valprint.c (ada_val_print_gnat_array): New function,
12394 extracted from ada_val_print_1;
12395 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12396 (ada_val_print_flt, ada_val_print_struct_union)
12397 (ada_val_print_ref): Likewise.
12398 (ada_val_print_1): Delete variables i and elttype.
12399 Replace extracted-out code by call to corresponding
12402 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12404 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12406 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12408 * ada-valprint.c (ada_val_print_1): Replace calls to
12409 ada_val_print_1 by calls to val_print.
12411 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12413 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12414 Update calls to self accordingly. Replace calls to c_val_print
12415 by calls to val_print.
12417 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12419 * ada-valprint.c (print_record): Delete declaration.
12420 (adjust_type_signedness, ada_val_print_1): Likewise.
12421 (ada_val_print): Move function implementation down.
12422 (print_variant_part, print_field_values, print_record):
12423 Move function implementation up.
12425 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12427 * python/py-type.c (typy_get_name): New function.
12428 (type_object_getset): Add entry for attribute "name".
12429 * NEWS: Add entry mentioning this new attribute.
12431 2014-01-07 Yao Qi <yao@codesourcery.com>
12433 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12436 2014-01-07 Yao Qi <yao@codesourcery.com>
12438 * gnu-nat.c (info_port_rights): Add qualifier const to
12441 2014-01-07 Yao Qi <yao@codesourcery.com>
12443 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12445 2014-01-07 Yao Qi <yao@codesourcery.com>
12447 * gnu-nat.c (make_inf) Update declaration.
12448 (make_inf): Make it static.
12449 (inf_set_traced): Likewise.
12450 (inf_port_to_thread, inf_task_died_status): Likewise.
12452 2014-01-07 Yao Qi <yao@codesourcery.com>
12454 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12456 2014-01-07 Yao Qi <yao@codesourcery.com>
12458 * gnu-nat.c (_initialize_gnu_nat): Declare.
12460 2014-01-07 Yao Qi <yao@codesourcery.com>
12462 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12464 (struct gdbarch_info) <byte_order>: Change type to
12466 <byte_order_for_code>: Likewise.
12467 * gdbarch.c, gdbarch.h: Regenerated.
12469 2014-01-06 Sasha Smundak <asmundak@google.com>
12471 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12473 2014-01-06 Tom Tromey <tromey@redhat.com>
12475 * doublest.c (convert_doublest_to_floatformat): Use const, not
12477 * somread.c (som_symtab_read): Likewise.
12479 2014-01-07 Hui Zhu <hui@codesourcery.com>
12481 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12482 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12483 (gdb_bfd_fopen): Ditto.
12484 (gdb_bfd_openr): Ditto.
12485 (gdb_bfd_openw): Ditto.
12486 (gdb_bfd_openr_iovec): Ditto.
12487 (gdb_bfd_fdopenr): Ditto.
12488 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12489 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12491 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12493 * symfile-mem.c (symbol_file_add_from_memory): Removed
12494 gdb_bfd_stash_filename.
12496 2014-01-03 Doug Evans <dje@google.com>
12498 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12501 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12503 Update year range in copyright notice of all files.
12505 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12507 * top.c (print_gdb_version): Set copyright year to 2014.
12509 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12511 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12513 For older changes see ChangeLog-2013.
12519 version-control: never