1 2014-09-04 Gary Benson <gbenson@redhat.com>
3 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4 Remove code to cope with LWPs wrapped as PIDs.
5 Add assertions to ensure no wrapped LWPs are passed.
7 2014-09-04 Pedro Alves <palves@redhat.com>
9 * value.c (value_ranges_copy_adjusted): New function, factored out
11 (value_contents_copy_raw): ... here.
12 (unpack_value_bits_as_long_1): Rename back to ...
13 (unpack_bits_as_long): ... this. Remove 'original_value' and
14 'result' parameters. Change return type to LONGEST.
15 (unpack_value_bits_as_long): Delete.
16 (unpack_value_field_as_long_1): Delete.
17 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
18 (unpack_value_bitfield): New function.
19 (value_field_bitfield): Reimplement using unpack_value_bitfield.
20 (value_fetch_lazy): Use unpack_value_bitfield.
21 * value.h (unpack_value_bits_as_long): Delete declaration.
23 2014-09-03 Sasha Smundak <asmundak@google.com>
25 * python/py-frame.c (frapy_read_register): New function.
27 2014-09-03 James Hogan <james.hogan@imgtec.com>
29 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
30 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
32 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
35 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
37 (add_cmd): Set "completer_handle_brkchars" to NULL.
38 * cli/cli-decode.h (struct cmd_list_element)
39 <completer_handle_brkchars>: New field.
40 * command.h (completer_ftype_void): New typedef.
41 (set_cmd_completer_handle_brkchars): New prototype.
42 * completer.c (set_gdb_completion_word_break_characters): New
44 (complete_line_internal): Call "completer_handle_brkchars"
45 callback from command.
46 * completer.h: Include "command.h".
47 (set_gdb_completion_word_break_characters): New prototype.
48 * python/py-cmd.c (cmdpy_completer_helper): New function.
49 (cmdpy_completer_handle_brkchars): New function.
50 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
51 (cmdpy_init): Set completer_handle_brkchars to
52 cmdpy_completer_handle_brkchars.
54 2014-09-03 Gary Benson <gbenson@redhat.com>
56 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
57 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
58 Loop conditions changed to equivalent form.
59 (struct x86_debug_reg_state): Updated dr_ref_count comment.
60 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
61 ALL_DEBUG_ADDRESS_REGISTERS.
63 2014-09-03 Joel Brobecker <brobecker@adacore.com>
65 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
68 2014-09-02 Doug Evans <dje@google.com>
70 * typeprint.c (find_global_typedef): Fix comment.
72 2014-09-02 Gary Benson <gbenson@redhat.com>
74 * i386-nat.h: Renamed as...
75 * x86-nat.h: New file. All type, function and variable name
76 prefixes changed from "i386_" to "x86_". All references updated.
77 * i386-nat.c: Renamed as...
78 * x86-nat.c: New file. All type, function and variable name
79 prefixes changed from "i386_" to "x86_". All references updated.
80 * common/i386-xstate.h: Renamed as...
81 * common/x86-xstate.h: New file. All type, function and variable
82 name prefixes changed from "i386_" to "x86_". All references
84 * nat/i386-cpuid.h: Renamed as...
85 * nat/x86-cpuid.h: New file. All type, function and variable name
86 prefixes changed from "i386_" to "x86_". All references updated.
87 * nat/i386-gcc-cpuid.h: Renamed as...
88 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
89 name prefixes changed from "i386_" to "x86_". All references
91 * nat/i386-dregs.h: Renamed as...
92 * nat/x86-dregs.h: New file. All type, function and variable name
93 prefixes changed from "i386_" to "x86_". All references updated.
94 * nat/i386-dregs.c: Renamed as...
95 * nat/x86-dregs.c: New file. All type, function and variable name
96 prefixes changed from "i386_" to "x86_". All references updated.
98 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
100 * varobj.c (_initialize_varobj): Move to the end of file.
102 2014-08-29 Gary Benson <gbenson@redhat.com>
104 * common/common-exceptions.h: New file.
105 * common/common-exceptions.c: Likewise.
106 * Makefile.in (SFILES): Add common/common-exceptions.c.
107 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
108 (COMMON_OBS): Add common-exceptions.o.
109 (common-exceptions.o): New rule.
110 * exceptions.h (common-exceptions.h): Include.
111 (gdb_setjmp.h): Do not include.
112 (return_reason): Moved to common-exceptions.h.
113 (enum return_reason): Likewise.
114 (RETURN_MASK): Likewise.
115 (typedef return_mask): Likewise.
116 (enum errors): Likewise.
117 (struct gdb_exception): Likewise.
118 (exceptions_state_mc_init): Likewise.
119 (exceptions_state_mc_action_iter): Likewise.
120 (exceptions_state_mc_action_iter_1): Likewise.
121 (TRY_CATCH): Likewise.
122 (throw_exception): Likewise.
123 (throw_verror): Likewise.
124 (throw_vquit): Likewise.
125 (throw_error): Likewise.
126 (throw_quit): Likewise.
127 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
128 (enum catcher_action): Likewise.
129 (struct catcher): Likewise.
130 (current_catcher): Likewise.
131 (catcher_list_size): Likewise.
132 (exceptions_state_mc_init): Likewise.
133 (catcher_pop): Likewise.
134 (exceptions_state_mc): Likewise.
135 (exceptions_state_mc_action_iter): Likewise.
136 (exceptions_state_mc_action_iter_1): Likewise.
137 (throw_exception): Likewise.
138 (exception_messages): Likewise.
139 (exception_messages_size): Likewise.
140 (throw_it): Likewise.
141 (throw_verror): Likewise.
142 (throw_vquit): Likewise.
143 (throw_error): Likewise.
144 (throw_quit): Likewise.
145 (prepare_to_throw_exception): New function.
147 2014-08-29 Gary Benson <gbenson@redhat.com>
149 * common/gdb_setjmp.h: New file.
150 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
151 * configure.ac: Move sigsetjmp check...
152 * common/common.m4: ...here.
153 * configure: Regenerate.
154 * cp-support.c (SIGJMP_BUF): Delete.
155 (SIGSETJMP): Likewise.
156 (SIGLONGJMP): Likewise.
157 * exceptions.h (gdb_setjmp.h): Include.
158 (setjmp.h): Do not include.
159 (EXCEPTIONS_SIGJMP_BUF): Delete.
160 (EXCEPTIONS_SIGSETJMP): Likewise.
161 (EXCEPTIONS_SIGLONGJMP): Likewise.
162 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
164 * exceptions.c: Likewise.
166 2014-08-29 Gary Benson <gbenson@redhat.com>
168 * cleanups.h: Moved to...
169 * common/cleanups.h: New file.
170 * cleanups.c: Moved to...
171 * common/cleanups.c: New file. Include common-defs.h and
172 cleanups.h. Do not include defs.h.
173 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
174 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
175 (cleanups.o): New rule.
177 2014-08-29 Gary Benson <gbenson@redhat.com>
179 * common/errors.h (internal_warning): New declaration.
180 (internal_vwarning): Likewise.
181 * common/errors.c (internal_warning): New function.
182 * utils.h (internal_warning): Don't declare.
183 (internal_vwarning): Likewise.
184 * utils.c (internal_warning): Removed.
186 2014-08-29 Gary Benson <gbenson@redhat.com>
188 * main.c (captured_main): Use warning during startup.
189 Prefix startup warning messages with command name.
191 2014-08-29 Gary Benson <gbenson@redhat.com>
193 * main.c (captured_main): Handle usage errors with error.
195 2014-08-29 Gary Benson <gbenson@redhat.com>
197 * go32-nat.c (go32_create_inferior): Replace a fprintf/
198 exit pair with a call to error. Wrap the message with _().
200 2014-08-29 Gary Benson <gbenson@redhat.com>
202 * main.c (captured_main): Replace a fprintf/exit
203 pair with a call to error. Wrap the message with _().
205 2014-08-29 Gary Benson <gbenson@redhat.com>
207 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
208 pairs with calls to error. Wrap the message with _().
210 2014-08-29 Gary Benson <gbenson@redhat.com>
212 * utils.c (vwarning): Protect calls to target_terminal_ours
215 2014-08-29 Gary Benson <gbenson@redhat.com>
217 * exceptions.c (print_flush): Protect calls to
218 target_terminal_ours and wrap_here.
220 2014-08-29 Gary Benson <gbenson@redhat.com>
222 * utils.h (filtered_printing_initialized): New declaration.
223 * utils.c (abort_with_message): New function.
224 (internal_vproblem): Use abort_with_message for first level
225 recursive internal problems, and if gdb_stderr is not set up.
226 Protect calls to target_terminal_ours, begin_line and query.
228 2014-08-28 Doug Evans <dje@google.com>
230 * symtab.c (in_prologue): Move definition to better spot.
231 (skip_prologue_using_sal): Ditto.
233 2014-08-28 Doug Evans <dje@google.com>
235 * symtab.c (find_function_start_sal): Move definition to better spot.
237 2014-08-28 Yao Qi <yao@codesourcery.com>
239 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
240 found_stack_adjust in forward scan. Remove condition check
241 on found_stack_adjust which is always true. Indent the code.
243 2014-08-28 Yao Qi <yao@codesourcery.com>
245 * dwarf2read.c (dwarf_decode_lines): Update declaration.
246 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
247 (dwarf_decode_lines): Remove argument
248 want_line_info. Remove condition check on want_line_info.
251 2014-08-27 Doug Evans <dje@google.com>
253 * dwarf2read.c (dwarf_record_line): Fix typo.
255 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
257 * target.h (struct target_ops::to_terminal_save_ours): Remove
259 (target_terminal_save_ours): Remove macro.
260 * target-delegates.c: Regenerate.
261 * inf-child.c (inf_child_target): Don't set the nonexistent
262 field to_terminal_save_ours.
263 * inferior.h (child_terminal_save_ours): Remove declaration.
264 * terminal.h (gdb_save_tty_state): New declaration.
265 * inflow.c (child_terminal_save_ours): Rename to ...
266 (gdb_save_tty_state): ... this.
267 * tui/tui.c: Include terminal.h.
268 (tui_enable): Use gdb_save_tty_state instead of
269 target_terminal_save_ours.
270 (tui_disable): Likewise.
272 2014-08-25 Doug Evans <dje@google.com>
274 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
275 Pass NULL instead of 0 for context pointer.
277 2014-08-25 Yao Qi <yao@codesourcery.com>
279 * dwarf2read.c: Fix grammatical error.
281 2014-08-24 Yao Qi <yao@codesourcery.com>
283 * dwarf2read.c (scan_partial_symbols): Update comments.
284 Rename argument 'need_pc' with 'set_addrmap'.
285 (add_partial_namespace): Rename argument 'need_pc' with
287 (add_partial_module): Likewise.
288 (add_partial_subprogram): Likewise. Update comments.
289 (dwarf2_name): Fix typo.
291 2014-08-22 Doug Evans <dje@google.com>
294 * dwarf2read.c (dwarf_record_line_p): New function.
295 (dwarf_decode_lines_1): Ignore subsequent line number entries
296 for the same line if any entry had a non-zero discriminator.
298 2014-08-22 Doug Evans <dje@google.com>
300 * buildsym.h (record_line_ftype): New typedef.
301 (record_line): Use it.
302 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
303 (dwarf_decode_lines_1): Call them.
305 2014-08-22 Yao Qi <yao@codesourcery.com>
307 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
308 (ctf_end): Remove code.
310 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
312 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
313 (linux_make_corefile_notes): call update_thread_list, protected against
316 2014-08-21 Pedro Alves <palves@redhat.com>
318 * infcmd.c (attach_command): Remove comment.
320 2014-08-21 Bin Cheng <bin.cheng@arm.com>
322 * aarch64-linux-nat.c (dr_changed_t): Change the type from
323 unsigned LONGEST to ULONGEST.
325 2014-08-20 Pedro Alves <palves@redhat.com>
327 * Makefile.in (check-read1): New rule.
329 2014-08-20 Joel Brobecker <brobecker@adacore.com>
331 * value.c (value_from_contents_and_address): Strip resolved_type's
332 typedef layers before checking its TYPE_DATA_LOCATION.
334 2014-08-20 Pedro Alves <palves@redhat.com>
336 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
338 2014-08-20 Yao Qi <yao@codesourcery.com>
340 * amd64-tdep.c (amd64_classify): Add a blank line after the
341 example. Move "*/" to a new line.
342 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
343 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
344 * dwarf2read.c (psymtab_include_file_name): Likewise.
346 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
347 Pedro Alves <palves@redhat.com>
351 * ada-lang.c (coerce_unspec_val_to_type): Use
352 value_contents_copy_raw.
353 * ada-valprint.c (val_print_packed_array_elements): Adjust.
354 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
355 * cp-valprint.c (cp_print_value_fields): Let the common printing
356 code handle optimized out values.
357 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
358 * d-valprint.c (dynamic_array_type): Use
359 value_bits_any_optimized_out.
360 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
361 check_any_valid fields.
362 (check_pieced_value_bits): Delete and inline ...
363 (check_pieced_synthetic_pointer): ... here.
364 (check_pieced_value_validity): Delete.
365 (check_pieced_value_invalid): Delete.
366 (pieced_value_funcs): Remove check_validity and check_any_valid
368 (read_pieced_value): Use mark_value_bits_optimized_out.
369 (write_pieced_value): Switch to use
370 mark_value_bytes_optimized_out.
371 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
372 of assuming the whole value is optimized out.
373 * findvar.c (read_frame_register_value): Remove special handling
374 of optimized out registers.
375 (value_from_register): Use mark_value_bytes_optimized_out.
376 * frame-unwind.c (frame_unwind_got_optimized): Use
377 mark_value_bytes_optimized_out.
378 * jv-valprint.c (java_value_print): Adjust.
379 (java_print_value_fields): Let the common printing code handle
380 optimized out values.
381 * mips-tdep.c (mips_print_register): Remove special handling of
382 optimized out registers.
383 * opencl-lang.c (lval_func_check_validity): Delete.
384 (lval_func_check_any_valid): Delete.
385 (opencl_value_funcs): Remove check_validity and check_any_valid
387 * p-valprint.c (pascal_object_print_value_fields): Let the common
388 printing code handle optimized out values.
389 * stack.c (read_frame_arg): Remove special handling of optimized
390 out values. Fetch both VAL and ENTRYVAL before comparing
391 contents. Adjust to value_available_contents_eq rename.
392 * valprint.c (valprint_check_validity)
393 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
394 (val_print_array_elements): Adjust.
395 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
396 (value_bits_any_optimized_out): New function.
397 (value_entirely_covered_by_range_vector): New function, factored
398 out from value_entirely_unavailable.
399 (value_entirely_unavailable): Reimplement.
400 (value_entirely_optimized_out): New function.
401 (insert_into_bit_range_vector): New function, factored out from
402 mark_value_bits_unavailable.
403 (mark_value_bits_unavailable): Reimplement.
404 (struct ranges_and_idx): New struct.
405 (find_first_range_overlap_and_match): New function, factored out
406 from value_available_contents_bits_eq.
407 (value_available_contents_bits_eq): Rename to ...
408 (value_contents_bits_eq): ... this. Check both unavailable
409 contents and optimized out contents.
410 (value_available_contents_eq): Rename to ...
411 (value_contents_eq): ... this.
412 (allocate_value_lazy): Remove reference to the old optimized_out
414 (allocate_optimized_out_value): Use
415 mark_value_bytes_optimized_out.
416 (require_not_optimized_out): Adjust to check whether the
417 optimized_out vec is empty.
418 (ranges_copy_adjusted): New function, factored out from
419 value_contents_copy_raw.
420 (value_contents_copy_raw): Also copy the optimized out ranges.
421 Assert the destination ranges aren't optimized out.
422 (value_contents_copy): Update comment, remove call to
423 require_not_optimized_out.
424 (value_contents_equal): Adjust to check whether the optimized_out
426 (set_value_optimized_out, value_optimized_out_const): Delete.
427 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
429 (value_entirely_optimized_out, value_bits_valid): Delete.
430 (value_copy): Take a VEC copy of the 'optimized_out' field.
431 (value_primitive_field): Remove special handling of optimized out.
432 (value_fetch_lazy): Assert that lazy values have no unavailable
433 regions. Use value_bits_any_optimized_out. Remove some special
434 handling for optimized out values.
435 * value.h: Add intro comment about <optimized out> and
437 (struct lval_funcs): Remove check_validity and check_any_valid
439 (set_value_optimized_out, value_optimized_out_const): Remove.
440 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
442 (value_bits_any_optimized_out): New declaration.
443 (value_bits_valid): Delete declaration.
444 (value_available_contents_eq): Rename to ...
445 (value_contents_eq): ... this, and extend comments.
447 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
449 Fix -fsanitize=address on unreadable inferior strings.
450 * valprint.c (val_print_string): Fix access before BUFFER.
452 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
454 * target.c (target_struct_size): Remove.
455 (target_struct_allocsize): Remove.
456 (DEFAULT_ALLOCSIZE): Remove.
457 (target_ops_p): New typedef.
458 (DEF_VEC_P (target_ops_p)): New vector type.
459 (target_structs): Change type to VEC (target_ops_p).
460 (add_target_with_completer): Replace "push" code by VEC_safe_push.
461 (find_default_run_target): Rewrite for loop following changes to
464 2014-08-19 Joel Brobecker <brobecker@adacore.com>
466 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
467 Adjust code accordingly. Adjust function description comment.
469 2014-08-19 Yao Qi <yao@codesourcery.com>
471 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
474 2014-08-19 Alan Modra <amodra@gmail.com>
476 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
477 * config.in: Regenerate.
478 * configure: Regenerate.
480 2014-08-19 Tom Tromey <tromey@redhat.com>
481 Gary Benson <gbenson@redhat.com>
483 * common/common-debug.h: New file.
484 * common/common-debug.c: Likewise.
486 * Makefile.in (SFILES): Add common/common-debug.c.
487 (HFILES_NO_SRCDIR): Add common/common-debug.h.
488 (COMMON_OBS): Add common-debug.o and debug.o.
489 (common-debug.o): New rule.
490 * common/common-defs.h: Include common-debug.h.
491 * common/agent.c (debug_agent_printf): New function.
492 (DEBUG_AGENT): Redefine.
493 * nat/i386-dregs.c (debug_printf): Undefine.
495 2014-08-19 Gary Benson <gbenson@redhat.com>
497 * common/common-defs.h: Include print-utils.h.
498 * utils.h: Do not include print-utils.h.
500 2014-08-19 Tom Tromey <tromey@redhat.com>
501 Gary Benson <gbenson@redhat.com>
503 * common/common-types.h: New file.
504 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
505 * common/common-defs.h: Include common-types.h.
506 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
509 2014-08-19 Tom Tromey <tromey@redhat.com>
510 Gary Benson <gbenson@redhat.com>
512 * common/errors.h: New file.
513 * common/errors.c: Likewise.
514 * Makefile.in (SFILES): Add common/errors.c.
515 (HFILES_NO_SRCDIR): Add common/errors.h.
516 (COMMON_OBS): Add errors.o.
517 (errors.o): New rule.
518 * common/common-defs.h: Include errors.h.
519 * utils.h (perror_with_name, error, verror, warning, vwarning):
521 * common/common-utils.h: (malloc_failure, internal_error):
524 2014-08-19 Gary Benson <gbenson@redhat.com>
526 * utils.c (internal_vproblem): Always print the message.
528 2014-08-18 Doug Evans <dje@google.com>
530 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
532 2014-08-18 Joel Brobecker <brobecker@adacore.com>
534 * ada-typeprint.c (type_is_full_subrange_of_target_type):
535 Return 0 if TYPE is dynamic.
536 (print_range): Add handling of dynamic ranges.
538 2014-08-18 Keven Boell <keven.boell@intel.com>
539 Joel Brobecker <brobecker@adacore.com>
541 * gdbtypes.h (struct main_type): Add field "data_location".
542 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
543 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
544 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
545 a dynamic data location.
546 (resolve_dynamic_type): Add DW_AT_data_location handling.
547 (copy_recursive, copy_type): Copy the data_location information
549 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
550 * value.c (value_from_contents_and_address): Add
551 DW_AT_data_location handling.
553 2014-08-18 Keven Boell <keven.boell@intel.com>
554 Joel Brobecker <brobecker@adacore.com>
556 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
557 field "get_object_address".
558 * dwarf2expr.c (execute_stack_op): Add handling for
559 DW_OP_push_object_address.
560 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
561 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
562 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
563 (dwarf_expr_get_obj_addr): New function.
564 (dwarf_expr_ctx_funcs): Add get_object_address field.
565 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
566 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
567 (dwarf2_evaluate_property): Add parameter "address". Use it.
568 (needs_get_obj_addr): New function.
569 (needs_frame_ctx_funcs): Add get_object_address field.
570 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
571 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
572 (resolve_dynamic_array): Likewise.
574 2014-08-18 Joel Brobecker <brobecker@adacore.com>
576 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
577 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
578 fixed value for records and unions for which some GNAT encodings
581 2014-08-18 Joel Brobecker <brobecker@adacore.com>
583 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
584 rewrite to avoid "else if" and "else" constructs. Should be
587 2014-08-18 Joel Brobecker <brobecker@adacore.com>
589 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
592 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
595 * eval.c: Update all calls to find_overload_match.
596 * valarith.c: Likewise.
597 (value_user_defined_cpp_op, value_user_defined_op): New
598 argument NOSIDE. Update all callers.
599 * valops.c (find_overload_match): New argument NOSIDE.
600 * value.h (find_overload_match): Update signature.
602 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
604 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
605 'items' methods instead of 'iteritems' method on dictionaries.
607 2014-08-15 Doug Evans <dje@google.com>
609 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
612 2014-08-15 Doug Evans <dje@google.com>
614 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
616 2014-08-15 Doug Evans <dje@google.com>
618 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
620 2014-08-15 Doug Evans <dje@google.com>
622 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
625 2014-08-15 Eli Zaretskii <eliz@gnu.org>
627 * dcache.h: Include target.h, to avoid compile time warnings.
629 2014-08-15 Joel Brobecker <brobecker@adacore.com>
631 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
632 frame_info" partial declaration.
633 * gdbarch.h: Regenerate.
635 2014-08-15 Yao Qi <yao@codesourcery.com>
637 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
638 Add parameter 'decode_for_pst_p'. Callers update.
640 2014-08-13 Yao Qi <yao@codesourcery.com>
643 * configure.ac: Use local variable 'pos'.
644 * configure: Regenerated.
646 2014-08-11 Doug Evans <dje@google.com>
648 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
649 message, it is redundant with "Reading symbols from ..." message.
651 2014-08-10 Doug Evans <xdje42@gmail.com>
653 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
655 2014-08-09 Yao Qi <yao@codesourcery.com>
658 * remote.c (remote_xfer_partial): Remove dead code.
660 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
662 * ia64-linux-tdep.c: Include "regset.h".
663 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
664 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
665 (ia64_linux_supply_fpregset): New function.
666 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
667 (ia64_linux_regset_from_core_section): New function.
668 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
671 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
673 * m68klinux-tdep.c: Include "regset.h".
674 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
675 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
676 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
677 (m68k_linux_regset_from_core_section): New function.
678 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
681 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
683 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
684 function. Move logic to...
685 (tilegx_linux_regmap): ... this new register map.
686 (tilegx_linux_regset): Refer to register map, replace supply
687 method by regcache_supply_regset, and add collect method.
688 * tilegx-tdep.h (enum tilegx_regnum): New enum value
689 TILEGX_FIRST_EASY_REGNUM.
691 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
693 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
694 that calls regcache_supply_regset and handles the EPC register
695 separately. Move main logic to...
696 (score7_linux_gregmap): ... this new register map.
697 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
698 (score7_linux_gregset): Refer to register map. Add collect method.
699 (score7_linux_regset_from_core_section): Replace
700 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
701 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
702 (struct regset): Delete unused forward declaraction.
703 (struct pt_regs): Delete structure definition.
704 (elf_gregset_t): Delete typedef.
706 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
708 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
709 (nios2_core_regset): Add collect method.
711 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
713 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
714 platform-independent and don't write to read-only input buffer.
715 (m32r_linux_collect_gregset): New function.
716 (m32r_linux_gregset): Add collect method.
718 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
720 * hppa-linux-tdep.c (greg_map): Rename to...
721 (hppa_linux_gregmap): ... this. Also convert to
722 regcache_map_entry format.
723 (hppa_linux_supply_regset): Delete function.
724 (hppa_linux_supply_fpregset): Delete function. Move logic to...
725 (hppa_linux_fpregmap): ... this new register map.
726 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
727 register map, replace supply method by regcache_supply_regset, and
728 add collect method regcache_collect_regset.
730 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
732 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
733 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
734 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
735 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
736 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
737 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
738 (frv_linux_supply_gregset): Replace main logic by call to
739 regcache_supply_regset, but keep clearing gr32-gr63.
740 (frv_linux_supply_fpregset): Delete function.
741 (frv_linux_gregset): Refer to appropriate register map and add
742 regcache_collect_regset as the collect method.
743 (frv_linux_fpregset): Likewise. Also exchange the supply method
744 by regcache_supply_regset.
746 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
748 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
749 by call to alpha_supply_int_regs.
750 (alpha_linux_collect_gregset): New function.
751 (alpha_linux_supply_fpregset): Replace logic by call to
752 alpha_supply_fp_regs.
753 (alpha_linux_collect_fpregset): New function.
754 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
756 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
758 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
759 by call to regcache_collect_regset.
760 (supply_gregset, supply_fpregset): Call regcache_supply_regset
761 instead of aarch64_linux_supply_gregset/_fpregset.
762 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
763 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
765 (aarch64_linux_supply_gregset, supply_gregset_from_core)
766 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
767 functions. Move logic to ...
768 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
770 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
771 refer to new register maps, replace *_regset_from_core by
772 regcache_supply_regset, and also use regcache_collect_regset.
773 * aarch64-linux-tdep.h: Include "regset.h".
774 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
776 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
777 macros, moved from C source file.
778 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
779 variable declarations.
781 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
783 * s390-linux-nat.c: Include "regset.h".
784 (regmap_gregset): Delete macro.
785 (s390_64_regmap_gregset): New register map for
786 regcache_supply/_collect_regset.
787 (s390_64_gregset): New regset.
788 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
789 (regmap_fpregset): Delete macro.
790 (s390_native_supply, s390_native_collect): Delete functions.
791 (supply_gregset, fill_gregset): Replace s390-specific regmap
792 handling by a call to regcache_supply/_collect_regset.
793 (supply_fpregset, fill_fpregset): Call regcache_supply/
794 _collect_regset instead of s390_native_supply/_collect.
795 (fetch_regset, store_regset): Likewise. Also change the last
796 parameter to a regset instead of a regmap.
797 (s390_linux_fetch_inferior_registers)
798 (390_linux_store_inferior_registers): Adjust last parameter in
799 calls to fetch_regset and store_regset.
800 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
801 (s390_gregmap): ... this. Also make static const and convert to
802 regcache_map_entry format.
803 (s390x_regmap_gregset): Delete.
804 (s390_regmap_fpregset): Rename to...
805 (s390_fpregmap): ... this. Make static const and convert to
806 regcache_map_entry format.
807 (s390_regmap_upper, s390_regmap_last_break)
808 (s390x_regmap_last_break, s390_regmap_system_call)
809 (s390_regmap_tdb): Likewise.
810 (s390_supply_regset, s390_collect_regset): Remove functions.
811 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
813 (s390_gregset, s390_fpregset, s390_upper_regset)
814 (s390_last_break_regset, s390x_last_break_regset)
815 (s390_system_call_regset, s390_tdb_regset): Make global and
816 replace s390_supply/_collect_regset by regcache_supply/
818 (s390x_gregset): Delete.
819 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
820 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
821 (s390_regmap_fpregset, s390_regmap_last_break)
822 (s390x_regmap_last_break, s390_regmap_system_call)
823 (s390_regmap_tdb): Delete global variable declarations.
824 (s390_gregset, s390_fpregset, s390_last_break_regset)
825 (s390x_last_break_regset, s390_system_call_regset)
826 (s390_tdb_regset): New global variable declarations.
828 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
830 * regcache.c: Include "regset.h".
831 (regcache_transfer_regset): New local function.
832 (regcache_supply_regset, regcache_collect_regset): New functions.
833 * regcache.h (struct regcache_map_entry): New structure.
834 (REGCACHE_MAP_SKIP): New enum value.
835 (regcache_supply_regset, regcache_collect_regset): New prototypes.
837 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
839 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
840 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
841 (ppc_linux_collect_gregset ): Likewise.
842 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
843 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
844 (ppc_collect_vrregset): Likewise.
845 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
848 2014-08-07 Yao Qi <yao@codesourcery.com>
850 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
851 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
852 * remote.c (remote_read_bytes): Likewise.
854 2014-08-07 Yao Qi <yao@codesourcery.com>
856 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
858 2014-08-07 Yao Qi <yao@codesourcery.com>
861 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
862 TARGET_XFER_OK instead of 0.
864 2014-08-07 Gary Benson <gbenson@redhat.com>
866 * common/common-defs.h: Include errno.h.
867 * defs.h: Do not include errno.h.
868 * ada-typeprint.c: Likewise.
869 * c-typeprint.c: Likewise.
870 * core-regset.c: Likewise.
871 * corefile.c: Likewise.
872 * corelow.c: Likewise.
873 * event-loop.c: Likewise.
874 * f-typeprint.c: Likewise.
875 * gnu-nat.c: Likewise.
876 * go32-nat.c: Likewise.
877 * i386gnu-nat.c: Likewise.
878 * m2-typeprint.c: Likewise.
879 * nat/linux-btrace.c: Likewise.
880 * p-typeprint.c: Likewise.
881 * procfs.c: Likewise.
882 * remote-sim.c: Likewise.
883 * rs6000-nat.c: Likewise.
884 * target.c: Likewise.
885 * typeprint.c: Likewise.
886 * ui-file.c: Likewise.
887 * valops.c: Likewise.
888 * valprint.c: Likewise.
890 2014-08-07 Gary Benson <gbenson@redhat.com>
892 * common/common-defs.h: Include string.h.
893 * aarch64-tdep.c: Do not include string.h.
894 * ada-exp.y: Likewise.
895 * ada-lang.c: Likewise.
896 * ada-lex.l: Likewise.
897 * ada-typeprint.c: Likewise.
898 * ada-valprint.c: Likewise.
899 * aix-thread.c: Likewise.
900 * alpha-linux-tdep.c: Likewise.
901 * alpha-mdebug-tdep.c: Likewise.
902 * alpha-nat.c: Likewise.
903 * alpha-osf1-tdep.c: Likewise.
904 * alpha-tdep.c: Likewise.
905 * alphanbsd-tdep.c: Likewise.
906 * amd64-dicos-tdep.c: Likewise.
907 * amd64-linux-tdep.c: Likewise.
908 * amd64-nat.c: Likewise.
909 * amd64-sol2-tdep.c: Likewise.
910 * amd64fbsd-tdep.c: Likewise.
911 * amd64obsd-tdep.c: Likewise.
912 * arch-utils.c: Likewise.
913 * arm-linux-nat.c: Likewise.
914 * arm-linux-tdep.c: Likewise.
915 * arm-tdep.c: Likewise.
916 * arm-wince-tdep.c: Likewise.
917 * armbsd-tdep.c: Likewise.
918 * armnbsd-nat.c: Likewise.
919 * armnbsd-tdep.c: Likewise.
920 * armobsd-tdep.c: Likewise.
921 * avr-tdep.c: Likewise.
922 * ax-gdb.c: Likewise.
923 * ax-general.c: Likewise.
924 * bcache.c: Likewise.
925 * bfin-tdep.c: Likewise.
926 * breakpoint.c: Likewise.
927 * build-id.c: Likewise.
928 * buildsym.c: Likewise.
930 * c-lang.c: Likewise.
931 * c-typeprint.c: Likewise.
932 * c-valprint.c: Likewise.
933 * charset.c: Likewise.
934 * cli-out.c: Likewise.
935 * cli/cli-cmds.c: Likewise.
936 * cli/cli-decode.c: Likewise.
937 * cli/cli-dump.c: Likewise.
938 * cli/cli-interp.c: Likewise.
939 * cli/cli-logging.c: Likewise.
940 * cli/cli-script.c: Likewise.
941 * cli/cli-setshow.c: Likewise.
942 * cli/cli-utils.c: Likewise.
943 * coffread.c: Likewise.
944 * common/agent.c: Likewise.
945 * common/buffer.c: Likewise.
946 * common/buffer.h: Likewise.
947 * common/common-utils.c: Likewise.
948 * common/filestuff.c: Likewise.
949 * common/filestuff.c: Likewise.
950 * common/format.c: Likewise.
951 * common/print-utils.c: Likewise.
952 * common/rsp-low.c: Likewise.
953 * common/signals.c: Likewise.
954 * common/vec.h: Likewise.
955 * common/xml-utils.c: Likewise.
956 * core-regset.c: Likewise.
957 * corefile.c: Likewise.
958 * corelow.c: Likewise.
959 * cp-abi.c: Likewise.
960 * cp-name-parser.y: Likewise.
961 * cp-support.c: Likewise.
962 * cp-valprint.c: Likewise.
963 * cris-tdep.c: Likewise.
965 * darwin-nat.c: Likewise.
966 * dbxread.c: Likewise.
967 * dcache.c: Likewise.
968 * demangle.c: Likewise.
969 * dicos-tdep.c: Likewise.
970 * disasm.c: Likewise.
971 * doublest.c: Likewise.
973 * dummy-frame.c: Likewise.
974 * dwarf2-frame.c: Likewise.
975 * dwarf2loc.c: Likewise.
976 * dwarf2read.c: Likewise.
977 * elfread.c: Likewise.
978 * environ.c: Likewise.
980 * event-loop.c: Likewise.
981 * exceptions.c: Likewise.
983 * expprint.c: Likewise.
985 * f-lang.c: Likewise.
986 * f-typeprint.c: Likewise.
987 * f-valprint.c: Likewise.
988 * fbsd-nat.c: Likewise.
989 * findcmd.c: Likewise.
990 * findvar.c: Likewise.
991 * fork-child.c: Likewise.
993 * frv-linux-tdep.c: Likewise.
994 * frv-tdep.c: Likewise.
996 * gdb_bfd.c: Likewise.
997 * gdbarch.c: Likewise.
998 * gdbarch.sh: Likewise.
999 * gdbtypes.c: Likewise.
1000 * gnu-nat.c: Likewise.
1001 * gnu-v2-abi.c: Likewise.
1002 * gnu-v3-abi.c: Likewise.
1003 * go-exp.y: Likewise.
1004 * go-lang.c: Likewise.
1005 * go32-nat.c: Likewise.
1006 * guile/guile.c: Likewise.
1007 * guile/scm-auto-load.c: Likewise.
1008 * hppa-hpux-tdep.c: Likewise.
1009 * hppa-linux-nat.c: Likewise.
1010 * hppanbsd-tdep.c: Likewise.
1011 * hppaobsd-tdep.c: Likewise.
1012 * i386-cygwin-tdep.c: Likewise.
1013 * i386-dicos-tdep.c: Likewise.
1014 * i386-linux-tdep.c: Likewise.
1015 * i386-nto-tdep.c: Likewise.
1016 * i386-sol2-tdep.c: Likewise.
1017 * i386-tdep.c: Likewise.
1018 * i386bsd-tdep.c: Likewise.
1019 * i386gnu-nat.c: Likewise.
1020 * i386nbsd-tdep.c: Likewise.
1021 * i386obsd-tdep.c: Likewise.
1022 * i387-tdep.c: Likewise.
1023 * ia64-libunwind-tdep.c: Likewise.
1024 * ia64-linux-nat.c: Likewise.
1025 * inf-child.c: Likewise.
1026 * inf-ptrace.c: Likewise.
1027 * inf-ttrace.c: Likewise.
1028 * infcall.c: Likewise.
1029 * infcmd.c: Likewise.
1030 * inflow.c: Likewise.
1031 * infrun.c: Likewise.
1032 * interps.c: Likewise.
1033 * iq2000-tdep.c: Likewise.
1034 * irix5-nat.c: Likewise.
1035 * jv-exp.y: Likewise.
1036 * jv-lang.c: Likewise.
1037 * jv-typeprint.c: Likewise.
1038 * jv-valprint.c: Likewise.
1039 * language.c: Likewise.
1040 * linux-fork.c: Likewise.
1041 * linux-nat.c: Likewise.
1042 * lm32-tdep.c: Likewise.
1043 * m2-exp.y: Likewise.
1044 * m2-typeprint.c: Likewise.
1045 * m32c-tdep.c: Likewise.
1046 * m32r-linux-nat.c: Likewise.
1047 * m32r-linux-tdep.c: Likewise.
1048 * m32r-rom.c: Likewise.
1049 * m32r-tdep.c: Likewise.
1050 * m68hc11-tdep.c: Likewise.
1051 * m68k-tdep.c: Likewise.
1052 * m68kbsd-tdep.c: Likewise.
1053 * m68klinux-nat.c: Likewise.
1054 * m68klinux-tdep.c: Likewise.
1055 * m88k-tdep.c: Likewise.
1056 * machoread.c: Likewise.
1057 * macrocmd.c: Likewise.
1059 * mdebugread.c: Likewise.
1060 * mem-break.c: Likewise.
1061 * memattr.c: Likewise.
1062 * memory-map.c: Likewise.
1063 * mep-tdep.c: Likewise.
1064 * mi/mi-cmd-break.c: Likewise.
1065 * mi/mi-cmd-disas.c: Likewise.
1066 * mi/mi-cmd-env.c: Likewise.
1067 * mi/mi-cmd-stack.c: Likewise.
1068 * mi/mi-cmd-var.c: Likewise.
1069 * mi/mi-cmds.c: Likewise.
1070 * mi/mi-console.c: Likewise.
1071 * mi/mi-getopt.c: Likewise.
1072 * mi/mi-interp.c: Likewise.
1073 * mi/mi-main.c: Likewise.
1074 * mi/mi-parse.c: Likewise.
1075 * microblaze-rom.c: Likewise.
1076 * microblaze-tdep.c: Likewise.
1077 * mingw-hdep.c: Likewise.
1078 * minidebug.c: Likewise.
1079 * minsyms.c: Likewise.
1080 * mips-irix-tdep.c: Likewise.
1081 * mips-linux-tdep.c: Likewise.
1082 * mips-tdep.c: Likewise.
1083 * mips64obsd-tdep.c: Likewise.
1084 * mipsnbsd-tdep.c: Likewise.
1085 * mipsread.c: Likewise.
1086 * mn10300-linux-tdep.c: Likewise.
1087 * mn10300-tdep.c: Likewise.
1088 * monitor.c: Likewise.
1089 * moxie-tdep.c: Likewise.
1090 * mt-tdep.c: Likewise.
1091 * nat/linux-btrace.c: Likewise.
1092 * nat/linux-osdata.c: Likewise.
1093 * nat/linux-procfs.c: Likewise.
1094 * nat/linux-ptrace.c: Likewise.
1095 * nat/linux-waitpid.c: Likewise.
1096 * nbsd-tdep.c: Likewise.
1097 * nios2-linux-tdep.c: Likewise.
1098 * nto-procfs.c: Likewise.
1099 * nto-tdep.c: Likewise.
1100 * objc-lang.c: Likewise.
1101 * objfiles.c: Likewise.
1102 * opencl-lang.c: Likewise.
1103 * osabi.c: Likewise.
1104 * osdata.c: Likewise.
1105 * p-exp.y: Likewise.
1106 * p-lang.c: Likewise.
1107 * p-typeprint.c: Likewise.
1108 * parse.c: Likewise.
1109 * posix-hdep.c: Likewise.
1110 * ppc-linux-nat.c: Likewise.
1111 * ppc-sysv-tdep.c: Likewise.
1112 * ppcfbsd-tdep.c: Likewise.
1113 * ppcnbsd-tdep.c: Likewise.
1114 * ppcobsd-tdep.c: Likewise.
1115 * printcmd.c: Likewise.
1116 * procfs.c: Likewise.
1117 * prologue-value.c: Likewise.
1118 * python/py-auto-load.c: Likewise.
1119 * python/py-gdb-readline.c: Likewise.
1120 * ravenscar-thread.c: Likewise.
1121 * regcache.c: Likewise.
1122 * registry.c: Likewise.
1123 * remote-fileio.c: Likewise.
1124 * remote-m32r-sdi.c: Likewise.
1125 * remote-mips.c: Likewise.
1126 * remote-notif.c: Likewise.
1127 * remote-sim.c: Likewise.
1128 * remote.c: Likewise.
1129 * reverse.c: Likewise.
1130 * rs6000-aix-tdep.c: Likewise.
1131 * ser-base.c: Likewise.
1132 * ser-go32.c: Likewise.
1133 * ser-mingw.c: Likewise.
1134 * ser-pipe.c: Likewise.
1135 * ser-tcp.c: Likewise.
1136 * ser-unix.c: Likewise.
1137 * serial.c: Likewise.
1138 * sh-tdep.c: Likewise.
1139 * sh64-tdep.c: Likewise.
1140 * shnbsd-tdep.c: Likewise.
1142 * sol-thread.c: Likewise.
1143 * solib-dsbt.c: Likewise.
1144 * solib-frv.c: Likewise.
1145 * solib-osf.c: Likewise.
1146 * solib-som.c: Likewise.
1147 * solib-spu.c: Likewise.
1148 * solib-target.c: Likewise.
1149 * solib.c: Likewise.
1150 * somread.c: Likewise.
1151 * source.c: Likewise.
1152 * sparc-nat.c: Likewise.
1153 * sparc-sol2-tdep.c: Likewise.
1154 * sparc-tdep.c: Likewise.
1155 * sparc64-tdep.c: Likewise.
1156 * sparc64fbsd-tdep.c: Likewise.
1157 * sparc64nbsd-tdep.c: Likewise.
1158 * sparcnbsd-tdep.c: Likewise.
1159 * spu-linux-nat.c: Likewise.
1160 * spu-multiarch.c: Likewise.
1161 * spu-tdep.c: Likewise.
1162 * stabsread.c: Likewise.
1163 * stack.c: Likewise.
1164 * std-regs.c: Likewise.
1165 * symfile.c: Likewise.
1166 * symmisc.c: Likewise.
1167 * symtab.c: Likewise.
1168 * target.c: Likewise.
1169 * thread.c: Likewise.
1170 * tilegx-linux-nat.c: Likewise.
1171 * tilegx-tdep.c: Likewise.
1173 * tracepoint.c: Likewise.
1174 * tui/tui-command.c: Likewise.
1175 * tui/tui-data.c: Likewise.
1176 * tui/tui-disasm.c: Likewise.
1177 * tui/tui-file.c: Likewise.
1178 * tui/tui-layout.c: Likewise.
1179 * tui/tui-out.c: Likewise.
1180 * tui/tui-regs.c: Likewise.
1181 * tui/tui-source.c: Likewise.
1182 * tui/tui-stack.c: Likewise.
1183 * tui/tui-win.c: Likewise.
1184 * tui/tui-windata.c: Likewise.
1185 * tui/tui-winsource.c: Likewise.
1186 * typeprint.c: Likewise.
1187 * ui-file.c: Likewise.
1188 * ui-out.c: Likewise.
1189 * user-regs.c: Likewise.
1190 * utils.c: Likewise.
1191 * v850-tdep.c: Likewise.
1192 * valarith.c: Likewise.
1193 * valops.c: Likewise.
1194 * valprint.c: Likewise.
1195 * value.c: Likewise.
1196 * varobj.c: Likewise.
1197 * vax-tdep.c: Likewise.
1198 * vaxnbsd-tdep.c: Likewise.
1199 * vaxobsd-tdep.c: Likewise.
1200 * windows-nat.c: Likewise.
1201 * xcoffread.c: Likewise.
1202 * xml-support.c: Likewise.
1203 * xstormy16-tdep.c: Likewise.
1204 * xtensa-linux-nat.c: Likewise.
1206 2014-08-07 Gary Benson <gbenson@redhat.com>
1208 * common/common-defs.h: Include gdb_assert.h.
1209 * aarch64-tdep.c: Do not include gdb_assert.h.
1210 * addrmap.c: Likewise.
1211 * aix-thread.c: Likewise.
1212 * alpha-linux-tdep.c: Likewise.
1213 * alpha-mdebug-tdep.c: Likewise.
1214 * alphanbsd-tdep.c: Likewise.
1215 * amd64-nat.c: Likewise.
1216 * amd64-tdep.c: Likewise.
1217 * amd64bsd-nat.c: Likewise.
1218 * amd64fbsd-nat.c: Likewise.
1219 * amd64fbsd-tdep.c: Likewise.
1220 * amd64nbsd-nat.c: Likewise.
1221 * amd64nbsd-tdep.c: Likewise.
1222 * amd64obsd-nat.c: Likewise.
1223 * amd64obsd-tdep.c: Likewise.
1224 * arch-utils.c: Likewise.
1225 * arm-tdep.c: Likewise.
1226 * armbsd-tdep.c: Likewise.
1228 * bcache.c: Likewise.
1229 * bfin-tdep.c: Likewise.
1230 * blockframe.c: Likewise.
1231 * breakpoint.c: Likewise.
1232 * bsd-kvm.c: Likewise.
1233 * bsd-uthread.c: Likewise.
1234 * buildsym.c: Likewise.
1235 * c-exp.y: Likewise.
1236 * c-lang.c: Likewise.
1237 * charset.c: Likewise.
1238 * cleanups.c: Likewise.
1239 * cli-out.c: Likewise.
1240 * cli/cli-decode.c: Likewise.
1241 * cli/cli-dump.c: Likewise.
1242 * cli/cli-logging.c: Likewise.
1243 * cli/cli-script.c: Likewise.
1244 * cli/cli-utils.c: Likewise.
1245 * coffread.c: Likewise.
1246 * common/common-utils.c: Likewise.
1247 * common/queue.h: Likewise.
1248 * common/signals.c: Likewise.
1249 * common/vec.h: Likewise.
1250 * complaints.c: Likewise.
1251 * completer.c: Likewise.
1252 * corelow.c: Likewise.
1253 * cp-abi.c: Likewise.
1254 * cp-name-parser.y: Likewise.
1255 * cp-namespace.c: Likewise.
1256 * cp-support.c: Likewise.
1257 * cris-tdep.c: Likewise.
1258 * dbxread.c: Likewise.
1259 * dictionary.c: Likewise.
1260 * doublest.c: Likewise.
1261 * dsrec.c: Likewise.
1262 * dummy-frame.c: Likewise.
1263 * dwarf2-frame-tailcall.c: Likewise.
1264 * dwarf2-frame.c: Likewise.
1265 * dwarf2expr.c: Likewise.
1266 * dwarf2loc.c: Likewise.
1267 * dwarf2read.c: Likewise.
1269 * event-loop.c: Likewise.
1270 * exceptions.c: Likewise.
1271 * expprint.c: Likewise.
1272 * f-valprint.c: Likewise.
1273 * fbsd-nat.c: Likewise.
1274 * findvar.c: Likewise.
1275 * frame-unwind.c: Likewise.
1276 * frame.c: Likewise.
1277 * frv-tdep.c: Likewise.
1278 * gcore.c: Likewise.
1279 * gdb-dlfcn.c: Likewise.
1280 * gdb_bfd.c: Likewise.
1281 * gdbarch.c: Likewise.
1282 * gdbarch.sh: Likewise.
1283 * gdbtypes.c: Likewise.
1284 * gnu-nat.c: Likewise.
1285 * gnu-v3-abi.c: Likewise.
1286 * go-lang.c: Likewise.
1287 * guile/scm-exception.c: Likewise.
1288 * guile/scm-gsmob.c: Likewise.
1289 * guile/scm-lazy-string.c: Likewise.
1290 * guile/scm-math.c: Likewise.
1291 * guile/scm-pretty-print.c: Likewise.
1292 * guile/scm-safe-call.c: Likewise.
1293 * guile/scm-utils.c: Likewise.
1294 * guile/scm-value.c: Likewise.
1295 * h8300-tdep.c: Likewise.
1296 * hppa-hpux-nat.c: Likewise.
1297 * hppa-tdep.c: Likewise.
1298 * hppanbsd-tdep.c: Likewise.
1299 * hppaobsd-tdep.c: Likewise.
1300 * i386-darwin-nat.c: Likewise.
1301 * i386-darwin-tdep.c: Likewise.
1302 * i386-nto-tdep.c: Likewise.
1303 * i386-tdep.c: Likewise.
1304 * i386bsd-nat.c: Likewise.
1305 * i386fbsd-tdep.c: Likewise.
1306 * i386gnu-nat.c: Likewise.
1307 * i386nbsd-tdep.c: Likewise.
1308 * i386obsd-tdep.c: Likewise.
1309 * i387-tdep.c: Likewise.
1310 * ia64-libunwind-tdep.c: Likewise.
1311 * ia64-tdep.c: Likewise.
1312 * inf-ptrace.c: Likewise.
1313 * inf-ttrace.c: Likewise.
1314 * infcall.c: Likewise.
1315 * infcmd.c: Likewise.
1316 * infrun.c: Likewise.
1317 * inline-frame.c: Likewise.
1318 * interps.c: Likewise.
1319 * jv-lang.c: Likewise.
1320 * jv-typeprint.c: Likewise.
1321 * linux-fork.c: Likewise.
1322 * linux-nat.c: Likewise.
1323 * linux-thread-db.c: Likewise.
1324 * m32c-tdep.c: Likewise.
1325 * m32r-linux-nat.c: Likewise.
1326 * m32r-tdep.c: Likewise.
1327 * m68k-tdep.c: Likewise.
1328 * m68kbsd-nat.c: Likewise.
1329 * m68kbsd-tdep.c: Likewise.
1330 * m88k-tdep.c: Likewise.
1331 * machoread.c: Likewise.
1332 * macroexp.c: Likewise.
1333 * macrotab.c: Likewise.
1334 * maint.c: Likewise.
1335 * mdebugread.c: Likewise.
1336 * memory-map.c: Likewise.
1337 * mep-tdep.c: Likewise.
1338 * mi/mi-common.c: Likewise.
1339 * microblaze-tdep.c: Likewise.
1340 * mingw-hdep.c: Likewise.
1341 * mips-linux-nat.c: Likewise.
1342 * mips-linux-tdep.c: Likewise.
1343 * mips-tdep.c: Likewise.
1344 * mips64obsd-tdep.c: Likewise.
1345 * mipsnbsd-tdep.c: Likewise.
1346 * mn10300-linux-tdep.c: Likewise.
1347 * mn10300-tdep.c: Likewise.
1348 * moxie-tdep.c: Likewise.
1349 * mt-tdep.c: Likewise.
1350 * nat/linux-btrace.c: Likewise.
1351 * nat/linux-osdata.c: Likewise.
1352 * nat/linux-ptrace.c: Likewise.
1353 * nat/mips-linux-watch.c: Likewise.
1354 * nios2-linux-tdep.c: Likewise.
1355 * nios2-tdep.c: Likewise.
1356 * objc-lang.c: Likewise.
1357 * objfiles.c: Likewise.
1358 * obsd-nat.c: Likewise.
1359 * opencl-lang.c: Likewise.
1360 * osabi.c: Likewise.
1361 * parse.c: Likewise.
1362 * ppc-linux-nat.c: Likewise.
1363 * ppc-sysv-tdep.c: Likewise.
1364 * ppcfbsd-nat.c: Likewise.
1365 * ppcfbsd-tdep.c: Likewise.
1366 * ppcnbsd-nat.c: Likewise.
1367 * ppcnbsd-tdep.c: Likewise.
1368 * ppcobsd-nat.c: Likewise.
1369 * ppcobsd-tdep.c: Likewise.
1370 * printcmd.c: Likewise.
1371 * procfs.c: Likewise.
1372 * prologue-value.c: Likewise.
1373 * psymtab.c: Likewise.
1374 * python/py-lazy-string.c: Likewise.
1375 * python/py-value.c: Likewise.
1376 * regcache.c: Likewise.
1377 * reggroups.c: Likewise.
1378 * registry.c: Likewise.
1379 * remote-sim.c: Likewise.
1380 * remote.c: Likewise.
1381 * rs6000-aix-tdep.c: Likewise.
1382 * rs6000-tdep.c: Likewise.
1383 * s390-linux-tdep.c: Likewise.
1384 * score-tdep.c: Likewise.
1385 * ser-base.c: Likewise.
1386 * ser-mingw.c: Likewise.
1387 * sh-tdep.c: Likewise.
1388 * sh64-tdep.c: Likewise.
1389 * solib-darwin.c: Likewise.
1390 * solib-spu.c: Likewise.
1391 * solib-svr4.c: Likewise.
1392 * source.c: Likewise.
1393 * sparc-nat.c: Likewise.
1394 * sparc-sol2-tdep.c: Likewise.
1395 * sparc-tdep.c: Likewise.
1396 * sparc64-sol2-tdep.c: Likewise.
1397 * sparc64-tdep.c: Likewise.
1398 * sparc64fbsd-tdep.c: Likewise.
1399 * sparc64nbsd-tdep.c: Likewise.
1400 * sparc64obsd-tdep.c: Likewise.
1401 * sparcnbsd-tdep.c: Likewise.
1402 * sparcobsd-tdep.c: Likewise.
1403 * spu-multiarch.c: Likewise.
1404 * spu-tdep.c: Likewise.
1405 * stabsread.c: Likewise.
1406 * stack.c: Likewise.
1407 * symfile.c: Likewise.
1408 * symtab.c: Likewise.
1409 * target-descriptions.c: Likewise.
1410 * target-memory.c: Likewise.
1411 * target.c: Likewise.
1412 * tic6x-linux-tdep.c: Likewise.
1413 * tic6x-tdep.c: Likewise.
1414 * tilegx-linux-nat.c: Likewise.
1415 * tilegx-tdep.c: Likewise.
1417 * tramp-frame.c: Likewise.
1418 * tui/tui-out.c: Likewise.
1419 * tui/tui-winsource.c: Likewise.
1420 * ui-out.c: Likewise.
1421 * user-regs.c: Likewise.
1422 * utils.c: Likewise.
1423 * v850-tdep.c: Likewise.
1424 * valops.c: Likewise.
1425 * value.c: Likewise.
1426 * varobj.c: Likewise.
1427 * vax-nat.c: Likewise.
1428 * xml-syscall.c: Likewise.
1429 * xml-tdesc.c: Likewise.
1430 * xstormy16-tdep.c: Likewise.
1431 * xtensa-linux-nat.c: Likewise.
1432 * xtensa-tdep.c: Likewise.
1434 2014-08-07 Gary Benson <gbenson@redhat.com>
1436 * common/common-defs.h: Include common-utils.h.
1437 * defs.h: Do not include common-utils.h.
1438 * common/gdb_assert.h: Likewise.
1439 * darwin-nat.h: Likewise.
1440 * nat/linux-btrace.c: Likewise.
1441 * target/waitstatus.h: Likewise.
1443 2014-08-07 Gary Benson <gbenson@redhat.com>
1445 * common/common-defs.h: Include ptid.h.
1446 * defs.h: Do not include ptid.h.
1447 * inferior.h: Likewise.
1448 * infrun.h: Likewise.
1449 * nat/linux-btrace.h: Likewise.
1450 * nat/linux-osdata.h: Likewise.
1451 * target/waitstatus.h: Likewise.
1453 2014-08-07 Gary Benson <gbenson@redhat.com>
1455 * common/common-defs.h: Include gdb_locale.h.
1456 * defs.h: Do not include gdb_locale.h.
1458 2014-08-07 Gary Benson <gbenson@redhat.com>
1460 * common/common-defs.h: Include gdb/signals.h.
1461 * defs.h: Do not include gdb/signals.h.
1463 2014-08-07 Gary Benson <gbenson@redhat.com>
1465 * common/common-defs.h: Include pathmax.h.
1466 * defs.h: Do not include pathmax.h.
1468 2014-08-07 Gary Benson <gbenson@redhat.com>
1470 * common/common-defs.h: Include libiberty.h.
1471 * defs.h: Do not include libiberty.h.
1472 * common/queue.h: Likewise.
1473 * cp-name-parser.y: Likewise.
1474 * mi/mi-cmd-catch.c: Likewise.
1475 * python/python.c: Likewise.
1477 2014-08-07 Gary Benson <gbenson@redhat.com>
1479 * common/common-defs.h: Include ansidecl.h.
1480 * defs.h: Do not include ansidecl.h.
1481 * common/buffer.h: Likewise.
1482 * common/common-utils.h: Likewise.
1484 2014-08-07 Gary Benson <gbenson@redhat.com>
1486 * common/common-defs.h: Include stddef.h.
1487 * defs.h: Do not include stddef.h.
1488 * common/common-utils.h: Likewise.
1489 * amd64fbsd-nat.c: Likewise.
1490 * bcache.c: Likewise.
1491 * charset.c: Likewise.
1492 * common/buffer.h: Likewise.
1493 * common/vec.h: Likewise.
1494 * i386bsd-nat.c: Likewise.
1495 * nat/linux-btrace.h: Likewise.
1496 * ppcfbsd-nat.c: Likewise.
1497 * ppcnbsd-tdep.h: Likewise.
1498 * ppcobsd-nat.c: Likewise.
1499 * ppcobsd-tdep.h: Likewise.
1500 * python/py-gdb-readline.c: Likewise.
1502 2014-08-07 Gary Benson <gbenson@redhat.com>
1504 * common/common-defs.h: Include stdarg.h.
1505 * defs.h: Do not include stdarg.h.
1506 * ada-lang.c: Likewise.
1507 * common/common-utils.h: Likewise.
1508 * guile/scm-string.c: Likewise.
1509 * guile/scm-utils.c: Likewise.
1510 * m32c-tdep.c: Likewise.
1512 2014-08-07 Gary Benson <gbenson@redhat.com>
1514 * common/common-defs.h: Include stdlib.h.
1515 * defs.h: Do not include stdlib.h.
1516 * addrmap.c: Likewise.
1517 * bcache.c: Likewise.
1518 * common/buffer.c: Likewise.
1519 * common/common-utils.c: Likewise.
1520 * cp-name-parser.y: Likewise.
1521 * go32-nat.c: Likewise.
1522 * mn10300-linux-tdep.c: Likewise.
1523 * nat/linux-osdata.c: Likewise.
1524 * tui/tui.c: Likewise.
1525 * windows-nat.c: Likewise.
1527 2014-08-07 Gary Benson <gbenson@redhat.com>
1529 * common/common-defs.h: Include stdio.h.
1530 * defs.h: Do not include stdio.h.
1531 * ada-lang.c: Likewise.
1532 * common/buffer.c: Likewise.
1533 * common/common-utils.c: Likewise.
1534 * cp-name-parser.y: Likewise.
1535 * gnu-nat.c: Likewise.
1536 * go32-nat.c: Likewise.
1537 * i386gnu-nat.c: Likewise.
1538 * proc-api.c: Likewise.
1539 * proc-events.c: Likewise.
1540 * proc-flags.c: Likewise.
1541 * proc-why.c: Likewise.
1542 * python/python-internal.h: Likewise.
1543 * target-memory.c: Likewise.
1544 * tui/tui-io.c: Likewise.
1545 * tui/tui.c: Likewise.
1547 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1549 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1550 (scan_dyntag_auxv): Same.
1552 2014-08-06 Yao Qi <yao@codesourcery.com>
1554 * amd64-linux-nat.c: Remove duplicated include
1556 * i386-linux-nat.c: Likewise.
1558 2014-08-06 Yao Qi <yao@codesourcery.com>
1560 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1561 operand" with "Special opcode" in comments.
1563 2014-08-05 Gary Benson <gbenson@redhat.com>
1565 * interps.c (initialize_interps): Remove prototype.
1566 (interpreter_initialized): Remove static global.
1567 (interp_add): Do not call initialize_interps.
1568 (initialize_interps): Remove function.
1570 2014-08-05 Gary Benson <gbenson@redhat.com>
1572 * utils.c (vwarning): Remove spurious va_end.
1574 2014-08-05 Alan Modra <amodra@gmail.com>
1576 * charset.c (convert_between_encodings): Cast result of obstack_base.
1577 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1578 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1579 (read_unwind_info): Use size_t for some locals.
1580 * jit.c (finalize_symtab): Likewise.
1581 * utils.c (hashtab_obstack_allocate): Likewise.
1582 * symmisc.c (print_objfile_statistics): Update format strings.
1584 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1586 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1587 (Changes in GDB 7.8): ... here.
1589 2014-08-04 Tom Tromey <tromey@redhat.com>
1591 * target.c (set_targetdebug): New function.
1592 (initialize_targets): Pass set_targetdebug when creating "set
1595 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1597 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1598 if detecting a variable-sized field that is not the last field.
1599 Fix struct type length computation.
1601 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1603 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1606 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1608 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1609 Remove "+ 8" offset in computation of CHAIN_VMA.
1611 2014-07-31 Doug Evans <dje@google.com>
1613 * inflow.c (child_terminal_inferior): Add comment.
1614 (child_terminal_ours_for_output): Add comment.
1615 (child_terminal_ours): Add comment.
1616 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1617 (linux_nat_terminal_ours): Add comment.
1619 2014-07-31 Gary Benson <gbenson@redhat.com>
1621 * common/btrace-common.h: Do not include defs.h or server.h.
1622 * nat/mips-linux-watch.h: Likewise.
1623 * gdb-dlfcn.h: Do not include defs.h.
1624 * tracefile.h: Likewise.
1626 2014-07-30 Roland McGrath <mcgrathr@google.com>
1628 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1630 2014-07-30 Tom Tromey <tromey@redhat.com>
1632 * bsd-kvm.c (bsd_kvm_open): Constify.
1633 * corelow.c (core_open): Constify.
1634 * ctf.c (ctf_open): Constify.
1635 * dbug-rom.c (dbug_open): Constify.
1636 * exec.c (exec_open): Constify.
1637 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1638 * microblaze-rom.c (picobug_open): Constify.
1639 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1641 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1642 * record-btrace.c (record_btrace_open): Constify.
1643 * record-full.c (record_full_core_open_1, record_full_open_1)
1644 (record_full_open): Constify.
1645 * remote-m32r-sdi.c (m32r_open): Constify.
1646 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1647 (rockhopper_open, lsi_open): Constify.
1648 * remote-sim.c (gdbsim_open): Constify.
1649 * remote.c (remote_open, extended_remote_open, remote_open_1):
1651 * target.h (struct target_ops) <to_open>: Make "arg" const.
1652 * tracefile-tfile.c (tfile_open): Constify.
1654 2014-07-30 Tom Tromey <tromey@redhat.com>
1656 * breakpoint.c (map_breakpoint_numbers): Update.
1657 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1658 (get_number_const): New function.
1659 (get_number): Rewrite using get_number_const.
1660 (init_number_or_range): Make "string" const.
1661 (number_is_in_list): Make "list" const.
1662 * cli/cli-utils.h (get_number_const): Declare.
1663 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1664 (init_number_or_range, number_is_in_list): Update.
1665 * printcmd.c (map_display_numbers): Update.
1666 * value.c (value_from_history_ref): Constify.
1667 * value.h (value_from_history_ref): Update.
1669 2014-07-30 Tom Tromey <tromey@redhat.com>
1671 * corefile.c (hook_type, call_extra_exec_file_hooks)
1672 (specify_exec_file_hook): Constify.
1673 * exec.c (exec_file_attach): Make "filename" const.
1674 * gdbcore.h (deprecated_exec_file_display_hook)
1675 (specify_exec_file_hook, exec_file_attach): Constify.
1676 * main.c (captured_main): Use catch_command_errors_const.
1678 2014-07-30 Tom Tromey <tromey@redhat.com>
1680 * target.c (open_target): New function.
1681 (add_target_with_completer, add_deprecated_target_alias): Use
1682 set_cmd_sfunc, set_cmd_context.
1683 (debug_to_open): Remove.
1684 (setup_target_debug): Update.
1686 2014-07-30 Yao Qi <yao@codesourcery.com>
1688 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1690 * parse.c (exp_iterate): Update comments.
1692 2014-07-30 Gary Benson <gbenson@redhat.com>
1694 * common/common-defs.h: New file.
1695 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1696 * defs.h: Include common-defs.h.
1697 Do not include config.h or build-gnulib/config.h.
1699 2014-07-30 Gary Benson <gbenson@redhat.com>
1701 * common/common-utils.h: Do not include config.h.
1702 * nat/linux-btrace.h: Likewise.
1704 2014-07-30 Gary Benson <gbenson@redhat.com>
1706 * btrace.c: Include defs.h.
1707 * common/ptid.c: Include defs.h or server.h as appropriate.
1708 * nat/mips-linux-watch.c: Likewise.
1710 2014-07-29 Tom Tromey <tromey@redhat.com>
1712 * target.c (target_is_pushed): Simplify.
1714 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1718 2014-07-29 Yao Qi <yao@codesourcery.com>
1721 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1723 2014-07-28 Doug Evans <xdje42@gmail.com>
1726 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1727 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1730 2014-07-28 Will Newton <will.newton@linaro.org>
1732 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1733 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1734 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1735 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1736 (THUMB2_EABI_SYSCALL): Likewise.
1737 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1739 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1740 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1742 2014-07-27 Doug Evans <xdje42@gmail.com>
1744 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1746 2014-07-27 Doug Evans <xdje42@gmail.com>
1748 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1750 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1751 Doug Evans <xdje42@gmail.com>
1754 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1755 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1756 * configure.ac: Try to use guild to compile an scm file, if it fails
1757 then disable guile support.
1758 * configure: Regenerate.
1759 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1761 (GUILE_COMPILED_FILES): New variable.
1762 (GUILE_FILES) Update.
1763 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1764 (stamp-guile): Compile scm files.
1765 * guile/guile.c (boot_guile_support): New function.
1766 (standard_throw_args_p): New function.
1767 (print_standard_throw_error, print_throw_error): New functions.
1768 (handle_boot_error): New function.
1769 (initialize_scheme_side): Rewrite to call boot_guile_support.
1770 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1771 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1773 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1774 Doug Evans <xdje42@gmail.com>
1777 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1778 * guile/lib/gdb/support.scm: New file.
1779 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1780 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1782 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1784 (%assert-type): Ditto, and renamed to assert-type.
1785 (%exception-print-style): Delete.
1787 2014-07-26 Doug Evans <xdje42@gmail.com>
1790 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1791 * configure: Regenerate.
1792 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1794 (PYTHON_FILES): New variable.
1795 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1796 (GUILE_FILES): New variable.
1797 (stamp-python, install-python, uninstall-python): Handle empty
1799 (stamp-guile, install-guile, uninstall-guile): Ditto.
1801 2014-07-26 Doug Evans <xdje42@gmail.com>
1804 * guile/lib/gdb.scm (pretty-printers): Export.
1805 (set-pretty-printers!): Export.
1806 * guile/lib/gdb/printing.scm (gdb module): Update.
1807 (prepend-pretty-printer!, append-pretty-printer!): Update.
1808 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1809 (pretty_printer_list_var): Delete.
1810 (pretty_printer_list): New static global.
1811 (gdbscm_pretty_printers): New function.
1812 (gdbscm_set_pretty_printers_x): New function.
1813 (ppscm_find_pretty_printer_from_gdb): Update.
1814 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1815 (gdbscm_initialize_pretty_printers): Update.
1817 2014-07-26 Doug Evans <xdje42@gmail.com>
1820 * configure.ac: Add check for header gc/gc.h.
1821 Add check for function setenv.
1822 * configure: Regenerate.
1823 * config.in: Regenerate.
1824 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1826 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1828 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1829 variation in gdbarch matching.
1831 2014-07-25 Tom Tromey <tromey@redhat.com>
1833 * exec.c (using_exec_ops): Remove.
1834 (exec_close_1): Update. Remove extraneous block, reindent.
1835 (add_target_sections): Use target_is_pushed.
1837 2014-07-25 Pedro Alves <palves@redhat.com>
1839 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1840 * monitor.c (monitor_create_inferior): Likewise.
1841 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1842 * remote-sim.c (gdbsim_create_inferior): Likewise.
1843 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1844 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1845 * windows-nat.c (do_initial_windows_stuff): Likewise.
1847 2014-07-25 Pedro Alves <palves@redhat.com>
1849 * NEWS: Mention signal passing and "signal" command changes.
1850 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1852 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1854 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1855 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1856 (jump_command): Adjust clear_proceed_status call.
1857 (signal_command): Warn if other thread that are resumed have
1858 signals that will be delivered. Adjust clear_proceed_status call.
1859 (until_next_command, finish_command)
1860 (proceed_after_attach_callback, attach_command_post_wait)
1861 (attach_command): Adjust clear_proceed_status call.
1862 * infrun.c (proceed_after_vfork_done): Likewise.
1863 (proceed_after_attach_callback): Adjust comment.
1864 (clear_proceed_status_thread): Clear stop_signal if not in pass
1866 (clear_proceed_status_callback): Delete.
1867 (clear_proceed_status): New 'step' parameter. Only clear the
1868 proceed status of threads the command being prepared is about to
1870 (proceed): If passed in an explicit signal, override stop_signal
1871 with it. Don't pass the last stop signal to the thread we're
1873 (init_wait_for_inferior): Adjust clear_proceed_status call.
1874 (switch_back_to_stepped_thread): Clear the signal if it should not
1876 * infrun.h (clear_proceed_status): New 'step' parameter.
1877 (user_visible_resume_ptid): Add comment.
1878 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1879 signal is in pass state.
1880 * remote.c (append_pending_thread_resumptions): Likewise.
1881 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1883 2014-07-25 Tom Tromey <tromey@redhat.com>
1885 * target.h (target_stopped_data_address)
1886 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1889 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1891 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1893 (avr_pointer_to_address): Likewise.
1895 2014-07-24 Tom Tromey <tromey@redhat.com>
1897 * monitor.c (compile_pattern): Update.
1898 * target.h (struct target_ops) <to_shortname, to_longname,
1901 2014-07-24 Tom Tromey <tromey@redhat.com>
1903 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1904 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1905 (add_info_alias, add_com): Make "doc" const.
1906 (print_doc_line): Make "str" const.
1907 (delete_cmd): Update.
1908 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1909 (print_doc_line): Update.
1910 * cli/cli-script.c (document_command): Update.
1911 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1912 (add_com, add_info, add_info_alias): Update.
1913 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1914 * python/py-cmd.c (cmdpy_destroyer): Update.
1916 2014-07-24 Tom Tromey <tromey@redhat.com>
1918 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1919 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1920 (help_cmd_list): Constify.
1921 (lookup_cmd): Update.
1922 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1924 (help_cmd_list, apropos_cmd): Update.
1925 * cli/cli-script.c (show_user): Update.
1926 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1927 * cli/cli-setshow.h (cmd_show_list): Update.
1928 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1929 (cmd_show_list): Update.
1930 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1931 * python/py-cmd.c (cmdpy_destroyer): Update.
1933 2014-07-24 Tom Tromey <tromey@redhat.com>
1935 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1936 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1938 * command.h (deprecate_cmd): Update.
1939 * maint.c (maintenance_do_deprecate): Add casts.
1941 2014-07-24 Tom Tromey <tromey@redhat.com>
1943 * cli/cli-decode.c (help_cmd): Make parameter "const".
1944 * cli/cli-decode.h (help_cmd): Update.
1946 2014-07-24 Tom Tromey <tromey@redhat.com>
1948 * stack.c (up_silently_base, down_silently_base): Make argument
1951 2014-07-24 Tom Tromey <tromey@redhat.com>
1953 * solib.c (solib_add): Make "pattern" const.
1954 * solib.h (solib_add): Update.
1956 2014-07-24 Tom Tromey <tromey@redhat.com>
1958 * remote.c (remote_serial_open, print_packet, putpkt)
1959 (putpkt_binary): Constify.
1960 * remote.h (putpkt): Update.
1962 2014-07-24 Tom Tromey <tromey@redhat.com>
1964 * monitor.c (monitor_open): Make "args" const.
1965 * monitor.h (monitor_open): Update.
1967 2014-07-24 Tom Tromey <tromey@redhat.com>
1969 * maint.c (match_bfd_flags): Make "string" const.
1970 (print_bfd_section_info): Remove casts.
1971 (print_objfile_section_info): Make "string" const.
1973 2014-07-24 Tom Tromey <tromey@redhat.com>
1975 * inf-child.c (inf_child_open_target): Make "arg" const.
1976 * inf-child.h (inf_child_open_target): Update.
1978 2014-07-24 Tom Tromey <tromey@redhat.com>
1980 * environ.c (unset_in_environ): Make "var" const.
1981 * environ.h (unset_in_environ): Update.
1983 2014-07-24 Tom Tromey <tromey@redhat.com>
1985 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1987 (scan_filename_with_cleanup): Likewise.
1988 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1989 Make arguments const.
1990 (restore_command): Update.
1992 2014-07-24 Pedro Alves <palves@redhat.com>
1994 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1996 2014-07-24 Tom Tromey <tromey@redhat.com>
1997 Gary Benson <gbenson@redhat.com>
1999 * nat/linux-ptrace.c (additional_flags): New global.
2000 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2001 additional_flags; don't check GDBSERVER.
2002 (linux_ptrace_set_additional_flags): New function.
2003 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2005 * linux-nat.c (_initialize_linux_nat): Call
2006 linux_ptrace_set_additional_flags.
2008 2014-07-24 Tom Tromey <tromey@redhat.com>
2010 * make-target-delegates (munge_type, write_debugmethod): New
2012 (debug_names): New global.
2013 ($TARGET_DEBUG_PRINTER): New global.
2014 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2016 Write debug methods. Generate init_debug_target.
2017 * target-debug.h: New file.
2018 * target-delegates.c: Rebuild.
2019 * target.c: Include target-debug.h.
2020 (debug_target): Hoist definition.
2021 (target_kill, target_get_section_table, target_memory_map)
2022 (target_flash_erase, target_flash_done, target_detach)
2023 (target_disconnect, target_wait, target_resume)
2024 (target_pass_signals, target_program_signals, target_follow_fork)
2025 (target_mourn_inferior, target_search_memory)
2026 (target_thread_address_space, target_close)
2027 (target_find_new_threads, target_core_of_thread)
2028 (target_verify_memory, target_insert_mask_watchpoint)
2029 (target_remove_mask_watchpoint): Remove targetdebug code.
2030 (debug_to_post_attach, debug_to_prepare_to_store)
2031 (debug_to_files_info, debug_to_insert_breakpoint)
2032 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2033 (debug_to_region_ok_for_hw_watchpoint)
2034 (debug_to_can_accel_watchpoint_condition)
2035 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2036 (debug_to_watchpoint_addr_within_range)
2037 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2038 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2039 (debug_to_terminal_init, debug_to_terminal_inferior)
2040 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2041 (debug_to_terminal_save_ours, debug_to_terminal_info)
2042 (debug_to_load, debug_to_post_startup_inferior)
2043 (debug_to_insert_fork_catchpoint)
2044 (debug_to_remove_fork_catchpoint)
2045 (debug_to_insert_vfork_catchpoint)
2046 (debug_to_remove_vfork_catchpoint)
2047 (debug_to_insert_exec_catchpoint)
2048 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2049 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2050 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2051 (setup_target_debug): Call init_debug_target.
2052 * target.h (TARGET_DEBUG_PRINTER): New macro.
2053 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2054 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2056 2014-07-24 Gary Benson <gbenson@redhat.com>
2058 * exceptions.h (throw_vfatal): Renamed to...
2059 (throw_vquit): New declaration.
2060 (throw_quit): Likewise.
2061 * exceptions.c (throw_vfatal): Renamed to...
2062 (throw_vquit): New function.
2063 (throw_quit): Likewise.
2064 (throw_error): Call throw_verror rather than throw_it.
2065 * utils.h (vfatal): Removed.
2067 * utils.c (vfatal): Removed.
2069 (internal_verror): Replaced call to fatal with call to throw_quit.
2070 (quit): Replaced calls to fatal with calls to throw_quit.
2072 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2074 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2077 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2079 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2080 less than zero in conditional expression.
2082 2014-07-23 Tom Tromey <tromey@redhat.com>
2084 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2085 ($INTRO_PART): Don't match whitespace.
2086 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2088 ($METHOD): Add $METHOD_TRAILER.
2090 (scan_target_h): New sub.
2091 Change main loop not to collect state.
2092 * target-delegates.c: Rebuild.
2094 2014-07-23 Gary Benson <gbenson@redhat.com>
2096 * cp-support.c (gdb_demangle): Fix build on systems without
2099 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2101 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2102 for reference entry value target data value.
2104 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2106 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2107 value_available_contents_eq.
2109 2014-07-22 Pedro Alves <palves@redhat.com>
2111 * value.c (allocate_optimized_out_value): Don't mark value as
2114 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2116 * MAINTAINERS (Write After Approval): Update my email address.
2118 2014-07-20 Doug Evans <dje@google.com>
2121 * remote.c (putpkt_binary): Add text to error message.
2123 2014-07-20 Yao Qi <yao@codesourcery.com>
2125 * eval.c: Remove "Chill" from comments.
2126 * gdbtypes.h: Likewise.
2127 * symtab.h: Likewise.
2129 2014-07-20 Yao Qi <yao@codesourcery.com>
2131 * std-operator.def: Update comments to TERNOP_SLICE.
2133 2014-07-20 Yao Qi <yao@codesourcery.com>
2135 * std-operator.def: Remove BINOP_RANGE.
2136 * breakpoint.c (watchpoint_exp_is_const): Update.
2137 * expprint.c (dump_subexp_body_standard): Likewise.
2138 * eval.c (init_array_element): Remove dead code.
2139 (evaluate_subexp_standard): Likewise.
2141 2014-07-20 Yao Qi <yao@codesourcery.com>
2143 * std-operator.def: Remove BINOP_IN.
2144 * breakpoint.c (watchpoint_exp_is_const): Update.
2145 * eval.c (evaluate_subexp_standard): Likewise.
2146 * expprint.c (dump_subexp_body_standard): Likewise.
2148 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2150 * microblaze-tdep.c (microblaze_register_names): Add
2151 the rshr and rslr register names.
2152 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2153 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2154 Use of tdesc_numbered_register. Use of
2155 microblaze_register_g_packet_guesses. Use of
2156 tdesc_use_registers. Use of set_gdbarch_register_type.
2157 (microblaze_register_g_packet_guesses): New.
2158 * microblaze-tdep.h (microblaze_reg_num): Add
2159 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2160 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2161 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2162 * features/microblaze-core.xml: New file.
2163 * features/microblaze-stack-protect.xml: New file.
2164 * features/microblaze-with-stack-protect.c: New file.
2165 * features/microblaze-with-stack-protect.xml: New file.
2166 * features/microblaze.xml: New file.
2167 * features/microblaze.c: New file.
2168 * features/Makefile (microblaze-with-stack-protect): Add
2169 microblaze-with-stack-protect microblaze and microblaze-expedite.
2170 * regformats/microblaze-with-stack-protect.dat: New file.
2171 * regformats/microblaze.dat: New file.
2172 * doc/gdb.texinfo (MicroBlaze Features): Added.
2174 2014-07-18 Tom Tromey <tromey@redhat.com>
2176 * exec.c (exec_ops): Now static.
2177 * exec.h (exec_ops): Don't declare.
2179 2014-07-18 Tom Tromey <tromey@redhat.com>
2181 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2182 to find_target_beneath.
2183 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2184 find_target_beneath.
2185 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2187 2014-07-18 Tom Tromey <tromey@redhat.com>
2190 * utils.c (quit): Use target_supports_terminal_ours.
2191 * target.h (target_supports_terminal_ours): Declare.
2192 * target.c (target_supports_delete_record): Don't check
2193 to_delete_record against NULL.
2194 (target_supports_terminal_ours): New function.
2196 2014-07-18 Tom Tromey <tromey@redhat.com>
2199 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2200 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2201 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2202 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2203 * windows-nat.c (windows_xfer_partial): Always delegate.
2204 * record-btrace.c (record_btrace_xfer_partial): Simplify
2206 (record_btrace_fetch_registers, record_btrace_store_registers)
2207 (record_btrace_prepare_to_store, record_btrace_resume)
2208 (record_btrace_wait, record_btrace_find_new_threads)
2209 (record_btrace_thread_alive): Likewise.
2210 * procfs.c (procfs_xfer_partial): Always delegate.
2211 * corelow.c (core_xfer_partial): Always delegate.
2212 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2214 2014-07-18 Tom Tromey <tromey@redhat.com>
2216 * exec.c (exec_make_note_section): Move earlier.
2218 2014-07-17 Doug Evans <dje@google.com>
2221 * maint.c (count_symtabs_and_blocks): Handle NULL
2222 current_program_space.
2223 (report_command_stats): Check global enabled flag in addition to
2224 recorded enabled flag.
2225 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2227 2014-07-16 Pedro Alves <palves@redhat.com>
2229 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2231 2014-07-16 Tom Tromey <tromey@redhat.com>
2233 * target.h (struct target_ops) <to_delete_record>: Reformat
2236 2014-07-16 Tom Tromey <tromey@redhat.com>
2238 * target-delegates.c: Rebuild.
2240 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2242 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2243 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2244 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2245 (avr_pointer_to_address): Likewise.
2246 (avr_address_class_type_flags): New function.
2247 (avr_address_class_type_flags_to_name): Likewise.
2248 (avr_address_class_name_to_type_flags): Likewise.
2249 (avr_gdbarch_init): Set address_class_type_flags,
2250 address_class_type_flags_to_name and
2251 address_class_name_to_type_flags.
2253 2014-07-15 Pedro Alves <palves@redhat.com>
2255 * linux-nat.c (kill_callback): Save errno and work with saved
2258 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2260 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2262 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2264 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2265 breakpoint support correctly.
2267 2014-07-14 Pedro Alves <palves@redhat.com>
2269 * utils.c (prompt_for_continue): Call target_terminal_ours.
2271 2014-07-14 Pedro Alves <palves@redhat.com>
2273 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2274 catch_errors. Don't re-enable stdin or notify observers where,
2276 (fetch_inferior_event_wrapper): Delete.
2278 2014-07-14 Pedro Alves <palves@redhat.com>
2281 * top.c: Include "inf-loop.h".
2282 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2284 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2286 (gdb_readline_wrapper): Store whether the target is async, and
2289 2014-07-14 Pedro Alves <palves@redhat.com>
2292 * top.c (gdb_readline_wrapper_line): Tweak comment.
2293 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2294 the input handler callback.
2296 2014-07-14 Pedro Alves <palves@redhat.com>
2299 * main.c: Include event-top.h.
2300 (handle_command_errors): New function.
2301 (catch_command_errors, catch_command_errors_const): Use it.
2303 2014-07-14 Pedro Alves <palves@redhat.com>
2305 * exceptions.c (catch_command_errors, catch_command_errors_const):
2307 * exceptions.h (catch_command_errors_ftype)
2308 (catch_command_errors_const_ftype): Moved to main.c.
2309 (catch_command_errors, catch_command_errors_const): Delete
2311 * main.c (catch_command_errors_ftype)
2312 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2313 (catch_command_errors, catch_command_errors_const)): Moved here
2314 from exceptions.c and make static.
2316 2014-07-14 Pedro Alves <palves@redhat.com>
2318 * exceptions.c (print_any_exception): Delete.
2319 (catch_exceptions_with_msg): Use exception_print instead of
2320 print_any_exception.
2321 (catch_errors): Use exception_fprintf instead of
2322 print_any_exception.
2323 (catch_command_errors, catch_command_errors_const): Use
2324 exception_print instead of print_any_exception.
2326 2014-07-14 Pedro Alves <palves@redhat.com>
2328 * infcall.c (run_inferior_call): Set 'sync_execution' while
2329 running the inferior call.
2331 2014-07-14 Pedro Alves <palves@redhat.com>
2333 * value.c (value_contents_equal): Delete function.
2334 * value.h (value_contents_equal): Delete declaration.
2336 2014-07-14 Tom Tromey <tromey@redhat.com>
2339 * gdbtypes.c (is_dynamic_type_internal): New function, from
2341 (is_dynamic_type): Rewrite.
2342 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2343 (resolve_dynamic_struct): Likewise.
2344 (resolve_dynamic_type_internal): New function, from
2345 resolve_dynamic_type.
2346 (resolve_dynamic_type): Rewrite.
2348 2014-07-14 Tom Tromey <tromey@redhat.com>
2350 * target.c (target_require_runnable): Also check record_stratum.
2353 2014-07-11 Yao Qi <yao@codesourcery.com>
2355 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2356 thumb_instruction_restores_sp return true.
2358 2014-07-11 Yao Qi <yao@codesourcery.com>
2360 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2361 (thumb_in_function_epilogue_p): Call
2362 thumb_instruction_restores_sp.
2364 2014-07-11 Yao Qi <yao@codesourcery.com>
2366 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2368 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2370 2014-07-11 Gary Benson <gbenson@redhat.com>
2372 * amd64-linux-nat.c (gdbcore.h): Remove include.
2373 (regset.h): Likewise.
2374 (nat/linux-btrace.h): Likewise.
2375 (btrace.h): Likewise.
2376 (gdb_assert.h): Likewise.
2377 (string.h): Likewise.
2378 (sys/uio.h): Likewise.
2379 (sys/debugreg.h): Likewise.
2380 (sys/syscall.h): Likewise.
2381 (sys/procfs.h): Likewise.
2382 (sys/user.h): Likewise.
2383 (asm/ptrace.h): Likewise.
2384 (i386-nat.h): Likewise.
2385 * i386-linux-nat.c (i386-nat.h): Likewise.
2386 (regset.h): Likewise.
2387 (target.h): Likewise.
2388 (linux-nat.h): Likewise.
2389 (nat/linux-btrace.h): Likewise.
2390 (btrace.h): Likewise.
2391 (gdb_assert.h): Likewise.
2392 (string.h): Likewise.
2393 (sys/uio.h): Likewise.
2394 (sys/user.h): Likewise.
2395 (sys/procfs.h): Likewise.
2396 (sys/reg.h): Likewise.
2397 (sys/debugreg.h): Likewise.
2398 (ORIG_EAX): Remove definition.
2400 2014-07-11 Gary Benson <gbenson@redhat.com>
2402 * i386-linux-nat.h: New file.
2403 * x86-linux-nat.h: Likewise.
2404 * x86-linux-nat.c: Likewise.
2405 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2406 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2407 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2408 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2409 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2410 (PTRACE_SETREGSET): Likewise.
2411 (arch_lwp_info): Now in x86-linux-nat.c.
2412 (have_ptrace_getregset): Now in x86-linux-nat.h.
2413 (x86_linux_dr_get): Now in x86-linux-nat.c.
2414 (x86_linux_dr_set): Likewise.
2415 (x86_linux_dr_get_addr): Likewise.
2416 (x86_linux_dr_get_control): Likewise.
2417 (x86_linux_dr_get_status): Likewise.
2418 (update_debug_registers_callback): Likewise.
2419 (x86_linux_dr_set_control): Likewise.
2420 (x86_linux_dr_set_addr): Likewise.
2421 (x86_linux_prepare_to_resume): Likewise.
2422 (x86_linux_new_thread): Likewise.
2423 (x86_linux_new_fork): Likewise.
2424 (x86_linux_get_thread_area): Likewise.
2425 (super_post_startup_inferior): Likewise.
2426 (x86_linux_child_post_startup_inferior): Likewise.
2427 (AMD64_LINUX_USER64_CS): Likewise.
2428 (AMD64_LINUX_X32_DS): Likewise.
2429 (x86_linux_read_description): Likewise.
2430 (x86_linux_enable_btrace): Likewise.
2431 (x86_linux_disable_btrace): Likewise.
2432 (x86_linux_teardown_btrace): Likewise.
2433 (x86_linux_read_btrace): Likewise.
2434 (x86_linux_create_target): Likewise.
2435 (x86_linux_add_target): Likewise.
2436 * i386-linux-nat.c (x86-linux-nat.h): New include.
2437 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2438 (PTRACE_SETREGSET): Likewise.
2439 (arch_lwp_info): Now in x86-linux-nat.c.
2440 (have_ptrace_getregset): Now in x86-linux-nat.h.
2441 (x86_linux_dr_get): Now in x86-linux-nat.c.
2442 (x86_linux_dr_set): Likewise.
2443 (x86_linux_dr_get_addr): Likewise.
2444 (x86_linux_dr_get_control): Likewise.
2445 (x86_linux_dr_get_status): Likewise.
2446 (update_debug_registers_callback): Likewise.
2447 (x86_linux_dr_set_control): Likewise.
2448 (x86_linux_dr_set_addr): Likewise.
2449 (x86_linux_prepare_to_resume): Likewise.
2450 (x86_linux_new_thread): Likewise.
2451 (x86_linux_new_fork): Likewise.
2452 (x86_linux_get_thread_area): Likewise.
2453 (super_post_startup_inferior): Likewise.
2454 (x86_linux_child_post_startup_inferior): Likewise.
2455 (AMD64_LINUX_USER64_CS): Likewise.
2456 (AMD64_LINUX_X32_DS): Likewise.
2457 (x86_linux_read_description): Likewise.
2458 (x86_linux_enable_btrace): Likewise.
2459 (x86_linux_disable_btrace): Likewise.
2460 (x86_linux_teardown_btrace): Likewise.
2461 (x86_linux_read_btrace): Likewise.
2462 (x86_linux_create_target): Likewise.
2463 (x86_linux_add_target): Likewise.
2465 2014-07-11 Gary Benson <gbenson@redhat.com>
2467 * amd64-linux-nat.c: Comment and whitespace changes.
2468 * i386-linux-nat.c: Comment and whitespace changes.
2470 2014-07-11 Gary Benson <gbenson@redhat.com>
2472 * amd64-linux-nat.c (x86_linux_create_target): New function.
2473 (x86_linux_add_target): Likewise.
2474 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2475 * i386-linux-nat.c (x86_linux_create_target): New function.
2476 (x86_linux_add_target): Likewise.
2477 (_initialize_i386_linux_nat): Delegate to the above new functions.
2479 2014-07-11 Gary Benson <gbenson@redhat.com>
2481 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2482 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2483 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2484 (ps_get_thread_area): Delegate to the above.
2486 2014-07-11 Gary Benson <gbenson@redhat.com>
2488 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2489 x86_linux_read_description. All uses updated. amd64-specific
2490 code conditionalized. Conditionalized i386-specific code added.
2491 Redundant cast removed.
2492 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2493 x86_linux_read_description. All uses updated. i386-specific
2494 code conditionalized. Conditionalized amd64-specific code added.
2495 One sizeof replaced with the actual type it is describing.
2497 2014-07-11 Gary Benson <gbenson@redhat.com>
2499 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2500 x86_linux_dr_get. All uses updated.
2501 (amd64_linux_dr_set): Renamed to
2502 x86_linux_dr_set. All uses updated.
2503 (amd64_linux_dr_get_addr): Renamed to
2504 x86_linux_dr_get_addr. All uses updated.
2505 (amd64_linux_dr_get_control): Renamed to
2506 x86_linux_dr_get_control. All uses updated.
2507 (amd64_linux_dr_get_status): Renamed to
2508 x86_linux_dr_get_status. All uses updated.
2509 (amd64_linux_dr_set_control): Renamed to
2510 x86_linux_dr_set_control. All uses updated.
2511 (amd64_linux_dr_set_addr): Renamed to
2512 x86_linux_dr_set_addr. All uses updated.
2513 (amd64_linux_prepare_to_resume): Renamed to
2514 x86_linux_prepare_to_resume. All uses updated.
2515 (amd64_linux_new_thread): Renamed to
2516 x86_linux_new_thread. All uses updated.
2517 (amd64_linux_new_fork): Renamed to
2518 x86_linux_new_fork. All uses updated.
2519 (amd64_linux_child_post_startup_inferior): Renamed to
2520 x86_linux_child_post_startup_inferior. All uses updated.
2521 (amd64_linux_enable_btrace): Renamed to
2522 x86_linux_enable_btrace. All uses updated.
2523 (amd64_linux_disable_btrace): Renamed to
2524 x86_linux_disable_btrace. All uses updated.
2525 (amd64_linux_teardown_btrace): Renamed to
2526 x86_linux_teardown_btrace. All uses updated.
2527 (amd64_linux_read_btrace): Renamed to
2528 x86_linux_read_btrace. All uses updated.
2529 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2530 x86_linux_dr_get. All uses updated.
2531 (i386_linux_dr_set): Renamed to
2532 x86_linux_dr_set. All uses updated.
2533 (i386_linux_dr_get_addr): Renamed to
2534 x86_linux_dr_get_addr. All uses updated.
2535 (i386_linux_dr_get_control): Renamed to
2536 x86_linux_dr_get_control. All uses updated.
2537 (i386_linux_dr_get_status): Renamed to
2538 x86_linux_dr_get_status. All uses updated.
2539 (i386_linux_dr_set_control): Renamed to
2540 x86_linux_dr_set_control. All uses updated.
2541 (i386_linux_dr_set_addr): Renamed to
2542 x86_linux_dr_set_addr. All uses updated.
2543 (i386_linux_prepare_to_resume): Renamed to
2544 x86_linux_prepare_to_resume. All uses updated.
2545 (i386_linux_new_thread): Renamed to
2546 x86_linux_new_thread. All uses updated.
2547 (i386_linux_new_fork): Renamed to
2548 x86_linux_new_fork. All uses updated.
2549 (i386_linux_child_post_startup_inferior): Renamed to
2550 x86_linux_child_post_startup_inferior. All uses updated.
2551 (i386_linux_enable_btrace): Renamed to
2552 x86_linux_enable_btrace. All uses updated.
2553 (i386_linux_disable_btrace): Renamed to
2554 x86_linux_disable_btrace. All uses updated.
2555 (i386_linux_teardown_btrace): Renamed to
2556 x86_linux_teardown_btrace. All uses updated.
2557 (i386_linux_read_btrace): Renamed to
2558 x86_linux_read_btrace. All uses updated.
2560 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2562 * remote.c (extended_remote_post_attach): New function.
2563 (init_extended_remote_ops): Install it as to_post_attach method.
2565 2014-07-09 Pedro Alves <palves@redhat.com>
2567 * infcmd.c (attach_command_post_wait): Don't call
2568 target_terminal_inferior here.
2569 (attach_command): Call it here instead.
2571 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2573 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2575 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2576 from varobj.c, with additional checks.
2577 (c_varobj_ops): Fill in is_path_expr_parent field.
2578 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2579 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2581 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2583 (varobj_default_is_path_expr_parent): New function.
2584 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2585 (varobj_default_is_path_expr_parent): Declare new function.
2587 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2589 * infcmd.c (finish_backward): Turn internal error into normal error.
2591 2014-07-07 Pedro Alves <palves@redhat.com>
2594 * remote.c (async_handle_remote_sigint)
2595 (async_handle_remote_sigint_twice): Call
2596 gdb_call_async_signal_handler instead of
2597 mark_async_signal_handler.
2599 2014-07-07 Tom Tromey <tromey@redhat.com>
2601 * target-delegates.c: Rebuild.
2602 * target.c (target_info_record): Remove.
2603 * record.c (info_record_command): Unconditionally call
2605 * target.h (struct target_ops) <to_info_record>: Use
2606 TARGET_DEFAULT_IGNORE.
2607 (target_info_record): Remove.
2609 2014-07-07 Tom Tromey <tromey@redhat.com>
2611 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2612 TARGET_DEFAULT_NORETURN.
2613 * target.c (generic_tls_error): New function.
2614 (target_translate_tls_address): Don't search target stack.
2615 * target-delegates.c: Rebuild.
2616 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2618 * linux-thread-db.c (thread_db_get_thread_local_address):
2619 Unconditionally call beneath target.
2621 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2623 * cli/cli-logging.c (pop_output_files): Assign targerr to
2626 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2628 * MAINTAINERS (Write After Approval): Update my email address.
2630 2014-07-02 Gary Benson <gbenson@redhat.com>
2632 * proc-service.c (ps_xfer_memory): Update comment.
2633 (ps_pstop): Remove unused function.
2634 (ps_pcontinue): Likewise.
2635 (ps_lstop): Likewise.
2636 (ps_lcontinue): Likewise.
2637 (ps_lgetxregsize): Likewise.
2638 (ps_lgetxregs): Likewise.
2639 (ps_lsetxregs): Likewise.
2640 (ps_plog): Likewise.
2641 (ps_ptread): Likewise.
2642 (ps_ptwrite): Likewise.
2644 2014-07-01 Mark Wielaard <mjw@redhat.com>
2646 * dwarf2read.c (add_array_cv_type): New function.
2647 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2648 (read_tag_volatile_type): Likewise.
2650 2014-07-01 Tom Tromey <tromey@redhat.com>
2652 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2653 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2654 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2655 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2656 * command.h (cmd_cfunc_ftype): Move earlier.
2657 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2658 (add_com, add_info): Use cmd_cfunc_ftype.
2660 2014-06-30 Tom Tromey <tromey@redhat.com>
2662 * symtab.c (operator_chars): Make parameters and return type
2664 (file_matches): Make "files" const.
2665 (struct search_symbols_data) <files>: Now const.
2666 (search_symbols): Make "regexp" and "files" parameters const.
2668 (symtab_symbol_info): Remove cast.
2669 (rbreak_command): Update.
2670 * symtab.h (search_symbols): Update.
2672 2014-06-27 Yao Qi <yao@codesourcery.com>
2674 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2675 Change parameter type to 'struct thread_info *'. Caller
2677 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2679 * dummy-frame.c (struct dummy_frame_id): New.
2680 (dummy_frame_id_eq): New function.
2681 (struct dummy_frame) <id>: Change its type to 'struct
2683 (dummy_frame_push): Add parameter ptid and save it in
2685 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2687 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2689 (lookup_dummy_frame): Change parameter type to 'struct
2690 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2691 instead of frame_id_eq.
2692 (dummy_frame_pop): Add parameter ptid. Callers updated.
2693 Update comments. Compose dummy_frame_id and pass it to
2695 (dummy_frame_discard): Add parameter ptid.
2696 (dummy_frame_sniffer): Compose dummy_frame_id and call
2697 dummy_frame_id_eq instead of frame_id_eq.
2698 (fprint_dummy_frames): Print ptid.
2699 * dummy-frame.h: Remove comments.
2700 (dummy_frame_push): Add ptid in declaration.
2701 (dummy_frame_pop, dummy_frame_discard): Likewise.
2703 2014-06-26 Tom Tromey <tromey@redhat.com>
2705 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2706 * command.h (error_no_arg): Update.
2708 2014-06-26 Tom Tromey <tromey@redhat.com>
2710 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2711 (do_show_command): Make "arg" const.
2712 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2714 2014-06-26 Tom Tromey <tromey@redhat.com>
2716 * record-full.c (record_full_get_bookmark): Make "args" const.
2717 (record_full_goto_bookmark): Make "raw_bookmark" const.
2718 * record.c (record_goto): New function.
2719 (cmd_record_goto): Use it. Now static.
2720 * record.h (record_goto): Declare.
2721 (cmd_record_goto): Remove declaration.
2722 * target-delegates.c: Rebuild.
2723 * target.h (struct target_ops) <to_get_bookmark,
2724 to_goto_bookmark>: Make parameter const.
2726 2014-06-26 Tom Tromey <tromey@redhat.com>
2728 * defs.h (generic_load): Update.
2729 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2730 * monitor.c (monitor_load): Make "args" const.
2731 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2732 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2734 (mips_load): Make "file" const.
2735 * remote-sim.c (gdbsim_load): Make "args" const.
2736 * remote.c (remote_load): Make "name" const.
2737 * symfile.c (generic_load): Make "args" const.
2738 * target-delegates.c: Rebuild.
2739 * target.c (target_load): Make "arg" const.
2740 (debug_to_load): Make "args" const.
2741 * target.h (struct target_ops) <to_load>: Make parameter const.
2742 (target_load): Update.
2744 2014-06-26 Tom Tromey <tromey@redhat.com>
2747 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2748 (dwarf2_physname, read_partial_die)
2749 (guess_partial_die_structure_name, fixup_partial_die)
2750 (guess_full_die_structure_name, anonymous_struct_prefix)
2751 (dwarf2_name): Use per-BFD obstack.
2753 2014-06-26 Yao Qi <yao@codesourcery.com>
2755 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2756 dummyframe and this_id into inner block below.
2758 2014-06-26 Yao Qi <yao@codesourcery.com>
2760 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2761 with "signal_pass[0]" in the initialization of signal_pass.
2763 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2765 * record-btrace.c (record_btrace_generating_corefile)
2766 (record_btrace_prepare_to_generate_core)
2767 (record_btrace_done_generating_core): New.
2768 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2769 (record_btrace_store_registers, record_btrace_prepare_to_store):
2770 Forward request when generating a core file.
2771 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2772 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2773 to_done_generating_core.
2775 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2777 * target.h (target_ops) <to_prepare_to_generate_core>
2778 <to_done_generating_core>: New.
2779 (target_prepare_to_generate_core, target_done_generating_core): New.
2780 * target.c (target_prepare_to_generate_core)
2781 (target_done_generating_core): New.
2782 * target-delegates.c: Regenerate.
2783 * gcore.c: (write_gcore_file): Rename to ...
2784 (write_gcore_file_1): ...this.
2785 (write_gcore_file): Call target_prepare_to_generate_core
2786 and target_done_generating_core.
2788 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2790 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2791 * gcore.c (write_gcore_file): Free memory returned from
2792 make_corefile_notes.
2793 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2794 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2796 2014-06-24 Yao Qi <yao@codesourcery.com>
2798 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2799 (arm_linux_init_abi): Set skip_trampoline_code with
2800 gdbarch_skip_trampoline_code instead of
2801 find_solib_trampoline_target.
2803 2014-06-24 Yao Qi <yao@codesourcery.com>
2805 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2806 arm_skip_bx_reg returns non-zero.
2808 2014-06-24 Yao Qi <yao@codesourcery.com>
2810 * arm-tdep.c (arm_skip_bx_reg): New function.
2811 (arm_skip_stub): Call arm_skip_bx_reg.
2813 2014-06-23 Don Breazeal <donb@codesourcery.com>
2815 * MAINTAINERS: Add myself as write-after-approval maintainer.
2817 2014-06-23 Pedro Alves <palves@redhat.com>
2819 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2820 DR_CONTROL before setting DR0..DR3.
2821 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2822 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2823 bits of DR_CONTROL related to the debug register slot being
2824 disabled. If all slots are vacant, clear local slowdown as well,
2825 and assert DR_CONTROL is 0.
2827 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2829 * python/lib/gdb/command/xmethods.py
2830 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2831 current progspace only if the string "progspace" matches LOCUS_RE.
2833 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2835 Fix --with-system-readline with readline-6.3 patch 5.
2836 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2837 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2840 2014-06-20 Tom Tromey <tromey@redhat.com>
2842 * dwarf2read.c (dw2_get_real_path): Use correct type in
2844 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2846 2014-06-20 Gary Benson <gbenson@redhat.com>
2848 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2849 * common/glibc_thread_db.h: Likewise.
2850 * common/i386-cpuid.h: Likewise.
2851 * common/i386-gcc-cpuid.h: Likewise.
2852 * common/linux-btrace.h: Likewise.
2853 * common/linux-osdata.h: Likewise.
2854 * common/linux-procfs.h: Likewise.
2855 * common/linux-ptrace.h: Likewise.
2856 * common/mips-linux-watch.h: Likewise.
2857 * common/linux-btrace.c: Moved to nat.
2858 * common/linux-osdata.c: Likewise.
2859 * common/linux-procfs.c: Likewise.
2860 * common/linux-ptrace.c: Likewise.
2861 * common/mips-linux-watch.c: Likewise.
2862 * nat/gdb_thread_db.h: Moved from common.
2863 * nat/glibc_thread_db.h: Likewise.
2864 * nat/i386-cpuid.h: Likewise.
2865 * nat/i386-gcc-cpuid.h: Likewise.
2866 * nat/linux-btrace.c: Likewise.
2867 * nat/linux-btrace.h: Likewise.
2868 * nat/linux-osdata.c: Likewise.
2869 * nat/linux-osdata.h: Likewise.
2870 * nat/linux-procfs.c: Likewise.
2871 * nat/linux-procfs.h: Likewise.
2872 * nat/linux-ptrace.c: Likewise.
2873 * nat/linux-ptrace.h: Likewise.
2874 * nat/mips-linux-watch.c: Likewise.
2875 * nat/mips-linux-watch.h: Likewise.
2876 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2877 (object file files): Reordered.
2878 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2879 of glibc_thread_db.h.
2881 2014-06-20 Gary Benson <gbenson@redhat.com>
2883 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2884 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2885 (i386_dr_low): Likewise.
2886 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2887 (i386_dr_low_set_addr): Likewise.
2888 (i386_dr_low_get_addr): Likewise.
2889 (i386_dr_low_can_set_control): Likewise.
2890 (i386_dr_low_set_control): Likewise.
2891 (i386_dr_low_get_control): Likewise.
2892 (i386_dr_low_get_status): Likewise.
2893 (i386_get_debug_register_length): Likewise.
2894 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2895 (i386_dr_low): Likewise.
2896 * nat/i386-dregs.c (i386-low.h): Remove include.
2897 (i386-nat.h): Likewise.
2898 (nat/i386-dregs.h): New include.
2899 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2900 (i386_dr_low_set_addr): Likewise.
2901 (i386_dr_low_get_addr): Likewise.
2902 (i386_dr_low_can_set_control): Likewise.
2903 (i386_dr_low_set_control): Likewise.
2904 (i386_dr_low_get_control): Likewise.
2905 (i386_dr_low_get_status): Likewise.
2906 (i386_get_debug_register_length): Likewise.
2907 (debug_hw_points): Likewise.
2909 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2911 * Makefile.in (SFILES): Add d-exp.y.
2912 (YYFILES): Add d-exp.c.
2913 (YYOBJ): Add d-exp.o.
2914 (local-maintainer-clean): Delete d-exp.c.
2915 * d-exp.y: New file.
2916 * d-lang.h (d_parse): New declaration.
2917 (d_error): New declaration.
2918 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2919 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2920 PREC_ORDER operators.
2921 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2923 2014-06-19 Yao Qi <yao@codesourcery.com>
2925 * gdbthread.h (any_running): Remove the declaration.
2926 * thread.c (any_running): Remove.
2928 2014-06-19 Yao Qi <yao@codesourcery.com>
2930 * gdbthread.h (struct thread_info) <state>: Change its type to
2931 'enum thread_state'. Update comments.
2933 2014-06-19 Pedro Alves <palves@redhat.com>
2935 * gdbthread.h (ALL_THREADS): Delete.
2936 (ALL_NON_EXITED_THREADS): New macro.
2937 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2938 instead of ALL_THREADS.
2939 * infrun.c (find_thread_needs_step_over)
2940 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2941 instead of ALL_THREADS.
2942 * record-btrace.c (record_btrace_open)
2943 (record_btrace_stop_recording, record_btrace_close)
2944 (record_btrace_is_replaying, record_btrace_resume)
2945 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2946 * remote.c (append_pending_thread_resumptions): Likewise.
2947 * thread.c (thread_apply_all_command): Likewise.
2949 2014-06-19 Gary Benson <gbenson@redhat.com>
2951 * i386-nat.c (i386_stopped_by_watchpoint):
2952 Use i386_dr_stopped_by_watchpoint.
2953 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2954 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2956 2014-06-19 Gary Benson <gbenson@redhat.com>
2958 * nat/i386-dregs.c: New file.
2959 * Makefile.in (i386-dregs.o): New rule.
2960 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2961 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2962 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2963 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2964 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2965 * config/i386/go32.mh (NATDEPFILES): Likewise.
2966 * config/i386/linux.mh (NATDEPFILES): Likewise.
2967 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2968 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2969 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2970 * i386-nat.h (debug_hw_points): New declaration.
2971 * i386-nat.c (breakpoint.h): Remove include.
2972 (command.h): Likewise.
2973 (target.h): Likewise.
2974 (gdb_assert.h): Likewise.
2975 (debug_hw_points): Made nonstatic.
2976 (debug_printf): Now in i386-dregs.c.
2977 (TARGET_HAS_DR_LEN_8): Likewise.
2978 (DR_CONTROL_SHIFT): Likewise.
2979 (DR_CONTROL_SIZE): Likewise.
2980 (DR_RW_EXECUTE): Likewise.
2981 (DR_RW_WRITE): Likewise.
2982 (DR_RW_READ): Likewise.
2983 (DR_RW_IORW): Likewise.
2984 (DR_LEN_1): Likewise.
2985 (DR_LEN_2): Likewise.
2986 (DR_LEN_4): Likewise.
2987 (DR_LEN_8): Likewise.
2988 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2989 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2990 (DR_ENABLE_SIZE): Likewise.
2991 (DR_LOCAL_SLOWDOWN): Likewise.
2992 (DR_GLOBAL_SLOWDOWN): Likewise.
2993 (DR_CONTROL_RESERVED): Likewise.
2994 (I386_DR_CONTROL_MASK): Likewise.
2995 (I386_DR_VACANT): Likewise.
2996 (I386_DR_LOCAL_ENABLE): Likewise.
2997 (I386_DR_GLOBAL_ENABLE): Likewise.
2998 (I386_DR_DISABLE): Likewise.
2999 (I386_DR_SET_RW_LEN): Likewise.
3000 (I386_DR_GET_RW_LEN): Likewise.
3001 (I386_DR_WATCH_HIT): Likewise.
3002 (i386_wp_op_t): Likewise.
3003 (i386_show_dr): Likewise.
3004 (i386_length_and_rw_bits): Likewise.
3005 (i386_insert_aligned_watchpoint): Likewise.
3006 (i386_remove_aligned_watchpoint): Likewise.
3007 (i386_handle_nonaligned_watchpoint): Likewise.
3008 (i386_update_inferior_debug_regs): Likewise.
3009 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3010 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3011 (i386_region_ok_for_watchpoint):
3012 Use i386_dr_region_ok_for_watchpoint.
3013 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3015 2014-06-19 Gary Benson <gbenson@redhat.com>
3017 * i386-nat.c (i386_insert_hw_breakpoint): Use
3018 i386_insert_watchpoint.
3019 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3021 2014-06-19 Gary Benson <gbenson@redhat.com>
3023 * i386-nat.c (i386_dr_show): Renamed to
3024 i386_show_dr and made static. All uses updated.
3025 (i386_dr_length_and_rw_bits): Renamed to
3026 i386_length_and_rw_bits and made static.
3028 (i386_dr_insert_aligned_watchpoint): Renamed to
3029 i386_insert_aligned_watchpoint and made static.
3031 (i386_dr_remove_aligned_watchpoint): Renamed to
3032 i386_remove_aligned_watchpoint and made static.
3034 (i386_dr_update_inferior_debug_regs): Renamed to
3035 i386_update_inferior_debug_regs and made static.
3037 * nat/i386-dregs.h (i386_dr_show): Removed.
3038 (i386_dr_length_and_rw_bits): Likewise.
3039 (i386_dr_insert_aligned_watchpoint): Likewise.
3040 (i386_dr_remove_aligned_watchpoint): Likewise.
3041 (i386_dr_update_inferior_debug_regs): Likewise.
3043 2014-06-19 Gary Benson <gbenson@redhat.com>
3045 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3046 * configure: Regenerate.
3047 * config.in: Likewise.
3048 * main.c (signal.h): New include.
3049 (setup_alternate_signal_stack): New function.
3050 (captured_main): Call the above.
3051 * cp-support.c (signal.h): New include.
3052 (catch_demangler_crashes): New flag.
3053 (SIGJMP_BUF): New define.
3054 (SIGSETJMP): Likewise.
3055 (SIGLONGJMP): Likewise.
3056 (gdb_demangle_jmp_buf): New static global.
3057 (gdb_demangle_attempt_core_dump): Likewise.
3058 (gdb_demangle_signal_handler): New function.
3059 (gdb_demangle): If catch_demangler_crashes is set, install the
3060 above signal handler before calling bfd_demangle, and restore
3061 the original signal handler afterwards. Display the offending
3062 symbol and call demangler_warning the first time a segmentation
3064 (_initialize_cp_support): New maint set/show command.
3066 2014-06-19 Gary Benson <gbenson@redhat.com>
3068 * utils.h (resource_limit_kind): New enum.
3069 (can_dump_core): New declaration.
3070 (warn_cant_dump_core): Likewise.
3071 (dump_core): Likewise.
3072 * utils.c (dump_core): Made nonstatic. Added new
3073 parameter "limit_kind".
3074 (can_dump_core): Made nonstatic. Moved printing code to...
3075 (warn_cant_dump_core): New function.
3076 (can_dump_core_warn): Likewise.
3077 (internal_vproblem): Replace calls to can_dump_core with
3078 calls to can_dump_core_warn. Supply new argument to each.
3080 2014-06-19 Gary Benson <gbenson@redhat.com>
3082 * utils.h (demangler_vwarning): New declaration.
3083 (demangler_warning): Likewise.
3084 * utils.c (struct internal_problem)
3085 <user_settable_should_quit>: New field.
3086 <user_settable_should_dump_core>: Likewise
3087 (internal_error_problem): Add values for above new fields.
3088 (internal_warning_problem): Likewise.
3089 (demangler_warning_problem): New static global.
3090 (demangler_vwarning): New function.
3091 (demangler_warning): Likewise.
3092 (add_internal_problem_command): Selectively add commands.
3093 (_initialize_utils): New internal problem command.
3094 * maint.c (maintenance_demangler_warning): New function.
3095 (_initialize_maint_cmds): New command.
3097 2014-06-18 Tom Tromey <tromey@redhat.com>
3099 * f-valprint.c (info_common_command_for_block): Update.
3100 * symtab.h (struct general_symbol_info) <common_block>: Now
3103 2014-06-18 Tom Tromey <tromey@redhat.com>
3105 * symtab.h (struct symtab) <blockvector>: Now const.
3106 * ada-lang.c (ada_add_global_exceptions): Update.
3107 * buildsym.c (augment_type_symtab): Update.
3108 * dwarf2read.c (dw2_lookup_symbol): Update.
3109 * jit.c (finalize_symtab): Update.
3110 * jv-lang.c (add_class_symtab_symbol): Update.
3111 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3113 * objfiles.c (objfile_relocate1): Update.
3114 * psymtab.c (lookup_symbol_aux_psymtabs)
3115 (maintenance_check_psymtabs): Update.
3116 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3118 * spu-tdep.c (spu_catch_start): Update.
3119 * symmisc.c (dump_symtab_1): Update.
3120 * symtab.c (lookup_global_symbol_from_objfile)
3121 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3122 (basic_lookup_transparent_type_quick)
3123 (basic_lookup_transparent_type, find_pc_sect_symtab)
3124 (find_pc_sect_line, search_symbols): Update.
3125 * block.c (find_block_in_blockvector): Make "bl" const.
3126 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3128 (blockvector_contains_pc): Make "bv" const.
3129 (block_for_pc_sect): Update.
3130 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3131 (blockvector_contains_pc): Update.
3132 * breakpoint.c (resolve_sal_pc): Update.
3133 * inline-frame.c (block_starting_point_at): Update.
3135 2014-06-18 Tom Tromey <tromey@redhat.com>
3137 * completer.c (complete_line): Make "line_buffer" const.
3138 * completer.h (complete_line): Update.
3140 2014-06-18 Tom Tromey <tromey@redhat.com>
3142 * symtab.c (add_macro_name): Remove unneeded cast.
3144 2014-06-18 Tom Tromey <tromey@redhat.com>
3146 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3147 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3149 2014-06-18 Tom Tromey <tromey@redhat.com>
3151 * probe.c (info_probes_for_ops): Make "arg" const.
3152 * probe.h (info_probes_for_ops): Update.
3154 2014-06-18 Tom Tromey <tromey@redhat.com>
3156 * varobj.c (varobj_create): Update.
3157 * valops.c (value_of_this): Update.
3158 * tracepoint.c (add_local_symbols, scope_info): Update.
3159 * symtab.h (struct general_symbol_info) <block>: Now const.
3160 * symtab.c (skip_prologue_sal)
3161 (default_make_symbol_completion_list_break_on)
3162 (skip_prologue_using_sal): Update.
3163 * stack.h (iterate_over_block_locals)
3164 (iterate_over_block_local_vars): Update.
3165 * stack.c (print_frame_args): Update.
3166 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3168 (get_selected_block): Make return type const.
3169 * python/py-frame.c (frapy_block): Update.
3170 * python/py-block.c (gdbpy_block_for_pc): Update.
3171 * p-exp.y (%union) <bval>: Now const.
3172 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3173 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3174 * m2-exp.y (%union) <bval>: Now const.
3175 * linespec.c (get_current_search_block): Make return type const.
3176 (create_sals_line_offset, find_label_symbols): Update.
3177 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3179 (block_starting_point_at): Make "block" const.
3180 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3181 (check_exception_resume): Update.
3182 * guile/scm-frame.c (gdbscm_frame_block): Update.
3183 * guile/scm-block.c (gdbscm_lookup_block): Update.
3184 * frame.h (get_frame_block): Update.
3185 (get_selected_block): Make return type const.
3186 * frame.c (frame_id_inner): Update.
3187 * f-valprint.c (info_common_command_for_block)
3188 (info_common_command): Update.
3189 * dwarf2loc.c (dwarf2_find_location_expression)
3190 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3191 (locexpr_describe_location_piece): Update.
3192 * c-exp.y (%union) <bval>: Now const.
3193 * breakpoint.c (resolve_sal_pc): Update.
3194 * blockframe.c (get_frame_block):Make return type const.
3195 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3196 (block_innermost_frame): Update.
3197 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3198 (block_for_pc, block_for_pc_sect): Update.
3199 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3201 (block_for_pc_sect, block_for_pc): Make return type const.
3202 * ax-gdb.c (gen_expr): Update.
3203 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3204 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3205 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3206 (ada_read_var_value): Update.
3207 * ada-exp.y (struct name_info) <block>: Now const.
3209 (block_lookup): Constify.
3211 2014-06-18 Gary Benson <gbenson@redhat.com>
3213 * nat/i386-dregs.h: New file.
3214 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3215 * i386-nat.h (i386-dregs.h): New include.
3216 (DR_FIRSTADDR): Now in i386-dregs.h.
3217 (DR_LASTADDR): Likewise.
3218 (DR_NADDR): Likewise.
3219 (DR_STATUS): Likewise.
3220 (DR_CONTROL): Likewise.
3221 (i386_debug_reg_state): Likewise.
3222 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3224 2014-06-18 Don Breazeal <donb@codesourcery.com>
3226 * breakpoint.c (set_longjmp_breakpoint): Call
3227 momentary_breakpoint_from_master with additional argument.
3228 (set_longjmp_breakpoint_for_call_dummy): Call
3229 momentary_breakpoint_from_master with additional argument.
3230 (set_std_terminate_breakpoint): Call
3231 momentary_breakpoint_from_master with additional argument.
3232 (momentary_breakpoint_from_master): Add argument to function
3233 definition and use it to initialize structure member flag.
3234 (clone_momentary_breakpoint): Call
3235 momentary_breakpoint_from_master with additional argument.
3236 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3237 member flags set in momentary_breakpoint_from_master.
3239 2014-06-18 Gary Benson <gbenson@redhat.com>
3241 * i386-nat.c (i386_show_dr): Renamed to
3242 i386_dr_show and made nonstatic. All uses updated.
3243 (i386_length_and_rw_bits): Renamed to
3244 i386_dr_length_and_rw_bits and made nonstatic.
3246 (i386_insert_aligned_watchpoint): Renamed to
3247 i386_dr_insert_aligned_watchpoint and made nonstatic.
3249 (i386_remove_aligned_watchpoint): Renamed to
3250 i386_dr_remove_aligned_watchpoint and made nonstatic.
3252 (i386_update_inferior_debug_regs): Renamed to
3253 i386_dr_update_inferior_debug_regs and made nonstatic.
3256 2014-06-18 Gary Benson <gbenson@redhat.com>
3258 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3259 (i386_dr_low_can_set_control): Likewise.
3260 (i386_dr_low_set_addr): Likewise.
3261 (i386_dr_low_set_control): Likewise.
3262 (i386_dr_low_get_addr): Likewise.
3263 (i386_dr_low_get_status): Likewise.
3264 (i386_dr_low_get_control): Likewise.
3265 (i386_insert_aligned_watchpoint): Use new macros.
3266 (i386_update_inferior_debug_regs): Likewise.
3267 (i386_stopped_data_address): Likewise.
3269 2014-06-18 Gary Benson <gbenson@redhat.com>
3271 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3272 New parameter. All uses updated.
3274 2014-06-18 Gary Benson <gbenson@redhat.com>
3276 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3279 2014-06-18 Gary Benson <gbenson@redhat.com>
3281 * i386-nat.c (debug_printf): New macro.
3282 (i386_get_debug_register_length): Likewise.
3283 (TARGET_HAS_DR_LEN_8): Use above macro.
3284 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3285 and printf_unfiltered. Use phex to format values.
3287 2014-06-18 Gary Benson <gbenson@redhat.com>
3289 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3292 2014-06-18 Gary Benson <gbenson@redhat.com>
3294 * i386-nat.c: Comment changes.
3296 2014-06-18 Gary Benson <gbenson@redhat.com>
3298 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3300 2014-06-18 Gary Benson <gbenson@redhat.com>
3302 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3303 (i386_insert_aligned_watchpoint): Likewise.
3304 (i386_remove_aligned_watchpoint): Likewise.
3305 (i386_handle_nonaligned_watchpoint): Likewise.
3307 2014-06-18 Gary Benson <gbenson@redhat.com>
3309 * i386-nat.c: Whitespace changes.
3311 2014-06-17 Samuel Bronson <naesten@gmail.com>
3313 * MAINTAINERS: Update Roland McGrath's email address.
3314 Thanks to Sergio Durigan Junior for pointing out that he left
3315 Red Hat a while ago, and giving me a current address.
3317 2014-06-17 Tom Tromey <tromey@redhat.com>
3319 * utils.h (savestring): Remove declaration.
3321 2014-06-17 Tom Tromey <tromey@redhat.com>
3323 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3325 2014-06-16 Keith Seitz <keiths@redhat.com>
3328 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3329 to update the varobj if inferior_ptid is null_ptid.
3331 2014-06-16 Tom Tromey <tromey@redhat.com>
3333 * target.h (struct target_ops) <to_info_proc>: Make parameter
3335 (target_info_proc): Update.
3336 * target.c (target_info_proc): Make "args" const.
3337 * procfs.c (procfs_info_proc): Update.
3338 * linux-tdep.c (linux_info_proc): Update.
3339 (linux_core_info_proc_mappings): Make "args" const.
3340 (linux_core_info_proc): Update.
3341 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3342 * gdbarch.c: Rebuild.
3343 * gdbarch.h: Rebuild.
3344 * corelow.c (core_info_proc): Update.
3346 2014-06-16 Tom Tromey <tromey@redhat.com>
3348 * target.h (struct target_ops) <to_disconnect>: Make parameter
3350 (target_disconnect): Update.
3351 * target.c (target_disconnect): Make "args" const.
3352 * target-delegates.c: Rebuild.
3353 * remote.c (remote_disconnect): Update.
3354 * record.h (record_disconnect): Update.
3355 * record.c (record_disconnect): Update.
3356 * inf-child.c (inf_child_disconnect): Update.
3358 2014-06-16 Tom Tromey <tromey@redhat.com>
3360 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3361 * target.c (debug_to_rcmd, default_rcmd): Update.
3362 * target-delegates.c: Rebuild.
3363 * remote.c (remote_rcmd): Update.
3364 * monitor.c (monitor_rcmd): Update.
3366 2014-06-16 Pedro Alves <palves@redhat.com>
3368 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3369 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3370 have OBJF_SHARED set.
3371 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3372 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3373 instead of OBJF_USERLOADED.
3374 * objfiles.h (OBJF_SHARED): Update comment.
3375 (userloaded_objfile_contains_address_p): Rename to ...
3376 (shared_objfile_contains_address_p): ... this, and update
3378 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3380 (remove_symbol_file_command): Skip objfiles that don't have
3383 2014-06-16 Tom Tromey <tromey@redhat.com>
3385 * minsyms.h (prim_record_minimal_symbol)
3386 (prim_record_minimal_symbol_and_info): Update comments.
3388 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3390 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3391 or --without-guile, according to how GDB was built.
3393 2014-06-13 Tom Tromey <tromey@redhat.com>
3395 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3397 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3399 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3401 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3402 help_list.Pass all_commands, not -1, to help_list.
3403 * cli/cli-dump.c (dump_command, append_command)
3404 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3405 (binary_dump_command, binary_append_command): Pass all_commands,
3406 not -1, to help_list.
3407 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3409 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3411 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3413 * top.c (set_history): Pass all_commands, not -1, to help_list.
3414 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3415 all_commands, not -1, to help_list.
3416 * symfile.c (overlay_command): Pass all_commands, not -1, to
3418 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3420 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3422 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3424 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3425 not -1, to help_list.
3426 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3427 not -1, to help_list.
3428 * maint.c (maintenance_command, maintenance_info_command)
3429 (maintenance_print_command, maintenance_set_cmd): Pass
3430 all_commands, not -1, to help_list.
3431 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3433 * language.c (set_check): Pass all_commands, not -1, to help_list.
3434 * infcmd.c (unset_command): Pass all_commands, not -1, to
3436 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3438 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3440 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3442 * breakpoint.c (save_command): Pass all_commands, not -1, to
3444 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3445 all_commands, not -1, to help_list.
3447 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3449 * regcache.c (struct register_to_invalidate): New structure.
3450 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3452 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3454 2014-06-12 Yao Qi <yao@codesourcery.com>
3456 * varobj.c (varobj_get_num_children): Call
3457 varobj_is_dynamic_p.
3458 (varobj_list_children): Likewise.
3459 (varobj_update): Likewise. Update comments.
3461 2014-06-12 Yao Qi <yao@codesourcery.com>
3463 * varobj.c (varobj_pretty_printed_p): Rename to ...
3464 (varobj_is_dynamic_p): ... this. New function.
3465 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3466 (varobj_is_dynamic_p): Declare.
3467 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3468 (mi_print_value_p, varobj_update_one): Likewise.
3470 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3471 Yao Qi <yao@codesourcery.com>
3473 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3474 (varobj_get_iterator): Wrap up code for pretty-printer by
3475 "#if HAVE_PYTHON" and "#endif".
3476 (update_dynamic_varobj_children): Likewise.
3478 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3479 Yao Qi <yao@codesourcery.com>
3481 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3482 gdb_python_initialized is false. Move some code from varobj.c.
3483 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3484 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3485 (struct varobj_item): Moved to varobj-iter.h".
3486 (varobj_clear_saved_item): New function.
3487 (update_dynamic_varobj_children): Move python-related code to
3489 (free_variable): Call varobj_clear_saved_item and
3492 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3493 Yao Qi <yao@codesourcery.com>
3495 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3496 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3497 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3498 (py-varobj.o): New rule.
3499 * python/py-varobj.c: New file.
3500 * python/python-internal.h (py_varobj_get_iterator): Declare.
3501 * varobj-iter.h: New file.
3502 * varobj.c: Include "varobj-iter.h"
3503 (struct varobj) <child_iter>: Change its type from "PyObject *"
3504 to "struct varobj_iter *".
3505 <saved_item>: Likewise.
3506 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3507 [HAVE_PYTHON] (varobj_get_iterator): New function.
3508 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3509 python-specific code to python/py-varobj.c.
3510 (install_visualizer): Call varobj_iter_delete instead of
3512 * varobj.h (varobj_ensure_python_env): Declare.
3514 2014-06-12 Yao Qi <yao@codesourcery.com>
3516 * varobj.c (struct varobj_item): New structure.
3517 (create_child_with_value): Update declaration.
3518 (varobj_add_child): Replace arguments 'name' and 'value' with
3519 'item'. All callers updated.
3520 (install_dynamic_child): Likewise.
3521 (update_dynamic_varobj_children): Likewise.
3522 (varobj_add_child): Likewise.
3523 (create_child_with_value): Likewise.
3525 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3527 * NEWS: Create a new section for the next release branch.
3528 Rename the section of the current branch, now that it has
3531 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3533 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3534 * version.in: Bump version to 7.8.50.DATE-cvs.
3536 2014-06-11 Pedro Alves <palves@redhat.com>
3539 * ser-mingw.c (net_windows_socket_check_pending): New function.
3540 (net_windows_select_thread): Ignore spurious wakeups. Use
3541 net_windows_socket_check_pending.
3542 (net_windows_wait_handle): Check for pending events with
3543 ioctlsocket, through net_windows_socket_check_pending, instead of
3544 checking the socket's event.
3546 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3548 * python/python-internal.h (gdb_PyObject_GetAttrString)
3549 (gdb_PyObject_HasAttrString): New inline function definitions.
3550 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3551 char * of the second argument to PyObject_GetAttrString.
3553 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3555 * serial.c (serial_write): Fix index of character to be printed
3556 in call to serial_logchar when serial debug traces are enabled.
3558 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3560 * gdbtypes (resolve_dynamic_range): Add function description.
3562 2014-06-09 Pedro Alves <palves@redhat.com>
3564 * linux-nat.c (linux_child_follow_fork): Initialize status with
3565 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3566 inner block. Only pass the signal to PTRACE_DETACH if in pass
3569 2014-06-09 Gary Benson <gbenson@redhat.com>
3571 * common/signals.c (gdb_signal_from_host): Reorder to separate
3572 the always-available ANSI-standard signals from the signals that
3574 (do_gdb_signal_to_host): Likewise.
3575 * proc-events.c (signal_table): Likewise.
3577 2014-06-08 Hui Zhu <hui@codesourcery.com>
3579 * common/linux-ptrace.c (linux_disable_event_reporting): New
3581 * common/linux-ptrace.h (linux_disable_event_reporting): New
3583 * linux-nat.c (linux_child_follow_fork): Do a single step before
3586 2014-06-07 Keith Seitz <keiths@redhat.com>
3590 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3591 from symbol_matches_domain in symtab.c. All local callers
3592 of symbol_matches_domain updated.
3593 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3594 search STRUCT_DOMAIN.
3595 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3596 independently. standard_lookup will do that automatically.
3597 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3598 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3599 (cp_lookup_symbol_in_namespace): Likewise.
3600 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3601 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3602 may return a STRUCT_DOMAIN match.
3603 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3604 * cp-support.c: Include language.h.
3605 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3607 * psymtab.c (match_partial_symbol): Compare the requested
3608 domain with the symbol's domain directly.
3609 (lookup_partial_symbol): Likewise.
3610 * symtab.c (lookup_symbol_in_language): Explain when/why
3611 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3612 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3613 appropriate languages.
3614 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3615 and moved to ada-lang.c
3616 (lookup_block_symbol): Explain that this function only returns
3617 symbol matching the requested DOMAIN.
3618 Compare the requested domain with the symbol's domain directly.
3619 (iterate_over_symbols): Compare the requested domain with the
3620 symbol's domain directly.
3621 * symtab.h (symbol_matches_domain): Remove.
3623 2014-06-06 Doug Evans <xdje42@gmail.com>
3625 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3626 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3627 (gdbscm_guile_version_is_at_least): Declare.
3628 (gdbscm_scm_string_to_int): Declare.
3629 * guile/guile.c (gdbscm_guile_major_version): New global.
3630 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3631 (guile_datadir): New static global.
3632 (gdbscm_guile_data_directory): New function.
3633 (initialize_scheme_side): Update.
3634 (misc_guile_functions): Add guile-data-directory.
3635 (initialize_gdb_module): Fetch guile version number.
3636 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3637 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3638 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3639 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3641 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3642 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3643 * guile/scm-value.c (gdbscm_value_to_string): Only call
3644 scm_port_conversion_strategy if Guile version >= 2.0.6.
3646 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3648 * main.c (print_gdb_help): Add -q and --silent.
3650 2014-06-06 Gary Benson <gbenson@redhat.com>
3652 * common/signals.c: Remove preprocessor conditionals for
3653 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3654 SIGSEGV and SIGTERM.
3655 * proc-events.c: Likewise.
3657 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3659 * symfile.c (symfile_free_objfile): Remove restriction to
3661 * symfile-mem.c (symbol_file_add_from_memory): Call
3662 add_target_sections_of_objfile.
3664 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3666 * guile/scm-value.c (gdbscm_history_append_x): Use
3667 'vlscm_get_value_smob_arg_unsafe' instead of
3668 'vlscm_scm_to_value'.
3670 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3673 * utils.c (printchar): Don't escape at all if quoter is NUL.
3674 Update function documentation to clarify effect of parameter
3676 * remote.c (escape_buffer): Pass '\\' as the quoter to
3677 fputstrn_unfiltered.
3678 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3679 generate the output.
3680 (mi_solib_unloaded): Same.
3682 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3684 * development.sh: Delete.
3685 * Makefile.in (config.status): Adjust dependency on development.sh.
3686 * configure.ac: Adjust development.sh source call.
3687 * configure: Regenerate.
3689 2014-06-04 Doug Evans <xdje42@gmail.com>
3691 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3692 is_scheme_bkpt, spec.
3693 (bpscm_make_breakpoint_smob): Initialize new members.
3694 (gdbscm_create_breakpoint_x): Split into two ...
3695 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3696 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3697 (scheme_function breakpoint_functions): Update.
3698 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3699 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3700 register-breakpoint!.
3702 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3705 * mem-break.c (z_type_supported): Return zero if
3706 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3708 2014-06-04 Tom Tromey <tromey@redhat.com>
3710 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3711 value_from_contents_and_address_unresolved.
3712 (ada_template_to_fixed_record_type_1): Likewise.
3713 (ada_which_variant_applies): Likewise.
3714 * value.h (value_from_contents_and_address_unresolved): Declare.
3715 * value.c (value_from_contents_and_address_unresolved): New
3717 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3718 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3719 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3721 2014-06-04 Tom Tromey <tromey@redhat.com>
3723 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3725 2014-06-04 Tom Tromey <tromey@redhat.com>
3727 * procfs.c (procfs_attach): Make "args" const.
3728 * windows-nat.c (windows_attach): Make "args" const.
3729 * nto-procfs.c (procfs_attach): Make "args" const.
3730 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3731 * go32-nat.c (go32_attach): Make "args" const.
3732 * gnu-nat.c (gnu_attach): Make "args" const.
3733 * darwin-nat.c (darwin_attach): Make "args" const.
3734 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3735 * linux-nat.c (linux_nat_attach): Make "args" const.
3736 * remote.c (extended_remote_attach_1, extended_remote_attach):
3738 * target.h (struct target_ops) <to_attach>: Make "args" const.
3739 (find_default_attach): Likewise.
3740 * utils.c (parse_pid_to_attach): Make "args" const.
3741 * utils.h (parse_pid_to_attach): Update.
3743 2014-06-04 Tom Tromey <tromey@redhat.com>
3745 * target-delegates.c: Rebuild.
3746 * target.c (default_thread_address_space): New function.
3747 (target_thread_address_space): Simplify.
3748 * target.h (struct target_ops) <to_thread_address_space>: Add
3749 TARGET_DEFAULT_FUNC.
3751 2014-06-04 Doug Evans <xdje42@gmail.com>
3753 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3755 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3757 * record-btrace.c: Include event-loop.h and inf-loop.h.
3758 (record_btrace_resume_exec_dir)
3759 (record_btrace_async_inferior_event_handler)
3760 (record_btrace_handle_async_inferior_event): New.
3761 (record_btrace_open): Create async event handler.
3762 (record_btrace_close): Delete async event handler.
3763 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3764 Mark async event handler.
3765 (record_btrace_execution_direction): New.
3766 (init_record_btrace_ops): Initialize to_execution_direction.
3768 2014-06-03 Doug Evans <xdje42@gmail.com>
3770 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3771 (gdbscm_make_parameter): Ditto.
3773 2014-06-03 Doug Evans <dje@google.com>
3775 * exec.c (exec_close_1): Call clear_section_table instead of
3776 resize_section_table.
3777 (clear_section_table): New function.
3778 (resize_section_table): Make static. Rename arg num_added to
3780 * exec.h (clear_section_table): Declare.
3781 (resize_section_table): Delete.
3782 * progspace.c (release_program_space): Call clear_section_table
3783 instead of resize_section_table.
3785 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3787 * NEWS (Python Scripting): Add entry about the new xmethods
3790 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3792 * python/py-xmethods.c: New file.
3793 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3794 (objfpy_dealloc): XDECREF on the new xmethods field.
3795 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3797 (objfpy_get_xmethods): New function.
3798 (objfile_getset): New entry 'xmethods'.
3799 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3800 (pspy_dealloc): XDECREF on the new xmethods field.
3801 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3803 (pspy_get_xmethods): New function.
3804 (pspace_getset): New entry 'xmethods'.
3805 * python/python-internal.h: Add declarations for new functions.
3806 * python/python.c (_initialize_python): Invoke
3807 gdbpy_initialize_xmethods.
3808 * python/lib/gdb/__init__.py (xmethods): New
3810 * python/lib/gdb/xmethod.py: New file.
3811 * python/lib/gdb/command/xmethods.py: New file.
3813 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3815 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3816 best match method returned by find_overload_match is an xmethod.
3817 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3818 the best matching operator returned by find_overload_match is an
3820 * valops.c: #include "extension.h".
3821 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3822 Return void. The list of matching source methods is returned in
3823 "fn_list" and a vector of matching debug method workers is
3824 returned in "xm_worker_vec". Update all callers.
3825 (value_find_oload_method_list): Likewise.
3826 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3827 non-NULL, then the index of the best matching method in this
3828 vector is returned. Update all callers.
3829 (find_overload_match): Include xmethods while performing overload
3832 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3834 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3835 * extension-priv.h (struct extension_language_ops): Add the
3837 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3838 get_matching_xmethod_workers, get_xmethod_argtypes,
3839 invoke_xmethod, free_xmethod_worker,
3840 free_xmethod_worker_vec): New functions.
3841 * extension.h: #include "common/vec.h".
3842 New function declarations.
3843 (struct xmethod_worker): New struct.
3844 (VEC (xmethod_worker_ptr)): New vector type.
3845 (xmethod_worker_ptr): New typedef.
3846 (xmethod_worker_vec): Likewise.
3847 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3849 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3850 (struct builtin_type): New field "xmethod".
3851 * valarith.c (value_ptradd): Assert that the value argument is not
3853 * valops.c (value_must_coerce_to_target): Return 0 for
3854 lval_xcallable values.
3855 * value.c (struct value): New field XM_WORKER in the field
3857 (value_address, value_raw_address): Return 0 for lval_xcallable
3859 (set_value_address): Assert that the value is not an
3861 (value_free): Free the associated xmethod worker when freeing
3862 lval_xcallable values.
3863 (set_value_component_location): Assert that the WHOLE value is not
3865 (value_of_xmethod, call_xmethod): New functions.
3866 * value.h: Declare "struct xmethod_worker".
3867 Declare new functions value_of_xmethod, call_xmethod.
3869 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3870 Pedro Alves <palves@redhat.com>
3872 PR breakpoints/17000
3873 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3874 New function, extracted from software_breakpoint_inserted_here_p.
3875 (software_breakpoint_inserted_here_p): Replace factored out code
3876 by call to find_non_raw_software_breakpoint_inserted_here.
3877 (bp_target_info_copy_insertion_state): New function.
3878 (bkpt_insert_location): Handle the case of a single-step
3879 breakpoint already inserted at the same address.
3880 (bkpt_remove_location): Handle the case of a single-step
3881 breakpoint still inserted at the same address.
3882 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3883 breakpoint already inserted at the same address.
3884 (deprecated_remove_raw_breakpoint): Handle the case of a
3885 non-raw breakpoint still inserted at the same address.
3886 (find_single_step_breakpoint): New function, extracted from
3887 single_step_breakpoint_inserted_here_p.
3888 (find_single_step_breakpoint): New function,
3889 factored out from single_step_breakpoint_inserted_here_p.
3890 (single_step_breakpoint_inserted_here_p): Reimplement.
3892 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3894 Pushed by Joel Brobecker <brobecker@adacore.com>
3895 * source.c (show_substitute_path_command): Fix display of matching
3898 2014-06-03 Gary Benson <gbenson@redhat.com>
3900 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3902 2014-06-02 Doug Evans <xdje42@gmail.com>
3904 Add parameter support for Guile.
3905 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3906 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3907 (scm-param.o): New rule.
3908 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3909 (gdbscm_misc_error): Declare.
3910 (gdbscm_canonicalize_command_name): Declare.
3911 (gdbscm_scm_to_host_string): Declare.
3912 (gdbscm_scm_from_host_string): Declare.
3913 (gdbscm_initialize_parameters): Declare.
3914 * guile/guile.c (initialize_gdb_module): Call
3915 gdbscm_initialize_parameters.
3916 * guile/lib/gdb.scm: Export parameter symbols.
3917 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3918 cmdscm_canonicalize_name and made public. All callers updated.
3919 * guile/scm-exception.c (gdbscm_misc_error): New function.
3920 * guile/scm-param.c: New file.
3921 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3922 (gdbscm_scm_to_host_string): New function.
3923 (gdbscm_scm_from_host_string): New function.
3924 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3926 2014-06-02 Doug Evans <xdje42@gmail.com>
3928 Add command support for Guile.
3929 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3930 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3931 (scm-cmd.o): New rule.
3932 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3933 (gdbscm_user_error_p): Declare.
3934 (gdbscm_parse_command_name): Declare.
3935 (gdbscm_valid_command_class_p): Declare.
3936 (gdbscm_initialize_commands): Declare.
3937 * guile/guile.c (initialize_gdb_module): Call
3938 gdbscm_initialize_commands.
3939 * guile/lib/gdb.scm: Export command symbols.
3940 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3941 (throw-user-error): New function.
3942 * guile/scm-cmd.c: New file.
3943 * guile/scm-exception.c (user_error_symbol): New static global.
3944 (gdbscm_user_error_p): New function.
3945 (gdbscm_initialize_exceptions): Set user_error_symbol.
3946 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3948 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3950 * top.c (command_loop): Handle comments here...
3951 (command_line_input): ... not here.
3953 2014-06-02 Doug Evans <xdje42@gmail.com>
3955 Add progspace support for Guile.
3956 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3957 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3958 (scm-progspace.o): New rule.
3959 * guile/guile-internal.h (pspace_smob): New typedef.
3960 (psscm_pspace_smob_pretty_printers): Declare.
3961 (psscm_pspace_smob_from_pspace): Declare.
3962 (psscm_scm_from_pspace): Declare.
3963 * guile/guile.c (initialize_gdb_module): Call
3964 gdbscm_initialize_pspaces.
3965 * guile/lib/gdb.scm: Export progspace symbols.
3966 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3968 (append-pretty-printer!): Ditto.
3969 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3971 * guile/scm-progspace.c: New file.
3973 2014-06-03 Alan Modra <amodra@gmail.com>
3975 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3976 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3978 2014-06-02 Doug Evans <dje@google.com>
3980 Add support for skeletonless type units.
3981 * dwarf2read.c (struct dwarf2_per_objfile): New member
3982 n_allocated_type_units.
3983 (struct dwarf2_per_objfile) <tu_stats>: New member
3984 nr_all_type_units_reallocs.
3985 (create_signatured_type_table_from_index): Initialize
3986 n_allocated_type_units
3987 (create_all_type_units): Ditto.
3988 (add_type_unit): Move up in file. New arg slot.
3989 All callers updated. Increase space for all_type_units more
3991 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3992 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3993 (lookup_dwp_signatured_type): Ditto.
3994 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3995 All callers updated.
3996 (build_type_psymtabs_1): Leave type_unit_groups as
3997 NULL if no TUs present.
3998 (print_tu_stats): New function.
3999 (process_skeletonless_type_unit): New function.
4000 (process_dwo_file_for_skeletonless_type_units): New
4002 (process_skeletonless_type_units): New function.
4003 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4004 Call print tu_stats if debugging enabled.
4006 2014-06-02 Pedro Alves <palves@redhat.com>
4008 * breakpoint.c (build_target_command_list): Don't build a command
4009 list if we have any duplicate location that isn't a dprintf.
4011 2014-06-02 Pedro Alves <palves@redhat.com>
4013 * breakpoint.c (dprintf_breakpoint_hit): New function.
4014 (initialize_breakpoint_ops): Install it as dprintf's
4015 breakpoint_hit method.
4017 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4019 * source.c (substitute_path_rule_matches): Simplify using
4020 filename_ncmp instead of FILENAME_CMP.
4022 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4024 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4026 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4028 * configure.ac: When Guile is available, check for the
4029 availability of 'scm_new_smob'.
4030 * configure, config.h.in: Regenerate.
4031 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4034 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4036 * frame.c (struct frame_info): Add stop_string field.
4037 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4038 (get_prev_frame_always): Old content moved into
4039 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4040 TRY_CATCH, handle MEMORY_ERROR exceptions.
4041 (frame_stop_reason_string): New function definition.
4042 * frame.h (unwind_stop_reason_to_string): Extend comment to
4043 mention frame_stop_reason_string.
4044 (frame_stop_reason_string): New function declaration.
4045 * stack.c (frame_info): Switch to frame_stop_reason_string.
4046 (backtrace_command_1): Switch to frame_stop_reason_string.
4047 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4048 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4049 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4051 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4053 * frame.c (frame_stop_reason_string): Rename to ...
4054 (unwind_stop_reason_to_string): this.
4055 * frame.h (frame_stop_reason_string): Rename to ...
4056 (unwind_stop_reason_to_string): this.
4057 * stack.c (frame_info): Update call to frame_stop_reason_string.
4058 (backtrace_command_1): Likewise.
4059 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4060 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4062 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4064 * frame.c (remove_prev_frame): New function.
4065 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4068 2014-05-29 Pedro Alves <palves@redhat.com>
4070 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4071 and make it const. When a single-step decays to a continue,
4072 clear 'step', not 'hw_step'. Pass whether the caller wanted
4073 to step to user_visible_resume_ptid, not what we ask the
4076 2014-05-29 Pedro Alves <palves@redhat.com>
4078 * infrun.c (process_event_stop_test, handle_step_into_function)
4079 (handle_step_into_function_backward): Adjust.
4080 Don't set the even thread's stop_step and call stop_waiting before
4081 calling end_stepping_range. Instead do that ...
4082 (end_stepping_range): ... here. Take an ecs pointer parameter.
4084 2014-05-29 Pedro Alves <palves@redhat.com>
4086 * infrun.c (stop_stepping): Rename to ...
4087 (stop_waiting): ... this.
4088 (proceed): Update comment.
4089 (process_event_stop_test, handle_inferior_event)
4090 (handle_signal_stop, handle_step_into_function)
4091 (handle_step_into_function_backward): Update.
4093 2014-05-29 Pedro Alves <palves@redhat.com>
4095 * infcall.c (run_inferior_call): Don't check whether the current
4096 thread is running after the proceed call.
4098 2014-05-29 Pedro Alves <palves@redhat.com>
4099 Tom Tromey <tromey@redhat.com>
4101 * NEWS: Mention "maint set target-async", "set mi-async", and that
4102 background execution commands are now always available.
4103 * target.h (target_async_permitted): Update comment.
4104 * target.c (target_async_permitted, target_async_permitted_1):
4106 (set_target_async_command): Rename to ...
4107 (maint_set_target_async_command): ... this.
4108 (show_target_async_command): Rename to ...
4109 (maint_show_target_async_command): ... this.
4110 (_initialize_target): Adjust.
4111 * infcmd.c (prepare_execution_command): Make extern.
4112 * inferior.h (prepare_execution_command): Declare.
4113 * infrun.c (set_observer_mode): Leave target async alone.
4114 * mi/mi-interp.c (mi_interpreter_init): Install
4115 mi_on_sync_execution_done as sync_execution_done observer.
4116 (mi_on_sync_execution_done): New function.
4117 (mi_execute_command_input_handler): Don't print the prompt if we
4118 just started a synchronous command with an async target.
4119 (mi_on_resume): Check sync_execution before printing prompt.
4120 * mi/mi-main.h (mi_async_p): Declare.
4121 * mi/mi-main.c: Include gdbcmd.h.
4122 (mi_async_p): New function.
4123 (mi_async, mi_async_1): New globals.
4124 (set_mi_async_command, show_mi_async_command, mi_async): New
4126 (exec_continue): Call prepare_execution_command.
4127 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4128 (mi_execute_async_cli_command): Use mi_async_p.
4129 (_initialize_mi_main): Install "set mi-async". Make
4130 "target-async" a deprecated alias.
4132 2014-05-29 Pedro Alves <palves@redhat.com>
4134 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4135 (_initialize_cli_interp): Adjust.
4136 * event-loop.c: Include "observer.h".
4137 (start_event_loop): Notify 'command_error' observers instead of
4138 calling display_gdb_prompt. Remove FIXME comment.
4139 * event-top.c (display_gdb_prompt): Remove call into the
4141 * inf-loop.c: Include "observer.h".
4142 (inferior_event_handler): Notify 'command_error' observers instead
4143 of calling display_gdb_prompt.
4144 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4145 observers instead of calling display_gdb_prompt.
4146 * interps.c (interp_set): Don't call display_gdb_prompt.
4147 (current_interp_display_prompt_p): Delete.
4148 * interps.h (interp_prompt_p): Delete declaration.
4149 (interp_prompt_p_ftype): Delete.
4150 (struct interp_procs) <prompt_proc_p>: Delete field.
4151 (current_interp_display_prompt_p): Delete declaration.
4152 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4153 (_initialize_mi_interp): Adjust.
4154 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4155 'command_error' observers.
4156 (tui_on_sync_execution_done, tui_on_command_error): New
4158 (tui_display_prompt_p): Delete.
4159 (_initialize_tui_interp): Adjust.
4161 2014-05-29 Pedro Alves <palves@redhat.com>
4164 * cli/cli-interp.c: Include infrun.h and observer.h.
4165 (cli_uiout, cli_interp): New globals.
4166 (cli_on_signal_received, cli_on_end_stepping_range)
4167 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4169 (cli_interpreter_init): Install them as 'end_stepping_range',
4170 'signal_received' 'signal_exited', 'exited' and 'no_history'
4172 (_initialize_cli_interp): Remove cli_interp local.
4173 * infrun.c (handle_inferior_event): Call the several stop reason
4174 observers instead of printing the stop reason directly.
4175 (end_stepping_range): New function.
4176 (print_end_stepping_range_reason, print_signal_exited_reason)
4177 (print_exited_reason, print_signal_received_reason)
4178 (print_no_history_reason): Make static, and add an uiout
4179 parameter. Print to that instead of to CURRENT_UIOUT.
4180 * infrun.h (print_end_stepping_range_reason)
4181 (print_signal_exited_reason, print_exited_reason)
4182 (print_signal_received_reason print_no_history_reason): New
4184 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4186 <cli_uiout>: New field.
4187 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4188 uiout for CLI output. Install 'signal_received',
4189 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4191 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4192 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4193 (mi_on_no_history): New functions.
4194 (ui_out_free_cleanup): Delete function.
4195 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4196 instead use the one already stored in the MI interpreter data.
4197 (mi_ui_out): Adjust.
4198 * tui/tui-interp.c: Include infrun.h and observer.h.
4199 (tui_interp): New global.
4200 (tui_on_signal_received, tui_on_end_stepping_range)
4201 (tui_on_signal_exited, tui_on_exited)
4202 (tui_on_no_history): New functions.
4203 (tui_init): Install them as 'end_stepping_range',
4204 'signal_received' 'signal_exited', 'exited' and 'no_history'
4206 (_initialize_tui_interp): Delete tui_interp local.
4208 2014-05-29 Pedro Alves <palves@redhat.com>
4211 * linux-nat.c (linux_nat_resume_callback): Rename the second
4212 parameter to 'except'. Skip LP if it points to EXCEPT.
4213 (linux_nat_resume): Don't mark the event lwp as not stopped
4214 before resuming sibling lwps. Instead ask
4215 linux_nat_resume_callback to skip the event lwp. Mark it as not
4216 stopped after actually resuming it.
4217 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4219 (wait_lwp): Mark the lwp as stopped here.
4220 (stop_wait_callback): Mark the lwp as not stopped right after
4221 resuming it. Don't mark lwps as stopped here.
4222 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4223 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4225 2014-05-29 Pedro Alves <palves@redhat.com>
4228 * infrun.c (resume): Determine how much to resume depending on
4229 whether the caller wanted a step, not whether we can hardware step
4230 the target. Mark all threads that we intend to run as running,
4231 unless we're calling an inferior function.
4232 (normal_stop): If the thread is running an infcall, don't finish
4234 * target.c (target_resume): Don't mark threads as running here.
4236 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4238 * serial.c (_initialize_serial): Remove support for
4239 the "set remotebaud" and "show remotebaud" commands.
4240 * NEWS: Add entry documenting the removal of that command.
4242 2014-05-28 Yao Qi <yao@codesourcery.com>
4244 * charset.c: Fix typo in comments.
4246 2014-05-27 Gary Benson <gbenson@redhat.com>
4248 * utils.c (internal_vproblem): Prompt for a bug report.
4250 2014-05-26 Andy Wingo <wingo@igalia.com>
4252 * guile/scm-arch.c (arscm_mark_arch_smob):
4253 * guile/scm-block.c (bkscm_mark_block_smob)
4254 (bkscm_mark_block_syms_progress_smob):
4255 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4256 * guile/scm-exception.c (exscm_mark_exception_smob):
4257 * guile/scm-frame.c (frscm_mark_frame_smob):
4258 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4259 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4260 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4261 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4262 (ppscm_mark_pretty_printer_worker_smob):
4263 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4264 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4265 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4266 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4268 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4271 2014-05-26 Andy Wingo <wingo@igalia.com>
4272 Doug Evans <xdje42@gmail.com>
4274 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4275 empty_base_class. All uses updated.
4276 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4277 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4279 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4280 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4281 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4282 (gdbscm_gsmob_has_property_p, add_property_name)
4283 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4284 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4285 (gdb-object-has-property?, gdb-object-properties): Remove.
4286 (gdb-object-kind): Renamed from gsmob-kind.
4288 2014-05-26 Andy Wingo <wingo@igalia.com>
4290 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4291 * configure: Regenerate.
4293 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4295 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4297 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4299 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4300 (replay_memory_access_read_only, replay_memory_access_read_write)
4301 (replay_memory_access_types, replay_memory_access)
4302 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4303 (cmd_set_record_btrace, cmd_show_record_btrace)
4304 (cmd_show_replay_memory_access): New.
4305 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4306 (record_btrace_remove_breakpoint): Replace
4307 record_btrace_allow_memory_access with replay_memory_access.
4308 (_initialize_record_btrace): Add commands.
4309 * NEWS: Announce it.
4311 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4313 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4315 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4317 * MAINTAINERS (Write After Approval): Move self back from
4320 2014-05-22 Pedro Alves <palves@redhat.com>
4322 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4323 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4324 (disable_randomization, enum exec_direction_kind)
4325 (execution_direction, stop_registers, start_remote)
4326 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4327 (wait_for_inferior, normal_stop, get_last_target_status)
4328 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4329 (insert_step_resume_breakpoint_at_sal)
4330 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4331 (set_step_info, print_stop_event, signal_stop_state)
4332 (signal_print_state, signal_pass_state, signal_stop_update)
4333 (signal_print_update, signal_pass_update)
4334 (update_signals_program_target, clear_exit_convenience_vars)
4335 (displaced_step_dump_bytes, update_observer_mode)
4336 (signal_catch_update, gdb_signal_from_command): Move
4338 * infrun.h: ... to this new file.
4339 * amd64-tdep.c: Include infrun.h.
4340 * annotate.c: Include infrun.h.
4341 * arch-utils.c: Include infrun.h.
4342 * arm-linux-tdep.c: Include infrun.h.
4343 * arm-tdep.c: Include infrun.h.
4344 * break-catch-sig.c: Include infrun.h.
4345 * breakpoint.c: Include infrun.h.
4346 * common/agent.c: Include infrun.h instead of inferior.h.
4347 * corelow.c: Include infrun.h.
4348 * event-top.c: Include infrun.h.
4349 * go32-nat.c: Include infrun.h.
4350 * i386-tdep.c: Include infrun.h.
4351 * inf-loop.c: Include infrun.h.
4352 * infcall.c: Include infrun.h.
4353 * infcmd.c: Include infrun.h.
4354 * infrun.c: Include infrun.h.
4355 * linux-fork.c: Include infrun.h.
4356 * linux-nat.c: Include infrun.h.
4357 * linux-thread-db.c: Include infrun.h.
4358 * monitor.c: Include infrun.h.
4359 * nto-tdep.c: Include infrun.h.
4360 * procfs.c: Include infrun.h.
4361 * record-btrace.c: Include infrun.h.
4362 * record-full.c: Include infrun.h.
4363 * remote-m32r-sdi.c: Include infrun.h.
4364 * remote-mips.c: Include infrun.h.
4365 * remote-notif.c: Include infrun.h.
4366 * remote-sim.c: Include infrun.h.
4367 * remote.c: Include infrun.h.
4368 * reverse.c: Include infrun.h.
4369 * rs6000-tdep.c: Include infrun.h.
4370 * s390-linux-tdep.c: Include infrun.h.
4371 * solib-irix.c: Include infrun.h.
4372 * solib-osf.c: Include infrun.h.
4373 * solib-svr4.c: Include infrun.h.
4374 * target.c: Include infrun.h.
4375 * top.c: Include infrun.h.
4376 * windows-nat.c: Include infrun.h.
4377 * mi/mi-interp.c: Include infrun.h.
4378 * mi/mi-main.c: Include infrun.h.
4379 * python/py-threadevent.c: Include infrun.h.
4381 2014-05-22 Pedro Alves <palves@redhat.com>
4383 * infrun.c (handle_inferior_event): Store the exit code for
4384 --return-child-result here, instead of ...
4385 (print_exited_reason): ... here.
4387 2014-05-21 Pedro Alves <palves@redhat.com>
4390 * gdbthread.h (struct thread_control_state): New field
4392 * infrun.c (follow_fork): Copy the new thread control field to the
4394 (clear_proceed_status_thread): Clear the new thread control field.
4395 (proceed): Set the new thread control field.
4396 * interps.h (command_interp): Declare.
4397 * interps.c (command_interpreter): New global.
4398 (command_interp): New function.
4399 (interp_exec): Set `command_interpreter' while here.
4400 * cli-out.c (cli_uiout_dtor): New function.
4401 (cli_ui_out_impl): Install it.
4402 * mi/mi-interp.c: Include cli-out.h.
4403 (mi_cmd_interpreter_exec): Add comment.
4404 (restore_current_uiout_cleanup): New function.
4405 (ui_out_free_cleanup): New function.
4406 (mi_on_normal_stop): If finishing an execution command started by
4407 a CLI command, or any kind of breakpoint-like event triggered,
4408 print the stop event to the output (CLI) stream.
4409 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4411 2014-05-21 Pedro Alves <palves@redhat.com>
4413 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4414 current source line having changed.
4415 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4416 * infrun.c (normal_stop): Adjust call to
4417 set_current_sal_from_frame.
4418 * source.c (clear_lines_listed_range): New function.
4419 (set_current_source_symtab_and_line, identify_source_line): Clear
4420 the lines listed range.
4421 (line_info): Handle the first "info line" after the current source
4422 line having changed.
4423 * stack.c (print_stack_frame): Remove center handling.
4424 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4427 2014-05-21 Pedro Alves <palves@redhat.com>
4429 * inf-child.c (inf_child_mourn_inferior): New function.
4430 * inf-child.h (inf_child_mourn_inferior): New declaration.
4431 * darwin-nat.c (darwin_mourn_inferior): Use
4432 inf_child_mourn_inferior.
4433 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4434 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4435 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4436 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4437 * windows-nat.c (windows_mourn_inferior): Likewise.
4439 2014-05-21 Doug Evans <xdje42@gmail.com>
4441 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4443 2014-05-21 Doug Evans <xdje42@gmail.com>
4445 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4446 (gdbscm_out_of_range_error): Ditto.
4447 (gdbscm_memory_error): Ditto.
4448 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4449 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4450 (gdbscm_out_of_range_error): Update.
4451 (gdbscm_memory_error): Update.
4452 (gdbscm_scm_to_target_string_unsafe): Delete.
4454 2014-05-21 Pedro Alves <palves@redhat.com>
4456 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4458 (inf_child_open_target): New function.
4459 (inf_child_open): Use inf_child_open_target to push the target
4460 instead of erroring out.
4461 (inf_child_disconnect, inf_child_close)
4462 (inf_child_maybe_unpush_target): New functions.
4463 (inf_child_target): Install inf_child_disconnect and
4464 inf_child_close. Store a pointer to the returned object.
4465 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4467 * target.c (auto_connect_native_target): New global.
4468 (show_default_run_target): New function.
4469 (find_default_run_target): Return NULL if automatically connecting
4470 to the native target is disabled.
4471 (_initialize_target): Install set/show auto-connect-native-target.
4472 * NEWS: Mention "set auto-connect-native-target", and "target
4474 * linux-nat.c (super_close): New global.
4475 (linux_nat_close): Call super_close.
4476 (linux_nat_add_target): Store a pointer to the base class's
4478 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4479 inf_child_maybe_unpush.
4480 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4482 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4483 the inferior. Use inf_child_maybe_unpush_target.
4484 (inf_ttrace_attach): Don't push the target if it is already
4486 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4487 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4488 after mourning the inferior. Use inf_child_maybe_unpush_target.
4489 (darwin_attach_pid): Don't push the target if it is already
4491 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4492 mourning the inferior. Use inf_child_maybe_unpush_target.
4493 (gnu_detach): Use inf_child_maybe_unpush_target.
4494 * go32-nat.c (go32_create_inferior): Don't push the target if it
4496 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4497 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4498 (procfs_open): Rename to ...
4499 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4500 comments. Can target_preopen before changing node. Call
4501 inf_child_open_target to push the target explicitly.
4502 (procfs_attach): Don't push the target if it is already pushed.
4503 (procfs_detach): Use inf_child_maybe_unpush_target.
4504 (procfs_create_inferior): Don't push the target if it is already
4506 (nto_native_ops): New global.
4507 (procfs_open): Reimplement.
4508 (procfs_native_open): New function.
4509 (init_procfs_targets): Install procfs_native_open as to_open of
4510 "target native". Store a pointer to the "native" target in
4512 * procfs.c (procfs_attach): Don't push the target if it is already
4514 (procfs_detach): Use inf_child_maybe_unpush_target.
4515 (procfs_mourn_inferior): Only unpush the target after mourning the
4516 inferior. Use inf_child_maybe_unpush_target.
4517 (procfs_init_inferior): Don't push the target if it is already
4519 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4520 if it is already pushed.
4522 2014-05-21 Pedro Alves <palves@redhat.com>
4524 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4525 and "procfs" targets are now called "native" instead.
4527 2014-05-21 Pedro Alves <palves@redhat.com>
4529 * go32-nat.c (go32_open): Delete.
4530 (go32_target): Don't override the to_open method.
4532 2014-05-21 Pedro Alves <palves@redhat.com>
4534 * nto-procfs.c (procfs_can_run): New function.
4535 (nto_procfs_ops): New global.
4536 (init_procfs_targets): New, based on procfs_target. Install
4537 "target native" in addition to "target procfs".
4538 (_initialize_procfs): Call init_procfs_targets instead of adding
4541 2014-05-21 Pedro Alves <palves@redhat.com>
4543 * windows-nat.c (windows_target): Don't override to_shortname,
4544 to_longname or to_doc.
4546 2014-05-21 Pedro Alves <palves@redhat.com>
4548 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4551 2014-05-21 Pedro Alves <palves@redhat.com>
4553 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4554 to_shortname, to_longname or to_doc.
4556 2014-05-21 Pedro Alves <palves@redhat.com>
4558 * go32-nat.c (go32_target): Don't override to_shortname,
4559 to_longname or to_doc.
4561 2014-05-21 Pedro Alves <palves@redhat.com>
4563 * inf-child.c (inf_child_open): Remove mention of "child".
4564 (inf_child_target): Rename target to "native" instead of "child".
4566 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4568 * Makefile.in (SFILES): Delete "regset.c".
4569 (COMMON_OBS): Delete "regset.o".
4571 * regset.h (regset_alloc): Delete prototype.
4573 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4575 * sparc-linux-tdep.c (sparc32_linux_gregset)
4576 (sparc32_linux_fpregset): New static regset structures.
4577 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4578 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4580 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4581 (sparc64_linux_fpregset): New static regset structures.
4582 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4583 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4584 New static regset structures.
4585 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4586 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4587 New static regset structures.
4588 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4589 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4590 New static regset structures.
4591 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4592 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4593 New static regset structures.
4594 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4596 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4598 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4599 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4600 register maps ("regmaps") from "*regset" to "*regmap". Do this
4601 for all regmap types and variables.
4602 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4603 (sparc32_linux_supply_core_gregset)
4604 (sparc32_linux_collect_core_gregset)
4605 (sparc32_linux_supply_core_fpregset)
4606 (sparc32_linux_collect_core_fpregset): Likewise.
4607 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4608 (sparc_gregmap, sparc_fpregmap): ... these.
4609 (sparc_supply_gregset, sparc_collect_gregset)
4610 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4611 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4612 (_initialize_sparc_nat): Rename regmaps.
4613 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4614 (sparc_gregmap, sparc_fpregmap): ... these.
4615 (sparc_supply_gregset, sparc_collect_gregset)
4616 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4617 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4619 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4620 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4622 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4624 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4625 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4626 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4628 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4629 (sparc32_bsd_fpregset): Rename to...
4630 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4631 (sparc32_bsd_fpregmap): ... these.
4632 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4633 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4634 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4635 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4636 (struct sparc_gregmap, struct sparc_fpregmap)
4637 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4638 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4639 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4640 (sparc32_supply_regset, sparc32_collect_gregset)
4641 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4643 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4644 (sparc64_linux_ptrace_gregmap): ... this.
4645 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4646 (_initialize_sparc64_linux_nat): Rename regmaps.
4647 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4648 (sparc64_linux_core_gregmap): ... this.
4649 (sparc64_linux_supply_core_gregset)
4650 (sparc64_linux_collect_core_gregset)
4651 (sparc64_linux_supply_core_fpregset)
4652 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4653 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4654 (sparc64_sol2_fpregset): Rename to...
4655 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4656 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4657 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4659 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4660 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4661 (sparc64_bsd_fpregset): Rename to...
4662 (struct sparc_gregmap, sparc64_sol2_gregmap)
4663 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4664 (sparc64_bsd_fpregmap): ... these.
4665 (sparc64_supply_gregset, sparc64_collect_gregset)
4666 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4668 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4669 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4670 (sparc64fbsd_gregmap): ... this.
4671 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4672 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4674 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4675 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4676 (sparc64nbsd_collect_fpregset): Likewise.
4677 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4678 (sparc64nbsd_gregmap): ... this.
4679 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4681 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4682 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4683 (sparc64obsd_gregmap): ... this.
4684 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4686 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4687 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4688 (sparc32nbsd_gregmap): ... this.
4689 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4692 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4694 * score-tdep.c (score7_linux_gregset): New static regset
4696 (score7_linux_regset_from_core_section): Remove dynamic regset
4698 (score_gdbarch_init): Drop allocation of tdep structure.
4699 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4701 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4703 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4705 (am33_regset_from_core_section): Remove dynamic regset
4708 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4710 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4711 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4713 (mips_linux_regset_from_core_section): Remove dynamic regset
4715 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4716 'gregset64', 'fpregset', and 'fpregset64'.
4717 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4718 deleted tdep fields.
4720 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4722 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4724 (amd64_regset_from_core_section): Remove dynamic regset
4726 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4728 (amd64obsd_regset_from_core_section): Remove dynamic regset
4730 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4732 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4733 x86-common regset supply function.
4734 * i386-tdep.c (i386_collect_gregset): Make static.
4735 (i386_gregset): New global regset structure.
4736 (i386_fpregset, i386_xstateregset): New static regset structures.
4737 (i386_regset_from_core_section): Remove dynamic regset
4739 (i386_gdbarch_init): Remove initialization of tdep fields
4740 'gregset', 'fpregset', and 'xstateregset'.
4741 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4742 'fpregset', and 'xstateregset'.
4743 (i386_collect_gregset): Remove prototype.
4744 (i386_gregset): New declaration.
4745 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4747 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4752 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4753 (arm_linux_vfpregset): New static regset structures.
4754 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4756 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4757 and 'vfpregset' fields.
4759 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4761 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4762 (aarch64_linux_fpregset): New static regset structures.
4763 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4764 of regset structures.
4765 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4768 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4770 * regset.h (struct regset): Remove gdbarch field.
4771 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4772 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4773 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4775 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4776 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4777 (ppc32_linux_vsxregset): Likewise.
4778 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4779 via the regcache instead of the regset.
4780 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4781 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4782 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4783 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4786 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4788 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4789 Constify structures.
4790 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4791 (alphanbsd_aout_gregset): Likewise.
4792 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4793 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4795 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4796 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4798 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4799 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4800 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4801 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4802 * m88k-tdep.c (m88k_gregset): Likewise.
4803 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4804 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4805 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4806 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4807 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4808 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4809 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4810 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4811 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4813 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4814 * sh-tdep.h (sh_corefile_gregset): Likewise.
4815 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4816 * vax-tdep.c (vax_gregset): Likewise.
4818 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4820 Fix TLS access for -static -pthread.
4821 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4822 (try_thread_db_load_1): Initialize it.
4823 (thread_db_get_thread_local_address): Call it if LM is zero.
4824 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4825 * target.h (struct target_ops) (to_get_thread_local_address): Add
4826 load_module_addr comment.
4828 2014-05-21 Pedro Alves <palves@redhat.com>
4830 * dcache.c (dcache_read_memory_partial): If reading the cache line
4831 fails, fallback to reading just the memory the caller wanted.
4833 2014-05-20 Doug Evans <dje@google.com>
4835 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4836 instead of get_current_arch.
4838 2014-05-20 Pedro Alves <palves@redhat.com>
4840 * NEWS: Mention that compare-sections now works with all targets.
4842 * remote.c (PACKET_qCRC): New enum value.
4843 (remote_verify_memory): Don't send qCRC if the target has no
4844 execution. Use packet_support/packet_ok. If the target doesn't
4845 support the qCRC packet, fallback to a deep memory copy.
4846 (compare_sections_command): Say "target image" instead of "remote
4848 (_initialize_remote): Add PACKET_qCRC to the list of config
4849 packets that have no associated command. Extend comment.
4850 * target.c (simple_verify_memory, default_verify_memory): New
4852 * target.h (struct target_ops) <to_verify_memory>: Default to
4853 default_verify_memory.
4854 (simple_verify_memory): New declaration.
4855 * target-delegates.c: Regenerate.
4857 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4859 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4861 2014-05-20 Hui Zhu <hui@codesourcery.com>
4862 Yao Qi <yao@codesourcery.com>
4865 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4866 and change address of sp and pc.
4868 2014-05-19 Tom Tromey <tromey@redhat.com>
4870 * gdbtypes.c (rank_function): Use XNEWVEC.
4871 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4873 2014-05-19 Doug Evans <dje@google.com>
4875 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4876 build_type_unit_groups and moved closer to only caller. Remove
4877 arguments. All references updated. Remove outdated .gdb_index
4879 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4880 build_type_psymtabs_1.
4882 2014-05-19 Doug Evans <dje@google.com>
4884 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4885 n_type_unit_groups, all_type_unit_groups. All uses removed.
4886 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4887 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4888 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4889 (add_type_unit_group_to_table): Delete.
4891 2014-05-19 Doug Evans <dje@google.com>
4893 * eval.c (evaluate_subexp_standard): Add some comments.
4895 2014-05-17 Doug Evans <xdje42@gmail.com>
4897 * progspace.c (remove_program_space): Delete, unused.
4898 * progspace.h (remove_program_space): Ditto.
4900 2014-05-17 Doug Evans <xdje42@gmail.com>
4902 * inferior.c (prune_inferiors): Fix comment.
4903 (remove_inferior_command): Call prune_program_spaces.
4905 2014-05-16 Doug Evans <dje@google.com>
4907 New command line option -D.
4909 * main.c (set_gdb_data_directory): New function.
4910 (captured_main): Recognize -D. Flag error for --data-directory "".
4911 Call set_gdb_data_directory.
4912 (print_gdb_help): Print --data-directory, -D.
4913 * main.h (set_gdb_data_directory): Declare.
4914 * top.c (staged_gdb_datadir): New static global.
4915 (set_gdb_datadir): Call set_gdb_data_directory
4916 (show_gdb_datadir): New function.
4917 (init_main): Update init of data-directory parameter.
4919 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4921 Import the "dirfd" gnulib module.
4922 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4923 * gnulib/aclocal.m4: Update.
4924 * gnulib/config.in: Update.
4925 * gnulib/configure: Update.
4926 * gnulib/import/Makefile.am: Update.
4927 * gnulib/import/Makefile.in: Update.
4928 * gnulib/import/dirfd.c: New.
4929 * gnulib/import/m4/dirfd.m4: New.
4930 * gnulib/import/m4/gnulib-cache.m4: Update.
4931 * gnulib/import/m4/gnulib-comp.m4: Update.
4933 2014-05-16 Pierre Muller <muller@sourceware.org>
4934 Yao Qi <yao@codesourcery.com>
4936 * valprint.c (print_wchar): Move the code on checking whether
4937 W is a printable wide char to the default branch of switch
4938 statement below. Call wchar_printable instead of gdb_iswprint.
4940 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4942 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4943 ldr.w and ldrd instructions.
4945 2014-05-15 Doug Evans <dje@google.com>
4947 * dwarf2read.c (read_structure_type): Delete outdated comments.
4949 2014-05-14 Tom Tromey <tromey@redhat.com>
4951 * macrocmd.c (print_macro_definition): Reindent.
4953 2014-05-13 Doug Evans <xdje42@gmail.com>
4955 * python/py-cmd.c (cmdpy_completer): Add comment.
4956 (completers): Make const.
4958 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4960 * infrun.c (resume): Remove should_resume (unused). Move up
4961 declaration of resume_ptid.
4963 2014-05-13 Tom Tromey <tromey@redhat.com>
4965 * language.h (unop_type_check): Remove.
4966 (binop_type_check): Don't declare.
4968 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4970 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4971 call to regcache_raw_collect.
4973 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4975 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4976 mi_console->quote as the quoting character.
4978 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4980 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4982 2014-04-29 Tom Tromey <tromey@redhat.com>
4984 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4985 "show debug varobj".
4987 2014-05-07 Kyle McMartin <kyle@redhat.com>
4989 Pushed by Joel Brobecker <brobecker@adacore.com>.
4990 * aarch64-tdep.c (aarch64_software_single_step): New function.
4991 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4992 with aarch64_software_single_step.
4994 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4998 2014-05-05 Keith Seitz <keiths@redhat.com>
5000 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5001 variable or history value is successfully parsed.
5003 2014-05-05 Yao Qi <yao@codesourcery.com>
5004 Pedro Alves <palves@redhat.com>
5006 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5007 address of blocks that intersects the requested range. Trim
5008 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5010 * ctf.c (ctf_xfer_partial): Likewise.
5012 2014-05-05 Yao Qi <yao@codesourcery.com>
5014 * printcmd.c (display_command): Remove the check to
5015 target_has_execution.
5017 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5019 * ppcobsd-nat.c: Include "obsd-nat.h".
5020 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5022 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5024 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5026 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5027 and 16-bit signed and unsigned arguments. Update comment.
5028 (stap_parse_probe_arguments): Extend code to handle such
5029 arguments. Use warning instead of complaint to notify about
5030 unrecognized bitness.
5032 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5034 PR breakpoints/16889
5035 * stap-probe.c (stap_parse_probe_arguments): Simplify
5036 check for non-prefixed probes (i.e., probes whose
5037 arguments do not start with "N@"). Always set the
5038 argument type to a sane value.
5040 2014-05-01 David Taylor <dtaylor@emc.com>
5042 * remote.c (compare_sections_command): Add -r option to compare
5043 all loadable read-only sections.
5045 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5047 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5048 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5050 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5051 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5052 Remove unused CORE_ADDR argument. Update all callers.
5054 2014-04-29 Pedro Alves <palves@redhat.com>
5056 * remote.c (struct packet_config) <detect>: Extend comment.
5057 (add_packet_config_cmd): Don't set the config's detect or support
5059 (init_all_packet_configs): Also initialize the config's 'detect'
5061 (reset_all_packet_configs_support): New function.
5062 (remote_open_1): Call reset_all_packet_configs_support instead of
5063 init_all_packet_configs.
5064 (_initialize_remote): Initialize all packet configs. Assert that
5065 all packets have an associated command, except a few known
5068 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5070 * dwarf2read.c (read_subrange_type): Handle dynamic
5071 DW_AT_lower_bound attributes.
5073 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5075 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5076 dynamic bounds before computing its upper bound.
5077 (ada_discrete_type_low_bound): Same as above with the lower bound.
5079 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5081 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5082 range types. Adjust the array handling implementation to
5083 take advantage of this change.
5084 (resolve_dynamic_range): New function, mostly extracted from
5085 resolve_dynamic_bounds.
5086 (resolve_dynamic_array): New function, mostly extracted from
5087 resolve_dynamic_bounds.
5088 (resolve_dynamic_bounds): Delete.
5089 (resolve_dynamic_type): Reimplement. Add handling of
5090 TYPE_CODE_RANGE types.
5092 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5094 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5095 handling of parallel ___XA types.
5097 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5099 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5100 unnecessary second call to static_unwrap_type.
5102 2014-04-27 Hui Zhu <hui@codesourcery.com>
5104 * stack.c (print_frame_info): Call do_gdb_disassembly with
5105 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5107 2014-04-26 Doug Evans <xdje42@gmail.com>
5109 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5111 2014-04-25 Pedro Alves <palves@redhat.com>
5114 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5115 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5116 and newline from built string.
5117 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5118 (linux_ptrace_attach_fail_reason): ... this.
5119 * linux-nat.c (linux_nat_attach): Adjust to use
5120 linux_ptrace_attach_fail_reason.
5122 2014-04-25 Pedro Alves <palves@redhat.com>
5124 * remote.c (struct remote_state): Remove multi_process_aware,
5125 non_stop_aware, cond_tracepoints, cond_breakpoints,
5126 breakpoint_commands, fast_tracepoints, static_tracepoints,
5127 install_in_trace, disconnected_tracing,
5128 enable_disable_tracepoints, string_tracing, and
5129 augmented_libraries_svr4_read fields.
5130 (remote_multi_process_p): Move further below in the file.
5131 (struct packet_config): Add comments.
5132 (update_packet_config): Delete function.
5133 (show_packet_config_cmd): Use packet_config_support.
5134 (add_packet_config_cmd): Use NULL as set callback.
5135 (packet_ok): "set remote foo-packet"-style commands no longer
5136 change config->supported -- adjust.
5137 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5138 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5139 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5140 (PACKET_QNonStop, PACKET_multiprocess_feature)
5141 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5142 (PACKET_DisconnectedTracing_feature)
5143 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5144 (set_remote_protocol_packet_cmd): Delete function.
5145 (packet_config_support, packet_support): New functions.
5146 (set_remote_protocol_Z_packet_cmd): Don't call
5147 update_packet_config.
5148 (remote_query_attached, remote_pass_signals)
5149 (remote_program_signals, remote_threads_info)
5150 (remote_threads_extra_info, remote_start_remote): Use
5152 (remote_start_remote): Use packet_config_support and
5154 (init_all_packet_configs): Set all packets to unknown support,
5155 instead of calling update_packet_config.
5156 (remote_check_symbols): Use packet_support.
5157 (remote_supported_packet): Unconditionally set the packet config's
5159 (remote_multi_process_feature, remote_non_stop_feature)
5160 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5161 (remote_breakpoint_commands_feature)
5162 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5163 (remote_install_in_trace_feature)
5164 (remote_disconnected_tracing_feature)
5165 (remote_enable_disable_tracepoint_feature)
5166 (remote_string_tracing_feature)
5167 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5168 (remote_protocol_features): Adjust to use remote_supported_packet
5169 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5170 "ConditionalTracepoints", "ConditionalBreakpoints",
5171 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5172 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5173 "EnableDisableTracepoints", and "tracenz".
5174 (remote_query_supported): Use packet_support.
5175 (remote_open_1): Adjust.
5176 (extended_remote_attach_1): Use packet_support. Switch on the
5177 result of packet_ok instead of checking whether the packet ended
5179 (remote_vcont_resume): Use packet_support.
5180 (remote_resume, remote_stop_ns, fetch_register_using_p)
5181 (remote_prepare_to_store, store_register_using_P)
5182 (check_binary_download, remote_write_bytes): Use packet_support.
5183 (remote_vkill): Use packet_support. Switch on the result of
5184 packet_ok instead of checking whether the packet ended up
5186 (extended_remote_supports_disable_randomization): Use
5188 (extended_remote_run): Switch on the result of packet_ok instead
5189 of checking whether the packet ended up disabled.
5190 (remote_insert_breakpoint, remote_remove_breakpoint)
5191 (remote_insert_watchpoint, remote_remove_watchpoint)
5192 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5194 (remote_search_memory): Use packet_config_support.
5195 (remote_get_thread_local_address, remote_get_tib_address)
5196 (remote_hostio_send_command, remote_can_execute_reverse): Use
5198 (remote_supports_cond_tracepoints)
5199 (remote_supports_cond_breakpoints)
5200 (remote_supports_fast_tracepoints)
5201 (remote_supports_static_tracepoints)
5202 (remote_supports_install_in_trace)
5203 (remote_supports_enable_disable_tracepoint)
5204 (remote_supports_string_tracing)
5205 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5206 the packet config says the feature is enabled or disabled.
5207 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5208 (remote_get_trace_status): Use packet_support.
5209 (remote_set_disconnected_tracing): Adjust to check whether the
5210 feature is enabled with packet_support.
5211 (remote_set_trace_buffer_size, remote_use_agent)
5212 (remote_can_use_agent, remote_supports_btrace): Use
5214 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5215 Use packet_config_support.
5216 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5217 the packet config says the feature is enabled or disabled.
5218 (set_range_stepping): Use packet_support.
5220 2014-04-25 Tom Tromey <tromey@redhat.com>
5222 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5225 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5227 * NEWS: Mention support for C99 variable length arrays.
5229 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5231 * ada-lang.c (standard_exc): Expand introductory comment.
5233 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5234 Walfred Tedeschi <walfred.tedeschi@intel.com>
5236 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5238 (amd64_linux_read_description): Add code to handle AVX512 xstate
5239 mask and return respective tdesc.
5240 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5241 and features/i386/x32-avx512-linux.c.
5242 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5243 (amd64_linux_core_read_description): Add code to handle AVX512
5244 xstate mask and return respective tdesc.
5245 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5246 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5248 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5249 (tdesc_amd64_avx512_linux): New prototype.
5250 (tdesc_x32_avx512_linux): Likewise.
5251 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5252 features/i386/x32-avx512.c.
5253 (amd64_ymm_avx512_names): New register names for pseudo
5255 (amd64_ymmh_avx512_names): New register names for raw registers
5257 (amd64_k_names): New register names for K registers.
5258 (amd64_zmmh_names): New register names for ZMM raw registers.
5259 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5260 (amd64_xmm_avx512_names): New register names for XMM16-31
5262 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5264 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5265 if feature is present.
5266 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5267 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5268 (AMD64_NUM_REGS): Adjust to new number of registers.
5269 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5270 registers supplied via XSTATE by AVX512 registers.
5271 (i386_linux_read_description): Add case for AVX512.
5272 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5273 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5274 (i386_linux_core_read_description): Add case for AVX512.
5275 (i386_linux_init_abi): Install supported register note section
5277 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5279 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5280 registers to be number of zmm7h + 1.
5281 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5282 * i386-tdep.c: Include features/i386/i386-avx512.c.
5283 (i386_zmm_names): Add ZMM pseudo register names array.
5284 (i386_zmmh_names): Add ZMM raw register names array.
5285 (i386_k_names): Add K raw register names array.
5286 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5287 registers. AVX512 has 16 more ZMM registers than there are YMM
5289 (i386_zmmh_regnum_p): Add function to look up register number of
5291 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5292 (i386_k_regnum_p): Likewise for K raw registers.
5293 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5294 registers added by AVX512.
5295 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5296 registers added by AVX512.
5297 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5299 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5300 (i386_pseudo_register_name): Add ZMM pseudo registers.
5301 (i386_zmm_type): Construct and return vector registers type for ZMM
5303 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5304 ZMM0-31 pseudo registers and K registers.
5305 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5306 and YMM16-31 registers from register cache.
5307 (i386_pseudo_register_write): Add code to write K, ZMM and
5309 (i386_register_reggroup_p): Add code to include/exclude AVX512
5310 registers in/from respective register groups.
5311 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5312 registers if feature is present in xcr0.
5313 (i386_gdbarch_init): Add code to initialize AVX512 feature
5314 variables in tdep structure, wire in pseudo registers and call
5315 initialize_tdesc_i386_avx512.
5316 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5318 (i386_regnum): Add AVX512 registers.
5319 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5320 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5321 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5322 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5324 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5325 (i386_ymm_avx512_regnum_p): Likewise.
5326 (i386_k_regnum_p): Likewise.
5327 (i386_zmm_regnum_p): Likewise.
5328 (i386_zmmh_regnum_p): Likewise.
5329 * i387-tdep.c : Update year in copyright notice.
5330 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5332 (XSAVE_YMM_AVX512_ADDR): New macro.
5333 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5335 (XSAVE_XMM_AVX512_ADDR): New macro.
5336 (xsave_avx512_k_offset): New table for K register offsets in
5338 (XSAVE_AVX512_K_ADDR): New macro.
5339 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5341 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5342 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5344 (i387_collect_xsave): Add code to collect AVX512 registers from
5346 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5347 of XMM16-31 registers.
5348 (I387_NUM_K_REGS): New define for number of K registers.
5349 (I387_K0_REGNUM): New define for K0 register number.
5350 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5351 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5352 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5354 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5355 (I387_XMM16_REGNUM): New define for XMM16 register number.
5356 (I387_YMM0_REGNUM): New define for YMM0 register number.
5357 (I387_KEND_REGNUM): New define for last K register number.
5358 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5359 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5361 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5363 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5365 * features/Makefile: Add AVX512 related files.
5366 * features/i386/32bit-avx512.xml: New file.
5367 * features/i386/64bit-avx512.xml: Likewise.
5368 * features/i386/amd64-avx512-linux.c: Likewise.
5369 * features/i386/amd64-avx512-linux.xml: Likewise.
5370 * features/i386/amd64-avx512.c: Likewise.
5371 * features/i386/amd64-avx512.xml: Likewise.
5372 * features/i386/i386-avx512-linux.c: Likewise.
5373 * features/i386/i386-avx512-linux.xml: Likewise.
5374 * features/i386/i386-avx512.c: Likewise.
5375 * features/i386/i386-avx512.xml: Likewise.
5376 * features/i386/x32-avx512-linux.c: Likewise.
5377 * features/i386/x32-avx512-linux.xml: Likewise.
5378 * features/i386/x32-avx512.c: Likewise.
5379 * features/i386/x32-avx512.xml: Likewise.
5380 * regformats/i386/amd64-avx512-linux.dat: New file.
5381 * regformats/i386/amd64-avx512.dat: Likewise.
5382 * regformats/i386/i386-avx512-linux.dat: Likewise.
5383 * regformats/i386/i386-avx512.dat: Likewise.
5384 * regformats/i386/x32-avx512-linux.dat: Likewise.
5385 * regformats/i386/x32-avx512.dat: Likewise.
5386 * NEWS: Add note about new support for AVX512.
5389 2014-04-23 Pedro Alves <palves@redhat.com>
5391 * breakpoint.c (insert_bp_location): Tolerate errors if the
5392 breakpoint is set in a user-loaded objfile.
5393 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5394 location is marked shlib_disabled. If the breakpoint is set in a
5395 user-loaded objfile is a GDB-side memory breakpoint, validate it
5396 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5397 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5399 * mem-break.c (memory_validate_breakpoint): New function.
5400 * objfiles.c (userloaded_objfile_contains_address_p): New
5402 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5403 * target.h (memory_validate_breakpoint): New declaration.
5405 2014-04-23 Pedro Alves <palves@redhat.com>
5407 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5408 the breakpoint is set in a shared library, only suppress
5409 errors for software breakpoints, not hardware breakpoints.
5411 2014-04-22 Pedro Alves <palves@redhat.com>
5413 * infrun.c (schedlock_applies): New function, factored out from
5414 find_thread_needs_step_over.
5415 (find_thread_needs_step_over): Use it.
5416 (switch_back_to_stepped_thread): Always clear trap_expected if the
5417 step over is finished. Return early if scheduler locking applies.
5418 Look for the stepping thread and a potential step-over thread with
5420 (currently_stepping_or_nexting_callback): Delete.
5422 2014-04-22 Nick Clifton <nickc@redhat.com>
5424 * NEWS: Mention that ARM sim now supports tracing.
5426 2014-04-22 Yao Qi <yao@codesourcery.com>
5428 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5430 * tracefile.c (tracefile_fetch_registers): ... it. New
5432 * tracefile.h (tracefile_fetch_registers): Declare.
5433 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5434 tracefile_fetch_registers.
5436 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5439 * windows-nat.c (thread_rec): Don't display a warning when
5440 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5441 fails for any reason, set th->suspended to -1, so that we don't
5442 try to resume such a thread. Also, don't return NULL in these
5443 cases, to avoid completely ruin the session due to "PC register is
5444 not available" error.
5445 (do_windows_fetch_inferior_registers): Check errors in
5446 GetThreadContext call.
5447 (windows_continue): Accept an additional argument KILLED; if not
5448 zero, ignore errors in the SetThreadContext call, since the
5449 inferior was killed and is shutting down.
5450 (windows_resume, get_windows_debug_event)
5451 (windows_create_inferior, windows_mourn_inferior)
5452 (windows_kill_inferior): All callers of windows_continue changed
5453 to adjust to its new calling sequence.
5455 2014-04-19 Yao Qi <yao@codesourcery.com>
5457 * ctf.c (ctf_open): Call post_create_inferior.
5459 2014-04-19 Yao Qi <yao@codesourcery.com>
5461 * ctf.c (handle_id): New static variable.
5462 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5463 value. Get the declaration of event "register" and get length
5464 of field "contents".
5466 2014-04-19 Yao Qi <yao@codesourcery.com>
5468 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5470 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5472 * valops.c (oload_method_static): Remove unnecessary argument
5473 METHOD. Update all callers.
5475 2014-04-18 Pedro alves <palves@redhat.com>
5476 Tom Tromey <tromey@redhat.com>
5479 * frame.c (get_prev_frame_1): Rename to ...
5480 (get_prev_frame_always): ... this, and make extern. Adjust.
5481 (skip_artificial_frames): Use get_prev_frame_always.
5482 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5483 (get_frame_unwind_stop_reason): Adjust to rename.
5484 * frame.h (get_prev_frame_always): Declare.
5485 * inline-frame.c: Include frame.h.
5486 (inline_frame_this_id): Use get_prev_frame_always.
5488 2014-04-18 Tristan Gingold <gingold@adacore.com>
5490 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5491 code by using bfd_mach_o_get_base_address.
5493 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5495 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5496 (spu_ax_pseudo_register_collect): New function.
5497 (spu_ax_pseudo_register_push_stack): Likewise.
5498 (spu_dwarf_reg_to_regnum): Likewise.
5499 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5501 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5503 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5504 Replace FRAME argument with FRAME_ID.
5505 * gdbarch.c, gdbarch.h: Regenerate.
5506 * findvar.c (default_value_from_register): Add GDBARCH argument;
5507 replace FRAME by FRAME_ID. No longer call get_frame_id.
5508 (value_from_register): Update call to gdbarch_value_from_register.
5509 * value.h (default_value_from_register): Update prototype.
5510 * s390-linux-tdep.c (s390_value_from_register): Update interface
5511 and call to default_value_from_register.
5512 * spu-tdep.c (spu_value_from_register): Likewise.
5514 * findvar.c (address_from_register): Remove TYPE argument.
5515 Do not call value_from_register; use gdbarch_value_from_register
5516 with null_frame_id instead.
5517 * value.h (address_from_register): Update prototype.
5518 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5519 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5520 address_from_register interface change.
5522 2014-04-17 Yao Qi <yao@codesourcery.com>
5524 * gdbtypes.h: Update comments to link to types and macros'
5527 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5529 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5531 2014-04-16 Keith Seitz <keiths@redhat.com>
5534 * dwarf2read.c (skip_one_die): Check that all relative-offset
5535 sibling DIEs fall within range of the current reader's buffer.
5536 (read_partial_die): Likewise.
5538 2014-04-16 Keith Seitz <keiths@redhat.com>
5541 * cp-namespace.c (lookup_symbol_file): If the type name of
5542 `this' is NULL, return immediately.
5544 2014-04-14 Keith Seitz <keiths@redhat.com>
5547 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5548 from symbol_matches_domain in symtab.c. All local callers
5549 of symbol_matches_domain updated.
5550 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5551 search STRUCT_DOMAIN.
5552 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5553 independently. standard_lookup will do that automatically.
5554 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5555 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5556 (cp_lookup_symbol_in_namespace): Likewise.
5557 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5558 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5559 may return a STRUCT_DOMAIN match.
5560 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5561 * cp-support.c: Include language.h.
5562 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5564 * psymtab.c (match_partial_symbol): Compare the requested
5565 domain with the symbol's domain directly.
5566 (lookup_partial_symbol): Likewise.
5567 * symtab.c (lookup_symbol_in_language): Explain when/why
5568 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5569 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5570 appropriate languages.
5571 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5572 and moved to ada-lang.c
5573 (lookup_block_symbol): Explain that this function only returns
5574 symbol matching the requested DOMAIN.
5575 Compare the requested domain with the symbol's domain directly.
5576 (iterate_over_symbols): Compare the requested domain with the
5577 symbol's domain directly.
5578 * symtab.h (symbol_matches_domain): Remove.
5580 2014-04-14 Tom Tromey <tromey@redhat.com>
5583 * c-exp.y (type_aggregate_p): New function.
5584 (qualified_name, classify_inner_name): Use it.
5585 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5586 and TYPE_TARGET_TYPE of an enum type.
5587 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5589 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5590 handle TYPE_DECLARED_CLASS.
5591 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5593 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5594 * valops.c (enum_constant_from_type): New function.
5595 (value_aggregate_elt): Use it.
5596 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5599 2014-04-14 Tom Tromey <tromey@redhat.com>
5601 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5602 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5604 * value.h (value_aggregate_elt): Update.
5606 2014-04-14 Tom Tromey <tromey@redhat.com>
5608 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5610 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5612 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5613 (evaluate_subexp_standard): Pass noside argument.
5614 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5615 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5616 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5617 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5618 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5620 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5622 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5623 points to a constant blob.
5625 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5627 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5628 property and store it as the high bound and flag the range accordingly.
5629 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5630 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5631 * gdbtypes.h (enum range_flags): New enum.
5632 (struct range_bounds): Add flags member.
5634 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5636 * c-typeprint.c (c_type_print_varspec_suffix): Added
5637 check for not yet resolved high bound. If unresolved, print
5638 "variable length" string to the console instead of random
5641 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5643 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5645 (ada_template_to_fixed_record_type_1): Likewise.
5646 (ada_to_fixed_type_1): Likewise.
5647 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5648 (cp_print_value): Likewise.
5649 * d-valprint.c (dynamic_array_type): Likewise.
5650 * findvar.c (address_of_variable): Likewise.
5651 * jv-valprint.c (java_value_print): Likewise.
5652 * valops.c (value_ind): Likewise.
5653 * value.c (coerce_ref): Likewise.
5655 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5657 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5658 value and retrieve the dynamic type size.
5660 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5662 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5663 passed to sizeof is dynamic evaluate the argument to compute the length.
5665 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5666 Joel Brobecker <brobecker@adacore.com>
5668 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5669 (dwarf2_evaluate_property): New function.
5670 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5671 * dwarf2read.c (attr_to_dynamic_prop): New function.
5672 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5674 * gdbtypes.c: Include dwarf2loc.h.
5675 (is_dynamic_type): New function.
5676 (resolve_dynamic_type): New function.
5677 (resolve_dynamic_bounds): New function.
5678 (get_type_length): New function.
5679 (check_typedef): Use get_type_length to compute type length.
5680 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5681 (TYPE_LOW_BOUND_KIND): New macro.
5682 (is_dynamic_type): New function prototype.
5683 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5684 to resolve dynamic properties of the type. Update comment.
5685 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5687 2014-04-14 Richard Henderson <rth@redhat.com>
5689 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5691 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5692 Doug Evans <xdje42@gmail.com>
5694 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5695 dereference TYPE_CODE_REF values.
5697 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5699 Revert the following changes due to regressions:
5701 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5702 (dwarf2_evaluate_property): New function.
5703 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5704 * dwarf2read.c (attr_to_dynamic_prop): New function.
5705 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5707 * gdbtypes.c: Include dwarf2loc.h.
5708 (is_dynamic_type): New function.
5709 (resolve_dynamic_type): New function.
5710 (resolve_dynamic_bounds): New function.
5711 (get_type_length): New function.
5712 (check_typedef): Use get_type_length to compute type length.
5713 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5714 (TYPE_LOW_BOUND_KIND): New macro.
5715 (is_dynamic_type): New function prototype.
5716 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5717 to resolve dynamic properties of the type. Update comment.
5718 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5720 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5721 passed to sizeof is dynamic evaluate the argument to compute the length.
5723 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5724 value and retrieve the dynamic type size.
5726 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5727 (ada_template_to_fixed_record_type_1): Likewise.
5728 (ada_to_fixed_type_1): Likewise.
5729 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5730 (cp_print_value): Likewise.
5731 * d-valprint.c (dynamic_array_type): Likewise.
5732 * eval.c (evaluate_subexp_with_coercion): Likewise.
5733 * findvar.c (address_of_variable): Likewise.
5734 * jv-valprint.c (java_value_print): Likewise.
5735 * valops.c (value_ind): Likewise.
5736 * value.c (coerce_ref): Likewise.
5738 * c-typeprint.c (c_type_print_varspec_suffix): Added
5739 check for not yet resolved high bound. If unresolved, print
5740 "variable length" string to the console instead of random
5743 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5744 property and store it as the high bound and flag the range accordingly.
5745 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5746 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5747 * gdbtypes.h (enum range_flags): New enum.
5748 (struct range_bounds): Add flags member.
5750 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5751 points to a constant blob.
5753 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5754 (evaluate_subexp_standard): Pass noside argument.
5755 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5756 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5757 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5758 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5759 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5761 2014-04-11 Keith Seitz <keiths@redhat.com>
5764 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5765 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5768 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5770 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5771 (evaluate_subexp_standard): Pass noside argument.
5772 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5773 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5774 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5775 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5776 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5778 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5780 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5781 points to a constant blob.
5783 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5785 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5786 property and store it as the high bound and flag the range accordingly.
5787 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5788 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5789 * gdbtypes.h (enum range_flags): New enum.
5790 (struct range_bounds): Add flags member.
5792 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5794 * c-typeprint.c (c_type_print_varspec_suffix): Added
5795 check for not yet resolved high bound. If unresolved, print
5796 "variable length" string to the console instead of random
5799 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5801 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5802 (ada_template_to_fixed_record_type_1): Likewise.
5803 (ada_to_fixed_type_1): Likewise.
5804 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5805 (cp_print_value): Likewise.
5806 * d-valprint.c (dynamic_array_type): Likewise.
5807 * eval.c (evaluate_subexp_with_coercion): Likewise.
5808 * findvar.c (address_of_variable): Likewise.
5809 * jv-valprint.c (java_value_print): Likewise.
5810 * valops.c (value_ind): Likewise.
5811 * value.c (coerce_ref): Likewise.
5813 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5815 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5816 value and retrieve the dynamic type size.
5818 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5820 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5821 passed to sizeof is dynamic evaluate the argument to compute the length.
5823 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5825 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5826 (dwarf2_evaluate_property): New function.
5827 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5828 * dwarf2read.c (attr_to_dynamic_prop): New function.
5829 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5831 * gdbtypes.c: Include dwarf2loc.h.
5832 (is_dynamic_type): New function.
5833 (resolve_dynamic_type): New function.
5834 (resolve_dynamic_bounds): New function.
5835 (get_type_length): New function.
5836 (check_typedef): Use get_type_length to compute type length.
5837 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5838 (TYPE_LOW_BOUND_KIND): New macro.
5839 (is_dynamic_type): New function prototype.
5840 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5841 to resolve dynamic properties of the type. Update comment.
5842 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5844 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5846 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5847 declaring high/low bounds and change uses accordingly. Call
5848 create_range_type instead of create_static_range_type.
5849 * gdbtypes.c (create_range_type): New function.
5850 (create_range_type): Convert bounds into struct bound_prop and pass
5851 them to create_range_type.
5852 * gdbtypes.h (struct bound_prop): New struct.
5853 (create_range_type): New function prototype.
5854 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5855 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5856 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5858 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5860 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5862 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5863 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5864 * ada-lang.c: All uses of create_range_type updated.
5865 * coffread.c: All uses of create_range_type updated.
5866 * dwarf2read.c: All uses of create_range_type updated.
5867 * f-exp.y: All uses of create_range_type updated.
5868 * m2-valprint.c: All uses of create_range_type updated.
5869 * mdebugread.c: All uses of create_range_type updated.
5870 * stabsread.c: All uses of create_range_type updated.
5871 * valops.c: All uses of create_range_type updated.
5872 * valprint.c: All uses of create_range_type updated.
5874 2014-04-10 Pedro Alves <palves@redhat.com>
5876 * breakpoint.c (single_step_breakpoints)
5877 (single_step_gdbarch): Move up in the file.
5878 (one_breakpoint_xfer_memory): New function, factored out from ...
5879 (breakpoint_xfer_memory): ... here. Also process single-step
5882 2014-04-09 Tristan Gingold <gingold@adacore.com>
5884 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5886 (darwin_decode_exception_message): Free port only after use.
5888 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5890 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5891 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5892 when setting the size of call_length.
5894 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5896 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5897 dereference TYPE_CODE_REF values.
5899 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5901 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5902 end of warning message.
5904 2014-04-03 Doug Evans <dje@google.com>
5906 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5907 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5909 2014-04-02 Alan Modra <amodra@gmail.com>
5911 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5912 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5913 (struct symbol_file_add_from_memory_args): Add size field.
5914 (find_vdso_size): New function.
5915 (add_vsyscall_page): Attempt to find vdso size.
5917 2014-04-01 Doug Evans <dje@google.com>
5919 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5921 2014-04-01 Tristan Gingold <gingold@adacore.com>
5923 * darwin-nat.c (darwin_encode_reply): Add prototype.
5924 (darwin_decode_exception_message): Reply to unknown inferiors.
5925 (darwin_decode_message): Handle message by id. Ignore message
5926 to unknown inferior.
5927 (darwin_wait): Discard unknown messages, add debug trace.
5929 2014-03-31 Doug Evans <dje@google.com>
5931 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5934 2014-03-31 Doug Evans <dje@google.com>
5936 New option "set print symbol-loading".
5938 * solib.c (solib_read_symbols): Only print symbol loading messages
5940 (solib_add): If symbol loading is in "brief" mode, notify user
5941 symbols are being loaded.
5942 (reload_shared_libraries_1): Ditto.
5943 * symfile.c (print_symbol_loading_off): New static global.
5944 (print_symbol_loading_brief): New static global.
5945 (print_symbol_loading_full): New static global.
5946 (print_symbol_loading_enums): New static global.
5947 (print_symbol_loading): New static global.
5948 (print_symbol_loading_p): New function.
5949 (symbol_file_add_with_addrs): Only print symbol loading messages
5951 (_initialize_symfile): Register "print symbol-loading" set/show
5953 * symfile.h (print_symbol_loading_p): Declare.
5955 2014-03-30 Doug Evans <xdje42@gmail.com>
5957 * infrun.c (set_last_target_status): New function.
5958 (handle_inferior_event): Call it.
5960 2014-03-30 Doug Evans <xdje42@gmail.com>
5962 * inferior.h (enum stop_kind): Improve comment.
5964 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5966 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5967 a reference, strip the reference layer before calling
5968 the lang_ops value_has_mutated callback.
5970 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5972 Remove some globals from our parser.
5973 * language.c (unk_lang_parser): Add "struct parser_state"
5975 * language.h (struct language_defn) <la_parser>: Likewise.
5976 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5977 (initialize_expout): Add "struct parser_state" argument.
5978 Rewrite function to use the parser state.
5979 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5980 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5981 write_exp_elt_longcst, write_exp_elt_dblcst,
5982 write_exp_elt_decfloatcst, write_exp_elt_type,
5983 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5984 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5985 write_dollar_variable): Likewise.
5986 (parse_exp_in_context_1): Use parser state.
5987 (insert_type_address_space): Add "struct parser_state" argument.
5989 (increase_expout_size): New function.
5990 * parser-defs.h: Forward declare "struct language_defn" and
5991 "struct parser_state".
5992 (expout, expout_size, expout_ptr): Remove extern declarations.
5993 (parse_gdbarch, parse_language): Rewrite macro declarations to
5994 accept the parser state.
5995 (struct parser_state): New struct.
5996 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5997 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5998 write_exp_elt_decfloatcst, write_exp_elt_type,
5999 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6000 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6001 write_exp_msymbol, write_dollar_variable,
6002 mark_struct_expression, insert_type_address_space): Add "struct
6003 parser_state" argument.
6004 (increase_expout_size): New function.
6005 * utils.c (do_clear_parser_state): New function.
6006 (make_cleanup_clear_parser_state): Likewise.
6007 * utils.h (make_cleanup_clear_parser_state): New function
6009 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6010 Update calls to write_exp* in order to pass the parser state.
6011 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6012 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6013 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6014 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6015 * stap-probe.c (stap_parse_register_operand): Likewise.
6016 (stap_parse_single_operand): Likewise.
6017 (stap_parse_argument_1): Likewise.
6018 (stap_parse_argument): Use parser state.
6019 * stap-probe.h: Include "parser-defs.h".
6020 (struct stap_parse_info) <pstate>: New field.
6021 * c-exp.y (parse_type): Rewrite to use parser state.
6022 (yyparse): Redefine to c_parse_internal.
6023 (pstate): New global variable.
6024 (parse_number): Add "struct parser_state" argument.
6025 (write_destructor_name): Likewise.
6026 (type_exp): Update calls to write_exp* and similars in order to
6028 (exp1, exp, variable, qualified_name, space_identifier,
6029 typename, typebase): Likewise.
6030 (write_destructor_name, parse_number, lex_one_token,
6031 classify_name, classify_inner_name, c_parse): Add "struct
6032 parser_state" argument. Update function to use parser state.
6033 * c-lang.h: Forward declare "struct parser_state".
6034 (c_parse): Add "struct parser_state" argument.
6035 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6036 (yyparse): Redefine macro to ada_parse_internal.
6037 (pstate): New variable.
6038 (write_int, write_object_renaming, write_var_or_type,
6039 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6040 type_int, type_long, type_long_long, type_float, type_double,
6041 type_long_double, type_char, type_boolean, type_system_address):
6042 Add "struct parser_state" argument.
6043 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6044 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6045 var_or_type, aggregate, aggregate_component_list,
6046 positional_list, others, component_group,
6047 component_associations): Update calls to write_exp* and similar
6048 functions in order to use parser state.
6049 (ada_parse, write_var_from_sym, write_int,
6050 write_exp_op_with_string, write_object_renaming,
6051 find_primitive_type, write_selectors, write_ambiguous_var,
6052 write_var_or_type, write_name_assoc, type_int, type_long,
6053 type_long_long, type_float, type_double, type_long_double,
6054 type_char, type_boolean, type_system_address): Add "struct
6055 parser_state" argument. Adjust function to use parser state.
6056 * ada-lang.c (parse): Likewise.
6057 * ada-lang.h: Forward declare "struct parser_state".
6058 (ada_parse): Add "struct parser_state" argument.
6059 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6060 calls to both functions.
6061 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6063 (yyparse): Redefine macro to f_parse_internal.
6064 (pstate): New variable.
6065 (parse_number): Add "struct parser_state" argument.
6066 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6067 and similars in order to use parser state.
6068 (parse_number): Adjust code to use parser state.
6070 (f_parse): New function.
6071 * f-lang.h: Forward declare "struct parser_state".
6072 (f_parse): Add "struct parser_state" argument.
6073 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6075 (yyparse): Redefine macro for java_parse_internal.
6076 (pstate): New variable.
6077 (push_expression_name, push_expression_name, insert_exp): Add
6078 "struct parser_state" argument.
6079 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6080 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6081 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6082 PostIncrementExpression, PostDecrementExpression,
6083 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6084 UnaryExpressionNotPlusMinus, CastExpression,
6085 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6086 RelationalExpression, EqualityExpression, AndExpression,
6087 ExclusiveOrExpression, InclusiveOrExpression,
6088 ConditionalAndExpression, ConditionalOrExpression,
6089 ConditionalExpression, Assignment, LeftHandSide): Update
6090 calls to write_exp* and similars in order to use parser state.
6091 (parse_number): Ajust code to use parser state.
6093 (java_parse): New function.
6094 (push_variable): Add "struct parser_state" argument. Adjust
6095 code to user parser state.
6096 (push_fieldnames, push_qualified_expression_name,
6097 push_expression_name, insert_exp): Likewise.
6098 * jv-lang.h: Forward declare "struct parser_state".
6099 (java_parse): Add "struct parser_state" argument.
6100 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6102 (yyparse): Redefine macro to m2_parse_internal.
6103 (pstate): New variable.
6104 (type_exp, exp, fblock, variable, type): Update calls to
6105 write_exp* and similars to use parser state.
6107 (m2_parse): New function.
6108 * m2-lang.h: Forward declare "struct parser_state".
6109 (m2_parse): Add "struct parser_state" argument.
6110 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6111 * objc-lang.h: Forward declare "struct parser_state".
6112 (end_msglist): Add "struct parser_state" argument.
6113 * p-exp.y (parse_type): Rewrite macro to use parser state.
6114 (yyparse): Redefine macro to pascal_parse_internal.
6115 (pstate): New variable.
6116 (parse_number): Add "struct parser_state" argument.
6117 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6118 write_exp* and similars in order to use parser state.
6119 (parse_number, yylex): Adjust code to use parser state.
6120 (pascal_parse): New function.
6121 * p-lang.h: Forward declare "struct parser_state".
6122 (pascal_parse): Add "struct parser_state" argument.
6123 * go-exp.y (parse_type): Rewrite macro to use parser state.
6124 (yyparse): Redefine macro to go_parse_internal.
6125 (pstate): New variable.
6126 (parse_number): Add "struct parser_state" argument.
6127 (type_exp, exp1, exp, variable, type): Update calls to
6128 write_exp* and similars in order to use parser state.
6129 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6130 to use parser state.
6131 (go_parse): Likewise.
6132 * go-lang.h: Forward declare "struct parser_state".
6133 (go_parse): Add "struct parser_state" argument.
6135 2014-03-27 Doug Evans <dje@google.com>
6137 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6139 2014-03-27 Doug Evans <dje@google.com>
6141 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6142 Remove argument abbrev_section. All callers updated.
6144 2014-03-27 Doug Evans <dje@google.com>
6146 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6147 addr_base, ranges_base.
6149 2014-03-26 Keith Seitz <keiths@redhat.com>
6151 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6152 types, not VAR_DOMAIN.
6154 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6156 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6158 * features/nios2-linux.c: Regenerated.
6159 * features/nios2.c: Regenerated.
6161 2014-03-25 Pedro Alves <palves@redhat.com>
6163 * cli/cli-script.c (script_from_file): Force the interpreter to
6166 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6168 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6169 small stack allocation.
6171 2014-03-24 Tristan Gingold <gingold@adacore.com>
6173 * darwin-nat.c (exc_server): Remove unused prototype.
6174 (darwin_dump_message): Correctly display data on x86_64.
6175 (darwin_encode_reply): Fix style.
6176 Add comments and fix indentation.
6178 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6180 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6182 2014-03-22 Doug Evans <xdje42@gmail.com>
6184 * infcmd.c: Whitespace fixes.
6185 (interrupt_command): Merge two function comments into one.
6187 2014-03-22 Doug Evans <xdje42@gmail.com>
6189 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6192 2014-03-22 Yao Qi <yao@codesourcery.com>
6194 * remote.c (target_read_live_memory): Remove.
6195 (memory_xfer_live_readonly_partial): Rename it to
6196 remote_xfer_live_readonly_partial. Remove argument 'object'.
6197 All callers updated. Call remote_read_bytes_1
6198 instead of target_read_live_memory.
6199 * tracepoint.c (set_traceframe_number): Remove.
6200 (make_cleanup_restore_traceframe_number): Likewise .
6201 * tracepoint.h (set_traceframe_number): Remove declaration.
6202 (make_cleanup_restore_traceframe_number): Likewise.
6204 2014-03-22 Yao Qi <yao@codesourcery.com>
6206 * remote.c (remote_read_bytes): Move code on reading from the
6208 (remote_read_bytes_1): ... here. New function.
6210 2014-03-22 Yao Qi <yao@codesourcery.com>
6212 * ctf.c (ctf_xfer_partial): Check the return value of
6213 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6214 return TARGET_XFER_UNAVAILABLE.
6215 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6216 * target.c (target_read_live_memory): Move it to remote.c.
6217 (memory_xfer_live_readonly_partial): Likewise.
6218 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6219 * remote.c (target_read_live_memory): Moved from target.c.
6220 (memory_xfer_live_readonly_partial): Likewise.
6221 (remote_read_bytes): Factored out from
6222 memory_xfer_partial_1.
6224 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6226 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6229 2014-03-21 Pedro Alves <palves@redhat.com>
6231 * infrun.c (normal_stop): Extend comment.
6233 2014-03-21 Hui Zhu <hui@codesourcery.com>
6234 Pedro Alves <palves@redhat.com>
6236 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6238 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6239 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6240 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6242 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6244 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6245 `z' formatted output modifier.
6247 2014-03-20 Tom Tromey <tromey@redhat.com>
6248 Sergio Durigan Junior <sergiodj@redhat.com>
6250 * probe.c (parse_probes): Turn assert into an ordinary error.
6251 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6252 exceptions when parsing probes. Rearrange the code for clarity.
6254 2014-03-20 Tom Tromey <tromey@redhat.com>
6257 * top.c (execute_command): Only dispatch events if the command
6260 2014-03-20 Tom Tromey <tromey@redhat.com>
6263 * infcall.c: Include event-top.h.
6264 (run_inferior_call): Call async_disable_stdin if needed.
6266 2014-03-20 Pedro Alves <palves@redhat.com>
6268 * infrun.c (prepare_to_proceed): Delete.
6269 (thread_still_needs_step_over): New function.
6270 (find_thread_needs_step_over): New function.
6271 (proceed): If the current thread needs a step-over, set its
6272 steping_over_breakpoint flag. Adjust to use
6273 find_thread_needs_step_over instead of prepare_to_proceed.
6274 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6275 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6277 (switch_back_to_stepped_thread): Step over breakpoints of all
6278 threads not the stepping thread, before switching back to the
6281 2014-03-20 Pedro Alves <palves@redhat.com>
6283 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6285 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6286 * infrun.c (saved_singlestep_ptid)
6287 (stepping_past_singlestep_breakpoint): Delete.
6288 (resume): Remove stepping_past_singlestep_breakpoint handling.
6289 (proceed): Store the prev_pc of the stepping thread too.
6290 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6292 (enum infwait_states): Delete infwait_thread_hop_state.
6293 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6295 (handle_inferior_event): Adjust.
6296 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6297 handling and the thread-hop code. Before removing single-step
6298 breakpoints, check whether the thread hit a single-step breakpoint
6299 of another thread. If it did, the trap is not a random signal.
6300 (switch_back_to_stepped_thread): If the event thread hit a
6301 single-step breakpoint, unblock it before switching to the
6302 stepping thread. Handle the case of the stepped thread having
6304 (keep_going): Handle the case of the current thread moving past a
6305 single-step breakpoint.
6307 2014-03-20 Pedro Alves <palves@redhat.com>
6310 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6311 are being stepped over.
6312 (breakpoint_address_match): Make extern.
6313 * breakpoint.h (breakpoint_address_match): New declaration.
6314 * inferior.h (stepping_past_instruction_at): New declaration.
6315 * infrun.c (struct step_over_info): New type.
6316 (step_over_info): New global.
6317 (set_step_over_info, clear_step_over_info)
6318 (stepping_past_instruction_at): New functions.
6319 (handle_inferior_event): Clear the step-over info when
6320 trap_expected is cleared.
6321 (resume): Remove now stale comment.
6322 (clear_proceed_status): Clear step-over info.
6323 (proceed): Adjust step-over handling to set or clear the step-over
6324 info instead of removing all breakpoints.
6325 (handle_signal_stop): When setting up a thread-hop, don't remove
6327 (stop_stepping): Clear step-over info.
6328 (keep_going): Adjust step-over handling to set or clear step-over
6329 info and then always inserting breakpoints, instead of removing
6330 all breakpoints when stepping over one.
6332 2014-03-20 Pedro Alves <palves@redhat.com>
6334 * infrun.c (previous_inferior_ptid): Adjust comment.
6335 (deferred_step_ptid): Delete.
6336 (infrun_thread_ptid_changed, prepare_to_proceed)
6337 (init_wait_for_inferior): Adjust.
6338 (handle_signal_stop): Delete deferred_step_ptid handling.
6340 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6343 * defs.h (sync_quit_force_run): New declaration.
6344 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6345 * event-top.c (async_sigterm_handler): New declaration.
6346 (async_sigterm_token): New variable.
6347 (async_init_signals): Create also async_sigterm_token.
6348 (async_sigterm_handler): New function.
6349 (sync_quit_force_run): New variable.
6350 (handle_sigterm): Replace quit_force call by other calls.
6351 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6353 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6355 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6356 offset into SPE pseudo registers.
6358 2014-03-18 Pedro Alves <palves@redhat.com>
6361 * inferior.h (print_stop_event): Declare.
6362 * infrun.c (print_stop_event): New, factored out from ...
6363 (normal_stop): ... this.
6364 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6365 of bpstat_print/print_stack_frame.
6367 2014-03-17 Tom Tromey <tromey@redhat.com>
6369 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6371 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6373 * ada-lang.c (decode_constrained_packed_array): Perform a
6374 minimal coercion for reference with coerce_ref instead of
6377 2014-03-17 Tristan Gingold <gingold@adacore.com>
6379 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6380 (darwin_solib_create_inferior_hook): Emit a warning if version
6383 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6385 * python/py-value.c (get_field_flag): Cast flag_name argument to
6386 PyObject_GetAttrString to support Python 2.4.
6388 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6390 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6391 (Global Maintainers): Remove Jan Kratochvil.
6393 2014-03-14 Pedro Alves <palves@redhat.com>
6395 * inferior.h (terminal_ours_for_output): Rename to ...
6396 (child_terminal_ours_for_output): ... this.
6397 (terminal_save_ours): Rename to ...
6398 (child_terminal_save_ours): ... this.
6399 (terminal_ours): Rename to ...
6400 (child_terminal_ours): ... this.
6401 (terminal_inferior): Rename to ...
6402 (child_terminal_inferior): ... this.
6403 (terminal_init_inferior): Rename to ...
6404 (child_terminal_init_inferior): ... this.
6405 (terminal_init_inferior_with_pgrp): Rename to ...
6406 (child_terminal_init_inferior_with_pgrp): ... this.
6407 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6408 (child_terminal_init_with_pgrp): ... this.
6409 (terminal_save_ours): Rename to ...
6410 (child_terminal_save_ours): ... this.
6411 (terminal_init_inferior): Rename to ...
6412 (child_terminal_init): ... this. Adjust.
6413 (terminal_inferior): Rename to ...
6414 (child_terminal_inferior): ... this.
6415 (terminal_ours_for_output): Rename to ...
6416 (child_terminal_ours_for_output): ... this. Adjust.
6417 (terminal_ours): Rename to ...
6418 (child_terminal_ours): ... this.
6419 (terminal_ours_1): Rename to ...
6420 (child_terminal_ours_1): ... this. Adjust.
6421 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6422 * windows-nat.c (do_initial_windows_stuff): Adjust.
6423 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6424 (gnu_terminal_init): ... this. Adjust.
6425 (gnu_target): Adjust.
6426 * inf-child.c (inf_child_target): Adjust.
6428 2014-03-13 Doug Evans <xdje42@gmail.com>
6431 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6434 2014-03-13 Doug Evans <xdje42@gmail.com>
6436 * value.c (record_latest_value): Call release_value_or_incref
6437 instead of release_value.
6439 2014-03-13 Pedro Alves <palves@redhat.com>
6441 * procfs.c (procfs_target): Don't override to_shortname,
6442 to_longname or to_doc.
6444 2014-03-13 Pedro Alves <palves@redhat.com>
6446 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6447 Unix in user visible strings.
6449 2014-03-12 Stan Shebs <stan@codesourcery.com>
6451 * gdbtypes.h: Annotate comments for Doxygen, add a page
6452 block comment with some general info.
6454 2014-03-12 Pedro Alves <palves@redhat.com>
6456 * infcmd.c (prepare_execution_command): New function, factored out
6457 from several execution commands.
6458 (run_command_1, continue_command, step_1, jump_command)
6459 (signal_command, until_command, advance_command, finish_command)
6460 (attach_command): Use prepare_execution_command.
6462 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6464 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6467 (struct arm_linux_thread_points): Removed.
6468 (struct arm_linux_process_info): New.
6469 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6470 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6471 (arm_linux_find_breakpoints_by_tid): Removed.
6472 (struct arch_lwp_info): New.
6473 (arm_linux_find_process_pid): New functions.
6474 (arm_linux_add_process): New functions.
6475 (arm_linux_process_info_get): New functions.
6476 (arm_linux_forget_process): New function.
6477 (arm_linux_get_debug_reg_state): New function.
6478 (struct update_registers_data): New.
6479 (update_registers_callback): New function.
6480 (arm_linux_insert_hw_breakpoint1): Updated.
6481 (arm_linux_remove_hw_breakpoint1): Updated.
6482 (arm_linux_insert_hw_breakpoint): Updated.
6483 (arm_linux_remove_hw_breakpoint): Updated.
6484 (arm_linux_insert_watchpoint): Updated.
6485 (arm_linux_remove_watchpoint): Updated.
6486 (arm_linux_new_thread): Updated.
6487 (arm_linux_prepare_to_resume): New function.
6488 (arm_linux_new_fork): New function.
6489 (_initialize_arm_linux_nat): Updated.
6491 2014-03-12 Pedro Alves <palves@redhat.com>
6493 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6495 2014-03-12 Tom Tromey <tromey@redhat.com>
6497 * inf-child.c (return_zero): New function.
6498 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6499 * aix-thread.c (aix_thread_inferior_created): New function.
6500 (aix_thread_attach): Remove.
6501 (init_aix_thread_ops): Don't set to_attach.
6502 (_initialize_aix_thread): Register inferior_created observer.
6503 * corelow.c (init_core_ops): Don't set to_attach or
6505 * exec.c (init_exec_ops): Don't set to_attach or
6507 * infcmd.c (run_command_1): Use find_run_target. Make direct
6509 (attach_command): Use find_attach_target. Make direct target
6511 * record-btrace.c (init_record_btrace_ops): Don't set
6513 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6515 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6516 set to_create_inferior.
6517 * target.c (complete_target_initialization): Add assertion.
6518 (target_create_inferior): Remove.
6519 (find_default_attach, find_default_create_inferior): Remove.
6520 (find_attach_target, find_run_target): New functions.
6521 (find_default_is_async_p, find_default_can_async_p)
6522 (target_supports_non_stop, target_attach): Remove.
6523 (init_dummy_target): Don't set to_create_inferior or
6524 to_supports_non_stop.
6525 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6526 TARGET_DEFAULT_FUNC.
6527 <to_create_inferior>: Add comment.
6528 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6529 TARGET_DEFAULT_RETURN.
6530 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6531 (find_attach_target, find_run_target): Declare.
6532 (target_create_inferior): Remove.
6533 (target_has_execution_1): Update comment.
6534 (target_supports_non_stop): Remove.
6535 * target-delegates.c: Rebuild.
6537 2014-03-12 Pedro Alves <palves@redhat.com>
6539 * inf-child.h: Update comment to not mention Unix.
6541 2014-03-12 Pedro Alves <palves@redhat.com>
6543 * inf-child.c: Update top comment to not mention Unix. Add
6544 generic comment describing how this target is meant to be used.
6545 (inf_child_post_attach, inf_child_post_startup_inferior)
6546 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6549 2014-03-12 Pedro Alves <palves@redhat.com>
6551 * nto-procfs.c: Include inf-child.h.
6552 (procfs_ops): Delete global.
6553 (procfs_can_run): Delete method.
6554 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6555 target pointer instead of referencing procfs_ops.
6556 (procfs_prepare_to_store): Delete.
6557 (init_procfs_ops): Delete function.
6558 (procfs_target): New function, based on init_procfs_ops, but
6559 inherit inf_child_target.
6560 (_initialize_procfs): Use procfs_target.
6562 2014-03-12 Pedro Alves <palves@redhat.com>
6564 * windows-nat.c: Include inf-child.h.
6565 (windows_ops): Delete global.
6566 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6568 (init_windows_ops): Delete function.
6569 (windows_target): New function, based on init_windows_ops, but
6570 inherit inf_child_target.
6571 (_initialize_windows_nat): Use windows_target. Install x86
6572 specific target methods here.
6574 2014-03-10 Doug Evans <xdje42@gmail.com>
6576 * guile/guile.c (call_initialize_gdb_module): New function.
6577 (initialize_guile): Replace call to scm_init_guile with call to
6580 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6582 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6583 in call to TYPE_CODE macro.
6585 2014-03-10 Jerome Guitton <guitton@adacore.com>
6587 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6588 Resolve tagged types to full view.
6590 2014-03-10 Hui Zhu <hui@codesourcery.com>
6592 * target.h (target_insert_breakpoint): Remove "hardware" from its
6595 2014-03-07 Doug Evans <dje@google.com>
6597 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6599 2014-03-07 Doug Evans <dje@google.com>
6601 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6602 Remove unused local comp_dir_attr. Assert exactly one of
6603 stub_comp_unit_die, stub_comp_dir is non-NULL.
6605 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6607 * target.h (complete_target_initialization, add_target):
6610 2014-03-07 Pedro Alves <palves@redhat.com>
6612 * go32-nat.c: Include inf-child.h.
6613 (go32_ops): Delete global.
6614 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6616 (go32_create_inferior): Push the passed in target pointer instead
6617 of referencing go32_ops.
6618 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6619 (go32_target): New function, based on init_go32_ops, but inherit
6621 (_initialize_go32_nat): Use go32_target. Move parts of
6624 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6626 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6627 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6628 SYMBOL_VALUE_ADDRESS.
6629 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6631 2014-03-06 Yao Qi <yao@codesourcery.com>
6633 * breakpoint.c (get_tracepoint_by_number): Remove argument
6634 optional_p. All callers updated. Adjust comments. Update
6636 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6638 2014-03-06 Yao Qi <yao@codesourcery.com>
6640 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6641 early if get_number returns zero. Use 'p' instead of 'args'.
6643 2014-03-06 Yao Qi <yao@codesourcery.com>
6645 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6648 2014-03-06 Yao Qi <yao@codesourcery.com>
6650 PR breakpoints/16508
6651 * tracepoint.c (check_trace_running): New function.
6652 (trace_find_command): Move code to check_trace_running and
6653 call check_trace_running.
6654 (trace_find_pc_command): Likewise.
6655 (trace_find_tracepoint_command): Likewise.
6656 (trace_find_line_command): Likewise.
6657 (trace_find_range_command): Likewise.
6658 * tracepoint.h (check_trace_running): Likewise.
6659 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6661 2014-03-06 Yao Qi <yao@codesourcery.com>
6663 * target.h (struct target_ops) <to_traceframe_info>: Use
6664 TARGET_DEFAULT_NORETURN (tcomplain ()).
6665 * target-delegates.c: Regenerated.
6667 2014-03-05 Pedro Alves <palves@redhat.com>
6670 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6671 void. Update comment.
6672 (dcache_xfer_memory): Delete.
6673 (dcache_read_memory_partial): New, based on the read bits of
6675 (dcache_update): Add status parameter. Use ULONGEST for len, and
6676 adjust. Discard cache lines if the reason for the update was
6678 * dcache.h (dcache_xfer_memory): Delete declaration.
6679 (dcache_read_memory_partial): New declaration.
6680 (dcache_update): Update prototype.
6681 * target.c (raw_memory_xfer_partial): Update the dcache here.
6682 (memory_xfer_partial_1): Don't handle dcache writes here.
6684 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6686 * remote-sim.c (gdbsim_load): Add const to prog.
6688 2014-03-03 Tom Tromey <tromey@redhat.com>
6690 * elfread.c (probe_key): Change to bfd_data.
6691 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6692 now per-BFD, not per-objfile.
6693 * stap-probe.c (stap_probe_destroy): Update comment.
6694 (handle_stap_probe): Allocate on the per-BFD obstack.
6696 2014-03-03 Tom Tromey <tromey@redhat.com>
6698 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6699 * breakpoint.c (create_longjmp_master_breakpoint): Use
6701 (add_location_to_breakpoint, bkpt_probe_insert_location)
6702 (bkpt_probe_remove_location): Update.
6703 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6704 * elfread.c (elf_symfile_relocate_probe): Remove.
6705 (elf_probe_fns): Update.
6706 (insert_exception_resume_breakpoint): Change type of "probe"
6707 parameter to bound_probe.
6708 (check_exception_resume): Update.
6709 * objfiles.c (objfile_relocate1): Don't relocate probes.
6710 * probe.c (bound_probe_s): New typedef.
6711 (parse_probes): Use get_probe_address. Set sal's objfile.
6712 (find_probe_by_pc): Return a bound_probe.
6713 (collect_probes): Return a VEC(bound_probe_s).
6714 (compare_probes): Update.
6715 (gen_ui_out_table_header_info): Change type of "probes"
6717 (info_probes_for_ops): Update.
6718 (get_probe_address): New function.
6719 (probe_safe_evaluate_at_pc): Update.
6720 * probe.h (struct probe_ops) <get_probe_address>: New field.
6721 <set_semaphore, clear_semaphore>: Add objfile parameter.
6722 (struct probe) <objfile>: Remove field.
6724 <address>: Update comment.
6725 (struct bound_probe): New.
6726 (find_probe_by_pc): Return a bound_probe.
6727 (get_probe_address): Declare.
6728 * solib-svr4.c (struct probe_and_action) <address>: New field.
6729 (hash_probe_and_action, equal_probe_and_action): Update.
6730 (register_solib_event_probe): Add address parameter.
6731 (solib_event_probe_at): Update.
6732 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6734 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6735 (stap_get_probe_address): New function.
6736 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6737 (compile_probe_arg): Update.
6738 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6740 (handle_stap_probe): Don't relocate the probe.
6741 (stap_relocate): Remove.
6742 (stap_gen_info_probes_table_values): Update.
6743 (stap_probe_ops): Remove stap_relocate.
6744 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6745 (debug_sym_probe_fns): Update.
6746 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6747 * symtab.c (init_sal): Use memset.
6748 * symtab.h (struct symtab_and_line) <objfile>: New field.
6749 * tracepoint.c (start_tracing, stop_tracing): Update.
6751 2014-03-03 Tom Tromey <tromey@redhat.com>
6753 * probe.h (parse_probes, find_probe_by_pc)
6754 (find_probes_in_objfile): Fix comments.
6756 2014-03-02 Doug Evans <xdje42@gmail.com>
6758 * infrun.c (handle_signal_stop): Replace test for
6759 TARGET_WAITKIND_STOPPED with an assert.
6761 2014-03-02 Doug Evans <xdje42@gmail.com>
6763 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6765 2014-03-02 Doug Evans <xdje42@gmail.com>
6767 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6769 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6771 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6773 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6775 * i386obsd-nat.c: Include "obsd-nat.h".
6776 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6778 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6780 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6782 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6784 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6786 * mips64obsd-nat.c: Include "obsd-nath".
6787 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6789 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6791 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6793 * amd64obsd-nat.c: Include "obsd-nat,h.
6794 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6796 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6798 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6800 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6801 (find_overload_match): Update call to find_oload_champ.
6802 (find_oload_champ_namespace_loop): Likewise
6804 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6806 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6808 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6809 * config/sparc/obsd64.mh: New file.
6810 * sparc64obsd-nat.c: New file.
6812 * obsd-nat.h: New file.
6813 * obsd-nat.c: New file.
6814 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6815 (ALLDEPFILES): Add obsd-nat.c.
6817 2014-02-28 Tom Tromey <tromey@redhat.com>
6819 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6820 * cli-out.h (cli_ui_out_impl): Now const.
6821 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6822 * ui-out.c (struct ui_out) <impl>: Now const.
6823 (default_ui_out_impl): Now const.
6824 (ui_out_new): Make 'impl' parameter const.
6825 * ui-out.h (ui_out_new): Update.
6827 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6829 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6831 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6833 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6835 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6837 Additional PR 8882 fix.
6838 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6840 2014-02-27 Pedro Alves <palves@redhat.com>
6842 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6845 2014-02-27 Pedro Alves <palves@redhat.com>
6848 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6849 * nat/linux-waitpid.c: Include string.h.
6850 (status_to_str): Moved here and made extern.
6851 * nat/linux-waitpid.h (status_to_str): New declaration.
6853 2014-02-27 Hui Zhu <hui@codesourcery.com>
6856 * infrun.c (ptid_match): Move ...
6857 * common/ptid.c (ptid_match): ... here.
6858 * inferior.h (ptid_match): Move ...
6859 * common/ptid.h (ptid_match): ... here.
6861 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6863 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6864 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6867 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6869 * obsd-tdep.c (obsd_auxv_parse): New function.
6870 (obsd_init_abi): Set auxv_parse.
6872 * gdbarch.sh (auxv_parse): New.
6873 * gdbarch.h: Regenerated.
6874 * gdbarch.c: Regenerated.
6875 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6877 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6879 * guile/scm-value.c (gdbscm_history_append_x): New function.
6880 (value_functions): Add it.
6882 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6884 * dwarf2read.c (attr_value_as_address): New function.
6885 (dwarf2_find_base_address, read_call_site_scope): Use
6886 attr_value_as_address in place of DW_ADDR.
6887 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6888 the low and high addresses. Slight rework of the handling
6889 of the high pc being a constant form, and limit it to
6890 DWARF verson 4 or higher.
6891 (dwarf2_record_block_ranges): Likewise.
6892 (read_partial_die): Likewise.
6893 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6895 2014-02-26 Tom Tromey <tromey@redhat.com>
6897 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6899 2014-02-26 Tom Tromey <tromey@redhat.com>
6901 * elfread.c (elf_read_minimal_symbols): Return early if
6902 minimal symbols have already been read. Add "ei" parameter.
6903 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6904 * minsyms.c (prim_record_minimal_symbol_full): Update.
6905 * objfiles.h (struct objstats) <n_minsyms>: Move...
6906 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6907 * symmisc.c (print_objfile_statistics): Update.
6909 2014-02-26 Tom Tromey <tromey@redhat.com>
6911 * elfread.c (elf_read_minimal_symbols): New function, from
6913 (elf_symfile_read): Call it.
6915 2014-02-26 Tom Tromey <tromey@redhat.com>
6917 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6918 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6919 (lookup_minimal_symbol_solib_trampoline)
6920 (lookup_minimal_symbol_by_pc_section_1)
6921 (lookup_minimal_symbol_and_objfile): Update.
6922 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6923 Don't allocate a minimal symbol if minsyms have already been read.
6924 (build_minimal_symbol_hash_tables): Update.
6925 (install_minimal_symbols): Do nothing if minsyms already read.
6926 Use the per-BFD obstack.
6927 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6928 * objfiles.c (allocate_objfile): Call
6929 terminate_minimal_symbol_table later.
6930 (have_minimal_symbols): Update.
6931 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6932 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6933 Move from struct objfile.
6934 <minsyms_read>: New field.
6935 (struct objfile) <msymbols, minimal_symbol_count,
6936 msymbol_hash, msymbol_demangled_hash>: Move.
6937 (ALL_OBJFILE_MSYMBOLS): Update.
6938 * symfile.c (read_symbols): Set minsyms_read.
6939 (reread_symbols): Update.
6940 * symmisc.c (dump_objfile, dump_msymbols): Update.
6942 2014-02-26 Tom Tromey <tromey@redhat.com>
6944 * minsyms.c (msymbols_sort): Remove.
6945 * minsyms.h (msymbols_sort): Remove.
6946 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6947 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6948 * elfread.c (elf_symtab_read): Don't add section offsets.
6949 * xcoffread.c (record_minimal_symbol): Don't add section offset
6950 to minimal symbol address.
6951 * somread.c (text_offset, data_offset): Remove.
6952 (som_symtab_read): Don't add section offsets to minimal symbol
6954 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6955 Don't add section offsets to minimal symbols.
6956 * coffread.c (coff_symtab_read): Don't add section offsets
6957 to minimal symbol addresses.
6958 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6959 to minimal symbol addresses.
6960 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6961 section offset to minimal symbol addresses.
6962 * mdebugread.c (parse_partial_symbols): Don't add section
6963 offset to minimal symbol addresses.
6964 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6965 offset to minimal symbol addresses.
6967 2014-02-26 Tom Tromey <tromey@redhat.com>
6969 * ada-lang.c (ada_main_name): Update.
6970 (ada_add_standard_exceptions): Update.
6971 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6972 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6973 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6974 * auxv.c (ld_so_xfer_auxv): Update.
6975 * avr-tdep.c (avr_scan_prologue): Update.
6976 * ax-gdb.c (gen_var_ref): Update.
6977 * blockframe.c (get_pc_function_start)
6978 (find_pc_partial_function_gnu_ifunc): Update.
6979 * breakpoint.c (create_overlay_event_breakpoint)
6980 (create_longjmp_master_breakpoint)
6981 (create_std_terminate_master_breakpoint)
6982 (create_exception_master_breakpoint): Update.
6983 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6984 * c-valprint.c (c_val_print): Update.
6985 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6986 * common/agent.c (agent_look_up_symbols): Update.
6987 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6988 * dwarf2loc.c (call_site_to_target_addr): Update.
6989 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6990 * elfread.c (elf_gnu_ifunc_record_cache)
6991 (elf_gnu_ifunc_resolve_by_got): Update.
6992 * findvar.c (default_read_var_value): Update.
6993 * frame.c (inside_main_func): Update.
6994 * frv-tdep.c (frv_frame_this_id): Update.
6995 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6996 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6998 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6999 (hppa_hpux_find_dummy_bpaddr): Update.
7000 * hppa-tdep.c (hppa_symbol_address): Update.
7001 * infcmd.c (until_next_command): Update.
7002 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7004 * linespec.c (minsym_found, add_minsym): Update.
7005 * linux-nat.c (get_signo): Update.
7006 * linux-thread-db.c (inferior_has_bug): Update.
7007 * m32c-tdep.c (m32c_return_value)
7008 (m32c_m16c_address_to_pointer): Update.
7009 * m32r-tdep.c (m32r_frame_this_id): Update.
7010 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7011 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7012 * maint.c (maintenance_translate_address): Update.
7013 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7014 (frob_address): New function.
7015 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7016 frob_address. Rename parameter to "pc_in".
7017 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7019 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7021 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7022 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7023 * objc-lang.c (find_objc_msgsend): Update.
7024 * objfiles.c (objfile_relocate1): Update.
7025 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7026 * p-valprint.c (pascal_val_print): Update.
7027 * parse.c (write_exp_msymbol): Update.
7028 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7029 (ppc_elfv2_skip_entrypoint): Update.
7030 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7031 * printcmd.c (build_address_symbolic, msym_info)
7032 (address_info): Update.
7033 * proc-service.c (ps_pglobal_lookup): Update.
7034 * psymtab.c (find_pc_sect_psymtab_closer)
7035 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7036 Change msymbol parameter to bound_minimal_symbol.
7037 * ravenscar-thread.c (get_running_thread_id): Update.
7038 * remote.c (remote_check_symbols): Update.
7039 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7041 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7042 * solib-dsbt.c (lm_base): Update.
7043 * solib-frv.c (lm_base, main_got): Update.
7044 * solib-irix.c (locate_base): Update.
7045 * solib-som.c (som_solib_create_inferior_hook)
7046 (link_map_start): Update.
7047 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7048 * solib-svr4.c (elf_locate_base, enable_break): Update.
7049 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7050 (flush_ea_cache): Update.
7051 * stabsread.c (define_symbol, scan_file_globals): Update.
7052 * stack.c (find_frame_funname): Update.
7053 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7054 (debug_qf_find_pc_sect_symtab): Update.
7055 * symfile.c (simple_read_overlay_table)
7056 (simple_overlay_update): Update.
7057 * symfile.h (struct quick_symbol_functions)
7058 <find_pc_sect_symtab>: Change type of msymbol to
7059 bound_minimal_symbol.
7060 * symmisc.c (dump_msymbols): Update.
7061 * symtab.c (find_pc_sect_symtab_via_partial)
7062 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7063 (search_symbols, print_msymbol_info): Update.
7064 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7065 (MSYMBOL_VALUE_ADDRESS): Redefine.
7066 (BMSYMBOL_VALUE_ADDRESS): New macro.
7067 * tracepoint.c (scope_info): Update.
7068 * tui/tui-disasm.c (tui_find_disassembly_address)
7069 (tui_get_begin_asm_address): Update.
7070 * valops.c (find_function_in_inferior): Update.
7071 * value.c (value_static_field, value_fn_field): Update.
7073 2014-02-26 Tom Tromey <tromey@redhat.com>
7075 * ada-lang.c (ada_update_initial_language): Update.
7076 (ada_main_name, ada_has_this_exception_support): Update.
7077 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7078 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7079 * arm-tdep.c (arm_skip_stub): Update.
7080 * auxv.c (ld_so_xfer_auxv): Update.
7081 * avr-tdep.c (avr_scan_prologue): Update.
7082 * ax-gdb.c (gen_var_ref): Update.
7083 * breakpoint.c (struct breakpoint_objfile_data)
7084 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7085 type to bound_minimal_symbol.
7086 (create_overlay_event_breakpoint)
7087 (create_longjmp_master_breakpoint)
7088 (create_std_terminate_master_breakpoint)
7089 (create_exception_master_breakpoint): Update.
7090 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7091 * c-exp.y (classify_name): Update.
7092 * coffread.c (coff_symfile_read): Update.
7093 * common/agent.c (agent_look_up_symbols): Update.
7094 * d-lang.c (d_main_name): Update.
7095 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7096 * dec-thread.c (enable_dec_thread): Update.
7097 * dwarf2loc.c (call_site_to_target_addr): Update.
7098 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7099 * eval.c (evaluate_subexp_standard): Update.
7100 * findvar.c (struct minsym_lookup_data) <result>: Change type
7101 to bound_minimal_symbol.
7103 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7104 * frame.c (inside_main_func): Update.
7105 * frv-tdep.c (frv_frame_this_id): Update.
7106 * gcore.c (call_target_sbrk): Update.
7107 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7108 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7110 * go-lang.c (go_main_name): Update.
7111 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7112 (hppa_hpux_find_import_stub_for_addr): Update.
7113 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7114 Update. Change return type.
7115 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7117 * jit.c (jit_breakpoint_re_set_internal): Update.
7118 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7120 * linux-nat.c (get_signo): Update.
7121 * linux-thread-db.c (inferior_has_bug): Update
7122 * m32c-tdep.c (m32c_return_value)
7123 (m32c_m16c_address_to_pointer): Update.
7124 * m32r-tdep.c (m32r_frame_this_id): Update.
7125 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7126 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7127 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7128 lookup_minimal_symbol. Change return type.
7129 (lookup_minimal_symbol): Remove.
7130 (lookup_bound_minimal_symbol): Update.
7131 (lookup_minimal_symbol_text): Change return type.
7132 (lookup_minimal_symbol_solib_trampoline): Change return type.
7133 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7134 (lookup_minimal_symbol_solib_trampoline): Change return type.
7135 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7136 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7137 (value_nsstring, find_imps): Update.
7138 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7139 * p-lang.c (pascal_main_name): Update.
7140 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7141 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7142 * proc-service.c (ps_pglobal_lookup): Update.
7143 * ravenscar-thread.c (get_running_thread_msymbol): Change
7145 (has_ravenscar_runtime, get_running_thread_id): Update.
7146 * remote.c (remote_check_symbols): Update.
7147 * sol-thread.c (ps_pglobal_lookup): Update.
7148 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7149 * solib-dsbt.c (lm_base): Update.
7150 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7152 * solib-irix.c (locate_base): Update.
7153 * solib-som.c (som_solib_create_inferior_hook)
7154 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7156 * solib-spu.c (spu_enable_break): Update.
7157 * solib-svr4.c (elf_locate_base, enable_break): Update.
7158 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7159 (flush_ea_cache): Update.
7160 * stabsread.c (define_symbol): Update.
7161 * symfile.c (simple_read_overlay_table): Update.
7162 * symtab.c (find_pc_sect_line): Update.
7163 * tracepoint.c (scope_info): Update.
7164 * tui-disasm.c (tui_get_begin_asm_address): Update.
7165 * value.c (value_static_field): Update.
7167 2014-02-26 Tom Tromey <tromey@redhat.com>
7169 * minsyms.c (prim_record_minimal_symbol_full): Use
7170 SET_MSYMBOL_VALUE_ADDRESS.
7171 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7172 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7173 SET_MSYMBOL_VALUE_ADDRESS.
7174 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7175 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7177 2014-02-26 Tom Tromey <tromey@redhat.com>
7179 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7180 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7181 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7182 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7183 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7184 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7185 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7186 * ada-lang.c (ada_main_name): Update.
7187 (ada_lookup_simple_minsym): Update.
7188 (ada_make_symbol_completion_list): Update.
7189 (ada_add_standard_exceptions): Update.
7190 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7191 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7192 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7193 * arm-tdep.c (skip_prologue_function): Update.
7194 (arm_skip_stack_protector, arm_skip_stub): Update.
7195 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7196 (arm_wince_skip_main_prologue): Update.
7197 * auxv.c (ld_so_xfer_auxv): Update.
7198 * avr-tdep.c (avr_scan_prologue): Update.
7199 * ax-gdb.c (gen_var_ref): Update.
7200 * block.c (call_site_for_pc): Update.
7201 * blockframe.c (get_pc_function_start): Update.
7202 (find_pc_partial_function_gnu_ifunc): Update.
7203 * breakpoint.c (create_overlay_event_breakpoint): Update.
7204 (create_longjmp_master_breakpoint): Update.
7205 (create_std_terminate_master_breakpoint): Update.
7206 (create_exception_master_breakpoint): Update.
7207 (resolve_sal_pc): Update.
7208 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7209 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7211 * c-valprint.c (c_val_print): Update.
7212 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7213 * coffread.c (coff_symfile_read): Update.
7214 * common/agent.c (agent_look_up_symbols): Update.
7215 * dbxread.c (find_stab_function_addr): Update.
7216 (end_psymtab): Update.
7217 * dwarf2loc.c (call_site_to_target_addr): Update.
7218 (func_verify_no_selftailcall): Update.
7219 (tailcall_dump): Update.
7220 (call_site_find_chain_1): Update.
7221 (dwarf_expr_reg_to_entry_parameter): Update.
7222 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7223 (elf_gnu_ifunc_resolve_by_got): Update.
7224 * f-valprint.c (info_common_command): Update.
7225 * findvar.c (read_var_value): Update.
7226 * frame.c (get_prev_frame_1): Update.
7227 (inside_main_func): Update.
7228 * frv-tdep.c (frv_skip_main_prologue): Update.
7229 (frv_frame_this_id): Update.
7230 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7231 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7232 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7233 (gnuv3_skip_trampoline): Update.
7234 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7235 (hppa64_hpux_in_solib_call_trampoline): Update.
7236 (hppa_hpux_skip_trampoline_code): Update.
7237 (hppa64_hpux_search_dummy_call_sequence): Update.
7238 (hppa_hpux_find_import_stub_for_addr): Update.
7239 (hppa_hpux_find_dummy_bpaddr): Update.
7240 * hppa-tdep.c (hppa_symbol_address)
7241 (hppa_lookup_stub_minimal_symbol): Update.
7242 * i386-tdep.c (i386_skip_main_prologue): Update.
7243 (i386_pe_skip_trampoline_code): Update.
7244 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7245 * infcall.c (get_function_name): Update.
7246 * infcmd.c (until_next_command): Update.
7247 * jit.c (jit_breakpoint_re_set_internal): Update.
7248 (jit_inferior_init): Update.
7249 * linespec.c (minsym_found): Update.
7250 (add_minsym): Update.
7251 * linux-fork.c (info_checkpoints_command): Update.
7252 * linux-nat.c (get_signo): Update.
7253 * linux-thread-db.c (inferior_has_bug): Update.
7254 * m32c-tdep.c (m32c_return_value): Update.
7255 (m32c_m16c_address_to_pointer): Update.
7256 (m32c_m16c_pointer_to_address): Update.
7257 * m32r-tdep.c (m32r_frame_this_id): Update.
7258 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7259 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7260 * maint.c (maintenance_translate_address): Update.
7261 * minsyms.c (add_minsym_to_hash_table): Update.
7262 (add_minsym_to_demangled_hash_table): Update.
7263 (msymbol_objfile): Update.
7264 (lookup_minimal_symbol): Update.
7265 (iterate_over_minimal_symbols): Update.
7266 (lookup_minimal_symbol_text): Update.
7267 (lookup_minimal_symbol_by_pc_name): Update.
7268 (lookup_minimal_symbol_solib_trampoline): Update.
7269 (lookup_minimal_symbol_by_pc_section_1): Update.
7270 (lookup_minimal_symbol_and_objfile): Update.
7271 (prim_record_minimal_symbol_full): Update.
7272 (compare_minimal_symbols): Update.
7273 (compact_minimal_symbols): Update.
7274 (build_minimal_symbol_hash_tables): Update.
7275 (install_minimal_symbols): Update.
7276 (terminate_minimal_symbol_table): Update.
7277 (find_solib_trampoline_target): Update.
7278 (minimal_symbol_upper_bound): Update.
7279 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7280 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7281 (mips_skip_pic_trampoline_code): Update.
7282 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7283 * objc-lang.c (selectors_info): Update.
7284 (classes_info): Update.
7285 (find_methods): Update.
7286 (find_imps): Update.
7287 (find_objc_msgsend): Update.
7288 * objfiles.c (objfile_relocate1): Update.
7289 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7290 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7291 * p-valprint.c (pascal_val_print): Update.
7292 * parse.c (write_exp_msymbol): Update.
7293 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7294 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7295 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7296 * printcmd.c (build_address_symbolic): Update.
7298 (address_info): Update.
7299 * proc-service.c (ps_pglobal_lookup): Update.
7300 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7301 (find_pc_sect_psymtab): Update.
7302 * python/py-framefilter.c (py_print_frame): Update.
7303 * ravenscar-thread.c (get_running_thread_id): Update.
7304 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7306 * remote.c (remote_check_symbols): Update.
7307 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7308 (rs6000_skip_trampoline_code): Update.
7309 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7310 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7311 * solib-dsbt.c (lm_base): Update.
7312 * solib-frv.c (lm_base): Update.
7314 * solib-irix.c (locate_base): Update.
7315 * solib-som.c (som_solib_create_inferior_hook): Update.
7316 (som_solib_desire_dynamic_linker_symbols): Update.
7317 (link_map_start): Update.
7318 * solib-spu.c (spu_enable_break): Update.
7319 (ocl_enable_break): Update.
7320 * solib-svr4.c (elf_locate_base): Update.
7321 (enable_break): Update.
7322 * spu-tdep.c (spu_get_overlay_table): Update.
7323 (spu_catch_start): Update.
7324 (flush_ea_cache): Update.
7325 * stabsread.c (define_symbol): Update.
7326 (scan_file_globals): Update.
7327 * stack.c (find_frame_funname): Update.
7328 (frame_info): Update.
7329 * symfile.c (simple_read_overlay_table): Update.
7330 (simple_overlay_update): Update.
7331 * symmisc.c (dump_msymbols): Update.
7332 * symtab.c (fixup_section): Update.
7333 (find_pc_sect_line): Update.
7334 (skip_prologue_sal): Update.
7335 (search_symbols): Update.
7336 (print_msymbol_info): Update.
7337 (rbreak_command): Update.
7338 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7339 (completion_list_objc_symbol): Update.
7340 (default_make_symbol_completion_list_break_on): Update.
7341 * tracepoint.c (scope_info): Update.
7342 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7343 (tui_get_begin_asm_address): Update.
7344 * valops.c (find_function_in_inferior): Update.
7345 * value.c (value_static_field): Update.
7346 (value_fn_field): Update.
7348 2014-02-26 Tom Tromey <tromey@redhat.com>
7350 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7351 bound minimal symbols. Move code that knows about minsym
7353 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7355 * minsyms.h (minimal_symbol_upper_bound): Declare.
7356 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7357 minimal_symbol_upper_bound.
7359 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7361 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7362 Use the type's name if its basic type does not have a tag.
7364 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7366 * dwarf2read.c (read_subrange_type): Add comment.
7368 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7370 * dwarf2read.c (update_enumeration_type_from_children): New
7371 function, mostly extracted from process_structure_scope.
7372 (read_enumeration_type): Call update_enumeration_type_from_children.
7373 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7374 and flag_flag_enum fields.
7376 2014-02-26 Pedro Alves <palves@redhat.com>
7378 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7379 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7380 to_xfer_partial method.
7382 2014-02-26 Pedro Alves <palves@redhat.com>
7384 * target.c (complete_target_initialization): Don't install
7385 default_xfer_partial as to_xfer_partial hook.
7387 (update_current_target): Don't INHERIT nor de_fault
7388 deprecated_xfer_memory. Delete de_fault macro.
7389 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7390 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7391 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7394 2014-02-26 Pedro Alves <palves@redhat.com>
7396 * go32-nat.c (my_write_child): New function.
7397 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7398 (go32_xfer_partial): New function.
7399 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7400 Instead install a to_xfer_partial hook.
7402 2014-02-26 Pedro Alves <palves@redhat.com>
7404 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7405 to_xfer_partial helper. Rewrite.
7406 (procfs_xfer_partial): New function.
7407 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7408 Install a to_xfer_partial hook.
7410 2014-02-26 Pedro Alves <palves@redhat.com>
7412 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7413 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7414 (m32r_xfer_partial): New function.
7415 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7416 Install a to_xfer_partial hook.
7418 2014-02-26 Pedro Alves <palves@redhat.com>
7420 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7422 (mips_xfer_partial): New function.
7423 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7424 hook. Install a to_xfer_partial hook.
7426 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7428 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7429 * gdbtypes.c (create_array_type_with_stride): New function,
7430 renaming create_array_type, but with an added parameter
7431 called "bit_stride".
7432 (create_array_type): Re-implement using
7433 create_array_type_with_stride.
7434 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7435 and DW_AT_bit_stride attributes.
7437 2014-02-26 Pedro Alves <palves@redhat.com>
7439 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7440 task-specific breakpoints.
7442 2014-02-25 Pedro Alves <palves@redhat.com>
7444 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7445 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7447 2014-02-25 Stan Shebs <stan@codesourcery.com>
7449 * defs.h: Annotate comments for Doxygen.
7451 2014-02-25 Tom Tromey <tromey@redhat.com>
7453 * target.h (target_ignore): Don't declare.
7454 * target.c (target_ignore): Remove.
7456 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7459 * auto-load.c (auto_load_objfile_script_1): Change filename to
7462 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7464 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7465 documentation. Adjust prototype to match the target_ops
7466 to_xfer_partial method. Adjust implementation accordingly.
7468 2014-02-25 Hui Zhu <hui@codesourcery.com>
7470 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7473 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7475 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7476 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7477 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7478 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7479 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7480 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7481 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7482 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7484 (rl78_register_type): Use a data pointer type for SP and
7485 new pseudo registers mentioned above. Use a 16 bit integer
7486 type for all other register pairs.
7487 (rl78_register_name, rl78_g10_register_name): Update for
7488 new pseudo registers.
7489 (rl78_pseudo_register_read): Likewise.
7490 (rl78_pseudo_register_write): Likewise.
7491 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7492 to the newly added pseudo registers.
7494 2014-02-24 Doug Evans <dje@google.com>
7496 * value.c (record_latest_value): Fix comment.
7497 * printcmd.c (print_command_1): Remove code to handle -1 return from
7498 record_latest_value.
7500 2014-02-24 Pedro Alves <palves@redhat.com>
7502 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7503 deprecated_xfer_memory hook.
7504 (procfs_xfer_partial): Call procfs_xfer_memory instead
7505 of the deprecated_xfer_memory target hook.
7506 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7509 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7511 * windows-nat.c (windows_xfer_shared_libraries): Return
7512 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7513 requested object is TARGET_OBJECT_LIBRARIES.
7515 2014-02-24 Yao Qi <yao@codesourcery.com>
7517 * target.h (enum target_xfer_status)
7518 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7519 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7521 * corefile.c (memory_error_message): User updated.
7522 * exec.c (section_table_read_available_memory): Likewise.
7523 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7524 * target.c (target_xfer_status_to_string): Likewise.
7525 (raw_memory_xfer_partial): Likewise.
7526 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7527 * valops.c (read_value_memory): Likewise.
7528 * exec.h: Update comments.
7530 2014-02-24 Yao Qi <yao@codesourcery.com>
7532 * target.c (target_xfer_status_to_string): Rename argument err
7534 * target.h (target_xfer_status_to_string): Update declaration.
7535 Replace target_xfer_error_to_string with
7536 target_xfer_status_to_string in comment.
7538 2014-02-24 Yao Qi <yao@codesourcery.com>
7540 * mips-linux-nat.c (super_close): Update its type.
7541 (mips_linux_close): Pass 'self' to super_close.
7543 2014-02-24 Yao Qi <yao@codesourcery.com>
7545 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7546 * corefile.c (read_memory): Adjusted.
7547 * target.c (target_write_with_progress): Adjusted.
7549 2014-02-23 Yao Qi <yao@codesourcery.com>
7553 2013-10-25 Yao Qi <yao@codesourcery.com>
7555 * remote.c (remote_traceframe_info): Return early if
7556 traceframe is not selected.
7558 2013-07-19 Yao Qi <yao@codesourcery.com>
7560 * target.c (update_current_target): Change the default action
7561 of 'to_traceframe_info' from tcomplain to return_zero.
7562 * target.h (struct target_ops) <to_traceframe_info>: Add more
7565 2014-02-23 Yao Qi <yao@codesourcery.com>
7567 * valops.c (read_value_memory): Rewrite it. Call
7568 target_xfer_partial in a loop.
7569 * exec.h (section_table_available_memory): Remove declaration.
7570 Move comments to ...
7571 * exec.c (section_table_available_memory): ... here. Make it
7574 2014-02-23 Yao Qi <yao@codesourcery.com>
7576 * exec.c (section_table_read_available_memory): New function.
7577 * exec.h (section_table_read_available_memory): Declare.
7578 * ctf.c (ctf_xfer_partial): Call
7579 section_table_read_available_memory.
7580 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7582 2014-02-23 Yao Qi <yao@codesourcery.com>
7584 * ctf.c (ctf_xfer_partial): Move code to ...
7585 * exec.c (exec_read_partial_read_only): ... it. New function.
7586 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7587 * tracefile.c: Include "exec.h".
7588 * exec.h (exec_read_partial_read_only): Declare.
7590 2014-02-23 Yao Qi <yao@codesourcery.com>
7592 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7593 (tfile_has_memory): Remove.
7594 (init_tfile_ops): Don't set fields to_has_all_memory and
7595 to_has_memory of tfile_ops.
7596 * tracefile.c (tracefile_has_all_memory): New function.
7597 (tracefile_has_memory): New function.
7598 (init_tracefile_ops): Initialize fields to_has_all_memory and
7599 to_has_memory of 'ops'.
7601 2014-02-23 Yao Qi <yao@codesourcery.com>
7603 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7604 (ctf_thread_alive, ctf_get_trace_status): Remove.
7605 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7607 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7608 (tfile_has_stack, tfile_has_registers): Remove.
7609 (tfile_thread_alive): Remove.
7610 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7612 * tracefile.c (tracefile_has_stack): New function.
7613 (tracefile_has_registers): New function.
7614 (tracefile_thread_alive): New function.
7615 (tracefile_get_trace_status): New function.
7616 (init_tracefile_ops): New function.
7617 * tracefile.h (init_tracefile_ops): Declare.
7619 2014-02-23 Yao Qi <yao@codesourcery.com>
7621 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7622 (O_LARGEFILE): Likewise.
7623 (tfile_ops): Likewise.
7624 (TRACE_HEADER_SIZE): Likewise.
7625 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7626 (cur_data_size): Likewise.
7627 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7628 (tfile_close, tfile_files_info): Likewise.
7629 (tfile_get_trace_status): Likewise.
7630 (tfile_get_tracepoint_status): Likewise.
7631 (tfile_get_traceframe_address): Likewise.
7632 (tfile_trace_find, match_blocktype): Likewise.
7633 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7634 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7635 (tfile_get_trace_state_variable_value): Likewise.
7636 (tfile_has_all_memory, tfile_has_memory): Likewise.
7637 (tfile_has_stack, tfile_has_registers): Likewise.
7638 (tfile_thread_alive, build_traceframe_info): Likewise.
7639 (tfile_traceframe_info, init_tfile_ops): Likewise.
7640 (_initialize_tracepoint): Don't call init_tfile_ops
7641 and add_target_with_completer.
7642 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7643 exec.h, completer.h and filenames.h.
7644 (_initialize_tracefile_tfile): New function.
7646 2014-02-23 Yao Qi <yao@codesourcery.com>
7648 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7650 (HFILES_NO_SRCDIR): Add tracefile.h.
7651 * ctf.c: Include "tracefile.h".
7652 * tracefile.h: New file.
7653 * tracefile.c: New file
7654 * tracefile-tfile.c: New file.
7655 * tracepoint.c: Include "tracefile.h".
7656 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7657 (stop_reason_names): Add const.
7658 (trace_file_writer_xfree): Move it to tracefile.c.
7659 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7660 (trace_save_ctf): Likewise.
7661 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7662 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7663 (tfile_write_header, tfile_write_regblock_type): Likewise.
7664 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7665 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7666 (tfile_write_raw_data, tfile_end): Likewise.
7667 (tfile_trace_file_writer_new): Likewise.
7668 (free_uploaded_tp): Make it extern.
7669 (free_uploaded_tsv): Make it extern.
7670 (_initialize_tracepoint): Move code to register command 'tsave'
7672 * tracepoint.h (stop_reason_names): Declare.
7673 (struct trace_frame_write_ops): Move it to tracefile.h.
7674 (struct trace_file_write_ops): Likewise.
7675 (struct trace_file_writer): Likewise.
7676 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7678 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7681 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7683 (get_cores_used_by_process): New parameter num_cores, use it.
7684 (linux_xfer_osdata_processes): Pass num_cores to it.
7685 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7688 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7690 * target.c (memory_xfer_partial): Fix length arg in call to
7691 breakpoint_xfer_memory.
7693 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7696 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7697 number comes after the + or - signs. Adjust length of register
7698 name to be extracted.
7700 2014-02-20 Tom Tromey <tromey@redhat.com>
7702 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7703 (ada_varobj_ops): Mark "extern".
7705 2014-02-20 Tom Tromey <tromey@redhat.com>
7707 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7709 2014-02-20 Doug Evans <xdje42@gmail.com>
7711 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7712 All callers updated.
7713 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7714 All callers updated.
7715 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7716 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7718 2014-02-20 lin zuojian <manjian2006@gmail.com>
7719 Joel Brobecker <brobecker@adacore.com>
7720 Doug Evans <xdje42@gmail.com>
7723 * dwarf2read.c (struct die_info): New member in_process.
7724 (reset_die_in_process): New function.
7725 (process_die): Set it at the start, reset when returning.
7726 (inherit_abstract_dies): Only call process_die if origin_child_die
7727 not already being processed.
7729 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7731 * windows-nat.c (handle_unload_dll): Add function documentation.
7732 (do_initial_windows_stuff): Add comment explaining why we wait
7733 until after inferior initialization has finished before
7734 processing all DLLs.
7736 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7738 * windows-nat.c (get_module_name): Delete.
7739 (windows_get_exec_module_filename): New function, mostly
7740 inspired from get_module_name.
7741 (windows_pid_to_exec_file): Replace call to get_module_name
7742 by call to windows_get_exec_module_filename.
7744 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7746 * windows-nat.c (handle_load_dll): Rewrite this function's
7747 introductory comment. Remove code using get_module_name
7748 to get the DLL's name.
7750 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7752 * windows-nat.c (get_windows_debug_event): Ignore
7753 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7754 if windows_initialization_done == 0.
7755 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7756 Adjust implementation to always load all DLLs.
7757 (do_initial_windows_stuff): Replace call to
7758 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7760 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7762 * windows-nat.c (_initialize_windows_nat): Deprecate the
7763 "dll-symbols" command. Turn the "add-shared-symbol-files"
7764 and "assf" aliases into commands, and deprecate them as well.
7765 * NEWS: Add entry explaining that "dll-symbols" and its two
7766 aliases are now deprecated.
7768 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7770 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7771 new-line in debug string. Remove trailing spaces.
7773 2014-02-19 Stan Shebs <stan@codesourcery.com>
7775 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7777 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7779 * NEWS: Add entry for the new feature
7780 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7783 2014-02-19 Stan Shebs <stan@codesourcery.com>
7785 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7787 2014-02-19 Pedro Alves <palves@redhat.com>
7789 * common/ptid.h (struct ptid): Mention that process_stratum
7790 targets should prefer ptid.lwp.
7792 2014-02-19 Pedro Alves <palves@redhat.com>
7794 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7795 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7796 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7797 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7798 store remote thread ids rather than ptid.tid.
7799 (_initialize_remote): Adjust.
7801 2014-02-19 Tom Tromey <tromey@redhat.com>
7803 * target.c (target_get_unwinder): Rewrite.
7804 (target_get_tailcall_unwinder): Rewrite.
7805 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7806 (record_btrace_to_get_tailcall_unwinder): New function.
7807 (init_record_btrace_ops): Update.
7808 * target.h (struct target_ops) <to_get_unwinder,
7809 to_get_tailcall_unwinder>: Now function pointers. Use
7810 TARGET_DEFAULT_RETURN.
7812 2014-02-19 Tom Tromey <tromey@redhat.com>
7814 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7816 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7822 * target-delegates.c: Rebuild.
7823 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7824 TARGET_DEFAULT_FUNC.
7825 * target.c (default_target_decr_pc_after_break): Rename from
7826 forward_target_decr_pc_after_break. Simplify.
7827 (target_decr_pc_after_break): Rely on delegation.
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7831 * target.c (update_current_target): Do not INHERIT to_doc or
7832 to_magic. Do not de_fault to_open or to_close.
7834 2014-02-19 Tom Tromey <tromey@redhat.com>
7836 * gcore.h (objfile_find_memory_regions): Declare.
7837 * gcore.c (objfile_find_memory_regions): No longer static. Add
7839 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7840 * exec.c: Include gcore.h.
7841 (exec_set_find_memory_regions): Remove.
7842 (exec_find_memory_regions): Remove.
7843 (exec_do_find_memory_regions): Remove.
7844 (init_exec_ops): Update.
7845 * defs.h (exec_set_find_memory_regions): Remove.
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7849 * target-delegates.c: Rebuild.
7850 * target.h (struct target_ops) <to_extra_thread_info,
7851 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7852 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7853 not 0, in TARGET_DEFAULT_RETURN.
7855 2014-02-19 Tom Tromey <tromey@redhat.com>
7857 * target.c (complete_target_initialization): Remove casts. Use
7858 return_zero_has_execution.
7859 (return_zero): Add "ignore" argument.
7860 (return_zero_has_execution): New function.
7861 (init_dummy_target): Remove casts. Use
7862 return_zero_has_execution.
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7866 * target.c (update_current_target): Update comments. Do not
7869 2014-02-19 Tom Tromey <tromey@redhat.com>
7871 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7873 * corelow.c (core_read_description): Delegate when needed.
7874 * remote.c (remote_read_description): Delegate when needed.
7875 * target-delegates.c: Rebuild.
7876 * target.c (target_read_description): Rewrite.
7877 * target.h (struct target_ops) <to_read_description>: Update
7878 comment. Use TARGET_DEFAULT_RETURN.
7880 2014-02-19 Tom Tromey <tromey@redhat.com>
7882 * target-delegates.c: Rebuild.
7883 * target.c (update_current_target): Don't inherit or default
7885 (find_default_run_target): Check against delegate_can_run.
7886 * target.h (struct target_ops) <to_can_run>: Use
7887 TARGET_DEFAULT_RETURN.
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7891 * target-delegates.c: Rebuild.
7892 * target.c (target_disconnect): Unconditionally delegate.
7893 * target.h (struct target_ops) <to_disconnect>: Use
7894 TARGET_DEFAULT_NORETURN.
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7898 * record.c (record_stop): Unconditionally delegate.
7899 * target-delegates.c: Rebuild.
7900 * target.c (target_stop_recording): Unconditionally delegate.
7901 * target.h (struct target_ops) <to_stop_recording>: Use
7902 TARGET_DEFAULT_IGNORE.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_enable_btrace): Unconditionally delegate.
7908 * target.h (struct target_ops) <to_enable_btrace>: Use
7909 TARGET_DEFAULT_NORETURN.
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7913 * target-delegates.c: Rebuild.
7914 * target.c (target_read_btrace): Unconditionally delegate.
7915 * target.h (struct target_ops) <to_read_btrace>: Use
7916 TARGET_DEFAULT_NORETURN.
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target-delegates.c: Rebuild.
7921 * target.c (target_teardown_btrace): Unconditionally delegate.
7922 * target.h (struct target_ops) <to_teardown_btrace>: Use
7923 TARGET_DEFAULT_NORETURN.
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target-delegates.c: Rebuild.
7928 * target.c (target_disable_btrace): Unconditionally delegate.
7929 * target.h (struct target_ops) <to_disable_btrace>: Use
7930 TARGET_DEFAULT_NORETURN.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target-delegates.c: Rebuild.
7935 * target.c (default_search_memory): New function.
7936 (simple_search_memory): Update comment.
7937 (target_search_memory): Unconditionally delegate.
7938 * target.h (struct target_ops) <to_search_memory>: Use
7939 TARGET_DEFAULT_FUNC.
7941 2014-02-19 Tom Tromey <tromey@redhat.com>
7943 * auxv.c (default_auxv_parse): No longer static.
7944 (target_auxv_parse): Unconditionally delegate.
7945 * auxv.h (default_auxv_parse): Declare.
7946 * target-delegates.c: Rebuild.
7947 * target.c: Include auxv.h.
7948 * target.h (struct target_ops) <to_auxv_parse>: Use
7949 TARGET_DEFAULT_FUNC.
7951 2014-02-19 Tom Tromey <tromey@redhat.com>
7953 * target-delegates.c: Rebuild.
7954 * target.c (target_memory_map): Unconditionally delegate.
7955 * target.h (struct target_ops) <to_memory_map>: Use
7956 TARGET_DEFAULT_RETURN.
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * target-delegates.c: Rebuild.
7961 * target.c (target_thread_alive): Unconditionally delegate.
7962 * target.h (struct target_ops) <to_thread_alive>: Use
7963 TARGET_DEFAULT_RETURN.
7965 2014-02-19 Tom Tromey <tromey@redhat.com>
7967 * target-delegates.c: Rebuild.
7968 * target.c (target_save_record): Unconditionally delegate.
7969 * target.h (struct target_ops) <to_save_record>: Use
7970 TARGET_DEFAULT_NORETURN.
7972 2014-02-19 Tom Tromey <tromey@redhat.com>
7974 * target-delegates.c: Rebuild.
7975 * target.c (target_delete_record): Unconditionally delegate.
7976 * target.h (struct target_ops) <to_delete_record>: Use
7977 TARGET_DEFAULT_NORETURN.
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7981 * target-delegates.c: Rebuild.
7982 * target.c (target_record_is_replaying): Unconditionally
7984 * target.h (struct target_ops) <to_record_is_replaying>: Use
7985 TARGET_DEFAULT_RETURN.
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7989 * target-delegates.c: Rebuild.
7990 * target.c (target_goto_record_begin): Unconditionally delegate.
7991 * target.h (struct target_ops) <to_goto_record_begin>: Use
7992 TARGET_DEFAULT_NORETURN.
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7996 * target-delegates.c: Rebuild.
7997 * target.c (target_goto_record_end): Unconditionally delegate.
7998 * target.h (struct target_ops) <to_goto_record_end>: Use
7999 TARGET_DEFAULT_NORETURN.
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8003 * target-delegates.c: Rebuild.
8004 * target.c (target_goto_record): Unconditionally delegate.
8005 * target.h (struct target_ops) <to_goto_record>: Use
8006 TARGET_DEFAULT_NORETURN.
8008 2014-02-19 Tom Tromey <tromey@redhat.com>
8010 * target-delegates.c: Rebuild.
8011 * target.c (target_insn_history): Unconditionally delegate.
8012 * target.h (struct target_ops) <to_insn_history>: Use
8013 TARGET_DEFAULT_NORETURN.
8015 2014-02-19 Tom Tromey <tromey@redhat.com>
8017 * target-delegates.c: Rebuild.
8018 * target.c (target_insn_history_from): Unconditionally delegate.
8019 * target.h (struct target_ops) <to_insn_history_from>: Use
8020 TARGET_DEFAULT_NORETURN.
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8024 * target-delegates.c: Rebuild.
8025 * target.c (target_insn_history_range): Unconditionally delegate.
8026 * target.h (struct target_ops) <to_insn_history_range>: Use
8027 TARGET_DEFAULT_NORETURN.
8029 2014-02-19 Tom Tromey <tromey@redhat.com>
8031 * target-delegates.c: Rebuild.
8032 * target.c (target_call_history): Unconditionally delegate.
8033 * target.h (struct target_ops) <to_call_history>: Use
8034 TARGET_DEFAULT_NORETURN.
8036 2014-02-19 Tom Tromey <tromey@redhat.com>
8038 * target-delegates.c: Rebuild.
8039 * target.c (target_call_history_from): Unconditionally delegate.
8040 * target.h (struct target_ops) <to_call_history_from>: Use
8041 TARGET_DEFAULT_NORETURN.
8043 2014-02-19 Tom Tromey <tromey@redhat.com>
8045 * target-delegates.c: Rebuild.
8046 * target.c (target_call_history_range): Unconditionally delegate.
8047 * target.h (struct target_ops) <to_call_history_range>: Use
8048 TARGET_DEFAULT_NORETURN.
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8052 * target-delegates.c: Rebuild.
8053 * target.c (target_verify_memory): Unconditionally delegate.
8054 * target.h (struct target_ops) <to_verify_memory>: Use
8055 TARGET_DEFAULT_NORETURN.
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8059 * target-delegates.c: Rebuild.
8060 * target.c (target_core_of_thread): Unconditionally delegate.
8061 * target.h (struct target_ops) <to_core_of_thread>: Use
8062 TARGET_DEFAULT_RETURN.
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * target-delegates.c: Rebuild.
8067 * target.c (target_flash_done): Unconditionally delegate.
8068 * target.h (struct target_ops) <to_flash_done>: Use
8069 TARGET_DEFAULT_NORETURN.
8071 2014-02-19 Tom Tromey <tromey@redhat.com>
8073 * target-delegates.c: Rebuild.
8074 * target.c (target_flash_erase): Unconditionally delegate.
8075 * target.h (struct target_ops) <to_flash_erase>: Use
8076 TARGET_DEFAULT_NORETURN.
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8080 * target-delegates.c: Rebuild.
8081 * target.c (target_get_section_table): Unconditionally delegate.
8082 * target.h (struct target_ops) <to_get_section_table>: Use
8083 TARGET_DEFAULT_RETURN.
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8087 * target-delegates.c: Rebuild.
8088 * target.c (target_pid_to_str): Unconditionally delegate.
8089 (init_dummy_target): Don't initialize to_pid_to_str.
8090 (default_pid_to_str): Rename from dummy_pid_to_str.
8091 * target.h (struct target_ops) <to_pid_to_str>: Use
8092 TARGET_DEFAULT_FUNC.
8094 2014-02-19 Tom Tromey <tromey@redhat.com>
8096 * target-delegates.c: Rebuild.
8097 * target.c (target_find_new_threads): Unconditionally delegate.
8098 * target.h (struct target_ops) <to_find_new_threads>: Use
8099 TARGET_DEFAULT_RETURN.
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target-delegates.c: Rebuild.
8104 * target.c (target_program_signals): Unconditionally delegate.
8105 * target.h (struct target_ops) <to_program_signals>: Use
8106 TARGET_DEFAULT_IGNORE.
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8110 * target-delegates.c: Rebuild.
8111 * target.c (target_pass_signals): Unconditionally delegate.
8112 * target.h (struct target_ops) <to_pass_signals>: Use
8113 TARGET_DEFAULT_IGNORE.
8115 2014-02-19 Tom Tromey <tromey@redhat.com>
8117 * target-delegates.c: Rebuild.
8118 * target.c (default_mourn_inferior): New function.
8119 (target_mourn_inferior): Unconditionally delegate.
8120 * target.h (struct target_ops) <to_mourn_inferior>: Use
8121 TARGET_DEFAULT_FUNC.
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8125 * target-delegates.c: Rebuild.
8126 * target.c (default_follow_fork): New function.
8127 (target_follow_fork): Unconditionally delegate.
8128 * target.h (struct target_ops) <to_follow_fork>: Use
8129 TARGET_DEFAULT_FUNC.
8131 2014-02-19 Tom Tromey <tromey@redhat.com>
8133 * target-delegates.c: Rebuild.
8134 * target.c (target_kill): Unconditionally delegate.
8135 * target.h (struct target_ops) <to_kill>: Use
8136 TARGET_DEFAULT_NORETURN.
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8140 * target-delegates.c: Rebuild.
8141 * target.c (target_masked_watch_num_registers): Unconditionally
8143 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8144 Use TARGET_DEFAULT_RETURN.
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8148 * target-delegates.c: Rebuild.
8149 * target.c (target_remove_mask_watchpoint): Unconditionally
8151 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8152 TARGET_DEFAULT_RETURN.
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8156 * target-delegates.c: Rebuild.
8157 * target.c (target_insert_mask_watchpoint): Unconditionally
8159 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8160 TARGET_DEFAULT_RETURN.
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8164 * target-delegates.c: Rebuild.
8165 * target.c (target_ranged_break_num_registers): Unconditionally
8167 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8168 Use TARGET_DEFAULT_RETURN.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_fetch_registers): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_fetch_registers>: Use
8175 TARGET_DEFAULT_NORETURN.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target-delegates.c: Rebuild.
8180 * target.c (update_current_target): Don't inherit or default
8182 * target.h (struct target_ops) <to_stop>: Use
8183 TARGET_DEFAULT_IGNORE.
8185 2014-02-19 Tom Tromey <tromey@redhat.com>
8187 * target-delegates.c: Rebuild.
8188 * target.c (update_current_target): Don't inherit or default
8189 to_can_run_breakpoint_commands.
8190 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8191 Use TARGET_DEFAULT_RETURN.
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8195 * target-delegates.c: Rebuild.
8196 * target.c (update_current_target): Don't inherit or default
8197 to_supports_evaluation_of_breakpoint_conditions.
8198 * target.h (struct target_ops)
8199 <to_supports_evaluation_of_breakpoint_conditions>: Use
8200 TARGET_DEFAULT_RETURN.
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8204 * target-delegates.c: Rebuild.
8205 * target.c (update_current_target): Don't inherit or default
8206 to_augmented_libraries_svr4_read.
8207 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8208 Use TARGET_DEFAULT_RETURN.
8210 2014-02-19 Tom Tromey <tromey@redhat.com>
8212 * target-delegates.c: Rebuild.
8213 * target.c (update_current_target): Don't inherit or default
8215 * target.h (struct target_ops) <to_can_use_agent>: Use
8216 TARGET_DEFAULT_RETURN.
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
8223 * target.h (struct target_ops) <to_use_agent>: Use
8224 TARGET_DEFAULT_NORETURN.
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 (return_null): Remove.
8232 * target.h (struct target_ops) <to_traceframe_info>: Use
8233 TARGET_DEFAULT_RETURN.
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8237 * target-delegates.c: Rebuild.
8238 * target.c (update_current_target): Don't inherit or default
8239 to_static_tracepoint_markers_by_strid.
8240 * target.h (struct target_ops)
8241 <to_static_tracepoint_markers_by_strid>: Use
8242 TARGET_DEFAULT_NORETURN.
8244 2014-02-19 Tom Tromey <tromey@redhat.com>
8246 * target-delegates.c: Rebuild.
8247 * target.c (update_current_target): Don't inherit or default
8248 to_static_tracepoint_marker_at.
8249 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8250 Use TARGET_DEFAULT_RETURN.
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8257 * target.h (struct target_ops) <to_set_permissions>: Use
8258 TARGET_DEFAULT_IGNORE.
8260 2014-02-19 Tom Tromey <tromey@redhat.com>
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8265 * target.h (struct target_ops) <to_get_tib_address>: Use
8266 TARGET_DEFAULT_NORETURN.
8268 2014-02-19 Tom Tromey <tromey@redhat.com>
8270 * target-delegates.c: Rebuild.
8271 * target.c (update_current_target): Don't inherit or default
8273 * target.h (struct target_ops) <to_set_trace_notes>: Use
8274 TARGET_DEFAULT_RETURN.
8276 2014-02-19 Tom Tromey <tromey@redhat.com>
8278 * target-delegates.c: Rebuild.
8279 * target.c (update_current_target): Don't initialize
8280 to_set_trace_buffer_size.
8281 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8282 TARGET_DEFAULT_IGNORE.
8284 2014-02-19 Tom Tromey <tromey@redhat.com>
8286 * target-delegates.c: Rebuild.
8287 * target.c (update_current_target): Don't inherit or default
8288 to_set_circular_trace_buffer.
8289 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8290 TARGET_DEFAULT_IGNORE.
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8294 * target-delegates.c: Rebuild.
8295 * target.c (update_current_target): Don't inherit or default
8296 to_set_disconnected_tracing.
8297 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8298 TARGET_DEFAULT_IGNORE.
8300 2014-02-19 Tom Tromey <tromey@redhat.com>
8302 * target-delegates.c: Rebuild.
8303 * target.c (update_current_target): Don't inherit or default
8304 to_get_min_fast_tracepoint_insn_len.
8305 (return_minus_one): Remove.
8306 * target.h (struct target_ops)
8307 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8309 2014-02-19 Tom Tromey <tromey@redhat.com>
8311 * target-delegates.c: Rebuild.
8312 * target.c (update_current_target): Don't inherit or default
8313 to_get_raw_trace_data.
8314 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8315 TARGET_DEFAULT_NORETURN.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target-delegates.c: Rebuild.
8320 * target.c (update_current_target): Don't inherit or default
8321 to_upload_trace_state_variables.
8322 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8323 Use TARGET_DEFAULT_RETURN.
8325 2014-02-19 Tom Tromey <tromey@redhat.com>
8327 * target-delegates.c: Rebuild.
8328 * target.c (update_current_target): Don't inherit or default
8329 to_upload_tracepoints.
8330 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8331 TARGET_DEFAULT_RETURN.
8333 2014-02-19 Tom Tromey <tromey@redhat.com>
8335 * target-delegates.c: Rebuild.
8336 * target.c (update_current_target): Don't inherit or default
8338 * target.h (struct target_ops) <to_save_trace_data>: Use
8339 TARGET_DEFAULT_NORETURN.
8341 2014-02-19 Tom Tromey <tromey@redhat.com>
8343 * target-delegates.c: Rebuild.
8344 * target.c (update_current_target): Don't inherit or default
8345 to_get_trace_state_variable_value.
8346 * target.h (struct target_ops)
8347 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8349 2014-02-19 Tom Tromey <tromey@redhat.com>
8351 * target-delegates.c: Rebuild.
8352 * target.c (update_current_target): Don't inherit or default
8354 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8356 2014-02-19 Tom Tromey <tromey@redhat.com>
8358 * target-delegates.c: Rebuild.
8359 * target.c (update_current_target): Don't inherit or default
8361 * target.h (struct target_ops) <to_trace_stop>: Use
8362 TARGET_DEFAULT_NORETURN.
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_get_tracepoint_status.
8369 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8370 TARGET_DEFAULT_NORETURN.
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_get_trace_status.
8377 * target.h (struct target_ops) <to_get_trace_status>: Use
8378 TARGET_DEFAULT_RETURN.
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8385 * target.h (struct target_ops) <to_trace_start>: Use
8386 TARGET_DEFAULT_NORETURN.
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't inherit or default
8392 to_trace_set_readonly_regions.
8393 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8394 Use TARGET_DEFAULT_NORETURN.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't inherit or default
8400 to_disable_tracepoint.
8401 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8402 TARGET_DEFAULT_NORETURN.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_enable_tracepoint.
8409 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8410 TARGET_DEFAULT_NORETURN.
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_download_trace_state_variable.
8417 * target.h (struct target_ops) <to_download_trace_state_variable>:
8418 Use TARGET_DEFAULT_NORETURN.
8420 2014-02-19 Tom Tromey <tromey@redhat.com>
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8424 to_can_download_tracepoint.
8425 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8426 TARGET_DEFAULT_RETURN.
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8430 * target-delegates.c: Rebuild.
8431 * target.c (update_current_target): Don't inherit or default
8432 to_download_tracepoint.
8433 * target.h (struct target_ops) <to_download_tracepoint>: Use
8434 TARGET_DEFAULT_NORETURN.
8436 2014-02-19 Tom Tromey <tromey@redhat.com>
8438 * target-delegates.c: Rebuild.
8439 * target.c (update_current_target): Don't inherit or default
8441 * target.h (struct target_ops) <to_trace_init>: Use
8442 TARGET_DEFAULT_RETURN.
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_supports_string_tracing.
8449 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8450 TARGET_DEFAULT_RETURN.
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_supports_enable_disable_tracepoint.
8457 * target.h (struct target_ops)
8458 <to_supports_enable_disable_tracepoint>: Use
8459 TARGET_DEFAULT_RETURN.
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8463 * target-delegates.c: Rebuild.
8464 * target.c (update_current_target): Don't inherit or default
8465 to_supports_multi_process.
8466 * target.h (struct target_ops) <to_supports_multi_process>: Use
8467 TARGET_DEFAULT_RETURN.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_get_ada_task_ptid.
8474 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8475 TARGET_DEFAULT_FUNC.
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * target-delegates.c: Rebuild.
8480 * target.c (update_current_target): Don't inherit or default
8481 to_thread_architecture.
8482 * target.h (struct target_ops) <to_thread_architecture>: Use
8483 TARGET_DEFAULT_FUNC.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target-delegates.c: Rebuild.
8488 * target.c (update_current_target): Don't inherit or default
8489 to_execution_direction.
8490 * target.h (struct target_ops) <to_execution_direction>: Use
8491 TARGET_DEFAULT_FUNC.
8493 2014-02-19 Tom Tromey <tromey@redhat.com>
8495 * target-delegates.c: Rebuild.
8496 * target.c (update_current_target): Don't inherit or default
8497 to_can_execute_reverse.
8498 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8499 TARGET_DEFAULT_RETURN.
8500 (target_can_execute_reverse): Unconditionally delegate.
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * target-delegates.c: Rebuild.
8505 * target.c (update_current_target): Don't inherit or default
8507 (dummy_goto_bookmark): Remove.
8508 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8509 * target.h (struct target_ops) <to_goto_bookmark>: Use
8510 TARGET_DEFAULT_NORETURN.
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target-delegates.c: Rebuild.
8515 * target.c (update_current_target): Don't inherit or default
8517 (dummy_get_bookmark): Remove.
8518 (init_dummy_target): Don't inherit or default to_get_bookmark.
8519 * target.h (struct target_ops) <to_get_bookmark>: Use
8520 TARGET_DEFAULT_NORETURN
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8524 * target-delegates.c: Rebuild.
8525 * target.c (update_current_target): Don't inherit or default
8526 to_make_corefile_notes.
8527 (init_dummy_target): Don't initialize to_make_corefile_notes.
8528 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8529 TARGET_DEFAULT_FUNC.
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
8535 to_find_memory_regions.
8536 (init_dummy_target): Don't initialize to_find_memory_regions.
8537 * target.h (struct target_ops) <to_find_memory_regions>: Use
8538 TARGET_DEFAULT_FUNC.
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
8545 * target.h (struct target_ops) <to_log_command>: Use
8546 TARGET_DEFAULT_IGNORE.
8547 (target_log_command): Unconditionally delegate.
8549 2014-02-19 Tom Tromey <tromey@redhat.com>
8551 * target-delegates.c: Rebuild.
8552 * target.c (update_current_target): Don't inherit or default
8553 to_pid_to_exec_file.
8554 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8555 TARGET_DEFAULT_RETURN.
8557 2014-02-19 Tom Tromey <tromey@redhat.com>
8559 * target-delegates.c: Rebuild.
8560 * target.c (update_current_target): Don't inherit or default
8562 (target_thread_name): Unconditionally delegate.
8563 * target.h (struct target_ops) <to_thread_name>: Use
8564 TARGET_DEFAULT_RETURN.
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8568 * target-delegates.c: Rebuild.
8569 * target.c (update_current_target): Don't inherit or default
8570 to_extra_thread_info.
8571 * target.h (struct target_ops) <to_extra_thread_info>: Use
8572 TARGET_DEFAULT_RETURN.
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8576 * target-delegates.c: Rebuild.
8577 * target.c (update_current_target): Don't inherit or default
8579 * target.h (struct target_ops) <to_has_exited>: Use
8580 TARGET_DEFAULT_RETURN..
8582 2014-02-19 Tom Tromey <tromey@redhat.com>
8584 * target-delegates.c: Rebuild.
8585 * target.c (update_current_target): Don't inherit or default
8586 to_set_syscall_catchpoint.
8587 (return_one): Remove.
8588 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8589 TARGET_DEFAULT_RETURN.
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8593 * target-delegates.c: Rebuild.
8594 * target.c (update_current_target): Don't inherit or default
8595 to_insert_exec_catchpoint.
8596 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8597 TARGET_DEFAULT_RETURN.
8599 2014-01-08 Tom Tromey <tromey@redhat.com>
8601 * target-delegates.c: Rebuild.
8602 * target.c (update_current_target): Don't inherit or default
8603 to_insert_exec_catchpoint.
8604 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8605 TARGET_DEFAULT_RETURN.
8607 2014-02-19 Tom Tromey <tromey@redhat.com>
8609 * target-delegates.c: Rebuild.
8610 * target.c (update_current_target): Don't inherit or default
8611 to_remove_vfork_catchpoint.
8612 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8613 TARGET_DEFAULT_RETURN.
8615 2014-02-19 Tom Tromey <tromey@redhat.com>
8617 * target-delegates.c: Rebuild.
8618 * target.c (update_current_target): Don't inherit or default
8619 to_insert_vfork_catchpoint.
8620 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8621 TARGET_DEFAULT_RETURN.
8623 2014-02-19 Tom Tromey <tromey@redhat.com>
8625 * target-delegates.c: Rebuild.
8626 * target.c (update_current_target): Don't inherit or default
8627 to_remove_fork_catchpoint.
8628 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8629 TARGET_DEFAULT_RETURN.
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8633 * target-delegates.c: Rebuild.
8634 * target.c (update_current_target): Don't inherit or default
8635 to_insert_fork_catchpoint.
8636 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8637 TARGET_DEFAULT_RETURN.
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8641 * target-delegates.c: Rebuild.
8642 * target.c (update_current_target): Don't inherit or default
8643 to_post_startup_inferior.
8644 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8645 TARGET_DEFAULT_IGNORE.
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8649 * target-delegates.c: Rebuild.
8650 * target.c (update_current_target): Don't inherit or default
8652 * target.h (struct target_ops) <to_load>: Use
8653 TARGET_DEFAULT_NORETURN.
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8657 * target-delegates.c: Rebuild.
8658 * target.c (update_current_target): Don't inherit or default
8660 * target.h (struct target_ops) <to_terminal_info>: Use
8661 TARGET_DEFAULT_FUNC.
8663 2014-02-19 Tom Tromey <tromey@redhat.com>
8665 * target-delegates.c: Rebuild.
8666 * target.c (update_current_target): Don't inherit or default
8667 to_terminal_save_ours.
8668 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8669 TARGET_DEFAULT_IGNORE.
8671 2014-02-19 Tom Tromey <tromey@redhat.com>
8673 * target-delegates.c: Rebuild.
8674 * target.c (update_current_target): Don't inherit or default
8676 * target.h (struct target_ops) <to_terminal_ours>: Use
8677 TARGET_DEFAULT_IGNORE.
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8681 * target-delegates.c: Rebuild.
8682 * target.c (update_current_target): Don't inherit or default
8683 to_terminal_ours_for_output.
8684 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8685 TARGET_DEFAULT_IGNORE.
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8689 * target-delegates.c: Rebuild.
8690 * target.c (update_current_target): Don't inherit or default
8691 to_terminal_inferior.
8692 * target.h (struct target_ops) <to_terminal_inferior>: Use
8693 TARGET_DEFAULT_IGNORE.
8695 2014-02-19 Tom Tromey <tromey@redhat.com>
8697 * target-delegates.c: Rebuild.
8698 * target.c (update_current_target): Don't inherit or default
8700 * target.h (struct target_ops) <to_terminal_init>: Use
8701 TARGET_DEFAULT_IGNORE.
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8705 * target-delegates.c: Rebuild.
8706 * target.c (update_current_target): Don't inherit or default
8707 to_can_accel_watchpoint_condition.
8708 * target.h (struct target_ops)
8709 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8713 * target-delegates.c: Rebuild.
8714 * target.c (update_current_target): Don't inherit or default
8715 to_region_ok_for_hw_watchpoint.
8716 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8717 Use TARGET_DEFAULT_FUNC.
8719 2014-02-19 Tom Tromey <tromey@redhat.com>
8721 * target-delegates.c: Rebuild.
8722 * target.c (update_current_target): Don't inherit or default
8723 to_watchpoint_addr_within_range.
8724 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8725 Use TARGET_DEFAULT_FUNC.
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8729 * target-delegates.c: Rebuild.
8730 * target.c (update_current_target): Don't inherit or default
8731 to_remove_watchpoint.
8732 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8733 TARGET_DEFAULT_NORETURN.
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_insert_watchpoint.
8740 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8741 TARGET_DEFAULT_RETURN.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8747 to_remove_hw_breakpoint.
8748 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8749 TARGET_DEFAULT_RETURN.
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_insert_hw_breakpoint.
8756 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8757 TARGET_DEFAULT_RETURN.
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_can_use_hw_breakpoint.
8764 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8765 TARGET_DEFAULT_RETURN.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8772 * target.h (struct target_ops) <to_files_info>: Use
8773 TARGET_DEFAULT_IGNORE.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8780 * target.h (struct target_ops) <to_store>: Use
8781 TARGET_DEFAULT_NORETURN.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8788 * target.h (struct target_ops) <to_post_attach>: Use
8789 TARGET_DEFAULT_IGNORE.
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8796 (default_rcmd): New function.
8797 (do_monitor_command): Unconditionally delegate.
8798 * target.h (struct target_ops) <to_rmcd>: Use
8799 TARGET_DEFAULT_FUNC.
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8803 * target-delegates.c: Rebuild.
8804 * target.c (init_dummy_target): Don't initialize to_attach.
8805 (target_attach): Unconditionally delegate.
8806 * target.h (struct target_ops) <to_attach>: Use
8807 TARGET_DEFAULT_FUNC.
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8811 * target-delegates.c: Rebuild.
8812 * target.c (target_detach): Unconditionally delegate.
8813 (init_dummy_target): Don't initialize to_detach.
8814 * target.h (struct target_ops) <to_detach>: Use
8815 TARGET_DEFAULT_IGNORE.
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8819 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8821 (target_augmented_libraries_svr4_read): Add argument.
8822 * target.c (update_current_target): Update.
8823 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8828 * target.h (struct target_ops) <to_call_history_range>: Add
8830 * target.c (target_call_history_range): Add argument.
8831 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8833 (record_btrace_call_history_from): Update.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target.h (struct target_ops) <to_call_history_from>: Add
8839 * target.c (target_call_history_from): Add argument.
8840 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8845 * target.h (struct target_ops) <to_call_history>: Add argument.
8846 * target.c (target_call_history): Add argument.
8847 * record-btrace.c (record_btrace_call_history): Add 'self'
8850 2014-02-19 Tom Tromey <tromey@redhat.com>
8852 * target.h (struct target_ops) <to_insn_history_range>: Add
8854 * target.c (target_insn_history_range): Add argument.
8855 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8857 (record_btrace_insn_history_from): Update.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target.h (struct target_ops) <to_insn_history_from>: Add
8863 * target.c (target_insn_history_from): Add argument.
8864 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8869 * target.h (struct target_ops) <to_insn_history>: Add argument.
8870 * target.c (target_insn_history): Add argument.
8871 * record-btrace.c (record_btrace_insn_history): Add 'self'
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target.h (struct target_ops) <to_goto_record>: Add argument.
8877 * target.c (target_goto_record): Add argument.
8878 * record-full.c (record_full_goto): Add 'self' argument.
8879 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8883 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8884 * target.c (target_goto_record_end): Add argument.
8885 * record-full.c (record_full_goto_end): Add 'self' argument.
8886 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8890 * target.h (struct target_ops) <to_goto_record_begin>: Add
8892 * target.c (target_goto_record_begin): Add argument.
8893 * record-full.c (record_full_goto_begin): Add 'self' argument.
8894 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8899 * target.h (struct target_ops) <to_record_is_replaying>: Add
8901 * target.c (target_record_is_replaying): Add argument.
8902 * record-full.c (record_full_is_replaying): Add 'self' argument.
8903 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8905 (record_btrace_xfer_partial, record_btrace_store_registers)
8906 (record_btrace_prepare_to_store, record_btrace_resume)
8907 (record_btrace_wait, record_btrace_decr_pc_after_break)
8908 (record_btrace_find_new_threads, record_btrace_thread_alive):
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target.h (struct target_ops) <to_delete_record>: Add argument.
8914 * target.c (target_delete_record): Add argument.
8915 * record-full.c (record_full_delete): Add 'self' argument.
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8919 * target.h (struct target_ops) <to_save_record>: Add argument.
8920 * target.c (target_save_record): Add argument.
8921 * record-full.c (record_full_save): Add 'self' argument.
8922 (record_full_save): Add 'self' argument.
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8926 * target.h (struct target_ops) <to_info_record>: Add argument.
8927 * target.c (target_info_record): Add argument.
8928 * record.c (info_record_command): Add argument.
8929 * record-full.c (record_full_info): Add 'self' argument.
8930 * record-btrace.c (record_btrace_info): Add 'self' argument.
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8935 * target.c (target_stop_recording): Add argument.
8936 * record.c (record_stop): Add argument.
8937 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8942 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8943 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8944 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8946 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8947 (_initialize_amd64_linux_nat): Use it.
8948 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8949 (_initialize_i386_linux_nat): Use it.
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8954 * target.c (target_teardown_btrace): Add argument.
8955 * remote.c (remote_teardown_btrace): Add 'self' argument.
8956 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8958 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8963 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8964 * target.c (target_disable_btrace): Add argument.
8965 * remote.c (remote_disable_btrace): Add 'self' argument.
8966 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8968 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8973 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8974 * target.c (target_enable_btrace): Add argument.
8975 * remote.c (remote_enable_btrace): Add 'self' argument.
8976 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8978 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8984 (target_can_use_agent): Add argument.
8985 * target.c (update_current_target): Update.
8986 * remote.c (remote_can_use_agent): Add 'self' argument.
8987 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8989 2014-02-19 Tom Tromey <tromey@redhat.com>
8991 * target.h (struct target_ops) <to_use_agent>: Add argument.
8992 (target_use_agent): Add argument.
8993 * target.c (update_current_target): Update.
8994 * remote.c (remote_use_agent): Add 'self' argument.
8995 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9000 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9001 (target_traceframe_info): Add argument.
9002 * target.c (update_current_target): Update.
9003 * remote.c (remote_traceframe_info): Add 'self' argument.
9004 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9008 * target.h (target_static_tracepoint_markers_by_strid): Add
9010 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9012 * target.c (update_current_target): Update.
9013 * remote.c (struct target_ops)
9014 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9015 * linux-nat.c (struct target_ops)
9016 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9018 2014-02-19 Tom Tromey <tromey@redhat.com>
9020 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9022 (target_static_tracepoint_marker_at): Add argument.
9023 * target.c (update_current_target): Update.
9024 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9027 2014-02-19 Tom Tromey <tromey@redhat.com>
9029 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9030 (target_set_permissions): Add argument.
9031 * target.c (update_current_target): Update.
9032 * remote.c (remote_set_permissions): Add 'self' argument.
9033 (remote_start_remote): Update.
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9037 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9038 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9039 (target_get_tib_address): Add argument.
9040 * target.c (update_current_target): Update.
9041 * remote.c (remote_get_tib_address): Add 'self' argument.
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9045 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9046 (target_set_trace_notes): Add argument.
9047 * target.c (update_current_target): Update.
9048 * remote.c (remote_set_trace_notes): Add 'self' argument.
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9052 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9054 (target_set_trace_buffer_size): Add argument.
9055 * target.c (update_current_target): Update.
9056 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9060 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9062 (target_set_circular_trace_buffer): Add argument.
9063 * target.c (update_current_target): Update.
9064 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9069 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9071 (target_set_disconnected_tracing): Add argument.
9072 * target.c (update_current_target): Update.
9073 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9077 * target.h (struct target_ops)
9078 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9079 (target_get_min_fast_tracepoint_insn_len): Add argument.
9080 * target.c (update_current_target): Update.
9081 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9088 (target_get_raw_trace_data): Add argument.
9089 * target.c (update_current_target): Update.
9090 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9094 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9096 (target_upload_trace_state_variables): Add argument.
9097 * target.c (update_current_target): Update.
9098 * remote.c (remote_upload_trace_state_variables): Add 'self'
9100 (remote_start_remote): Update.
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9106 (target_upload_tracepoints): Add argument.
9107 * target.c (update_current_target): Update.
9108 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9109 (remote_start_remote): Update.
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9114 (target_save_trace_data): Add argument.
9115 * target.c (update_current_target): Update.
9116 * remote.c (remote_save_trace_data): Add 'self' argument.
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9120 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9122 * target.h (struct target_ops)
9123 <to_get_trace_state_variable_value>: Add argument.
9124 (target_get_trace_state_variable_value): Add argument.
9125 * target.c (update_current_target): Update.
9126 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9128 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9132 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9133 * target.h (struct target_ops) <to_trace_find>: Add argument.
9134 (target_trace_find): Add argument.
9135 * target.c (update_current_target): Update.
9136 * remote.c (remote_trace_find): Add 'self' argument.
9137 * ctf.c (ctf_trace_find): Add 'self' argument.
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9141 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9142 (target_trace_stop): Add argument.
9143 * target.c (update_current_target): Update.
9144 * remote.c (remote_trace_stop): Add 'self' argument.
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9149 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9151 (target_get_tracepoint_status): Add argument.
9152 * target.c (update_current_target): Update.
9153 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9157 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9158 * target.h (struct target_ops) <to_get_trace_status>: Add
9160 (target_get_trace_status): Add argument.
9161 * target.c (update_current_target): Update.
9162 * remote.c (remote_get_trace_status): Add 'self' argument.
9163 (remote_start_remote, remote_can_download_tracepoint): Update.
9164 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * target.h (struct target_ops) <to_trace_start>: Add argument.
9169 (target_trace_start): Add argument.
9170 * target.c (update_current_target): Update.
9171 * remote.c (remote_trace_start): Add 'self' argument.
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9175 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9177 (target_trace_set_readonly_regions): Add argument.
9178 * target.c (update_current_target): Update.
9179 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9182 2014-02-19 Tom Tromey <tromey@redhat.com>
9184 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9186 (target_disable_tracepoint): Add argument.
9187 * target.c (update_current_target): Update.
9188 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9192 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9194 (target_enable_tracepoint): Add argument.
9195 * target.c (update_current_target): Update.
9196 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9198 2014-02-19 Tom Tromey <tromey@redhat.com>
9200 * target.h (struct target_ops) <to_download_trace_state_variable>:
9202 (target_download_trace_state_variable): Add argument.
9203 * target.c (update_current_target): Update.
9204 * remote.c (remote_download_trace_state_variable): Add 'self'
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9209 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9211 (target_can_download_tracepoint): Add argument.
9212 * target.c (update_current_target): Update.
9213 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9217 * target.h (struct target_ops) <to_download_tracepoint>: Add
9219 (target_download_tracepoint): Add argument.
9220 * target.c (update_current_target): Update.
9221 * remote.c (remote_download_tracepoint): Add 'self' argument.
9223 2014-02-19 Tom Tromey <tromey@redhat.com>
9225 * target.h (struct target_ops) <to_trace_init>: Add argument.
9226 (target_trace_init): Add argument.
9227 * target.c (update_current_target): Update.
9228 * remote.c (remote_trace_init): Add 'self' argument.
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9232 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9233 * target.c (target_fileio_readlink): Add argument.
9234 * remote.c (remote_hostio_readlink): Add 'self' argument.
9235 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9239 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9240 * target.c (target_fileio_unlink): Add argument.
9241 * remote.c (remote_hostio_unlink): Add 'self' argument.
9242 (remote_file_delete): Update.
9243 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9248 * target.c (target_fileio_close): Add argument.
9249 * remote.c (remote_hostio_close): Add 'self' argument.
9250 (remote_hostio_close_cleanup): Update.
9251 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9253 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9257 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9258 * target.c (target_fileio_pread): Add argument.
9259 * remote.c (remote_hostio_pread): Add 'self' argument.
9260 (remote_bfd_iovec_pread, remote_file_get): Update.
9261 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9266 * target.c (target_fileio_pwrite): Add argument.
9267 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9268 (remote_file_put): Update.
9269 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9273 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9274 * target.c (target_fileio_open): Add argument.
9275 * remote.c (remote_hostio_open): Add 'self' argument.
9276 (remote_bfd_iovec_open): Add 'self' argument.
9277 (remote_file_put): Add 'self' argument.
9278 (remote_file_get): Add 'self' argument.
9279 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9281 2014-02-19 Tom Tromey <tromey@redhat.com>
9283 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9285 (target_can_run_breakpoint_commands): Add argument.
9286 * target.c (update_current_target): Update.
9287 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9289 (remote_insert_breakpoint): Add 'self' argument.
9290 (remote_insert_hw_breakpoint): Add 'self' argument.
9291 (remote_can_run_breakpoint_commands): Add 'self' argument.
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target.h (struct target_ops)
9296 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9297 (target_supports_evaluation_of_breakpoint_conditions): Add
9299 * target.c (update_current_target): Update.
9300 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9302 (remote_insert_breakpoint): Add 'self' argument.
9303 (remote_insert_hw_breakpoint): Add 'self' argument.
9304 (remote_supports_cond_breakpoints): Add 'self' argument.
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9310 (target_supports_string_tracing): Add argument.
9311 * target.c (update_current_target): Update.
9312 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9314 2014-02-19 Tom Tromey <tromey@redhat.com>
9316 * target.h (struct target_ops)
9317 <to_supports_disable_randomization>: Add argument.
9318 * target.c (find_default_supports_disable_randomization): Add
9320 (target_supports_disable_randomization): Add argument.
9321 (find_default_supports_disable_randomization): Add 'self'
9323 * remote.c (extended_remote_supports_disable_randomization): Add
9325 (remote_supports_disable_randomization): Add 'self' argument.
9326 (extended_remote_create_inferior): Update.
9327 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target.h (struct target_ops)
9333 <to_supports_enable_disable_tracepoint>: Add argument.
9334 (target_supports_enable_disable_tracepoint): Add argument.
9335 * target.c (update_current_target): Update.
9336 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9339 2014-02-19 Tom Tromey <tromey@redhat.com>
9341 * target.h (struct target_ops) <to_supports_multi_process>: Add
9343 (target_supports_multi_process): Add argument.
9344 * target.c (update_current_target): Update.
9345 * remote.c (remote_supports_multi_process): Add 'self' argument.
9346 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9348 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target.h (struct target_ops) <to_execution_direction>: Add
9355 (target_execution_direction): Add argument.
9356 * target.c (default_execution_direction): Add 'self' argument.
9357 * record-full.c (record_full_execution_direction): Add 'self'
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9362 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9364 (target_can_execute_reverse): Add argument.
9365 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9366 * record-full.c (record_full_can_execute_reverse): Add 'self'
9368 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9374 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9376 (target_get_ada_task_ptid): Add argument.
9377 * target.c (update_current_target): Update.
9378 (default_get_ada_task_ptid): Add 'self' argument.
9379 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9380 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9381 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9383 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9385 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9387 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9389 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9390 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9393 2014-02-19 Tom Tromey <tromey@redhat.com>
9395 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9396 (target_goto_bookmark): Add argument.
9397 * target.c (dummy_goto_bookmark): Add 'self' argument.
9398 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9402 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9403 (target_get_bookmark): Add argument.
9404 * target.c (dummy_get_bookmark): Add 'self' argument.
9405 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9411 (target_make_corefile_notes): Add argument.
9412 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9413 * procfs.c (procfs_make_note_section): Add 'self' argument.
9414 (procfs_make_note_section): Add 'self' argument.
9415 (procfs_make_note_section): Add 'self' argument.
9416 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9418 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9419 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9420 * exec.c (exec_make_note_section): Add 'self' argument.
9421 (exec_make_note_section): Add 'self' argument.
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9425 * target.h (struct target_ops) <to_find_memory_regions>: Add
9427 (target_find_memory_regions): Add argument.
9428 * target.c (dummy_find_memory_regions): Add 'self' argument.
9429 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9430 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9431 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9432 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9433 * exec. (exec_do_find_memory_regions): New global.
9434 (exec_set_find_memory_regions): Rewrite.
9435 (exec_find_memory_regions): New function.
9436 (init_exec_ops): Use exec_find_memory_regions.
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9440 * target.h (struct target_ops) <to_supports_non_stop>: Add
9442 * target.c (find_default_supports_non_stop): Add argument.
9443 (target_supports_non_stop): Add argument.
9444 (find_default_supports_non_stop): Add 'self' argument.
9445 * remote.c (remote_supports_non_stop): Add 'self' argument.
9446 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target.h (struct target_ops) <to_log_command>: Add argument.
9451 (target_log_command): Add argument.
9452 * serial.h (serial_log_command): Add 'self' argument.
9453 * serial.c (serial_log_command): Add 'self' argument.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9458 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9460 (target_pid_to_exec_file): Add argument.
9461 * target.c (debug_to_pid_to_exec_file): Add argument.
9462 (update_current_target): Update.
9463 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9464 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9465 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9466 (linux_handle_extended_wait): Update.
9467 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9468 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9469 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9470 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9472 2014-02-19 Tom Tromey <tromey@redhat.com>
9474 * target.h (struct target_ops) <to_rcmd>: Add argument.
9475 (target_rcmd): Add argument.
9476 * target.c (debug_to_rcmd): Add argument.
9477 (update_current_target, do_monitor_command): Update.
9478 * remote.c (remote_rcmd): Add 'self' argument.
9479 * monitor.c (monitor_rcmd): Add 'self' argument.
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9483 * windows-nat.c (windows_stop): Add 'self' argument.
9484 * target.h (struct target_ops) <to_stop>: Add argument.
9485 * target.c (target_stop): Add argument.
9486 (debug_to_stop): Add argument.
9487 (update_current_target): Update.
9488 * remote.c (remote_stop): Add 'self' argument.
9489 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9490 (gdbsim_cntrl_c): Update.
9491 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9492 * procfs.c (procfs_stop): Add 'self' argument.
9493 * nto-procfs.c (procfs_stop): Add 'self' argument.
9494 * monitor.c (monitor_stop): Add 'self' argument.
9495 (monitor_open): Update.
9496 * linux-nat.c (linux_nat_stop): Add argument.
9497 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9498 * gnu-nat.c (gnu_stop): Add 'self' argument.
9499 * darwin-nat.c (darwin_stop): Add 'self' argument.
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9503 * target.h (struct target_ops) <to_thread_name>: Add argument.
9504 * target.c (target_thread_name): Add argument.
9505 (update_current_target): Update.
9506 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target.h (struct target_ops) <to_extra_thread_info>: Add
9512 (target_extra_thread_info): Add argument.
9513 * target.c (update_current_target): Update.
9514 * remote.c (remote_threads_extra_info): Add 'self' argument.
9515 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9517 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9518 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9519 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9521 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9523 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9525 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target.h (struct target_ops) <to_program_signals>: Add argument.
9531 * target.c (target_program_signals): Add argument.
9532 * remote.c (remote_program_signals): Add 'self' argument.
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9536 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9537 * target.c (target_pass_signals): Add argument.
9538 * remote.c (remote_pass_signals): Add 'self' argument.
9539 (remote_start_remote): Update.
9540 * procfs.c (procfs_pass_signals): Add 'self' argument.
9541 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9542 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9543 (linux_nat_create_inferior, linux_nat_attach): Update.
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9547 * windows-nat.c (windows_can_run): Add 'self' argument.
9548 * target.h (struct target_ops) <to_can_run>: Add argument.
9549 (target_can_run): Add argument.
9550 * target.c (debug_to_can_run): Add argument.
9551 (update_current_target): Update.
9552 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9553 * inf-child.c (inf_child_can_run): Add 'self' argument.
9554 * go32-nat.c (go32_can_run): Add 'self' argument.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target.h (struct target_ops) <to_has_exited>: Add argument.
9559 (target_has_exited): Add argument.
9560 * target.c (debug_to_has_exited): Add argument.
9561 (update_current_target): Update.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9567 (target_set_syscall_catchpoint): Add argument.
9568 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9570 * target.c (update_current_target): Update.
9572 2014-02-19 Tom Tromey <tromey@redhat.com>
9574 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9576 (target_remove_exec_catchpoint): Add argument.
9577 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9578 (update_current_target): Update.
9579 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9586 (target_insert_exec_catchpoint): Add argument.
9587 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9588 (update_current_target): Update.
9589 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9596 (target_remove_vfork_catchpoint): Add argument.
9597 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9598 (update_current_target): Update.
9599 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9606 (target_insert_vfork_catchpoint): Add argument.
9607 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9608 (update_current_target): Update.
9609 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9614 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9616 (target_remove_fork_catchpoint): Add argument.
9617 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9618 (update_current_target): Update.
9619 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9624 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9626 (target_insert_fork_catchpoint): Add argument.
9627 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9628 (update_current_target): Update.
9629 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9636 (target_post_startup_inferior): Add argument.
9637 * target.c (debug_to_post_startup_inferior): Add argument.
9638 (update_current_target): Update.
9639 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9641 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9643 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9645 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9647 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9649 (super_post_startup_inferior): Likewise.
9650 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9652 (super_post_startup_inferior): Likewise.
9653 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9654 Add 'self' argument.
9655 (super_post_startup_inferior): Likewise.
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target.h (struct target_ops) <to_load>: Add argument.
9660 * target.c (target_load): Add argument.
9661 (debug_to_load): Add argument.
9662 (update_current_target): Update.
9663 * remote.c (remote_load): Add 'self' argument.
9664 * remote-sim.c (gdbsim_load): Add 'self' argument.
9665 * remote-mips.c (mips_load): Add 'self' argument.
9666 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9667 * monitor.c (monitor_load): Add 'self' argument.
9668 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9670 2014-02-19 Tom Tromey <tromey@redhat.com>
9672 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9673 (target_terminal_info): Add argument.
9674 * target.c (debug_to_terminal_info): Add argument.
9675 (default_terminal_info): Likewise.
9676 * inflow.c (child_terminal_info): Add 'self' argument.
9677 * inferior.h (child_terminal_info): Add 'self' argument.
9678 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9682 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9684 (target_terminal_save_ours): Add argument.
9685 * target.c (debug_to_terminal_save_ours): Add argument.
9686 (update_current_target): Update.
9687 * inflow.c (terminal_save_ours): Add 'self' argument.
9688 * inferior.h (terminal_save_ours): Add 'self' argument.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9693 (target_terminal_ours): Add argument.
9694 * target.c (debug_to_terminal_ours): Add argument.
9695 (update_current_target): Update.
9696 * remote.c (remote_terminal_ours): Add 'self' argument.
9697 (remote_close): Update.
9698 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9699 * inflow.c (terminal_ours): Add 'self' argument.
9700 * inferior.h (terminal_ours): Add 'self' argument.
9701 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9703 2014-02-19 Pedro Alves <palves@redhat.com>
9704 Tom Tromey <tromey@redhat.com>
9706 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9708 (target_terminal_ours_for_output): Add argument.
9709 * target.c (debug_to_terminal_ours_for_output): Add argument.
9710 (update_current_target): Update.
9711 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9712 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9713 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target.h (struct target_ops) <to_terminal_inferior>: Add
9719 * target.c (target_terminal_inferior): Add argument.
9720 (update_current_target): Update.
9721 * remote.c (remote_terminal_inferior): Add 'self' argument.
9722 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9723 * inflow.c (terminal_inferior): Add 'self' argument.
9724 * inferior.h (terminal_inferior): Add 'self' argument.
9725 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9726 (go32_terminal_inferior): Add 'self' argument.
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9730 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9731 (target_terminal_init): Add argument.
9732 * target.c (debug_to_terminal_init): Add argument.
9733 (update_current_target): Update.
9734 * inflow.c (terminal_init_inferior): Add 'self' argument.
9735 * inferior.h (terminal_init_inferior): Add 'self' argument.
9736 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9737 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target.h (struct target_ops)
9742 <to_can_accel_watchpoint_condition>: Add argument.
9743 (target_can_accel_watchpoint_condition): Add argument.
9744 * target.c (debug_to_can_accel_watchpoint_condition): Add
9746 (update_current_target): Update.
9747 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9752 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9754 (target_region_ok_for_hw_watchpoint): Add argument.
9755 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9756 (default_region_ok_for_hw_watchpoint): Add argument.
9757 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9758 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9760 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9762 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9764 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9766 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9768 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9770 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9771 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9773 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9774 Add 'self' argument.
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9780 (target_insert_watchpoint): Add argument.
9781 * target.c (debug_to_insert_watchpoint): Add argument.
9782 (update_current_target): Update.
9783 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9784 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9785 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9786 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9787 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9788 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9790 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9791 (procfs_insert_hw_watchpoint): Add 'self' argument.
9792 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9794 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9796 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9798 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9799 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9801 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9808 (target_remove_watchpoint): Add argument.
9809 * target.c (debug_to_remove_watchpoint): Add argument.
9810 (update_current_target): Update.
9811 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9812 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9813 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9814 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9815 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9816 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9818 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9819 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9821 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9823 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9825 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9826 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9828 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9833 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9835 (target_remove_hw_breakpoint): Add argument.
9836 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9837 (update_current_target): Update.
9838 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9839 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9841 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9842 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9844 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9851 (target_insert_hw_breakpoint): Add argument.
9852 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9853 (update_current_target): Update.
9854 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9855 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9857 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9858 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9859 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9861 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9864 2014-02-19 Tom Tromey <tromey@redhat.com>
9866 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9868 (target_can_use_hardware_watchpoint): Add argument.
9869 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9870 (update_current_target): Update.
9871 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9873 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9875 * remote.c (remote_check_watch_resources): Add 'self' argument.
9876 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9877 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9879 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9880 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9882 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9884 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9886 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9888 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9890 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9892 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9893 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9895 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9900 * target.h (struct target_ops) <to_post_attach>: Add argument.
9901 (target_post_attach): Add argument.
9902 * target.c (debug_to_post_attach): Add argument.
9903 (update_current_target): Update.
9904 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9905 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9906 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9907 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9908 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9912 * windows-nat.c (windows_close): Add 'self' argument.
9913 * tracepoint.c (tfile_close): Add 'self' argument.
9914 * target.h (struct target_ops) <to_close>: Add argument.
9915 * target.c (target_close): Add argument.
9916 (update_current_target): Update.
9917 * remote.c (remote_close): Add 'self' argument.
9918 * remote-sim.c (gdbsim_close): Add 'self' argument.
9919 * remote-mips.c (mips_close): Add 'self' argument.
9920 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9921 * record-full.c (record_full_close): Add 'self' argument.
9922 * record-btrace.c (record_btrace_close): Add 'self' argument.
9923 * monitor.h (monitor_close): Add 'self' argument.
9924 * monitor.c (monitor_close): Add 'self' argument.
9925 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9926 * linux-nat.c (linux_nat_close): Add argument.
9927 * go32-nat.c (go32_close): Add 'self' argument.
9928 * exec.c (exec_close_1): Add 'self' argument.
9929 * ctf.c (ctf_close): Add 'self' argument.
9930 * corelow.c (core_close): Add 'self' argument.
9931 (core_close_cleanup): Update.
9932 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9933 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * remote.c (remote_load): New function.
9938 (init_remote_ops): Use it.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9944 * common/linux-btrace.h (linux_supports_btrace): Update.
9945 * remote.c (remote_supports_btrace): Add "self" argument.
9946 * target-delegates.c: Rebuild.
9947 * target.c (target_supports_btrace): Remove.
9948 * target.h (struct target_ops) <to_supports_btrace>: Add
9949 target_ops argument.
9950 (target_supports_btrace): New define.
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9954 * record-full.c (record_full_beneath_to_resume_ops)
9955 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9956 (record_full_beneath_to_wait)
9957 (record_full_beneath_to_store_registers_ops)
9958 (record_full_beneath_to_store_registers)
9959 (record_full_beneath_to_xfer_partial_ops)
9960 (record_full_beneath_to_xfer_partial)
9961 (record_full_beneath_to_insert_breakpoint_ops)
9962 (record_full_beneath_to_insert_breakpoint)
9963 (record_full_beneath_to_remove_breakpoint_ops)
9964 (record_full_beneath_to_remove_breakpoint)
9965 (record_full_beneath_to_stopped_by_watchpoint)
9966 (record_full_beneath_to_stopped_data_address)
9967 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9968 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9969 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9970 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9971 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9972 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9973 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9974 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9975 (record_full_resume, record_full_wait_1)
9976 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9977 (record_full_store_registers, record_full_xfer_partial)
9978 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9979 (record_full_async, record_full_core_xfer_partial): Use target
9981 * target-delegates.c: Rebuild.
9982 * target.c (current_xfer_partial): Remove.
9983 (update_current_target): Do not INHERIT or de_fault
9984 to_insert_breakpoint, to_remove_breakpoint,
9985 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9986 to_is_async_p, to_async. Do not set to_xfer_partial field.
9987 (default_xfer_partial): Simplify.
9988 (current_xfer_partial): Remove.
9989 (target_wait, target_resume): Simplify.
9990 (find_default_can_async_p, find_default_is_async_p): Update.
9991 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9992 to_xfer_partial, to_stopped_by_watchpoint,
9993 to_stopped_data_address.
9994 (target_store_registers): Simplify.
9995 (forward_target_remove_breakpoint)
9996 (forward_target_insert_breakpoint): Remove.
9997 (target_remove_breakpoint, target_insert_breakpoint)
9998 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9999 * target.h (struct target_ops) <to_resume, to_wait,
10000 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10001 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10002 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10004 (forward_target_remove_breakpoint)
10005 (forward_target_insert_breakpoint): Remove.
10006 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10008 (record_btrace_insert_breakpoint): Delegate directly.
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10013 * target-delegates.c: New file.
10014 * target.c: Include target-delegates.c.
10015 (init_dummy_target): Call install_dummy_methods.
10016 (complete_target_initialization): Call install_delegators.
10017 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10018 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10019 * make-target-delegates: New file.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * record.c (find_record_target): Use find_target_at.
10024 * target.c (find_target_at): New function.
10025 * target.h (find_target_at): Declare.
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10030 Add 'ops' argument.
10031 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10033 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10034 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10036 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10038 * linux-nat.c (save_sigtrap): Update.
10039 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10040 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10041 (linux_nat_close): Update.
10042 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10044 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10046 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10047 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10048 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10049 (tmp_to_async): Add 'ops' argument.
10050 (record_full_stopped_by_watchpoint, record_full_async)
10051 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10053 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10054 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10055 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10056 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10057 (remote_is_async_p, remote_async): Add 'ops' argument.
10058 (remote_stopped_data_address): Update.
10059 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10060 * target.c (update_current_target)
10061 (find_default_can_async_p, find_default_is_async_p): Update.
10062 (init_dummy_target): Update.
10063 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10064 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10065 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10066 (target_can_async_p, target_is_async_p, target_async)
10067 (target_stopped_by_watchpoint): Update.
10069 2014-02-19 Yao Qi <yao@codesourcery.com>
10072 * gdbarch.sh: Remove startup_gdbarch.
10073 * gdbarch.c: Regenerated.
10074 * gdbarch.h: Likewise.
10076 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10078 * rl78-tdep.c (rl78_g10_register_name): New function.
10079 (rl78_return_value): Add g10 support.
10080 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10083 2014-02-17 Doug Evans <xdje42@gmail.com>
10085 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10086 (SUBDIR_GUILE_SRCS): Ditto.
10087 (scm-gsmob.o): Ditto.
10089 2014-02-17 Yao Qi <yao@codesourcery.com>
10091 * gnu-nat.c (ILL_RPC): Declare defined function.
10093 2014-02-17 Yao Qi <yao@codesourcery.com>
10095 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10096 mach_msg_type_number_t.
10097 (gnu_write_inferior): Likewise.
10099 2014-02-17 Yao Qi <yao@codesourcery.com>
10101 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10103 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10104 (inf_validate_procs, inf_signal): Likewise.
10105 (S_exception_raise_request): Likewise.
10106 (do_mach_notify_dead_name): Likewise.
10107 (steal_exc_port): Likewise.
10108 (gnu_read_inferior): Change 'copy_count''s type to
10109 mach_msg_type_number_t.
10110 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10113 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10115 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10116 flag. Adjust all users; in particular...
10117 (gnu_wait): ..., don't decrement its value in here...
10118 (gnu_create_inferior): ..., and instead set the flag in here,
10119 around the startup_inferior call, and call that one with
10120 START_INFERIOR_TRAPS_EXPECTED.
10122 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10123 (ILL_RPC): ... new macro.
10124 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10125 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10126 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10127 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10128 functions with ILL_RPC macro.
10129 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10130 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10131 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10132 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10133 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10134 (S_proc_getlogin_reply, S_proc_getsid_reply)
10135 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10136 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10137 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10138 (S_proc_getnports_reply, S_proc_is_important_reply)
10139 (S_proc_get_code_reply): New stub functions, generated with
10142 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10143 collected the type check structures.
10145 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10147 2014-02-14 Doug Evans <dje@google.com>
10149 * target.c (target_write_partial): Fix result type.
10151 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10153 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10154 the proper offsets to access fpregset_t.
10156 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10158 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10159 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10160 * h8300-tdep.c (setmachinelist): Remove global.
10161 * hppa-tdep.c (hppa_sigtramp): Remove global.
10162 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10163 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10164 * ravenscar-thread.c (update_target_observer): Remove global.
10165 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10167 2014-02-12 Tom Tromey <tromey@redhat.com>
10169 * common/rsp-low.c: Update comments.
10170 * common/rsp-low.h: Update comments.
10172 2014-02-12 Tom Tromey <tromey@redhat.com>
10174 * common/rsp-low.c (convert_ascii_to_int): Remove.
10175 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10177 2014-02-12 Tom Tromey <tromey@redhat.com>
10179 * common/rsp-low.h (unhexify): Don't declare.
10180 * common/rsp-low.c (unhexify): Remove.
10182 2014-02-12 Tom Tromey <tromey@redhat.com>
10184 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10185 * common/rsp-low.c (convert_int_to_ascii): Remove.
10187 2014-02-12 Tom Tromey <tromey@redhat.com>
10189 * common/rsp-low.h (hexify): Don't declare.
10190 * common/rsp-low.c (hexify): Remove.
10192 2014-02-12 Tom Tromey <tromey@redhat.com>
10194 * common/rsp-low.c (hexify): Never take strlen of argument.
10196 2014-02-12 Tom Tromey <tromey@redhat.com>
10198 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10199 * remote.c (extended_remote_run, remote_rcmd)
10200 (remote_download_trace_state_variable, remote_save_trace_data)
10201 (remote_set_trace_notes): Update.
10202 * tracepoint.c (encode_source_string, tfile_write_status)
10203 (tfile_write_uploaded_tsv): Update.
10205 2014-02-12 Tom Tromey <tromey@redhat.com>
10207 * tracepoint.c: Include rsp-low.h.
10208 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10209 * remote.c: Include rsp-low.h.
10210 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10211 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10212 (remote_unescape_input): Move to common/rsp-low.c.
10213 * common/rsp-low.h: New file.
10214 * common/rsp-low.c: New file.
10215 * Makefile.in (SFILES): Add common/rsp-low.c.
10216 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10217 (COMMON_OBS): Add rsp-low.o.
10218 (rsp-low.o): New target.
10220 2014-02-12 Tom Tromey <tromey@redhat.com>
10222 * utils.h: Include print-utils.h.
10223 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10224 (int_string, core_addr_to_string, core_addr_to_string_nz)
10225 (hex_string, hex_string_custom): Don't declare.
10226 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10227 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10228 (hex_string_custom, int_string, core_addr_to_string)
10229 (core_addr_to_string_nz, host_address_to_string): Move to
10230 common/print-utils.c.
10231 * common/print-utils.h: New file.
10232 * common/print-utils.c: New file
10233 * Makefile.in (SFILES): Add common/print-utils.c.
10234 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10235 (COMMON_OBS): Add print-utils.o.
10236 (print-utils.o): New target.
10238 2014-02-12 Tom Tromey <tromey@redhat.com>
10240 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10242 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10244 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10246 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10248 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10249 if a PT_IO ptrace request returns sucessfully but indicates that 0
10250 bytes were transferred.
10252 2014-02-12 Pedro Alves <palves@redhat.com>
10253 Kevin Buettner <kevinb@redhat.com>
10255 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10256 TYPE_INSTANCE_FLAG_CODE_SPACE.
10258 2014-02-12 Pedro Alves <palves@redhat.com>
10260 * h8300-tdep.c (pseudo_from_raw_register)
10261 (raw_from_pseudo_register): New functions.
10262 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10265 2014-02-12 Pedro Alves <palves@redhat.com>
10267 * h8300-tdep.c (h8300_register_sim_regno): New function.
10268 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10269 gdbarch_register_sim_regno hook.
10271 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10273 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10275 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10277 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10279 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10281 * obsd-tdep.h (obsd_init_abi): New prototype.
10282 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10283 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10284 (obsd_init_abi): New functions.
10285 * i386obsd-tdep.c: Include "obsd-tdep.h".
10286 (i386obsd_init_abi): Call obsd_init_abi.
10287 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10288 (amd64obsd_init_abi): Call obsd_init_abi.
10289 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10290 obsd-tdep.c to gdb_target_obs.
10292 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10294 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10295 double float arguments to 16-byte in the argument slots.
10297 2014-02-11 Doug Evans <xdje42@gmail.com>
10299 * configure.ac: Don't crash if pkg-config is not found and guile
10300 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10302 * configure: Regenerate.
10304 2014-02-11 Yao Qi <yao@codesourcery.com>
10306 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10307 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10308 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10309 * gnu-nat.c (gnu_xfer_memory): Likewise.
10310 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10311 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10312 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10313 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10315 2014-02-11 Yao Qi <yao@codesourcery.com>
10317 * target.h (enum target_xfer_error): Rename to ...
10318 (enum target_xfer_status): ... it. New. All users updated.
10319 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10321 (TARGET_XFER_STATUS_ERROR_P): New macro.
10322 (target_xfer_error_to_string): Remove declaration.
10323 (target_xfer_status_to_string): Declare.
10324 (target_xfer_partial_ftype): Adjust it.
10325 (struct target_ops) <to_xfer_partial>: Return
10326 target_xfer_status. Add argument xfered_len. Update
10328 * target.c (target_xfer_error_to_string): Rename to ...
10329 (target_xfer_status_to_string): ... it. New. All callers
10331 (target_read_live_memory): Likewise. Call target_xfer_partial
10332 instead of target_read.
10333 (memory_xfer_live_readonly_partial): Return
10334 target_xfer_status. Add argument xfered_len.
10335 (raw_memory_xfer_partial): Likewise.
10336 (memory_xfer_partial_1): Likewise.
10337 (memory_xfer_partial): Likewise.
10338 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10339 properly. Update debug message.
10340 (default_xfer_partial, current_xfer_partial): Likewise.
10341 (target_write_partial): Likewise.
10342 (target_read_partial): Likewise. All callers updated.
10343 (read_whatever_is_readable): Likewise.
10344 (target_write_with_progress): Likewise.
10345 (target_read_alloc_1): Likewise.
10347 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10348 * auxv.c (procfs_xfer_auxv): Likewise.
10349 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10350 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10351 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10352 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10353 * corefile.c (read_memory): Adjust.
10354 * corelow.c (core_xfer_partial): Likewise.
10355 * ctf.c (ctf_xfer_partial): Likewise.
10356 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10358 (darwin_xfer_partial): Likewise.
10359 * exec.c (section_table_xfer_memory_partial): Likewise. All
10361 (exec_xfer_partial): Likewise.
10362 * exec.h (section_table_xfer_memory_partial): Update
10364 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10366 (gnu_xfer_partial): Likewise.
10367 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10368 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10369 (ia64_hpux_xfer_solib_got): Likewise.
10370 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10371 type of 'partial_len' to ULONGEST.
10372 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10373 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10374 (linux_nat_xfer_partial): Likewise.
10375 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10376 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10377 * monitor.c (monitor_xfer_memory): Likewise.
10378 (monitor_xfer_partial): Likewise.
10379 * procfs.c (procfs_xfer_partial): Likewise.
10380 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10381 * record-full.c (record_full_xfer_partial): Likewise.
10382 (record_full_core_xfer_partial): Likewise.
10383 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10384 (gdbsim_xfer_partial): Likewise.
10385 * remote.c (remote_write_bytes_aux): Likewise. All callers
10387 (remote_write_bytes, remote_read_bytes): Likewise. All
10389 (remote_flash_erase): Likewise. All callers updated.
10390 (remote_write_qxfer): Likewise. All callers updated.
10391 (remote_read_qxfer): Likewise. All callers updated.
10392 (remote_xfer_partial): Likewise.
10393 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10394 (rs6000_xfer_shared_libraries): Likewise.
10395 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10396 (sol_thread_xfer_partial): Likewise.
10397 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10398 (sparc_xfer_partial): Likewise.
10399 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10401 (spu_xfer_partial): Likewise.
10402 * spu-multiarch.c (spu_xfer_partial): Likewise.
10403 * tracepoint.c (tfile_xfer_partial): Likewise.
10404 * windows-nat.c (windows_xfer_memory): Likewise.
10405 (windows_xfer_shared_libraries): Likewise.
10406 (windows_xfer_partial): Likewise.
10407 * valprint.c: Replace 'target_xfer_error' with
10408 'target_xfer_status' in comments.
10410 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10412 Checked in by Joel Brobecker <brobecker@adacore.com>.
10413 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10415 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10417 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10418 function parameters.
10420 2014-02-10 Will Newton <will.newton@linaro.org>
10422 * elfread.c (elf_rel_plt_read): Look for a .got section if
10423 looking up .got.plt fails.
10424 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10425 on address passed to elf_gnu_ifunc_record_cache.
10426 (elf_gnu_ifunc_resolve_addr): Likewise.
10427 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10429 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10431 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10432 (X_RETTURN): New macro.
10433 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10435 * sparc64-tdep.c (sparc64_init_abi): Hook
10436 sparc_in_function_epilogue_p.
10438 2014-02-10 Gary Benson <gbenson@redhat.com>
10440 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10441 Rename name_matcher to symbol_matcher.
10443 2014-02-10 Gary Benson <gbenson@redhat.com>
10445 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10446 Use expand_symtabs_file_matcher_ftype and
10447 expand_symtabs_symbol_matcher_ftype.
10449 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10451 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10452 (struct ada_symbol_cache): New.
10453 (ada_free_symbol_cache): Forward declare.
10454 (struct ada_pspace_data): New.
10455 (ada_pspace_data_handle): New static global.
10456 (get_ada_pspace_data, ada_pspace_data_cleanup)
10457 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10458 (cache_space, cache): Delete, now folded inside struct
10460 (ada_get_symbol_cache): New function.
10461 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10463 (_initialize_ada_language): Remove initialization of cache_space.
10464 Move call to observer_attach_inferior_exit up, grouping it
10465 with the other observer registrations inside this function.
10466 Rename command to be more general. Add call to
10467 register_program_space_data_with_cleanup.
10469 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10471 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10472 ada_new_objfile_observer.
10473 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10474 (_initialize_tasks): Update uses of ada_new_objfile_observer
10475 and ada_tasks_normal_stop_observer.
10477 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10479 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10480 returned by the 'Length attribute to integer.
10482 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10484 * ada-lang.c (_initialize_ada_language): Initialize
10485 cache_space obstack.
10487 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10489 * ada-lang.c (HASH_SIZE): New macro.
10490 (struct cache_entry): New type.
10491 (cache_space, cache): New static globals.
10492 (ada_clear_symbol_cache, find_entry): New functions.
10493 (lookup_cached_symbol, cache_symbol): Implement.
10494 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10495 (_initialize_ada_language): Attach ada_new_objfile_observer
10496 and ada_free_objfile_observer.
10498 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10500 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10501 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10502 struct block * parameter.
10503 (ada_lookup_symbol_list_worker): Constify local variable "block".
10504 Remove cast which is no longer necessary.
10506 2014-02-10 Doug Evans <xdje42@gmail.com>
10508 Add Guile as an extension language.
10509 * NEWS: Mention Guile scripting.
10510 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10511 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10512 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10513 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10514 (CLIBS): Add GUILE_LIBS.
10515 (install-guile): New rule.
10516 (guile.o): New rule.
10517 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10518 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10519 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10520 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10521 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10522 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10523 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10524 * configure.ac: New option --with-guile.
10525 * configure: Regenerate.
10526 * config.in: Regenerate.
10527 * auto-load.c: Remove #include "python/python.h". Add #include
10528 "gdb/section-scripts.h".
10529 (source_section_scripts): Handle Guile scripts.
10530 (_initialize_auto_load): Add name of Guile objfile script to
10531 scripts-directory help text.
10532 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10533 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10534 (struct breakpoint): New member scm_bp_object.
10535 * defs.h (enum command_control_type): New value guile_control.
10536 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10538 (show_user): Update comment.
10539 (_initialize_cli_cmds): Update help text for "show user". Update help
10540 text for max-user-call-depth.
10541 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10543 (multi_line_command_p): Add guile_control.
10544 (print_command_lines): Handle guile_control.
10545 (execute_control_command, recurse_read_control_structure): Ditto.
10546 (process_next_line): Recognize "guile" commands.
10547 * disasm.c (gdb_disassemble_info): Make non-static.
10548 * disasm.h: #include "dis-asm.h".
10549 (struct gdbarch): Add forward decl.
10550 (gdb_disassemble_info): Declare.
10551 * extension.c: #include "guile/guile.h".
10552 (extension_languages): Add guile.
10553 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10554 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10555 * gdbtypes.c (get_unsigned_type_max): New function.
10556 (get_signed_type_minmax): New function.
10557 * gdbtypes.h (get_unsigned_type_max): Declare.
10558 (get_signed_type_minmax): Declare.
10559 * guile/README: New file.
10560 * guile/guile-internal.h: New file.
10561 * guile/guile.c: New file.
10562 * guile/guile.h: New file.
10563 * guile/scm-arch.c: New file.
10564 * guile/scm-auto-load.c: New file.
10565 * guile/scm-block.c: New file.
10566 * guile/scm-breakpoint.c: New file.
10567 * guile/scm-disasm.c: New file.
10568 * guile/scm-exception.c: New file.
10569 * guile/scm-frame.c: New file.
10570 * guile/scm-gsmob.c: New file.
10571 * guile/scm-iterator.c: New file.
10572 * guile/scm-lazy-string.c: New file.
10573 * guile/scm-math.c: New file.
10574 * guile/scm-objfile.c: New file.
10575 * guile/scm-ports.c: New file.
10576 * guile/scm-pretty-print.c: New file.
10577 * guile/scm-safe-call.c: New file.
10578 * guile/scm-string.c: New file.
10579 * guile/scm-symbol.c: New file.
10580 * guile/scm-symtab.c: New file.
10581 * guile/scm-type.c: New file.
10582 * guile/scm-utils.c: New file.
10583 * guile/scm-value.c: New file.
10584 * guile/lib/gdb.scm: New file.
10585 * guile/lib/gdb/boot.scm: New file.
10586 * guile/lib/gdb/experimental.scm: New file.
10587 * guile/lib/gdb/init.scm: New file.
10588 * guile/lib/gdb/iterator.scm: New file.
10589 * guile/lib/gdb/printing.scm: New file.
10590 * guile/lib/gdb/types.scm: New file.
10591 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10592 (VPATH): Add $(GUILE_SRCDIR).
10593 (GUILE_DIR): New variable.
10594 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10595 (all): Add stamp-guile dependency.
10596 (stamp-guile): New rule.
10597 (clean-guile, install-guile, uninstall-guile): New rules.
10598 (install-only): Add install-guile dependency.
10599 (uninstall): Add uninstall-guile dependency.
10600 (clean): Add clean-guile dependency.
10602 2014-02-09 Doug Evans <xdje42@gmail.com>
10604 Revert this patch (which I approved, mea culpa).
10606 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10608 * Makefile.in (all-lib): Remove.
10609 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10611 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10613 Fix Python stack corruption.
10614 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10617 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10619 * Makefile.in (all-lib): Remove.
10620 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10622 2014-02-07 Doug Evans <dje@google.com>
10624 * extension-priv.h (extension_language_script_ops): Add comment.
10625 (extension_language_ops): Add comment.
10626 (active_ext_lang_state): Fix typo in comment.
10628 2014-02-07 Pedro Alves <palves@redhat.com>
10630 PR breakpoints/16292
10631 * infrun.c (handle_signal_stop) <signal arrives while stepping
10632 over a breakpoint>: Switch back to the stepping thread.
10634 2014-02-07 Yao Qi <yao@codesourcery.com>
10636 * target.c (target_xfer_partial): Return zero if LEN is zero.
10638 2014-02-07 Yao Qi <yao@codesourcery.com>
10640 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10641 (ld_so_xfer_auxv): Likewise.
10642 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10643 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10644 * corelow.c (core_xfer_partial): Likewise.
10645 * ctf.c (ctf_xfer_partial): Likewise.
10646 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10647 (darwin_xfer_partial): Likewise.
10648 * exec.c (exec_xfer_partial): Likewise.
10649 * gnu-nat.c (gnu_xfer_partial): Likewise.
10650 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10651 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10652 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10653 * linux-nat.c (linux_xfer_siginfo): Likewise.
10654 (linux_proc_xfer_spu): Likewise.
10655 * procfs.c (procfs_xfer_partial): Likewise.
10656 * record-full.c (record_full_xfer_partial): Likewise.
10657 (record_full_core_xfer_partial): Likewise.
10658 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10659 * remote.c (remote_write_qxfer): Likewise.
10660 (remote_write_qxfer, remote_read_qxfer): Likewise.
10661 (remote_xfer_partial): Likewise.
10662 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10663 (rs6000_xfer_shared_libraries): Likewise.
10664 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10665 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10666 (spu_xfer_partial): Likewise.
10667 * target.c (memory_xfer_partial_1): Likewise.
10668 * tracepoint.c (tfile_xfer_partial): Likewise.
10669 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10670 (windows_xfer_partial): Likewise.
10672 2014-02-07 Yao Qi <yao@codesourcery.com>
10674 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10676 (core_xfer_shared_libraries_aix): Likewise.
10677 * gdbarch.c, gdbarch.h: Regenerated.
10678 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10679 ULONGEST. Change 'len_avail' type to ULONGEST.
10680 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10681 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10683 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10685 2014-02-07 Yao Qi <yao@codesourcery.com>
10687 * corefile.c (memory_error): Get 'exception' from ERR and pass
10688 'exception' to throw_error.
10690 2014-02-06 Doug Evans <xdje42@gmail.com>
10692 * configure.ac (libpython checking): Remove all but python.o from
10693 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10694 * configure: Regenerate.
10696 * Makefile.in (SFILES): Add extension.c.
10697 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10698 (COMMON_OBS): Add extension.o.
10699 * extension.h: New file.
10700 * extension-priv.h: New file.
10701 * extension.c: New file.
10703 * python/python-internal.h: #include "extension.h".
10704 (gdbpy_auto_load_enabled): Declare.
10705 (gdbpy_apply_val_pretty_printer): Declare.
10706 (gdbpy_apply_frame_filter): Declare.
10707 (gdbpy_preserve_values): Declare.
10708 (gdbpy_breakpoint_cond_says_stop): Declare.
10709 (gdbpy_breakpoint_has_cond): Declare.
10710 (void source_python_script_for_objfile): Delete.
10711 * python/python.c: #include "extension-priv.h".
10712 Delete inclusion of "observer.h".
10713 (extension_language_python): Moved here and renamed from
10714 script_language_python in py-auto-load.c.
10715 Redefined to be of type extension_language_defn.
10716 (python_extension_script_ops): New global.
10717 (python_extension_ops): New global.
10718 (struct python_env): New member previous_active.
10719 (restore_python_env): Call restore_active_ext_lang.
10720 (ensure_python_env): Call set_active_ext_lang.
10721 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10723 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10725 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10727 (gdbpy_eval_from_control_command): Renamed from
10728 eval_python_from_control_command, made static. New arg extlang.
10729 (gdbpy_source_script) Renamed from source_python_script, made static.
10731 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10732 result to int. New arg extlang.
10733 (gdbpy_source_objfile_script): Renamed from
10734 source_python_script_for_objfile, made static. New arg extlang.
10735 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10736 static. New args extlang, extlang_printers. Change result type to
10738 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10739 static. New arg extlang. Rename arg printers to extlang_printers
10740 and change type to ext_lang_type_printers *.
10741 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10742 static. Replace argument arg with extlang, extlang_printers.
10743 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10744 (!HAVE_PYTHON, source_python_script): Delete.
10745 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10746 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10747 (!HAVE_PYTHON, start_type_printers): Delete.
10748 (!HAVE_PYTHON, apply_type_printers): Delete.
10749 (!HAVE_PYTHON, free_type_printers): Delete.
10750 (_initialize_python): Delete call to observer_attach_before_prompt.
10751 (finalize_python): Set/restore active extension language.
10752 (gdbpy_finish_initialization) Renamed from
10753 finish_python_initialization, made static. New arg extlang.
10754 (gdbpy_initialized): New function.
10755 * python/python.h: #include "extension.h". Delete #include
10756 "value.h", "mi/mi-cmds.h".
10757 (extension_language_python): Declare.
10758 (GDBPY_AUTO_FILE_NAME): Delete.
10759 (enum py_bt_status): Moved to extension.h and renamed to
10760 ext_lang_bt_status.
10761 (enum frame_filter_flags): Moved to extension.h.
10762 (enum py_frame_args): Moved to extension.h and renamed to
10763 ext_lang_frame_args.
10764 (finish_python_initialization): Delete.
10765 (eval_python_from_control_command): Delete.
10766 (source_python_script): Delete.
10767 (apply_val_pretty_printer): Delete.
10768 (apply_frame_filter): Delete.
10769 (preserve_python_values): Delete.
10770 (gdbpy_script_language_defn): Delete.
10771 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10772 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10774 * auto-load.c: #include "extension.h".
10775 (GDB_AUTO_FILE_NAME): Delete.
10776 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10777 (script_language_gdb): Delete, moved to extension.c and renamed to
10778 extension_language_gdb.
10779 (source_gdb_script_for_objfile): Delete.
10780 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10781 (loaded_script): Change type of language member to
10782 struct extension_language_defn *.
10783 (init_loaded_scripts_info): Initialize
10784 unsupported_script_warning_printed.
10785 (maybe_add_script): Make static. Change type of language arg to
10786 struct extension_language_defn *.
10787 (clear_section_scripts): Reset unsupported_script_warning_printed.
10788 (auto_load_objfile_script_1): Rewrite to use extension language API.
10789 (auto_load_objfile_script): Make public. Remove support-compiled-in
10790 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10791 (source_section_scripts): Rewrite to use extension language API.
10792 (load_auto_scripts_for_objfile): Rewrite to use
10793 auto_load_scripts_for_objfile.
10794 (collect_matching_scripts_data): Change type of language member to
10795 struct extension_language_defn *.
10796 (auto_load_info_scripts): Change type of language arg to
10797 struct extension_language_defn *.
10798 (unsupported_script_warning_print): New function.
10799 (script_not_found_warning_print): Make static.
10800 (_initialize_auto_load): Rewrite construction of scripts-directory
10802 * auto-load.h (struct objfile): Add forward decl.
10803 (struct script_language): Delete.
10804 (struct auto_load_pspace_info): Add forward decl.
10805 (struct extension_language_defn): Add forward decl.
10806 (maybe_add_script): Delete.
10807 (auto_load_objfile_script): Declare.
10808 (script_not_found_warning_print): Delete.
10809 (auto_load_info_scripts): Update prototype.
10810 (auto_load_gdb_scripts_enabled): Declare.
10811 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10812 auto_load_python_scripts_enabled and made public.
10813 (script_language_python): Delete, moved to python.c.
10814 (gdbpy_script_language_defn): Delete.
10815 (info_auto_load_python_scripts): Update to use
10816 extension_language_python.
10818 * breakpoint.c (condition_command): Replace call to
10819 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10820 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10821 with call to breakpoint_ext_lang_cond_says_stop.
10822 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10823 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10824 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10825 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10827 (local_setattro): Print name of extension language with existing
10830 * valprint.c (val_print, value_print): Update to call
10831 apply_ext_lang_val_pretty_printer.
10832 * cp-valprint.c (cp_print_value): Update call to
10833 apply_ext_lang_val_pretty_printer.
10834 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10835 (gdbpy_apply_val_pretty_printer): Renamed from
10836 apply_val_pretty_printer. New arg extlang.
10837 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10839 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10840 extension language API.
10841 * cli/cli-script.c (execute_control_command): Update to call
10842 eval_ext_lang_from_control_command.
10844 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10845 enum ext_lang_bt_status values. Update call to
10846 apply_ext_lang_frame_filter.
10847 (mi_cmd_stack_list_locals): Ditto.
10848 (mi_cmd_stack_list_args): Ditto.
10849 (mi_cmd_stack_list_variables): Ditto.
10850 * mi/mi-main.c: Delete #include "python/python-internal.h".
10851 Add #include "extension.h".
10852 (mi_cmd_list_features): Replace reference to python internal variable
10853 gdb_python_initialized with call to ext_lang_initialized_p.
10855 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10856 Update to use enum ext_lang_frame_args. Update to call
10857 apply_ext_lang_frame_filter.
10858 * python/py-framefilter.c (extract_sym): Update to use enum
10859 ext_lang_bt_status.
10860 (extract_value, py_print_type, py_print_value): Ditto.
10861 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10862 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10863 (py_print_frame): Ditto.
10864 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10865 New arg extlang. Update to use enum ext_lang_bt_status.
10867 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10868 finish_python_initialization. Replace with call to
10869 finish_ext_lang_initialization.
10871 * typeprint.c (do_free_global_table): Update to call
10872 free_ext_lang_type_printers.
10873 (create_global_typedef_table): Update to call
10874 start_ext_lang_type_printers.
10875 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10876 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10877 (type_print_options): Change type of global_printers from "void *"
10878 to "struct ext_lang_type_printers *".
10880 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10881 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10882 (gdbpy_preserve_values): Renamed from preserve_python_values.
10884 (!HAVE_PYTHON, preserve_python_values): Delete.
10886 * utils.c (quit_flag): Delete, moved to extension.c.
10887 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10890 * eval.c: Delete #include "python/python.h".
10891 * main.c: Delete #include "python/python.h".
10893 * defs.h: Update comment.
10895 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10899 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10901 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10904 2014-02-05 Yao Qi <yao@codesourcery.com>
10906 * remote.c (remote_pass_signals): Remove local 'buf' and use
10908 (remote_program_signals): Likewise.
10910 2014-02-05 Yao Qi <yao@codesourcery.com>
10912 * ctf.c: Include "inferior.h" and "gdbthread.h".
10913 (CTF_PID): A new macro.
10914 (ctf_open): Call inferior_appeared and add_thread_silent.
10915 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10916 (ctf_thread_alive): New function.
10917 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10919 2014-02-05 Yao Qi <yao@codesourcery.com>
10923 2013-05-24 Yao Qi <yao@codesourcery.com>
10925 * tracepoint.c (TFILE_PID): Remove.
10926 (tfile_open): Don't add thread and inferior.
10927 (tfile_close): Don't set 'inferior_ptid'. Don't call
10928 exit_inferior_silent.
10929 (tfile_thread_alive): Remove.
10930 (init_tfile_ops): Don't set field 'to_thread_alive' of
10933 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10935 * remote.c (remote_start_remote): Call remote_check_symbols even
10936 if only symbol-file (not file) has been given.
10938 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10940 * gdbarch.sh (skip_entrypoint): New callback.
10941 * gdbarch.c, gdbarch.h: Regenerate.
10942 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10943 * infrun.c (fill_in_stop_func): Likewise.
10944 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10945 (ppc_elfv2_elf_make_msymbol_special): New function.
10946 (ppc_elfv2_skip_entrypoint): Likewise.
10947 (ppc_linux_init_abi): Install them for ELFv2.
10949 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10951 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10952 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10953 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10954 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10955 structures returned in GPRs.
10957 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10959 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10960 offset to the stack parameter list for the ELFv2 ABI.
10962 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10964 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10965 set_gdbarch_convert_from_func_ptr_addr and
10966 set_gdbarch_elf_make_msymbol_special for ELFv1.
10967 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10968 function descriptors on ELFv1.
10969 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10970 set up r12 at function entry.
10972 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10974 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10975 (struct gdbarch_tdep): New member elf_abi.
10977 * rs6000-tdep.c: Include "elf/ppc64.h".
10978 (rs6000_gdbarch_init): Detect ELF ABI version.
10980 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10982 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10983 within a register pair holding a DFP 128-bit value on little-endian.
10984 (ppc64_sysv_abi_return_value_base): Likewise.
10985 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10986 (dfp_pseudo_register_write): Likewise.
10988 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10990 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10991 offset on little-endian when passing _Decimal32.
10992 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10994 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10996 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10997 of the overlapped FP register within the VSX register on little-
10999 (efpr_pseudo_register_write): Likewise.
11001 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11003 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11004 offset on little-endian when passing small structures.
11006 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11008 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11009 (struct ppc64_sysv_argpos): New data structure.
11010 (ppc64_sysv_abi_push_float): Remove.
11011 (ppc64_sysv_abi_push_val): New function.
11012 (ppc64_sysv_abi_push_integer): Likewise.
11013 (ppc64_sysv_abi_push_freg): Likewise.
11014 (ppc64_sysv_abi_push_vreg): Likewise.
11015 (ppc64_sysv_abi_push_param): Likewise.
11016 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11017 (ppc64_sysv_abi_return_value_base): New function.
11018 (ppc64_sysv_abi_return_value): Refactor to use it.
11020 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11022 * NEWS: Document new target powerpc64le-*-linux*.
11024 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11026 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11027 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11029 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11030 register set used in ELF core dumps. Add floating-point register set.
11032 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11034 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11035 dwarf2_to_gdb[] table using symbolic constants. Adjust
11036 penultimate entry from number representing the PC register
11037 to symbolic constant representing the MDR register. Add
11038 constant for the PC register to the end of the table.
11040 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11042 * bsd-kvm.c: Include <sys/param.h>
11044 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11046 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11048 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11050 * ada-lang.h (clear_ada_sym_cache): Delete.
11052 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11054 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11056 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11058 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11059 the sigreturn register save area only if the syscall is
11062 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11064 * valops.c (value_slice): Minor reformatting.
11066 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11068 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11070 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11072 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11073 New static globals.
11074 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11075 (ada_ignore_descriptive_types_p): New static global.
11076 (find_parallel_type_by_descriptive_type): Return immediately
11077 if ada_ignore_descriptive_types_p is set.
11078 (_initialize_ada_language): Register new commands "maintenance
11079 set ada", "maintenance show ada", "maintenance set ada
11080 ignore-descriptive-types" and "maintenance show ada
11081 ignore-descriptive-types".
11082 * NEWS: Add entry for new "maint ada set/show
11083 ignore-descriptive-types" commands.
11085 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11087 * record-btrace.c (record_btrace_close): Call btrace_teardown
11090 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11092 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11095 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11097 * ada-typeprint (type_is_full_subrange_of_target_type):
11099 (print_range): Add parameter bounds_prefered_p. If not set,
11100 try printing range types using the name of their base type.
11101 (print_range_type): Add parameter bounds_prefered_p.
11102 Use it in call to print_range.
11103 (print_array_type, ada_print_type): Update calls to print_range
11104 and print_range_type.
11106 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11108 * ada-typeprint.c (print_array_type, print_choices, print_range)
11109 (print_range_bound, print_dynamic_range_bound, print_range_type):
11110 Remove declaration.
11112 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11114 * ada-typeprint.c (print_range): Add missing empty line
11115 after local declaration.
11117 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11119 * ada-valprint.c (print_optional_low_bound): Get index_type's
11120 target type for as long as it is a TYPE_CODE_RANGE.
11122 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11124 * procfs.c (procfs_make_note_section): Remove assertion and
11125 associated comment.
11127 2014-01-24 Yao Qi <yao@codesourcery.com>
11129 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11130 * corelow.c (get_core_siginfo): Likewise.
11132 2014-01-24 Yao Qi <yao@codesourcery.com>
11134 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11135 ULONGEST. Don't check 'len' is negative.
11136 (remote_write_bytes): Change type of 'len' to ULONGEST.
11138 2014-01-23 Tom Tromey <tromey@redhat.com>
11141 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11142 Handle exception from frame.block.
11143 (FrameVars.fetch_frame_locals): Likewise.
11145 2014-01-23 Tom Tromey <tromey@redhat.com>
11148 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11149 on a NULL pointer. Move "goto error" to correct place.
11151 2014-01-23 Tom Tromey <tromey@redhat.com>
11154 * python/py-framefilter.c (apply_frame_filter): Call
11155 ensure_python_env after computing gdbarch.
11157 2014-01-23 Yao Qi <yao@codesourcery.com>
11159 * target.c (raw_memory_xfer_partial): Change argument type
11160 from void * to gdb_byte *.
11161 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11163 2014-01-22 Doug Evans <dje@google.com>
11165 New gdbserver option --debug-format=timestamp.
11166 * NEWS: Mention it.
11168 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11170 * syscalls/s390x-linux.xml: New file.
11171 * syscalls/s390-linux.xml: New file.
11172 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11173 (XML_SYSCALL_FILENAME_S390X): Likewise.
11174 (op_svc): New enum value for SVC opcode.
11175 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11176 (s390_linux_get_syscall_number): New function.
11177 (s390_gdbarch_init): Register '*get_syscall_number' and the
11178 syscall xml file name.
11179 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11180 "s390-linux.xml" and "s390x-linux.xml".
11181 * NEWS: Announce new feature.
11183 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11185 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11187 2014-01-22 Pedro Alves <palves@redhat.com>
11189 * xtensa-config.c: Include defs.h.
11191 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11193 * common/common-utils.h: Add "ARI:" comment beside __func__
11196 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11198 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11199 documentation a bit.
11201 2014-01-21 Roland McGrath <mcgrathr@google.com>
11203 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11204 * configure: Regenerate.
11205 * aclocal.m4: Regenerate.
11206 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11207 New substituted variables.
11208 (install-strip): New target.
11209 (INSTALL_SCRIPT): New substituted variable.
11210 (FLAGS_TO_PASS): Add it.
11211 (install-only): Use $(INSTALL_SCRIPT) rather than
11212 $(INSTALL_PROGRAM) for gcore.
11214 2014-01-20 Tom Tromey <tromey@redhat.com>
11216 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11219 2014-01-20 Tom Tromey <tromey@redhat.com>
11221 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11222 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11223 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11224 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11225 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11226 (struct cmd_list_element) <flags>: Remove.
11227 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11228 doc_allocated>: New fields.
11229 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11231 * maint.c (maintenance_do_deprecate): Update.
11232 * top.c (execute_command): Update.
11234 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11236 * xtensa-linux-nat.c: Include asm/ptrace.h.
11238 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11240 * Makefile.in (SFILES): Add d-support.c.
11241 (COMMON_OBS): Add d-support.o.
11242 * d-lang.h (d_parse_symbol): Add comment, now defined in
11244 * d-lang.c (parse_call_convention)
11245 (parse_attributes, parse_function_types)
11246 (parse_function_args, parse_type, parse_identifier)
11247 (call_convention_p, d_parse_symbol): Move functions to ...
11248 * d-support.c: ... New file.
11250 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11252 * d-lang.h (d_parse_symbol): Add declaration.
11253 * d-lang.c (extract_identifiers)
11254 (extract_type_info): Remove functions.
11255 (parse_call_convention, parse_attributes)
11256 (parse_function_types, parse_function_args)
11257 (parse_type, parse_identifier, call_convention_p)
11258 (d_parse_symbol): New functions.
11259 (d_demangle): Use d_parse_symbol to demangle D symbols.
11261 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11263 * d-lang.h (struct builtin_d_type): New data type.
11264 (builtin_d_type): Add declaration.
11265 * d-lang.c (d_language_arch_info, build_d_types)
11266 (builtin_d_type): New functions.
11267 (enum d_primitive_types): New data type.
11268 (d_language_defn): Change c_language_arch_info to
11269 d_language_arch_info.
11270 (d_type_data): New static variable.
11271 (_initialize_d_language): Initialize d_type_data.
11273 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11275 * d-lang.h (d_main_name): Add declaration.
11276 * d-lang.c (d_main_name): New function.
11277 * symtab.c (find_main_name): Add call to d_main_name.
11279 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11281 * d-lang.c (d_language_defn): Change macro_expansion_c to
11282 macro_expansion_no.
11284 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11286 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11288 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11290 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11291 gdb_exception" declaration.
11292 * remote.c (getpkt_or_notif_sane): Likewise.
11294 2014-01-17 Doug Evans <dje@google.com>
11296 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11297 function, contents of dirnames_to_char_ptr_vec_append moved here.
11298 (delim_string_to_char_ptr_vec): New function.
11299 (dirnames_to_char_ptr_vec_append): Rewrite.
11300 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11302 2014-01-17 Doug Evans <dje@google.com>
11304 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11306 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11307 #include "common-utils.h".
11308 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11309 * common/vec.h (VEC_ASSERT_PASS): Update.
11310 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11311 (MACH_CHECK_ERROR): Update.
11313 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11315 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11317 * gdbarch.h: Regenerate.
11319 2014-01-16 Tom Tromey <tromey@redhat.com>
11321 * value.c (struct value) <regnum>: Move earlier.
11323 2014-01-16 Tom Tromey <tromey@redhat.com>
11325 * remote.c (extended_remote_create_inferior): Rename from
11326 extended_remote_create_inferior_1. Add "ops" argument. Remove
11327 old implementation.
11329 2014-01-16 Pedro Alves <palves@redhat.com>
11331 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11332 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11335 2014-01-16 Doug Evans <dje@google.com>
11337 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11339 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11341 * btrace.h (btrace_thread_flag): New.
11342 (struct btrace_thread_info) <flags>: New.
11343 * record-btrace.c (record_btrace_resume_thread)
11344 (record_btrace_find_thread_to_move, btrace_step_no_history)
11345 (btrace_step_stopped, record_btrace_start_replaying)
11346 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11347 (record_btrace_find_resume_thread): New.
11348 (record_btrace_resume, record_btrace_wait): Extend.
11349 (record_btrace_can_execute_reverse): New.
11350 (record_btrace_open): Fail in non-stop mode.
11351 (record_btrace_set_replay): Split into this, ...
11352 (record_btrace_stop_replaying): ... this, ...
11353 (record_btrace_clear_histories): ... and this.
11354 (init_record_btrace_ops): Init to_can_execute_reverse.
11355 * NEWS: Announce it.
11357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11359 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11360 (forward_target_decr_pc_after_break)
11361 (target_decr_pc_after_break): New.
11362 * target.c (forward_target_decr_pc_after_break)
11363 (target_decr_pc_after_break): New.
11364 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11365 instead of gdbarch_decr_pc_after_break.
11366 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11367 instead of gdbarch_decr_pc_after_break.
11368 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11369 instead of gdbarch_decr_pc_after_break.
11370 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11371 instead of gdbarch_decr_pc_after_break.
11372 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11373 instead of gdbarch_decr_pc_after_break.
11374 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11375 instead of gdbarch_decr_pc_after_break.
11377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11379 * btrace.c: Include regcache.h.
11380 (btrace_add_pc): New.
11381 (btrace_enable): Call btrace_add_pc.
11382 (btrace_is_empty): New.
11383 * btrace.h (btrace_is_empty): New.
11384 * record-btrace.c (require_btrace, record_btrace_info): Call
11387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11389 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11390 Support delta reads.
11391 (linux_disable_btrace): Change return type.
11392 * common/linux-btrace.h (linux_read_btrace): Change parameters
11393 and return type to allow error reporting. Update users.
11394 (linux_disable_btrace): Change return type. Update users.
11395 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11397 (btrace_error): New.
11398 (btrace_block) <begin>: Comment on BEGIN == 0.
11399 * btrace.c (btrace_compute_ftrace): Start from the end of
11401 (btrace_stitch_trace, btrace_clear_history): New.
11402 (btrace_fetch): Read delta trace, return if replaying.
11403 (btrace_clear): Move clear history code to btrace_clear_history.
11404 (parse_xml_btrace): Throw an error if parsing failed.
11405 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11406 and return type to allow error reporting.
11407 (target_read_btrace): Change parameters and return type to allow
11409 * target.c (target_read_btrace): Update.
11410 * remote.c (remote_read_btrace): Support delta reads. Pass
11412 * NEWS: Announce it.
11414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11416 * record.h (record_btrace_frame_unwind)
11417 (record_btrace_tailcall_frame_unwind): New declarations.
11418 * dwarf2-frame: Include record.h
11419 (dwarf2_frame_cfa): Throw an error for btrace frames.
11420 * record-btrace.c: Include hashtab.h.
11421 (btrace_get_bfun_name): New.
11422 (btrace_call_history): Call btrace_get_bfun_name.
11423 (struct btrace_frame_cache): New.
11425 (bfcache_hash, bfcache_eq, bfcache_new): New.
11426 (btrace_get_frame_function): New.
11427 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11428 (record_btrace_frame_this_id): Compute own id.
11429 (record_btrace_frame_prev_register): Provide PC, throw_error
11430 for all other registers.
11431 (record_btrace_frame_sniffer): Detect btrace frames.
11432 (record_btrace_tailcall_frame_sniffer): New.
11433 (record_btrace_frame_dealloc_cache): New.
11434 (record_btrace_frame_unwind): Add new functions.
11435 (record_btrace_tailcall_frame_unwind): New.
11436 (_initialize_record_btrace): Allocate cache.
11437 * btrace.c (btrace_clear): Call reinit_frame_cache.
11438 * NEWS: Announce it.
11440 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11442 * record-btrace.c (record_btrace_set_replay)
11443 (record_btrace_goto_begin, record_btrace_goto_end)
11444 (record_btrace_goto): New.
11445 (init_record_btrace_ops): Initialize them.
11446 * NEWS: Announce it.
11448 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11450 * record-btrace.c (record_btrace_find_new_threads)
11451 (record_btrace_thread_alive): New.
11452 (init_record_btrace_ops): Initialize to_find_new_threads and
11455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11457 * record-btrace.c (record_btrace_resume): New.
11458 (record_btrace_wait): New.
11459 (init_record_btrace_ops): Initialize to_wait and to_resume.
11461 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11463 * record-btrace.c (record_btrace_xfer_partial)
11464 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11465 (record_btrace_allow_memory_access): New.
11466 (init_record_btrace_ops): Initialize new methods.
11467 * target.c (raw_memory_xfer_partial): Bail out if target reports
11468 that this memory is not available.
11470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11472 * target.h (target_ops) <to_insert_breakpoint>
11473 <to_remove_breakpoint>: Add target_ops parameter.
11474 (forward_target_insert_breakpoint): New.
11475 (forward_target_remove_breakpoint): New.
11476 (memory_remove_breakpoint, memory_insert_breakpoint):
11477 Add target_ops parameter.
11478 * target.c (target_insert_breakpoint): Split into this and ...
11479 (forward_target_insert_breakpoint): ... this.
11480 (target_remove_breakpoint): Split into this and ...
11481 (forward_target_remove_breakpoint): ... this.
11482 (debug_to_insert_breakpoint): Add target_ops parameter.
11483 Call forward_target_insert_breakpoint.
11484 (debug_to_remove_breakpoint): Add target_ops parameter.
11485 Call forward_target_remove_breakpoint.
11486 (update_current_target): Do not inherit or default to_insert_breakpoint
11487 and to_remove_breakpoint.
11488 * corelow.c (ignore): Add target_ops parameter.
11489 * exec.c (ignore): Add target_ops parameter.
11490 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11491 Add target_ops parameter.
11492 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11493 Add target_ops parameter.
11494 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11495 Add target_ops parameter.
11496 * record-full.c (record_full_beneath_to_insert_breakpoint)
11497 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11498 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11499 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11500 (record_full_core_remove_breakpoint): Add target_ops parameter.
11502 (record_full_beneath_to_insert_breakpoint_ops)
11503 (record_full_beneath_to_remove_breakpoint_ops)
11504 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11505 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11506 tmp_to_remove_breakpoint_ops,
11507 record_full_beneath_to_insert_breakpoint_ops, and
11508 record_full_beneath_to_remove_breakpoint_ops.
11509 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11510 (m32r_remove_breakpoint): Add target_ops parameter.
11511 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11512 Add target_ops parameter.
11513 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11514 Add target_ops parameter.
11516 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11517 Markus Metzger <markus.t.metzger@intel.com>
11519 * record-btrace.c: Include frame-unwind.h.
11520 (record_btrace_frame_unwind_stop_reason)
11521 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11522 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11524 (init_record_btrace_ops): Install it.
11526 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11528 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11531 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11533 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11536 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11538 * frame-unwind.c: Include target.h.
11539 (frame_unwind_try_unwinder): New function with code from ...
11540 (frame_unwind_find_by_frame): ... here. New variable
11541 unwinder_from_target, call also target_get_unwinder)
11542 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11543 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11544 * target.h (struct target_ops): New fields to_get_unwinder and
11545 to_get_tailcall_unwinder.
11546 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11550 * record-btrace.c (record_btrace_fetch_registers)
11551 (record_btrace_store_registers)
11552 (record_btrace_to_prepare_to_store): New.
11553 (init_record_btrace_ops): Add the above.
11555 2014-01-16 Tom Tromey <tromey@redhat.com>
11557 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11558 * target.h (struct target_ops) <to_prepare_to_store>: Add
11560 (target_prepare_to_store): Add argument.
11561 * target.c (debug_to_prepare_to_store): Add argument.
11562 (update_current_target): Update.
11563 * remote.c (remote_prepare_to_store): Add 'self' argument.
11564 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11565 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11566 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11567 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11569 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11570 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11571 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11572 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11573 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11577 * btrace.h (replay) <replay>: New.
11578 (btrace_is_replaying): New.
11579 * btrace.c (btrace_clear): Free replay iterator.
11580 (btrace_is_replaying): New.
11581 * record-btrace.c (record_btrace_is_replaying): New.
11582 (record_btrace_info): Print insn number if replaying.
11583 (record_btrace_insn_history): Start at replay position.
11584 (record_btrace_call_history): Start at replay position.
11585 (init_record_btrace_ops): Init to_record_is_replaying.
11587 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11589 * record-btrace.c (record_btrace_insn_history_range): Include
11591 (record_btrace_insn_history_from): Adjust range.
11592 (record_btrace_call_history_range): Include
11594 (record_btrace_call_history_from): Adjust range.
11595 * NEWS: Announce changes.
11597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11599 * record.h (enum record_print_flag)
11600 <record_print_indent_calls>: New.
11601 * record.c (get_call_history_modifiers): Recognize /c modifier.
11602 (_initialize_record): Document /c modifier.
11603 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11604 Reorder fields. Optionally indent the function name. Update
11606 * NEWS: Announce changes.
11608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11610 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11614 * btrace.c (ftrace_new_function): Start counting at one.
11615 * record-btrace.c (record_btrace_info): Adjust number of calls
11617 * NEWS: Announce it.
11619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11621 * record-btrace.c (btrace_call_history_insn_range): Print
11622 insn range as [begin, end].
11624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11626 * btrace.h (struct btrace_func_link): New.
11627 (enum btrace_function_flag): New.
11628 (struct btrace_inst): Rename to ...
11629 (struct btrace_insn): ...this. Update all users.
11630 (struct btrace_func) <ibegin, iend>: Remove.
11631 (struct btrace_func_link): New.
11632 (struct btrace_func): Rename to ...
11633 (struct btrace_function): ...this. Update all users.
11634 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11635 (number, level, flags>: New.
11636 (struct btrace_insn_iterator): Rename to ...
11637 (struct btrace_insn_history): ...this.
11639 (struct btrace_insn_iterator, btrace_call_iterator): New.
11640 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11641 (struct btrace_target_info) <begin, end, level>
11642 <insn_history, call_history>: New.
11643 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11644 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11645 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11646 (btrace_call_number, btrace_call_begin, btrace_call_end)
11647 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11648 (btrace_find_function_by_number, btrace_set_insn_history)
11649 (btrace_set_call_history): New.
11650 * btrace.c (btrace_init_insn_iterator)
11651 (btrace_init_func_iterator, compute_itrace): Remove.
11652 (ftrace_print_function_name, ftrace_print_filename)
11653 (ftrace_skip_file): Change
11654 parameter to const.
11655 (ftrace_init_func): Remove.
11656 (ftrace_debug): Use new btrace_function fields.
11657 (ftrace_function_switched): Also consider gaining and
11658 losing symbol information).
11659 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11660 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11661 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11663 (ftrace_new_function): Move. Remove debug print.
11664 (ftrace_update_lines, ftrace_update_insns): New.
11665 (ftrace_update_function): Check for call, ret, and jump.
11666 (compute_ftrace): Renamed to ...
11667 (btrace_compute_ftrace): ...this. Rewritten to compute call
11669 (btrace_fetch, btrace_clear): Updated.
11670 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11671 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11672 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11673 (btrace_call_number, btrace_call_begin, btrace_call_end)
11674 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11675 (btrace_find_function_by_number, btrace_set_insn_history)
11676 (btrace_set_call_history): New.
11677 * record-btrace.c (require_btrace): Use new btrace thread
11679 (record_btrace_info, btrace_insn_history)
11680 (record_btrace_insn_history, record_btrace_insn_history_range):
11681 Use new btrace thread info fields and new iterator.
11682 (btrace_func_history_src_line): Rename to ...
11683 (btrace_call_history_src_line): ...this. Use new btrace
11684 thread info fields.
11685 (btrace_func_history): Rename to ...
11686 (btrace_call_history): ...this. Use new btrace thread info
11687 fields and new iterator.
11688 (record_btrace_call_history, record_btrace_call_history_range):
11689 Use new btrace thread info fields and new iterator.
11691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11693 * frame.h (frame_id_build_unavailable_stack_special): New.
11694 * frame.c (frame_id_build_unavailable_stack_special): New.
11696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11698 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11699 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11700 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11702 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11703 (i386_insn_is_jump, i386_jmp_p): New.
11704 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11705 insn_is_jump to gdbarch.
11706 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11707 * gdbarch.h: Regenerated.
11708 * gdbarch.c: Regenerated.
11709 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11710 (default_insn_is_jump): New.
11711 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11712 (default_insn_is_jump): New.
11714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11716 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11718 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11719 (btrace_read_type) <btrace_read_new>: Change to ...
11720 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11722 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11724 * common/linux-btrace.c (linux_read_btrace): Free trace from
11725 previous iteration.
11727 2014-01-15 Doug Evans <dje@google.com>
11729 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11732 2014-01-15 Tom Tromey <tromey@redhat.com>
11734 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11735 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11736 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11737 (set_objfile_main_name): New function.
11738 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11739 language_of_main>: New fields.
11740 (set_objfile_main_name): Declare.
11741 * symtab.c (find_main_name): Loop over objfiles to find the main
11743 (set_main_name): Now static.
11744 (get_main_info): Add comment.
11745 * symtab.h (set_main_name): Don't declare.
11747 2014-01-15 Tom Tromey <tromey@redhat.com>
11749 * symtab.c (main_progspace_key): New global.
11750 (struct main_info): New.
11751 (name_of_main, language_of_main): Remove.
11752 (get_main_info, main_info_cleanup): New function.
11753 (set_main_name, main_name, main_language): Use get_main_info.
11754 (_initialize_symtab): Initialize main_progspace_key.
11756 2014-01-15 Tom Tromey <tromey@redhat.com>
11758 * dbxread.c (process_one_symbol): Update.
11759 * dwarf2read.c (read_partial_die): Update.
11760 * symfile.c (set_initial_language): Call main_language.
11761 * symtab.c (language_of_main): Now static.
11762 (set_main_name): Add 'lang' parameter.
11763 (find_main_name): Update.
11764 (main_language): New function.
11765 (symtab_observer_executable_changed): Update.
11766 * symtab.h (set_main_name): Update.
11767 (language_of_main): Remove.
11768 (main_language): Declare.
11770 2014-01-15 Tom Tromey <tromey@redhat.com>
11772 * symfile.c (init_entry_point_info): Use new "initialized" field.
11774 * objfiles.h (struct entry_point) <initialized>: New field.
11775 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11776 (struct objfile) <ei>: ...here. Remove.
11777 * objfiles.c (entry_point_address_query): Update.
11779 2014-01-15 Tom Tromey <tromey@redhat.com>
11781 * objfiles.c (entry_point_address_query): Relocate entry point
11783 (objfile_relocate1): Do not relocate entry point address.
11784 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11785 <the_bfd_section_index>: New field.
11786 * symfile.c (init_entry_point_info): Find the entry point's
11789 2014-01-15 Tom Tromey <tromey@redhat.com>
11791 * solib-frv.c (enable_break): Use entry_point_address_query.
11793 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11795 * NEWS: Add note on improved process record-replay on
11796 arm*-linux* targets.
11798 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11800 * arm-tdep.c (enum arm_record_result): New enum.
11801 (arm_record_unsupported_insn): New function.
11802 (arm_record_coproc_data_proc): Removed.
11803 (thumb2_record_ld_st_multiple): New function.
11804 (thumb2_record_ld_st_dual_ex_tbb): New function.
11805 (thumb2_record_data_proc_sreg_mimm): New function.
11806 (thumb2_record_ps_dest_generic): New function.
11807 (thumb2_record_branch_misc_cntrl): New function.
11808 (thumb2_record_str_single_data): New function.
11809 (thumb2_record_ld_mem_hints): New function.
11810 (thumb2_record_ld_word): New function.
11811 (thumb2_record_lmul_lmla_div): New function.
11812 (thumb2_record_decode_insn_handler): New function.
11813 (decode_insn): Add thumb32 instruction handlers.
11815 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11817 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11818 (struct arm_linux_record_tdep): Declare.
11819 (arm_canonicalize_syscall): New function.
11820 (arm_all_but_pc_registers_record): New function.
11821 (arm_linux_syscall_record): New function.
11822 (arm_linux_init_abi): Add syscall recording constructs.
11823 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11824 decoding. (arm_record_coproc_data_proc): Update arm syscall
11826 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11827 <arm_syscall_record>: New field.
11828 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11831 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11833 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11834 register for push instruction recording.
11836 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11838 * arm-tdep.c (thumb_record_misc): Update to correct logical
11839 error while recording ldm, ldmia and pop instructions.
11841 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11843 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11845 2014-01-15 Pedro Alves <palves@redhat.com>
11847 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11848 (go32_resume, go32_fetch_registers, store_register)
11849 (go32_store_registers, go32_prepare_to_store)
11850 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11851 (go32_create_inferior, go32_can_run, go32_terminal_init)
11852 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11855 2014-01-15 Tom Tromey <tromey@redhat.com>
11857 * target.h (async_callback_ftype): New typedef.
11858 (struct target_ops) <to_async>: Use it.
11860 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11862 * python/py-value.c (get_field_type): Remove unnecessary curly
11863 braces for single-statement if block.
11865 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11867 * python/py-type.c (convert_field): Add missing empty line
11868 after declarations.
11870 2014-01-14 Doug Evans <dje@google.com>
11872 * symfile.h (expand_symtabs_matching): Renamed from
11873 expand_partial_symbol_names. Update prototype.
11874 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11875 * symfile.c (expand_symtabs_matching): Renamed from
11876 expand_partial_symbol_names. New args file_matcher, kind.
11877 Rename arg fun to symbol_matcher.
11878 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11879 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11880 ada_expand_partial_symbol_name.
11881 (ada_make_symbol_completion_list): Update to call
11882 expand_symtabs_matching.
11883 (ada_add_global_exceptions): Call expand_symtabs_matching.
11884 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11885 call map_symbol_filenames.
11886 * symtab.c (sources_info): Update to call map_symbol_filenames.
11887 (search_symbols): Call expand_symtabs_matching.
11888 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11889 (default_make_symbol_completion_list_break_on): Update to call
11890 expand_symtabs_matching.
11891 (make_source_files_completion_list): Update to call
11892 map_symbol_filenames.
11894 2014-01-14 Doug Evans <dje@google.com>
11896 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11897 (expand_symtabs_symbol_matcher_ftype): New typedef.
11898 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11899 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11900 * symfile.c (expand_partial_symbol_names): Update to use
11901 expand_symtabs_symbol_matcher_ftype.
11902 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11903 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11904 Arg name_matcher renamed to symbol_matcher.
11905 * psymtab.c (recursively_search_psymtabs): Update to use
11906 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11908 (expand_symtabs_matching_via_partial): Update to use
11909 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11910 Arg name_matcher renamed to symbol_matcher.
11912 2014-01-14 Doug Evans <dje@google.com>
11914 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11915 (map_partial_symbol_filenames): Ditto.
11916 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11917 (map_partial_symbol_filenames): Ditto.
11918 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11919 (map_partial_symbol_filenames): Ditto.
11920 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11921 (map_partial_symbol_filenames): Ditto.
11922 * symtab.c: Delete #include "psymtab.h".
11924 2014-01-14 Pedro Alves <palves@redhat.com>
11925 Tom Tromey <tromey@redhat.com>
11927 * infrun.c (use_displaced_stepping): Use find_record_target
11928 instead of RECORD_IS_USED.
11929 (adjust_pc_after_break): Use record_full_is_used instead of
11931 * record-btrace.c (record_btrace_open): Call record_preopen
11932 instead of checking RECORD_IS_USED.
11933 * record-full.c (record_full_shortname)
11934 (record_full_core_shortname): New globals.
11935 (record_full_is_used): New function.
11936 (find_full_open): Call record_preopen instead of checking
11938 (init_record_full_ops): Set the target's shortname to
11939 record_full_shortname.
11940 (init_record_full_core_ops): Set the target's shortname to
11941 record_full_core_shortname.
11942 * record-full.h (record_full_is_used): Declare.
11943 * record.c (find_record_target): Make extern.
11944 (record_preopen): New function.
11945 * record.h (RECORD_IS_USED): Delete macro.
11946 (find_record_target, record_preopen): Declare functions.
11948 2014-01-14 Yao Qi <yao@codesourcery.com>
11950 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11951 'len''s type to ULONGEST.
11952 (core_xfer_shared_libraries_aix): Likewise.
11953 * gdbarch.c, gdbarch.h: Regenerated.
11954 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11955 Change type of 'len' to ULONGEST.
11956 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11957 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11959 2014-01-14 Yao Qi <yao@codesourcery.com>
11961 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11962 type of 'len' to ULONGEST.
11963 (linux_xfer_osdata_processgroups): Likewise.
11964 (linux_xfer_osdata_threads): Likewise.
11965 (linux_xfer_osdata_fds): Likewise.
11966 (linux_xfer_osdata_isockets): Likewise.
11967 (linux_xfer_osdata_shm): Likewise.
11968 (linux_xfer_osdata_sem): Likewise.
11969 (linux_xfer_osdata_msg): Likewise.
11970 (linux_common_xfer_osdata): Likewise.
11971 (struct osdata_type) <getter>: Likewise.
11972 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11975 2014-01-14 Yao Qi <yao@codesourcery.com>
11977 * target.h (target_xfer_partial_ftype): Update.
11978 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11980 * aix-thread.c (aix_thread_xfer_partial): Change type of
11981 argument 'len' to ULONGEST.
11982 * auxv.c (procfs_xfer_auxv): Likewise.
11983 (ld_so_xfer_auxv): Likewise.
11984 (memory_xfer_auxv): Likewise.
11985 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11986 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11987 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11988 * corelow.c (core_xfer_partial): Likewise.
11989 * ctf.c (ctf_xfer_partial): Likewise.
11990 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11992 (darwin_read_dyld_info): Likewise.
11993 (darwin_xfer_partial): Likewise.
11994 * exec.c (section_table_xfer_memory_partial): Likewise.
11995 (exec_xfer_partial): Likewise.
11996 * exec.h (section_table_xfer_memory_partial): Update
11998 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11999 instead of plongest.
12000 (gnu_xfer_partial): Likewise.
12001 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12002 (ia64_hpux_xfer_solib_got): Likewise.
12003 (ia64_hpux_xfer_partial): Likewise.
12004 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12005 * inf-ptrace.c (inf_ptrace_xfer_partial):
12006 * inf-ttrace.c (inf_ttrace_xfer_partial):
12007 * linux-nat.c (linux_xfer_siginfo): Likewise.
12008 (linux_nat_xfer_partial): Likewise.
12009 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12010 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12011 * monitor.c (monitor_xfer_memory): Likewise.
12012 (monitor_xfer_partial): Likewise.
12013 * procfs.c (procfs_xfer_partial): Likewise.
12014 * record-full.c (record_full_xfer_partial): Likewise.
12015 (record_full_core_xfer_partial): Likewise.
12016 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12017 instead of plongest.
12018 (gdbsim_xfer_partial): Likewise.
12019 * remote.c (remote_xfer_partial): Likewise.
12020 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12021 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12023 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12024 (rs6000_xfer_shared_libraries): Likewise.
12025 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12026 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12027 (sparc_xfer_partial): Likewise.
12028 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12029 (spu_xfer_partial): Likewise.
12030 * spu-multiarch.c (spu_xfer_partial): Likewise.
12031 * target.c (target_read_live_memory): Likewise.
12032 (memory_xfer_live_readonly_partial): Likewise.
12033 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12034 (target_xfer_partial, default_xfer_partial): Likewise.
12035 (current_xfer_partial): Likewise.
12036 * tracepoint.c (tfile_xfer_partial): Likewise.
12037 * windows-nat.c (windows_xfer_memory): Likewise. Call
12038 pulongest instead of plongest.
12039 (windows_xfer_partial): Likewise.
12040 (windows_xfer_shared_libraries): Likewise.
12042 2014-01-14 Yao Qi <yao@codesourcery.com>
12044 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12045 target_xfer_partial_ftype.
12047 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12051 * valops.c (value_struct_elt_bitpos): New function
12052 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12053 object to 'None' if the field name is an empty string ("").
12054 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12055 attribute to look for a field when 'name' is 'None'.
12056 (get_field_type): New function
12058 2014-01-13 Doug Evans <dje@google.com>
12061 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12062 (try_open_dwop_file): Ditto.
12063 * gdb_bfd.c: #include "vec.h".
12064 (bfdp): New typedef.
12065 (struct gdb_bfd_data): New member included_bfds.
12066 (gdb_bfd_unref): Unref all included bfds.
12067 (gdb_bfd_record_inclusion): New function.
12068 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12070 2014-01-13 Tom Tromey <tromey@redhat.com>
12072 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12074 2014-01-13 Tom Tromey <tromey@redhat.com>
12076 * defs.h (use_windows): Remove.
12077 * gdb.c (main): Update.
12078 * main.c (captured_main, gdb_main): Update.
12079 * main.h (struct captured_main_args) <use_windows>: Remove.
12080 * top.c (use_windows): Remove.
12082 2014-01-13 Tom Tromey <tromey@redhat.com>
12084 * defs.h (deprecated_flush_hook): Remove.
12086 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12089 * linux-thread-db.c (try_thread_db_load): Add parameter
12090 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12091 (try_thread_db_load_from_pdir_1): Move it there from here.
12092 (try_thread_db_load_from_sdir): Update caller.
12093 (try_thread_db_load_from_dir): Move it there from here.
12095 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12097 * regformats/regdat.sh: Always rewrite the register file.
12099 2014-01-13 Pedro Alves <palves@redhat.com>
12101 * Makefile.in (CHECK_HEADERS): New variable.
12102 (check-headers:): New rule.
12104 2014-01-13 Tom Tromey <tromey@redhat.com>
12106 * cli/cli-setshow.c (do_set_command): Update.
12107 * defs.h (deprecated_set_hook): Remove.
12108 * top.c (deprecated_set_hook): Remove.
12110 2014-01-13 Pedro Alves <palves@redhat.com>
12112 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12113 the tracepoint if the PC is a pseudo-register.
12115 2014-01-13 Tom Tromey <tromey@redhat.com>
12117 * defs.h (XCALLOC): Remove.
12118 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12119 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12120 * dwarf2loc.c (allocate_piece_closure): Likewise.
12121 * elfread.c (elf_symfile_segments): Likewise.
12122 (elf_symfile_segments): Likewise.
12123 * gdbtypes.c (copy_type_recursive): Likewise.
12124 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12125 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12126 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12128 * mt-tdep.c (mt_gdbarch_init): Likewise.
12129 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12131 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12132 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12133 * registry.c (registry_alloc_data): Likewise.
12134 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12135 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12136 * serial.c (serial_fdopen_ops): Likewise.
12137 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12139 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12140 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12143 2014-01-13 Tom Tromey <tromey@redhat.com>
12145 * defs.h (XMALLOC): Remove.
12146 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12147 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12148 * cli-out.c (struct ui_out *): Likewise.
12149 * cli/cli-dump.c (add_dump_command): Likewise.
12150 (add_dump_command): Likewise.
12151 * complaints.c (get_complaints): Likewise.
12152 (find_complaint): Likewise.
12153 * dwarf2-frame.c (execute_cfa_program): Likewise.
12154 * dwarf2read.c (abbrev_table_read_table): Likewise.
12155 * gdbarch.sh: Likewise.
12156 * gdbarch.c: Rebuild.
12157 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12158 * interps.c (interp_new): Likewise.
12159 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12160 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12161 * mi/mi-console.c (mi_console_file_new): Likewise.
12162 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12163 * mi/mi-out.c (mi_out_new): Likewise.
12164 * mi/mi-parse.c (mi_parse): Likewise.
12165 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12166 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12167 * observer.c (xalloc_observer_list_node): Likewise.
12168 * regcache.c (regcache_xmalloc_1): Likewise.
12169 * reggroups.c (reggroup_new): Likewise.
12170 (_initialize_reggroup): Likewise.
12171 * registry.c (register_data_with_cleanup): Likewise.
12172 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12173 * ser-base.c (serial_ttystate): Likewise.
12174 * ser-mingw.c (make_pipe_state): Likewise.
12175 * ser-pipe.c (pipe_open): Likewise.
12176 * serial.c (serial_open): Likewise.
12177 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12178 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12179 (tui_alloc_win_info): Likewise.
12180 (tui_add_content_elements): Likewise.
12181 * tui/tui-file.c (tui_file_new): Likewise.
12182 * tui/tui-out.c (tui_out_new): Likewise.
12183 * ui-file.c (mem_file_new): Likewise.
12184 * ui-out.c (push_level): Likewise.
12185 (make_cleanup_ui_out_end): Likewise.
12186 (append_header_to_list): Likewise.
12187 (ui_out_new): Likewise.
12188 * user-regs.c (user_reg_add_builtin): Likewise.
12190 2014-01-13 Tom Tromey <tromey@redhat.com>
12192 * defs.h (XZALLOC): Remove.
12193 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12194 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12195 (get_ada_tasks_inferior_data): Likewise.
12196 * auto-load.c (get_auto_load_pspace_data): Likewise.
12197 * auxv.c (get_auxv_inferior_data): Likewise.
12198 * bfd-target.c (target_bfd_reopen): Likewise.
12199 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12200 (deprecated_insert_raw_breakpoint): Likewise.
12201 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12202 * corelow.c (core_open): Likewise.
12203 * darwin-nat.c (darwin_check_new_threads): Likewise.
12204 (darwin_attach_pid): Likewise.
12205 * dummy-frame.c (dummy_frame_push): Likewise.
12206 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12207 * dwarf2loc.c (allocate_piece_closure): Likewise.
12208 * elfread.c (elf_symfile_segments): Likewise.
12209 * eval.c (ptrmath_type_p): Likewise.
12210 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12211 * gdbtypes.c (alloc_type_arch): Likewise.
12212 (alloc_type_instance): Likewise.
12213 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12214 * inf-child.c (inf_child_can_use_agent): Likewise.
12215 * inflow.c (get_inflow_inferior_data): Likewise.
12216 * infrun.c (save_infcall_suspend_state): Likewise.
12217 * jit.c (jit_reader_load): Likewise.
12218 (get_jit_objfile_data): Likewise.
12219 (get_jit_program_space_data): Likewise.
12220 (jit_object_open_impl): Likewise.
12221 (jit_symtab_open_impl): Likewise.
12222 (jit_block_open_impl): Likewise.
12223 (jit_frame_sniffer): Likewise.
12224 * linux-fork.c (add_fork): Likewise.
12225 * maint.c (make_command_stats_cleanup): Likewise.
12226 * objfiles.c (get_objfile_pspace_data): Likewise.
12227 * opencl-lang.c (struct lval_closure): Likewise.
12228 * osdata.c (osdata_start_osdata): Likewise.
12229 * progspace.c (new_address_space): Likewise.
12230 (add_program_space): Likewise.
12231 * remote-sim.c (get_sim_inferior_data): Likewise.
12232 * sh-tdep.c (sh_gdbarch_init): Likewise.
12233 * skip.c (Ignore): Likewise.
12234 (skip_delete_command): Likewise.
12235 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12236 (library_list_start_library): Likewise.
12237 (solib_aix_current_sos): Likewise.
12238 * solib-darwin.c (get_darwin_info): Likewise.
12239 (darwin_current_sos): Likewise.
12240 * solib-dsbt.c (get_dsbt_info): Likewise.
12241 * solib-ia64-hpux.c (new_so_list): Likewise.
12242 (ia64_hpux_get_solib_linkage_addr): Likewise.
12243 * solib-spu.c (append_ocl_sos): Likewise.
12244 (spu_current_sos): Likewise.
12245 * solib-svr4.c (get_svr4_info): Likewise.
12246 (svr4_keep_data_in_core): Likewise.
12247 (library_list_start_library): Likewise.
12248 (svr4_default_sos): Likewise.
12249 (svr4_read_so_list): Likewise.
12250 * solib-target.c (library_list_start_library): Likewise.
12251 (solib_target_current_sos): Likewise.
12252 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12253 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12254 * symfile.c (default_symfile_segments): Likewise.
12255 * target-descriptions.c (tdesc_data_init): Likewise.
12256 (tdesc_create_reg): Likewise.
12257 (struct tdesc_type *): Likewise.
12258 (tdesc_create_vector): Likewise.
12259 (tdesc_set_struct_size): Likewise.
12260 (struct tdesc_type *): Likewise.
12261 (tdesc_free_feature): Likewise.
12262 (tdesc_create_feature): Likewise.
12263 * windows-nat.c (windows_add_thread): Likewise.
12264 (windows_make_so): Likewise.
12265 * xml-support.c (gdb_xml_body_text): Likewise.
12266 (gdb_xml_create_parser_and_cleanup): Likewise.
12267 (xml_process_xincludes): Likewise.
12268 * xml-syscall.c (allocate_syscalls_info): Likewise.
12269 (syscall_create_syscall_desc): Likewise.
12271 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12273 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12274 function, with code from i386_stap_parse_special_token.
12275 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12276 (i386_stap_parse_special_token): Move code to the two functions
12277 above; simplify it.
12279 2014-01-09 Pedro Alves <palves@redhat.com>
12280 Hui Zhu <hui@codesourcery.com>
12283 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12284 bp_err_string. Don't mark the location shlib_disabled if the
12285 error thrown wasn't a generic or memory error. Catch errors
12286 thrown while inserting breakpoints in overlayed code. Output
12287 error message of software breakpoints.
12288 * remote.c (remote_insert_breakpoint): If this breakpoint has
12289 target-side commands but this stub doesn't support Z0 packets,
12290 throw NOT_SUPPORTED_ERROR error.
12291 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12292 * target.h (target_insert_breakpoint): Extend comment.
12293 (target_insert_hw_breakpoint): Add comment.
12295 2014-01-08 Pedro Alves <palves@redhat.com>
12297 * remote.c (remote_add_thread): Add threads silently if starting
12299 (remote_notice_new_inferior): If in all-stop, and starting up,
12300 don't call notice_new_inferior.
12301 (get_current_thread): New function, factored out from ...
12302 (add_current_inferior_and_thread): ... this. Adjust.
12303 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12304 found any thread, then select the remote's current thread as GDB's
12305 current thread too.
12307 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12309 * NEWS: Create a new section for the next release branch.
12310 Rename the section of the current branch, now that it has
12313 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12315 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12316 * version.in: Bump version to 7.7.50.DATE-cvs.
12318 2014-01-08 Yao Qi <yao@codesourcery.com>
12320 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12321 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12322 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12324 2014-01-08 Yao Qi <yao@codesourcery.com>
12326 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12327 return value of bfd_get_filename to symbol_file_add_from_bfd.
12329 2014-01-08 Pierre Muller <muller@sourceware.org>
12332 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12333 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12334 to prim_record_mininal_symbol_and_info.
12335 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12336 in call to prim_record_minimal_symbol_and_info.
12337 (read_pe_exported_syms): Set index field of section_data.
12339 2014-01-07 Andrew Pinski <apinski@cavium.com>
12341 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12342 * features/aarch64.c: Regenerate.
12344 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12346 * target.c (return_null): Define.
12347 (update_current_target): Use it instead of return_zero for
12348 functions that return a pointer.
12350 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12352 * source.c (add_path): Fix check for duplicated paths in the previously
12355 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12357 * ada-lang.c: Remove duplicated include statements.
12358 * alphabsd-nat.c: Ditto.
12359 * amd64-darwin-tdep.c: Ditto.
12360 * amd64fbsd-nat.c: Ditto.
12361 * auto-load.c: Ditto.
12363 * breakpoint.c: Ditto.
12364 * dbxread.c: Ditto.
12365 * fork-child.c: Ditto.
12366 * gdb_usleep.c: Ditto.
12367 * i386-darwin-tdep.c: Ditto.
12368 * i386fbsd-nat.c: Ditto.
12370 * inferior.c: Ditto.
12371 * jv-lang.c: Ditto.
12372 * linux-nat.c: Ditto.
12373 * linux-tdep.c: Ditto.
12374 * m68kbsd-nat.c: Ditto.
12375 * m68klinux-nat.c: Ditto.
12376 * microblaze-tdep.c: Ditto.
12377 * mips-linux-tdep.c: Ditto.
12378 * mn10300-tdep.c: Ditto.
12379 * nto-tdep.c: Ditto.
12380 * opencl-lang.c: Ditto.
12382 * printcmd.c: Ditto.
12383 * regcache.c: Ditto.
12384 * remote-m32r-sdi.c: Ditto.
12386 * symfile.c: Ditto.
12388 * tilegx-linux-nat.c: Ditto.
12389 * tilegx-tdep.c: Ditto.
12390 * tracepoint.c: Ditto.
12392 * vaxbsd-nat.c: Ditto.
12393 * windows-nat.c: Ditto.
12394 * xtensa-tdep.c: Ditto.
12396 2014-01-07 Yao Qi <yao@codesourcery.com>
12398 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12400 2014-01-07 Yao Qi <yao@codesourcery.com>
12401 Joel Brobecker <brobecker@adacore.com>
12403 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12404 (pdc_write_regs): Likewise.
12405 (fetch_regs_kernel_thread): Likewise.
12406 (store_regs_kernel_thread): Likewise.
12408 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12410 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12411 tagged type objects to their actual type.
12413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12415 * ada-valprint.c (print_field_values): Add "language" parameter.
12416 Update calls to print_field_values and print_variant_part.
12417 Pass new parameter "language" in call to val_print instead
12418 of "current_language". Replace call to ada_val_print by call
12420 (print_variant_part): Add "language" parameter.
12421 (ada_val_print_struct_union): Update call to print_field_values.
12423 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12425 * ada-valprint.c (ui_memcpy): Delete.
12426 (ada_print_floating): Update documentation. Add empty line
12427 between between function documentation and implementation.
12428 Delete variable "buffer". Use ui_file_xstrdup in place of
12429 ui_file_put. Minor adjustments following this change.
12431 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12433 * ada-valprint.c (ada_val_print_string): New function,
12434 extracted from ada_val_print_array.
12435 (ada_val_print_array): Replace extracted code by call
12436 to ada_val_print_string followed by a return. Move
12437 "else" branch to the function's top block.
12439 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12441 * ada-valprint.c (ada_val_print_array): Move implementation
12442 down. Rename parameter "offset" and "val" into "offset_aligned"
12443 and "original_value" respectively. Add parameter "offset".
12445 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12447 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12448 re-organizing the code. Change the "???" message printed
12449 when target type is a TYPE_CODE_UNDEF into
12450 "<ref to undefined type>".
12452 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12454 * ada-valprint.c (print_record): Delete, implementation inlined...
12455 (ada_val_print_struct_union): ... here. Remove call to
12456 ada_check_typedef in inlined implementation.
12458 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12460 * ada-valprint.c (ada_val_print_gnat_array): New function,
12461 extracted from ada_val_print_1;
12462 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12463 (ada_val_print_flt, ada_val_print_struct_union)
12464 (ada_val_print_ref): Likewise.
12465 (ada_val_print_1): Delete variables i and elttype.
12466 Replace extracted-out code by call to corresponding
12469 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12471 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12473 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12475 * ada-valprint.c (ada_val_print_1): Replace calls to
12476 ada_val_print_1 by calls to val_print.
12478 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12480 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12481 Update calls to self accordingly. Replace calls to c_val_print
12482 by calls to val_print.
12484 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12486 * ada-valprint.c (print_record): Delete declaration.
12487 (adjust_type_signedness, ada_val_print_1): Likewise.
12488 (ada_val_print): Move function implementation down.
12489 (print_variant_part, print_field_values, print_record):
12490 Move function implementation up.
12492 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12494 * python/py-type.c (typy_get_name): New function.
12495 (type_object_getset): Add entry for attribute "name".
12496 * NEWS: Add entry mentioning this new attribute.
12498 2014-01-07 Yao Qi <yao@codesourcery.com>
12500 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12503 2014-01-07 Yao Qi <yao@codesourcery.com>
12505 * gnu-nat.c (info_port_rights): Add qualifier const to
12508 2014-01-07 Yao Qi <yao@codesourcery.com>
12510 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12512 2014-01-07 Yao Qi <yao@codesourcery.com>
12514 * gnu-nat.c (make_inf) Update declaration.
12515 (make_inf): Make it static.
12516 (inf_set_traced): Likewise.
12517 (inf_port_to_thread, inf_task_died_status): Likewise.
12519 2014-01-07 Yao Qi <yao@codesourcery.com>
12521 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12523 2014-01-07 Yao Qi <yao@codesourcery.com>
12525 * gnu-nat.c (_initialize_gnu_nat): Declare.
12527 2014-01-07 Yao Qi <yao@codesourcery.com>
12529 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12531 (struct gdbarch_info) <byte_order>: Change type to
12533 <byte_order_for_code>: Likewise.
12534 * gdbarch.c, gdbarch.h: Regenerated.
12536 2014-01-06 Sasha Smundak <asmundak@google.com>
12538 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12540 2014-01-06 Tom Tromey <tromey@redhat.com>
12542 * doublest.c (convert_doublest_to_floatformat): Use const, not
12544 * somread.c (som_symtab_read): Likewise.
12546 2014-01-07 Hui Zhu <hui@codesourcery.com>
12548 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12549 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12550 (gdb_bfd_fopen): Ditto.
12551 (gdb_bfd_openr): Ditto.
12552 (gdb_bfd_openw): Ditto.
12553 (gdb_bfd_openr_iovec): Ditto.
12554 (gdb_bfd_fdopenr): Ditto.
12555 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12556 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12558 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12560 * symfile-mem.c (symbol_file_add_from_memory): Removed
12561 gdb_bfd_stash_filename.
12563 2014-01-03 Doug Evans <dje@google.com>
12565 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12568 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12570 Update year range in copyright notice of all files.
12572 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12574 * top.c (print_gdb_version): Set copyright year to 2014.
12576 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12578 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12580 For older changes see ChangeLog-2013.
12586 version-control: never