1 2014-09-03 James Hogan <james.hogan@imgtec.com>
3 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
6 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
9 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
11 (add_cmd): Set "completer_handle_brkchars" to NULL.
12 * cli/cli-decode.h (struct cmd_list_element)
13 <completer_handle_brkchars>: New field.
14 * command.h (completer_ftype_void): New typedef.
15 (set_cmd_completer_handle_brkchars): New prototype.
16 * completer.c (set_gdb_completion_word_break_characters): New
18 (complete_line_internal): Call "completer_handle_brkchars"
19 callback from command.
20 * completer.h: Include "command.h".
21 (set_gdb_completion_word_break_characters): New prototype.
22 * python/py-cmd.c (cmdpy_completer_helper): New function.
23 (cmdpy_completer_handle_brkchars): New function.
24 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
25 (cmdpy_init): Set completer_handle_brkchars to
26 cmdpy_completer_handle_brkchars.
28 2014-09-03 Gary Benson <gbenson@redhat.com>
30 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
31 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
32 Loop conditions changed to equivalent form.
33 (struct x86_debug_reg_state): Updated dr_ref_count comment.
34 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
35 ALL_DEBUG_ADDRESS_REGISTERS.
37 2014-09-03 Joel Brobecker <brobecker@adacore.com>
39 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
42 2014-09-02 Doug Evans <dje@google.com>
44 * typeprint.c (find_global_typedef): Fix comment.
46 2014-09-02 Gary Benson <gbenson@redhat.com>
48 * i386-nat.h: Renamed as...
49 * x86-nat.h: New file. All type, function and variable name
50 prefixes changed from "i386_" to "x86_". All references updated.
51 * i386-nat.c: Renamed as...
52 * x86-nat.c: New file. All type, function and variable name
53 prefixes changed from "i386_" to "x86_". All references updated.
54 * common/i386-xstate.h: Renamed as...
55 * common/x86-xstate.h: New file. All type, function and variable
56 name prefixes changed from "i386_" to "x86_". All references
58 * nat/i386-cpuid.h: Renamed as...
59 * nat/x86-cpuid.h: New file. All type, function and variable name
60 prefixes changed from "i386_" to "x86_". All references updated.
61 * nat/i386-gcc-cpuid.h: Renamed as...
62 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
63 name prefixes changed from "i386_" to "x86_". All references
65 * nat/i386-dregs.h: Renamed as...
66 * nat/x86-dregs.h: New file. All type, function and variable name
67 prefixes changed from "i386_" to "x86_". All references updated.
68 * nat/i386-dregs.c: Renamed as...
69 * nat/x86-dregs.c: New file. All type, function and variable name
70 prefixes changed from "i386_" to "x86_". All references updated.
72 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
74 * varobj.c (_initialize_varobj): Move to the end of file.
76 2014-08-29 Gary Benson <gbenson@redhat.com>
78 * common/common-exceptions.h: New file.
79 * common/common-exceptions.c: Likewise.
80 * Makefile.in (SFILES): Add common/common-exceptions.c.
81 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
82 (COMMON_OBS): Add common-exceptions.o.
83 (common-exceptions.o): New rule.
84 * exceptions.h (common-exceptions.h): Include.
85 (gdb_setjmp.h): Do not include.
86 (return_reason): Moved to common-exceptions.h.
87 (enum return_reason): Likewise.
88 (RETURN_MASK): Likewise.
89 (typedef return_mask): Likewise.
90 (enum errors): Likewise.
91 (struct gdb_exception): Likewise.
92 (exceptions_state_mc_init): Likewise.
93 (exceptions_state_mc_action_iter): Likewise.
94 (exceptions_state_mc_action_iter_1): Likewise.
95 (TRY_CATCH): Likewise.
96 (throw_exception): Likewise.
97 (throw_verror): Likewise.
98 (throw_vquit): Likewise.
99 (throw_error): Likewise.
100 (throw_quit): Likewise.
101 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
102 (enum catcher_action): Likewise.
103 (struct catcher): Likewise.
104 (current_catcher): Likewise.
105 (catcher_list_size): Likewise.
106 (exceptions_state_mc_init): Likewise.
107 (catcher_pop): Likewise.
108 (exceptions_state_mc): Likewise.
109 (exceptions_state_mc_action_iter): Likewise.
110 (exceptions_state_mc_action_iter_1): Likewise.
111 (throw_exception): Likewise.
112 (exception_messages): Likewise.
113 (exception_messages_size): Likewise.
114 (throw_it): Likewise.
115 (throw_verror): Likewise.
116 (throw_vquit): Likewise.
117 (throw_error): Likewise.
118 (throw_quit): Likewise.
119 (prepare_to_throw_exception): New function.
121 2014-08-29 Gary Benson <gbenson@redhat.com>
123 * common/gdb_setjmp.h: New file.
124 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
125 * configure.ac: Move sigsetjmp check...
126 * common/common.m4: ...here.
127 * configure: Regenerate.
128 * cp-support.c (SIGJMP_BUF): Delete.
129 (SIGSETJMP): Likewise.
130 (SIGLONGJMP): Likewise.
131 * exceptions.h (gdb_setjmp.h): Include.
132 (setjmp.h): Do not include.
133 (EXCEPTIONS_SIGJMP_BUF): Delete.
134 (EXCEPTIONS_SIGSETJMP): Likewise.
135 (EXCEPTIONS_SIGLONGJMP): Likewise.
136 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
138 * exceptions.c: Likewise.
140 2014-08-29 Gary Benson <gbenson@redhat.com>
142 * cleanups.h: Moved to...
143 * common/cleanups.h: New file.
144 * cleanups.c: Moved to...
145 * common/cleanups.c: New file. Include common-defs.h and
146 cleanups.h. Do not include defs.h.
147 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
148 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
149 (cleanups.o): New rule.
151 2014-08-29 Gary Benson <gbenson@redhat.com>
153 * common/errors.h (internal_warning): New declaration.
154 (internal_vwarning): Likewise.
155 * common/errors.c (internal_warning): New function.
156 * utils.h (internal_warning): Don't declare.
157 (internal_vwarning): Likewise.
158 * utils.c (internal_warning): Removed.
160 2014-08-29 Gary Benson <gbenson@redhat.com>
162 * main.c (captured_main): Use warning during startup.
163 Prefix startup warning messages with command name.
165 2014-08-29 Gary Benson <gbenson@redhat.com>
167 * main.c (captured_main): Handle usage errors with error.
169 2014-08-29 Gary Benson <gbenson@redhat.com>
171 * go32-nat.c (go32_create_inferior): Replace a fprintf/
172 exit pair with a call to error. Wrap the message with _().
174 2014-08-29 Gary Benson <gbenson@redhat.com>
176 * main.c (captured_main): Replace a fprintf/exit
177 pair with a call to error. Wrap the message with _().
179 2014-08-29 Gary Benson <gbenson@redhat.com>
181 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
182 pairs with calls to error. Wrap the message with _().
184 2014-08-29 Gary Benson <gbenson@redhat.com>
186 * utils.c (vwarning): Protect calls to target_terminal_ours
189 2014-08-29 Gary Benson <gbenson@redhat.com>
191 * exceptions.c (print_flush): Protect calls to
192 target_terminal_ours and wrap_here.
194 2014-08-29 Gary Benson <gbenson@redhat.com>
196 * utils.h (filtered_printing_initialized): New declaration.
197 * utils.c (abort_with_message): New function.
198 (internal_vproblem): Use abort_with_message for first level
199 recursive internal problems, and if gdb_stderr is not set up.
200 Protect calls to target_terminal_ours, begin_line and query.
202 2014-08-28 Doug Evans <dje@google.com>
204 * symtab.c (in_prologue): Move definition to better spot.
205 (skip_prologue_using_sal): Ditto.
207 2014-08-28 Doug Evans <dje@google.com>
209 * symtab.c (find_function_start_sal): Move definition to better spot.
211 2014-08-28 Yao Qi <yao@codesourcery.com>
213 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
214 found_stack_adjust in forward scan. Remove condition check
215 on found_stack_adjust which is always true. Indent the code.
217 2014-08-28 Yao Qi <yao@codesourcery.com>
219 * dwarf2read.c (dwarf_decode_lines): Update declaration.
220 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
221 (dwarf_decode_lines): Remove argument
222 want_line_info. Remove condition check on want_line_info.
225 2014-08-27 Doug Evans <dje@google.com>
227 * dwarf2read.c (dwarf_record_line): Fix typo.
229 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
231 * target.h (struct target_ops::to_terminal_save_ours): Remove
233 (target_terminal_save_ours): Remove macro.
234 * target-delegates.c: Regenerate.
235 * inf-child.c (inf_child_target): Don't set the nonexistent
236 field to_terminal_save_ours.
237 * inferior.h (child_terminal_save_ours): Remove declaration.
238 * terminal.h (gdb_save_tty_state): New declaration.
239 * inflow.c (child_terminal_save_ours): Rename to ...
240 (gdb_save_tty_state): ... this.
241 * tui/tui.c: Include terminal.h.
242 (tui_enable): Use gdb_save_tty_state instead of
243 target_terminal_save_ours.
244 (tui_disable): Likewise.
246 2014-08-25 Doug Evans <dje@google.com>
248 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
249 Pass NULL instead of 0 for context pointer.
251 2014-08-25 Yao Qi <yao@codesourcery.com>
253 * dwarf2read.c: Fix grammatical error.
255 2014-08-24 Yao Qi <yao@codesourcery.com>
257 * dwarf2read.c (scan_partial_symbols): Update comments.
258 Rename argument 'need_pc' with 'set_addrmap'.
259 (add_partial_namespace): Rename argument 'need_pc' with
261 (add_partial_module): Likewise.
262 (add_partial_subprogram): Likewise. Update comments.
263 (dwarf2_name): Fix typo.
265 2014-08-22 Doug Evans <dje@google.com>
268 * dwarf2read.c (dwarf_record_line_p): New function.
269 (dwarf_decode_lines_1): Ignore subsequent line number entries
270 for the same line if any entry had a non-zero discriminator.
272 2014-08-22 Doug Evans <dje@google.com>
274 * buildsym.h (record_line_ftype): New typedef.
275 (record_line): Use it.
276 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
277 (dwarf_decode_lines_1): Call them.
279 2014-08-22 Yao Qi <yao@codesourcery.com>
281 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
282 (ctf_end): Remove code.
284 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
286 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
287 (linux_make_corefile_notes): call update_thread_list, protected against
290 2014-08-21 Pedro Alves <palves@redhat.com>
292 * infcmd.c (attach_command): Remove comment.
294 2014-08-21 Bin Cheng <bin.cheng@arm.com>
296 * aarch64-linux-nat.c (dr_changed_t): Change the type from
297 unsigned LONGEST to ULONGEST.
299 2014-08-20 Pedro Alves <palves@redhat.com>
301 * Makefile.in (check-read1): New rule.
303 2014-08-20 Joel Brobecker <brobecker@adacore.com>
305 * value.c (value_from_contents_and_address): Strip resolved_type's
306 typedef layers before checking its TYPE_DATA_LOCATION.
308 2014-08-20 Pedro Alves <palves@redhat.com>
310 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
312 2014-08-20 Yao Qi <yao@codesourcery.com>
314 * amd64-tdep.c (amd64_classify): Add a blank line after the
315 example. Move "*/" to a new line.
316 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
317 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
318 * dwarf2read.c (psymtab_include_file_name): Likewise.
320 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
321 Pedro Alves <palves@redhat.com>
325 * ada-lang.c (coerce_unspec_val_to_type): Use
326 value_contents_copy_raw.
327 * ada-valprint.c (val_print_packed_array_elements): Adjust.
328 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
329 * cp-valprint.c (cp_print_value_fields): Let the common printing
330 code handle optimized out values.
331 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
332 * d-valprint.c (dynamic_array_type): Use
333 value_bits_any_optimized_out.
334 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
335 check_any_valid fields.
336 (check_pieced_value_bits): Delete and inline ...
337 (check_pieced_synthetic_pointer): ... here.
338 (check_pieced_value_validity): Delete.
339 (check_pieced_value_invalid): Delete.
340 (pieced_value_funcs): Remove check_validity and check_any_valid
342 (read_pieced_value): Use mark_value_bits_optimized_out.
343 (write_pieced_value): Switch to use
344 mark_value_bytes_optimized_out.
345 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
346 of assuming the whole value is optimized out.
347 * findvar.c (read_frame_register_value): Remove special handling
348 of optimized out registers.
349 (value_from_register): Use mark_value_bytes_optimized_out.
350 * frame-unwind.c (frame_unwind_got_optimized): Use
351 mark_value_bytes_optimized_out.
352 * jv-valprint.c (java_value_print): Adjust.
353 (java_print_value_fields): Let the common printing code handle
354 optimized out values.
355 * mips-tdep.c (mips_print_register): Remove special handling of
356 optimized out registers.
357 * opencl-lang.c (lval_func_check_validity): Delete.
358 (lval_func_check_any_valid): Delete.
359 (opencl_value_funcs): Remove check_validity and check_any_valid
361 * p-valprint.c (pascal_object_print_value_fields): Let the common
362 printing code handle optimized out values.
363 * stack.c (read_frame_arg): Remove special handling of optimized
364 out values. Fetch both VAL and ENTRYVAL before comparing
365 contents. Adjust to value_available_contents_eq rename.
366 * valprint.c (valprint_check_validity)
367 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
368 (val_print_array_elements): Adjust.
369 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
370 (value_bits_any_optimized_out): New function.
371 (value_entirely_covered_by_range_vector): New function, factored
372 out from value_entirely_unavailable.
373 (value_entirely_unavailable): Reimplement.
374 (value_entirely_optimized_out): New function.
375 (insert_into_bit_range_vector): New function, factored out from
376 mark_value_bits_unavailable.
377 (mark_value_bits_unavailable): Reimplement.
378 (struct ranges_and_idx): New struct.
379 (find_first_range_overlap_and_match): New function, factored out
380 from value_available_contents_bits_eq.
381 (value_available_contents_bits_eq): Rename to ...
382 (value_contents_bits_eq): ... this. Check both unavailable
383 contents and optimized out contents.
384 (value_available_contents_eq): Rename to ...
385 (value_contents_eq): ... this.
386 (allocate_value_lazy): Remove reference to the old optimized_out
388 (allocate_optimized_out_value): Use
389 mark_value_bytes_optimized_out.
390 (require_not_optimized_out): Adjust to check whether the
391 optimized_out vec is empty.
392 (ranges_copy_adjusted): New function, factored out from
393 value_contents_copy_raw.
394 (value_contents_copy_raw): Also copy the optimized out ranges.
395 Assert the destination ranges aren't optimized out.
396 (value_contents_copy): Update comment, remove call to
397 require_not_optimized_out.
398 (value_contents_equal): Adjust to check whether the optimized_out
400 (set_value_optimized_out, value_optimized_out_const): Delete.
401 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
403 (value_entirely_optimized_out, value_bits_valid): Delete.
404 (value_copy): Take a VEC copy of the 'optimized_out' field.
405 (value_primitive_field): Remove special handling of optimized out.
406 (value_fetch_lazy): Assert that lazy values have no unavailable
407 regions. Use value_bits_any_optimized_out. Remove some special
408 handling for optimized out values.
409 * value.h: Add intro comment about <optimized out> and
411 (struct lval_funcs): Remove check_validity and check_any_valid
413 (set_value_optimized_out, value_optimized_out_const): Remove.
414 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
416 (value_bits_any_optimized_out): New declaration.
417 (value_bits_valid): Delete declaration.
418 (value_available_contents_eq): Rename to ...
419 (value_contents_eq): ... this, and extend comments.
421 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
423 Fix -fsanitize=address on unreadable inferior strings.
424 * valprint.c (val_print_string): Fix access before BUFFER.
426 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
428 * target.c (target_struct_size): Remove.
429 (target_struct_allocsize): Remove.
430 (DEFAULT_ALLOCSIZE): Remove.
431 (target_ops_p): New typedef.
432 (DEF_VEC_P (target_ops_p)): New vector type.
433 (target_structs): Change type to VEC (target_ops_p).
434 (add_target_with_completer): Replace "push" code by VEC_safe_push.
435 (find_default_run_target): Rewrite for loop following changes to
438 2014-08-19 Joel Brobecker <brobecker@adacore.com>
440 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
441 Adjust code accordingly. Adjust function description comment.
443 2014-08-19 Yao Qi <yao@codesourcery.com>
445 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
448 2014-08-19 Alan Modra <amodra@gmail.com>
450 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
451 * config.in: Regenerate.
452 * configure: Regenerate.
454 2014-08-19 Tom Tromey <tromey@redhat.com>
455 Gary Benson <gbenson@redhat.com>
457 * common/common-debug.h: New file.
458 * common/common-debug.c: Likewise.
460 * Makefile.in (SFILES): Add common/common-debug.c.
461 (HFILES_NO_SRCDIR): Add common/common-debug.h.
462 (COMMON_OBS): Add common-debug.o and debug.o.
463 (common-debug.o): New rule.
464 * common/common-defs.h: Include common-debug.h.
465 * common/agent.c (debug_agent_printf): New function.
466 (DEBUG_AGENT): Redefine.
467 * nat/i386-dregs.c (debug_printf): Undefine.
469 2014-08-19 Gary Benson <gbenson@redhat.com>
471 * common/common-defs.h: Include print-utils.h.
472 * utils.h: Do not include print-utils.h.
474 2014-08-19 Tom Tromey <tromey@redhat.com>
475 Gary Benson <gbenson@redhat.com>
477 * common/common-types.h: New file.
478 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
479 * common/common-defs.h: Include common-types.h.
480 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
483 2014-08-19 Tom Tromey <tromey@redhat.com>
484 Gary Benson <gbenson@redhat.com>
486 * common/errors.h: New file.
487 * common/errors.c: Likewise.
488 * Makefile.in (SFILES): Add common/errors.c.
489 (HFILES_NO_SRCDIR): Add common/errors.h.
490 (COMMON_OBS): Add errors.o.
491 (errors.o): New rule.
492 * common/common-defs.h: Include errors.h.
493 * utils.h (perror_with_name, error, verror, warning, vwarning):
495 * common/common-utils.h: (malloc_failure, internal_error):
498 2014-08-19 Gary Benson <gbenson@redhat.com>
500 * utils.c (internal_vproblem): Always print the message.
502 2014-08-18 Doug Evans <dje@google.com>
504 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
506 2014-08-18 Joel Brobecker <brobecker@adacore.com>
508 * ada-typeprint.c (type_is_full_subrange_of_target_type):
509 Return 0 if TYPE is dynamic.
510 (print_range): Add handling of dynamic ranges.
512 2014-08-18 Keven Boell <keven.boell@intel.com>
513 Joel Brobecker <brobecker@adacore.com>
515 * gdbtypes.h (struct main_type): Add field "data_location".
516 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
517 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
518 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
519 a dynamic data location.
520 (resolve_dynamic_type): Add DW_AT_data_location handling.
521 (copy_recursive, copy_type): Copy the data_location information
523 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
524 * value.c (value_from_contents_and_address): Add
525 DW_AT_data_location handling.
527 2014-08-18 Keven Boell <keven.boell@intel.com>
528 Joel Brobecker <brobecker@adacore.com>
530 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
531 field "get_object_address".
532 * dwarf2expr.c (execute_stack_op): Add handling for
533 DW_OP_push_object_address.
534 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
535 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
536 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
537 (dwarf_expr_get_obj_addr): New function.
538 (dwarf_expr_ctx_funcs): Add get_object_address field.
539 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
540 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
541 (dwarf2_evaluate_property): Add parameter "address". Use it.
542 (needs_get_obj_addr): New function.
543 (needs_frame_ctx_funcs): Add get_object_address field.
544 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
545 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
546 (resolve_dynamic_array): Likewise.
548 2014-08-18 Joel Brobecker <brobecker@adacore.com>
550 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
551 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
552 fixed value for records and unions for which some GNAT encodings
555 2014-08-18 Joel Brobecker <brobecker@adacore.com>
557 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
558 rewrite to avoid "else if" and "else" constructs. Should be
561 2014-08-18 Joel Brobecker <brobecker@adacore.com>
563 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
566 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
569 * eval.c: Update all calls to find_overload_match.
570 * valarith.c: Likewise.
571 (value_user_defined_cpp_op, value_user_defined_op): New
572 argument NOSIDE. Update all callers.
573 * valops.c (find_overload_match): New argument NOSIDE.
574 * value.h (find_overload_match): Update signature.
576 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
578 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
579 'items' methods instead of 'iteritems' method on dictionaries.
581 2014-08-15 Doug Evans <dje@google.com>
583 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
586 2014-08-15 Doug Evans <dje@google.com>
588 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
590 2014-08-15 Doug Evans <dje@google.com>
592 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
594 2014-08-15 Doug Evans <dje@google.com>
596 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
599 2014-08-15 Eli Zaretskii <eliz@gnu.org>
601 * dcache.h: Include target.h, to avoid compile time warnings.
603 2014-08-15 Joel Brobecker <brobecker@adacore.com>
605 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
606 frame_info" partial declaration.
607 * gdbarch.h: Regenerate.
609 2014-08-15 Yao Qi <yao@codesourcery.com>
611 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
612 Add parameter 'decode_for_pst_p'. Callers update.
614 2014-08-13 Yao Qi <yao@codesourcery.com>
617 * configure.ac: Use local variable 'pos'.
618 * configure: Regenerated.
620 2014-08-11 Doug Evans <dje@google.com>
622 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
623 message, it is redundant with "Reading symbols from ..." message.
625 2014-08-10 Doug Evans <xdje42@gmail.com>
627 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
629 2014-08-09 Yao Qi <yao@codesourcery.com>
632 * remote.c (remote_xfer_partial): Remove dead code.
634 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
636 * ia64-linux-tdep.c: Include "regset.h".
637 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
638 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
639 (ia64_linux_supply_fpregset): New function.
640 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
641 (ia64_linux_regset_from_core_section): New function.
642 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
645 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
647 * m68klinux-tdep.c: Include "regset.h".
648 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
649 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
650 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
651 (m68k_linux_regset_from_core_section): New function.
652 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
655 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
657 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
658 function. Move logic to...
659 (tilegx_linux_regmap): ... this new register map.
660 (tilegx_linux_regset): Refer to register map, replace supply
661 method by regcache_supply_regset, and add collect method.
662 * tilegx-tdep.h (enum tilegx_regnum): New enum value
663 TILEGX_FIRST_EASY_REGNUM.
665 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
667 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
668 that calls regcache_supply_regset and handles the EPC register
669 separately. Move main logic to...
670 (score7_linux_gregmap): ... this new register map.
671 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
672 (score7_linux_gregset): Refer to register map. Add collect method.
673 (score7_linux_regset_from_core_section): Replace
674 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
675 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
676 (struct regset): Delete unused forward declaraction.
677 (struct pt_regs): Delete structure definition.
678 (elf_gregset_t): Delete typedef.
680 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
682 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
683 (nios2_core_regset): Add collect method.
685 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
687 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
688 platform-independent and don't write to read-only input buffer.
689 (m32r_linux_collect_gregset): New function.
690 (m32r_linux_gregset): Add collect method.
692 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
694 * hppa-linux-tdep.c (greg_map): Rename to...
695 (hppa_linux_gregmap): ... this. Also convert to
696 regcache_map_entry format.
697 (hppa_linux_supply_regset): Delete function.
698 (hppa_linux_supply_fpregset): Delete function. Move logic to...
699 (hppa_linux_fpregmap): ... this new register map.
700 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
701 register map, replace supply method by regcache_supply_regset, and
702 add collect method regcache_collect_regset.
704 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
706 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
707 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
708 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
709 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
710 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
711 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
712 (frv_linux_supply_gregset): Replace main logic by call to
713 regcache_supply_regset, but keep clearing gr32-gr63.
714 (frv_linux_supply_fpregset): Delete function.
715 (frv_linux_gregset): Refer to appropriate register map and add
716 regcache_collect_regset as the collect method.
717 (frv_linux_fpregset): Likewise. Also exchange the supply method
718 by regcache_supply_regset.
720 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
722 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
723 by call to alpha_supply_int_regs.
724 (alpha_linux_collect_gregset): New function.
725 (alpha_linux_supply_fpregset): Replace logic by call to
726 alpha_supply_fp_regs.
727 (alpha_linux_collect_fpregset): New function.
728 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
730 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
732 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
733 by call to regcache_collect_regset.
734 (supply_gregset, supply_fpregset): Call regcache_supply_regset
735 instead of aarch64_linux_supply_gregset/_fpregset.
736 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
737 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
739 (aarch64_linux_supply_gregset, supply_gregset_from_core)
740 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
741 functions. Move logic to ...
742 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
744 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
745 refer to new register maps, replace *_regset_from_core by
746 regcache_supply_regset, and also use regcache_collect_regset.
747 * aarch64-linux-tdep.h: Include "regset.h".
748 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
750 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
751 macros, moved from C source file.
752 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
753 variable declarations.
755 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
757 * s390-linux-nat.c: Include "regset.h".
758 (regmap_gregset): Delete macro.
759 (s390_64_regmap_gregset): New register map for
760 regcache_supply/_collect_regset.
761 (s390_64_gregset): New regset.
762 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
763 (regmap_fpregset): Delete macro.
764 (s390_native_supply, s390_native_collect): Delete functions.
765 (supply_gregset, fill_gregset): Replace s390-specific regmap
766 handling by a call to regcache_supply/_collect_regset.
767 (supply_fpregset, fill_fpregset): Call regcache_supply/
768 _collect_regset instead of s390_native_supply/_collect.
769 (fetch_regset, store_regset): Likewise. Also change the last
770 parameter to a regset instead of a regmap.
771 (s390_linux_fetch_inferior_registers)
772 (390_linux_store_inferior_registers): Adjust last parameter in
773 calls to fetch_regset and store_regset.
774 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
775 (s390_gregmap): ... this. Also make static const and convert to
776 regcache_map_entry format.
777 (s390x_regmap_gregset): Delete.
778 (s390_regmap_fpregset): Rename to...
779 (s390_fpregmap): ... this. Make static const and convert to
780 regcache_map_entry format.
781 (s390_regmap_upper, s390_regmap_last_break)
782 (s390x_regmap_last_break, s390_regmap_system_call)
783 (s390_regmap_tdb): Likewise.
784 (s390_supply_regset, s390_collect_regset): Remove functions.
785 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
787 (s390_gregset, s390_fpregset, s390_upper_regset)
788 (s390_last_break_regset, s390x_last_break_regset)
789 (s390_system_call_regset, s390_tdb_regset): Make global and
790 replace s390_supply/_collect_regset by regcache_supply/
792 (s390x_gregset): Delete.
793 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
794 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
795 (s390_regmap_fpregset, s390_regmap_last_break)
796 (s390x_regmap_last_break, s390_regmap_system_call)
797 (s390_regmap_tdb): Delete global variable declarations.
798 (s390_gregset, s390_fpregset, s390_last_break_regset)
799 (s390x_last_break_regset, s390_system_call_regset)
800 (s390_tdb_regset): New global variable declarations.
802 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
804 * regcache.c: Include "regset.h".
805 (regcache_transfer_regset): New local function.
806 (regcache_supply_regset, regcache_collect_regset): New functions.
807 * regcache.h (struct regcache_map_entry): New structure.
808 (REGCACHE_MAP_SKIP): New enum value.
809 (regcache_supply_regset, regcache_collect_regset): New prototypes.
811 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
813 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
814 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
815 (ppc_linux_collect_gregset ): Likewise.
816 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
817 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
818 (ppc_collect_vrregset): Likewise.
819 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
822 2014-08-07 Yao Qi <yao@codesourcery.com>
824 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
825 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
826 * remote.c (remote_read_bytes): Likewise.
828 2014-08-07 Yao Qi <yao@codesourcery.com>
830 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
832 2014-08-07 Yao Qi <yao@codesourcery.com>
835 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
836 TARGET_XFER_OK instead of 0.
838 2014-08-07 Gary Benson <gbenson@redhat.com>
840 * common/common-defs.h: Include errno.h.
841 * defs.h: Do not include errno.h.
842 * ada-typeprint.c: Likewise.
843 * c-typeprint.c: Likewise.
844 * core-regset.c: Likewise.
845 * corefile.c: Likewise.
846 * corelow.c: Likewise.
847 * event-loop.c: Likewise.
848 * f-typeprint.c: Likewise.
849 * gnu-nat.c: Likewise.
850 * go32-nat.c: Likewise.
851 * i386gnu-nat.c: Likewise.
852 * m2-typeprint.c: Likewise.
853 * nat/linux-btrace.c: Likewise.
854 * p-typeprint.c: Likewise.
855 * procfs.c: Likewise.
856 * remote-sim.c: Likewise.
857 * rs6000-nat.c: Likewise.
858 * target.c: Likewise.
859 * typeprint.c: Likewise.
860 * ui-file.c: Likewise.
861 * valops.c: Likewise.
862 * valprint.c: Likewise.
864 2014-08-07 Gary Benson <gbenson@redhat.com>
866 * common/common-defs.h: Include string.h.
867 * aarch64-tdep.c: Do not include string.h.
868 * ada-exp.y: Likewise.
869 * ada-lang.c: Likewise.
870 * ada-lex.l: Likewise.
871 * ada-typeprint.c: Likewise.
872 * ada-valprint.c: Likewise.
873 * aix-thread.c: Likewise.
874 * alpha-linux-tdep.c: Likewise.
875 * alpha-mdebug-tdep.c: Likewise.
876 * alpha-nat.c: Likewise.
877 * alpha-osf1-tdep.c: Likewise.
878 * alpha-tdep.c: Likewise.
879 * alphanbsd-tdep.c: Likewise.
880 * amd64-dicos-tdep.c: Likewise.
881 * amd64-linux-tdep.c: Likewise.
882 * amd64-nat.c: Likewise.
883 * amd64-sol2-tdep.c: Likewise.
884 * amd64fbsd-tdep.c: Likewise.
885 * amd64obsd-tdep.c: Likewise.
886 * arch-utils.c: Likewise.
887 * arm-linux-nat.c: Likewise.
888 * arm-linux-tdep.c: Likewise.
889 * arm-tdep.c: Likewise.
890 * arm-wince-tdep.c: Likewise.
891 * armbsd-tdep.c: Likewise.
892 * armnbsd-nat.c: Likewise.
893 * armnbsd-tdep.c: Likewise.
894 * armobsd-tdep.c: Likewise.
895 * avr-tdep.c: Likewise.
896 * ax-gdb.c: Likewise.
897 * ax-general.c: Likewise.
898 * bcache.c: Likewise.
899 * bfin-tdep.c: Likewise.
900 * breakpoint.c: Likewise.
901 * build-id.c: Likewise.
902 * buildsym.c: Likewise.
904 * c-lang.c: Likewise.
905 * c-typeprint.c: Likewise.
906 * c-valprint.c: Likewise.
907 * charset.c: Likewise.
908 * cli-out.c: Likewise.
909 * cli/cli-cmds.c: Likewise.
910 * cli/cli-decode.c: Likewise.
911 * cli/cli-dump.c: Likewise.
912 * cli/cli-interp.c: Likewise.
913 * cli/cli-logging.c: Likewise.
914 * cli/cli-script.c: Likewise.
915 * cli/cli-setshow.c: Likewise.
916 * cli/cli-utils.c: Likewise.
917 * coffread.c: Likewise.
918 * common/agent.c: Likewise.
919 * common/buffer.c: Likewise.
920 * common/buffer.h: Likewise.
921 * common/common-utils.c: Likewise.
922 * common/filestuff.c: Likewise.
923 * common/filestuff.c: Likewise.
924 * common/format.c: Likewise.
925 * common/print-utils.c: Likewise.
926 * common/rsp-low.c: Likewise.
927 * common/signals.c: Likewise.
928 * common/vec.h: Likewise.
929 * common/xml-utils.c: Likewise.
930 * core-regset.c: Likewise.
931 * corefile.c: Likewise.
932 * corelow.c: Likewise.
933 * cp-abi.c: Likewise.
934 * cp-name-parser.y: Likewise.
935 * cp-support.c: Likewise.
936 * cp-valprint.c: Likewise.
937 * cris-tdep.c: Likewise.
939 * darwin-nat.c: Likewise.
940 * dbxread.c: Likewise.
941 * dcache.c: Likewise.
942 * demangle.c: Likewise.
943 * dicos-tdep.c: Likewise.
944 * disasm.c: Likewise.
945 * doublest.c: Likewise.
947 * dummy-frame.c: Likewise.
948 * dwarf2-frame.c: Likewise.
949 * dwarf2loc.c: Likewise.
950 * dwarf2read.c: Likewise.
951 * elfread.c: Likewise.
952 * environ.c: Likewise.
954 * event-loop.c: Likewise.
955 * exceptions.c: Likewise.
957 * expprint.c: Likewise.
959 * f-lang.c: Likewise.
960 * f-typeprint.c: Likewise.
961 * f-valprint.c: Likewise.
962 * fbsd-nat.c: Likewise.
963 * findcmd.c: Likewise.
964 * findvar.c: Likewise.
965 * fork-child.c: Likewise.
967 * frv-linux-tdep.c: Likewise.
968 * frv-tdep.c: Likewise.
970 * gdb_bfd.c: Likewise.
971 * gdbarch.c: Likewise.
972 * gdbarch.sh: Likewise.
973 * gdbtypes.c: Likewise.
974 * gnu-nat.c: Likewise.
975 * gnu-v2-abi.c: Likewise.
976 * gnu-v3-abi.c: Likewise.
977 * go-exp.y: Likewise.
978 * go-lang.c: Likewise.
979 * go32-nat.c: Likewise.
980 * guile/guile.c: Likewise.
981 * guile/scm-auto-load.c: Likewise.
982 * hppa-hpux-tdep.c: Likewise.
983 * hppa-linux-nat.c: Likewise.
984 * hppanbsd-tdep.c: Likewise.
985 * hppaobsd-tdep.c: Likewise.
986 * i386-cygwin-tdep.c: Likewise.
987 * i386-dicos-tdep.c: Likewise.
988 * i386-linux-tdep.c: Likewise.
989 * i386-nto-tdep.c: Likewise.
990 * i386-sol2-tdep.c: Likewise.
991 * i386-tdep.c: Likewise.
992 * i386bsd-tdep.c: Likewise.
993 * i386gnu-nat.c: Likewise.
994 * i386nbsd-tdep.c: Likewise.
995 * i386obsd-tdep.c: Likewise.
996 * i387-tdep.c: Likewise.
997 * ia64-libunwind-tdep.c: Likewise.
998 * ia64-linux-nat.c: Likewise.
999 * inf-child.c: Likewise.
1000 * inf-ptrace.c: Likewise.
1001 * inf-ttrace.c: Likewise.
1002 * infcall.c: Likewise.
1003 * infcmd.c: Likewise.
1004 * inflow.c: Likewise.
1005 * infrun.c: Likewise.
1006 * interps.c: Likewise.
1007 * iq2000-tdep.c: Likewise.
1008 * irix5-nat.c: Likewise.
1009 * jv-exp.y: Likewise.
1010 * jv-lang.c: Likewise.
1011 * jv-typeprint.c: Likewise.
1012 * jv-valprint.c: Likewise.
1013 * language.c: Likewise.
1014 * linux-fork.c: Likewise.
1015 * linux-nat.c: Likewise.
1016 * lm32-tdep.c: Likewise.
1017 * m2-exp.y: Likewise.
1018 * m2-typeprint.c: Likewise.
1019 * m32c-tdep.c: Likewise.
1020 * m32r-linux-nat.c: Likewise.
1021 * m32r-linux-tdep.c: Likewise.
1022 * m32r-rom.c: Likewise.
1023 * m32r-tdep.c: Likewise.
1024 * m68hc11-tdep.c: Likewise.
1025 * m68k-tdep.c: Likewise.
1026 * m68kbsd-tdep.c: Likewise.
1027 * m68klinux-nat.c: Likewise.
1028 * m68klinux-tdep.c: Likewise.
1029 * m88k-tdep.c: Likewise.
1030 * machoread.c: Likewise.
1031 * macrocmd.c: Likewise.
1033 * mdebugread.c: Likewise.
1034 * mem-break.c: Likewise.
1035 * memattr.c: Likewise.
1036 * memory-map.c: Likewise.
1037 * mep-tdep.c: Likewise.
1038 * mi/mi-cmd-break.c: Likewise.
1039 * mi/mi-cmd-disas.c: Likewise.
1040 * mi/mi-cmd-env.c: Likewise.
1041 * mi/mi-cmd-stack.c: Likewise.
1042 * mi/mi-cmd-var.c: Likewise.
1043 * mi/mi-cmds.c: Likewise.
1044 * mi/mi-console.c: Likewise.
1045 * mi/mi-getopt.c: Likewise.
1046 * mi/mi-interp.c: Likewise.
1047 * mi/mi-main.c: Likewise.
1048 * mi/mi-parse.c: Likewise.
1049 * microblaze-rom.c: Likewise.
1050 * microblaze-tdep.c: Likewise.
1051 * mingw-hdep.c: Likewise.
1052 * minidebug.c: Likewise.
1053 * minsyms.c: Likewise.
1054 * mips-irix-tdep.c: Likewise.
1055 * mips-linux-tdep.c: Likewise.
1056 * mips-tdep.c: Likewise.
1057 * mips64obsd-tdep.c: Likewise.
1058 * mipsnbsd-tdep.c: Likewise.
1059 * mipsread.c: Likewise.
1060 * mn10300-linux-tdep.c: Likewise.
1061 * mn10300-tdep.c: Likewise.
1062 * monitor.c: Likewise.
1063 * moxie-tdep.c: Likewise.
1064 * mt-tdep.c: Likewise.
1065 * nat/linux-btrace.c: Likewise.
1066 * nat/linux-osdata.c: Likewise.
1067 * nat/linux-procfs.c: Likewise.
1068 * nat/linux-ptrace.c: Likewise.
1069 * nat/linux-waitpid.c: Likewise.
1070 * nbsd-tdep.c: Likewise.
1071 * nios2-linux-tdep.c: Likewise.
1072 * nto-procfs.c: Likewise.
1073 * nto-tdep.c: Likewise.
1074 * objc-lang.c: Likewise.
1075 * objfiles.c: Likewise.
1076 * opencl-lang.c: Likewise.
1077 * osabi.c: Likewise.
1078 * osdata.c: Likewise.
1079 * p-exp.y: Likewise.
1080 * p-lang.c: Likewise.
1081 * p-typeprint.c: Likewise.
1082 * parse.c: Likewise.
1083 * posix-hdep.c: Likewise.
1084 * ppc-linux-nat.c: Likewise.
1085 * ppc-sysv-tdep.c: Likewise.
1086 * ppcfbsd-tdep.c: Likewise.
1087 * ppcnbsd-tdep.c: Likewise.
1088 * ppcobsd-tdep.c: Likewise.
1089 * printcmd.c: Likewise.
1090 * procfs.c: Likewise.
1091 * prologue-value.c: Likewise.
1092 * python/py-auto-load.c: Likewise.
1093 * python/py-gdb-readline.c: Likewise.
1094 * ravenscar-thread.c: Likewise.
1095 * regcache.c: Likewise.
1096 * registry.c: Likewise.
1097 * remote-fileio.c: Likewise.
1098 * remote-m32r-sdi.c: Likewise.
1099 * remote-mips.c: Likewise.
1100 * remote-notif.c: Likewise.
1101 * remote-sim.c: Likewise.
1102 * remote.c: Likewise.
1103 * reverse.c: Likewise.
1104 * rs6000-aix-tdep.c: Likewise.
1105 * ser-base.c: Likewise.
1106 * ser-go32.c: Likewise.
1107 * ser-mingw.c: Likewise.
1108 * ser-pipe.c: Likewise.
1109 * ser-tcp.c: Likewise.
1110 * ser-unix.c: Likewise.
1111 * serial.c: Likewise.
1112 * sh-tdep.c: Likewise.
1113 * sh64-tdep.c: Likewise.
1114 * shnbsd-tdep.c: Likewise.
1116 * sol-thread.c: Likewise.
1117 * solib-dsbt.c: Likewise.
1118 * solib-frv.c: Likewise.
1119 * solib-osf.c: Likewise.
1120 * solib-som.c: Likewise.
1121 * solib-spu.c: Likewise.
1122 * solib-target.c: Likewise.
1123 * solib.c: Likewise.
1124 * somread.c: Likewise.
1125 * source.c: Likewise.
1126 * sparc-nat.c: Likewise.
1127 * sparc-sol2-tdep.c: Likewise.
1128 * sparc-tdep.c: Likewise.
1129 * sparc64-tdep.c: Likewise.
1130 * sparc64fbsd-tdep.c: Likewise.
1131 * sparc64nbsd-tdep.c: Likewise.
1132 * sparcnbsd-tdep.c: Likewise.
1133 * spu-linux-nat.c: Likewise.
1134 * spu-multiarch.c: Likewise.
1135 * spu-tdep.c: Likewise.
1136 * stabsread.c: Likewise.
1137 * stack.c: Likewise.
1138 * std-regs.c: Likewise.
1139 * symfile.c: Likewise.
1140 * symmisc.c: Likewise.
1141 * symtab.c: Likewise.
1142 * target.c: Likewise.
1143 * thread.c: Likewise.
1144 * tilegx-linux-nat.c: Likewise.
1145 * tilegx-tdep.c: Likewise.
1147 * tracepoint.c: Likewise.
1148 * tui/tui-command.c: Likewise.
1149 * tui/tui-data.c: Likewise.
1150 * tui/tui-disasm.c: Likewise.
1151 * tui/tui-file.c: Likewise.
1152 * tui/tui-layout.c: Likewise.
1153 * tui/tui-out.c: Likewise.
1154 * tui/tui-regs.c: Likewise.
1155 * tui/tui-source.c: Likewise.
1156 * tui/tui-stack.c: Likewise.
1157 * tui/tui-win.c: Likewise.
1158 * tui/tui-windata.c: Likewise.
1159 * tui/tui-winsource.c: Likewise.
1160 * typeprint.c: Likewise.
1161 * ui-file.c: Likewise.
1162 * ui-out.c: Likewise.
1163 * user-regs.c: Likewise.
1164 * utils.c: Likewise.
1165 * v850-tdep.c: Likewise.
1166 * valarith.c: Likewise.
1167 * valops.c: Likewise.
1168 * valprint.c: Likewise.
1169 * value.c: Likewise.
1170 * varobj.c: Likewise.
1171 * vax-tdep.c: Likewise.
1172 * vaxnbsd-tdep.c: Likewise.
1173 * vaxobsd-tdep.c: Likewise.
1174 * windows-nat.c: Likewise.
1175 * xcoffread.c: Likewise.
1176 * xml-support.c: Likewise.
1177 * xstormy16-tdep.c: Likewise.
1178 * xtensa-linux-nat.c: Likewise.
1180 2014-08-07 Gary Benson <gbenson@redhat.com>
1182 * common/common-defs.h: Include gdb_assert.h.
1183 * aarch64-tdep.c: Do not include gdb_assert.h.
1184 * addrmap.c: Likewise.
1185 * aix-thread.c: Likewise.
1186 * alpha-linux-tdep.c: Likewise.
1187 * alpha-mdebug-tdep.c: Likewise.
1188 * alphanbsd-tdep.c: Likewise.
1189 * amd64-nat.c: Likewise.
1190 * amd64-tdep.c: Likewise.
1191 * amd64bsd-nat.c: Likewise.
1192 * amd64fbsd-nat.c: Likewise.
1193 * amd64fbsd-tdep.c: Likewise.
1194 * amd64nbsd-nat.c: Likewise.
1195 * amd64nbsd-tdep.c: Likewise.
1196 * amd64obsd-nat.c: Likewise.
1197 * amd64obsd-tdep.c: Likewise.
1198 * arch-utils.c: Likewise.
1199 * arm-tdep.c: Likewise.
1200 * armbsd-tdep.c: Likewise.
1202 * bcache.c: Likewise.
1203 * bfin-tdep.c: Likewise.
1204 * blockframe.c: Likewise.
1205 * breakpoint.c: Likewise.
1206 * bsd-kvm.c: Likewise.
1207 * bsd-uthread.c: Likewise.
1208 * buildsym.c: Likewise.
1209 * c-exp.y: Likewise.
1210 * c-lang.c: Likewise.
1211 * charset.c: Likewise.
1212 * cleanups.c: Likewise.
1213 * cli-out.c: Likewise.
1214 * cli/cli-decode.c: Likewise.
1215 * cli/cli-dump.c: Likewise.
1216 * cli/cli-logging.c: Likewise.
1217 * cli/cli-script.c: Likewise.
1218 * cli/cli-utils.c: Likewise.
1219 * coffread.c: Likewise.
1220 * common/common-utils.c: Likewise.
1221 * common/queue.h: Likewise.
1222 * common/signals.c: Likewise.
1223 * common/vec.h: Likewise.
1224 * complaints.c: Likewise.
1225 * completer.c: Likewise.
1226 * corelow.c: Likewise.
1227 * cp-abi.c: Likewise.
1228 * cp-name-parser.y: Likewise.
1229 * cp-namespace.c: Likewise.
1230 * cp-support.c: Likewise.
1231 * cris-tdep.c: Likewise.
1232 * dbxread.c: Likewise.
1233 * dictionary.c: Likewise.
1234 * doublest.c: Likewise.
1235 * dsrec.c: Likewise.
1236 * dummy-frame.c: Likewise.
1237 * dwarf2-frame-tailcall.c: Likewise.
1238 * dwarf2-frame.c: Likewise.
1239 * dwarf2expr.c: Likewise.
1240 * dwarf2loc.c: Likewise.
1241 * dwarf2read.c: Likewise.
1243 * event-loop.c: Likewise.
1244 * exceptions.c: Likewise.
1245 * expprint.c: Likewise.
1246 * f-valprint.c: Likewise.
1247 * fbsd-nat.c: Likewise.
1248 * findvar.c: Likewise.
1249 * frame-unwind.c: Likewise.
1250 * frame.c: Likewise.
1251 * frv-tdep.c: Likewise.
1252 * gcore.c: Likewise.
1253 * gdb-dlfcn.c: Likewise.
1254 * gdb_bfd.c: Likewise.
1255 * gdbarch.c: Likewise.
1256 * gdbarch.sh: Likewise.
1257 * gdbtypes.c: Likewise.
1258 * gnu-nat.c: Likewise.
1259 * gnu-v3-abi.c: Likewise.
1260 * go-lang.c: Likewise.
1261 * guile/scm-exception.c: Likewise.
1262 * guile/scm-gsmob.c: Likewise.
1263 * guile/scm-lazy-string.c: Likewise.
1264 * guile/scm-math.c: Likewise.
1265 * guile/scm-pretty-print.c: Likewise.
1266 * guile/scm-safe-call.c: Likewise.
1267 * guile/scm-utils.c: Likewise.
1268 * guile/scm-value.c: Likewise.
1269 * h8300-tdep.c: Likewise.
1270 * hppa-hpux-nat.c: Likewise.
1271 * hppa-tdep.c: Likewise.
1272 * hppanbsd-tdep.c: Likewise.
1273 * hppaobsd-tdep.c: Likewise.
1274 * i386-darwin-nat.c: Likewise.
1275 * i386-darwin-tdep.c: Likewise.
1276 * i386-nto-tdep.c: Likewise.
1277 * i386-tdep.c: Likewise.
1278 * i386bsd-nat.c: Likewise.
1279 * i386fbsd-tdep.c: Likewise.
1280 * i386gnu-nat.c: Likewise.
1281 * i386nbsd-tdep.c: Likewise.
1282 * i386obsd-tdep.c: Likewise.
1283 * i387-tdep.c: Likewise.
1284 * ia64-libunwind-tdep.c: Likewise.
1285 * ia64-tdep.c: Likewise.
1286 * inf-ptrace.c: Likewise.
1287 * inf-ttrace.c: Likewise.
1288 * infcall.c: Likewise.
1289 * infcmd.c: Likewise.
1290 * infrun.c: Likewise.
1291 * inline-frame.c: Likewise.
1292 * interps.c: Likewise.
1293 * jv-lang.c: Likewise.
1294 * jv-typeprint.c: Likewise.
1295 * linux-fork.c: Likewise.
1296 * linux-nat.c: Likewise.
1297 * linux-thread-db.c: Likewise.
1298 * m32c-tdep.c: Likewise.
1299 * m32r-linux-nat.c: Likewise.
1300 * m32r-tdep.c: Likewise.
1301 * m68k-tdep.c: Likewise.
1302 * m68kbsd-nat.c: Likewise.
1303 * m68kbsd-tdep.c: Likewise.
1304 * m88k-tdep.c: Likewise.
1305 * machoread.c: Likewise.
1306 * macroexp.c: Likewise.
1307 * macrotab.c: Likewise.
1308 * maint.c: Likewise.
1309 * mdebugread.c: Likewise.
1310 * memory-map.c: Likewise.
1311 * mep-tdep.c: Likewise.
1312 * mi/mi-common.c: Likewise.
1313 * microblaze-tdep.c: Likewise.
1314 * mingw-hdep.c: Likewise.
1315 * mips-linux-nat.c: Likewise.
1316 * mips-linux-tdep.c: Likewise.
1317 * mips-tdep.c: Likewise.
1318 * mips64obsd-tdep.c: Likewise.
1319 * mipsnbsd-tdep.c: Likewise.
1320 * mn10300-linux-tdep.c: Likewise.
1321 * mn10300-tdep.c: Likewise.
1322 * moxie-tdep.c: Likewise.
1323 * mt-tdep.c: Likewise.
1324 * nat/linux-btrace.c: Likewise.
1325 * nat/linux-osdata.c: Likewise.
1326 * nat/linux-ptrace.c: Likewise.
1327 * nat/mips-linux-watch.c: Likewise.
1328 * nios2-linux-tdep.c: Likewise.
1329 * nios2-tdep.c: Likewise.
1330 * objc-lang.c: Likewise.
1331 * objfiles.c: Likewise.
1332 * obsd-nat.c: Likewise.
1333 * opencl-lang.c: Likewise.
1334 * osabi.c: Likewise.
1335 * parse.c: Likewise.
1336 * ppc-linux-nat.c: Likewise.
1337 * ppc-sysv-tdep.c: Likewise.
1338 * ppcfbsd-nat.c: Likewise.
1339 * ppcfbsd-tdep.c: Likewise.
1340 * ppcnbsd-nat.c: Likewise.
1341 * ppcnbsd-tdep.c: Likewise.
1342 * ppcobsd-nat.c: Likewise.
1343 * ppcobsd-tdep.c: Likewise.
1344 * printcmd.c: Likewise.
1345 * procfs.c: Likewise.
1346 * prologue-value.c: Likewise.
1347 * psymtab.c: Likewise.
1348 * python/py-lazy-string.c: Likewise.
1349 * python/py-value.c: Likewise.
1350 * regcache.c: Likewise.
1351 * reggroups.c: Likewise.
1352 * registry.c: Likewise.
1353 * remote-sim.c: Likewise.
1354 * remote.c: Likewise.
1355 * rs6000-aix-tdep.c: Likewise.
1356 * rs6000-tdep.c: Likewise.
1357 * s390-linux-tdep.c: Likewise.
1358 * score-tdep.c: Likewise.
1359 * ser-base.c: Likewise.
1360 * ser-mingw.c: Likewise.
1361 * sh-tdep.c: Likewise.
1362 * sh64-tdep.c: Likewise.
1363 * solib-darwin.c: Likewise.
1364 * solib-spu.c: Likewise.
1365 * solib-svr4.c: Likewise.
1366 * source.c: Likewise.
1367 * sparc-nat.c: Likewise.
1368 * sparc-sol2-tdep.c: Likewise.
1369 * sparc-tdep.c: Likewise.
1370 * sparc64-sol2-tdep.c: Likewise.
1371 * sparc64-tdep.c: Likewise.
1372 * sparc64fbsd-tdep.c: Likewise.
1373 * sparc64nbsd-tdep.c: Likewise.
1374 * sparc64obsd-tdep.c: Likewise.
1375 * sparcnbsd-tdep.c: Likewise.
1376 * sparcobsd-tdep.c: Likewise.
1377 * spu-multiarch.c: Likewise.
1378 * spu-tdep.c: Likewise.
1379 * stabsread.c: Likewise.
1380 * stack.c: Likewise.
1381 * symfile.c: Likewise.
1382 * symtab.c: Likewise.
1383 * target-descriptions.c: Likewise.
1384 * target-memory.c: Likewise.
1385 * target.c: Likewise.
1386 * tic6x-linux-tdep.c: Likewise.
1387 * tic6x-tdep.c: Likewise.
1388 * tilegx-linux-nat.c: Likewise.
1389 * tilegx-tdep.c: Likewise.
1391 * tramp-frame.c: Likewise.
1392 * tui/tui-out.c: Likewise.
1393 * tui/tui-winsource.c: Likewise.
1394 * ui-out.c: Likewise.
1395 * user-regs.c: Likewise.
1396 * utils.c: Likewise.
1397 * v850-tdep.c: Likewise.
1398 * valops.c: Likewise.
1399 * value.c: Likewise.
1400 * varobj.c: Likewise.
1401 * vax-nat.c: Likewise.
1402 * xml-syscall.c: Likewise.
1403 * xml-tdesc.c: Likewise.
1404 * xstormy16-tdep.c: Likewise.
1405 * xtensa-linux-nat.c: Likewise.
1406 * xtensa-tdep.c: Likewise.
1408 2014-08-07 Gary Benson <gbenson@redhat.com>
1410 * common/common-defs.h: Include common-utils.h.
1411 * defs.h: Do not include common-utils.h.
1412 * common/gdb_assert.h: Likewise.
1413 * darwin-nat.h: Likewise.
1414 * nat/linux-btrace.c: Likewise.
1415 * target/waitstatus.h: Likewise.
1417 2014-08-07 Gary Benson <gbenson@redhat.com>
1419 * common/common-defs.h: Include ptid.h.
1420 * defs.h: Do not include ptid.h.
1421 * inferior.h: Likewise.
1422 * infrun.h: Likewise.
1423 * nat/linux-btrace.h: Likewise.
1424 * nat/linux-osdata.h: Likewise.
1425 * target/waitstatus.h: Likewise.
1427 2014-08-07 Gary Benson <gbenson@redhat.com>
1429 * common/common-defs.h: Include gdb_locale.h.
1430 * defs.h: Do not include gdb_locale.h.
1432 2014-08-07 Gary Benson <gbenson@redhat.com>
1434 * common/common-defs.h: Include gdb/signals.h.
1435 * defs.h: Do not include gdb/signals.h.
1437 2014-08-07 Gary Benson <gbenson@redhat.com>
1439 * common/common-defs.h: Include pathmax.h.
1440 * defs.h: Do not include pathmax.h.
1442 2014-08-07 Gary Benson <gbenson@redhat.com>
1444 * common/common-defs.h: Include libiberty.h.
1445 * defs.h: Do not include libiberty.h.
1446 * common/queue.h: Likewise.
1447 * cp-name-parser.y: Likewise.
1448 * mi/mi-cmd-catch.c: Likewise.
1449 * python/python.c: Likewise.
1451 2014-08-07 Gary Benson <gbenson@redhat.com>
1453 * common/common-defs.h: Include ansidecl.h.
1454 * defs.h: Do not include ansidecl.h.
1455 * common/buffer.h: Likewise.
1456 * common/common-utils.h: Likewise.
1458 2014-08-07 Gary Benson <gbenson@redhat.com>
1460 * common/common-defs.h: Include stddef.h.
1461 * defs.h: Do not include stddef.h.
1462 * common/common-utils.h: Likewise.
1463 * amd64fbsd-nat.c: Likewise.
1464 * bcache.c: Likewise.
1465 * charset.c: Likewise.
1466 * common/buffer.h: Likewise.
1467 * common/vec.h: Likewise.
1468 * i386bsd-nat.c: Likewise.
1469 * nat/linux-btrace.h: Likewise.
1470 * ppcfbsd-nat.c: Likewise.
1471 * ppcnbsd-tdep.h: Likewise.
1472 * ppcobsd-nat.c: Likewise.
1473 * ppcobsd-tdep.h: Likewise.
1474 * python/py-gdb-readline.c: Likewise.
1476 2014-08-07 Gary Benson <gbenson@redhat.com>
1478 * common/common-defs.h: Include stdarg.h.
1479 * defs.h: Do not include stdarg.h.
1480 * ada-lang.c: Likewise.
1481 * common/common-utils.h: Likewise.
1482 * guile/scm-string.c: Likewise.
1483 * guile/scm-utils.c: Likewise.
1484 * m32c-tdep.c: Likewise.
1486 2014-08-07 Gary Benson <gbenson@redhat.com>
1488 * common/common-defs.h: Include stdlib.h.
1489 * defs.h: Do not include stdlib.h.
1490 * addrmap.c: Likewise.
1491 * bcache.c: Likewise.
1492 * common/buffer.c: Likewise.
1493 * common/common-utils.c: Likewise.
1494 * cp-name-parser.y: Likewise.
1495 * go32-nat.c: Likewise.
1496 * mn10300-linux-tdep.c: Likewise.
1497 * nat/linux-osdata.c: Likewise.
1498 * tui/tui.c: Likewise.
1499 * windows-nat.c: Likewise.
1501 2014-08-07 Gary Benson <gbenson@redhat.com>
1503 * common/common-defs.h: Include stdio.h.
1504 * defs.h: Do not include stdio.h.
1505 * ada-lang.c: Likewise.
1506 * common/buffer.c: Likewise.
1507 * common/common-utils.c: Likewise.
1508 * cp-name-parser.y: Likewise.
1509 * gnu-nat.c: Likewise.
1510 * go32-nat.c: Likewise.
1511 * i386gnu-nat.c: Likewise.
1512 * proc-api.c: Likewise.
1513 * proc-events.c: Likewise.
1514 * proc-flags.c: Likewise.
1515 * proc-why.c: Likewise.
1516 * python/python-internal.h: Likewise.
1517 * target-memory.c: Likewise.
1518 * tui/tui-io.c: Likewise.
1519 * tui/tui.c: Likewise.
1521 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1523 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1524 (scan_dyntag_auxv): Same.
1526 2014-08-06 Yao Qi <yao@codesourcery.com>
1528 * amd64-linux-nat.c: Remove duplicated include
1530 * i386-linux-nat.c: Likewise.
1532 2014-08-06 Yao Qi <yao@codesourcery.com>
1534 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1535 operand" with "Special opcode" in comments.
1537 2014-08-05 Gary Benson <gbenson@redhat.com>
1539 * interps.c (initialize_interps): Remove prototype.
1540 (interpreter_initialized): Remove static global.
1541 (interp_add): Do not call initialize_interps.
1542 (initialize_interps): Remove function.
1544 2014-08-05 Gary Benson <gbenson@redhat.com>
1546 * utils.c (vwarning): Remove spurious va_end.
1548 2014-08-05 Alan Modra <amodra@gmail.com>
1550 * charset.c (convert_between_encodings): Cast result of obstack_base.
1551 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1552 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1553 (read_unwind_info): Use size_t for some locals.
1554 * jit.c (finalize_symtab): Likewise.
1555 * utils.c (hashtab_obstack_allocate): Likewise.
1556 * symmisc.c (print_objfile_statistics): Update format strings.
1558 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1560 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1561 (Changes in GDB 7.8): ... here.
1563 2014-08-04 Tom Tromey <tromey@redhat.com>
1565 * target.c (set_targetdebug): New function.
1566 (initialize_targets): Pass set_targetdebug when creating "set
1569 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1571 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1572 if detecting a variable-sized field that is not the last field.
1573 Fix struct type length computation.
1575 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1577 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1580 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1582 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1583 Remove "+ 8" offset in computation of CHAIN_VMA.
1585 2014-07-31 Doug Evans <dje@google.com>
1587 * inflow.c (child_terminal_inferior): Add comment.
1588 (child_terminal_ours_for_output): Add comment.
1589 (child_terminal_ours): Add comment.
1590 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1591 (linux_nat_terminal_ours): Add comment.
1593 2014-07-31 Gary Benson <gbenson@redhat.com>
1595 * common/btrace-common.h: Do not include defs.h or server.h.
1596 * nat/mips-linux-watch.h: Likewise.
1597 * gdb-dlfcn.h: Do not include defs.h.
1598 * tracefile.h: Likewise.
1600 2014-07-30 Roland McGrath <mcgrathr@google.com>
1602 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1604 2014-07-30 Tom Tromey <tromey@redhat.com>
1606 * bsd-kvm.c (bsd_kvm_open): Constify.
1607 * corelow.c (core_open): Constify.
1608 * ctf.c (ctf_open): Constify.
1609 * dbug-rom.c (dbug_open): Constify.
1610 * exec.c (exec_open): Constify.
1611 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1612 * microblaze-rom.c (picobug_open): Constify.
1613 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1615 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1616 * record-btrace.c (record_btrace_open): Constify.
1617 * record-full.c (record_full_core_open_1, record_full_open_1)
1618 (record_full_open): Constify.
1619 * remote-m32r-sdi.c (m32r_open): Constify.
1620 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1621 (rockhopper_open, lsi_open): Constify.
1622 * remote-sim.c (gdbsim_open): Constify.
1623 * remote.c (remote_open, extended_remote_open, remote_open_1):
1625 * target.h (struct target_ops) <to_open>: Make "arg" const.
1626 * tracefile-tfile.c (tfile_open): Constify.
1628 2014-07-30 Tom Tromey <tromey@redhat.com>
1630 * breakpoint.c (map_breakpoint_numbers): Update.
1631 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1632 (get_number_const): New function.
1633 (get_number): Rewrite using get_number_const.
1634 (init_number_or_range): Make "string" const.
1635 (number_is_in_list): Make "list" const.
1636 * cli/cli-utils.h (get_number_const): Declare.
1637 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1638 (init_number_or_range, number_is_in_list): Update.
1639 * printcmd.c (map_display_numbers): Update.
1640 * value.c (value_from_history_ref): Constify.
1641 * value.h (value_from_history_ref): Update.
1643 2014-07-30 Tom Tromey <tromey@redhat.com>
1645 * corefile.c (hook_type, call_extra_exec_file_hooks)
1646 (specify_exec_file_hook): Constify.
1647 * exec.c (exec_file_attach): Make "filename" const.
1648 * gdbcore.h (deprecated_exec_file_display_hook)
1649 (specify_exec_file_hook, exec_file_attach): Constify.
1650 * main.c (captured_main): Use catch_command_errors_const.
1652 2014-07-30 Tom Tromey <tromey@redhat.com>
1654 * target.c (open_target): New function.
1655 (add_target_with_completer, add_deprecated_target_alias): Use
1656 set_cmd_sfunc, set_cmd_context.
1657 (debug_to_open): Remove.
1658 (setup_target_debug): Update.
1660 2014-07-30 Yao Qi <yao@codesourcery.com>
1662 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1664 * parse.c (exp_iterate): Update comments.
1666 2014-07-30 Gary Benson <gbenson@redhat.com>
1668 * common/common-defs.h: New file.
1669 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1670 * defs.h: Include common-defs.h.
1671 Do not include config.h or build-gnulib/config.h.
1673 2014-07-30 Gary Benson <gbenson@redhat.com>
1675 * common/common-utils.h: Do not include config.h.
1676 * nat/linux-btrace.h: Likewise.
1678 2014-07-30 Gary Benson <gbenson@redhat.com>
1680 * btrace.c: Include defs.h.
1681 * common/ptid.c: Include defs.h or server.h as appropriate.
1682 * nat/mips-linux-watch.c: Likewise.
1684 2014-07-29 Tom Tromey <tromey@redhat.com>
1686 * target.c (target_is_pushed): Simplify.
1688 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1692 2014-07-29 Yao Qi <yao@codesourcery.com>
1695 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1697 2014-07-28 Doug Evans <xdje42@gmail.com>
1700 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1701 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1704 2014-07-28 Will Newton <will.newton@linaro.org>
1706 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1707 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1708 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1709 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1710 (THUMB2_EABI_SYSCALL): Likewise.
1711 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1713 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1714 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1716 2014-07-27 Doug Evans <xdje42@gmail.com>
1718 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1720 2014-07-27 Doug Evans <xdje42@gmail.com>
1722 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1724 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1725 Doug Evans <xdje42@gmail.com>
1728 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1729 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1730 * configure.ac: Try to use guild to compile an scm file, if it fails
1731 then disable guile support.
1732 * configure: Regenerate.
1733 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1735 (GUILE_COMPILED_FILES): New variable.
1736 (GUILE_FILES) Update.
1737 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1738 (stamp-guile): Compile scm files.
1739 * guile/guile.c (boot_guile_support): New function.
1740 (standard_throw_args_p): New function.
1741 (print_standard_throw_error, print_throw_error): New functions.
1742 (handle_boot_error): New function.
1743 (initialize_scheme_side): Rewrite to call boot_guile_support.
1744 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1745 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1747 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1748 Doug Evans <xdje42@gmail.com>
1751 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1752 * guile/lib/gdb/support.scm: New file.
1753 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1754 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1756 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1758 (%assert-type): Ditto, and renamed to assert-type.
1759 (%exception-print-style): Delete.
1761 2014-07-26 Doug Evans <xdje42@gmail.com>
1764 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1765 * configure: Regenerate.
1766 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1768 (PYTHON_FILES): New variable.
1769 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1770 (GUILE_FILES): New variable.
1771 (stamp-python, install-python, uninstall-python): Handle empty
1773 (stamp-guile, install-guile, uninstall-guile): Ditto.
1775 2014-07-26 Doug Evans <xdje42@gmail.com>
1778 * guile/lib/gdb.scm (pretty-printers): Export.
1779 (set-pretty-printers!): Export.
1780 * guile/lib/gdb/printing.scm (gdb module): Update.
1781 (prepend-pretty-printer!, append-pretty-printer!): Update.
1782 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1783 (pretty_printer_list_var): Delete.
1784 (pretty_printer_list): New static global.
1785 (gdbscm_pretty_printers): New function.
1786 (gdbscm_set_pretty_printers_x): New function.
1787 (ppscm_find_pretty_printer_from_gdb): Update.
1788 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1789 (gdbscm_initialize_pretty_printers): Update.
1791 2014-07-26 Doug Evans <xdje42@gmail.com>
1794 * configure.ac: Add check for header gc/gc.h.
1795 Add check for function setenv.
1796 * configure: Regenerate.
1797 * config.in: Regenerate.
1798 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1800 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1802 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1803 variation in gdbarch matching.
1805 2014-07-25 Tom Tromey <tromey@redhat.com>
1807 * exec.c (using_exec_ops): Remove.
1808 (exec_close_1): Update. Remove extraneous block, reindent.
1809 (add_target_sections): Use target_is_pushed.
1811 2014-07-25 Pedro Alves <palves@redhat.com>
1813 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1814 * monitor.c (monitor_create_inferior): Likewise.
1815 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1816 * remote-sim.c (gdbsim_create_inferior): Likewise.
1817 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1818 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1819 * windows-nat.c (do_initial_windows_stuff): Likewise.
1821 2014-07-25 Pedro Alves <palves@redhat.com>
1823 * NEWS: Mention signal passing and "signal" command changes.
1824 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1826 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1828 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1829 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1830 (jump_command): Adjust clear_proceed_status call.
1831 (signal_command): Warn if other thread that are resumed have
1832 signals that will be delivered. Adjust clear_proceed_status call.
1833 (until_next_command, finish_command)
1834 (proceed_after_attach_callback, attach_command_post_wait)
1835 (attach_command): Adjust clear_proceed_status call.
1836 * infrun.c (proceed_after_vfork_done): Likewise.
1837 (proceed_after_attach_callback): Adjust comment.
1838 (clear_proceed_status_thread): Clear stop_signal if not in pass
1840 (clear_proceed_status_callback): Delete.
1841 (clear_proceed_status): New 'step' parameter. Only clear the
1842 proceed status of threads the command being prepared is about to
1844 (proceed): If passed in an explicit signal, override stop_signal
1845 with it. Don't pass the last stop signal to the thread we're
1847 (init_wait_for_inferior): Adjust clear_proceed_status call.
1848 (switch_back_to_stepped_thread): Clear the signal if it should not
1850 * infrun.h (clear_proceed_status): New 'step' parameter.
1851 (user_visible_resume_ptid): Add comment.
1852 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1853 signal is in pass state.
1854 * remote.c (append_pending_thread_resumptions): Likewise.
1855 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1857 2014-07-25 Tom Tromey <tromey@redhat.com>
1859 * target.h (target_stopped_data_address)
1860 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1863 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1865 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1867 (avr_pointer_to_address): Likewise.
1869 2014-07-24 Tom Tromey <tromey@redhat.com>
1871 * monitor.c (compile_pattern): Update.
1872 * target.h (struct target_ops) <to_shortname, to_longname,
1875 2014-07-24 Tom Tromey <tromey@redhat.com>
1877 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1878 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1879 (add_info_alias, add_com): Make "doc" const.
1880 (print_doc_line): Make "str" const.
1881 (delete_cmd): Update.
1882 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1883 (print_doc_line): Update.
1884 * cli/cli-script.c (document_command): Update.
1885 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1886 (add_com, add_info, add_info_alias): Update.
1887 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1888 * python/py-cmd.c (cmdpy_destroyer): Update.
1890 2014-07-24 Tom Tromey <tromey@redhat.com>
1892 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1893 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1894 (help_cmd_list): Constify.
1895 (lookup_cmd): Update.
1896 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1898 (help_cmd_list, apropos_cmd): Update.
1899 * cli/cli-script.c (show_user): Update.
1900 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1901 * cli/cli-setshow.h (cmd_show_list): Update.
1902 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1903 (cmd_show_list): Update.
1904 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1905 * python/py-cmd.c (cmdpy_destroyer): Update.
1907 2014-07-24 Tom Tromey <tromey@redhat.com>
1909 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1910 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1912 * command.h (deprecate_cmd): Update.
1913 * maint.c (maintenance_do_deprecate): Add casts.
1915 2014-07-24 Tom Tromey <tromey@redhat.com>
1917 * cli/cli-decode.c (help_cmd): Make parameter "const".
1918 * cli/cli-decode.h (help_cmd): Update.
1920 2014-07-24 Tom Tromey <tromey@redhat.com>
1922 * stack.c (up_silently_base, down_silently_base): Make argument
1925 2014-07-24 Tom Tromey <tromey@redhat.com>
1927 * solib.c (solib_add): Make "pattern" const.
1928 * solib.h (solib_add): Update.
1930 2014-07-24 Tom Tromey <tromey@redhat.com>
1932 * remote.c (remote_serial_open, print_packet, putpkt)
1933 (putpkt_binary): Constify.
1934 * remote.h (putpkt): Update.
1936 2014-07-24 Tom Tromey <tromey@redhat.com>
1938 * monitor.c (monitor_open): Make "args" const.
1939 * monitor.h (monitor_open): Update.
1941 2014-07-24 Tom Tromey <tromey@redhat.com>
1943 * maint.c (match_bfd_flags): Make "string" const.
1944 (print_bfd_section_info): Remove casts.
1945 (print_objfile_section_info): Make "string" const.
1947 2014-07-24 Tom Tromey <tromey@redhat.com>
1949 * inf-child.c (inf_child_open_target): Make "arg" const.
1950 * inf-child.h (inf_child_open_target): Update.
1952 2014-07-24 Tom Tromey <tromey@redhat.com>
1954 * environ.c (unset_in_environ): Make "var" const.
1955 * environ.h (unset_in_environ): Update.
1957 2014-07-24 Tom Tromey <tromey@redhat.com>
1959 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1961 (scan_filename_with_cleanup): Likewise.
1962 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1963 Make arguments const.
1964 (restore_command): Update.
1966 2014-07-24 Pedro Alves <palves@redhat.com>
1968 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1970 2014-07-24 Tom Tromey <tromey@redhat.com>
1971 Gary Benson <gbenson@redhat.com>
1973 * nat/linux-ptrace.c (additional_flags): New global.
1974 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1975 additional_flags; don't check GDBSERVER.
1976 (linux_ptrace_set_additional_flags): New function.
1977 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1979 * linux-nat.c (_initialize_linux_nat): Call
1980 linux_ptrace_set_additional_flags.
1982 2014-07-24 Tom Tromey <tromey@redhat.com>
1984 * make-target-delegates (munge_type, write_debugmethod): New
1986 (debug_names): New global.
1987 ($TARGET_DEBUG_PRINTER): New global.
1988 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1990 Write debug methods. Generate init_debug_target.
1991 * target-debug.h: New file.
1992 * target-delegates.c: Rebuild.
1993 * target.c: Include target-debug.h.
1994 (debug_target): Hoist definition.
1995 (target_kill, target_get_section_table, target_memory_map)
1996 (target_flash_erase, target_flash_done, target_detach)
1997 (target_disconnect, target_wait, target_resume)
1998 (target_pass_signals, target_program_signals, target_follow_fork)
1999 (target_mourn_inferior, target_search_memory)
2000 (target_thread_address_space, target_close)
2001 (target_find_new_threads, target_core_of_thread)
2002 (target_verify_memory, target_insert_mask_watchpoint)
2003 (target_remove_mask_watchpoint): Remove targetdebug code.
2004 (debug_to_post_attach, debug_to_prepare_to_store)
2005 (debug_to_files_info, debug_to_insert_breakpoint)
2006 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2007 (debug_to_region_ok_for_hw_watchpoint)
2008 (debug_to_can_accel_watchpoint_condition)
2009 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2010 (debug_to_watchpoint_addr_within_range)
2011 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2012 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2013 (debug_to_terminal_init, debug_to_terminal_inferior)
2014 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2015 (debug_to_terminal_save_ours, debug_to_terminal_info)
2016 (debug_to_load, debug_to_post_startup_inferior)
2017 (debug_to_insert_fork_catchpoint)
2018 (debug_to_remove_fork_catchpoint)
2019 (debug_to_insert_vfork_catchpoint)
2020 (debug_to_remove_vfork_catchpoint)
2021 (debug_to_insert_exec_catchpoint)
2022 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2023 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2024 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2025 (setup_target_debug): Call init_debug_target.
2026 * target.h (TARGET_DEBUG_PRINTER): New macro.
2027 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2028 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2030 2014-07-24 Gary Benson <gbenson@redhat.com>
2032 * exceptions.h (throw_vfatal): Renamed to...
2033 (throw_vquit): New declaration.
2034 (throw_quit): Likewise.
2035 * exceptions.c (throw_vfatal): Renamed to...
2036 (throw_vquit): New function.
2037 (throw_quit): Likewise.
2038 (throw_error): Call throw_verror rather than throw_it.
2039 * utils.h (vfatal): Removed.
2041 * utils.c (vfatal): Removed.
2043 (internal_verror): Replaced call to fatal with call to throw_quit.
2044 (quit): Replaced calls to fatal with calls to throw_quit.
2046 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2048 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2051 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2053 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2054 less than zero in conditional expression.
2056 2014-07-23 Tom Tromey <tromey@redhat.com>
2058 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2059 ($INTRO_PART): Don't match whitespace.
2060 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2062 ($METHOD): Add $METHOD_TRAILER.
2064 (scan_target_h): New sub.
2065 Change main loop not to collect state.
2066 * target-delegates.c: Rebuild.
2068 2014-07-23 Gary Benson <gbenson@redhat.com>
2070 * cp-support.c (gdb_demangle): Fix build on systems without
2073 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2075 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2076 for reference entry value target data value.
2078 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2080 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2081 value_available_contents_eq.
2083 2014-07-22 Pedro Alves <palves@redhat.com>
2085 * value.c (allocate_optimized_out_value): Don't mark value as
2088 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2090 * MAINTAINERS (Write After Approval): Update my email address.
2092 2014-07-20 Doug Evans <dje@google.com>
2095 * remote.c (putpkt_binary): Add text to error message.
2097 2014-07-20 Yao Qi <yao@codesourcery.com>
2099 * eval.c: Remove "Chill" from comments.
2100 * gdbtypes.h: Likewise.
2101 * symtab.h: Likewise.
2103 2014-07-20 Yao Qi <yao@codesourcery.com>
2105 * std-operator.def: Update comments to TERNOP_SLICE.
2107 2014-07-20 Yao Qi <yao@codesourcery.com>
2109 * std-operator.def: Remove BINOP_RANGE.
2110 * breakpoint.c (watchpoint_exp_is_const): Update.
2111 * expprint.c (dump_subexp_body_standard): Likewise.
2112 * eval.c (init_array_element): Remove dead code.
2113 (evaluate_subexp_standard): Likewise.
2115 2014-07-20 Yao Qi <yao@codesourcery.com>
2117 * std-operator.def: Remove BINOP_IN.
2118 * breakpoint.c (watchpoint_exp_is_const): Update.
2119 * eval.c (evaluate_subexp_standard): Likewise.
2120 * expprint.c (dump_subexp_body_standard): Likewise.
2122 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2124 * microblaze-tdep.c (microblaze_register_names): Add
2125 the rshr and rslr register names.
2126 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2127 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2128 Use of tdesc_numbered_register. Use of
2129 microblaze_register_g_packet_guesses. Use of
2130 tdesc_use_registers. Use of set_gdbarch_register_type.
2131 (microblaze_register_g_packet_guesses): New.
2132 * microblaze-tdep.h (microblaze_reg_num): Add
2133 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2134 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2135 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2136 * features/microblaze-core.xml: New file.
2137 * features/microblaze-stack-protect.xml: New file.
2138 * features/microblaze-with-stack-protect.c: New file.
2139 * features/microblaze-with-stack-protect.xml: New file.
2140 * features/microblaze.xml: New file.
2141 * features/microblaze.c: New file.
2142 * features/Makefile (microblaze-with-stack-protect): Add
2143 microblaze-with-stack-protect microblaze and microblaze-expedite.
2144 * regformats/microblaze-with-stack-protect.dat: New file.
2145 * regformats/microblaze.dat: New file.
2146 * doc/gdb.texinfo (MicroBlaze Features): Added.
2148 2014-07-18 Tom Tromey <tromey@redhat.com>
2150 * exec.c (exec_ops): Now static.
2151 * exec.h (exec_ops): Don't declare.
2153 2014-07-18 Tom Tromey <tromey@redhat.com>
2155 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2156 to find_target_beneath.
2157 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2158 find_target_beneath.
2159 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2161 2014-07-18 Tom Tromey <tromey@redhat.com>
2164 * utils.c (quit): Use target_supports_terminal_ours.
2165 * target.h (target_supports_terminal_ours): Declare.
2166 * target.c (target_supports_delete_record): Don't check
2167 to_delete_record against NULL.
2168 (target_supports_terminal_ours): New function.
2170 2014-07-18 Tom Tromey <tromey@redhat.com>
2173 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2174 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2175 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2176 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2177 * windows-nat.c (windows_xfer_partial): Always delegate.
2178 * record-btrace.c (record_btrace_xfer_partial): Simplify
2180 (record_btrace_fetch_registers, record_btrace_store_registers)
2181 (record_btrace_prepare_to_store, record_btrace_resume)
2182 (record_btrace_wait, record_btrace_find_new_threads)
2183 (record_btrace_thread_alive): Likewise.
2184 * procfs.c (procfs_xfer_partial): Always delegate.
2185 * corelow.c (core_xfer_partial): Always delegate.
2186 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2188 2014-07-18 Tom Tromey <tromey@redhat.com>
2190 * exec.c (exec_make_note_section): Move earlier.
2192 2014-07-17 Doug Evans <dje@google.com>
2195 * maint.c (count_symtabs_and_blocks): Handle NULL
2196 current_program_space.
2197 (report_command_stats): Check global enabled flag in addition to
2198 recorded enabled flag.
2199 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2201 2014-07-16 Pedro Alves <palves@redhat.com>
2203 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2205 2014-07-16 Tom Tromey <tromey@redhat.com>
2207 * target.h (struct target_ops) <to_delete_record>: Reformat
2210 2014-07-16 Tom Tromey <tromey@redhat.com>
2212 * target-delegates.c: Rebuild.
2214 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2216 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2217 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2218 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2219 (avr_pointer_to_address): Likewise.
2220 (avr_address_class_type_flags): New function.
2221 (avr_address_class_type_flags_to_name): Likewise.
2222 (avr_address_class_name_to_type_flags): Likewise.
2223 (avr_gdbarch_init): Set address_class_type_flags,
2224 address_class_type_flags_to_name and
2225 address_class_name_to_type_flags.
2227 2014-07-15 Pedro Alves <palves@redhat.com>
2229 * linux-nat.c (kill_callback): Save errno and work with saved
2232 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2234 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2236 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2238 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2239 breakpoint support correctly.
2241 2014-07-14 Pedro Alves <palves@redhat.com>
2243 * utils.c (prompt_for_continue): Call target_terminal_ours.
2245 2014-07-14 Pedro Alves <palves@redhat.com>
2247 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2248 catch_errors. Don't re-enable stdin or notify observers where,
2250 (fetch_inferior_event_wrapper): Delete.
2252 2014-07-14 Pedro Alves <palves@redhat.com>
2255 * top.c: Include "inf-loop.h".
2256 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2258 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2260 (gdb_readline_wrapper): Store whether the target is async, and
2263 2014-07-14 Pedro Alves <palves@redhat.com>
2266 * top.c (gdb_readline_wrapper_line): Tweak comment.
2267 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2268 the input handler callback.
2270 2014-07-14 Pedro Alves <palves@redhat.com>
2273 * main.c: Include event-top.h.
2274 (handle_command_errors): New function.
2275 (catch_command_errors, catch_command_errors_const): Use it.
2277 2014-07-14 Pedro Alves <palves@redhat.com>
2279 * exceptions.c (catch_command_errors, catch_command_errors_const):
2281 * exceptions.h (catch_command_errors_ftype)
2282 (catch_command_errors_const_ftype): Moved to main.c.
2283 (catch_command_errors, catch_command_errors_const): Delete
2285 * main.c (catch_command_errors_ftype)
2286 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2287 (catch_command_errors, catch_command_errors_const)): Moved here
2288 from exceptions.c and make static.
2290 2014-07-14 Pedro Alves <palves@redhat.com>
2292 * exceptions.c (print_any_exception): Delete.
2293 (catch_exceptions_with_msg): Use exception_print instead of
2294 print_any_exception.
2295 (catch_errors): Use exception_fprintf instead of
2296 print_any_exception.
2297 (catch_command_errors, catch_command_errors_const): Use
2298 exception_print instead of print_any_exception.
2300 2014-07-14 Pedro Alves <palves@redhat.com>
2302 * infcall.c (run_inferior_call): Set 'sync_execution' while
2303 running the inferior call.
2305 2014-07-14 Pedro Alves <palves@redhat.com>
2307 * value.c (value_contents_equal): Delete function.
2308 * value.h (value_contents_equal): Delete declaration.
2310 2014-07-14 Tom Tromey <tromey@redhat.com>
2313 * gdbtypes.c (is_dynamic_type_internal): New function, from
2315 (is_dynamic_type): Rewrite.
2316 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2317 (resolve_dynamic_struct): Likewise.
2318 (resolve_dynamic_type_internal): New function, from
2319 resolve_dynamic_type.
2320 (resolve_dynamic_type): Rewrite.
2322 2014-07-14 Tom Tromey <tromey@redhat.com>
2324 * target.c (target_require_runnable): Also check record_stratum.
2327 2014-07-11 Yao Qi <yao@codesourcery.com>
2329 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2330 thumb_instruction_restores_sp return true.
2332 2014-07-11 Yao Qi <yao@codesourcery.com>
2334 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2335 (thumb_in_function_epilogue_p): Call
2336 thumb_instruction_restores_sp.
2338 2014-07-11 Yao Qi <yao@codesourcery.com>
2340 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2342 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2344 2014-07-11 Gary Benson <gbenson@redhat.com>
2346 * amd64-linux-nat.c (gdbcore.h): Remove include.
2347 (regset.h): Likewise.
2348 (nat/linux-btrace.h): Likewise.
2349 (btrace.h): Likewise.
2350 (gdb_assert.h): Likewise.
2351 (string.h): Likewise.
2352 (sys/uio.h): Likewise.
2353 (sys/debugreg.h): Likewise.
2354 (sys/syscall.h): Likewise.
2355 (sys/procfs.h): Likewise.
2356 (sys/user.h): Likewise.
2357 (asm/ptrace.h): Likewise.
2358 (i386-nat.h): Likewise.
2359 * i386-linux-nat.c (i386-nat.h): Likewise.
2360 (regset.h): Likewise.
2361 (target.h): Likewise.
2362 (linux-nat.h): Likewise.
2363 (nat/linux-btrace.h): Likewise.
2364 (btrace.h): Likewise.
2365 (gdb_assert.h): Likewise.
2366 (string.h): Likewise.
2367 (sys/uio.h): Likewise.
2368 (sys/user.h): Likewise.
2369 (sys/procfs.h): Likewise.
2370 (sys/reg.h): Likewise.
2371 (sys/debugreg.h): Likewise.
2372 (ORIG_EAX): Remove definition.
2374 2014-07-11 Gary Benson <gbenson@redhat.com>
2376 * i386-linux-nat.h: New file.
2377 * x86-linux-nat.h: Likewise.
2378 * x86-linux-nat.c: Likewise.
2379 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2380 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2381 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2382 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2383 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2384 (PTRACE_SETREGSET): Likewise.
2385 (arch_lwp_info): Now in x86-linux-nat.c.
2386 (have_ptrace_getregset): Now in x86-linux-nat.h.
2387 (x86_linux_dr_get): Now in x86-linux-nat.c.
2388 (x86_linux_dr_set): Likewise.
2389 (x86_linux_dr_get_addr): Likewise.
2390 (x86_linux_dr_get_control): Likewise.
2391 (x86_linux_dr_get_status): Likewise.
2392 (update_debug_registers_callback): Likewise.
2393 (x86_linux_dr_set_control): Likewise.
2394 (x86_linux_dr_set_addr): Likewise.
2395 (x86_linux_prepare_to_resume): Likewise.
2396 (x86_linux_new_thread): Likewise.
2397 (x86_linux_new_fork): Likewise.
2398 (x86_linux_get_thread_area): Likewise.
2399 (super_post_startup_inferior): Likewise.
2400 (x86_linux_child_post_startup_inferior): Likewise.
2401 (AMD64_LINUX_USER64_CS): Likewise.
2402 (AMD64_LINUX_X32_DS): Likewise.
2403 (x86_linux_read_description): Likewise.
2404 (x86_linux_enable_btrace): Likewise.
2405 (x86_linux_disable_btrace): Likewise.
2406 (x86_linux_teardown_btrace): Likewise.
2407 (x86_linux_read_btrace): Likewise.
2408 (x86_linux_create_target): Likewise.
2409 (x86_linux_add_target): Likewise.
2410 * i386-linux-nat.c (x86-linux-nat.h): New include.
2411 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2412 (PTRACE_SETREGSET): Likewise.
2413 (arch_lwp_info): Now in x86-linux-nat.c.
2414 (have_ptrace_getregset): Now in x86-linux-nat.h.
2415 (x86_linux_dr_get): Now in x86-linux-nat.c.
2416 (x86_linux_dr_set): Likewise.
2417 (x86_linux_dr_get_addr): Likewise.
2418 (x86_linux_dr_get_control): Likewise.
2419 (x86_linux_dr_get_status): Likewise.
2420 (update_debug_registers_callback): Likewise.
2421 (x86_linux_dr_set_control): Likewise.
2422 (x86_linux_dr_set_addr): Likewise.
2423 (x86_linux_prepare_to_resume): Likewise.
2424 (x86_linux_new_thread): Likewise.
2425 (x86_linux_new_fork): Likewise.
2426 (x86_linux_get_thread_area): Likewise.
2427 (super_post_startup_inferior): Likewise.
2428 (x86_linux_child_post_startup_inferior): Likewise.
2429 (AMD64_LINUX_USER64_CS): Likewise.
2430 (AMD64_LINUX_X32_DS): Likewise.
2431 (x86_linux_read_description): Likewise.
2432 (x86_linux_enable_btrace): Likewise.
2433 (x86_linux_disable_btrace): Likewise.
2434 (x86_linux_teardown_btrace): Likewise.
2435 (x86_linux_read_btrace): Likewise.
2436 (x86_linux_create_target): Likewise.
2437 (x86_linux_add_target): Likewise.
2439 2014-07-11 Gary Benson <gbenson@redhat.com>
2441 * amd64-linux-nat.c: Comment and whitespace changes.
2442 * i386-linux-nat.c: Comment and whitespace changes.
2444 2014-07-11 Gary Benson <gbenson@redhat.com>
2446 * amd64-linux-nat.c (x86_linux_create_target): New function.
2447 (x86_linux_add_target): Likewise.
2448 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2449 * i386-linux-nat.c (x86_linux_create_target): New function.
2450 (x86_linux_add_target): Likewise.
2451 (_initialize_i386_linux_nat): Delegate to the above new functions.
2453 2014-07-11 Gary Benson <gbenson@redhat.com>
2455 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2456 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2457 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2458 (ps_get_thread_area): Delegate to the above.
2460 2014-07-11 Gary Benson <gbenson@redhat.com>
2462 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2463 x86_linux_read_description. All uses updated. amd64-specific
2464 code conditionalized. Conditionalized i386-specific code added.
2465 Redundant cast removed.
2466 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2467 x86_linux_read_description. All uses updated. i386-specific
2468 code conditionalized. Conditionalized amd64-specific code added.
2469 One sizeof replaced with the actual type it is describing.
2471 2014-07-11 Gary Benson <gbenson@redhat.com>
2473 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2474 x86_linux_dr_get. All uses updated.
2475 (amd64_linux_dr_set): Renamed to
2476 x86_linux_dr_set. All uses updated.
2477 (amd64_linux_dr_get_addr): Renamed to
2478 x86_linux_dr_get_addr. All uses updated.
2479 (amd64_linux_dr_get_control): Renamed to
2480 x86_linux_dr_get_control. All uses updated.
2481 (amd64_linux_dr_get_status): Renamed to
2482 x86_linux_dr_get_status. All uses updated.
2483 (amd64_linux_dr_set_control): Renamed to
2484 x86_linux_dr_set_control. All uses updated.
2485 (amd64_linux_dr_set_addr): Renamed to
2486 x86_linux_dr_set_addr. All uses updated.
2487 (amd64_linux_prepare_to_resume): Renamed to
2488 x86_linux_prepare_to_resume. All uses updated.
2489 (amd64_linux_new_thread): Renamed to
2490 x86_linux_new_thread. All uses updated.
2491 (amd64_linux_new_fork): Renamed to
2492 x86_linux_new_fork. All uses updated.
2493 (amd64_linux_child_post_startup_inferior): Renamed to
2494 x86_linux_child_post_startup_inferior. All uses updated.
2495 (amd64_linux_enable_btrace): Renamed to
2496 x86_linux_enable_btrace. All uses updated.
2497 (amd64_linux_disable_btrace): Renamed to
2498 x86_linux_disable_btrace. All uses updated.
2499 (amd64_linux_teardown_btrace): Renamed to
2500 x86_linux_teardown_btrace. All uses updated.
2501 (amd64_linux_read_btrace): Renamed to
2502 x86_linux_read_btrace. All uses updated.
2503 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2504 x86_linux_dr_get. All uses updated.
2505 (i386_linux_dr_set): Renamed to
2506 x86_linux_dr_set. All uses updated.
2507 (i386_linux_dr_get_addr): Renamed to
2508 x86_linux_dr_get_addr. All uses updated.
2509 (i386_linux_dr_get_control): Renamed to
2510 x86_linux_dr_get_control. All uses updated.
2511 (i386_linux_dr_get_status): Renamed to
2512 x86_linux_dr_get_status. All uses updated.
2513 (i386_linux_dr_set_control): Renamed to
2514 x86_linux_dr_set_control. All uses updated.
2515 (i386_linux_dr_set_addr): Renamed to
2516 x86_linux_dr_set_addr. All uses updated.
2517 (i386_linux_prepare_to_resume): Renamed to
2518 x86_linux_prepare_to_resume. All uses updated.
2519 (i386_linux_new_thread): Renamed to
2520 x86_linux_new_thread. All uses updated.
2521 (i386_linux_new_fork): Renamed to
2522 x86_linux_new_fork. All uses updated.
2523 (i386_linux_child_post_startup_inferior): Renamed to
2524 x86_linux_child_post_startup_inferior. All uses updated.
2525 (i386_linux_enable_btrace): Renamed to
2526 x86_linux_enable_btrace. All uses updated.
2527 (i386_linux_disable_btrace): Renamed to
2528 x86_linux_disable_btrace. All uses updated.
2529 (i386_linux_teardown_btrace): Renamed to
2530 x86_linux_teardown_btrace. All uses updated.
2531 (i386_linux_read_btrace): Renamed to
2532 x86_linux_read_btrace. All uses updated.
2534 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2536 * remote.c (extended_remote_post_attach): New function.
2537 (init_extended_remote_ops): Install it as to_post_attach method.
2539 2014-07-09 Pedro Alves <palves@redhat.com>
2541 * infcmd.c (attach_command_post_wait): Don't call
2542 target_terminal_inferior here.
2543 (attach_command): Call it here instead.
2545 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2547 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2549 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2550 from varobj.c, with additional checks.
2551 (c_varobj_ops): Fill in is_path_expr_parent field.
2552 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2553 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2555 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2557 (varobj_default_is_path_expr_parent): New function.
2558 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2559 (varobj_default_is_path_expr_parent): Declare new function.
2561 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2563 * infcmd.c (finish_backward): Turn internal error into normal error.
2565 2014-07-07 Pedro Alves <palves@redhat.com>
2568 * remote.c (async_handle_remote_sigint)
2569 (async_handle_remote_sigint_twice): Call
2570 gdb_call_async_signal_handler instead of
2571 mark_async_signal_handler.
2573 2014-07-07 Tom Tromey <tromey@redhat.com>
2575 * target-delegates.c: Rebuild.
2576 * target.c (target_info_record): Remove.
2577 * record.c (info_record_command): Unconditionally call
2579 * target.h (struct target_ops) <to_info_record>: Use
2580 TARGET_DEFAULT_IGNORE.
2581 (target_info_record): Remove.
2583 2014-07-07 Tom Tromey <tromey@redhat.com>
2585 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2586 TARGET_DEFAULT_NORETURN.
2587 * target.c (generic_tls_error): New function.
2588 (target_translate_tls_address): Don't search target stack.
2589 * target-delegates.c: Rebuild.
2590 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2592 * linux-thread-db.c (thread_db_get_thread_local_address):
2593 Unconditionally call beneath target.
2595 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2597 * cli/cli-logging.c (pop_output_files): Assign targerr to
2600 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2602 * MAINTAINERS (Write After Approval): Update my email address.
2604 2014-07-02 Gary Benson <gbenson@redhat.com>
2606 * proc-service.c (ps_xfer_memory): Update comment.
2607 (ps_pstop): Remove unused function.
2608 (ps_pcontinue): Likewise.
2609 (ps_lstop): Likewise.
2610 (ps_lcontinue): Likewise.
2611 (ps_lgetxregsize): Likewise.
2612 (ps_lgetxregs): Likewise.
2613 (ps_lsetxregs): Likewise.
2614 (ps_plog): Likewise.
2615 (ps_ptread): Likewise.
2616 (ps_ptwrite): Likewise.
2618 2014-07-01 Mark Wielaard <mjw@redhat.com>
2620 * dwarf2read.c (add_array_cv_type): New function.
2621 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2622 (read_tag_volatile_type): Likewise.
2624 2014-07-01 Tom Tromey <tromey@redhat.com>
2626 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2627 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2628 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2629 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2630 * command.h (cmd_cfunc_ftype): Move earlier.
2631 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2632 (add_com, add_info): Use cmd_cfunc_ftype.
2634 2014-06-30 Tom Tromey <tromey@redhat.com>
2636 * symtab.c (operator_chars): Make parameters and return type
2638 (file_matches): Make "files" const.
2639 (struct search_symbols_data) <files>: Now const.
2640 (search_symbols): Make "regexp" and "files" parameters const.
2642 (symtab_symbol_info): Remove cast.
2643 (rbreak_command): Update.
2644 * symtab.h (search_symbols): Update.
2646 2014-06-27 Yao Qi <yao@codesourcery.com>
2648 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2649 Change parameter type to 'struct thread_info *'. Caller
2651 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2653 * dummy-frame.c (struct dummy_frame_id): New.
2654 (dummy_frame_id_eq): New function.
2655 (struct dummy_frame) <id>: Change its type to 'struct
2657 (dummy_frame_push): Add parameter ptid and save it in
2659 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2661 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2663 (lookup_dummy_frame): Change parameter type to 'struct
2664 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2665 instead of frame_id_eq.
2666 (dummy_frame_pop): Add parameter ptid. Callers updated.
2667 Update comments. Compose dummy_frame_id and pass it to
2669 (dummy_frame_discard): Add parameter ptid.
2670 (dummy_frame_sniffer): Compose dummy_frame_id and call
2671 dummy_frame_id_eq instead of frame_id_eq.
2672 (fprint_dummy_frames): Print ptid.
2673 * dummy-frame.h: Remove comments.
2674 (dummy_frame_push): Add ptid in declaration.
2675 (dummy_frame_pop, dummy_frame_discard): Likewise.
2677 2014-06-26 Tom Tromey <tromey@redhat.com>
2679 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2680 * command.h (error_no_arg): Update.
2682 2014-06-26 Tom Tromey <tromey@redhat.com>
2684 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2685 (do_show_command): Make "arg" const.
2686 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2688 2014-06-26 Tom Tromey <tromey@redhat.com>
2690 * record-full.c (record_full_get_bookmark): Make "args" const.
2691 (record_full_goto_bookmark): Make "raw_bookmark" const.
2692 * record.c (record_goto): New function.
2693 (cmd_record_goto): Use it. Now static.
2694 * record.h (record_goto): Declare.
2695 (cmd_record_goto): Remove declaration.
2696 * target-delegates.c: Rebuild.
2697 * target.h (struct target_ops) <to_get_bookmark,
2698 to_goto_bookmark>: Make parameter const.
2700 2014-06-26 Tom Tromey <tromey@redhat.com>
2702 * defs.h (generic_load): Update.
2703 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2704 * monitor.c (monitor_load): Make "args" const.
2705 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2706 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2708 (mips_load): Make "file" const.
2709 * remote-sim.c (gdbsim_load): Make "args" const.
2710 * remote.c (remote_load): Make "name" const.
2711 * symfile.c (generic_load): Make "args" const.
2712 * target-delegates.c: Rebuild.
2713 * target.c (target_load): Make "arg" const.
2714 (debug_to_load): Make "args" const.
2715 * target.h (struct target_ops) <to_load>: Make parameter const.
2716 (target_load): Update.
2718 2014-06-26 Tom Tromey <tromey@redhat.com>
2721 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2722 (dwarf2_physname, read_partial_die)
2723 (guess_partial_die_structure_name, fixup_partial_die)
2724 (guess_full_die_structure_name, anonymous_struct_prefix)
2725 (dwarf2_name): Use per-BFD obstack.
2727 2014-06-26 Yao Qi <yao@codesourcery.com>
2729 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2730 dummyframe and this_id into inner block below.
2732 2014-06-26 Yao Qi <yao@codesourcery.com>
2734 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2735 with "signal_pass[0]" in the initialization of signal_pass.
2737 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2739 * record-btrace.c (record_btrace_generating_corefile)
2740 (record_btrace_prepare_to_generate_core)
2741 (record_btrace_done_generating_core): New.
2742 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2743 (record_btrace_store_registers, record_btrace_prepare_to_store):
2744 Forward request when generating a core file.
2745 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2746 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2747 to_done_generating_core.
2749 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2751 * target.h (target_ops) <to_prepare_to_generate_core>
2752 <to_done_generating_core>: New.
2753 (target_prepare_to_generate_core, target_done_generating_core): New.
2754 * target.c (target_prepare_to_generate_core)
2755 (target_done_generating_core): New.
2756 * target-delegates.c: Regenerate.
2757 * gcore.c: (write_gcore_file): Rename to ...
2758 (write_gcore_file_1): ...this.
2759 (write_gcore_file): Call target_prepare_to_generate_core
2760 and target_done_generating_core.
2762 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2764 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2765 * gcore.c (write_gcore_file): Free memory returned from
2766 make_corefile_notes.
2767 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2768 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2770 2014-06-24 Yao Qi <yao@codesourcery.com>
2772 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2773 (arm_linux_init_abi): Set skip_trampoline_code with
2774 gdbarch_skip_trampoline_code instead of
2775 find_solib_trampoline_target.
2777 2014-06-24 Yao Qi <yao@codesourcery.com>
2779 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2780 arm_skip_bx_reg returns non-zero.
2782 2014-06-24 Yao Qi <yao@codesourcery.com>
2784 * arm-tdep.c (arm_skip_bx_reg): New function.
2785 (arm_skip_stub): Call arm_skip_bx_reg.
2787 2014-06-23 Don Breazeal <donb@codesourcery.com>
2789 * MAINTAINERS: Add myself as write-after-approval maintainer.
2791 2014-06-23 Pedro Alves <palves@redhat.com>
2793 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2794 DR_CONTROL before setting DR0..DR3.
2795 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2796 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2797 bits of DR_CONTROL related to the debug register slot being
2798 disabled. If all slots are vacant, clear local slowdown as well,
2799 and assert DR_CONTROL is 0.
2801 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2803 * python/lib/gdb/command/xmethods.py
2804 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2805 current progspace only if the string "progspace" matches LOCUS_RE.
2807 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2809 Fix --with-system-readline with readline-6.3 patch 5.
2810 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2811 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2814 2014-06-20 Tom Tromey <tromey@redhat.com>
2816 * dwarf2read.c (dw2_get_real_path): Use correct type in
2818 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2820 2014-06-20 Gary Benson <gbenson@redhat.com>
2822 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2823 * common/glibc_thread_db.h: Likewise.
2824 * common/i386-cpuid.h: Likewise.
2825 * common/i386-gcc-cpuid.h: Likewise.
2826 * common/linux-btrace.h: Likewise.
2827 * common/linux-osdata.h: Likewise.
2828 * common/linux-procfs.h: Likewise.
2829 * common/linux-ptrace.h: Likewise.
2830 * common/mips-linux-watch.h: Likewise.
2831 * common/linux-btrace.c: Moved to nat.
2832 * common/linux-osdata.c: Likewise.
2833 * common/linux-procfs.c: Likewise.
2834 * common/linux-ptrace.c: Likewise.
2835 * common/mips-linux-watch.c: Likewise.
2836 * nat/gdb_thread_db.h: Moved from common.
2837 * nat/glibc_thread_db.h: Likewise.
2838 * nat/i386-cpuid.h: Likewise.
2839 * nat/i386-gcc-cpuid.h: Likewise.
2840 * nat/linux-btrace.c: Likewise.
2841 * nat/linux-btrace.h: Likewise.
2842 * nat/linux-osdata.c: Likewise.
2843 * nat/linux-osdata.h: Likewise.
2844 * nat/linux-procfs.c: Likewise.
2845 * nat/linux-procfs.h: Likewise.
2846 * nat/linux-ptrace.c: Likewise.
2847 * nat/linux-ptrace.h: Likewise.
2848 * nat/mips-linux-watch.c: Likewise.
2849 * nat/mips-linux-watch.h: Likewise.
2850 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2851 (object file files): Reordered.
2852 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2853 of glibc_thread_db.h.
2855 2014-06-20 Gary Benson <gbenson@redhat.com>
2857 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2858 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2859 (i386_dr_low): Likewise.
2860 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2861 (i386_dr_low_set_addr): Likewise.
2862 (i386_dr_low_get_addr): Likewise.
2863 (i386_dr_low_can_set_control): Likewise.
2864 (i386_dr_low_set_control): Likewise.
2865 (i386_dr_low_get_control): Likewise.
2866 (i386_dr_low_get_status): Likewise.
2867 (i386_get_debug_register_length): Likewise.
2868 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2869 (i386_dr_low): Likewise.
2870 * nat/i386-dregs.c (i386-low.h): Remove include.
2871 (i386-nat.h): Likewise.
2872 (nat/i386-dregs.h): New include.
2873 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2874 (i386_dr_low_set_addr): Likewise.
2875 (i386_dr_low_get_addr): Likewise.
2876 (i386_dr_low_can_set_control): Likewise.
2877 (i386_dr_low_set_control): Likewise.
2878 (i386_dr_low_get_control): Likewise.
2879 (i386_dr_low_get_status): Likewise.
2880 (i386_get_debug_register_length): Likewise.
2881 (debug_hw_points): Likewise.
2883 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2885 * Makefile.in (SFILES): Add d-exp.y.
2886 (YYFILES): Add d-exp.c.
2887 (YYOBJ): Add d-exp.o.
2888 (local-maintainer-clean): Delete d-exp.c.
2889 * d-exp.y: New file.
2890 * d-lang.h (d_parse): New declaration.
2891 (d_error): New declaration.
2892 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2893 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2894 PREC_ORDER operators.
2895 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2897 2014-06-19 Yao Qi <yao@codesourcery.com>
2899 * gdbthread.h (any_running): Remove the declaration.
2900 * thread.c (any_running): Remove.
2902 2014-06-19 Yao Qi <yao@codesourcery.com>
2904 * gdbthread.h (struct thread_info) <state>: Change its type to
2905 'enum thread_state'. Update comments.
2907 2014-06-19 Pedro Alves <palves@redhat.com>
2909 * gdbthread.h (ALL_THREADS): Delete.
2910 (ALL_NON_EXITED_THREADS): New macro.
2911 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2912 instead of ALL_THREADS.
2913 * infrun.c (find_thread_needs_step_over)
2914 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2915 instead of ALL_THREADS.
2916 * record-btrace.c (record_btrace_open)
2917 (record_btrace_stop_recording, record_btrace_close)
2918 (record_btrace_is_replaying, record_btrace_resume)
2919 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2920 * remote.c (append_pending_thread_resumptions): Likewise.
2921 * thread.c (thread_apply_all_command): Likewise.
2923 2014-06-19 Gary Benson <gbenson@redhat.com>
2925 * i386-nat.c (i386_stopped_by_watchpoint):
2926 Use i386_dr_stopped_by_watchpoint.
2927 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2928 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2930 2014-06-19 Gary Benson <gbenson@redhat.com>
2932 * nat/i386-dregs.c: New file.
2933 * Makefile.in (i386-dregs.o): New rule.
2934 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2935 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2936 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2937 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2938 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2939 * config/i386/go32.mh (NATDEPFILES): Likewise.
2940 * config/i386/linux.mh (NATDEPFILES): Likewise.
2941 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2942 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2943 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2944 * i386-nat.h (debug_hw_points): New declaration.
2945 * i386-nat.c (breakpoint.h): Remove include.
2946 (command.h): Likewise.
2947 (target.h): Likewise.
2948 (gdb_assert.h): Likewise.
2949 (debug_hw_points): Made nonstatic.
2950 (debug_printf): Now in i386-dregs.c.
2951 (TARGET_HAS_DR_LEN_8): Likewise.
2952 (DR_CONTROL_SHIFT): Likewise.
2953 (DR_CONTROL_SIZE): Likewise.
2954 (DR_RW_EXECUTE): Likewise.
2955 (DR_RW_WRITE): Likewise.
2956 (DR_RW_READ): Likewise.
2957 (DR_RW_IORW): Likewise.
2958 (DR_LEN_1): Likewise.
2959 (DR_LEN_2): Likewise.
2960 (DR_LEN_4): Likewise.
2961 (DR_LEN_8): Likewise.
2962 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2963 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2964 (DR_ENABLE_SIZE): Likewise.
2965 (DR_LOCAL_SLOWDOWN): Likewise.
2966 (DR_GLOBAL_SLOWDOWN): Likewise.
2967 (DR_CONTROL_RESERVED): Likewise.
2968 (I386_DR_CONTROL_MASK): Likewise.
2969 (I386_DR_VACANT): Likewise.
2970 (I386_DR_LOCAL_ENABLE): Likewise.
2971 (I386_DR_GLOBAL_ENABLE): Likewise.
2972 (I386_DR_DISABLE): Likewise.
2973 (I386_DR_SET_RW_LEN): Likewise.
2974 (I386_DR_GET_RW_LEN): Likewise.
2975 (I386_DR_WATCH_HIT): Likewise.
2976 (i386_wp_op_t): Likewise.
2977 (i386_show_dr): Likewise.
2978 (i386_length_and_rw_bits): Likewise.
2979 (i386_insert_aligned_watchpoint): Likewise.
2980 (i386_remove_aligned_watchpoint): Likewise.
2981 (i386_handle_nonaligned_watchpoint): Likewise.
2982 (i386_update_inferior_debug_regs): Likewise.
2983 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2984 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2985 (i386_region_ok_for_watchpoint):
2986 Use i386_dr_region_ok_for_watchpoint.
2987 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2989 2014-06-19 Gary Benson <gbenson@redhat.com>
2991 * i386-nat.c (i386_insert_hw_breakpoint): Use
2992 i386_insert_watchpoint.
2993 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2995 2014-06-19 Gary Benson <gbenson@redhat.com>
2997 * i386-nat.c (i386_dr_show): Renamed to
2998 i386_show_dr and made static. All uses updated.
2999 (i386_dr_length_and_rw_bits): Renamed to
3000 i386_length_and_rw_bits and made static.
3002 (i386_dr_insert_aligned_watchpoint): Renamed to
3003 i386_insert_aligned_watchpoint and made static.
3005 (i386_dr_remove_aligned_watchpoint): Renamed to
3006 i386_remove_aligned_watchpoint and made static.
3008 (i386_dr_update_inferior_debug_regs): Renamed to
3009 i386_update_inferior_debug_regs and made static.
3011 * nat/i386-dregs.h (i386_dr_show): Removed.
3012 (i386_dr_length_and_rw_bits): Likewise.
3013 (i386_dr_insert_aligned_watchpoint): Likewise.
3014 (i386_dr_remove_aligned_watchpoint): Likewise.
3015 (i386_dr_update_inferior_debug_regs): Likewise.
3017 2014-06-19 Gary Benson <gbenson@redhat.com>
3019 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3020 * configure: Regenerate.
3021 * config.in: Likewise.
3022 * main.c (signal.h): New include.
3023 (setup_alternate_signal_stack): New function.
3024 (captured_main): Call the above.
3025 * cp-support.c (signal.h): New include.
3026 (catch_demangler_crashes): New flag.
3027 (SIGJMP_BUF): New define.
3028 (SIGSETJMP): Likewise.
3029 (SIGLONGJMP): Likewise.
3030 (gdb_demangle_jmp_buf): New static global.
3031 (gdb_demangle_attempt_core_dump): Likewise.
3032 (gdb_demangle_signal_handler): New function.
3033 (gdb_demangle): If catch_demangler_crashes is set, install the
3034 above signal handler before calling bfd_demangle, and restore
3035 the original signal handler afterwards. Display the offending
3036 symbol and call demangler_warning the first time a segmentation
3038 (_initialize_cp_support): New maint set/show command.
3040 2014-06-19 Gary Benson <gbenson@redhat.com>
3042 * utils.h (resource_limit_kind): New enum.
3043 (can_dump_core): New declaration.
3044 (warn_cant_dump_core): Likewise.
3045 (dump_core): Likewise.
3046 * utils.c (dump_core): Made nonstatic. Added new
3047 parameter "limit_kind".
3048 (can_dump_core): Made nonstatic. Moved printing code to...
3049 (warn_cant_dump_core): New function.
3050 (can_dump_core_warn): Likewise.
3051 (internal_vproblem): Replace calls to can_dump_core with
3052 calls to can_dump_core_warn. Supply new argument to each.
3054 2014-06-19 Gary Benson <gbenson@redhat.com>
3056 * utils.h (demangler_vwarning): New declaration.
3057 (demangler_warning): Likewise.
3058 * utils.c (struct internal_problem)
3059 <user_settable_should_quit>: New field.
3060 <user_settable_should_dump_core>: Likewise
3061 (internal_error_problem): Add values for above new fields.
3062 (internal_warning_problem): Likewise.
3063 (demangler_warning_problem): New static global.
3064 (demangler_vwarning): New function.
3065 (demangler_warning): Likewise.
3066 (add_internal_problem_command): Selectively add commands.
3067 (_initialize_utils): New internal problem command.
3068 * maint.c (maintenance_demangler_warning): New function.
3069 (_initialize_maint_cmds): New command.
3071 2014-06-18 Tom Tromey <tromey@redhat.com>
3073 * f-valprint.c (info_common_command_for_block): Update.
3074 * symtab.h (struct general_symbol_info) <common_block>: Now
3077 2014-06-18 Tom Tromey <tromey@redhat.com>
3079 * symtab.h (struct symtab) <blockvector>: Now const.
3080 * ada-lang.c (ada_add_global_exceptions): Update.
3081 * buildsym.c (augment_type_symtab): Update.
3082 * dwarf2read.c (dw2_lookup_symbol): Update.
3083 * jit.c (finalize_symtab): Update.
3084 * jv-lang.c (add_class_symtab_symbol): Update.
3085 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3087 * objfiles.c (objfile_relocate1): Update.
3088 * psymtab.c (lookup_symbol_aux_psymtabs)
3089 (maintenance_check_psymtabs): Update.
3090 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3092 * spu-tdep.c (spu_catch_start): Update.
3093 * symmisc.c (dump_symtab_1): Update.
3094 * symtab.c (lookup_global_symbol_from_objfile)
3095 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3096 (basic_lookup_transparent_type_quick)
3097 (basic_lookup_transparent_type, find_pc_sect_symtab)
3098 (find_pc_sect_line, search_symbols): Update.
3099 * block.c (find_block_in_blockvector): Make "bl" const.
3100 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3102 (blockvector_contains_pc): Make "bv" const.
3103 (block_for_pc_sect): Update.
3104 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3105 (blockvector_contains_pc): Update.
3106 * breakpoint.c (resolve_sal_pc): Update.
3107 * inline-frame.c (block_starting_point_at): Update.
3109 2014-06-18 Tom Tromey <tromey@redhat.com>
3111 * completer.c (complete_line): Make "line_buffer" const.
3112 * completer.h (complete_line): Update.
3114 2014-06-18 Tom Tromey <tromey@redhat.com>
3116 * symtab.c (add_macro_name): Remove unneeded cast.
3118 2014-06-18 Tom Tromey <tromey@redhat.com>
3120 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3121 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3123 2014-06-18 Tom Tromey <tromey@redhat.com>
3125 * probe.c (info_probes_for_ops): Make "arg" const.
3126 * probe.h (info_probes_for_ops): Update.
3128 2014-06-18 Tom Tromey <tromey@redhat.com>
3130 * varobj.c (varobj_create): Update.
3131 * valops.c (value_of_this): Update.
3132 * tracepoint.c (add_local_symbols, scope_info): Update.
3133 * symtab.h (struct general_symbol_info) <block>: Now const.
3134 * symtab.c (skip_prologue_sal)
3135 (default_make_symbol_completion_list_break_on)
3136 (skip_prologue_using_sal): Update.
3137 * stack.h (iterate_over_block_locals)
3138 (iterate_over_block_local_vars): Update.
3139 * stack.c (print_frame_args): Update.
3140 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3142 (get_selected_block): Make return type const.
3143 * python/py-frame.c (frapy_block): Update.
3144 * python/py-block.c (gdbpy_block_for_pc): Update.
3145 * p-exp.y (%union) <bval>: Now const.
3146 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3147 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3148 * m2-exp.y (%union) <bval>: Now const.
3149 * linespec.c (get_current_search_block): Make return type const.
3150 (create_sals_line_offset, find_label_symbols): Update.
3151 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3153 (block_starting_point_at): Make "block" const.
3154 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3155 (check_exception_resume): Update.
3156 * guile/scm-frame.c (gdbscm_frame_block): Update.
3157 * guile/scm-block.c (gdbscm_lookup_block): Update.
3158 * frame.h (get_frame_block): Update.
3159 (get_selected_block): Make return type const.
3160 * frame.c (frame_id_inner): Update.
3161 * f-valprint.c (info_common_command_for_block)
3162 (info_common_command): Update.
3163 * dwarf2loc.c (dwarf2_find_location_expression)
3164 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3165 (locexpr_describe_location_piece): Update.
3166 * c-exp.y (%union) <bval>: Now const.
3167 * breakpoint.c (resolve_sal_pc): Update.
3168 * blockframe.c (get_frame_block):Make return type const.
3169 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3170 (block_innermost_frame): Update.
3171 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3172 (block_for_pc, block_for_pc_sect): Update.
3173 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3175 (block_for_pc_sect, block_for_pc): Make return type const.
3176 * ax-gdb.c (gen_expr): Update.
3177 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3178 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3179 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3180 (ada_read_var_value): Update.
3181 * ada-exp.y (struct name_info) <block>: Now const.
3183 (block_lookup): Constify.
3185 2014-06-18 Gary Benson <gbenson@redhat.com>
3187 * nat/i386-dregs.h: New file.
3188 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3189 * i386-nat.h (i386-dregs.h): New include.
3190 (DR_FIRSTADDR): Now in i386-dregs.h.
3191 (DR_LASTADDR): Likewise.
3192 (DR_NADDR): Likewise.
3193 (DR_STATUS): Likewise.
3194 (DR_CONTROL): Likewise.
3195 (i386_debug_reg_state): Likewise.
3196 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3198 2014-06-18 Don Breazeal <donb@codesourcery.com>
3200 * breakpoint.c (set_longjmp_breakpoint): Call
3201 momentary_breakpoint_from_master with additional argument.
3202 (set_longjmp_breakpoint_for_call_dummy): Call
3203 momentary_breakpoint_from_master with additional argument.
3204 (set_std_terminate_breakpoint): Call
3205 momentary_breakpoint_from_master with additional argument.
3206 (momentary_breakpoint_from_master): Add argument to function
3207 definition and use it to initialize structure member flag.
3208 (clone_momentary_breakpoint): Call
3209 momentary_breakpoint_from_master with additional argument.
3210 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3211 member flags set in momentary_breakpoint_from_master.
3213 2014-06-18 Gary Benson <gbenson@redhat.com>
3215 * i386-nat.c (i386_show_dr): Renamed to
3216 i386_dr_show and made nonstatic. All uses updated.
3217 (i386_length_and_rw_bits): Renamed to
3218 i386_dr_length_and_rw_bits and made nonstatic.
3220 (i386_insert_aligned_watchpoint): Renamed to
3221 i386_dr_insert_aligned_watchpoint and made nonstatic.
3223 (i386_remove_aligned_watchpoint): Renamed to
3224 i386_dr_remove_aligned_watchpoint and made nonstatic.
3226 (i386_update_inferior_debug_regs): Renamed to
3227 i386_dr_update_inferior_debug_regs and made nonstatic.
3230 2014-06-18 Gary Benson <gbenson@redhat.com>
3232 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3233 (i386_dr_low_can_set_control): Likewise.
3234 (i386_dr_low_set_addr): Likewise.
3235 (i386_dr_low_set_control): Likewise.
3236 (i386_dr_low_get_addr): Likewise.
3237 (i386_dr_low_get_status): Likewise.
3238 (i386_dr_low_get_control): Likewise.
3239 (i386_insert_aligned_watchpoint): Use new macros.
3240 (i386_update_inferior_debug_regs): Likewise.
3241 (i386_stopped_data_address): Likewise.
3243 2014-06-18 Gary Benson <gbenson@redhat.com>
3245 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3246 New parameter. All uses updated.
3248 2014-06-18 Gary Benson <gbenson@redhat.com>
3250 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3253 2014-06-18 Gary Benson <gbenson@redhat.com>
3255 * i386-nat.c (debug_printf): New macro.
3256 (i386_get_debug_register_length): Likewise.
3257 (TARGET_HAS_DR_LEN_8): Use above macro.
3258 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3259 and printf_unfiltered. Use phex to format values.
3261 2014-06-18 Gary Benson <gbenson@redhat.com>
3263 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3266 2014-06-18 Gary Benson <gbenson@redhat.com>
3268 * i386-nat.c: Comment changes.
3270 2014-06-18 Gary Benson <gbenson@redhat.com>
3272 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3274 2014-06-18 Gary Benson <gbenson@redhat.com>
3276 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3277 (i386_insert_aligned_watchpoint): Likewise.
3278 (i386_remove_aligned_watchpoint): Likewise.
3279 (i386_handle_nonaligned_watchpoint): Likewise.
3281 2014-06-18 Gary Benson <gbenson@redhat.com>
3283 * i386-nat.c: Whitespace changes.
3285 2014-06-17 Samuel Bronson <naesten@gmail.com>
3287 * MAINTAINERS: Update Roland McGrath's email address.
3288 Thanks to Sergio Durigan Junior for pointing out that he left
3289 Red Hat a while ago, and giving me a current address.
3291 2014-06-17 Tom Tromey <tromey@redhat.com>
3293 * utils.h (savestring): Remove declaration.
3295 2014-06-17 Tom Tromey <tromey@redhat.com>
3297 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3299 2014-06-16 Keith Seitz <keiths@redhat.com>
3302 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3303 to update the varobj if inferior_ptid is null_ptid.
3305 2014-06-16 Tom Tromey <tromey@redhat.com>
3307 * target.h (struct target_ops) <to_info_proc>: Make parameter
3309 (target_info_proc): Update.
3310 * target.c (target_info_proc): Make "args" const.
3311 * procfs.c (procfs_info_proc): Update.
3312 * linux-tdep.c (linux_info_proc): Update.
3313 (linux_core_info_proc_mappings): Make "args" const.
3314 (linux_core_info_proc): Update.
3315 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3316 * gdbarch.c: Rebuild.
3317 * gdbarch.h: Rebuild.
3318 * corelow.c (core_info_proc): Update.
3320 2014-06-16 Tom Tromey <tromey@redhat.com>
3322 * target.h (struct target_ops) <to_disconnect>: Make parameter
3324 (target_disconnect): Update.
3325 * target.c (target_disconnect): Make "args" const.
3326 * target-delegates.c: Rebuild.
3327 * remote.c (remote_disconnect): Update.
3328 * record.h (record_disconnect): Update.
3329 * record.c (record_disconnect): Update.
3330 * inf-child.c (inf_child_disconnect): Update.
3332 2014-06-16 Tom Tromey <tromey@redhat.com>
3334 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3335 * target.c (debug_to_rcmd, default_rcmd): Update.
3336 * target-delegates.c: Rebuild.
3337 * remote.c (remote_rcmd): Update.
3338 * monitor.c (monitor_rcmd): Update.
3340 2014-06-16 Pedro Alves <palves@redhat.com>
3342 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3343 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3344 have OBJF_SHARED set.
3345 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3346 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3347 instead of OBJF_USERLOADED.
3348 * objfiles.h (OBJF_SHARED): Update comment.
3349 (userloaded_objfile_contains_address_p): Rename to ...
3350 (shared_objfile_contains_address_p): ... this, and update
3352 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3354 (remove_symbol_file_command): Skip objfiles that don't have
3357 2014-06-16 Tom Tromey <tromey@redhat.com>
3359 * minsyms.h (prim_record_minimal_symbol)
3360 (prim_record_minimal_symbol_and_info): Update comments.
3362 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3364 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3365 or --without-guile, according to how GDB was built.
3367 2014-06-13 Tom Tromey <tromey@redhat.com>
3369 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3371 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3373 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3375 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3376 help_list.Pass all_commands, not -1, to help_list.
3377 * cli/cli-dump.c (dump_command, append_command)
3378 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3379 (binary_dump_command, binary_append_command): Pass all_commands,
3380 not -1, to help_list.
3381 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3383 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3385 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3387 * top.c (set_history): Pass all_commands, not -1, to help_list.
3388 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3389 all_commands, not -1, to help_list.
3390 * symfile.c (overlay_command): Pass all_commands, not -1, to
3392 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3394 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3396 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3398 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3399 not -1, to help_list.
3400 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3401 not -1, to help_list.
3402 * maint.c (maintenance_command, maintenance_info_command)
3403 (maintenance_print_command, maintenance_set_cmd): Pass
3404 all_commands, not -1, to help_list.
3405 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3407 * language.c (set_check): Pass all_commands, not -1, to help_list.
3408 * infcmd.c (unset_command): Pass all_commands, not -1, to
3410 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3412 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3414 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3416 * breakpoint.c (save_command): Pass all_commands, not -1, to
3418 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3419 all_commands, not -1, to help_list.
3421 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3423 * regcache.c (struct register_to_invalidate): New structure.
3424 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3426 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3428 2014-06-12 Yao Qi <yao@codesourcery.com>
3430 * varobj.c (varobj_get_num_children): Call
3431 varobj_is_dynamic_p.
3432 (varobj_list_children): Likewise.
3433 (varobj_update): Likewise. Update comments.
3435 2014-06-12 Yao Qi <yao@codesourcery.com>
3437 * varobj.c (varobj_pretty_printed_p): Rename to ...
3438 (varobj_is_dynamic_p): ... this. New function.
3439 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3440 (varobj_is_dynamic_p): Declare.
3441 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3442 (mi_print_value_p, varobj_update_one): Likewise.
3444 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3445 Yao Qi <yao@codesourcery.com>
3447 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3448 (varobj_get_iterator): Wrap up code for pretty-printer by
3449 "#if HAVE_PYTHON" and "#endif".
3450 (update_dynamic_varobj_children): Likewise.
3452 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3453 Yao Qi <yao@codesourcery.com>
3455 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3456 gdb_python_initialized is false. Move some code from varobj.c.
3457 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3458 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3459 (struct varobj_item): Moved to varobj-iter.h".
3460 (varobj_clear_saved_item): New function.
3461 (update_dynamic_varobj_children): Move python-related code to
3463 (free_variable): Call varobj_clear_saved_item and
3466 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3467 Yao Qi <yao@codesourcery.com>
3469 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3470 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3471 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3472 (py-varobj.o): New rule.
3473 * python/py-varobj.c: New file.
3474 * python/python-internal.h (py_varobj_get_iterator): Declare.
3475 * varobj-iter.h: New file.
3476 * varobj.c: Include "varobj-iter.h"
3477 (struct varobj) <child_iter>: Change its type from "PyObject *"
3478 to "struct varobj_iter *".
3479 <saved_item>: Likewise.
3480 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3481 [HAVE_PYTHON] (varobj_get_iterator): New function.
3482 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3483 python-specific code to python/py-varobj.c.
3484 (install_visualizer): Call varobj_iter_delete instead of
3486 * varobj.h (varobj_ensure_python_env): Declare.
3488 2014-06-12 Yao Qi <yao@codesourcery.com>
3490 * varobj.c (struct varobj_item): New structure.
3491 (create_child_with_value): Update declaration.
3492 (varobj_add_child): Replace arguments 'name' and 'value' with
3493 'item'. All callers updated.
3494 (install_dynamic_child): Likewise.
3495 (update_dynamic_varobj_children): Likewise.
3496 (varobj_add_child): Likewise.
3497 (create_child_with_value): Likewise.
3499 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3501 * NEWS: Create a new section for the next release branch.
3502 Rename the section of the current branch, now that it has
3505 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3507 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3508 * version.in: Bump version to 7.8.50.DATE-cvs.
3510 2014-06-11 Pedro Alves <palves@redhat.com>
3513 * ser-mingw.c (net_windows_socket_check_pending): New function.
3514 (net_windows_select_thread): Ignore spurious wakeups. Use
3515 net_windows_socket_check_pending.
3516 (net_windows_wait_handle): Check for pending events with
3517 ioctlsocket, through net_windows_socket_check_pending, instead of
3518 checking the socket's event.
3520 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3522 * python/python-internal.h (gdb_PyObject_GetAttrString)
3523 (gdb_PyObject_HasAttrString): New inline function definitions.
3524 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3525 char * of the second argument to PyObject_GetAttrString.
3527 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3529 * serial.c (serial_write): Fix index of character to be printed
3530 in call to serial_logchar when serial debug traces are enabled.
3532 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3534 * gdbtypes (resolve_dynamic_range): Add function description.
3536 2014-06-09 Pedro Alves <palves@redhat.com>
3538 * linux-nat.c (linux_child_follow_fork): Initialize status with
3539 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3540 inner block. Only pass the signal to PTRACE_DETACH if in pass
3543 2014-06-09 Gary Benson <gbenson@redhat.com>
3545 * common/signals.c (gdb_signal_from_host): Reorder to separate
3546 the always-available ANSI-standard signals from the signals that
3548 (do_gdb_signal_to_host): Likewise.
3549 * proc-events.c (signal_table): Likewise.
3551 2014-06-08 Hui Zhu <hui@codesourcery.com>
3553 * common/linux-ptrace.c (linux_disable_event_reporting): New
3555 * common/linux-ptrace.h (linux_disable_event_reporting): New
3557 * linux-nat.c (linux_child_follow_fork): Do a single step before
3560 2014-06-07 Keith Seitz <keiths@redhat.com>
3564 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3565 from symbol_matches_domain in symtab.c. All local callers
3566 of symbol_matches_domain updated.
3567 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3568 search STRUCT_DOMAIN.
3569 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3570 independently. standard_lookup will do that automatically.
3571 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3572 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3573 (cp_lookup_symbol_in_namespace): Likewise.
3574 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3575 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3576 may return a STRUCT_DOMAIN match.
3577 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3578 * cp-support.c: Include language.h.
3579 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3581 * psymtab.c (match_partial_symbol): Compare the requested
3582 domain with the symbol's domain directly.
3583 (lookup_partial_symbol): Likewise.
3584 * symtab.c (lookup_symbol_in_language): Explain when/why
3585 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3586 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3587 appropriate languages.
3588 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3589 and moved to ada-lang.c
3590 (lookup_block_symbol): Explain that this function only returns
3591 symbol matching the requested DOMAIN.
3592 Compare the requested domain with the symbol's domain directly.
3593 (iterate_over_symbols): Compare the requested domain with the
3594 symbol's domain directly.
3595 * symtab.h (symbol_matches_domain): Remove.
3597 2014-06-06 Doug Evans <xdje42@gmail.com>
3599 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3600 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3601 (gdbscm_guile_version_is_at_least): Declare.
3602 (gdbscm_scm_string_to_int): Declare.
3603 * guile/guile.c (gdbscm_guile_major_version): New global.
3604 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3605 (guile_datadir): New static global.
3606 (gdbscm_guile_data_directory): New function.
3607 (initialize_scheme_side): Update.
3608 (misc_guile_functions): Add guile-data-directory.
3609 (initialize_gdb_module): Fetch guile version number.
3610 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3611 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3612 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3613 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3615 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3616 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3617 * guile/scm-value.c (gdbscm_value_to_string): Only call
3618 scm_port_conversion_strategy if Guile version >= 2.0.6.
3620 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3622 * main.c (print_gdb_help): Add -q and --silent.
3624 2014-06-06 Gary Benson <gbenson@redhat.com>
3626 * common/signals.c: Remove preprocessor conditionals for
3627 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3628 SIGSEGV and SIGTERM.
3629 * proc-events.c: Likewise.
3631 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3633 * symfile.c (symfile_free_objfile): Remove restriction to
3635 * symfile-mem.c (symbol_file_add_from_memory): Call
3636 add_target_sections_of_objfile.
3638 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3640 * guile/scm-value.c (gdbscm_history_append_x): Use
3641 'vlscm_get_value_smob_arg_unsafe' instead of
3642 'vlscm_scm_to_value'.
3644 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3647 * utils.c (printchar): Don't escape at all if quoter is NUL.
3648 Update function documentation to clarify effect of parameter
3650 * remote.c (escape_buffer): Pass '\\' as the quoter to
3651 fputstrn_unfiltered.
3652 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3653 generate the output.
3654 (mi_solib_unloaded): Same.
3656 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3658 * development.sh: Delete.
3659 * Makefile.in (config.status): Adjust dependency on development.sh.
3660 * configure.ac: Adjust development.sh source call.
3661 * configure: Regenerate.
3663 2014-06-04 Doug Evans <xdje42@gmail.com>
3665 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3666 is_scheme_bkpt, spec.
3667 (bpscm_make_breakpoint_smob): Initialize new members.
3668 (gdbscm_create_breakpoint_x): Split into two ...
3669 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3670 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3671 (scheme_function breakpoint_functions): Update.
3672 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3673 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3674 register-breakpoint!.
3676 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3679 * mem-break.c (z_type_supported): Return zero if
3680 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3682 2014-06-04 Tom Tromey <tromey@redhat.com>
3684 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3685 value_from_contents_and_address_unresolved.
3686 (ada_template_to_fixed_record_type_1): Likewise.
3687 (ada_which_variant_applies): Likewise.
3688 * value.h (value_from_contents_and_address_unresolved): Declare.
3689 * value.c (value_from_contents_and_address_unresolved): New
3691 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3692 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3693 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3695 2014-06-04 Tom Tromey <tromey@redhat.com>
3697 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3699 2014-06-04 Tom Tromey <tromey@redhat.com>
3701 * procfs.c (procfs_attach): Make "args" const.
3702 * windows-nat.c (windows_attach): Make "args" const.
3703 * nto-procfs.c (procfs_attach): Make "args" const.
3704 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3705 * go32-nat.c (go32_attach): Make "args" const.
3706 * gnu-nat.c (gnu_attach): Make "args" const.
3707 * darwin-nat.c (darwin_attach): Make "args" const.
3708 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3709 * linux-nat.c (linux_nat_attach): Make "args" const.
3710 * remote.c (extended_remote_attach_1, extended_remote_attach):
3712 * target.h (struct target_ops) <to_attach>: Make "args" const.
3713 (find_default_attach): Likewise.
3714 * utils.c (parse_pid_to_attach): Make "args" const.
3715 * utils.h (parse_pid_to_attach): Update.
3717 2014-06-04 Tom Tromey <tromey@redhat.com>
3719 * target-delegates.c: Rebuild.
3720 * target.c (default_thread_address_space): New function.
3721 (target_thread_address_space): Simplify.
3722 * target.h (struct target_ops) <to_thread_address_space>: Add
3723 TARGET_DEFAULT_FUNC.
3725 2014-06-04 Doug Evans <xdje42@gmail.com>
3727 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3729 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3731 * record-btrace.c: Include event-loop.h and inf-loop.h.
3732 (record_btrace_resume_exec_dir)
3733 (record_btrace_async_inferior_event_handler)
3734 (record_btrace_handle_async_inferior_event): New.
3735 (record_btrace_open): Create async event handler.
3736 (record_btrace_close): Delete async event handler.
3737 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3738 Mark async event handler.
3739 (record_btrace_execution_direction): New.
3740 (init_record_btrace_ops): Initialize to_execution_direction.
3742 2014-06-03 Doug Evans <xdje42@gmail.com>
3744 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3745 (gdbscm_make_parameter): Ditto.
3747 2014-06-03 Doug Evans <dje@google.com>
3749 * exec.c (exec_close_1): Call clear_section_table instead of
3750 resize_section_table.
3751 (clear_section_table): New function.
3752 (resize_section_table): Make static. Rename arg num_added to
3754 * exec.h (clear_section_table): Declare.
3755 (resize_section_table): Delete.
3756 * progspace.c (release_program_space): Call clear_section_table
3757 instead of resize_section_table.
3759 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3761 * NEWS (Python Scripting): Add entry about the new xmethods
3764 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3766 * python/py-xmethods.c: New file.
3767 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3768 (objfpy_dealloc): XDECREF on the new xmethods field.
3769 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3771 (objfpy_get_xmethods): New function.
3772 (objfile_getset): New entry 'xmethods'.
3773 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3774 (pspy_dealloc): XDECREF on the new xmethods field.
3775 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3777 (pspy_get_xmethods): New function.
3778 (pspace_getset): New entry 'xmethods'.
3779 * python/python-internal.h: Add declarations for new functions.
3780 * python/python.c (_initialize_python): Invoke
3781 gdbpy_initialize_xmethods.
3782 * python/lib/gdb/__init__.py (xmethods): New
3784 * python/lib/gdb/xmethod.py: New file.
3785 * python/lib/gdb/command/xmethods.py: New file.
3787 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3789 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3790 best match method returned by find_overload_match is an xmethod.
3791 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3792 the best matching operator returned by find_overload_match is an
3794 * valops.c: #include "extension.h".
3795 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3796 Return void. The list of matching source methods is returned in
3797 "fn_list" and a vector of matching debug method workers is
3798 returned in "xm_worker_vec". Update all callers.
3799 (value_find_oload_method_list): Likewise.
3800 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3801 non-NULL, then the index of the best matching method in this
3802 vector is returned. Update all callers.
3803 (find_overload_match): Include xmethods while performing overload
3806 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3808 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3809 * extension-priv.h (struct extension_language_ops): Add the
3811 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3812 get_matching_xmethod_workers, get_xmethod_argtypes,
3813 invoke_xmethod, free_xmethod_worker,
3814 free_xmethod_worker_vec): New functions.
3815 * extension.h: #include "common/vec.h".
3816 New function declarations.
3817 (struct xmethod_worker): New struct.
3818 (VEC (xmethod_worker_ptr)): New vector type.
3819 (xmethod_worker_ptr): New typedef.
3820 (xmethod_worker_vec): Likewise.
3821 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3823 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3824 (struct builtin_type): New field "xmethod".
3825 * valarith.c (value_ptradd): Assert that the value argument is not
3827 * valops.c (value_must_coerce_to_target): Return 0 for
3828 lval_xcallable values.
3829 * value.c (struct value): New field XM_WORKER in the field
3831 (value_address, value_raw_address): Return 0 for lval_xcallable
3833 (set_value_address): Assert that the value is not an
3835 (value_free): Free the associated xmethod worker when freeing
3836 lval_xcallable values.
3837 (set_value_component_location): Assert that the WHOLE value is not
3839 (value_of_xmethod, call_xmethod): New functions.
3840 * value.h: Declare "struct xmethod_worker".
3841 Declare new functions value_of_xmethod, call_xmethod.
3843 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3844 Pedro Alves <palves@redhat.com>
3846 PR breakpoints/17000
3847 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3848 New function, extracted from software_breakpoint_inserted_here_p.
3849 (software_breakpoint_inserted_here_p): Replace factored out code
3850 by call to find_non_raw_software_breakpoint_inserted_here.
3851 (bp_target_info_copy_insertion_state): New function.
3852 (bkpt_insert_location): Handle the case of a single-step
3853 breakpoint already inserted at the same address.
3854 (bkpt_remove_location): Handle the case of a single-step
3855 breakpoint still inserted at the same address.
3856 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3857 breakpoint already inserted at the same address.
3858 (deprecated_remove_raw_breakpoint): Handle the case of a
3859 non-raw breakpoint still inserted at the same address.
3860 (find_single_step_breakpoint): New function, extracted from
3861 single_step_breakpoint_inserted_here_p.
3862 (find_single_step_breakpoint): New function,
3863 factored out from single_step_breakpoint_inserted_here_p.
3864 (single_step_breakpoint_inserted_here_p): Reimplement.
3866 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3868 Pushed by Joel Brobecker <brobecker@adacore.com>
3869 * source.c (show_substitute_path_command): Fix display of matching
3872 2014-06-03 Gary Benson <gbenson@redhat.com>
3874 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3876 2014-06-02 Doug Evans <xdje42@gmail.com>
3878 Add parameter support for Guile.
3879 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3880 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3881 (scm-param.o): New rule.
3882 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3883 (gdbscm_misc_error): Declare.
3884 (gdbscm_canonicalize_command_name): Declare.
3885 (gdbscm_scm_to_host_string): Declare.
3886 (gdbscm_scm_from_host_string): Declare.
3887 (gdbscm_initialize_parameters): Declare.
3888 * guile/guile.c (initialize_gdb_module): Call
3889 gdbscm_initialize_parameters.
3890 * guile/lib/gdb.scm: Export parameter symbols.
3891 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3892 cmdscm_canonicalize_name and made public. All callers updated.
3893 * guile/scm-exception.c (gdbscm_misc_error): New function.
3894 * guile/scm-param.c: New file.
3895 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3896 (gdbscm_scm_to_host_string): New function.
3897 (gdbscm_scm_from_host_string): New function.
3898 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3900 2014-06-02 Doug Evans <xdje42@gmail.com>
3902 Add command support for Guile.
3903 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3904 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3905 (scm-cmd.o): New rule.
3906 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3907 (gdbscm_user_error_p): Declare.
3908 (gdbscm_parse_command_name): Declare.
3909 (gdbscm_valid_command_class_p): Declare.
3910 (gdbscm_initialize_commands): Declare.
3911 * guile/guile.c (initialize_gdb_module): Call
3912 gdbscm_initialize_commands.
3913 * guile/lib/gdb.scm: Export command symbols.
3914 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3915 (throw-user-error): New function.
3916 * guile/scm-cmd.c: New file.
3917 * guile/scm-exception.c (user_error_symbol): New static global.
3918 (gdbscm_user_error_p): New function.
3919 (gdbscm_initialize_exceptions): Set user_error_symbol.
3920 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3922 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3924 * top.c (command_loop): Handle comments here...
3925 (command_line_input): ... not here.
3927 2014-06-02 Doug Evans <xdje42@gmail.com>
3929 Add progspace support for Guile.
3930 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3931 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3932 (scm-progspace.o): New rule.
3933 * guile/guile-internal.h (pspace_smob): New typedef.
3934 (psscm_pspace_smob_pretty_printers): Declare.
3935 (psscm_pspace_smob_from_pspace): Declare.
3936 (psscm_scm_from_pspace): Declare.
3937 * guile/guile.c (initialize_gdb_module): Call
3938 gdbscm_initialize_pspaces.
3939 * guile/lib/gdb.scm: Export progspace symbols.
3940 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3942 (append-pretty-printer!): Ditto.
3943 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3945 * guile/scm-progspace.c: New file.
3947 2014-06-03 Alan Modra <amodra@gmail.com>
3949 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3950 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3952 2014-06-02 Doug Evans <dje@google.com>
3954 Add support for skeletonless type units.
3955 * dwarf2read.c (struct dwarf2_per_objfile): New member
3956 n_allocated_type_units.
3957 (struct dwarf2_per_objfile) <tu_stats>: New member
3958 nr_all_type_units_reallocs.
3959 (create_signatured_type_table_from_index): Initialize
3960 n_allocated_type_units
3961 (create_all_type_units): Ditto.
3962 (add_type_unit): Move up in file. New arg slot.
3963 All callers updated. Increase space for all_type_units more
3965 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3966 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3967 (lookup_dwp_signatured_type): Ditto.
3968 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3969 All callers updated.
3970 (build_type_psymtabs_1): Leave type_unit_groups as
3971 NULL if no TUs present.
3972 (print_tu_stats): New function.
3973 (process_skeletonless_type_unit): New function.
3974 (process_dwo_file_for_skeletonless_type_units): New
3976 (process_skeletonless_type_units): New function.
3977 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3978 Call print tu_stats if debugging enabled.
3980 2014-06-02 Pedro Alves <palves@redhat.com>
3982 * breakpoint.c (build_target_command_list): Don't build a command
3983 list if we have any duplicate location that isn't a dprintf.
3985 2014-06-02 Pedro Alves <palves@redhat.com>
3987 * breakpoint.c (dprintf_breakpoint_hit): New function.
3988 (initialize_breakpoint_ops): Install it as dprintf's
3989 breakpoint_hit method.
3991 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3993 * source.c (substitute_path_rule_matches): Simplify using
3994 filename_ncmp instead of FILENAME_CMP.
3996 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3998 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4000 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4002 * configure.ac: When Guile is available, check for the
4003 availability of 'scm_new_smob'.
4004 * configure, config.h.in: Regenerate.
4005 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4008 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4010 * frame.c (struct frame_info): Add stop_string field.
4011 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4012 (get_prev_frame_always): Old content moved into
4013 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4014 TRY_CATCH, handle MEMORY_ERROR exceptions.
4015 (frame_stop_reason_string): New function definition.
4016 * frame.h (unwind_stop_reason_to_string): Extend comment to
4017 mention frame_stop_reason_string.
4018 (frame_stop_reason_string): New function declaration.
4019 * stack.c (frame_info): Switch to frame_stop_reason_string.
4020 (backtrace_command_1): Switch to frame_stop_reason_string.
4021 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4022 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4023 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4025 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4027 * frame.c (frame_stop_reason_string): Rename to ...
4028 (unwind_stop_reason_to_string): this.
4029 * frame.h (frame_stop_reason_string): Rename to ...
4030 (unwind_stop_reason_to_string): this.
4031 * stack.c (frame_info): Update call to frame_stop_reason_string.
4032 (backtrace_command_1): Likewise.
4033 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4034 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4036 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4038 * frame.c (remove_prev_frame): New function.
4039 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4042 2014-05-29 Pedro Alves <palves@redhat.com>
4044 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4045 and make it const. When a single-step decays to a continue,
4046 clear 'step', not 'hw_step'. Pass whether the caller wanted
4047 to step to user_visible_resume_ptid, not what we ask the
4050 2014-05-29 Pedro Alves <palves@redhat.com>
4052 * infrun.c (process_event_stop_test, handle_step_into_function)
4053 (handle_step_into_function_backward): Adjust.
4054 Don't set the even thread's stop_step and call stop_waiting before
4055 calling end_stepping_range. Instead do that ...
4056 (end_stepping_range): ... here. Take an ecs pointer parameter.
4058 2014-05-29 Pedro Alves <palves@redhat.com>
4060 * infrun.c (stop_stepping): Rename to ...
4061 (stop_waiting): ... this.
4062 (proceed): Update comment.
4063 (process_event_stop_test, handle_inferior_event)
4064 (handle_signal_stop, handle_step_into_function)
4065 (handle_step_into_function_backward): Update.
4067 2014-05-29 Pedro Alves <palves@redhat.com>
4069 * infcall.c (run_inferior_call): Don't check whether the current
4070 thread is running after the proceed call.
4072 2014-05-29 Pedro Alves <palves@redhat.com>
4073 Tom Tromey <tromey@redhat.com>
4075 * NEWS: Mention "maint set target-async", "set mi-async", and that
4076 background execution commands are now always available.
4077 * target.h (target_async_permitted): Update comment.
4078 * target.c (target_async_permitted, target_async_permitted_1):
4080 (set_target_async_command): Rename to ...
4081 (maint_set_target_async_command): ... this.
4082 (show_target_async_command): Rename to ...
4083 (maint_show_target_async_command): ... this.
4084 (_initialize_target): Adjust.
4085 * infcmd.c (prepare_execution_command): Make extern.
4086 * inferior.h (prepare_execution_command): Declare.
4087 * infrun.c (set_observer_mode): Leave target async alone.
4088 * mi/mi-interp.c (mi_interpreter_init): Install
4089 mi_on_sync_execution_done as sync_execution_done observer.
4090 (mi_on_sync_execution_done): New function.
4091 (mi_execute_command_input_handler): Don't print the prompt if we
4092 just started a synchronous command with an async target.
4093 (mi_on_resume): Check sync_execution before printing prompt.
4094 * mi/mi-main.h (mi_async_p): Declare.
4095 * mi/mi-main.c: Include gdbcmd.h.
4096 (mi_async_p): New function.
4097 (mi_async, mi_async_1): New globals.
4098 (set_mi_async_command, show_mi_async_command, mi_async): New
4100 (exec_continue): Call prepare_execution_command.
4101 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4102 (mi_execute_async_cli_command): Use mi_async_p.
4103 (_initialize_mi_main): Install "set mi-async". Make
4104 "target-async" a deprecated alias.
4106 2014-05-29 Pedro Alves <palves@redhat.com>
4108 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4109 (_initialize_cli_interp): Adjust.
4110 * event-loop.c: Include "observer.h".
4111 (start_event_loop): Notify 'command_error' observers instead of
4112 calling display_gdb_prompt. Remove FIXME comment.
4113 * event-top.c (display_gdb_prompt): Remove call into the
4115 * inf-loop.c: Include "observer.h".
4116 (inferior_event_handler): Notify 'command_error' observers instead
4117 of calling display_gdb_prompt.
4118 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4119 observers instead of calling display_gdb_prompt.
4120 * interps.c (interp_set): Don't call display_gdb_prompt.
4121 (current_interp_display_prompt_p): Delete.
4122 * interps.h (interp_prompt_p): Delete declaration.
4123 (interp_prompt_p_ftype): Delete.
4124 (struct interp_procs) <prompt_proc_p>: Delete field.
4125 (current_interp_display_prompt_p): Delete declaration.
4126 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4127 (_initialize_mi_interp): Adjust.
4128 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4129 'command_error' observers.
4130 (tui_on_sync_execution_done, tui_on_command_error): New
4132 (tui_display_prompt_p): Delete.
4133 (_initialize_tui_interp): Adjust.
4135 2014-05-29 Pedro Alves <palves@redhat.com>
4138 * cli/cli-interp.c: Include infrun.h and observer.h.
4139 (cli_uiout, cli_interp): New globals.
4140 (cli_on_signal_received, cli_on_end_stepping_range)
4141 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4143 (cli_interpreter_init): Install them as 'end_stepping_range',
4144 'signal_received' 'signal_exited', 'exited' and 'no_history'
4146 (_initialize_cli_interp): Remove cli_interp local.
4147 * infrun.c (handle_inferior_event): Call the several stop reason
4148 observers instead of printing the stop reason directly.
4149 (end_stepping_range): New function.
4150 (print_end_stepping_range_reason, print_signal_exited_reason)
4151 (print_exited_reason, print_signal_received_reason)
4152 (print_no_history_reason): Make static, and add an uiout
4153 parameter. Print to that instead of to CURRENT_UIOUT.
4154 * infrun.h (print_end_stepping_range_reason)
4155 (print_signal_exited_reason, print_exited_reason)
4156 (print_signal_received_reason print_no_history_reason): New
4158 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4160 <cli_uiout>: New field.
4161 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4162 uiout for CLI output. Install 'signal_received',
4163 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4165 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4166 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4167 (mi_on_no_history): New functions.
4168 (ui_out_free_cleanup): Delete function.
4169 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4170 instead use the one already stored in the MI interpreter data.
4171 (mi_ui_out): Adjust.
4172 * tui/tui-interp.c: Include infrun.h and observer.h.
4173 (tui_interp): New global.
4174 (tui_on_signal_received, tui_on_end_stepping_range)
4175 (tui_on_signal_exited, tui_on_exited)
4176 (tui_on_no_history): New functions.
4177 (tui_init): Install them as 'end_stepping_range',
4178 'signal_received' 'signal_exited', 'exited' and 'no_history'
4180 (_initialize_tui_interp): Delete tui_interp local.
4182 2014-05-29 Pedro Alves <palves@redhat.com>
4185 * linux-nat.c (linux_nat_resume_callback): Rename the second
4186 parameter to 'except'. Skip LP if it points to EXCEPT.
4187 (linux_nat_resume): Don't mark the event lwp as not stopped
4188 before resuming sibling lwps. Instead ask
4189 linux_nat_resume_callback to skip the event lwp. Mark it as not
4190 stopped after actually resuming it.
4191 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4193 (wait_lwp): Mark the lwp as stopped here.
4194 (stop_wait_callback): Mark the lwp as not stopped right after
4195 resuming it. Don't mark lwps as stopped here.
4196 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4197 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4199 2014-05-29 Pedro Alves <palves@redhat.com>
4202 * infrun.c (resume): Determine how much to resume depending on
4203 whether the caller wanted a step, not whether we can hardware step
4204 the target. Mark all threads that we intend to run as running,
4205 unless we're calling an inferior function.
4206 (normal_stop): If the thread is running an infcall, don't finish
4208 * target.c (target_resume): Don't mark threads as running here.
4210 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4212 * serial.c (_initialize_serial): Remove support for
4213 the "set remotebaud" and "show remotebaud" commands.
4214 * NEWS: Add entry documenting the removal of that command.
4216 2014-05-28 Yao Qi <yao@codesourcery.com>
4218 * charset.c: Fix typo in comments.
4220 2014-05-27 Gary Benson <gbenson@redhat.com>
4222 * utils.c (internal_vproblem): Prompt for a bug report.
4224 2014-05-26 Andy Wingo <wingo@igalia.com>
4226 * guile/scm-arch.c (arscm_mark_arch_smob):
4227 * guile/scm-block.c (bkscm_mark_block_smob)
4228 (bkscm_mark_block_syms_progress_smob):
4229 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4230 * guile/scm-exception.c (exscm_mark_exception_smob):
4231 * guile/scm-frame.c (frscm_mark_frame_smob):
4232 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4233 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4234 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4235 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4236 (ppscm_mark_pretty_printer_worker_smob):
4237 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4238 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4239 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4240 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4242 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4245 2014-05-26 Andy Wingo <wingo@igalia.com>
4246 Doug Evans <xdje42@gmail.com>
4248 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4249 empty_base_class. All uses updated.
4250 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4251 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4253 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4254 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4255 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4256 (gdbscm_gsmob_has_property_p, add_property_name)
4257 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4258 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4259 (gdb-object-has-property?, gdb-object-properties): Remove.
4260 (gdb-object-kind): Renamed from gsmob-kind.
4262 2014-05-26 Andy Wingo <wingo@igalia.com>
4264 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4265 * configure: Regenerate.
4267 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4269 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4271 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4273 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4274 (replay_memory_access_read_only, replay_memory_access_read_write)
4275 (replay_memory_access_types, replay_memory_access)
4276 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4277 (cmd_set_record_btrace, cmd_show_record_btrace)
4278 (cmd_show_replay_memory_access): New.
4279 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4280 (record_btrace_remove_breakpoint): Replace
4281 record_btrace_allow_memory_access with replay_memory_access.
4282 (_initialize_record_btrace): Add commands.
4283 * NEWS: Announce it.
4285 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4287 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4289 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4291 * MAINTAINERS (Write After Approval): Move self back from
4294 2014-05-22 Pedro Alves <palves@redhat.com>
4296 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4297 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4298 (disable_randomization, enum exec_direction_kind)
4299 (execution_direction, stop_registers, start_remote)
4300 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4301 (wait_for_inferior, normal_stop, get_last_target_status)
4302 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4303 (insert_step_resume_breakpoint_at_sal)
4304 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4305 (set_step_info, print_stop_event, signal_stop_state)
4306 (signal_print_state, signal_pass_state, signal_stop_update)
4307 (signal_print_update, signal_pass_update)
4308 (update_signals_program_target, clear_exit_convenience_vars)
4309 (displaced_step_dump_bytes, update_observer_mode)
4310 (signal_catch_update, gdb_signal_from_command): Move
4312 * infrun.h: ... to this new file.
4313 * amd64-tdep.c: Include infrun.h.
4314 * annotate.c: Include infrun.h.
4315 * arch-utils.c: Include infrun.h.
4316 * arm-linux-tdep.c: Include infrun.h.
4317 * arm-tdep.c: Include infrun.h.
4318 * break-catch-sig.c: Include infrun.h.
4319 * breakpoint.c: Include infrun.h.
4320 * common/agent.c: Include infrun.h instead of inferior.h.
4321 * corelow.c: Include infrun.h.
4322 * event-top.c: Include infrun.h.
4323 * go32-nat.c: Include infrun.h.
4324 * i386-tdep.c: Include infrun.h.
4325 * inf-loop.c: Include infrun.h.
4326 * infcall.c: Include infrun.h.
4327 * infcmd.c: Include infrun.h.
4328 * infrun.c: Include infrun.h.
4329 * linux-fork.c: Include infrun.h.
4330 * linux-nat.c: Include infrun.h.
4331 * linux-thread-db.c: Include infrun.h.
4332 * monitor.c: Include infrun.h.
4333 * nto-tdep.c: Include infrun.h.
4334 * procfs.c: Include infrun.h.
4335 * record-btrace.c: Include infrun.h.
4336 * record-full.c: Include infrun.h.
4337 * remote-m32r-sdi.c: Include infrun.h.
4338 * remote-mips.c: Include infrun.h.
4339 * remote-notif.c: Include infrun.h.
4340 * remote-sim.c: Include infrun.h.
4341 * remote.c: Include infrun.h.
4342 * reverse.c: Include infrun.h.
4343 * rs6000-tdep.c: Include infrun.h.
4344 * s390-linux-tdep.c: Include infrun.h.
4345 * solib-irix.c: Include infrun.h.
4346 * solib-osf.c: Include infrun.h.
4347 * solib-svr4.c: Include infrun.h.
4348 * target.c: Include infrun.h.
4349 * top.c: Include infrun.h.
4350 * windows-nat.c: Include infrun.h.
4351 * mi/mi-interp.c: Include infrun.h.
4352 * mi/mi-main.c: Include infrun.h.
4353 * python/py-threadevent.c: Include infrun.h.
4355 2014-05-22 Pedro Alves <palves@redhat.com>
4357 * infrun.c (handle_inferior_event): Store the exit code for
4358 --return-child-result here, instead of ...
4359 (print_exited_reason): ... here.
4361 2014-05-21 Pedro Alves <palves@redhat.com>
4364 * gdbthread.h (struct thread_control_state): New field
4366 * infrun.c (follow_fork): Copy the new thread control field to the
4368 (clear_proceed_status_thread): Clear the new thread control field.
4369 (proceed): Set the new thread control field.
4370 * interps.h (command_interp): Declare.
4371 * interps.c (command_interpreter): New global.
4372 (command_interp): New function.
4373 (interp_exec): Set `command_interpreter' while here.
4374 * cli-out.c (cli_uiout_dtor): New function.
4375 (cli_ui_out_impl): Install it.
4376 * mi/mi-interp.c: Include cli-out.h.
4377 (mi_cmd_interpreter_exec): Add comment.
4378 (restore_current_uiout_cleanup): New function.
4379 (ui_out_free_cleanup): New function.
4380 (mi_on_normal_stop): If finishing an execution command started by
4381 a CLI command, or any kind of breakpoint-like event triggered,
4382 print the stop event to the output (CLI) stream.
4383 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4385 2014-05-21 Pedro Alves <palves@redhat.com>
4387 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4388 current source line having changed.
4389 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4390 * infrun.c (normal_stop): Adjust call to
4391 set_current_sal_from_frame.
4392 * source.c (clear_lines_listed_range): New function.
4393 (set_current_source_symtab_and_line, identify_source_line): Clear
4394 the lines listed range.
4395 (line_info): Handle the first "info line" after the current source
4396 line having changed.
4397 * stack.c (print_stack_frame): Remove center handling.
4398 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4401 2014-05-21 Pedro Alves <palves@redhat.com>
4403 * inf-child.c (inf_child_mourn_inferior): New function.
4404 * inf-child.h (inf_child_mourn_inferior): New declaration.
4405 * darwin-nat.c (darwin_mourn_inferior): Use
4406 inf_child_mourn_inferior.
4407 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4408 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4409 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4410 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4411 * windows-nat.c (windows_mourn_inferior): Likewise.
4413 2014-05-21 Doug Evans <xdje42@gmail.com>
4415 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4417 2014-05-21 Doug Evans <xdje42@gmail.com>
4419 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4420 (gdbscm_out_of_range_error): Ditto.
4421 (gdbscm_memory_error): Ditto.
4422 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4423 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4424 (gdbscm_out_of_range_error): Update.
4425 (gdbscm_memory_error): Update.
4426 (gdbscm_scm_to_target_string_unsafe): Delete.
4428 2014-05-21 Pedro Alves <palves@redhat.com>
4430 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4432 (inf_child_open_target): New function.
4433 (inf_child_open): Use inf_child_open_target to push the target
4434 instead of erroring out.
4435 (inf_child_disconnect, inf_child_close)
4436 (inf_child_maybe_unpush_target): New functions.
4437 (inf_child_target): Install inf_child_disconnect and
4438 inf_child_close. Store a pointer to the returned object.
4439 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4441 * target.c (auto_connect_native_target): New global.
4442 (show_default_run_target): New function.
4443 (find_default_run_target): Return NULL if automatically connecting
4444 to the native target is disabled.
4445 (_initialize_target): Install set/show auto-connect-native-target.
4446 * NEWS: Mention "set auto-connect-native-target", and "target
4448 * linux-nat.c (super_close): New global.
4449 (linux_nat_close): Call super_close.
4450 (linux_nat_add_target): Store a pointer to the base class's
4452 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4453 inf_child_maybe_unpush.
4454 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4456 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4457 the inferior. Use inf_child_maybe_unpush_target.
4458 (inf_ttrace_attach): Don't push the target if it is already
4460 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4461 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4462 after mourning the inferior. Use inf_child_maybe_unpush_target.
4463 (darwin_attach_pid): Don't push the target if it is already
4465 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4466 mourning the inferior. Use inf_child_maybe_unpush_target.
4467 (gnu_detach): Use inf_child_maybe_unpush_target.
4468 * go32-nat.c (go32_create_inferior): Don't push the target if it
4470 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4471 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4472 (procfs_open): Rename to ...
4473 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4474 comments. Can target_preopen before changing node. Call
4475 inf_child_open_target to push the target explicitly.
4476 (procfs_attach): Don't push the target if it is already pushed.
4477 (procfs_detach): Use inf_child_maybe_unpush_target.
4478 (procfs_create_inferior): Don't push the target if it is already
4480 (nto_native_ops): New global.
4481 (procfs_open): Reimplement.
4482 (procfs_native_open): New function.
4483 (init_procfs_targets): Install procfs_native_open as to_open of
4484 "target native". Store a pointer to the "native" target in
4486 * procfs.c (procfs_attach): Don't push the target if it is already
4488 (procfs_detach): Use inf_child_maybe_unpush_target.
4489 (procfs_mourn_inferior): Only unpush the target after mourning the
4490 inferior. Use inf_child_maybe_unpush_target.
4491 (procfs_init_inferior): Don't push the target if it is already
4493 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4494 if it is already pushed.
4496 2014-05-21 Pedro Alves <palves@redhat.com>
4498 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4499 and "procfs" targets are now called "native" instead.
4501 2014-05-21 Pedro Alves <palves@redhat.com>
4503 * go32-nat.c (go32_open): Delete.
4504 (go32_target): Don't override the to_open method.
4506 2014-05-21 Pedro Alves <palves@redhat.com>
4508 * nto-procfs.c (procfs_can_run): New function.
4509 (nto_procfs_ops): New global.
4510 (init_procfs_targets): New, based on procfs_target. Install
4511 "target native" in addition to "target procfs".
4512 (_initialize_procfs): Call init_procfs_targets instead of adding
4515 2014-05-21 Pedro Alves <palves@redhat.com>
4517 * windows-nat.c (windows_target): Don't override to_shortname,
4518 to_longname or to_doc.
4520 2014-05-21 Pedro Alves <palves@redhat.com>
4522 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4525 2014-05-21 Pedro Alves <palves@redhat.com>
4527 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4528 to_shortname, to_longname or to_doc.
4530 2014-05-21 Pedro Alves <palves@redhat.com>
4532 * go32-nat.c (go32_target): Don't override to_shortname,
4533 to_longname or to_doc.
4535 2014-05-21 Pedro Alves <palves@redhat.com>
4537 * inf-child.c (inf_child_open): Remove mention of "child".
4538 (inf_child_target): Rename target to "native" instead of "child".
4540 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4542 * Makefile.in (SFILES): Delete "regset.c".
4543 (COMMON_OBS): Delete "regset.o".
4545 * regset.h (regset_alloc): Delete prototype.
4547 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4549 * sparc-linux-tdep.c (sparc32_linux_gregset)
4550 (sparc32_linux_fpregset): New static regset structures.
4551 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4552 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4554 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4555 (sparc64_linux_fpregset): New static regset structures.
4556 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4557 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4558 New static regset structures.
4559 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4560 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4561 New static regset structures.
4562 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4563 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4564 New static regset structures.
4565 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4566 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4567 New static regset structures.
4568 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4570 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4572 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4573 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4574 register maps ("regmaps") from "*regset" to "*regmap". Do this
4575 for all regmap types and variables.
4576 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4577 (sparc32_linux_supply_core_gregset)
4578 (sparc32_linux_collect_core_gregset)
4579 (sparc32_linux_supply_core_fpregset)
4580 (sparc32_linux_collect_core_fpregset): Likewise.
4581 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4582 (sparc_gregmap, sparc_fpregmap): ... these.
4583 (sparc_supply_gregset, sparc_collect_gregset)
4584 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4585 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4586 (_initialize_sparc_nat): Rename regmaps.
4587 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4588 (sparc_gregmap, sparc_fpregmap): ... these.
4589 (sparc_supply_gregset, sparc_collect_gregset)
4590 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4591 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4593 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4594 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4596 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4598 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4599 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4600 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4602 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4603 (sparc32_bsd_fpregset): Rename to...
4604 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4605 (sparc32_bsd_fpregmap): ... these.
4606 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4607 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4608 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4609 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4610 (struct sparc_gregmap, struct sparc_fpregmap)
4611 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4612 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4613 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4614 (sparc32_supply_regset, sparc32_collect_gregset)
4615 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4617 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4618 (sparc64_linux_ptrace_gregmap): ... this.
4619 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4620 (_initialize_sparc64_linux_nat): Rename regmaps.
4621 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4622 (sparc64_linux_core_gregmap): ... this.
4623 (sparc64_linux_supply_core_gregset)
4624 (sparc64_linux_collect_core_gregset)
4625 (sparc64_linux_supply_core_fpregset)
4626 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4627 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4628 (sparc64_sol2_fpregset): Rename to...
4629 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4630 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4631 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4633 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4634 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4635 (sparc64_bsd_fpregset): Rename to...
4636 (struct sparc_gregmap, sparc64_sol2_gregmap)
4637 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4638 (sparc64_bsd_fpregmap): ... these.
4639 (sparc64_supply_gregset, sparc64_collect_gregset)
4640 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4642 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4643 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4644 (sparc64fbsd_gregmap): ... this.
4645 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4646 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4648 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4649 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4650 (sparc64nbsd_collect_fpregset): Likewise.
4651 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4652 (sparc64nbsd_gregmap): ... this.
4653 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4655 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4656 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4657 (sparc64obsd_gregmap): ... this.
4658 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4660 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4661 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4662 (sparc32nbsd_gregmap): ... this.
4663 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4666 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4668 * score-tdep.c (score7_linux_gregset): New static regset
4670 (score7_linux_regset_from_core_section): Remove dynamic regset
4672 (score_gdbarch_init): Drop allocation of tdep structure.
4673 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4675 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4677 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4679 (am33_regset_from_core_section): Remove dynamic regset
4682 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4684 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4685 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4687 (mips_linux_regset_from_core_section): Remove dynamic regset
4689 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4690 'gregset64', 'fpregset', and 'fpregset64'.
4691 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4692 deleted tdep fields.
4694 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4696 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4698 (amd64_regset_from_core_section): Remove dynamic regset
4700 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4702 (amd64obsd_regset_from_core_section): Remove dynamic regset
4704 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4706 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4707 x86-common regset supply function.
4708 * i386-tdep.c (i386_collect_gregset): Make static.
4709 (i386_gregset): New global regset structure.
4710 (i386_fpregset, i386_xstateregset): New static regset structures.
4711 (i386_regset_from_core_section): Remove dynamic regset
4713 (i386_gdbarch_init): Remove initialization of tdep fields
4714 'gregset', 'fpregset', and 'xstateregset'.
4715 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4716 'fpregset', and 'xstateregset'.
4717 (i386_collect_gregset): Remove prototype.
4718 (i386_gregset): New declaration.
4719 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4721 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4724 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4726 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4727 (arm_linux_vfpregset): New static regset structures.
4728 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4730 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4731 and 'vfpregset' fields.
4733 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4735 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4736 (aarch64_linux_fpregset): New static regset structures.
4737 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4738 of regset structures.
4739 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4742 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4744 * regset.h (struct regset): Remove gdbarch field.
4745 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4746 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4747 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4749 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4750 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4751 (ppc32_linux_vsxregset): Likewise.
4752 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4753 via the regcache instead of the regset.
4754 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4755 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4756 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4757 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4760 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4762 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4763 Constify structures.
4764 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4765 (alphanbsd_aout_gregset): Likewise.
4766 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4767 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4769 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4770 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4772 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4773 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4774 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4775 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4776 * m88k-tdep.c (m88k_gregset): Likewise.
4777 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4778 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4779 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4780 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4781 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4782 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4783 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4784 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4785 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4787 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4788 * sh-tdep.h (sh_corefile_gregset): Likewise.
4789 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4790 * vax-tdep.c (vax_gregset): Likewise.
4792 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4794 Fix TLS access for -static -pthread.
4795 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4796 (try_thread_db_load_1): Initialize it.
4797 (thread_db_get_thread_local_address): Call it if LM is zero.
4798 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4799 * target.h (struct target_ops) (to_get_thread_local_address): Add
4800 load_module_addr comment.
4802 2014-05-21 Pedro Alves <palves@redhat.com>
4804 * dcache.c (dcache_read_memory_partial): If reading the cache line
4805 fails, fallback to reading just the memory the caller wanted.
4807 2014-05-20 Doug Evans <dje@google.com>
4809 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4810 instead of get_current_arch.
4812 2014-05-20 Pedro Alves <palves@redhat.com>
4814 * NEWS: Mention that compare-sections now works with all targets.
4816 * remote.c (PACKET_qCRC): New enum value.
4817 (remote_verify_memory): Don't send qCRC if the target has no
4818 execution. Use packet_support/packet_ok. If the target doesn't
4819 support the qCRC packet, fallback to a deep memory copy.
4820 (compare_sections_command): Say "target image" instead of "remote
4822 (_initialize_remote): Add PACKET_qCRC to the list of config
4823 packets that have no associated command. Extend comment.
4824 * target.c (simple_verify_memory, default_verify_memory): New
4826 * target.h (struct target_ops) <to_verify_memory>: Default to
4827 default_verify_memory.
4828 (simple_verify_memory): New declaration.
4829 * target-delegates.c: Regenerate.
4831 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4833 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4835 2014-05-20 Hui Zhu <hui@codesourcery.com>
4836 Yao Qi <yao@codesourcery.com>
4839 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4840 and change address of sp and pc.
4842 2014-05-19 Tom Tromey <tromey@redhat.com>
4844 * gdbtypes.c (rank_function): Use XNEWVEC.
4845 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4847 2014-05-19 Doug Evans <dje@google.com>
4849 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4850 build_type_unit_groups and moved closer to only caller. Remove
4851 arguments. All references updated. Remove outdated .gdb_index
4853 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4854 build_type_psymtabs_1.
4856 2014-05-19 Doug Evans <dje@google.com>
4858 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4859 n_type_unit_groups, all_type_unit_groups. All uses removed.
4860 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4861 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4862 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4863 (add_type_unit_group_to_table): Delete.
4865 2014-05-19 Doug Evans <dje@google.com>
4867 * eval.c (evaluate_subexp_standard): Add some comments.
4869 2014-05-17 Doug Evans <xdje42@gmail.com>
4871 * progspace.c (remove_program_space): Delete, unused.
4872 * progspace.h (remove_program_space): Ditto.
4874 2014-05-17 Doug Evans <xdje42@gmail.com>
4876 * inferior.c (prune_inferiors): Fix comment.
4877 (remove_inferior_command): Call prune_program_spaces.
4879 2014-05-16 Doug Evans <dje@google.com>
4881 New command line option -D.
4883 * main.c (set_gdb_data_directory): New function.
4884 (captured_main): Recognize -D. Flag error for --data-directory "".
4885 Call set_gdb_data_directory.
4886 (print_gdb_help): Print --data-directory, -D.
4887 * main.h (set_gdb_data_directory): Declare.
4888 * top.c (staged_gdb_datadir): New static global.
4889 (set_gdb_datadir): Call set_gdb_data_directory
4890 (show_gdb_datadir): New function.
4891 (init_main): Update init of data-directory parameter.
4893 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4895 Import the "dirfd" gnulib module.
4896 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4897 * gnulib/aclocal.m4: Update.
4898 * gnulib/config.in: Update.
4899 * gnulib/configure: Update.
4900 * gnulib/import/Makefile.am: Update.
4901 * gnulib/import/Makefile.in: Update.
4902 * gnulib/import/dirfd.c: New.
4903 * gnulib/import/m4/dirfd.m4: New.
4904 * gnulib/import/m4/gnulib-cache.m4: Update.
4905 * gnulib/import/m4/gnulib-comp.m4: Update.
4907 2014-05-16 Pierre Muller <muller@sourceware.org>
4908 Yao Qi <yao@codesourcery.com>
4910 * valprint.c (print_wchar): Move the code on checking whether
4911 W is a printable wide char to the default branch of switch
4912 statement below. Call wchar_printable instead of gdb_iswprint.
4914 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4916 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4917 ldr.w and ldrd instructions.
4919 2014-05-15 Doug Evans <dje@google.com>
4921 * dwarf2read.c (read_structure_type): Delete outdated comments.
4923 2014-05-14 Tom Tromey <tromey@redhat.com>
4925 * macrocmd.c (print_macro_definition): Reindent.
4927 2014-05-13 Doug Evans <xdje42@gmail.com>
4929 * python/py-cmd.c (cmdpy_completer): Add comment.
4930 (completers): Make const.
4932 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4934 * infrun.c (resume): Remove should_resume (unused). Move up
4935 declaration of resume_ptid.
4937 2014-05-13 Tom Tromey <tromey@redhat.com>
4939 * language.h (unop_type_check): Remove.
4940 (binop_type_check): Don't declare.
4942 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4944 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4945 call to regcache_raw_collect.
4947 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4949 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4950 mi_console->quote as the quoting character.
4952 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4954 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4956 2014-04-29 Tom Tromey <tromey@redhat.com>
4958 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4959 "show debug varobj".
4961 2014-05-07 Kyle McMartin <kyle@redhat.com>
4963 Pushed by Joel Brobecker <brobecker@adacore.com>.
4964 * aarch64-tdep.c (aarch64_software_single_step): New function.
4965 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4966 with aarch64_software_single_step.
4968 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4972 2014-05-05 Keith Seitz <keiths@redhat.com>
4974 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4975 variable or history value is successfully parsed.
4977 2014-05-05 Yao Qi <yao@codesourcery.com>
4978 Pedro Alves <palves@redhat.com>
4980 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4981 address of blocks that intersects the requested range. Trim
4982 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4984 * ctf.c (ctf_xfer_partial): Likewise.
4986 2014-05-05 Yao Qi <yao@codesourcery.com>
4988 * printcmd.c (display_command): Remove the check to
4989 target_has_execution.
4991 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4993 * ppcobsd-nat.c: Include "obsd-nat.h".
4994 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4996 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4998 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5000 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5001 and 16-bit signed and unsigned arguments. Update comment.
5002 (stap_parse_probe_arguments): Extend code to handle such
5003 arguments. Use warning instead of complaint to notify about
5004 unrecognized bitness.
5006 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5008 PR breakpoints/16889
5009 * stap-probe.c (stap_parse_probe_arguments): Simplify
5010 check for non-prefixed probes (i.e., probes whose
5011 arguments do not start with "N@"). Always set the
5012 argument type to a sane value.
5014 2014-05-01 David Taylor <dtaylor@emc.com>
5016 * remote.c (compare_sections_command): Add -r option to compare
5017 all loadable read-only sections.
5019 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5021 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5022 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5024 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5025 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5026 Remove unused CORE_ADDR argument. Update all callers.
5028 2014-04-29 Pedro Alves <palves@redhat.com>
5030 * remote.c (struct packet_config) <detect>: Extend comment.
5031 (add_packet_config_cmd): Don't set the config's detect or support
5033 (init_all_packet_configs): Also initialize the config's 'detect'
5035 (reset_all_packet_configs_support): New function.
5036 (remote_open_1): Call reset_all_packet_configs_support instead of
5037 init_all_packet_configs.
5038 (_initialize_remote): Initialize all packet configs. Assert that
5039 all packets have an associated command, except a few known
5042 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5044 * dwarf2read.c (read_subrange_type): Handle dynamic
5045 DW_AT_lower_bound attributes.
5047 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5049 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5050 dynamic bounds before computing its upper bound.
5051 (ada_discrete_type_low_bound): Same as above with the lower bound.
5053 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5055 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5056 range types. Adjust the array handling implementation to
5057 take advantage of this change.
5058 (resolve_dynamic_range): New function, mostly extracted from
5059 resolve_dynamic_bounds.
5060 (resolve_dynamic_array): New function, mostly extracted from
5061 resolve_dynamic_bounds.
5062 (resolve_dynamic_bounds): Delete.
5063 (resolve_dynamic_type): Reimplement. Add handling of
5064 TYPE_CODE_RANGE types.
5066 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5068 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5069 handling of parallel ___XA types.
5071 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5073 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5074 unnecessary second call to static_unwrap_type.
5076 2014-04-27 Hui Zhu <hui@codesourcery.com>
5078 * stack.c (print_frame_info): Call do_gdb_disassembly with
5079 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5081 2014-04-26 Doug Evans <xdje42@gmail.com>
5083 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5085 2014-04-25 Pedro Alves <palves@redhat.com>
5088 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5089 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5090 and newline from built string.
5091 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5092 (linux_ptrace_attach_fail_reason): ... this.
5093 * linux-nat.c (linux_nat_attach): Adjust to use
5094 linux_ptrace_attach_fail_reason.
5096 2014-04-25 Pedro Alves <palves@redhat.com>
5098 * remote.c (struct remote_state): Remove multi_process_aware,
5099 non_stop_aware, cond_tracepoints, cond_breakpoints,
5100 breakpoint_commands, fast_tracepoints, static_tracepoints,
5101 install_in_trace, disconnected_tracing,
5102 enable_disable_tracepoints, string_tracing, and
5103 augmented_libraries_svr4_read fields.
5104 (remote_multi_process_p): Move further below in the file.
5105 (struct packet_config): Add comments.
5106 (update_packet_config): Delete function.
5107 (show_packet_config_cmd): Use packet_config_support.
5108 (add_packet_config_cmd): Use NULL as set callback.
5109 (packet_ok): "set remote foo-packet"-style commands no longer
5110 change config->supported -- adjust.
5111 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5112 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5113 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5114 (PACKET_QNonStop, PACKET_multiprocess_feature)
5115 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5116 (PACKET_DisconnectedTracing_feature)
5117 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5118 (set_remote_protocol_packet_cmd): Delete function.
5119 (packet_config_support, packet_support): New functions.
5120 (set_remote_protocol_Z_packet_cmd): Don't call
5121 update_packet_config.
5122 (remote_query_attached, remote_pass_signals)
5123 (remote_program_signals, remote_threads_info)
5124 (remote_threads_extra_info, remote_start_remote): Use
5126 (remote_start_remote): Use packet_config_support and
5128 (init_all_packet_configs): Set all packets to unknown support,
5129 instead of calling update_packet_config.
5130 (remote_check_symbols): Use packet_support.
5131 (remote_supported_packet): Unconditionally set the packet config's
5133 (remote_multi_process_feature, remote_non_stop_feature)
5134 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5135 (remote_breakpoint_commands_feature)
5136 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5137 (remote_install_in_trace_feature)
5138 (remote_disconnected_tracing_feature)
5139 (remote_enable_disable_tracepoint_feature)
5140 (remote_string_tracing_feature)
5141 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5142 (remote_protocol_features): Adjust to use remote_supported_packet
5143 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5144 "ConditionalTracepoints", "ConditionalBreakpoints",
5145 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5146 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5147 "EnableDisableTracepoints", and "tracenz".
5148 (remote_query_supported): Use packet_support.
5149 (remote_open_1): Adjust.
5150 (extended_remote_attach_1): Use packet_support. Switch on the
5151 result of packet_ok instead of checking whether the packet ended
5153 (remote_vcont_resume): Use packet_support.
5154 (remote_resume, remote_stop_ns, fetch_register_using_p)
5155 (remote_prepare_to_store, store_register_using_P)
5156 (check_binary_download, remote_write_bytes): Use packet_support.
5157 (remote_vkill): Use packet_support. Switch on the result of
5158 packet_ok instead of checking whether the packet ended up
5160 (extended_remote_supports_disable_randomization): Use
5162 (extended_remote_run): Switch on the result of packet_ok instead
5163 of checking whether the packet ended up disabled.
5164 (remote_insert_breakpoint, remote_remove_breakpoint)
5165 (remote_insert_watchpoint, remote_remove_watchpoint)
5166 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5168 (remote_search_memory): Use packet_config_support.
5169 (remote_get_thread_local_address, remote_get_tib_address)
5170 (remote_hostio_send_command, remote_can_execute_reverse): Use
5172 (remote_supports_cond_tracepoints)
5173 (remote_supports_cond_breakpoints)
5174 (remote_supports_fast_tracepoints)
5175 (remote_supports_static_tracepoints)
5176 (remote_supports_install_in_trace)
5177 (remote_supports_enable_disable_tracepoint)
5178 (remote_supports_string_tracing)
5179 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5180 the packet config says the feature is enabled or disabled.
5181 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5182 (remote_get_trace_status): Use packet_support.
5183 (remote_set_disconnected_tracing): Adjust to check whether the
5184 feature is enabled with packet_support.
5185 (remote_set_trace_buffer_size, remote_use_agent)
5186 (remote_can_use_agent, remote_supports_btrace): Use
5188 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5189 Use packet_config_support.
5190 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5191 the packet config says the feature is enabled or disabled.
5192 (set_range_stepping): Use packet_support.
5194 2014-04-25 Tom Tromey <tromey@redhat.com>
5196 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5199 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5201 * NEWS: Mention support for C99 variable length arrays.
5203 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5205 * ada-lang.c (standard_exc): Expand introductory comment.
5207 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5208 Walfred Tedeschi <walfred.tedeschi@intel.com>
5210 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5212 (amd64_linux_read_description): Add code to handle AVX512 xstate
5213 mask and return respective tdesc.
5214 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5215 and features/i386/x32-avx512-linux.c.
5216 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5217 (amd64_linux_core_read_description): Add code to handle AVX512
5218 xstate mask and return respective tdesc.
5219 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5220 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5222 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5223 (tdesc_amd64_avx512_linux): New prototype.
5224 (tdesc_x32_avx512_linux): Likewise.
5225 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5226 features/i386/x32-avx512.c.
5227 (amd64_ymm_avx512_names): New register names for pseudo
5229 (amd64_ymmh_avx512_names): New register names for raw registers
5231 (amd64_k_names): New register names for K registers.
5232 (amd64_zmmh_names): New register names for ZMM raw registers.
5233 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5234 (amd64_xmm_avx512_names): New register names for XMM16-31
5236 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5238 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5239 if feature is present.
5240 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5241 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5242 (AMD64_NUM_REGS): Adjust to new number of registers.
5243 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5244 registers supplied via XSTATE by AVX512 registers.
5245 (i386_linux_read_description): Add case for AVX512.
5246 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5247 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5248 (i386_linux_core_read_description): Add case for AVX512.
5249 (i386_linux_init_abi): Install supported register note section
5251 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5253 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5254 registers to be number of zmm7h + 1.
5255 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5256 * i386-tdep.c: Include features/i386/i386-avx512.c.
5257 (i386_zmm_names): Add ZMM pseudo register names array.
5258 (i386_zmmh_names): Add ZMM raw register names array.
5259 (i386_k_names): Add K raw register names array.
5260 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5261 registers. AVX512 has 16 more ZMM registers than there are YMM
5263 (i386_zmmh_regnum_p): Add function to look up register number of
5265 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5266 (i386_k_regnum_p): Likewise for K raw registers.
5267 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5268 registers added by AVX512.
5269 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5270 registers added by AVX512.
5271 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5273 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5274 (i386_pseudo_register_name): Add ZMM pseudo registers.
5275 (i386_zmm_type): Construct and return vector registers type for ZMM
5277 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5278 ZMM0-31 pseudo registers and K registers.
5279 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5280 and YMM16-31 registers from register cache.
5281 (i386_pseudo_register_write): Add code to write K, ZMM and
5283 (i386_register_reggroup_p): Add code to include/exclude AVX512
5284 registers in/from respective register groups.
5285 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5286 registers if feature is present in xcr0.
5287 (i386_gdbarch_init): Add code to initialize AVX512 feature
5288 variables in tdep structure, wire in pseudo registers and call
5289 initialize_tdesc_i386_avx512.
5290 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5292 (i386_regnum): Add AVX512 registers.
5293 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5294 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5295 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5296 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5298 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5299 (i386_ymm_avx512_regnum_p): Likewise.
5300 (i386_k_regnum_p): Likewise.
5301 (i386_zmm_regnum_p): Likewise.
5302 (i386_zmmh_regnum_p): Likewise.
5303 * i387-tdep.c : Update year in copyright notice.
5304 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5306 (XSAVE_YMM_AVX512_ADDR): New macro.
5307 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5309 (XSAVE_XMM_AVX512_ADDR): New macro.
5310 (xsave_avx512_k_offset): New table for K register offsets in
5312 (XSAVE_AVX512_K_ADDR): New macro.
5313 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5315 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5316 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5318 (i387_collect_xsave): Add code to collect AVX512 registers from
5320 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5321 of XMM16-31 registers.
5322 (I387_NUM_K_REGS): New define for number of K registers.
5323 (I387_K0_REGNUM): New define for K0 register number.
5324 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5325 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5326 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5328 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5329 (I387_XMM16_REGNUM): New define for XMM16 register number.
5330 (I387_YMM0_REGNUM): New define for YMM0 register number.
5331 (I387_KEND_REGNUM): New define for last K register number.
5332 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5333 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5335 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5337 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5339 * features/Makefile: Add AVX512 related files.
5340 * features/i386/32bit-avx512.xml: New file.
5341 * features/i386/64bit-avx512.xml: Likewise.
5342 * features/i386/amd64-avx512-linux.c: Likewise.
5343 * features/i386/amd64-avx512-linux.xml: Likewise.
5344 * features/i386/amd64-avx512.c: Likewise.
5345 * features/i386/amd64-avx512.xml: Likewise.
5346 * features/i386/i386-avx512-linux.c: Likewise.
5347 * features/i386/i386-avx512-linux.xml: Likewise.
5348 * features/i386/i386-avx512.c: Likewise.
5349 * features/i386/i386-avx512.xml: Likewise.
5350 * features/i386/x32-avx512-linux.c: Likewise.
5351 * features/i386/x32-avx512-linux.xml: Likewise.
5352 * features/i386/x32-avx512.c: Likewise.
5353 * features/i386/x32-avx512.xml: Likewise.
5354 * regformats/i386/amd64-avx512-linux.dat: New file.
5355 * regformats/i386/amd64-avx512.dat: Likewise.
5356 * regformats/i386/i386-avx512-linux.dat: Likewise.
5357 * regformats/i386/i386-avx512.dat: Likewise.
5358 * regformats/i386/x32-avx512-linux.dat: Likewise.
5359 * regformats/i386/x32-avx512.dat: Likewise.
5360 * NEWS: Add note about new support for AVX512.
5363 2014-04-23 Pedro Alves <palves@redhat.com>
5365 * breakpoint.c (insert_bp_location): Tolerate errors if the
5366 breakpoint is set in a user-loaded objfile.
5367 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5368 location is marked shlib_disabled. If the breakpoint is set in a
5369 user-loaded objfile is a GDB-side memory breakpoint, validate it
5370 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5371 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5373 * mem-break.c (memory_validate_breakpoint): New function.
5374 * objfiles.c (userloaded_objfile_contains_address_p): New
5376 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5377 * target.h (memory_validate_breakpoint): New declaration.
5379 2014-04-23 Pedro Alves <palves@redhat.com>
5381 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5382 the breakpoint is set in a shared library, only suppress
5383 errors for software breakpoints, not hardware breakpoints.
5385 2014-04-22 Pedro Alves <palves@redhat.com>
5387 * infrun.c (schedlock_applies): New function, factored out from
5388 find_thread_needs_step_over.
5389 (find_thread_needs_step_over): Use it.
5390 (switch_back_to_stepped_thread): Always clear trap_expected if the
5391 step over is finished. Return early if scheduler locking applies.
5392 Look for the stepping thread and a potential step-over thread with
5394 (currently_stepping_or_nexting_callback): Delete.
5396 2014-04-22 Nick Clifton <nickc@redhat.com>
5398 * NEWS: Mention that ARM sim now supports tracing.
5400 2014-04-22 Yao Qi <yao@codesourcery.com>
5402 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5404 * tracefile.c (tracefile_fetch_registers): ... it. New
5406 * tracefile.h (tracefile_fetch_registers): Declare.
5407 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5408 tracefile_fetch_registers.
5410 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5413 * windows-nat.c (thread_rec): Don't display a warning when
5414 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5415 fails for any reason, set th->suspended to -1, so that we don't
5416 try to resume such a thread. Also, don't return NULL in these
5417 cases, to avoid completely ruin the session due to "PC register is
5418 not available" error.
5419 (do_windows_fetch_inferior_registers): Check errors in
5420 GetThreadContext call.
5421 (windows_continue): Accept an additional argument KILLED; if not
5422 zero, ignore errors in the SetThreadContext call, since the
5423 inferior was killed and is shutting down.
5424 (windows_resume, get_windows_debug_event)
5425 (windows_create_inferior, windows_mourn_inferior)
5426 (windows_kill_inferior): All callers of windows_continue changed
5427 to adjust to its new calling sequence.
5429 2014-04-19 Yao Qi <yao@codesourcery.com>
5431 * ctf.c (ctf_open): Call post_create_inferior.
5433 2014-04-19 Yao Qi <yao@codesourcery.com>
5435 * ctf.c (handle_id): New static variable.
5436 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5437 value. Get the declaration of event "register" and get length
5438 of field "contents".
5440 2014-04-19 Yao Qi <yao@codesourcery.com>
5442 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5444 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5446 * valops.c (oload_method_static): Remove unnecessary argument
5447 METHOD. Update all callers.
5449 2014-04-18 Pedro alves <palves@redhat.com>
5450 Tom Tromey <tromey@redhat.com>
5453 * frame.c (get_prev_frame_1): Rename to ...
5454 (get_prev_frame_always): ... this, and make extern. Adjust.
5455 (skip_artificial_frames): Use get_prev_frame_always.
5456 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5457 (get_frame_unwind_stop_reason): Adjust to rename.
5458 * frame.h (get_prev_frame_always): Declare.
5459 * inline-frame.c: Include frame.h.
5460 (inline_frame_this_id): Use get_prev_frame_always.
5462 2014-04-18 Tristan Gingold <gingold@adacore.com>
5464 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5465 code by using bfd_mach_o_get_base_address.
5467 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5469 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5470 (spu_ax_pseudo_register_collect): New function.
5471 (spu_ax_pseudo_register_push_stack): Likewise.
5472 (spu_dwarf_reg_to_regnum): Likewise.
5473 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5475 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5477 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5478 Replace FRAME argument with FRAME_ID.
5479 * gdbarch.c, gdbarch.h: Regenerate.
5480 * findvar.c (default_value_from_register): Add GDBARCH argument;
5481 replace FRAME by FRAME_ID. No longer call get_frame_id.
5482 (value_from_register): Update call to gdbarch_value_from_register.
5483 * value.h (default_value_from_register): Update prototype.
5484 * s390-linux-tdep.c (s390_value_from_register): Update interface
5485 and call to default_value_from_register.
5486 * spu-tdep.c (spu_value_from_register): Likewise.
5488 * findvar.c (address_from_register): Remove TYPE argument.
5489 Do not call value_from_register; use gdbarch_value_from_register
5490 with null_frame_id instead.
5491 * value.h (address_from_register): Update prototype.
5492 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5493 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5494 address_from_register interface change.
5496 2014-04-17 Yao Qi <yao@codesourcery.com>
5498 * gdbtypes.h: Update comments to link to types and macros'
5501 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5503 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5505 2014-04-16 Keith Seitz <keiths@redhat.com>
5508 * dwarf2read.c (skip_one_die): Check that all relative-offset
5509 sibling DIEs fall within range of the current reader's buffer.
5510 (read_partial_die): Likewise.
5512 2014-04-16 Keith Seitz <keiths@redhat.com>
5515 * cp-namespace.c (lookup_symbol_file): If the type name of
5516 `this' is NULL, return immediately.
5518 2014-04-14 Keith Seitz <keiths@redhat.com>
5521 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5522 from symbol_matches_domain in symtab.c. All local callers
5523 of symbol_matches_domain updated.
5524 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5525 search STRUCT_DOMAIN.
5526 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5527 independently. standard_lookup will do that automatically.
5528 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5529 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5530 (cp_lookup_symbol_in_namespace): Likewise.
5531 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5532 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5533 may return a STRUCT_DOMAIN match.
5534 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5535 * cp-support.c: Include language.h.
5536 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5538 * psymtab.c (match_partial_symbol): Compare the requested
5539 domain with the symbol's domain directly.
5540 (lookup_partial_symbol): Likewise.
5541 * symtab.c (lookup_symbol_in_language): Explain when/why
5542 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5543 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5544 appropriate languages.
5545 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5546 and moved to ada-lang.c
5547 (lookup_block_symbol): Explain that this function only returns
5548 symbol matching the requested DOMAIN.
5549 Compare the requested domain with the symbol's domain directly.
5550 (iterate_over_symbols): Compare the requested domain with the
5551 symbol's domain directly.
5552 * symtab.h (symbol_matches_domain): Remove.
5554 2014-04-14 Tom Tromey <tromey@redhat.com>
5557 * c-exp.y (type_aggregate_p): New function.
5558 (qualified_name, classify_inner_name): Use it.
5559 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5560 and TYPE_TARGET_TYPE of an enum type.
5561 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5563 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5564 handle TYPE_DECLARED_CLASS.
5565 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5567 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5568 * valops.c (enum_constant_from_type): New function.
5569 (value_aggregate_elt): Use it.
5570 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5573 2014-04-14 Tom Tromey <tromey@redhat.com>
5575 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5576 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5578 * value.h (value_aggregate_elt): Update.
5580 2014-04-14 Tom Tromey <tromey@redhat.com>
5582 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5584 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5586 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5587 (evaluate_subexp_standard): Pass noside argument.
5588 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5589 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5590 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5591 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5592 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5594 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5596 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5597 points to a constant blob.
5599 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5601 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5602 property and store it as the high bound and flag the range accordingly.
5603 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5604 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5605 * gdbtypes.h (enum range_flags): New enum.
5606 (struct range_bounds): Add flags member.
5608 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5610 * c-typeprint.c (c_type_print_varspec_suffix): Added
5611 check for not yet resolved high bound. If unresolved, print
5612 "variable length" string to the console instead of random
5615 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5617 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5619 (ada_template_to_fixed_record_type_1): Likewise.
5620 (ada_to_fixed_type_1): Likewise.
5621 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5622 (cp_print_value): Likewise.
5623 * d-valprint.c (dynamic_array_type): Likewise.
5624 * findvar.c (address_of_variable): Likewise.
5625 * jv-valprint.c (java_value_print): Likewise.
5626 * valops.c (value_ind): Likewise.
5627 * value.c (coerce_ref): Likewise.
5629 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5631 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5632 value and retrieve the dynamic type size.
5634 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5636 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5637 passed to sizeof is dynamic evaluate the argument to compute the length.
5639 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5640 Joel Brobecker <brobecker@adacore.com>
5642 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5643 (dwarf2_evaluate_property): New function.
5644 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5645 * dwarf2read.c (attr_to_dynamic_prop): New function.
5646 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5648 * gdbtypes.c: Include dwarf2loc.h.
5649 (is_dynamic_type): New function.
5650 (resolve_dynamic_type): New function.
5651 (resolve_dynamic_bounds): New function.
5652 (get_type_length): New function.
5653 (check_typedef): Use get_type_length to compute type length.
5654 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5655 (TYPE_LOW_BOUND_KIND): New macro.
5656 (is_dynamic_type): New function prototype.
5657 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5658 to resolve dynamic properties of the type. Update comment.
5659 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5661 2014-04-14 Richard Henderson <rth@redhat.com>
5663 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5665 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5666 Doug Evans <xdje42@gmail.com>
5668 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5669 dereference TYPE_CODE_REF values.
5671 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5673 Revert the following changes due to regressions:
5675 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5676 (dwarf2_evaluate_property): New function.
5677 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5678 * dwarf2read.c (attr_to_dynamic_prop): New function.
5679 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5681 * gdbtypes.c: Include dwarf2loc.h.
5682 (is_dynamic_type): New function.
5683 (resolve_dynamic_type): New function.
5684 (resolve_dynamic_bounds): New function.
5685 (get_type_length): New function.
5686 (check_typedef): Use get_type_length to compute type length.
5687 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5688 (TYPE_LOW_BOUND_KIND): New macro.
5689 (is_dynamic_type): New function prototype.
5690 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5691 to resolve dynamic properties of the type. Update comment.
5692 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5694 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5695 passed to sizeof is dynamic evaluate the argument to compute the length.
5697 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5698 value and retrieve the dynamic type size.
5700 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5701 (ada_template_to_fixed_record_type_1): Likewise.
5702 (ada_to_fixed_type_1): Likewise.
5703 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5704 (cp_print_value): Likewise.
5705 * d-valprint.c (dynamic_array_type): Likewise.
5706 * eval.c (evaluate_subexp_with_coercion): Likewise.
5707 * findvar.c (address_of_variable): Likewise.
5708 * jv-valprint.c (java_value_print): Likewise.
5709 * valops.c (value_ind): Likewise.
5710 * value.c (coerce_ref): Likewise.
5712 * c-typeprint.c (c_type_print_varspec_suffix): Added
5713 check for not yet resolved high bound. If unresolved, print
5714 "variable length" string to the console instead of random
5717 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5718 property and store it as the high bound and flag the range accordingly.
5719 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5720 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5721 * gdbtypes.h (enum range_flags): New enum.
5722 (struct range_bounds): Add flags member.
5724 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5725 points to a constant blob.
5727 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5728 (evaluate_subexp_standard): Pass noside argument.
5729 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5730 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5731 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5732 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5733 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5735 2014-04-11 Keith Seitz <keiths@redhat.com>
5738 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5739 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5744 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5745 (evaluate_subexp_standard): Pass noside argument.
5746 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5747 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5748 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5749 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5750 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5754 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5755 points to a constant blob.
5757 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5759 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5760 property and store it as the high bound and flag the range accordingly.
5761 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5762 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5763 * gdbtypes.h (enum range_flags): New enum.
5764 (struct range_bounds): Add flags member.
5766 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5768 * c-typeprint.c (c_type_print_varspec_suffix): Added
5769 check for not yet resolved high bound. If unresolved, print
5770 "variable length" string to the console instead of random
5773 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5775 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5776 (ada_template_to_fixed_record_type_1): Likewise.
5777 (ada_to_fixed_type_1): Likewise.
5778 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5779 (cp_print_value): Likewise.
5780 * d-valprint.c (dynamic_array_type): Likewise.
5781 * eval.c (evaluate_subexp_with_coercion): Likewise.
5782 * findvar.c (address_of_variable): Likewise.
5783 * jv-valprint.c (java_value_print): Likewise.
5784 * valops.c (value_ind): Likewise.
5785 * value.c (coerce_ref): Likewise.
5787 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5789 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5790 value and retrieve the dynamic type size.
5792 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5794 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5795 passed to sizeof is dynamic evaluate the argument to compute the length.
5797 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5799 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5800 (dwarf2_evaluate_property): New function.
5801 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5802 * dwarf2read.c (attr_to_dynamic_prop): New function.
5803 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5805 * gdbtypes.c: Include dwarf2loc.h.
5806 (is_dynamic_type): New function.
5807 (resolve_dynamic_type): New function.
5808 (resolve_dynamic_bounds): New function.
5809 (get_type_length): New function.
5810 (check_typedef): Use get_type_length to compute type length.
5811 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5812 (TYPE_LOW_BOUND_KIND): New macro.
5813 (is_dynamic_type): New function prototype.
5814 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5815 to resolve dynamic properties of the type. Update comment.
5816 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5818 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5820 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5821 declaring high/low bounds and change uses accordingly. Call
5822 create_range_type instead of create_static_range_type.
5823 * gdbtypes.c (create_range_type): New function.
5824 (create_range_type): Convert bounds into struct bound_prop and pass
5825 them to create_range_type.
5826 * gdbtypes.h (struct bound_prop): New struct.
5827 (create_range_type): New function prototype.
5828 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5829 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5830 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5832 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5834 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5836 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5837 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5838 * ada-lang.c: All uses of create_range_type updated.
5839 * coffread.c: All uses of create_range_type updated.
5840 * dwarf2read.c: All uses of create_range_type updated.
5841 * f-exp.y: All uses of create_range_type updated.
5842 * m2-valprint.c: All uses of create_range_type updated.
5843 * mdebugread.c: All uses of create_range_type updated.
5844 * stabsread.c: All uses of create_range_type updated.
5845 * valops.c: All uses of create_range_type updated.
5846 * valprint.c: All uses of create_range_type updated.
5848 2014-04-10 Pedro Alves <palves@redhat.com>
5850 * breakpoint.c (single_step_breakpoints)
5851 (single_step_gdbarch): Move up in the file.
5852 (one_breakpoint_xfer_memory): New function, factored out from ...
5853 (breakpoint_xfer_memory): ... here. Also process single-step
5856 2014-04-09 Tristan Gingold <gingold@adacore.com>
5858 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5860 (darwin_decode_exception_message): Free port only after use.
5862 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5864 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5865 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5866 when setting the size of call_length.
5868 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5870 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5871 dereference TYPE_CODE_REF values.
5873 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5875 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5876 end of warning message.
5878 2014-04-03 Doug Evans <dje@google.com>
5880 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5881 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5883 2014-04-02 Alan Modra <amodra@gmail.com>
5885 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5886 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5887 (struct symbol_file_add_from_memory_args): Add size field.
5888 (find_vdso_size): New function.
5889 (add_vsyscall_page): Attempt to find vdso size.
5891 2014-04-01 Doug Evans <dje@google.com>
5893 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5895 2014-04-01 Tristan Gingold <gingold@adacore.com>
5897 * darwin-nat.c (darwin_encode_reply): Add prototype.
5898 (darwin_decode_exception_message): Reply to unknown inferiors.
5899 (darwin_decode_message): Handle message by id. Ignore message
5900 to unknown inferior.
5901 (darwin_wait): Discard unknown messages, add debug trace.
5903 2014-03-31 Doug Evans <dje@google.com>
5905 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5908 2014-03-31 Doug Evans <dje@google.com>
5910 New option "set print symbol-loading".
5912 * solib.c (solib_read_symbols): Only print symbol loading messages
5914 (solib_add): If symbol loading is in "brief" mode, notify user
5915 symbols are being loaded.
5916 (reload_shared_libraries_1): Ditto.
5917 * symfile.c (print_symbol_loading_off): New static global.
5918 (print_symbol_loading_brief): New static global.
5919 (print_symbol_loading_full): New static global.
5920 (print_symbol_loading_enums): New static global.
5921 (print_symbol_loading): New static global.
5922 (print_symbol_loading_p): New function.
5923 (symbol_file_add_with_addrs): Only print symbol loading messages
5925 (_initialize_symfile): Register "print symbol-loading" set/show
5927 * symfile.h (print_symbol_loading_p): Declare.
5929 2014-03-30 Doug Evans <xdje42@gmail.com>
5931 * infrun.c (set_last_target_status): New function.
5932 (handle_inferior_event): Call it.
5934 2014-03-30 Doug Evans <xdje42@gmail.com>
5936 * inferior.h (enum stop_kind): Improve comment.
5938 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5940 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5941 a reference, strip the reference layer before calling
5942 the lang_ops value_has_mutated callback.
5944 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5946 Remove some globals from our parser.
5947 * language.c (unk_lang_parser): Add "struct parser_state"
5949 * language.h (struct language_defn) <la_parser>: Likewise.
5950 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5951 (initialize_expout): Add "struct parser_state" argument.
5952 Rewrite function to use the parser state.
5953 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5954 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5955 write_exp_elt_longcst, write_exp_elt_dblcst,
5956 write_exp_elt_decfloatcst, write_exp_elt_type,
5957 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5958 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5959 write_dollar_variable): Likewise.
5960 (parse_exp_in_context_1): Use parser state.
5961 (insert_type_address_space): Add "struct parser_state" argument.
5963 (increase_expout_size): New function.
5964 * parser-defs.h: Forward declare "struct language_defn" and
5965 "struct parser_state".
5966 (expout, expout_size, expout_ptr): Remove extern declarations.
5967 (parse_gdbarch, parse_language): Rewrite macro declarations to
5968 accept the parser state.
5969 (struct parser_state): New struct.
5970 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5971 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5972 write_exp_elt_decfloatcst, write_exp_elt_type,
5973 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5974 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5975 write_exp_msymbol, write_dollar_variable,
5976 mark_struct_expression, insert_type_address_space): Add "struct
5977 parser_state" argument.
5978 (increase_expout_size): New function.
5979 * utils.c (do_clear_parser_state): New function.
5980 (make_cleanup_clear_parser_state): Likewise.
5981 * utils.h (make_cleanup_clear_parser_state): New function
5983 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5984 Update calls to write_exp* in order to pass the parser state.
5985 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5986 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5987 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5988 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5989 * stap-probe.c (stap_parse_register_operand): Likewise.
5990 (stap_parse_single_operand): Likewise.
5991 (stap_parse_argument_1): Likewise.
5992 (stap_parse_argument): Use parser state.
5993 * stap-probe.h: Include "parser-defs.h".
5994 (struct stap_parse_info) <pstate>: New field.
5995 * c-exp.y (parse_type): Rewrite to use parser state.
5996 (yyparse): Redefine to c_parse_internal.
5997 (pstate): New global variable.
5998 (parse_number): Add "struct parser_state" argument.
5999 (write_destructor_name): Likewise.
6000 (type_exp): Update calls to write_exp* and similars in order to
6002 (exp1, exp, variable, qualified_name, space_identifier,
6003 typename, typebase): Likewise.
6004 (write_destructor_name, parse_number, lex_one_token,
6005 classify_name, classify_inner_name, c_parse): Add "struct
6006 parser_state" argument. Update function to use parser state.
6007 * c-lang.h: Forward declare "struct parser_state".
6008 (c_parse): Add "struct parser_state" argument.
6009 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6010 (yyparse): Redefine macro to ada_parse_internal.
6011 (pstate): New variable.
6012 (write_int, write_object_renaming, write_var_or_type,
6013 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6014 type_int, type_long, type_long_long, type_float, type_double,
6015 type_long_double, type_char, type_boolean, type_system_address):
6016 Add "struct parser_state" argument.
6017 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6018 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6019 var_or_type, aggregate, aggregate_component_list,
6020 positional_list, others, component_group,
6021 component_associations): Update calls to write_exp* and similar
6022 functions in order to use parser state.
6023 (ada_parse, write_var_from_sym, write_int,
6024 write_exp_op_with_string, write_object_renaming,
6025 find_primitive_type, write_selectors, write_ambiguous_var,
6026 write_var_or_type, write_name_assoc, type_int, type_long,
6027 type_long_long, type_float, type_double, type_long_double,
6028 type_char, type_boolean, type_system_address): Add "struct
6029 parser_state" argument. Adjust function to use parser state.
6030 * ada-lang.c (parse): Likewise.
6031 * ada-lang.h: Forward declare "struct parser_state".
6032 (ada_parse): Add "struct parser_state" argument.
6033 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6034 calls to both functions.
6035 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6037 (yyparse): Redefine macro to f_parse_internal.
6038 (pstate): New variable.
6039 (parse_number): Add "struct parser_state" argument.
6040 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6041 and similars in order to use parser state.
6042 (parse_number): Adjust code to use parser state.
6044 (f_parse): New function.
6045 * f-lang.h: Forward declare "struct parser_state".
6046 (f_parse): Add "struct parser_state" argument.
6047 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6049 (yyparse): Redefine macro for java_parse_internal.
6050 (pstate): New variable.
6051 (push_expression_name, push_expression_name, insert_exp): Add
6052 "struct parser_state" argument.
6053 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6054 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6055 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6056 PostIncrementExpression, PostDecrementExpression,
6057 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6058 UnaryExpressionNotPlusMinus, CastExpression,
6059 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6060 RelationalExpression, EqualityExpression, AndExpression,
6061 ExclusiveOrExpression, InclusiveOrExpression,
6062 ConditionalAndExpression, ConditionalOrExpression,
6063 ConditionalExpression, Assignment, LeftHandSide): Update
6064 calls to write_exp* and similars in order to use parser state.
6065 (parse_number): Ajust code to use parser state.
6067 (java_parse): New function.
6068 (push_variable): Add "struct parser_state" argument. Adjust
6069 code to user parser state.
6070 (push_fieldnames, push_qualified_expression_name,
6071 push_expression_name, insert_exp): Likewise.
6072 * jv-lang.h: Forward declare "struct parser_state".
6073 (java_parse): Add "struct parser_state" argument.
6074 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6076 (yyparse): Redefine macro to m2_parse_internal.
6077 (pstate): New variable.
6078 (type_exp, exp, fblock, variable, type): Update calls to
6079 write_exp* and similars to use parser state.
6081 (m2_parse): New function.
6082 * m2-lang.h: Forward declare "struct parser_state".
6083 (m2_parse): Add "struct parser_state" argument.
6084 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6085 * objc-lang.h: Forward declare "struct parser_state".
6086 (end_msglist): Add "struct parser_state" argument.
6087 * p-exp.y (parse_type): Rewrite macro to use parser state.
6088 (yyparse): Redefine macro to pascal_parse_internal.
6089 (pstate): New variable.
6090 (parse_number): Add "struct parser_state" argument.
6091 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6092 write_exp* and similars in order to use parser state.
6093 (parse_number, yylex): Adjust code to use parser state.
6094 (pascal_parse): New function.
6095 * p-lang.h: Forward declare "struct parser_state".
6096 (pascal_parse): Add "struct parser_state" argument.
6097 * go-exp.y (parse_type): Rewrite macro to use parser state.
6098 (yyparse): Redefine macro to go_parse_internal.
6099 (pstate): New variable.
6100 (parse_number): Add "struct parser_state" argument.
6101 (type_exp, exp1, exp, variable, type): Update calls to
6102 write_exp* and similars in order to use parser state.
6103 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6104 to use parser state.
6105 (go_parse): Likewise.
6106 * go-lang.h: Forward declare "struct parser_state".
6107 (go_parse): Add "struct parser_state" argument.
6109 2014-03-27 Doug Evans <dje@google.com>
6111 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6113 2014-03-27 Doug Evans <dje@google.com>
6115 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6116 Remove argument abbrev_section. All callers updated.
6118 2014-03-27 Doug Evans <dje@google.com>
6120 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6121 addr_base, ranges_base.
6123 2014-03-26 Keith Seitz <keiths@redhat.com>
6125 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6126 types, not VAR_DOMAIN.
6128 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6130 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6132 * features/nios2-linux.c: Regenerated.
6133 * features/nios2.c: Regenerated.
6135 2014-03-25 Pedro Alves <palves@redhat.com>
6137 * cli/cli-script.c (script_from_file): Force the interpreter to
6140 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6142 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6143 small stack allocation.
6145 2014-03-24 Tristan Gingold <gingold@adacore.com>
6147 * darwin-nat.c (exc_server): Remove unused prototype.
6148 (darwin_dump_message): Correctly display data on x86_64.
6149 (darwin_encode_reply): Fix style.
6150 Add comments and fix indentation.
6152 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6154 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6156 2014-03-22 Doug Evans <xdje42@gmail.com>
6158 * infcmd.c: Whitespace fixes.
6159 (interrupt_command): Merge two function comments into one.
6161 2014-03-22 Doug Evans <xdje42@gmail.com>
6163 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6166 2014-03-22 Yao Qi <yao@codesourcery.com>
6168 * remote.c (target_read_live_memory): Remove.
6169 (memory_xfer_live_readonly_partial): Rename it to
6170 remote_xfer_live_readonly_partial. Remove argument 'object'.
6171 All callers updated. Call remote_read_bytes_1
6172 instead of target_read_live_memory.
6173 * tracepoint.c (set_traceframe_number): Remove.
6174 (make_cleanup_restore_traceframe_number): Likewise .
6175 * tracepoint.h (set_traceframe_number): Remove declaration.
6176 (make_cleanup_restore_traceframe_number): Likewise.
6178 2014-03-22 Yao Qi <yao@codesourcery.com>
6180 * remote.c (remote_read_bytes): Move code on reading from the
6182 (remote_read_bytes_1): ... here. New function.
6184 2014-03-22 Yao Qi <yao@codesourcery.com>
6186 * ctf.c (ctf_xfer_partial): Check the return value of
6187 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6188 return TARGET_XFER_UNAVAILABLE.
6189 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6190 * target.c (target_read_live_memory): Move it to remote.c.
6191 (memory_xfer_live_readonly_partial): Likewise.
6192 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6193 * remote.c (target_read_live_memory): Moved from target.c.
6194 (memory_xfer_live_readonly_partial): Likewise.
6195 (remote_read_bytes): Factored out from
6196 memory_xfer_partial_1.
6198 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6200 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6203 2014-03-21 Pedro Alves <palves@redhat.com>
6205 * infrun.c (normal_stop): Extend comment.
6207 2014-03-21 Hui Zhu <hui@codesourcery.com>
6208 Pedro Alves <palves@redhat.com>
6210 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6212 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6213 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6214 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6216 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6218 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6219 `z' formatted output modifier.
6221 2014-03-20 Tom Tromey <tromey@redhat.com>
6222 Sergio Durigan Junior <sergiodj@redhat.com>
6224 * probe.c (parse_probes): Turn assert into an ordinary error.
6225 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6226 exceptions when parsing probes. Rearrange the code for clarity.
6228 2014-03-20 Tom Tromey <tromey@redhat.com>
6231 * top.c (execute_command): Only dispatch events if the command
6234 2014-03-20 Tom Tromey <tromey@redhat.com>
6237 * infcall.c: Include event-top.h.
6238 (run_inferior_call): Call async_disable_stdin if needed.
6240 2014-03-20 Pedro Alves <palves@redhat.com>
6242 * infrun.c (prepare_to_proceed): Delete.
6243 (thread_still_needs_step_over): New function.
6244 (find_thread_needs_step_over): New function.
6245 (proceed): If the current thread needs a step-over, set its
6246 steping_over_breakpoint flag. Adjust to use
6247 find_thread_needs_step_over instead of prepare_to_proceed.
6248 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6249 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6251 (switch_back_to_stepped_thread): Step over breakpoints of all
6252 threads not the stepping thread, before switching back to the
6255 2014-03-20 Pedro Alves <palves@redhat.com>
6257 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6259 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6260 * infrun.c (saved_singlestep_ptid)
6261 (stepping_past_singlestep_breakpoint): Delete.
6262 (resume): Remove stepping_past_singlestep_breakpoint handling.
6263 (proceed): Store the prev_pc of the stepping thread too.
6264 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6266 (enum infwait_states): Delete infwait_thread_hop_state.
6267 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6269 (handle_inferior_event): Adjust.
6270 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6271 handling and the thread-hop code. Before removing single-step
6272 breakpoints, check whether the thread hit a single-step breakpoint
6273 of another thread. If it did, the trap is not a random signal.
6274 (switch_back_to_stepped_thread): If the event thread hit a
6275 single-step breakpoint, unblock it before switching to the
6276 stepping thread. Handle the case of the stepped thread having
6278 (keep_going): Handle the case of the current thread moving past a
6279 single-step breakpoint.
6281 2014-03-20 Pedro Alves <palves@redhat.com>
6284 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6285 are being stepped over.
6286 (breakpoint_address_match): Make extern.
6287 * breakpoint.h (breakpoint_address_match): New declaration.
6288 * inferior.h (stepping_past_instruction_at): New declaration.
6289 * infrun.c (struct step_over_info): New type.
6290 (step_over_info): New global.
6291 (set_step_over_info, clear_step_over_info)
6292 (stepping_past_instruction_at): New functions.
6293 (handle_inferior_event): Clear the step-over info when
6294 trap_expected is cleared.
6295 (resume): Remove now stale comment.
6296 (clear_proceed_status): Clear step-over info.
6297 (proceed): Adjust step-over handling to set or clear the step-over
6298 info instead of removing all breakpoints.
6299 (handle_signal_stop): When setting up a thread-hop, don't remove
6301 (stop_stepping): Clear step-over info.
6302 (keep_going): Adjust step-over handling to set or clear step-over
6303 info and then always inserting breakpoints, instead of removing
6304 all breakpoints when stepping over one.
6306 2014-03-20 Pedro Alves <palves@redhat.com>
6308 * infrun.c (previous_inferior_ptid): Adjust comment.
6309 (deferred_step_ptid): Delete.
6310 (infrun_thread_ptid_changed, prepare_to_proceed)
6311 (init_wait_for_inferior): Adjust.
6312 (handle_signal_stop): Delete deferred_step_ptid handling.
6314 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6317 * defs.h (sync_quit_force_run): New declaration.
6318 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6319 * event-top.c (async_sigterm_handler): New declaration.
6320 (async_sigterm_token): New variable.
6321 (async_init_signals): Create also async_sigterm_token.
6322 (async_sigterm_handler): New function.
6323 (sync_quit_force_run): New variable.
6324 (handle_sigterm): Replace quit_force call by other calls.
6325 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6327 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6329 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6330 offset into SPE pseudo registers.
6332 2014-03-18 Pedro Alves <palves@redhat.com>
6335 * inferior.h (print_stop_event): Declare.
6336 * infrun.c (print_stop_event): New, factored out from ...
6337 (normal_stop): ... this.
6338 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6339 of bpstat_print/print_stack_frame.
6341 2014-03-17 Tom Tromey <tromey@redhat.com>
6343 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6345 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6347 * ada-lang.c (decode_constrained_packed_array): Perform a
6348 minimal coercion for reference with coerce_ref instead of
6351 2014-03-17 Tristan Gingold <gingold@adacore.com>
6353 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6354 (darwin_solib_create_inferior_hook): Emit a warning if version
6357 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6359 * python/py-value.c (get_field_flag): Cast flag_name argument to
6360 PyObject_GetAttrString to support Python 2.4.
6362 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6364 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6365 (Global Maintainers): Remove Jan Kratochvil.
6367 2014-03-14 Pedro Alves <palves@redhat.com>
6369 * inferior.h (terminal_ours_for_output): Rename to ...
6370 (child_terminal_ours_for_output): ... this.
6371 (terminal_save_ours): Rename to ...
6372 (child_terminal_save_ours): ... this.
6373 (terminal_ours): Rename to ...
6374 (child_terminal_ours): ... this.
6375 (terminal_inferior): Rename to ...
6376 (child_terminal_inferior): ... this.
6377 (terminal_init_inferior): Rename to ...
6378 (child_terminal_init_inferior): ... this.
6379 (terminal_init_inferior_with_pgrp): Rename to ...
6380 (child_terminal_init_inferior_with_pgrp): ... this.
6381 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6382 (child_terminal_init_with_pgrp): ... this.
6383 (terminal_save_ours): Rename to ...
6384 (child_terminal_save_ours): ... this.
6385 (terminal_init_inferior): Rename to ...
6386 (child_terminal_init): ... this. Adjust.
6387 (terminal_inferior): Rename to ...
6388 (child_terminal_inferior): ... this.
6389 (terminal_ours_for_output): Rename to ...
6390 (child_terminal_ours_for_output): ... this. Adjust.
6391 (terminal_ours): Rename to ...
6392 (child_terminal_ours): ... this.
6393 (terminal_ours_1): Rename to ...
6394 (child_terminal_ours_1): ... this. Adjust.
6395 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6396 * windows-nat.c (do_initial_windows_stuff): Adjust.
6397 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6398 (gnu_terminal_init): ... this. Adjust.
6399 (gnu_target): Adjust.
6400 * inf-child.c (inf_child_target): Adjust.
6402 2014-03-13 Doug Evans <xdje42@gmail.com>
6405 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6408 2014-03-13 Doug Evans <xdje42@gmail.com>
6410 * value.c (record_latest_value): Call release_value_or_incref
6411 instead of release_value.
6413 2014-03-13 Pedro Alves <palves@redhat.com>
6415 * procfs.c (procfs_target): Don't override to_shortname,
6416 to_longname or to_doc.
6418 2014-03-13 Pedro Alves <palves@redhat.com>
6420 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6421 Unix in user visible strings.
6423 2014-03-12 Stan Shebs <stan@codesourcery.com>
6425 * gdbtypes.h: Annotate comments for Doxygen, add a page
6426 block comment with some general info.
6428 2014-03-12 Pedro Alves <palves@redhat.com>
6430 * infcmd.c (prepare_execution_command): New function, factored out
6431 from several execution commands.
6432 (run_command_1, continue_command, step_1, jump_command)
6433 (signal_command, until_command, advance_command, finish_command)
6434 (attach_command): Use prepare_execution_command.
6436 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6438 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6441 (struct arm_linux_thread_points): Removed.
6442 (struct arm_linux_process_info): New.
6443 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6444 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6445 (arm_linux_find_breakpoints_by_tid): Removed.
6446 (struct arch_lwp_info): New.
6447 (arm_linux_find_process_pid): New functions.
6448 (arm_linux_add_process): New functions.
6449 (arm_linux_process_info_get): New functions.
6450 (arm_linux_forget_process): New function.
6451 (arm_linux_get_debug_reg_state): New function.
6452 (struct update_registers_data): New.
6453 (update_registers_callback): New function.
6454 (arm_linux_insert_hw_breakpoint1): Updated.
6455 (arm_linux_remove_hw_breakpoint1): Updated.
6456 (arm_linux_insert_hw_breakpoint): Updated.
6457 (arm_linux_remove_hw_breakpoint): Updated.
6458 (arm_linux_insert_watchpoint): Updated.
6459 (arm_linux_remove_watchpoint): Updated.
6460 (arm_linux_new_thread): Updated.
6461 (arm_linux_prepare_to_resume): New function.
6462 (arm_linux_new_fork): New function.
6463 (_initialize_arm_linux_nat): Updated.
6465 2014-03-12 Pedro Alves <palves@redhat.com>
6467 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6469 2014-03-12 Tom Tromey <tromey@redhat.com>
6471 * inf-child.c (return_zero): New function.
6472 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6473 * aix-thread.c (aix_thread_inferior_created): New function.
6474 (aix_thread_attach): Remove.
6475 (init_aix_thread_ops): Don't set to_attach.
6476 (_initialize_aix_thread): Register inferior_created observer.
6477 * corelow.c (init_core_ops): Don't set to_attach or
6479 * exec.c (init_exec_ops): Don't set to_attach or
6481 * infcmd.c (run_command_1): Use find_run_target. Make direct
6483 (attach_command): Use find_attach_target. Make direct target
6485 * record-btrace.c (init_record_btrace_ops): Don't set
6487 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6489 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6490 set to_create_inferior.
6491 * target.c (complete_target_initialization): Add assertion.
6492 (target_create_inferior): Remove.
6493 (find_default_attach, find_default_create_inferior): Remove.
6494 (find_attach_target, find_run_target): New functions.
6495 (find_default_is_async_p, find_default_can_async_p)
6496 (target_supports_non_stop, target_attach): Remove.
6497 (init_dummy_target): Don't set to_create_inferior or
6498 to_supports_non_stop.
6499 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6500 TARGET_DEFAULT_FUNC.
6501 <to_create_inferior>: Add comment.
6502 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6503 TARGET_DEFAULT_RETURN.
6504 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6505 (find_attach_target, find_run_target): Declare.
6506 (target_create_inferior): Remove.
6507 (target_has_execution_1): Update comment.
6508 (target_supports_non_stop): Remove.
6509 * target-delegates.c: Rebuild.
6511 2014-03-12 Pedro Alves <palves@redhat.com>
6513 * inf-child.h: Update comment to not mention Unix.
6515 2014-03-12 Pedro Alves <palves@redhat.com>
6517 * inf-child.c: Update top comment to not mention Unix. Add
6518 generic comment describing how this target is meant to be used.
6519 (inf_child_post_attach, inf_child_post_startup_inferior)
6520 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6523 2014-03-12 Pedro Alves <palves@redhat.com>
6525 * nto-procfs.c: Include inf-child.h.
6526 (procfs_ops): Delete global.
6527 (procfs_can_run): Delete method.
6528 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6529 target pointer instead of referencing procfs_ops.
6530 (procfs_prepare_to_store): Delete.
6531 (init_procfs_ops): Delete function.
6532 (procfs_target): New function, based on init_procfs_ops, but
6533 inherit inf_child_target.
6534 (_initialize_procfs): Use procfs_target.
6536 2014-03-12 Pedro Alves <palves@redhat.com>
6538 * windows-nat.c: Include inf-child.h.
6539 (windows_ops): Delete global.
6540 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6542 (init_windows_ops): Delete function.
6543 (windows_target): New function, based on init_windows_ops, but
6544 inherit inf_child_target.
6545 (_initialize_windows_nat): Use windows_target. Install x86
6546 specific target methods here.
6548 2014-03-10 Doug Evans <xdje42@gmail.com>
6550 * guile/guile.c (call_initialize_gdb_module): New function.
6551 (initialize_guile): Replace call to scm_init_guile with call to
6554 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6556 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6557 in call to TYPE_CODE macro.
6559 2014-03-10 Jerome Guitton <guitton@adacore.com>
6561 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6562 Resolve tagged types to full view.
6564 2014-03-10 Hui Zhu <hui@codesourcery.com>
6566 * target.h (target_insert_breakpoint): Remove "hardware" from its
6569 2014-03-07 Doug Evans <dje@google.com>
6571 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6573 2014-03-07 Doug Evans <dje@google.com>
6575 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6576 Remove unused local comp_dir_attr. Assert exactly one of
6577 stub_comp_unit_die, stub_comp_dir is non-NULL.
6579 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6581 * target.h (complete_target_initialization, add_target):
6584 2014-03-07 Pedro Alves <palves@redhat.com>
6586 * go32-nat.c: Include inf-child.h.
6587 (go32_ops): Delete global.
6588 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6590 (go32_create_inferior): Push the passed in target pointer instead
6591 of referencing go32_ops.
6592 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6593 (go32_target): New function, based on init_go32_ops, but inherit
6595 (_initialize_go32_nat): Use go32_target. Move parts of
6598 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6600 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6601 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6602 SYMBOL_VALUE_ADDRESS.
6603 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6605 2014-03-06 Yao Qi <yao@codesourcery.com>
6607 * breakpoint.c (get_tracepoint_by_number): Remove argument
6608 optional_p. All callers updated. Adjust comments. Update
6610 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6612 2014-03-06 Yao Qi <yao@codesourcery.com>
6614 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6615 early if get_number returns zero. Use 'p' instead of 'args'.
6617 2014-03-06 Yao Qi <yao@codesourcery.com>
6619 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6622 2014-03-06 Yao Qi <yao@codesourcery.com>
6624 PR breakpoints/16508
6625 * tracepoint.c (check_trace_running): New function.
6626 (trace_find_command): Move code to check_trace_running and
6627 call check_trace_running.
6628 (trace_find_pc_command): Likewise.
6629 (trace_find_tracepoint_command): Likewise.
6630 (trace_find_line_command): Likewise.
6631 (trace_find_range_command): Likewise.
6632 * tracepoint.h (check_trace_running): Likewise.
6633 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6635 2014-03-06 Yao Qi <yao@codesourcery.com>
6637 * target.h (struct target_ops) <to_traceframe_info>: Use
6638 TARGET_DEFAULT_NORETURN (tcomplain ()).
6639 * target-delegates.c: Regenerated.
6641 2014-03-05 Pedro Alves <palves@redhat.com>
6644 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6645 void. Update comment.
6646 (dcache_xfer_memory): Delete.
6647 (dcache_read_memory_partial): New, based on the read bits of
6649 (dcache_update): Add status parameter. Use ULONGEST for len, and
6650 adjust. Discard cache lines if the reason for the update was
6652 * dcache.h (dcache_xfer_memory): Delete declaration.
6653 (dcache_read_memory_partial): New declaration.
6654 (dcache_update): Update prototype.
6655 * target.c (raw_memory_xfer_partial): Update the dcache here.
6656 (memory_xfer_partial_1): Don't handle dcache writes here.
6658 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6660 * remote-sim.c (gdbsim_load): Add const to prog.
6662 2014-03-03 Tom Tromey <tromey@redhat.com>
6664 * elfread.c (probe_key): Change to bfd_data.
6665 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6666 now per-BFD, not per-objfile.
6667 * stap-probe.c (stap_probe_destroy): Update comment.
6668 (handle_stap_probe): Allocate on the per-BFD obstack.
6670 2014-03-03 Tom Tromey <tromey@redhat.com>
6672 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6673 * breakpoint.c (create_longjmp_master_breakpoint): Use
6675 (add_location_to_breakpoint, bkpt_probe_insert_location)
6676 (bkpt_probe_remove_location): Update.
6677 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6678 * elfread.c (elf_symfile_relocate_probe): Remove.
6679 (elf_probe_fns): Update.
6680 (insert_exception_resume_breakpoint): Change type of "probe"
6681 parameter to bound_probe.
6682 (check_exception_resume): Update.
6683 * objfiles.c (objfile_relocate1): Don't relocate probes.
6684 * probe.c (bound_probe_s): New typedef.
6685 (parse_probes): Use get_probe_address. Set sal's objfile.
6686 (find_probe_by_pc): Return a bound_probe.
6687 (collect_probes): Return a VEC(bound_probe_s).
6688 (compare_probes): Update.
6689 (gen_ui_out_table_header_info): Change type of "probes"
6691 (info_probes_for_ops): Update.
6692 (get_probe_address): New function.
6693 (probe_safe_evaluate_at_pc): Update.
6694 * probe.h (struct probe_ops) <get_probe_address>: New field.
6695 <set_semaphore, clear_semaphore>: Add objfile parameter.
6696 (struct probe) <objfile>: Remove field.
6698 <address>: Update comment.
6699 (struct bound_probe): New.
6700 (find_probe_by_pc): Return a bound_probe.
6701 (get_probe_address): Declare.
6702 * solib-svr4.c (struct probe_and_action) <address>: New field.
6703 (hash_probe_and_action, equal_probe_and_action): Update.
6704 (register_solib_event_probe): Add address parameter.
6705 (solib_event_probe_at): Update.
6706 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6708 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6709 (stap_get_probe_address): New function.
6710 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6711 (compile_probe_arg): Update.
6712 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6714 (handle_stap_probe): Don't relocate the probe.
6715 (stap_relocate): Remove.
6716 (stap_gen_info_probes_table_values): Update.
6717 (stap_probe_ops): Remove stap_relocate.
6718 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6719 (debug_sym_probe_fns): Update.
6720 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6721 * symtab.c (init_sal): Use memset.
6722 * symtab.h (struct symtab_and_line) <objfile>: New field.
6723 * tracepoint.c (start_tracing, stop_tracing): Update.
6725 2014-03-03 Tom Tromey <tromey@redhat.com>
6727 * probe.h (parse_probes, find_probe_by_pc)
6728 (find_probes_in_objfile): Fix comments.
6730 2014-03-02 Doug Evans <xdje42@gmail.com>
6732 * infrun.c (handle_signal_stop): Replace test for
6733 TARGET_WAITKIND_STOPPED with an assert.
6735 2014-03-02 Doug Evans <xdje42@gmail.com>
6737 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6739 2014-03-02 Doug Evans <xdje42@gmail.com>
6741 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6743 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6745 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6747 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6749 * i386obsd-nat.c: Include "obsd-nat.h".
6750 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6752 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6754 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6756 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6758 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6760 * mips64obsd-nat.c: Include "obsd-nath".
6761 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6763 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6765 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6767 * amd64obsd-nat.c: Include "obsd-nat,h.
6768 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6770 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6772 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6774 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6775 (find_overload_match): Update call to find_oload_champ.
6776 (find_oload_champ_namespace_loop): Likewise
6778 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6780 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6782 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6783 * config/sparc/obsd64.mh: New file.
6784 * sparc64obsd-nat.c: New file.
6786 * obsd-nat.h: New file.
6787 * obsd-nat.c: New file.
6788 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6789 (ALLDEPFILES): Add obsd-nat.c.
6791 2014-02-28 Tom Tromey <tromey@redhat.com>
6793 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6794 * cli-out.h (cli_ui_out_impl): Now const.
6795 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6796 * ui-out.c (struct ui_out) <impl>: Now const.
6797 (default_ui_out_impl): Now const.
6798 (ui_out_new): Make 'impl' parameter const.
6799 * ui-out.h (ui_out_new): Update.
6801 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6803 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6805 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6807 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6809 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6811 Additional PR 8882 fix.
6812 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6814 2014-02-27 Pedro Alves <palves@redhat.com>
6816 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6819 2014-02-27 Pedro Alves <palves@redhat.com>
6822 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6823 * nat/linux-waitpid.c: Include string.h.
6824 (status_to_str): Moved here and made extern.
6825 * nat/linux-waitpid.h (status_to_str): New declaration.
6827 2014-02-27 Hui Zhu <hui@codesourcery.com>
6830 * infrun.c (ptid_match): Move ...
6831 * common/ptid.c (ptid_match): ... here.
6832 * inferior.h (ptid_match): Move ...
6833 * common/ptid.h (ptid_match): ... here.
6835 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6837 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6838 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6841 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6843 * obsd-tdep.c (obsd_auxv_parse): New function.
6844 (obsd_init_abi): Set auxv_parse.
6846 * gdbarch.sh (auxv_parse): New.
6847 * gdbarch.h: Regenerated.
6848 * gdbarch.c: Regenerated.
6849 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6851 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6853 * guile/scm-value.c (gdbscm_history_append_x): New function.
6854 (value_functions): Add it.
6856 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6858 * dwarf2read.c (attr_value_as_address): New function.
6859 (dwarf2_find_base_address, read_call_site_scope): Use
6860 attr_value_as_address in place of DW_ADDR.
6861 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6862 the low and high addresses. Slight rework of the handling
6863 of the high pc being a constant form, and limit it to
6864 DWARF verson 4 or higher.
6865 (dwarf2_record_block_ranges): Likewise.
6866 (read_partial_die): Likewise.
6867 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6869 2014-02-26 Tom Tromey <tromey@redhat.com>
6871 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6873 2014-02-26 Tom Tromey <tromey@redhat.com>
6875 * elfread.c (elf_read_minimal_symbols): Return early if
6876 minimal symbols have already been read. Add "ei" parameter.
6877 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6878 * minsyms.c (prim_record_minimal_symbol_full): Update.
6879 * objfiles.h (struct objstats) <n_minsyms>: Move...
6880 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6881 * symmisc.c (print_objfile_statistics): Update.
6883 2014-02-26 Tom Tromey <tromey@redhat.com>
6885 * elfread.c (elf_read_minimal_symbols): New function, from
6887 (elf_symfile_read): Call it.
6889 2014-02-26 Tom Tromey <tromey@redhat.com>
6891 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6892 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6893 (lookup_minimal_symbol_solib_trampoline)
6894 (lookup_minimal_symbol_by_pc_section_1)
6895 (lookup_minimal_symbol_and_objfile): Update.
6896 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6897 Don't allocate a minimal symbol if minsyms have already been read.
6898 (build_minimal_symbol_hash_tables): Update.
6899 (install_minimal_symbols): Do nothing if minsyms already read.
6900 Use the per-BFD obstack.
6901 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6902 * objfiles.c (allocate_objfile): Call
6903 terminate_minimal_symbol_table later.
6904 (have_minimal_symbols): Update.
6905 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6906 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6907 Move from struct objfile.
6908 <minsyms_read>: New field.
6909 (struct objfile) <msymbols, minimal_symbol_count,
6910 msymbol_hash, msymbol_demangled_hash>: Move.
6911 (ALL_OBJFILE_MSYMBOLS): Update.
6912 * symfile.c (read_symbols): Set minsyms_read.
6913 (reread_symbols): Update.
6914 * symmisc.c (dump_objfile, dump_msymbols): Update.
6916 2014-02-26 Tom Tromey <tromey@redhat.com>
6918 * minsyms.c (msymbols_sort): Remove.
6919 * minsyms.h (msymbols_sort): Remove.
6920 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6921 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6922 * elfread.c (elf_symtab_read): Don't add section offsets.
6923 * xcoffread.c (record_minimal_symbol): Don't add section offset
6924 to minimal symbol address.
6925 * somread.c (text_offset, data_offset): Remove.
6926 (som_symtab_read): Don't add section offsets to minimal symbol
6928 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6929 Don't add section offsets to minimal symbols.
6930 * coffread.c (coff_symtab_read): Don't add section offsets
6931 to minimal symbol addresses.
6932 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6933 to minimal symbol addresses.
6934 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6935 section offset to minimal symbol addresses.
6936 * mdebugread.c (parse_partial_symbols): Don't add section
6937 offset to minimal symbol addresses.
6938 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6939 offset to minimal symbol addresses.
6941 2014-02-26 Tom Tromey <tromey@redhat.com>
6943 * ada-lang.c (ada_main_name): Update.
6944 (ada_add_standard_exceptions): Update.
6945 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6946 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6947 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6948 * auxv.c (ld_so_xfer_auxv): Update.
6949 * avr-tdep.c (avr_scan_prologue): Update.
6950 * ax-gdb.c (gen_var_ref): Update.
6951 * blockframe.c (get_pc_function_start)
6952 (find_pc_partial_function_gnu_ifunc): Update.
6953 * breakpoint.c (create_overlay_event_breakpoint)
6954 (create_longjmp_master_breakpoint)
6955 (create_std_terminate_master_breakpoint)
6956 (create_exception_master_breakpoint): Update.
6957 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6958 * c-valprint.c (c_val_print): Update.
6959 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6960 * common/agent.c (agent_look_up_symbols): Update.
6961 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6962 * dwarf2loc.c (call_site_to_target_addr): Update.
6963 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6964 * elfread.c (elf_gnu_ifunc_record_cache)
6965 (elf_gnu_ifunc_resolve_by_got): Update.
6966 * findvar.c (default_read_var_value): Update.
6967 * frame.c (inside_main_func): Update.
6968 * frv-tdep.c (frv_frame_this_id): Update.
6969 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6970 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6972 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6973 (hppa_hpux_find_dummy_bpaddr): Update.
6974 * hppa-tdep.c (hppa_symbol_address): Update.
6975 * infcmd.c (until_next_command): Update.
6976 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6978 * linespec.c (minsym_found, add_minsym): Update.
6979 * linux-nat.c (get_signo): Update.
6980 * linux-thread-db.c (inferior_has_bug): Update.
6981 * m32c-tdep.c (m32c_return_value)
6982 (m32c_m16c_address_to_pointer): Update.
6983 * m32r-tdep.c (m32r_frame_this_id): Update.
6984 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6985 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6986 * maint.c (maintenance_translate_address): Update.
6987 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6988 (frob_address): New function.
6989 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6990 frob_address. Rename parameter to "pc_in".
6991 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6993 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6995 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6996 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6997 * objc-lang.c (find_objc_msgsend): Update.
6998 * objfiles.c (objfile_relocate1): Update.
6999 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7000 * p-valprint.c (pascal_val_print): Update.
7001 * parse.c (write_exp_msymbol): Update.
7002 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7003 (ppc_elfv2_skip_entrypoint): Update.
7004 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7005 * printcmd.c (build_address_symbolic, msym_info)
7006 (address_info): Update.
7007 * proc-service.c (ps_pglobal_lookup): Update.
7008 * psymtab.c (find_pc_sect_psymtab_closer)
7009 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7010 Change msymbol parameter to bound_minimal_symbol.
7011 * ravenscar-thread.c (get_running_thread_id): Update.
7012 * remote.c (remote_check_symbols): Update.
7013 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7015 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7016 * solib-dsbt.c (lm_base): Update.
7017 * solib-frv.c (lm_base, main_got): Update.
7018 * solib-irix.c (locate_base): Update.
7019 * solib-som.c (som_solib_create_inferior_hook)
7020 (link_map_start): Update.
7021 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7022 * solib-svr4.c (elf_locate_base, enable_break): Update.
7023 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7024 (flush_ea_cache): Update.
7025 * stabsread.c (define_symbol, scan_file_globals): Update.
7026 * stack.c (find_frame_funname): Update.
7027 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7028 (debug_qf_find_pc_sect_symtab): Update.
7029 * symfile.c (simple_read_overlay_table)
7030 (simple_overlay_update): Update.
7031 * symfile.h (struct quick_symbol_functions)
7032 <find_pc_sect_symtab>: Change type of msymbol to
7033 bound_minimal_symbol.
7034 * symmisc.c (dump_msymbols): Update.
7035 * symtab.c (find_pc_sect_symtab_via_partial)
7036 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7037 (search_symbols, print_msymbol_info): Update.
7038 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7039 (MSYMBOL_VALUE_ADDRESS): Redefine.
7040 (BMSYMBOL_VALUE_ADDRESS): New macro.
7041 * tracepoint.c (scope_info): Update.
7042 * tui/tui-disasm.c (tui_find_disassembly_address)
7043 (tui_get_begin_asm_address): Update.
7044 * valops.c (find_function_in_inferior): Update.
7045 * value.c (value_static_field, value_fn_field): Update.
7047 2014-02-26 Tom Tromey <tromey@redhat.com>
7049 * ada-lang.c (ada_update_initial_language): Update.
7050 (ada_main_name, ada_has_this_exception_support): Update.
7051 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7052 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7053 * arm-tdep.c (arm_skip_stub): Update.
7054 * auxv.c (ld_so_xfer_auxv): Update.
7055 * avr-tdep.c (avr_scan_prologue): Update.
7056 * ax-gdb.c (gen_var_ref): Update.
7057 * breakpoint.c (struct breakpoint_objfile_data)
7058 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7059 type to bound_minimal_symbol.
7060 (create_overlay_event_breakpoint)
7061 (create_longjmp_master_breakpoint)
7062 (create_std_terminate_master_breakpoint)
7063 (create_exception_master_breakpoint): Update.
7064 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7065 * c-exp.y (classify_name): Update.
7066 * coffread.c (coff_symfile_read): Update.
7067 * common/agent.c (agent_look_up_symbols): Update.
7068 * d-lang.c (d_main_name): Update.
7069 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7070 * dec-thread.c (enable_dec_thread): Update.
7071 * dwarf2loc.c (call_site_to_target_addr): Update.
7072 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7073 * eval.c (evaluate_subexp_standard): Update.
7074 * findvar.c (struct minsym_lookup_data) <result>: Change type
7075 to bound_minimal_symbol.
7077 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7078 * frame.c (inside_main_func): Update.
7079 * frv-tdep.c (frv_frame_this_id): Update.
7080 * gcore.c (call_target_sbrk): Update.
7081 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7082 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7084 * go-lang.c (go_main_name): Update.
7085 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7086 (hppa_hpux_find_import_stub_for_addr): Update.
7087 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7088 Update. Change return type.
7089 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7091 * jit.c (jit_breakpoint_re_set_internal): Update.
7092 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7094 * linux-nat.c (get_signo): Update.
7095 * linux-thread-db.c (inferior_has_bug): Update
7096 * m32c-tdep.c (m32c_return_value)
7097 (m32c_m16c_address_to_pointer): Update.
7098 * m32r-tdep.c (m32r_frame_this_id): Update.
7099 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7100 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7101 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7102 lookup_minimal_symbol. Change return type.
7103 (lookup_minimal_symbol): Remove.
7104 (lookup_bound_minimal_symbol): Update.
7105 (lookup_minimal_symbol_text): Change return type.
7106 (lookup_minimal_symbol_solib_trampoline): Change return type.
7107 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7108 (lookup_minimal_symbol_solib_trampoline): Change return type.
7109 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7110 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7111 (value_nsstring, find_imps): Update.
7112 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7113 * p-lang.c (pascal_main_name): Update.
7114 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7115 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7116 * proc-service.c (ps_pglobal_lookup): Update.
7117 * ravenscar-thread.c (get_running_thread_msymbol): Change
7119 (has_ravenscar_runtime, get_running_thread_id): Update.
7120 * remote.c (remote_check_symbols): Update.
7121 * sol-thread.c (ps_pglobal_lookup): Update.
7122 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7123 * solib-dsbt.c (lm_base): Update.
7124 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7126 * solib-irix.c (locate_base): Update.
7127 * solib-som.c (som_solib_create_inferior_hook)
7128 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7130 * solib-spu.c (spu_enable_break): Update.
7131 * solib-svr4.c (elf_locate_base, enable_break): Update.
7132 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7133 (flush_ea_cache): Update.
7134 * stabsread.c (define_symbol): Update.
7135 * symfile.c (simple_read_overlay_table): Update.
7136 * symtab.c (find_pc_sect_line): Update.
7137 * tracepoint.c (scope_info): Update.
7138 * tui-disasm.c (tui_get_begin_asm_address): Update.
7139 * value.c (value_static_field): Update.
7141 2014-02-26 Tom Tromey <tromey@redhat.com>
7143 * minsyms.c (prim_record_minimal_symbol_full): Use
7144 SET_MSYMBOL_VALUE_ADDRESS.
7145 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7146 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7147 SET_MSYMBOL_VALUE_ADDRESS.
7148 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7149 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7151 2014-02-26 Tom Tromey <tromey@redhat.com>
7153 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7154 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7155 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7156 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7157 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7158 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7159 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7160 * ada-lang.c (ada_main_name): Update.
7161 (ada_lookup_simple_minsym): Update.
7162 (ada_make_symbol_completion_list): Update.
7163 (ada_add_standard_exceptions): Update.
7164 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7165 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7166 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7167 * arm-tdep.c (skip_prologue_function): Update.
7168 (arm_skip_stack_protector, arm_skip_stub): Update.
7169 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7170 (arm_wince_skip_main_prologue): Update.
7171 * auxv.c (ld_so_xfer_auxv): Update.
7172 * avr-tdep.c (avr_scan_prologue): Update.
7173 * ax-gdb.c (gen_var_ref): Update.
7174 * block.c (call_site_for_pc): Update.
7175 * blockframe.c (get_pc_function_start): Update.
7176 (find_pc_partial_function_gnu_ifunc): Update.
7177 * breakpoint.c (create_overlay_event_breakpoint): Update.
7178 (create_longjmp_master_breakpoint): Update.
7179 (create_std_terminate_master_breakpoint): Update.
7180 (create_exception_master_breakpoint): Update.
7181 (resolve_sal_pc): Update.
7182 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7183 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7185 * c-valprint.c (c_val_print): Update.
7186 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7187 * coffread.c (coff_symfile_read): Update.
7188 * common/agent.c (agent_look_up_symbols): Update.
7189 * dbxread.c (find_stab_function_addr): Update.
7190 (end_psymtab): Update.
7191 * dwarf2loc.c (call_site_to_target_addr): Update.
7192 (func_verify_no_selftailcall): Update.
7193 (tailcall_dump): Update.
7194 (call_site_find_chain_1): Update.
7195 (dwarf_expr_reg_to_entry_parameter): Update.
7196 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7197 (elf_gnu_ifunc_resolve_by_got): Update.
7198 * f-valprint.c (info_common_command): Update.
7199 * findvar.c (read_var_value): Update.
7200 * frame.c (get_prev_frame_1): Update.
7201 (inside_main_func): Update.
7202 * frv-tdep.c (frv_skip_main_prologue): Update.
7203 (frv_frame_this_id): Update.
7204 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7205 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7206 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7207 (gnuv3_skip_trampoline): Update.
7208 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7209 (hppa64_hpux_in_solib_call_trampoline): Update.
7210 (hppa_hpux_skip_trampoline_code): Update.
7211 (hppa64_hpux_search_dummy_call_sequence): Update.
7212 (hppa_hpux_find_import_stub_for_addr): Update.
7213 (hppa_hpux_find_dummy_bpaddr): Update.
7214 * hppa-tdep.c (hppa_symbol_address)
7215 (hppa_lookup_stub_minimal_symbol): Update.
7216 * i386-tdep.c (i386_skip_main_prologue): Update.
7217 (i386_pe_skip_trampoline_code): Update.
7218 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7219 * infcall.c (get_function_name): Update.
7220 * infcmd.c (until_next_command): Update.
7221 * jit.c (jit_breakpoint_re_set_internal): Update.
7222 (jit_inferior_init): Update.
7223 * linespec.c (minsym_found): Update.
7224 (add_minsym): Update.
7225 * linux-fork.c (info_checkpoints_command): Update.
7226 * linux-nat.c (get_signo): Update.
7227 * linux-thread-db.c (inferior_has_bug): Update.
7228 * m32c-tdep.c (m32c_return_value): Update.
7229 (m32c_m16c_address_to_pointer): Update.
7230 (m32c_m16c_pointer_to_address): Update.
7231 * m32r-tdep.c (m32r_frame_this_id): Update.
7232 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7233 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7234 * maint.c (maintenance_translate_address): Update.
7235 * minsyms.c (add_minsym_to_hash_table): Update.
7236 (add_minsym_to_demangled_hash_table): Update.
7237 (msymbol_objfile): Update.
7238 (lookup_minimal_symbol): Update.
7239 (iterate_over_minimal_symbols): Update.
7240 (lookup_minimal_symbol_text): Update.
7241 (lookup_minimal_symbol_by_pc_name): Update.
7242 (lookup_minimal_symbol_solib_trampoline): Update.
7243 (lookup_minimal_symbol_by_pc_section_1): Update.
7244 (lookup_minimal_symbol_and_objfile): Update.
7245 (prim_record_minimal_symbol_full): Update.
7246 (compare_minimal_symbols): Update.
7247 (compact_minimal_symbols): Update.
7248 (build_minimal_symbol_hash_tables): Update.
7249 (install_minimal_symbols): Update.
7250 (terminate_minimal_symbol_table): Update.
7251 (find_solib_trampoline_target): Update.
7252 (minimal_symbol_upper_bound): Update.
7253 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7254 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7255 (mips_skip_pic_trampoline_code): Update.
7256 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7257 * objc-lang.c (selectors_info): Update.
7258 (classes_info): Update.
7259 (find_methods): Update.
7260 (find_imps): Update.
7261 (find_objc_msgsend): Update.
7262 * objfiles.c (objfile_relocate1): Update.
7263 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7264 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7265 * p-valprint.c (pascal_val_print): Update.
7266 * parse.c (write_exp_msymbol): Update.
7267 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7268 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7269 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7270 * printcmd.c (build_address_symbolic): Update.
7272 (address_info): Update.
7273 * proc-service.c (ps_pglobal_lookup): Update.
7274 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7275 (find_pc_sect_psymtab): Update.
7276 * python/py-framefilter.c (py_print_frame): Update.
7277 * ravenscar-thread.c (get_running_thread_id): Update.
7278 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7280 * remote.c (remote_check_symbols): Update.
7281 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7282 (rs6000_skip_trampoline_code): Update.
7283 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7284 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7285 * solib-dsbt.c (lm_base): Update.
7286 * solib-frv.c (lm_base): Update.
7288 * solib-irix.c (locate_base): Update.
7289 * solib-som.c (som_solib_create_inferior_hook): Update.
7290 (som_solib_desire_dynamic_linker_symbols): Update.
7291 (link_map_start): Update.
7292 * solib-spu.c (spu_enable_break): Update.
7293 (ocl_enable_break): Update.
7294 * solib-svr4.c (elf_locate_base): Update.
7295 (enable_break): Update.
7296 * spu-tdep.c (spu_get_overlay_table): Update.
7297 (spu_catch_start): Update.
7298 (flush_ea_cache): Update.
7299 * stabsread.c (define_symbol): Update.
7300 (scan_file_globals): Update.
7301 * stack.c (find_frame_funname): Update.
7302 (frame_info): Update.
7303 * symfile.c (simple_read_overlay_table): Update.
7304 (simple_overlay_update): Update.
7305 * symmisc.c (dump_msymbols): Update.
7306 * symtab.c (fixup_section): Update.
7307 (find_pc_sect_line): Update.
7308 (skip_prologue_sal): Update.
7309 (search_symbols): Update.
7310 (print_msymbol_info): Update.
7311 (rbreak_command): Update.
7312 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7313 (completion_list_objc_symbol): Update.
7314 (default_make_symbol_completion_list_break_on): Update.
7315 * tracepoint.c (scope_info): Update.
7316 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7317 (tui_get_begin_asm_address): Update.
7318 * valops.c (find_function_in_inferior): Update.
7319 * value.c (value_static_field): Update.
7320 (value_fn_field): Update.
7322 2014-02-26 Tom Tromey <tromey@redhat.com>
7324 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7325 bound minimal symbols. Move code that knows about minsym
7327 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7329 * minsyms.h (minimal_symbol_upper_bound): Declare.
7330 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7331 minimal_symbol_upper_bound.
7333 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7335 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7336 Use the type's name if its basic type does not have a tag.
7338 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7340 * dwarf2read.c (read_subrange_type): Add comment.
7342 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7344 * dwarf2read.c (update_enumeration_type_from_children): New
7345 function, mostly extracted from process_structure_scope.
7346 (read_enumeration_type): Call update_enumeration_type_from_children.
7347 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7348 and flag_flag_enum fields.
7350 2014-02-26 Pedro Alves <palves@redhat.com>
7352 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7353 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7354 to_xfer_partial method.
7356 2014-02-26 Pedro Alves <palves@redhat.com>
7358 * target.c (complete_target_initialization): Don't install
7359 default_xfer_partial as to_xfer_partial hook.
7361 (update_current_target): Don't INHERIT nor de_fault
7362 deprecated_xfer_memory. Delete de_fault macro.
7363 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7364 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7365 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7368 2014-02-26 Pedro Alves <palves@redhat.com>
7370 * go32-nat.c (my_write_child): New function.
7371 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7372 (go32_xfer_partial): New function.
7373 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7374 Instead install a to_xfer_partial hook.
7376 2014-02-26 Pedro Alves <palves@redhat.com>
7378 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7379 to_xfer_partial helper. Rewrite.
7380 (procfs_xfer_partial): New function.
7381 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7382 Install a to_xfer_partial hook.
7384 2014-02-26 Pedro Alves <palves@redhat.com>
7386 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7387 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7388 (m32r_xfer_partial): New function.
7389 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7390 Install a to_xfer_partial hook.
7392 2014-02-26 Pedro Alves <palves@redhat.com>
7394 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7396 (mips_xfer_partial): New function.
7397 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7398 hook. Install a to_xfer_partial hook.
7400 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7402 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7403 * gdbtypes.c (create_array_type_with_stride): New function,
7404 renaming create_array_type, but with an added parameter
7405 called "bit_stride".
7406 (create_array_type): Re-implement using
7407 create_array_type_with_stride.
7408 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7409 and DW_AT_bit_stride attributes.
7411 2014-02-26 Pedro Alves <palves@redhat.com>
7413 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7414 task-specific breakpoints.
7416 2014-02-25 Pedro Alves <palves@redhat.com>
7418 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7419 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7421 2014-02-25 Stan Shebs <stan@codesourcery.com>
7423 * defs.h: Annotate comments for Doxygen.
7425 2014-02-25 Tom Tromey <tromey@redhat.com>
7427 * target.h (target_ignore): Don't declare.
7428 * target.c (target_ignore): Remove.
7430 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7433 * auto-load.c (auto_load_objfile_script_1): Change filename to
7436 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7438 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7439 documentation. Adjust prototype to match the target_ops
7440 to_xfer_partial method. Adjust implementation accordingly.
7442 2014-02-25 Hui Zhu <hui@codesourcery.com>
7444 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7447 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7449 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7450 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7451 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7452 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7453 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7454 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7455 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7456 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7458 (rl78_register_type): Use a data pointer type for SP and
7459 new pseudo registers mentioned above. Use a 16 bit integer
7460 type for all other register pairs.
7461 (rl78_register_name, rl78_g10_register_name): Update for
7462 new pseudo registers.
7463 (rl78_pseudo_register_read): Likewise.
7464 (rl78_pseudo_register_write): Likewise.
7465 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7466 to the newly added pseudo registers.
7468 2014-02-24 Doug Evans <dje@google.com>
7470 * value.c (record_latest_value): Fix comment.
7471 * printcmd.c (print_command_1): Remove code to handle -1 return from
7472 record_latest_value.
7474 2014-02-24 Pedro Alves <palves@redhat.com>
7476 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7477 deprecated_xfer_memory hook.
7478 (procfs_xfer_partial): Call procfs_xfer_memory instead
7479 of the deprecated_xfer_memory target hook.
7480 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7483 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7485 * windows-nat.c (windows_xfer_shared_libraries): Return
7486 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7487 requested object is TARGET_OBJECT_LIBRARIES.
7489 2014-02-24 Yao Qi <yao@codesourcery.com>
7491 * target.h (enum target_xfer_status)
7492 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7493 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7495 * corefile.c (memory_error_message): User updated.
7496 * exec.c (section_table_read_available_memory): Likewise.
7497 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7498 * target.c (target_xfer_status_to_string): Likewise.
7499 (raw_memory_xfer_partial): Likewise.
7500 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7501 * valops.c (read_value_memory): Likewise.
7502 * exec.h: Update comments.
7504 2014-02-24 Yao Qi <yao@codesourcery.com>
7506 * target.c (target_xfer_status_to_string): Rename argument err
7508 * target.h (target_xfer_status_to_string): Update declaration.
7509 Replace target_xfer_error_to_string with
7510 target_xfer_status_to_string in comment.
7512 2014-02-24 Yao Qi <yao@codesourcery.com>
7514 * mips-linux-nat.c (super_close): Update its type.
7515 (mips_linux_close): Pass 'self' to super_close.
7517 2014-02-24 Yao Qi <yao@codesourcery.com>
7519 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7520 * corefile.c (read_memory): Adjusted.
7521 * target.c (target_write_with_progress): Adjusted.
7523 2014-02-23 Yao Qi <yao@codesourcery.com>
7527 2013-10-25 Yao Qi <yao@codesourcery.com>
7529 * remote.c (remote_traceframe_info): Return early if
7530 traceframe is not selected.
7532 2013-07-19 Yao Qi <yao@codesourcery.com>
7534 * target.c (update_current_target): Change the default action
7535 of 'to_traceframe_info' from tcomplain to return_zero.
7536 * target.h (struct target_ops) <to_traceframe_info>: Add more
7539 2014-02-23 Yao Qi <yao@codesourcery.com>
7541 * valops.c (read_value_memory): Rewrite it. Call
7542 target_xfer_partial in a loop.
7543 * exec.h (section_table_available_memory): Remove declaration.
7544 Move comments to ...
7545 * exec.c (section_table_available_memory): ... here. Make it
7548 2014-02-23 Yao Qi <yao@codesourcery.com>
7550 * exec.c (section_table_read_available_memory): New function.
7551 * exec.h (section_table_read_available_memory): Declare.
7552 * ctf.c (ctf_xfer_partial): Call
7553 section_table_read_available_memory.
7554 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7556 2014-02-23 Yao Qi <yao@codesourcery.com>
7558 * ctf.c (ctf_xfer_partial): Move code to ...
7559 * exec.c (exec_read_partial_read_only): ... it. New function.
7560 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7561 * tracefile.c: Include "exec.h".
7562 * exec.h (exec_read_partial_read_only): Declare.
7564 2014-02-23 Yao Qi <yao@codesourcery.com>
7566 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7567 (tfile_has_memory): Remove.
7568 (init_tfile_ops): Don't set fields to_has_all_memory and
7569 to_has_memory of tfile_ops.
7570 * tracefile.c (tracefile_has_all_memory): New function.
7571 (tracefile_has_memory): New function.
7572 (init_tracefile_ops): Initialize fields to_has_all_memory and
7573 to_has_memory of 'ops'.
7575 2014-02-23 Yao Qi <yao@codesourcery.com>
7577 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7578 (ctf_thread_alive, ctf_get_trace_status): Remove.
7579 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7581 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7582 (tfile_has_stack, tfile_has_registers): Remove.
7583 (tfile_thread_alive): Remove.
7584 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7586 * tracefile.c (tracefile_has_stack): New function.
7587 (tracefile_has_registers): New function.
7588 (tracefile_thread_alive): New function.
7589 (tracefile_get_trace_status): New function.
7590 (init_tracefile_ops): New function.
7591 * tracefile.h (init_tracefile_ops): Declare.
7593 2014-02-23 Yao Qi <yao@codesourcery.com>
7595 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7596 (O_LARGEFILE): Likewise.
7597 (tfile_ops): Likewise.
7598 (TRACE_HEADER_SIZE): Likewise.
7599 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7600 (cur_data_size): Likewise.
7601 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7602 (tfile_close, tfile_files_info): Likewise.
7603 (tfile_get_trace_status): Likewise.
7604 (tfile_get_tracepoint_status): Likewise.
7605 (tfile_get_traceframe_address): Likewise.
7606 (tfile_trace_find, match_blocktype): Likewise.
7607 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7608 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7609 (tfile_get_trace_state_variable_value): Likewise.
7610 (tfile_has_all_memory, tfile_has_memory): Likewise.
7611 (tfile_has_stack, tfile_has_registers): Likewise.
7612 (tfile_thread_alive, build_traceframe_info): Likewise.
7613 (tfile_traceframe_info, init_tfile_ops): Likewise.
7614 (_initialize_tracepoint): Don't call init_tfile_ops
7615 and add_target_with_completer.
7616 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7617 exec.h, completer.h and filenames.h.
7618 (_initialize_tracefile_tfile): New function.
7620 2014-02-23 Yao Qi <yao@codesourcery.com>
7622 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7624 (HFILES_NO_SRCDIR): Add tracefile.h.
7625 * ctf.c: Include "tracefile.h".
7626 * tracefile.h: New file.
7627 * tracefile.c: New file
7628 * tracefile-tfile.c: New file.
7629 * tracepoint.c: Include "tracefile.h".
7630 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7631 (stop_reason_names): Add const.
7632 (trace_file_writer_xfree): Move it to tracefile.c.
7633 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7634 (trace_save_ctf): Likewise.
7635 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7636 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7637 (tfile_write_header, tfile_write_regblock_type): Likewise.
7638 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7639 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7640 (tfile_write_raw_data, tfile_end): Likewise.
7641 (tfile_trace_file_writer_new): Likewise.
7642 (free_uploaded_tp): Make it extern.
7643 (free_uploaded_tsv): Make it extern.
7644 (_initialize_tracepoint): Move code to register command 'tsave'
7646 * tracepoint.h (stop_reason_names): Declare.
7647 (struct trace_frame_write_ops): Move it to tracefile.h.
7648 (struct trace_file_write_ops): Likewise.
7649 (struct trace_file_writer): Likewise.
7650 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7652 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7655 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7657 (get_cores_used_by_process): New parameter num_cores, use it.
7658 (linux_xfer_osdata_processes): Pass num_cores to it.
7659 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7662 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7664 * target.c (memory_xfer_partial): Fix length arg in call to
7665 breakpoint_xfer_memory.
7667 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7670 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7671 number comes after the + or - signs. Adjust length of register
7672 name to be extracted.
7674 2014-02-20 Tom Tromey <tromey@redhat.com>
7676 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7677 (ada_varobj_ops): Mark "extern".
7679 2014-02-20 Tom Tromey <tromey@redhat.com>
7681 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7683 2014-02-20 Doug Evans <xdje42@gmail.com>
7685 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7686 All callers updated.
7687 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7688 All callers updated.
7689 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7690 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7692 2014-02-20 lin zuojian <manjian2006@gmail.com>
7693 Joel Brobecker <brobecker@adacore.com>
7694 Doug Evans <xdje42@gmail.com>
7697 * dwarf2read.c (struct die_info): New member in_process.
7698 (reset_die_in_process): New function.
7699 (process_die): Set it at the start, reset when returning.
7700 (inherit_abstract_dies): Only call process_die if origin_child_die
7701 not already being processed.
7703 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7705 * windows-nat.c (handle_unload_dll): Add function documentation.
7706 (do_initial_windows_stuff): Add comment explaining why we wait
7707 until after inferior initialization has finished before
7708 processing all DLLs.
7710 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7712 * windows-nat.c (get_module_name): Delete.
7713 (windows_get_exec_module_filename): New function, mostly
7714 inspired from get_module_name.
7715 (windows_pid_to_exec_file): Replace call to get_module_name
7716 by call to windows_get_exec_module_filename.
7718 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7720 * windows-nat.c (handle_load_dll): Rewrite this function's
7721 introductory comment. Remove code using get_module_name
7722 to get the DLL's name.
7724 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7726 * windows-nat.c (get_windows_debug_event): Ignore
7727 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7728 if windows_initialization_done == 0.
7729 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7730 Adjust implementation to always load all DLLs.
7731 (do_initial_windows_stuff): Replace call to
7732 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7734 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7736 * windows-nat.c (_initialize_windows_nat): Deprecate the
7737 "dll-symbols" command. Turn the "add-shared-symbol-files"
7738 and "assf" aliases into commands, and deprecate them as well.
7739 * NEWS: Add entry explaining that "dll-symbols" and its two
7740 aliases are now deprecated.
7742 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7744 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7745 new-line in debug string. Remove trailing spaces.
7747 2014-02-19 Stan Shebs <stan@codesourcery.com>
7749 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7751 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7753 * NEWS: Add entry for the new feature
7754 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7757 2014-02-19 Stan Shebs <stan@codesourcery.com>
7759 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7761 2014-02-19 Pedro Alves <palves@redhat.com>
7763 * common/ptid.h (struct ptid): Mention that process_stratum
7764 targets should prefer ptid.lwp.
7766 2014-02-19 Pedro Alves <palves@redhat.com>
7768 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7769 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7770 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7771 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7772 store remote thread ids rather than ptid.tid.
7773 (_initialize_remote): Adjust.
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7777 * target.c (target_get_unwinder): Rewrite.
7778 (target_get_tailcall_unwinder): Rewrite.
7779 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7780 (record_btrace_to_get_tailcall_unwinder): New function.
7781 (init_record_btrace_ops): Update.
7782 * target.h (struct target_ops) <to_get_unwinder,
7783 to_get_tailcall_unwinder>: Now function pointers. Use
7784 TARGET_DEFAULT_RETURN.
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7788 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7790 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7792 2014-02-19 Tom Tromey <tromey@redhat.com>
7794 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7796 * target-delegates.c: Rebuild.
7797 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7798 TARGET_DEFAULT_FUNC.
7799 * target.c (default_target_decr_pc_after_break): Rename from
7800 forward_target_decr_pc_after_break. Simplify.
7801 (target_decr_pc_after_break): Rely on delegation.
7803 2014-02-19 Tom Tromey <tromey@redhat.com>
7805 * target.c (update_current_target): Do not INHERIT to_doc or
7806 to_magic. Do not de_fault to_open or to_close.
7808 2014-02-19 Tom Tromey <tromey@redhat.com>
7810 * gcore.h (objfile_find_memory_regions): Declare.
7811 * gcore.c (objfile_find_memory_regions): No longer static. Add
7813 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7814 * exec.c: Include gcore.h.
7815 (exec_set_find_memory_regions): Remove.
7816 (exec_find_memory_regions): Remove.
7817 (exec_do_find_memory_regions): Remove.
7818 (init_exec_ops): Update.
7819 * defs.h (exec_set_find_memory_regions): Remove.
7821 2014-02-19 Tom Tromey <tromey@redhat.com>
7823 * target-delegates.c: Rebuild.
7824 * target.h (struct target_ops) <to_extra_thread_info,
7825 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7826 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7827 not 0, in TARGET_DEFAULT_RETURN.
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7831 * target.c (complete_target_initialization): Remove casts. Use
7832 return_zero_has_execution.
7833 (return_zero): Add "ignore" argument.
7834 (return_zero_has_execution): New function.
7835 (init_dummy_target): Remove casts. Use
7836 return_zero_has_execution.
7838 2014-02-19 Tom Tromey <tromey@redhat.com>
7840 * target.c (update_current_target): Update comments. Do not
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7845 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7847 * corelow.c (core_read_description): Delegate when needed.
7848 * remote.c (remote_read_description): Delegate when needed.
7849 * target-delegates.c: Rebuild.
7850 * target.c (target_read_description): Rewrite.
7851 * target.h (struct target_ops) <to_read_description>: Update
7852 comment. Use TARGET_DEFAULT_RETURN.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * target-delegates.c: Rebuild.
7857 * target.c (update_current_target): Don't inherit or default
7859 (find_default_run_target): Check against delegate_can_run.
7860 * target.h (struct target_ops) <to_can_run>: Use
7861 TARGET_DEFAULT_RETURN.
7863 2014-02-19 Tom Tromey <tromey@redhat.com>
7865 * target-delegates.c: Rebuild.
7866 * target.c (target_disconnect): Unconditionally delegate.
7867 * target.h (struct target_ops) <to_disconnect>: Use
7868 TARGET_DEFAULT_NORETURN.
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7872 * record.c (record_stop): Unconditionally delegate.
7873 * target-delegates.c: Rebuild.
7874 * target.c (target_stop_recording): Unconditionally delegate.
7875 * target.h (struct target_ops) <to_stop_recording>: Use
7876 TARGET_DEFAULT_IGNORE.
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7880 * target-delegates.c: Rebuild.
7881 * target.c (target_enable_btrace): Unconditionally delegate.
7882 * target.h (struct target_ops) <to_enable_btrace>: Use
7883 TARGET_DEFAULT_NORETURN.
7885 2014-02-19 Tom Tromey <tromey@redhat.com>
7887 * target-delegates.c: Rebuild.
7888 * target.c (target_read_btrace): Unconditionally delegate.
7889 * target.h (struct target_ops) <to_read_btrace>: Use
7890 TARGET_DEFAULT_NORETURN.
7892 2014-02-19 Tom Tromey <tromey@redhat.com>
7894 * target-delegates.c: Rebuild.
7895 * target.c (target_teardown_btrace): Unconditionally delegate.
7896 * target.h (struct target_ops) <to_teardown_btrace>: Use
7897 TARGET_DEFAULT_NORETURN.
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7901 * target-delegates.c: Rebuild.
7902 * target.c (target_disable_btrace): Unconditionally delegate.
7903 * target.h (struct target_ops) <to_disable_btrace>: Use
7904 TARGET_DEFAULT_NORETURN.
7906 2014-02-19 Tom Tromey <tromey@redhat.com>
7908 * target-delegates.c: Rebuild.
7909 * target.c (default_search_memory): New function.
7910 (simple_search_memory): Update comment.
7911 (target_search_memory): Unconditionally delegate.
7912 * target.h (struct target_ops) <to_search_memory>: Use
7913 TARGET_DEFAULT_FUNC.
7915 2014-02-19 Tom Tromey <tromey@redhat.com>
7917 * auxv.c (default_auxv_parse): No longer static.
7918 (target_auxv_parse): Unconditionally delegate.
7919 * auxv.h (default_auxv_parse): Declare.
7920 * target-delegates.c: Rebuild.
7921 * target.c: Include auxv.h.
7922 * target.h (struct target_ops) <to_auxv_parse>: Use
7923 TARGET_DEFAULT_FUNC.
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target-delegates.c: Rebuild.
7928 * target.c (target_memory_map): Unconditionally delegate.
7929 * target.h (struct target_ops) <to_memory_map>: Use
7930 TARGET_DEFAULT_RETURN.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target-delegates.c: Rebuild.
7935 * target.c (target_thread_alive): Unconditionally delegate.
7936 * target.h (struct target_ops) <to_thread_alive>: Use
7937 TARGET_DEFAULT_RETURN.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target-delegates.c: Rebuild.
7942 * target.c (target_save_record): Unconditionally delegate.
7943 * target.h (struct target_ops) <to_save_record>: Use
7944 TARGET_DEFAULT_NORETURN.
7946 2014-02-19 Tom Tromey <tromey@redhat.com>
7948 * target-delegates.c: Rebuild.
7949 * target.c (target_delete_record): Unconditionally delegate.
7950 * target.h (struct target_ops) <to_delete_record>: Use
7951 TARGET_DEFAULT_NORETURN.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * target-delegates.c: Rebuild.
7956 * target.c (target_record_is_replaying): Unconditionally
7958 * target.h (struct target_ops) <to_record_is_replaying>: Use
7959 TARGET_DEFAULT_RETURN.
7961 2014-02-19 Tom Tromey <tromey@redhat.com>
7963 * target-delegates.c: Rebuild.
7964 * target.c (target_goto_record_begin): Unconditionally delegate.
7965 * target.h (struct target_ops) <to_goto_record_begin>: Use
7966 TARGET_DEFAULT_NORETURN.
7968 2014-02-19 Tom Tromey <tromey@redhat.com>
7970 * target-delegates.c: Rebuild.
7971 * target.c (target_goto_record_end): Unconditionally delegate.
7972 * target.h (struct target_ops) <to_goto_record_end>: Use
7973 TARGET_DEFAULT_NORETURN.
7975 2014-02-19 Tom Tromey <tromey@redhat.com>
7977 * target-delegates.c: Rebuild.
7978 * target.c (target_goto_record): Unconditionally delegate.
7979 * target.h (struct target_ops) <to_goto_record>: Use
7980 TARGET_DEFAULT_NORETURN.
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7984 * target-delegates.c: Rebuild.
7985 * target.c (target_insn_history): Unconditionally delegate.
7986 * target.h (struct target_ops) <to_insn_history>: Use
7987 TARGET_DEFAULT_NORETURN.
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * target-delegates.c: Rebuild.
7992 * target.c (target_insn_history_from): Unconditionally delegate.
7993 * target.h (struct target_ops) <to_insn_history_from>: Use
7994 TARGET_DEFAULT_NORETURN.
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7998 * target-delegates.c: Rebuild.
7999 * target.c (target_insn_history_range): Unconditionally delegate.
8000 * target.h (struct target_ops) <to_insn_history_range>: Use
8001 TARGET_DEFAULT_NORETURN.
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8005 * target-delegates.c: Rebuild.
8006 * target.c (target_call_history): Unconditionally delegate.
8007 * target.h (struct target_ops) <to_call_history>: Use
8008 TARGET_DEFAULT_NORETURN.
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8012 * target-delegates.c: Rebuild.
8013 * target.c (target_call_history_from): Unconditionally delegate.
8014 * target.h (struct target_ops) <to_call_history_from>: Use
8015 TARGET_DEFAULT_NORETURN.
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target-delegates.c: Rebuild.
8020 * target.c (target_call_history_range): Unconditionally delegate.
8021 * target.h (struct target_ops) <to_call_history_range>: Use
8022 TARGET_DEFAULT_NORETURN.
8024 2014-02-19 Tom Tromey <tromey@redhat.com>
8026 * target-delegates.c: Rebuild.
8027 * target.c (target_verify_memory): Unconditionally delegate.
8028 * target.h (struct target_ops) <to_verify_memory>: Use
8029 TARGET_DEFAULT_NORETURN.
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8033 * target-delegates.c: Rebuild.
8034 * target.c (target_core_of_thread): Unconditionally delegate.
8035 * target.h (struct target_ops) <to_core_of_thread>: Use
8036 TARGET_DEFAULT_RETURN.
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * target-delegates.c: Rebuild.
8041 * target.c (target_flash_done): Unconditionally delegate.
8042 * target.h (struct target_ops) <to_flash_done>: Use
8043 TARGET_DEFAULT_NORETURN.
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8047 * target-delegates.c: Rebuild.
8048 * target.c (target_flash_erase): Unconditionally delegate.
8049 * target.h (struct target_ops) <to_flash_erase>: Use
8050 TARGET_DEFAULT_NORETURN.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target-delegates.c: Rebuild.
8055 * target.c (target_get_section_table): Unconditionally delegate.
8056 * target.h (struct target_ops) <to_get_section_table>: Use
8057 TARGET_DEFAULT_RETURN.
8059 2014-02-19 Tom Tromey <tromey@redhat.com>
8061 * target-delegates.c: Rebuild.
8062 * target.c (target_pid_to_str): Unconditionally delegate.
8063 (init_dummy_target): Don't initialize to_pid_to_str.
8064 (default_pid_to_str): Rename from dummy_pid_to_str.
8065 * target.h (struct target_ops) <to_pid_to_str>: Use
8066 TARGET_DEFAULT_FUNC.
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8070 * target-delegates.c: Rebuild.
8071 * target.c (target_find_new_threads): Unconditionally delegate.
8072 * target.h (struct target_ops) <to_find_new_threads>: Use
8073 TARGET_DEFAULT_RETURN.
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8077 * target-delegates.c: Rebuild.
8078 * target.c (target_program_signals): Unconditionally delegate.
8079 * target.h (struct target_ops) <to_program_signals>: Use
8080 TARGET_DEFAULT_IGNORE.
8082 2014-02-19 Tom Tromey <tromey@redhat.com>
8084 * target-delegates.c: Rebuild.
8085 * target.c (target_pass_signals): Unconditionally delegate.
8086 * target.h (struct target_ops) <to_pass_signals>: Use
8087 TARGET_DEFAULT_IGNORE.
8089 2014-02-19 Tom Tromey <tromey@redhat.com>
8091 * target-delegates.c: Rebuild.
8092 * target.c (default_mourn_inferior): New function.
8093 (target_mourn_inferior): Unconditionally delegate.
8094 * target.h (struct target_ops) <to_mourn_inferior>: Use
8095 TARGET_DEFAULT_FUNC.
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8099 * target-delegates.c: Rebuild.
8100 * target.c (default_follow_fork): New function.
8101 (target_follow_fork): Unconditionally delegate.
8102 * target.h (struct target_ops) <to_follow_fork>: Use
8103 TARGET_DEFAULT_FUNC.
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * target-delegates.c: Rebuild.
8108 * target.c (target_kill): Unconditionally delegate.
8109 * target.h (struct target_ops) <to_kill>: Use
8110 TARGET_DEFAULT_NORETURN.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target-delegates.c: Rebuild.
8115 * target.c (target_masked_watch_num_registers): Unconditionally
8117 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8118 Use TARGET_DEFAULT_RETURN.
8120 2014-02-19 Tom Tromey <tromey@redhat.com>
8122 * target-delegates.c: Rebuild.
8123 * target.c (target_remove_mask_watchpoint): Unconditionally
8125 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8126 TARGET_DEFAULT_RETURN.
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_insert_mask_watchpoint): Unconditionally
8133 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8134 TARGET_DEFAULT_RETURN.
8136 2014-02-19 Tom Tromey <tromey@redhat.com>
8138 * target-delegates.c: Rebuild.
8139 * target.c (target_ranged_break_num_registers): Unconditionally
8141 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8142 Use TARGET_DEFAULT_RETURN.
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target-delegates.c: Rebuild.
8147 * target.c (target_fetch_registers): Unconditionally delegate.
8148 * target.h (struct target_ops) <to_fetch_registers>: Use
8149 TARGET_DEFAULT_NORETURN.
8151 2014-02-19 Tom Tromey <tromey@redhat.com>
8153 * target-delegates.c: Rebuild.
8154 * target.c (update_current_target): Don't inherit or default
8156 * target.h (struct target_ops) <to_stop>: Use
8157 TARGET_DEFAULT_IGNORE.
8159 2014-02-19 Tom Tromey <tromey@redhat.com>
8161 * target-delegates.c: Rebuild.
8162 * target.c (update_current_target): Don't inherit or default
8163 to_can_run_breakpoint_commands.
8164 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8165 Use TARGET_DEFAULT_RETURN.
8167 2014-02-19 Tom Tromey <tromey@redhat.com>
8169 * target-delegates.c: Rebuild.
8170 * target.c (update_current_target): Don't inherit or default
8171 to_supports_evaluation_of_breakpoint_conditions.
8172 * target.h (struct target_ops)
8173 <to_supports_evaluation_of_breakpoint_conditions>: Use
8174 TARGET_DEFAULT_RETURN.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target-delegates.c: Rebuild.
8179 * target.c (update_current_target): Don't inherit or default
8180 to_augmented_libraries_svr4_read.
8181 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8182 Use TARGET_DEFAULT_RETURN.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.c (update_current_target): Don't inherit or default
8189 * target.h (struct target_ops) <to_can_use_agent>: Use
8190 TARGET_DEFAULT_RETURN.
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8194 * target-delegates.c: Rebuild.
8195 * target.c (update_current_target): Don't inherit or default
8197 * target.h (struct target_ops) <to_use_agent>: Use
8198 TARGET_DEFAULT_NORETURN.
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8202 * target-delegates.c: Rebuild.
8203 * target.c (update_current_target): Don't inherit or default
8205 (return_null): Remove.
8206 * target.h (struct target_ops) <to_traceframe_info>: Use
8207 TARGET_DEFAULT_RETURN.
8209 2014-02-19 Tom Tromey <tromey@redhat.com>
8211 * target-delegates.c: Rebuild.
8212 * target.c (update_current_target): Don't inherit or default
8213 to_static_tracepoint_markers_by_strid.
8214 * target.h (struct target_ops)
8215 <to_static_tracepoint_markers_by_strid>: Use
8216 TARGET_DEFAULT_NORETURN.
8218 2014-02-19 Tom Tromey <tromey@redhat.com>
8220 * target-delegates.c: Rebuild.
8221 * target.c (update_current_target): Don't inherit or default
8222 to_static_tracepoint_marker_at.
8223 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8224 Use TARGET_DEFAULT_RETURN.
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target-delegates.c: Rebuild.
8229 * target.c (update_current_target): Don't inherit or default
8231 * target.h (struct target_ops) <to_set_permissions>: Use
8232 TARGET_DEFAULT_IGNORE.
8234 2014-02-19 Tom Tromey <tromey@redhat.com>
8236 * target-delegates.c: Rebuild.
8237 * target.c (update_current_target): Don't inherit or default
8239 * target.h (struct target_ops) <to_get_tib_address>: Use
8240 TARGET_DEFAULT_NORETURN.
8242 2014-02-19 Tom Tromey <tromey@redhat.com>
8244 * target-delegates.c: Rebuild.
8245 * target.c (update_current_target): Don't inherit or default
8247 * target.h (struct target_ops) <to_set_trace_notes>: Use
8248 TARGET_DEFAULT_RETURN.
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8252 * target-delegates.c: Rebuild.
8253 * target.c (update_current_target): Don't initialize
8254 to_set_trace_buffer_size.
8255 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8256 TARGET_DEFAULT_IGNORE.
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target-delegates.c: Rebuild.
8261 * target.c (update_current_target): Don't inherit or default
8262 to_set_circular_trace_buffer.
8263 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8264 TARGET_DEFAULT_IGNORE.
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8270 to_set_disconnected_tracing.
8271 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8272 TARGET_DEFAULT_IGNORE.
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8276 * target-delegates.c: Rebuild.
8277 * target.c (update_current_target): Don't inherit or default
8278 to_get_min_fast_tracepoint_insn_len.
8279 (return_minus_one): Remove.
8280 * target.h (struct target_ops)
8281 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8285 * target-delegates.c: Rebuild.
8286 * target.c (update_current_target): Don't inherit or default
8287 to_get_raw_trace_data.
8288 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8289 TARGET_DEFAULT_NORETURN.
8291 2014-02-19 Tom Tromey <tromey@redhat.com>
8293 * target-delegates.c: Rebuild.
8294 * target.c (update_current_target): Don't inherit or default
8295 to_upload_trace_state_variables.
8296 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8297 Use TARGET_DEFAULT_RETURN.
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8301 * target-delegates.c: Rebuild.
8302 * target.c (update_current_target): Don't inherit or default
8303 to_upload_tracepoints.
8304 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8305 TARGET_DEFAULT_RETURN.
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8309 * target-delegates.c: Rebuild.
8310 * target.c (update_current_target): Don't inherit or default
8312 * target.h (struct target_ops) <to_save_trace_data>: Use
8313 TARGET_DEFAULT_NORETURN.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_get_trace_state_variable_value.
8320 * target.h (struct target_ops)
8321 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8328 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8335 * target.h (struct target_ops) <to_trace_stop>: Use
8336 TARGET_DEFAULT_NORETURN.
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8340 * target-delegates.c: Rebuild.
8341 * target.c (update_current_target): Don't inherit or default
8342 to_get_tracepoint_status.
8343 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8344 TARGET_DEFAULT_NORETURN.
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8350 to_get_trace_status.
8351 * target.h (struct target_ops) <to_get_trace_status>: Use
8352 TARGET_DEFAULT_RETURN.
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8356 * target-delegates.c: Rebuild.
8357 * target.c (update_current_target): Don't inherit or default
8359 * target.h (struct target_ops) <to_trace_start>: Use
8360 TARGET_DEFAULT_NORETURN.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8366 to_trace_set_readonly_regions.
8367 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8368 Use TARGET_DEFAULT_NORETURN.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8374 to_disable_tracepoint.
8375 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8376 TARGET_DEFAULT_NORETURN.
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_enable_tracepoint.
8383 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8384 TARGET_DEFAULT_NORETURN.
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8390 to_download_trace_state_variable.
8391 * target.h (struct target_ops) <to_download_trace_state_variable>:
8392 Use TARGET_DEFAULT_NORETURN.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_can_download_tracepoint.
8399 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8400 TARGET_DEFAULT_RETURN.
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_download_tracepoint.
8407 * target.h (struct target_ops) <to_download_tracepoint>: Use
8408 TARGET_DEFAULT_NORETURN.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8415 * target.h (struct target_ops) <to_trace_init>: Use
8416 TARGET_DEFAULT_RETURN.
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_supports_string_tracing.
8423 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8424 TARGET_DEFAULT_RETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_supports_enable_disable_tracepoint.
8431 * target.h (struct target_ops)
8432 <to_supports_enable_disable_tracepoint>: Use
8433 TARGET_DEFAULT_RETURN.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_supports_multi_process.
8440 * target.h (struct target_ops) <to_supports_multi_process>: Use
8441 TARGET_DEFAULT_RETURN.
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8447 to_get_ada_task_ptid.
8448 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8449 TARGET_DEFAULT_FUNC.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8455 to_thread_architecture.
8456 * target.h (struct target_ops) <to_thread_architecture>: Use
8457 TARGET_DEFAULT_FUNC.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8463 to_execution_direction.
8464 * target.h (struct target_ops) <to_execution_direction>: Use
8465 TARGET_DEFAULT_FUNC.
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8471 to_can_execute_reverse.
8472 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8473 TARGET_DEFAULT_RETURN.
8474 (target_can_execute_reverse): Unconditionally delegate.
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't inherit or default
8481 (dummy_goto_bookmark): Remove.
8482 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8483 * target.h (struct target_ops) <to_goto_bookmark>: Use
8484 TARGET_DEFAULT_NORETURN.
8486 2014-02-19 Tom Tromey <tromey@redhat.com>
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8491 (dummy_get_bookmark): Remove.
8492 (init_dummy_target): Don't inherit or default to_get_bookmark.
8493 * target.h (struct target_ops) <to_get_bookmark>: Use
8494 TARGET_DEFAULT_NORETURN
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8500 to_make_corefile_notes.
8501 (init_dummy_target): Don't initialize to_make_corefile_notes.
8502 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8503 TARGET_DEFAULT_FUNC.
8505 2014-02-19 Tom Tromey <tromey@redhat.com>
8507 * target-delegates.c: Rebuild.
8508 * target.c (update_current_target): Don't inherit or default
8509 to_find_memory_regions.
8510 (init_dummy_target): Don't initialize to_find_memory_regions.
8511 * target.h (struct target_ops) <to_find_memory_regions>: Use
8512 TARGET_DEFAULT_FUNC.
8514 2014-02-19 Tom Tromey <tromey@redhat.com>
8516 * target-delegates.c: Rebuild.
8517 * target.c (update_current_target): Don't inherit or default
8519 * target.h (struct target_ops) <to_log_command>: Use
8520 TARGET_DEFAULT_IGNORE.
8521 (target_log_command): Unconditionally delegate.
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_pid_to_exec_file.
8528 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8529 TARGET_DEFAULT_RETURN.
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8533 * target-delegates.c: Rebuild.
8534 * target.c (update_current_target): Don't inherit or default
8536 (target_thread_name): Unconditionally delegate.
8537 * target.h (struct target_ops) <to_thread_name>: Use
8538 TARGET_DEFAULT_RETURN.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_extra_thread_info.
8545 * target.h (struct target_ops) <to_extra_thread_info>: Use
8546 TARGET_DEFAULT_RETURN.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8553 * target.h (struct target_ops) <to_has_exited>: Use
8554 TARGET_DEFAULT_RETURN..
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_set_syscall_catchpoint.
8561 (return_one): Remove.
8562 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8563 TARGET_DEFAULT_RETURN.
8565 2014-02-19 Tom Tromey <tromey@redhat.com>
8567 * target-delegates.c: Rebuild.
8568 * target.c (update_current_target): Don't inherit or default
8569 to_insert_exec_catchpoint.
8570 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8571 TARGET_DEFAULT_RETURN.
8573 2014-01-08 Tom Tromey <tromey@redhat.com>
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8577 to_insert_exec_catchpoint.
8578 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8579 TARGET_DEFAULT_RETURN.
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_remove_vfork_catchpoint.
8586 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8587 TARGET_DEFAULT_RETURN.
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8591 * target-delegates.c: Rebuild.
8592 * target.c (update_current_target): Don't inherit or default
8593 to_insert_vfork_catchpoint.
8594 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8595 TARGET_DEFAULT_RETURN.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_remove_fork_catchpoint.
8602 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8603 TARGET_DEFAULT_RETURN.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_insert_fork_catchpoint.
8610 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8611 TARGET_DEFAULT_RETURN.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_post_startup_inferior.
8618 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8619 TARGET_DEFAULT_IGNORE.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8626 * target.h (struct target_ops) <to_load>: Use
8627 TARGET_DEFAULT_NORETURN.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8634 * target.h (struct target_ops) <to_terminal_info>: Use
8635 TARGET_DEFAULT_FUNC.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_terminal_save_ours.
8642 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8643 TARGET_DEFAULT_IGNORE.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8650 * target.h (struct target_ops) <to_terminal_ours>: Use
8651 TARGET_DEFAULT_IGNORE.
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_terminal_ours_for_output.
8658 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8659 TARGET_DEFAULT_IGNORE.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_terminal_inferior.
8666 * target.h (struct target_ops) <to_terminal_inferior>: Use
8667 TARGET_DEFAULT_IGNORE.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8674 * target.h (struct target_ops) <to_terminal_init>: Use
8675 TARGET_DEFAULT_IGNORE.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8681 to_can_accel_watchpoint_condition.
8682 * target.h (struct target_ops)
8683 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_region_ok_for_hw_watchpoint.
8690 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8691 Use TARGET_DEFAULT_FUNC.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_watchpoint_addr_within_range.
8698 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8699 Use TARGET_DEFAULT_FUNC.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_remove_watchpoint.
8706 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8707 TARGET_DEFAULT_NORETURN.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_insert_watchpoint.
8714 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8715 TARGET_DEFAULT_RETURN.
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_remove_hw_breakpoint.
8722 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8723 TARGET_DEFAULT_RETURN.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_insert_hw_breakpoint.
8730 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8731 TARGET_DEFAULT_RETURN.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_can_use_hw_breakpoint.
8738 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8739 TARGET_DEFAULT_RETURN.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8746 * target.h (struct target_ops) <to_files_info>: Use
8747 TARGET_DEFAULT_IGNORE.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8754 * target.h (struct target_ops) <to_store>: Use
8755 TARGET_DEFAULT_NORETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8762 * target.h (struct target_ops) <to_post_attach>: Use
8763 TARGET_DEFAULT_IGNORE.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8770 (default_rcmd): New function.
8771 (do_monitor_command): Unconditionally delegate.
8772 * target.h (struct target_ops) <to_rmcd>: Use
8773 TARGET_DEFAULT_FUNC.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target-delegates.c: Rebuild.
8778 * target.c (init_dummy_target): Don't initialize to_attach.
8779 (target_attach): Unconditionally delegate.
8780 * target.h (struct target_ops) <to_attach>: Use
8781 TARGET_DEFAULT_FUNC.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target-delegates.c: Rebuild.
8786 * target.c (target_detach): Unconditionally delegate.
8787 (init_dummy_target): Don't initialize to_detach.
8788 * target.h (struct target_ops) <to_detach>: Use
8789 TARGET_DEFAULT_IGNORE.
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8795 (target_augmented_libraries_svr4_read): Add argument.
8796 * target.c (update_current_target): Update.
8797 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target.h (struct target_ops) <to_call_history_range>: Add
8804 * target.c (target_call_history_range): Add argument.
8805 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8807 (record_btrace_call_history_from): Update.
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8811 * target.h (struct target_ops) <to_call_history_from>: Add
8813 * target.c (target_call_history_from): Add argument.
8814 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8819 * target.h (struct target_ops) <to_call_history>: Add argument.
8820 * target.c (target_call_history): Add argument.
8821 * record-btrace.c (record_btrace_call_history): Add 'self'
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target.h (struct target_ops) <to_insn_history_range>: Add
8828 * target.c (target_insn_history_range): Add argument.
8829 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8831 (record_btrace_insn_history_from): Update.
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8835 * target.h (struct target_ops) <to_insn_history_from>: Add
8837 * target.c (target_insn_history_from): Add argument.
8838 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8841 2014-02-19 Tom Tromey <tromey@redhat.com>
8843 * target.h (struct target_ops) <to_insn_history>: Add argument.
8844 * target.c (target_insn_history): Add argument.
8845 * record-btrace.c (record_btrace_insn_history): Add 'self'
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8850 * target.h (struct target_ops) <to_goto_record>: Add argument.
8851 * target.c (target_goto_record): Add argument.
8852 * record-full.c (record_full_goto): Add 'self' argument.
8853 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8857 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8858 * target.c (target_goto_record_end): Add argument.
8859 * record-full.c (record_full_goto_end): Add 'self' argument.
8860 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target.h (struct target_ops) <to_goto_record_begin>: Add
8866 * target.c (target_goto_record_begin): Add argument.
8867 * record-full.c (record_full_goto_begin): Add 'self' argument.
8868 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8873 * target.h (struct target_ops) <to_record_is_replaying>: Add
8875 * target.c (target_record_is_replaying): Add argument.
8876 * record-full.c (record_full_is_replaying): Add 'self' argument.
8877 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8879 (record_btrace_xfer_partial, record_btrace_store_registers)
8880 (record_btrace_prepare_to_store, record_btrace_resume)
8881 (record_btrace_wait, record_btrace_decr_pc_after_break)
8882 (record_btrace_find_new_threads, record_btrace_thread_alive):
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8887 * target.h (struct target_ops) <to_delete_record>: Add argument.
8888 * target.c (target_delete_record): Add argument.
8889 * record-full.c (record_full_delete): Add 'self' argument.
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target.h (struct target_ops) <to_save_record>: Add argument.
8894 * target.c (target_save_record): Add argument.
8895 * record-full.c (record_full_save): Add 'self' argument.
8896 (record_full_save): Add 'self' argument.
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target.h (struct target_ops) <to_info_record>: Add argument.
8901 * target.c (target_info_record): Add argument.
8902 * record.c (info_record_command): Add argument.
8903 * record-full.c (record_full_info): Add 'self' argument.
8904 * record-btrace.c (record_btrace_info): Add 'self' argument.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8909 * target.c (target_stop_recording): Add argument.
8910 * record.c (record_stop): Add argument.
8911 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8917 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8918 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8920 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8921 (_initialize_amd64_linux_nat): Use it.
8922 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8923 (_initialize_i386_linux_nat): Use it.
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8927 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8928 * target.c (target_teardown_btrace): Add argument.
8929 * remote.c (remote_teardown_btrace): Add 'self' argument.
8930 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8932 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8938 * target.c (target_disable_btrace): Add argument.
8939 * remote.c (remote_disable_btrace): Add 'self' argument.
8940 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8942 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8945 2014-02-19 Tom Tromey <tromey@redhat.com>
8947 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8948 * target.c (target_enable_btrace): Add argument.
8949 * remote.c (remote_enable_btrace): Add 'self' argument.
8950 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8952 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8957 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8958 (target_can_use_agent): Add argument.
8959 * target.c (update_current_target): Update.
8960 * remote.c (remote_can_use_agent): Add 'self' argument.
8961 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8965 * target.h (struct target_ops) <to_use_agent>: Add argument.
8966 (target_use_agent): Add argument.
8967 * target.c (update_current_target): Update.
8968 * remote.c (remote_use_agent): Add 'self' argument.
8969 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8973 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8974 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8975 (target_traceframe_info): Add argument.
8976 * target.c (update_current_target): Update.
8977 * remote.c (remote_traceframe_info): Add 'self' argument.
8978 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8982 * target.h (target_static_tracepoint_markers_by_strid): Add
8984 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8986 * target.c (update_current_target): Update.
8987 * remote.c (struct target_ops)
8988 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8989 * linux-nat.c (struct target_ops)
8990 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8994 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8996 (target_static_tracepoint_marker_at): Add argument.
8997 * target.c (update_current_target): Update.
8998 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9003 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9004 (target_set_permissions): Add argument.
9005 * target.c (update_current_target): Update.
9006 * remote.c (remote_set_permissions): Add 'self' argument.
9007 (remote_start_remote): Update.
9009 2014-02-19 Tom Tromey <tromey@redhat.com>
9011 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9012 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9013 (target_get_tib_address): Add argument.
9014 * target.c (update_current_target): Update.
9015 * remote.c (remote_get_tib_address): Add 'self' argument.
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9019 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9020 (target_set_trace_notes): Add argument.
9021 * target.c (update_current_target): Update.
9022 * remote.c (remote_set_trace_notes): Add 'self' argument.
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9026 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9028 (target_set_trace_buffer_size): Add argument.
9029 * target.c (update_current_target): Update.
9030 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9032 2014-02-19 Tom Tromey <tromey@redhat.com>
9034 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9036 (target_set_circular_trace_buffer): Add argument.
9037 * target.c (update_current_target): Update.
9038 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9043 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9045 (target_set_disconnected_tracing): Add argument.
9046 * target.c (update_current_target): Update.
9047 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops)
9052 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9053 (target_get_min_fast_tracepoint_insn_len): Add argument.
9054 * target.c (update_current_target): Update.
9055 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9060 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9062 (target_get_raw_trace_data): Add argument.
9063 * target.c (update_current_target): Update.
9064 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9068 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9070 (target_upload_trace_state_variables): Add argument.
9071 * target.c (update_current_target): Update.
9072 * remote.c (remote_upload_trace_state_variables): Add 'self'
9074 (remote_start_remote): Update.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9080 (target_upload_tracepoints): Add argument.
9081 * target.c (update_current_target): Update.
9082 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9083 (remote_start_remote): Update.
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9087 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9088 (target_save_trace_data): Add argument.
9089 * target.c (update_current_target): Update.
9090 * remote.c (remote_save_trace_data): Add 'self' argument.
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9094 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9096 * target.h (struct target_ops)
9097 <to_get_trace_state_variable_value>: Add argument.
9098 (target_get_trace_state_variable_value): Add argument.
9099 * target.c (update_current_target): Update.
9100 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9102 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9107 * target.h (struct target_ops) <to_trace_find>: Add argument.
9108 (target_trace_find): Add argument.
9109 * target.c (update_current_target): Update.
9110 * remote.c (remote_trace_find): Add 'self' argument.
9111 * ctf.c (ctf_trace_find): Add 'self' argument.
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9116 (target_trace_stop): Add argument.
9117 * target.c (update_current_target): Update.
9118 * remote.c (remote_trace_stop): Add 'self' argument.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9123 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9125 (target_get_tracepoint_status): Add argument.
9126 * target.c (update_current_target): Update.
9127 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9132 * target.h (struct target_ops) <to_get_trace_status>: Add
9134 (target_get_trace_status): Add argument.
9135 * target.c (update_current_target): Update.
9136 * remote.c (remote_get_trace_status): Add 'self' argument.
9137 (remote_start_remote, remote_can_download_tracepoint): Update.
9138 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target.h (struct target_ops) <to_trace_start>: Add argument.
9143 (target_trace_start): Add argument.
9144 * target.c (update_current_target): Update.
9145 * remote.c (remote_trace_start): Add 'self' argument.
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9151 (target_trace_set_readonly_regions): Add argument.
9152 * target.c (update_current_target): Update.
9153 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9160 (target_disable_tracepoint): Add argument.
9161 * target.c (update_current_target): Update.
9162 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9164 2014-02-19 Tom Tromey <tromey@redhat.com>
9166 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9168 (target_enable_tracepoint): Add argument.
9169 * target.c (update_current_target): Update.
9170 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * target.h (struct target_ops) <to_download_trace_state_variable>:
9176 (target_download_trace_state_variable): Add argument.
9177 * target.c (update_current_target): Update.
9178 * remote.c (remote_download_trace_state_variable): Add 'self'
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9183 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9185 (target_can_download_tracepoint): Add argument.
9186 * target.c (update_current_target): Update.
9187 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9191 * target.h (struct target_ops) <to_download_tracepoint>: Add
9193 (target_download_tracepoint): Add argument.
9194 * target.c (update_current_target): Update.
9195 * remote.c (remote_download_tracepoint): Add 'self' argument.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * target.h (struct target_ops) <to_trace_init>: Add argument.
9200 (target_trace_init): Add argument.
9201 * target.c (update_current_target): Update.
9202 * remote.c (remote_trace_init): Add 'self' argument.
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9207 * target.c (target_fileio_readlink): Add argument.
9208 * remote.c (remote_hostio_readlink): Add 'self' argument.
9209 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9213 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9214 * target.c (target_fileio_unlink): Add argument.
9215 * remote.c (remote_hostio_unlink): Add 'self' argument.
9216 (remote_file_delete): Update.
9217 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9222 * target.c (target_fileio_close): Add argument.
9223 * remote.c (remote_hostio_close): Add 'self' argument.
9224 (remote_hostio_close_cleanup): Update.
9225 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9227 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9232 * target.c (target_fileio_pread): Add argument.
9233 * remote.c (remote_hostio_pread): Add 'self' argument.
9234 (remote_bfd_iovec_pread, remote_file_get): Update.
9235 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9239 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9240 * target.c (target_fileio_pwrite): Add argument.
9241 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9242 (remote_file_put): Update.
9243 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9248 * target.c (target_fileio_open): Add argument.
9249 * remote.c (remote_hostio_open): Add 'self' argument.
9250 (remote_bfd_iovec_open): Add 'self' argument.
9251 (remote_file_put): Add 'self' argument.
9252 (remote_file_get): Add 'self' argument.
9253 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9257 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9259 (target_can_run_breakpoint_commands): Add argument.
9260 * target.c (update_current_target): Update.
9261 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9263 (remote_insert_breakpoint): Add 'self' argument.
9264 (remote_insert_hw_breakpoint): Add 'self' argument.
9265 (remote_can_run_breakpoint_commands): Add 'self' argument.
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9269 * target.h (struct target_ops)
9270 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9271 (target_supports_evaluation_of_breakpoint_conditions): Add
9273 * target.c (update_current_target): Update.
9274 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9276 (remote_insert_breakpoint): Add 'self' argument.
9277 (remote_insert_hw_breakpoint): Add 'self' argument.
9278 (remote_supports_cond_breakpoints): Add 'self' argument.
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9284 (target_supports_string_tracing): Add argument.
9285 * target.c (update_current_target): Update.
9286 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target.h (struct target_ops)
9291 <to_supports_disable_randomization>: Add argument.
9292 * target.c (find_default_supports_disable_randomization): Add
9294 (target_supports_disable_randomization): Add argument.
9295 (find_default_supports_disable_randomization): Add 'self'
9297 * remote.c (extended_remote_supports_disable_randomization): Add
9299 (remote_supports_disable_randomization): Add 'self' argument.
9300 (extended_remote_create_inferior): Update.
9301 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9304 2014-02-19 Tom Tromey <tromey@redhat.com>
9306 * target.h (struct target_ops)
9307 <to_supports_enable_disable_tracepoint>: Add argument.
9308 (target_supports_enable_disable_tracepoint): Add argument.
9309 * target.c (update_current_target): Update.
9310 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9313 2014-02-19 Tom Tromey <tromey@redhat.com>
9315 * target.h (struct target_ops) <to_supports_multi_process>: Add
9317 (target_supports_multi_process): Add argument.
9318 * target.c (update_current_target): Update.
9319 * remote.c (remote_supports_multi_process): Add 'self' argument.
9320 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9322 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9327 * target.h (struct target_ops) <to_execution_direction>: Add
9329 (target_execution_direction): Add argument.
9330 * target.c (default_execution_direction): Add 'self' argument.
9331 * record-full.c (record_full_execution_direction): Add 'self'
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9336 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9338 (target_can_execute_reverse): Add argument.
9339 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9340 * record-full.c (record_full_can_execute_reverse): Add 'self'
9342 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9347 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9348 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9350 (target_get_ada_task_ptid): Add argument.
9351 * target.c (update_current_target): Update.
9352 (default_get_ada_task_ptid): Add 'self' argument.
9353 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9354 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9355 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9357 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9359 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9361 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9363 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9364 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9369 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9370 (target_goto_bookmark): Add argument.
9371 * target.c (dummy_goto_bookmark): Add 'self' argument.
9372 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9376 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9377 (target_get_bookmark): Add argument.
9378 * target.c (dummy_get_bookmark): Add 'self' argument.
9379 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9385 (target_make_corefile_notes): Add argument.
9386 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9387 * procfs.c (procfs_make_note_section): Add 'self' argument.
9388 (procfs_make_note_section): Add 'self' argument.
9389 (procfs_make_note_section): Add 'self' argument.
9390 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9392 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9393 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9394 * exec.c (exec_make_note_section): Add 'self' argument.
9395 (exec_make_note_section): Add 'self' argument.
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9399 * target.h (struct target_ops) <to_find_memory_regions>: Add
9401 (target_find_memory_regions): Add argument.
9402 * target.c (dummy_find_memory_regions): Add 'self' argument.
9403 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9404 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9405 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9406 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9407 * exec. (exec_do_find_memory_regions): New global.
9408 (exec_set_find_memory_regions): Rewrite.
9409 (exec_find_memory_regions): New function.
9410 (init_exec_ops): Use exec_find_memory_regions.
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target.h (struct target_ops) <to_supports_non_stop>: Add
9416 * target.c (find_default_supports_non_stop): Add argument.
9417 (target_supports_non_stop): Add argument.
9418 (find_default_supports_non_stop): Add 'self' argument.
9419 * remote.c (remote_supports_non_stop): Add 'self' argument.
9420 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target.h (struct target_ops) <to_log_command>: Add argument.
9425 (target_log_command): Add argument.
9426 * serial.h (serial_log_command): Add 'self' argument.
9427 * serial.c (serial_log_command): Add 'self' argument.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9432 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9434 (target_pid_to_exec_file): Add argument.
9435 * target.c (debug_to_pid_to_exec_file): Add argument.
9436 (update_current_target): Update.
9437 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9438 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9439 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9440 (linux_handle_extended_wait): Update.
9441 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9442 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9443 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9444 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * target.h (struct target_ops) <to_rcmd>: Add argument.
9449 (target_rcmd): Add argument.
9450 * target.c (debug_to_rcmd): Add argument.
9451 (update_current_target, do_monitor_command): Update.
9452 * remote.c (remote_rcmd): Add 'self' argument.
9453 * monitor.c (monitor_rcmd): Add 'self' argument.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * windows-nat.c (windows_stop): Add 'self' argument.
9458 * target.h (struct target_ops) <to_stop>: Add argument.
9459 * target.c (target_stop): Add argument.
9460 (debug_to_stop): Add argument.
9461 (update_current_target): Update.
9462 * remote.c (remote_stop): Add 'self' argument.
9463 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9464 (gdbsim_cntrl_c): Update.
9465 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9466 * procfs.c (procfs_stop): Add 'self' argument.
9467 * nto-procfs.c (procfs_stop): Add 'self' argument.
9468 * monitor.c (monitor_stop): Add 'self' argument.
9469 (monitor_open): Update.
9470 * linux-nat.c (linux_nat_stop): Add argument.
9471 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9472 * gnu-nat.c (gnu_stop): Add 'self' argument.
9473 * darwin-nat.c (darwin_stop): Add 'self' argument.
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target.h (struct target_ops) <to_thread_name>: Add argument.
9478 * target.c (target_thread_name): Add argument.
9479 (update_current_target): Update.
9480 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9484 * target.h (struct target_ops) <to_extra_thread_info>: Add
9486 (target_extra_thread_info): Add argument.
9487 * target.c (update_current_target): Update.
9488 * remote.c (remote_threads_extra_info): Add 'self' argument.
9489 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9491 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9492 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9493 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9495 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9497 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9499 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9502 2014-02-19 Tom Tromey <tromey@redhat.com>
9504 * target.h (struct target_ops) <to_program_signals>: Add argument.
9505 * target.c (target_program_signals): Add argument.
9506 * remote.c (remote_program_signals): Add 'self' argument.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9511 * target.c (target_pass_signals): Add argument.
9512 * remote.c (remote_pass_signals): Add 'self' argument.
9513 (remote_start_remote): Update.
9514 * procfs.c (procfs_pass_signals): Add 'self' argument.
9515 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9516 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9517 (linux_nat_create_inferior, linux_nat_attach): Update.
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * windows-nat.c (windows_can_run): Add 'self' argument.
9522 * target.h (struct target_ops) <to_can_run>: Add argument.
9523 (target_can_run): Add argument.
9524 * target.c (debug_to_can_run): Add argument.
9525 (update_current_target): Update.
9526 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9527 * inf-child.c (inf_child_can_run): Add 'self' argument.
9528 * go32-nat.c (go32_can_run): Add 'self' argument.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target.h (struct target_ops) <to_has_exited>: Add argument.
9533 (target_has_exited): Add argument.
9534 * target.c (debug_to_has_exited): Add argument.
9535 (update_current_target): Update.
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9539 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9541 (target_set_syscall_catchpoint): Add argument.
9542 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9544 * target.c (update_current_target): Update.
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9550 (target_remove_exec_catchpoint): Add argument.
9551 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9552 (update_current_target): Update.
9553 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9560 (target_insert_exec_catchpoint): Add argument.
9561 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9562 (update_current_target): Update.
9563 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9566 2014-02-19 Tom Tromey <tromey@redhat.com>
9568 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9570 (target_remove_vfork_catchpoint): Add argument.
9571 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9572 (update_current_target): Update.
9573 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9580 (target_insert_vfork_catchpoint): Add argument.
9581 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9582 (update_current_target): Update.
9583 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9590 (target_remove_fork_catchpoint): Add argument.
9591 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9592 (update_current_target): Update.
9593 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9596 2014-02-19 Tom Tromey <tromey@redhat.com>
9598 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9600 (target_insert_fork_catchpoint): Add argument.
9601 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9602 (update_current_target): Update.
9603 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9606 2014-02-19 Tom Tromey <tromey@redhat.com>
9608 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9610 (target_post_startup_inferior): Add argument.
9611 * target.c (debug_to_post_startup_inferior): Add argument.
9612 (update_current_target): Update.
9613 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9615 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9617 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9619 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9621 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9623 (super_post_startup_inferior): Likewise.
9624 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9626 (super_post_startup_inferior): Likewise.
9627 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9628 Add 'self' argument.
9629 (super_post_startup_inferior): Likewise.
9631 2014-02-19 Tom Tromey <tromey@redhat.com>
9633 * target.h (struct target_ops) <to_load>: Add argument.
9634 * target.c (target_load): Add argument.
9635 (debug_to_load): Add argument.
9636 (update_current_target): Update.
9637 * remote.c (remote_load): Add 'self' argument.
9638 * remote-sim.c (gdbsim_load): Add 'self' argument.
9639 * remote-mips.c (mips_load): Add 'self' argument.
9640 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9641 * monitor.c (monitor_load): Add 'self' argument.
9642 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9647 (target_terminal_info): Add argument.
9648 * target.c (debug_to_terminal_info): Add argument.
9649 (default_terminal_info): Likewise.
9650 * inflow.c (child_terminal_info): Add 'self' argument.
9651 * inferior.h (child_terminal_info): Add 'self' argument.
9652 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9656 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9658 (target_terminal_save_ours): Add argument.
9659 * target.c (debug_to_terminal_save_ours): Add argument.
9660 (update_current_target): Update.
9661 * inflow.c (terminal_save_ours): Add 'self' argument.
9662 * inferior.h (terminal_save_ours): Add 'self' argument.
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9667 (target_terminal_ours): Add argument.
9668 * target.c (debug_to_terminal_ours): Add argument.
9669 (update_current_target): Update.
9670 * remote.c (remote_terminal_ours): Add 'self' argument.
9671 (remote_close): Update.
9672 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9673 * inflow.c (terminal_ours): Add 'self' argument.
9674 * inferior.h (terminal_ours): Add 'self' argument.
9675 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9677 2014-02-19 Pedro Alves <palves@redhat.com>
9678 Tom Tromey <tromey@redhat.com>
9680 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9682 (target_terminal_ours_for_output): Add argument.
9683 * target.c (debug_to_terminal_ours_for_output): Add argument.
9684 (update_current_target): Update.
9685 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9686 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9687 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9691 * target.h (struct target_ops) <to_terminal_inferior>: Add
9693 * target.c (target_terminal_inferior): Add argument.
9694 (update_current_target): Update.
9695 * remote.c (remote_terminal_inferior): Add 'self' argument.
9696 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9697 * inflow.c (terminal_inferior): Add 'self' argument.
9698 * inferior.h (terminal_inferior): Add 'self' argument.
9699 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9700 (go32_terminal_inferior): Add 'self' argument.
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9705 (target_terminal_init): Add argument.
9706 * target.c (debug_to_terminal_init): Add argument.
9707 (update_current_target): Update.
9708 * inflow.c (terminal_init_inferior): Add 'self' argument.
9709 * inferior.h (terminal_init_inferior): Add 'self' argument.
9710 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9711 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9715 * target.h (struct target_ops)
9716 <to_can_accel_watchpoint_condition>: Add argument.
9717 (target_can_accel_watchpoint_condition): Add argument.
9718 * target.c (debug_to_can_accel_watchpoint_condition): Add
9720 (update_current_target): Update.
9721 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9726 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9728 (target_region_ok_for_hw_watchpoint): Add argument.
9729 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9730 (default_region_ok_for_hw_watchpoint): Add argument.
9731 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9732 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9734 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9736 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9738 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9740 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9742 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9744 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9745 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9747 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9748 Add 'self' argument.
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9752 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9754 (target_insert_watchpoint): Add argument.
9755 * target.c (debug_to_insert_watchpoint): Add argument.
9756 (update_current_target): Update.
9757 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9758 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9759 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9760 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9761 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9762 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9764 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9765 (procfs_insert_hw_watchpoint): Add 'self' argument.
9766 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9768 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9770 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9772 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9773 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9775 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9780 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9782 (target_remove_watchpoint): Add argument.
9783 * target.c (debug_to_remove_watchpoint): Add argument.
9784 (update_current_target): Update.
9785 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9786 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9787 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9788 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9789 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9790 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9792 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9793 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9795 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9797 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9799 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9800 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9802 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9805 2014-02-19 Tom Tromey <tromey@redhat.com>
9807 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9809 (target_remove_hw_breakpoint): Add argument.
9810 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9811 (update_current_target): Update.
9812 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9813 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9815 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9816 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9818 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9823 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9825 (target_insert_hw_breakpoint): Add argument.
9826 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9827 (update_current_target): Update.
9828 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9829 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9831 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9832 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9833 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9835 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9840 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9842 (target_can_use_hardware_watchpoint): Add argument.
9843 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9844 (update_current_target): Update.
9845 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9847 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9849 * remote.c (remote_check_watch_resources): Add 'self' argument.
9850 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9851 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9853 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9854 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9856 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9858 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9860 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9862 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9864 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9866 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9867 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9869 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9872 2014-02-19 Tom Tromey <tromey@redhat.com>
9874 * target.h (struct target_ops) <to_post_attach>: Add argument.
9875 (target_post_attach): Add argument.
9876 * target.c (debug_to_post_attach): Add argument.
9877 (update_current_target): Update.
9878 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9879 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9880 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9881 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9882 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * windows-nat.c (windows_close): Add 'self' argument.
9887 * tracepoint.c (tfile_close): Add 'self' argument.
9888 * target.h (struct target_ops) <to_close>: Add argument.
9889 * target.c (target_close): Add argument.
9890 (update_current_target): Update.
9891 * remote.c (remote_close): Add 'self' argument.
9892 * remote-sim.c (gdbsim_close): Add 'self' argument.
9893 * remote-mips.c (mips_close): Add 'self' argument.
9894 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9895 * record-full.c (record_full_close): Add 'self' argument.
9896 * record-btrace.c (record_btrace_close): Add 'self' argument.
9897 * monitor.h (monitor_close): Add 'self' argument.
9898 * monitor.c (monitor_close): Add 'self' argument.
9899 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9900 * linux-nat.c (linux_nat_close): Add argument.
9901 * go32-nat.c (go32_close): Add 'self' argument.
9902 * exec.c (exec_close_1): Add 'self' argument.
9903 * ctf.c (ctf_close): Add 'self' argument.
9904 * corelow.c (core_close): Add 'self' argument.
9905 (core_close_cleanup): Update.
9906 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9907 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9911 * remote.c (remote_load): New function.
9912 (init_remote_ops): Use it.
9914 2014-02-19 Tom Tromey <tromey@redhat.com>
9916 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9918 * common/linux-btrace.h (linux_supports_btrace): Update.
9919 * remote.c (remote_supports_btrace): Add "self" argument.
9920 * target-delegates.c: Rebuild.
9921 * target.c (target_supports_btrace): Remove.
9922 * target.h (struct target_ops) <to_supports_btrace>: Add
9923 target_ops argument.
9924 (target_supports_btrace): New define.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * record-full.c (record_full_beneath_to_resume_ops)
9929 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9930 (record_full_beneath_to_wait)
9931 (record_full_beneath_to_store_registers_ops)
9932 (record_full_beneath_to_store_registers)
9933 (record_full_beneath_to_xfer_partial_ops)
9934 (record_full_beneath_to_xfer_partial)
9935 (record_full_beneath_to_insert_breakpoint_ops)
9936 (record_full_beneath_to_insert_breakpoint)
9937 (record_full_beneath_to_remove_breakpoint_ops)
9938 (record_full_beneath_to_remove_breakpoint)
9939 (record_full_beneath_to_stopped_by_watchpoint)
9940 (record_full_beneath_to_stopped_data_address)
9941 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9942 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9943 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9944 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9945 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9946 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9947 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9948 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9949 (record_full_resume, record_full_wait_1)
9950 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9951 (record_full_store_registers, record_full_xfer_partial)
9952 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9953 (record_full_async, record_full_core_xfer_partial): Use target
9955 * target-delegates.c: Rebuild.
9956 * target.c (current_xfer_partial): Remove.
9957 (update_current_target): Do not INHERIT or de_fault
9958 to_insert_breakpoint, to_remove_breakpoint,
9959 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9960 to_is_async_p, to_async. Do not set to_xfer_partial field.
9961 (default_xfer_partial): Simplify.
9962 (current_xfer_partial): Remove.
9963 (target_wait, target_resume): Simplify.
9964 (find_default_can_async_p, find_default_is_async_p): Update.
9965 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9966 to_xfer_partial, to_stopped_by_watchpoint,
9967 to_stopped_data_address.
9968 (target_store_registers): Simplify.
9969 (forward_target_remove_breakpoint)
9970 (forward_target_insert_breakpoint): Remove.
9971 (target_remove_breakpoint, target_insert_breakpoint)
9972 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9973 * target.h (struct target_ops) <to_resume, to_wait,
9974 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9975 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9976 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9978 (forward_target_remove_breakpoint)
9979 (forward_target_insert_breakpoint): Remove.
9980 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9982 (record_btrace_insert_breakpoint): Delegate directly.
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9987 * target-delegates.c: New file.
9988 * target.c: Include target-delegates.c.
9989 (init_dummy_target): Call install_dummy_methods.
9990 (complete_target_initialization): Call install_delegators.
9991 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9992 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9993 * make-target-delegates: New file.
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9997 * record.c (find_record_target): Use find_target_at.
9998 * target.c (find_target_at): New function.
9999 * target.h (find_target_at): Declare.
10001 2014-02-19 Tom Tromey <tromey@redhat.com>
10003 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10004 Add 'ops' argument.
10005 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10007 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10008 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10010 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10012 * linux-nat.c (save_sigtrap): Update.
10013 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10014 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10015 (linux_nat_close): Update.
10016 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10018 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10020 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10021 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10022 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10023 (tmp_to_async): Add 'ops' argument.
10024 (record_full_stopped_by_watchpoint, record_full_async)
10025 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10027 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10028 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10029 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10030 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10031 (remote_is_async_p, remote_async): Add 'ops' argument.
10032 (remote_stopped_data_address): Update.
10033 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10034 * target.c (update_current_target)
10035 (find_default_can_async_p, find_default_is_async_p): Update.
10036 (init_dummy_target): Update.
10037 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10038 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10039 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10040 (target_can_async_p, target_is_async_p, target_async)
10041 (target_stopped_by_watchpoint): Update.
10043 2014-02-19 Yao Qi <yao@codesourcery.com>
10046 * gdbarch.sh: Remove startup_gdbarch.
10047 * gdbarch.c: Regenerated.
10048 * gdbarch.h: Likewise.
10050 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10052 * rl78-tdep.c (rl78_g10_register_name): New function.
10053 (rl78_return_value): Add g10 support.
10054 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10057 2014-02-17 Doug Evans <xdje42@gmail.com>
10059 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10060 (SUBDIR_GUILE_SRCS): Ditto.
10061 (scm-gsmob.o): Ditto.
10063 2014-02-17 Yao Qi <yao@codesourcery.com>
10065 * gnu-nat.c (ILL_RPC): Declare defined function.
10067 2014-02-17 Yao Qi <yao@codesourcery.com>
10069 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10070 mach_msg_type_number_t.
10071 (gnu_write_inferior): Likewise.
10073 2014-02-17 Yao Qi <yao@codesourcery.com>
10075 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10077 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10078 (inf_validate_procs, inf_signal): Likewise.
10079 (S_exception_raise_request): Likewise.
10080 (do_mach_notify_dead_name): Likewise.
10081 (steal_exc_port): Likewise.
10082 (gnu_read_inferior): Change 'copy_count''s type to
10083 mach_msg_type_number_t.
10084 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10087 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10089 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10090 flag. Adjust all users; in particular...
10091 (gnu_wait): ..., don't decrement its value in here...
10092 (gnu_create_inferior): ..., and instead set the flag in here,
10093 around the startup_inferior call, and call that one with
10094 START_INFERIOR_TRAPS_EXPECTED.
10096 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10097 (ILL_RPC): ... new macro.
10098 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10099 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10100 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10101 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10102 functions with ILL_RPC macro.
10103 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10104 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10105 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10106 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10107 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10108 (S_proc_getlogin_reply, S_proc_getsid_reply)
10109 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10110 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10111 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10112 (S_proc_getnports_reply, S_proc_is_important_reply)
10113 (S_proc_get_code_reply): New stub functions, generated with
10116 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10117 collected the type check structures.
10119 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10121 2014-02-14 Doug Evans <dje@google.com>
10123 * target.c (target_write_partial): Fix result type.
10125 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10127 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10128 the proper offsets to access fpregset_t.
10130 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10132 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10133 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10134 * h8300-tdep.c (setmachinelist): Remove global.
10135 * hppa-tdep.c (hppa_sigtramp): Remove global.
10136 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10137 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10138 * ravenscar-thread.c (update_target_observer): Remove global.
10139 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10141 2014-02-12 Tom Tromey <tromey@redhat.com>
10143 * common/rsp-low.c: Update comments.
10144 * common/rsp-low.h: Update comments.
10146 2014-02-12 Tom Tromey <tromey@redhat.com>
10148 * common/rsp-low.c (convert_ascii_to_int): Remove.
10149 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10151 2014-02-12 Tom Tromey <tromey@redhat.com>
10153 * common/rsp-low.h (unhexify): Don't declare.
10154 * common/rsp-low.c (unhexify): Remove.
10156 2014-02-12 Tom Tromey <tromey@redhat.com>
10158 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10159 * common/rsp-low.c (convert_int_to_ascii): Remove.
10161 2014-02-12 Tom Tromey <tromey@redhat.com>
10163 * common/rsp-low.h (hexify): Don't declare.
10164 * common/rsp-low.c (hexify): Remove.
10166 2014-02-12 Tom Tromey <tromey@redhat.com>
10168 * common/rsp-low.c (hexify): Never take strlen of argument.
10170 2014-02-12 Tom Tromey <tromey@redhat.com>
10172 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10173 * remote.c (extended_remote_run, remote_rcmd)
10174 (remote_download_trace_state_variable, remote_save_trace_data)
10175 (remote_set_trace_notes): Update.
10176 * tracepoint.c (encode_source_string, tfile_write_status)
10177 (tfile_write_uploaded_tsv): Update.
10179 2014-02-12 Tom Tromey <tromey@redhat.com>
10181 * tracepoint.c: Include rsp-low.h.
10182 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10183 * remote.c: Include rsp-low.h.
10184 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10185 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10186 (remote_unescape_input): Move to common/rsp-low.c.
10187 * common/rsp-low.h: New file.
10188 * common/rsp-low.c: New file.
10189 * Makefile.in (SFILES): Add common/rsp-low.c.
10190 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10191 (COMMON_OBS): Add rsp-low.o.
10192 (rsp-low.o): New target.
10194 2014-02-12 Tom Tromey <tromey@redhat.com>
10196 * utils.h: Include print-utils.h.
10197 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10198 (int_string, core_addr_to_string, core_addr_to_string_nz)
10199 (hex_string, hex_string_custom): Don't declare.
10200 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10201 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10202 (hex_string_custom, int_string, core_addr_to_string)
10203 (core_addr_to_string_nz, host_address_to_string): Move to
10204 common/print-utils.c.
10205 * common/print-utils.h: New file.
10206 * common/print-utils.c: New file
10207 * Makefile.in (SFILES): Add common/print-utils.c.
10208 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10209 (COMMON_OBS): Add print-utils.o.
10210 (print-utils.o): New target.
10212 2014-02-12 Tom Tromey <tromey@redhat.com>
10214 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10216 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10218 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10220 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10222 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10223 if a PT_IO ptrace request returns sucessfully but indicates that 0
10224 bytes were transferred.
10226 2014-02-12 Pedro Alves <palves@redhat.com>
10227 Kevin Buettner <kevinb@redhat.com>
10229 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10230 TYPE_INSTANCE_FLAG_CODE_SPACE.
10232 2014-02-12 Pedro Alves <palves@redhat.com>
10234 * h8300-tdep.c (pseudo_from_raw_register)
10235 (raw_from_pseudo_register): New functions.
10236 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10239 2014-02-12 Pedro Alves <palves@redhat.com>
10241 * h8300-tdep.c (h8300_register_sim_regno): New function.
10242 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10243 gdbarch_register_sim_regno hook.
10245 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10247 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10249 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10251 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10253 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10255 * obsd-tdep.h (obsd_init_abi): New prototype.
10256 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10257 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10258 (obsd_init_abi): New functions.
10259 * i386obsd-tdep.c: Include "obsd-tdep.h".
10260 (i386obsd_init_abi): Call obsd_init_abi.
10261 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10262 (amd64obsd_init_abi): Call obsd_init_abi.
10263 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10264 obsd-tdep.c to gdb_target_obs.
10266 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10268 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10269 double float arguments to 16-byte in the argument slots.
10271 2014-02-11 Doug Evans <xdje42@gmail.com>
10273 * configure.ac: Don't crash if pkg-config is not found and guile
10274 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10276 * configure: Regenerate.
10278 2014-02-11 Yao Qi <yao@codesourcery.com>
10280 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10281 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10282 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10283 * gnu-nat.c (gnu_xfer_memory): Likewise.
10284 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10285 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10286 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10287 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10289 2014-02-11 Yao Qi <yao@codesourcery.com>
10291 * target.h (enum target_xfer_error): Rename to ...
10292 (enum target_xfer_status): ... it. New. All users updated.
10293 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10295 (TARGET_XFER_STATUS_ERROR_P): New macro.
10296 (target_xfer_error_to_string): Remove declaration.
10297 (target_xfer_status_to_string): Declare.
10298 (target_xfer_partial_ftype): Adjust it.
10299 (struct target_ops) <to_xfer_partial>: Return
10300 target_xfer_status. Add argument xfered_len. Update
10302 * target.c (target_xfer_error_to_string): Rename to ...
10303 (target_xfer_status_to_string): ... it. New. All callers
10305 (target_read_live_memory): Likewise. Call target_xfer_partial
10306 instead of target_read.
10307 (memory_xfer_live_readonly_partial): Return
10308 target_xfer_status. Add argument xfered_len.
10309 (raw_memory_xfer_partial): Likewise.
10310 (memory_xfer_partial_1): Likewise.
10311 (memory_xfer_partial): Likewise.
10312 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10313 properly. Update debug message.
10314 (default_xfer_partial, current_xfer_partial): Likewise.
10315 (target_write_partial): Likewise.
10316 (target_read_partial): Likewise. All callers updated.
10317 (read_whatever_is_readable): Likewise.
10318 (target_write_with_progress): Likewise.
10319 (target_read_alloc_1): Likewise.
10321 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10322 * auxv.c (procfs_xfer_auxv): Likewise.
10323 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10324 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10325 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10326 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10327 * corefile.c (read_memory): Adjust.
10328 * corelow.c (core_xfer_partial): Likewise.
10329 * ctf.c (ctf_xfer_partial): Likewise.
10330 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10332 (darwin_xfer_partial): Likewise.
10333 * exec.c (section_table_xfer_memory_partial): Likewise. All
10335 (exec_xfer_partial): Likewise.
10336 * exec.h (section_table_xfer_memory_partial): Update
10338 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10340 (gnu_xfer_partial): Likewise.
10341 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10342 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10343 (ia64_hpux_xfer_solib_got): Likewise.
10344 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10345 type of 'partial_len' to ULONGEST.
10346 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10347 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10348 (linux_nat_xfer_partial): Likewise.
10349 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10350 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10351 * monitor.c (monitor_xfer_memory): Likewise.
10352 (monitor_xfer_partial): Likewise.
10353 * procfs.c (procfs_xfer_partial): Likewise.
10354 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10355 * record-full.c (record_full_xfer_partial): Likewise.
10356 (record_full_core_xfer_partial): Likewise.
10357 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10358 (gdbsim_xfer_partial): Likewise.
10359 * remote.c (remote_write_bytes_aux): Likewise. All callers
10361 (remote_write_bytes, remote_read_bytes): Likewise. All
10363 (remote_flash_erase): Likewise. All callers updated.
10364 (remote_write_qxfer): Likewise. All callers updated.
10365 (remote_read_qxfer): Likewise. All callers updated.
10366 (remote_xfer_partial): Likewise.
10367 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10368 (rs6000_xfer_shared_libraries): Likewise.
10369 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10370 (sol_thread_xfer_partial): Likewise.
10371 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10372 (sparc_xfer_partial): Likewise.
10373 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10375 (spu_xfer_partial): Likewise.
10376 * spu-multiarch.c (spu_xfer_partial): Likewise.
10377 * tracepoint.c (tfile_xfer_partial): Likewise.
10378 * windows-nat.c (windows_xfer_memory): Likewise.
10379 (windows_xfer_shared_libraries): Likewise.
10380 (windows_xfer_partial): Likewise.
10381 * valprint.c: Replace 'target_xfer_error' with
10382 'target_xfer_status' in comments.
10384 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10386 Checked in by Joel Brobecker <brobecker@adacore.com>.
10387 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10389 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10391 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10392 function parameters.
10394 2014-02-10 Will Newton <will.newton@linaro.org>
10396 * elfread.c (elf_rel_plt_read): Look for a .got section if
10397 looking up .got.plt fails.
10398 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10399 on address passed to elf_gnu_ifunc_record_cache.
10400 (elf_gnu_ifunc_resolve_addr): Likewise.
10401 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10403 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10405 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10406 (X_RETTURN): New macro.
10407 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10409 * sparc64-tdep.c (sparc64_init_abi): Hook
10410 sparc_in_function_epilogue_p.
10412 2014-02-10 Gary Benson <gbenson@redhat.com>
10414 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10415 Rename name_matcher to symbol_matcher.
10417 2014-02-10 Gary Benson <gbenson@redhat.com>
10419 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10420 Use expand_symtabs_file_matcher_ftype and
10421 expand_symtabs_symbol_matcher_ftype.
10423 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10425 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10426 (struct ada_symbol_cache): New.
10427 (ada_free_symbol_cache): Forward declare.
10428 (struct ada_pspace_data): New.
10429 (ada_pspace_data_handle): New static global.
10430 (get_ada_pspace_data, ada_pspace_data_cleanup)
10431 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10432 (cache_space, cache): Delete, now folded inside struct
10434 (ada_get_symbol_cache): New function.
10435 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10437 (_initialize_ada_language): Remove initialization of cache_space.
10438 Move call to observer_attach_inferior_exit up, grouping it
10439 with the other observer registrations inside this function.
10440 Rename command to be more general. Add call to
10441 register_program_space_data_with_cleanup.
10443 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10445 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10446 ada_new_objfile_observer.
10447 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10448 (_initialize_tasks): Update uses of ada_new_objfile_observer
10449 and ada_tasks_normal_stop_observer.
10451 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10453 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10454 returned by the 'Length attribute to integer.
10456 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10458 * ada-lang.c (_initialize_ada_language): Initialize
10459 cache_space obstack.
10461 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10463 * ada-lang.c (HASH_SIZE): New macro.
10464 (struct cache_entry): New type.
10465 (cache_space, cache): New static globals.
10466 (ada_clear_symbol_cache, find_entry): New functions.
10467 (lookup_cached_symbol, cache_symbol): Implement.
10468 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10469 (_initialize_ada_language): Attach ada_new_objfile_observer
10470 and ada_free_objfile_observer.
10472 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10474 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10475 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10476 struct block * parameter.
10477 (ada_lookup_symbol_list_worker): Constify local variable "block".
10478 Remove cast which is no longer necessary.
10480 2014-02-10 Doug Evans <xdje42@gmail.com>
10482 Add Guile as an extension language.
10483 * NEWS: Mention Guile scripting.
10484 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10485 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10486 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10487 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10488 (CLIBS): Add GUILE_LIBS.
10489 (install-guile): New rule.
10490 (guile.o): New rule.
10491 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10492 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10493 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10494 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10495 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10496 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10497 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10498 * configure.ac: New option --with-guile.
10499 * configure: Regenerate.
10500 * config.in: Regenerate.
10501 * auto-load.c: Remove #include "python/python.h". Add #include
10502 "gdb/section-scripts.h".
10503 (source_section_scripts): Handle Guile scripts.
10504 (_initialize_auto_load): Add name of Guile objfile script to
10505 scripts-directory help text.
10506 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10507 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10508 (struct breakpoint): New member scm_bp_object.
10509 * defs.h (enum command_control_type): New value guile_control.
10510 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10512 (show_user): Update comment.
10513 (_initialize_cli_cmds): Update help text for "show user". Update help
10514 text for max-user-call-depth.
10515 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10517 (multi_line_command_p): Add guile_control.
10518 (print_command_lines): Handle guile_control.
10519 (execute_control_command, recurse_read_control_structure): Ditto.
10520 (process_next_line): Recognize "guile" commands.
10521 * disasm.c (gdb_disassemble_info): Make non-static.
10522 * disasm.h: #include "dis-asm.h".
10523 (struct gdbarch): Add forward decl.
10524 (gdb_disassemble_info): Declare.
10525 * extension.c: #include "guile/guile.h".
10526 (extension_languages): Add guile.
10527 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10528 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10529 * gdbtypes.c (get_unsigned_type_max): New function.
10530 (get_signed_type_minmax): New function.
10531 * gdbtypes.h (get_unsigned_type_max): Declare.
10532 (get_signed_type_minmax): Declare.
10533 * guile/README: New file.
10534 * guile/guile-internal.h: New file.
10535 * guile/guile.c: New file.
10536 * guile/guile.h: New file.
10537 * guile/scm-arch.c: New file.
10538 * guile/scm-auto-load.c: New file.
10539 * guile/scm-block.c: New file.
10540 * guile/scm-breakpoint.c: New file.
10541 * guile/scm-disasm.c: New file.
10542 * guile/scm-exception.c: New file.
10543 * guile/scm-frame.c: New file.
10544 * guile/scm-gsmob.c: New file.
10545 * guile/scm-iterator.c: New file.
10546 * guile/scm-lazy-string.c: New file.
10547 * guile/scm-math.c: New file.
10548 * guile/scm-objfile.c: New file.
10549 * guile/scm-ports.c: New file.
10550 * guile/scm-pretty-print.c: New file.
10551 * guile/scm-safe-call.c: New file.
10552 * guile/scm-string.c: New file.
10553 * guile/scm-symbol.c: New file.
10554 * guile/scm-symtab.c: New file.
10555 * guile/scm-type.c: New file.
10556 * guile/scm-utils.c: New file.
10557 * guile/scm-value.c: New file.
10558 * guile/lib/gdb.scm: New file.
10559 * guile/lib/gdb/boot.scm: New file.
10560 * guile/lib/gdb/experimental.scm: New file.
10561 * guile/lib/gdb/init.scm: New file.
10562 * guile/lib/gdb/iterator.scm: New file.
10563 * guile/lib/gdb/printing.scm: New file.
10564 * guile/lib/gdb/types.scm: New file.
10565 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10566 (VPATH): Add $(GUILE_SRCDIR).
10567 (GUILE_DIR): New variable.
10568 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10569 (all): Add stamp-guile dependency.
10570 (stamp-guile): New rule.
10571 (clean-guile, install-guile, uninstall-guile): New rules.
10572 (install-only): Add install-guile dependency.
10573 (uninstall): Add uninstall-guile dependency.
10574 (clean): Add clean-guile dependency.
10576 2014-02-09 Doug Evans <xdje42@gmail.com>
10578 Revert this patch (which I approved, mea culpa).
10580 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10582 * Makefile.in (all-lib): Remove.
10583 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10585 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10587 Fix Python stack corruption.
10588 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10591 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10593 * Makefile.in (all-lib): Remove.
10594 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10596 2014-02-07 Doug Evans <dje@google.com>
10598 * extension-priv.h (extension_language_script_ops): Add comment.
10599 (extension_language_ops): Add comment.
10600 (active_ext_lang_state): Fix typo in comment.
10602 2014-02-07 Pedro Alves <palves@redhat.com>
10604 PR breakpoints/16292
10605 * infrun.c (handle_signal_stop) <signal arrives while stepping
10606 over a breakpoint>: Switch back to the stepping thread.
10608 2014-02-07 Yao Qi <yao@codesourcery.com>
10610 * target.c (target_xfer_partial): Return zero if LEN is zero.
10612 2014-02-07 Yao Qi <yao@codesourcery.com>
10614 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10615 (ld_so_xfer_auxv): Likewise.
10616 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10617 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10618 * corelow.c (core_xfer_partial): Likewise.
10619 * ctf.c (ctf_xfer_partial): Likewise.
10620 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10621 (darwin_xfer_partial): Likewise.
10622 * exec.c (exec_xfer_partial): Likewise.
10623 * gnu-nat.c (gnu_xfer_partial): Likewise.
10624 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10625 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10626 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10627 * linux-nat.c (linux_xfer_siginfo): Likewise.
10628 (linux_proc_xfer_spu): Likewise.
10629 * procfs.c (procfs_xfer_partial): Likewise.
10630 * record-full.c (record_full_xfer_partial): Likewise.
10631 (record_full_core_xfer_partial): Likewise.
10632 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10633 * remote.c (remote_write_qxfer): Likewise.
10634 (remote_write_qxfer, remote_read_qxfer): Likewise.
10635 (remote_xfer_partial): Likewise.
10636 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10637 (rs6000_xfer_shared_libraries): Likewise.
10638 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10639 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10640 (spu_xfer_partial): Likewise.
10641 * target.c (memory_xfer_partial_1): Likewise.
10642 * tracepoint.c (tfile_xfer_partial): Likewise.
10643 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10644 (windows_xfer_partial): Likewise.
10646 2014-02-07 Yao Qi <yao@codesourcery.com>
10648 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10650 (core_xfer_shared_libraries_aix): Likewise.
10651 * gdbarch.c, gdbarch.h: Regenerated.
10652 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10653 ULONGEST. Change 'len_avail' type to ULONGEST.
10654 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10655 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10657 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10659 2014-02-07 Yao Qi <yao@codesourcery.com>
10661 * corefile.c (memory_error): Get 'exception' from ERR and pass
10662 'exception' to throw_error.
10664 2014-02-06 Doug Evans <xdje42@gmail.com>
10666 * configure.ac (libpython checking): Remove all but python.o from
10667 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10668 * configure: Regenerate.
10670 * Makefile.in (SFILES): Add extension.c.
10671 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10672 (COMMON_OBS): Add extension.o.
10673 * extension.h: New file.
10674 * extension-priv.h: New file.
10675 * extension.c: New file.
10677 * python/python-internal.h: #include "extension.h".
10678 (gdbpy_auto_load_enabled): Declare.
10679 (gdbpy_apply_val_pretty_printer): Declare.
10680 (gdbpy_apply_frame_filter): Declare.
10681 (gdbpy_preserve_values): Declare.
10682 (gdbpy_breakpoint_cond_says_stop): Declare.
10683 (gdbpy_breakpoint_has_cond): Declare.
10684 (void source_python_script_for_objfile): Delete.
10685 * python/python.c: #include "extension-priv.h".
10686 Delete inclusion of "observer.h".
10687 (extension_language_python): Moved here and renamed from
10688 script_language_python in py-auto-load.c.
10689 Redefined to be of type extension_language_defn.
10690 (python_extension_script_ops): New global.
10691 (python_extension_ops): New global.
10692 (struct python_env): New member previous_active.
10693 (restore_python_env): Call restore_active_ext_lang.
10694 (ensure_python_env): Call set_active_ext_lang.
10695 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10697 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10699 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10701 (gdbpy_eval_from_control_command): Renamed from
10702 eval_python_from_control_command, made static. New arg extlang.
10703 (gdbpy_source_script) Renamed from source_python_script, made static.
10705 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10706 result to int. New arg extlang.
10707 (gdbpy_source_objfile_script): Renamed from
10708 source_python_script_for_objfile, made static. New arg extlang.
10709 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10710 static. New args extlang, extlang_printers. Change result type to
10712 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10713 static. New arg extlang. Rename arg printers to extlang_printers
10714 and change type to ext_lang_type_printers *.
10715 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10716 static. Replace argument arg with extlang, extlang_printers.
10717 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10718 (!HAVE_PYTHON, source_python_script): Delete.
10719 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10720 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10721 (!HAVE_PYTHON, start_type_printers): Delete.
10722 (!HAVE_PYTHON, apply_type_printers): Delete.
10723 (!HAVE_PYTHON, free_type_printers): Delete.
10724 (_initialize_python): Delete call to observer_attach_before_prompt.
10725 (finalize_python): Set/restore active extension language.
10726 (gdbpy_finish_initialization) Renamed from
10727 finish_python_initialization, made static. New arg extlang.
10728 (gdbpy_initialized): New function.
10729 * python/python.h: #include "extension.h". Delete #include
10730 "value.h", "mi/mi-cmds.h".
10731 (extension_language_python): Declare.
10732 (GDBPY_AUTO_FILE_NAME): Delete.
10733 (enum py_bt_status): Moved to extension.h and renamed to
10734 ext_lang_bt_status.
10735 (enum frame_filter_flags): Moved to extension.h.
10736 (enum py_frame_args): Moved to extension.h and renamed to
10737 ext_lang_frame_args.
10738 (finish_python_initialization): Delete.
10739 (eval_python_from_control_command): Delete.
10740 (source_python_script): Delete.
10741 (apply_val_pretty_printer): Delete.
10742 (apply_frame_filter): Delete.
10743 (preserve_python_values): Delete.
10744 (gdbpy_script_language_defn): Delete.
10745 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10746 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10748 * auto-load.c: #include "extension.h".
10749 (GDB_AUTO_FILE_NAME): Delete.
10750 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10751 (script_language_gdb): Delete, moved to extension.c and renamed to
10752 extension_language_gdb.
10753 (source_gdb_script_for_objfile): Delete.
10754 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10755 (loaded_script): Change type of language member to
10756 struct extension_language_defn *.
10757 (init_loaded_scripts_info): Initialize
10758 unsupported_script_warning_printed.
10759 (maybe_add_script): Make static. Change type of language arg to
10760 struct extension_language_defn *.
10761 (clear_section_scripts): Reset unsupported_script_warning_printed.
10762 (auto_load_objfile_script_1): Rewrite to use extension language API.
10763 (auto_load_objfile_script): Make public. Remove support-compiled-in
10764 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10765 (source_section_scripts): Rewrite to use extension language API.
10766 (load_auto_scripts_for_objfile): Rewrite to use
10767 auto_load_scripts_for_objfile.
10768 (collect_matching_scripts_data): Change type of language member to
10769 struct extension_language_defn *.
10770 (auto_load_info_scripts): Change type of language arg to
10771 struct extension_language_defn *.
10772 (unsupported_script_warning_print): New function.
10773 (script_not_found_warning_print): Make static.
10774 (_initialize_auto_load): Rewrite construction of scripts-directory
10776 * auto-load.h (struct objfile): Add forward decl.
10777 (struct script_language): Delete.
10778 (struct auto_load_pspace_info): Add forward decl.
10779 (struct extension_language_defn): Add forward decl.
10780 (maybe_add_script): Delete.
10781 (auto_load_objfile_script): Declare.
10782 (script_not_found_warning_print): Delete.
10783 (auto_load_info_scripts): Update prototype.
10784 (auto_load_gdb_scripts_enabled): Declare.
10785 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10786 auto_load_python_scripts_enabled and made public.
10787 (script_language_python): Delete, moved to python.c.
10788 (gdbpy_script_language_defn): Delete.
10789 (info_auto_load_python_scripts): Update to use
10790 extension_language_python.
10792 * breakpoint.c (condition_command): Replace call to
10793 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10794 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10795 with call to breakpoint_ext_lang_cond_says_stop.
10796 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10797 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10798 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10799 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10801 (local_setattro): Print name of extension language with existing
10804 * valprint.c (val_print, value_print): Update to call
10805 apply_ext_lang_val_pretty_printer.
10806 * cp-valprint.c (cp_print_value): Update call to
10807 apply_ext_lang_val_pretty_printer.
10808 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10809 (gdbpy_apply_val_pretty_printer): Renamed from
10810 apply_val_pretty_printer. New arg extlang.
10811 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10813 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10814 extension language API.
10815 * cli/cli-script.c (execute_control_command): Update to call
10816 eval_ext_lang_from_control_command.
10818 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10819 enum ext_lang_bt_status values. Update call to
10820 apply_ext_lang_frame_filter.
10821 (mi_cmd_stack_list_locals): Ditto.
10822 (mi_cmd_stack_list_args): Ditto.
10823 (mi_cmd_stack_list_variables): Ditto.
10824 * mi/mi-main.c: Delete #include "python/python-internal.h".
10825 Add #include "extension.h".
10826 (mi_cmd_list_features): Replace reference to python internal variable
10827 gdb_python_initialized with call to ext_lang_initialized_p.
10829 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10830 Update to use enum ext_lang_frame_args. Update to call
10831 apply_ext_lang_frame_filter.
10832 * python/py-framefilter.c (extract_sym): Update to use enum
10833 ext_lang_bt_status.
10834 (extract_value, py_print_type, py_print_value): Ditto.
10835 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10836 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10837 (py_print_frame): Ditto.
10838 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10839 New arg extlang. Update to use enum ext_lang_bt_status.
10841 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10842 finish_python_initialization. Replace with call to
10843 finish_ext_lang_initialization.
10845 * typeprint.c (do_free_global_table): Update to call
10846 free_ext_lang_type_printers.
10847 (create_global_typedef_table): Update to call
10848 start_ext_lang_type_printers.
10849 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10850 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10851 (type_print_options): Change type of global_printers from "void *"
10852 to "struct ext_lang_type_printers *".
10854 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10855 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10856 (gdbpy_preserve_values): Renamed from preserve_python_values.
10858 (!HAVE_PYTHON, preserve_python_values): Delete.
10860 * utils.c (quit_flag): Delete, moved to extension.c.
10861 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10864 * eval.c: Delete #include "python/python.h".
10865 * main.c: Delete #include "python/python.h".
10867 * defs.h: Update comment.
10869 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10873 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10875 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10878 2014-02-05 Yao Qi <yao@codesourcery.com>
10880 * remote.c (remote_pass_signals): Remove local 'buf' and use
10882 (remote_program_signals): Likewise.
10884 2014-02-05 Yao Qi <yao@codesourcery.com>
10886 * ctf.c: Include "inferior.h" and "gdbthread.h".
10887 (CTF_PID): A new macro.
10888 (ctf_open): Call inferior_appeared and add_thread_silent.
10889 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10890 (ctf_thread_alive): New function.
10891 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10893 2014-02-05 Yao Qi <yao@codesourcery.com>
10897 2013-05-24 Yao Qi <yao@codesourcery.com>
10899 * tracepoint.c (TFILE_PID): Remove.
10900 (tfile_open): Don't add thread and inferior.
10901 (tfile_close): Don't set 'inferior_ptid'. Don't call
10902 exit_inferior_silent.
10903 (tfile_thread_alive): Remove.
10904 (init_tfile_ops): Don't set field 'to_thread_alive' of
10907 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10909 * remote.c (remote_start_remote): Call remote_check_symbols even
10910 if only symbol-file (not file) has been given.
10912 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10914 * gdbarch.sh (skip_entrypoint): New callback.
10915 * gdbarch.c, gdbarch.h: Regenerate.
10916 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10917 * infrun.c (fill_in_stop_func): Likewise.
10918 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10919 (ppc_elfv2_elf_make_msymbol_special): New function.
10920 (ppc_elfv2_skip_entrypoint): Likewise.
10921 (ppc_linux_init_abi): Install them for ELFv2.
10923 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10925 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10926 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10927 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10928 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10929 structures returned in GPRs.
10931 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10933 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10934 offset to the stack parameter list for the ELFv2 ABI.
10936 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10938 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10939 set_gdbarch_convert_from_func_ptr_addr and
10940 set_gdbarch_elf_make_msymbol_special for ELFv1.
10941 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10942 function descriptors on ELFv1.
10943 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10944 set up r12 at function entry.
10946 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10948 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10949 (struct gdbarch_tdep): New member elf_abi.
10951 * rs6000-tdep.c: Include "elf/ppc64.h".
10952 (rs6000_gdbarch_init): Detect ELF ABI version.
10954 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10956 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10957 within a register pair holding a DFP 128-bit value on little-endian.
10958 (ppc64_sysv_abi_return_value_base): Likewise.
10959 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10960 (dfp_pseudo_register_write): Likewise.
10962 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10964 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10965 offset on little-endian when passing _Decimal32.
10966 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10968 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10970 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10971 of the overlapped FP register within the VSX register on little-
10973 (efpr_pseudo_register_write): Likewise.
10975 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10977 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10978 offset on little-endian when passing small structures.
10980 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10982 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10983 (struct ppc64_sysv_argpos): New data structure.
10984 (ppc64_sysv_abi_push_float): Remove.
10985 (ppc64_sysv_abi_push_val): New function.
10986 (ppc64_sysv_abi_push_integer): Likewise.
10987 (ppc64_sysv_abi_push_freg): Likewise.
10988 (ppc64_sysv_abi_push_vreg): Likewise.
10989 (ppc64_sysv_abi_push_param): Likewise.
10990 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10991 (ppc64_sysv_abi_return_value_base): New function.
10992 (ppc64_sysv_abi_return_value): Refactor to use it.
10994 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10996 * NEWS: Document new target powerpc64le-*-linux*.
10998 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11000 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11001 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11003 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11004 register set used in ELF core dumps. Add floating-point register set.
11006 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11008 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11009 dwarf2_to_gdb[] table using symbolic constants. Adjust
11010 penultimate entry from number representing the PC register
11011 to symbolic constant representing the MDR register. Add
11012 constant for the PC register to the end of the table.
11014 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11016 * bsd-kvm.c: Include <sys/param.h>
11018 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11020 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11022 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11024 * ada-lang.h (clear_ada_sym_cache): Delete.
11026 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11028 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11030 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11032 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11033 the sigreturn register save area only if the syscall is
11036 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11038 * valops.c (value_slice): Minor reformatting.
11040 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11042 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11044 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11046 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11047 New static globals.
11048 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11049 (ada_ignore_descriptive_types_p): New static global.
11050 (find_parallel_type_by_descriptive_type): Return immediately
11051 if ada_ignore_descriptive_types_p is set.
11052 (_initialize_ada_language): Register new commands "maintenance
11053 set ada", "maintenance show ada", "maintenance set ada
11054 ignore-descriptive-types" and "maintenance show ada
11055 ignore-descriptive-types".
11056 * NEWS: Add entry for new "maint ada set/show
11057 ignore-descriptive-types" commands.
11059 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11061 * record-btrace.c (record_btrace_close): Call btrace_teardown
11064 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11066 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11069 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11071 * ada-typeprint (type_is_full_subrange_of_target_type):
11073 (print_range): Add parameter bounds_prefered_p. If not set,
11074 try printing range types using the name of their base type.
11075 (print_range_type): Add parameter bounds_prefered_p.
11076 Use it in call to print_range.
11077 (print_array_type, ada_print_type): Update calls to print_range
11078 and print_range_type.
11080 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11082 * ada-typeprint.c (print_array_type, print_choices, print_range)
11083 (print_range_bound, print_dynamic_range_bound, print_range_type):
11084 Remove declaration.
11086 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11088 * ada-typeprint.c (print_range): Add missing empty line
11089 after local declaration.
11091 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11093 * ada-valprint.c (print_optional_low_bound): Get index_type's
11094 target type for as long as it is a TYPE_CODE_RANGE.
11096 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11098 * procfs.c (procfs_make_note_section): Remove assertion and
11099 associated comment.
11101 2014-01-24 Yao Qi <yao@codesourcery.com>
11103 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11104 * corelow.c (get_core_siginfo): Likewise.
11106 2014-01-24 Yao Qi <yao@codesourcery.com>
11108 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11109 ULONGEST. Don't check 'len' is negative.
11110 (remote_write_bytes): Change type of 'len' to ULONGEST.
11112 2014-01-23 Tom Tromey <tromey@redhat.com>
11115 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11116 Handle exception from frame.block.
11117 (FrameVars.fetch_frame_locals): Likewise.
11119 2014-01-23 Tom Tromey <tromey@redhat.com>
11122 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11123 on a NULL pointer. Move "goto error" to correct place.
11125 2014-01-23 Tom Tromey <tromey@redhat.com>
11128 * python/py-framefilter.c (apply_frame_filter): Call
11129 ensure_python_env after computing gdbarch.
11131 2014-01-23 Yao Qi <yao@codesourcery.com>
11133 * target.c (raw_memory_xfer_partial): Change argument type
11134 from void * to gdb_byte *.
11135 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11137 2014-01-22 Doug Evans <dje@google.com>
11139 New gdbserver option --debug-format=timestamp.
11140 * NEWS: Mention it.
11142 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11144 * syscalls/s390x-linux.xml: New file.
11145 * syscalls/s390-linux.xml: New file.
11146 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11147 (XML_SYSCALL_FILENAME_S390X): Likewise.
11148 (op_svc): New enum value for SVC opcode.
11149 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11150 (s390_linux_get_syscall_number): New function.
11151 (s390_gdbarch_init): Register '*get_syscall_number' and the
11152 syscall xml file name.
11153 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11154 "s390-linux.xml" and "s390x-linux.xml".
11155 * NEWS: Announce new feature.
11157 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11159 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11161 2014-01-22 Pedro Alves <palves@redhat.com>
11163 * xtensa-config.c: Include defs.h.
11165 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11167 * common/common-utils.h: Add "ARI:" comment beside __func__
11170 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11172 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11173 documentation a bit.
11175 2014-01-21 Roland McGrath <mcgrathr@google.com>
11177 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11178 * configure: Regenerate.
11179 * aclocal.m4: Regenerate.
11180 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11181 New substituted variables.
11182 (install-strip): New target.
11183 (INSTALL_SCRIPT): New substituted variable.
11184 (FLAGS_TO_PASS): Add it.
11185 (install-only): Use $(INSTALL_SCRIPT) rather than
11186 $(INSTALL_PROGRAM) for gcore.
11188 2014-01-20 Tom Tromey <tromey@redhat.com>
11190 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11193 2014-01-20 Tom Tromey <tromey@redhat.com>
11195 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11196 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11197 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11198 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11199 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11200 (struct cmd_list_element) <flags>: Remove.
11201 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11202 doc_allocated>: New fields.
11203 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11205 * maint.c (maintenance_do_deprecate): Update.
11206 * top.c (execute_command): Update.
11208 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11210 * xtensa-linux-nat.c: Include asm/ptrace.h.
11212 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11214 * Makefile.in (SFILES): Add d-support.c.
11215 (COMMON_OBS): Add d-support.o.
11216 * d-lang.h (d_parse_symbol): Add comment, now defined in
11218 * d-lang.c (parse_call_convention)
11219 (parse_attributes, parse_function_types)
11220 (parse_function_args, parse_type, parse_identifier)
11221 (call_convention_p, d_parse_symbol): Move functions to ...
11222 * d-support.c: ... New file.
11224 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11226 * d-lang.h (d_parse_symbol): Add declaration.
11227 * d-lang.c (extract_identifiers)
11228 (extract_type_info): Remove functions.
11229 (parse_call_convention, parse_attributes)
11230 (parse_function_types, parse_function_args)
11231 (parse_type, parse_identifier, call_convention_p)
11232 (d_parse_symbol): New functions.
11233 (d_demangle): Use d_parse_symbol to demangle D symbols.
11235 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11237 * d-lang.h (struct builtin_d_type): New data type.
11238 (builtin_d_type): Add declaration.
11239 * d-lang.c (d_language_arch_info, build_d_types)
11240 (builtin_d_type): New functions.
11241 (enum d_primitive_types): New data type.
11242 (d_language_defn): Change c_language_arch_info to
11243 d_language_arch_info.
11244 (d_type_data): New static variable.
11245 (_initialize_d_language): Initialize d_type_data.
11247 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11249 * d-lang.h (d_main_name): Add declaration.
11250 * d-lang.c (d_main_name): New function.
11251 * symtab.c (find_main_name): Add call to d_main_name.
11253 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11255 * d-lang.c (d_language_defn): Change macro_expansion_c to
11256 macro_expansion_no.
11258 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11260 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11262 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11264 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11265 gdb_exception" declaration.
11266 * remote.c (getpkt_or_notif_sane): Likewise.
11268 2014-01-17 Doug Evans <dje@google.com>
11270 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11271 function, contents of dirnames_to_char_ptr_vec_append moved here.
11272 (delim_string_to_char_ptr_vec): New function.
11273 (dirnames_to_char_ptr_vec_append): Rewrite.
11274 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11276 2014-01-17 Doug Evans <dje@google.com>
11278 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11280 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11281 #include "common-utils.h".
11282 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11283 * common/vec.h (VEC_ASSERT_PASS): Update.
11284 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11285 (MACH_CHECK_ERROR): Update.
11287 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11289 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11291 * gdbarch.h: Regenerate.
11293 2014-01-16 Tom Tromey <tromey@redhat.com>
11295 * value.c (struct value) <regnum>: Move earlier.
11297 2014-01-16 Tom Tromey <tromey@redhat.com>
11299 * remote.c (extended_remote_create_inferior): Rename from
11300 extended_remote_create_inferior_1. Add "ops" argument. Remove
11301 old implementation.
11303 2014-01-16 Pedro Alves <palves@redhat.com>
11305 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11306 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11309 2014-01-16 Doug Evans <dje@google.com>
11311 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11313 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11315 * btrace.h (btrace_thread_flag): New.
11316 (struct btrace_thread_info) <flags>: New.
11317 * record-btrace.c (record_btrace_resume_thread)
11318 (record_btrace_find_thread_to_move, btrace_step_no_history)
11319 (btrace_step_stopped, record_btrace_start_replaying)
11320 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11321 (record_btrace_find_resume_thread): New.
11322 (record_btrace_resume, record_btrace_wait): Extend.
11323 (record_btrace_can_execute_reverse): New.
11324 (record_btrace_open): Fail in non-stop mode.
11325 (record_btrace_set_replay): Split into this, ...
11326 (record_btrace_stop_replaying): ... this, ...
11327 (record_btrace_clear_histories): ... and this.
11328 (init_record_btrace_ops): Init to_can_execute_reverse.
11329 * NEWS: Announce it.
11331 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11333 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11334 (forward_target_decr_pc_after_break)
11335 (target_decr_pc_after_break): New.
11336 * target.c (forward_target_decr_pc_after_break)
11337 (target_decr_pc_after_break): New.
11338 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11339 instead of gdbarch_decr_pc_after_break.
11340 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11341 instead of gdbarch_decr_pc_after_break.
11342 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11343 instead of gdbarch_decr_pc_after_break.
11344 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11345 instead of gdbarch_decr_pc_after_break.
11346 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11347 instead of gdbarch_decr_pc_after_break.
11348 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11349 instead of gdbarch_decr_pc_after_break.
11351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11353 * btrace.c: Include regcache.h.
11354 (btrace_add_pc): New.
11355 (btrace_enable): Call btrace_add_pc.
11356 (btrace_is_empty): New.
11357 * btrace.h (btrace_is_empty): New.
11358 * record-btrace.c (require_btrace, record_btrace_info): Call
11361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11363 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11364 Support delta reads.
11365 (linux_disable_btrace): Change return type.
11366 * common/linux-btrace.h (linux_read_btrace): Change parameters
11367 and return type to allow error reporting. Update users.
11368 (linux_disable_btrace): Change return type. Update users.
11369 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11371 (btrace_error): New.
11372 (btrace_block) <begin>: Comment on BEGIN == 0.
11373 * btrace.c (btrace_compute_ftrace): Start from the end of
11375 (btrace_stitch_trace, btrace_clear_history): New.
11376 (btrace_fetch): Read delta trace, return if replaying.
11377 (btrace_clear): Move clear history code to btrace_clear_history.
11378 (parse_xml_btrace): Throw an error if parsing failed.
11379 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11380 and return type to allow error reporting.
11381 (target_read_btrace): Change parameters and return type to allow
11383 * target.c (target_read_btrace): Update.
11384 * remote.c (remote_read_btrace): Support delta reads. Pass
11386 * NEWS: Announce it.
11388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11390 * record.h (record_btrace_frame_unwind)
11391 (record_btrace_tailcall_frame_unwind): New declarations.
11392 * dwarf2-frame: Include record.h
11393 (dwarf2_frame_cfa): Throw an error for btrace frames.
11394 * record-btrace.c: Include hashtab.h.
11395 (btrace_get_bfun_name): New.
11396 (btrace_call_history): Call btrace_get_bfun_name.
11397 (struct btrace_frame_cache): New.
11399 (bfcache_hash, bfcache_eq, bfcache_new): New.
11400 (btrace_get_frame_function): New.
11401 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11402 (record_btrace_frame_this_id): Compute own id.
11403 (record_btrace_frame_prev_register): Provide PC, throw_error
11404 for all other registers.
11405 (record_btrace_frame_sniffer): Detect btrace frames.
11406 (record_btrace_tailcall_frame_sniffer): New.
11407 (record_btrace_frame_dealloc_cache): New.
11408 (record_btrace_frame_unwind): Add new functions.
11409 (record_btrace_tailcall_frame_unwind): New.
11410 (_initialize_record_btrace): Allocate cache.
11411 * btrace.c (btrace_clear): Call reinit_frame_cache.
11412 * NEWS: Announce it.
11414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11416 * record-btrace.c (record_btrace_set_replay)
11417 (record_btrace_goto_begin, record_btrace_goto_end)
11418 (record_btrace_goto): New.
11419 (init_record_btrace_ops): Initialize them.
11420 * NEWS: Announce it.
11422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11424 * record-btrace.c (record_btrace_find_new_threads)
11425 (record_btrace_thread_alive): New.
11426 (init_record_btrace_ops): Initialize to_find_new_threads and
11429 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11431 * record-btrace.c (record_btrace_resume): New.
11432 (record_btrace_wait): New.
11433 (init_record_btrace_ops): Initialize to_wait and to_resume.
11435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11437 * record-btrace.c (record_btrace_xfer_partial)
11438 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11439 (record_btrace_allow_memory_access): New.
11440 (init_record_btrace_ops): Initialize new methods.
11441 * target.c (raw_memory_xfer_partial): Bail out if target reports
11442 that this memory is not available.
11444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11446 * target.h (target_ops) <to_insert_breakpoint>
11447 <to_remove_breakpoint>: Add target_ops parameter.
11448 (forward_target_insert_breakpoint): New.
11449 (forward_target_remove_breakpoint): New.
11450 (memory_remove_breakpoint, memory_insert_breakpoint):
11451 Add target_ops parameter.
11452 * target.c (target_insert_breakpoint): Split into this and ...
11453 (forward_target_insert_breakpoint): ... this.
11454 (target_remove_breakpoint): Split into this and ...
11455 (forward_target_remove_breakpoint): ... this.
11456 (debug_to_insert_breakpoint): Add target_ops parameter.
11457 Call forward_target_insert_breakpoint.
11458 (debug_to_remove_breakpoint): Add target_ops parameter.
11459 Call forward_target_remove_breakpoint.
11460 (update_current_target): Do not inherit or default to_insert_breakpoint
11461 and to_remove_breakpoint.
11462 * corelow.c (ignore): Add target_ops parameter.
11463 * exec.c (ignore): Add target_ops parameter.
11464 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11465 Add target_ops parameter.
11466 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11467 Add target_ops parameter.
11468 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11469 Add target_ops parameter.
11470 * record-full.c (record_full_beneath_to_insert_breakpoint)
11471 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11472 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11473 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11474 (record_full_core_remove_breakpoint): Add target_ops parameter.
11476 (record_full_beneath_to_insert_breakpoint_ops)
11477 (record_full_beneath_to_remove_breakpoint_ops)
11478 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11479 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11480 tmp_to_remove_breakpoint_ops,
11481 record_full_beneath_to_insert_breakpoint_ops, and
11482 record_full_beneath_to_remove_breakpoint_ops.
11483 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11484 (m32r_remove_breakpoint): Add target_ops parameter.
11485 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11486 Add target_ops parameter.
11487 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11488 Add target_ops parameter.
11490 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11491 Markus Metzger <markus.t.metzger@intel.com>
11493 * record-btrace.c: Include frame-unwind.h.
11494 (record_btrace_frame_unwind_stop_reason)
11495 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11496 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11498 (init_record_btrace_ops): Install it.
11500 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11502 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11505 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11507 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11510 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11512 * frame-unwind.c: Include target.h.
11513 (frame_unwind_try_unwinder): New function with code from ...
11514 (frame_unwind_find_by_frame): ... here. New variable
11515 unwinder_from_target, call also target_get_unwinder)
11516 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11517 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11518 * target.h (struct target_ops): New fields to_get_unwinder and
11519 to_get_tailcall_unwinder.
11520 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11524 * record-btrace.c (record_btrace_fetch_registers)
11525 (record_btrace_store_registers)
11526 (record_btrace_to_prepare_to_store): New.
11527 (init_record_btrace_ops): Add the above.
11529 2014-01-16 Tom Tromey <tromey@redhat.com>
11531 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11532 * target.h (struct target_ops) <to_prepare_to_store>: Add
11534 (target_prepare_to_store): Add argument.
11535 * target.c (debug_to_prepare_to_store): Add argument.
11536 (update_current_target): Update.
11537 * remote.c (remote_prepare_to_store): Add 'self' argument.
11538 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11539 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11540 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11541 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11543 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11544 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11545 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11546 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11547 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11549 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11551 * btrace.h (replay) <replay>: New.
11552 (btrace_is_replaying): New.
11553 * btrace.c (btrace_clear): Free replay iterator.
11554 (btrace_is_replaying): New.
11555 * record-btrace.c (record_btrace_is_replaying): New.
11556 (record_btrace_info): Print insn number if replaying.
11557 (record_btrace_insn_history): Start at replay position.
11558 (record_btrace_call_history): Start at replay position.
11559 (init_record_btrace_ops): Init to_record_is_replaying.
11561 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11563 * record-btrace.c (record_btrace_insn_history_range): Include
11565 (record_btrace_insn_history_from): Adjust range.
11566 (record_btrace_call_history_range): Include
11568 (record_btrace_call_history_from): Adjust range.
11569 * NEWS: Announce changes.
11571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11573 * record.h (enum record_print_flag)
11574 <record_print_indent_calls>: New.
11575 * record.c (get_call_history_modifiers): Recognize /c modifier.
11576 (_initialize_record): Document /c modifier.
11577 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11578 Reorder fields. Optionally indent the function name. Update
11580 * NEWS: Announce changes.
11582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11584 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11586 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11588 * btrace.c (ftrace_new_function): Start counting at one.
11589 * record-btrace.c (record_btrace_info): Adjust number of calls
11591 * NEWS: Announce it.
11593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11595 * record-btrace.c (btrace_call_history_insn_range): Print
11596 insn range as [begin, end].
11598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11600 * btrace.h (struct btrace_func_link): New.
11601 (enum btrace_function_flag): New.
11602 (struct btrace_inst): Rename to ...
11603 (struct btrace_insn): ...this. Update all users.
11604 (struct btrace_func) <ibegin, iend>: Remove.
11605 (struct btrace_func_link): New.
11606 (struct btrace_func): Rename to ...
11607 (struct btrace_function): ...this. Update all users.
11608 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11609 (number, level, flags>: New.
11610 (struct btrace_insn_iterator): Rename to ...
11611 (struct btrace_insn_history): ...this.
11613 (struct btrace_insn_iterator, btrace_call_iterator): New.
11614 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11615 (struct btrace_target_info) <begin, end, level>
11616 <insn_history, call_history>: New.
11617 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11618 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11619 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11620 (btrace_call_number, btrace_call_begin, btrace_call_end)
11621 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11622 (btrace_find_function_by_number, btrace_set_insn_history)
11623 (btrace_set_call_history): New.
11624 * btrace.c (btrace_init_insn_iterator)
11625 (btrace_init_func_iterator, compute_itrace): Remove.
11626 (ftrace_print_function_name, ftrace_print_filename)
11627 (ftrace_skip_file): Change
11628 parameter to const.
11629 (ftrace_init_func): Remove.
11630 (ftrace_debug): Use new btrace_function fields.
11631 (ftrace_function_switched): Also consider gaining and
11632 losing symbol information).
11633 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11634 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11635 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11637 (ftrace_new_function): Move. Remove debug print.
11638 (ftrace_update_lines, ftrace_update_insns): New.
11639 (ftrace_update_function): Check for call, ret, and jump.
11640 (compute_ftrace): Renamed to ...
11641 (btrace_compute_ftrace): ...this. Rewritten to compute call
11643 (btrace_fetch, btrace_clear): Updated.
11644 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11645 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11646 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11647 (btrace_call_number, btrace_call_begin, btrace_call_end)
11648 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11649 (btrace_find_function_by_number, btrace_set_insn_history)
11650 (btrace_set_call_history): New.
11651 * record-btrace.c (require_btrace): Use new btrace thread
11653 (record_btrace_info, btrace_insn_history)
11654 (record_btrace_insn_history, record_btrace_insn_history_range):
11655 Use new btrace thread info fields and new iterator.
11656 (btrace_func_history_src_line): Rename to ...
11657 (btrace_call_history_src_line): ...this. Use new btrace
11658 thread info fields.
11659 (btrace_func_history): Rename to ...
11660 (btrace_call_history): ...this. Use new btrace thread info
11661 fields and new iterator.
11662 (record_btrace_call_history, record_btrace_call_history_range):
11663 Use new btrace thread info fields and new iterator.
11665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11667 * frame.h (frame_id_build_unavailable_stack_special): New.
11668 * frame.c (frame_id_build_unavailable_stack_special): New.
11670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11672 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11673 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11674 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11676 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11677 (i386_insn_is_jump, i386_jmp_p): New.
11678 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11679 insn_is_jump to gdbarch.
11680 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11681 * gdbarch.h: Regenerated.
11682 * gdbarch.c: Regenerated.
11683 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11684 (default_insn_is_jump): New.
11685 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11686 (default_insn_is_jump): New.
11688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11690 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11692 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11693 (btrace_read_type) <btrace_read_new>: Change to ...
11694 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11698 * common/linux-btrace.c (linux_read_btrace): Free trace from
11699 previous iteration.
11701 2014-01-15 Doug Evans <dje@google.com>
11703 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11706 2014-01-15 Tom Tromey <tromey@redhat.com>
11708 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11709 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11710 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11711 (set_objfile_main_name): New function.
11712 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11713 language_of_main>: New fields.
11714 (set_objfile_main_name): Declare.
11715 * symtab.c (find_main_name): Loop over objfiles to find the main
11717 (set_main_name): Now static.
11718 (get_main_info): Add comment.
11719 * symtab.h (set_main_name): Don't declare.
11721 2014-01-15 Tom Tromey <tromey@redhat.com>
11723 * symtab.c (main_progspace_key): New global.
11724 (struct main_info): New.
11725 (name_of_main, language_of_main): Remove.
11726 (get_main_info, main_info_cleanup): New function.
11727 (set_main_name, main_name, main_language): Use get_main_info.
11728 (_initialize_symtab): Initialize main_progspace_key.
11730 2014-01-15 Tom Tromey <tromey@redhat.com>
11732 * dbxread.c (process_one_symbol): Update.
11733 * dwarf2read.c (read_partial_die): Update.
11734 * symfile.c (set_initial_language): Call main_language.
11735 * symtab.c (language_of_main): Now static.
11736 (set_main_name): Add 'lang' parameter.
11737 (find_main_name): Update.
11738 (main_language): New function.
11739 (symtab_observer_executable_changed): Update.
11740 * symtab.h (set_main_name): Update.
11741 (language_of_main): Remove.
11742 (main_language): Declare.
11744 2014-01-15 Tom Tromey <tromey@redhat.com>
11746 * symfile.c (init_entry_point_info): Use new "initialized" field.
11748 * objfiles.h (struct entry_point) <initialized>: New field.
11749 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11750 (struct objfile) <ei>: ...here. Remove.
11751 * objfiles.c (entry_point_address_query): Update.
11753 2014-01-15 Tom Tromey <tromey@redhat.com>
11755 * objfiles.c (entry_point_address_query): Relocate entry point
11757 (objfile_relocate1): Do not relocate entry point address.
11758 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11759 <the_bfd_section_index>: New field.
11760 * symfile.c (init_entry_point_info): Find the entry point's
11763 2014-01-15 Tom Tromey <tromey@redhat.com>
11765 * solib-frv.c (enable_break): Use entry_point_address_query.
11767 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11769 * NEWS: Add note on improved process record-replay on
11770 arm*-linux* targets.
11772 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11774 * arm-tdep.c (enum arm_record_result): New enum.
11775 (arm_record_unsupported_insn): New function.
11776 (arm_record_coproc_data_proc): Removed.
11777 (thumb2_record_ld_st_multiple): New function.
11778 (thumb2_record_ld_st_dual_ex_tbb): New function.
11779 (thumb2_record_data_proc_sreg_mimm): New function.
11780 (thumb2_record_ps_dest_generic): New function.
11781 (thumb2_record_branch_misc_cntrl): New function.
11782 (thumb2_record_str_single_data): New function.
11783 (thumb2_record_ld_mem_hints): New function.
11784 (thumb2_record_ld_word): New function.
11785 (thumb2_record_lmul_lmla_div): New function.
11786 (thumb2_record_decode_insn_handler): New function.
11787 (decode_insn): Add thumb32 instruction handlers.
11789 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11791 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11792 (struct arm_linux_record_tdep): Declare.
11793 (arm_canonicalize_syscall): New function.
11794 (arm_all_but_pc_registers_record): New function.
11795 (arm_linux_syscall_record): New function.
11796 (arm_linux_init_abi): Add syscall recording constructs.
11797 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11798 decoding. (arm_record_coproc_data_proc): Update arm syscall
11800 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11801 <arm_syscall_record>: New field.
11802 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11805 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11807 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11808 register for push instruction recording.
11810 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11812 * arm-tdep.c (thumb_record_misc): Update to correct logical
11813 error while recording ldm, ldmia and pop instructions.
11815 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11817 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11819 2014-01-15 Pedro Alves <palves@redhat.com>
11821 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11822 (go32_resume, go32_fetch_registers, store_register)
11823 (go32_store_registers, go32_prepare_to_store)
11824 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11825 (go32_create_inferior, go32_can_run, go32_terminal_init)
11826 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11829 2014-01-15 Tom Tromey <tromey@redhat.com>
11831 * target.h (async_callback_ftype): New typedef.
11832 (struct target_ops) <to_async>: Use it.
11834 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11836 * python/py-value.c (get_field_type): Remove unnecessary curly
11837 braces for single-statement if block.
11839 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11841 * python/py-type.c (convert_field): Add missing empty line
11842 after declarations.
11844 2014-01-14 Doug Evans <dje@google.com>
11846 * symfile.h (expand_symtabs_matching): Renamed from
11847 expand_partial_symbol_names. Update prototype.
11848 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11849 * symfile.c (expand_symtabs_matching): Renamed from
11850 expand_partial_symbol_names. New args file_matcher, kind.
11851 Rename arg fun to symbol_matcher.
11852 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11853 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11854 ada_expand_partial_symbol_name.
11855 (ada_make_symbol_completion_list): Update to call
11856 expand_symtabs_matching.
11857 (ada_add_global_exceptions): Call expand_symtabs_matching.
11858 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11859 call map_symbol_filenames.
11860 * symtab.c (sources_info): Update to call map_symbol_filenames.
11861 (search_symbols): Call expand_symtabs_matching.
11862 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11863 (default_make_symbol_completion_list_break_on): Update to call
11864 expand_symtabs_matching.
11865 (make_source_files_completion_list): Update to call
11866 map_symbol_filenames.
11868 2014-01-14 Doug Evans <dje@google.com>
11870 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11871 (expand_symtabs_symbol_matcher_ftype): New typedef.
11872 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11873 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11874 * symfile.c (expand_partial_symbol_names): Update to use
11875 expand_symtabs_symbol_matcher_ftype.
11876 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11877 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11878 Arg name_matcher renamed to symbol_matcher.
11879 * psymtab.c (recursively_search_psymtabs): Update to use
11880 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11882 (expand_symtabs_matching_via_partial): Update to use
11883 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11884 Arg name_matcher renamed to symbol_matcher.
11886 2014-01-14 Doug Evans <dje@google.com>
11888 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11889 (map_partial_symbol_filenames): Ditto.
11890 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11891 (map_partial_symbol_filenames): Ditto.
11892 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11893 (map_partial_symbol_filenames): Ditto.
11894 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11895 (map_partial_symbol_filenames): Ditto.
11896 * symtab.c: Delete #include "psymtab.h".
11898 2014-01-14 Pedro Alves <palves@redhat.com>
11899 Tom Tromey <tromey@redhat.com>
11901 * infrun.c (use_displaced_stepping): Use find_record_target
11902 instead of RECORD_IS_USED.
11903 (adjust_pc_after_break): Use record_full_is_used instead of
11905 * record-btrace.c (record_btrace_open): Call record_preopen
11906 instead of checking RECORD_IS_USED.
11907 * record-full.c (record_full_shortname)
11908 (record_full_core_shortname): New globals.
11909 (record_full_is_used): New function.
11910 (find_full_open): Call record_preopen instead of checking
11912 (init_record_full_ops): Set the target's shortname to
11913 record_full_shortname.
11914 (init_record_full_core_ops): Set the target's shortname to
11915 record_full_core_shortname.
11916 * record-full.h (record_full_is_used): Declare.
11917 * record.c (find_record_target): Make extern.
11918 (record_preopen): New function.
11919 * record.h (RECORD_IS_USED): Delete macro.
11920 (find_record_target, record_preopen): Declare functions.
11922 2014-01-14 Yao Qi <yao@codesourcery.com>
11924 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11925 'len''s type to ULONGEST.
11926 (core_xfer_shared_libraries_aix): Likewise.
11927 * gdbarch.c, gdbarch.h: Regenerated.
11928 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11929 Change type of 'len' to ULONGEST.
11930 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11931 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11933 2014-01-14 Yao Qi <yao@codesourcery.com>
11935 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11936 type of 'len' to ULONGEST.
11937 (linux_xfer_osdata_processgroups): Likewise.
11938 (linux_xfer_osdata_threads): Likewise.
11939 (linux_xfer_osdata_fds): Likewise.
11940 (linux_xfer_osdata_isockets): Likewise.
11941 (linux_xfer_osdata_shm): Likewise.
11942 (linux_xfer_osdata_sem): Likewise.
11943 (linux_xfer_osdata_msg): Likewise.
11944 (linux_common_xfer_osdata): Likewise.
11945 (struct osdata_type) <getter>: Likewise.
11946 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11949 2014-01-14 Yao Qi <yao@codesourcery.com>
11951 * target.h (target_xfer_partial_ftype): Update.
11952 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11954 * aix-thread.c (aix_thread_xfer_partial): Change type of
11955 argument 'len' to ULONGEST.
11956 * auxv.c (procfs_xfer_auxv): Likewise.
11957 (ld_so_xfer_auxv): Likewise.
11958 (memory_xfer_auxv): Likewise.
11959 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11960 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11961 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11962 * corelow.c (core_xfer_partial): Likewise.
11963 * ctf.c (ctf_xfer_partial): Likewise.
11964 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11966 (darwin_read_dyld_info): Likewise.
11967 (darwin_xfer_partial): Likewise.
11968 * exec.c (section_table_xfer_memory_partial): Likewise.
11969 (exec_xfer_partial): Likewise.
11970 * exec.h (section_table_xfer_memory_partial): Update
11972 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11973 instead of plongest.
11974 (gnu_xfer_partial): Likewise.
11975 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11976 (ia64_hpux_xfer_solib_got): Likewise.
11977 (ia64_hpux_xfer_partial): Likewise.
11978 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11979 * inf-ptrace.c (inf_ptrace_xfer_partial):
11980 * inf-ttrace.c (inf_ttrace_xfer_partial):
11981 * linux-nat.c (linux_xfer_siginfo): Likewise.
11982 (linux_nat_xfer_partial): Likewise.
11983 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11984 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11985 * monitor.c (monitor_xfer_memory): Likewise.
11986 (monitor_xfer_partial): Likewise.
11987 * procfs.c (procfs_xfer_partial): Likewise.
11988 * record-full.c (record_full_xfer_partial): Likewise.
11989 (record_full_core_xfer_partial): Likewise.
11990 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11991 instead of plongest.
11992 (gdbsim_xfer_partial): Likewise.
11993 * remote.c (remote_xfer_partial): Likewise.
11994 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11995 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11997 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11998 (rs6000_xfer_shared_libraries): Likewise.
11999 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12000 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12001 (sparc_xfer_partial): Likewise.
12002 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12003 (spu_xfer_partial): Likewise.
12004 * spu-multiarch.c (spu_xfer_partial): Likewise.
12005 * target.c (target_read_live_memory): Likewise.
12006 (memory_xfer_live_readonly_partial): Likewise.
12007 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12008 (target_xfer_partial, default_xfer_partial): Likewise.
12009 (current_xfer_partial): Likewise.
12010 * tracepoint.c (tfile_xfer_partial): Likewise.
12011 * windows-nat.c (windows_xfer_memory): Likewise. Call
12012 pulongest instead of plongest.
12013 (windows_xfer_partial): Likewise.
12014 (windows_xfer_shared_libraries): Likewise.
12016 2014-01-14 Yao Qi <yao@codesourcery.com>
12018 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12019 target_xfer_partial_ftype.
12021 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12025 * valops.c (value_struct_elt_bitpos): New function
12026 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12027 object to 'None' if the field name is an empty string ("").
12028 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12029 attribute to look for a field when 'name' is 'None'.
12030 (get_field_type): New function
12032 2014-01-13 Doug Evans <dje@google.com>
12035 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12036 (try_open_dwop_file): Ditto.
12037 * gdb_bfd.c: #include "vec.h".
12038 (bfdp): New typedef.
12039 (struct gdb_bfd_data): New member included_bfds.
12040 (gdb_bfd_unref): Unref all included bfds.
12041 (gdb_bfd_record_inclusion): New function.
12042 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12044 2014-01-13 Tom Tromey <tromey@redhat.com>
12046 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12048 2014-01-13 Tom Tromey <tromey@redhat.com>
12050 * defs.h (use_windows): Remove.
12051 * gdb.c (main): Update.
12052 * main.c (captured_main, gdb_main): Update.
12053 * main.h (struct captured_main_args) <use_windows>: Remove.
12054 * top.c (use_windows): Remove.
12056 2014-01-13 Tom Tromey <tromey@redhat.com>
12058 * defs.h (deprecated_flush_hook): Remove.
12060 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12063 * linux-thread-db.c (try_thread_db_load): Add parameter
12064 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12065 (try_thread_db_load_from_pdir_1): Move it there from here.
12066 (try_thread_db_load_from_sdir): Update caller.
12067 (try_thread_db_load_from_dir): Move it there from here.
12069 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12071 * regformats/regdat.sh: Always rewrite the register file.
12073 2014-01-13 Pedro Alves <palves@redhat.com>
12075 * Makefile.in (CHECK_HEADERS): New variable.
12076 (check-headers:): New rule.
12078 2014-01-13 Tom Tromey <tromey@redhat.com>
12080 * cli/cli-setshow.c (do_set_command): Update.
12081 * defs.h (deprecated_set_hook): Remove.
12082 * top.c (deprecated_set_hook): Remove.
12084 2014-01-13 Pedro Alves <palves@redhat.com>
12086 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12087 the tracepoint if the PC is a pseudo-register.
12089 2014-01-13 Tom Tromey <tromey@redhat.com>
12091 * defs.h (XCALLOC): Remove.
12092 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12093 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12094 * dwarf2loc.c (allocate_piece_closure): Likewise.
12095 * elfread.c (elf_symfile_segments): Likewise.
12096 (elf_symfile_segments): Likewise.
12097 * gdbtypes.c (copy_type_recursive): Likewise.
12098 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12099 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12100 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12102 * mt-tdep.c (mt_gdbarch_init): Likewise.
12103 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12105 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12106 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12107 * registry.c (registry_alloc_data): Likewise.
12108 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12109 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12110 * serial.c (serial_fdopen_ops): Likewise.
12111 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12113 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12114 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12117 2014-01-13 Tom Tromey <tromey@redhat.com>
12119 * defs.h (XMALLOC): Remove.
12120 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12121 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12122 * cli-out.c (struct ui_out *): Likewise.
12123 * cli/cli-dump.c (add_dump_command): Likewise.
12124 (add_dump_command): Likewise.
12125 * complaints.c (get_complaints): Likewise.
12126 (find_complaint): Likewise.
12127 * dwarf2-frame.c (execute_cfa_program): Likewise.
12128 * dwarf2read.c (abbrev_table_read_table): Likewise.
12129 * gdbarch.sh: Likewise.
12130 * gdbarch.c: Rebuild.
12131 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12132 * interps.c (interp_new): Likewise.
12133 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12134 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12135 * mi/mi-console.c (mi_console_file_new): Likewise.
12136 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12137 * mi/mi-out.c (mi_out_new): Likewise.
12138 * mi/mi-parse.c (mi_parse): Likewise.
12139 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12140 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12141 * observer.c (xalloc_observer_list_node): Likewise.
12142 * regcache.c (regcache_xmalloc_1): Likewise.
12143 * reggroups.c (reggroup_new): Likewise.
12144 (_initialize_reggroup): Likewise.
12145 * registry.c (register_data_with_cleanup): Likewise.
12146 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12147 * ser-base.c (serial_ttystate): Likewise.
12148 * ser-mingw.c (make_pipe_state): Likewise.
12149 * ser-pipe.c (pipe_open): Likewise.
12150 * serial.c (serial_open): Likewise.
12151 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12152 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12153 (tui_alloc_win_info): Likewise.
12154 (tui_add_content_elements): Likewise.
12155 * tui/tui-file.c (tui_file_new): Likewise.
12156 * tui/tui-out.c (tui_out_new): Likewise.
12157 * ui-file.c (mem_file_new): Likewise.
12158 * ui-out.c (push_level): Likewise.
12159 (make_cleanup_ui_out_end): Likewise.
12160 (append_header_to_list): Likewise.
12161 (ui_out_new): Likewise.
12162 * user-regs.c (user_reg_add_builtin): Likewise.
12164 2014-01-13 Tom Tromey <tromey@redhat.com>
12166 * defs.h (XZALLOC): Remove.
12167 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12168 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12169 (get_ada_tasks_inferior_data): Likewise.
12170 * auto-load.c (get_auto_load_pspace_data): Likewise.
12171 * auxv.c (get_auxv_inferior_data): Likewise.
12172 * bfd-target.c (target_bfd_reopen): Likewise.
12173 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12174 (deprecated_insert_raw_breakpoint): Likewise.
12175 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12176 * corelow.c (core_open): Likewise.
12177 * darwin-nat.c (darwin_check_new_threads): Likewise.
12178 (darwin_attach_pid): Likewise.
12179 * dummy-frame.c (dummy_frame_push): Likewise.
12180 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12181 * dwarf2loc.c (allocate_piece_closure): Likewise.
12182 * elfread.c (elf_symfile_segments): Likewise.
12183 * eval.c (ptrmath_type_p): Likewise.
12184 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12185 * gdbtypes.c (alloc_type_arch): Likewise.
12186 (alloc_type_instance): Likewise.
12187 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12188 * inf-child.c (inf_child_can_use_agent): Likewise.
12189 * inflow.c (get_inflow_inferior_data): Likewise.
12190 * infrun.c (save_infcall_suspend_state): Likewise.
12191 * jit.c (jit_reader_load): Likewise.
12192 (get_jit_objfile_data): Likewise.
12193 (get_jit_program_space_data): Likewise.
12194 (jit_object_open_impl): Likewise.
12195 (jit_symtab_open_impl): Likewise.
12196 (jit_block_open_impl): Likewise.
12197 (jit_frame_sniffer): Likewise.
12198 * linux-fork.c (add_fork): Likewise.
12199 * maint.c (make_command_stats_cleanup): Likewise.
12200 * objfiles.c (get_objfile_pspace_data): Likewise.
12201 * opencl-lang.c (struct lval_closure): Likewise.
12202 * osdata.c (osdata_start_osdata): Likewise.
12203 * progspace.c (new_address_space): Likewise.
12204 (add_program_space): Likewise.
12205 * remote-sim.c (get_sim_inferior_data): Likewise.
12206 * sh-tdep.c (sh_gdbarch_init): Likewise.
12207 * skip.c (Ignore): Likewise.
12208 (skip_delete_command): Likewise.
12209 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12210 (library_list_start_library): Likewise.
12211 (solib_aix_current_sos): Likewise.
12212 * solib-darwin.c (get_darwin_info): Likewise.
12213 (darwin_current_sos): Likewise.
12214 * solib-dsbt.c (get_dsbt_info): Likewise.
12215 * solib-ia64-hpux.c (new_so_list): Likewise.
12216 (ia64_hpux_get_solib_linkage_addr): Likewise.
12217 * solib-spu.c (append_ocl_sos): Likewise.
12218 (spu_current_sos): Likewise.
12219 * solib-svr4.c (get_svr4_info): Likewise.
12220 (svr4_keep_data_in_core): Likewise.
12221 (library_list_start_library): Likewise.
12222 (svr4_default_sos): Likewise.
12223 (svr4_read_so_list): Likewise.
12224 * solib-target.c (library_list_start_library): Likewise.
12225 (solib_target_current_sos): Likewise.
12226 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12227 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12228 * symfile.c (default_symfile_segments): Likewise.
12229 * target-descriptions.c (tdesc_data_init): Likewise.
12230 (tdesc_create_reg): Likewise.
12231 (struct tdesc_type *): Likewise.
12232 (tdesc_create_vector): Likewise.
12233 (tdesc_set_struct_size): Likewise.
12234 (struct tdesc_type *): Likewise.
12235 (tdesc_free_feature): Likewise.
12236 (tdesc_create_feature): Likewise.
12237 * windows-nat.c (windows_add_thread): Likewise.
12238 (windows_make_so): Likewise.
12239 * xml-support.c (gdb_xml_body_text): Likewise.
12240 (gdb_xml_create_parser_and_cleanup): Likewise.
12241 (xml_process_xincludes): Likewise.
12242 * xml-syscall.c (allocate_syscalls_info): Likewise.
12243 (syscall_create_syscall_desc): Likewise.
12245 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12247 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12248 function, with code from i386_stap_parse_special_token.
12249 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12250 (i386_stap_parse_special_token): Move code to the two functions
12251 above; simplify it.
12253 2014-01-09 Pedro Alves <palves@redhat.com>
12254 Hui Zhu <hui@codesourcery.com>
12257 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12258 bp_err_string. Don't mark the location shlib_disabled if the
12259 error thrown wasn't a generic or memory error. Catch errors
12260 thrown while inserting breakpoints in overlayed code. Output
12261 error message of software breakpoints.
12262 * remote.c (remote_insert_breakpoint): If this breakpoint has
12263 target-side commands but this stub doesn't support Z0 packets,
12264 throw NOT_SUPPORTED_ERROR error.
12265 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12266 * target.h (target_insert_breakpoint): Extend comment.
12267 (target_insert_hw_breakpoint): Add comment.
12269 2014-01-08 Pedro Alves <palves@redhat.com>
12271 * remote.c (remote_add_thread): Add threads silently if starting
12273 (remote_notice_new_inferior): If in all-stop, and starting up,
12274 don't call notice_new_inferior.
12275 (get_current_thread): New function, factored out from ...
12276 (add_current_inferior_and_thread): ... this. Adjust.
12277 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12278 found any thread, then select the remote's current thread as GDB's
12279 current thread too.
12281 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12283 * NEWS: Create a new section for the next release branch.
12284 Rename the section of the current branch, now that it has
12287 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12289 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12290 * version.in: Bump version to 7.7.50.DATE-cvs.
12292 2014-01-08 Yao Qi <yao@codesourcery.com>
12294 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12295 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12296 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12298 2014-01-08 Yao Qi <yao@codesourcery.com>
12300 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12301 return value of bfd_get_filename to symbol_file_add_from_bfd.
12303 2014-01-08 Pierre Muller <muller@sourceware.org>
12306 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12307 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12308 to prim_record_mininal_symbol_and_info.
12309 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12310 in call to prim_record_minimal_symbol_and_info.
12311 (read_pe_exported_syms): Set index field of section_data.
12313 2014-01-07 Andrew Pinski <apinski@cavium.com>
12315 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12316 * features/aarch64.c: Regenerate.
12318 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12320 * target.c (return_null): Define.
12321 (update_current_target): Use it instead of return_zero for
12322 functions that return a pointer.
12324 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12326 * source.c (add_path): Fix check for duplicated paths in the previously
12329 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12331 * ada-lang.c: Remove duplicated include statements.
12332 * alphabsd-nat.c: Ditto.
12333 * amd64-darwin-tdep.c: Ditto.
12334 * amd64fbsd-nat.c: Ditto.
12335 * auto-load.c: Ditto.
12337 * breakpoint.c: Ditto.
12338 * dbxread.c: Ditto.
12339 * fork-child.c: Ditto.
12340 * gdb_usleep.c: Ditto.
12341 * i386-darwin-tdep.c: Ditto.
12342 * i386fbsd-nat.c: Ditto.
12344 * inferior.c: Ditto.
12345 * jv-lang.c: Ditto.
12346 * linux-nat.c: Ditto.
12347 * linux-tdep.c: Ditto.
12348 * m68kbsd-nat.c: Ditto.
12349 * m68klinux-nat.c: Ditto.
12350 * microblaze-tdep.c: Ditto.
12351 * mips-linux-tdep.c: Ditto.
12352 * mn10300-tdep.c: Ditto.
12353 * nto-tdep.c: Ditto.
12354 * opencl-lang.c: Ditto.
12356 * printcmd.c: Ditto.
12357 * regcache.c: Ditto.
12358 * remote-m32r-sdi.c: Ditto.
12360 * symfile.c: Ditto.
12362 * tilegx-linux-nat.c: Ditto.
12363 * tilegx-tdep.c: Ditto.
12364 * tracepoint.c: Ditto.
12366 * vaxbsd-nat.c: Ditto.
12367 * windows-nat.c: Ditto.
12368 * xtensa-tdep.c: Ditto.
12370 2014-01-07 Yao Qi <yao@codesourcery.com>
12372 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12374 2014-01-07 Yao Qi <yao@codesourcery.com>
12375 Joel Brobecker <brobecker@adacore.com>
12377 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12378 (pdc_write_regs): Likewise.
12379 (fetch_regs_kernel_thread): Likewise.
12380 (store_regs_kernel_thread): Likewise.
12382 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12384 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12385 tagged type objects to their actual type.
12387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12389 * ada-valprint.c (print_field_values): Add "language" parameter.
12390 Update calls to print_field_values and print_variant_part.
12391 Pass new parameter "language" in call to val_print instead
12392 of "current_language". Replace call to ada_val_print by call
12394 (print_variant_part): Add "language" parameter.
12395 (ada_val_print_struct_union): Update call to print_field_values.
12397 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12399 * ada-valprint.c (ui_memcpy): Delete.
12400 (ada_print_floating): Update documentation. Add empty line
12401 between between function documentation and implementation.
12402 Delete variable "buffer". Use ui_file_xstrdup in place of
12403 ui_file_put. Minor adjustments following this change.
12405 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12407 * ada-valprint.c (ada_val_print_string): New function,
12408 extracted from ada_val_print_array.
12409 (ada_val_print_array): Replace extracted code by call
12410 to ada_val_print_string followed by a return. Move
12411 "else" branch to the function's top block.
12413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12415 * ada-valprint.c (ada_val_print_array): Move implementation
12416 down. Rename parameter "offset" and "val" into "offset_aligned"
12417 and "original_value" respectively. Add parameter "offset".
12419 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12421 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12422 re-organizing the code. Change the "???" message printed
12423 when target type is a TYPE_CODE_UNDEF into
12424 "<ref to undefined type>".
12426 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12428 * ada-valprint.c (print_record): Delete, implementation inlined...
12429 (ada_val_print_struct_union): ... here. Remove call to
12430 ada_check_typedef in inlined implementation.
12432 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12434 * ada-valprint.c (ada_val_print_gnat_array): New function,
12435 extracted from ada_val_print_1;
12436 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12437 (ada_val_print_flt, ada_val_print_struct_union)
12438 (ada_val_print_ref): Likewise.
12439 (ada_val_print_1): Delete variables i and elttype.
12440 Replace extracted-out code by call to corresponding
12443 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12445 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12447 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12449 * ada-valprint.c (ada_val_print_1): Replace calls to
12450 ada_val_print_1 by calls to val_print.
12452 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12454 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12455 Update calls to self accordingly. Replace calls to c_val_print
12456 by calls to val_print.
12458 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12460 * ada-valprint.c (print_record): Delete declaration.
12461 (adjust_type_signedness, ada_val_print_1): Likewise.
12462 (ada_val_print): Move function implementation down.
12463 (print_variant_part, print_field_values, print_record):
12464 Move function implementation up.
12466 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12468 * python/py-type.c (typy_get_name): New function.
12469 (type_object_getset): Add entry for attribute "name".
12470 * NEWS: Add entry mentioning this new attribute.
12472 2014-01-07 Yao Qi <yao@codesourcery.com>
12474 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12477 2014-01-07 Yao Qi <yao@codesourcery.com>
12479 * gnu-nat.c (info_port_rights): Add qualifier const to
12482 2014-01-07 Yao Qi <yao@codesourcery.com>
12484 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12486 2014-01-07 Yao Qi <yao@codesourcery.com>
12488 * gnu-nat.c (make_inf) Update declaration.
12489 (make_inf): Make it static.
12490 (inf_set_traced): Likewise.
12491 (inf_port_to_thread, inf_task_died_status): Likewise.
12493 2014-01-07 Yao Qi <yao@codesourcery.com>
12495 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12497 2014-01-07 Yao Qi <yao@codesourcery.com>
12499 * gnu-nat.c (_initialize_gnu_nat): Declare.
12501 2014-01-07 Yao Qi <yao@codesourcery.com>
12503 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12505 (struct gdbarch_info) <byte_order>: Change type to
12507 <byte_order_for_code>: Likewise.
12508 * gdbarch.c, gdbarch.h: Regenerated.
12510 2014-01-06 Sasha Smundak <asmundak@google.com>
12512 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12514 2014-01-06 Tom Tromey <tromey@redhat.com>
12516 * doublest.c (convert_doublest_to_floatformat): Use const, not
12518 * somread.c (som_symtab_read): Likewise.
12520 2014-01-07 Hui Zhu <hui@codesourcery.com>
12522 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12523 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12524 (gdb_bfd_fopen): Ditto.
12525 (gdb_bfd_openr): Ditto.
12526 (gdb_bfd_openw): Ditto.
12527 (gdb_bfd_openr_iovec): Ditto.
12528 (gdb_bfd_fdopenr): Ditto.
12529 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12530 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12532 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12534 * symfile-mem.c (symbol_file_add_from_memory): Removed
12535 gdb_bfd_stash_filename.
12537 2014-01-03 Doug Evans <dje@google.com>
12539 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12542 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12544 Update year range in copyright notice of all files.
12546 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12548 * top.c (print_gdb_version): Set copyright year to 2014.
12550 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12552 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12554 For older changes see ChangeLog-2013.
12560 version-control: never