1 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
6 2014-09-02 Doug Evans <dje@google.com>
8 * typeprint.c (find_global_typedef): Fix comment.
10 2014-09-02 Gary Benson <gbenson@redhat.com>
12 * i386-nat.h: Renamed as...
13 * x86-nat.h: New file. All type, function and variable name
14 prefixes changed from "i386_" to "x86_". All references updated.
15 * i386-nat.c: Renamed as...
16 * x86-nat.c: New file. All type, function and variable name
17 prefixes changed from "i386_" to "x86_". All references updated.
18 * common/i386-xstate.h: Renamed as...
19 * common/x86-xstate.h: New file. All type, function and variable
20 name prefixes changed from "i386_" to "x86_". All references
22 * nat/i386-cpuid.h: Renamed as...
23 * nat/x86-cpuid.h: New file. All type, function and variable name
24 prefixes changed from "i386_" to "x86_". All references updated.
25 * nat/i386-gcc-cpuid.h: Renamed as...
26 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
27 name prefixes changed from "i386_" to "x86_". All references
29 * nat/i386-dregs.h: Renamed as...
30 * nat/x86-dregs.h: New file. All type, function and variable name
31 prefixes changed from "i386_" to "x86_". All references updated.
32 * nat/i386-dregs.c: Renamed as...
33 * nat/x86-dregs.c: New file. All type, function and variable name
34 prefixes changed from "i386_" to "x86_". All references updated.
36 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
38 * varobj.c (_initialize_varobj): Move to the end of file.
40 2014-08-29 Gary Benson <gbenson@redhat.com>
42 * common/common-exceptions.h: New file.
43 * common/common-exceptions.c: Likewise.
44 * Makefile.in (SFILES): Add common/common-exceptions.c.
45 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
46 (COMMON_OBS): Add common-exceptions.o.
47 (common-exceptions.o): New rule.
48 * exceptions.h (common-exceptions.h): Include.
49 (gdb_setjmp.h): Do not include.
50 (return_reason): Moved to common-exceptions.h.
51 (enum return_reason): Likewise.
52 (RETURN_MASK): Likewise.
53 (typedef return_mask): Likewise.
54 (enum errors): Likewise.
55 (struct gdb_exception): Likewise.
56 (exceptions_state_mc_init): Likewise.
57 (exceptions_state_mc_action_iter): Likewise.
58 (exceptions_state_mc_action_iter_1): Likewise.
59 (TRY_CATCH): Likewise.
60 (throw_exception): Likewise.
61 (throw_verror): Likewise.
62 (throw_vquit): Likewise.
63 (throw_error): Likewise.
64 (throw_quit): Likewise.
65 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
66 (enum catcher_action): Likewise.
67 (struct catcher): Likewise.
68 (current_catcher): Likewise.
69 (catcher_list_size): Likewise.
70 (exceptions_state_mc_init): Likewise.
71 (catcher_pop): Likewise.
72 (exceptions_state_mc): Likewise.
73 (exceptions_state_mc_action_iter): Likewise.
74 (exceptions_state_mc_action_iter_1): Likewise.
75 (throw_exception): Likewise.
76 (exception_messages): Likewise.
77 (exception_messages_size): Likewise.
79 (throw_verror): Likewise.
80 (throw_vquit): Likewise.
81 (throw_error): Likewise.
82 (throw_quit): Likewise.
83 (prepare_to_throw_exception): New function.
85 2014-08-29 Gary Benson <gbenson@redhat.com>
87 * common/gdb_setjmp.h: New file.
88 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
89 * configure.ac: Move sigsetjmp check...
90 * common/common.m4: ...here.
91 * configure: Regenerate.
92 * cp-support.c (SIGJMP_BUF): Delete.
93 (SIGSETJMP): Likewise.
94 (SIGLONGJMP): Likewise.
95 * exceptions.h (gdb_setjmp.h): Include.
96 (setjmp.h): Do not include.
97 (EXCEPTIONS_SIGJMP_BUF): Delete.
98 (EXCEPTIONS_SIGSETJMP): Likewise.
99 (EXCEPTIONS_SIGLONGJMP): Likewise.
100 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
102 * exceptions.c: Likewise.
104 2014-08-29 Gary Benson <gbenson@redhat.com>
106 * cleanups.h: Moved to...
107 * common/cleanups.h: New file.
108 * cleanups.c: Moved to...
109 * common/cleanups.c: New file. Include common-defs.h and
110 cleanups.h. Do not include defs.h.
111 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
112 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
113 (cleanups.o): New rule.
115 2014-08-29 Gary Benson <gbenson@redhat.com>
117 * common/errors.h (internal_warning): New declaration.
118 (internal_vwarning): Likewise.
119 * common/errors.c (internal_warning): New function.
120 * utils.h (internal_warning): Don't declare.
121 (internal_vwarning): Likewise.
122 * utils.c (internal_warning): Removed.
124 2014-08-29 Gary Benson <gbenson@redhat.com>
126 * main.c (captured_main): Use warning during startup.
127 Prefix startup warning messages with command name.
129 2014-08-29 Gary Benson <gbenson@redhat.com>
131 * main.c (captured_main): Handle usage errors with error.
133 2014-08-29 Gary Benson <gbenson@redhat.com>
135 * go32-nat.c (go32_create_inferior): Replace a fprintf/
136 exit pair with a call to error. Wrap the message with _().
138 2014-08-29 Gary Benson <gbenson@redhat.com>
140 * main.c (captured_main): Replace a fprintf/exit
141 pair with a call to error. Wrap the message with _().
143 2014-08-29 Gary Benson <gbenson@redhat.com>
145 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
146 pairs with calls to error. Wrap the message with _().
148 2014-08-29 Gary Benson <gbenson@redhat.com>
150 * utils.c (vwarning): Protect calls to target_terminal_ours
153 2014-08-29 Gary Benson <gbenson@redhat.com>
155 * exceptions.c (print_flush): Protect calls to
156 target_terminal_ours and wrap_here.
158 2014-08-29 Gary Benson <gbenson@redhat.com>
160 * utils.h (filtered_printing_initialized): New declaration.
161 * utils.c (abort_with_message): New function.
162 (internal_vproblem): Use abort_with_message for first level
163 recursive internal problems, and if gdb_stderr is not set up.
164 Protect calls to target_terminal_ours, begin_line and query.
166 2014-08-28 Doug Evans <dje@google.com>
168 * symtab.c (in_prologue): Move definition to better spot.
169 (skip_prologue_using_sal): Ditto.
171 2014-08-28 Doug Evans <dje@google.com>
173 * symtab.c (find_function_start_sal): Move definition to better spot.
175 2014-08-28 Yao Qi <yao@codesourcery.com>
177 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
178 found_stack_adjust in forward scan. Remove condition check
179 on found_stack_adjust which is always true. Indent the code.
181 2014-08-28 Yao Qi <yao@codesourcery.com>
183 * dwarf2read.c (dwarf_decode_lines): Update declaration.
184 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
185 (dwarf_decode_lines): Remove argument
186 want_line_info. Remove condition check on want_line_info.
189 2014-08-27 Doug Evans <dje@google.com>
191 * dwarf2read.c (dwarf_record_line): Fix typo.
193 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
195 * target.h (struct target_ops::to_terminal_save_ours): Remove
197 (target_terminal_save_ours): Remove macro.
198 * target-delegates.c: Regenerate.
199 * inf-child.c (inf_child_target): Don't set the nonexistent
200 field to_terminal_save_ours.
201 * inferior.h (child_terminal_save_ours): Remove declaration.
202 * terminal.h (gdb_save_tty_state): New declaration.
203 * inflow.c (child_terminal_save_ours): Rename to ...
204 (gdb_save_tty_state): ... this.
205 * tui/tui.c: Include terminal.h.
206 (tui_enable): Use gdb_save_tty_state instead of
207 target_terminal_save_ours.
208 (tui_disable): Likewise.
210 2014-08-25 Doug Evans <dje@google.com>
212 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
213 Pass NULL instead of 0 for context pointer.
215 2014-08-25 Yao Qi <yao@codesourcery.com>
217 * dwarf2read.c: Fix grammatical error.
219 2014-08-24 Yao Qi <yao@codesourcery.com>
221 * dwarf2read.c (scan_partial_symbols): Update comments.
222 Rename argument 'need_pc' with 'set_addrmap'.
223 (add_partial_namespace): Rename argument 'need_pc' with
225 (add_partial_module): Likewise.
226 (add_partial_subprogram): Likewise. Update comments.
227 (dwarf2_name): Fix typo.
229 2014-08-22 Doug Evans <dje@google.com>
232 * dwarf2read.c (dwarf_record_line_p): New function.
233 (dwarf_decode_lines_1): Ignore subsequent line number entries
234 for the same line if any entry had a non-zero discriminator.
236 2014-08-22 Doug Evans <dje@google.com>
238 * buildsym.h (record_line_ftype): New typedef.
239 (record_line): Use it.
240 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
241 (dwarf_decode_lines_1): Call them.
243 2014-08-22 Yao Qi <yao@codesourcery.com>
245 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
246 (ctf_end): Remove code.
248 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
250 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
251 (linux_make_corefile_notes): call update_thread_list, protected against
254 2014-08-21 Pedro Alves <palves@redhat.com>
256 * infcmd.c (attach_command): Remove comment.
258 2014-08-21 Bin Cheng <bin.cheng@arm.com>
260 * aarch64-linux-nat.c (dr_changed_t): Change the type from
261 unsigned LONGEST to ULONGEST.
263 2014-08-20 Pedro Alves <palves@redhat.com>
265 * Makefile.in (check-read1): New rule.
267 2014-08-20 Joel Brobecker <brobecker@adacore.com>
269 * value.c (value_from_contents_and_address): Strip resolved_type's
270 typedef layers before checking its TYPE_DATA_LOCATION.
272 2014-08-20 Pedro Alves <palves@redhat.com>
274 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
276 2014-08-20 Yao Qi <yao@codesourcery.com>
278 * amd64-tdep.c (amd64_classify): Add a blank line after the
279 example. Move "*/" to a new line.
280 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
281 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
282 * dwarf2read.c (psymtab_include_file_name): Likewise.
284 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
285 Pedro Alves <palves@redhat.com>
289 * ada-lang.c (coerce_unspec_val_to_type): Use
290 value_contents_copy_raw.
291 * ada-valprint.c (val_print_packed_array_elements): Adjust.
292 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
293 * cp-valprint.c (cp_print_value_fields): Let the common printing
294 code handle optimized out values.
295 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
296 * d-valprint.c (dynamic_array_type): Use
297 value_bits_any_optimized_out.
298 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
299 check_any_valid fields.
300 (check_pieced_value_bits): Delete and inline ...
301 (check_pieced_synthetic_pointer): ... here.
302 (check_pieced_value_validity): Delete.
303 (check_pieced_value_invalid): Delete.
304 (pieced_value_funcs): Remove check_validity and check_any_valid
306 (read_pieced_value): Use mark_value_bits_optimized_out.
307 (write_pieced_value): Switch to use
308 mark_value_bytes_optimized_out.
309 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
310 of assuming the whole value is optimized out.
311 * findvar.c (read_frame_register_value): Remove special handling
312 of optimized out registers.
313 (value_from_register): Use mark_value_bytes_optimized_out.
314 * frame-unwind.c (frame_unwind_got_optimized): Use
315 mark_value_bytes_optimized_out.
316 * jv-valprint.c (java_value_print): Adjust.
317 (java_print_value_fields): Let the common printing code handle
318 optimized out values.
319 * mips-tdep.c (mips_print_register): Remove special handling of
320 optimized out registers.
321 * opencl-lang.c (lval_func_check_validity): Delete.
322 (lval_func_check_any_valid): Delete.
323 (opencl_value_funcs): Remove check_validity and check_any_valid
325 * p-valprint.c (pascal_object_print_value_fields): Let the common
326 printing code handle optimized out values.
327 * stack.c (read_frame_arg): Remove special handling of optimized
328 out values. Fetch both VAL and ENTRYVAL before comparing
329 contents. Adjust to value_available_contents_eq rename.
330 * valprint.c (valprint_check_validity)
331 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
332 (val_print_array_elements): Adjust.
333 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
334 (value_bits_any_optimized_out): New function.
335 (value_entirely_covered_by_range_vector): New function, factored
336 out from value_entirely_unavailable.
337 (value_entirely_unavailable): Reimplement.
338 (value_entirely_optimized_out): New function.
339 (insert_into_bit_range_vector): New function, factored out from
340 mark_value_bits_unavailable.
341 (mark_value_bits_unavailable): Reimplement.
342 (struct ranges_and_idx): New struct.
343 (find_first_range_overlap_and_match): New function, factored out
344 from value_available_contents_bits_eq.
345 (value_available_contents_bits_eq): Rename to ...
346 (value_contents_bits_eq): ... this. Check both unavailable
347 contents and optimized out contents.
348 (value_available_contents_eq): Rename to ...
349 (value_contents_eq): ... this.
350 (allocate_value_lazy): Remove reference to the old optimized_out
352 (allocate_optimized_out_value): Use
353 mark_value_bytes_optimized_out.
354 (require_not_optimized_out): Adjust to check whether the
355 optimized_out vec is empty.
356 (ranges_copy_adjusted): New function, factored out from
357 value_contents_copy_raw.
358 (value_contents_copy_raw): Also copy the optimized out ranges.
359 Assert the destination ranges aren't optimized out.
360 (value_contents_copy): Update comment, remove call to
361 require_not_optimized_out.
362 (value_contents_equal): Adjust to check whether the optimized_out
364 (set_value_optimized_out, value_optimized_out_const): Delete.
365 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
367 (value_entirely_optimized_out, value_bits_valid): Delete.
368 (value_copy): Take a VEC copy of the 'optimized_out' field.
369 (value_primitive_field): Remove special handling of optimized out.
370 (value_fetch_lazy): Assert that lazy values have no unavailable
371 regions. Use value_bits_any_optimized_out. Remove some special
372 handling for optimized out values.
373 * value.h: Add intro comment about <optimized out> and
375 (struct lval_funcs): Remove check_validity and check_any_valid
377 (set_value_optimized_out, value_optimized_out_const): Remove.
378 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
380 (value_bits_any_optimized_out): New declaration.
381 (value_bits_valid): Delete declaration.
382 (value_available_contents_eq): Rename to ...
383 (value_contents_eq): ... this, and extend comments.
385 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
387 Fix -fsanitize=address on unreadable inferior strings.
388 * valprint.c (val_print_string): Fix access before BUFFER.
390 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
392 * target.c (target_struct_size): Remove.
393 (target_struct_allocsize): Remove.
394 (DEFAULT_ALLOCSIZE): Remove.
395 (target_ops_p): New typedef.
396 (DEF_VEC_P (target_ops_p)): New vector type.
397 (target_structs): Change type to VEC (target_ops_p).
398 (add_target_with_completer): Replace "push" code by VEC_safe_push.
399 (find_default_run_target): Rewrite for loop following changes to
402 2014-08-19 Joel Brobecker <brobecker@adacore.com>
404 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
405 Adjust code accordingly. Adjust function description comment.
407 2014-08-19 Yao Qi <yao@codesourcery.com>
409 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
412 2014-08-19 Alan Modra <amodra@gmail.com>
414 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
415 * config.in: Regenerate.
416 * configure: Regenerate.
418 2014-08-19 Tom Tromey <tromey@redhat.com>
419 Gary Benson <gbenson@redhat.com>
421 * common/common-debug.h: New file.
422 * common/common-debug.c: Likewise.
424 * Makefile.in (SFILES): Add common/common-debug.c.
425 (HFILES_NO_SRCDIR): Add common/common-debug.h.
426 (COMMON_OBS): Add common-debug.o and debug.o.
427 (common-debug.o): New rule.
428 * common/common-defs.h: Include common-debug.h.
429 * common/agent.c (debug_agent_printf): New function.
430 (DEBUG_AGENT): Redefine.
431 * nat/i386-dregs.c (debug_printf): Undefine.
433 2014-08-19 Gary Benson <gbenson@redhat.com>
435 * common/common-defs.h: Include print-utils.h.
436 * utils.h: Do not include print-utils.h.
438 2014-08-19 Tom Tromey <tromey@redhat.com>
439 Gary Benson <gbenson@redhat.com>
441 * common/common-types.h: New file.
442 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
443 * common/common-defs.h: Include common-types.h.
444 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
447 2014-08-19 Tom Tromey <tromey@redhat.com>
448 Gary Benson <gbenson@redhat.com>
450 * common/errors.h: New file.
451 * common/errors.c: Likewise.
452 * Makefile.in (SFILES): Add common/errors.c.
453 (HFILES_NO_SRCDIR): Add common/errors.h.
454 (COMMON_OBS): Add errors.o.
455 (errors.o): New rule.
456 * common/common-defs.h: Include errors.h.
457 * utils.h (perror_with_name, error, verror, warning, vwarning):
459 * common/common-utils.h: (malloc_failure, internal_error):
462 2014-08-19 Gary Benson <gbenson@redhat.com>
464 * utils.c (internal_vproblem): Always print the message.
466 2014-08-18 Doug Evans <dje@google.com>
468 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
470 2014-08-18 Joel Brobecker <brobecker@adacore.com>
472 * ada-typeprint.c (type_is_full_subrange_of_target_type):
473 Return 0 if TYPE is dynamic.
474 (print_range): Add handling of dynamic ranges.
476 2014-08-18 Keven Boell <keven.boell@intel.com>
477 Joel Brobecker <brobecker@adacore.com>
479 * gdbtypes.h (struct main_type): Add field "data_location".
480 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
481 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
482 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
483 a dynamic data location.
484 (resolve_dynamic_type): Add DW_AT_data_location handling.
485 (copy_recursive, copy_type): Copy the data_location information
487 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
488 * value.c (value_from_contents_and_address): Add
489 DW_AT_data_location handling.
491 2014-08-18 Keven Boell <keven.boell@intel.com>
492 Joel Brobecker <brobecker@adacore.com>
494 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
495 field "get_object_address".
496 * dwarf2expr.c (execute_stack_op): Add handling for
497 DW_OP_push_object_address.
498 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
499 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
500 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
501 (dwarf_expr_get_obj_addr): New function.
502 (dwarf_expr_ctx_funcs): Add get_object_address field.
503 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
504 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
505 (dwarf2_evaluate_property): Add parameter "address". Use it.
506 (needs_get_obj_addr): New function.
507 (needs_frame_ctx_funcs): Add get_object_address field.
508 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
509 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
510 (resolve_dynamic_array): Likewise.
512 2014-08-18 Joel Brobecker <brobecker@adacore.com>
514 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
515 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
516 fixed value for records and unions for which some GNAT encodings
519 2014-08-18 Joel Brobecker <brobecker@adacore.com>
521 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
522 rewrite to avoid "else if" and "else" constructs. Should be
525 2014-08-18 Joel Brobecker <brobecker@adacore.com>
527 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
530 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
533 * eval.c: Update all calls to find_overload_match.
534 * valarith.c: Likewise.
535 (value_user_defined_cpp_op, value_user_defined_op): New
536 argument NOSIDE. Update all callers.
537 * valops.c (find_overload_match): New argument NOSIDE.
538 * value.h (find_overload_match): Update signature.
540 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
542 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
543 'items' methods instead of 'iteritems' method on dictionaries.
545 2014-08-15 Doug Evans <dje@google.com>
547 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
550 2014-08-15 Doug Evans <dje@google.com>
552 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
554 2014-08-15 Doug Evans <dje@google.com>
556 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
558 2014-08-15 Doug Evans <dje@google.com>
560 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
563 2014-08-15 Eli Zaretskii <eliz@gnu.org>
565 * dcache.h: Include target.h, to avoid compile time warnings.
567 2014-08-15 Joel Brobecker <brobecker@adacore.com>
569 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
570 frame_info" partial declaration.
571 * gdbarch.h: Regenerate.
573 2014-08-15 Yao Qi <yao@codesourcery.com>
575 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
576 Add parameter 'decode_for_pst_p'. Callers update.
578 2014-08-13 Yao Qi <yao@codesourcery.com>
581 * configure.ac: Use local variable 'pos'.
582 * configure: Regenerated.
584 2014-08-11 Doug Evans <dje@google.com>
586 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
587 message, it is redundant with "Reading symbols from ..." message.
589 2014-08-10 Doug Evans <xdje42@gmail.com>
591 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
593 2014-08-09 Yao Qi <yao@codesourcery.com>
596 * remote.c (remote_xfer_partial): Remove dead code.
598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
600 * ia64-linux-tdep.c: Include "regset.h".
601 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
602 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
603 (ia64_linux_supply_fpregset): New function.
604 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
605 (ia64_linux_regset_from_core_section): New function.
606 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
609 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
611 * m68klinux-tdep.c: Include "regset.h".
612 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
613 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
614 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
615 (m68k_linux_regset_from_core_section): New function.
616 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
619 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
621 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
622 function. Move logic to...
623 (tilegx_linux_regmap): ... this new register map.
624 (tilegx_linux_regset): Refer to register map, replace supply
625 method by regcache_supply_regset, and add collect method.
626 * tilegx-tdep.h (enum tilegx_regnum): New enum value
627 TILEGX_FIRST_EASY_REGNUM.
629 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
631 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
632 that calls regcache_supply_regset and handles the EPC register
633 separately. Move main logic to...
634 (score7_linux_gregmap): ... this new register map.
635 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
636 (score7_linux_gregset): Refer to register map. Add collect method.
637 (score7_linux_regset_from_core_section): Replace
638 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
639 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
640 (struct regset): Delete unused forward declaraction.
641 (struct pt_regs): Delete structure definition.
642 (elf_gregset_t): Delete typedef.
644 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
646 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
647 (nios2_core_regset): Add collect method.
649 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
651 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
652 platform-independent and don't write to read-only input buffer.
653 (m32r_linux_collect_gregset): New function.
654 (m32r_linux_gregset): Add collect method.
656 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
658 * hppa-linux-tdep.c (greg_map): Rename to...
659 (hppa_linux_gregmap): ... this. Also convert to
660 regcache_map_entry format.
661 (hppa_linux_supply_regset): Delete function.
662 (hppa_linux_supply_fpregset): Delete function. Move logic to...
663 (hppa_linux_fpregmap): ... this new register map.
664 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
665 register map, replace supply method by regcache_supply_regset, and
666 add collect method regcache_collect_regset.
668 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
670 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
671 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
672 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
673 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
674 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
675 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
676 (frv_linux_supply_gregset): Replace main logic by call to
677 regcache_supply_regset, but keep clearing gr32-gr63.
678 (frv_linux_supply_fpregset): Delete function.
679 (frv_linux_gregset): Refer to appropriate register map and add
680 regcache_collect_regset as the collect method.
681 (frv_linux_fpregset): Likewise. Also exchange the supply method
682 by regcache_supply_regset.
684 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
686 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
687 by call to alpha_supply_int_regs.
688 (alpha_linux_collect_gregset): New function.
689 (alpha_linux_supply_fpregset): Replace logic by call to
690 alpha_supply_fp_regs.
691 (alpha_linux_collect_fpregset): New function.
692 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
694 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
696 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
697 by call to regcache_collect_regset.
698 (supply_gregset, supply_fpregset): Call regcache_supply_regset
699 instead of aarch64_linux_supply_gregset/_fpregset.
700 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
701 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
703 (aarch64_linux_supply_gregset, supply_gregset_from_core)
704 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
705 functions. Move logic to ...
706 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
708 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
709 refer to new register maps, replace *_regset_from_core by
710 regcache_supply_regset, and also use regcache_collect_regset.
711 * aarch64-linux-tdep.h: Include "regset.h".
712 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
714 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
715 macros, moved from C source file.
716 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
717 variable declarations.
719 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
721 * s390-linux-nat.c: Include "regset.h".
722 (regmap_gregset): Delete macro.
723 (s390_64_regmap_gregset): New register map for
724 regcache_supply/_collect_regset.
725 (s390_64_gregset): New regset.
726 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
727 (regmap_fpregset): Delete macro.
728 (s390_native_supply, s390_native_collect): Delete functions.
729 (supply_gregset, fill_gregset): Replace s390-specific regmap
730 handling by a call to regcache_supply/_collect_regset.
731 (supply_fpregset, fill_fpregset): Call regcache_supply/
732 _collect_regset instead of s390_native_supply/_collect.
733 (fetch_regset, store_regset): Likewise. Also change the last
734 parameter to a regset instead of a regmap.
735 (s390_linux_fetch_inferior_registers)
736 (390_linux_store_inferior_registers): Adjust last parameter in
737 calls to fetch_regset and store_regset.
738 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
739 (s390_gregmap): ... this. Also make static const and convert to
740 regcache_map_entry format.
741 (s390x_regmap_gregset): Delete.
742 (s390_regmap_fpregset): Rename to...
743 (s390_fpregmap): ... this. Make static const and convert to
744 regcache_map_entry format.
745 (s390_regmap_upper, s390_regmap_last_break)
746 (s390x_regmap_last_break, s390_regmap_system_call)
747 (s390_regmap_tdb): Likewise.
748 (s390_supply_regset, s390_collect_regset): Remove functions.
749 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
751 (s390_gregset, s390_fpregset, s390_upper_regset)
752 (s390_last_break_regset, s390x_last_break_regset)
753 (s390_system_call_regset, s390_tdb_regset): Make global and
754 replace s390_supply/_collect_regset by regcache_supply/
756 (s390x_gregset): Delete.
757 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
758 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
759 (s390_regmap_fpregset, s390_regmap_last_break)
760 (s390x_regmap_last_break, s390_regmap_system_call)
761 (s390_regmap_tdb): Delete global variable declarations.
762 (s390_gregset, s390_fpregset, s390_last_break_regset)
763 (s390x_last_break_regset, s390_system_call_regset)
764 (s390_tdb_regset): New global variable declarations.
766 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
768 * regcache.c: Include "regset.h".
769 (regcache_transfer_regset): New local function.
770 (regcache_supply_regset, regcache_collect_regset): New functions.
771 * regcache.h (struct regcache_map_entry): New structure.
772 (REGCACHE_MAP_SKIP): New enum value.
773 (regcache_supply_regset, regcache_collect_regset): New prototypes.
775 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
777 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
778 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
779 (ppc_linux_collect_gregset ): Likewise.
780 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
781 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
782 (ppc_collect_vrregset): Likewise.
783 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
786 2014-08-07 Yao Qi <yao@codesourcery.com>
788 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
789 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
790 * remote.c (remote_read_bytes): Likewise.
792 2014-08-07 Yao Qi <yao@codesourcery.com>
794 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
796 2014-08-07 Yao Qi <yao@codesourcery.com>
799 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
800 TARGET_XFER_OK instead of 0.
802 2014-08-07 Gary Benson <gbenson@redhat.com>
804 * common/common-defs.h: Include errno.h.
805 * defs.h: Do not include errno.h.
806 * ada-typeprint.c: Likewise.
807 * c-typeprint.c: Likewise.
808 * core-regset.c: Likewise.
809 * corefile.c: Likewise.
810 * corelow.c: Likewise.
811 * event-loop.c: Likewise.
812 * f-typeprint.c: Likewise.
813 * gnu-nat.c: Likewise.
814 * go32-nat.c: Likewise.
815 * i386gnu-nat.c: Likewise.
816 * m2-typeprint.c: Likewise.
817 * nat/linux-btrace.c: Likewise.
818 * p-typeprint.c: Likewise.
819 * procfs.c: Likewise.
820 * remote-sim.c: Likewise.
821 * rs6000-nat.c: Likewise.
822 * target.c: Likewise.
823 * typeprint.c: Likewise.
824 * ui-file.c: Likewise.
825 * valops.c: Likewise.
826 * valprint.c: Likewise.
828 2014-08-07 Gary Benson <gbenson@redhat.com>
830 * common/common-defs.h: Include string.h.
831 * aarch64-tdep.c: Do not include string.h.
832 * ada-exp.y: Likewise.
833 * ada-lang.c: Likewise.
834 * ada-lex.l: Likewise.
835 * ada-typeprint.c: Likewise.
836 * ada-valprint.c: Likewise.
837 * aix-thread.c: Likewise.
838 * alpha-linux-tdep.c: Likewise.
839 * alpha-mdebug-tdep.c: Likewise.
840 * alpha-nat.c: Likewise.
841 * alpha-osf1-tdep.c: Likewise.
842 * alpha-tdep.c: Likewise.
843 * alphanbsd-tdep.c: Likewise.
844 * amd64-dicos-tdep.c: Likewise.
845 * amd64-linux-tdep.c: Likewise.
846 * amd64-nat.c: Likewise.
847 * amd64-sol2-tdep.c: Likewise.
848 * amd64fbsd-tdep.c: Likewise.
849 * amd64obsd-tdep.c: Likewise.
850 * arch-utils.c: Likewise.
851 * arm-linux-nat.c: Likewise.
852 * arm-linux-tdep.c: Likewise.
853 * arm-tdep.c: Likewise.
854 * arm-wince-tdep.c: Likewise.
855 * armbsd-tdep.c: Likewise.
856 * armnbsd-nat.c: Likewise.
857 * armnbsd-tdep.c: Likewise.
858 * armobsd-tdep.c: Likewise.
859 * avr-tdep.c: Likewise.
860 * ax-gdb.c: Likewise.
861 * ax-general.c: Likewise.
862 * bcache.c: Likewise.
863 * bfin-tdep.c: Likewise.
864 * breakpoint.c: Likewise.
865 * build-id.c: Likewise.
866 * buildsym.c: Likewise.
868 * c-lang.c: Likewise.
869 * c-typeprint.c: Likewise.
870 * c-valprint.c: Likewise.
871 * charset.c: Likewise.
872 * cli-out.c: Likewise.
873 * cli/cli-cmds.c: Likewise.
874 * cli/cli-decode.c: Likewise.
875 * cli/cli-dump.c: Likewise.
876 * cli/cli-interp.c: Likewise.
877 * cli/cli-logging.c: Likewise.
878 * cli/cli-script.c: Likewise.
879 * cli/cli-setshow.c: Likewise.
880 * cli/cli-utils.c: Likewise.
881 * coffread.c: Likewise.
882 * common/agent.c: Likewise.
883 * common/buffer.c: Likewise.
884 * common/buffer.h: Likewise.
885 * common/common-utils.c: Likewise.
886 * common/filestuff.c: Likewise.
887 * common/filestuff.c: Likewise.
888 * common/format.c: Likewise.
889 * common/print-utils.c: Likewise.
890 * common/rsp-low.c: Likewise.
891 * common/signals.c: Likewise.
892 * common/vec.h: Likewise.
893 * common/xml-utils.c: Likewise.
894 * core-regset.c: Likewise.
895 * corefile.c: Likewise.
896 * corelow.c: Likewise.
897 * cp-abi.c: Likewise.
898 * cp-name-parser.y: Likewise.
899 * cp-support.c: Likewise.
900 * cp-valprint.c: Likewise.
901 * cris-tdep.c: Likewise.
903 * darwin-nat.c: Likewise.
904 * dbxread.c: Likewise.
905 * dcache.c: Likewise.
906 * demangle.c: Likewise.
907 * dicos-tdep.c: Likewise.
908 * disasm.c: Likewise.
909 * doublest.c: Likewise.
911 * dummy-frame.c: Likewise.
912 * dwarf2-frame.c: Likewise.
913 * dwarf2loc.c: Likewise.
914 * dwarf2read.c: Likewise.
915 * elfread.c: Likewise.
916 * environ.c: Likewise.
918 * event-loop.c: Likewise.
919 * exceptions.c: Likewise.
921 * expprint.c: Likewise.
923 * f-lang.c: Likewise.
924 * f-typeprint.c: Likewise.
925 * f-valprint.c: Likewise.
926 * fbsd-nat.c: Likewise.
927 * findcmd.c: Likewise.
928 * findvar.c: Likewise.
929 * fork-child.c: Likewise.
931 * frv-linux-tdep.c: Likewise.
932 * frv-tdep.c: Likewise.
934 * gdb_bfd.c: Likewise.
935 * gdbarch.c: Likewise.
936 * gdbarch.sh: Likewise.
937 * gdbtypes.c: Likewise.
938 * gnu-nat.c: Likewise.
939 * gnu-v2-abi.c: Likewise.
940 * gnu-v3-abi.c: Likewise.
941 * go-exp.y: Likewise.
942 * go-lang.c: Likewise.
943 * go32-nat.c: Likewise.
944 * guile/guile.c: Likewise.
945 * guile/scm-auto-load.c: Likewise.
946 * hppa-hpux-tdep.c: Likewise.
947 * hppa-linux-nat.c: Likewise.
948 * hppanbsd-tdep.c: Likewise.
949 * hppaobsd-tdep.c: Likewise.
950 * i386-cygwin-tdep.c: Likewise.
951 * i386-dicos-tdep.c: Likewise.
952 * i386-linux-tdep.c: Likewise.
953 * i386-nto-tdep.c: Likewise.
954 * i386-sol2-tdep.c: Likewise.
955 * i386-tdep.c: Likewise.
956 * i386bsd-tdep.c: Likewise.
957 * i386gnu-nat.c: Likewise.
958 * i386nbsd-tdep.c: Likewise.
959 * i386obsd-tdep.c: Likewise.
960 * i387-tdep.c: Likewise.
961 * ia64-libunwind-tdep.c: Likewise.
962 * ia64-linux-nat.c: Likewise.
963 * inf-child.c: Likewise.
964 * inf-ptrace.c: Likewise.
965 * inf-ttrace.c: Likewise.
966 * infcall.c: Likewise.
967 * infcmd.c: Likewise.
968 * inflow.c: Likewise.
969 * infrun.c: Likewise.
970 * interps.c: Likewise.
971 * iq2000-tdep.c: Likewise.
972 * irix5-nat.c: Likewise.
973 * jv-exp.y: Likewise.
974 * jv-lang.c: Likewise.
975 * jv-typeprint.c: Likewise.
976 * jv-valprint.c: Likewise.
977 * language.c: Likewise.
978 * linux-fork.c: Likewise.
979 * linux-nat.c: Likewise.
980 * lm32-tdep.c: Likewise.
981 * m2-exp.y: Likewise.
982 * m2-typeprint.c: Likewise.
983 * m32c-tdep.c: Likewise.
984 * m32r-linux-nat.c: Likewise.
985 * m32r-linux-tdep.c: Likewise.
986 * m32r-rom.c: Likewise.
987 * m32r-tdep.c: Likewise.
988 * m68hc11-tdep.c: Likewise.
989 * m68k-tdep.c: Likewise.
990 * m68kbsd-tdep.c: Likewise.
991 * m68klinux-nat.c: Likewise.
992 * m68klinux-tdep.c: Likewise.
993 * m88k-tdep.c: Likewise.
994 * machoread.c: Likewise.
995 * macrocmd.c: Likewise.
997 * mdebugread.c: Likewise.
998 * mem-break.c: Likewise.
999 * memattr.c: Likewise.
1000 * memory-map.c: Likewise.
1001 * mep-tdep.c: Likewise.
1002 * mi/mi-cmd-break.c: Likewise.
1003 * mi/mi-cmd-disas.c: Likewise.
1004 * mi/mi-cmd-env.c: Likewise.
1005 * mi/mi-cmd-stack.c: Likewise.
1006 * mi/mi-cmd-var.c: Likewise.
1007 * mi/mi-cmds.c: Likewise.
1008 * mi/mi-console.c: Likewise.
1009 * mi/mi-getopt.c: Likewise.
1010 * mi/mi-interp.c: Likewise.
1011 * mi/mi-main.c: Likewise.
1012 * mi/mi-parse.c: Likewise.
1013 * microblaze-rom.c: Likewise.
1014 * microblaze-tdep.c: Likewise.
1015 * mingw-hdep.c: Likewise.
1016 * minidebug.c: Likewise.
1017 * minsyms.c: Likewise.
1018 * mips-irix-tdep.c: Likewise.
1019 * mips-linux-tdep.c: Likewise.
1020 * mips-tdep.c: Likewise.
1021 * mips64obsd-tdep.c: Likewise.
1022 * mipsnbsd-tdep.c: Likewise.
1023 * mipsread.c: Likewise.
1024 * mn10300-linux-tdep.c: Likewise.
1025 * mn10300-tdep.c: Likewise.
1026 * monitor.c: Likewise.
1027 * moxie-tdep.c: Likewise.
1028 * mt-tdep.c: Likewise.
1029 * nat/linux-btrace.c: Likewise.
1030 * nat/linux-osdata.c: Likewise.
1031 * nat/linux-procfs.c: Likewise.
1032 * nat/linux-ptrace.c: Likewise.
1033 * nat/linux-waitpid.c: Likewise.
1034 * nbsd-tdep.c: Likewise.
1035 * nios2-linux-tdep.c: Likewise.
1036 * nto-procfs.c: Likewise.
1037 * nto-tdep.c: Likewise.
1038 * objc-lang.c: Likewise.
1039 * objfiles.c: Likewise.
1040 * opencl-lang.c: Likewise.
1041 * osabi.c: Likewise.
1042 * osdata.c: Likewise.
1043 * p-exp.y: Likewise.
1044 * p-lang.c: Likewise.
1045 * p-typeprint.c: Likewise.
1046 * parse.c: Likewise.
1047 * posix-hdep.c: Likewise.
1048 * ppc-linux-nat.c: Likewise.
1049 * ppc-sysv-tdep.c: Likewise.
1050 * ppcfbsd-tdep.c: Likewise.
1051 * ppcnbsd-tdep.c: Likewise.
1052 * ppcobsd-tdep.c: Likewise.
1053 * printcmd.c: Likewise.
1054 * procfs.c: Likewise.
1055 * prologue-value.c: Likewise.
1056 * python/py-auto-load.c: Likewise.
1057 * python/py-gdb-readline.c: Likewise.
1058 * ravenscar-thread.c: Likewise.
1059 * regcache.c: Likewise.
1060 * registry.c: Likewise.
1061 * remote-fileio.c: Likewise.
1062 * remote-m32r-sdi.c: Likewise.
1063 * remote-mips.c: Likewise.
1064 * remote-notif.c: Likewise.
1065 * remote-sim.c: Likewise.
1066 * remote.c: Likewise.
1067 * reverse.c: Likewise.
1068 * rs6000-aix-tdep.c: Likewise.
1069 * ser-base.c: Likewise.
1070 * ser-go32.c: Likewise.
1071 * ser-mingw.c: Likewise.
1072 * ser-pipe.c: Likewise.
1073 * ser-tcp.c: Likewise.
1074 * ser-unix.c: Likewise.
1075 * serial.c: Likewise.
1076 * sh-tdep.c: Likewise.
1077 * sh64-tdep.c: Likewise.
1078 * shnbsd-tdep.c: Likewise.
1080 * sol-thread.c: Likewise.
1081 * solib-dsbt.c: Likewise.
1082 * solib-frv.c: Likewise.
1083 * solib-osf.c: Likewise.
1084 * solib-som.c: Likewise.
1085 * solib-spu.c: Likewise.
1086 * solib-target.c: Likewise.
1087 * solib.c: Likewise.
1088 * somread.c: Likewise.
1089 * source.c: Likewise.
1090 * sparc-nat.c: Likewise.
1091 * sparc-sol2-tdep.c: Likewise.
1092 * sparc-tdep.c: Likewise.
1093 * sparc64-tdep.c: Likewise.
1094 * sparc64fbsd-tdep.c: Likewise.
1095 * sparc64nbsd-tdep.c: Likewise.
1096 * sparcnbsd-tdep.c: Likewise.
1097 * spu-linux-nat.c: Likewise.
1098 * spu-multiarch.c: Likewise.
1099 * spu-tdep.c: Likewise.
1100 * stabsread.c: Likewise.
1101 * stack.c: Likewise.
1102 * std-regs.c: Likewise.
1103 * symfile.c: Likewise.
1104 * symmisc.c: Likewise.
1105 * symtab.c: Likewise.
1106 * target.c: Likewise.
1107 * thread.c: Likewise.
1108 * tilegx-linux-nat.c: Likewise.
1109 * tilegx-tdep.c: Likewise.
1111 * tracepoint.c: Likewise.
1112 * tui/tui-command.c: Likewise.
1113 * tui/tui-data.c: Likewise.
1114 * tui/tui-disasm.c: Likewise.
1115 * tui/tui-file.c: Likewise.
1116 * tui/tui-layout.c: Likewise.
1117 * tui/tui-out.c: Likewise.
1118 * tui/tui-regs.c: Likewise.
1119 * tui/tui-source.c: Likewise.
1120 * tui/tui-stack.c: Likewise.
1121 * tui/tui-win.c: Likewise.
1122 * tui/tui-windata.c: Likewise.
1123 * tui/tui-winsource.c: Likewise.
1124 * typeprint.c: Likewise.
1125 * ui-file.c: Likewise.
1126 * ui-out.c: Likewise.
1127 * user-regs.c: Likewise.
1128 * utils.c: Likewise.
1129 * v850-tdep.c: Likewise.
1130 * valarith.c: Likewise.
1131 * valops.c: Likewise.
1132 * valprint.c: Likewise.
1133 * value.c: Likewise.
1134 * varobj.c: Likewise.
1135 * vax-tdep.c: Likewise.
1136 * vaxnbsd-tdep.c: Likewise.
1137 * vaxobsd-tdep.c: Likewise.
1138 * windows-nat.c: Likewise.
1139 * xcoffread.c: Likewise.
1140 * xml-support.c: Likewise.
1141 * xstormy16-tdep.c: Likewise.
1142 * xtensa-linux-nat.c: Likewise.
1144 2014-08-07 Gary Benson <gbenson@redhat.com>
1146 * common/common-defs.h: Include gdb_assert.h.
1147 * aarch64-tdep.c: Do not include gdb_assert.h.
1148 * addrmap.c: Likewise.
1149 * aix-thread.c: Likewise.
1150 * alpha-linux-tdep.c: Likewise.
1151 * alpha-mdebug-tdep.c: Likewise.
1152 * alphanbsd-tdep.c: Likewise.
1153 * amd64-nat.c: Likewise.
1154 * amd64-tdep.c: Likewise.
1155 * amd64bsd-nat.c: Likewise.
1156 * amd64fbsd-nat.c: Likewise.
1157 * amd64fbsd-tdep.c: Likewise.
1158 * amd64nbsd-nat.c: Likewise.
1159 * amd64nbsd-tdep.c: Likewise.
1160 * amd64obsd-nat.c: Likewise.
1161 * amd64obsd-tdep.c: Likewise.
1162 * arch-utils.c: Likewise.
1163 * arm-tdep.c: Likewise.
1164 * armbsd-tdep.c: Likewise.
1166 * bcache.c: Likewise.
1167 * bfin-tdep.c: Likewise.
1168 * blockframe.c: Likewise.
1169 * breakpoint.c: Likewise.
1170 * bsd-kvm.c: Likewise.
1171 * bsd-uthread.c: Likewise.
1172 * buildsym.c: Likewise.
1173 * c-exp.y: Likewise.
1174 * c-lang.c: Likewise.
1175 * charset.c: Likewise.
1176 * cleanups.c: Likewise.
1177 * cli-out.c: Likewise.
1178 * cli/cli-decode.c: Likewise.
1179 * cli/cli-dump.c: Likewise.
1180 * cli/cli-logging.c: Likewise.
1181 * cli/cli-script.c: Likewise.
1182 * cli/cli-utils.c: Likewise.
1183 * coffread.c: Likewise.
1184 * common/common-utils.c: Likewise.
1185 * common/queue.h: Likewise.
1186 * common/signals.c: Likewise.
1187 * common/vec.h: Likewise.
1188 * complaints.c: Likewise.
1189 * completer.c: Likewise.
1190 * corelow.c: Likewise.
1191 * cp-abi.c: Likewise.
1192 * cp-name-parser.y: Likewise.
1193 * cp-namespace.c: Likewise.
1194 * cp-support.c: Likewise.
1195 * cris-tdep.c: Likewise.
1196 * dbxread.c: Likewise.
1197 * dictionary.c: Likewise.
1198 * doublest.c: Likewise.
1199 * dsrec.c: Likewise.
1200 * dummy-frame.c: Likewise.
1201 * dwarf2-frame-tailcall.c: Likewise.
1202 * dwarf2-frame.c: Likewise.
1203 * dwarf2expr.c: Likewise.
1204 * dwarf2loc.c: Likewise.
1205 * dwarf2read.c: Likewise.
1207 * event-loop.c: Likewise.
1208 * exceptions.c: Likewise.
1209 * expprint.c: Likewise.
1210 * f-valprint.c: Likewise.
1211 * fbsd-nat.c: Likewise.
1212 * findvar.c: Likewise.
1213 * frame-unwind.c: Likewise.
1214 * frame.c: Likewise.
1215 * frv-tdep.c: Likewise.
1216 * gcore.c: Likewise.
1217 * gdb-dlfcn.c: Likewise.
1218 * gdb_bfd.c: Likewise.
1219 * gdbarch.c: Likewise.
1220 * gdbarch.sh: Likewise.
1221 * gdbtypes.c: Likewise.
1222 * gnu-nat.c: Likewise.
1223 * gnu-v3-abi.c: Likewise.
1224 * go-lang.c: Likewise.
1225 * guile/scm-exception.c: Likewise.
1226 * guile/scm-gsmob.c: Likewise.
1227 * guile/scm-lazy-string.c: Likewise.
1228 * guile/scm-math.c: Likewise.
1229 * guile/scm-pretty-print.c: Likewise.
1230 * guile/scm-safe-call.c: Likewise.
1231 * guile/scm-utils.c: Likewise.
1232 * guile/scm-value.c: Likewise.
1233 * h8300-tdep.c: Likewise.
1234 * hppa-hpux-nat.c: Likewise.
1235 * hppa-tdep.c: Likewise.
1236 * hppanbsd-tdep.c: Likewise.
1237 * hppaobsd-tdep.c: Likewise.
1238 * i386-darwin-nat.c: Likewise.
1239 * i386-darwin-tdep.c: Likewise.
1240 * i386-nto-tdep.c: Likewise.
1241 * i386-tdep.c: Likewise.
1242 * i386bsd-nat.c: Likewise.
1243 * i386fbsd-tdep.c: Likewise.
1244 * i386gnu-nat.c: Likewise.
1245 * i386nbsd-tdep.c: Likewise.
1246 * i386obsd-tdep.c: Likewise.
1247 * i387-tdep.c: Likewise.
1248 * ia64-libunwind-tdep.c: Likewise.
1249 * ia64-tdep.c: Likewise.
1250 * inf-ptrace.c: Likewise.
1251 * inf-ttrace.c: Likewise.
1252 * infcall.c: Likewise.
1253 * infcmd.c: Likewise.
1254 * infrun.c: Likewise.
1255 * inline-frame.c: Likewise.
1256 * interps.c: Likewise.
1257 * jv-lang.c: Likewise.
1258 * jv-typeprint.c: Likewise.
1259 * linux-fork.c: Likewise.
1260 * linux-nat.c: Likewise.
1261 * linux-thread-db.c: Likewise.
1262 * m32c-tdep.c: Likewise.
1263 * m32r-linux-nat.c: Likewise.
1264 * m32r-tdep.c: Likewise.
1265 * m68k-tdep.c: Likewise.
1266 * m68kbsd-nat.c: Likewise.
1267 * m68kbsd-tdep.c: Likewise.
1268 * m88k-tdep.c: Likewise.
1269 * machoread.c: Likewise.
1270 * macroexp.c: Likewise.
1271 * macrotab.c: Likewise.
1272 * maint.c: Likewise.
1273 * mdebugread.c: Likewise.
1274 * memory-map.c: Likewise.
1275 * mep-tdep.c: Likewise.
1276 * mi/mi-common.c: Likewise.
1277 * microblaze-tdep.c: Likewise.
1278 * mingw-hdep.c: Likewise.
1279 * mips-linux-nat.c: Likewise.
1280 * mips-linux-tdep.c: Likewise.
1281 * mips-tdep.c: Likewise.
1282 * mips64obsd-tdep.c: Likewise.
1283 * mipsnbsd-tdep.c: Likewise.
1284 * mn10300-linux-tdep.c: Likewise.
1285 * mn10300-tdep.c: Likewise.
1286 * moxie-tdep.c: Likewise.
1287 * mt-tdep.c: Likewise.
1288 * nat/linux-btrace.c: Likewise.
1289 * nat/linux-osdata.c: Likewise.
1290 * nat/linux-ptrace.c: Likewise.
1291 * nat/mips-linux-watch.c: Likewise.
1292 * nios2-linux-tdep.c: Likewise.
1293 * nios2-tdep.c: Likewise.
1294 * objc-lang.c: Likewise.
1295 * objfiles.c: Likewise.
1296 * obsd-nat.c: Likewise.
1297 * opencl-lang.c: Likewise.
1298 * osabi.c: Likewise.
1299 * parse.c: Likewise.
1300 * ppc-linux-nat.c: Likewise.
1301 * ppc-sysv-tdep.c: Likewise.
1302 * ppcfbsd-nat.c: Likewise.
1303 * ppcfbsd-tdep.c: Likewise.
1304 * ppcnbsd-nat.c: Likewise.
1305 * ppcnbsd-tdep.c: Likewise.
1306 * ppcobsd-nat.c: Likewise.
1307 * ppcobsd-tdep.c: Likewise.
1308 * printcmd.c: Likewise.
1309 * procfs.c: Likewise.
1310 * prologue-value.c: Likewise.
1311 * psymtab.c: Likewise.
1312 * python/py-lazy-string.c: Likewise.
1313 * python/py-value.c: Likewise.
1314 * regcache.c: Likewise.
1315 * reggroups.c: Likewise.
1316 * registry.c: Likewise.
1317 * remote-sim.c: Likewise.
1318 * remote.c: Likewise.
1319 * rs6000-aix-tdep.c: Likewise.
1320 * rs6000-tdep.c: Likewise.
1321 * s390-linux-tdep.c: Likewise.
1322 * score-tdep.c: Likewise.
1323 * ser-base.c: Likewise.
1324 * ser-mingw.c: Likewise.
1325 * sh-tdep.c: Likewise.
1326 * sh64-tdep.c: Likewise.
1327 * solib-darwin.c: Likewise.
1328 * solib-spu.c: Likewise.
1329 * solib-svr4.c: Likewise.
1330 * source.c: Likewise.
1331 * sparc-nat.c: Likewise.
1332 * sparc-sol2-tdep.c: Likewise.
1333 * sparc-tdep.c: Likewise.
1334 * sparc64-sol2-tdep.c: Likewise.
1335 * sparc64-tdep.c: Likewise.
1336 * sparc64fbsd-tdep.c: Likewise.
1337 * sparc64nbsd-tdep.c: Likewise.
1338 * sparc64obsd-tdep.c: Likewise.
1339 * sparcnbsd-tdep.c: Likewise.
1340 * sparcobsd-tdep.c: Likewise.
1341 * spu-multiarch.c: Likewise.
1342 * spu-tdep.c: Likewise.
1343 * stabsread.c: Likewise.
1344 * stack.c: Likewise.
1345 * symfile.c: Likewise.
1346 * symtab.c: Likewise.
1347 * target-descriptions.c: Likewise.
1348 * target-memory.c: Likewise.
1349 * target.c: Likewise.
1350 * tic6x-linux-tdep.c: Likewise.
1351 * tic6x-tdep.c: Likewise.
1352 * tilegx-linux-nat.c: Likewise.
1353 * tilegx-tdep.c: Likewise.
1355 * tramp-frame.c: Likewise.
1356 * tui/tui-out.c: Likewise.
1357 * tui/tui-winsource.c: Likewise.
1358 * ui-out.c: Likewise.
1359 * user-regs.c: Likewise.
1360 * utils.c: Likewise.
1361 * v850-tdep.c: Likewise.
1362 * valops.c: Likewise.
1363 * value.c: Likewise.
1364 * varobj.c: Likewise.
1365 * vax-nat.c: Likewise.
1366 * xml-syscall.c: Likewise.
1367 * xml-tdesc.c: Likewise.
1368 * xstormy16-tdep.c: Likewise.
1369 * xtensa-linux-nat.c: Likewise.
1370 * xtensa-tdep.c: Likewise.
1372 2014-08-07 Gary Benson <gbenson@redhat.com>
1374 * common/common-defs.h: Include common-utils.h.
1375 * defs.h: Do not include common-utils.h.
1376 * common/gdb_assert.h: Likewise.
1377 * darwin-nat.h: Likewise.
1378 * nat/linux-btrace.c: Likewise.
1379 * target/waitstatus.h: Likewise.
1381 2014-08-07 Gary Benson <gbenson@redhat.com>
1383 * common/common-defs.h: Include ptid.h.
1384 * defs.h: Do not include ptid.h.
1385 * inferior.h: Likewise.
1386 * infrun.h: Likewise.
1387 * nat/linux-btrace.h: Likewise.
1388 * nat/linux-osdata.h: Likewise.
1389 * target/waitstatus.h: Likewise.
1391 2014-08-07 Gary Benson <gbenson@redhat.com>
1393 * common/common-defs.h: Include gdb_locale.h.
1394 * defs.h: Do not include gdb_locale.h.
1396 2014-08-07 Gary Benson <gbenson@redhat.com>
1398 * common/common-defs.h: Include gdb/signals.h.
1399 * defs.h: Do not include gdb/signals.h.
1401 2014-08-07 Gary Benson <gbenson@redhat.com>
1403 * common/common-defs.h: Include pathmax.h.
1404 * defs.h: Do not include pathmax.h.
1406 2014-08-07 Gary Benson <gbenson@redhat.com>
1408 * common/common-defs.h: Include libiberty.h.
1409 * defs.h: Do not include libiberty.h.
1410 * common/queue.h: Likewise.
1411 * cp-name-parser.y: Likewise.
1412 * mi/mi-cmd-catch.c: Likewise.
1413 * python/python.c: Likewise.
1415 2014-08-07 Gary Benson <gbenson@redhat.com>
1417 * common/common-defs.h: Include ansidecl.h.
1418 * defs.h: Do not include ansidecl.h.
1419 * common/buffer.h: Likewise.
1420 * common/common-utils.h: Likewise.
1422 2014-08-07 Gary Benson <gbenson@redhat.com>
1424 * common/common-defs.h: Include stddef.h.
1425 * defs.h: Do not include stddef.h.
1426 * common/common-utils.h: Likewise.
1427 * amd64fbsd-nat.c: Likewise.
1428 * bcache.c: Likewise.
1429 * charset.c: Likewise.
1430 * common/buffer.h: Likewise.
1431 * common/vec.h: Likewise.
1432 * i386bsd-nat.c: Likewise.
1433 * nat/linux-btrace.h: Likewise.
1434 * ppcfbsd-nat.c: Likewise.
1435 * ppcnbsd-tdep.h: Likewise.
1436 * ppcobsd-nat.c: Likewise.
1437 * ppcobsd-tdep.h: Likewise.
1438 * python/py-gdb-readline.c: Likewise.
1440 2014-08-07 Gary Benson <gbenson@redhat.com>
1442 * common/common-defs.h: Include stdarg.h.
1443 * defs.h: Do not include stdarg.h.
1444 * ada-lang.c: Likewise.
1445 * common/common-utils.h: Likewise.
1446 * guile/scm-string.c: Likewise.
1447 * guile/scm-utils.c: Likewise.
1448 * m32c-tdep.c: Likewise.
1450 2014-08-07 Gary Benson <gbenson@redhat.com>
1452 * common/common-defs.h: Include stdlib.h.
1453 * defs.h: Do not include stdlib.h.
1454 * addrmap.c: Likewise.
1455 * bcache.c: Likewise.
1456 * common/buffer.c: Likewise.
1457 * common/common-utils.c: Likewise.
1458 * cp-name-parser.y: Likewise.
1459 * go32-nat.c: Likewise.
1460 * mn10300-linux-tdep.c: Likewise.
1461 * nat/linux-osdata.c: Likewise.
1462 * tui/tui.c: Likewise.
1463 * windows-nat.c: Likewise.
1465 2014-08-07 Gary Benson <gbenson@redhat.com>
1467 * common/common-defs.h: Include stdio.h.
1468 * defs.h: Do not include stdio.h.
1469 * ada-lang.c: Likewise.
1470 * common/buffer.c: Likewise.
1471 * common/common-utils.c: Likewise.
1472 * cp-name-parser.y: Likewise.
1473 * gnu-nat.c: Likewise.
1474 * go32-nat.c: Likewise.
1475 * i386gnu-nat.c: Likewise.
1476 * proc-api.c: Likewise.
1477 * proc-events.c: Likewise.
1478 * proc-flags.c: Likewise.
1479 * proc-why.c: Likewise.
1480 * python/python-internal.h: Likewise.
1481 * target-memory.c: Likewise.
1482 * tui/tui-io.c: Likewise.
1483 * tui/tui.c: Likewise.
1485 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1487 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1488 (scan_dyntag_auxv): Same.
1490 2014-08-06 Yao Qi <yao@codesourcery.com>
1492 * amd64-linux-nat.c: Remove duplicated include
1494 * i386-linux-nat.c: Likewise.
1496 2014-08-06 Yao Qi <yao@codesourcery.com>
1498 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1499 operand" with "Special opcode" in comments.
1501 2014-08-05 Gary Benson <gbenson@redhat.com>
1503 * interps.c (initialize_interps): Remove prototype.
1504 (interpreter_initialized): Remove static global.
1505 (interp_add): Do not call initialize_interps.
1506 (initialize_interps): Remove function.
1508 2014-08-05 Gary Benson <gbenson@redhat.com>
1510 * utils.c (vwarning): Remove spurious va_end.
1512 2014-08-05 Alan Modra <amodra@gmail.com>
1514 * charset.c (convert_between_encodings): Cast result of obstack_base.
1515 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1516 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1517 (read_unwind_info): Use size_t for some locals.
1518 * jit.c (finalize_symtab): Likewise.
1519 * utils.c (hashtab_obstack_allocate): Likewise.
1520 * symmisc.c (print_objfile_statistics): Update format strings.
1522 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1524 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1525 (Changes in GDB 7.8): ... here.
1527 2014-08-04 Tom Tromey <tromey@redhat.com>
1529 * target.c (set_targetdebug): New function.
1530 (initialize_targets): Pass set_targetdebug when creating "set
1533 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1535 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1536 if detecting a variable-sized field that is not the last field.
1537 Fix struct type length computation.
1539 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1541 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1544 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1546 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1547 Remove "+ 8" offset in computation of CHAIN_VMA.
1549 2014-07-31 Doug Evans <dje@google.com>
1551 * inflow.c (child_terminal_inferior): Add comment.
1552 (child_terminal_ours_for_output): Add comment.
1553 (child_terminal_ours): Add comment.
1554 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1555 (linux_nat_terminal_ours): Add comment.
1557 2014-07-31 Gary Benson <gbenson@redhat.com>
1559 * common/btrace-common.h: Do not include defs.h or server.h.
1560 * nat/mips-linux-watch.h: Likewise.
1561 * gdb-dlfcn.h: Do not include defs.h.
1562 * tracefile.h: Likewise.
1564 2014-07-30 Roland McGrath <mcgrathr@google.com>
1566 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1568 2014-07-30 Tom Tromey <tromey@redhat.com>
1570 * bsd-kvm.c (bsd_kvm_open): Constify.
1571 * corelow.c (core_open): Constify.
1572 * ctf.c (ctf_open): Constify.
1573 * dbug-rom.c (dbug_open): Constify.
1574 * exec.c (exec_open): Constify.
1575 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1576 * microblaze-rom.c (picobug_open): Constify.
1577 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1579 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1580 * record-btrace.c (record_btrace_open): Constify.
1581 * record-full.c (record_full_core_open_1, record_full_open_1)
1582 (record_full_open): Constify.
1583 * remote-m32r-sdi.c (m32r_open): Constify.
1584 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1585 (rockhopper_open, lsi_open): Constify.
1586 * remote-sim.c (gdbsim_open): Constify.
1587 * remote.c (remote_open, extended_remote_open, remote_open_1):
1589 * target.h (struct target_ops) <to_open>: Make "arg" const.
1590 * tracefile-tfile.c (tfile_open): Constify.
1592 2014-07-30 Tom Tromey <tromey@redhat.com>
1594 * breakpoint.c (map_breakpoint_numbers): Update.
1595 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1596 (get_number_const): New function.
1597 (get_number): Rewrite using get_number_const.
1598 (init_number_or_range): Make "string" const.
1599 (number_is_in_list): Make "list" const.
1600 * cli/cli-utils.h (get_number_const): Declare.
1601 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1602 (init_number_or_range, number_is_in_list): Update.
1603 * printcmd.c (map_display_numbers): Update.
1604 * value.c (value_from_history_ref): Constify.
1605 * value.h (value_from_history_ref): Update.
1607 2014-07-30 Tom Tromey <tromey@redhat.com>
1609 * corefile.c (hook_type, call_extra_exec_file_hooks)
1610 (specify_exec_file_hook): Constify.
1611 * exec.c (exec_file_attach): Make "filename" const.
1612 * gdbcore.h (deprecated_exec_file_display_hook)
1613 (specify_exec_file_hook, exec_file_attach): Constify.
1614 * main.c (captured_main): Use catch_command_errors_const.
1616 2014-07-30 Tom Tromey <tromey@redhat.com>
1618 * target.c (open_target): New function.
1619 (add_target_with_completer, add_deprecated_target_alias): Use
1620 set_cmd_sfunc, set_cmd_context.
1621 (debug_to_open): Remove.
1622 (setup_target_debug): Update.
1624 2014-07-30 Yao Qi <yao@codesourcery.com>
1626 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1628 * parse.c (exp_iterate): Update comments.
1630 2014-07-30 Gary Benson <gbenson@redhat.com>
1632 * common/common-defs.h: New file.
1633 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1634 * defs.h: Include common-defs.h.
1635 Do not include config.h or build-gnulib/config.h.
1637 2014-07-30 Gary Benson <gbenson@redhat.com>
1639 * common/common-utils.h: Do not include config.h.
1640 * nat/linux-btrace.h: Likewise.
1642 2014-07-30 Gary Benson <gbenson@redhat.com>
1644 * btrace.c: Include defs.h.
1645 * common/ptid.c: Include defs.h or server.h as appropriate.
1646 * nat/mips-linux-watch.c: Likewise.
1648 2014-07-29 Tom Tromey <tromey@redhat.com>
1650 * target.c (target_is_pushed): Simplify.
1652 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1656 2014-07-29 Yao Qi <yao@codesourcery.com>
1659 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1661 2014-07-28 Doug Evans <xdje42@gmail.com>
1664 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1665 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1668 2014-07-28 Will Newton <will.newton@linaro.org>
1670 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1671 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1672 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1673 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1674 (THUMB2_EABI_SYSCALL): Likewise.
1675 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1677 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1678 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1680 2014-07-27 Doug Evans <xdje42@gmail.com>
1682 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1684 2014-07-27 Doug Evans <xdje42@gmail.com>
1686 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1688 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1689 Doug Evans <xdje42@gmail.com>
1692 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1693 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1694 * configure.ac: Try to use guild to compile an scm file, if it fails
1695 then disable guile support.
1696 * configure: Regenerate.
1697 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1699 (GUILE_COMPILED_FILES): New variable.
1700 (GUILE_FILES) Update.
1701 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1702 (stamp-guile): Compile scm files.
1703 * guile/guile.c (boot_guile_support): New function.
1704 (standard_throw_args_p): New function.
1705 (print_standard_throw_error, print_throw_error): New functions.
1706 (handle_boot_error): New function.
1707 (initialize_scheme_side): Rewrite to call boot_guile_support.
1708 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1709 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1711 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1712 Doug Evans <xdje42@gmail.com>
1715 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1716 * guile/lib/gdb/support.scm: New file.
1717 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1718 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1720 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1722 (%assert-type): Ditto, and renamed to assert-type.
1723 (%exception-print-style): Delete.
1725 2014-07-26 Doug Evans <xdje42@gmail.com>
1728 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1729 * configure: Regenerate.
1730 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1732 (PYTHON_FILES): New variable.
1733 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1734 (GUILE_FILES): New variable.
1735 (stamp-python, install-python, uninstall-python): Handle empty
1737 (stamp-guile, install-guile, uninstall-guile): Ditto.
1739 2014-07-26 Doug Evans <xdje42@gmail.com>
1742 * guile/lib/gdb.scm (pretty-printers): Export.
1743 (set-pretty-printers!): Export.
1744 * guile/lib/gdb/printing.scm (gdb module): Update.
1745 (prepend-pretty-printer!, append-pretty-printer!): Update.
1746 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1747 (pretty_printer_list_var): Delete.
1748 (pretty_printer_list): New static global.
1749 (gdbscm_pretty_printers): New function.
1750 (gdbscm_set_pretty_printers_x): New function.
1751 (ppscm_find_pretty_printer_from_gdb): Update.
1752 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1753 (gdbscm_initialize_pretty_printers): Update.
1755 2014-07-26 Doug Evans <xdje42@gmail.com>
1758 * configure.ac: Add check for header gc/gc.h.
1759 Add check for function setenv.
1760 * configure: Regenerate.
1761 * config.in: Regenerate.
1762 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1764 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1766 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1767 variation in gdbarch matching.
1769 2014-07-25 Tom Tromey <tromey@redhat.com>
1771 * exec.c (using_exec_ops): Remove.
1772 (exec_close_1): Update. Remove extraneous block, reindent.
1773 (add_target_sections): Use target_is_pushed.
1775 2014-07-25 Pedro Alves <palves@redhat.com>
1777 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1778 * monitor.c (monitor_create_inferior): Likewise.
1779 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1780 * remote-sim.c (gdbsim_create_inferior): Likewise.
1781 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1782 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1783 * windows-nat.c (do_initial_windows_stuff): Likewise.
1785 2014-07-25 Pedro Alves <palves@redhat.com>
1787 * NEWS: Mention signal passing and "signal" command changes.
1788 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1790 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1792 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1793 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1794 (jump_command): Adjust clear_proceed_status call.
1795 (signal_command): Warn if other thread that are resumed have
1796 signals that will be delivered. Adjust clear_proceed_status call.
1797 (until_next_command, finish_command)
1798 (proceed_after_attach_callback, attach_command_post_wait)
1799 (attach_command): Adjust clear_proceed_status call.
1800 * infrun.c (proceed_after_vfork_done): Likewise.
1801 (proceed_after_attach_callback): Adjust comment.
1802 (clear_proceed_status_thread): Clear stop_signal if not in pass
1804 (clear_proceed_status_callback): Delete.
1805 (clear_proceed_status): New 'step' parameter. Only clear the
1806 proceed status of threads the command being prepared is about to
1808 (proceed): If passed in an explicit signal, override stop_signal
1809 with it. Don't pass the last stop signal to the thread we're
1811 (init_wait_for_inferior): Adjust clear_proceed_status call.
1812 (switch_back_to_stepped_thread): Clear the signal if it should not
1814 * infrun.h (clear_proceed_status): New 'step' parameter.
1815 (user_visible_resume_ptid): Add comment.
1816 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1817 signal is in pass state.
1818 * remote.c (append_pending_thread_resumptions): Likewise.
1819 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1821 2014-07-25 Tom Tromey <tromey@redhat.com>
1823 * target.h (target_stopped_data_address)
1824 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1827 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1829 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1831 (avr_pointer_to_address): Likewise.
1833 2014-07-24 Tom Tromey <tromey@redhat.com>
1835 * monitor.c (compile_pattern): Update.
1836 * target.h (struct target_ops) <to_shortname, to_longname,
1839 2014-07-24 Tom Tromey <tromey@redhat.com>
1841 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1842 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1843 (add_info_alias, add_com): Make "doc" const.
1844 (print_doc_line): Make "str" const.
1845 (delete_cmd): Update.
1846 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1847 (print_doc_line): Update.
1848 * cli/cli-script.c (document_command): Update.
1849 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1850 (add_com, add_info, add_info_alias): Update.
1851 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1852 * python/py-cmd.c (cmdpy_destroyer): Update.
1854 2014-07-24 Tom Tromey <tromey@redhat.com>
1856 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1857 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1858 (help_cmd_list): Constify.
1859 (lookup_cmd): Update.
1860 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1862 (help_cmd_list, apropos_cmd): Update.
1863 * cli/cli-script.c (show_user): Update.
1864 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1865 * cli/cli-setshow.h (cmd_show_list): Update.
1866 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1867 (cmd_show_list): Update.
1868 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1869 * python/py-cmd.c (cmdpy_destroyer): Update.
1871 2014-07-24 Tom Tromey <tromey@redhat.com>
1873 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1874 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1876 * command.h (deprecate_cmd): Update.
1877 * maint.c (maintenance_do_deprecate): Add casts.
1879 2014-07-24 Tom Tromey <tromey@redhat.com>
1881 * cli/cli-decode.c (help_cmd): Make parameter "const".
1882 * cli/cli-decode.h (help_cmd): Update.
1884 2014-07-24 Tom Tromey <tromey@redhat.com>
1886 * stack.c (up_silently_base, down_silently_base): Make argument
1889 2014-07-24 Tom Tromey <tromey@redhat.com>
1891 * solib.c (solib_add): Make "pattern" const.
1892 * solib.h (solib_add): Update.
1894 2014-07-24 Tom Tromey <tromey@redhat.com>
1896 * remote.c (remote_serial_open, print_packet, putpkt)
1897 (putpkt_binary): Constify.
1898 * remote.h (putpkt): Update.
1900 2014-07-24 Tom Tromey <tromey@redhat.com>
1902 * monitor.c (monitor_open): Make "args" const.
1903 * monitor.h (monitor_open): Update.
1905 2014-07-24 Tom Tromey <tromey@redhat.com>
1907 * maint.c (match_bfd_flags): Make "string" const.
1908 (print_bfd_section_info): Remove casts.
1909 (print_objfile_section_info): Make "string" const.
1911 2014-07-24 Tom Tromey <tromey@redhat.com>
1913 * inf-child.c (inf_child_open_target): Make "arg" const.
1914 * inf-child.h (inf_child_open_target): Update.
1916 2014-07-24 Tom Tromey <tromey@redhat.com>
1918 * environ.c (unset_in_environ): Make "var" const.
1919 * environ.h (unset_in_environ): Update.
1921 2014-07-24 Tom Tromey <tromey@redhat.com>
1923 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1925 (scan_filename_with_cleanup): Likewise.
1926 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1927 Make arguments const.
1928 (restore_command): Update.
1930 2014-07-24 Pedro Alves <palves@redhat.com>
1932 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1934 2014-07-24 Tom Tromey <tromey@redhat.com>
1935 Gary Benson <gbenson@redhat.com>
1937 * nat/linux-ptrace.c (additional_flags): New global.
1938 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1939 additional_flags; don't check GDBSERVER.
1940 (linux_ptrace_set_additional_flags): New function.
1941 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1943 * linux-nat.c (_initialize_linux_nat): Call
1944 linux_ptrace_set_additional_flags.
1946 2014-07-24 Tom Tromey <tromey@redhat.com>
1948 * make-target-delegates (munge_type, write_debugmethod): New
1950 (debug_names): New global.
1951 ($TARGET_DEBUG_PRINTER): New global.
1952 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1954 Write debug methods. Generate init_debug_target.
1955 * target-debug.h: New file.
1956 * target-delegates.c: Rebuild.
1957 * target.c: Include target-debug.h.
1958 (debug_target): Hoist definition.
1959 (target_kill, target_get_section_table, target_memory_map)
1960 (target_flash_erase, target_flash_done, target_detach)
1961 (target_disconnect, target_wait, target_resume)
1962 (target_pass_signals, target_program_signals, target_follow_fork)
1963 (target_mourn_inferior, target_search_memory)
1964 (target_thread_address_space, target_close)
1965 (target_find_new_threads, target_core_of_thread)
1966 (target_verify_memory, target_insert_mask_watchpoint)
1967 (target_remove_mask_watchpoint): Remove targetdebug code.
1968 (debug_to_post_attach, debug_to_prepare_to_store)
1969 (debug_to_files_info, debug_to_insert_breakpoint)
1970 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1971 (debug_to_region_ok_for_hw_watchpoint)
1972 (debug_to_can_accel_watchpoint_condition)
1973 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1974 (debug_to_watchpoint_addr_within_range)
1975 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1976 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1977 (debug_to_terminal_init, debug_to_terminal_inferior)
1978 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1979 (debug_to_terminal_save_ours, debug_to_terminal_info)
1980 (debug_to_load, debug_to_post_startup_inferior)
1981 (debug_to_insert_fork_catchpoint)
1982 (debug_to_remove_fork_catchpoint)
1983 (debug_to_insert_vfork_catchpoint)
1984 (debug_to_remove_vfork_catchpoint)
1985 (debug_to_insert_exec_catchpoint)
1986 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1987 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1988 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1989 (setup_target_debug): Call init_debug_target.
1990 * target.h (TARGET_DEBUG_PRINTER): New macro.
1991 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1992 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1994 2014-07-24 Gary Benson <gbenson@redhat.com>
1996 * exceptions.h (throw_vfatal): Renamed to...
1997 (throw_vquit): New declaration.
1998 (throw_quit): Likewise.
1999 * exceptions.c (throw_vfatal): Renamed to...
2000 (throw_vquit): New function.
2001 (throw_quit): Likewise.
2002 (throw_error): Call throw_verror rather than throw_it.
2003 * utils.h (vfatal): Removed.
2005 * utils.c (vfatal): Removed.
2007 (internal_verror): Replaced call to fatal with call to throw_quit.
2008 (quit): Replaced calls to fatal with calls to throw_quit.
2010 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2012 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2015 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2017 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2018 less than zero in conditional expression.
2020 2014-07-23 Tom Tromey <tromey@redhat.com>
2022 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2023 ($INTRO_PART): Don't match whitespace.
2024 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2026 ($METHOD): Add $METHOD_TRAILER.
2028 (scan_target_h): New sub.
2029 Change main loop not to collect state.
2030 * target-delegates.c: Rebuild.
2032 2014-07-23 Gary Benson <gbenson@redhat.com>
2034 * cp-support.c (gdb_demangle): Fix build on systems without
2037 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2039 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2040 for reference entry value target data value.
2042 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2044 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2045 value_available_contents_eq.
2047 2014-07-22 Pedro Alves <palves@redhat.com>
2049 * value.c (allocate_optimized_out_value): Don't mark value as
2052 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2054 * MAINTAINERS (Write After Approval): Update my email address.
2056 2014-07-20 Doug Evans <dje@google.com>
2059 * remote.c (putpkt_binary): Add text to error message.
2061 2014-07-20 Yao Qi <yao@codesourcery.com>
2063 * eval.c: Remove "Chill" from comments.
2064 * gdbtypes.h: Likewise.
2065 * symtab.h: Likewise.
2067 2014-07-20 Yao Qi <yao@codesourcery.com>
2069 * std-operator.def: Update comments to TERNOP_SLICE.
2071 2014-07-20 Yao Qi <yao@codesourcery.com>
2073 * std-operator.def: Remove BINOP_RANGE.
2074 * breakpoint.c (watchpoint_exp_is_const): Update.
2075 * expprint.c (dump_subexp_body_standard): Likewise.
2076 * eval.c (init_array_element): Remove dead code.
2077 (evaluate_subexp_standard): Likewise.
2079 2014-07-20 Yao Qi <yao@codesourcery.com>
2081 * std-operator.def: Remove BINOP_IN.
2082 * breakpoint.c (watchpoint_exp_is_const): Update.
2083 * eval.c (evaluate_subexp_standard): Likewise.
2084 * expprint.c (dump_subexp_body_standard): Likewise.
2086 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2088 * microblaze-tdep.c (microblaze_register_names): Add
2089 the rshr and rslr register names.
2090 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2091 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2092 Use of tdesc_numbered_register. Use of
2093 microblaze_register_g_packet_guesses. Use of
2094 tdesc_use_registers. Use of set_gdbarch_register_type.
2095 (microblaze_register_g_packet_guesses): New.
2096 * microblaze-tdep.h (microblaze_reg_num): Add
2097 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2098 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2099 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2100 * features/microblaze-core.xml: New file.
2101 * features/microblaze-stack-protect.xml: New file.
2102 * features/microblaze-with-stack-protect.c: New file.
2103 * features/microblaze-with-stack-protect.xml: New file.
2104 * features/microblaze.xml: New file.
2105 * features/microblaze.c: New file.
2106 * features/Makefile (microblaze-with-stack-protect): Add
2107 microblaze-with-stack-protect microblaze and microblaze-expedite.
2108 * regformats/microblaze-with-stack-protect.dat: New file.
2109 * regformats/microblaze.dat: New file.
2110 * doc/gdb.texinfo (MicroBlaze Features): Added.
2112 2014-07-18 Tom Tromey <tromey@redhat.com>
2114 * exec.c (exec_ops): Now static.
2115 * exec.h (exec_ops): Don't declare.
2117 2014-07-18 Tom Tromey <tromey@redhat.com>
2119 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2120 to find_target_beneath.
2121 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2122 find_target_beneath.
2123 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2125 2014-07-18 Tom Tromey <tromey@redhat.com>
2128 * utils.c (quit): Use target_supports_terminal_ours.
2129 * target.h (target_supports_terminal_ours): Declare.
2130 * target.c (target_supports_delete_record): Don't check
2131 to_delete_record against NULL.
2132 (target_supports_terminal_ours): New function.
2134 2014-07-18 Tom Tromey <tromey@redhat.com>
2137 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2138 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2139 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2140 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2141 * windows-nat.c (windows_xfer_partial): Always delegate.
2142 * record-btrace.c (record_btrace_xfer_partial): Simplify
2144 (record_btrace_fetch_registers, record_btrace_store_registers)
2145 (record_btrace_prepare_to_store, record_btrace_resume)
2146 (record_btrace_wait, record_btrace_find_new_threads)
2147 (record_btrace_thread_alive): Likewise.
2148 * procfs.c (procfs_xfer_partial): Always delegate.
2149 * corelow.c (core_xfer_partial): Always delegate.
2150 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2152 2014-07-18 Tom Tromey <tromey@redhat.com>
2154 * exec.c (exec_make_note_section): Move earlier.
2156 2014-07-17 Doug Evans <dje@google.com>
2159 * maint.c (count_symtabs_and_blocks): Handle NULL
2160 current_program_space.
2161 (report_command_stats): Check global enabled flag in addition to
2162 recorded enabled flag.
2163 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2165 2014-07-16 Pedro Alves <palves@redhat.com>
2167 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2169 2014-07-16 Tom Tromey <tromey@redhat.com>
2171 * target.h (struct target_ops) <to_delete_record>: Reformat
2174 2014-07-16 Tom Tromey <tromey@redhat.com>
2176 * target-delegates.c: Rebuild.
2178 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2180 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2181 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2182 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2183 (avr_pointer_to_address): Likewise.
2184 (avr_address_class_type_flags): New function.
2185 (avr_address_class_type_flags_to_name): Likewise.
2186 (avr_address_class_name_to_type_flags): Likewise.
2187 (avr_gdbarch_init): Set address_class_type_flags,
2188 address_class_type_flags_to_name and
2189 address_class_name_to_type_flags.
2191 2014-07-15 Pedro Alves <palves@redhat.com>
2193 * linux-nat.c (kill_callback): Save errno and work with saved
2196 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2198 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2200 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2202 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2203 breakpoint support correctly.
2205 2014-07-14 Pedro Alves <palves@redhat.com>
2207 * utils.c (prompt_for_continue): Call target_terminal_ours.
2209 2014-07-14 Pedro Alves <palves@redhat.com>
2211 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2212 catch_errors. Don't re-enable stdin or notify observers where,
2214 (fetch_inferior_event_wrapper): Delete.
2216 2014-07-14 Pedro Alves <palves@redhat.com>
2219 * top.c: Include "inf-loop.h".
2220 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2222 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2224 (gdb_readline_wrapper): Store whether the target is async, and
2227 2014-07-14 Pedro Alves <palves@redhat.com>
2230 * top.c (gdb_readline_wrapper_line): Tweak comment.
2231 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2232 the input handler callback.
2234 2014-07-14 Pedro Alves <palves@redhat.com>
2237 * main.c: Include event-top.h.
2238 (handle_command_errors): New function.
2239 (catch_command_errors, catch_command_errors_const): Use it.
2241 2014-07-14 Pedro Alves <palves@redhat.com>
2243 * exceptions.c (catch_command_errors, catch_command_errors_const):
2245 * exceptions.h (catch_command_errors_ftype)
2246 (catch_command_errors_const_ftype): Moved to main.c.
2247 (catch_command_errors, catch_command_errors_const): Delete
2249 * main.c (catch_command_errors_ftype)
2250 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2251 (catch_command_errors, catch_command_errors_const)): Moved here
2252 from exceptions.c and make static.
2254 2014-07-14 Pedro Alves <palves@redhat.com>
2256 * exceptions.c (print_any_exception): Delete.
2257 (catch_exceptions_with_msg): Use exception_print instead of
2258 print_any_exception.
2259 (catch_errors): Use exception_fprintf instead of
2260 print_any_exception.
2261 (catch_command_errors, catch_command_errors_const): Use
2262 exception_print instead of print_any_exception.
2264 2014-07-14 Pedro Alves <palves@redhat.com>
2266 * infcall.c (run_inferior_call): Set 'sync_execution' while
2267 running the inferior call.
2269 2014-07-14 Pedro Alves <palves@redhat.com>
2271 * value.c (value_contents_equal): Delete function.
2272 * value.h (value_contents_equal): Delete declaration.
2274 2014-07-14 Tom Tromey <tromey@redhat.com>
2277 * gdbtypes.c (is_dynamic_type_internal): New function, from
2279 (is_dynamic_type): Rewrite.
2280 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2281 (resolve_dynamic_struct): Likewise.
2282 (resolve_dynamic_type_internal): New function, from
2283 resolve_dynamic_type.
2284 (resolve_dynamic_type): Rewrite.
2286 2014-07-14 Tom Tromey <tromey@redhat.com>
2288 * target.c (target_require_runnable): Also check record_stratum.
2291 2014-07-11 Yao Qi <yao@codesourcery.com>
2293 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2294 thumb_instruction_restores_sp return true.
2296 2014-07-11 Yao Qi <yao@codesourcery.com>
2298 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2299 (thumb_in_function_epilogue_p): Call
2300 thumb_instruction_restores_sp.
2302 2014-07-11 Yao Qi <yao@codesourcery.com>
2304 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2306 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2308 2014-07-11 Gary Benson <gbenson@redhat.com>
2310 * amd64-linux-nat.c (gdbcore.h): Remove include.
2311 (regset.h): Likewise.
2312 (nat/linux-btrace.h): Likewise.
2313 (btrace.h): Likewise.
2314 (gdb_assert.h): Likewise.
2315 (string.h): Likewise.
2316 (sys/uio.h): Likewise.
2317 (sys/debugreg.h): Likewise.
2318 (sys/syscall.h): Likewise.
2319 (sys/procfs.h): Likewise.
2320 (sys/user.h): Likewise.
2321 (asm/ptrace.h): Likewise.
2322 (i386-nat.h): Likewise.
2323 * i386-linux-nat.c (i386-nat.h): Likewise.
2324 (regset.h): Likewise.
2325 (target.h): Likewise.
2326 (linux-nat.h): Likewise.
2327 (nat/linux-btrace.h): Likewise.
2328 (btrace.h): Likewise.
2329 (gdb_assert.h): Likewise.
2330 (string.h): Likewise.
2331 (sys/uio.h): Likewise.
2332 (sys/user.h): Likewise.
2333 (sys/procfs.h): Likewise.
2334 (sys/reg.h): Likewise.
2335 (sys/debugreg.h): Likewise.
2336 (ORIG_EAX): Remove definition.
2338 2014-07-11 Gary Benson <gbenson@redhat.com>
2340 * i386-linux-nat.h: New file.
2341 * x86-linux-nat.h: Likewise.
2342 * x86-linux-nat.c: Likewise.
2343 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2344 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2345 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2346 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2347 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2348 (PTRACE_SETREGSET): Likewise.
2349 (arch_lwp_info): Now in x86-linux-nat.c.
2350 (have_ptrace_getregset): Now in x86-linux-nat.h.
2351 (x86_linux_dr_get): Now in x86-linux-nat.c.
2352 (x86_linux_dr_set): Likewise.
2353 (x86_linux_dr_get_addr): Likewise.
2354 (x86_linux_dr_get_control): Likewise.
2355 (x86_linux_dr_get_status): Likewise.
2356 (update_debug_registers_callback): Likewise.
2357 (x86_linux_dr_set_control): Likewise.
2358 (x86_linux_dr_set_addr): Likewise.
2359 (x86_linux_prepare_to_resume): Likewise.
2360 (x86_linux_new_thread): Likewise.
2361 (x86_linux_new_fork): Likewise.
2362 (x86_linux_get_thread_area): Likewise.
2363 (super_post_startup_inferior): Likewise.
2364 (x86_linux_child_post_startup_inferior): Likewise.
2365 (AMD64_LINUX_USER64_CS): Likewise.
2366 (AMD64_LINUX_X32_DS): Likewise.
2367 (x86_linux_read_description): Likewise.
2368 (x86_linux_enable_btrace): Likewise.
2369 (x86_linux_disable_btrace): Likewise.
2370 (x86_linux_teardown_btrace): Likewise.
2371 (x86_linux_read_btrace): Likewise.
2372 (x86_linux_create_target): Likewise.
2373 (x86_linux_add_target): Likewise.
2374 * i386-linux-nat.c (x86-linux-nat.h): New include.
2375 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2376 (PTRACE_SETREGSET): Likewise.
2377 (arch_lwp_info): Now in x86-linux-nat.c.
2378 (have_ptrace_getregset): Now in x86-linux-nat.h.
2379 (x86_linux_dr_get): Now in x86-linux-nat.c.
2380 (x86_linux_dr_set): Likewise.
2381 (x86_linux_dr_get_addr): Likewise.
2382 (x86_linux_dr_get_control): Likewise.
2383 (x86_linux_dr_get_status): Likewise.
2384 (update_debug_registers_callback): Likewise.
2385 (x86_linux_dr_set_control): Likewise.
2386 (x86_linux_dr_set_addr): Likewise.
2387 (x86_linux_prepare_to_resume): Likewise.
2388 (x86_linux_new_thread): Likewise.
2389 (x86_linux_new_fork): Likewise.
2390 (x86_linux_get_thread_area): Likewise.
2391 (super_post_startup_inferior): Likewise.
2392 (x86_linux_child_post_startup_inferior): Likewise.
2393 (AMD64_LINUX_USER64_CS): Likewise.
2394 (AMD64_LINUX_X32_DS): Likewise.
2395 (x86_linux_read_description): Likewise.
2396 (x86_linux_enable_btrace): Likewise.
2397 (x86_linux_disable_btrace): Likewise.
2398 (x86_linux_teardown_btrace): Likewise.
2399 (x86_linux_read_btrace): Likewise.
2400 (x86_linux_create_target): Likewise.
2401 (x86_linux_add_target): Likewise.
2403 2014-07-11 Gary Benson <gbenson@redhat.com>
2405 * amd64-linux-nat.c: Comment and whitespace changes.
2406 * i386-linux-nat.c: Comment and whitespace changes.
2408 2014-07-11 Gary Benson <gbenson@redhat.com>
2410 * amd64-linux-nat.c (x86_linux_create_target): New function.
2411 (x86_linux_add_target): Likewise.
2412 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2413 * i386-linux-nat.c (x86_linux_create_target): New function.
2414 (x86_linux_add_target): Likewise.
2415 (_initialize_i386_linux_nat): Delegate to the above new functions.
2417 2014-07-11 Gary Benson <gbenson@redhat.com>
2419 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2420 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2421 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2422 (ps_get_thread_area): Delegate to the above.
2424 2014-07-11 Gary Benson <gbenson@redhat.com>
2426 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2427 x86_linux_read_description. All uses updated. amd64-specific
2428 code conditionalized. Conditionalized i386-specific code added.
2429 Redundant cast removed.
2430 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2431 x86_linux_read_description. All uses updated. i386-specific
2432 code conditionalized. Conditionalized amd64-specific code added.
2433 One sizeof replaced with the actual type it is describing.
2435 2014-07-11 Gary Benson <gbenson@redhat.com>
2437 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2438 x86_linux_dr_get. All uses updated.
2439 (amd64_linux_dr_set): Renamed to
2440 x86_linux_dr_set. All uses updated.
2441 (amd64_linux_dr_get_addr): Renamed to
2442 x86_linux_dr_get_addr. All uses updated.
2443 (amd64_linux_dr_get_control): Renamed to
2444 x86_linux_dr_get_control. All uses updated.
2445 (amd64_linux_dr_get_status): Renamed to
2446 x86_linux_dr_get_status. All uses updated.
2447 (amd64_linux_dr_set_control): Renamed to
2448 x86_linux_dr_set_control. All uses updated.
2449 (amd64_linux_dr_set_addr): Renamed to
2450 x86_linux_dr_set_addr. All uses updated.
2451 (amd64_linux_prepare_to_resume): Renamed to
2452 x86_linux_prepare_to_resume. All uses updated.
2453 (amd64_linux_new_thread): Renamed to
2454 x86_linux_new_thread. All uses updated.
2455 (amd64_linux_new_fork): Renamed to
2456 x86_linux_new_fork. All uses updated.
2457 (amd64_linux_child_post_startup_inferior): Renamed to
2458 x86_linux_child_post_startup_inferior. All uses updated.
2459 (amd64_linux_enable_btrace): Renamed to
2460 x86_linux_enable_btrace. All uses updated.
2461 (amd64_linux_disable_btrace): Renamed to
2462 x86_linux_disable_btrace. All uses updated.
2463 (amd64_linux_teardown_btrace): Renamed to
2464 x86_linux_teardown_btrace. All uses updated.
2465 (amd64_linux_read_btrace): Renamed to
2466 x86_linux_read_btrace. All uses updated.
2467 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2468 x86_linux_dr_get. All uses updated.
2469 (i386_linux_dr_set): Renamed to
2470 x86_linux_dr_set. All uses updated.
2471 (i386_linux_dr_get_addr): Renamed to
2472 x86_linux_dr_get_addr. All uses updated.
2473 (i386_linux_dr_get_control): Renamed to
2474 x86_linux_dr_get_control. All uses updated.
2475 (i386_linux_dr_get_status): Renamed to
2476 x86_linux_dr_get_status. All uses updated.
2477 (i386_linux_dr_set_control): Renamed to
2478 x86_linux_dr_set_control. All uses updated.
2479 (i386_linux_dr_set_addr): Renamed to
2480 x86_linux_dr_set_addr. All uses updated.
2481 (i386_linux_prepare_to_resume): Renamed to
2482 x86_linux_prepare_to_resume. All uses updated.
2483 (i386_linux_new_thread): Renamed to
2484 x86_linux_new_thread. All uses updated.
2485 (i386_linux_new_fork): Renamed to
2486 x86_linux_new_fork. All uses updated.
2487 (i386_linux_child_post_startup_inferior): Renamed to
2488 x86_linux_child_post_startup_inferior. All uses updated.
2489 (i386_linux_enable_btrace): Renamed to
2490 x86_linux_enable_btrace. All uses updated.
2491 (i386_linux_disable_btrace): Renamed to
2492 x86_linux_disable_btrace. All uses updated.
2493 (i386_linux_teardown_btrace): Renamed to
2494 x86_linux_teardown_btrace. All uses updated.
2495 (i386_linux_read_btrace): Renamed to
2496 x86_linux_read_btrace. All uses updated.
2498 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2500 * remote.c (extended_remote_post_attach): New function.
2501 (init_extended_remote_ops): Install it as to_post_attach method.
2503 2014-07-09 Pedro Alves <palves@redhat.com>
2505 * infcmd.c (attach_command_post_wait): Don't call
2506 target_terminal_inferior here.
2507 (attach_command): Call it here instead.
2509 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2511 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2513 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2514 from varobj.c, with additional checks.
2515 (c_varobj_ops): Fill in is_path_expr_parent field.
2516 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2517 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2519 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2521 (varobj_default_is_path_expr_parent): New function.
2522 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2523 (varobj_default_is_path_expr_parent): Declare new function.
2525 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2527 * infcmd.c (finish_backward): Turn internal error into normal error.
2529 2014-07-07 Pedro Alves <palves@redhat.com>
2532 * remote.c (async_handle_remote_sigint)
2533 (async_handle_remote_sigint_twice): Call
2534 gdb_call_async_signal_handler instead of
2535 mark_async_signal_handler.
2537 2014-07-07 Tom Tromey <tromey@redhat.com>
2539 * target-delegates.c: Rebuild.
2540 * target.c (target_info_record): Remove.
2541 * record.c (info_record_command): Unconditionally call
2543 * target.h (struct target_ops) <to_info_record>: Use
2544 TARGET_DEFAULT_IGNORE.
2545 (target_info_record): Remove.
2547 2014-07-07 Tom Tromey <tromey@redhat.com>
2549 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2550 TARGET_DEFAULT_NORETURN.
2551 * target.c (generic_tls_error): New function.
2552 (target_translate_tls_address): Don't search target stack.
2553 * target-delegates.c: Rebuild.
2554 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2556 * linux-thread-db.c (thread_db_get_thread_local_address):
2557 Unconditionally call beneath target.
2559 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2561 * cli/cli-logging.c (pop_output_files): Assign targerr to
2564 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2566 * MAINTAINERS (Write After Approval): Update my email address.
2568 2014-07-02 Gary Benson <gbenson@redhat.com>
2570 * proc-service.c (ps_xfer_memory): Update comment.
2571 (ps_pstop): Remove unused function.
2572 (ps_pcontinue): Likewise.
2573 (ps_lstop): Likewise.
2574 (ps_lcontinue): Likewise.
2575 (ps_lgetxregsize): Likewise.
2576 (ps_lgetxregs): Likewise.
2577 (ps_lsetxregs): Likewise.
2578 (ps_plog): Likewise.
2579 (ps_ptread): Likewise.
2580 (ps_ptwrite): Likewise.
2582 2014-07-01 Mark Wielaard <mjw@redhat.com>
2584 * dwarf2read.c (add_array_cv_type): New function.
2585 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2586 (read_tag_volatile_type): Likewise.
2588 2014-07-01 Tom Tromey <tromey@redhat.com>
2590 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2591 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2592 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2593 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2594 * command.h (cmd_cfunc_ftype): Move earlier.
2595 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2596 (add_com, add_info): Use cmd_cfunc_ftype.
2598 2014-06-30 Tom Tromey <tromey@redhat.com>
2600 * symtab.c (operator_chars): Make parameters and return type
2602 (file_matches): Make "files" const.
2603 (struct search_symbols_data) <files>: Now const.
2604 (search_symbols): Make "regexp" and "files" parameters const.
2606 (symtab_symbol_info): Remove cast.
2607 (rbreak_command): Update.
2608 * symtab.h (search_symbols): Update.
2610 2014-06-27 Yao Qi <yao@codesourcery.com>
2612 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2613 Change parameter type to 'struct thread_info *'. Caller
2615 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2617 * dummy-frame.c (struct dummy_frame_id): New.
2618 (dummy_frame_id_eq): New function.
2619 (struct dummy_frame) <id>: Change its type to 'struct
2621 (dummy_frame_push): Add parameter ptid and save it in
2623 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2625 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2627 (lookup_dummy_frame): Change parameter type to 'struct
2628 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2629 instead of frame_id_eq.
2630 (dummy_frame_pop): Add parameter ptid. Callers updated.
2631 Update comments. Compose dummy_frame_id and pass it to
2633 (dummy_frame_discard): Add parameter ptid.
2634 (dummy_frame_sniffer): Compose dummy_frame_id and call
2635 dummy_frame_id_eq instead of frame_id_eq.
2636 (fprint_dummy_frames): Print ptid.
2637 * dummy-frame.h: Remove comments.
2638 (dummy_frame_push): Add ptid in declaration.
2639 (dummy_frame_pop, dummy_frame_discard): Likewise.
2641 2014-06-26 Tom Tromey <tromey@redhat.com>
2643 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2644 * command.h (error_no_arg): Update.
2646 2014-06-26 Tom Tromey <tromey@redhat.com>
2648 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2649 (do_show_command): Make "arg" const.
2650 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2652 2014-06-26 Tom Tromey <tromey@redhat.com>
2654 * record-full.c (record_full_get_bookmark): Make "args" const.
2655 (record_full_goto_bookmark): Make "raw_bookmark" const.
2656 * record.c (record_goto): New function.
2657 (cmd_record_goto): Use it. Now static.
2658 * record.h (record_goto): Declare.
2659 (cmd_record_goto): Remove declaration.
2660 * target-delegates.c: Rebuild.
2661 * target.h (struct target_ops) <to_get_bookmark,
2662 to_goto_bookmark>: Make parameter const.
2664 2014-06-26 Tom Tromey <tromey@redhat.com>
2666 * defs.h (generic_load): Update.
2667 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2668 * monitor.c (monitor_load): Make "args" const.
2669 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2670 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2672 (mips_load): Make "file" const.
2673 * remote-sim.c (gdbsim_load): Make "args" const.
2674 * remote.c (remote_load): Make "name" const.
2675 * symfile.c (generic_load): Make "args" const.
2676 * target-delegates.c: Rebuild.
2677 * target.c (target_load): Make "arg" const.
2678 (debug_to_load): Make "args" const.
2679 * target.h (struct target_ops) <to_load>: Make parameter const.
2680 (target_load): Update.
2682 2014-06-26 Tom Tromey <tromey@redhat.com>
2685 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2686 (dwarf2_physname, read_partial_die)
2687 (guess_partial_die_structure_name, fixup_partial_die)
2688 (guess_full_die_structure_name, anonymous_struct_prefix)
2689 (dwarf2_name): Use per-BFD obstack.
2691 2014-06-26 Yao Qi <yao@codesourcery.com>
2693 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2694 dummyframe and this_id into inner block below.
2696 2014-06-26 Yao Qi <yao@codesourcery.com>
2698 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2699 with "signal_pass[0]" in the initialization of signal_pass.
2701 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2703 * record-btrace.c (record_btrace_generating_corefile)
2704 (record_btrace_prepare_to_generate_core)
2705 (record_btrace_done_generating_core): New.
2706 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2707 (record_btrace_store_registers, record_btrace_prepare_to_store):
2708 Forward request when generating a core file.
2709 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2710 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2711 to_done_generating_core.
2713 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2715 * target.h (target_ops) <to_prepare_to_generate_core>
2716 <to_done_generating_core>: New.
2717 (target_prepare_to_generate_core, target_done_generating_core): New.
2718 * target.c (target_prepare_to_generate_core)
2719 (target_done_generating_core): New.
2720 * target-delegates.c: Regenerate.
2721 * gcore.c: (write_gcore_file): Rename to ...
2722 (write_gcore_file_1): ...this.
2723 (write_gcore_file): Call target_prepare_to_generate_core
2724 and target_done_generating_core.
2726 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2728 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2729 * gcore.c (write_gcore_file): Free memory returned from
2730 make_corefile_notes.
2731 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2732 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2734 2014-06-24 Yao Qi <yao@codesourcery.com>
2736 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2737 (arm_linux_init_abi): Set skip_trampoline_code with
2738 gdbarch_skip_trampoline_code instead of
2739 find_solib_trampoline_target.
2741 2014-06-24 Yao Qi <yao@codesourcery.com>
2743 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2744 arm_skip_bx_reg returns non-zero.
2746 2014-06-24 Yao Qi <yao@codesourcery.com>
2748 * arm-tdep.c (arm_skip_bx_reg): New function.
2749 (arm_skip_stub): Call arm_skip_bx_reg.
2751 2014-06-23 Don Breazeal <donb@codesourcery.com>
2753 * MAINTAINERS: Add myself as write-after-approval maintainer.
2755 2014-06-23 Pedro Alves <palves@redhat.com>
2757 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2758 DR_CONTROL before setting DR0..DR3.
2759 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2760 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2761 bits of DR_CONTROL related to the debug register slot being
2762 disabled. If all slots are vacant, clear local slowdown as well,
2763 and assert DR_CONTROL is 0.
2765 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2767 * python/lib/gdb/command/xmethods.py
2768 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2769 current progspace only if the string "progspace" matches LOCUS_RE.
2771 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2773 Fix --with-system-readline with readline-6.3 patch 5.
2774 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2775 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2778 2014-06-20 Tom Tromey <tromey@redhat.com>
2780 * dwarf2read.c (dw2_get_real_path): Use correct type in
2782 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2784 2014-06-20 Gary Benson <gbenson@redhat.com>
2786 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2787 * common/glibc_thread_db.h: Likewise.
2788 * common/i386-cpuid.h: Likewise.
2789 * common/i386-gcc-cpuid.h: Likewise.
2790 * common/linux-btrace.h: Likewise.
2791 * common/linux-osdata.h: Likewise.
2792 * common/linux-procfs.h: Likewise.
2793 * common/linux-ptrace.h: Likewise.
2794 * common/mips-linux-watch.h: Likewise.
2795 * common/linux-btrace.c: Moved to nat.
2796 * common/linux-osdata.c: Likewise.
2797 * common/linux-procfs.c: Likewise.
2798 * common/linux-ptrace.c: Likewise.
2799 * common/mips-linux-watch.c: Likewise.
2800 * nat/gdb_thread_db.h: Moved from common.
2801 * nat/glibc_thread_db.h: Likewise.
2802 * nat/i386-cpuid.h: Likewise.
2803 * nat/i386-gcc-cpuid.h: Likewise.
2804 * nat/linux-btrace.c: Likewise.
2805 * nat/linux-btrace.h: Likewise.
2806 * nat/linux-osdata.c: Likewise.
2807 * nat/linux-osdata.h: Likewise.
2808 * nat/linux-procfs.c: Likewise.
2809 * nat/linux-procfs.h: Likewise.
2810 * nat/linux-ptrace.c: Likewise.
2811 * nat/linux-ptrace.h: Likewise.
2812 * nat/mips-linux-watch.c: Likewise.
2813 * nat/mips-linux-watch.h: Likewise.
2814 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2815 (object file files): Reordered.
2816 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2817 of glibc_thread_db.h.
2819 2014-06-20 Gary Benson <gbenson@redhat.com>
2821 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2822 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2823 (i386_dr_low): Likewise.
2824 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2825 (i386_dr_low_set_addr): Likewise.
2826 (i386_dr_low_get_addr): Likewise.
2827 (i386_dr_low_can_set_control): Likewise.
2828 (i386_dr_low_set_control): Likewise.
2829 (i386_dr_low_get_control): Likewise.
2830 (i386_dr_low_get_status): Likewise.
2831 (i386_get_debug_register_length): Likewise.
2832 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2833 (i386_dr_low): Likewise.
2834 * nat/i386-dregs.c (i386-low.h): Remove include.
2835 (i386-nat.h): Likewise.
2836 (nat/i386-dregs.h): New include.
2837 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2838 (i386_dr_low_set_addr): Likewise.
2839 (i386_dr_low_get_addr): Likewise.
2840 (i386_dr_low_can_set_control): Likewise.
2841 (i386_dr_low_set_control): Likewise.
2842 (i386_dr_low_get_control): Likewise.
2843 (i386_dr_low_get_status): Likewise.
2844 (i386_get_debug_register_length): Likewise.
2845 (debug_hw_points): Likewise.
2847 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2849 * Makefile.in (SFILES): Add d-exp.y.
2850 (YYFILES): Add d-exp.c.
2851 (YYOBJ): Add d-exp.o.
2852 (local-maintainer-clean): Delete d-exp.c.
2853 * d-exp.y: New file.
2854 * d-lang.h (d_parse): New declaration.
2855 (d_error): New declaration.
2856 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2857 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2858 PREC_ORDER operators.
2859 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2861 2014-06-19 Yao Qi <yao@codesourcery.com>
2863 * gdbthread.h (any_running): Remove the declaration.
2864 * thread.c (any_running): Remove.
2866 2014-06-19 Yao Qi <yao@codesourcery.com>
2868 * gdbthread.h (struct thread_info) <state>: Change its type to
2869 'enum thread_state'. Update comments.
2871 2014-06-19 Pedro Alves <palves@redhat.com>
2873 * gdbthread.h (ALL_THREADS): Delete.
2874 (ALL_NON_EXITED_THREADS): New macro.
2875 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2876 instead of ALL_THREADS.
2877 * infrun.c (find_thread_needs_step_over)
2878 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2879 instead of ALL_THREADS.
2880 * record-btrace.c (record_btrace_open)
2881 (record_btrace_stop_recording, record_btrace_close)
2882 (record_btrace_is_replaying, record_btrace_resume)
2883 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2884 * remote.c (append_pending_thread_resumptions): Likewise.
2885 * thread.c (thread_apply_all_command): Likewise.
2887 2014-06-19 Gary Benson <gbenson@redhat.com>
2889 * i386-nat.c (i386_stopped_by_watchpoint):
2890 Use i386_dr_stopped_by_watchpoint.
2891 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2892 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2894 2014-06-19 Gary Benson <gbenson@redhat.com>
2896 * nat/i386-dregs.c: New file.
2897 * Makefile.in (i386-dregs.o): New rule.
2898 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2899 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2900 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2901 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2902 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2903 * config/i386/go32.mh (NATDEPFILES): Likewise.
2904 * config/i386/linux.mh (NATDEPFILES): Likewise.
2905 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2906 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2907 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2908 * i386-nat.h (debug_hw_points): New declaration.
2909 * i386-nat.c (breakpoint.h): Remove include.
2910 (command.h): Likewise.
2911 (target.h): Likewise.
2912 (gdb_assert.h): Likewise.
2913 (debug_hw_points): Made nonstatic.
2914 (debug_printf): Now in i386-dregs.c.
2915 (TARGET_HAS_DR_LEN_8): Likewise.
2916 (DR_CONTROL_SHIFT): Likewise.
2917 (DR_CONTROL_SIZE): Likewise.
2918 (DR_RW_EXECUTE): Likewise.
2919 (DR_RW_WRITE): Likewise.
2920 (DR_RW_READ): Likewise.
2921 (DR_RW_IORW): Likewise.
2922 (DR_LEN_1): Likewise.
2923 (DR_LEN_2): Likewise.
2924 (DR_LEN_4): Likewise.
2925 (DR_LEN_8): Likewise.
2926 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2927 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2928 (DR_ENABLE_SIZE): Likewise.
2929 (DR_LOCAL_SLOWDOWN): Likewise.
2930 (DR_GLOBAL_SLOWDOWN): Likewise.
2931 (DR_CONTROL_RESERVED): Likewise.
2932 (I386_DR_CONTROL_MASK): Likewise.
2933 (I386_DR_VACANT): Likewise.
2934 (I386_DR_LOCAL_ENABLE): Likewise.
2935 (I386_DR_GLOBAL_ENABLE): Likewise.
2936 (I386_DR_DISABLE): Likewise.
2937 (I386_DR_SET_RW_LEN): Likewise.
2938 (I386_DR_GET_RW_LEN): Likewise.
2939 (I386_DR_WATCH_HIT): Likewise.
2940 (i386_wp_op_t): Likewise.
2941 (i386_show_dr): Likewise.
2942 (i386_length_and_rw_bits): Likewise.
2943 (i386_insert_aligned_watchpoint): Likewise.
2944 (i386_remove_aligned_watchpoint): Likewise.
2945 (i386_handle_nonaligned_watchpoint): Likewise.
2946 (i386_update_inferior_debug_regs): Likewise.
2947 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2948 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2949 (i386_region_ok_for_watchpoint):
2950 Use i386_dr_region_ok_for_watchpoint.
2951 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2953 2014-06-19 Gary Benson <gbenson@redhat.com>
2955 * i386-nat.c (i386_insert_hw_breakpoint): Use
2956 i386_insert_watchpoint.
2957 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2959 2014-06-19 Gary Benson <gbenson@redhat.com>
2961 * i386-nat.c (i386_dr_show): Renamed to
2962 i386_show_dr and made static. All uses updated.
2963 (i386_dr_length_and_rw_bits): Renamed to
2964 i386_length_and_rw_bits and made static.
2966 (i386_dr_insert_aligned_watchpoint): Renamed to
2967 i386_insert_aligned_watchpoint and made static.
2969 (i386_dr_remove_aligned_watchpoint): Renamed to
2970 i386_remove_aligned_watchpoint and made static.
2972 (i386_dr_update_inferior_debug_regs): Renamed to
2973 i386_update_inferior_debug_regs and made static.
2975 * nat/i386-dregs.h (i386_dr_show): Removed.
2976 (i386_dr_length_and_rw_bits): Likewise.
2977 (i386_dr_insert_aligned_watchpoint): Likewise.
2978 (i386_dr_remove_aligned_watchpoint): Likewise.
2979 (i386_dr_update_inferior_debug_regs): Likewise.
2981 2014-06-19 Gary Benson <gbenson@redhat.com>
2983 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2984 * configure: Regenerate.
2985 * config.in: Likewise.
2986 * main.c (signal.h): New include.
2987 (setup_alternate_signal_stack): New function.
2988 (captured_main): Call the above.
2989 * cp-support.c (signal.h): New include.
2990 (catch_demangler_crashes): New flag.
2991 (SIGJMP_BUF): New define.
2992 (SIGSETJMP): Likewise.
2993 (SIGLONGJMP): Likewise.
2994 (gdb_demangle_jmp_buf): New static global.
2995 (gdb_demangle_attempt_core_dump): Likewise.
2996 (gdb_demangle_signal_handler): New function.
2997 (gdb_demangle): If catch_demangler_crashes is set, install the
2998 above signal handler before calling bfd_demangle, and restore
2999 the original signal handler afterwards. Display the offending
3000 symbol and call demangler_warning the first time a segmentation
3002 (_initialize_cp_support): New maint set/show command.
3004 2014-06-19 Gary Benson <gbenson@redhat.com>
3006 * utils.h (resource_limit_kind): New enum.
3007 (can_dump_core): New declaration.
3008 (warn_cant_dump_core): Likewise.
3009 (dump_core): Likewise.
3010 * utils.c (dump_core): Made nonstatic. Added new
3011 parameter "limit_kind".
3012 (can_dump_core): Made nonstatic. Moved printing code to...
3013 (warn_cant_dump_core): New function.
3014 (can_dump_core_warn): Likewise.
3015 (internal_vproblem): Replace calls to can_dump_core with
3016 calls to can_dump_core_warn. Supply new argument to each.
3018 2014-06-19 Gary Benson <gbenson@redhat.com>
3020 * utils.h (demangler_vwarning): New declaration.
3021 (demangler_warning): Likewise.
3022 * utils.c (struct internal_problem)
3023 <user_settable_should_quit>: New field.
3024 <user_settable_should_dump_core>: Likewise
3025 (internal_error_problem): Add values for above new fields.
3026 (internal_warning_problem): Likewise.
3027 (demangler_warning_problem): New static global.
3028 (demangler_vwarning): New function.
3029 (demangler_warning): Likewise.
3030 (add_internal_problem_command): Selectively add commands.
3031 (_initialize_utils): New internal problem command.
3032 * maint.c (maintenance_demangler_warning): New function.
3033 (_initialize_maint_cmds): New command.
3035 2014-06-18 Tom Tromey <tromey@redhat.com>
3037 * f-valprint.c (info_common_command_for_block): Update.
3038 * symtab.h (struct general_symbol_info) <common_block>: Now
3041 2014-06-18 Tom Tromey <tromey@redhat.com>
3043 * symtab.h (struct symtab) <blockvector>: Now const.
3044 * ada-lang.c (ada_add_global_exceptions): Update.
3045 * buildsym.c (augment_type_symtab): Update.
3046 * dwarf2read.c (dw2_lookup_symbol): Update.
3047 * jit.c (finalize_symtab): Update.
3048 * jv-lang.c (add_class_symtab_symbol): Update.
3049 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3051 * objfiles.c (objfile_relocate1): Update.
3052 * psymtab.c (lookup_symbol_aux_psymtabs)
3053 (maintenance_check_psymtabs): Update.
3054 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3056 * spu-tdep.c (spu_catch_start): Update.
3057 * symmisc.c (dump_symtab_1): Update.
3058 * symtab.c (lookup_global_symbol_from_objfile)
3059 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3060 (basic_lookup_transparent_type_quick)
3061 (basic_lookup_transparent_type, find_pc_sect_symtab)
3062 (find_pc_sect_line, search_symbols): Update.
3063 * block.c (find_block_in_blockvector): Make "bl" const.
3064 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3066 (blockvector_contains_pc): Make "bv" const.
3067 (block_for_pc_sect): Update.
3068 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3069 (blockvector_contains_pc): Update.
3070 * breakpoint.c (resolve_sal_pc): Update.
3071 * inline-frame.c (block_starting_point_at): Update.
3073 2014-06-18 Tom Tromey <tromey@redhat.com>
3075 * completer.c (complete_line): Make "line_buffer" const.
3076 * completer.h (complete_line): Update.
3078 2014-06-18 Tom Tromey <tromey@redhat.com>
3080 * symtab.c (add_macro_name): Remove unneeded cast.
3082 2014-06-18 Tom Tromey <tromey@redhat.com>
3084 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3085 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3087 2014-06-18 Tom Tromey <tromey@redhat.com>
3089 * probe.c (info_probes_for_ops): Make "arg" const.
3090 * probe.h (info_probes_for_ops): Update.
3092 2014-06-18 Tom Tromey <tromey@redhat.com>
3094 * varobj.c (varobj_create): Update.
3095 * valops.c (value_of_this): Update.
3096 * tracepoint.c (add_local_symbols, scope_info): Update.
3097 * symtab.h (struct general_symbol_info) <block>: Now const.
3098 * symtab.c (skip_prologue_sal)
3099 (default_make_symbol_completion_list_break_on)
3100 (skip_prologue_using_sal): Update.
3101 * stack.h (iterate_over_block_locals)
3102 (iterate_over_block_local_vars): Update.
3103 * stack.c (print_frame_args): Update.
3104 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3106 (get_selected_block): Make return type const.
3107 * python/py-frame.c (frapy_block): Update.
3108 * python/py-block.c (gdbpy_block_for_pc): Update.
3109 * p-exp.y (%union) <bval>: Now const.
3110 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3111 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3112 * m2-exp.y (%union) <bval>: Now const.
3113 * linespec.c (get_current_search_block): Make return type const.
3114 (create_sals_line_offset, find_label_symbols): Update.
3115 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3117 (block_starting_point_at): Make "block" const.
3118 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3119 (check_exception_resume): Update.
3120 * guile/scm-frame.c (gdbscm_frame_block): Update.
3121 * guile/scm-block.c (gdbscm_lookup_block): Update.
3122 * frame.h (get_frame_block): Update.
3123 (get_selected_block): Make return type const.
3124 * frame.c (frame_id_inner): Update.
3125 * f-valprint.c (info_common_command_for_block)
3126 (info_common_command): Update.
3127 * dwarf2loc.c (dwarf2_find_location_expression)
3128 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3129 (locexpr_describe_location_piece): Update.
3130 * c-exp.y (%union) <bval>: Now const.
3131 * breakpoint.c (resolve_sal_pc): Update.
3132 * blockframe.c (get_frame_block):Make return type const.
3133 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3134 (block_innermost_frame): Update.
3135 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3136 (block_for_pc, block_for_pc_sect): Update.
3137 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3139 (block_for_pc_sect, block_for_pc): Make return type const.
3140 * ax-gdb.c (gen_expr): Update.
3141 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3142 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3143 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3144 (ada_read_var_value): Update.
3145 * ada-exp.y (struct name_info) <block>: Now const.
3147 (block_lookup): Constify.
3149 2014-06-18 Gary Benson <gbenson@redhat.com>
3151 * nat/i386-dregs.h: New file.
3152 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3153 * i386-nat.h (i386-dregs.h): New include.
3154 (DR_FIRSTADDR): Now in i386-dregs.h.
3155 (DR_LASTADDR): Likewise.
3156 (DR_NADDR): Likewise.
3157 (DR_STATUS): Likewise.
3158 (DR_CONTROL): Likewise.
3159 (i386_debug_reg_state): Likewise.
3160 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3162 2014-06-18 Don Breazeal <donb@codesourcery.com>
3164 * breakpoint.c (set_longjmp_breakpoint): Call
3165 momentary_breakpoint_from_master with additional argument.
3166 (set_longjmp_breakpoint_for_call_dummy): Call
3167 momentary_breakpoint_from_master with additional argument.
3168 (set_std_terminate_breakpoint): Call
3169 momentary_breakpoint_from_master with additional argument.
3170 (momentary_breakpoint_from_master): Add argument to function
3171 definition and use it to initialize structure member flag.
3172 (clone_momentary_breakpoint): Call
3173 momentary_breakpoint_from_master with additional argument.
3174 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3175 member flags set in momentary_breakpoint_from_master.
3177 2014-06-18 Gary Benson <gbenson@redhat.com>
3179 * i386-nat.c (i386_show_dr): Renamed to
3180 i386_dr_show and made nonstatic. All uses updated.
3181 (i386_length_and_rw_bits): Renamed to
3182 i386_dr_length_and_rw_bits and made nonstatic.
3184 (i386_insert_aligned_watchpoint): Renamed to
3185 i386_dr_insert_aligned_watchpoint and made nonstatic.
3187 (i386_remove_aligned_watchpoint): Renamed to
3188 i386_dr_remove_aligned_watchpoint and made nonstatic.
3190 (i386_update_inferior_debug_regs): Renamed to
3191 i386_dr_update_inferior_debug_regs and made nonstatic.
3194 2014-06-18 Gary Benson <gbenson@redhat.com>
3196 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3197 (i386_dr_low_can_set_control): Likewise.
3198 (i386_dr_low_set_addr): Likewise.
3199 (i386_dr_low_set_control): Likewise.
3200 (i386_dr_low_get_addr): Likewise.
3201 (i386_dr_low_get_status): Likewise.
3202 (i386_dr_low_get_control): Likewise.
3203 (i386_insert_aligned_watchpoint): Use new macros.
3204 (i386_update_inferior_debug_regs): Likewise.
3205 (i386_stopped_data_address): Likewise.
3207 2014-06-18 Gary Benson <gbenson@redhat.com>
3209 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3210 New parameter. All uses updated.
3212 2014-06-18 Gary Benson <gbenson@redhat.com>
3214 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3217 2014-06-18 Gary Benson <gbenson@redhat.com>
3219 * i386-nat.c (debug_printf): New macro.
3220 (i386_get_debug_register_length): Likewise.
3221 (TARGET_HAS_DR_LEN_8): Use above macro.
3222 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3223 and printf_unfiltered. Use phex to format values.
3225 2014-06-18 Gary Benson <gbenson@redhat.com>
3227 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3230 2014-06-18 Gary Benson <gbenson@redhat.com>
3232 * i386-nat.c: Comment changes.
3234 2014-06-18 Gary Benson <gbenson@redhat.com>
3236 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3238 2014-06-18 Gary Benson <gbenson@redhat.com>
3240 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3241 (i386_insert_aligned_watchpoint): Likewise.
3242 (i386_remove_aligned_watchpoint): Likewise.
3243 (i386_handle_nonaligned_watchpoint): Likewise.
3245 2014-06-18 Gary Benson <gbenson@redhat.com>
3247 * i386-nat.c: Whitespace changes.
3249 2014-06-17 Samuel Bronson <naesten@gmail.com>
3251 * MAINTAINERS: Update Roland McGrath's email address.
3252 Thanks to Sergio Durigan Junior for pointing out that he left
3253 Red Hat a while ago, and giving me a current address.
3255 2014-06-17 Tom Tromey <tromey@redhat.com>
3257 * utils.h (savestring): Remove declaration.
3259 2014-06-17 Tom Tromey <tromey@redhat.com>
3261 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3263 2014-06-16 Keith Seitz <keiths@redhat.com>
3266 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3267 to update the varobj if inferior_ptid is null_ptid.
3269 2014-06-16 Tom Tromey <tromey@redhat.com>
3271 * target.h (struct target_ops) <to_info_proc>: Make parameter
3273 (target_info_proc): Update.
3274 * target.c (target_info_proc): Make "args" const.
3275 * procfs.c (procfs_info_proc): Update.
3276 * linux-tdep.c (linux_info_proc): Update.
3277 (linux_core_info_proc_mappings): Make "args" const.
3278 (linux_core_info_proc): Update.
3279 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3280 * gdbarch.c: Rebuild.
3281 * gdbarch.h: Rebuild.
3282 * corelow.c (core_info_proc): Update.
3284 2014-06-16 Tom Tromey <tromey@redhat.com>
3286 * target.h (struct target_ops) <to_disconnect>: Make parameter
3288 (target_disconnect): Update.
3289 * target.c (target_disconnect): Make "args" const.
3290 * target-delegates.c: Rebuild.
3291 * remote.c (remote_disconnect): Update.
3292 * record.h (record_disconnect): Update.
3293 * record.c (record_disconnect): Update.
3294 * inf-child.c (inf_child_disconnect): Update.
3296 2014-06-16 Tom Tromey <tromey@redhat.com>
3298 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3299 * target.c (debug_to_rcmd, default_rcmd): Update.
3300 * target-delegates.c: Rebuild.
3301 * remote.c (remote_rcmd): Update.
3302 * monitor.c (monitor_rcmd): Update.
3304 2014-06-16 Pedro Alves <palves@redhat.com>
3306 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3307 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3308 have OBJF_SHARED set.
3309 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3310 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3311 instead of OBJF_USERLOADED.
3312 * objfiles.h (OBJF_SHARED): Update comment.
3313 (userloaded_objfile_contains_address_p): Rename to ...
3314 (shared_objfile_contains_address_p): ... this, and update
3316 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3318 (remove_symbol_file_command): Skip objfiles that don't have
3321 2014-06-16 Tom Tromey <tromey@redhat.com>
3323 * minsyms.h (prim_record_minimal_symbol)
3324 (prim_record_minimal_symbol_and_info): Update comments.
3326 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3328 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3329 or --without-guile, according to how GDB was built.
3331 2014-06-13 Tom Tromey <tromey@redhat.com>
3333 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3335 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3337 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3339 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3340 help_list.Pass all_commands, not -1, to help_list.
3341 * cli/cli-dump.c (dump_command, append_command)
3342 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3343 (binary_dump_command, binary_append_command): Pass all_commands,
3344 not -1, to help_list.
3345 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3347 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3349 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3351 * top.c (set_history): Pass all_commands, not -1, to help_list.
3352 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3353 all_commands, not -1, to help_list.
3354 * symfile.c (overlay_command): Pass all_commands, not -1, to
3356 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3358 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3360 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3362 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3363 not -1, to help_list.
3364 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3365 not -1, to help_list.
3366 * maint.c (maintenance_command, maintenance_info_command)
3367 (maintenance_print_command, maintenance_set_cmd): Pass
3368 all_commands, not -1, to help_list.
3369 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3371 * language.c (set_check): Pass all_commands, not -1, to help_list.
3372 * infcmd.c (unset_command): Pass all_commands, not -1, to
3374 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3376 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3378 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3380 * breakpoint.c (save_command): Pass all_commands, not -1, to
3382 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3383 all_commands, not -1, to help_list.
3385 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3387 * regcache.c (struct register_to_invalidate): New structure.
3388 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3390 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3392 2014-06-12 Yao Qi <yao@codesourcery.com>
3394 * varobj.c (varobj_get_num_children): Call
3395 varobj_is_dynamic_p.
3396 (varobj_list_children): Likewise.
3397 (varobj_update): Likewise. Update comments.
3399 2014-06-12 Yao Qi <yao@codesourcery.com>
3401 * varobj.c (varobj_pretty_printed_p): Rename to ...
3402 (varobj_is_dynamic_p): ... this. New function.
3403 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3404 (varobj_is_dynamic_p): Declare.
3405 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3406 (mi_print_value_p, varobj_update_one): Likewise.
3408 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3409 Yao Qi <yao@codesourcery.com>
3411 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3412 (varobj_get_iterator): Wrap up code for pretty-printer by
3413 "#if HAVE_PYTHON" and "#endif".
3414 (update_dynamic_varobj_children): Likewise.
3416 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3417 Yao Qi <yao@codesourcery.com>
3419 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3420 gdb_python_initialized is false. Move some code from varobj.c.
3421 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3422 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3423 (struct varobj_item): Moved to varobj-iter.h".
3424 (varobj_clear_saved_item): New function.
3425 (update_dynamic_varobj_children): Move python-related code to
3427 (free_variable): Call varobj_clear_saved_item and
3430 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3431 Yao Qi <yao@codesourcery.com>
3433 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3434 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3435 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3436 (py-varobj.o): New rule.
3437 * python/py-varobj.c: New file.
3438 * python/python-internal.h (py_varobj_get_iterator): Declare.
3439 * varobj-iter.h: New file.
3440 * varobj.c: Include "varobj-iter.h"
3441 (struct varobj) <child_iter>: Change its type from "PyObject *"
3442 to "struct varobj_iter *".
3443 <saved_item>: Likewise.
3444 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3445 [HAVE_PYTHON] (varobj_get_iterator): New function.
3446 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3447 python-specific code to python/py-varobj.c.
3448 (install_visualizer): Call varobj_iter_delete instead of
3450 * varobj.h (varobj_ensure_python_env): Declare.
3452 2014-06-12 Yao Qi <yao@codesourcery.com>
3454 * varobj.c (struct varobj_item): New structure.
3455 (create_child_with_value): Update declaration.
3456 (varobj_add_child): Replace arguments 'name' and 'value' with
3457 'item'. All callers updated.
3458 (install_dynamic_child): Likewise.
3459 (update_dynamic_varobj_children): Likewise.
3460 (varobj_add_child): Likewise.
3461 (create_child_with_value): Likewise.
3463 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3465 * NEWS: Create a new section for the next release branch.
3466 Rename the section of the current branch, now that it has
3469 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3471 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3472 * version.in: Bump version to 7.8.50.DATE-cvs.
3474 2014-06-11 Pedro Alves <palves@redhat.com>
3477 * ser-mingw.c (net_windows_socket_check_pending): New function.
3478 (net_windows_select_thread): Ignore spurious wakeups. Use
3479 net_windows_socket_check_pending.
3480 (net_windows_wait_handle): Check for pending events with
3481 ioctlsocket, through net_windows_socket_check_pending, instead of
3482 checking the socket's event.
3484 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3486 * python/python-internal.h (gdb_PyObject_GetAttrString)
3487 (gdb_PyObject_HasAttrString): New inline function definitions.
3488 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3489 char * of the second argument to PyObject_GetAttrString.
3491 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3493 * serial.c (serial_write): Fix index of character to be printed
3494 in call to serial_logchar when serial debug traces are enabled.
3496 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3498 * gdbtypes (resolve_dynamic_range): Add function description.
3500 2014-06-09 Pedro Alves <palves@redhat.com>
3502 * linux-nat.c (linux_child_follow_fork): Initialize status with
3503 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3504 inner block. Only pass the signal to PTRACE_DETACH if in pass
3507 2014-06-09 Gary Benson <gbenson@redhat.com>
3509 * common/signals.c (gdb_signal_from_host): Reorder to separate
3510 the always-available ANSI-standard signals from the signals that
3512 (do_gdb_signal_to_host): Likewise.
3513 * proc-events.c (signal_table): Likewise.
3515 2014-06-08 Hui Zhu <hui@codesourcery.com>
3517 * common/linux-ptrace.c (linux_disable_event_reporting): New
3519 * common/linux-ptrace.h (linux_disable_event_reporting): New
3521 * linux-nat.c (linux_child_follow_fork): Do a single step before
3524 2014-06-07 Keith Seitz <keiths@redhat.com>
3528 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3529 from symbol_matches_domain in symtab.c. All local callers
3530 of symbol_matches_domain updated.
3531 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3532 search STRUCT_DOMAIN.
3533 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3534 independently. standard_lookup will do that automatically.
3535 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3536 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3537 (cp_lookup_symbol_in_namespace): Likewise.
3538 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3539 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3540 may return a STRUCT_DOMAIN match.
3541 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3542 * cp-support.c: Include language.h.
3543 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3545 * psymtab.c (match_partial_symbol): Compare the requested
3546 domain with the symbol's domain directly.
3547 (lookup_partial_symbol): Likewise.
3548 * symtab.c (lookup_symbol_in_language): Explain when/why
3549 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3550 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3551 appropriate languages.
3552 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3553 and moved to ada-lang.c
3554 (lookup_block_symbol): Explain that this function only returns
3555 symbol matching the requested DOMAIN.
3556 Compare the requested domain with the symbol's domain directly.
3557 (iterate_over_symbols): Compare the requested domain with the
3558 symbol's domain directly.
3559 * symtab.h (symbol_matches_domain): Remove.
3561 2014-06-06 Doug Evans <xdje42@gmail.com>
3563 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3564 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3565 (gdbscm_guile_version_is_at_least): Declare.
3566 (gdbscm_scm_string_to_int): Declare.
3567 * guile/guile.c (gdbscm_guile_major_version): New global.
3568 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3569 (guile_datadir): New static global.
3570 (gdbscm_guile_data_directory): New function.
3571 (initialize_scheme_side): Update.
3572 (misc_guile_functions): Add guile-data-directory.
3573 (initialize_gdb_module): Fetch guile version number.
3574 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3575 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3576 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3577 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3579 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3580 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3581 * guile/scm-value.c (gdbscm_value_to_string): Only call
3582 scm_port_conversion_strategy if Guile version >= 2.0.6.
3584 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3586 * main.c (print_gdb_help): Add -q and --silent.
3588 2014-06-06 Gary Benson <gbenson@redhat.com>
3590 * common/signals.c: Remove preprocessor conditionals for
3591 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3592 SIGSEGV and SIGTERM.
3593 * proc-events.c: Likewise.
3595 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3597 * symfile.c (symfile_free_objfile): Remove restriction to
3599 * symfile-mem.c (symbol_file_add_from_memory): Call
3600 add_target_sections_of_objfile.
3602 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3604 * guile/scm-value.c (gdbscm_history_append_x): Use
3605 'vlscm_get_value_smob_arg_unsafe' instead of
3606 'vlscm_scm_to_value'.
3608 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3611 * utils.c (printchar): Don't escape at all if quoter is NUL.
3612 Update function documentation to clarify effect of parameter
3614 * remote.c (escape_buffer): Pass '\\' as the quoter to
3615 fputstrn_unfiltered.
3616 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3617 generate the output.
3618 (mi_solib_unloaded): Same.
3620 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3622 * development.sh: Delete.
3623 * Makefile.in (config.status): Adjust dependency on development.sh.
3624 * configure.ac: Adjust development.sh source call.
3625 * configure: Regenerate.
3627 2014-06-04 Doug Evans <xdje42@gmail.com>
3629 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3630 is_scheme_bkpt, spec.
3631 (bpscm_make_breakpoint_smob): Initialize new members.
3632 (gdbscm_create_breakpoint_x): Split into two ...
3633 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3634 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3635 (scheme_function breakpoint_functions): Update.
3636 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3637 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3638 register-breakpoint!.
3640 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3643 * mem-break.c (z_type_supported): Return zero if
3644 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3646 2014-06-04 Tom Tromey <tromey@redhat.com>
3648 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3649 value_from_contents_and_address_unresolved.
3650 (ada_template_to_fixed_record_type_1): Likewise.
3651 (ada_which_variant_applies): Likewise.
3652 * value.h (value_from_contents_and_address_unresolved): Declare.
3653 * value.c (value_from_contents_and_address_unresolved): New
3655 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3656 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3657 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3659 2014-06-04 Tom Tromey <tromey@redhat.com>
3661 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3663 2014-06-04 Tom Tromey <tromey@redhat.com>
3665 * procfs.c (procfs_attach): Make "args" const.
3666 * windows-nat.c (windows_attach): Make "args" const.
3667 * nto-procfs.c (procfs_attach): Make "args" const.
3668 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3669 * go32-nat.c (go32_attach): Make "args" const.
3670 * gnu-nat.c (gnu_attach): Make "args" const.
3671 * darwin-nat.c (darwin_attach): Make "args" const.
3672 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3673 * linux-nat.c (linux_nat_attach): Make "args" const.
3674 * remote.c (extended_remote_attach_1, extended_remote_attach):
3676 * target.h (struct target_ops) <to_attach>: Make "args" const.
3677 (find_default_attach): Likewise.
3678 * utils.c (parse_pid_to_attach): Make "args" const.
3679 * utils.h (parse_pid_to_attach): Update.
3681 2014-06-04 Tom Tromey <tromey@redhat.com>
3683 * target-delegates.c: Rebuild.
3684 * target.c (default_thread_address_space): New function.
3685 (target_thread_address_space): Simplify.
3686 * target.h (struct target_ops) <to_thread_address_space>: Add
3687 TARGET_DEFAULT_FUNC.
3689 2014-06-04 Doug Evans <xdje42@gmail.com>
3691 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3693 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3695 * record-btrace.c: Include event-loop.h and inf-loop.h.
3696 (record_btrace_resume_exec_dir)
3697 (record_btrace_async_inferior_event_handler)
3698 (record_btrace_handle_async_inferior_event): New.
3699 (record_btrace_open): Create async event handler.
3700 (record_btrace_close): Delete async event handler.
3701 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3702 Mark async event handler.
3703 (record_btrace_execution_direction): New.
3704 (init_record_btrace_ops): Initialize to_execution_direction.
3706 2014-06-03 Doug Evans <xdje42@gmail.com>
3708 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3709 (gdbscm_make_parameter): Ditto.
3711 2014-06-03 Doug Evans <dje@google.com>
3713 * exec.c (exec_close_1): Call clear_section_table instead of
3714 resize_section_table.
3715 (clear_section_table): New function.
3716 (resize_section_table): Make static. Rename arg num_added to
3718 * exec.h (clear_section_table): Declare.
3719 (resize_section_table): Delete.
3720 * progspace.c (release_program_space): Call clear_section_table
3721 instead of resize_section_table.
3723 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3725 * NEWS (Python Scripting): Add entry about the new xmethods
3728 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3730 * python/py-xmethods.c: New file.
3731 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3732 (objfpy_dealloc): XDECREF on the new xmethods field.
3733 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3735 (objfpy_get_xmethods): New function.
3736 (objfile_getset): New entry 'xmethods'.
3737 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3738 (pspy_dealloc): XDECREF on the new xmethods field.
3739 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3741 (pspy_get_xmethods): New function.
3742 (pspace_getset): New entry 'xmethods'.
3743 * python/python-internal.h: Add declarations for new functions.
3744 * python/python.c (_initialize_python): Invoke
3745 gdbpy_initialize_xmethods.
3746 * python/lib/gdb/__init__.py (xmethods): New
3748 * python/lib/gdb/xmethod.py: New file.
3749 * python/lib/gdb/command/xmethods.py: New file.
3751 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3753 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3754 best match method returned by find_overload_match is an xmethod.
3755 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3756 the best matching operator returned by find_overload_match is an
3758 * valops.c: #include "extension.h".
3759 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3760 Return void. The list of matching source methods is returned in
3761 "fn_list" and a vector of matching debug method workers is
3762 returned in "xm_worker_vec". Update all callers.
3763 (value_find_oload_method_list): Likewise.
3764 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3765 non-NULL, then the index of the best matching method in this
3766 vector is returned. Update all callers.
3767 (find_overload_match): Include xmethods while performing overload
3770 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3772 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3773 * extension-priv.h (struct extension_language_ops): Add the
3775 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3776 get_matching_xmethod_workers, get_xmethod_argtypes,
3777 invoke_xmethod, free_xmethod_worker,
3778 free_xmethod_worker_vec): New functions.
3779 * extension.h: #include "common/vec.h".
3780 New function declarations.
3781 (struct xmethod_worker): New struct.
3782 (VEC (xmethod_worker_ptr)): New vector type.
3783 (xmethod_worker_ptr): New typedef.
3784 (xmethod_worker_vec): Likewise.
3785 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3787 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3788 (struct builtin_type): New field "xmethod".
3789 * valarith.c (value_ptradd): Assert that the value argument is not
3791 * valops.c (value_must_coerce_to_target): Return 0 for
3792 lval_xcallable values.
3793 * value.c (struct value): New field XM_WORKER in the field
3795 (value_address, value_raw_address): Return 0 for lval_xcallable
3797 (set_value_address): Assert that the value is not an
3799 (value_free): Free the associated xmethod worker when freeing
3800 lval_xcallable values.
3801 (set_value_component_location): Assert that the WHOLE value is not
3803 (value_of_xmethod, call_xmethod): New functions.
3804 * value.h: Declare "struct xmethod_worker".
3805 Declare new functions value_of_xmethod, call_xmethod.
3807 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3808 Pedro Alves <palves@redhat.com>
3810 PR breakpoints/17000
3811 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3812 New function, extracted from software_breakpoint_inserted_here_p.
3813 (software_breakpoint_inserted_here_p): Replace factored out code
3814 by call to find_non_raw_software_breakpoint_inserted_here.
3815 (bp_target_info_copy_insertion_state): New function.
3816 (bkpt_insert_location): Handle the case of a single-step
3817 breakpoint already inserted at the same address.
3818 (bkpt_remove_location): Handle the case of a single-step
3819 breakpoint still inserted at the same address.
3820 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3821 breakpoint already inserted at the same address.
3822 (deprecated_remove_raw_breakpoint): Handle the case of a
3823 non-raw breakpoint still inserted at the same address.
3824 (find_single_step_breakpoint): New function, extracted from
3825 single_step_breakpoint_inserted_here_p.
3826 (find_single_step_breakpoint): New function,
3827 factored out from single_step_breakpoint_inserted_here_p.
3828 (single_step_breakpoint_inserted_here_p): Reimplement.
3830 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3832 Pushed by Joel Brobecker <brobecker@adacore.com>
3833 * source.c (show_substitute_path_command): Fix display of matching
3836 2014-06-03 Gary Benson <gbenson@redhat.com>
3838 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3840 2014-06-02 Doug Evans <xdje42@gmail.com>
3842 Add parameter support for Guile.
3843 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3844 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3845 (scm-param.o): New rule.
3846 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3847 (gdbscm_misc_error): Declare.
3848 (gdbscm_canonicalize_command_name): Declare.
3849 (gdbscm_scm_to_host_string): Declare.
3850 (gdbscm_scm_from_host_string): Declare.
3851 (gdbscm_initialize_parameters): Declare.
3852 * guile/guile.c (initialize_gdb_module): Call
3853 gdbscm_initialize_parameters.
3854 * guile/lib/gdb.scm: Export parameter symbols.
3855 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3856 cmdscm_canonicalize_name and made public. All callers updated.
3857 * guile/scm-exception.c (gdbscm_misc_error): New function.
3858 * guile/scm-param.c: New file.
3859 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3860 (gdbscm_scm_to_host_string): New function.
3861 (gdbscm_scm_from_host_string): New function.
3862 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3864 2014-06-02 Doug Evans <xdje42@gmail.com>
3866 Add command support for Guile.
3867 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3868 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3869 (scm-cmd.o): New rule.
3870 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3871 (gdbscm_user_error_p): Declare.
3872 (gdbscm_parse_command_name): Declare.
3873 (gdbscm_valid_command_class_p): Declare.
3874 (gdbscm_initialize_commands): Declare.
3875 * guile/guile.c (initialize_gdb_module): Call
3876 gdbscm_initialize_commands.
3877 * guile/lib/gdb.scm: Export command symbols.
3878 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3879 (throw-user-error): New function.
3880 * guile/scm-cmd.c: New file.
3881 * guile/scm-exception.c (user_error_symbol): New static global.
3882 (gdbscm_user_error_p): New function.
3883 (gdbscm_initialize_exceptions): Set user_error_symbol.
3884 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3886 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3888 * top.c (command_loop): Handle comments here...
3889 (command_line_input): ... not here.
3891 2014-06-02 Doug Evans <xdje42@gmail.com>
3893 Add progspace support for Guile.
3894 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3895 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3896 (scm-progspace.o): New rule.
3897 * guile/guile-internal.h (pspace_smob): New typedef.
3898 (psscm_pspace_smob_pretty_printers): Declare.
3899 (psscm_pspace_smob_from_pspace): Declare.
3900 (psscm_scm_from_pspace): Declare.
3901 * guile/guile.c (initialize_gdb_module): Call
3902 gdbscm_initialize_pspaces.
3903 * guile/lib/gdb.scm: Export progspace symbols.
3904 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3906 (append-pretty-printer!): Ditto.
3907 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3909 * guile/scm-progspace.c: New file.
3911 2014-06-03 Alan Modra <amodra@gmail.com>
3913 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3914 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3916 2014-06-02 Doug Evans <dje@google.com>
3918 Add support for skeletonless type units.
3919 * dwarf2read.c (struct dwarf2_per_objfile): New member
3920 n_allocated_type_units.
3921 (struct dwarf2_per_objfile) <tu_stats>: New member
3922 nr_all_type_units_reallocs.
3923 (create_signatured_type_table_from_index): Initialize
3924 n_allocated_type_units
3925 (create_all_type_units): Ditto.
3926 (add_type_unit): Move up in file. New arg slot.
3927 All callers updated. Increase space for all_type_units more
3929 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3930 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3931 (lookup_dwp_signatured_type): Ditto.
3932 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3933 All callers updated.
3934 (build_type_psymtabs_1): Leave type_unit_groups as
3935 NULL if no TUs present.
3936 (print_tu_stats): New function.
3937 (process_skeletonless_type_unit): New function.
3938 (process_dwo_file_for_skeletonless_type_units): New
3940 (process_skeletonless_type_units): New function.
3941 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3942 Call print tu_stats if debugging enabled.
3944 2014-06-02 Pedro Alves <palves@redhat.com>
3946 * breakpoint.c (build_target_command_list): Don't build a command
3947 list if we have any duplicate location that isn't a dprintf.
3949 2014-06-02 Pedro Alves <palves@redhat.com>
3951 * breakpoint.c (dprintf_breakpoint_hit): New function.
3952 (initialize_breakpoint_ops): Install it as dprintf's
3953 breakpoint_hit method.
3955 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3957 * source.c (substitute_path_rule_matches): Simplify using
3958 filename_ncmp instead of FILENAME_CMP.
3960 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3962 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3964 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3966 * configure.ac: When Guile is available, check for the
3967 availability of 'scm_new_smob'.
3968 * configure, config.h.in: Regenerate.
3969 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3972 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3974 * frame.c (struct frame_info): Add stop_string field.
3975 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3976 (get_prev_frame_always): Old content moved into
3977 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3978 TRY_CATCH, handle MEMORY_ERROR exceptions.
3979 (frame_stop_reason_string): New function definition.
3980 * frame.h (unwind_stop_reason_to_string): Extend comment to
3981 mention frame_stop_reason_string.
3982 (frame_stop_reason_string): New function declaration.
3983 * stack.c (frame_info): Switch to frame_stop_reason_string.
3984 (backtrace_command_1): Switch to frame_stop_reason_string.
3985 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3986 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3987 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3989 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3991 * frame.c (frame_stop_reason_string): Rename to ...
3992 (unwind_stop_reason_to_string): this.
3993 * frame.h (frame_stop_reason_string): Rename to ...
3994 (unwind_stop_reason_to_string): this.
3995 * stack.c (frame_info): Update call to frame_stop_reason_string.
3996 (backtrace_command_1): Likewise.
3997 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3998 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4000 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4002 * frame.c (remove_prev_frame): New function.
4003 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4006 2014-05-29 Pedro Alves <palves@redhat.com>
4008 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4009 and make it const. When a single-step decays to a continue,
4010 clear 'step', not 'hw_step'. Pass whether the caller wanted
4011 to step to user_visible_resume_ptid, not what we ask the
4014 2014-05-29 Pedro Alves <palves@redhat.com>
4016 * infrun.c (process_event_stop_test, handle_step_into_function)
4017 (handle_step_into_function_backward): Adjust.
4018 Don't set the even thread's stop_step and call stop_waiting before
4019 calling end_stepping_range. Instead do that ...
4020 (end_stepping_range): ... here. Take an ecs pointer parameter.
4022 2014-05-29 Pedro Alves <palves@redhat.com>
4024 * infrun.c (stop_stepping): Rename to ...
4025 (stop_waiting): ... this.
4026 (proceed): Update comment.
4027 (process_event_stop_test, handle_inferior_event)
4028 (handle_signal_stop, handle_step_into_function)
4029 (handle_step_into_function_backward): Update.
4031 2014-05-29 Pedro Alves <palves@redhat.com>
4033 * infcall.c (run_inferior_call): Don't check whether the current
4034 thread is running after the proceed call.
4036 2014-05-29 Pedro Alves <palves@redhat.com>
4037 Tom Tromey <tromey@redhat.com>
4039 * NEWS: Mention "maint set target-async", "set mi-async", and that
4040 background execution commands are now always available.
4041 * target.h (target_async_permitted): Update comment.
4042 * target.c (target_async_permitted, target_async_permitted_1):
4044 (set_target_async_command): Rename to ...
4045 (maint_set_target_async_command): ... this.
4046 (show_target_async_command): Rename to ...
4047 (maint_show_target_async_command): ... this.
4048 (_initialize_target): Adjust.
4049 * infcmd.c (prepare_execution_command): Make extern.
4050 * inferior.h (prepare_execution_command): Declare.
4051 * infrun.c (set_observer_mode): Leave target async alone.
4052 * mi/mi-interp.c (mi_interpreter_init): Install
4053 mi_on_sync_execution_done as sync_execution_done observer.
4054 (mi_on_sync_execution_done): New function.
4055 (mi_execute_command_input_handler): Don't print the prompt if we
4056 just started a synchronous command with an async target.
4057 (mi_on_resume): Check sync_execution before printing prompt.
4058 * mi/mi-main.h (mi_async_p): Declare.
4059 * mi/mi-main.c: Include gdbcmd.h.
4060 (mi_async_p): New function.
4061 (mi_async, mi_async_1): New globals.
4062 (set_mi_async_command, show_mi_async_command, mi_async): New
4064 (exec_continue): Call prepare_execution_command.
4065 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4066 (mi_execute_async_cli_command): Use mi_async_p.
4067 (_initialize_mi_main): Install "set mi-async". Make
4068 "target-async" a deprecated alias.
4070 2014-05-29 Pedro Alves <palves@redhat.com>
4072 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4073 (_initialize_cli_interp): Adjust.
4074 * event-loop.c: Include "observer.h".
4075 (start_event_loop): Notify 'command_error' observers instead of
4076 calling display_gdb_prompt. Remove FIXME comment.
4077 * event-top.c (display_gdb_prompt): Remove call into the
4079 * inf-loop.c: Include "observer.h".
4080 (inferior_event_handler): Notify 'command_error' observers instead
4081 of calling display_gdb_prompt.
4082 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4083 observers instead of calling display_gdb_prompt.
4084 * interps.c (interp_set): Don't call display_gdb_prompt.
4085 (current_interp_display_prompt_p): Delete.
4086 * interps.h (interp_prompt_p): Delete declaration.
4087 (interp_prompt_p_ftype): Delete.
4088 (struct interp_procs) <prompt_proc_p>: Delete field.
4089 (current_interp_display_prompt_p): Delete declaration.
4090 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4091 (_initialize_mi_interp): Adjust.
4092 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4093 'command_error' observers.
4094 (tui_on_sync_execution_done, tui_on_command_error): New
4096 (tui_display_prompt_p): Delete.
4097 (_initialize_tui_interp): Adjust.
4099 2014-05-29 Pedro Alves <palves@redhat.com>
4102 * cli/cli-interp.c: Include infrun.h and observer.h.
4103 (cli_uiout, cli_interp): New globals.
4104 (cli_on_signal_received, cli_on_end_stepping_range)
4105 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4107 (cli_interpreter_init): Install them as 'end_stepping_range',
4108 'signal_received' 'signal_exited', 'exited' and 'no_history'
4110 (_initialize_cli_interp): Remove cli_interp local.
4111 * infrun.c (handle_inferior_event): Call the several stop reason
4112 observers instead of printing the stop reason directly.
4113 (end_stepping_range): New function.
4114 (print_end_stepping_range_reason, print_signal_exited_reason)
4115 (print_exited_reason, print_signal_received_reason)
4116 (print_no_history_reason): Make static, and add an uiout
4117 parameter. Print to that instead of to CURRENT_UIOUT.
4118 * infrun.h (print_end_stepping_range_reason)
4119 (print_signal_exited_reason, print_exited_reason)
4120 (print_signal_received_reason print_no_history_reason): New
4122 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4124 <cli_uiout>: New field.
4125 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4126 uiout for CLI output. Install 'signal_received',
4127 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4129 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4130 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4131 (mi_on_no_history): New functions.
4132 (ui_out_free_cleanup): Delete function.
4133 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4134 instead use the one already stored in the MI interpreter data.
4135 (mi_ui_out): Adjust.
4136 * tui/tui-interp.c: Include infrun.h and observer.h.
4137 (tui_interp): New global.
4138 (tui_on_signal_received, tui_on_end_stepping_range)
4139 (tui_on_signal_exited, tui_on_exited)
4140 (tui_on_no_history): New functions.
4141 (tui_init): Install them as 'end_stepping_range',
4142 'signal_received' 'signal_exited', 'exited' and 'no_history'
4144 (_initialize_tui_interp): Delete tui_interp local.
4146 2014-05-29 Pedro Alves <palves@redhat.com>
4149 * linux-nat.c (linux_nat_resume_callback): Rename the second
4150 parameter to 'except'. Skip LP if it points to EXCEPT.
4151 (linux_nat_resume): Don't mark the event lwp as not stopped
4152 before resuming sibling lwps. Instead ask
4153 linux_nat_resume_callback to skip the event lwp. Mark it as not
4154 stopped after actually resuming it.
4155 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4157 (wait_lwp): Mark the lwp as stopped here.
4158 (stop_wait_callback): Mark the lwp as not stopped right after
4159 resuming it. Don't mark lwps as stopped here.
4160 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4161 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4163 2014-05-29 Pedro Alves <palves@redhat.com>
4166 * infrun.c (resume): Determine how much to resume depending on
4167 whether the caller wanted a step, not whether we can hardware step
4168 the target. Mark all threads that we intend to run as running,
4169 unless we're calling an inferior function.
4170 (normal_stop): If the thread is running an infcall, don't finish
4172 * target.c (target_resume): Don't mark threads as running here.
4174 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4176 * serial.c (_initialize_serial): Remove support for
4177 the "set remotebaud" and "show remotebaud" commands.
4178 * NEWS: Add entry documenting the removal of that command.
4180 2014-05-28 Yao Qi <yao@codesourcery.com>
4182 * charset.c: Fix typo in comments.
4184 2014-05-27 Gary Benson <gbenson@redhat.com>
4186 * utils.c (internal_vproblem): Prompt for a bug report.
4188 2014-05-26 Andy Wingo <wingo@igalia.com>
4190 * guile/scm-arch.c (arscm_mark_arch_smob):
4191 * guile/scm-block.c (bkscm_mark_block_smob)
4192 (bkscm_mark_block_syms_progress_smob):
4193 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4194 * guile/scm-exception.c (exscm_mark_exception_smob):
4195 * guile/scm-frame.c (frscm_mark_frame_smob):
4196 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4197 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4198 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4199 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4200 (ppscm_mark_pretty_printer_worker_smob):
4201 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4202 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4203 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4204 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4206 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4209 2014-05-26 Andy Wingo <wingo@igalia.com>
4210 Doug Evans <xdje42@gmail.com>
4212 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4213 empty_base_class. All uses updated.
4214 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4215 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4217 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4218 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4219 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4220 (gdbscm_gsmob_has_property_p, add_property_name)
4221 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4222 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4223 (gdb-object-has-property?, gdb-object-properties): Remove.
4224 (gdb-object-kind): Renamed from gsmob-kind.
4226 2014-05-26 Andy Wingo <wingo@igalia.com>
4228 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4229 * configure: Regenerate.
4231 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4233 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4235 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4237 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4238 (replay_memory_access_read_only, replay_memory_access_read_write)
4239 (replay_memory_access_types, replay_memory_access)
4240 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4241 (cmd_set_record_btrace, cmd_show_record_btrace)
4242 (cmd_show_replay_memory_access): New.
4243 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4244 (record_btrace_remove_breakpoint): Replace
4245 record_btrace_allow_memory_access with replay_memory_access.
4246 (_initialize_record_btrace): Add commands.
4247 * NEWS: Announce it.
4249 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4251 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4253 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4255 * MAINTAINERS (Write After Approval): Move self back from
4258 2014-05-22 Pedro Alves <palves@redhat.com>
4260 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4261 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4262 (disable_randomization, enum exec_direction_kind)
4263 (execution_direction, stop_registers, start_remote)
4264 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4265 (wait_for_inferior, normal_stop, get_last_target_status)
4266 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4267 (insert_step_resume_breakpoint_at_sal)
4268 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4269 (set_step_info, print_stop_event, signal_stop_state)
4270 (signal_print_state, signal_pass_state, signal_stop_update)
4271 (signal_print_update, signal_pass_update)
4272 (update_signals_program_target, clear_exit_convenience_vars)
4273 (displaced_step_dump_bytes, update_observer_mode)
4274 (signal_catch_update, gdb_signal_from_command): Move
4276 * infrun.h: ... to this new file.
4277 * amd64-tdep.c: Include infrun.h.
4278 * annotate.c: Include infrun.h.
4279 * arch-utils.c: Include infrun.h.
4280 * arm-linux-tdep.c: Include infrun.h.
4281 * arm-tdep.c: Include infrun.h.
4282 * break-catch-sig.c: Include infrun.h.
4283 * breakpoint.c: Include infrun.h.
4284 * common/agent.c: Include infrun.h instead of inferior.h.
4285 * corelow.c: Include infrun.h.
4286 * event-top.c: Include infrun.h.
4287 * go32-nat.c: Include infrun.h.
4288 * i386-tdep.c: Include infrun.h.
4289 * inf-loop.c: Include infrun.h.
4290 * infcall.c: Include infrun.h.
4291 * infcmd.c: Include infrun.h.
4292 * infrun.c: Include infrun.h.
4293 * linux-fork.c: Include infrun.h.
4294 * linux-nat.c: Include infrun.h.
4295 * linux-thread-db.c: Include infrun.h.
4296 * monitor.c: Include infrun.h.
4297 * nto-tdep.c: Include infrun.h.
4298 * procfs.c: Include infrun.h.
4299 * record-btrace.c: Include infrun.h.
4300 * record-full.c: Include infrun.h.
4301 * remote-m32r-sdi.c: Include infrun.h.
4302 * remote-mips.c: Include infrun.h.
4303 * remote-notif.c: Include infrun.h.
4304 * remote-sim.c: Include infrun.h.
4305 * remote.c: Include infrun.h.
4306 * reverse.c: Include infrun.h.
4307 * rs6000-tdep.c: Include infrun.h.
4308 * s390-linux-tdep.c: Include infrun.h.
4309 * solib-irix.c: Include infrun.h.
4310 * solib-osf.c: Include infrun.h.
4311 * solib-svr4.c: Include infrun.h.
4312 * target.c: Include infrun.h.
4313 * top.c: Include infrun.h.
4314 * windows-nat.c: Include infrun.h.
4315 * mi/mi-interp.c: Include infrun.h.
4316 * mi/mi-main.c: Include infrun.h.
4317 * python/py-threadevent.c: Include infrun.h.
4319 2014-05-22 Pedro Alves <palves@redhat.com>
4321 * infrun.c (handle_inferior_event): Store the exit code for
4322 --return-child-result here, instead of ...
4323 (print_exited_reason): ... here.
4325 2014-05-21 Pedro Alves <palves@redhat.com>
4328 * gdbthread.h (struct thread_control_state): New field
4330 * infrun.c (follow_fork): Copy the new thread control field to the
4332 (clear_proceed_status_thread): Clear the new thread control field.
4333 (proceed): Set the new thread control field.
4334 * interps.h (command_interp): Declare.
4335 * interps.c (command_interpreter): New global.
4336 (command_interp): New function.
4337 (interp_exec): Set `command_interpreter' while here.
4338 * cli-out.c (cli_uiout_dtor): New function.
4339 (cli_ui_out_impl): Install it.
4340 * mi/mi-interp.c: Include cli-out.h.
4341 (mi_cmd_interpreter_exec): Add comment.
4342 (restore_current_uiout_cleanup): New function.
4343 (ui_out_free_cleanup): New function.
4344 (mi_on_normal_stop): If finishing an execution command started by
4345 a CLI command, or any kind of breakpoint-like event triggered,
4346 print the stop event to the output (CLI) stream.
4347 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4349 2014-05-21 Pedro Alves <palves@redhat.com>
4351 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4352 current source line having changed.
4353 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4354 * infrun.c (normal_stop): Adjust call to
4355 set_current_sal_from_frame.
4356 * source.c (clear_lines_listed_range): New function.
4357 (set_current_source_symtab_and_line, identify_source_line): Clear
4358 the lines listed range.
4359 (line_info): Handle the first "info line" after the current source
4360 line having changed.
4361 * stack.c (print_stack_frame): Remove center handling.
4362 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4365 2014-05-21 Pedro Alves <palves@redhat.com>
4367 * inf-child.c (inf_child_mourn_inferior): New function.
4368 * inf-child.h (inf_child_mourn_inferior): New declaration.
4369 * darwin-nat.c (darwin_mourn_inferior): Use
4370 inf_child_mourn_inferior.
4371 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4372 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4373 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4374 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4375 * windows-nat.c (windows_mourn_inferior): Likewise.
4377 2014-05-21 Doug Evans <xdje42@gmail.com>
4379 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4381 2014-05-21 Doug Evans <xdje42@gmail.com>
4383 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4384 (gdbscm_out_of_range_error): Ditto.
4385 (gdbscm_memory_error): Ditto.
4386 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4387 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4388 (gdbscm_out_of_range_error): Update.
4389 (gdbscm_memory_error): Update.
4390 (gdbscm_scm_to_target_string_unsafe): Delete.
4392 2014-05-21 Pedro Alves <palves@redhat.com>
4394 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4396 (inf_child_open_target): New function.
4397 (inf_child_open): Use inf_child_open_target to push the target
4398 instead of erroring out.
4399 (inf_child_disconnect, inf_child_close)
4400 (inf_child_maybe_unpush_target): New functions.
4401 (inf_child_target): Install inf_child_disconnect and
4402 inf_child_close. Store a pointer to the returned object.
4403 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4405 * target.c (auto_connect_native_target): New global.
4406 (show_default_run_target): New function.
4407 (find_default_run_target): Return NULL if automatically connecting
4408 to the native target is disabled.
4409 (_initialize_target): Install set/show auto-connect-native-target.
4410 * NEWS: Mention "set auto-connect-native-target", and "target
4412 * linux-nat.c (super_close): New global.
4413 (linux_nat_close): Call super_close.
4414 (linux_nat_add_target): Store a pointer to the base class's
4416 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4417 inf_child_maybe_unpush.
4418 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4420 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4421 the inferior. Use inf_child_maybe_unpush_target.
4422 (inf_ttrace_attach): Don't push the target if it is already
4424 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4425 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4426 after mourning the inferior. Use inf_child_maybe_unpush_target.
4427 (darwin_attach_pid): Don't push the target if it is already
4429 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4430 mourning the inferior. Use inf_child_maybe_unpush_target.
4431 (gnu_detach): Use inf_child_maybe_unpush_target.
4432 * go32-nat.c (go32_create_inferior): Don't push the target if it
4434 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4435 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4436 (procfs_open): Rename to ...
4437 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4438 comments. Can target_preopen before changing node. Call
4439 inf_child_open_target to push the target explicitly.
4440 (procfs_attach): Don't push the target if it is already pushed.
4441 (procfs_detach): Use inf_child_maybe_unpush_target.
4442 (procfs_create_inferior): Don't push the target if it is already
4444 (nto_native_ops): New global.
4445 (procfs_open): Reimplement.
4446 (procfs_native_open): New function.
4447 (init_procfs_targets): Install procfs_native_open as to_open of
4448 "target native". Store a pointer to the "native" target in
4450 * procfs.c (procfs_attach): Don't push the target if it is already
4452 (procfs_detach): Use inf_child_maybe_unpush_target.
4453 (procfs_mourn_inferior): Only unpush the target after mourning the
4454 inferior. Use inf_child_maybe_unpush_target.
4455 (procfs_init_inferior): Don't push the target if it is already
4457 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4458 if it is already pushed.
4460 2014-05-21 Pedro Alves <palves@redhat.com>
4462 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4463 and "procfs" targets are now called "native" instead.
4465 2014-05-21 Pedro Alves <palves@redhat.com>
4467 * go32-nat.c (go32_open): Delete.
4468 (go32_target): Don't override the to_open method.
4470 2014-05-21 Pedro Alves <palves@redhat.com>
4472 * nto-procfs.c (procfs_can_run): New function.
4473 (nto_procfs_ops): New global.
4474 (init_procfs_targets): New, based on procfs_target. Install
4475 "target native" in addition to "target procfs".
4476 (_initialize_procfs): Call init_procfs_targets instead of adding
4479 2014-05-21 Pedro Alves <palves@redhat.com>
4481 * windows-nat.c (windows_target): Don't override to_shortname,
4482 to_longname or to_doc.
4484 2014-05-21 Pedro Alves <palves@redhat.com>
4486 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4489 2014-05-21 Pedro Alves <palves@redhat.com>
4491 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4492 to_shortname, to_longname or to_doc.
4494 2014-05-21 Pedro Alves <palves@redhat.com>
4496 * go32-nat.c (go32_target): Don't override to_shortname,
4497 to_longname or to_doc.
4499 2014-05-21 Pedro Alves <palves@redhat.com>
4501 * inf-child.c (inf_child_open): Remove mention of "child".
4502 (inf_child_target): Rename target to "native" instead of "child".
4504 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4506 * Makefile.in (SFILES): Delete "regset.c".
4507 (COMMON_OBS): Delete "regset.o".
4509 * regset.h (regset_alloc): Delete prototype.
4511 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4513 * sparc-linux-tdep.c (sparc32_linux_gregset)
4514 (sparc32_linux_fpregset): New static regset structures.
4515 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4516 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4518 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4519 (sparc64_linux_fpregset): New static regset structures.
4520 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4521 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4522 New static regset structures.
4523 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4524 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4525 New static regset structures.
4526 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4527 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4528 New static regset structures.
4529 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4530 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4531 New static regset structures.
4532 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4534 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4536 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4537 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4538 register maps ("regmaps") from "*regset" to "*regmap". Do this
4539 for all regmap types and variables.
4540 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4541 (sparc32_linux_supply_core_gregset)
4542 (sparc32_linux_collect_core_gregset)
4543 (sparc32_linux_supply_core_fpregset)
4544 (sparc32_linux_collect_core_fpregset): Likewise.
4545 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4546 (sparc_gregmap, sparc_fpregmap): ... these.
4547 (sparc_supply_gregset, sparc_collect_gregset)
4548 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4549 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4550 (_initialize_sparc_nat): Rename regmaps.
4551 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4552 (sparc_gregmap, sparc_fpregmap): ... these.
4553 (sparc_supply_gregset, sparc_collect_gregset)
4554 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4555 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4557 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4558 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4560 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4562 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4563 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4564 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4566 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4567 (sparc32_bsd_fpregset): Rename to...
4568 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4569 (sparc32_bsd_fpregmap): ... these.
4570 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4571 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4572 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4573 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4574 (struct sparc_gregmap, struct sparc_fpregmap)
4575 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4576 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4577 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4578 (sparc32_supply_regset, sparc32_collect_gregset)
4579 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4581 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4582 (sparc64_linux_ptrace_gregmap): ... this.
4583 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4584 (_initialize_sparc64_linux_nat): Rename regmaps.
4585 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4586 (sparc64_linux_core_gregmap): ... this.
4587 (sparc64_linux_supply_core_gregset)
4588 (sparc64_linux_collect_core_gregset)
4589 (sparc64_linux_supply_core_fpregset)
4590 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4591 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4592 (sparc64_sol2_fpregset): Rename to...
4593 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4594 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4595 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4597 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4598 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4599 (sparc64_bsd_fpregset): Rename to...
4600 (struct sparc_gregmap, sparc64_sol2_gregmap)
4601 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4602 (sparc64_bsd_fpregmap): ... these.
4603 (sparc64_supply_gregset, sparc64_collect_gregset)
4604 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4606 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4607 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4608 (sparc64fbsd_gregmap): ... this.
4609 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4610 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4612 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4613 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4614 (sparc64nbsd_collect_fpregset): Likewise.
4615 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4616 (sparc64nbsd_gregmap): ... this.
4617 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4619 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4620 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4621 (sparc64obsd_gregmap): ... this.
4622 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4624 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4625 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4626 (sparc32nbsd_gregmap): ... this.
4627 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4630 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4632 * score-tdep.c (score7_linux_gregset): New static regset
4634 (score7_linux_regset_from_core_section): Remove dynamic regset
4636 (score_gdbarch_init): Drop allocation of tdep structure.
4637 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4639 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4641 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4643 (am33_regset_from_core_section): Remove dynamic regset
4646 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4648 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4649 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4651 (mips_linux_regset_from_core_section): Remove dynamic regset
4653 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4654 'gregset64', 'fpregset', and 'fpregset64'.
4655 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4656 deleted tdep fields.
4658 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4660 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4662 (amd64_regset_from_core_section): Remove dynamic regset
4664 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4666 (amd64obsd_regset_from_core_section): Remove dynamic regset
4668 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4670 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4671 x86-common regset supply function.
4672 * i386-tdep.c (i386_collect_gregset): Make static.
4673 (i386_gregset): New global regset structure.
4674 (i386_fpregset, i386_xstateregset): New static regset structures.
4675 (i386_regset_from_core_section): Remove dynamic regset
4677 (i386_gdbarch_init): Remove initialization of tdep fields
4678 'gregset', 'fpregset', and 'xstateregset'.
4679 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4680 'fpregset', and 'xstateregset'.
4681 (i386_collect_gregset): Remove prototype.
4682 (i386_gregset): New declaration.
4683 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4685 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4688 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4690 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4691 (arm_linux_vfpregset): New static regset structures.
4692 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4694 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4695 and 'vfpregset' fields.
4697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4699 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4700 (aarch64_linux_fpregset): New static regset structures.
4701 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4702 of regset structures.
4703 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4706 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4708 * regset.h (struct regset): Remove gdbarch field.
4709 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4710 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4711 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4713 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4714 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4715 (ppc32_linux_vsxregset): Likewise.
4716 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4717 via the regcache instead of the regset.
4718 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4719 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4720 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4721 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4724 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4726 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4727 Constify structures.
4728 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4729 (alphanbsd_aout_gregset): Likewise.
4730 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4731 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4733 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4734 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4736 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4737 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4738 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4739 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4740 * m88k-tdep.c (m88k_gregset): Likewise.
4741 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4742 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4743 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4744 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4745 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4746 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4747 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4748 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4749 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4751 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4752 * sh-tdep.h (sh_corefile_gregset): Likewise.
4753 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4754 * vax-tdep.c (vax_gregset): Likewise.
4756 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4758 Fix TLS access for -static -pthread.
4759 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4760 (try_thread_db_load_1): Initialize it.
4761 (thread_db_get_thread_local_address): Call it if LM is zero.
4762 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4763 * target.h (struct target_ops) (to_get_thread_local_address): Add
4764 load_module_addr comment.
4766 2014-05-21 Pedro Alves <palves@redhat.com>
4768 * dcache.c (dcache_read_memory_partial): If reading the cache line
4769 fails, fallback to reading just the memory the caller wanted.
4771 2014-05-20 Doug Evans <dje@google.com>
4773 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4774 instead of get_current_arch.
4776 2014-05-20 Pedro Alves <palves@redhat.com>
4778 * NEWS: Mention that compare-sections now works with all targets.
4780 * remote.c (PACKET_qCRC): New enum value.
4781 (remote_verify_memory): Don't send qCRC if the target has no
4782 execution. Use packet_support/packet_ok. If the target doesn't
4783 support the qCRC packet, fallback to a deep memory copy.
4784 (compare_sections_command): Say "target image" instead of "remote
4786 (_initialize_remote): Add PACKET_qCRC to the list of config
4787 packets that have no associated command. Extend comment.
4788 * target.c (simple_verify_memory, default_verify_memory): New
4790 * target.h (struct target_ops) <to_verify_memory>: Default to
4791 default_verify_memory.
4792 (simple_verify_memory): New declaration.
4793 * target-delegates.c: Regenerate.
4795 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4797 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4799 2014-05-20 Hui Zhu <hui@codesourcery.com>
4800 Yao Qi <yao@codesourcery.com>
4803 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4804 and change address of sp and pc.
4806 2014-05-19 Tom Tromey <tromey@redhat.com>
4808 * gdbtypes.c (rank_function): Use XNEWVEC.
4809 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4811 2014-05-19 Doug Evans <dje@google.com>
4813 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4814 build_type_unit_groups and moved closer to only caller. Remove
4815 arguments. All references updated. Remove outdated .gdb_index
4817 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4818 build_type_psymtabs_1.
4820 2014-05-19 Doug Evans <dje@google.com>
4822 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4823 n_type_unit_groups, all_type_unit_groups. All uses removed.
4824 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4825 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4826 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4827 (add_type_unit_group_to_table): Delete.
4829 2014-05-19 Doug Evans <dje@google.com>
4831 * eval.c (evaluate_subexp_standard): Add some comments.
4833 2014-05-17 Doug Evans <xdje42@gmail.com>
4835 * progspace.c (remove_program_space): Delete, unused.
4836 * progspace.h (remove_program_space): Ditto.
4838 2014-05-17 Doug Evans <xdje42@gmail.com>
4840 * inferior.c (prune_inferiors): Fix comment.
4841 (remove_inferior_command): Call prune_program_spaces.
4843 2014-05-16 Doug Evans <dje@google.com>
4845 New command line option -D.
4847 * main.c (set_gdb_data_directory): New function.
4848 (captured_main): Recognize -D. Flag error for --data-directory "".
4849 Call set_gdb_data_directory.
4850 (print_gdb_help): Print --data-directory, -D.
4851 * main.h (set_gdb_data_directory): Declare.
4852 * top.c (staged_gdb_datadir): New static global.
4853 (set_gdb_datadir): Call set_gdb_data_directory
4854 (show_gdb_datadir): New function.
4855 (init_main): Update init of data-directory parameter.
4857 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4859 Import the "dirfd" gnulib module.
4860 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4861 * gnulib/aclocal.m4: Update.
4862 * gnulib/config.in: Update.
4863 * gnulib/configure: Update.
4864 * gnulib/import/Makefile.am: Update.
4865 * gnulib/import/Makefile.in: Update.
4866 * gnulib/import/dirfd.c: New.
4867 * gnulib/import/m4/dirfd.m4: New.
4868 * gnulib/import/m4/gnulib-cache.m4: Update.
4869 * gnulib/import/m4/gnulib-comp.m4: Update.
4871 2014-05-16 Pierre Muller <muller@sourceware.org>
4872 Yao Qi <yao@codesourcery.com>
4874 * valprint.c (print_wchar): Move the code on checking whether
4875 W is a printable wide char to the default branch of switch
4876 statement below. Call wchar_printable instead of gdb_iswprint.
4878 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4880 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4881 ldr.w and ldrd instructions.
4883 2014-05-15 Doug Evans <dje@google.com>
4885 * dwarf2read.c (read_structure_type): Delete outdated comments.
4887 2014-05-14 Tom Tromey <tromey@redhat.com>
4889 * macrocmd.c (print_macro_definition): Reindent.
4891 2014-05-13 Doug Evans <xdje42@gmail.com>
4893 * python/py-cmd.c (cmdpy_completer): Add comment.
4894 (completers): Make const.
4896 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4898 * infrun.c (resume): Remove should_resume (unused). Move up
4899 declaration of resume_ptid.
4901 2014-05-13 Tom Tromey <tromey@redhat.com>
4903 * language.h (unop_type_check): Remove.
4904 (binop_type_check): Don't declare.
4906 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4908 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4909 call to regcache_raw_collect.
4911 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4913 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4914 mi_console->quote as the quoting character.
4916 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4918 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4920 2014-04-29 Tom Tromey <tromey@redhat.com>
4922 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4923 "show debug varobj".
4925 2014-05-07 Kyle McMartin <kyle@redhat.com>
4927 Pushed by Joel Brobecker <brobecker@adacore.com>.
4928 * aarch64-tdep.c (aarch64_software_single_step): New function.
4929 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4930 with aarch64_software_single_step.
4932 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4936 2014-05-05 Keith Seitz <keiths@redhat.com>
4938 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4939 variable or history value is successfully parsed.
4941 2014-05-05 Yao Qi <yao@codesourcery.com>
4942 Pedro Alves <palves@redhat.com>
4944 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4945 address of blocks that intersects the requested range. Trim
4946 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4948 * ctf.c (ctf_xfer_partial): Likewise.
4950 2014-05-05 Yao Qi <yao@codesourcery.com>
4952 * printcmd.c (display_command): Remove the check to
4953 target_has_execution.
4955 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4957 * ppcobsd-nat.c: Include "obsd-nat.h".
4958 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4960 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4962 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4964 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4965 and 16-bit signed and unsigned arguments. Update comment.
4966 (stap_parse_probe_arguments): Extend code to handle such
4967 arguments. Use warning instead of complaint to notify about
4968 unrecognized bitness.
4970 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4972 PR breakpoints/16889
4973 * stap-probe.c (stap_parse_probe_arguments): Simplify
4974 check for non-prefixed probes (i.e., probes whose
4975 arguments do not start with "N@"). Always set the
4976 argument type to a sane value.
4978 2014-05-01 David Taylor <dtaylor@emc.com>
4980 * remote.c (compare_sections_command): Add -r option to compare
4981 all loadable read-only sections.
4983 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4985 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4986 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4988 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4989 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4990 Remove unused CORE_ADDR argument. Update all callers.
4992 2014-04-29 Pedro Alves <palves@redhat.com>
4994 * remote.c (struct packet_config) <detect>: Extend comment.
4995 (add_packet_config_cmd): Don't set the config's detect or support
4997 (init_all_packet_configs): Also initialize the config's 'detect'
4999 (reset_all_packet_configs_support): New function.
5000 (remote_open_1): Call reset_all_packet_configs_support instead of
5001 init_all_packet_configs.
5002 (_initialize_remote): Initialize all packet configs. Assert that
5003 all packets have an associated command, except a few known
5006 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5008 * dwarf2read.c (read_subrange_type): Handle dynamic
5009 DW_AT_lower_bound attributes.
5011 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5013 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5014 dynamic bounds before computing its upper bound.
5015 (ada_discrete_type_low_bound): Same as above with the lower bound.
5017 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5019 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5020 range types. Adjust the array handling implementation to
5021 take advantage of this change.
5022 (resolve_dynamic_range): New function, mostly extracted from
5023 resolve_dynamic_bounds.
5024 (resolve_dynamic_array): New function, mostly extracted from
5025 resolve_dynamic_bounds.
5026 (resolve_dynamic_bounds): Delete.
5027 (resolve_dynamic_type): Reimplement. Add handling of
5028 TYPE_CODE_RANGE types.
5030 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5032 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5033 handling of parallel ___XA types.
5035 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5037 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5038 unnecessary second call to static_unwrap_type.
5040 2014-04-27 Hui Zhu <hui@codesourcery.com>
5042 * stack.c (print_frame_info): Call do_gdb_disassembly with
5043 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5045 2014-04-26 Doug Evans <xdje42@gmail.com>
5047 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5049 2014-04-25 Pedro Alves <palves@redhat.com>
5052 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5053 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5054 and newline from built string.
5055 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5056 (linux_ptrace_attach_fail_reason): ... this.
5057 * linux-nat.c (linux_nat_attach): Adjust to use
5058 linux_ptrace_attach_fail_reason.
5060 2014-04-25 Pedro Alves <palves@redhat.com>
5062 * remote.c (struct remote_state): Remove multi_process_aware,
5063 non_stop_aware, cond_tracepoints, cond_breakpoints,
5064 breakpoint_commands, fast_tracepoints, static_tracepoints,
5065 install_in_trace, disconnected_tracing,
5066 enable_disable_tracepoints, string_tracing, and
5067 augmented_libraries_svr4_read fields.
5068 (remote_multi_process_p): Move further below in the file.
5069 (struct packet_config): Add comments.
5070 (update_packet_config): Delete function.
5071 (show_packet_config_cmd): Use packet_config_support.
5072 (add_packet_config_cmd): Use NULL as set callback.
5073 (packet_ok): "set remote foo-packet"-style commands no longer
5074 change config->supported -- adjust.
5075 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5076 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5077 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5078 (PACKET_QNonStop, PACKET_multiprocess_feature)
5079 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5080 (PACKET_DisconnectedTracing_feature)
5081 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5082 (set_remote_protocol_packet_cmd): Delete function.
5083 (packet_config_support, packet_support): New functions.
5084 (set_remote_protocol_Z_packet_cmd): Don't call
5085 update_packet_config.
5086 (remote_query_attached, remote_pass_signals)
5087 (remote_program_signals, remote_threads_info)
5088 (remote_threads_extra_info, remote_start_remote): Use
5090 (remote_start_remote): Use packet_config_support and
5092 (init_all_packet_configs): Set all packets to unknown support,
5093 instead of calling update_packet_config.
5094 (remote_check_symbols): Use packet_support.
5095 (remote_supported_packet): Unconditionally set the packet config's
5097 (remote_multi_process_feature, remote_non_stop_feature)
5098 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5099 (remote_breakpoint_commands_feature)
5100 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5101 (remote_install_in_trace_feature)
5102 (remote_disconnected_tracing_feature)
5103 (remote_enable_disable_tracepoint_feature)
5104 (remote_string_tracing_feature)
5105 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5106 (remote_protocol_features): Adjust to use remote_supported_packet
5107 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5108 "ConditionalTracepoints", "ConditionalBreakpoints",
5109 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5110 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5111 "EnableDisableTracepoints", and "tracenz".
5112 (remote_query_supported): Use packet_support.
5113 (remote_open_1): Adjust.
5114 (extended_remote_attach_1): Use packet_support. Switch on the
5115 result of packet_ok instead of checking whether the packet ended
5117 (remote_vcont_resume): Use packet_support.
5118 (remote_resume, remote_stop_ns, fetch_register_using_p)
5119 (remote_prepare_to_store, store_register_using_P)
5120 (check_binary_download, remote_write_bytes): Use packet_support.
5121 (remote_vkill): Use packet_support. Switch on the result of
5122 packet_ok instead of checking whether the packet ended up
5124 (extended_remote_supports_disable_randomization): Use
5126 (extended_remote_run): Switch on the result of packet_ok instead
5127 of checking whether the packet ended up disabled.
5128 (remote_insert_breakpoint, remote_remove_breakpoint)
5129 (remote_insert_watchpoint, remote_remove_watchpoint)
5130 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5132 (remote_search_memory): Use packet_config_support.
5133 (remote_get_thread_local_address, remote_get_tib_address)
5134 (remote_hostio_send_command, remote_can_execute_reverse): Use
5136 (remote_supports_cond_tracepoints)
5137 (remote_supports_cond_breakpoints)
5138 (remote_supports_fast_tracepoints)
5139 (remote_supports_static_tracepoints)
5140 (remote_supports_install_in_trace)
5141 (remote_supports_enable_disable_tracepoint)
5142 (remote_supports_string_tracing)
5143 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5144 the packet config says the feature is enabled or disabled.
5145 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5146 (remote_get_trace_status): Use packet_support.
5147 (remote_set_disconnected_tracing): Adjust to check whether the
5148 feature is enabled with packet_support.
5149 (remote_set_trace_buffer_size, remote_use_agent)
5150 (remote_can_use_agent, remote_supports_btrace): Use
5152 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5153 Use packet_config_support.
5154 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5155 the packet config says the feature is enabled or disabled.
5156 (set_range_stepping): Use packet_support.
5158 2014-04-25 Tom Tromey <tromey@redhat.com>
5160 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5163 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5165 * NEWS: Mention support for C99 variable length arrays.
5167 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5169 * ada-lang.c (standard_exc): Expand introductory comment.
5171 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5172 Walfred Tedeschi <walfred.tedeschi@intel.com>
5174 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5176 (amd64_linux_read_description): Add code to handle AVX512 xstate
5177 mask and return respective tdesc.
5178 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5179 and features/i386/x32-avx512-linux.c.
5180 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5181 (amd64_linux_core_read_description): Add code to handle AVX512
5182 xstate mask and return respective tdesc.
5183 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5184 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5186 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5187 (tdesc_amd64_avx512_linux): New prototype.
5188 (tdesc_x32_avx512_linux): Likewise.
5189 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5190 features/i386/x32-avx512.c.
5191 (amd64_ymm_avx512_names): New register names for pseudo
5193 (amd64_ymmh_avx512_names): New register names for raw registers
5195 (amd64_k_names): New register names for K registers.
5196 (amd64_zmmh_names): New register names for ZMM raw registers.
5197 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5198 (amd64_xmm_avx512_names): New register names for XMM16-31
5200 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5202 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5203 if feature is present.
5204 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5205 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5206 (AMD64_NUM_REGS): Adjust to new number of registers.
5207 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5208 registers supplied via XSTATE by AVX512 registers.
5209 (i386_linux_read_description): Add case for AVX512.
5210 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5211 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5212 (i386_linux_core_read_description): Add case for AVX512.
5213 (i386_linux_init_abi): Install supported register note section
5215 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5217 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5218 registers to be number of zmm7h + 1.
5219 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5220 * i386-tdep.c: Include features/i386/i386-avx512.c.
5221 (i386_zmm_names): Add ZMM pseudo register names array.
5222 (i386_zmmh_names): Add ZMM raw register names array.
5223 (i386_k_names): Add K raw register names array.
5224 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5225 registers. AVX512 has 16 more ZMM registers than there are YMM
5227 (i386_zmmh_regnum_p): Add function to look up register number of
5229 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5230 (i386_k_regnum_p): Likewise for K raw registers.
5231 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5232 registers added by AVX512.
5233 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5234 registers added by AVX512.
5235 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5237 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5238 (i386_pseudo_register_name): Add ZMM pseudo registers.
5239 (i386_zmm_type): Construct and return vector registers type for ZMM
5241 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5242 ZMM0-31 pseudo registers and K registers.
5243 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5244 and YMM16-31 registers from register cache.
5245 (i386_pseudo_register_write): Add code to write K, ZMM and
5247 (i386_register_reggroup_p): Add code to include/exclude AVX512
5248 registers in/from respective register groups.
5249 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5250 registers if feature is present in xcr0.
5251 (i386_gdbarch_init): Add code to initialize AVX512 feature
5252 variables in tdep structure, wire in pseudo registers and call
5253 initialize_tdesc_i386_avx512.
5254 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5256 (i386_regnum): Add AVX512 registers.
5257 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5258 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5259 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5260 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5262 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5263 (i386_ymm_avx512_regnum_p): Likewise.
5264 (i386_k_regnum_p): Likewise.
5265 (i386_zmm_regnum_p): Likewise.
5266 (i386_zmmh_regnum_p): Likewise.
5267 * i387-tdep.c : Update year in copyright notice.
5268 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5270 (XSAVE_YMM_AVX512_ADDR): New macro.
5271 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5273 (XSAVE_XMM_AVX512_ADDR): New macro.
5274 (xsave_avx512_k_offset): New table for K register offsets in
5276 (XSAVE_AVX512_K_ADDR): New macro.
5277 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5279 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5280 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5282 (i387_collect_xsave): Add code to collect AVX512 registers from
5284 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5285 of XMM16-31 registers.
5286 (I387_NUM_K_REGS): New define for number of K registers.
5287 (I387_K0_REGNUM): New define for K0 register number.
5288 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5289 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5290 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5292 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5293 (I387_XMM16_REGNUM): New define for XMM16 register number.
5294 (I387_YMM0_REGNUM): New define for YMM0 register number.
5295 (I387_KEND_REGNUM): New define for last K register number.
5296 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5297 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5299 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5301 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5303 * features/Makefile: Add AVX512 related files.
5304 * features/i386/32bit-avx512.xml: New file.
5305 * features/i386/64bit-avx512.xml: Likewise.
5306 * features/i386/amd64-avx512-linux.c: Likewise.
5307 * features/i386/amd64-avx512-linux.xml: Likewise.
5308 * features/i386/amd64-avx512.c: Likewise.
5309 * features/i386/amd64-avx512.xml: Likewise.
5310 * features/i386/i386-avx512-linux.c: Likewise.
5311 * features/i386/i386-avx512-linux.xml: Likewise.
5312 * features/i386/i386-avx512.c: Likewise.
5313 * features/i386/i386-avx512.xml: Likewise.
5314 * features/i386/x32-avx512-linux.c: Likewise.
5315 * features/i386/x32-avx512-linux.xml: Likewise.
5316 * features/i386/x32-avx512.c: Likewise.
5317 * features/i386/x32-avx512.xml: Likewise.
5318 * regformats/i386/amd64-avx512-linux.dat: New file.
5319 * regformats/i386/amd64-avx512.dat: Likewise.
5320 * regformats/i386/i386-avx512-linux.dat: Likewise.
5321 * regformats/i386/i386-avx512.dat: Likewise.
5322 * regformats/i386/x32-avx512-linux.dat: Likewise.
5323 * regformats/i386/x32-avx512.dat: Likewise.
5324 * NEWS: Add note about new support for AVX512.
5327 2014-04-23 Pedro Alves <palves@redhat.com>
5329 * breakpoint.c (insert_bp_location): Tolerate errors if the
5330 breakpoint is set in a user-loaded objfile.
5331 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5332 location is marked shlib_disabled. If the breakpoint is set in a
5333 user-loaded objfile is a GDB-side memory breakpoint, validate it
5334 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5335 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5337 * mem-break.c (memory_validate_breakpoint): New function.
5338 * objfiles.c (userloaded_objfile_contains_address_p): New
5340 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5341 * target.h (memory_validate_breakpoint): New declaration.
5343 2014-04-23 Pedro Alves <palves@redhat.com>
5345 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5346 the breakpoint is set in a shared library, only suppress
5347 errors for software breakpoints, not hardware breakpoints.
5349 2014-04-22 Pedro Alves <palves@redhat.com>
5351 * infrun.c (schedlock_applies): New function, factored out from
5352 find_thread_needs_step_over.
5353 (find_thread_needs_step_over): Use it.
5354 (switch_back_to_stepped_thread): Always clear trap_expected if the
5355 step over is finished. Return early if scheduler locking applies.
5356 Look for the stepping thread and a potential step-over thread with
5358 (currently_stepping_or_nexting_callback): Delete.
5360 2014-04-22 Nick Clifton <nickc@redhat.com>
5362 * NEWS: Mention that ARM sim now supports tracing.
5364 2014-04-22 Yao Qi <yao@codesourcery.com>
5366 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5368 * tracefile.c (tracefile_fetch_registers): ... it. New
5370 * tracefile.h (tracefile_fetch_registers): Declare.
5371 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5372 tracefile_fetch_registers.
5374 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5377 * windows-nat.c (thread_rec): Don't display a warning when
5378 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5379 fails for any reason, set th->suspended to -1, so that we don't
5380 try to resume such a thread. Also, don't return NULL in these
5381 cases, to avoid completely ruin the session due to "PC register is
5382 not available" error.
5383 (do_windows_fetch_inferior_registers): Check errors in
5384 GetThreadContext call.
5385 (windows_continue): Accept an additional argument KILLED; if not
5386 zero, ignore errors in the SetThreadContext call, since the
5387 inferior was killed and is shutting down.
5388 (windows_resume, get_windows_debug_event)
5389 (windows_create_inferior, windows_mourn_inferior)
5390 (windows_kill_inferior): All callers of windows_continue changed
5391 to adjust to its new calling sequence.
5393 2014-04-19 Yao Qi <yao@codesourcery.com>
5395 * ctf.c (ctf_open): Call post_create_inferior.
5397 2014-04-19 Yao Qi <yao@codesourcery.com>
5399 * ctf.c (handle_id): New static variable.
5400 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5401 value. Get the declaration of event "register" and get length
5402 of field "contents".
5404 2014-04-19 Yao Qi <yao@codesourcery.com>
5406 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5408 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5410 * valops.c (oload_method_static): Remove unnecessary argument
5411 METHOD. Update all callers.
5413 2014-04-18 Pedro alves <palves@redhat.com>
5414 Tom Tromey <tromey@redhat.com>
5417 * frame.c (get_prev_frame_1): Rename to ...
5418 (get_prev_frame_always): ... this, and make extern. Adjust.
5419 (skip_artificial_frames): Use get_prev_frame_always.
5420 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5421 (get_frame_unwind_stop_reason): Adjust to rename.
5422 * frame.h (get_prev_frame_always): Declare.
5423 * inline-frame.c: Include frame.h.
5424 (inline_frame_this_id): Use get_prev_frame_always.
5426 2014-04-18 Tristan Gingold <gingold@adacore.com>
5428 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5429 code by using bfd_mach_o_get_base_address.
5431 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5433 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5434 (spu_ax_pseudo_register_collect): New function.
5435 (spu_ax_pseudo_register_push_stack): Likewise.
5436 (spu_dwarf_reg_to_regnum): Likewise.
5437 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5439 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5441 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5442 Replace FRAME argument with FRAME_ID.
5443 * gdbarch.c, gdbarch.h: Regenerate.
5444 * findvar.c (default_value_from_register): Add GDBARCH argument;
5445 replace FRAME by FRAME_ID. No longer call get_frame_id.
5446 (value_from_register): Update call to gdbarch_value_from_register.
5447 * value.h (default_value_from_register): Update prototype.
5448 * s390-linux-tdep.c (s390_value_from_register): Update interface
5449 and call to default_value_from_register.
5450 * spu-tdep.c (spu_value_from_register): Likewise.
5452 * findvar.c (address_from_register): Remove TYPE argument.
5453 Do not call value_from_register; use gdbarch_value_from_register
5454 with null_frame_id instead.
5455 * value.h (address_from_register): Update prototype.
5456 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5457 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5458 address_from_register interface change.
5460 2014-04-17 Yao Qi <yao@codesourcery.com>
5462 * gdbtypes.h: Update comments to link to types and macros'
5465 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5467 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5469 2014-04-16 Keith Seitz <keiths@redhat.com>
5472 * dwarf2read.c (skip_one_die): Check that all relative-offset
5473 sibling DIEs fall within range of the current reader's buffer.
5474 (read_partial_die): Likewise.
5476 2014-04-16 Keith Seitz <keiths@redhat.com>
5479 * cp-namespace.c (lookup_symbol_file): If the type name of
5480 `this' is NULL, return immediately.
5482 2014-04-14 Keith Seitz <keiths@redhat.com>
5485 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5486 from symbol_matches_domain in symtab.c. All local callers
5487 of symbol_matches_domain updated.
5488 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5489 search STRUCT_DOMAIN.
5490 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5491 independently. standard_lookup will do that automatically.
5492 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5493 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5494 (cp_lookup_symbol_in_namespace): Likewise.
5495 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5496 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5497 may return a STRUCT_DOMAIN match.
5498 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5499 * cp-support.c: Include language.h.
5500 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5502 * psymtab.c (match_partial_symbol): Compare the requested
5503 domain with the symbol's domain directly.
5504 (lookup_partial_symbol): Likewise.
5505 * symtab.c (lookup_symbol_in_language): Explain when/why
5506 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5507 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5508 appropriate languages.
5509 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5510 and moved to ada-lang.c
5511 (lookup_block_symbol): Explain that this function only returns
5512 symbol matching the requested DOMAIN.
5513 Compare the requested domain with the symbol's domain directly.
5514 (iterate_over_symbols): Compare the requested domain with the
5515 symbol's domain directly.
5516 * symtab.h (symbol_matches_domain): Remove.
5518 2014-04-14 Tom Tromey <tromey@redhat.com>
5521 * c-exp.y (type_aggregate_p): New function.
5522 (qualified_name, classify_inner_name): Use it.
5523 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5524 and TYPE_TARGET_TYPE of an enum type.
5525 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5527 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5528 handle TYPE_DECLARED_CLASS.
5529 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5531 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5532 * valops.c (enum_constant_from_type): New function.
5533 (value_aggregate_elt): Use it.
5534 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5537 2014-04-14 Tom Tromey <tromey@redhat.com>
5539 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5540 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5542 * value.h (value_aggregate_elt): Update.
5544 2014-04-14 Tom Tromey <tromey@redhat.com>
5546 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5548 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5550 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5551 (evaluate_subexp_standard): Pass noside argument.
5552 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5553 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5554 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5555 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5556 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5558 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5560 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5561 points to a constant blob.
5563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5565 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5566 property and store it as the high bound and flag the range accordingly.
5567 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5568 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5569 * gdbtypes.h (enum range_flags): New enum.
5570 (struct range_bounds): Add flags member.
5572 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5574 * c-typeprint.c (c_type_print_varspec_suffix): Added
5575 check for not yet resolved high bound. If unresolved, print
5576 "variable length" string to the console instead of random
5579 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5581 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5583 (ada_template_to_fixed_record_type_1): Likewise.
5584 (ada_to_fixed_type_1): Likewise.
5585 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5586 (cp_print_value): Likewise.
5587 * d-valprint.c (dynamic_array_type): Likewise.
5588 * findvar.c (address_of_variable): Likewise.
5589 * jv-valprint.c (java_value_print): Likewise.
5590 * valops.c (value_ind): Likewise.
5591 * value.c (coerce_ref): Likewise.
5593 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5595 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5596 value and retrieve the dynamic type size.
5598 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5600 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5601 passed to sizeof is dynamic evaluate the argument to compute the length.
5603 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5604 Joel Brobecker <brobecker@adacore.com>
5606 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5607 (dwarf2_evaluate_property): New function.
5608 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5609 * dwarf2read.c (attr_to_dynamic_prop): New function.
5610 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5612 * gdbtypes.c: Include dwarf2loc.h.
5613 (is_dynamic_type): New function.
5614 (resolve_dynamic_type): New function.
5615 (resolve_dynamic_bounds): New function.
5616 (get_type_length): New function.
5617 (check_typedef): Use get_type_length to compute type length.
5618 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5619 (TYPE_LOW_BOUND_KIND): New macro.
5620 (is_dynamic_type): New function prototype.
5621 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5622 to resolve dynamic properties of the type. Update comment.
5623 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5625 2014-04-14 Richard Henderson <rth@redhat.com>
5627 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5629 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5630 Doug Evans <xdje42@gmail.com>
5632 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5633 dereference TYPE_CODE_REF values.
5635 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5637 Revert the following changes due to regressions:
5639 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5640 (dwarf2_evaluate_property): New function.
5641 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5642 * dwarf2read.c (attr_to_dynamic_prop): New function.
5643 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5645 * gdbtypes.c: Include dwarf2loc.h.
5646 (is_dynamic_type): New function.
5647 (resolve_dynamic_type): New function.
5648 (resolve_dynamic_bounds): New function.
5649 (get_type_length): New function.
5650 (check_typedef): Use get_type_length to compute type length.
5651 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5652 (TYPE_LOW_BOUND_KIND): New macro.
5653 (is_dynamic_type): New function prototype.
5654 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5655 to resolve dynamic properties of the type. Update comment.
5656 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5658 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5659 passed to sizeof is dynamic evaluate the argument to compute the length.
5661 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5662 value and retrieve the dynamic type size.
5664 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5665 (ada_template_to_fixed_record_type_1): Likewise.
5666 (ada_to_fixed_type_1): Likewise.
5667 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5668 (cp_print_value): Likewise.
5669 * d-valprint.c (dynamic_array_type): Likewise.
5670 * eval.c (evaluate_subexp_with_coercion): Likewise.
5671 * findvar.c (address_of_variable): Likewise.
5672 * jv-valprint.c (java_value_print): Likewise.
5673 * valops.c (value_ind): Likewise.
5674 * value.c (coerce_ref): Likewise.
5676 * c-typeprint.c (c_type_print_varspec_suffix): Added
5677 check for not yet resolved high bound. If unresolved, print
5678 "variable length" string to the console instead of random
5681 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5682 property and store it as the high bound and flag the range accordingly.
5683 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5684 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5685 * gdbtypes.h (enum range_flags): New enum.
5686 (struct range_bounds): Add flags member.
5688 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5689 points to a constant blob.
5691 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5692 (evaluate_subexp_standard): Pass noside argument.
5693 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5694 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5695 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5696 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5697 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5699 2014-04-11 Keith Seitz <keiths@redhat.com>
5702 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5703 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5706 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5708 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5709 (evaluate_subexp_standard): Pass noside argument.
5710 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5711 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5712 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5713 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5714 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5718 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5719 points to a constant blob.
5721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5723 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5724 property and store it as the high bound and flag the range accordingly.
5725 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5726 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5727 * gdbtypes.h (enum range_flags): New enum.
5728 (struct range_bounds): Add flags member.
5730 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5732 * c-typeprint.c (c_type_print_varspec_suffix): Added
5733 check for not yet resolved high bound. If unresolved, print
5734 "variable length" string to the console instead of random
5737 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5739 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5740 (ada_template_to_fixed_record_type_1): Likewise.
5741 (ada_to_fixed_type_1): Likewise.
5742 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5743 (cp_print_value): Likewise.
5744 * d-valprint.c (dynamic_array_type): Likewise.
5745 * eval.c (evaluate_subexp_with_coercion): Likewise.
5746 * findvar.c (address_of_variable): Likewise.
5747 * jv-valprint.c (java_value_print): Likewise.
5748 * valops.c (value_ind): Likewise.
5749 * value.c (coerce_ref): Likewise.
5751 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5753 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5754 value and retrieve the dynamic type size.
5756 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5758 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5759 passed to sizeof is dynamic evaluate the argument to compute the length.
5761 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5763 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5764 (dwarf2_evaluate_property): New function.
5765 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5766 * dwarf2read.c (attr_to_dynamic_prop): New function.
5767 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5769 * gdbtypes.c: Include dwarf2loc.h.
5770 (is_dynamic_type): New function.
5771 (resolve_dynamic_type): New function.
5772 (resolve_dynamic_bounds): New function.
5773 (get_type_length): New function.
5774 (check_typedef): Use get_type_length to compute type length.
5775 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5776 (TYPE_LOW_BOUND_KIND): New macro.
5777 (is_dynamic_type): New function prototype.
5778 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5779 to resolve dynamic properties of the type. Update comment.
5780 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5782 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5784 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5785 declaring high/low bounds and change uses accordingly. Call
5786 create_range_type instead of create_static_range_type.
5787 * gdbtypes.c (create_range_type): New function.
5788 (create_range_type): Convert bounds into struct bound_prop and pass
5789 them to create_range_type.
5790 * gdbtypes.h (struct bound_prop): New struct.
5791 (create_range_type): New function prototype.
5792 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5793 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5794 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5796 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5798 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5800 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5801 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5802 * ada-lang.c: All uses of create_range_type updated.
5803 * coffread.c: All uses of create_range_type updated.
5804 * dwarf2read.c: All uses of create_range_type updated.
5805 * f-exp.y: All uses of create_range_type updated.
5806 * m2-valprint.c: All uses of create_range_type updated.
5807 * mdebugread.c: All uses of create_range_type updated.
5808 * stabsread.c: All uses of create_range_type updated.
5809 * valops.c: All uses of create_range_type updated.
5810 * valprint.c: All uses of create_range_type updated.
5812 2014-04-10 Pedro Alves <palves@redhat.com>
5814 * breakpoint.c (single_step_breakpoints)
5815 (single_step_gdbarch): Move up in the file.
5816 (one_breakpoint_xfer_memory): New function, factored out from ...
5817 (breakpoint_xfer_memory): ... here. Also process single-step
5820 2014-04-09 Tristan Gingold <gingold@adacore.com>
5822 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5824 (darwin_decode_exception_message): Free port only after use.
5826 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5828 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5829 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5830 when setting the size of call_length.
5832 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5834 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5835 dereference TYPE_CODE_REF values.
5837 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5839 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5840 end of warning message.
5842 2014-04-03 Doug Evans <dje@google.com>
5844 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5845 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5847 2014-04-02 Alan Modra <amodra@gmail.com>
5849 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5850 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5851 (struct symbol_file_add_from_memory_args): Add size field.
5852 (find_vdso_size): New function.
5853 (add_vsyscall_page): Attempt to find vdso size.
5855 2014-04-01 Doug Evans <dje@google.com>
5857 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5859 2014-04-01 Tristan Gingold <gingold@adacore.com>
5861 * darwin-nat.c (darwin_encode_reply): Add prototype.
5862 (darwin_decode_exception_message): Reply to unknown inferiors.
5863 (darwin_decode_message): Handle message by id. Ignore message
5864 to unknown inferior.
5865 (darwin_wait): Discard unknown messages, add debug trace.
5867 2014-03-31 Doug Evans <dje@google.com>
5869 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5872 2014-03-31 Doug Evans <dje@google.com>
5874 New option "set print symbol-loading".
5876 * solib.c (solib_read_symbols): Only print symbol loading messages
5878 (solib_add): If symbol loading is in "brief" mode, notify user
5879 symbols are being loaded.
5880 (reload_shared_libraries_1): Ditto.
5881 * symfile.c (print_symbol_loading_off): New static global.
5882 (print_symbol_loading_brief): New static global.
5883 (print_symbol_loading_full): New static global.
5884 (print_symbol_loading_enums): New static global.
5885 (print_symbol_loading): New static global.
5886 (print_symbol_loading_p): New function.
5887 (symbol_file_add_with_addrs): Only print symbol loading messages
5889 (_initialize_symfile): Register "print symbol-loading" set/show
5891 * symfile.h (print_symbol_loading_p): Declare.
5893 2014-03-30 Doug Evans <xdje42@gmail.com>
5895 * infrun.c (set_last_target_status): New function.
5896 (handle_inferior_event): Call it.
5898 2014-03-30 Doug Evans <xdje42@gmail.com>
5900 * inferior.h (enum stop_kind): Improve comment.
5902 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5904 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5905 a reference, strip the reference layer before calling
5906 the lang_ops value_has_mutated callback.
5908 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5910 Remove some globals from our parser.
5911 * language.c (unk_lang_parser): Add "struct parser_state"
5913 * language.h (struct language_defn) <la_parser>: Likewise.
5914 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5915 (initialize_expout): Add "struct parser_state" argument.
5916 Rewrite function to use the parser state.
5917 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5918 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5919 write_exp_elt_longcst, write_exp_elt_dblcst,
5920 write_exp_elt_decfloatcst, write_exp_elt_type,
5921 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5922 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5923 write_dollar_variable): Likewise.
5924 (parse_exp_in_context_1): Use parser state.
5925 (insert_type_address_space): Add "struct parser_state" argument.
5927 (increase_expout_size): New function.
5928 * parser-defs.h: Forward declare "struct language_defn" and
5929 "struct parser_state".
5930 (expout, expout_size, expout_ptr): Remove extern declarations.
5931 (parse_gdbarch, parse_language): Rewrite macro declarations to
5932 accept the parser state.
5933 (struct parser_state): New struct.
5934 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5935 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5936 write_exp_elt_decfloatcst, write_exp_elt_type,
5937 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5938 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5939 write_exp_msymbol, write_dollar_variable,
5940 mark_struct_expression, insert_type_address_space): Add "struct
5941 parser_state" argument.
5942 (increase_expout_size): New function.
5943 * utils.c (do_clear_parser_state): New function.
5944 (make_cleanup_clear_parser_state): Likewise.
5945 * utils.h (make_cleanup_clear_parser_state): New function
5947 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5948 Update calls to write_exp* in order to pass the parser state.
5949 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5950 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5951 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5952 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5953 * stap-probe.c (stap_parse_register_operand): Likewise.
5954 (stap_parse_single_operand): Likewise.
5955 (stap_parse_argument_1): Likewise.
5956 (stap_parse_argument): Use parser state.
5957 * stap-probe.h: Include "parser-defs.h".
5958 (struct stap_parse_info) <pstate>: New field.
5959 * c-exp.y (parse_type): Rewrite to use parser state.
5960 (yyparse): Redefine to c_parse_internal.
5961 (pstate): New global variable.
5962 (parse_number): Add "struct parser_state" argument.
5963 (write_destructor_name): Likewise.
5964 (type_exp): Update calls to write_exp* and similars in order to
5966 (exp1, exp, variable, qualified_name, space_identifier,
5967 typename, typebase): Likewise.
5968 (write_destructor_name, parse_number, lex_one_token,
5969 classify_name, classify_inner_name, c_parse): Add "struct
5970 parser_state" argument. Update function to use parser state.
5971 * c-lang.h: Forward declare "struct parser_state".
5972 (c_parse): Add "struct parser_state" argument.
5973 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5974 (yyparse): Redefine macro to ada_parse_internal.
5975 (pstate): New variable.
5976 (write_int, write_object_renaming, write_var_or_type,
5977 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5978 type_int, type_long, type_long_long, type_float, type_double,
5979 type_long_double, type_char, type_boolean, type_system_address):
5980 Add "struct parser_state" argument.
5981 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5982 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5983 var_or_type, aggregate, aggregate_component_list,
5984 positional_list, others, component_group,
5985 component_associations): Update calls to write_exp* and similar
5986 functions in order to use parser state.
5987 (ada_parse, write_var_from_sym, write_int,
5988 write_exp_op_with_string, write_object_renaming,
5989 find_primitive_type, write_selectors, write_ambiguous_var,
5990 write_var_or_type, write_name_assoc, type_int, type_long,
5991 type_long_long, type_float, type_double, type_long_double,
5992 type_char, type_boolean, type_system_address): Add "struct
5993 parser_state" argument. Adjust function to use parser state.
5994 * ada-lang.c (parse): Likewise.
5995 * ada-lang.h: Forward declare "struct parser_state".
5996 (ada_parse): Add "struct parser_state" argument.
5997 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5998 calls to both functions.
5999 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6001 (yyparse): Redefine macro to f_parse_internal.
6002 (pstate): New variable.
6003 (parse_number): Add "struct parser_state" argument.
6004 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6005 and similars in order to use parser state.
6006 (parse_number): Adjust code to use parser state.
6008 (f_parse): New function.
6009 * f-lang.h: Forward declare "struct parser_state".
6010 (f_parse): Add "struct parser_state" argument.
6011 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6013 (yyparse): Redefine macro for java_parse_internal.
6014 (pstate): New variable.
6015 (push_expression_name, push_expression_name, insert_exp): Add
6016 "struct parser_state" argument.
6017 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6018 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6019 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6020 PostIncrementExpression, PostDecrementExpression,
6021 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6022 UnaryExpressionNotPlusMinus, CastExpression,
6023 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6024 RelationalExpression, EqualityExpression, AndExpression,
6025 ExclusiveOrExpression, InclusiveOrExpression,
6026 ConditionalAndExpression, ConditionalOrExpression,
6027 ConditionalExpression, Assignment, LeftHandSide): Update
6028 calls to write_exp* and similars in order to use parser state.
6029 (parse_number): Ajust code to use parser state.
6031 (java_parse): New function.
6032 (push_variable): Add "struct parser_state" argument. Adjust
6033 code to user parser state.
6034 (push_fieldnames, push_qualified_expression_name,
6035 push_expression_name, insert_exp): Likewise.
6036 * jv-lang.h: Forward declare "struct parser_state".
6037 (java_parse): Add "struct parser_state" argument.
6038 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6040 (yyparse): Redefine macro to m2_parse_internal.
6041 (pstate): New variable.
6042 (type_exp, exp, fblock, variable, type): Update calls to
6043 write_exp* and similars to use parser state.
6045 (m2_parse): New function.
6046 * m2-lang.h: Forward declare "struct parser_state".
6047 (m2_parse): Add "struct parser_state" argument.
6048 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6049 * objc-lang.h: Forward declare "struct parser_state".
6050 (end_msglist): Add "struct parser_state" argument.
6051 * p-exp.y (parse_type): Rewrite macro to use parser state.
6052 (yyparse): Redefine macro to pascal_parse_internal.
6053 (pstate): New variable.
6054 (parse_number): Add "struct parser_state" argument.
6055 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6056 write_exp* and similars in order to use parser state.
6057 (parse_number, yylex): Adjust code to use parser state.
6058 (pascal_parse): New function.
6059 * p-lang.h: Forward declare "struct parser_state".
6060 (pascal_parse): Add "struct parser_state" argument.
6061 * go-exp.y (parse_type): Rewrite macro to use parser state.
6062 (yyparse): Redefine macro to go_parse_internal.
6063 (pstate): New variable.
6064 (parse_number): Add "struct parser_state" argument.
6065 (type_exp, exp1, exp, variable, type): Update calls to
6066 write_exp* and similars in order to use parser state.
6067 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6068 to use parser state.
6069 (go_parse): Likewise.
6070 * go-lang.h: Forward declare "struct parser_state".
6071 (go_parse): Add "struct parser_state" argument.
6073 2014-03-27 Doug Evans <dje@google.com>
6075 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6077 2014-03-27 Doug Evans <dje@google.com>
6079 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6080 Remove argument abbrev_section. All callers updated.
6082 2014-03-27 Doug Evans <dje@google.com>
6084 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6085 addr_base, ranges_base.
6087 2014-03-26 Keith Seitz <keiths@redhat.com>
6089 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6090 types, not VAR_DOMAIN.
6092 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6094 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6096 * features/nios2-linux.c: Regenerated.
6097 * features/nios2.c: Regenerated.
6099 2014-03-25 Pedro Alves <palves@redhat.com>
6101 * cli/cli-script.c (script_from_file): Force the interpreter to
6104 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6106 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6107 small stack allocation.
6109 2014-03-24 Tristan Gingold <gingold@adacore.com>
6111 * darwin-nat.c (exc_server): Remove unused prototype.
6112 (darwin_dump_message): Correctly display data on x86_64.
6113 (darwin_encode_reply): Fix style.
6114 Add comments and fix indentation.
6116 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6118 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6120 2014-03-22 Doug Evans <xdje42@gmail.com>
6122 * infcmd.c: Whitespace fixes.
6123 (interrupt_command): Merge two function comments into one.
6125 2014-03-22 Doug Evans <xdje42@gmail.com>
6127 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6130 2014-03-22 Yao Qi <yao@codesourcery.com>
6132 * remote.c (target_read_live_memory): Remove.
6133 (memory_xfer_live_readonly_partial): Rename it to
6134 remote_xfer_live_readonly_partial. Remove argument 'object'.
6135 All callers updated. Call remote_read_bytes_1
6136 instead of target_read_live_memory.
6137 * tracepoint.c (set_traceframe_number): Remove.
6138 (make_cleanup_restore_traceframe_number): Likewise .
6139 * tracepoint.h (set_traceframe_number): Remove declaration.
6140 (make_cleanup_restore_traceframe_number): Likewise.
6142 2014-03-22 Yao Qi <yao@codesourcery.com>
6144 * remote.c (remote_read_bytes): Move code on reading from the
6146 (remote_read_bytes_1): ... here. New function.
6148 2014-03-22 Yao Qi <yao@codesourcery.com>
6150 * ctf.c (ctf_xfer_partial): Check the return value of
6151 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6152 return TARGET_XFER_UNAVAILABLE.
6153 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6154 * target.c (target_read_live_memory): Move it to remote.c.
6155 (memory_xfer_live_readonly_partial): Likewise.
6156 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6157 * remote.c (target_read_live_memory): Moved from target.c.
6158 (memory_xfer_live_readonly_partial): Likewise.
6159 (remote_read_bytes): Factored out from
6160 memory_xfer_partial_1.
6162 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6164 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6167 2014-03-21 Pedro Alves <palves@redhat.com>
6169 * infrun.c (normal_stop): Extend comment.
6171 2014-03-21 Hui Zhu <hui@codesourcery.com>
6172 Pedro Alves <palves@redhat.com>
6174 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6176 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6177 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6178 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6180 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6182 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6183 `z' formatted output modifier.
6185 2014-03-20 Tom Tromey <tromey@redhat.com>
6186 Sergio Durigan Junior <sergiodj@redhat.com>
6188 * probe.c (parse_probes): Turn assert into an ordinary error.
6189 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6190 exceptions when parsing probes. Rearrange the code for clarity.
6192 2014-03-20 Tom Tromey <tromey@redhat.com>
6195 * top.c (execute_command): Only dispatch events if the command
6198 2014-03-20 Tom Tromey <tromey@redhat.com>
6201 * infcall.c: Include event-top.h.
6202 (run_inferior_call): Call async_disable_stdin if needed.
6204 2014-03-20 Pedro Alves <palves@redhat.com>
6206 * infrun.c (prepare_to_proceed): Delete.
6207 (thread_still_needs_step_over): New function.
6208 (find_thread_needs_step_over): New function.
6209 (proceed): If the current thread needs a step-over, set its
6210 steping_over_breakpoint flag. Adjust to use
6211 find_thread_needs_step_over instead of prepare_to_proceed.
6212 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6213 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6215 (switch_back_to_stepped_thread): Step over breakpoints of all
6216 threads not the stepping thread, before switching back to the
6219 2014-03-20 Pedro Alves <palves@redhat.com>
6221 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6223 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6224 * infrun.c (saved_singlestep_ptid)
6225 (stepping_past_singlestep_breakpoint): Delete.
6226 (resume): Remove stepping_past_singlestep_breakpoint handling.
6227 (proceed): Store the prev_pc of the stepping thread too.
6228 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6230 (enum infwait_states): Delete infwait_thread_hop_state.
6231 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6233 (handle_inferior_event): Adjust.
6234 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6235 handling and the thread-hop code. Before removing single-step
6236 breakpoints, check whether the thread hit a single-step breakpoint
6237 of another thread. If it did, the trap is not a random signal.
6238 (switch_back_to_stepped_thread): If the event thread hit a
6239 single-step breakpoint, unblock it before switching to the
6240 stepping thread. Handle the case of the stepped thread having
6242 (keep_going): Handle the case of the current thread moving past a
6243 single-step breakpoint.
6245 2014-03-20 Pedro Alves <palves@redhat.com>
6248 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6249 are being stepped over.
6250 (breakpoint_address_match): Make extern.
6251 * breakpoint.h (breakpoint_address_match): New declaration.
6252 * inferior.h (stepping_past_instruction_at): New declaration.
6253 * infrun.c (struct step_over_info): New type.
6254 (step_over_info): New global.
6255 (set_step_over_info, clear_step_over_info)
6256 (stepping_past_instruction_at): New functions.
6257 (handle_inferior_event): Clear the step-over info when
6258 trap_expected is cleared.
6259 (resume): Remove now stale comment.
6260 (clear_proceed_status): Clear step-over info.
6261 (proceed): Adjust step-over handling to set or clear the step-over
6262 info instead of removing all breakpoints.
6263 (handle_signal_stop): When setting up a thread-hop, don't remove
6265 (stop_stepping): Clear step-over info.
6266 (keep_going): Adjust step-over handling to set or clear step-over
6267 info and then always inserting breakpoints, instead of removing
6268 all breakpoints when stepping over one.
6270 2014-03-20 Pedro Alves <palves@redhat.com>
6272 * infrun.c (previous_inferior_ptid): Adjust comment.
6273 (deferred_step_ptid): Delete.
6274 (infrun_thread_ptid_changed, prepare_to_proceed)
6275 (init_wait_for_inferior): Adjust.
6276 (handle_signal_stop): Delete deferred_step_ptid handling.
6278 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6281 * defs.h (sync_quit_force_run): New declaration.
6282 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6283 * event-top.c (async_sigterm_handler): New declaration.
6284 (async_sigterm_token): New variable.
6285 (async_init_signals): Create also async_sigterm_token.
6286 (async_sigterm_handler): New function.
6287 (sync_quit_force_run): New variable.
6288 (handle_sigterm): Replace quit_force call by other calls.
6289 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6291 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6293 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6294 offset into SPE pseudo registers.
6296 2014-03-18 Pedro Alves <palves@redhat.com>
6299 * inferior.h (print_stop_event): Declare.
6300 * infrun.c (print_stop_event): New, factored out from ...
6301 (normal_stop): ... this.
6302 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6303 of bpstat_print/print_stack_frame.
6305 2014-03-17 Tom Tromey <tromey@redhat.com>
6307 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6309 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6311 * ada-lang.c (decode_constrained_packed_array): Perform a
6312 minimal coercion for reference with coerce_ref instead of
6315 2014-03-17 Tristan Gingold <gingold@adacore.com>
6317 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6318 (darwin_solib_create_inferior_hook): Emit a warning if version
6321 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6323 * python/py-value.c (get_field_flag): Cast flag_name argument to
6324 PyObject_GetAttrString to support Python 2.4.
6326 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6329 (Global Maintainers): Remove Jan Kratochvil.
6331 2014-03-14 Pedro Alves <palves@redhat.com>
6333 * inferior.h (terminal_ours_for_output): Rename to ...
6334 (child_terminal_ours_for_output): ... this.
6335 (terminal_save_ours): Rename to ...
6336 (child_terminal_save_ours): ... this.
6337 (terminal_ours): Rename to ...
6338 (child_terminal_ours): ... this.
6339 (terminal_inferior): Rename to ...
6340 (child_terminal_inferior): ... this.
6341 (terminal_init_inferior): Rename to ...
6342 (child_terminal_init_inferior): ... this.
6343 (terminal_init_inferior_with_pgrp): Rename to ...
6344 (child_terminal_init_inferior_with_pgrp): ... this.
6345 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6346 (child_terminal_init_with_pgrp): ... this.
6347 (terminal_save_ours): Rename to ...
6348 (child_terminal_save_ours): ... this.
6349 (terminal_init_inferior): Rename to ...
6350 (child_terminal_init): ... this. Adjust.
6351 (terminal_inferior): Rename to ...
6352 (child_terminal_inferior): ... this.
6353 (terminal_ours_for_output): Rename to ...
6354 (child_terminal_ours_for_output): ... this. Adjust.
6355 (terminal_ours): Rename to ...
6356 (child_terminal_ours): ... this.
6357 (terminal_ours_1): Rename to ...
6358 (child_terminal_ours_1): ... this. Adjust.
6359 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6360 * windows-nat.c (do_initial_windows_stuff): Adjust.
6361 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6362 (gnu_terminal_init): ... this. Adjust.
6363 (gnu_target): Adjust.
6364 * inf-child.c (inf_child_target): Adjust.
6366 2014-03-13 Doug Evans <xdje42@gmail.com>
6369 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6372 2014-03-13 Doug Evans <xdje42@gmail.com>
6374 * value.c (record_latest_value): Call release_value_or_incref
6375 instead of release_value.
6377 2014-03-13 Pedro Alves <palves@redhat.com>
6379 * procfs.c (procfs_target): Don't override to_shortname,
6380 to_longname or to_doc.
6382 2014-03-13 Pedro Alves <palves@redhat.com>
6384 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6385 Unix in user visible strings.
6387 2014-03-12 Stan Shebs <stan@codesourcery.com>
6389 * gdbtypes.h: Annotate comments for Doxygen, add a page
6390 block comment with some general info.
6392 2014-03-12 Pedro Alves <palves@redhat.com>
6394 * infcmd.c (prepare_execution_command): New function, factored out
6395 from several execution commands.
6396 (run_command_1, continue_command, step_1, jump_command)
6397 (signal_command, until_command, advance_command, finish_command)
6398 (attach_command): Use prepare_execution_command.
6400 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6402 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6405 (struct arm_linux_thread_points): Removed.
6406 (struct arm_linux_process_info): New.
6407 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6408 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6409 (arm_linux_find_breakpoints_by_tid): Removed.
6410 (struct arch_lwp_info): New.
6411 (arm_linux_find_process_pid): New functions.
6412 (arm_linux_add_process): New functions.
6413 (arm_linux_process_info_get): New functions.
6414 (arm_linux_forget_process): New function.
6415 (arm_linux_get_debug_reg_state): New function.
6416 (struct update_registers_data): New.
6417 (update_registers_callback): New function.
6418 (arm_linux_insert_hw_breakpoint1): Updated.
6419 (arm_linux_remove_hw_breakpoint1): Updated.
6420 (arm_linux_insert_hw_breakpoint): Updated.
6421 (arm_linux_remove_hw_breakpoint): Updated.
6422 (arm_linux_insert_watchpoint): Updated.
6423 (arm_linux_remove_watchpoint): Updated.
6424 (arm_linux_new_thread): Updated.
6425 (arm_linux_prepare_to_resume): New function.
6426 (arm_linux_new_fork): New function.
6427 (_initialize_arm_linux_nat): Updated.
6429 2014-03-12 Pedro Alves <palves@redhat.com>
6431 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6433 2014-03-12 Tom Tromey <tromey@redhat.com>
6435 * inf-child.c (return_zero): New function.
6436 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6437 * aix-thread.c (aix_thread_inferior_created): New function.
6438 (aix_thread_attach): Remove.
6439 (init_aix_thread_ops): Don't set to_attach.
6440 (_initialize_aix_thread): Register inferior_created observer.
6441 * corelow.c (init_core_ops): Don't set to_attach or
6443 * exec.c (init_exec_ops): Don't set to_attach or
6445 * infcmd.c (run_command_1): Use find_run_target. Make direct
6447 (attach_command): Use find_attach_target. Make direct target
6449 * record-btrace.c (init_record_btrace_ops): Don't set
6451 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6453 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6454 set to_create_inferior.
6455 * target.c (complete_target_initialization): Add assertion.
6456 (target_create_inferior): Remove.
6457 (find_default_attach, find_default_create_inferior): Remove.
6458 (find_attach_target, find_run_target): New functions.
6459 (find_default_is_async_p, find_default_can_async_p)
6460 (target_supports_non_stop, target_attach): Remove.
6461 (init_dummy_target): Don't set to_create_inferior or
6462 to_supports_non_stop.
6463 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6464 TARGET_DEFAULT_FUNC.
6465 <to_create_inferior>: Add comment.
6466 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6467 TARGET_DEFAULT_RETURN.
6468 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6469 (find_attach_target, find_run_target): Declare.
6470 (target_create_inferior): Remove.
6471 (target_has_execution_1): Update comment.
6472 (target_supports_non_stop): Remove.
6473 * target-delegates.c: Rebuild.
6475 2014-03-12 Pedro Alves <palves@redhat.com>
6477 * inf-child.h: Update comment to not mention Unix.
6479 2014-03-12 Pedro Alves <palves@redhat.com>
6481 * inf-child.c: Update top comment to not mention Unix. Add
6482 generic comment describing how this target is meant to be used.
6483 (inf_child_post_attach, inf_child_post_startup_inferior)
6484 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6487 2014-03-12 Pedro Alves <palves@redhat.com>
6489 * nto-procfs.c: Include inf-child.h.
6490 (procfs_ops): Delete global.
6491 (procfs_can_run): Delete method.
6492 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6493 target pointer instead of referencing procfs_ops.
6494 (procfs_prepare_to_store): Delete.
6495 (init_procfs_ops): Delete function.
6496 (procfs_target): New function, based on init_procfs_ops, but
6497 inherit inf_child_target.
6498 (_initialize_procfs): Use procfs_target.
6500 2014-03-12 Pedro Alves <palves@redhat.com>
6502 * windows-nat.c: Include inf-child.h.
6503 (windows_ops): Delete global.
6504 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6506 (init_windows_ops): Delete function.
6507 (windows_target): New function, based on init_windows_ops, but
6508 inherit inf_child_target.
6509 (_initialize_windows_nat): Use windows_target. Install x86
6510 specific target methods here.
6512 2014-03-10 Doug Evans <xdje42@gmail.com>
6514 * guile/guile.c (call_initialize_gdb_module): New function.
6515 (initialize_guile): Replace call to scm_init_guile with call to
6518 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6520 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6521 in call to TYPE_CODE macro.
6523 2014-03-10 Jerome Guitton <guitton@adacore.com>
6525 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6526 Resolve tagged types to full view.
6528 2014-03-10 Hui Zhu <hui@codesourcery.com>
6530 * target.h (target_insert_breakpoint): Remove "hardware" from its
6533 2014-03-07 Doug Evans <dje@google.com>
6535 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6537 2014-03-07 Doug Evans <dje@google.com>
6539 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6540 Remove unused local comp_dir_attr. Assert exactly one of
6541 stub_comp_unit_die, stub_comp_dir is non-NULL.
6543 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6545 * target.h (complete_target_initialization, add_target):
6548 2014-03-07 Pedro Alves <palves@redhat.com>
6550 * go32-nat.c: Include inf-child.h.
6551 (go32_ops): Delete global.
6552 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6554 (go32_create_inferior): Push the passed in target pointer instead
6555 of referencing go32_ops.
6556 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6557 (go32_target): New function, based on init_go32_ops, but inherit
6559 (_initialize_go32_nat): Use go32_target. Move parts of
6562 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6564 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6565 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6566 SYMBOL_VALUE_ADDRESS.
6567 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6569 2014-03-06 Yao Qi <yao@codesourcery.com>
6571 * breakpoint.c (get_tracepoint_by_number): Remove argument
6572 optional_p. All callers updated. Adjust comments. Update
6574 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6576 2014-03-06 Yao Qi <yao@codesourcery.com>
6578 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6579 early if get_number returns zero. Use 'p' instead of 'args'.
6581 2014-03-06 Yao Qi <yao@codesourcery.com>
6583 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6586 2014-03-06 Yao Qi <yao@codesourcery.com>
6588 PR breakpoints/16508
6589 * tracepoint.c (check_trace_running): New function.
6590 (trace_find_command): Move code to check_trace_running and
6591 call check_trace_running.
6592 (trace_find_pc_command): Likewise.
6593 (trace_find_tracepoint_command): Likewise.
6594 (trace_find_line_command): Likewise.
6595 (trace_find_range_command): Likewise.
6596 * tracepoint.h (check_trace_running): Likewise.
6597 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6599 2014-03-06 Yao Qi <yao@codesourcery.com>
6601 * target.h (struct target_ops) <to_traceframe_info>: Use
6602 TARGET_DEFAULT_NORETURN (tcomplain ()).
6603 * target-delegates.c: Regenerated.
6605 2014-03-05 Pedro Alves <palves@redhat.com>
6608 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6609 void. Update comment.
6610 (dcache_xfer_memory): Delete.
6611 (dcache_read_memory_partial): New, based on the read bits of
6613 (dcache_update): Add status parameter. Use ULONGEST for len, and
6614 adjust. Discard cache lines if the reason for the update was
6616 * dcache.h (dcache_xfer_memory): Delete declaration.
6617 (dcache_read_memory_partial): New declaration.
6618 (dcache_update): Update prototype.
6619 * target.c (raw_memory_xfer_partial): Update the dcache here.
6620 (memory_xfer_partial_1): Don't handle dcache writes here.
6622 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6624 * remote-sim.c (gdbsim_load): Add const to prog.
6626 2014-03-03 Tom Tromey <tromey@redhat.com>
6628 * elfread.c (probe_key): Change to bfd_data.
6629 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6630 now per-BFD, not per-objfile.
6631 * stap-probe.c (stap_probe_destroy): Update comment.
6632 (handle_stap_probe): Allocate on the per-BFD obstack.
6634 2014-03-03 Tom Tromey <tromey@redhat.com>
6636 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6637 * breakpoint.c (create_longjmp_master_breakpoint): Use
6639 (add_location_to_breakpoint, bkpt_probe_insert_location)
6640 (bkpt_probe_remove_location): Update.
6641 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6642 * elfread.c (elf_symfile_relocate_probe): Remove.
6643 (elf_probe_fns): Update.
6644 (insert_exception_resume_breakpoint): Change type of "probe"
6645 parameter to bound_probe.
6646 (check_exception_resume): Update.
6647 * objfiles.c (objfile_relocate1): Don't relocate probes.
6648 * probe.c (bound_probe_s): New typedef.
6649 (parse_probes): Use get_probe_address. Set sal's objfile.
6650 (find_probe_by_pc): Return a bound_probe.
6651 (collect_probes): Return a VEC(bound_probe_s).
6652 (compare_probes): Update.
6653 (gen_ui_out_table_header_info): Change type of "probes"
6655 (info_probes_for_ops): Update.
6656 (get_probe_address): New function.
6657 (probe_safe_evaluate_at_pc): Update.
6658 * probe.h (struct probe_ops) <get_probe_address>: New field.
6659 <set_semaphore, clear_semaphore>: Add objfile parameter.
6660 (struct probe) <objfile>: Remove field.
6662 <address>: Update comment.
6663 (struct bound_probe): New.
6664 (find_probe_by_pc): Return a bound_probe.
6665 (get_probe_address): Declare.
6666 * solib-svr4.c (struct probe_and_action) <address>: New field.
6667 (hash_probe_and_action, equal_probe_and_action): Update.
6668 (register_solib_event_probe): Add address parameter.
6669 (solib_event_probe_at): Update.
6670 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6672 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6673 (stap_get_probe_address): New function.
6674 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6675 (compile_probe_arg): Update.
6676 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6678 (handle_stap_probe): Don't relocate the probe.
6679 (stap_relocate): Remove.
6680 (stap_gen_info_probes_table_values): Update.
6681 (stap_probe_ops): Remove stap_relocate.
6682 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6683 (debug_sym_probe_fns): Update.
6684 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6685 * symtab.c (init_sal): Use memset.
6686 * symtab.h (struct symtab_and_line) <objfile>: New field.
6687 * tracepoint.c (start_tracing, stop_tracing): Update.
6689 2014-03-03 Tom Tromey <tromey@redhat.com>
6691 * probe.h (parse_probes, find_probe_by_pc)
6692 (find_probes_in_objfile): Fix comments.
6694 2014-03-02 Doug Evans <xdje42@gmail.com>
6696 * infrun.c (handle_signal_stop): Replace test for
6697 TARGET_WAITKIND_STOPPED with an assert.
6699 2014-03-02 Doug Evans <xdje42@gmail.com>
6701 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6703 2014-03-02 Doug Evans <xdje42@gmail.com>
6705 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6707 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6709 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6711 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6713 * i386obsd-nat.c: Include "obsd-nat.h".
6714 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6716 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6718 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6720 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6722 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6724 * mips64obsd-nat.c: Include "obsd-nath".
6725 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6727 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6729 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6731 * amd64obsd-nat.c: Include "obsd-nat,h.
6732 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6734 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6736 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6738 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6739 (find_overload_match): Update call to find_oload_champ.
6740 (find_oload_champ_namespace_loop): Likewise
6742 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6744 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6746 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6747 * config/sparc/obsd64.mh: New file.
6748 * sparc64obsd-nat.c: New file.
6750 * obsd-nat.h: New file.
6751 * obsd-nat.c: New file.
6752 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6753 (ALLDEPFILES): Add obsd-nat.c.
6755 2014-02-28 Tom Tromey <tromey@redhat.com>
6757 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6758 * cli-out.h (cli_ui_out_impl): Now const.
6759 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6760 * ui-out.c (struct ui_out) <impl>: Now const.
6761 (default_ui_out_impl): Now const.
6762 (ui_out_new): Make 'impl' parameter const.
6763 * ui-out.h (ui_out_new): Update.
6765 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6767 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6769 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6771 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6773 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6775 Additional PR 8882 fix.
6776 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6778 2014-02-27 Pedro Alves <palves@redhat.com>
6780 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6783 2014-02-27 Pedro Alves <palves@redhat.com>
6786 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6787 * nat/linux-waitpid.c: Include string.h.
6788 (status_to_str): Moved here and made extern.
6789 * nat/linux-waitpid.h (status_to_str): New declaration.
6791 2014-02-27 Hui Zhu <hui@codesourcery.com>
6794 * infrun.c (ptid_match): Move ...
6795 * common/ptid.c (ptid_match): ... here.
6796 * inferior.h (ptid_match): Move ...
6797 * common/ptid.h (ptid_match): ... here.
6799 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6801 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6802 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6805 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6807 * obsd-tdep.c (obsd_auxv_parse): New function.
6808 (obsd_init_abi): Set auxv_parse.
6810 * gdbarch.sh (auxv_parse): New.
6811 * gdbarch.h: Regenerated.
6812 * gdbarch.c: Regenerated.
6813 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6815 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6817 * guile/scm-value.c (gdbscm_history_append_x): New function.
6818 (value_functions): Add it.
6820 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6822 * dwarf2read.c (attr_value_as_address): New function.
6823 (dwarf2_find_base_address, read_call_site_scope): Use
6824 attr_value_as_address in place of DW_ADDR.
6825 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6826 the low and high addresses. Slight rework of the handling
6827 of the high pc being a constant form, and limit it to
6828 DWARF verson 4 or higher.
6829 (dwarf2_record_block_ranges): Likewise.
6830 (read_partial_die): Likewise.
6831 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6833 2014-02-26 Tom Tromey <tromey@redhat.com>
6835 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6837 2014-02-26 Tom Tromey <tromey@redhat.com>
6839 * elfread.c (elf_read_minimal_symbols): Return early if
6840 minimal symbols have already been read. Add "ei" parameter.
6841 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6842 * minsyms.c (prim_record_minimal_symbol_full): Update.
6843 * objfiles.h (struct objstats) <n_minsyms>: Move...
6844 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6845 * symmisc.c (print_objfile_statistics): Update.
6847 2014-02-26 Tom Tromey <tromey@redhat.com>
6849 * elfread.c (elf_read_minimal_symbols): New function, from
6851 (elf_symfile_read): Call it.
6853 2014-02-26 Tom Tromey <tromey@redhat.com>
6855 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6856 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6857 (lookup_minimal_symbol_solib_trampoline)
6858 (lookup_minimal_symbol_by_pc_section_1)
6859 (lookup_minimal_symbol_and_objfile): Update.
6860 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6861 Don't allocate a minimal symbol if minsyms have already been read.
6862 (build_minimal_symbol_hash_tables): Update.
6863 (install_minimal_symbols): Do nothing if minsyms already read.
6864 Use the per-BFD obstack.
6865 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6866 * objfiles.c (allocate_objfile): Call
6867 terminate_minimal_symbol_table later.
6868 (have_minimal_symbols): Update.
6869 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6870 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6871 Move from struct objfile.
6872 <minsyms_read>: New field.
6873 (struct objfile) <msymbols, minimal_symbol_count,
6874 msymbol_hash, msymbol_demangled_hash>: Move.
6875 (ALL_OBJFILE_MSYMBOLS): Update.
6876 * symfile.c (read_symbols): Set minsyms_read.
6877 (reread_symbols): Update.
6878 * symmisc.c (dump_objfile, dump_msymbols): Update.
6880 2014-02-26 Tom Tromey <tromey@redhat.com>
6882 * minsyms.c (msymbols_sort): Remove.
6883 * minsyms.h (msymbols_sort): Remove.
6884 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6885 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6886 * elfread.c (elf_symtab_read): Don't add section offsets.
6887 * xcoffread.c (record_minimal_symbol): Don't add section offset
6888 to minimal symbol address.
6889 * somread.c (text_offset, data_offset): Remove.
6890 (som_symtab_read): Don't add section offsets to minimal symbol
6892 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6893 Don't add section offsets to minimal symbols.
6894 * coffread.c (coff_symtab_read): Don't add section offsets
6895 to minimal symbol addresses.
6896 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6897 to minimal symbol addresses.
6898 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6899 section offset to minimal symbol addresses.
6900 * mdebugread.c (parse_partial_symbols): Don't add section
6901 offset to minimal symbol addresses.
6902 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6903 offset to minimal symbol addresses.
6905 2014-02-26 Tom Tromey <tromey@redhat.com>
6907 * ada-lang.c (ada_main_name): Update.
6908 (ada_add_standard_exceptions): Update.
6909 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6910 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6911 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6912 * auxv.c (ld_so_xfer_auxv): Update.
6913 * avr-tdep.c (avr_scan_prologue): Update.
6914 * ax-gdb.c (gen_var_ref): Update.
6915 * blockframe.c (get_pc_function_start)
6916 (find_pc_partial_function_gnu_ifunc): Update.
6917 * breakpoint.c (create_overlay_event_breakpoint)
6918 (create_longjmp_master_breakpoint)
6919 (create_std_terminate_master_breakpoint)
6920 (create_exception_master_breakpoint): Update.
6921 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6922 * c-valprint.c (c_val_print): Update.
6923 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6924 * common/agent.c (agent_look_up_symbols): Update.
6925 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6926 * dwarf2loc.c (call_site_to_target_addr): Update.
6927 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6928 * elfread.c (elf_gnu_ifunc_record_cache)
6929 (elf_gnu_ifunc_resolve_by_got): Update.
6930 * findvar.c (default_read_var_value): Update.
6931 * frame.c (inside_main_func): Update.
6932 * frv-tdep.c (frv_frame_this_id): Update.
6933 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6934 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6936 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6937 (hppa_hpux_find_dummy_bpaddr): Update.
6938 * hppa-tdep.c (hppa_symbol_address): Update.
6939 * infcmd.c (until_next_command): Update.
6940 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6942 * linespec.c (minsym_found, add_minsym): Update.
6943 * linux-nat.c (get_signo): Update.
6944 * linux-thread-db.c (inferior_has_bug): Update.
6945 * m32c-tdep.c (m32c_return_value)
6946 (m32c_m16c_address_to_pointer): Update.
6947 * m32r-tdep.c (m32r_frame_this_id): Update.
6948 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6949 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6950 * maint.c (maintenance_translate_address): Update.
6951 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6952 (frob_address): New function.
6953 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6954 frob_address. Rename parameter to "pc_in".
6955 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6957 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6959 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6960 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6961 * objc-lang.c (find_objc_msgsend): Update.
6962 * objfiles.c (objfile_relocate1): Update.
6963 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6964 * p-valprint.c (pascal_val_print): Update.
6965 * parse.c (write_exp_msymbol): Update.
6966 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6967 (ppc_elfv2_skip_entrypoint): Update.
6968 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6969 * printcmd.c (build_address_symbolic, msym_info)
6970 (address_info): Update.
6971 * proc-service.c (ps_pglobal_lookup): Update.
6972 * psymtab.c (find_pc_sect_psymtab_closer)
6973 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6974 Change msymbol parameter to bound_minimal_symbol.
6975 * ravenscar-thread.c (get_running_thread_id): Update.
6976 * remote.c (remote_check_symbols): Update.
6977 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6979 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6980 * solib-dsbt.c (lm_base): Update.
6981 * solib-frv.c (lm_base, main_got): Update.
6982 * solib-irix.c (locate_base): Update.
6983 * solib-som.c (som_solib_create_inferior_hook)
6984 (link_map_start): Update.
6985 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6986 * solib-svr4.c (elf_locate_base, enable_break): Update.
6987 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6988 (flush_ea_cache): Update.
6989 * stabsread.c (define_symbol, scan_file_globals): Update.
6990 * stack.c (find_frame_funname): Update.
6991 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6992 (debug_qf_find_pc_sect_symtab): Update.
6993 * symfile.c (simple_read_overlay_table)
6994 (simple_overlay_update): Update.
6995 * symfile.h (struct quick_symbol_functions)
6996 <find_pc_sect_symtab>: Change type of msymbol to
6997 bound_minimal_symbol.
6998 * symmisc.c (dump_msymbols): Update.
6999 * symtab.c (find_pc_sect_symtab_via_partial)
7000 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7001 (search_symbols, print_msymbol_info): Update.
7002 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7003 (MSYMBOL_VALUE_ADDRESS): Redefine.
7004 (BMSYMBOL_VALUE_ADDRESS): New macro.
7005 * tracepoint.c (scope_info): Update.
7006 * tui/tui-disasm.c (tui_find_disassembly_address)
7007 (tui_get_begin_asm_address): Update.
7008 * valops.c (find_function_in_inferior): Update.
7009 * value.c (value_static_field, value_fn_field): Update.
7011 2014-02-26 Tom Tromey <tromey@redhat.com>
7013 * ada-lang.c (ada_update_initial_language): Update.
7014 (ada_main_name, ada_has_this_exception_support): Update.
7015 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7016 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7017 * arm-tdep.c (arm_skip_stub): Update.
7018 * auxv.c (ld_so_xfer_auxv): Update.
7019 * avr-tdep.c (avr_scan_prologue): Update.
7020 * ax-gdb.c (gen_var_ref): Update.
7021 * breakpoint.c (struct breakpoint_objfile_data)
7022 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7023 type to bound_minimal_symbol.
7024 (create_overlay_event_breakpoint)
7025 (create_longjmp_master_breakpoint)
7026 (create_std_terminate_master_breakpoint)
7027 (create_exception_master_breakpoint): Update.
7028 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7029 * c-exp.y (classify_name): Update.
7030 * coffread.c (coff_symfile_read): Update.
7031 * common/agent.c (agent_look_up_symbols): Update.
7032 * d-lang.c (d_main_name): Update.
7033 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7034 * dec-thread.c (enable_dec_thread): Update.
7035 * dwarf2loc.c (call_site_to_target_addr): Update.
7036 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7037 * eval.c (evaluate_subexp_standard): Update.
7038 * findvar.c (struct minsym_lookup_data) <result>: Change type
7039 to bound_minimal_symbol.
7041 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7042 * frame.c (inside_main_func): Update.
7043 * frv-tdep.c (frv_frame_this_id): Update.
7044 * gcore.c (call_target_sbrk): Update.
7045 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7046 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7048 * go-lang.c (go_main_name): Update.
7049 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7050 (hppa_hpux_find_import_stub_for_addr): Update.
7051 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7052 Update. Change return type.
7053 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7055 * jit.c (jit_breakpoint_re_set_internal): Update.
7056 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7058 * linux-nat.c (get_signo): Update.
7059 * linux-thread-db.c (inferior_has_bug): Update
7060 * m32c-tdep.c (m32c_return_value)
7061 (m32c_m16c_address_to_pointer): Update.
7062 * m32r-tdep.c (m32r_frame_this_id): Update.
7063 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7064 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7065 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7066 lookup_minimal_symbol. Change return type.
7067 (lookup_minimal_symbol): Remove.
7068 (lookup_bound_minimal_symbol): Update.
7069 (lookup_minimal_symbol_text): Change return type.
7070 (lookup_minimal_symbol_solib_trampoline): Change return type.
7071 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7072 (lookup_minimal_symbol_solib_trampoline): Change return type.
7073 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7074 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7075 (value_nsstring, find_imps): Update.
7076 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7077 * p-lang.c (pascal_main_name): Update.
7078 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7079 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7080 * proc-service.c (ps_pglobal_lookup): Update.
7081 * ravenscar-thread.c (get_running_thread_msymbol): Change
7083 (has_ravenscar_runtime, get_running_thread_id): Update.
7084 * remote.c (remote_check_symbols): Update.
7085 * sol-thread.c (ps_pglobal_lookup): Update.
7086 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7087 * solib-dsbt.c (lm_base): Update.
7088 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7090 * solib-irix.c (locate_base): Update.
7091 * solib-som.c (som_solib_create_inferior_hook)
7092 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7094 * solib-spu.c (spu_enable_break): Update.
7095 * solib-svr4.c (elf_locate_base, enable_break): Update.
7096 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7097 (flush_ea_cache): Update.
7098 * stabsread.c (define_symbol): Update.
7099 * symfile.c (simple_read_overlay_table): Update.
7100 * symtab.c (find_pc_sect_line): Update.
7101 * tracepoint.c (scope_info): Update.
7102 * tui-disasm.c (tui_get_begin_asm_address): Update.
7103 * value.c (value_static_field): Update.
7105 2014-02-26 Tom Tromey <tromey@redhat.com>
7107 * minsyms.c (prim_record_minimal_symbol_full): Use
7108 SET_MSYMBOL_VALUE_ADDRESS.
7109 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7110 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7111 SET_MSYMBOL_VALUE_ADDRESS.
7112 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7113 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7115 2014-02-26 Tom Tromey <tromey@redhat.com>
7117 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7118 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7119 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7120 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7121 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7122 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7123 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7124 * ada-lang.c (ada_main_name): Update.
7125 (ada_lookup_simple_minsym): Update.
7126 (ada_make_symbol_completion_list): Update.
7127 (ada_add_standard_exceptions): Update.
7128 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7129 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7130 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7131 * arm-tdep.c (skip_prologue_function): Update.
7132 (arm_skip_stack_protector, arm_skip_stub): Update.
7133 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7134 (arm_wince_skip_main_prologue): Update.
7135 * auxv.c (ld_so_xfer_auxv): Update.
7136 * avr-tdep.c (avr_scan_prologue): Update.
7137 * ax-gdb.c (gen_var_ref): Update.
7138 * block.c (call_site_for_pc): Update.
7139 * blockframe.c (get_pc_function_start): Update.
7140 (find_pc_partial_function_gnu_ifunc): Update.
7141 * breakpoint.c (create_overlay_event_breakpoint): Update.
7142 (create_longjmp_master_breakpoint): Update.
7143 (create_std_terminate_master_breakpoint): Update.
7144 (create_exception_master_breakpoint): Update.
7145 (resolve_sal_pc): Update.
7146 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7147 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7149 * c-valprint.c (c_val_print): Update.
7150 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7151 * coffread.c (coff_symfile_read): Update.
7152 * common/agent.c (agent_look_up_symbols): Update.
7153 * dbxread.c (find_stab_function_addr): Update.
7154 (end_psymtab): Update.
7155 * dwarf2loc.c (call_site_to_target_addr): Update.
7156 (func_verify_no_selftailcall): Update.
7157 (tailcall_dump): Update.
7158 (call_site_find_chain_1): Update.
7159 (dwarf_expr_reg_to_entry_parameter): Update.
7160 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7161 (elf_gnu_ifunc_resolve_by_got): Update.
7162 * f-valprint.c (info_common_command): Update.
7163 * findvar.c (read_var_value): Update.
7164 * frame.c (get_prev_frame_1): Update.
7165 (inside_main_func): Update.
7166 * frv-tdep.c (frv_skip_main_prologue): Update.
7167 (frv_frame_this_id): Update.
7168 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7169 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7170 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7171 (gnuv3_skip_trampoline): Update.
7172 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7173 (hppa64_hpux_in_solib_call_trampoline): Update.
7174 (hppa_hpux_skip_trampoline_code): Update.
7175 (hppa64_hpux_search_dummy_call_sequence): Update.
7176 (hppa_hpux_find_import_stub_for_addr): Update.
7177 (hppa_hpux_find_dummy_bpaddr): Update.
7178 * hppa-tdep.c (hppa_symbol_address)
7179 (hppa_lookup_stub_minimal_symbol): Update.
7180 * i386-tdep.c (i386_skip_main_prologue): Update.
7181 (i386_pe_skip_trampoline_code): Update.
7182 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7183 * infcall.c (get_function_name): Update.
7184 * infcmd.c (until_next_command): Update.
7185 * jit.c (jit_breakpoint_re_set_internal): Update.
7186 (jit_inferior_init): Update.
7187 * linespec.c (minsym_found): Update.
7188 (add_minsym): Update.
7189 * linux-fork.c (info_checkpoints_command): Update.
7190 * linux-nat.c (get_signo): Update.
7191 * linux-thread-db.c (inferior_has_bug): Update.
7192 * m32c-tdep.c (m32c_return_value): Update.
7193 (m32c_m16c_address_to_pointer): Update.
7194 (m32c_m16c_pointer_to_address): Update.
7195 * m32r-tdep.c (m32r_frame_this_id): Update.
7196 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7197 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7198 * maint.c (maintenance_translate_address): Update.
7199 * minsyms.c (add_minsym_to_hash_table): Update.
7200 (add_minsym_to_demangled_hash_table): Update.
7201 (msymbol_objfile): Update.
7202 (lookup_minimal_symbol): Update.
7203 (iterate_over_minimal_symbols): Update.
7204 (lookup_minimal_symbol_text): Update.
7205 (lookup_minimal_symbol_by_pc_name): Update.
7206 (lookup_minimal_symbol_solib_trampoline): Update.
7207 (lookup_minimal_symbol_by_pc_section_1): Update.
7208 (lookup_minimal_symbol_and_objfile): Update.
7209 (prim_record_minimal_symbol_full): Update.
7210 (compare_minimal_symbols): Update.
7211 (compact_minimal_symbols): Update.
7212 (build_minimal_symbol_hash_tables): Update.
7213 (install_minimal_symbols): Update.
7214 (terminate_minimal_symbol_table): Update.
7215 (find_solib_trampoline_target): Update.
7216 (minimal_symbol_upper_bound): Update.
7217 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7218 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7219 (mips_skip_pic_trampoline_code): Update.
7220 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7221 * objc-lang.c (selectors_info): Update.
7222 (classes_info): Update.
7223 (find_methods): Update.
7224 (find_imps): Update.
7225 (find_objc_msgsend): Update.
7226 * objfiles.c (objfile_relocate1): Update.
7227 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7228 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7229 * p-valprint.c (pascal_val_print): Update.
7230 * parse.c (write_exp_msymbol): Update.
7231 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7232 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7233 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7234 * printcmd.c (build_address_symbolic): Update.
7236 (address_info): Update.
7237 * proc-service.c (ps_pglobal_lookup): Update.
7238 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7239 (find_pc_sect_psymtab): Update.
7240 * python/py-framefilter.c (py_print_frame): Update.
7241 * ravenscar-thread.c (get_running_thread_id): Update.
7242 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7244 * remote.c (remote_check_symbols): Update.
7245 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7246 (rs6000_skip_trampoline_code): Update.
7247 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7248 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7249 * solib-dsbt.c (lm_base): Update.
7250 * solib-frv.c (lm_base): Update.
7252 * solib-irix.c (locate_base): Update.
7253 * solib-som.c (som_solib_create_inferior_hook): Update.
7254 (som_solib_desire_dynamic_linker_symbols): Update.
7255 (link_map_start): Update.
7256 * solib-spu.c (spu_enable_break): Update.
7257 (ocl_enable_break): Update.
7258 * solib-svr4.c (elf_locate_base): Update.
7259 (enable_break): Update.
7260 * spu-tdep.c (spu_get_overlay_table): Update.
7261 (spu_catch_start): Update.
7262 (flush_ea_cache): Update.
7263 * stabsread.c (define_symbol): Update.
7264 (scan_file_globals): Update.
7265 * stack.c (find_frame_funname): Update.
7266 (frame_info): Update.
7267 * symfile.c (simple_read_overlay_table): Update.
7268 (simple_overlay_update): Update.
7269 * symmisc.c (dump_msymbols): Update.
7270 * symtab.c (fixup_section): Update.
7271 (find_pc_sect_line): Update.
7272 (skip_prologue_sal): Update.
7273 (search_symbols): Update.
7274 (print_msymbol_info): Update.
7275 (rbreak_command): Update.
7276 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7277 (completion_list_objc_symbol): Update.
7278 (default_make_symbol_completion_list_break_on): Update.
7279 * tracepoint.c (scope_info): Update.
7280 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7281 (tui_get_begin_asm_address): Update.
7282 * valops.c (find_function_in_inferior): Update.
7283 * value.c (value_static_field): Update.
7284 (value_fn_field): Update.
7286 2014-02-26 Tom Tromey <tromey@redhat.com>
7288 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7289 bound minimal symbols. Move code that knows about minsym
7291 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7293 * minsyms.h (minimal_symbol_upper_bound): Declare.
7294 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7295 minimal_symbol_upper_bound.
7297 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7299 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7300 Use the type's name if its basic type does not have a tag.
7302 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7304 * dwarf2read.c (read_subrange_type): Add comment.
7306 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7308 * dwarf2read.c (update_enumeration_type_from_children): New
7309 function, mostly extracted from process_structure_scope.
7310 (read_enumeration_type): Call update_enumeration_type_from_children.
7311 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7312 and flag_flag_enum fields.
7314 2014-02-26 Pedro Alves <palves@redhat.com>
7316 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7317 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7318 to_xfer_partial method.
7320 2014-02-26 Pedro Alves <palves@redhat.com>
7322 * target.c (complete_target_initialization): Don't install
7323 default_xfer_partial as to_xfer_partial hook.
7325 (update_current_target): Don't INHERIT nor de_fault
7326 deprecated_xfer_memory. Delete de_fault macro.
7327 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7328 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7329 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7332 2014-02-26 Pedro Alves <palves@redhat.com>
7334 * go32-nat.c (my_write_child): New function.
7335 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7336 (go32_xfer_partial): New function.
7337 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7338 Instead install a to_xfer_partial hook.
7340 2014-02-26 Pedro Alves <palves@redhat.com>
7342 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7343 to_xfer_partial helper. Rewrite.
7344 (procfs_xfer_partial): New function.
7345 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7346 Install a to_xfer_partial hook.
7348 2014-02-26 Pedro Alves <palves@redhat.com>
7350 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7351 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7352 (m32r_xfer_partial): New function.
7353 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7354 Install a to_xfer_partial hook.
7356 2014-02-26 Pedro Alves <palves@redhat.com>
7358 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7360 (mips_xfer_partial): New function.
7361 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7362 hook. Install a to_xfer_partial hook.
7364 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7366 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7367 * gdbtypes.c (create_array_type_with_stride): New function,
7368 renaming create_array_type, but with an added parameter
7369 called "bit_stride".
7370 (create_array_type): Re-implement using
7371 create_array_type_with_stride.
7372 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7373 and DW_AT_bit_stride attributes.
7375 2014-02-26 Pedro Alves <palves@redhat.com>
7377 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7378 task-specific breakpoints.
7380 2014-02-25 Pedro Alves <palves@redhat.com>
7382 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7383 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7385 2014-02-25 Stan Shebs <stan@codesourcery.com>
7387 * defs.h: Annotate comments for Doxygen.
7389 2014-02-25 Tom Tromey <tromey@redhat.com>
7391 * target.h (target_ignore): Don't declare.
7392 * target.c (target_ignore): Remove.
7394 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7397 * auto-load.c (auto_load_objfile_script_1): Change filename to
7400 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7402 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7403 documentation. Adjust prototype to match the target_ops
7404 to_xfer_partial method. Adjust implementation accordingly.
7406 2014-02-25 Hui Zhu <hui@codesourcery.com>
7408 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7411 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7413 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7414 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7415 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7416 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7417 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7418 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7419 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7420 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7422 (rl78_register_type): Use a data pointer type for SP and
7423 new pseudo registers mentioned above. Use a 16 bit integer
7424 type for all other register pairs.
7425 (rl78_register_name, rl78_g10_register_name): Update for
7426 new pseudo registers.
7427 (rl78_pseudo_register_read): Likewise.
7428 (rl78_pseudo_register_write): Likewise.
7429 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7430 to the newly added pseudo registers.
7432 2014-02-24 Doug Evans <dje@google.com>
7434 * value.c (record_latest_value): Fix comment.
7435 * printcmd.c (print_command_1): Remove code to handle -1 return from
7436 record_latest_value.
7438 2014-02-24 Pedro Alves <palves@redhat.com>
7440 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7441 deprecated_xfer_memory hook.
7442 (procfs_xfer_partial): Call procfs_xfer_memory instead
7443 of the deprecated_xfer_memory target hook.
7444 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7447 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7449 * windows-nat.c (windows_xfer_shared_libraries): Return
7450 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7451 requested object is TARGET_OBJECT_LIBRARIES.
7453 2014-02-24 Yao Qi <yao@codesourcery.com>
7455 * target.h (enum target_xfer_status)
7456 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7457 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7459 * corefile.c (memory_error_message): User updated.
7460 * exec.c (section_table_read_available_memory): Likewise.
7461 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7462 * target.c (target_xfer_status_to_string): Likewise.
7463 (raw_memory_xfer_partial): Likewise.
7464 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7465 * valops.c (read_value_memory): Likewise.
7466 * exec.h: Update comments.
7468 2014-02-24 Yao Qi <yao@codesourcery.com>
7470 * target.c (target_xfer_status_to_string): Rename argument err
7472 * target.h (target_xfer_status_to_string): Update declaration.
7473 Replace target_xfer_error_to_string with
7474 target_xfer_status_to_string in comment.
7476 2014-02-24 Yao Qi <yao@codesourcery.com>
7478 * mips-linux-nat.c (super_close): Update its type.
7479 (mips_linux_close): Pass 'self' to super_close.
7481 2014-02-24 Yao Qi <yao@codesourcery.com>
7483 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7484 * corefile.c (read_memory): Adjusted.
7485 * target.c (target_write_with_progress): Adjusted.
7487 2014-02-23 Yao Qi <yao@codesourcery.com>
7491 2013-10-25 Yao Qi <yao@codesourcery.com>
7493 * remote.c (remote_traceframe_info): Return early if
7494 traceframe is not selected.
7496 2013-07-19 Yao Qi <yao@codesourcery.com>
7498 * target.c (update_current_target): Change the default action
7499 of 'to_traceframe_info' from tcomplain to return_zero.
7500 * target.h (struct target_ops) <to_traceframe_info>: Add more
7503 2014-02-23 Yao Qi <yao@codesourcery.com>
7505 * valops.c (read_value_memory): Rewrite it. Call
7506 target_xfer_partial in a loop.
7507 * exec.h (section_table_available_memory): Remove declaration.
7508 Move comments to ...
7509 * exec.c (section_table_available_memory): ... here. Make it
7512 2014-02-23 Yao Qi <yao@codesourcery.com>
7514 * exec.c (section_table_read_available_memory): New function.
7515 * exec.h (section_table_read_available_memory): Declare.
7516 * ctf.c (ctf_xfer_partial): Call
7517 section_table_read_available_memory.
7518 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7520 2014-02-23 Yao Qi <yao@codesourcery.com>
7522 * ctf.c (ctf_xfer_partial): Move code to ...
7523 * exec.c (exec_read_partial_read_only): ... it. New function.
7524 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7525 * tracefile.c: Include "exec.h".
7526 * exec.h (exec_read_partial_read_only): Declare.
7528 2014-02-23 Yao Qi <yao@codesourcery.com>
7530 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7531 (tfile_has_memory): Remove.
7532 (init_tfile_ops): Don't set fields to_has_all_memory and
7533 to_has_memory of tfile_ops.
7534 * tracefile.c (tracefile_has_all_memory): New function.
7535 (tracefile_has_memory): New function.
7536 (init_tracefile_ops): Initialize fields to_has_all_memory and
7537 to_has_memory of 'ops'.
7539 2014-02-23 Yao Qi <yao@codesourcery.com>
7541 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7542 (ctf_thread_alive, ctf_get_trace_status): Remove.
7543 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7545 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7546 (tfile_has_stack, tfile_has_registers): Remove.
7547 (tfile_thread_alive): Remove.
7548 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7550 * tracefile.c (tracefile_has_stack): New function.
7551 (tracefile_has_registers): New function.
7552 (tracefile_thread_alive): New function.
7553 (tracefile_get_trace_status): New function.
7554 (init_tracefile_ops): New function.
7555 * tracefile.h (init_tracefile_ops): Declare.
7557 2014-02-23 Yao Qi <yao@codesourcery.com>
7559 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7560 (O_LARGEFILE): Likewise.
7561 (tfile_ops): Likewise.
7562 (TRACE_HEADER_SIZE): Likewise.
7563 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7564 (cur_data_size): Likewise.
7565 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7566 (tfile_close, tfile_files_info): Likewise.
7567 (tfile_get_trace_status): Likewise.
7568 (tfile_get_tracepoint_status): Likewise.
7569 (tfile_get_traceframe_address): Likewise.
7570 (tfile_trace_find, match_blocktype): Likewise.
7571 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7572 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7573 (tfile_get_trace_state_variable_value): Likewise.
7574 (tfile_has_all_memory, tfile_has_memory): Likewise.
7575 (tfile_has_stack, tfile_has_registers): Likewise.
7576 (tfile_thread_alive, build_traceframe_info): Likewise.
7577 (tfile_traceframe_info, init_tfile_ops): Likewise.
7578 (_initialize_tracepoint): Don't call init_tfile_ops
7579 and add_target_with_completer.
7580 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7581 exec.h, completer.h and filenames.h.
7582 (_initialize_tracefile_tfile): New function.
7584 2014-02-23 Yao Qi <yao@codesourcery.com>
7586 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7588 (HFILES_NO_SRCDIR): Add tracefile.h.
7589 * ctf.c: Include "tracefile.h".
7590 * tracefile.h: New file.
7591 * tracefile.c: New file
7592 * tracefile-tfile.c: New file.
7593 * tracepoint.c: Include "tracefile.h".
7594 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7595 (stop_reason_names): Add const.
7596 (trace_file_writer_xfree): Move it to tracefile.c.
7597 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7598 (trace_save_ctf): Likewise.
7599 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7600 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7601 (tfile_write_header, tfile_write_regblock_type): Likewise.
7602 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7603 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7604 (tfile_write_raw_data, tfile_end): Likewise.
7605 (tfile_trace_file_writer_new): Likewise.
7606 (free_uploaded_tp): Make it extern.
7607 (free_uploaded_tsv): Make it extern.
7608 (_initialize_tracepoint): Move code to register command 'tsave'
7610 * tracepoint.h (stop_reason_names): Declare.
7611 (struct trace_frame_write_ops): Move it to tracefile.h.
7612 (struct trace_file_write_ops): Likewise.
7613 (struct trace_file_writer): Likewise.
7614 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7616 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7619 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7621 (get_cores_used_by_process): New parameter num_cores, use it.
7622 (linux_xfer_osdata_processes): Pass num_cores to it.
7623 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7626 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7628 * target.c (memory_xfer_partial): Fix length arg in call to
7629 breakpoint_xfer_memory.
7631 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7634 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7635 number comes after the + or - signs. Adjust length of register
7636 name to be extracted.
7638 2014-02-20 Tom Tromey <tromey@redhat.com>
7640 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7641 (ada_varobj_ops): Mark "extern".
7643 2014-02-20 Tom Tromey <tromey@redhat.com>
7645 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7647 2014-02-20 Doug Evans <xdje42@gmail.com>
7649 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7650 All callers updated.
7651 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7652 All callers updated.
7653 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7654 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7656 2014-02-20 lin zuojian <manjian2006@gmail.com>
7657 Joel Brobecker <brobecker@adacore.com>
7658 Doug Evans <xdje42@gmail.com>
7661 * dwarf2read.c (struct die_info): New member in_process.
7662 (reset_die_in_process): New function.
7663 (process_die): Set it at the start, reset when returning.
7664 (inherit_abstract_dies): Only call process_die if origin_child_die
7665 not already being processed.
7667 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7669 * windows-nat.c (handle_unload_dll): Add function documentation.
7670 (do_initial_windows_stuff): Add comment explaining why we wait
7671 until after inferior initialization has finished before
7672 processing all DLLs.
7674 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7676 * windows-nat.c (get_module_name): Delete.
7677 (windows_get_exec_module_filename): New function, mostly
7678 inspired from get_module_name.
7679 (windows_pid_to_exec_file): Replace call to get_module_name
7680 by call to windows_get_exec_module_filename.
7682 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7684 * windows-nat.c (handle_load_dll): Rewrite this function's
7685 introductory comment. Remove code using get_module_name
7686 to get the DLL's name.
7688 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7690 * windows-nat.c (get_windows_debug_event): Ignore
7691 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7692 if windows_initialization_done == 0.
7693 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7694 Adjust implementation to always load all DLLs.
7695 (do_initial_windows_stuff): Replace call to
7696 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7698 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7700 * windows-nat.c (_initialize_windows_nat): Deprecate the
7701 "dll-symbols" command. Turn the "add-shared-symbol-files"
7702 and "assf" aliases into commands, and deprecate them as well.
7703 * NEWS: Add entry explaining that "dll-symbols" and its two
7704 aliases are now deprecated.
7706 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7708 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7709 new-line in debug string. Remove trailing spaces.
7711 2014-02-19 Stan Shebs <stan@codesourcery.com>
7713 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7715 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7717 * NEWS: Add entry for the new feature
7718 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7721 2014-02-19 Stan Shebs <stan@codesourcery.com>
7723 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7725 2014-02-19 Pedro Alves <palves@redhat.com>
7727 * common/ptid.h (struct ptid): Mention that process_stratum
7728 targets should prefer ptid.lwp.
7730 2014-02-19 Pedro Alves <palves@redhat.com>
7732 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7733 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7734 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7735 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7736 store remote thread ids rather than ptid.tid.
7737 (_initialize_remote): Adjust.
7739 2014-02-19 Tom Tromey <tromey@redhat.com>
7741 * target.c (target_get_unwinder): Rewrite.
7742 (target_get_tailcall_unwinder): Rewrite.
7743 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7744 (record_btrace_to_get_tailcall_unwinder): New function.
7745 (init_record_btrace_ops): Update.
7746 * target.h (struct target_ops) <to_get_unwinder,
7747 to_get_tailcall_unwinder>: Now function pointers. Use
7748 TARGET_DEFAULT_RETURN.
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7752 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7754 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7758 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7760 * target-delegates.c: Rebuild.
7761 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7762 TARGET_DEFAULT_FUNC.
7763 * target.c (default_target_decr_pc_after_break): Rename from
7764 forward_target_decr_pc_after_break. Simplify.
7765 (target_decr_pc_after_break): Rely on delegation.
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7769 * target.c (update_current_target): Do not INHERIT to_doc or
7770 to_magic. Do not de_fault to_open or to_close.
7772 2014-02-19 Tom Tromey <tromey@redhat.com>
7774 * gcore.h (objfile_find_memory_regions): Declare.
7775 * gcore.c (objfile_find_memory_regions): No longer static. Add
7777 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7778 * exec.c: Include gcore.h.
7779 (exec_set_find_memory_regions): Remove.
7780 (exec_find_memory_regions): Remove.
7781 (exec_do_find_memory_regions): Remove.
7782 (init_exec_ops): Update.
7783 * defs.h (exec_set_find_memory_regions): Remove.
7785 2014-02-19 Tom Tromey <tromey@redhat.com>
7787 * target-delegates.c: Rebuild.
7788 * target.h (struct target_ops) <to_extra_thread_info,
7789 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7790 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7791 not 0, in TARGET_DEFAULT_RETURN.
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target.c (complete_target_initialization): Remove casts. Use
7796 return_zero_has_execution.
7797 (return_zero): Add "ignore" argument.
7798 (return_zero_has_execution): New function.
7799 (init_dummy_target): Remove casts. Use
7800 return_zero_has_execution.
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7804 * target.c (update_current_target): Update comments. Do not
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7811 * corelow.c (core_read_description): Delegate when needed.
7812 * remote.c (remote_read_description): Delegate when needed.
7813 * target-delegates.c: Rebuild.
7814 * target.c (target_read_description): Rewrite.
7815 * target.h (struct target_ops) <to_read_description>: Update
7816 comment. Use TARGET_DEFAULT_RETURN.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * target-delegates.c: Rebuild.
7821 * target.c (update_current_target): Don't inherit or default
7823 (find_default_run_target): Check against delegate_can_run.
7824 * target.h (struct target_ops) <to_can_run>: Use
7825 TARGET_DEFAULT_RETURN.
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7829 * target-delegates.c: Rebuild.
7830 * target.c (target_disconnect): Unconditionally delegate.
7831 * target.h (struct target_ops) <to_disconnect>: Use
7832 TARGET_DEFAULT_NORETURN.
7834 2014-02-19 Tom Tromey <tromey@redhat.com>
7836 * record.c (record_stop): Unconditionally delegate.
7837 * target-delegates.c: Rebuild.
7838 * target.c (target_stop_recording): Unconditionally delegate.
7839 * target.h (struct target_ops) <to_stop_recording>: Use
7840 TARGET_DEFAULT_IGNORE.
7842 2014-02-19 Tom Tromey <tromey@redhat.com>
7844 * target-delegates.c: Rebuild.
7845 * target.c (target_enable_btrace): Unconditionally delegate.
7846 * target.h (struct target_ops) <to_enable_btrace>: Use
7847 TARGET_DEFAULT_NORETURN.
7849 2014-02-19 Tom Tromey <tromey@redhat.com>
7851 * target-delegates.c: Rebuild.
7852 * target.c (target_read_btrace): Unconditionally delegate.
7853 * target.h (struct target_ops) <to_read_btrace>: Use
7854 TARGET_DEFAULT_NORETURN.
7856 2014-02-19 Tom Tromey <tromey@redhat.com>
7858 * target-delegates.c: Rebuild.
7859 * target.c (target_teardown_btrace): Unconditionally delegate.
7860 * target.h (struct target_ops) <to_teardown_btrace>: Use
7861 TARGET_DEFAULT_NORETURN.
7863 2014-02-19 Tom Tromey <tromey@redhat.com>
7865 * target-delegates.c: Rebuild.
7866 * target.c (target_disable_btrace): Unconditionally delegate.
7867 * target.h (struct target_ops) <to_disable_btrace>: Use
7868 TARGET_DEFAULT_NORETURN.
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7872 * target-delegates.c: Rebuild.
7873 * target.c (default_search_memory): New function.
7874 (simple_search_memory): Update comment.
7875 (target_search_memory): Unconditionally delegate.
7876 * target.h (struct target_ops) <to_search_memory>: Use
7877 TARGET_DEFAULT_FUNC.
7879 2014-02-19 Tom Tromey <tromey@redhat.com>
7881 * auxv.c (default_auxv_parse): No longer static.
7882 (target_auxv_parse): Unconditionally delegate.
7883 * auxv.h (default_auxv_parse): Declare.
7884 * target-delegates.c: Rebuild.
7885 * target.c: Include auxv.h.
7886 * target.h (struct target_ops) <to_auxv_parse>: Use
7887 TARGET_DEFAULT_FUNC.
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7891 * target-delegates.c: Rebuild.
7892 * target.c (target_memory_map): Unconditionally delegate.
7893 * target.h (struct target_ops) <to_memory_map>: Use
7894 TARGET_DEFAULT_RETURN.
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7898 * target-delegates.c: Rebuild.
7899 * target.c (target_thread_alive): Unconditionally delegate.
7900 * target.h (struct target_ops) <to_thread_alive>: Use
7901 TARGET_DEFAULT_RETURN.
7903 2014-02-19 Tom Tromey <tromey@redhat.com>
7905 * target-delegates.c: Rebuild.
7906 * target.c (target_save_record): Unconditionally delegate.
7907 * target.h (struct target_ops) <to_save_record>: Use
7908 TARGET_DEFAULT_NORETURN.
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7912 * target-delegates.c: Rebuild.
7913 * target.c (target_delete_record): Unconditionally delegate.
7914 * target.h (struct target_ops) <to_delete_record>: Use
7915 TARGET_DEFAULT_NORETURN.
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7919 * target-delegates.c: Rebuild.
7920 * target.c (target_record_is_replaying): Unconditionally
7922 * target.h (struct target_ops) <to_record_is_replaying>: Use
7923 TARGET_DEFAULT_RETURN.
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target-delegates.c: Rebuild.
7928 * target.c (target_goto_record_begin): Unconditionally delegate.
7929 * target.h (struct target_ops) <to_goto_record_begin>: Use
7930 TARGET_DEFAULT_NORETURN.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target-delegates.c: Rebuild.
7935 * target.c (target_goto_record_end): Unconditionally delegate.
7936 * target.h (struct target_ops) <to_goto_record_end>: Use
7937 TARGET_DEFAULT_NORETURN.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target-delegates.c: Rebuild.
7942 * target.c (target_goto_record): Unconditionally delegate.
7943 * target.h (struct target_ops) <to_goto_record>: Use
7944 TARGET_DEFAULT_NORETURN.
7946 2014-02-19 Tom Tromey <tromey@redhat.com>
7948 * target-delegates.c: Rebuild.
7949 * target.c (target_insn_history): Unconditionally delegate.
7950 * target.h (struct target_ops) <to_insn_history>: Use
7951 TARGET_DEFAULT_NORETURN.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * target-delegates.c: Rebuild.
7956 * target.c (target_insn_history_from): Unconditionally delegate.
7957 * target.h (struct target_ops) <to_insn_history_from>: Use
7958 TARGET_DEFAULT_NORETURN.
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7962 * target-delegates.c: Rebuild.
7963 * target.c (target_insn_history_range): Unconditionally delegate.
7964 * target.h (struct target_ops) <to_insn_history_range>: Use
7965 TARGET_DEFAULT_NORETURN.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * target-delegates.c: Rebuild.
7970 * target.c (target_call_history): Unconditionally delegate.
7971 * target.h (struct target_ops) <to_call_history>: Use
7972 TARGET_DEFAULT_NORETURN.
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7976 * target-delegates.c: Rebuild.
7977 * target.c (target_call_history_from): Unconditionally delegate.
7978 * target.h (struct target_ops) <to_call_history_from>: Use
7979 TARGET_DEFAULT_NORETURN.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target-delegates.c: Rebuild.
7984 * target.c (target_call_history_range): Unconditionally delegate.
7985 * target.h (struct target_ops) <to_call_history_range>: Use
7986 TARGET_DEFAULT_NORETURN.
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7990 * target-delegates.c: Rebuild.
7991 * target.c (target_verify_memory): Unconditionally delegate.
7992 * target.h (struct target_ops) <to_verify_memory>: Use
7993 TARGET_DEFAULT_NORETURN.
7995 2014-02-19 Tom Tromey <tromey@redhat.com>
7997 * target-delegates.c: Rebuild.
7998 * target.c (target_core_of_thread): Unconditionally delegate.
7999 * target.h (struct target_ops) <to_core_of_thread>: Use
8000 TARGET_DEFAULT_RETURN.
8002 2014-02-19 Tom Tromey <tromey@redhat.com>
8004 * target-delegates.c: Rebuild.
8005 * target.c (target_flash_done): Unconditionally delegate.
8006 * target.h (struct target_ops) <to_flash_done>: Use
8007 TARGET_DEFAULT_NORETURN.
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_flash_erase): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_flash_erase>: Use
8014 TARGET_DEFAULT_NORETURN.
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * target-delegates.c: Rebuild.
8019 * target.c (target_get_section_table): Unconditionally delegate.
8020 * target.h (struct target_ops) <to_get_section_table>: Use
8021 TARGET_DEFAULT_RETURN.
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8025 * target-delegates.c: Rebuild.
8026 * target.c (target_pid_to_str): Unconditionally delegate.
8027 (init_dummy_target): Don't initialize to_pid_to_str.
8028 (default_pid_to_str): Rename from dummy_pid_to_str.
8029 * target.h (struct target_ops) <to_pid_to_str>: Use
8030 TARGET_DEFAULT_FUNC.
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8034 * target-delegates.c: Rebuild.
8035 * target.c (target_find_new_threads): Unconditionally delegate.
8036 * target.h (struct target_ops) <to_find_new_threads>: Use
8037 TARGET_DEFAULT_RETURN.
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8041 * target-delegates.c: Rebuild.
8042 * target.c (target_program_signals): Unconditionally delegate.
8043 * target.h (struct target_ops) <to_program_signals>: Use
8044 TARGET_DEFAULT_IGNORE.
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8048 * target-delegates.c: Rebuild.
8049 * target.c (target_pass_signals): Unconditionally delegate.
8050 * target.h (struct target_ops) <to_pass_signals>: Use
8051 TARGET_DEFAULT_IGNORE.
8053 2014-02-19 Tom Tromey <tromey@redhat.com>
8055 * target-delegates.c: Rebuild.
8056 * target.c (default_mourn_inferior): New function.
8057 (target_mourn_inferior): Unconditionally delegate.
8058 * target.h (struct target_ops) <to_mourn_inferior>: Use
8059 TARGET_DEFAULT_FUNC.
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * target-delegates.c: Rebuild.
8064 * target.c (default_follow_fork): New function.
8065 (target_follow_fork): Unconditionally delegate.
8066 * target.h (struct target_ops) <to_follow_fork>: Use
8067 TARGET_DEFAULT_FUNC.
8069 2014-02-19 Tom Tromey <tromey@redhat.com>
8071 * target-delegates.c: Rebuild.
8072 * target.c (target_kill): Unconditionally delegate.
8073 * target.h (struct target_ops) <to_kill>: Use
8074 TARGET_DEFAULT_NORETURN.
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8078 * target-delegates.c: Rebuild.
8079 * target.c (target_masked_watch_num_registers): Unconditionally
8081 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8082 Use TARGET_DEFAULT_RETURN.
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8086 * target-delegates.c: Rebuild.
8087 * target.c (target_remove_mask_watchpoint): Unconditionally
8089 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8090 TARGET_DEFAULT_RETURN.
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8094 * target-delegates.c: Rebuild.
8095 * target.c (target_insert_mask_watchpoint): Unconditionally
8097 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8098 TARGET_DEFAULT_RETURN.
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8102 * target-delegates.c: Rebuild.
8103 * target.c (target_ranged_break_num_registers): Unconditionally
8105 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8106 Use TARGET_DEFAULT_RETURN.
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8110 * target-delegates.c: Rebuild.
8111 * target.c (target_fetch_registers): Unconditionally delegate.
8112 * target.h (struct target_ops) <to_fetch_registers>: Use
8113 TARGET_DEFAULT_NORETURN.
8115 2014-02-19 Tom Tromey <tromey@redhat.com>
8117 * target-delegates.c: Rebuild.
8118 * target.c (update_current_target): Don't inherit or default
8120 * target.h (struct target_ops) <to_stop>: Use
8121 TARGET_DEFAULT_IGNORE.
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8125 * target-delegates.c: Rebuild.
8126 * target.c (update_current_target): Don't inherit or default
8127 to_can_run_breakpoint_commands.
8128 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8129 Use TARGET_DEFAULT_RETURN.
8131 2014-02-19 Tom Tromey <tromey@redhat.com>
8133 * target-delegates.c: Rebuild.
8134 * target.c (update_current_target): Don't inherit or default
8135 to_supports_evaluation_of_breakpoint_conditions.
8136 * target.h (struct target_ops)
8137 <to_supports_evaluation_of_breakpoint_conditions>: Use
8138 TARGET_DEFAULT_RETURN.
8140 2014-02-19 Tom Tromey <tromey@redhat.com>
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_augmented_libraries_svr4_read.
8145 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8146 Use TARGET_DEFAULT_RETURN.
8148 2014-02-19 Tom Tromey <tromey@redhat.com>
8150 * target-delegates.c: Rebuild.
8151 * target.c (update_current_target): Don't inherit or default
8153 * target.h (struct target_ops) <to_can_use_agent>: Use
8154 TARGET_DEFAULT_RETURN.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (update_current_target): Don't inherit or default
8161 * target.h (struct target_ops) <to_use_agent>: Use
8162 TARGET_DEFAULT_NORETURN.
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8169 (return_null): Remove.
8170 * target.h (struct target_ops) <to_traceframe_info>: Use
8171 TARGET_DEFAULT_RETURN.
8173 2014-02-19 Tom Tromey <tromey@redhat.com>
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_static_tracepoint_markers_by_strid.
8178 * target.h (struct target_ops)
8179 <to_static_tracepoint_markers_by_strid>: Use
8180 TARGET_DEFAULT_NORETURN.
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8184 * target-delegates.c: Rebuild.
8185 * target.c (update_current_target): Don't inherit or default
8186 to_static_tracepoint_marker_at.
8187 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8188 Use TARGET_DEFAULT_RETURN.
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8192 * target-delegates.c: Rebuild.
8193 * target.c (update_current_target): Don't inherit or default
8195 * target.h (struct target_ops) <to_set_permissions>: Use
8196 TARGET_DEFAULT_IGNORE.
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target-delegates.c: Rebuild.
8201 * target.c (update_current_target): Don't inherit or default
8203 * target.h (struct target_ops) <to_get_tib_address>: Use
8204 TARGET_DEFAULT_NORETURN.
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * target-delegates.c: Rebuild.
8209 * target.c (update_current_target): Don't inherit or default
8211 * target.h (struct target_ops) <to_set_trace_notes>: Use
8212 TARGET_DEFAULT_RETURN.
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8216 * target-delegates.c: Rebuild.
8217 * target.c (update_current_target): Don't initialize
8218 to_set_trace_buffer_size.
8219 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8220 TARGET_DEFAULT_IGNORE.
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8226 to_set_circular_trace_buffer.
8227 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8228 TARGET_DEFAULT_IGNORE.
8230 2014-02-19 Tom Tromey <tromey@redhat.com>
8232 * target-delegates.c: Rebuild.
8233 * target.c (update_current_target): Don't inherit or default
8234 to_set_disconnected_tracing.
8235 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8236 TARGET_DEFAULT_IGNORE.
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8240 * target-delegates.c: Rebuild.
8241 * target.c (update_current_target): Don't inherit or default
8242 to_get_min_fast_tracepoint_insn_len.
8243 (return_minus_one): Remove.
8244 * target.h (struct target_ops)
8245 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target-delegates.c: Rebuild.
8250 * target.c (update_current_target): Don't inherit or default
8251 to_get_raw_trace_data.
8252 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8253 TARGET_DEFAULT_NORETURN.
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8257 * target-delegates.c: Rebuild.
8258 * target.c (update_current_target): Don't inherit or default
8259 to_upload_trace_state_variables.
8260 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8261 Use TARGET_DEFAULT_RETURN.
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8265 * target-delegates.c: Rebuild.
8266 * target.c (update_current_target): Don't inherit or default
8267 to_upload_tracepoints.
8268 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8269 TARGET_DEFAULT_RETURN.
8271 2014-02-19 Tom Tromey <tromey@redhat.com>
8273 * target-delegates.c: Rebuild.
8274 * target.c (update_current_target): Don't inherit or default
8276 * target.h (struct target_ops) <to_save_trace_data>: Use
8277 TARGET_DEFAULT_NORETURN.
8279 2014-02-19 Tom Tromey <tromey@redhat.com>
8281 * target-delegates.c: Rebuild.
8282 * target.c (update_current_target): Don't inherit or default
8283 to_get_trace_state_variable_value.
8284 * target.h (struct target_ops)
8285 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8289 * target-delegates.c: Rebuild.
8290 * target.c (update_current_target): Don't inherit or default
8292 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * target-delegates.c: Rebuild.
8297 * target.c (update_current_target): Don't inherit or default
8299 * target.h (struct target_ops) <to_trace_stop>: Use
8300 TARGET_DEFAULT_NORETURN.
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * target-delegates.c: Rebuild.
8305 * target.c (update_current_target): Don't inherit or default
8306 to_get_tracepoint_status.
8307 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8308 TARGET_DEFAULT_NORETURN.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * target-delegates.c: Rebuild.
8313 * target.c (update_current_target): Don't inherit or default
8314 to_get_trace_status.
8315 * target.h (struct target_ops) <to_get_trace_status>: Use
8316 TARGET_DEFAULT_RETURN.
8318 2014-02-19 Tom Tromey <tromey@redhat.com>
8320 * target-delegates.c: Rebuild.
8321 * target.c (update_current_target): Don't inherit or default
8323 * target.h (struct target_ops) <to_trace_start>: Use
8324 TARGET_DEFAULT_NORETURN.
8326 2014-02-19 Tom Tromey <tromey@redhat.com>
8328 * target-delegates.c: Rebuild.
8329 * target.c (update_current_target): Don't inherit or default
8330 to_trace_set_readonly_regions.
8331 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8332 Use TARGET_DEFAULT_NORETURN.
8334 2014-02-19 Tom Tromey <tromey@redhat.com>
8336 * target-delegates.c: Rebuild.
8337 * target.c (update_current_target): Don't inherit or default
8338 to_disable_tracepoint.
8339 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8340 TARGET_DEFAULT_NORETURN.
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8344 * target-delegates.c: Rebuild.
8345 * target.c (update_current_target): Don't inherit or default
8346 to_enable_tracepoint.
8347 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8348 TARGET_DEFAULT_NORETURN.
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8352 * target-delegates.c: Rebuild.
8353 * target.c (update_current_target): Don't inherit or default
8354 to_download_trace_state_variable.
8355 * target.h (struct target_ops) <to_download_trace_state_variable>:
8356 Use TARGET_DEFAULT_NORETURN.
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8360 * target-delegates.c: Rebuild.
8361 * target.c (update_current_target): Don't inherit or default
8362 to_can_download_tracepoint.
8363 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8364 TARGET_DEFAULT_RETURN.
8366 2014-02-19 Tom Tromey <tromey@redhat.com>
8368 * target-delegates.c: Rebuild.
8369 * target.c (update_current_target): Don't inherit or default
8370 to_download_tracepoint.
8371 * target.h (struct target_ops) <to_download_tracepoint>: Use
8372 TARGET_DEFAULT_NORETURN.
8374 2014-02-19 Tom Tromey <tromey@redhat.com>
8376 * target-delegates.c: Rebuild.
8377 * target.c (update_current_target): Don't inherit or default
8379 * target.h (struct target_ops) <to_trace_init>: Use
8380 TARGET_DEFAULT_RETURN.
8382 2014-02-19 Tom Tromey <tromey@redhat.com>
8384 * target-delegates.c: Rebuild.
8385 * target.c (update_current_target): Don't inherit or default
8386 to_supports_string_tracing.
8387 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8388 TARGET_DEFAULT_RETURN.
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8392 * target-delegates.c: Rebuild.
8393 * target.c (update_current_target): Don't inherit or default
8394 to_supports_enable_disable_tracepoint.
8395 * target.h (struct target_ops)
8396 <to_supports_enable_disable_tracepoint>: Use
8397 TARGET_DEFAULT_RETURN.
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8401 * target-delegates.c: Rebuild.
8402 * target.c (update_current_target): Don't inherit or default
8403 to_supports_multi_process.
8404 * target.h (struct target_ops) <to_supports_multi_process>: Use
8405 TARGET_DEFAULT_RETURN.
8407 2014-02-19 Tom Tromey <tromey@redhat.com>
8409 * target-delegates.c: Rebuild.
8410 * target.c (update_current_target): Don't inherit or default
8411 to_get_ada_task_ptid.
8412 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8413 TARGET_DEFAULT_FUNC.
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8417 * target-delegates.c: Rebuild.
8418 * target.c (update_current_target): Don't inherit or default
8419 to_thread_architecture.
8420 * target.h (struct target_ops) <to_thread_architecture>: Use
8421 TARGET_DEFAULT_FUNC.
8423 2014-02-19 Tom Tromey <tromey@redhat.com>
8425 * target-delegates.c: Rebuild.
8426 * target.c (update_current_target): Don't inherit or default
8427 to_execution_direction.
8428 * target.h (struct target_ops) <to_execution_direction>: Use
8429 TARGET_DEFAULT_FUNC.
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8435 to_can_execute_reverse.
8436 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8437 TARGET_DEFAULT_RETURN.
8438 (target_can_execute_reverse): Unconditionally delegate.
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8445 (dummy_goto_bookmark): Remove.
8446 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8447 * target.h (struct target_ops) <to_goto_bookmark>: Use
8448 TARGET_DEFAULT_NORETURN.
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8455 (dummy_get_bookmark): Remove.
8456 (init_dummy_target): Don't inherit or default to_get_bookmark.
8457 * target.h (struct target_ops) <to_get_bookmark>: Use
8458 TARGET_DEFAULT_NORETURN
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_make_corefile_notes.
8465 (init_dummy_target): Don't initialize to_make_corefile_notes.
8466 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8467 TARGET_DEFAULT_FUNC.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_find_memory_regions.
8474 (init_dummy_target): Don't initialize to_find_memory_regions.
8475 * target.h (struct target_ops) <to_find_memory_regions>: Use
8476 TARGET_DEFAULT_FUNC.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8483 * target.h (struct target_ops) <to_log_command>: Use
8484 TARGET_DEFAULT_IGNORE.
8485 (target_log_command): Unconditionally delegate.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_pid_to_exec_file.
8492 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8493 TARGET_DEFAULT_RETURN.
8495 2014-02-19 Tom Tromey <tromey@redhat.com>
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8500 (target_thread_name): Unconditionally delegate.
8501 * target.h (struct target_ops) <to_thread_name>: Use
8502 TARGET_DEFAULT_RETURN.
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_extra_thread_info.
8509 * target.h (struct target_ops) <to_extra_thread_info>: Use
8510 TARGET_DEFAULT_RETURN.
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target-delegates.c: Rebuild.
8515 * target.c (update_current_target): Don't inherit or default
8517 * target.h (struct target_ops) <to_has_exited>: Use
8518 TARGET_DEFAULT_RETURN..
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8524 to_set_syscall_catchpoint.
8525 (return_one): Remove.
8526 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8527 TARGET_DEFAULT_RETURN.
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8531 * target-delegates.c: Rebuild.
8532 * target.c (update_current_target): Don't inherit or default
8533 to_insert_exec_catchpoint.
8534 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8535 TARGET_DEFAULT_RETURN.
8537 2014-01-08 Tom Tromey <tromey@redhat.com>
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_insert_exec_catchpoint.
8542 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8543 TARGET_DEFAULT_RETURN.
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8547 * target-delegates.c: Rebuild.
8548 * target.c (update_current_target): Don't inherit or default
8549 to_remove_vfork_catchpoint.
8550 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8551 TARGET_DEFAULT_RETURN.
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target-delegates.c: Rebuild.
8556 * target.c (update_current_target): Don't inherit or default
8557 to_insert_vfork_catchpoint.
8558 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8559 TARGET_DEFAULT_RETURN.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target-delegates.c: Rebuild.
8564 * target.c (update_current_target): Don't inherit or default
8565 to_remove_fork_catchpoint.
8566 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8567 TARGET_DEFAULT_RETURN.
8569 2014-02-19 Tom Tromey <tromey@redhat.com>
8571 * target-delegates.c: Rebuild.
8572 * target.c (update_current_target): Don't inherit or default
8573 to_insert_fork_catchpoint.
8574 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8575 TARGET_DEFAULT_RETURN.
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8581 to_post_startup_inferior.
8582 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8583 TARGET_DEFAULT_IGNORE.
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * target-delegates.c: Rebuild.
8588 * target.c (update_current_target): Don't inherit or default
8590 * target.h (struct target_ops) <to_load>: Use
8591 TARGET_DEFAULT_NORETURN.
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8595 * target-delegates.c: Rebuild.
8596 * target.c (update_current_target): Don't inherit or default
8598 * target.h (struct target_ops) <to_terminal_info>: Use
8599 TARGET_DEFAULT_FUNC.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * target-delegates.c: Rebuild.
8604 * target.c (update_current_target): Don't inherit or default
8605 to_terminal_save_ours.
8606 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8607 TARGET_DEFAULT_IGNORE.
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8611 * target-delegates.c: Rebuild.
8612 * target.c (update_current_target): Don't inherit or default
8614 * target.h (struct target_ops) <to_terminal_ours>: Use
8615 TARGET_DEFAULT_IGNORE.
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8619 * target-delegates.c: Rebuild.
8620 * target.c (update_current_target): Don't inherit or default
8621 to_terminal_ours_for_output.
8622 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8623 TARGET_DEFAULT_IGNORE.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target-delegates.c: Rebuild.
8628 * target.c (update_current_target): Don't inherit or default
8629 to_terminal_inferior.
8630 * target.h (struct target_ops) <to_terminal_inferior>: Use
8631 TARGET_DEFAULT_IGNORE.
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8635 * target-delegates.c: Rebuild.
8636 * target.c (update_current_target): Don't inherit or default
8638 * target.h (struct target_ops) <to_terminal_init>: Use
8639 TARGET_DEFAULT_IGNORE.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_can_accel_watchpoint_condition.
8646 * target.h (struct target_ops)
8647 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8649 2014-02-19 Tom Tromey <tromey@redhat.com>
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_region_ok_for_hw_watchpoint.
8654 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8655 Use TARGET_DEFAULT_FUNC.
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_watchpoint_addr_within_range.
8662 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8663 Use TARGET_DEFAULT_FUNC.
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_remove_watchpoint.
8670 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8671 TARGET_DEFAULT_NORETURN.
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8677 to_insert_watchpoint.
8678 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8679 TARGET_DEFAULT_RETURN.
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_remove_hw_breakpoint.
8686 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8687 TARGET_DEFAULT_RETURN.
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8693 to_insert_hw_breakpoint.
8694 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8695 TARGET_DEFAULT_RETURN.
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target-delegates.c: Rebuild.
8700 * target.c (update_current_target): Don't inherit or default
8701 to_can_use_hw_breakpoint.
8702 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8703 TARGET_DEFAULT_RETURN.
8705 2014-02-19 Tom Tromey <tromey@redhat.com>
8707 * target-delegates.c: Rebuild.
8708 * target.c (update_current_target): Don't inherit or default
8710 * target.h (struct target_ops) <to_files_info>: Use
8711 TARGET_DEFAULT_IGNORE.
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8715 * target-delegates.c: Rebuild.
8716 * target.c (update_current_target): Don't inherit or default
8718 * target.h (struct target_ops) <to_store>: Use
8719 TARGET_DEFAULT_NORETURN.
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8723 * target-delegates.c: Rebuild.
8724 * target.c (update_current_target): Don't inherit or default
8726 * target.h (struct target_ops) <to_post_attach>: Use
8727 TARGET_DEFAULT_IGNORE.
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8731 * target-delegates.c: Rebuild.
8732 * target.c (update_current_target): Don't inherit or default
8734 (default_rcmd): New function.
8735 (do_monitor_command): Unconditionally delegate.
8736 * target.h (struct target_ops) <to_rmcd>: Use
8737 TARGET_DEFAULT_FUNC.
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8741 * target-delegates.c: Rebuild.
8742 * target.c (init_dummy_target): Don't initialize to_attach.
8743 (target_attach): Unconditionally delegate.
8744 * target.h (struct target_ops) <to_attach>: Use
8745 TARGET_DEFAULT_FUNC.
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * target-delegates.c: Rebuild.
8750 * target.c (target_detach): Unconditionally delegate.
8751 (init_dummy_target): Don't initialize to_detach.
8752 * target.h (struct target_ops) <to_detach>: Use
8753 TARGET_DEFAULT_IGNORE.
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8759 (target_augmented_libraries_svr4_read): Add argument.
8760 * target.c (update_current_target): Update.
8761 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target.h (struct target_ops) <to_call_history_range>: Add
8768 * target.c (target_call_history_range): Add argument.
8769 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8771 (record_btrace_call_history_from): Update.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target.h (struct target_ops) <to_call_history_from>: Add
8777 * target.c (target_call_history_from): Add argument.
8778 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target.h (struct target_ops) <to_call_history>: Add argument.
8784 * target.c (target_call_history): Add argument.
8785 * record-btrace.c (record_btrace_call_history): Add 'self'
8788 2014-02-19 Tom Tromey <tromey@redhat.com>
8790 * target.h (struct target_ops) <to_insn_history_range>: Add
8792 * target.c (target_insn_history_range): Add argument.
8793 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8795 (record_btrace_insn_history_from): Update.
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8799 * target.h (struct target_ops) <to_insn_history_from>: Add
8801 * target.c (target_insn_history_from): Add argument.
8802 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target.h (struct target_ops) <to_insn_history>: Add argument.
8808 * target.c (target_insn_history): Add argument.
8809 * record-btrace.c (record_btrace_insn_history): Add 'self'
8812 2014-02-19 Tom Tromey <tromey@redhat.com>
8814 * target.h (struct target_ops) <to_goto_record>: Add argument.
8815 * target.c (target_goto_record): Add argument.
8816 * record-full.c (record_full_goto): Add 'self' argument.
8817 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8821 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8822 * target.c (target_goto_record_end): Add argument.
8823 * record-full.c (record_full_goto_end): Add 'self' argument.
8824 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8828 * target.h (struct target_ops) <to_goto_record_begin>: Add
8830 * target.c (target_goto_record_begin): Add argument.
8831 * record-full.c (record_full_goto_begin): Add 'self' argument.
8832 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target.h (struct target_ops) <to_record_is_replaying>: Add
8839 * target.c (target_record_is_replaying): Add argument.
8840 * record-full.c (record_full_is_replaying): Add 'self' argument.
8841 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8843 (record_btrace_xfer_partial, record_btrace_store_registers)
8844 (record_btrace_prepare_to_store, record_btrace_resume)
8845 (record_btrace_wait, record_btrace_decr_pc_after_break)
8846 (record_btrace_find_new_threads, record_btrace_thread_alive):
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8851 * target.h (struct target_ops) <to_delete_record>: Add argument.
8852 * target.c (target_delete_record): Add argument.
8853 * record-full.c (record_full_delete): Add 'self' argument.
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8857 * target.h (struct target_ops) <to_save_record>: Add argument.
8858 * target.c (target_save_record): Add argument.
8859 * record-full.c (record_full_save): Add 'self' argument.
8860 (record_full_save): Add 'self' argument.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target.h (struct target_ops) <to_info_record>: Add argument.
8865 * target.c (target_info_record): Add argument.
8866 * record.c (info_record_command): Add argument.
8867 * record-full.c (record_full_info): Add 'self' argument.
8868 * record-btrace.c (record_btrace_info): Add 'self' argument.
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8873 * target.c (target_stop_recording): Add argument.
8874 * record.c (record_stop): Add argument.
8875 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8880 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8881 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8882 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8884 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8885 (_initialize_amd64_linux_nat): Use it.
8886 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8887 (_initialize_i386_linux_nat): Use it.
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8892 * target.c (target_teardown_btrace): Add argument.
8893 * remote.c (remote_teardown_btrace): Add 'self' argument.
8894 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8896 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8902 * target.c (target_disable_btrace): Add argument.
8903 * remote.c (remote_disable_btrace): Add 'self' argument.
8904 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8906 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8911 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8912 * target.c (target_enable_btrace): Add argument.
8913 * remote.c (remote_enable_btrace): Add 'self' argument.
8914 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8916 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8922 (target_can_use_agent): Add argument.
8923 * target.c (update_current_target): Update.
8924 * remote.c (remote_can_use_agent): Add 'self' argument.
8925 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target.h (struct target_ops) <to_use_agent>: Add argument.
8930 (target_use_agent): Add argument.
8931 * target.c (update_current_target): Update.
8932 * remote.c (remote_use_agent): Add 'self' argument.
8933 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8938 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8939 (target_traceframe_info): Add argument.
8940 * target.c (update_current_target): Update.
8941 * remote.c (remote_traceframe_info): Add 'self' argument.
8942 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * target.h (target_static_tracepoint_markers_by_strid): Add
8948 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8950 * target.c (update_current_target): Update.
8951 * remote.c (struct target_ops)
8952 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8953 * linux-nat.c (struct target_ops)
8954 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8958 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8960 (target_static_tracepoint_marker_at): Add argument.
8961 * target.c (update_current_target): Update.
8962 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8968 (target_set_permissions): Add argument.
8969 * target.c (update_current_target): Update.
8970 * remote.c (remote_set_permissions): Add 'self' argument.
8971 (remote_start_remote): Update.
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8975 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8976 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8977 (target_get_tib_address): Add argument.
8978 * target.c (update_current_target): Update.
8979 * remote.c (remote_get_tib_address): Add 'self' argument.
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8984 (target_set_trace_notes): Add argument.
8985 * target.c (update_current_target): Update.
8986 * remote.c (remote_set_trace_notes): Add 'self' argument.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8992 (target_set_trace_buffer_size): Add argument.
8993 * target.c (update_current_target): Update.
8994 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8998 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9000 (target_set_circular_trace_buffer): Add argument.
9001 * target.c (update_current_target): Update.
9002 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9009 (target_set_disconnected_tracing): Add argument.
9010 * target.c (update_current_target): Update.
9011 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9015 * target.h (struct target_ops)
9016 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9017 (target_get_min_fast_tracepoint_insn_len): Add argument.
9018 * target.c (update_current_target): Update.
9019 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9026 (target_get_raw_trace_data): Add argument.
9027 * target.c (update_current_target): Update.
9028 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9034 (target_upload_trace_state_variables): Add argument.
9035 * target.c (update_current_target): Update.
9036 * remote.c (remote_upload_trace_state_variables): Add 'self'
9038 (remote_start_remote): Update.
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9042 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9044 (target_upload_tracepoints): Add argument.
9045 * target.c (update_current_target): Update.
9046 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9047 (remote_start_remote): Update.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9052 (target_save_trace_data): Add argument.
9053 * target.c (update_current_target): Update.
9054 * remote.c (remote_save_trace_data): Add 'self' argument.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9060 * target.h (struct target_ops)
9061 <to_get_trace_state_variable_value>: Add argument.
9062 (target_get_trace_state_variable_value): Add argument.
9063 * target.c (update_current_target): Update.
9064 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9066 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9070 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9071 * target.h (struct target_ops) <to_trace_find>: Add argument.
9072 (target_trace_find): Add argument.
9073 * target.c (update_current_target): Update.
9074 * remote.c (remote_trace_find): Add 'self' argument.
9075 * ctf.c (ctf_trace_find): Add 'self' argument.
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9079 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9080 (target_trace_stop): Add argument.
9081 * target.c (update_current_target): Update.
9082 * remote.c (remote_trace_stop): Add 'self' argument.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9087 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9089 (target_get_tracepoint_status): Add argument.
9090 * target.c (update_current_target): Update.
9091 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9096 * target.h (struct target_ops) <to_get_trace_status>: Add
9098 (target_get_trace_status): Add argument.
9099 * target.c (update_current_target): Update.
9100 * remote.c (remote_get_trace_status): Add 'self' argument.
9101 (remote_start_remote, remote_can_download_tracepoint): Update.
9102 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target.h (struct target_ops) <to_trace_start>: Add argument.
9107 (target_trace_start): Add argument.
9108 * target.c (update_current_target): Update.
9109 * remote.c (remote_trace_start): Add 'self' argument.
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9115 (target_trace_set_readonly_regions): Add argument.
9116 * target.c (update_current_target): Update.
9117 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9124 (target_disable_tracepoint): Add argument.
9125 * target.c (update_current_target): Update.
9126 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9132 (target_enable_tracepoint): Add argument.
9133 * target.c (update_current_target): Update.
9134 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target.h (struct target_ops) <to_download_trace_state_variable>:
9140 (target_download_trace_state_variable): Add argument.
9141 * target.c (update_current_target): Update.
9142 * remote.c (remote_download_trace_state_variable): Add 'self'
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9147 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9149 (target_can_download_tracepoint): Add argument.
9150 * target.c (update_current_target): Update.
9151 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9153 2014-02-19 Tom Tromey <tromey@redhat.com>
9155 * target.h (struct target_ops) <to_download_tracepoint>: Add
9157 (target_download_tracepoint): Add argument.
9158 * target.c (update_current_target): Update.
9159 * remote.c (remote_download_tracepoint): Add 'self' argument.
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * target.h (struct target_ops) <to_trace_init>: Add argument.
9164 (target_trace_init): Add argument.
9165 * target.c (update_current_target): Update.
9166 * remote.c (remote_trace_init): Add 'self' argument.
9168 2014-02-19 Tom Tromey <tromey@redhat.com>
9170 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9171 * target.c (target_fileio_readlink): Add argument.
9172 * remote.c (remote_hostio_readlink): Add 'self' argument.
9173 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9178 * target.c (target_fileio_unlink): Add argument.
9179 * remote.c (remote_hostio_unlink): Add 'self' argument.
9180 (remote_file_delete): Update.
9181 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9183 2014-02-19 Tom Tromey <tromey@redhat.com>
9185 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9186 * target.c (target_fileio_close): Add argument.
9187 * remote.c (remote_hostio_close): Add 'self' argument.
9188 (remote_hostio_close_cleanup): Update.
9189 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9191 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9196 * target.c (target_fileio_pread): Add argument.
9197 * remote.c (remote_hostio_pread): Add 'self' argument.
9198 (remote_bfd_iovec_pread, remote_file_get): Update.
9199 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9204 * target.c (target_fileio_pwrite): Add argument.
9205 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9206 (remote_file_put): Update.
9207 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9211 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9212 * target.c (target_fileio_open): Add argument.
9213 * remote.c (remote_hostio_open): Add 'self' argument.
9214 (remote_bfd_iovec_open): Add 'self' argument.
9215 (remote_file_put): Add 'self' argument.
9216 (remote_file_get): Add 'self' argument.
9217 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9223 (target_can_run_breakpoint_commands): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9227 (remote_insert_breakpoint): Add 'self' argument.
9228 (remote_insert_hw_breakpoint): Add 'self' argument.
9229 (remote_can_run_breakpoint_commands): Add 'self' argument.
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9233 * target.h (struct target_ops)
9234 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9235 (target_supports_evaluation_of_breakpoint_conditions): Add
9237 * target.c (update_current_target): Update.
9238 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9240 (remote_insert_breakpoint): Add 'self' argument.
9241 (remote_insert_hw_breakpoint): Add 'self' argument.
9242 (remote_supports_cond_breakpoints): Add 'self' argument.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9248 (target_supports_string_tracing): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * target.h (struct target_ops)
9255 <to_supports_disable_randomization>: Add argument.
9256 * target.c (find_default_supports_disable_randomization): Add
9258 (target_supports_disable_randomization): Add argument.
9259 (find_default_supports_disable_randomization): Add 'self'
9261 * remote.c (extended_remote_supports_disable_randomization): Add
9263 (remote_supports_disable_randomization): Add 'self' argument.
9264 (extended_remote_create_inferior): Update.
9265 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9270 * target.h (struct target_ops)
9271 <to_supports_enable_disable_tracepoint>: Add argument.
9272 (target_supports_enable_disable_tracepoint): Add argument.
9273 * target.c (update_current_target): Update.
9274 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target.h (struct target_ops) <to_supports_multi_process>: Add
9281 (target_supports_multi_process): Add argument.
9282 * target.c (update_current_target): Update.
9283 * remote.c (remote_supports_multi_process): Add 'self' argument.
9284 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9286 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9291 * target.h (struct target_ops) <to_execution_direction>: Add
9293 (target_execution_direction): Add argument.
9294 * target.c (default_execution_direction): Add 'self' argument.
9295 * record-full.c (record_full_execution_direction): Add 'self'
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9302 (target_can_execute_reverse): Add argument.
9303 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9304 * record-full.c (record_full_can_execute_reverse): Add 'self'
9306 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9312 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9314 (target_get_ada_task_ptid): Add argument.
9315 * target.c (update_current_target): Update.
9316 (default_get_ada_task_ptid): Add 'self' argument.
9317 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9318 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9319 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9321 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9323 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9325 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9327 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9328 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9333 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9334 (target_goto_bookmark): Add argument.
9335 * target.c (dummy_goto_bookmark): Add 'self' argument.
9336 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9340 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9341 (target_get_bookmark): Add argument.
9342 * target.c (dummy_get_bookmark): Add 'self' argument.
9343 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9347 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9349 (target_make_corefile_notes): Add argument.
9350 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9351 * procfs.c (procfs_make_note_section): Add 'self' argument.
9352 (procfs_make_note_section): Add 'self' argument.
9353 (procfs_make_note_section): Add 'self' argument.
9354 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9356 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9357 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9358 * exec.c (exec_make_note_section): Add 'self' argument.
9359 (exec_make_note_section): Add 'self' argument.
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target.h (struct target_ops) <to_find_memory_regions>: Add
9365 (target_find_memory_regions): Add argument.
9366 * target.c (dummy_find_memory_regions): Add 'self' argument.
9367 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9368 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9369 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9370 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9371 * exec. (exec_do_find_memory_regions): New global.
9372 (exec_set_find_memory_regions): Rewrite.
9373 (exec_find_memory_regions): New function.
9374 (init_exec_ops): Use exec_find_memory_regions.
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9378 * target.h (struct target_ops) <to_supports_non_stop>: Add
9380 * target.c (find_default_supports_non_stop): Add argument.
9381 (target_supports_non_stop): Add argument.
9382 (find_default_supports_non_stop): Add 'self' argument.
9383 * remote.c (remote_supports_non_stop): Add 'self' argument.
9384 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9388 * target.h (struct target_ops) <to_log_command>: Add argument.
9389 (target_log_command): Add argument.
9390 * serial.h (serial_log_command): Add 'self' argument.
9391 * serial.c (serial_log_command): Add 'self' argument.
9393 2014-02-19 Tom Tromey <tromey@redhat.com>
9395 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9396 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9398 (target_pid_to_exec_file): Add argument.
9399 * target.c (debug_to_pid_to_exec_file): Add argument.
9400 (update_current_target): Update.
9401 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9402 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9403 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9404 (linux_handle_extended_wait): Update.
9405 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9406 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9407 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9408 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9412 * target.h (struct target_ops) <to_rcmd>: Add argument.
9413 (target_rcmd): Add argument.
9414 * target.c (debug_to_rcmd): Add argument.
9415 (update_current_target, do_monitor_command): Update.
9416 * remote.c (remote_rcmd): Add 'self' argument.
9417 * monitor.c (monitor_rcmd): Add 'self' argument.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * windows-nat.c (windows_stop): Add 'self' argument.
9422 * target.h (struct target_ops) <to_stop>: Add argument.
9423 * target.c (target_stop): Add argument.
9424 (debug_to_stop): Add argument.
9425 (update_current_target): Update.
9426 * remote.c (remote_stop): Add 'self' argument.
9427 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9428 (gdbsim_cntrl_c): Update.
9429 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9430 * procfs.c (procfs_stop): Add 'self' argument.
9431 * nto-procfs.c (procfs_stop): Add 'self' argument.
9432 * monitor.c (monitor_stop): Add 'self' argument.
9433 (monitor_open): Update.
9434 * linux-nat.c (linux_nat_stop): Add argument.
9435 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9436 * gnu-nat.c (gnu_stop): Add 'self' argument.
9437 * darwin-nat.c (darwin_stop): Add 'self' argument.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * target.h (struct target_ops) <to_thread_name>: Add argument.
9442 * target.c (target_thread_name): Add argument.
9443 (update_current_target): Update.
9444 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * target.h (struct target_ops) <to_extra_thread_info>: Add
9450 (target_extra_thread_info): Add argument.
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_threads_extra_info): Add 'self' argument.
9453 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9455 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9456 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9457 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9459 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9461 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9463 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target.h (struct target_ops) <to_program_signals>: Add argument.
9469 * target.c (target_program_signals): Add argument.
9470 * remote.c (remote_program_signals): Add 'self' argument.
9472 2014-02-19 Tom Tromey <tromey@redhat.com>
9474 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9475 * target.c (target_pass_signals): Add argument.
9476 * remote.c (remote_pass_signals): Add 'self' argument.
9477 (remote_start_remote): Update.
9478 * procfs.c (procfs_pass_signals): Add 'self' argument.
9479 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9480 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9481 (linux_nat_create_inferior, linux_nat_attach): Update.
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9485 * windows-nat.c (windows_can_run): Add 'self' argument.
9486 * target.h (struct target_ops) <to_can_run>: Add argument.
9487 (target_can_run): Add argument.
9488 * target.c (debug_to_can_run): Add argument.
9489 (update_current_target): Update.
9490 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9491 * inf-child.c (inf_child_can_run): Add 'self' argument.
9492 * go32-nat.c (go32_can_run): Add 'self' argument.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target.h (struct target_ops) <to_has_exited>: Add argument.
9497 (target_has_exited): Add argument.
9498 * target.c (debug_to_has_exited): Add argument.
9499 (update_current_target): Update.
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9503 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9505 (target_set_syscall_catchpoint): Add argument.
9506 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9508 * target.c (update_current_target): Update.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9514 (target_remove_exec_catchpoint): Add argument.
9515 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9516 (update_current_target): Update.
9517 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9524 (target_insert_exec_catchpoint): Add argument.
9525 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9526 (update_current_target): Update.
9527 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9534 (target_remove_vfork_catchpoint): Add argument.
9535 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9536 (update_current_target): Update.
9537 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9544 (target_insert_vfork_catchpoint): Add argument.
9545 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9546 (update_current_target): Update.
9547 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9552 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9554 (target_remove_fork_catchpoint): Add argument.
9555 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9556 (update_current_target): Update.
9557 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9564 (target_insert_fork_catchpoint): Add argument.
9565 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9566 (update_current_target): Update.
9567 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9572 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9574 (target_post_startup_inferior): Add argument.
9575 * target.c (debug_to_post_startup_inferior): Add argument.
9576 (update_current_target): Update.
9577 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9579 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9581 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9583 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9585 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9587 (super_post_startup_inferior): Likewise.
9588 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9590 (super_post_startup_inferior): Likewise.
9591 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9592 Add 'self' argument.
9593 (super_post_startup_inferior): Likewise.
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9597 * target.h (struct target_ops) <to_load>: Add argument.
9598 * target.c (target_load): Add argument.
9599 (debug_to_load): Add argument.
9600 (update_current_target): Update.
9601 * remote.c (remote_load): Add 'self' argument.
9602 * remote-sim.c (gdbsim_load): Add 'self' argument.
9603 * remote-mips.c (mips_load): Add 'self' argument.
9604 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9605 * monitor.c (monitor_load): Add 'self' argument.
9606 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9611 (target_terminal_info): Add argument.
9612 * target.c (debug_to_terminal_info): Add argument.
9613 (default_terminal_info): Likewise.
9614 * inflow.c (child_terminal_info): Add 'self' argument.
9615 * inferior.h (child_terminal_info): Add 'self' argument.
9616 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9622 (target_terminal_save_ours): Add argument.
9623 * target.c (debug_to_terminal_save_ours): Add argument.
9624 (update_current_target): Update.
9625 * inflow.c (terminal_save_ours): Add 'self' argument.
9626 * inferior.h (terminal_save_ours): Add 'self' argument.
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9631 (target_terminal_ours): Add argument.
9632 * target.c (debug_to_terminal_ours): Add argument.
9633 (update_current_target): Update.
9634 * remote.c (remote_terminal_ours): Add 'self' argument.
9635 (remote_close): Update.
9636 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9637 * inflow.c (terminal_ours): Add 'self' argument.
9638 * inferior.h (terminal_ours): Add 'self' argument.
9639 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9641 2014-02-19 Pedro Alves <palves@redhat.com>
9642 Tom Tromey <tromey@redhat.com>
9644 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9646 (target_terminal_ours_for_output): Add argument.
9647 * target.c (debug_to_terminal_ours_for_output): Add argument.
9648 (update_current_target): Update.
9649 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9650 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9651 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (struct target_ops) <to_terminal_inferior>: Add
9657 * target.c (target_terminal_inferior): Add argument.
9658 (update_current_target): Update.
9659 * remote.c (remote_terminal_inferior): Add 'self' argument.
9660 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9661 * inflow.c (terminal_inferior): Add 'self' argument.
9662 * inferior.h (terminal_inferior): Add 'self' argument.
9663 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9664 (go32_terminal_inferior): Add 'self' argument.
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9668 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9669 (target_terminal_init): Add argument.
9670 * target.c (debug_to_terminal_init): Add argument.
9671 (update_current_target): Update.
9672 * inflow.c (terminal_init_inferior): Add 'self' argument.
9673 * inferior.h (terminal_init_inferior): Add 'self' argument.
9674 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9675 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * target.h (struct target_ops)
9680 <to_can_accel_watchpoint_condition>: Add argument.
9681 (target_can_accel_watchpoint_condition): Add argument.
9682 * target.c (debug_to_can_accel_watchpoint_condition): Add
9684 (update_current_target): Update.
9685 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9692 (target_region_ok_for_hw_watchpoint): Add argument.
9693 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9694 (default_region_ok_for_hw_watchpoint): Add argument.
9695 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9696 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9698 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9700 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9702 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9704 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9706 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9708 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9709 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9711 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9712 Add 'self' argument.
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9716 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9718 (target_insert_watchpoint): Add argument.
9719 * target.c (debug_to_insert_watchpoint): Add argument.
9720 (update_current_target): Update.
9721 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9722 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9723 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9724 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9725 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9726 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9728 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9729 (procfs_insert_hw_watchpoint): Add 'self' argument.
9730 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9732 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9734 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9736 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9737 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9739 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9744 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9746 (target_remove_watchpoint): Add argument.
9747 * target.c (debug_to_remove_watchpoint): Add argument.
9748 (update_current_target): Update.
9749 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9750 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9751 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9752 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9753 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9754 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9756 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9757 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9759 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9761 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9763 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9764 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9766 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9771 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9773 (target_remove_hw_breakpoint): Add argument.
9774 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9775 (update_current_target): Update.
9776 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9777 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9779 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9780 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9782 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9789 (target_insert_hw_breakpoint): Add argument.
9790 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9791 (update_current_target): Update.
9792 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9793 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9795 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9796 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9797 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9799 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9806 (target_can_use_hardware_watchpoint): Add argument.
9807 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9808 (update_current_target): Update.
9809 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9811 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9813 * remote.c (remote_check_watch_resources): Add 'self' argument.
9814 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9815 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9817 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9818 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9820 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9822 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9824 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9826 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9828 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9830 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9831 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9833 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * target.h (struct target_ops) <to_post_attach>: Add argument.
9839 (target_post_attach): Add argument.
9840 * target.c (debug_to_post_attach): Add argument.
9841 (update_current_target): Update.
9842 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9843 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9844 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9845 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9846 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9850 * windows-nat.c (windows_close): Add 'self' argument.
9851 * tracepoint.c (tfile_close): Add 'self' argument.
9852 * target.h (struct target_ops) <to_close>: Add argument.
9853 * target.c (target_close): Add argument.
9854 (update_current_target): Update.
9855 * remote.c (remote_close): Add 'self' argument.
9856 * remote-sim.c (gdbsim_close): Add 'self' argument.
9857 * remote-mips.c (mips_close): Add 'self' argument.
9858 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9859 * record-full.c (record_full_close): Add 'self' argument.
9860 * record-btrace.c (record_btrace_close): Add 'self' argument.
9861 * monitor.h (monitor_close): Add 'self' argument.
9862 * monitor.c (monitor_close): Add 'self' argument.
9863 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9864 * linux-nat.c (linux_nat_close): Add argument.
9865 * go32-nat.c (go32_close): Add 'self' argument.
9866 * exec.c (exec_close_1): Add 'self' argument.
9867 * ctf.c (ctf_close): Add 'self' argument.
9868 * corelow.c (core_close): Add 'self' argument.
9869 (core_close_cleanup): Update.
9870 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9871 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9875 * remote.c (remote_load): New function.
9876 (init_remote_ops): Use it.
9878 2014-02-19 Tom Tromey <tromey@redhat.com>
9880 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9882 * common/linux-btrace.h (linux_supports_btrace): Update.
9883 * remote.c (remote_supports_btrace): Add "self" argument.
9884 * target-delegates.c: Rebuild.
9885 * target.c (target_supports_btrace): Remove.
9886 * target.h (struct target_ops) <to_supports_btrace>: Add
9887 target_ops argument.
9888 (target_supports_btrace): New define.
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9892 * record-full.c (record_full_beneath_to_resume_ops)
9893 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9894 (record_full_beneath_to_wait)
9895 (record_full_beneath_to_store_registers_ops)
9896 (record_full_beneath_to_store_registers)
9897 (record_full_beneath_to_xfer_partial_ops)
9898 (record_full_beneath_to_xfer_partial)
9899 (record_full_beneath_to_insert_breakpoint_ops)
9900 (record_full_beneath_to_insert_breakpoint)
9901 (record_full_beneath_to_remove_breakpoint_ops)
9902 (record_full_beneath_to_remove_breakpoint)
9903 (record_full_beneath_to_stopped_by_watchpoint)
9904 (record_full_beneath_to_stopped_data_address)
9905 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9906 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9907 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9908 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9909 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9910 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9911 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9912 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9913 (record_full_resume, record_full_wait_1)
9914 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9915 (record_full_store_registers, record_full_xfer_partial)
9916 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9917 (record_full_async, record_full_core_xfer_partial): Use target
9919 * target-delegates.c: Rebuild.
9920 * target.c (current_xfer_partial): Remove.
9921 (update_current_target): Do not INHERIT or de_fault
9922 to_insert_breakpoint, to_remove_breakpoint,
9923 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9924 to_is_async_p, to_async. Do not set to_xfer_partial field.
9925 (default_xfer_partial): Simplify.
9926 (current_xfer_partial): Remove.
9927 (target_wait, target_resume): Simplify.
9928 (find_default_can_async_p, find_default_is_async_p): Update.
9929 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9930 to_xfer_partial, to_stopped_by_watchpoint,
9931 to_stopped_data_address.
9932 (target_store_registers): Simplify.
9933 (forward_target_remove_breakpoint)
9934 (forward_target_insert_breakpoint): Remove.
9935 (target_remove_breakpoint, target_insert_breakpoint)
9936 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9937 * target.h (struct target_ops) <to_resume, to_wait,
9938 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9939 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9940 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9942 (forward_target_remove_breakpoint)
9943 (forward_target_insert_breakpoint): Remove.
9944 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9946 (record_btrace_insert_breakpoint): Delegate directly.
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9951 * target-delegates.c: New file.
9952 * target.c: Include target-delegates.c.
9953 (init_dummy_target): Call install_dummy_methods.
9954 (complete_target_initialization): Call install_delegators.
9955 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9956 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9957 * make-target-delegates: New file.
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9961 * record.c (find_record_target): Use find_target_at.
9962 * target.c (find_target_at): New function.
9963 * target.h (find_target_at): Declare.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9969 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9971 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9972 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9974 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9976 * linux-nat.c (save_sigtrap): Update.
9977 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9978 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9979 (linux_nat_close): Update.
9980 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9982 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9984 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9985 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9986 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9987 (tmp_to_async): Add 'ops' argument.
9988 (record_full_stopped_by_watchpoint, record_full_async)
9989 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9991 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9992 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9993 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9994 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9995 (remote_is_async_p, remote_async): Add 'ops' argument.
9996 (remote_stopped_data_address): Update.
9997 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9998 * target.c (update_current_target)
9999 (find_default_can_async_p, find_default_is_async_p): Update.
10000 (init_dummy_target): Update.
10001 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10002 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10003 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10004 (target_can_async_p, target_is_async_p, target_async)
10005 (target_stopped_by_watchpoint): Update.
10007 2014-02-19 Yao Qi <yao@codesourcery.com>
10010 * gdbarch.sh: Remove startup_gdbarch.
10011 * gdbarch.c: Regenerated.
10012 * gdbarch.h: Likewise.
10014 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10016 * rl78-tdep.c (rl78_g10_register_name): New function.
10017 (rl78_return_value): Add g10 support.
10018 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10021 2014-02-17 Doug Evans <xdje42@gmail.com>
10023 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10024 (SUBDIR_GUILE_SRCS): Ditto.
10025 (scm-gsmob.o): Ditto.
10027 2014-02-17 Yao Qi <yao@codesourcery.com>
10029 * gnu-nat.c (ILL_RPC): Declare defined function.
10031 2014-02-17 Yao Qi <yao@codesourcery.com>
10033 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10034 mach_msg_type_number_t.
10035 (gnu_write_inferior): Likewise.
10037 2014-02-17 Yao Qi <yao@codesourcery.com>
10039 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10041 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10042 (inf_validate_procs, inf_signal): Likewise.
10043 (S_exception_raise_request): Likewise.
10044 (do_mach_notify_dead_name): Likewise.
10045 (steal_exc_port): Likewise.
10046 (gnu_read_inferior): Change 'copy_count''s type to
10047 mach_msg_type_number_t.
10048 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10051 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10053 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10054 flag. Adjust all users; in particular...
10055 (gnu_wait): ..., don't decrement its value in here...
10056 (gnu_create_inferior): ..., and instead set the flag in here,
10057 around the startup_inferior call, and call that one with
10058 START_INFERIOR_TRAPS_EXPECTED.
10060 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10061 (ILL_RPC): ... new macro.
10062 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10063 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10064 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10065 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10066 functions with ILL_RPC macro.
10067 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10068 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10069 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10070 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10071 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10072 (S_proc_getlogin_reply, S_proc_getsid_reply)
10073 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10074 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10075 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10076 (S_proc_getnports_reply, S_proc_is_important_reply)
10077 (S_proc_get_code_reply): New stub functions, generated with
10080 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10081 collected the type check structures.
10083 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10085 2014-02-14 Doug Evans <dje@google.com>
10087 * target.c (target_write_partial): Fix result type.
10089 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10091 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10092 the proper offsets to access fpregset_t.
10094 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10096 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10097 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10098 * h8300-tdep.c (setmachinelist): Remove global.
10099 * hppa-tdep.c (hppa_sigtramp): Remove global.
10100 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10101 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10102 * ravenscar-thread.c (update_target_observer): Remove global.
10103 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10105 2014-02-12 Tom Tromey <tromey@redhat.com>
10107 * common/rsp-low.c: Update comments.
10108 * common/rsp-low.h: Update comments.
10110 2014-02-12 Tom Tromey <tromey@redhat.com>
10112 * common/rsp-low.c (convert_ascii_to_int): Remove.
10113 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10115 2014-02-12 Tom Tromey <tromey@redhat.com>
10117 * common/rsp-low.h (unhexify): Don't declare.
10118 * common/rsp-low.c (unhexify): Remove.
10120 2014-02-12 Tom Tromey <tromey@redhat.com>
10122 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10123 * common/rsp-low.c (convert_int_to_ascii): Remove.
10125 2014-02-12 Tom Tromey <tromey@redhat.com>
10127 * common/rsp-low.h (hexify): Don't declare.
10128 * common/rsp-low.c (hexify): Remove.
10130 2014-02-12 Tom Tromey <tromey@redhat.com>
10132 * common/rsp-low.c (hexify): Never take strlen of argument.
10134 2014-02-12 Tom Tromey <tromey@redhat.com>
10136 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10137 * remote.c (extended_remote_run, remote_rcmd)
10138 (remote_download_trace_state_variable, remote_save_trace_data)
10139 (remote_set_trace_notes): Update.
10140 * tracepoint.c (encode_source_string, tfile_write_status)
10141 (tfile_write_uploaded_tsv): Update.
10143 2014-02-12 Tom Tromey <tromey@redhat.com>
10145 * tracepoint.c: Include rsp-low.h.
10146 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10147 * remote.c: Include rsp-low.h.
10148 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10149 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10150 (remote_unescape_input): Move to common/rsp-low.c.
10151 * common/rsp-low.h: New file.
10152 * common/rsp-low.c: New file.
10153 * Makefile.in (SFILES): Add common/rsp-low.c.
10154 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10155 (COMMON_OBS): Add rsp-low.o.
10156 (rsp-low.o): New target.
10158 2014-02-12 Tom Tromey <tromey@redhat.com>
10160 * utils.h: Include print-utils.h.
10161 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10162 (int_string, core_addr_to_string, core_addr_to_string_nz)
10163 (hex_string, hex_string_custom): Don't declare.
10164 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10165 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10166 (hex_string_custom, int_string, core_addr_to_string)
10167 (core_addr_to_string_nz, host_address_to_string): Move to
10168 common/print-utils.c.
10169 * common/print-utils.h: New file.
10170 * common/print-utils.c: New file
10171 * Makefile.in (SFILES): Add common/print-utils.c.
10172 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10173 (COMMON_OBS): Add print-utils.o.
10174 (print-utils.o): New target.
10176 2014-02-12 Tom Tromey <tromey@redhat.com>
10178 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10180 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10182 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10184 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10186 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10187 if a PT_IO ptrace request returns sucessfully but indicates that 0
10188 bytes were transferred.
10190 2014-02-12 Pedro Alves <palves@redhat.com>
10191 Kevin Buettner <kevinb@redhat.com>
10193 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10194 TYPE_INSTANCE_FLAG_CODE_SPACE.
10196 2014-02-12 Pedro Alves <palves@redhat.com>
10198 * h8300-tdep.c (pseudo_from_raw_register)
10199 (raw_from_pseudo_register): New functions.
10200 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10203 2014-02-12 Pedro Alves <palves@redhat.com>
10205 * h8300-tdep.c (h8300_register_sim_regno): New function.
10206 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10207 gdbarch_register_sim_regno hook.
10209 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10211 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10213 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10215 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10217 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10219 * obsd-tdep.h (obsd_init_abi): New prototype.
10220 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10221 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10222 (obsd_init_abi): New functions.
10223 * i386obsd-tdep.c: Include "obsd-tdep.h".
10224 (i386obsd_init_abi): Call obsd_init_abi.
10225 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10226 (amd64obsd_init_abi): Call obsd_init_abi.
10227 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10228 obsd-tdep.c to gdb_target_obs.
10230 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10232 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10233 double float arguments to 16-byte in the argument slots.
10235 2014-02-11 Doug Evans <xdje42@gmail.com>
10237 * configure.ac: Don't crash if pkg-config is not found and guile
10238 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10240 * configure: Regenerate.
10242 2014-02-11 Yao Qi <yao@codesourcery.com>
10244 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10245 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10246 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10247 * gnu-nat.c (gnu_xfer_memory): Likewise.
10248 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10249 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10250 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10251 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10253 2014-02-11 Yao Qi <yao@codesourcery.com>
10255 * target.h (enum target_xfer_error): Rename to ...
10256 (enum target_xfer_status): ... it. New. All users updated.
10257 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10259 (TARGET_XFER_STATUS_ERROR_P): New macro.
10260 (target_xfer_error_to_string): Remove declaration.
10261 (target_xfer_status_to_string): Declare.
10262 (target_xfer_partial_ftype): Adjust it.
10263 (struct target_ops) <to_xfer_partial>: Return
10264 target_xfer_status. Add argument xfered_len. Update
10266 * target.c (target_xfer_error_to_string): Rename to ...
10267 (target_xfer_status_to_string): ... it. New. All callers
10269 (target_read_live_memory): Likewise. Call target_xfer_partial
10270 instead of target_read.
10271 (memory_xfer_live_readonly_partial): Return
10272 target_xfer_status. Add argument xfered_len.
10273 (raw_memory_xfer_partial): Likewise.
10274 (memory_xfer_partial_1): Likewise.
10275 (memory_xfer_partial): Likewise.
10276 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10277 properly. Update debug message.
10278 (default_xfer_partial, current_xfer_partial): Likewise.
10279 (target_write_partial): Likewise.
10280 (target_read_partial): Likewise. All callers updated.
10281 (read_whatever_is_readable): Likewise.
10282 (target_write_with_progress): Likewise.
10283 (target_read_alloc_1): Likewise.
10285 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10286 * auxv.c (procfs_xfer_auxv): Likewise.
10287 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10288 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10289 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10290 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10291 * corefile.c (read_memory): Adjust.
10292 * corelow.c (core_xfer_partial): Likewise.
10293 * ctf.c (ctf_xfer_partial): Likewise.
10294 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10296 (darwin_xfer_partial): Likewise.
10297 * exec.c (section_table_xfer_memory_partial): Likewise. All
10299 (exec_xfer_partial): Likewise.
10300 * exec.h (section_table_xfer_memory_partial): Update
10302 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10304 (gnu_xfer_partial): Likewise.
10305 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10306 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10307 (ia64_hpux_xfer_solib_got): Likewise.
10308 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10309 type of 'partial_len' to ULONGEST.
10310 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10311 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10312 (linux_nat_xfer_partial): Likewise.
10313 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10314 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10315 * monitor.c (monitor_xfer_memory): Likewise.
10316 (monitor_xfer_partial): Likewise.
10317 * procfs.c (procfs_xfer_partial): Likewise.
10318 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10319 * record-full.c (record_full_xfer_partial): Likewise.
10320 (record_full_core_xfer_partial): Likewise.
10321 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10322 (gdbsim_xfer_partial): Likewise.
10323 * remote.c (remote_write_bytes_aux): Likewise. All callers
10325 (remote_write_bytes, remote_read_bytes): Likewise. All
10327 (remote_flash_erase): Likewise. All callers updated.
10328 (remote_write_qxfer): Likewise. All callers updated.
10329 (remote_read_qxfer): Likewise. All callers updated.
10330 (remote_xfer_partial): Likewise.
10331 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10332 (rs6000_xfer_shared_libraries): Likewise.
10333 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10334 (sol_thread_xfer_partial): Likewise.
10335 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10336 (sparc_xfer_partial): Likewise.
10337 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10339 (spu_xfer_partial): Likewise.
10340 * spu-multiarch.c (spu_xfer_partial): Likewise.
10341 * tracepoint.c (tfile_xfer_partial): Likewise.
10342 * windows-nat.c (windows_xfer_memory): Likewise.
10343 (windows_xfer_shared_libraries): Likewise.
10344 (windows_xfer_partial): Likewise.
10345 * valprint.c: Replace 'target_xfer_error' with
10346 'target_xfer_status' in comments.
10348 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10350 Checked in by Joel Brobecker <brobecker@adacore.com>.
10351 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10353 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10355 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10356 function parameters.
10358 2014-02-10 Will Newton <will.newton@linaro.org>
10360 * elfread.c (elf_rel_plt_read): Look for a .got section if
10361 looking up .got.plt fails.
10362 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10363 on address passed to elf_gnu_ifunc_record_cache.
10364 (elf_gnu_ifunc_resolve_addr): Likewise.
10365 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10367 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10369 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10370 (X_RETTURN): New macro.
10371 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10373 * sparc64-tdep.c (sparc64_init_abi): Hook
10374 sparc_in_function_epilogue_p.
10376 2014-02-10 Gary Benson <gbenson@redhat.com>
10378 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10379 Rename name_matcher to symbol_matcher.
10381 2014-02-10 Gary Benson <gbenson@redhat.com>
10383 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10384 Use expand_symtabs_file_matcher_ftype and
10385 expand_symtabs_symbol_matcher_ftype.
10387 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10389 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10390 (struct ada_symbol_cache): New.
10391 (ada_free_symbol_cache): Forward declare.
10392 (struct ada_pspace_data): New.
10393 (ada_pspace_data_handle): New static global.
10394 (get_ada_pspace_data, ada_pspace_data_cleanup)
10395 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10396 (cache_space, cache): Delete, now folded inside struct
10398 (ada_get_symbol_cache): New function.
10399 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10401 (_initialize_ada_language): Remove initialization of cache_space.
10402 Move call to observer_attach_inferior_exit up, grouping it
10403 with the other observer registrations inside this function.
10404 Rename command to be more general. Add call to
10405 register_program_space_data_with_cleanup.
10407 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10409 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10410 ada_new_objfile_observer.
10411 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10412 (_initialize_tasks): Update uses of ada_new_objfile_observer
10413 and ada_tasks_normal_stop_observer.
10415 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10417 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10418 returned by the 'Length attribute to integer.
10420 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10422 * ada-lang.c (_initialize_ada_language): Initialize
10423 cache_space obstack.
10425 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10427 * ada-lang.c (HASH_SIZE): New macro.
10428 (struct cache_entry): New type.
10429 (cache_space, cache): New static globals.
10430 (ada_clear_symbol_cache, find_entry): New functions.
10431 (lookup_cached_symbol, cache_symbol): Implement.
10432 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10433 (_initialize_ada_language): Attach ada_new_objfile_observer
10434 and ada_free_objfile_observer.
10436 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10438 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10439 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10440 struct block * parameter.
10441 (ada_lookup_symbol_list_worker): Constify local variable "block".
10442 Remove cast which is no longer necessary.
10444 2014-02-10 Doug Evans <xdje42@gmail.com>
10446 Add Guile as an extension language.
10447 * NEWS: Mention Guile scripting.
10448 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10449 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10450 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10451 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10452 (CLIBS): Add GUILE_LIBS.
10453 (install-guile): New rule.
10454 (guile.o): New rule.
10455 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10456 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10457 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10458 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10459 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10460 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10461 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10462 * configure.ac: New option --with-guile.
10463 * configure: Regenerate.
10464 * config.in: Regenerate.
10465 * auto-load.c: Remove #include "python/python.h". Add #include
10466 "gdb/section-scripts.h".
10467 (source_section_scripts): Handle Guile scripts.
10468 (_initialize_auto_load): Add name of Guile objfile script to
10469 scripts-directory help text.
10470 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10471 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10472 (struct breakpoint): New member scm_bp_object.
10473 * defs.h (enum command_control_type): New value guile_control.
10474 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10476 (show_user): Update comment.
10477 (_initialize_cli_cmds): Update help text for "show user". Update help
10478 text for max-user-call-depth.
10479 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10481 (multi_line_command_p): Add guile_control.
10482 (print_command_lines): Handle guile_control.
10483 (execute_control_command, recurse_read_control_structure): Ditto.
10484 (process_next_line): Recognize "guile" commands.
10485 * disasm.c (gdb_disassemble_info): Make non-static.
10486 * disasm.h: #include "dis-asm.h".
10487 (struct gdbarch): Add forward decl.
10488 (gdb_disassemble_info): Declare.
10489 * extension.c: #include "guile/guile.h".
10490 (extension_languages): Add guile.
10491 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10492 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10493 * gdbtypes.c (get_unsigned_type_max): New function.
10494 (get_signed_type_minmax): New function.
10495 * gdbtypes.h (get_unsigned_type_max): Declare.
10496 (get_signed_type_minmax): Declare.
10497 * guile/README: New file.
10498 * guile/guile-internal.h: New file.
10499 * guile/guile.c: New file.
10500 * guile/guile.h: New file.
10501 * guile/scm-arch.c: New file.
10502 * guile/scm-auto-load.c: New file.
10503 * guile/scm-block.c: New file.
10504 * guile/scm-breakpoint.c: New file.
10505 * guile/scm-disasm.c: New file.
10506 * guile/scm-exception.c: New file.
10507 * guile/scm-frame.c: New file.
10508 * guile/scm-gsmob.c: New file.
10509 * guile/scm-iterator.c: New file.
10510 * guile/scm-lazy-string.c: New file.
10511 * guile/scm-math.c: New file.
10512 * guile/scm-objfile.c: New file.
10513 * guile/scm-ports.c: New file.
10514 * guile/scm-pretty-print.c: New file.
10515 * guile/scm-safe-call.c: New file.
10516 * guile/scm-string.c: New file.
10517 * guile/scm-symbol.c: New file.
10518 * guile/scm-symtab.c: New file.
10519 * guile/scm-type.c: New file.
10520 * guile/scm-utils.c: New file.
10521 * guile/scm-value.c: New file.
10522 * guile/lib/gdb.scm: New file.
10523 * guile/lib/gdb/boot.scm: New file.
10524 * guile/lib/gdb/experimental.scm: New file.
10525 * guile/lib/gdb/init.scm: New file.
10526 * guile/lib/gdb/iterator.scm: New file.
10527 * guile/lib/gdb/printing.scm: New file.
10528 * guile/lib/gdb/types.scm: New file.
10529 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10530 (VPATH): Add $(GUILE_SRCDIR).
10531 (GUILE_DIR): New variable.
10532 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10533 (all): Add stamp-guile dependency.
10534 (stamp-guile): New rule.
10535 (clean-guile, install-guile, uninstall-guile): New rules.
10536 (install-only): Add install-guile dependency.
10537 (uninstall): Add uninstall-guile dependency.
10538 (clean): Add clean-guile dependency.
10540 2014-02-09 Doug Evans <xdje42@gmail.com>
10542 Revert this patch (which I approved, mea culpa).
10544 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10546 * Makefile.in (all-lib): Remove.
10547 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10549 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10551 Fix Python stack corruption.
10552 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10555 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10557 * Makefile.in (all-lib): Remove.
10558 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10560 2014-02-07 Doug Evans <dje@google.com>
10562 * extension-priv.h (extension_language_script_ops): Add comment.
10563 (extension_language_ops): Add comment.
10564 (active_ext_lang_state): Fix typo in comment.
10566 2014-02-07 Pedro Alves <palves@redhat.com>
10568 PR breakpoints/16292
10569 * infrun.c (handle_signal_stop) <signal arrives while stepping
10570 over a breakpoint>: Switch back to the stepping thread.
10572 2014-02-07 Yao Qi <yao@codesourcery.com>
10574 * target.c (target_xfer_partial): Return zero if LEN is zero.
10576 2014-02-07 Yao Qi <yao@codesourcery.com>
10578 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10579 (ld_so_xfer_auxv): Likewise.
10580 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10581 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10582 * corelow.c (core_xfer_partial): Likewise.
10583 * ctf.c (ctf_xfer_partial): Likewise.
10584 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10585 (darwin_xfer_partial): Likewise.
10586 * exec.c (exec_xfer_partial): Likewise.
10587 * gnu-nat.c (gnu_xfer_partial): Likewise.
10588 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10589 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10590 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10591 * linux-nat.c (linux_xfer_siginfo): Likewise.
10592 (linux_proc_xfer_spu): Likewise.
10593 * procfs.c (procfs_xfer_partial): Likewise.
10594 * record-full.c (record_full_xfer_partial): Likewise.
10595 (record_full_core_xfer_partial): Likewise.
10596 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10597 * remote.c (remote_write_qxfer): Likewise.
10598 (remote_write_qxfer, remote_read_qxfer): Likewise.
10599 (remote_xfer_partial): Likewise.
10600 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10601 (rs6000_xfer_shared_libraries): Likewise.
10602 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10603 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10604 (spu_xfer_partial): Likewise.
10605 * target.c (memory_xfer_partial_1): Likewise.
10606 * tracepoint.c (tfile_xfer_partial): Likewise.
10607 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10608 (windows_xfer_partial): Likewise.
10610 2014-02-07 Yao Qi <yao@codesourcery.com>
10612 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10614 (core_xfer_shared_libraries_aix): Likewise.
10615 * gdbarch.c, gdbarch.h: Regenerated.
10616 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10617 ULONGEST. Change 'len_avail' type to ULONGEST.
10618 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10619 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10621 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10623 2014-02-07 Yao Qi <yao@codesourcery.com>
10625 * corefile.c (memory_error): Get 'exception' from ERR and pass
10626 'exception' to throw_error.
10628 2014-02-06 Doug Evans <xdje42@gmail.com>
10630 * configure.ac (libpython checking): Remove all but python.o from
10631 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10632 * configure: Regenerate.
10634 * Makefile.in (SFILES): Add extension.c.
10635 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10636 (COMMON_OBS): Add extension.o.
10637 * extension.h: New file.
10638 * extension-priv.h: New file.
10639 * extension.c: New file.
10641 * python/python-internal.h: #include "extension.h".
10642 (gdbpy_auto_load_enabled): Declare.
10643 (gdbpy_apply_val_pretty_printer): Declare.
10644 (gdbpy_apply_frame_filter): Declare.
10645 (gdbpy_preserve_values): Declare.
10646 (gdbpy_breakpoint_cond_says_stop): Declare.
10647 (gdbpy_breakpoint_has_cond): Declare.
10648 (void source_python_script_for_objfile): Delete.
10649 * python/python.c: #include "extension-priv.h".
10650 Delete inclusion of "observer.h".
10651 (extension_language_python): Moved here and renamed from
10652 script_language_python in py-auto-load.c.
10653 Redefined to be of type extension_language_defn.
10654 (python_extension_script_ops): New global.
10655 (python_extension_ops): New global.
10656 (struct python_env): New member previous_active.
10657 (restore_python_env): Call restore_active_ext_lang.
10658 (ensure_python_env): Call set_active_ext_lang.
10659 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10661 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10663 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10665 (gdbpy_eval_from_control_command): Renamed from
10666 eval_python_from_control_command, made static. New arg extlang.
10667 (gdbpy_source_script) Renamed from source_python_script, made static.
10669 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10670 result to int. New arg extlang.
10671 (gdbpy_source_objfile_script): Renamed from
10672 source_python_script_for_objfile, made static. New arg extlang.
10673 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10674 static. New args extlang, extlang_printers. Change result type to
10676 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10677 static. New arg extlang. Rename arg printers to extlang_printers
10678 and change type to ext_lang_type_printers *.
10679 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10680 static. Replace argument arg with extlang, extlang_printers.
10681 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10682 (!HAVE_PYTHON, source_python_script): Delete.
10683 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10684 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10685 (!HAVE_PYTHON, start_type_printers): Delete.
10686 (!HAVE_PYTHON, apply_type_printers): Delete.
10687 (!HAVE_PYTHON, free_type_printers): Delete.
10688 (_initialize_python): Delete call to observer_attach_before_prompt.
10689 (finalize_python): Set/restore active extension language.
10690 (gdbpy_finish_initialization) Renamed from
10691 finish_python_initialization, made static. New arg extlang.
10692 (gdbpy_initialized): New function.
10693 * python/python.h: #include "extension.h". Delete #include
10694 "value.h", "mi/mi-cmds.h".
10695 (extension_language_python): Declare.
10696 (GDBPY_AUTO_FILE_NAME): Delete.
10697 (enum py_bt_status): Moved to extension.h and renamed to
10698 ext_lang_bt_status.
10699 (enum frame_filter_flags): Moved to extension.h.
10700 (enum py_frame_args): Moved to extension.h and renamed to
10701 ext_lang_frame_args.
10702 (finish_python_initialization): Delete.
10703 (eval_python_from_control_command): Delete.
10704 (source_python_script): Delete.
10705 (apply_val_pretty_printer): Delete.
10706 (apply_frame_filter): Delete.
10707 (preserve_python_values): Delete.
10708 (gdbpy_script_language_defn): Delete.
10709 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10710 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10712 * auto-load.c: #include "extension.h".
10713 (GDB_AUTO_FILE_NAME): Delete.
10714 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10715 (script_language_gdb): Delete, moved to extension.c and renamed to
10716 extension_language_gdb.
10717 (source_gdb_script_for_objfile): Delete.
10718 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10719 (loaded_script): Change type of language member to
10720 struct extension_language_defn *.
10721 (init_loaded_scripts_info): Initialize
10722 unsupported_script_warning_printed.
10723 (maybe_add_script): Make static. Change type of language arg to
10724 struct extension_language_defn *.
10725 (clear_section_scripts): Reset unsupported_script_warning_printed.
10726 (auto_load_objfile_script_1): Rewrite to use extension language API.
10727 (auto_load_objfile_script): Make public. Remove support-compiled-in
10728 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10729 (source_section_scripts): Rewrite to use extension language API.
10730 (load_auto_scripts_for_objfile): Rewrite to use
10731 auto_load_scripts_for_objfile.
10732 (collect_matching_scripts_data): Change type of language member to
10733 struct extension_language_defn *.
10734 (auto_load_info_scripts): Change type of language arg to
10735 struct extension_language_defn *.
10736 (unsupported_script_warning_print): New function.
10737 (script_not_found_warning_print): Make static.
10738 (_initialize_auto_load): Rewrite construction of scripts-directory
10740 * auto-load.h (struct objfile): Add forward decl.
10741 (struct script_language): Delete.
10742 (struct auto_load_pspace_info): Add forward decl.
10743 (struct extension_language_defn): Add forward decl.
10744 (maybe_add_script): Delete.
10745 (auto_load_objfile_script): Declare.
10746 (script_not_found_warning_print): Delete.
10747 (auto_load_info_scripts): Update prototype.
10748 (auto_load_gdb_scripts_enabled): Declare.
10749 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10750 auto_load_python_scripts_enabled and made public.
10751 (script_language_python): Delete, moved to python.c.
10752 (gdbpy_script_language_defn): Delete.
10753 (info_auto_load_python_scripts): Update to use
10754 extension_language_python.
10756 * breakpoint.c (condition_command): Replace call to
10757 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10758 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10759 with call to breakpoint_ext_lang_cond_says_stop.
10760 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10761 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10762 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10763 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10765 (local_setattro): Print name of extension language with existing
10768 * valprint.c (val_print, value_print): Update to call
10769 apply_ext_lang_val_pretty_printer.
10770 * cp-valprint.c (cp_print_value): Update call to
10771 apply_ext_lang_val_pretty_printer.
10772 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10773 (gdbpy_apply_val_pretty_printer): Renamed from
10774 apply_val_pretty_printer. New arg extlang.
10775 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10777 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10778 extension language API.
10779 * cli/cli-script.c (execute_control_command): Update to call
10780 eval_ext_lang_from_control_command.
10782 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10783 enum ext_lang_bt_status values. Update call to
10784 apply_ext_lang_frame_filter.
10785 (mi_cmd_stack_list_locals): Ditto.
10786 (mi_cmd_stack_list_args): Ditto.
10787 (mi_cmd_stack_list_variables): Ditto.
10788 * mi/mi-main.c: Delete #include "python/python-internal.h".
10789 Add #include "extension.h".
10790 (mi_cmd_list_features): Replace reference to python internal variable
10791 gdb_python_initialized with call to ext_lang_initialized_p.
10793 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10794 Update to use enum ext_lang_frame_args. Update to call
10795 apply_ext_lang_frame_filter.
10796 * python/py-framefilter.c (extract_sym): Update to use enum
10797 ext_lang_bt_status.
10798 (extract_value, py_print_type, py_print_value): Ditto.
10799 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10800 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10801 (py_print_frame): Ditto.
10802 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10803 New arg extlang. Update to use enum ext_lang_bt_status.
10805 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10806 finish_python_initialization. Replace with call to
10807 finish_ext_lang_initialization.
10809 * typeprint.c (do_free_global_table): Update to call
10810 free_ext_lang_type_printers.
10811 (create_global_typedef_table): Update to call
10812 start_ext_lang_type_printers.
10813 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10814 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10815 (type_print_options): Change type of global_printers from "void *"
10816 to "struct ext_lang_type_printers *".
10818 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10819 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10820 (gdbpy_preserve_values): Renamed from preserve_python_values.
10822 (!HAVE_PYTHON, preserve_python_values): Delete.
10824 * utils.c (quit_flag): Delete, moved to extension.c.
10825 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10828 * eval.c: Delete #include "python/python.h".
10829 * main.c: Delete #include "python/python.h".
10831 * defs.h: Update comment.
10833 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10837 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10839 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10842 2014-02-05 Yao Qi <yao@codesourcery.com>
10844 * remote.c (remote_pass_signals): Remove local 'buf' and use
10846 (remote_program_signals): Likewise.
10848 2014-02-05 Yao Qi <yao@codesourcery.com>
10850 * ctf.c: Include "inferior.h" and "gdbthread.h".
10851 (CTF_PID): A new macro.
10852 (ctf_open): Call inferior_appeared and add_thread_silent.
10853 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10854 (ctf_thread_alive): New function.
10855 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10857 2014-02-05 Yao Qi <yao@codesourcery.com>
10861 2013-05-24 Yao Qi <yao@codesourcery.com>
10863 * tracepoint.c (TFILE_PID): Remove.
10864 (tfile_open): Don't add thread and inferior.
10865 (tfile_close): Don't set 'inferior_ptid'. Don't call
10866 exit_inferior_silent.
10867 (tfile_thread_alive): Remove.
10868 (init_tfile_ops): Don't set field 'to_thread_alive' of
10871 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10873 * remote.c (remote_start_remote): Call remote_check_symbols even
10874 if only symbol-file (not file) has been given.
10876 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10878 * gdbarch.sh (skip_entrypoint): New callback.
10879 * gdbarch.c, gdbarch.h: Regenerate.
10880 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10881 * infrun.c (fill_in_stop_func): Likewise.
10882 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10883 (ppc_elfv2_elf_make_msymbol_special): New function.
10884 (ppc_elfv2_skip_entrypoint): Likewise.
10885 (ppc_linux_init_abi): Install them for ELFv2.
10887 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10889 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10890 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10891 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10892 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10893 structures returned in GPRs.
10895 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10897 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10898 offset to the stack parameter list for the ELFv2 ABI.
10900 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10902 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10903 set_gdbarch_convert_from_func_ptr_addr and
10904 set_gdbarch_elf_make_msymbol_special for ELFv1.
10905 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10906 function descriptors on ELFv1.
10907 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10908 set up r12 at function entry.
10910 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10912 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10913 (struct gdbarch_tdep): New member elf_abi.
10915 * rs6000-tdep.c: Include "elf/ppc64.h".
10916 (rs6000_gdbarch_init): Detect ELF ABI version.
10918 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10920 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10921 within a register pair holding a DFP 128-bit value on little-endian.
10922 (ppc64_sysv_abi_return_value_base): Likewise.
10923 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10924 (dfp_pseudo_register_write): Likewise.
10926 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10928 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10929 offset on little-endian when passing _Decimal32.
10930 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10932 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10934 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10935 of the overlapped FP register within the VSX register on little-
10937 (efpr_pseudo_register_write): Likewise.
10939 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10941 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10942 offset on little-endian when passing small structures.
10944 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10946 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10947 (struct ppc64_sysv_argpos): New data structure.
10948 (ppc64_sysv_abi_push_float): Remove.
10949 (ppc64_sysv_abi_push_val): New function.
10950 (ppc64_sysv_abi_push_integer): Likewise.
10951 (ppc64_sysv_abi_push_freg): Likewise.
10952 (ppc64_sysv_abi_push_vreg): Likewise.
10953 (ppc64_sysv_abi_push_param): Likewise.
10954 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10955 (ppc64_sysv_abi_return_value_base): New function.
10956 (ppc64_sysv_abi_return_value): Refactor to use it.
10958 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10960 * NEWS: Document new target powerpc64le-*-linux*.
10962 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10964 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10965 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10967 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10968 register set used in ELF core dumps. Add floating-point register set.
10970 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10972 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10973 dwarf2_to_gdb[] table using symbolic constants. Adjust
10974 penultimate entry from number representing the PC register
10975 to symbolic constant representing the MDR register. Add
10976 constant for the PC register to the end of the table.
10978 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10980 * bsd-kvm.c: Include <sys/param.h>
10982 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10984 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10986 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10988 * ada-lang.h (clear_ada_sym_cache): Delete.
10990 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10992 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10994 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10996 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10997 the sigreturn register save area only if the syscall is
11000 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11002 * valops.c (value_slice): Minor reformatting.
11004 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11006 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11008 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11010 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11011 New static globals.
11012 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11013 (ada_ignore_descriptive_types_p): New static global.
11014 (find_parallel_type_by_descriptive_type): Return immediately
11015 if ada_ignore_descriptive_types_p is set.
11016 (_initialize_ada_language): Register new commands "maintenance
11017 set ada", "maintenance show ada", "maintenance set ada
11018 ignore-descriptive-types" and "maintenance show ada
11019 ignore-descriptive-types".
11020 * NEWS: Add entry for new "maint ada set/show
11021 ignore-descriptive-types" commands.
11023 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11025 * record-btrace.c (record_btrace_close): Call btrace_teardown
11028 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11030 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11033 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11035 * ada-typeprint (type_is_full_subrange_of_target_type):
11037 (print_range): Add parameter bounds_prefered_p. If not set,
11038 try printing range types using the name of their base type.
11039 (print_range_type): Add parameter bounds_prefered_p.
11040 Use it in call to print_range.
11041 (print_array_type, ada_print_type): Update calls to print_range
11042 and print_range_type.
11044 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11046 * ada-typeprint.c (print_array_type, print_choices, print_range)
11047 (print_range_bound, print_dynamic_range_bound, print_range_type):
11048 Remove declaration.
11050 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11052 * ada-typeprint.c (print_range): Add missing empty line
11053 after local declaration.
11055 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11057 * ada-valprint.c (print_optional_low_bound): Get index_type's
11058 target type for as long as it is a TYPE_CODE_RANGE.
11060 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11062 * procfs.c (procfs_make_note_section): Remove assertion and
11063 associated comment.
11065 2014-01-24 Yao Qi <yao@codesourcery.com>
11067 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11068 * corelow.c (get_core_siginfo): Likewise.
11070 2014-01-24 Yao Qi <yao@codesourcery.com>
11072 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11073 ULONGEST. Don't check 'len' is negative.
11074 (remote_write_bytes): Change type of 'len' to ULONGEST.
11076 2014-01-23 Tom Tromey <tromey@redhat.com>
11079 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11080 Handle exception from frame.block.
11081 (FrameVars.fetch_frame_locals): Likewise.
11083 2014-01-23 Tom Tromey <tromey@redhat.com>
11086 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11087 on a NULL pointer. Move "goto error" to correct place.
11089 2014-01-23 Tom Tromey <tromey@redhat.com>
11092 * python/py-framefilter.c (apply_frame_filter): Call
11093 ensure_python_env after computing gdbarch.
11095 2014-01-23 Yao Qi <yao@codesourcery.com>
11097 * target.c (raw_memory_xfer_partial): Change argument type
11098 from void * to gdb_byte *.
11099 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11101 2014-01-22 Doug Evans <dje@google.com>
11103 New gdbserver option --debug-format=timestamp.
11104 * NEWS: Mention it.
11106 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11108 * syscalls/s390x-linux.xml: New file.
11109 * syscalls/s390-linux.xml: New file.
11110 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11111 (XML_SYSCALL_FILENAME_S390X): Likewise.
11112 (op_svc): New enum value for SVC opcode.
11113 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11114 (s390_linux_get_syscall_number): New function.
11115 (s390_gdbarch_init): Register '*get_syscall_number' and the
11116 syscall xml file name.
11117 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11118 "s390-linux.xml" and "s390x-linux.xml".
11119 * NEWS: Announce new feature.
11121 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11123 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11125 2014-01-22 Pedro Alves <palves@redhat.com>
11127 * xtensa-config.c: Include defs.h.
11129 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11131 * common/common-utils.h: Add "ARI:" comment beside __func__
11134 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11136 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11137 documentation a bit.
11139 2014-01-21 Roland McGrath <mcgrathr@google.com>
11141 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11142 * configure: Regenerate.
11143 * aclocal.m4: Regenerate.
11144 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11145 New substituted variables.
11146 (install-strip): New target.
11147 (INSTALL_SCRIPT): New substituted variable.
11148 (FLAGS_TO_PASS): Add it.
11149 (install-only): Use $(INSTALL_SCRIPT) rather than
11150 $(INSTALL_PROGRAM) for gcore.
11152 2014-01-20 Tom Tromey <tromey@redhat.com>
11154 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11157 2014-01-20 Tom Tromey <tromey@redhat.com>
11159 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11160 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11161 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11162 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11163 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11164 (struct cmd_list_element) <flags>: Remove.
11165 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11166 doc_allocated>: New fields.
11167 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11169 * maint.c (maintenance_do_deprecate): Update.
11170 * top.c (execute_command): Update.
11172 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11174 * xtensa-linux-nat.c: Include asm/ptrace.h.
11176 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11178 * Makefile.in (SFILES): Add d-support.c.
11179 (COMMON_OBS): Add d-support.o.
11180 * d-lang.h (d_parse_symbol): Add comment, now defined in
11182 * d-lang.c (parse_call_convention)
11183 (parse_attributes, parse_function_types)
11184 (parse_function_args, parse_type, parse_identifier)
11185 (call_convention_p, d_parse_symbol): Move functions to ...
11186 * d-support.c: ... New file.
11188 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11190 * d-lang.h (d_parse_symbol): Add declaration.
11191 * d-lang.c (extract_identifiers)
11192 (extract_type_info): Remove functions.
11193 (parse_call_convention, parse_attributes)
11194 (parse_function_types, parse_function_args)
11195 (parse_type, parse_identifier, call_convention_p)
11196 (d_parse_symbol): New functions.
11197 (d_demangle): Use d_parse_symbol to demangle D symbols.
11199 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11201 * d-lang.h (struct builtin_d_type): New data type.
11202 (builtin_d_type): Add declaration.
11203 * d-lang.c (d_language_arch_info, build_d_types)
11204 (builtin_d_type): New functions.
11205 (enum d_primitive_types): New data type.
11206 (d_language_defn): Change c_language_arch_info to
11207 d_language_arch_info.
11208 (d_type_data): New static variable.
11209 (_initialize_d_language): Initialize d_type_data.
11211 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11213 * d-lang.h (d_main_name): Add declaration.
11214 * d-lang.c (d_main_name): New function.
11215 * symtab.c (find_main_name): Add call to d_main_name.
11217 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11219 * d-lang.c (d_language_defn): Change macro_expansion_c to
11220 macro_expansion_no.
11222 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11224 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11226 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11228 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11229 gdb_exception" declaration.
11230 * remote.c (getpkt_or_notif_sane): Likewise.
11232 2014-01-17 Doug Evans <dje@google.com>
11234 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11235 function, contents of dirnames_to_char_ptr_vec_append moved here.
11236 (delim_string_to_char_ptr_vec): New function.
11237 (dirnames_to_char_ptr_vec_append): Rewrite.
11238 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11240 2014-01-17 Doug Evans <dje@google.com>
11242 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11244 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11245 #include "common-utils.h".
11246 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11247 * common/vec.h (VEC_ASSERT_PASS): Update.
11248 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11249 (MACH_CHECK_ERROR): Update.
11251 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11253 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11255 * gdbarch.h: Regenerate.
11257 2014-01-16 Tom Tromey <tromey@redhat.com>
11259 * value.c (struct value) <regnum>: Move earlier.
11261 2014-01-16 Tom Tromey <tromey@redhat.com>
11263 * remote.c (extended_remote_create_inferior): Rename from
11264 extended_remote_create_inferior_1. Add "ops" argument. Remove
11265 old implementation.
11267 2014-01-16 Pedro Alves <palves@redhat.com>
11269 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11270 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11273 2014-01-16 Doug Evans <dje@google.com>
11275 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11277 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11279 * btrace.h (btrace_thread_flag): New.
11280 (struct btrace_thread_info) <flags>: New.
11281 * record-btrace.c (record_btrace_resume_thread)
11282 (record_btrace_find_thread_to_move, btrace_step_no_history)
11283 (btrace_step_stopped, record_btrace_start_replaying)
11284 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11285 (record_btrace_find_resume_thread): New.
11286 (record_btrace_resume, record_btrace_wait): Extend.
11287 (record_btrace_can_execute_reverse): New.
11288 (record_btrace_open): Fail in non-stop mode.
11289 (record_btrace_set_replay): Split into this, ...
11290 (record_btrace_stop_replaying): ... this, ...
11291 (record_btrace_clear_histories): ... and this.
11292 (init_record_btrace_ops): Init to_can_execute_reverse.
11293 * NEWS: Announce it.
11295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11297 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11298 (forward_target_decr_pc_after_break)
11299 (target_decr_pc_after_break): New.
11300 * target.c (forward_target_decr_pc_after_break)
11301 (target_decr_pc_after_break): New.
11302 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11303 instead of gdbarch_decr_pc_after_break.
11304 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11305 instead of gdbarch_decr_pc_after_break.
11306 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11307 instead of gdbarch_decr_pc_after_break.
11308 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11309 instead of gdbarch_decr_pc_after_break.
11310 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11311 instead of gdbarch_decr_pc_after_break.
11312 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11313 instead of gdbarch_decr_pc_after_break.
11315 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11317 * btrace.c: Include regcache.h.
11318 (btrace_add_pc): New.
11319 (btrace_enable): Call btrace_add_pc.
11320 (btrace_is_empty): New.
11321 * btrace.h (btrace_is_empty): New.
11322 * record-btrace.c (require_btrace, record_btrace_info): Call
11325 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11327 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11328 Support delta reads.
11329 (linux_disable_btrace): Change return type.
11330 * common/linux-btrace.h (linux_read_btrace): Change parameters
11331 and return type to allow error reporting. Update users.
11332 (linux_disable_btrace): Change return type. Update users.
11333 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11335 (btrace_error): New.
11336 (btrace_block) <begin>: Comment on BEGIN == 0.
11337 * btrace.c (btrace_compute_ftrace): Start from the end of
11339 (btrace_stitch_trace, btrace_clear_history): New.
11340 (btrace_fetch): Read delta trace, return if replaying.
11341 (btrace_clear): Move clear history code to btrace_clear_history.
11342 (parse_xml_btrace): Throw an error if parsing failed.
11343 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11344 and return type to allow error reporting.
11345 (target_read_btrace): Change parameters and return type to allow
11347 * target.c (target_read_btrace): Update.
11348 * remote.c (remote_read_btrace): Support delta reads. Pass
11350 * NEWS: Announce it.
11352 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11354 * record.h (record_btrace_frame_unwind)
11355 (record_btrace_tailcall_frame_unwind): New declarations.
11356 * dwarf2-frame: Include record.h
11357 (dwarf2_frame_cfa): Throw an error for btrace frames.
11358 * record-btrace.c: Include hashtab.h.
11359 (btrace_get_bfun_name): New.
11360 (btrace_call_history): Call btrace_get_bfun_name.
11361 (struct btrace_frame_cache): New.
11363 (bfcache_hash, bfcache_eq, bfcache_new): New.
11364 (btrace_get_frame_function): New.
11365 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11366 (record_btrace_frame_this_id): Compute own id.
11367 (record_btrace_frame_prev_register): Provide PC, throw_error
11368 for all other registers.
11369 (record_btrace_frame_sniffer): Detect btrace frames.
11370 (record_btrace_tailcall_frame_sniffer): New.
11371 (record_btrace_frame_dealloc_cache): New.
11372 (record_btrace_frame_unwind): Add new functions.
11373 (record_btrace_tailcall_frame_unwind): New.
11374 (_initialize_record_btrace): Allocate cache.
11375 * btrace.c (btrace_clear): Call reinit_frame_cache.
11376 * NEWS: Announce it.
11378 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11380 * record-btrace.c (record_btrace_set_replay)
11381 (record_btrace_goto_begin, record_btrace_goto_end)
11382 (record_btrace_goto): New.
11383 (init_record_btrace_ops): Initialize them.
11384 * NEWS: Announce it.
11386 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11388 * record-btrace.c (record_btrace_find_new_threads)
11389 (record_btrace_thread_alive): New.
11390 (init_record_btrace_ops): Initialize to_find_new_threads and
11393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11395 * record-btrace.c (record_btrace_resume): New.
11396 (record_btrace_wait): New.
11397 (init_record_btrace_ops): Initialize to_wait and to_resume.
11399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11401 * record-btrace.c (record_btrace_xfer_partial)
11402 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11403 (record_btrace_allow_memory_access): New.
11404 (init_record_btrace_ops): Initialize new methods.
11405 * target.c (raw_memory_xfer_partial): Bail out if target reports
11406 that this memory is not available.
11408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11410 * target.h (target_ops) <to_insert_breakpoint>
11411 <to_remove_breakpoint>: Add target_ops parameter.
11412 (forward_target_insert_breakpoint): New.
11413 (forward_target_remove_breakpoint): New.
11414 (memory_remove_breakpoint, memory_insert_breakpoint):
11415 Add target_ops parameter.
11416 * target.c (target_insert_breakpoint): Split into this and ...
11417 (forward_target_insert_breakpoint): ... this.
11418 (target_remove_breakpoint): Split into this and ...
11419 (forward_target_remove_breakpoint): ... this.
11420 (debug_to_insert_breakpoint): Add target_ops parameter.
11421 Call forward_target_insert_breakpoint.
11422 (debug_to_remove_breakpoint): Add target_ops parameter.
11423 Call forward_target_remove_breakpoint.
11424 (update_current_target): Do not inherit or default to_insert_breakpoint
11425 and to_remove_breakpoint.
11426 * corelow.c (ignore): Add target_ops parameter.
11427 * exec.c (ignore): Add target_ops parameter.
11428 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11429 Add target_ops parameter.
11430 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11431 Add target_ops parameter.
11432 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11433 Add target_ops parameter.
11434 * record-full.c (record_full_beneath_to_insert_breakpoint)
11435 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11436 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11437 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11438 (record_full_core_remove_breakpoint): Add target_ops parameter.
11440 (record_full_beneath_to_insert_breakpoint_ops)
11441 (record_full_beneath_to_remove_breakpoint_ops)
11442 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11443 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11444 tmp_to_remove_breakpoint_ops,
11445 record_full_beneath_to_insert_breakpoint_ops, and
11446 record_full_beneath_to_remove_breakpoint_ops.
11447 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11448 (m32r_remove_breakpoint): Add target_ops parameter.
11449 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11450 Add target_ops parameter.
11451 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11452 Add target_ops parameter.
11454 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11455 Markus Metzger <markus.t.metzger@intel.com>
11457 * record-btrace.c: Include frame-unwind.h.
11458 (record_btrace_frame_unwind_stop_reason)
11459 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11460 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11462 (init_record_btrace_ops): Install it.
11464 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11466 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11469 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11471 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11474 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11476 * frame-unwind.c: Include target.h.
11477 (frame_unwind_try_unwinder): New function with code from ...
11478 (frame_unwind_find_by_frame): ... here. New variable
11479 unwinder_from_target, call also target_get_unwinder)
11480 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11481 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11482 * target.h (struct target_ops): New fields to_get_unwinder and
11483 to_get_tailcall_unwinder.
11484 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11486 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11488 * record-btrace.c (record_btrace_fetch_registers)
11489 (record_btrace_store_registers)
11490 (record_btrace_to_prepare_to_store): New.
11491 (init_record_btrace_ops): Add the above.
11493 2014-01-16 Tom Tromey <tromey@redhat.com>
11495 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11496 * target.h (struct target_ops) <to_prepare_to_store>: Add
11498 (target_prepare_to_store): Add argument.
11499 * target.c (debug_to_prepare_to_store): Add argument.
11500 (update_current_target): Update.
11501 * remote.c (remote_prepare_to_store): Add 'self' argument.
11502 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11503 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11504 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11505 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11507 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11508 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11509 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11510 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11511 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11515 * btrace.h (replay) <replay>: New.
11516 (btrace_is_replaying): New.
11517 * btrace.c (btrace_clear): Free replay iterator.
11518 (btrace_is_replaying): New.
11519 * record-btrace.c (record_btrace_is_replaying): New.
11520 (record_btrace_info): Print insn number if replaying.
11521 (record_btrace_insn_history): Start at replay position.
11522 (record_btrace_call_history): Start at replay position.
11523 (init_record_btrace_ops): Init to_record_is_replaying.
11525 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11527 * record-btrace.c (record_btrace_insn_history_range): Include
11529 (record_btrace_insn_history_from): Adjust range.
11530 (record_btrace_call_history_range): Include
11532 (record_btrace_call_history_from): Adjust range.
11533 * NEWS: Announce changes.
11535 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11537 * record.h (enum record_print_flag)
11538 <record_print_indent_calls>: New.
11539 * record.c (get_call_history_modifiers): Recognize /c modifier.
11540 (_initialize_record): Document /c modifier.
11541 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11542 Reorder fields. Optionally indent the function name. Update
11544 * NEWS: Announce changes.
11546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11548 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11550 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11552 * btrace.c (ftrace_new_function): Start counting at one.
11553 * record-btrace.c (record_btrace_info): Adjust number of calls
11555 * NEWS: Announce it.
11557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11559 * record-btrace.c (btrace_call_history_insn_range): Print
11560 insn range as [begin, end].
11562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11564 * btrace.h (struct btrace_func_link): New.
11565 (enum btrace_function_flag): New.
11566 (struct btrace_inst): Rename to ...
11567 (struct btrace_insn): ...this. Update all users.
11568 (struct btrace_func) <ibegin, iend>: Remove.
11569 (struct btrace_func_link): New.
11570 (struct btrace_func): Rename to ...
11571 (struct btrace_function): ...this. Update all users.
11572 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11573 (number, level, flags>: New.
11574 (struct btrace_insn_iterator): Rename to ...
11575 (struct btrace_insn_history): ...this.
11577 (struct btrace_insn_iterator, btrace_call_iterator): New.
11578 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11579 (struct btrace_target_info) <begin, end, level>
11580 <insn_history, call_history>: New.
11581 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11582 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11583 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11584 (btrace_call_number, btrace_call_begin, btrace_call_end)
11585 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11586 (btrace_find_function_by_number, btrace_set_insn_history)
11587 (btrace_set_call_history): New.
11588 * btrace.c (btrace_init_insn_iterator)
11589 (btrace_init_func_iterator, compute_itrace): Remove.
11590 (ftrace_print_function_name, ftrace_print_filename)
11591 (ftrace_skip_file): Change
11592 parameter to const.
11593 (ftrace_init_func): Remove.
11594 (ftrace_debug): Use new btrace_function fields.
11595 (ftrace_function_switched): Also consider gaining and
11596 losing symbol information).
11597 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11598 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11599 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11601 (ftrace_new_function): Move. Remove debug print.
11602 (ftrace_update_lines, ftrace_update_insns): New.
11603 (ftrace_update_function): Check for call, ret, and jump.
11604 (compute_ftrace): Renamed to ...
11605 (btrace_compute_ftrace): ...this. Rewritten to compute call
11607 (btrace_fetch, btrace_clear): Updated.
11608 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11609 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11610 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11611 (btrace_call_number, btrace_call_begin, btrace_call_end)
11612 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11613 (btrace_find_function_by_number, btrace_set_insn_history)
11614 (btrace_set_call_history): New.
11615 * record-btrace.c (require_btrace): Use new btrace thread
11617 (record_btrace_info, btrace_insn_history)
11618 (record_btrace_insn_history, record_btrace_insn_history_range):
11619 Use new btrace thread info fields and new iterator.
11620 (btrace_func_history_src_line): Rename to ...
11621 (btrace_call_history_src_line): ...this. Use new btrace
11622 thread info fields.
11623 (btrace_func_history): Rename to ...
11624 (btrace_call_history): ...this. Use new btrace thread info
11625 fields and new iterator.
11626 (record_btrace_call_history, record_btrace_call_history_range):
11627 Use new btrace thread info fields and new iterator.
11629 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11631 * frame.h (frame_id_build_unavailable_stack_special): New.
11632 * frame.c (frame_id_build_unavailable_stack_special): New.
11634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11636 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11637 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11638 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11640 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11641 (i386_insn_is_jump, i386_jmp_p): New.
11642 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11643 insn_is_jump to gdbarch.
11644 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11645 * gdbarch.h: Regenerated.
11646 * gdbarch.c: Regenerated.
11647 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11648 (default_insn_is_jump): New.
11649 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11650 (default_insn_is_jump): New.
11652 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11654 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11656 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11657 (btrace_read_type) <btrace_read_new>: Change to ...
11658 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11662 * common/linux-btrace.c (linux_read_btrace): Free trace from
11663 previous iteration.
11665 2014-01-15 Doug Evans <dje@google.com>
11667 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11670 2014-01-15 Tom Tromey <tromey@redhat.com>
11672 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11673 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11674 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11675 (set_objfile_main_name): New function.
11676 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11677 language_of_main>: New fields.
11678 (set_objfile_main_name): Declare.
11679 * symtab.c (find_main_name): Loop over objfiles to find the main
11681 (set_main_name): Now static.
11682 (get_main_info): Add comment.
11683 * symtab.h (set_main_name): Don't declare.
11685 2014-01-15 Tom Tromey <tromey@redhat.com>
11687 * symtab.c (main_progspace_key): New global.
11688 (struct main_info): New.
11689 (name_of_main, language_of_main): Remove.
11690 (get_main_info, main_info_cleanup): New function.
11691 (set_main_name, main_name, main_language): Use get_main_info.
11692 (_initialize_symtab): Initialize main_progspace_key.
11694 2014-01-15 Tom Tromey <tromey@redhat.com>
11696 * dbxread.c (process_one_symbol): Update.
11697 * dwarf2read.c (read_partial_die): Update.
11698 * symfile.c (set_initial_language): Call main_language.
11699 * symtab.c (language_of_main): Now static.
11700 (set_main_name): Add 'lang' parameter.
11701 (find_main_name): Update.
11702 (main_language): New function.
11703 (symtab_observer_executable_changed): Update.
11704 * symtab.h (set_main_name): Update.
11705 (language_of_main): Remove.
11706 (main_language): Declare.
11708 2014-01-15 Tom Tromey <tromey@redhat.com>
11710 * symfile.c (init_entry_point_info): Use new "initialized" field.
11712 * objfiles.h (struct entry_point) <initialized>: New field.
11713 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11714 (struct objfile) <ei>: ...here. Remove.
11715 * objfiles.c (entry_point_address_query): Update.
11717 2014-01-15 Tom Tromey <tromey@redhat.com>
11719 * objfiles.c (entry_point_address_query): Relocate entry point
11721 (objfile_relocate1): Do not relocate entry point address.
11722 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11723 <the_bfd_section_index>: New field.
11724 * symfile.c (init_entry_point_info): Find the entry point's
11727 2014-01-15 Tom Tromey <tromey@redhat.com>
11729 * solib-frv.c (enable_break): Use entry_point_address_query.
11731 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11733 * NEWS: Add note on improved process record-replay on
11734 arm*-linux* targets.
11736 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11738 * arm-tdep.c (enum arm_record_result): New enum.
11739 (arm_record_unsupported_insn): New function.
11740 (arm_record_coproc_data_proc): Removed.
11741 (thumb2_record_ld_st_multiple): New function.
11742 (thumb2_record_ld_st_dual_ex_tbb): New function.
11743 (thumb2_record_data_proc_sreg_mimm): New function.
11744 (thumb2_record_ps_dest_generic): New function.
11745 (thumb2_record_branch_misc_cntrl): New function.
11746 (thumb2_record_str_single_data): New function.
11747 (thumb2_record_ld_mem_hints): New function.
11748 (thumb2_record_ld_word): New function.
11749 (thumb2_record_lmul_lmla_div): New function.
11750 (thumb2_record_decode_insn_handler): New function.
11751 (decode_insn): Add thumb32 instruction handlers.
11753 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11755 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11756 (struct arm_linux_record_tdep): Declare.
11757 (arm_canonicalize_syscall): New function.
11758 (arm_all_but_pc_registers_record): New function.
11759 (arm_linux_syscall_record): New function.
11760 (arm_linux_init_abi): Add syscall recording constructs.
11761 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11762 decoding. (arm_record_coproc_data_proc): Update arm syscall
11764 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11765 <arm_syscall_record>: New field.
11766 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11769 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11771 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11772 register for push instruction recording.
11774 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11776 * arm-tdep.c (thumb_record_misc): Update to correct logical
11777 error while recording ldm, ldmia and pop instructions.
11779 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11781 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11783 2014-01-15 Pedro Alves <palves@redhat.com>
11785 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11786 (go32_resume, go32_fetch_registers, store_register)
11787 (go32_store_registers, go32_prepare_to_store)
11788 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11789 (go32_create_inferior, go32_can_run, go32_terminal_init)
11790 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11793 2014-01-15 Tom Tromey <tromey@redhat.com>
11795 * target.h (async_callback_ftype): New typedef.
11796 (struct target_ops) <to_async>: Use it.
11798 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11800 * python/py-value.c (get_field_type): Remove unnecessary curly
11801 braces for single-statement if block.
11803 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11805 * python/py-type.c (convert_field): Add missing empty line
11806 after declarations.
11808 2014-01-14 Doug Evans <dje@google.com>
11810 * symfile.h (expand_symtabs_matching): Renamed from
11811 expand_partial_symbol_names. Update prototype.
11812 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11813 * symfile.c (expand_symtabs_matching): Renamed from
11814 expand_partial_symbol_names. New args file_matcher, kind.
11815 Rename arg fun to symbol_matcher.
11816 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11817 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11818 ada_expand_partial_symbol_name.
11819 (ada_make_symbol_completion_list): Update to call
11820 expand_symtabs_matching.
11821 (ada_add_global_exceptions): Call expand_symtabs_matching.
11822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11823 call map_symbol_filenames.
11824 * symtab.c (sources_info): Update to call map_symbol_filenames.
11825 (search_symbols): Call expand_symtabs_matching.
11826 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11827 (default_make_symbol_completion_list_break_on): Update to call
11828 expand_symtabs_matching.
11829 (make_source_files_completion_list): Update to call
11830 map_symbol_filenames.
11832 2014-01-14 Doug Evans <dje@google.com>
11834 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11835 (expand_symtabs_symbol_matcher_ftype): New typedef.
11836 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11837 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11838 * symfile.c (expand_partial_symbol_names): Update to use
11839 expand_symtabs_symbol_matcher_ftype.
11840 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11841 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11842 Arg name_matcher renamed to symbol_matcher.
11843 * psymtab.c (recursively_search_psymtabs): Update to use
11844 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11846 (expand_symtabs_matching_via_partial): Update to use
11847 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11848 Arg name_matcher renamed to symbol_matcher.
11850 2014-01-14 Doug Evans <dje@google.com>
11852 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11853 (map_partial_symbol_filenames): Ditto.
11854 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11855 (map_partial_symbol_filenames): Ditto.
11856 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11857 (map_partial_symbol_filenames): Ditto.
11858 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11859 (map_partial_symbol_filenames): Ditto.
11860 * symtab.c: Delete #include "psymtab.h".
11862 2014-01-14 Pedro Alves <palves@redhat.com>
11863 Tom Tromey <tromey@redhat.com>
11865 * infrun.c (use_displaced_stepping): Use find_record_target
11866 instead of RECORD_IS_USED.
11867 (adjust_pc_after_break): Use record_full_is_used instead of
11869 * record-btrace.c (record_btrace_open): Call record_preopen
11870 instead of checking RECORD_IS_USED.
11871 * record-full.c (record_full_shortname)
11872 (record_full_core_shortname): New globals.
11873 (record_full_is_used): New function.
11874 (find_full_open): Call record_preopen instead of checking
11876 (init_record_full_ops): Set the target's shortname to
11877 record_full_shortname.
11878 (init_record_full_core_ops): Set the target's shortname to
11879 record_full_core_shortname.
11880 * record-full.h (record_full_is_used): Declare.
11881 * record.c (find_record_target): Make extern.
11882 (record_preopen): New function.
11883 * record.h (RECORD_IS_USED): Delete macro.
11884 (find_record_target, record_preopen): Declare functions.
11886 2014-01-14 Yao Qi <yao@codesourcery.com>
11888 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11889 'len''s type to ULONGEST.
11890 (core_xfer_shared_libraries_aix): Likewise.
11891 * gdbarch.c, gdbarch.h: Regenerated.
11892 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11893 Change type of 'len' to ULONGEST.
11894 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11895 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11897 2014-01-14 Yao Qi <yao@codesourcery.com>
11899 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11900 type of 'len' to ULONGEST.
11901 (linux_xfer_osdata_processgroups): Likewise.
11902 (linux_xfer_osdata_threads): Likewise.
11903 (linux_xfer_osdata_fds): Likewise.
11904 (linux_xfer_osdata_isockets): Likewise.
11905 (linux_xfer_osdata_shm): Likewise.
11906 (linux_xfer_osdata_sem): Likewise.
11907 (linux_xfer_osdata_msg): Likewise.
11908 (linux_common_xfer_osdata): Likewise.
11909 (struct osdata_type) <getter>: Likewise.
11910 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11913 2014-01-14 Yao Qi <yao@codesourcery.com>
11915 * target.h (target_xfer_partial_ftype): Update.
11916 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11918 * aix-thread.c (aix_thread_xfer_partial): Change type of
11919 argument 'len' to ULONGEST.
11920 * auxv.c (procfs_xfer_auxv): Likewise.
11921 (ld_so_xfer_auxv): Likewise.
11922 (memory_xfer_auxv): Likewise.
11923 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11924 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11925 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11926 * corelow.c (core_xfer_partial): Likewise.
11927 * ctf.c (ctf_xfer_partial): Likewise.
11928 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11930 (darwin_read_dyld_info): Likewise.
11931 (darwin_xfer_partial): Likewise.
11932 * exec.c (section_table_xfer_memory_partial): Likewise.
11933 (exec_xfer_partial): Likewise.
11934 * exec.h (section_table_xfer_memory_partial): Update
11936 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11937 instead of plongest.
11938 (gnu_xfer_partial): Likewise.
11939 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11940 (ia64_hpux_xfer_solib_got): Likewise.
11941 (ia64_hpux_xfer_partial): Likewise.
11942 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11943 * inf-ptrace.c (inf_ptrace_xfer_partial):
11944 * inf-ttrace.c (inf_ttrace_xfer_partial):
11945 * linux-nat.c (linux_xfer_siginfo): Likewise.
11946 (linux_nat_xfer_partial): Likewise.
11947 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11948 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11949 * monitor.c (monitor_xfer_memory): Likewise.
11950 (monitor_xfer_partial): Likewise.
11951 * procfs.c (procfs_xfer_partial): Likewise.
11952 * record-full.c (record_full_xfer_partial): Likewise.
11953 (record_full_core_xfer_partial): Likewise.
11954 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11955 instead of plongest.
11956 (gdbsim_xfer_partial): Likewise.
11957 * remote.c (remote_xfer_partial): Likewise.
11958 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11959 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11961 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11962 (rs6000_xfer_shared_libraries): Likewise.
11963 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11964 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11965 (sparc_xfer_partial): Likewise.
11966 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11967 (spu_xfer_partial): Likewise.
11968 * spu-multiarch.c (spu_xfer_partial): Likewise.
11969 * target.c (target_read_live_memory): Likewise.
11970 (memory_xfer_live_readonly_partial): Likewise.
11971 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11972 (target_xfer_partial, default_xfer_partial): Likewise.
11973 (current_xfer_partial): Likewise.
11974 * tracepoint.c (tfile_xfer_partial): Likewise.
11975 * windows-nat.c (windows_xfer_memory): Likewise. Call
11976 pulongest instead of plongest.
11977 (windows_xfer_partial): Likewise.
11978 (windows_xfer_shared_libraries): Likewise.
11980 2014-01-14 Yao Qi <yao@codesourcery.com>
11982 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11983 target_xfer_partial_ftype.
11985 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11989 * valops.c (value_struct_elt_bitpos): New function
11990 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11991 object to 'None' if the field name is an empty string ("").
11992 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11993 attribute to look for a field when 'name' is 'None'.
11994 (get_field_type): New function
11996 2014-01-13 Doug Evans <dje@google.com>
11999 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12000 (try_open_dwop_file): Ditto.
12001 * gdb_bfd.c: #include "vec.h".
12002 (bfdp): New typedef.
12003 (struct gdb_bfd_data): New member included_bfds.
12004 (gdb_bfd_unref): Unref all included bfds.
12005 (gdb_bfd_record_inclusion): New function.
12006 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12008 2014-01-13 Tom Tromey <tromey@redhat.com>
12010 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12012 2014-01-13 Tom Tromey <tromey@redhat.com>
12014 * defs.h (use_windows): Remove.
12015 * gdb.c (main): Update.
12016 * main.c (captured_main, gdb_main): Update.
12017 * main.h (struct captured_main_args) <use_windows>: Remove.
12018 * top.c (use_windows): Remove.
12020 2014-01-13 Tom Tromey <tromey@redhat.com>
12022 * defs.h (deprecated_flush_hook): Remove.
12024 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12027 * linux-thread-db.c (try_thread_db_load): Add parameter
12028 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12029 (try_thread_db_load_from_pdir_1): Move it there from here.
12030 (try_thread_db_load_from_sdir): Update caller.
12031 (try_thread_db_load_from_dir): Move it there from here.
12033 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12035 * regformats/regdat.sh: Always rewrite the register file.
12037 2014-01-13 Pedro Alves <palves@redhat.com>
12039 * Makefile.in (CHECK_HEADERS): New variable.
12040 (check-headers:): New rule.
12042 2014-01-13 Tom Tromey <tromey@redhat.com>
12044 * cli/cli-setshow.c (do_set_command): Update.
12045 * defs.h (deprecated_set_hook): Remove.
12046 * top.c (deprecated_set_hook): Remove.
12048 2014-01-13 Pedro Alves <palves@redhat.com>
12050 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12051 the tracepoint if the PC is a pseudo-register.
12053 2014-01-13 Tom Tromey <tromey@redhat.com>
12055 * defs.h (XCALLOC): Remove.
12056 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12057 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12058 * dwarf2loc.c (allocate_piece_closure): Likewise.
12059 * elfread.c (elf_symfile_segments): Likewise.
12060 (elf_symfile_segments): Likewise.
12061 * gdbtypes.c (copy_type_recursive): Likewise.
12062 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12063 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12064 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12066 * mt-tdep.c (mt_gdbarch_init): Likewise.
12067 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12069 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12070 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12071 * registry.c (registry_alloc_data): Likewise.
12072 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12073 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12074 * serial.c (serial_fdopen_ops): Likewise.
12075 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12077 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12078 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12081 2014-01-13 Tom Tromey <tromey@redhat.com>
12083 * defs.h (XMALLOC): Remove.
12084 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12085 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12086 * cli-out.c (struct ui_out *): Likewise.
12087 * cli/cli-dump.c (add_dump_command): Likewise.
12088 (add_dump_command): Likewise.
12089 * complaints.c (get_complaints): Likewise.
12090 (find_complaint): Likewise.
12091 * dwarf2-frame.c (execute_cfa_program): Likewise.
12092 * dwarf2read.c (abbrev_table_read_table): Likewise.
12093 * gdbarch.sh: Likewise.
12094 * gdbarch.c: Rebuild.
12095 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12096 * interps.c (interp_new): Likewise.
12097 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12098 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12099 * mi/mi-console.c (mi_console_file_new): Likewise.
12100 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12101 * mi/mi-out.c (mi_out_new): Likewise.
12102 * mi/mi-parse.c (mi_parse): Likewise.
12103 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12104 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12105 * observer.c (xalloc_observer_list_node): Likewise.
12106 * regcache.c (regcache_xmalloc_1): Likewise.
12107 * reggroups.c (reggroup_new): Likewise.
12108 (_initialize_reggroup): Likewise.
12109 * registry.c (register_data_with_cleanup): Likewise.
12110 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12111 * ser-base.c (serial_ttystate): Likewise.
12112 * ser-mingw.c (make_pipe_state): Likewise.
12113 * ser-pipe.c (pipe_open): Likewise.
12114 * serial.c (serial_open): Likewise.
12115 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12116 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12117 (tui_alloc_win_info): Likewise.
12118 (tui_add_content_elements): Likewise.
12119 * tui/tui-file.c (tui_file_new): Likewise.
12120 * tui/tui-out.c (tui_out_new): Likewise.
12121 * ui-file.c (mem_file_new): Likewise.
12122 * ui-out.c (push_level): Likewise.
12123 (make_cleanup_ui_out_end): Likewise.
12124 (append_header_to_list): Likewise.
12125 (ui_out_new): Likewise.
12126 * user-regs.c (user_reg_add_builtin): Likewise.
12128 2014-01-13 Tom Tromey <tromey@redhat.com>
12130 * defs.h (XZALLOC): Remove.
12131 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12132 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12133 (get_ada_tasks_inferior_data): Likewise.
12134 * auto-load.c (get_auto_load_pspace_data): Likewise.
12135 * auxv.c (get_auxv_inferior_data): Likewise.
12136 * bfd-target.c (target_bfd_reopen): Likewise.
12137 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12138 (deprecated_insert_raw_breakpoint): Likewise.
12139 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12140 * corelow.c (core_open): Likewise.
12141 * darwin-nat.c (darwin_check_new_threads): Likewise.
12142 (darwin_attach_pid): Likewise.
12143 * dummy-frame.c (dummy_frame_push): Likewise.
12144 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12145 * dwarf2loc.c (allocate_piece_closure): Likewise.
12146 * elfread.c (elf_symfile_segments): Likewise.
12147 * eval.c (ptrmath_type_p): Likewise.
12148 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12149 * gdbtypes.c (alloc_type_arch): Likewise.
12150 (alloc_type_instance): Likewise.
12151 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12152 * inf-child.c (inf_child_can_use_agent): Likewise.
12153 * inflow.c (get_inflow_inferior_data): Likewise.
12154 * infrun.c (save_infcall_suspend_state): Likewise.
12155 * jit.c (jit_reader_load): Likewise.
12156 (get_jit_objfile_data): Likewise.
12157 (get_jit_program_space_data): Likewise.
12158 (jit_object_open_impl): Likewise.
12159 (jit_symtab_open_impl): Likewise.
12160 (jit_block_open_impl): Likewise.
12161 (jit_frame_sniffer): Likewise.
12162 * linux-fork.c (add_fork): Likewise.
12163 * maint.c (make_command_stats_cleanup): Likewise.
12164 * objfiles.c (get_objfile_pspace_data): Likewise.
12165 * opencl-lang.c (struct lval_closure): Likewise.
12166 * osdata.c (osdata_start_osdata): Likewise.
12167 * progspace.c (new_address_space): Likewise.
12168 (add_program_space): Likewise.
12169 * remote-sim.c (get_sim_inferior_data): Likewise.
12170 * sh-tdep.c (sh_gdbarch_init): Likewise.
12171 * skip.c (Ignore): Likewise.
12172 (skip_delete_command): Likewise.
12173 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12174 (library_list_start_library): Likewise.
12175 (solib_aix_current_sos): Likewise.
12176 * solib-darwin.c (get_darwin_info): Likewise.
12177 (darwin_current_sos): Likewise.
12178 * solib-dsbt.c (get_dsbt_info): Likewise.
12179 * solib-ia64-hpux.c (new_so_list): Likewise.
12180 (ia64_hpux_get_solib_linkage_addr): Likewise.
12181 * solib-spu.c (append_ocl_sos): Likewise.
12182 (spu_current_sos): Likewise.
12183 * solib-svr4.c (get_svr4_info): Likewise.
12184 (svr4_keep_data_in_core): Likewise.
12185 (library_list_start_library): Likewise.
12186 (svr4_default_sos): Likewise.
12187 (svr4_read_so_list): Likewise.
12188 * solib-target.c (library_list_start_library): Likewise.
12189 (solib_target_current_sos): Likewise.
12190 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12191 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12192 * symfile.c (default_symfile_segments): Likewise.
12193 * target-descriptions.c (tdesc_data_init): Likewise.
12194 (tdesc_create_reg): Likewise.
12195 (struct tdesc_type *): Likewise.
12196 (tdesc_create_vector): Likewise.
12197 (tdesc_set_struct_size): Likewise.
12198 (struct tdesc_type *): Likewise.
12199 (tdesc_free_feature): Likewise.
12200 (tdesc_create_feature): Likewise.
12201 * windows-nat.c (windows_add_thread): Likewise.
12202 (windows_make_so): Likewise.
12203 * xml-support.c (gdb_xml_body_text): Likewise.
12204 (gdb_xml_create_parser_and_cleanup): Likewise.
12205 (xml_process_xincludes): Likewise.
12206 * xml-syscall.c (allocate_syscalls_info): Likewise.
12207 (syscall_create_syscall_desc): Likewise.
12209 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12211 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12212 function, with code from i386_stap_parse_special_token.
12213 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12214 (i386_stap_parse_special_token): Move code to the two functions
12215 above; simplify it.
12217 2014-01-09 Pedro Alves <palves@redhat.com>
12218 Hui Zhu <hui@codesourcery.com>
12221 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12222 bp_err_string. Don't mark the location shlib_disabled if the
12223 error thrown wasn't a generic or memory error. Catch errors
12224 thrown while inserting breakpoints in overlayed code. Output
12225 error message of software breakpoints.
12226 * remote.c (remote_insert_breakpoint): If this breakpoint has
12227 target-side commands but this stub doesn't support Z0 packets,
12228 throw NOT_SUPPORTED_ERROR error.
12229 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12230 * target.h (target_insert_breakpoint): Extend comment.
12231 (target_insert_hw_breakpoint): Add comment.
12233 2014-01-08 Pedro Alves <palves@redhat.com>
12235 * remote.c (remote_add_thread): Add threads silently if starting
12237 (remote_notice_new_inferior): If in all-stop, and starting up,
12238 don't call notice_new_inferior.
12239 (get_current_thread): New function, factored out from ...
12240 (add_current_inferior_and_thread): ... this. Adjust.
12241 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12242 found any thread, then select the remote's current thread as GDB's
12243 current thread too.
12245 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12247 * NEWS: Create a new section for the next release branch.
12248 Rename the section of the current branch, now that it has
12251 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12253 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12254 * version.in: Bump version to 7.7.50.DATE-cvs.
12256 2014-01-08 Yao Qi <yao@codesourcery.com>
12258 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12259 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12260 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12262 2014-01-08 Yao Qi <yao@codesourcery.com>
12264 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12265 return value of bfd_get_filename to symbol_file_add_from_bfd.
12267 2014-01-08 Pierre Muller <muller@sourceware.org>
12270 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12271 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12272 to prim_record_mininal_symbol_and_info.
12273 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12274 in call to prim_record_minimal_symbol_and_info.
12275 (read_pe_exported_syms): Set index field of section_data.
12277 2014-01-07 Andrew Pinski <apinski@cavium.com>
12279 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12280 * features/aarch64.c: Regenerate.
12282 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12284 * target.c (return_null): Define.
12285 (update_current_target): Use it instead of return_zero for
12286 functions that return a pointer.
12288 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12290 * source.c (add_path): Fix check for duplicated paths in the previously
12293 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12295 * ada-lang.c: Remove duplicated include statements.
12296 * alphabsd-nat.c: Ditto.
12297 * amd64-darwin-tdep.c: Ditto.
12298 * amd64fbsd-nat.c: Ditto.
12299 * auto-load.c: Ditto.
12301 * breakpoint.c: Ditto.
12302 * dbxread.c: Ditto.
12303 * fork-child.c: Ditto.
12304 * gdb_usleep.c: Ditto.
12305 * i386-darwin-tdep.c: Ditto.
12306 * i386fbsd-nat.c: Ditto.
12308 * inferior.c: Ditto.
12309 * jv-lang.c: Ditto.
12310 * linux-nat.c: Ditto.
12311 * linux-tdep.c: Ditto.
12312 * m68kbsd-nat.c: Ditto.
12313 * m68klinux-nat.c: Ditto.
12314 * microblaze-tdep.c: Ditto.
12315 * mips-linux-tdep.c: Ditto.
12316 * mn10300-tdep.c: Ditto.
12317 * nto-tdep.c: Ditto.
12318 * opencl-lang.c: Ditto.
12320 * printcmd.c: Ditto.
12321 * regcache.c: Ditto.
12322 * remote-m32r-sdi.c: Ditto.
12324 * symfile.c: Ditto.
12326 * tilegx-linux-nat.c: Ditto.
12327 * tilegx-tdep.c: Ditto.
12328 * tracepoint.c: Ditto.
12330 * vaxbsd-nat.c: Ditto.
12331 * windows-nat.c: Ditto.
12332 * xtensa-tdep.c: Ditto.
12334 2014-01-07 Yao Qi <yao@codesourcery.com>
12336 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12338 2014-01-07 Yao Qi <yao@codesourcery.com>
12339 Joel Brobecker <brobecker@adacore.com>
12341 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12342 (pdc_write_regs): Likewise.
12343 (fetch_regs_kernel_thread): Likewise.
12344 (store_regs_kernel_thread): Likewise.
12346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12348 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12349 tagged type objects to their actual type.
12351 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12353 * ada-valprint.c (print_field_values): Add "language" parameter.
12354 Update calls to print_field_values and print_variant_part.
12355 Pass new parameter "language" in call to val_print instead
12356 of "current_language". Replace call to ada_val_print by call
12358 (print_variant_part): Add "language" parameter.
12359 (ada_val_print_struct_union): Update call to print_field_values.
12361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12363 * ada-valprint.c (ui_memcpy): Delete.
12364 (ada_print_floating): Update documentation. Add empty line
12365 between between function documentation and implementation.
12366 Delete variable "buffer". Use ui_file_xstrdup in place of
12367 ui_file_put. Minor adjustments following this change.
12369 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12371 * ada-valprint.c (ada_val_print_string): New function,
12372 extracted from ada_val_print_array.
12373 (ada_val_print_array): Replace extracted code by call
12374 to ada_val_print_string followed by a return. Move
12375 "else" branch to the function's top block.
12377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12379 * ada-valprint.c (ada_val_print_array): Move implementation
12380 down. Rename parameter "offset" and "val" into "offset_aligned"
12381 and "original_value" respectively. Add parameter "offset".
12383 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12385 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12386 re-organizing the code. Change the "???" message printed
12387 when target type is a TYPE_CODE_UNDEF into
12388 "<ref to undefined type>".
12390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12392 * ada-valprint.c (print_record): Delete, implementation inlined...
12393 (ada_val_print_struct_union): ... here. Remove call to
12394 ada_check_typedef in inlined implementation.
12396 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12398 * ada-valprint.c (ada_val_print_gnat_array): New function,
12399 extracted from ada_val_print_1;
12400 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12401 (ada_val_print_flt, ada_val_print_struct_union)
12402 (ada_val_print_ref): Likewise.
12403 (ada_val_print_1): Delete variables i and elttype.
12404 Replace extracted-out code by call to corresponding
12407 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12409 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12411 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12413 * ada-valprint.c (ada_val_print_1): Replace calls to
12414 ada_val_print_1 by calls to val_print.
12416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12418 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12419 Update calls to self accordingly. Replace calls to c_val_print
12420 by calls to val_print.
12422 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12424 * ada-valprint.c (print_record): Delete declaration.
12425 (adjust_type_signedness, ada_val_print_1): Likewise.
12426 (ada_val_print): Move function implementation down.
12427 (print_variant_part, print_field_values, print_record):
12428 Move function implementation up.
12430 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12432 * python/py-type.c (typy_get_name): New function.
12433 (type_object_getset): Add entry for attribute "name".
12434 * NEWS: Add entry mentioning this new attribute.
12436 2014-01-07 Yao Qi <yao@codesourcery.com>
12438 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12441 2014-01-07 Yao Qi <yao@codesourcery.com>
12443 * gnu-nat.c (info_port_rights): Add qualifier const to
12446 2014-01-07 Yao Qi <yao@codesourcery.com>
12448 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12450 2014-01-07 Yao Qi <yao@codesourcery.com>
12452 * gnu-nat.c (make_inf) Update declaration.
12453 (make_inf): Make it static.
12454 (inf_set_traced): Likewise.
12455 (inf_port_to_thread, inf_task_died_status): Likewise.
12457 2014-01-07 Yao Qi <yao@codesourcery.com>
12459 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12461 2014-01-07 Yao Qi <yao@codesourcery.com>
12463 * gnu-nat.c (_initialize_gnu_nat): Declare.
12465 2014-01-07 Yao Qi <yao@codesourcery.com>
12467 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12469 (struct gdbarch_info) <byte_order>: Change type to
12471 <byte_order_for_code>: Likewise.
12472 * gdbarch.c, gdbarch.h: Regenerated.
12474 2014-01-06 Sasha Smundak <asmundak@google.com>
12476 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12478 2014-01-06 Tom Tromey <tromey@redhat.com>
12480 * doublest.c (convert_doublest_to_floatformat): Use const, not
12482 * somread.c (som_symtab_read): Likewise.
12484 2014-01-07 Hui Zhu <hui@codesourcery.com>
12486 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12487 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12488 (gdb_bfd_fopen): Ditto.
12489 (gdb_bfd_openr): Ditto.
12490 (gdb_bfd_openw): Ditto.
12491 (gdb_bfd_openr_iovec): Ditto.
12492 (gdb_bfd_fdopenr): Ditto.
12493 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12494 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12496 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12498 * symfile-mem.c (symbol_file_add_from_memory): Removed
12499 gdb_bfd_stash_filename.
12501 2014-01-03 Doug Evans <dje@google.com>
12503 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12506 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12508 Update year range in copyright notice of all files.
12510 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12512 * top.c (print_gdb_version): Set copyright year to 2014.
12514 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12516 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12518 For older changes see ChangeLog-2013.
12524 version-control: never