1 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4 * f-valprint.c (f_val_print): Specify the correct print option to
5 use when printing integer values.
7 2014-09-04 Gary Benson <gbenson@redhat.com>
9 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
10 Remove code to cope with LWPs wrapped as PIDs.
11 Add assertions to ensure no wrapped LWPs are passed.
13 2014-09-04 Pedro Alves <palves@redhat.com>
15 * value.c (value_ranges_copy_adjusted): New function, factored out
17 (value_contents_copy_raw): ... here.
18 (unpack_value_bits_as_long_1): Rename back to ...
19 (unpack_bits_as_long): ... this. Remove 'original_value' and
20 'result' parameters. Change return type to LONGEST.
21 (unpack_value_bits_as_long): Delete.
22 (unpack_value_field_as_long_1): Delete.
23 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
24 (unpack_value_bitfield): New function.
25 (value_field_bitfield): Reimplement using unpack_value_bitfield.
26 (value_fetch_lazy): Use unpack_value_bitfield.
27 * value.h (unpack_value_bits_as_long): Delete declaration.
29 2014-09-03 Sasha Smundak <asmundak@google.com>
31 * python/py-frame.c (frapy_read_register): New function.
33 2014-09-03 James Hogan <james.hogan@imgtec.com>
35 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
36 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
38 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
41 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
43 (add_cmd): Set "completer_handle_brkchars" to NULL.
44 * cli/cli-decode.h (struct cmd_list_element)
45 <completer_handle_brkchars>: New field.
46 * command.h (completer_ftype_void): New typedef.
47 (set_cmd_completer_handle_brkchars): New prototype.
48 * completer.c (set_gdb_completion_word_break_characters): New
50 (complete_line_internal): Call "completer_handle_brkchars"
51 callback from command.
52 * completer.h: Include "command.h".
53 (set_gdb_completion_word_break_characters): New prototype.
54 * python/py-cmd.c (cmdpy_completer_helper): New function.
55 (cmdpy_completer_handle_brkchars): New function.
56 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
57 (cmdpy_init): Set completer_handle_brkchars to
58 cmdpy_completer_handle_brkchars.
60 2014-09-03 Gary Benson <gbenson@redhat.com>
62 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
63 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
64 Loop conditions changed to equivalent form.
65 (struct x86_debug_reg_state): Updated dr_ref_count comment.
66 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
67 ALL_DEBUG_ADDRESS_REGISTERS.
69 2014-09-03 Joel Brobecker <brobecker@adacore.com>
71 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
74 2014-09-02 Doug Evans <dje@google.com>
76 * typeprint.c (find_global_typedef): Fix comment.
78 2014-09-02 Gary Benson <gbenson@redhat.com>
80 * i386-nat.h: Renamed as...
81 * x86-nat.h: New file. All type, function and variable name
82 prefixes changed from "i386_" to "x86_". All references updated.
83 * i386-nat.c: Renamed as...
84 * x86-nat.c: New file. All type, function and variable name
85 prefixes changed from "i386_" to "x86_". All references updated.
86 * common/i386-xstate.h: Renamed as...
87 * common/x86-xstate.h: New file. All type, function and variable
88 name prefixes changed from "i386_" to "x86_". All references
90 * nat/i386-cpuid.h: Renamed as...
91 * nat/x86-cpuid.h: New file. All type, function and variable name
92 prefixes changed from "i386_" to "x86_". All references updated.
93 * nat/i386-gcc-cpuid.h: Renamed as...
94 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
95 name prefixes changed from "i386_" to "x86_". All references
97 * nat/i386-dregs.h: Renamed as...
98 * nat/x86-dregs.h: New file. All type, function and variable name
99 prefixes changed from "i386_" to "x86_". All references updated.
100 * nat/i386-dregs.c: Renamed as...
101 * nat/x86-dregs.c: New file. All type, function and variable name
102 prefixes changed from "i386_" to "x86_". All references updated.
104 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
106 * varobj.c (_initialize_varobj): Move to the end of file.
108 2014-08-29 Gary Benson <gbenson@redhat.com>
110 * common/common-exceptions.h: New file.
111 * common/common-exceptions.c: Likewise.
112 * Makefile.in (SFILES): Add common/common-exceptions.c.
113 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
114 (COMMON_OBS): Add common-exceptions.o.
115 (common-exceptions.o): New rule.
116 * exceptions.h (common-exceptions.h): Include.
117 (gdb_setjmp.h): Do not include.
118 (return_reason): Moved to common-exceptions.h.
119 (enum return_reason): Likewise.
120 (RETURN_MASK): Likewise.
121 (typedef return_mask): Likewise.
122 (enum errors): Likewise.
123 (struct gdb_exception): Likewise.
124 (exceptions_state_mc_init): Likewise.
125 (exceptions_state_mc_action_iter): Likewise.
126 (exceptions_state_mc_action_iter_1): Likewise.
127 (TRY_CATCH): Likewise.
128 (throw_exception): Likewise.
129 (throw_verror): Likewise.
130 (throw_vquit): Likewise.
131 (throw_error): Likewise.
132 (throw_quit): Likewise.
133 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
134 (enum catcher_action): Likewise.
135 (struct catcher): Likewise.
136 (current_catcher): Likewise.
137 (catcher_list_size): Likewise.
138 (exceptions_state_mc_init): Likewise.
139 (catcher_pop): Likewise.
140 (exceptions_state_mc): Likewise.
141 (exceptions_state_mc_action_iter): Likewise.
142 (exceptions_state_mc_action_iter_1): Likewise.
143 (throw_exception): Likewise.
144 (exception_messages): Likewise.
145 (exception_messages_size): Likewise.
146 (throw_it): Likewise.
147 (throw_verror): Likewise.
148 (throw_vquit): Likewise.
149 (throw_error): Likewise.
150 (throw_quit): Likewise.
151 (prepare_to_throw_exception): New function.
153 2014-08-29 Gary Benson <gbenson@redhat.com>
155 * common/gdb_setjmp.h: New file.
156 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
157 * configure.ac: Move sigsetjmp check...
158 * common/common.m4: ...here.
159 * configure: Regenerate.
160 * cp-support.c (SIGJMP_BUF): Delete.
161 (SIGSETJMP): Likewise.
162 (SIGLONGJMP): Likewise.
163 * exceptions.h (gdb_setjmp.h): Include.
164 (setjmp.h): Do not include.
165 (EXCEPTIONS_SIGJMP_BUF): Delete.
166 (EXCEPTIONS_SIGSETJMP): Likewise.
167 (EXCEPTIONS_SIGLONGJMP): Likewise.
168 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
170 * exceptions.c: Likewise.
172 2014-08-29 Gary Benson <gbenson@redhat.com>
174 * cleanups.h: Moved to...
175 * common/cleanups.h: New file.
176 * cleanups.c: Moved to...
177 * common/cleanups.c: New file. Include common-defs.h and
178 cleanups.h. Do not include defs.h.
179 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
180 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
181 (cleanups.o): New rule.
183 2014-08-29 Gary Benson <gbenson@redhat.com>
185 * common/errors.h (internal_warning): New declaration.
186 (internal_vwarning): Likewise.
187 * common/errors.c (internal_warning): New function.
188 * utils.h (internal_warning): Don't declare.
189 (internal_vwarning): Likewise.
190 * utils.c (internal_warning): Removed.
192 2014-08-29 Gary Benson <gbenson@redhat.com>
194 * main.c (captured_main): Use warning during startup.
195 Prefix startup warning messages with command name.
197 2014-08-29 Gary Benson <gbenson@redhat.com>
199 * main.c (captured_main): Handle usage errors with error.
201 2014-08-29 Gary Benson <gbenson@redhat.com>
203 * go32-nat.c (go32_create_inferior): Replace a fprintf/
204 exit pair with a call to error. Wrap the message with _().
206 2014-08-29 Gary Benson <gbenson@redhat.com>
208 * main.c (captured_main): Replace a fprintf/exit
209 pair with a call to error. Wrap the message with _().
211 2014-08-29 Gary Benson <gbenson@redhat.com>
213 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
214 pairs with calls to error. Wrap the message with _().
216 2014-08-29 Gary Benson <gbenson@redhat.com>
218 * utils.c (vwarning): Protect calls to target_terminal_ours
221 2014-08-29 Gary Benson <gbenson@redhat.com>
223 * exceptions.c (print_flush): Protect calls to
224 target_terminal_ours and wrap_here.
226 2014-08-29 Gary Benson <gbenson@redhat.com>
228 * utils.h (filtered_printing_initialized): New declaration.
229 * utils.c (abort_with_message): New function.
230 (internal_vproblem): Use abort_with_message for first level
231 recursive internal problems, and if gdb_stderr is not set up.
232 Protect calls to target_terminal_ours, begin_line and query.
234 2014-08-28 Doug Evans <dje@google.com>
236 * symtab.c (in_prologue): Move definition to better spot.
237 (skip_prologue_using_sal): Ditto.
239 2014-08-28 Doug Evans <dje@google.com>
241 * symtab.c (find_function_start_sal): Move definition to better spot.
243 2014-08-28 Yao Qi <yao@codesourcery.com>
245 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
246 found_stack_adjust in forward scan. Remove condition check
247 on found_stack_adjust which is always true. Indent the code.
249 2014-08-28 Yao Qi <yao@codesourcery.com>
251 * dwarf2read.c (dwarf_decode_lines): Update declaration.
252 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
253 (dwarf_decode_lines): Remove argument
254 want_line_info. Remove condition check on want_line_info.
257 2014-08-27 Doug Evans <dje@google.com>
259 * dwarf2read.c (dwarf_record_line): Fix typo.
261 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
263 * target.h (struct target_ops::to_terminal_save_ours): Remove
265 (target_terminal_save_ours): Remove macro.
266 * target-delegates.c: Regenerate.
267 * inf-child.c (inf_child_target): Don't set the nonexistent
268 field to_terminal_save_ours.
269 * inferior.h (child_terminal_save_ours): Remove declaration.
270 * terminal.h (gdb_save_tty_state): New declaration.
271 * inflow.c (child_terminal_save_ours): Rename to ...
272 (gdb_save_tty_state): ... this.
273 * tui/tui.c: Include terminal.h.
274 (tui_enable): Use gdb_save_tty_state instead of
275 target_terminal_save_ours.
276 (tui_disable): Likewise.
278 2014-08-25 Doug Evans <dje@google.com>
280 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
281 Pass NULL instead of 0 for context pointer.
283 2014-08-25 Yao Qi <yao@codesourcery.com>
285 * dwarf2read.c: Fix grammatical error.
287 2014-08-24 Yao Qi <yao@codesourcery.com>
289 * dwarf2read.c (scan_partial_symbols): Update comments.
290 Rename argument 'need_pc' with 'set_addrmap'.
291 (add_partial_namespace): Rename argument 'need_pc' with
293 (add_partial_module): Likewise.
294 (add_partial_subprogram): Likewise. Update comments.
295 (dwarf2_name): Fix typo.
297 2014-08-22 Doug Evans <dje@google.com>
300 * dwarf2read.c (dwarf_record_line_p): New function.
301 (dwarf_decode_lines_1): Ignore subsequent line number entries
302 for the same line if any entry had a non-zero discriminator.
304 2014-08-22 Doug Evans <dje@google.com>
306 * buildsym.h (record_line_ftype): New typedef.
307 (record_line): Use it.
308 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
309 (dwarf_decode_lines_1): Call them.
311 2014-08-22 Yao Qi <yao@codesourcery.com>
313 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
314 (ctf_end): Remove code.
316 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
318 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
319 (linux_make_corefile_notes): call update_thread_list, protected against
322 2014-08-21 Pedro Alves <palves@redhat.com>
324 * infcmd.c (attach_command): Remove comment.
326 2014-08-21 Bin Cheng <bin.cheng@arm.com>
328 * aarch64-linux-nat.c (dr_changed_t): Change the type from
329 unsigned LONGEST to ULONGEST.
331 2014-08-20 Pedro Alves <palves@redhat.com>
333 * Makefile.in (check-read1): New rule.
335 2014-08-20 Joel Brobecker <brobecker@adacore.com>
337 * value.c (value_from_contents_and_address): Strip resolved_type's
338 typedef layers before checking its TYPE_DATA_LOCATION.
340 2014-08-20 Pedro Alves <palves@redhat.com>
342 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
344 2014-08-20 Yao Qi <yao@codesourcery.com>
346 * amd64-tdep.c (amd64_classify): Add a blank line after the
347 example. Move "*/" to a new line.
348 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
349 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
350 * dwarf2read.c (psymtab_include_file_name): Likewise.
352 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
353 Pedro Alves <palves@redhat.com>
357 * ada-lang.c (coerce_unspec_val_to_type): Use
358 value_contents_copy_raw.
359 * ada-valprint.c (val_print_packed_array_elements): Adjust.
360 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
361 * cp-valprint.c (cp_print_value_fields): Let the common printing
362 code handle optimized out values.
363 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
364 * d-valprint.c (dynamic_array_type): Use
365 value_bits_any_optimized_out.
366 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
367 check_any_valid fields.
368 (check_pieced_value_bits): Delete and inline ...
369 (check_pieced_synthetic_pointer): ... here.
370 (check_pieced_value_validity): Delete.
371 (check_pieced_value_invalid): Delete.
372 (pieced_value_funcs): Remove check_validity and check_any_valid
374 (read_pieced_value): Use mark_value_bits_optimized_out.
375 (write_pieced_value): Switch to use
376 mark_value_bytes_optimized_out.
377 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
378 of assuming the whole value is optimized out.
379 * findvar.c (read_frame_register_value): Remove special handling
380 of optimized out registers.
381 (value_from_register): Use mark_value_bytes_optimized_out.
382 * frame-unwind.c (frame_unwind_got_optimized): Use
383 mark_value_bytes_optimized_out.
384 * jv-valprint.c (java_value_print): Adjust.
385 (java_print_value_fields): Let the common printing code handle
386 optimized out values.
387 * mips-tdep.c (mips_print_register): Remove special handling of
388 optimized out registers.
389 * opencl-lang.c (lval_func_check_validity): Delete.
390 (lval_func_check_any_valid): Delete.
391 (opencl_value_funcs): Remove check_validity and check_any_valid
393 * p-valprint.c (pascal_object_print_value_fields): Let the common
394 printing code handle optimized out values.
395 * stack.c (read_frame_arg): Remove special handling of optimized
396 out values. Fetch both VAL and ENTRYVAL before comparing
397 contents. Adjust to value_available_contents_eq rename.
398 * valprint.c (valprint_check_validity)
399 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
400 (val_print_array_elements): Adjust.
401 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
402 (value_bits_any_optimized_out): New function.
403 (value_entirely_covered_by_range_vector): New function, factored
404 out from value_entirely_unavailable.
405 (value_entirely_unavailable): Reimplement.
406 (value_entirely_optimized_out): New function.
407 (insert_into_bit_range_vector): New function, factored out from
408 mark_value_bits_unavailable.
409 (mark_value_bits_unavailable): Reimplement.
410 (struct ranges_and_idx): New struct.
411 (find_first_range_overlap_and_match): New function, factored out
412 from value_available_contents_bits_eq.
413 (value_available_contents_bits_eq): Rename to ...
414 (value_contents_bits_eq): ... this. Check both unavailable
415 contents and optimized out contents.
416 (value_available_contents_eq): Rename to ...
417 (value_contents_eq): ... this.
418 (allocate_value_lazy): Remove reference to the old optimized_out
420 (allocate_optimized_out_value): Use
421 mark_value_bytes_optimized_out.
422 (require_not_optimized_out): Adjust to check whether the
423 optimized_out vec is empty.
424 (ranges_copy_adjusted): New function, factored out from
425 value_contents_copy_raw.
426 (value_contents_copy_raw): Also copy the optimized out ranges.
427 Assert the destination ranges aren't optimized out.
428 (value_contents_copy): Update comment, remove call to
429 require_not_optimized_out.
430 (value_contents_equal): Adjust to check whether the optimized_out
432 (set_value_optimized_out, value_optimized_out_const): Delete.
433 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
435 (value_entirely_optimized_out, value_bits_valid): Delete.
436 (value_copy): Take a VEC copy of the 'optimized_out' field.
437 (value_primitive_field): Remove special handling of optimized out.
438 (value_fetch_lazy): Assert that lazy values have no unavailable
439 regions. Use value_bits_any_optimized_out. Remove some special
440 handling for optimized out values.
441 * value.h: Add intro comment about <optimized out> and
443 (struct lval_funcs): Remove check_validity and check_any_valid
445 (set_value_optimized_out, value_optimized_out_const): Remove.
446 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
448 (value_bits_any_optimized_out): New declaration.
449 (value_bits_valid): Delete declaration.
450 (value_available_contents_eq): Rename to ...
451 (value_contents_eq): ... this, and extend comments.
453 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
455 Fix -fsanitize=address on unreadable inferior strings.
456 * valprint.c (val_print_string): Fix access before BUFFER.
458 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
460 * target.c (target_struct_size): Remove.
461 (target_struct_allocsize): Remove.
462 (DEFAULT_ALLOCSIZE): Remove.
463 (target_ops_p): New typedef.
464 (DEF_VEC_P (target_ops_p)): New vector type.
465 (target_structs): Change type to VEC (target_ops_p).
466 (add_target_with_completer): Replace "push" code by VEC_safe_push.
467 (find_default_run_target): Rewrite for loop following changes to
470 2014-08-19 Joel Brobecker <brobecker@adacore.com>
472 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
473 Adjust code accordingly. Adjust function description comment.
475 2014-08-19 Yao Qi <yao@codesourcery.com>
477 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
480 2014-08-19 Alan Modra <amodra@gmail.com>
482 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
483 * config.in: Regenerate.
484 * configure: Regenerate.
486 2014-08-19 Tom Tromey <tromey@redhat.com>
487 Gary Benson <gbenson@redhat.com>
489 * common/common-debug.h: New file.
490 * common/common-debug.c: Likewise.
492 * Makefile.in (SFILES): Add common/common-debug.c.
493 (HFILES_NO_SRCDIR): Add common/common-debug.h.
494 (COMMON_OBS): Add common-debug.o and debug.o.
495 (common-debug.o): New rule.
496 * common/common-defs.h: Include common-debug.h.
497 * common/agent.c (debug_agent_printf): New function.
498 (DEBUG_AGENT): Redefine.
499 * nat/i386-dregs.c (debug_printf): Undefine.
501 2014-08-19 Gary Benson <gbenson@redhat.com>
503 * common/common-defs.h: Include print-utils.h.
504 * utils.h: Do not include print-utils.h.
506 2014-08-19 Tom Tromey <tromey@redhat.com>
507 Gary Benson <gbenson@redhat.com>
509 * common/common-types.h: New file.
510 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
511 * common/common-defs.h: Include common-types.h.
512 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
515 2014-08-19 Tom Tromey <tromey@redhat.com>
516 Gary Benson <gbenson@redhat.com>
518 * common/errors.h: New file.
519 * common/errors.c: Likewise.
520 * Makefile.in (SFILES): Add common/errors.c.
521 (HFILES_NO_SRCDIR): Add common/errors.h.
522 (COMMON_OBS): Add errors.o.
523 (errors.o): New rule.
524 * common/common-defs.h: Include errors.h.
525 * utils.h (perror_with_name, error, verror, warning, vwarning):
527 * common/common-utils.h: (malloc_failure, internal_error):
530 2014-08-19 Gary Benson <gbenson@redhat.com>
532 * utils.c (internal_vproblem): Always print the message.
534 2014-08-18 Doug Evans <dje@google.com>
536 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
538 2014-08-18 Joel Brobecker <brobecker@adacore.com>
540 * ada-typeprint.c (type_is_full_subrange_of_target_type):
541 Return 0 if TYPE is dynamic.
542 (print_range): Add handling of dynamic ranges.
544 2014-08-18 Keven Boell <keven.boell@intel.com>
545 Joel Brobecker <brobecker@adacore.com>
547 * gdbtypes.h (struct main_type): Add field "data_location".
548 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
549 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
550 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
551 a dynamic data location.
552 (resolve_dynamic_type): Add DW_AT_data_location handling.
553 (copy_recursive, copy_type): Copy the data_location information
555 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
556 * value.c (value_from_contents_and_address): Add
557 DW_AT_data_location handling.
559 2014-08-18 Keven Boell <keven.boell@intel.com>
560 Joel Brobecker <brobecker@adacore.com>
562 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
563 field "get_object_address".
564 * dwarf2expr.c (execute_stack_op): Add handling for
565 DW_OP_push_object_address.
566 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
567 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
568 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
569 (dwarf_expr_get_obj_addr): New function.
570 (dwarf_expr_ctx_funcs): Add get_object_address field.
571 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
572 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
573 (dwarf2_evaluate_property): Add parameter "address". Use it.
574 (needs_get_obj_addr): New function.
575 (needs_frame_ctx_funcs): Add get_object_address field.
576 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
577 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
578 (resolve_dynamic_array): Likewise.
580 2014-08-18 Joel Brobecker <brobecker@adacore.com>
582 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
583 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
584 fixed value for records and unions for which some GNAT encodings
587 2014-08-18 Joel Brobecker <brobecker@adacore.com>
589 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
590 rewrite to avoid "else if" and "else" constructs. Should be
593 2014-08-18 Joel Brobecker <brobecker@adacore.com>
595 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
598 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
601 * eval.c: Update all calls to find_overload_match.
602 * valarith.c: Likewise.
603 (value_user_defined_cpp_op, value_user_defined_op): New
604 argument NOSIDE. Update all callers.
605 * valops.c (find_overload_match): New argument NOSIDE.
606 * value.h (find_overload_match): Update signature.
608 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
610 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
611 'items' methods instead of 'iteritems' method on dictionaries.
613 2014-08-15 Doug Evans <dje@google.com>
615 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
618 2014-08-15 Doug Evans <dje@google.com>
620 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
622 2014-08-15 Doug Evans <dje@google.com>
624 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
626 2014-08-15 Doug Evans <dje@google.com>
628 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
631 2014-08-15 Eli Zaretskii <eliz@gnu.org>
633 * dcache.h: Include target.h, to avoid compile time warnings.
635 2014-08-15 Joel Brobecker <brobecker@adacore.com>
637 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
638 frame_info" partial declaration.
639 * gdbarch.h: Regenerate.
641 2014-08-15 Yao Qi <yao@codesourcery.com>
643 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
644 Add parameter 'decode_for_pst_p'. Callers update.
646 2014-08-13 Yao Qi <yao@codesourcery.com>
649 * configure.ac: Use local variable 'pos'.
650 * configure: Regenerated.
652 2014-08-11 Doug Evans <dje@google.com>
654 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
655 message, it is redundant with "Reading symbols from ..." message.
657 2014-08-10 Doug Evans <xdje42@gmail.com>
659 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
661 2014-08-09 Yao Qi <yao@codesourcery.com>
664 * remote.c (remote_xfer_partial): Remove dead code.
666 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
668 * ia64-linux-tdep.c: Include "regset.h".
669 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
670 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
671 (ia64_linux_supply_fpregset): New function.
672 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
673 (ia64_linux_regset_from_core_section): New function.
674 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
677 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
679 * m68klinux-tdep.c: Include "regset.h".
680 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
681 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
682 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
683 (m68k_linux_regset_from_core_section): New function.
684 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
687 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
689 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
690 function. Move logic to...
691 (tilegx_linux_regmap): ... this new register map.
692 (tilegx_linux_regset): Refer to register map, replace supply
693 method by regcache_supply_regset, and add collect method.
694 * tilegx-tdep.h (enum tilegx_regnum): New enum value
695 TILEGX_FIRST_EASY_REGNUM.
697 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
699 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
700 that calls regcache_supply_regset and handles the EPC register
701 separately. Move main logic to...
702 (score7_linux_gregmap): ... this new register map.
703 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
704 (score7_linux_gregset): Refer to register map. Add collect method.
705 (score7_linux_regset_from_core_section): Replace
706 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
707 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
708 (struct regset): Delete unused forward declaraction.
709 (struct pt_regs): Delete structure definition.
710 (elf_gregset_t): Delete typedef.
712 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
714 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
715 (nios2_core_regset): Add collect method.
717 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
719 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
720 platform-independent and don't write to read-only input buffer.
721 (m32r_linux_collect_gregset): New function.
722 (m32r_linux_gregset): Add collect method.
724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
726 * hppa-linux-tdep.c (greg_map): Rename to...
727 (hppa_linux_gregmap): ... this. Also convert to
728 regcache_map_entry format.
729 (hppa_linux_supply_regset): Delete function.
730 (hppa_linux_supply_fpregset): Delete function. Move logic to...
731 (hppa_linux_fpregmap): ... this new register map.
732 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
733 register map, replace supply method by regcache_supply_regset, and
734 add collect method regcache_collect_regset.
736 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
738 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
739 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
740 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
741 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
742 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
743 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
744 (frv_linux_supply_gregset): Replace main logic by call to
745 regcache_supply_regset, but keep clearing gr32-gr63.
746 (frv_linux_supply_fpregset): Delete function.
747 (frv_linux_gregset): Refer to appropriate register map and add
748 regcache_collect_regset as the collect method.
749 (frv_linux_fpregset): Likewise. Also exchange the supply method
750 by regcache_supply_regset.
752 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
754 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
755 by call to alpha_supply_int_regs.
756 (alpha_linux_collect_gregset): New function.
757 (alpha_linux_supply_fpregset): Replace logic by call to
758 alpha_supply_fp_regs.
759 (alpha_linux_collect_fpregset): New function.
760 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
762 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
764 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
765 by call to regcache_collect_regset.
766 (supply_gregset, supply_fpregset): Call regcache_supply_regset
767 instead of aarch64_linux_supply_gregset/_fpregset.
768 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
769 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
771 (aarch64_linux_supply_gregset, supply_gregset_from_core)
772 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
773 functions. Move logic to ...
774 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
776 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
777 refer to new register maps, replace *_regset_from_core by
778 regcache_supply_regset, and also use regcache_collect_regset.
779 * aarch64-linux-tdep.h: Include "regset.h".
780 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
782 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
783 macros, moved from C source file.
784 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
785 variable declarations.
787 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
789 * s390-linux-nat.c: Include "regset.h".
790 (regmap_gregset): Delete macro.
791 (s390_64_regmap_gregset): New register map for
792 regcache_supply/_collect_regset.
793 (s390_64_gregset): New regset.
794 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
795 (regmap_fpregset): Delete macro.
796 (s390_native_supply, s390_native_collect): Delete functions.
797 (supply_gregset, fill_gregset): Replace s390-specific regmap
798 handling by a call to regcache_supply/_collect_regset.
799 (supply_fpregset, fill_fpregset): Call regcache_supply/
800 _collect_regset instead of s390_native_supply/_collect.
801 (fetch_regset, store_regset): Likewise. Also change the last
802 parameter to a regset instead of a regmap.
803 (s390_linux_fetch_inferior_registers)
804 (390_linux_store_inferior_registers): Adjust last parameter in
805 calls to fetch_regset and store_regset.
806 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
807 (s390_gregmap): ... this. Also make static const and convert to
808 regcache_map_entry format.
809 (s390x_regmap_gregset): Delete.
810 (s390_regmap_fpregset): Rename to...
811 (s390_fpregmap): ... this. Make static const and convert to
812 regcache_map_entry format.
813 (s390_regmap_upper, s390_regmap_last_break)
814 (s390x_regmap_last_break, s390_regmap_system_call)
815 (s390_regmap_tdb): Likewise.
816 (s390_supply_regset, s390_collect_regset): Remove functions.
817 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
819 (s390_gregset, s390_fpregset, s390_upper_regset)
820 (s390_last_break_regset, s390x_last_break_regset)
821 (s390_system_call_regset, s390_tdb_regset): Make global and
822 replace s390_supply/_collect_regset by regcache_supply/
824 (s390x_gregset): Delete.
825 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
826 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
827 (s390_regmap_fpregset, s390_regmap_last_break)
828 (s390x_regmap_last_break, s390_regmap_system_call)
829 (s390_regmap_tdb): Delete global variable declarations.
830 (s390_gregset, s390_fpregset, s390_last_break_regset)
831 (s390x_last_break_regset, s390_system_call_regset)
832 (s390_tdb_regset): New global variable declarations.
834 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
836 * regcache.c: Include "regset.h".
837 (regcache_transfer_regset): New local function.
838 (regcache_supply_regset, regcache_collect_regset): New functions.
839 * regcache.h (struct regcache_map_entry): New structure.
840 (REGCACHE_MAP_SKIP): New enum value.
841 (regcache_supply_regset, regcache_collect_regset): New prototypes.
843 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
845 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
846 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
847 (ppc_linux_collect_gregset ): Likewise.
848 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
849 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
850 (ppc_collect_vrregset): Likewise.
851 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
854 2014-08-07 Yao Qi <yao@codesourcery.com>
856 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
857 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
858 * remote.c (remote_read_bytes): Likewise.
860 2014-08-07 Yao Qi <yao@codesourcery.com>
862 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
864 2014-08-07 Yao Qi <yao@codesourcery.com>
867 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
868 TARGET_XFER_OK instead of 0.
870 2014-08-07 Gary Benson <gbenson@redhat.com>
872 * common/common-defs.h: Include errno.h.
873 * defs.h: Do not include errno.h.
874 * ada-typeprint.c: Likewise.
875 * c-typeprint.c: Likewise.
876 * core-regset.c: Likewise.
877 * corefile.c: Likewise.
878 * corelow.c: Likewise.
879 * event-loop.c: Likewise.
880 * f-typeprint.c: Likewise.
881 * gnu-nat.c: Likewise.
882 * go32-nat.c: Likewise.
883 * i386gnu-nat.c: Likewise.
884 * m2-typeprint.c: Likewise.
885 * nat/linux-btrace.c: Likewise.
886 * p-typeprint.c: Likewise.
887 * procfs.c: Likewise.
888 * remote-sim.c: Likewise.
889 * rs6000-nat.c: Likewise.
890 * target.c: Likewise.
891 * typeprint.c: Likewise.
892 * ui-file.c: Likewise.
893 * valops.c: Likewise.
894 * valprint.c: Likewise.
896 2014-08-07 Gary Benson <gbenson@redhat.com>
898 * common/common-defs.h: Include string.h.
899 * aarch64-tdep.c: Do not include string.h.
900 * ada-exp.y: Likewise.
901 * ada-lang.c: Likewise.
902 * ada-lex.l: Likewise.
903 * ada-typeprint.c: Likewise.
904 * ada-valprint.c: Likewise.
905 * aix-thread.c: Likewise.
906 * alpha-linux-tdep.c: Likewise.
907 * alpha-mdebug-tdep.c: Likewise.
908 * alpha-nat.c: Likewise.
909 * alpha-osf1-tdep.c: Likewise.
910 * alpha-tdep.c: Likewise.
911 * alphanbsd-tdep.c: Likewise.
912 * amd64-dicos-tdep.c: Likewise.
913 * amd64-linux-tdep.c: Likewise.
914 * amd64-nat.c: Likewise.
915 * amd64-sol2-tdep.c: Likewise.
916 * amd64fbsd-tdep.c: Likewise.
917 * amd64obsd-tdep.c: Likewise.
918 * arch-utils.c: Likewise.
919 * arm-linux-nat.c: Likewise.
920 * arm-linux-tdep.c: Likewise.
921 * arm-tdep.c: Likewise.
922 * arm-wince-tdep.c: Likewise.
923 * armbsd-tdep.c: Likewise.
924 * armnbsd-nat.c: Likewise.
925 * armnbsd-tdep.c: Likewise.
926 * armobsd-tdep.c: Likewise.
927 * avr-tdep.c: Likewise.
928 * ax-gdb.c: Likewise.
929 * ax-general.c: Likewise.
930 * bcache.c: Likewise.
931 * bfin-tdep.c: Likewise.
932 * breakpoint.c: Likewise.
933 * build-id.c: Likewise.
934 * buildsym.c: Likewise.
936 * c-lang.c: Likewise.
937 * c-typeprint.c: Likewise.
938 * c-valprint.c: Likewise.
939 * charset.c: Likewise.
940 * cli-out.c: Likewise.
941 * cli/cli-cmds.c: Likewise.
942 * cli/cli-decode.c: Likewise.
943 * cli/cli-dump.c: Likewise.
944 * cli/cli-interp.c: Likewise.
945 * cli/cli-logging.c: Likewise.
946 * cli/cli-script.c: Likewise.
947 * cli/cli-setshow.c: Likewise.
948 * cli/cli-utils.c: Likewise.
949 * coffread.c: Likewise.
950 * common/agent.c: Likewise.
951 * common/buffer.c: Likewise.
952 * common/buffer.h: Likewise.
953 * common/common-utils.c: Likewise.
954 * common/filestuff.c: Likewise.
955 * common/filestuff.c: Likewise.
956 * common/format.c: Likewise.
957 * common/print-utils.c: Likewise.
958 * common/rsp-low.c: Likewise.
959 * common/signals.c: Likewise.
960 * common/vec.h: Likewise.
961 * common/xml-utils.c: Likewise.
962 * core-regset.c: Likewise.
963 * corefile.c: Likewise.
964 * corelow.c: Likewise.
965 * cp-abi.c: Likewise.
966 * cp-name-parser.y: Likewise.
967 * cp-support.c: Likewise.
968 * cp-valprint.c: Likewise.
969 * cris-tdep.c: Likewise.
971 * darwin-nat.c: Likewise.
972 * dbxread.c: Likewise.
973 * dcache.c: Likewise.
974 * demangle.c: Likewise.
975 * dicos-tdep.c: Likewise.
976 * disasm.c: Likewise.
977 * doublest.c: Likewise.
979 * dummy-frame.c: Likewise.
980 * dwarf2-frame.c: Likewise.
981 * dwarf2loc.c: Likewise.
982 * dwarf2read.c: Likewise.
983 * elfread.c: Likewise.
984 * environ.c: Likewise.
986 * event-loop.c: Likewise.
987 * exceptions.c: Likewise.
989 * expprint.c: Likewise.
991 * f-lang.c: Likewise.
992 * f-typeprint.c: Likewise.
993 * f-valprint.c: Likewise.
994 * fbsd-nat.c: Likewise.
995 * findcmd.c: Likewise.
996 * findvar.c: Likewise.
997 * fork-child.c: Likewise.
999 * frv-linux-tdep.c: Likewise.
1000 * frv-tdep.c: Likewise.
1002 * gdb_bfd.c: Likewise.
1003 * gdbarch.c: Likewise.
1004 * gdbarch.sh: Likewise.
1005 * gdbtypes.c: Likewise.
1006 * gnu-nat.c: Likewise.
1007 * gnu-v2-abi.c: Likewise.
1008 * gnu-v3-abi.c: Likewise.
1009 * go-exp.y: Likewise.
1010 * go-lang.c: Likewise.
1011 * go32-nat.c: Likewise.
1012 * guile/guile.c: Likewise.
1013 * guile/scm-auto-load.c: Likewise.
1014 * hppa-hpux-tdep.c: Likewise.
1015 * hppa-linux-nat.c: Likewise.
1016 * hppanbsd-tdep.c: Likewise.
1017 * hppaobsd-tdep.c: Likewise.
1018 * i386-cygwin-tdep.c: Likewise.
1019 * i386-dicos-tdep.c: Likewise.
1020 * i386-linux-tdep.c: Likewise.
1021 * i386-nto-tdep.c: Likewise.
1022 * i386-sol2-tdep.c: Likewise.
1023 * i386-tdep.c: Likewise.
1024 * i386bsd-tdep.c: Likewise.
1025 * i386gnu-nat.c: Likewise.
1026 * i386nbsd-tdep.c: Likewise.
1027 * i386obsd-tdep.c: Likewise.
1028 * i387-tdep.c: Likewise.
1029 * ia64-libunwind-tdep.c: Likewise.
1030 * ia64-linux-nat.c: Likewise.
1031 * inf-child.c: Likewise.
1032 * inf-ptrace.c: Likewise.
1033 * inf-ttrace.c: Likewise.
1034 * infcall.c: Likewise.
1035 * infcmd.c: Likewise.
1036 * inflow.c: Likewise.
1037 * infrun.c: Likewise.
1038 * interps.c: Likewise.
1039 * iq2000-tdep.c: Likewise.
1040 * irix5-nat.c: Likewise.
1041 * jv-exp.y: Likewise.
1042 * jv-lang.c: Likewise.
1043 * jv-typeprint.c: Likewise.
1044 * jv-valprint.c: Likewise.
1045 * language.c: Likewise.
1046 * linux-fork.c: Likewise.
1047 * linux-nat.c: Likewise.
1048 * lm32-tdep.c: Likewise.
1049 * m2-exp.y: Likewise.
1050 * m2-typeprint.c: Likewise.
1051 * m32c-tdep.c: Likewise.
1052 * m32r-linux-nat.c: Likewise.
1053 * m32r-linux-tdep.c: Likewise.
1054 * m32r-rom.c: Likewise.
1055 * m32r-tdep.c: Likewise.
1056 * m68hc11-tdep.c: Likewise.
1057 * m68k-tdep.c: Likewise.
1058 * m68kbsd-tdep.c: Likewise.
1059 * m68klinux-nat.c: Likewise.
1060 * m68klinux-tdep.c: Likewise.
1061 * m88k-tdep.c: Likewise.
1062 * machoread.c: Likewise.
1063 * macrocmd.c: Likewise.
1065 * mdebugread.c: Likewise.
1066 * mem-break.c: Likewise.
1067 * memattr.c: Likewise.
1068 * memory-map.c: Likewise.
1069 * mep-tdep.c: Likewise.
1070 * mi/mi-cmd-break.c: Likewise.
1071 * mi/mi-cmd-disas.c: Likewise.
1072 * mi/mi-cmd-env.c: Likewise.
1073 * mi/mi-cmd-stack.c: Likewise.
1074 * mi/mi-cmd-var.c: Likewise.
1075 * mi/mi-cmds.c: Likewise.
1076 * mi/mi-console.c: Likewise.
1077 * mi/mi-getopt.c: Likewise.
1078 * mi/mi-interp.c: Likewise.
1079 * mi/mi-main.c: Likewise.
1080 * mi/mi-parse.c: Likewise.
1081 * microblaze-rom.c: Likewise.
1082 * microblaze-tdep.c: Likewise.
1083 * mingw-hdep.c: Likewise.
1084 * minidebug.c: Likewise.
1085 * minsyms.c: Likewise.
1086 * mips-irix-tdep.c: Likewise.
1087 * mips-linux-tdep.c: Likewise.
1088 * mips-tdep.c: Likewise.
1089 * mips64obsd-tdep.c: Likewise.
1090 * mipsnbsd-tdep.c: Likewise.
1091 * mipsread.c: Likewise.
1092 * mn10300-linux-tdep.c: Likewise.
1093 * mn10300-tdep.c: Likewise.
1094 * monitor.c: Likewise.
1095 * moxie-tdep.c: Likewise.
1096 * mt-tdep.c: Likewise.
1097 * nat/linux-btrace.c: Likewise.
1098 * nat/linux-osdata.c: Likewise.
1099 * nat/linux-procfs.c: Likewise.
1100 * nat/linux-ptrace.c: Likewise.
1101 * nat/linux-waitpid.c: Likewise.
1102 * nbsd-tdep.c: Likewise.
1103 * nios2-linux-tdep.c: Likewise.
1104 * nto-procfs.c: Likewise.
1105 * nto-tdep.c: Likewise.
1106 * objc-lang.c: Likewise.
1107 * objfiles.c: Likewise.
1108 * opencl-lang.c: Likewise.
1109 * osabi.c: Likewise.
1110 * osdata.c: Likewise.
1111 * p-exp.y: Likewise.
1112 * p-lang.c: Likewise.
1113 * p-typeprint.c: Likewise.
1114 * parse.c: Likewise.
1115 * posix-hdep.c: Likewise.
1116 * ppc-linux-nat.c: Likewise.
1117 * ppc-sysv-tdep.c: Likewise.
1118 * ppcfbsd-tdep.c: Likewise.
1119 * ppcnbsd-tdep.c: Likewise.
1120 * ppcobsd-tdep.c: Likewise.
1121 * printcmd.c: Likewise.
1122 * procfs.c: Likewise.
1123 * prologue-value.c: Likewise.
1124 * python/py-auto-load.c: Likewise.
1125 * python/py-gdb-readline.c: Likewise.
1126 * ravenscar-thread.c: Likewise.
1127 * regcache.c: Likewise.
1128 * registry.c: Likewise.
1129 * remote-fileio.c: Likewise.
1130 * remote-m32r-sdi.c: Likewise.
1131 * remote-mips.c: Likewise.
1132 * remote-notif.c: Likewise.
1133 * remote-sim.c: Likewise.
1134 * remote.c: Likewise.
1135 * reverse.c: Likewise.
1136 * rs6000-aix-tdep.c: Likewise.
1137 * ser-base.c: Likewise.
1138 * ser-go32.c: Likewise.
1139 * ser-mingw.c: Likewise.
1140 * ser-pipe.c: Likewise.
1141 * ser-tcp.c: Likewise.
1142 * ser-unix.c: Likewise.
1143 * serial.c: Likewise.
1144 * sh-tdep.c: Likewise.
1145 * sh64-tdep.c: Likewise.
1146 * shnbsd-tdep.c: Likewise.
1148 * sol-thread.c: Likewise.
1149 * solib-dsbt.c: Likewise.
1150 * solib-frv.c: Likewise.
1151 * solib-osf.c: Likewise.
1152 * solib-som.c: Likewise.
1153 * solib-spu.c: Likewise.
1154 * solib-target.c: Likewise.
1155 * solib.c: Likewise.
1156 * somread.c: Likewise.
1157 * source.c: Likewise.
1158 * sparc-nat.c: Likewise.
1159 * sparc-sol2-tdep.c: Likewise.
1160 * sparc-tdep.c: Likewise.
1161 * sparc64-tdep.c: Likewise.
1162 * sparc64fbsd-tdep.c: Likewise.
1163 * sparc64nbsd-tdep.c: Likewise.
1164 * sparcnbsd-tdep.c: Likewise.
1165 * spu-linux-nat.c: Likewise.
1166 * spu-multiarch.c: Likewise.
1167 * spu-tdep.c: Likewise.
1168 * stabsread.c: Likewise.
1169 * stack.c: Likewise.
1170 * std-regs.c: Likewise.
1171 * symfile.c: Likewise.
1172 * symmisc.c: Likewise.
1173 * symtab.c: Likewise.
1174 * target.c: Likewise.
1175 * thread.c: Likewise.
1176 * tilegx-linux-nat.c: Likewise.
1177 * tilegx-tdep.c: Likewise.
1179 * tracepoint.c: Likewise.
1180 * tui/tui-command.c: Likewise.
1181 * tui/tui-data.c: Likewise.
1182 * tui/tui-disasm.c: Likewise.
1183 * tui/tui-file.c: Likewise.
1184 * tui/tui-layout.c: Likewise.
1185 * tui/tui-out.c: Likewise.
1186 * tui/tui-regs.c: Likewise.
1187 * tui/tui-source.c: Likewise.
1188 * tui/tui-stack.c: Likewise.
1189 * tui/tui-win.c: Likewise.
1190 * tui/tui-windata.c: Likewise.
1191 * tui/tui-winsource.c: Likewise.
1192 * typeprint.c: Likewise.
1193 * ui-file.c: Likewise.
1194 * ui-out.c: Likewise.
1195 * user-regs.c: Likewise.
1196 * utils.c: Likewise.
1197 * v850-tdep.c: Likewise.
1198 * valarith.c: Likewise.
1199 * valops.c: Likewise.
1200 * valprint.c: Likewise.
1201 * value.c: Likewise.
1202 * varobj.c: Likewise.
1203 * vax-tdep.c: Likewise.
1204 * vaxnbsd-tdep.c: Likewise.
1205 * vaxobsd-tdep.c: Likewise.
1206 * windows-nat.c: Likewise.
1207 * xcoffread.c: Likewise.
1208 * xml-support.c: Likewise.
1209 * xstormy16-tdep.c: Likewise.
1210 * xtensa-linux-nat.c: Likewise.
1212 2014-08-07 Gary Benson <gbenson@redhat.com>
1214 * common/common-defs.h: Include gdb_assert.h.
1215 * aarch64-tdep.c: Do not include gdb_assert.h.
1216 * addrmap.c: Likewise.
1217 * aix-thread.c: Likewise.
1218 * alpha-linux-tdep.c: Likewise.
1219 * alpha-mdebug-tdep.c: Likewise.
1220 * alphanbsd-tdep.c: Likewise.
1221 * amd64-nat.c: Likewise.
1222 * amd64-tdep.c: Likewise.
1223 * amd64bsd-nat.c: Likewise.
1224 * amd64fbsd-nat.c: Likewise.
1225 * amd64fbsd-tdep.c: Likewise.
1226 * amd64nbsd-nat.c: Likewise.
1227 * amd64nbsd-tdep.c: Likewise.
1228 * amd64obsd-nat.c: Likewise.
1229 * amd64obsd-tdep.c: Likewise.
1230 * arch-utils.c: Likewise.
1231 * arm-tdep.c: Likewise.
1232 * armbsd-tdep.c: Likewise.
1234 * bcache.c: Likewise.
1235 * bfin-tdep.c: Likewise.
1236 * blockframe.c: Likewise.
1237 * breakpoint.c: Likewise.
1238 * bsd-kvm.c: Likewise.
1239 * bsd-uthread.c: Likewise.
1240 * buildsym.c: Likewise.
1241 * c-exp.y: Likewise.
1242 * c-lang.c: Likewise.
1243 * charset.c: Likewise.
1244 * cleanups.c: Likewise.
1245 * cli-out.c: Likewise.
1246 * cli/cli-decode.c: Likewise.
1247 * cli/cli-dump.c: Likewise.
1248 * cli/cli-logging.c: Likewise.
1249 * cli/cli-script.c: Likewise.
1250 * cli/cli-utils.c: Likewise.
1251 * coffread.c: Likewise.
1252 * common/common-utils.c: Likewise.
1253 * common/queue.h: Likewise.
1254 * common/signals.c: Likewise.
1255 * common/vec.h: Likewise.
1256 * complaints.c: Likewise.
1257 * completer.c: Likewise.
1258 * corelow.c: Likewise.
1259 * cp-abi.c: Likewise.
1260 * cp-name-parser.y: Likewise.
1261 * cp-namespace.c: Likewise.
1262 * cp-support.c: Likewise.
1263 * cris-tdep.c: Likewise.
1264 * dbxread.c: Likewise.
1265 * dictionary.c: Likewise.
1266 * doublest.c: Likewise.
1267 * dsrec.c: Likewise.
1268 * dummy-frame.c: Likewise.
1269 * dwarf2-frame-tailcall.c: Likewise.
1270 * dwarf2-frame.c: Likewise.
1271 * dwarf2expr.c: Likewise.
1272 * dwarf2loc.c: Likewise.
1273 * dwarf2read.c: Likewise.
1275 * event-loop.c: Likewise.
1276 * exceptions.c: Likewise.
1277 * expprint.c: Likewise.
1278 * f-valprint.c: Likewise.
1279 * fbsd-nat.c: Likewise.
1280 * findvar.c: Likewise.
1281 * frame-unwind.c: Likewise.
1282 * frame.c: Likewise.
1283 * frv-tdep.c: Likewise.
1284 * gcore.c: Likewise.
1285 * gdb-dlfcn.c: Likewise.
1286 * gdb_bfd.c: Likewise.
1287 * gdbarch.c: Likewise.
1288 * gdbarch.sh: Likewise.
1289 * gdbtypes.c: Likewise.
1290 * gnu-nat.c: Likewise.
1291 * gnu-v3-abi.c: Likewise.
1292 * go-lang.c: Likewise.
1293 * guile/scm-exception.c: Likewise.
1294 * guile/scm-gsmob.c: Likewise.
1295 * guile/scm-lazy-string.c: Likewise.
1296 * guile/scm-math.c: Likewise.
1297 * guile/scm-pretty-print.c: Likewise.
1298 * guile/scm-safe-call.c: Likewise.
1299 * guile/scm-utils.c: Likewise.
1300 * guile/scm-value.c: Likewise.
1301 * h8300-tdep.c: Likewise.
1302 * hppa-hpux-nat.c: Likewise.
1303 * hppa-tdep.c: Likewise.
1304 * hppanbsd-tdep.c: Likewise.
1305 * hppaobsd-tdep.c: Likewise.
1306 * i386-darwin-nat.c: Likewise.
1307 * i386-darwin-tdep.c: Likewise.
1308 * i386-nto-tdep.c: Likewise.
1309 * i386-tdep.c: Likewise.
1310 * i386bsd-nat.c: Likewise.
1311 * i386fbsd-tdep.c: Likewise.
1312 * i386gnu-nat.c: Likewise.
1313 * i386nbsd-tdep.c: Likewise.
1314 * i386obsd-tdep.c: Likewise.
1315 * i387-tdep.c: Likewise.
1316 * ia64-libunwind-tdep.c: Likewise.
1317 * ia64-tdep.c: Likewise.
1318 * inf-ptrace.c: Likewise.
1319 * inf-ttrace.c: Likewise.
1320 * infcall.c: Likewise.
1321 * infcmd.c: Likewise.
1322 * infrun.c: Likewise.
1323 * inline-frame.c: Likewise.
1324 * interps.c: Likewise.
1325 * jv-lang.c: Likewise.
1326 * jv-typeprint.c: Likewise.
1327 * linux-fork.c: Likewise.
1328 * linux-nat.c: Likewise.
1329 * linux-thread-db.c: Likewise.
1330 * m32c-tdep.c: Likewise.
1331 * m32r-linux-nat.c: Likewise.
1332 * m32r-tdep.c: Likewise.
1333 * m68k-tdep.c: Likewise.
1334 * m68kbsd-nat.c: Likewise.
1335 * m68kbsd-tdep.c: Likewise.
1336 * m88k-tdep.c: Likewise.
1337 * machoread.c: Likewise.
1338 * macroexp.c: Likewise.
1339 * macrotab.c: Likewise.
1340 * maint.c: Likewise.
1341 * mdebugread.c: Likewise.
1342 * memory-map.c: Likewise.
1343 * mep-tdep.c: Likewise.
1344 * mi/mi-common.c: Likewise.
1345 * microblaze-tdep.c: Likewise.
1346 * mingw-hdep.c: Likewise.
1347 * mips-linux-nat.c: Likewise.
1348 * mips-linux-tdep.c: Likewise.
1349 * mips-tdep.c: Likewise.
1350 * mips64obsd-tdep.c: Likewise.
1351 * mipsnbsd-tdep.c: Likewise.
1352 * mn10300-linux-tdep.c: Likewise.
1353 * mn10300-tdep.c: Likewise.
1354 * moxie-tdep.c: Likewise.
1355 * mt-tdep.c: Likewise.
1356 * nat/linux-btrace.c: Likewise.
1357 * nat/linux-osdata.c: Likewise.
1358 * nat/linux-ptrace.c: Likewise.
1359 * nat/mips-linux-watch.c: Likewise.
1360 * nios2-linux-tdep.c: Likewise.
1361 * nios2-tdep.c: Likewise.
1362 * objc-lang.c: Likewise.
1363 * objfiles.c: Likewise.
1364 * obsd-nat.c: Likewise.
1365 * opencl-lang.c: Likewise.
1366 * osabi.c: Likewise.
1367 * parse.c: Likewise.
1368 * ppc-linux-nat.c: Likewise.
1369 * ppc-sysv-tdep.c: Likewise.
1370 * ppcfbsd-nat.c: Likewise.
1371 * ppcfbsd-tdep.c: Likewise.
1372 * ppcnbsd-nat.c: Likewise.
1373 * ppcnbsd-tdep.c: Likewise.
1374 * ppcobsd-nat.c: Likewise.
1375 * ppcobsd-tdep.c: Likewise.
1376 * printcmd.c: Likewise.
1377 * procfs.c: Likewise.
1378 * prologue-value.c: Likewise.
1379 * psymtab.c: Likewise.
1380 * python/py-lazy-string.c: Likewise.
1381 * python/py-value.c: Likewise.
1382 * regcache.c: Likewise.
1383 * reggroups.c: Likewise.
1384 * registry.c: Likewise.
1385 * remote-sim.c: Likewise.
1386 * remote.c: Likewise.
1387 * rs6000-aix-tdep.c: Likewise.
1388 * rs6000-tdep.c: Likewise.
1389 * s390-linux-tdep.c: Likewise.
1390 * score-tdep.c: Likewise.
1391 * ser-base.c: Likewise.
1392 * ser-mingw.c: Likewise.
1393 * sh-tdep.c: Likewise.
1394 * sh64-tdep.c: Likewise.
1395 * solib-darwin.c: Likewise.
1396 * solib-spu.c: Likewise.
1397 * solib-svr4.c: Likewise.
1398 * source.c: Likewise.
1399 * sparc-nat.c: Likewise.
1400 * sparc-sol2-tdep.c: Likewise.
1401 * sparc-tdep.c: Likewise.
1402 * sparc64-sol2-tdep.c: Likewise.
1403 * sparc64-tdep.c: Likewise.
1404 * sparc64fbsd-tdep.c: Likewise.
1405 * sparc64nbsd-tdep.c: Likewise.
1406 * sparc64obsd-tdep.c: Likewise.
1407 * sparcnbsd-tdep.c: Likewise.
1408 * sparcobsd-tdep.c: Likewise.
1409 * spu-multiarch.c: Likewise.
1410 * spu-tdep.c: Likewise.
1411 * stabsread.c: Likewise.
1412 * stack.c: Likewise.
1413 * symfile.c: Likewise.
1414 * symtab.c: Likewise.
1415 * target-descriptions.c: Likewise.
1416 * target-memory.c: Likewise.
1417 * target.c: Likewise.
1418 * tic6x-linux-tdep.c: Likewise.
1419 * tic6x-tdep.c: Likewise.
1420 * tilegx-linux-nat.c: Likewise.
1421 * tilegx-tdep.c: Likewise.
1423 * tramp-frame.c: Likewise.
1424 * tui/tui-out.c: Likewise.
1425 * tui/tui-winsource.c: Likewise.
1426 * ui-out.c: Likewise.
1427 * user-regs.c: Likewise.
1428 * utils.c: Likewise.
1429 * v850-tdep.c: Likewise.
1430 * valops.c: Likewise.
1431 * value.c: Likewise.
1432 * varobj.c: Likewise.
1433 * vax-nat.c: Likewise.
1434 * xml-syscall.c: Likewise.
1435 * xml-tdesc.c: Likewise.
1436 * xstormy16-tdep.c: Likewise.
1437 * xtensa-linux-nat.c: Likewise.
1438 * xtensa-tdep.c: Likewise.
1440 2014-08-07 Gary Benson <gbenson@redhat.com>
1442 * common/common-defs.h: Include common-utils.h.
1443 * defs.h: Do not include common-utils.h.
1444 * common/gdb_assert.h: Likewise.
1445 * darwin-nat.h: Likewise.
1446 * nat/linux-btrace.c: Likewise.
1447 * target/waitstatus.h: Likewise.
1449 2014-08-07 Gary Benson <gbenson@redhat.com>
1451 * common/common-defs.h: Include ptid.h.
1452 * defs.h: Do not include ptid.h.
1453 * inferior.h: Likewise.
1454 * infrun.h: Likewise.
1455 * nat/linux-btrace.h: Likewise.
1456 * nat/linux-osdata.h: Likewise.
1457 * target/waitstatus.h: Likewise.
1459 2014-08-07 Gary Benson <gbenson@redhat.com>
1461 * common/common-defs.h: Include gdb_locale.h.
1462 * defs.h: Do not include gdb_locale.h.
1464 2014-08-07 Gary Benson <gbenson@redhat.com>
1466 * common/common-defs.h: Include gdb/signals.h.
1467 * defs.h: Do not include gdb/signals.h.
1469 2014-08-07 Gary Benson <gbenson@redhat.com>
1471 * common/common-defs.h: Include pathmax.h.
1472 * defs.h: Do not include pathmax.h.
1474 2014-08-07 Gary Benson <gbenson@redhat.com>
1476 * common/common-defs.h: Include libiberty.h.
1477 * defs.h: Do not include libiberty.h.
1478 * common/queue.h: Likewise.
1479 * cp-name-parser.y: Likewise.
1480 * mi/mi-cmd-catch.c: Likewise.
1481 * python/python.c: Likewise.
1483 2014-08-07 Gary Benson <gbenson@redhat.com>
1485 * common/common-defs.h: Include ansidecl.h.
1486 * defs.h: Do not include ansidecl.h.
1487 * common/buffer.h: Likewise.
1488 * common/common-utils.h: Likewise.
1490 2014-08-07 Gary Benson <gbenson@redhat.com>
1492 * common/common-defs.h: Include stddef.h.
1493 * defs.h: Do not include stddef.h.
1494 * common/common-utils.h: Likewise.
1495 * amd64fbsd-nat.c: Likewise.
1496 * bcache.c: Likewise.
1497 * charset.c: Likewise.
1498 * common/buffer.h: Likewise.
1499 * common/vec.h: Likewise.
1500 * i386bsd-nat.c: Likewise.
1501 * nat/linux-btrace.h: Likewise.
1502 * ppcfbsd-nat.c: Likewise.
1503 * ppcnbsd-tdep.h: Likewise.
1504 * ppcobsd-nat.c: Likewise.
1505 * ppcobsd-tdep.h: Likewise.
1506 * python/py-gdb-readline.c: Likewise.
1508 2014-08-07 Gary Benson <gbenson@redhat.com>
1510 * common/common-defs.h: Include stdarg.h.
1511 * defs.h: Do not include stdarg.h.
1512 * ada-lang.c: Likewise.
1513 * common/common-utils.h: Likewise.
1514 * guile/scm-string.c: Likewise.
1515 * guile/scm-utils.c: Likewise.
1516 * m32c-tdep.c: Likewise.
1518 2014-08-07 Gary Benson <gbenson@redhat.com>
1520 * common/common-defs.h: Include stdlib.h.
1521 * defs.h: Do not include stdlib.h.
1522 * addrmap.c: Likewise.
1523 * bcache.c: Likewise.
1524 * common/buffer.c: Likewise.
1525 * common/common-utils.c: Likewise.
1526 * cp-name-parser.y: Likewise.
1527 * go32-nat.c: Likewise.
1528 * mn10300-linux-tdep.c: Likewise.
1529 * nat/linux-osdata.c: Likewise.
1530 * tui/tui.c: Likewise.
1531 * windows-nat.c: Likewise.
1533 2014-08-07 Gary Benson <gbenson@redhat.com>
1535 * common/common-defs.h: Include stdio.h.
1536 * defs.h: Do not include stdio.h.
1537 * ada-lang.c: Likewise.
1538 * common/buffer.c: Likewise.
1539 * common/common-utils.c: Likewise.
1540 * cp-name-parser.y: Likewise.
1541 * gnu-nat.c: Likewise.
1542 * go32-nat.c: Likewise.
1543 * i386gnu-nat.c: Likewise.
1544 * proc-api.c: Likewise.
1545 * proc-events.c: Likewise.
1546 * proc-flags.c: Likewise.
1547 * proc-why.c: Likewise.
1548 * python/python-internal.h: Likewise.
1549 * target-memory.c: Likewise.
1550 * tui/tui-io.c: Likewise.
1551 * tui/tui.c: Likewise.
1553 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1555 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1556 (scan_dyntag_auxv): Same.
1558 2014-08-06 Yao Qi <yao@codesourcery.com>
1560 * amd64-linux-nat.c: Remove duplicated include
1562 * i386-linux-nat.c: Likewise.
1564 2014-08-06 Yao Qi <yao@codesourcery.com>
1566 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1567 operand" with "Special opcode" in comments.
1569 2014-08-05 Gary Benson <gbenson@redhat.com>
1571 * interps.c (initialize_interps): Remove prototype.
1572 (interpreter_initialized): Remove static global.
1573 (interp_add): Do not call initialize_interps.
1574 (initialize_interps): Remove function.
1576 2014-08-05 Gary Benson <gbenson@redhat.com>
1578 * utils.c (vwarning): Remove spurious va_end.
1580 2014-08-05 Alan Modra <amodra@gmail.com>
1582 * charset.c (convert_between_encodings): Cast result of obstack_base.
1583 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1584 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1585 (read_unwind_info): Use size_t for some locals.
1586 * jit.c (finalize_symtab): Likewise.
1587 * utils.c (hashtab_obstack_allocate): Likewise.
1588 * symmisc.c (print_objfile_statistics): Update format strings.
1590 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1592 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1593 (Changes in GDB 7.8): ... here.
1595 2014-08-04 Tom Tromey <tromey@redhat.com>
1597 * target.c (set_targetdebug): New function.
1598 (initialize_targets): Pass set_targetdebug when creating "set
1601 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1603 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1604 if detecting a variable-sized field that is not the last field.
1605 Fix struct type length computation.
1607 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1609 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1612 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1614 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1615 Remove "+ 8" offset in computation of CHAIN_VMA.
1617 2014-07-31 Doug Evans <dje@google.com>
1619 * inflow.c (child_terminal_inferior): Add comment.
1620 (child_terminal_ours_for_output): Add comment.
1621 (child_terminal_ours): Add comment.
1622 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1623 (linux_nat_terminal_ours): Add comment.
1625 2014-07-31 Gary Benson <gbenson@redhat.com>
1627 * common/btrace-common.h: Do not include defs.h or server.h.
1628 * nat/mips-linux-watch.h: Likewise.
1629 * gdb-dlfcn.h: Do not include defs.h.
1630 * tracefile.h: Likewise.
1632 2014-07-30 Roland McGrath <mcgrathr@google.com>
1634 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1636 2014-07-30 Tom Tromey <tromey@redhat.com>
1638 * bsd-kvm.c (bsd_kvm_open): Constify.
1639 * corelow.c (core_open): Constify.
1640 * ctf.c (ctf_open): Constify.
1641 * dbug-rom.c (dbug_open): Constify.
1642 * exec.c (exec_open): Constify.
1643 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1644 * microblaze-rom.c (picobug_open): Constify.
1645 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1647 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1648 * record-btrace.c (record_btrace_open): Constify.
1649 * record-full.c (record_full_core_open_1, record_full_open_1)
1650 (record_full_open): Constify.
1651 * remote-m32r-sdi.c (m32r_open): Constify.
1652 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1653 (rockhopper_open, lsi_open): Constify.
1654 * remote-sim.c (gdbsim_open): Constify.
1655 * remote.c (remote_open, extended_remote_open, remote_open_1):
1657 * target.h (struct target_ops) <to_open>: Make "arg" const.
1658 * tracefile-tfile.c (tfile_open): Constify.
1660 2014-07-30 Tom Tromey <tromey@redhat.com>
1662 * breakpoint.c (map_breakpoint_numbers): Update.
1663 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1664 (get_number_const): New function.
1665 (get_number): Rewrite using get_number_const.
1666 (init_number_or_range): Make "string" const.
1667 (number_is_in_list): Make "list" const.
1668 * cli/cli-utils.h (get_number_const): Declare.
1669 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1670 (init_number_or_range, number_is_in_list): Update.
1671 * printcmd.c (map_display_numbers): Update.
1672 * value.c (value_from_history_ref): Constify.
1673 * value.h (value_from_history_ref): Update.
1675 2014-07-30 Tom Tromey <tromey@redhat.com>
1677 * corefile.c (hook_type, call_extra_exec_file_hooks)
1678 (specify_exec_file_hook): Constify.
1679 * exec.c (exec_file_attach): Make "filename" const.
1680 * gdbcore.h (deprecated_exec_file_display_hook)
1681 (specify_exec_file_hook, exec_file_attach): Constify.
1682 * main.c (captured_main): Use catch_command_errors_const.
1684 2014-07-30 Tom Tromey <tromey@redhat.com>
1686 * target.c (open_target): New function.
1687 (add_target_with_completer, add_deprecated_target_alias): Use
1688 set_cmd_sfunc, set_cmd_context.
1689 (debug_to_open): Remove.
1690 (setup_target_debug): Update.
1692 2014-07-30 Yao Qi <yao@codesourcery.com>
1694 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1696 * parse.c (exp_iterate): Update comments.
1698 2014-07-30 Gary Benson <gbenson@redhat.com>
1700 * common/common-defs.h: New file.
1701 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1702 * defs.h: Include common-defs.h.
1703 Do not include config.h or build-gnulib/config.h.
1705 2014-07-30 Gary Benson <gbenson@redhat.com>
1707 * common/common-utils.h: Do not include config.h.
1708 * nat/linux-btrace.h: Likewise.
1710 2014-07-30 Gary Benson <gbenson@redhat.com>
1712 * btrace.c: Include defs.h.
1713 * common/ptid.c: Include defs.h or server.h as appropriate.
1714 * nat/mips-linux-watch.c: Likewise.
1716 2014-07-29 Tom Tromey <tromey@redhat.com>
1718 * target.c (target_is_pushed): Simplify.
1720 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1724 2014-07-29 Yao Qi <yao@codesourcery.com>
1727 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1729 2014-07-28 Doug Evans <xdje42@gmail.com>
1732 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1733 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1736 2014-07-28 Will Newton <will.newton@linaro.org>
1738 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1739 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1740 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1741 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1742 (THUMB2_EABI_SYSCALL): Likewise.
1743 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1745 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1746 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1748 2014-07-27 Doug Evans <xdje42@gmail.com>
1750 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1752 2014-07-27 Doug Evans <xdje42@gmail.com>
1754 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1756 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1757 Doug Evans <xdje42@gmail.com>
1760 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1761 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1762 * configure.ac: Try to use guild to compile an scm file, if it fails
1763 then disable guile support.
1764 * configure: Regenerate.
1765 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1767 (GUILE_COMPILED_FILES): New variable.
1768 (GUILE_FILES) Update.
1769 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1770 (stamp-guile): Compile scm files.
1771 * guile/guile.c (boot_guile_support): New function.
1772 (standard_throw_args_p): New function.
1773 (print_standard_throw_error, print_throw_error): New functions.
1774 (handle_boot_error): New function.
1775 (initialize_scheme_side): Rewrite to call boot_guile_support.
1776 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1777 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1779 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1780 Doug Evans <xdje42@gmail.com>
1783 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1784 * guile/lib/gdb/support.scm: New file.
1785 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1786 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1788 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1790 (%assert-type): Ditto, and renamed to assert-type.
1791 (%exception-print-style): Delete.
1793 2014-07-26 Doug Evans <xdje42@gmail.com>
1796 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1797 * configure: Regenerate.
1798 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1800 (PYTHON_FILES): New variable.
1801 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1802 (GUILE_FILES): New variable.
1803 (stamp-python, install-python, uninstall-python): Handle empty
1805 (stamp-guile, install-guile, uninstall-guile): Ditto.
1807 2014-07-26 Doug Evans <xdje42@gmail.com>
1810 * guile/lib/gdb.scm (pretty-printers): Export.
1811 (set-pretty-printers!): Export.
1812 * guile/lib/gdb/printing.scm (gdb module): Update.
1813 (prepend-pretty-printer!, append-pretty-printer!): Update.
1814 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1815 (pretty_printer_list_var): Delete.
1816 (pretty_printer_list): New static global.
1817 (gdbscm_pretty_printers): New function.
1818 (gdbscm_set_pretty_printers_x): New function.
1819 (ppscm_find_pretty_printer_from_gdb): Update.
1820 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1821 (gdbscm_initialize_pretty_printers): Update.
1823 2014-07-26 Doug Evans <xdje42@gmail.com>
1826 * configure.ac: Add check for header gc/gc.h.
1827 Add check for function setenv.
1828 * configure: Regenerate.
1829 * config.in: Regenerate.
1830 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1832 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1834 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1835 variation in gdbarch matching.
1837 2014-07-25 Tom Tromey <tromey@redhat.com>
1839 * exec.c (using_exec_ops): Remove.
1840 (exec_close_1): Update. Remove extraneous block, reindent.
1841 (add_target_sections): Use target_is_pushed.
1843 2014-07-25 Pedro Alves <palves@redhat.com>
1845 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1846 * monitor.c (monitor_create_inferior): Likewise.
1847 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1848 * remote-sim.c (gdbsim_create_inferior): Likewise.
1849 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1850 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1851 * windows-nat.c (do_initial_windows_stuff): Likewise.
1853 2014-07-25 Pedro Alves <palves@redhat.com>
1855 * NEWS: Mention signal passing and "signal" command changes.
1856 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1858 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1860 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1861 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1862 (jump_command): Adjust clear_proceed_status call.
1863 (signal_command): Warn if other thread that are resumed have
1864 signals that will be delivered. Adjust clear_proceed_status call.
1865 (until_next_command, finish_command)
1866 (proceed_after_attach_callback, attach_command_post_wait)
1867 (attach_command): Adjust clear_proceed_status call.
1868 * infrun.c (proceed_after_vfork_done): Likewise.
1869 (proceed_after_attach_callback): Adjust comment.
1870 (clear_proceed_status_thread): Clear stop_signal if not in pass
1872 (clear_proceed_status_callback): Delete.
1873 (clear_proceed_status): New 'step' parameter. Only clear the
1874 proceed status of threads the command being prepared is about to
1876 (proceed): If passed in an explicit signal, override stop_signal
1877 with it. Don't pass the last stop signal to the thread we're
1879 (init_wait_for_inferior): Adjust clear_proceed_status call.
1880 (switch_back_to_stepped_thread): Clear the signal if it should not
1882 * infrun.h (clear_proceed_status): New 'step' parameter.
1883 (user_visible_resume_ptid): Add comment.
1884 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1885 signal is in pass state.
1886 * remote.c (append_pending_thread_resumptions): Likewise.
1887 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1889 2014-07-25 Tom Tromey <tromey@redhat.com>
1891 * target.h (target_stopped_data_address)
1892 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1895 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1897 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1899 (avr_pointer_to_address): Likewise.
1901 2014-07-24 Tom Tromey <tromey@redhat.com>
1903 * monitor.c (compile_pattern): Update.
1904 * target.h (struct target_ops) <to_shortname, to_longname,
1907 2014-07-24 Tom Tromey <tromey@redhat.com>
1909 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1910 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1911 (add_info_alias, add_com): Make "doc" const.
1912 (print_doc_line): Make "str" const.
1913 (delete_cmd): Update.
1914 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1915 (print_doc_line): Update.
1916 * cli/cli-script.c (document_command): Update.
1917 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1918 (add_com, add_info, add_info_alias): Update.
1919 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1920 * python/py-cmd.c (cmdpy_destroyer): Update.
1922 2014-07-24 Tom Tromey <tromey@redhat.com>
1924 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1925 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1926 (help_cmd_list): Constify.
1927 (lookup_cmd): Update.
1928 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1930 (help_cmd_list, apropos_cmd): Update.
1931 * cli/cli-script.c (show_user): Update.
1932 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1933 * cli/cli-setshow.h (cmd_show_list): Update.
1934 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1935 (cmd_show_list): Update.
1936 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1937 * python/py-cmd.c (cmdpy_destroyer): Update.
1939 2014-07-24 Tom Tromey <tromey@redhat.com>
1941 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1942 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1944 * command.h (deprecate_cmd): Update.
1945 * maint.c (maintenance_do_deprecate): Add casts.
1947 2014-07-24 Tom Tromey <tromey@redhat.com>
1949 * cli/cli-decode.c (help_cmd): Make parameter "const".
1950 * cli/cli-decode.h (help_cmd): Update.
1952 2014-07-24 Tom Tromey <tromey@redhat.com>
1954 * stack.c (up_silently_base, down_silently_base): Make argument
1957 2014-07-24 Tom Tromey <tromey@redhat.com>
1959 * solib.c (solib_add): Make "pattern" const.
1960 * solib.h (solib_add): Update.
1962 2014-07-24 Tom Tromey <tromey@redhat.com>
1964 * remote.c (remote_serial_open, print_packet, putpkt)
1965 (putpkt_binary): Constify.
1966 * remote.h (putpkt): Update.
1968 2014-07-24 Tom Tromey <tromey@redhat.com>
1970 * monitor.c (monitor_open): Make "args" const.
1971 * monitor.h (monitor_open): Update.
1973 2014-07-24 Tom Tromey <tromey@redhat.com>
1975 * maint.c (match_bfd_flags): Make "string" const.
1976 (print_bfd_section_info): Remove casts.
1977 (print_objfile_section_info): Make "string" const.
1979 2014-07-24 Tom Tromey <tromey@redhat.com>
1981 * inf-child.c (inf_child_open_target): Make "arg" const.
1982 * inf-child.h (inf_child_open_target): Update.
1984 2014-07-24 Tom Tromey <tromey@redhat.com>
1986 * environ.c (unset_in_environ): Make "var" const.
1987 * environ.h (unset_in_environ): Update.
1989 2014-07-24 Tom Tromey <tromey@redhat.com>
1991 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1993 (scan_filename_with_cleanup): Likewise.
1994 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1995 Make arguments const.
1996 (restore_command): Update.
1998 2014-07-24 Pedro Alves <palves@redhat.com>
2000 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2002 2014-07-24 Tom Tromey <tromey@redhat.com>
2003 Gary Benson <gbenson@redhat.com>
2005 * nat/linux-ptrace.c (additional_flags): New global.
2006 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2007 additional_flags; don't check GDBSERVER.
2008 (linux_ptrace_set_additional_flags): New function.
2009 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2011 * linux-nat.c (_initialize_linux_nat): Call
2012 linux_ptrace_set_additional_flags.
2014 2014-07-24 Tom Tromey <tromey@redhat.com>
2016 * make-target-delegates (munge_type, write_debugmethod): New
2018 (debug_names): New global.
2019 ($TARGET_DEBUG_PRINTER): New global.
2020 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2022 Write debug methods. Generate init_debug_target.
2023 * target-debug.h: New file.
2024 * target-delegates.c: Rebuild.
2025 * target.c: Include target-debug.h.
2026 (debug_target): Hoist definition.
2027 (target_kill, target_get_section_table, target_memory_map)
2028 (target_flash_erase, target_flash_done, target_detach)
2029 (target_disconnect, target_wait, target_resume)
2030 (target_pass_signals, target_program_signals, target_follow_fork)
2031 (target_mourn_inferior, target_search_memory)
2032 (target_thread_address_space, target_close)
2033 (target_find_new_threads, target_core_of_thread)
2034 (target_verify_memory, target_insert_mask_watchpoint)
2035 (target_remove_mask_watchpoint): Remove targetdebug code.
2036 (debug_to_post_attach, debug_to_prepare_to_store)
2037 (debug_to_files_info, debug_to_insert_breakpoint)
2038 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2039 (debug_to_region_ok_for_hw_watchpoint)
2040 (debug_to_can_accel_watchpoint_condition)
2041 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2042 (debug_to_watchpoint_addr_within_range)
2043 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2044 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2045 (debug_to_terminal_init, debug_to_terminal_inferior)
2046 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2047 (debug_to_terminal_save_ours, debug_to_terminal_info)
2048 (debug_to_load, debug_to_post_startup_inferior)
2049 (debug_to_insert_fork_catchpoint)
2050 (debug_to_remove_fork_catchpoint)
2051 (debug_to_insert_vfork_catchpoint)
2052 (debug_to_remove_vfork_catchpoint)
2053 (debug_to_insert_exec_catchpoint)
2054 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2055 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2056 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2057 (setup_target_debug): Call init_debug_target.
2058 * target.h (TARGET_DEBUG_PRINTER): New macro.
2059 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2060 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2062 2014-07-24 Gary Benson <gbenson@redhat.com>
2064 * exceptions.h (throw_vfatal): Renamed to...
2065 (throw_vquit): New declaration.
2066 (throw_quit): Likewise.
2067 * exceptions.c (throw_vfatal): Renamed to...
2068 (throw_vquit): New function.
2069 (throw_quit): Likewise.
2070 (throw_error): Call throw_verror rather than throw_it.
2071 * utils.h (vfatal): Removed.
2073 * utils.c (vfatal): Removed.
2075 (internal_verror): Replaced call to fatal with call to throw_quit.
2076 (quit): Replaced calls to fatal with calls to throw_quit.
2078 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2080 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2083 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2085 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2086 less than zero in conditional expression.
2088 2014-07-23 Tom Tromey <tromey@redhat.com>
2090 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2091 ($INTRO_PART): Don't match whitespace.
2092 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2094 ($METHOD): Add $METHOD_TRAILER.
2096 (scan_target_h): New sub.
2097 Change main loop not to collect state.
2098 * target-delegates.c: Rebuild.
2100 2014-07-23 Gary Benson <gbenson@redhat.com>
2102 * cp-support.c (gdb_demangle): Fix build on systems without
2105 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2107 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2108 for reference entry value target data value.
2110 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2112 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2113 value_available_contents_eq.
2115 2014-07-22 Pedro Alves <palves@redhat.com>
2117 * value.c (allocate_optimized_out_value): Don't mark value as
2120 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2122 * MAINTAINERS (Write After Approval): Update my email address.
2124 2014-07-20 Doug Evans <dje@google.com>
2127 * remote.c (putpkt_binary): Add text to error message.
2129 2014-07-20 Yao Qi <yao@codesourcery.com>
2131 * eval.c: Remove "Chill" from comments.
2132 * gdbtypes.h: Likewise.
2133 * symtab.h: Likewise.
2135 2014-07-20 Yao Qi <yao@codesourcery.com>
2137 * std-operator.def: Update comments to TERNOP_SLICE.
2139 2014-07-20 Yao Qi <yao@codesourcery.com>
2141 * std-operator.def: Remove BINOP_RANGE.
2142 * breakpoint.c (watchpoint_exp_is_const): Update.
2143 * expprint.c (dump_subexp_body_standard): Likewise.
2144 * eval.c (init_array_element): Remove dead code.
2145 (evaluate_subexp_standard): Likewise.
2147 2014-07-20 Yao Qi <yao@codesourcery.com>
2149 * std-operator.def: Remove BINOP_IN.
2150 * breakpoint.c (watchpoint_exp_is_const): Update.
2151 * eval.c (evaluate_subexp_standard): Likewise.
2152 * expprint.c (dump_subexp_body_standard): Likewise.
2154 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2156 * microblaze-tdep.c (microblaze_register_names): Add
2157 the rshr and rslr register names.
2158 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2159 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2160 Use of tdesc_numbered_register. Use of
2161 microblaze_register_g_packet_guesses. Use of
2162 tdesc_use_registers. Use of set_gdbarch_register_type.
2163 (microblaze_register_g_packet_guesses): New.
2164 * microblaze-tdep.h (microblaze_reg_num): Add
2165 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2166 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2167 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2168 * features/microblaze-core.xml: New file.
2169 * features/microblaze-stack-protect.xml: New file.
2170 * features/microblaze-with-stack-protect.c: New file.
2171 * features/microblaze-with-stack-protect.xml: New file.
2172 * features/microblaze.xml: New file.
2173 * features/microblaze.c: New file.
2174 * features/Makefile (microblaze-with-stack-protect): Add
2175 microblaze-with-stack-protect microblaze and microblaze-expedite.
2176 * regformats/microblaze-with-stack-protect.dat: New file.
2177 * regformats/microblaze.dat: New file.
2178 * doc/gdb.texinfo (MicroBlaze Features): Added.
2180 2014-07-18 Tom Tromey <tromey@redhat.com>
2182 * exec.c (exec_ops): Now static.
2183 * exec.h (exec_ops): Don't declare.
2185 2014-07-18 Tom Tromey <tromey@redhat.com>
2187 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2188 to find_target_beneath.
2189 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2190 find_target_beneath.
2191 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2193 2014-07-18 Tom Tromey <tromey@redhat.com>
2196 * utils.c (quit): Use target_supports_terminal_ours.
2197 * target.h (target_supports_terminal_ours): Declare.
2198 * target.c (target_supports_delete_record): Don't check
2199 to_delete_record against NULL.
2200 (target_supports_terminal_ours): New function.
2202 2014-07-18 Tom Tromey <tromey@redhat.com>
2205 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2206 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2207 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2208 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2209 * windows-nat.c (windows_xfer_partial): Always delegate.
2210 * record-btrace.c (record_btrace_xfer_partial): Simplify
2212 (record_btrace_fetch_registers, record_btrace_store_registers)
2213 (record_btrace_prepare_to_store, record_btrace_resume)
2214 (record_btrace_wait, record_btrace_find_new_threads)
2215 (record_btrace_thread_alive): Likewise.
2216 * procfs.c (procfs_xfer_partial): Always delegate.
2217 * corelow.c (core_xfer_partial): Always delegate.
2218 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2220 2014-07-18 Tom Tromey <tromey@redhat.com>
2222 * exec.c (exec_make_note_section): Move earlier.
2224 2014-07-17 Doug Evans <dje@google.com>
2227 * maint.c (count_symtabs_and_blocks): Handle NULL
2228 current_program_space.
2229 (report_command_stats): Check global enabled flag in addition to
2230 recorded enabled flag.
2231 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2233 2014-07-16 Pedro Alves <palves@redhat.com>
2235 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2237 2014-07-16 Tom Tromey <tromey@redhat.com>
2239 * target.h (struct target_ops) <to_delete_record>: Reformat
2242 2014-07-16 Tom Tromey <tromey@redhat.com>
2244 * target-delegates.c: Rebuild.
2246 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2248 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2249 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2250 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2251 (avr_pointer_to_address): Likewise.
2252 (avr_address_class_type_flags): New function.
2253 (avr_address_class_type_flags_to_name): Likewise.
2254 (avr_address_class_name_to_type_flags): Likewise.
2255 (avr_gdbarch_init): Set address_class_type_flags,
2256 address_class_type_flags_to_name and
2257 address_class_name_to_type_flags.
2259 2014-07-15 Pedro Alves <palves@redhat.com>
2261 * linux-nat.c (kill_callback): Save errno and work with saved
2264 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2266 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2268 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2270 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2271 breakpoint support correctly.
2273 2014-07-14 Pedro Alves <palves@redhat.com>
2275 * utils.c (prompt_for_continue): Call target_terminal_ours.
2277 2014-07-14 Pedro Alves <palves@redhat.com>
2279 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2280 catch_errors. Don't re-enable stdin or notify observers where,
2282 (fetch_inferior_event_wrapper): Delete.
2284 2014-07-14 Pedro Alves <palves@redhat.com>
2287 * top.c: Include "inf-loop.h".
2288 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2290 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2292 (gdb_readline_wrapper): Store whether the target is async, and
2295 2014-07-14 Pedro Alves <palves@redhat.com>
2298 * top.c (gdb_readline_wrapper_line): Tweak comment.
2299 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2300 the input handler callback.
2302 2014-07-14 Pedro Alves <palves@redhat.com>
2305 * main.c: Include event-top.h.
2306 (handle_command_errors): New function.
2307 (catch_command_errors, catch_command_errors_const): Use it.
2309 2014-07-14 Pedro Alves <palves@redhat.com>
2311 * exceptions.c (catch_command_errors, catch_command_errors_const):
2313 * exceptions.h (catch_command_errors_ftype)
2314 (catch_command_errors_const_ftype): Moved to main.c.
2315 (catch_command_errors, catch_command_errors_const): Delete
2317 * main.c (catch_command_errors_ftype)
2318 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2319 (catch_command_errors, catch_command_errors_const)): Moved here
2320 from exceptions.c and make static.
2322 2014-07-14 Pedro Alves <palves@redhat.com>
2324 * exceptions.c (print_any_exception): Delete.
2325 (catch_exceptions_with_msg): Use exception_print instead of
2326 print_any_exception.
2327 (catch_errors): Use exception_fprintf instead of
2328 print_any_exception.
2329 (catch_command_errors, catch_command_errors_const): Use
2330 exception_print instead of print_any_exception.
2332 2014-07-14 Pedro Alves <palves@redhat.com>
2334 * infcall.c (run_inferior_call): Set 'sync_execution' while
2335 running the inferior call.
2337 2014-07-14 Pedro Alves <palves@redhat.com>
2339 * value.c (value_contents_equal): Delete function.
2340 * value.h (value_contents_equal): Delete declaration.
2342 2014-07-14 Tom Tromey <tromey@redhat.com>
2345 * gdbtypes.c (is_dynamic_type_internal): New function, from
2347 (is_dynamic_type): Rewrite.
2348 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2349 (resolve_dynamic_struct): Likewise.
2350 (resolve_dynamic_type_internal): New function, from
2351 resolve_dynamic_type.
2352 (resolve_dynamic_type): Rewrite.
2354 2014-07-14 Tom Tromey <tromey@redhat.com>
2356 * target.c (target_require_runnable): Also check record_stratum.
2359 2014-07-11 Yao Qi <yao@codesourcery.com>
2361 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2362 thumb_instruction_restores_sp return true.
2364 2014-07-11 Yao Qi <yao@codesourcery.com>
2366 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2367 (thumb_in_function_epilogue_p): Call
2368 thumb_instruction_restores_sp.
2370 2014-07-11 Yao Qi <yao@codesourcery.com>
2372 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2374 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2376 2014-07-11 Gary Benson <gbenson@redhat.com>
2378 * amd64-linux-nat.c (gdbcore.h): Remove include.
2379 (regset.h): Likewise.
2380 (nat/linux-btrace.h): Likewise.
2381 (btrace.h): Likewise.
2382 (gdb_assert.h): Likewise.
2383 (string.h): Likewise.
2384 (sys/uio.h): Likewise.
2385 (sys/debugreg.h): Likewise.
2386 (sys/syscall.h): Likewise.
2387 (sys/procfs.h): Likewise.
2388 (sys/user.h): Likewise.
2389 (asm/ptrace.h): Likewise.
2390 (i386-nat.h): Likewise.
2391 * i386-linux-nat.c (i386-nat.h): Likewise.
2392 (regset.h): Likewise.
2393 (target.h): Likewise.
2394 (linux-nat.h): Likewise.
2395 (nat/linux-btrace.h): Likewise.
2396 (btrace.h): Likewise.
2397 (gdb_assert.h): Likewise.
2398 (string.h): Likewise.
2399 (sys/uio.h): Likewise.
2400 (sys/user.h): Likewise.
2401 (sys/procfs.h): Likewise.
2402 (sys/reg.h): Likewise.
2403 (sys/debugreg.h): Likewise.
2404 (ORIG_EAX): Remove definition.
2406 2014-07-11 Gary Benson <gbenson@redhat.com>
2408 * i386-linux-nat.h: New file.
2409 * x86-linux-nat.h: Likewise.
2410 * x86-linux-nat.c: Likewise.
2411 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2412 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2413 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2414 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2415 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2416 (PTRACE_SETREGSET): Likewise.
2417 (arch_lwp_info): Now in x86-linux-nat.c.
2418 (have_ptrace_getregset): Now in x86-linux-nat.h.
2419 (x86_linux_dr_get): Now in x86-linux-nat.c.
2420 (x86_linux_dr_set): Likewise.
2421 (x86_linux_dr_get_addr): Likewise.
2422 (x86_linux_dr_get_control): Likewise.
2423 (x86_linux_dr_get_status): Likewise.
2424 (update_debug_registers_callback): Likewise.
2425 (x86_linux_dr_set_control): Likewise.
2426 (x86_linux_dr_set_addr): Likewise.
2427 (x86_linux_prepare_to_resume): Likewise.
2428 (x86_linux_new_thread): Likewise.
2429 (x86_linux_new_fork): Likewise.
2430 (x86_linux_get_thread_area): Likewise.
2431 (super_post_startup_inferior): Likewise.
2432 (x86_linux_child_post_startup_inferior): Likewise.
2433 (AMD64_LINUX_USER64_CS): Likewise.
2434 (AMD64_LINUX_X32_DS): Likewise.
2435 (x86_linux_read_description): Likewise.
2436 (x86_linux_enable_btrace): Likewise.
2437 (x86_linux_disable_btrace): Likewise.
2438 (x86_linux_teardown_btrace): Likewise.
2439 (x86_linux_read_btrace): Likewise.
2440 (x86_linux_create_target): Likewise.
2441 (x86_linux_add_target): Likewise.
2442 * i386-linux-nat.c (x86-linux-nat.h): New include.
2443 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2444 (PTRACE_SETREGSET): Likewise.
2445 (arch_lwp_info): Now in x86-linux-nat.c.
2446 (have_ptrace_getregset): Now in x86-linux-nat.h.
2447 (x86_linux_dr_get): Now in x86-linux-nat.c.
2448 (x86_linux_dr_set): Likewise.
2449 (x86_linux_dr_get_addr): Likewise.
2450 (x86_linux_dr_get_control): Likewise.
2451 (x86_linux_dr_get_status): Likewise.
2452 (update_debug_registers_callback): Likewise.
2453 (x86_linux_dr_set_control): Likewise.
2454 (x86_linux_dr_set_addr): Likewise.
2455 (x86_linux_prepare_to_resume): Likewise.
2456 (x86_linux_new_thread): Likewise.
2457 (x86_linux_new_fork): Likewise.
2458 (x86_linux_get_thread_area): Likewise.
2459 (super_post_startup_inferior): Likewise.
2460 (x86_linux_child_post_startup_inferior): Likewise.
2461 (AMD64_LINUX_USER64_CS): Likewise.
2462 (AMD64_LINUX_X32_DS): Likewise.
2463 (x86_linux_read_description): Likewise.
2464 (x86_linux_enable_btrace): Likewise.
2465 (x86_linux_disable_btrace): Likewise.
2466 (x86_linux_teardown_btrace): Likewise.
2467 (x86_linux_read_btrace): Likewise.
2468 (x86_linux_create_target): Likewise.
2469 (x86_linux_add_target): Likewise.
2471 2014-07-11 Gary Benson <gbenson@redhat.com>
2473 * amd64-linux-nat.c: Comment and whitespace changes.
2474 * i386-linux-nat.c: Comment and whitespace changes.
2476 2014-07-11 Gary Benson <gbenson@redhat.com>
2478 * amd64-linux-nat.c (x86_linux_create_target): New function.
2479 (x86_linux_add_target): Likewise.
2480 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2481 * i386-linux-nat.c (x86_linux_create_target): New function.
2482 (x86_linux_add_target): Likewise.
2483 (_initialize_i386_linux_nat): Delegate to the above new functions.
2485 2014-07-11 Gary Benson <gbenson@redhat.com>
2487 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2488 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2489 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2490 (ps_get_thread_area): Delegate to the above.
2492 2014-07-11 Gary Benson <gbenson@redhat.com>
2494 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2495 x86_linux_read_description. All uses updated. amd64-specific
2496 code conditionalized. Conditionalized i386-specific code added.
2497 Redundant cast removed.
2498 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2499 x86_linux_read_description. All uses updated. i386-specific
2500 code conditionalized. Conditionalized amd64-specific code added.
2501 One sizeof replaced with the actual type it is describing.
2503 2014-07-11 Gary Benson <gbenson@redhat.com>
2505 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2506 x86_linux_dr_get. All uses updated.
2507 (amd64_linux_dr_set): Renamed to
2508 x86_linux_dr_set. All uses updated.
2509 (amd64_linux_dr_get_addr): Renamed to
2510 x86_linux_dr_get_addr. All uses updated.
2511 (amd64_linux_dr_get_control): Renamed to
2512 x86_linux_dr_get_control. All uses updated.
2513 (amd64_linux_dr_get_status): Renamed to
2514 x86_linux_dr_get_status. All uses updated.
2515 (amd64_linux_dr_set_control): Renamed to
2516 x86_linux_dr_set_control. All uses updated.
2517 (amd64_linux_dr_set_addr): Renamed to
2518 x86_linux_dr_set_addr. All uses updated.
2519 (amd64_linux_prepare_to_resume): Renamed to
2520 x86_linux_prepare_to_resume. All uses updated.
2521 (amd64_linux_new_thread): Renamed to
2522 x86_linux_new_thread. All uses updated.
2523 (amd64_linux_new_fork): Renamed to
2524 x86_linux_new_fork. All uses updated.
2525 (amd64_linux_child_post_startup_inferior): Renamed to
2526 x86_linux_child_post_startup_inferior. All uses updated.
2527 (amd64_linux_enable_btrace): Renamed to
2528 x86_linux_enable_btrace. All uses updated.
2529 (amd64_linux_disable_btrace): Renamed to
2530 x86_linux_disable_btrace. All uses updated.
2531 (amd64_linux_teardown_btrace): Renamed to
2532 x86_linux_teardown_btrace. All uses updated.
2533 (amd64_linux_read_btrace): Renamed to
2534 x86_linux_read_btrace. All uses updated.
2535 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2536 x86_linux_dr_get. All uses updated.
2537 (i386_linux_dr_set): Renamed to
2538 x86_linux_dr_set. All uses updated.
2539 (i386_linux_dr_get_addr): Renamed to
2540 x86_linux_dr_get_addr. All uses updated.
2541 (i386_linux_dr_get_control): Renamed to
2542 x86_linux_dr_get_control. All uses updated.
2543 (i386_linux_dr_get_status): Renamed to
2544 x86_linux_dr_get_status. All uses updated.
2545 (i386_linux_dr_set_control): Renamed to
2546 x86_linux_dr_set_control. All uses updated.
2547 (i386_linux_dr_set_addr): Renamed to
2548 x86_linux_dr_set_addr. All uses updated.
2549 (i386_linux_prepare_to_resume): Renamed to
2550 x86_linux_prepare_to_resume. All uses updated.
2551 (i386_linux_new_thread): Renamed to
2552 x86_linux_new_thread. All uses updated.
2553 (i386_linux_new_fork): Renamed to
2554 x86_linux_new_fork. All uses updated.
2555 (i386_linux_child_post_startup_inferior): Renamed to
2556 x86_linux_child_post_startup_inferior. All uses updated.
2557 (i386_linux_enable_btrace): Renamed to
2558 x86_linux_enable_btrace. All uses updated.
2559 (i386_linux_disable_btrace): Renamed to
2560 x86_linux_disable_btrace. All uses updated.
2561 (i386_linux_teardown_btrace): Renamed to
2562 x86_linux_teardown_btrace. All uses updated.
2563 (i386_linux_read_btrace): Renamed to
2564 x86_linux_read_btrace. All uses updated.
2566 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2568 * remote.c (extended_remote_post_attach): New function.
2569 (init_extended_remote_ops): Install it as to_post_attach method.
2571 2014-07-09 Pedro Alves <palves@redhat.com>
2573 * infcmd.c (attach_command_post_wait): Don't call
2574 target_terminal_inferior here.
2575 (attach_command): Call it here instead.
2577 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2579 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2581 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2582 from varobj.c, with additional checks.
2583 (c_varobj_ops): Fill in is_path_expr_parent field.
2584 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2585 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2587 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2589 (varobj_default_is_path_expr_parent): New function.
2590 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2591 (varobj_default_is_path_expr_parent): Declare new function.
2593 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2595 * infcmd.c (finish_backward): Turn internal error into normal error.
2597 2014-07-07 Pedro Alves <palves@redhat.com>
2600 * remote.c (async_handle_remote_sigint)
2601 (async_handle_remote_sigint_twice): Call
2602 gdb_call_async_signal_handler instead of
2603 mark_async_signal_handler.
2605 2014-07-07 Tom Tromey <tromey@redhat.com>
2607 * target-delegates.c: Rebuild.
2608 * target.c (target_info_record): Remove.
2609 * record.c (info_record_command): Unconditionally call
2611 * target.h (struct target_ops) <to_info_record>: Use
2612 TARGET_DEFAULT_IGNORE.
2613 (target_info_record): Remove.
2615 2014-07-07 Tom Tromey <tromey@redhat.com>
2617 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2618 TARGET_DEFAULT_NORETURN.
2619 * target.c (generic_tls_error): New function.
2620 (target_translate_tls_address): Don't search target stack.
2621 * target-delegates.c: Rebuild.
2622 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2624 * linux-thread-db.c (thread_db_get_thread_local_address):
2625 Unconditionally call beneath target.
2627 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2629 * cli/cli-logging.c (pop_output_files): Assign targerr to
2632 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2634 * MAINTAINERS (Write After Approval): Update my email address.
2636 2014-07-02 Gary Benson <gbenson@redhat.com>
2638 * proc-service.c (ps_xfer_memory): Update comment.
2639 (ps_pstop): Remove unused function.
2640 (ps_pcontinue): Likewise.
2641 (ps_lstop): Likewise.
2642 (ps_lcontinue): Likewise.
2643 (ps_lgetxregsize): Likewise.
2644 (ps_lgetxregs): Likewise.
2645 (ps_lsetxregs): Likewise.
2646 (ps_plog): Likewise.
2647 (ps_ptread): Likewise.
2648 (ps_ptwrite): Likewise.
2650 2014-07-01 Mark Wielaard <mjw@redhat.com>
2652 * dwarf2read.c (add_array_cv_type): New function.
2653 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2654 (read_tag_volatile_type): Likewise.
2656 2014-07-01 Tom Tromey <tromey@redhat.com>
2658 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2659 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2660 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2661 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2662 * command.h (cmd_cfunc_ftype): Move earlier.
2663 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2664 (add_com, add_info): Use cmd_cfunc_ftype.
2666 2014-06-30 Tom Tromey <tromey@redhat.com>
2668 * symtab.c (operator_chars): Make parameters and return type
2670 (file_matches): Make "files" const.
2671 (struct search_symbols_data) <files>: Now const.
2672 (search_symbols): Make "regexp" and "files" parameters const.
2674 (symtab_symbol_info): Remove cast.
2675 (rbreak_command): Update.
2676 * symtab.h (search_symbols): Update.
2678 2014-06-27 Yao Qi <yao@codesourcery.com>
2680 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2681 Change parameter type to 'struct thread_info *'. Caller
2683 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2685 * dummy-frame.c (struct dummy_frame_id): New.
2686 (dummy_frame_id_eq): New function.
2687 (struct dummy_frame) <id>: Change its type to 'struct
2689 (dummy_frame_push): Add parameter ptid and save it in
2691 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2693 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2695 (lookup_dummy_frame): Change parameter type to 'struct
2696 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2697 instead of frame_id_eq.
2698 (dummy_frame_pop): Add parameter ptid. Callers updated.
2699 Update comments. Compose dummy_frame_id and pass it to
2701 (dummy_frame_discard): Add parameter ptid.
2702 (dummy_frame_sniffer): Compose dummy_frame_id and call
2703 dummy_frame_id_eq instead of frame_id_eq.
2704 (fprint_dummy_frames): Print ptid.
2705 * dummy-frame.h: Remove comments.
2706 (dummy_frame_push): Add ptid in declaration.
2707 (dummy_frame_pop, dummy_frame_discard): Likewise.
2709 2014-06-26 Tom Tromey <tromey@redhat.com>
2711 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2712 * command.h (error_no_arg): Update.
2714 2014-06-26 Tom Tromey <tromey@redhat.com>
2716 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2717 (do_show_command): Make "arg" const.
2718 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2720 2014-06-26 Tom Tromey <tromey@redhat.com>
2722 * record-full.c (record_full_get_bookmark): Make "args" const.
2723 (record_full_goto_bookmark): Make "raw_bookmark" const.
2724 * record.c (record_goto): New function.
2725 (cmd_record_goto): Use it. Now static.
2726 * record.h (record_goto): Declare.
2727 (cmd_record_goto): Remove declaration.
2728 * target-delegates.c: Rebuild.
2729 * target.h (struct target_ops) <to_get_bookmark,
2730 to_goto_bookmark>: Make parameter const.
2732 2014-06-26 Tom Tromey <tromey@redhat.com>
2734 * defs.h (generic_load): Update.
2735 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2736 * monitor.c (monitor_load): Make "args" const.
2737 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2738 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2740 (mips_load): Make "file" const.
2741 * remote-sim.c (gdbsim_load): Make "args" const.
2742 * remote.c (remote_load): Make "name" const.
2743 * symfile.c (generic_load): Make "args" const.
2744 * target-delegates.c: Rebuild.
2745 * target.c (target_load): Make "arg" const.
2746 (debug_to_load): Make "args" const.
2747 * target.h (struct target_ops) <to_load>: Make parameter const.
2748 (target_load): Update.
2750 2014-06-26 Tom Tromey <tromey@redhat.com>
2753 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2754 (dwarf2_physname, read_partial_die)
2755 (guess_partial_die_structure_name, fixup_partial_die)
2756 (guess_full_die_structure_name, anonymous_struct_prefix)
2757 (dwarf2_name): Use per-BFD obstack.
2759 2014-06-26 Yao Qi <yao@codesourcery.com>
2761 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2762 dummyframe and this_id into inner block below.
2764 2014-06-26 Yao Qi <yao@codesourcery.com>
2766 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2767 with "signal_pass[0]" in the initialization of signal_pass.
2769 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2771 * record-btrace.c (record_btrace_generating_corefile)
2772 (record_btrace_prepare_to_generate_core)
2773 (record_btrace_done_generating_core): New.
2774 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2775 (record_btrace_store_registers, record_btrace_prepare_to_store):
2776 Forward request when generating a core file.
2777 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2778 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2779 to_done_generating_core.
2781 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2783 * target.h (target_ops) <to_prepare_to_generate_core>
2784 <to_done_generating_core>: New.
2785 (target_prepare_to_generate_core, target_done_generating_core): New.
2786 * target.c (target_prepare_to_generate_core)
2787 (target_done_generating_core): New.
2788 * target-delegates.c: Regenerate.
2789 * gcore.c: (write_gcore_file): Rename to ...
2790 (write_gcore_file_1): ...this.
2791 (write_gcore_file): Call target_prepare_to_generate_core
2792 and target_done_generating_core.
2794 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2796 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2797 * gcore.c (write_gcore_file): Free memory returned from
2798 make_corefile_notes.
2799 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2800 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2802 2014-06-24 Yao Qi <yao@codesourcery.com>
2804 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2805 (arm_linux_init_abi): Set skip_trampoline_code with
2806 gdbarch_skip_trampoline_code instead of
2807 find_solib_trampoline_target.
2809 2014-06-24 Yao Qi <yao@codesourcery.com>
2811 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2812 arm_skip_bx_reg returns non-zero.
2814 2014-06-24 Yao Qi <yao@codesourcery.com>
2816 * arm-tdep.c (arm_skip_bx_reg): New function.
2817 (arm_skip_stub): Call arm_skip_bx_reg.
2819 2014-06-23 Don Breazeal <donb@codesourcery.com>
2821 * MAINTAINERS: Add myself as write-after-approval maintainer.
2823 2014-06-23 Pedro Alves <palves@redhat.com>
2825 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2826 DR_CONTROL before setting DR0..DR3.
2827 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2828 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2829 bits of DR_CONTROL related to the debug register slot being
2830 disabled. If all slots are vacant, clear local slowdown as well,
2831 and assert DR_CONTROL is 0.
2833 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2835 * python/lib/gdb/command/xmethods.py
2836 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2837 current progspace only if the string "progspace" matches LOCUS_RE.
2839 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2841 Fix --with-system-readline with readline-6.3 patch 5.
2842 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2843 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2846 2014-06-20 Tom Tromey <tromey@redhat.com>
2848 * dwarf2read.c (dw2_get_real_path): Use correct type in
2850 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2852 2014-06-20 Gary Benson <gbenson@redhat.com>
2854 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2855 * common/glibc_thread_db.h: Likewise.
2856 * common/i386-cpuid.h: Likewise.
2857 * common/i386-gcc-cpuid.h: Likewise.
2858 * common/linux-btrace.h: Likewise.
2859 * common/linux-osdata.h: Likewise.
2860 * common/linux-procfs.h: Likewise.
2861 * common/linux-ptrace.h: Likewise.
2862 * common/mips-linux-watch.h: Likewise.
2863 * common/linux-btrace.c: Moved to nat.
2864 * common/linux-osdata.c: Likewise.
2865 * common/linux-procfs.c: Likewise.
2866 * common/linux-ptrace.c: Likewise.
2867 * common/mips-linux-watch.c: Likewise.
2868 * nat/gdb_thread_db.h: Moved from common.
2869 * nat/glibc_thread_db.h: Likewise.
2870 * nat/i386-cpuid.h: Likewise.
2871 * nat/i386-gcc-cpuid.h: Likewise.
2872 * nat/linux-btrace.c: Likewise.
2873 * nat/linux-btrace.h: Likewise.
2874 * nat/linux-osdata.c: Likewise.
2875 * nat/linux-osdata.h: Likewise.
2876 * nat/linux-procfs.c: Likewise.
2877 * nat/linux-procfs.h: Likewise.
2878 * nat/linux-ptrace.c: Likewise.
2879 * nat/linux-ptrace.h: Likewise.
2880 * nat/mips-linux-watch.c: Likewise.
2881 * nat/mips-linux-watch.h: Likewise.
2882 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2883 (object file files): Reordered.
2884 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2885 of glibc_thread_db.h.
2887 2014-06-20 Gary Benson <gbenson@redhat.com>
2889 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2890 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2891 (i386_dr_low): Likewise.
2892 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2893 (i386_dr_low_set_addr): Likewise.
2894 (i386_dr_low_get_addr): Likewise.
2895 (i386_dr_low_can_set_control): Likewise.
2896 (i386_dr_low_set_control): Likewise.
2897 (i386_dr_low_get_control): Likewise.
2898 (i386_dr_low_get_status): Likewise.
2899 (i386_get_debug_register_length): Likewise.
2900 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2901 (i386_dr_low): Likewise.
2902 * nat/i386-dregs.c (i386-low.h): Remove include.
2903 (i386-nat.h): Likewise.
2904 (nat/i386-dregs.h): New include.
2905 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2906 (i386_dr_low_set_addr): Likewise.
2907 (i386_dr_low_get_addr): Likewise.
2908 (i386_dr_low_can_set_control): Likewise.
2909 (i386_dr_low_set_control): Likewise.
2910 (i386_dr_low_get_control): Likewise.
2911 (i386_dr_low_get_status): Likewise.
2912 (i386_get_debug_register_length): Likewise.
2913 (debug_hw_points): Likewise.
2915 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2917 * Makefile.in (SFILES): Add d-exp.y.
2918 (YYFILES): Add d-exp.c.
2919 (YYOBJ): Add d-exp.o.
2920 (local-maintainer-clean): Delete d-exp.c.
2921 * d-exp.y: New file.
2922 * d-lang.h (d_parse): New declaration.
2923 (d_error): New declaration.
2924 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2925 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2926 PREC_ORDER operators.
2927 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2929 2014-06-19 Yao Qi <yao@codesourcery.com>
2931 * gdbthread.h (any_running): Remove the declaration.
2932 * thread.c (any_running): Remove.
2934 2014-06-19 Yao Qi <yao@codesourcery.com>
2936 * gdbthread.h (struct thread_info) <state>: Change its type to
2937 'enum thread_state'. Update comments.
2939 2014-06-19 Pedro Alves <palves@redhat.com>
2941 * gdbthread.h (ALL_THREADS): Delete.
2942 (ALL_NON_EXITED_THREADS): New macro.
2943 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2944 instead of ALL_THREADS.
2945 * infrun.c (find_thread_needs_step_over)
2946 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2947 instead of ALL_THREADS.
2948 * record-btrace.c (record_btrace_open)
2949 (record_btrace_stop_recording, record_btrace_close)
2950 (record_btrace_is_replaying, record_btrace_resume)
2951 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2952 * remote.c (append_pending_thread_resumptions): Likewise.
2953 * thread.c (thread_apply_all_command): Likewise.
2955 2014-06-19 Gary Benson <gbenson@redhat.com>
2957 * i386-nat.c (i386_stopped_by_watchpoint):
2958 Use i386_dr_stopped_by_watchpoint.
2959 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2960 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2962 2014-06-19 Gary Benson <gbenson@redhat.com>
2964 * nat/i386-dregs.c: New file.
2965 * Makefile.in (i386-dregs.o): New rule.
2966 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2967 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2968 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2969 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2970 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2971 * config/i386/go32.mh (NATDEPFILES): Likewise.
2972 * config/i386/linux.mh (NATDEPFILES): Likewise.
2973 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2974 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2975 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2976 * i386-nat.h (debug_hw_points): New declaration.
2977 * i386-nat.c (breakpoint.h): Remove include.
2978 (command.h): Likewise.
2979 (target.h): Likewise.
2980 (gdb_assert.h): Likewise.
2981 (debug_hw_points): Made nonstatic.
2982 (debug_printf): Now in i386-dregs.c.
2983 (TARGET_HAS_DR_LEN_8): Likewise.
2984 (DR_CONTROL_SHIFT): Likewise.
2985 (DR_CONTROL_SIZE): Likewise.
2986 (DR_RW_EXECUTE): Likewise.
2987 (DR_RW_WRITE): Likewise.
2988 (DR_RW_READ): Likewise.
2989 (DR_RW_IORW): Likewise.
2990 (DR_LEN_1): Likewise.
2991 (DR_LEN_2): Likewise.
2992 (DR_LEN_4): Likewise.
2993 (DR_LEN_8): Likewise.
2994 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2995 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2996 (DR_ENABLE_SIZE): Likewise.
2997 (DR_LOCAL_SLOWDOWN): Likewise.
2998 (DR_GLOBAL_SLOWDOWN): Likewise.
2999 (DR_CONTROL_RESERVED): Likewise.
3000 (I386_DR_CONTROL_MASK): Likewise.
3001 (I386_DR_VACANT): Likewise.
3002 (I386_DR_LOCAL_ENABLE): Likewise.
3003 (I386_DR_GLOBAL_ENABLE): Likewise.
3004 (I386_DR_DISABLE): Likewise.
3005 (I386_DR_SET_RW_LEN): Likewise.
3006 (I386_DR_GET_RW_LEN): Likewise.
3007 (I386_DR_WATCH_HIT): Likewise.
3008 (i386_wp_op_t): Likewise.
3009 (i386_show_dr): Likewise.
3010 (i386_length_and_rw_bits): Likewise.
3011 (i386_insert_aligned_watchpoint): Likewise.
3012 (i386_remove_aligned_watchpoint): Likewise.
3013 (i386_handle_nonaligned_watchpoint): Likewise.
3014 (i386_update_inferior_debug_regs): Likewise.
3015 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3016 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3017 (i386_region_ok_for_watchpoint):
3018 Use i386_dr_region_ok_for_watchpoint.
3019 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3021 2014-06-19 Gary Benson <gbenson@redhat.com>
3023 * i386-nat.c (i386_insert_hw_breakpoint): Use
3024 i386_insert_watchpoint.
3025 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3027 2014-06-19 Gary Benson <gbenson@redhat.com>
3029 * i386-nat.c (i386_dr_show): Renamed to
3030 i386_show_dr and made static. All uses updated.
3031 (i386_dr_length_and_rw_bits): Renamed to
3032 i386_length_and_rw_bits and made static.
3034 (i386_dr_insert_aligned_watchpoint): Renamed to
3035 i386_insert_aligned_watchpoint and made static.
3037 (i386_dr_remove_aligned_watchpoint): Renamed to
3038 i386_remove_aligned_watchpoint and made static.
3040 (i386_dr_update_inferior_debug_regs): Renamed to
3041 i386_update_inferior_debug_regs and made static.
3043 * nat/i386-dregs.h (i386_dr_show): Removed.
3044 (i386_dr_length_and_rw_bits): Likewise.
3045 (i386_dr_insert_aligned_watchpoint): Likewise.
3046 (i386_dr_remove_aligned_watchpoint): Likewise.
3047 (i386_dr_update_inferior_debug_regs): Likewise.
3049 2014-06-19 Gary Benson <gbenson@redhat.com>
3051 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3052 * configure: Regenerate.
3053 * config.in: Likewise.
3054 * main.c (signal.h): New include.
3055 (setup_alternate_signal_stack): New function.
3056 (captured_main): Call the above.
3057 * cp-support.c (signal.h): New include.
3058 (catch_demangler_crashes): New flag.
3059 (SIGJMP_BUF): New define.
3060 (SIGSETJMP): Likewise.
3061 (SIGLONGJMP): Likewise.
3062 (gdb_demangle_jmp_buf): New static global.
3063 (gdb_demangle_attempt_core_dump): Likewise.
3064 (gdb_demangle_signal_handler): New function.
3065 (gdb_demangle): If catch_demangler_crashes is set, install the
3066 above signal handler before calling bfd_demangle, and restore
3067 the original signal handler afterwards. Display the offending
3068 symbol and call demangler_warning the first time a segmentation
3070 (_initialize_cp_support): New maint set/show command.
3072 2014-06-19 Gary Benson <gbenson@redhat.com>
3074 * utils.h (resource_limit_kind): New enum.
3075 (can_dump_core): New declaration.
3076 (warn_cant_dump_core): Likewise.
3077 (dump_core): Likewise.
3078 * utils.c (dump_core): Made nonstatic. Added new
3079 parameter "limit_kind".
3080 (can_dump_core): Made nonstatic. Moved printing code to...
3081 (warn_cant_dump_core): New function.
3082 (can_dump_core_warn): Likewise.
3083 (internal_vproblem): Replace calls to can_dump_core with
3084 calls to can_dump_core_warn. Supply new argument to each.
3086 2014-06-19 Gary Benson <gbenson@redhat.com>
3088 * utils.h (demangler_vwarning): New declaration.
3089 (demangler_warning): Likewise.
3090 * utils.c (struct internal_problem)
3091 <user_settable_should_quit>: New field.
3092 <user_settable_should_dump_core>: Likewise
3093 (internal_error_problem): Add values for above new fields.
3094 (internal_warning_problem): Likewise.
3095 (demangler_warning_problem): New static global.
3096 (demangler_vwarning): New function.
3097 (demangler_warning): Likewise.
3098 (add_internal_problem_command): Selectively add commands.
3099 (_initialize_utils): New internal problem command.
3100 * maint.c (maintenance_demangler_warning): New function.
3101 (_initialize_maint_cmds): New command.
3103 2014-06-18 Tom Tromey <tromey@redhat.com>
3105 * f-valprint.c (info_common_command_for_block): Update.
3106 * symtab.h (struct general_symbol_info) <common_block>: Now
3109 2014-06-18 Tom Tromey <tromey@redhat.com>
3111 * symtab.h (struct symtab) <blockvector>: Now const.
3112 * ada-lang.c (ada_add_global_exceptions): Update.
3113 * buildsym.c (augment_type_symtab): Update.
3114 * dwarf2read.c (dw2_lookup_symbol): Update.
3115 * jit.c (finalize_symtab): Update.
3116 * jv-lang.c (add_class_symtab_symbol): Update.
3117 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3119 * objfiles.c (objfile_relocate1): Update.
3120 * psymtab.c (lookup_symbol_aux_psymtabs)
3121 (maintenance_check_psymtabs): Update.
3122 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3124 * spu-tdep.c (spu_catch_start): Update.
3125 * symmisc.c (dump_symtab_1): Update.
3126 * symtab.c (lookup_global_symbol_from_objfile)
3127 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3128 (basic_lookup_transparent_type_quick)
3129 (basic_lookup_transparent_type, find_pc_sect_symtab)
3130 (find_pc_sect_line, search_symbols): Update.
3131 * block.c (find_block_in_blockvector): Make "bl" const.
3132 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3134 (blockvector_contains_pc): Make "bv" const.
3135 (block_for_pc_sect): Update.
3136 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3137 (blockvector_contains_pc): Update.
3138 * breakpoint.c (resolve_sal_pc): Update.
3139 * inline-frame.c (block_starting_point_at): Update.
3141 2014-06-18 Tom Tromey <tromey@redhat.com>
3143 * completer.c (complete_line): Make "line_buffer" const.
3144 * completer.h (complete_line): Update.
3146 2014-06-18 Tom Tromey <tromey@redhat.com>
3148 * symtab.c (add_macro_name): Remove unneeded cast.
3150 2014-06-18 Tom Tromey <tromey@redhat.com>
3152 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3153 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3155 2014-06-18 Tom Tromey <tromey@redhat.com>
3157 * probe.c (info_probes_for_ops): Make "arg" const.
3158 * probe.h (info_probes_for_ops): Update.
3160 2014-06-18 Tom Tromey <tromey@redhat.com>
3162 * varobj.c (varobj_create): Update.
3163 * valops.c (value_of_this): Update.
3164 * tracepoint.c (add_local_symbols, scope_info): Update.
3165 * symtab.h (struct general_symbol_info) <block>: Now const.
3166 * symtab.c (skip_prologue_sal)
3167 (default_make_symbol_completion_list_break_on)
3168 (skip_prologue_using_sal): Update.
3169 * stack.h (iterate_over_block_locals)
3170 (iterate_over_block_local_vars): Update.
3171 * stack.c (print_frame_args): Update.
3172 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3174 (get_selected_block): Make return type const.
3175 * python/py-frame.c (frapy_block): Update.
3176 * python/py-block.c (gdbpy_block_for_pc): Update.
3177 * p-exp.y (%union) <bval>: Now const.
3178 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3179 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3180 * m2-exp.y (%union) <bval>: Now const.
3181 * linespec.c (get_current_search_block): Make return type const.
3182 (create_sals_line_offset, find_label_symbols): Update.
3183 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3185 (block_starting_point_at): Make "block" const.
3186 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3187 (check_exception_resume): Update.
3188 * guile/scm-frame.c (gdbscm_frame_block): Update.
3189 * guile/scm-block.c (gdbscm_lookup_block): Update.
3190 * frame.h (get_frame_block): Update.
3191 (get_selected_block): Make return type const.
3192 * frame.c (frame_id_inner): Update.
3193 * f-valprint.c (info_common_command_for_block)
3194 (info_common_command): Update.
3195 * dwarf2loc.c (dwarf2_find_location_expression)
3196 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3197 (locexpr_describe_location_piece): Update.
3198 * c-exp.y (%union) <bval>: Now const.
3199 * breakpoint.c (resolve_sal_pc): Update.
3200 * blockframe.c (get_frame_block):Make return type const.
3201 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3202 (block_innermost_frame): Update.
3203 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3204 (block_for_pc, block_for_pc_sect): Update.
3205 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3207 (block_for_pc_sect, block_for_pc): Make return type const.
3208 * ax-gdb.c (gen_expr): Update.
3209 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3210 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3211 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3212 (ada_read_var_value): Update.
3213 * ada-exp.y (struct name_info) <block>: Now const.
3215 (block_lookup): Constify.
3217 2014-06-18 Gary Benson <gbenson@redhat.com>
3219 * nat/i386-dregs.h: New file.
3220 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3221 * i386-nat.h (i386-dregs.h): New include.
3222 (DR_FIRSTADDR): Now in i386-dregs.h.
3223 (DR_LASTADDR): Likewise.
3224 (DR_NADDR): Likewise.
3225 (DR_STATUS): Likewise.
3226 (DR_CONTROL): Likewise.
3227 (i386_debug_reg_state): Likewise.
3228 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3230 2014-06-18 Don Breazeal <donb@codesourcery.com>
3232 * breakpoint.c (set_longjmp_breakpoint): Call
3233 momentary_breakpoint_from_master with additional argument.
3234 (set_longjmp_breakpoint_for_call_dummy): Call
3235 momentary_breakpoint_from_master with additional argument.
3236 (set_std_terminate_breakpoint): Call
3237 momentary_breakpoint_from_master with additional argument.
3238 (momentary_breakpoint_from_master): Add argument to function
3239 definition and use it to initialize structure member flag.
3240 (clone_momentary_breakpoint): Call
3241 momentary_breakpoint_from_master with additional argument.
3242 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3243 member flags set in momentary_breakpoint_from_master.
3245 2014-06-18 Gary Benson <gbenson@redhat.com>
3247 * i386-nat.c (i386_show_dr): Renamed to
3248 i386_dr_show and made nonstatic. All uses updated.
3249 (i386_length_and_rw_bits): Renamed to
3250 i386_dr_length_and_rw_bits and made nonstatic.
3252 (i386_insert_aligned_watchpoint): Renamed to
3253 i386_dr_insert_aligned_watchpoint and made nonstatic.
3255 (i386_remove_aligned_watchpoint): Renamed to
3256 i386_dr_remove_aligned_watchpoint and made nonstatic.
3258 (i386_update_inferior_debug_regs): Renamed to
3259 i386_dr_update_inferior_debug_regs and made nonstatic.
3262 2014-06-18 Gary Benson <gbenson@redhat.com>
3264 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3265 (i386_dr_low_can_set_control): Likewise.
3266 (i386_dr_low_set_addr): Likewise.
3267 (i386_dr_low_set_control): Likewise.
3268 (i386_dr_low_get_addr): Likewise.
3269 (i386_dr_low_get_status): Likewise.
3270 (i386_dr_low_get_control): Likewise.
3271 (i386_insert_aligned_watchpoint): Use new macros.
3272 (i386_update_inferior_debug_regs): Likewise.
3273 (i386_stopped_data_address): Likewise.
3275 2014-06-18 Gary Benson <gbenson@redhat.com>
3277 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3278 New parameter. All uses updated.
3280 2014-06-18 Gary Benson <gbenson@redhat.com>
3282 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3285 2014-06-18 Gary Benson <gbenson@redhat.com>
3287 * i386-nat.c (debug_printf): New macro.
3288 (i386_get_debug_register_length): Likewise.
3289 (TARGET_HAS_DR_LEN_8): Use above macro.
3290 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3291 and printf_unfiltered. Use phex to format values.
3293 2014-06-18 Gary Benson <gbenson@redhat.com>
3295 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3298 2014-06-18 Gary Benson <gbenson@redhat.com>
3300 * i386-nat.c: Comment changes.
3302 2014-06-18 Gary Benson <gbenson@redhat.com>
3304 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3306 2014-06-18 Gary Benson <gbenson@redhat.com>
3308 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3309 (i386_insert_aligned_watchpoint): Likewise.
3310 (i386_remove_aligned_watchpoint): Likewise.
3311 (i386_handle_nonaligned_watchpoint): Likewise.
3313 2014-06-18 Gary Benson <gbenson@redhat.com>
3315 * i386-nat.c: Whitespace changes.
3317 2014-06-17 Samuel Bronson <naesten@gmail.com>
3319 * MAINTAINERS: Update Roland McGrath's email address.
3320 Thanks to Sergio Durigan Junior for pointing out that he left
3321 Red Hat a while ago, and giving me a current address.
3323 2014-06-17 Tom Tromey <tromey@redhat.com>
3325 * utils.h (savestring): Remove declaration.
3327 2014-06-17 Tom Tromey <tromey@redhat.com>
3329 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3331 2014-06-16 Keith Seitz <keiths@redhat.com>
3334 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3335 to update the varobj if inferior_ptid is null_ptid.
3337 2014-06-16 Tom Tromey <tromey@redhat.com>
3339 * target.h (struct target_ops) <to_info_proc>: Make parameter
3341 (target_info_proc): Update.
3342 * target.c (target_info_proc): Make "args" const.
3343 * procfs.c (procfs_info_proc): Update.
3344 * linux-tdep.c (linux_info_proc): Update.
3345 (linux_core_info_proc_mappings): Make "args" const.
3346 (linux_core_info_proc): Update.
3347 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3348 * gdbarch.c: Rebuild.
3349 * gdbarch.h: Rebuild.
3350 * corelow.c (core_info_proc): Update.
3352 2014-06-16 Tom Tromey <tromey@redhat.com>
3354 * target.h (struct target_ops) <to_disconnect>: Make parameter
3356 (target_disconnect): Update.
3357 * target.c (target_disconnect): Make "args" const.
3358 * target-delegates.c: Rebuild.
3359 * remote.c (remote_disconnect): Update.
3360 * record.h (record_disconnect): Update.
3361 * record.c (record_disconnect): Update.
3362 * inf-child.c (inf_child_disconnect): Update.
3364 2014-06-16 Tom Tromey <tromey@redhat.com>
3366 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3367 * target.c (debug_to_rcmd, default_rcmd): Update.
3368 * target-delegates.c: Rebuild.
3369 * remote.c (remote_rcmd): Update.
3370 * monitor.c (monitor_rcmd): Update.
3372 2014-06-16 Pedro Alves <palves@redhat.com>
3374 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3375 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3376 have OBJF_SHARED set.
3377 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3378 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3379 instead of OBJF_USERLOADED.
3380 * objfiles.h (OBJF_SHARED): Update comment.
3381 (userloaded_objfile_contains_address_p): Rename to ...
3382 (shared_objfile_contains_address_p): ... this, and update
3384 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3386 (remove_symbol_file_command): Skip objfiles that don't have
3389 2014-06-16 Tom Tromey <tromey@redhat.com>
3391 * minsyms.h (prim_record_minimal_symbol)
3392 (prim_record_minimal_symbol_and_info): Update comments.
3394 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3396 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3397 or --without-guile, according to how GDB was built.
3399 2014-06-13 Tom Tromey <tromey@redhat.com>
3401 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3403 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3405 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3407 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3408 help_list.Pass all_commands, not -1, to help_list.
3409 * cli/cli-dump.c (dump_command, append_command)
3410 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3411 (binary_dump_command, binary_append_command): Pass all_commands,
3412 not -1, to help_list.
3413 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3415 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3417 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3419 * top.c (set_history): Pass all_commands, not -1, to help_list.
3420 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3421 all_commands, not -1, to help_list.
3422 * symfile.c (overlay_command): Pass all_commands, not -1, to
3424 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3426 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3428 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3430 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3431 not -1, to help_list.
3432 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3433 not -1, to help_list.
3434 * maint.c (maintenance_command, maintenance_info_command)
3435 (maintenance_print_command, maintenance_set_cmd): Pass
3436 all_commands, not -1, to help_list.
3437 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3439 * language.c (set_check): Pass all_commands, not -1, to help_list.
3440 * infcmd.c (unset_command): Pass all_commands, not -1, to
3442 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3444 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3446 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3448 * breakpoint.c (save_command): Pass all_commands, not -1, to
3450 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3451 all_commands, not -1, to help_list.
3453 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3455 * regcache.c (struct register_to_invalidate): New structure.
3456 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3458 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3460 2014-06-12 Yao Qi <yao@codesourcery.com>
3462 * varobj.c (varobj_get_num_children): Call
3463 varobj_is_dynamic_p.
3464 (varobj_list_children): Likewise.
3465 (varobj_update): Likewise. Update comments.
3467 2014-06-12 Yao Qi <yao@codesourcery.com>
3469 * varobj.c (varobj_pretty_printed_p): Rename to ...
3470 (varobj_is_dynamic_p): ... this. New function.
3471 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3472 (varobj_is_dynamic_p): Declare.
3473 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3474 (mi_print_value_p, varobj_update_one): Likewise.
3476 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3477 Yao Qi <yao@codesourcery.com>
3479 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3480 (varobj_get_iterator): Wrap up code for pretty-printer by
3481 "#if HAVE_PYTHON" and "#endif".
3482 (update_dynamic_varobj_children): Likewise.
3484 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3485 Yao Qi <yao@codesourcery.com>
3487 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3488 gdb_python_initialized is false. Move some code from varobj.c.
3489 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3490 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3491 (struct varobj_item): Moved to varobj-iter.h".
3492 (varobj_clear_saved_item): New function.
3493 (update_dynamic_varobj_children): Move python-related code to
3495 (free_variable): Call varobj_clear_saved_item and
3498 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3499 Yao Qi <yao@codesourcery.com>
3501 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3502 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3503 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3504 (py-varobj.o): New rule.
3505 * python/py-varobj.c: New file.
3506 * python/python-internal.h (py_varobj_get_iterator): Declare.
3507 * varobj-iter.h: New file.
3508 * varobj.c: Include "varobj-iter.h"
3509 (struct varobj) <child_iter>: Change its type from "PyObject *"
3510 to "struct varobj_iter *".
3511 <saved_item>: Likewise.
3512 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3513 [HAVE_PYTHON] (varobj_get_iterator): New function.
3514 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3515 python-specific code to python/py-varobj.c.
3516 (install_visualizer): Call varobj_iter_delete instead of
3518 * varobj.h (varobj_ensure_python_env): Declare.
3520 2014-06-12 Yao Qi <yao@codesourcery.com>
3522 * varobj.c (struct varobj_item): New structure.
3523 (create_child_with_value): Update declaration.
3524 (varobj_add_child): Replace arguments 'name' and 'value' with
3525 'item'. All callers updated.
3526 (install_dynamic_child): Likewise.
3527 (update_dynamic_varobj_children): Likewise.
3528 (varobj_add_child): Likewise.
3529 (create_child_with_value): Likewise.
3531 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3533 * NEWS: Create a new section for the next release branch.
3534 Rename the section of the current branch, now that it has
3537 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3539 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3540 * version.in: Bump version to 7.8.50.DATE-cvs.
3542 2014-06-11 Pedro Alves <palves@redhat.com>
3545 * ser-mingw.c (net_windows_socket_check_pending): New function.
3546 (net_windows_select_thread): Ignore spurious wakeups. Use
3547 net_windows_socket_check_pending.
3548 (net_windows_wait_handle): Check for pending events with
3549 ioctlsocket, through net_windows_socket_check_pending, instead of
3550 checking the socket's event.
3552 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3554 * python/python-internal.h (gdb_PyObject_GetAttrString)
3555 (gdb_PyObject_HasAttrString): New inline function definitions.
3556 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3557 char * of the second argument to PyObject_GetAttrString.
3559 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3561 * serial.c (serial_write): Fix index of character to be printed
3562 in call to serial_logchar when serial debug traces are enabled.
3564 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3566 * gdbtypes (resolve_dynamic_range): Add function description.
3568 2014-06-09 Pedro Alves <palves@redhat.com>
3570 * linux-nat.c (linux_child_follow_fork): Initialize status with
3571 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3572 inner block. Only pass the signal to PTRACE_DETACH if in pass
3575 2014-06-09 Gary Benson <gbenson@redhat.com>
3577 * common/signals.c (gdb_signal_from_host): Reorder to separate
3578 the always-available ANSI-standard signals from the signals that
3580 (do_gdb_signal_to_host): Likewise.
3581 * proc-events.c (signal_table): Likewise.
3583 2014-06-08 Hui Zhu <hui@codesourcery.com>
3585 * common/linux-ptrace.c (linux_disable_event_reporting): New
3587 * common/linux-ptrace.h (linux_disable_event_reporting): New
3589 * linux-nat.c (linux_child_follow_fork): Do a single step before
3592 2014-06-07 Keith Seitz <keiths@redhat.com>
3596 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3597 from symbol_matches_domain in symtab.c. All local callers
3598 of symbol_matches_domain updated.
3599 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3600 search STRUCT_DOMAIN.
3601 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3602 independently. standard_lookup will do that automatically.
3603 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3604 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3605 (cp_lookup_symbol_in_namespace): Likewise.
3606 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3607 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3608 may return a STRUCT_DOMAIN match.
3609 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3610 * cp-support.c: Include language.h.
3611 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3613 * psymtab.c (match_partial_symbol): Compare the requested
3614 domain with the symbol's domain directly.
3615 (lookup_partial_symbol): Likewise.
3616 * symtab.c (lookup_symbol_in_language): Explain when/why
3617 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3618 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3619 appropriate languages.
3620 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3621 and moved to ada-lang.c
3622 (lookup_block_symbol): Explain that this function only returns
3623 symbol matching the requested DOMAIN.
3624 Compare the requested domain with the symbol's domain directly.
3625 (iterate_over_symbols): Compare the requested domain with the
3626 symbol's domain directly.
3627 * symtab.h (symbol_matches_domain): Remove.
3629 2014-06-06 Doug Evans <xdje42@gmail.com>
3631 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3632 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3633 (gdbscm_guile_version_is_at_least): Declare.
3634 (gdbscm_scm_string_to_int): Declare.
3635 * guile/guile.c (gdbscm_guile_major_version): New global.
3636 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3637 (guile_datadir): New static global.
3638 (gdbscm_guile_data_directory): New function.
3639 (initialize_scheme_side): Update.
3640 (misc_guile_functions): Add guile-data-directory.
3641 (initialize_gdb_module): Fetch guile version number.
3642 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3643 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3644 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3645 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3647 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3648 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3649 * guile/scm-value.c (gdbscm_value_to_string): Only call
3650 scm_port_conversion_strategy if Guile version >= 2.0.6.
3652 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3654 * main.c (print_gdb_help): Add -q and --silent.
3656 2014-06-06 Gary Benson <gbenson@redhat.com>
3658 * common/signals.c: Remove preprocessor conditionals for
3659 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3660 SIGSEGV and SIGTERM.
3661 * proc-events.c: Likewise.
3663 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3665 * symfile.c (symfile_free_objfile): Remove restriction to
3667 * symfile-mem.c (symbol_file_add_from_memory): Call
3668 add_target_sections_of_objfile.
3670 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3672 * guile/scm-value.c (gdbscm_history_append_x): Use
3673 'vlscm_get_value_smob_arg_unsafe' instead of
3674 'vlscm_scm_to_value'.
3676 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3679 * utils.c (printchar): Don't escape at all if quoter is NUL.
3680 Update function documentation to clarify effect of parameter
3682 * remote.c (escape_buffer): Pass '\\' as the quoter to
3683 fputstrn_unfiltered.
3684 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3685 generate the output.
3686 (mi_solib_unloaded): Same.
3688 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3690 * development.sh: Delete.
3691 * Makefile.in (config.status): Adjust dependency on development.sh.
3692 * configure.ac: Adjust development.sh source call.
3693 * configure: Regenerate.
3695 2014-06-04 Doug Evans <xdje42@gmail.com>
3697 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3698 is_scheme_bkpt, spec.
3699 (bpscm_make_breakpoint_smob): Initialize new members.
3700 (gdbscm_create_breakpoint_x): Split into two ...
3701 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3702 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3703 (scheme_function breakpoint_functions): Update.
3704 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3705 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3706 register-breakpoint!.
3708 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3711 * mem-break.c (z_type_supported): Return zero if
3712 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3714 2014-06-04 Tom Tromey <tromey@redhat.com>
3716 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3717 value_from_contents_and_address_unresolved.
3718 (ada_template_to_fixed_record_type_1): Likewise.
3719 (ada_which_variant_applies): Likewise.
3720 * value.h (value_from_contents_and_address_unresolved): Declare.
3721 * value.c (value_from_contents_and_address_unresolved): New
3723 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3724 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3725 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3727 2014-06-04 Tom Tromey <tromey@redhat.com>
3729 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3731 2014-06-04 Tom Tromey <tromey@redhat.com>
3733 * procfs.c (procfs_attach): Make "args" const.
3734 * windows-nat.c (windows_attach): Make "args" const.
3735 * nto-procfs.c (procfs_attach): Make "args" const.
3736 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3737 * go32-nat.c (go32_attach): Make "args" const.
3738 * gnu-nat.c (gnu_attach): Make "args" const.
3739 * darwin-nat.c (darwin_attach): Make "args" const.
3740 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3741 * linux-nat.c (linux_nat_attach): Make "args" const.
3742 * remote.c (extended_remote_attach_1, extended_remote_attach):
3744 * target.h (struct target_ops) <to_attach>: Make "args" const.
3745 (find_default_attach): Likewise.
3746 * utils.c (parse_pid_to_attach): Make "args" const.
3747 * utils.h (parse_pid_to_attach): Update.
3749 2014-06-04 Tom Tromey <tromey@redhat.com>
3751 * target-delegates.c: Rebuild.
3752 * target.c (default_thread_address_space): New function.
3753 (target_thread_address_space): Simplify.
3754 * target.h (struct target_ops) <to_thread_address_space>: Add
3755 TARGET_DEFAULT_FUNC.
3757 2014-06-04 Doug Evans <xdje42@gmail.com>
3759 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3761 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3763 * record-btrace.c: Include event-loop.h and inf-loop.h.
3764 (record_btrace_resume_exec_dir)
3765 (record_btrace_async_inferior_event_handler)
3766 (record_btrace_handle_async_inferior_event): New.
3767 (record_btrace_open): Create async event handler.
3768 (record_btrace_close): Delete async event handler.
3769 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3770 Mark async event handler.
3771 (record_btrace_execution_direction): New.
3772 (init_record_btrace_ops): Initialize to_execution_direction.
3774 2014-06-03 Doug Evans <xdje42@gmail.com>
3776 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3777 (gdbscm_make_parameter): Ditto.
3779 2014-06-03 Doug Evans <dje@google.com>
3781 * exec.c (exec_close_1): Call clear_section_table instead of
3782 resize_section_table.
3783 (clear_section_table): New function.
3784 (resize_section_table): Make static. Rename arg num_added to
3786 * exec.h (clear_section_table): Declare.
3787 (resize_section_table): Delete.
3788 * progspace.c (release_program_space): Call clear_section_table
3789 instead of resize_section_table.
3791 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3793 * NEWS (Python Scripting): Add entry about the new xmethods
3796 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3798 * python/py-xmethods.c: New file.
3799 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3800 (objfpy_dealloc): XDECREF on the new xmethods field.
3801 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3803 (objfpy_get_xmethods): New function.
3804 (objfile_getset): New entry 'xmethods'.
3805 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3806 (pspy_dealloc): XDECREF on the new xmethods field.
3807 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3809 (pspy_get_xmethods): New function.
3810 (pspace_getset): New entry 'xmethods'.
3811 * python/python-internal.h: Add declarations for new functions.
3812 * python/python.c (_initialize_python): Invoke
3813 gdbpy_initialize_xmethods.
3814 * python/lib/gdb/__init__.py (xmethods): New
3816 * python/lib/gdb/xmethod.py: New file.
3817 * python/lib/gdb/command/xmethods.py: New file.
3819 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3821 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3822 best match method returned by find_overload_match is an xmethod.
3823 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3824 the best matching operator returned by find_overload_match is an
3826 * valops.c: #include "extension.h".
3827 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3828 Return void. The list of matching source methods is returned in
3829 "fn_list" and a vector of matching debug method workers is
3830 returned in "xm_worker_vec". Update all callers.
3831 (value_find_oload_method_list): Likewise.
3832 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3833 non-NULL, then the index of the best matching method in this
3834 vector is returned. Update all callers.
3835 (find_overload_match): Include xmethods while performing overload
3838 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3840 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3841 * extension-priv.h (struct extension_language_ops): Add the
3843 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3844 get_matching_xmethod_workers, get_xmethod_argtypes,
3845 invoke_xmethod, free_xmethod_worker,
3846 free_xmethod_worker_vec): New functions.
3847 * extension.h: #include "common/vec.h".
3848 New function declarations.
3849 (struct xmethod_worker): New struct.
3850 (VEC (xmethod_worker_ptr)): New vector type.
3851 (xmethod_worker_ptr): New typedef.
3852 (xmethod_worker_vec): Likewise.
3853 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3855 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3856 (struct builtin_type): New field "xmethod".
3857 * valarith.c (value_ptradd): Assert that the value argument is not
3859 * valops.c (value_must_coerce_to_target): Return 0 for
3860 lval_xcallable values.
3861 * value.c (struct value): New field XM_WORKER in the field
3863 (value_address, value_raw_address): Return 0 for lval_xcallable
3865 (set_value_address): Assert that the value is not an
3867 (value_free): Free the associated xmethod worker when freeing
3868 lval_xcallable values.
3869 (set_value_component_location): Assert that the WHOLE value is not
3871 (value_of_xmethod, call_xmethod): New functions.
3872 * value.h: Declare "struct xmethod_worker".
3873 Declare new functions value_of_xmethod, call_xmethod.
3875 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3876 Pedro Alves <palves@redhat.com>
3878 PR breakpoints/17000
3879 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3880 New function, extracted from software_breakpoint_inserted_here_p.
3881 (software_breakpoint_inserted_here_p): Replace factored out code
3882 by call to find_non_raw_software_breakpoint_inserted_here.
3883 (bp_target_info_copy_insertion_state): New function.
3884 (bkpt_insert_location): Handle the case of a single-step
3885 breakpoint already inserted at the same address.
3886 (bkpt_remove_location): Handle the case of a single-step
3887 breakpoint still inserted at the same address.
3888 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3889 breakpoint already inserted at the same address.
3890 (deprecated_remove_raw_breakpoint): Handle the case of a
3891 non-raw breakpoint still inserted at the same address.
3892 (find_single_step_breakpoint): New function, extracted from
3893 single_step_breakpoint_inserted_here_p.
3894 (find_single_step_breakpoint): New function,
3895 factored out from single_step_breakpoint_inserted_here_p.
3896 (single_step_breakpoint_inserted_here_p): Reimplement.
3898 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3900 Pushed by Joel Brobecker <brobecker@adacore.com>
3901 * source.c (show_substitute_path_command): Fix display of matching
3904 2014-06-03 Gary Benson <gbenson@redhat.com>
3906 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3908 2014-06-02 Doug Evans <xdje42@gmail.com>
3910 Add parameter support for Guile.
3911 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3912 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3913 (scm-param.o): New rule.
3914 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3915 (gdbscm_misc_error): Declare.
3916 (gdbscm_canonicalize_command_name): Declare.
3917 (gdbscm_scm_to_host_string): Declare.
3918 (gdbscm_scm_from_host_string): Declare.
3919 (gdbscm_initialize_parameters): Declare.
3920 * guile/guile.c (initialize_gdb_module): Call
3921 gdbscm_initialize_parameters.
3922 * guile/lib/gdb.scm: Export parameter symbols.
3923 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3924 cmdscm_canonicalize_name and made public. All callers updated.
3925 * guile/scm-exception.c (gdbscm_misc_error): New function.
3926 * guile/scm-param.c: New file.
3927 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3928 (gdbscm_scm_to_host_string): New function.
3929 (gdbscm_scm_from_host_string): New function.
3930 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3932 2014-06-02 Doug Evans <xdje42@gmail.com>
3934 Add command support for Guile.
3935 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3936 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3937 (scm-cmd.o): New rule.
3938 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3939 (gdbscm_user_error_p): Declare.
3940 (gdbscm_parse_command_name): Declare.
3941 (gdbscm_valid_command_class_p): Declare.
3942 (gdbscm_initialize_commands): Declare.
3943 * guile/guile.c (initialize_gdb_module): Call
3944 gdbscm_initialize_commands.
3945 * guile/lib/gdb.scm: Export command symbols.
3946 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3947 (throw-user-error): New function.
3948 * guile/scm-cmd.c: New file.
3949 * guile/scm-exception.c (user_error_symbol): New static global.
3950 (gdbscm_user_error_p): New function.
3951 (gdbscm_initialize_exceptions): Set user_error_symbol.
3952 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3954 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3956 * top.c (command_loop): Handle comments here...
3957 (command_line_input): ... not here.
3959 2014-06-02 Doug Evans <xdje42@gmail.com>
3961 Add progspace support for Guile.
3962 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3963 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3964 (scm-progspace.o): New rule.
3965 * guile/guile-internal.h (pspace_smob): New typedef.
3966 (psscm_pspace_smob_pretty_printers): Declare.
3967 (psscm_pspace_smob_from_pspace): Declare.
3968 (psscm_scm_from_pspace): Declare.
3969 * guile/guile.c (initialize_gdb_module): Call
3970 gdbscm_initialize_pspaces.
3971 * guile/lib/gdb.scm: Export progspace symbols.
3972 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3974 (append-pretty-printer!): Ditto.
3975 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3977 * guile/scm-progspace.c: New file.
3979 2014-06-03 Alan Modra <amodra@gmail.com>
3981 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3982 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3984 2014-06-02 Doug Evans <dje@google.com>
3986 Add support for skeletonless type units.
3987 * dwarf2read.c (struct dwarf2_per_objfile): New member
3988 n_allocated_type_units.
3989 (struct dwarf2_per_objfile) <tu_stats>: New member
3990 nr_all_type_units_reallocs.
3991 (create_signatured_type_table_from_index): Initialize
3992 n_allocated_type_units
3993 (create_all_type_units): Ditto.
3994 (add_type_unit): Move up in file. New arg slot.
3995 All callers updated. Increase space for all_type_units more
3997 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3998 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3999 (lookup_dwp_signatured_type): Ditto.
4000 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4001 All callers updated.
4002 (build_type_psymtabs_1): Leave type_unit_groups as
4003 NULL if no TUs present.
4004 (print_tu_stats): New function.
4005 (process_skeletonless_type_unit): New function.
4006 (process_dwo_file_for_skeletonless_type_units): New
4008 (process_skeletonless_type_units): New function.
4009 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4010 Call print tu_stats if debugging enabled.
4012 2014-06-02 Pedro Alves <palves@redhat.com>
4014 * breakpoint.c (build_target_command_list): Don't build a command
4015 list if we have any duplicate location that isn't a dprintf.
4017 2014-06-02 Pedro Alves <palves@redhat.com>
4019 * breakpoint.c (dprintf_breakpoint_hit): New function.
4020 (initialize_breakpoint_ops): Install it as dprintf's
4021 breakpoint_hit method.
4023 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4025 * source.c (substitute_path_rule_matches): Simplify using
4026 filename_ncmp instead of FILENAME_CMP.
4028 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4030 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4032 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4034 * configure.ac: When Guile is available, check for the
4035 availability of 'scm_new_smob'.
4036 * configure, config.h.in: Regenerate.
4037 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4040 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4042 * frame.c (struct frame_info): Add stop_string field.
4043 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4044 (get_prev_frame_always): Old content moved into
4045 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4046 TRY_CATCH, handle MEMORY_ERROR exceptions.
4047 (frame_stop_reason_string): New function definition.
4048 * frame.h (unwind_stop_reason_to_string): Extend comment to
4049 mention frame_stop_reason_string.
4050 (frame_stop_reason_string): New function declaration.
4051 * stack.c (frame_info): Switch to frame_stop_reason_string.
4052 (backtrace_command_1): Switch to frame_stop_reason_string.
4053 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4054 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4055 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4057 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4059 * frame.c (frame_stop_reason_string): Rename to ...
4060 (unwind_stop_reason_to_string): this.
4061 * frame.h (frame_stop_reason_string): Rename to ...
4062 (unwind_stop_reason_to_string): this.
4063 * stack.c (frame_info): Update call to frame_stop_reason_string.
4064 (backtrace_command_1): Likewise.
4065 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4066 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4068 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4070 * frame.c (remove_prev_frame): New function.
4071 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4074 2014-05-29 Pedro Alves <palves@redhat.com>
4076 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4077 and make it const. When a single-step decays to a continue,
4078 clear 'step', not 'hw_step'. Pass whether the caller wanted
4079 to step to user_visible_resume_ptid, not what we ask the
4082 2014-05-29 Pedro Alves <palves@redhat.com>
4084 * infrun.c (process_event_stop_test, handle_step_into_function)
4085 (handle_step_into_function_backward): Adjust.
4086 Don't set the even thread's stop_step and call stop_waiting before
4087 calling end_stepping_range. Instead do that ...
4088 (end_stepping_range): ... here. Take an ecs pointer parameter.
4090 2014-05-29 Pedro Alves <palves@redhat.com>
4092 * infrun.c (stop_stepping): Rename to ...
4093 (stop_waiting): ... this.
4094 (proceed): Update comment.
4095 (process_event_stop_test, handle_inferior_event)
4096 (handle_signal_stop, handle_step_into_function)
4097 (handle_step_into_function_backward): Update.
4099 2014-05-29 Pedro Alves <palves@redhat.com>
4101 * infcall.c (run_inferior_call): Don't check whether the current
4102 thread is running after the proceed call.
4104 2014-05-29 Pedro Alves <palves@redhat.com>
4105 Tom Tromey <tromey@redhat.com>
4107 * NEWS: Mention "maint set target-async", "set mi-async", and that
4108 background execution commands are now always available.
4109 * target.h (target_async_permitted): Update comment.
4110 * target.c (target_async_permitted, target_async_permitted_1):
4112 (set_target_async_command): Rename to ...
4113 (maint_set_target_async_command): ... this.
4114 (show_target_async_command): Rename to ...
4115 (maint_show_target_async_command): ... this.
4116 (_initialize_target): Adjust.
4117 * infcmd.c (prepare_execution_command): Make extern.
4118 * inferior.h (prepare_execution_command): Declare.
4119 * infrun.c (set_observer_mode): Leave target async alone.
4120 * mi/mi-interp.c (mi_interpreter_init): Install
4121 mi_on_sync_execution_done as sync_execution_done observer.
4122 (mi_on_sync_execution_done): New function.
4123 (mi_execute_command_input_handler): Don't print the prompt if we
4124 just started a synchronous command with an async target.
4125 (mi_on_resume): Check sync_execution before printing prompt.
4126 * mi/mi-main.h (mi_async_p): Declare.
4127 * mi/mi-main.c: Include gdbcmd.h.
4128 (mi_async_p): New function.
4129 (mi_async, mi_async_1): New globals.
4130 (set_mi_async_command, show_mi_async_command, mi_async): New
4132 (exec_continue): Call prepare_execution_command.
4133 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4134 (mi_execute_async_cli_command): Use mi_async_p.
4135 (_initialize_mi_main): Install "set mi-async". Make
4136 "target-async" a deprecated alias.
4138 2014-05-29 Pedro Alves <palves@redhat.com>
4140 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4141 (_initialize_cli_interp): Adjust.
4142 * event-loop.c: Include "observer.h".
4143 (start_event_loop): Notify 'command_error' observers instead of
4144 calling display_gdb_prompt. Remove FIXME comment.
4145 * event-top.c (display_gdb_prompt): Remove call into the
4147 * inf-loop.c: Include "observer.h".
4148 (inferior_event_handler): Notify 'command_error' observers instead
4149 of calling display_gdb_prompt.
4150 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4151 observers instead of calling display_gdb_prompt.
4152 * interps.c (interp_set): Don't call display_gdb_prompt.
4153 (current_interp_display_prompt_p): Delete.
4154 * interps.h (interp_prompt_p): Delete declaration.
4155 (interp_prompt_p_ftype): Delete.
4156 (struct interp_procs) <prompt_proc_p>: Delete field.
4157 (current_interp_display_prompt_p): Delete declaration.
4158 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4159 (_initialize_mi_interp): Adjust.
4160 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4161 'command_error' observers.
4162 (tui_on_sync_execution_done, tui_on_command_error): New
4164 (tui_display_prompt_p): Delete.
4165 (_initialize_tui_interp): Adjust.
4167 2014-05-29 Pedro Alves <palves@redhat.com>
4170 * cli/cli-interp.c: Include infrun.h and observer.h.
4171 (cli_uiout, cli_interp): New globals.
4172 (cli_on_signal_received, cli_on_end_stepping_range)
4173 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4175 (cli_interpreter_init): Install them as 'end_stepping_range',
4176 'signal_received' 'signal_exited', 'exited' and 'no_history'
4178 (_initialize_cli_interp): Remove cli_interp local.
4179 * infrun.c (handle_inferior_event): Call the several stop reason
4180 observers instead of printing the stop reason directly.
4181 (end_stepping_range): New function.
4182 (print_end_stepping_range_reason, print_signal_exited_reason)
4183 (print_exited_reason, print_signal_received_reason)
4184 (print_no_history_reason): Make static, and add an uiout
4185 parameter. Print to that instead of to CURRENT_UIOUT.
4186 * infrun.h (print_end_stepping_range_reason)
4187 (print_signal_exited_reason, print_exited_reason)
4188 (print_signal_received_reason print_no_history_reason): New
4190 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4192 <cli_uiout>: New field.
4193 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4194 uiout for CLI output. Install 'signal_received',
4195 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4197 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4198 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4199 (mi_on_no_history): New functions.
4200 (ui_out_free_cleanup): Delete function.
4201 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4202 instead use the one already stored in the MI interpreter data.
4203 (mi_ui_out): Adjust.
4204 * tui/tui-interp.c: Include infrun.h and observer.h.
4205 (tui_interp): New global.
4206 (tui_on_signal_received, tui_on_end_stepping_range)
4207 (tui_on_signal_exited, tui_on_exited)
4208 (tui_on_no_history): New functions.
4209 (tui_init): Install them as 'end_stepping_range',
4210 'signal_received' 'signal_exited', 'exited' and 'no_history'
4212 (_initialize_tui_interp): Delete tui_interp local.
4214 2014-05-29 Pedro Alves <palves@redhat.com>
4217 * linux-nat.c (linux_nat_resume_callback): Rename the second
4218 parameter to 'except'. Skip LP if it points to EXCEPT.
4219 (linux_nat_resume): Don't mark the event lwp as not stopped
4220 before resuming sibling lwps. Instead ask
4221 linux_nat_resume_callback to skip the event lwp. Mark it as not
4222 stopped after actually resuming it.
4223 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4225 (wait_lwp): Mark the lwp as stopped here.
4226 (stop_wait_callback): Mark the lwp as not stopped right after
4227 resuming it. Don't mark lwps as stopped here.
4228 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4229 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4231 2014-05-29 Pedro Alves <palves@redhat.com>
4234 * infrun.c (resume): Determine how much to resume depending on
4235 whether the caller wanted a step, not whether we can hardware step
4236 the target. Mark all threads that we intend to run as running,
4237 unless we're calling an inferior function.
4238 (normal_stop): If the thread is running an infcall, don't finish
4240 * target.c (target_resume): Don't mark threads as running here.
4242 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4244 * serial.c (_initialize_serial): Remove support for
4245 the "set remotebaud" and "show remotebaud" commands.
4246 * NEWS: Add entry documenting the removal of that command.
4248 2014-05-28 Yao Qi <yao@codesourcery.com>
4250 * charset.c: Fix typo in comments.
4252 2014-05-27 Gary Benson <gbenson@redhat.com>
4254 * utils.c (internal_vproblem): Prompt for a bug report.
4256 2014-05-26 Andy Wingo <wingo@igalia.com>
4258 * guile/scm-arch.c (arscm_mark_arch_smob):
4259 * guile/scm-block.c (bkscm_mark_block_smob)
4260 (bkscm_mark_block_syms_progress_smob):
4261 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4262 * guile/scm-exception.c (exscm_mark_exception_smob):
4263 * guile/scm-frame.c (frscm_mark_frame_smob):
4264 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4265 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4266 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4267 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4268 (ppscm_mark_pretty_printer_worker_smob):
4269 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4270 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4271 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4272 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4274 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4277 2014-05-26 Andy Wingo <wingo@igalia.com>
4278 Doug Evans <xdje42@gmail.com>
4280 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4281 empty_base_class. All uses updated.
4282 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4283 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4285 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4286 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4287 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4288 (gdbscm_gsmob_has_property_p, add_property_name)
4289 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4290 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4291 (gdb-object-has-property?, gdb-object-properties): Remove.
4292 (gdb-object-kind): Renamed from gsmob-kind.
4294 2014-05-26 Andy Wingo <wingo@igalia.com>
4296 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4297 * configure: Regenerate.
4299 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4301 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4303 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4305 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4306 (replay_memory_access_read_only, replay_memory_access_read_write)
4307 (replay_memory_access_types, replay_memory_access)
4308 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4309 (cmd_set_record_btrace, cmd_show_record_btrace)
4310 (cmd_show_replay_memory_access): New.
4311 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4312 (record_btrace_remove_breakpoint): Replace
4313 record_btrace_allow_memory_access with replay_memory_access.
4314 (_initialize_record_btrace): Add commands.
4315 * NEWS: Announce it.
4317 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4319 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4321 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4323 * MAINTAINERS (Write After Approval): Move self back from
4326 2014-05-22 Pedro Alves <palves@redhat.com>
4328 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4329 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4330 (disable_randomization, enum exec_direction_kind)
4331 (execution_direction, stop_registers, start_remote)
4332 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4333 (wait_for_inferior, normal_stop, get_last_target_status)
4334 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4335 (insert_step_resume_breakpoint_at_sal)
4336 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4337 (set_step_info, print_stop_event, signal_stop_state)
4338 (signal_print_state, signal_pass_state, signal_stop_update)
4339 (signal_print_update, signal_pass_update)
4340 (update_signals_program_target, clear_exit_convenience_vars)
4341 (displaced_step_dump_bytes, update_observer_mode)
4342 (signal_catch_update, gdb_signal_from_command): Move
4344 * infrun.h: ... to this new file.
4345 * amd64-tdep.c: Include infrun.h.
4346 * annotate.c: Include infrun.h.
4347 * arch-utils.c: Include infrun.h.
4348 * arm-linux-tdep.c: Include infrun.h.
4349 * arm-tdep.c: Include infrun.h.
4350 * break-catch-sig.c: Include infrun.h.
4351 * breakpoint.c: Include infrun.h.
4352 * common/agent.c: Include infrun.h instead of inferior.h.
4353 * corelow.c: Include infrun.h.
4354 * event-top.c: Include infrun.h.
4355 * go32-nat.c: Include infrun.h.
4356 * i386-tdep.c: Include infrun.h.
4357 * inf-loop.c: Include infrun.h.
4358 * infcall.c: Include infrun.h.
4359 * infcmd.c: Include infrun.h.
4360 * infrun.c: Include infrun.h.
4361 * linux-fork.c: Include infrun.h.
4362 * linux-nat.c: Include infrun.h.
4363 * linux-thread-db.c: Include infrun.h.
4364 * monitor.c: Include infrun.h.
4365 * nto-tdep.c: Include infrun.h.
4366 * procfs.c: Include infrun.h.
4367 * record-btrace.c: Include infrun.h.
4368 * record-full.c: Include infrun.h.
4369 * remote-m32r-sdi.c: Include infrun.h.
4370 * remote-mips.c: Include infrun.h.
4371 * remote-notif.c: Include infrun.h.
4372 * remote-sim.c: Include infrun.h.
4373 * remote.c: Include infrun.h.
4374 * reverse.c: Include infrun.h.
4375 * rs6000-tdep.c: Include infrun.h.
4376 * s390-linux-tdep.c: Include infrun.h.
4377 * solib-irix.c: Include infrun.h.
4378 * solib-osf.c: Include infrun.h.
4379 * solib-svr4.c: Include infrun.h.
4380 * target.c: Include infrun.h.
4381 * top.c: Include infrun.h.
4382 * windows-nat.c: Include infrun.h.
4383 * mi/mi-interp.c: Include infrun.h.
4384 * mi/mi-main.c: Include infrun.h.
4385 * python/py-threadevent.c: Include infrun.h.
4387 2014-05-22 Pedro Alves <palves@redhat.com>
4389 * infrun.c (handle_inferior_event): Store the exit code for
4390 --return-child-result here, instead of ...
4391 (print_exited_reason): ... here.
4393 2014-05-21 Pedro Alves <palves@redhat.com>
4396 * gdbthread.h (struct thread_control_state): New field
4398 * infrun.c (follow_fork): Copy the new thread control field to the
4400 (clear_proceed_status_thread): Clear the new thread control field.
4401 (proceed): Set the new thread control field.
4402 * interps.h (command_interp): Declare.
4403 * interps.c (command_interpreter): New global.
4404 (command_interp): New function.
4405 (interp_exec): Set `command_interpreter' while here.
4406 * cli-out.c (cli_uiout_dtor): New function.
4407 (cli_ui_out_impl): Install it.
4408 * mi/mi-interp.c: Include cli-out.h.
4409 (mi_cmd_interpreter_exec): Add comment.
4410 (restore_current_uiout_cleanup): New function.
4411 (ui_out_free_cleanup): New function.
4412 (mi_on_normal_stop): If finishing an execution command started by
4413 a CLI command, or any kind of breakpoint-like event triggered,
4414 print the stop event to the output (CLI) stream.
4415 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4417 2014-05-21 Pedro Alves <palves@redhat.com>
4419 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4420 current source line having changed.
4421 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4422 * infrun.c (normal_stop): Adjust call to
4423 set_current_sal_from_frame.
4424 * source.c (clear_lines_listed_range): New function.
4425 (set_current_source_symtab_and_line, identify_source_line): Clear
4426 the lines listed range.
4427 (line_info): Handle the first "info line" after the current source
4428 line having changed.
4429 * stack.c (print_stack_frame): Remove center handling.
4430 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4433 2014-05-21 Pedro Alves <palves@redhat.com>
4435 * inf-child.c (inf_child_mourn_inferior): New function.
4436 * inf-child.h (inf_child_mourn_inferior): New declaration.
4437 * darwin-nat.c (darwin_mourn_inferior): Use
4438 inf_child_mourn_inferior.
4439 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4440 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4441 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4442 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4443 * windows-nat.c (windows_mourn_inferior): Likewise.
4445 2014-05-21 Doug Evans <xdje42@gmail.com>
4447 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4449 2014-05-21 Doug Evans <xdje42@gmail.com>
4451 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4452 (gdbscm_out_of_range_error): Ditto.
4453 (gdbscm_memory_error): Ditto.
4454 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4455 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4456 (gdbscm_out_of_range_error): Update.
4457 (gdbscm_memory_error): Update.
4458 (gdbscm_scm_to_target_string_unsafe): Delete.
4460 2014-05-21 Pedro Alves <palves@redhat.com>
4462 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4464 (inf_child_open_target): New function.
4465 (inf_child_open): Use inf_child_open_target to push the target
4466 instead of erroring out.
4467 (inf_child_disconnect, inf_child_close)
4468 (inf_child_maybe_unpush_target): New functions.
4469 (inf_child_target): Install inf_child_disconnect and
4470 inf_child_close. Store a pointer to the returned object.
4471 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4473 * target.c (auto_connect_native_target): New global.
4474 (show_default_run_target): New function.
4475 (find_default_run_target): Return NULL if automatically connecting
4476 to the native target is disabled.
4477 (_initialize_target): Install set/show auto-connect-native-target.
4478 * NEWS: Mention "set auto-connect-native-target", and "target
4480 * linux-nat.c (super_close): New global.
4481 (linux_nat_close): Call super_close.
4482 (linux_nat_add_target): Store a pointer to the base class's
4484 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4485 inf_child_maybe_unpush.
4486 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4488 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4489 the inferior. Use inf_child_maybe_unpush_target.
4490 (inf_ttrace_attach): Don't push the target if it is already
4492 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4493 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4494 after mourning the inferior. Use inf_child_maybe_unpush_target.
4495 (darwin_attach_pid): Don't push the target if it is already
4497 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4498 mourning the inferior. Use inf_child_maybe_unpush_target.
4499 (gnu_detach): Use inf_child_maybe_unpush_target.
4500 * go32-nat.c (go32_create_inferior): Don't push the target if it
4502 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4503 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4504 (procfs_open): Rename to ...
4505 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4506 comments. Can target_preopen before changing node. Call
4507 inf_child_open_target to push the target explicitly.
4508 (procfs_attach): Don't push the target if it is already pushed.
4509 (procfs_detach): Use inf_child_maybe_unpush_target.
4510 (procfs_create_inferior): Don't push the target if it is already
4512 (nto_native_ops): New global.
4513 (procfs_open): Reimplement.
4514 (procfs_native_open): New function.
4515 (init_procfs_targets): Install procfs_native_open as to_open of
4516 "target native". Store a pointer to the "native" target in
4518 * procfs.c (procfs_attach): Don't push the target if it is already
4520 (procfs_detach): Use inf_child_maybe_unpush_target.
4521 (procfs_mourn_inferior): Only unpush the target after mourning the
4522 inferior. Use inf_child_maybe_unpush_target.
4523 (procfs_init_inferior): Don't push the target if it is already
4525 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4526 if it is already pushed.
4528 2014-05-21 Pedro Alves <palves@redhat.com>
4530 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4531 and "procfs" targets are now called "native" instead.
4533 2014-05-21 Pedro Alves <palves@redhat.com>
4535 * go32-nat.c (go32_open): Delete.
4536 (go32_target): Don't override the to_open method.
4538 2014-05-21 Pedro Alves <palves@redhat.com>
4540 * nto-procfs.c (procfs_can_run): New function.
4541 (nto_procfs_ops): New global.
4542 (init_procfs_targets): New, based on procfs_target. Install
4543 "target native" in addition to "target procfs".
4544 (_initialize_procfs): Call init_procfs_targets instead of adding
4547 2014-05-21 Pedro Alves <palves@redhat.com>
4549 * windows-nat.c (windows_target): Don't override to_shortname,
4550 to_longname or to_doc.
4552 2014-05-21 Pedro Alves <palves@redhat.com>
4554 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4557 2014-05-21 Pedro Alves <palves@redhat.com>
4559 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4560 to_shortname, to_longname or to_doc.
4562 2014-05-21 Pedro Alves <palves@redhat.com>
4564 * go32-nat.c (go32_target): Don't override to_shortname,
4565 to_longname or to_doc.
4567 2014-05-21 Pedro Alves <palves@redhat.com>
4569 * inf-child.c (inf_child_open): Remove mention of "child".
4570 (inf_child_target): Rename target to "native" instead of "child".
4572 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4574 * Makefile.in (SFILES): Delete "regset.c".
4575 (COMMON_OBS): Delete "regset.o".
4577 * regset.h (regset_alloc): Delete prototype.
4579 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4581 * sparc-linux-tdep.c (sparc32_linux_gregset)
4582 (sparc32_linux_fpregset): New static regset structures.
4583 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4584 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4586 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4587 (sparc64_linux_fpregset): New static regset structures.
4588 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4589 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4590 New static regset structures.
4591 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4592 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4593 New static regset structures.
4594 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4595 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4596 New static regset structures.
4597 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4598 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4599 New static regset structures.
4600 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4602 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4604 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4605 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4606 register maps ("regmaps") from "*regset" to "*regmap". Do this
4607 for all regmap types and variables.
4608 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4609 (sparc32_linux_supply_core_gregset)
4610 (sparc32_linux_collect_core_gregset)
4611 (sparc32_linux_supply_core_fpregset)
4612 (sparc32_linux_collect_core_fpregset): Likewise.
4613 * sparc-nat.c (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_fetch_inferior_registers, sparc_store_inferior_registers)
4618 (_initialize_sparc_nat): Rename regmaps.
4619 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4620 (sparc_gregmap, sparc_fpregmap): ... these.
4621 (sparc_supply_gregset, sparc_collect_gregset)
4622 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4623 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4625 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4626 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4628 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4630 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4631 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4632 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4634 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4635 (sparc32_bsd_fpregset): Rename to...
4636 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4637 (sparc32_bsd_fpregmap): ... these.
4638 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4639 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4640 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4641 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4642 (struct sparc_gregmap, struct sparc_fpregmap)
4643 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4644 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4645 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4646 (sparc32_supply_regset, sparc32_collect_gregset)
4647 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4649 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4650 (sparc64_linux_ptrace_gregmap): ... this.
4651 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4652 (_initialize_sparc64_linux_nat): Rename regmaps.
4653 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4654 (sparc64_linux_core_gregmap): ... this.
4655 (sparc64_linux_supply_core_gregset)
4656 (sparc64_linux_collect_core_gregset)
4657 (sparc64_linux_supply_core_fpregset)
4658 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4659 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4660 (sparc64_sol2_fpregset): Rename to...
4661 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4662 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4663 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4665 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4666 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4667 (sparc64_bsd_fpregset): Rename to...
4668 (struct sparc_gregmap, sparc64_sol2_gregmap)
4669 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4670 (sparc64_bsd_fpregmap): ... these.
4671 (sparc64_supply_gregset, sparc64_collect_gregset)
4672 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4674 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4675 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4676 (sparc64fbsd_gregmap): ... this.
4677 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4678 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4680 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4681 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4682 (sparc64nbsd_collect_fpregset): Likewise.
4683 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4684 (sparc64nbsd_gregmap): ... this.
4685 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4687 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4688 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4689 (sparc64obsd_gregmap): ... this.
4690 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4692 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4693 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4694 (sparc32nbsd_gregmap): ... this.
4695 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4698 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4700 * score-tdep.c (score7_linux_gregset): New static regset
4702 (score7_linux_regset_from_core_section): Remove dynamic regset
4704 (score_gdbarch_init): Drop allocation of tdep structure.
4705 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4707 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4709 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4711 (am33_regset_from_core_section): Remove dynamic regset
4714 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4716 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4717 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4719 (mips_linux_regset_from_core_section): Remove dynamic regset
4721 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4722 'gregset64', 'fpregset', and 'fpregset64'.
4723 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4724 deleted tdep fields.
4726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4728 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4730 (amd64_regset_from_core_section): Remove dynamic regset
4732 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4734 (amd64obsd_regset_from_core_section): Remove dynamic regset
4736 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4738 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4739 x86-common regset supply function.
4740 * i386-tdep.c (i386_collect_gregset): Make static.
4741 (i386_gregset): New global regset structure.
4742 (i386_fpregset, i386_xstateregset): New static regset structures.
4743 (i386_regset_from_core_section): Remove dynamic regset
4745 (i386_gdbarch_init): Remove initialization of tdep fields
4746 'gregset', 'fpregset', and 'xstateregset'.
4747 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4748 'fpregset', and 'xstateregset'.
4749 (i386_collect_gregset): Remove prototype.
4750 (i386_gregset): New declaration.
4751 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4753 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4756 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4758 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4759 (arm_linux_vfpregset): New static regset structures.
4760 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4762 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4763 and 'vfpregset' fields.
4765 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4767 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4768 (aarch64_linux_fpregset): New static regset structures.
4769 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4770 of regset structures.
4771 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4774 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4776 * regset.h (struct regset): Remove gdbarch field.
4777 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4778 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4779 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4781 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4782 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4783 (ppc32_linux_vsxregset): Likewise.
4784 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4785 via the regcache instead of the regset.
4786 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4787 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4788 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4789 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4792 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4794 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4795 Constify structures.
4796 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4797 (alphanbsd_aout_gregset): Likewise.
4798 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4799 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4801 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4802 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4804 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4805 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4806 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4807 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4808 * m88k-tdep.c (m88k_gregset): Likewise.
4809 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4810 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4811 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4812 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4813 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4814 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4815 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4816 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4817 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4819 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4820 * sh-tdep.h (sh_corefile_gregset): Likewise.
4821 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4822 * vax-tdep.c (vax_gregset): Likewise.
4824 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4826 Fix TLS access for -static -pthread.
4827 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4828 (try_thread_db_load_1): Initialize it.
4829 (thread_db_get_thread_local_address): Call it if LM is zero.
4830 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4831 * target.h (struct target_ops) (to_get_thread_local_address): Add
4832 load_module_addr comment.
4834 2014-05-21 Pedro Alves <palves@redhat.com>
4836 * dcache.c (dcache_read_memory_partial): If reading the cache line
4837 fails, fallback to reading just the memory the caller wanted.
4839 2014-05-20 Doug Evans <dje@google.com>
4841 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4842 instead of get_current_arch.
4844 2014-05-20 Pedro Alves <palves@redhat.com>
4846 * NEWS: Mention that compare-sections now works with all targets.
4848 * remote.c (PACKET_qCRC): New enum value.
4849 (remote_verify_memory): Don't send qCRC if the target has no
4850 execution. Use packet_support/packet_ok. If the target doesn't
4851 support the qCRC packet, fallback to a deep memory copy.
4852 (compare_sections_command): Say "target image" instead of "remote
4854 (_initialize_remote): Add PACKET_qCRC to the list of config
4855 packets that have no associated command. Extend comment.
4856 * target.c (simple_verify_memory, default_verify_memory): New
4858 * target.h (struct target_ops) <to_verify_memory>: Default to
4859 default_verify_memory.
4860 (simple_verify_memory): New declaration.
4861 * target-delegates.c: Regenerate.
4863 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4865 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4867 2014-05-20 Hui Zhu <hui@codesourcery.com>
4868 Yao Qi <yao@codesourcery.com>
4871 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4872 and change address of sp and pc.
4874 2014-05-19 Tom Tromey <tromey@redhat.com>
4876 * gdbtypes.c (rank_function): Use XNEWVEC.
4877 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4879 2014-05-19 Doug Evans <dje@google.com>
4881 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4882 build_type_unit_groups and moved closer to only caller. Remove
4883 arguments. All references updated. Remove outdated .gdb_index
4885 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4886 build_type_psymtabs_1.
4888 2014-05-19 Doug Evans <dje@google.com>
4890 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4891 n_type_unit_groups, all_type_unit_groups. All uses removed.
4892 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4893 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4894 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4895 (add_type_unit_group_to_table): Delete.
4897 2014-05-19 Doug Evans <dje@google.com>
4899 * eval.c (evaluate_subexp_standard): Add some comments.
4901 2014-05-17 Doug Evans <xdje42@gmail.com>
4903 * progspace.c (remove_program_space): Delete, unused.
4904 * progspace.h (remove_program_space): Ditto.
4906 2014-05-17 Doug Evans <xdje42@gmail.com>
4908 * inferior.c (prune_inferiors): Fix comment.
4909 (remove_inferior_command): Call prune_program_spaces.
4911 2014-05-16 Doug Evans <dje@google.com>
4913 New command line option -D.
4915 * main.c (set_gdb_data_directory): New function.
4916 (captured_main): Recognize -D. Flag error for --data-directory "".
4917 Call set_gdb_data_directory.
4918 (print_gdb_help): Print --data-directory, -D.
4919 * main.h (set_gdb_data_directory): Declare.
4920 * top.c (staged_gdb_datadir): New static global.
4921 (set_gdb_datadir): Call set_gdb_data_directory
4922 (show_gdb_datadir): New function.
4923 (init_main): Update init of data-directory parameter.
4925 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4927 Import the "dirfd" gnulib module.
4928 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4929 * gnulib/aclocal.m4: Update.
4930 * gnulib/config.in: Update.
4931 * gnulib/configure: Update.
4932 * gnulib/import/Makefile.am: Update.
4933 * gnulib/import/Makefile.in: Update.
4934 * gnulib/import/dirfd.c: New.
4935 * gnulib/import/m4/dirfd.m4: New.
4936 * gnulib/import/m4/gnulib-cache.m4: Update.
4937 * gnulib/import/m4/gnulib-comp.m4: Update.
4939 2014-05-16 Pierre Muller <muller@sourceware.org>
4940 Yao Qi <yao@codesourcery.com>
4942 * valprint.c (print_wchar): Move the code on checking whether
4943 W is a printable wide char to the default branch of switch
4944 statement below. Call wchar_printable instead of gdb_iswprint.
4946 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4948 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4949 ldr.w and ldrd instructions.
4951 2014-05-15 Doug Evans <dje@google.com>
4953 * dwarf2read.c (read_structure_type): Delete outdated comments.
4955 2014-05-14 Tom Tromey <tromey@redhat.com>
4957 * macrocmd.c (print_macro_definition): Reindent.
4959 2014-05-13 Doug Evans <xdje42@gmail.com>
4961 * python/py-cmd.c (cmdpy_completer): Add comment.
4962 (completers): Make const.
4964 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4966 * infrun.c (resume): Remove should_resume (unused). Move up
4967 declaration of resume_ptid.
4969 2014-05-13 Tom Tromey <tromey@redhat.com>
4971 * language.h (unop_type_check): Remove.
4972 (binop_type_check): Don't declare.
4974 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4976 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4977 call to regcache_raw_collect.
4979 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4981 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4982 mi_console->quote as the quoting character.
4984 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4986 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4988 2014-04-29 Tom Tromey <tromey@redhat.com>
4990 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4991 "show debug varobj".
4993 2014-05-07 Kyle McMartin <kyle@redhat.com>
4995 Pushed by Joel Brobecker <brobecker@adacore.com>.
4996 * aarch64-tdep.c (aarch64_software_single_step): New function.
4997 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4998 with aarch64_software_single_step.
5000 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5004 2014-05-05 Keith Seitz <keiths@redhat.com>
5006 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5007 variable or history value is successfully parsed.
5009 2014-05-05 Yao Qi <yao@codesourcery.com>
5010 Pedro Alves <palves@redhat.com>
5012 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5013 address of blocks that intersects the requested range. Trim
5014 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5016 * ctf.c (ctf_xfer_partial): Likewise.
5018 2014-05-05 Yao Qi <yao@codesourcery.com>
5020 * printcmd.c (display_command): Remove the check to
5021 target_has_execution.
5023 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5025 * ppcobsd-nat.c: Include "obsd-nat.h".
5026 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5028 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5030 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5032 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5033 and 16-bit signed and unsigned arguments. Update comment.
5034 (stap_parse_probe_arguments): Extend code to handle such
5035 arguments. Use warning instead of complaint to notify about
5036 unrecognized bitness.
5038 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5040 PR breakpoints/16889
5041 * stap-probe.c (stap_parse_probe_arguments): Simplify
5042 check for non-prefixed probes (i.e., probes whose
5043 arguments do not start with "N@"). Always set the
5044 argument type to a sane value.
5046 2014-05-01 David Taylor <dtaylor@emc.com>
5048 * remote.c (compare_sections_command): Add -r option to compare
5049 all loadable read-only sections.
5051 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5053 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5054 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5056 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5057 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5058 Remove unused CORE_ADDR argument. Update all callers.
5060 2014-04-29 Pedro Alves <palves@redhat.com>
5062 * remote.c (struct packet_config) <detect>: Extend comment.
5063 (add_packet_config_cmd): Don't set the config's detect or support
5065 (init_all_packet_configs): Also initialize the config's 'detect'
5067 (reset_all_packet_configs_support): New function.
5068 (remote_open_1): Call reset_all_packet_configs_support instead of
5069 init_all_packet_configs.
5070 (_initialize_remote): Initialize all packet configs. Assert that
5071 all packets have an associated command, except a few known
5074 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5076 * dwarf2read.c (read_subrange_type): Handle dynamic
5077 DW_AT_lower_bound attributes.
5079 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5081 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5082 dynamic bounds before computing its upper bound.
5083 (ada_discrete_type_low_bound): Same as above with the lower bound.
5085 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5087 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5088 range types. Adjust the array handling implementation to
5089 take advantage of this change.
5090 (resolve_dynamic_range): New function, mostly extracted from
5091 resolve_dynamic_bounds.
5092 (resolve_dynamic_array): New function, mostly extracted from
5093 resolve_dynamic_bounds.
5094 (resolve_dynamic_bounds): Delete.
5095 (resolve_dynamic_type): Reimplement. Add handling of
5096 TYPE_CODE_RANGE types.
5098 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5100 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5101 handling of parallel ___XA types.
5103 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5105 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5106 unnecessary second call to static_unwrap_type.
5108 2014-04-27 Hui Zhu <hui@codesourcery.com>
5110 * stack.c (print_frame_info): Call do_gdb_disassembly with
5111 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5113 2014-04-26 Doug Evans <xdje42@gmail.com>
5115 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5117 2014-04-25 Pedro Alves <palves@redhat.com>
5120 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5121 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5122 and newline from built string.
5123 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5124 (linux_ptrace_attach_fail_reason): ... this.
5125 * linux-nat.c (linux_nat_attach): Adjust to use
5126 linux_ptrace_attach_fail_reason.
5128 2014-04-25 Pedro Alves <palves@redhat.com>
5130 * remote.c (struct remote_state): Remove multi_process_aware,
5131 non_stop_aware, cond_tracepoints, cond_breakpoints,
5132 breakpoint_commands, fast_tracepoints, static_tracepoints,
5133 install_in_trace, disconnected_tracing,
5134 enable_disable_tracepoints, string_tracing, and
5135 augmented_libraries_svr4_read fields.
5136 (remote_multi_process_p): Move further below in the file.
5137 (struct packet_config): Add comments.
5138 (update_packet_config): Delete function.
5139 (show_packet_config_cmd): Use packet_config_support.
5140 (add_packet_config_cmd): Use NULL as set callback.
5141 (packet_ok): "set remote foo-packet"-style commands no longer
5142 change config->supported -- adjust.
5143 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5144 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5145 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5146 (PACKET_QNonStop, PACKET_multiprocess_feature)
5147 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5148 (PACKET_DisconnectedTracing_feature)
5149 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5150 (set_remote_protocol_packet_cmd): Delete function.
5151 (packet_config_support, packet_support): New functions.
5152 (set_remote_protocol_Z_packet_cmd): Don't call
5153 update_packet_config.
5154 (remote_query_attached, remote_pass_signals)
5155 (remote_program_signals, remote_threads_info)
5156 (remote_threads_extra_info, remote_start_remote): Use
5158 (remote_start_remote): Use packet_config_support and
5160 (init_all_packet_configs): Set all packets to unknown support,
5161 instead of calling update_packet_config.
5162 (remote_check_symbols): Use packet_support.
5163 (remote_supported_packet): Unconditionally set the packet config's
5165 (remote_multi_process_feature, remote_non_stop_feature)
5166 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5167 (remote_breakpoint_commands_feature)
5168 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5169 (remote_install_in_trace_feature)
5170 (remote_disconnected_tracing_feature)
5171 (remote_enable_disable_tracepoint_feature)
5172 (remote_string_tracing_feature)
5173 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5174 (remote_protocol_features): Adjust to use remote_supported_packet
5175 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5176 "ConditionalTracepoints", "ConditionalBreakpoints",
5177 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5178 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5179 "EnableDisableTracepoints", and "tracenz".
5180 (remote_query_supported): Use packet_support.
5181 (remote_open_1): Adjust.
5182 (extended_remote_attach_1): Use packet_support. Switch on the
5183 result of packet_ok instead of checking whether the packet ended
5185 (remote_vcont_resume): Use packet_support.
5186 (remote_resume, remote_stop_ns, fetch_register_using_p)
5187 (remote_prepare_to_store, store_register_using_P)
5188 (check_binary_download, remote_write_bytes): Use packet_support.
5189 (remote_vkill): Use packet_support. Switch on the result of
5190 packet_ok instead of checking whether the packet ended up
5192 (extended_remote_supports_disable_randomization): Use
5194 (extended_remote_run): Switch on the result of packet_ok instead
5195 of checking whether the packet ended up disabled.
5196 (remote_insert_breakpoint, remote_remove_breakpoint)
5197 (remote_insert_watchpoint, remote_remove_watchpoint)
5198 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5200 (remote_search_memory): Use packet_config_support.
5201 (remote_get_thread_local_address, remote_get_tib_address)
5202 (remote_hostio_send_command, remote_can_execute_reverse): Use
5204 (remote_supports_cond_tracepoints)
5205 (remote_supports_cond_breakpoints)
5206 (remote_supports_fast_tracepoints)
5207 (remote_supports_static_tracepoints)
5208 (remote_supports_install_in_trace)
5209 (remote_supports_enable_disable_tracepoint)
5210 (remote_supports_string_tracing)
5211 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5212 the packet config says the feature is enabled or disabled.
5213 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5214 (remote_get_trace_status): Use packet_support.
5215 (remote_set_disconnected_tracing): Adjust to check whether the
5216 feature is enabled with packet_support.
5217 (remote_set_trace_buffer_size, remote_use_agent)
5218 (remote_can_use_agent, remote_supports_btrace): Use
5220 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5221 Use packet_config_support.
5222 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5223 the packet config says the feature is enabled or disabled.
5224 (set_range_stepping): Use packet_support.
5226 2014-04-25 Tom Tromey <tromey@redhat.com>
5228 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5231 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5233 * NEWS: Mention support for C99 variable length arrays.
5235 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5237 * ada-lang.c (standard_exc): Expand introductory comment.
5239 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5240 Walfred Tedeschi <walfred.tedeschi@intel.com>
5242 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5244 (amd64_linux_read_description): Add code to handle AVX512 xstate
5245 mask and return respective tdesc.
5246 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5247 and features/i386/x32-avx512-linux.c.
5248 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5249 (amd64_linux_core_read_description): Add code to handle AVX512
5250 xstate mask and return respective tdesc.
5251 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5252 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5254 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5255 (tdesc_amd64_avx512_linux): New prototype.
5256 (tdesc_x32_avx512_linux): Likewise.
5257 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5258 features/i386/x32-avx512.c.
5259 (amd64_ymm_avx512_names): New register names for pseudo
5261 (amd64_ymmh_avx512_names): New register names for raw registers
5263 (amd64_k_names): New register names for K registers.
5264 (amd64_zmmh_names): New register names for ZMM raw registers.
5265 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5266 (amd64_xmm_avx512_names): New register names for XMM16-31
5268 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5270 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5271 if feature is present.
5272 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5273 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5274 (AMD64_NUM_REGS): Adjust to new number of registers.
5275 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5276 registers supplied via XSTATE by AVX512 registers.
5277 (i386_linux_read_description): Add case for AVX512.
5278 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5279 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5280 (i386_linux_core_read_description): Add case for AVX512.
5281 (i386_linux_init_abi): Install supported register note section
5283 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5285 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5286 registers to be number of zmm7h + 1.
5287 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5288 * i386-tdep.c: Include features/i386/i386-avx512.c.
5289 (i386_zmm_names): Add ZMM pseudo register names array.
5290 (i386_zmmh_names): Add ZMM raw register names array.
5291 (i386_k_names): Add K raw register names array.
5292 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5293 registers. AVX512 has 16 more ZMM registers than there are YMM
5295 (i386_zmmh_regnum_p): Add function to look up register number of
5297 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5298 (i386_k_regnum_p): Likewise for K raw registers.
5299 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5300 registers added by AVX512.
5301 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5302 registers added by AVX512.
5303 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5305 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5306 (i386_pseudo_register_name): Add ZMM pseudo registers.
5307 (i386_zmm_type): Construct and return vector registers type for ZMM
5309 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5310 ZMM0-31 pseudo registers and K registers.
5311 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5312 and YMM16-31 registers from register cache.
5313 (i386_pseudo_register_write): Add code to write K, ZMM and
5315 (i386_register_reggroup_p): Add code to include/exclude AVX512
5316 registers in/from respective register groups.
5317 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5318 registers if feature is present in xcr0.
5319 (i386_gdbarch_init): Add code to initialize AVX512 feature
5320 variables in tdep structure, wire in pseudo registers and call
5321 initialize_tdesc_i386_avx512.
5322 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5324 (i386_regnum): Add AVX512 registers.
5325 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5326 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5327 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5328 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5330 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5331 (i386_ymm_avx512_regnum_p): Likewise.
5332 (i386_k_regnum_p): Likewise.
5333 (i386_zmm_regnum_p): Likewise.
5334 (i386_zmmh_regnum_p): Likewise.
5335 * i387-tdep.c : Update year in copyright notice.
5336 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5338 (XSAVE_YMM_AVX512_ADDR): New macro.
5339 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5341 (XSAVE_XMM_AVX512_ADDR): New macro.
5342 (xsave_avx512_k_offset): New table for K register offsets in
5344 (XSAVE_AVX512_K_ADDR): New macro.
5345 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5347 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5348 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5350 (i387_collect_xsave): Add code to collect AVX512 registers from
5352 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5353 of XMM16-31 registers.
5354 (I387_NUM_K_REGS): New define for number of K registers.
5355 (I387_K0_REGNUM): New define for K0 register number.
5356 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5357 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5358 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5360 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5361 (I387_XMM16_REGNUM): New define for XMM16 register number.
5362 (I387_YMM0_REGNUM): New define for YMM0 register number.
5363 (I387_KEND_REGNUM): New define for last K register number.
5364 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5365 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5367 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5369 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5371 * features/Makefile: Add AVX512 related files.
5372 * features/i386/32bit-avx512.xml: New file.
5373 * features/i386/64bit-avx512.xml: Likewise.
5374 * features/i386/amd64-avx512-linux.c: Likewise.
5375 * features/i386/amd64-avx512-linux.xml: Likewise.
5376 * features/i386/amd64-avx512.c: Likewise.
5377 * features/i386/amd64-avx512.xml: Likewise.
5378 * features/i386/i386-avx512-linux.c: Likewise.
5379 * features/i386/i386-avx512-linux.xml: Likewise.
5380 * features/i386/i386-avx512.c: Likewise.
5381 * features/i386/i386-avx512.xml: Likewise.
5382 * features/i386/x32-avx512-linux.c: Likewise.
5383 * features/i386/x32-avx512-linux.xml: Likewise.
5384 * features/i386/x32-avx512.c: Likewise.
5385 * features/i386/x32-avx512.xml: Likewise.
5386 * regformats/i386/amd64-avx512-linux.dat: New file.
5387 * regformats/i386/amd64-avx512.dat: Likewise.
5388 * regformats/i386/i386-avx512-linux.dat: Likewise.
5389 * regformats/i386/i386-avx512.dat: Likewise.
5390 * regformats/i386/x32-avx512-linux.dat: Likewise.
5391 * regformats/i386/x32-avx512.dat: Likewise.
5392 * NEWS: Add note about new support for AVX512.
5395 2014-04-23 Pedro Alves <palves@redhat.com>
5397 * breakpoint.c (insert_bp_location): Tolerate errors if the
5398 breakpoint is set in a user-loaded objfile.
5399 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5400 location is marked shlib_disabled. If the breakpoint is set in a
5401 user-loaded objfile is a GDB-side memory breakpoint, validate it
5402 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5403 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5405 * mem-break.c (memory_validate_breakpoint): New function.
5406 * objfiles.c (userloaded_objfile_contains_address_p): New
5408 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5409 * target.h (memory_validate_breakpoint): New declaration.
5411 2014-04-23 Pedro Alves <palves@redhat.com>
5413 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5414 the breakpoint is set in a shared library, only suppress
5415 errors for software breakpoints, not hardware breakpoints.
5417 2014-04-22 Pedro Alves <palves@redhat.com>
5419 * infrun.c (schedlock_applies): New function, factored out from
5420 find_thread_needs_step_over.
5421 (find_thread_needs_step_over): Use it.
5422 (switch_back_to_stepped_thread): Always clear trap_expected if the
5423 step over is finished. Return early if scheduler locking applies.
5424 Look for the stepping thread and a potential step-over thread with
5426 (currently_stepping_or_nexting_callback): Delete.
5428 2014-04-22 Nick Clifton <nickc@redhat.com>
5430 * NEWS: Mention that ARM sim now supports tracing.
5432 2014-04-22 Yao Qi <yao@codesourcery.com>
5434 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5436 * tracefile.c (tracefile_fetch_registers): ... it. New
5438 * tracefile.h (tracefile_fetch_registers): Declare.
5439 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5440 tracefile_fetch_registers.
5442 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5445 * windows-nat.c (thread_rec): Don't display a warning when
5446 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5447 fails for any reason, set th->suspended to -1, so that we don't
5448 try to resume such a thread. Also, don't return NULL in these
5449 cases, to avoid completely ruin the session due to "PC register is
5450 not available" error.
5451 (do_windows_fetch_inferior_registers): Check errors in
5452 GetThreadContext call.
5453 (windows_continue): Accept an additional argument KILLED; if not
5454 zero, ignore errors in the SetThreadContext call, since the
5455 inferior was killed and is shutting down.
5456 (windows_resume, get_windows_debug_event)
5457 (windows_create_inferior, windows_mourn_inferior)
5458 (windows_kill_inferior): All callers of windows_continue changed
5459 to adjust to its new calling sequence.
5461 2014-04-19 Yao Qi <yao@codesourcery.com>
5463 * ctf.c (ctf_open): Call post_create_inferior.
5465 2014-04-19 Yao Qi <yao@codesourcery.com>
5467 * ctf.c (handle_id): New static variable.
5468 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5469 value. Get the declaration of event "register" and get length
5470 of field "contents".
5472 2014-04-19 Yao Qi <yao@codesourcery.com>
5474 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5476 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5478 * valops.c (oload_method_static): Remove unnecessary argument
5479 METHOD. Update all callers.
5481 2014-04-18 Pedro alves <palves@redhat.com>
5482 Tom Tromey <tromey@redhat.com>
5485 * frame.c (get_prev_frame_1): Rename to ...
5486 (get_prev_frame_always): ... this, and make extern. Adjust.
5487 (skip_artificial_frames): Use get_prev_frame_always.
5488 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5489 (get_frame_unwind_stop_reason): Adjust to rename.
5490 * frame.h (get_prev_frame_always): Declare.
5491 * inline-frame.c: Include frame.h.
5492 (inline_frame_this_id): Use get_prev_frame_always.
5494 2014-04-18 Tristan Gingold <gingold@adacore.com>
5496 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5497 code by using bfd_mach_o_get_base_address.
5499 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5501 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5502 (spu_ax_pseudo_register_collect): New function.
5503 (spu_ax_pseudo_register_push_stack): Likewise.
5504 (spu_dwarf_reg_to_regnum): Likewise.
5505 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5507 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5509 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5510 Replace FRAME argument with FRAME_ID.
5511 * gdbarch.c, gdbarch.h: Regenerate.
5512 * findvar.c (default_value_from_register): Add GDBARCH argument;
5513 replace FRAME by FRAME_ID. No longer call get_frame_id.
5514 (value_from_register): Update call to gdbarch_value_from_register.
5515 * value.h (default_value_from_register): Update prototype.
5516 * s390-linux-tdep.c (s390_value_from_register): Update interface
5517 and call to default_value_from_register.
5518 * spu-tdep.c (spu_value_from_register): Likewise.
5520 * findvar.c (address_from_register): Remove TYPE argument.
5521 Do not call value_from_register; use gdbarch_value_from_register
5522 with null_frame_id instead.
5523 * value.h (address_from_register): Update prototype.
5524 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5525 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5526 address_from_register interface change.
5528 2014-04-17 Yao Qi <yao@codesourcery.com>
5530 * gdbtypes.h: Update comments to link to types and macros'
5533 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5535 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5537 2014-04-16 Keith Seitz <keiths@redhat.com>
5540 * dwarf2read.c (skip_one_die): Check that all relative-offset
5541 sibling DIEs fall within range of the current reader's buffer.
5542 (read_partial_die): Likewise.
5544 2014-04-16 Keith Seitz <keiths@redhat.com>
5547 * cp-namespace.c (lookup_symbol_file): If the type name of
5548 `this' is NULL, return immediately.
5550 2014-04-14 Keith Seitz <keiths@redhat.com>
5553 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5554 from symbol_matches_domain in symtab.c. All local callers
5555 of symbol_matches_domain updated.
5556 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5557 search STRUCT_DOMAIN.
5558 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5559 independently. standard_lookup will do that automatically.
5560 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5561 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5562 (cp_lookup_symbol_in_namespace): Likewise.
5563 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5564 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5565 may return a STRUCT_DOMAIN match.
5566 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5567 * cp-support.c: Include language.h.
5568 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5570 * psymtab.c (match_partial_symbol): Compare the requested
5571 domain with the symbol's domain directly.
5572 (lookup_partial_symbol): Likewise.
5573 * symtab.c (lookup_symbol_in_language): Explain when/why
5574 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5575 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5576 appropriate languages.
5577 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5578 and moved to ada-lang.c
5579 (lookup_block_symbol): Explain that this function only returns
5580 symbol matching the requested DOMAIN.
5581 Compare the requested domain with the symbol's domain directly.
5582 (iterate_over_symbols): Compare the requested domain with the
5583 symbol's domain directly.
5584 * symtab.h (symbol_matches_domain): Remove.
5586 2014-04-14 Tom Tromey <tromey@redhat.com>
5589 * c-exp.y (type_aggregate_p): New function.
5590 (qualified_name, classify_inner_name): Use it.
5591 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5592 and TYPE_TARGET_TYPE of an enum type.
5593 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5595 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5596 handle TYPE_DECLARED_CLASS.
5597 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5599 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5600 * valops.c (enum_constant_from_type): New function.
5601 (value_aggregate_elt): Use it.
5602 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5605 2014-04-14 Tom Tromey <tromey@redhat.com>
5607 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5608 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5610 * value.h (value_aggregate_elt): Update.
5612 2014-04-14 Tom Tromey <tromey@redhat.com>
5614 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5616 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5618 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5619 (evaluate_subexp_standard): Pass noside argument.
5620 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5621 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5622 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5623 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5624 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5626 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5628 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5629 points to a constant blob.
5631 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5633 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5634 property and store it as the high bound and flag the range accordingly.
5635 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5636 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5637 * gdbtypes.h (enum range_flags): New enum.
5638 (struct range_bounds): Add flags member.
5640 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5642 * c-typeprint.c (c_type_print_varspec_suffix): Added
5643 check for not yet resolved high bound. If unresolved, print
5644 "variable length" string to the console instead of random
5647 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5649 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5651 (ada_template_to_fixed_record_type_1): Likewise.
5652 (ada_to_fixed_type_1): Likewise.
5653 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5654 (cp_print_value): Likewise.
5655 * d-valprint.c (dynamic_array_type): Likewise.
5656 * findvar.c (address_of_variable): Likewise.
5657 * jv-valprint.c (java_value_print): Likewise.
5658 * valops.c (value_ind): Likewise.
5659 * value.c (coerce_ref): Likewise.
5661 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5663 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5664 value and retrieve the dynamic type size.
5666 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5668 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5669 passed to sizeof is dynamic evaluate the argument to compute the length.
5671 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5672 Joel Brobecker <brobecker@adacore.com>
5674 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5675 (dwarf2_evaluate_property): New function.
5676 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5677 * dwarf2read.c (attr_to_dynamic_prop): New function.
5678 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5680 * gdbtypes.c: Include dwarf2loc.h.
5681 (is_dynamic_type): New function.
5682 (resolve_dynamic_type): New function.
5683 (resolve_dynamic_bounds): New function.
5684 (get_type_length): New function.
5685 (check_typedef): Use get_type_length to compute type length.
5686 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5687 (TYPE_LOW_BOUND_KIND): New macro.
5688 (is_dynamic_type): New function prototype.
5689 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5690 to resolve dynamic properties of the type. Update comment.
5691 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5693 2014-04-14 Richard Henderson <rth@redhat.com>
5695 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5697 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5698 Doug Evans <xdje42@gmail.com>
5700 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5701 dereference TYPE_CODE_REF values.
5703 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5705 Revert the following changes due to regressions:
5707 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5708 (dwarf2_evaluate_property): New function.
5709 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5710 * dwarf2read.c (attr_to_dynamic_prop): New function.
5711 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5713 * gdbtypes.c: Include dwarf2loc.h.
5714 (is_dynamic_type): New function.
5715 (resolve_dynamic_type): New function.
5716 (resolve_dynamic_bounds): New function.
5717 (get_type_length): New function.
5718 (check_typedef): Use get_type_length to compute type length.
5719 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5720 (TYPE_LOW_BOUND_KIND): New macro.
5721 (is_dynamic_type): New function prototype.
5722 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5723 to resolve dynamic properties of the type. Update comment.
5724 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5726 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5727 passed to sizeof is dynamic evaluate the argument to compute the length.
5729 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5730 value and retrieve the dynamic type size.
5732 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5733 (ada_template_to_fixed_record_type_1): Likewise.
5734 (ada_to_fixed_type_1): Likewise.
5735 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5736 (cp_print_value): Likewise.
5737 * d-valprint.c (dynamic_array_type): Likewise.
5738 * eval.c (evaluate_subexp_with_coercion): Likewise.
5739 * findvar.c (address_of_variable): Likewise.
5740 * jv-valprint.c (java_value_print): Likewise.
5741 * valops.c (value_ind): Likewise.
5742 * value.c (coerce_ref): Likewise.
5744 * c-typeprint.c (c_type_print_varspec_suffix): Added
5745 check for not yet resolved high bound. If unresolved, print
5746 "variable length" string to the console instead of random
5749 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5750 property and store it as the high bound and flag the range accordingly.
5751 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5752 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5753 * gdbtypes.h (enum range_flags): New enum.
5754 (struct range_bounds): Add flags member.
5756 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5757 points to a constant blob.
5759 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5760 (evaluate_subexp_standard): Pass noside argument.
5761 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5762 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5763 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5764 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5765 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5767 2014-04-11 Keith Seitz <keiths@redhat.com>
5770 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5771 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5774 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5776 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5777 (evaluate_subexp_standard): Pass noside argument.
5778 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5779 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5780 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5781 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5782 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5784 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5786 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5787 points to a constant blob.
5789 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5791 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5792 property and store it as the high bound and flag the range accordingly.
5793 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5794 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5795 * gdbtypes.h (enum range_flags): New enum.
5796 (struct range_bounds): Add flags member.
5798 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5800 * c-typeprint.c (c_type_print_varspec_suffix): Added
5801 check for not yet resolved high bound. If unresolved, print
5802 "variable length" string to the console instead of random
5805 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5807 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5808 (ada_template_to_fixed_record_type_1): Likewise.
5809 (ada_to_fixed_type_1): Likewise.
5810 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5811 (cp_print_value): Likewise.
5812 * d-valprint.c (dynamic_array_type): Likewise.
5813 * eval.c (evaluate_subexp_with_coercion): Likewise.
5814 * findvar.c (address_of_variable): Likewise.
5815 * jv-valprint.c (java_value_print): Likewise.
5816 * valops.c (value_ind): Likewise.
5817 * value.c (coerce_ref): Likewise.
5819 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5821 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5822 value and retrieve the dynamic type size.
5824 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5826 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5827 passed to sizeof is dynamic evaluate the argument to compute the length.
5829 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5831 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5832 (dwarf2_evaluate_property): New function.
5833 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5834 * dwarf2read.c (attr_to_dynamic_prop): New function.
5835 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5837 * gdbtypes.c: Include dwarf2loc.h.
5838 (is_dynamic_type): New function.
5839 (resolve_dynamic_type): New function.
5840 (resolve_dynamic_bounds): New function.
5841 (get_type_length): New function.
5842 (check_typedef): Use get_type_length to compute type length.
5843 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5844 (TYPE_LOW_BOUND_KIND): New macro.
5845 (is_dynamic_type): New function prototype.
5846 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5847 to resolve dynamic properties of the type. Update comment.
5848 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5850 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5852 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5853 declaring high/low bounds and change uses accordingly. Call
5854 create_range_type instead of create_static_range_type.
5855 * gdbtypes.c (create_range_type): New function.
5856 (create_range_type): Convert bounds into struct bound_prop and pass
5857 them to create_range_type.
5858 * gdbtypes.h (struct bound_prop): New struct.
5859 (create_range_type): New function prototype.
5860 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5861 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5862 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5864 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5868 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5869 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5870 * ada-lang.c: All uses of create_range_type updated.
5871 * coffread.c: All uses of create_range_type updated.
5872 * dwarf2read.c: All uses of create_range_type updated.
5873 * f-exp.y: All uses of create_range_type updated.
5874 * m2-valprint.c: All uses of create_range_type updated.
5875 * mdebugread.c: All uses of create_range_type updated.
5876 * stabsread.c: All uses of create_range_type updated.
5877 * valops.c: All uses of create_range_type updated.
5878 * valprint.c: All uses of create_range_type updated.
5880 2014-04-10 Pedro Alves <palves@redhat.com>
5882 * breakpoint.c (single_step_breakpoints)
5883 (single_step_gdbarch): Move up in the file.
5884 (one_breakpoint_xfer_memory): New function, factored out from ...
5885 (breakpoint_xfer_memory): ... here. Also process single-step
5888 2014-04-09 Tristan Gingold <gingold@adacore.com>
5890 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5892 (darwin_decode_exception_message): Free port only after use.
5894 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5896 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5897 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5898 when setting the size of call_length.
5900 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5902 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5903 dereference TYPE_CODE_REF values.
5905 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5907 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5908 end of warning message.
5910 2014-04-03 Doug Evans <dje@google.com>
5912 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5913 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5915 2014-04-02 Alan Modra <amodra@gmail.com>
5917 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5918 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5919 (struct symbol_file_add_from_memory_args): Add size field.
5920 (find_vdso_size): New function.
5921 (add_vsyscall_page): Attempt to find vdso size.
5923 2014-04-01 Doug Evans <dje@google.com>
5925 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5927 2014-04-01 Tristan Gingold <gingold@adacore.com>
5929 * darwin-nat.c (darwin_encode_reply): Add prototype.
5930 (darwin_decode_exception_message): Reply to unknown inferiors.
5931 (darwin_decode_message): Handle message by id. Ignore message
5932 to unknown inferior.
5933 (darwin_wait): Discard unknown messages, add debug trace.
5935 2014-03-31 Doug Evans <dje@google.com>
5937 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5940 2014-03-31 Doug Evans <dje@google.com>
5942 New option "set print symbol-loading".
5944 * solib.c (solib_read_symbols): Only print symbol loading messages
5946 (solib_add): If symbol loading is in "brief" mode, notify user
5947 symbols are being loaded.
5948 (reload_shared_libraries_1): Ditto.
5949 * symfile.c (print_symbol_loading_off): New static global.
5950 (print_symbol_loading_brief): New static global.
5951 (print_symbol_loading_full): New static global.
5952 (print_symbol_loading_enums): New static global.
5953 (print_symbol_loading): New static global.
5954 (print_symbol_loading_p): New function.
5955 (symbol_file_add_with_addrs): Only print symbol loading messages
5957 (_initialize_symfile): Register "print symbol-loading" set/show
5959 * symfile.h (print_symbol_loading_p): Declare.
5961 2014-03-30 Doug Evans <xdje42@gmail.com>
5963 * infrun.c (set_last_target_status): New function.
5964 (handle_inferior_event): Call it.
5966 2014-03-30 Doug Evans <xdje42@gmail.com>
5968 * inferior.h (enum stop_kind): Improve comment.
5970 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5972 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5973 a reference, strip the reference layer before calling
5974 the lang_ops value_has_mutated callback.
5976 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5978 Remove some globals from our parser.
5979 * language.c (unk_lang_parser): Add "struct parser_state"
5981 * language.h (struct language_defn) <la_parser>: Likewise.
5982 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5983 (initialize_expout): Add "struct parser_state" argument.
5984 Rewrite function to use the parser state.
5985 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5986 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5987 write_exp_elt_longcst, write_exp_elt_dblcst,
5988 write_exp_elt_decfloatcst, write_exp_elt_type,
5989 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5990 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5991 write_dollar_variable): Likewise.
5992 (parse_exp_in_context_1): Use parser state.
5993 (insert_type_address_space): Add "struct parser_state" argument.
5995 (increase_expout_size): New function.
5996 * parser-defs.h: Forward declare "struct language_defn" and
5997 "struct parser_state".
5998 (expout, expout_size, expout_ptr): Remove extern declarations.
5999 (parse_gdbarch, parse_language): Rewrite macro declarations to
6000 accept the parser state.
6001 (struct parser_state): New struct.
6002 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6003 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6004 write_exp_elt_decfloatcst, write_exp_elt_type,
6005 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6006 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6007 write_exp_msymbol, write_dollar_variable,
6008 mark_struct_expression, insert_type_address_space): Add "struct
6009 parser_state" argument.
6010 (increase_expout_size): New function.
6011 * utils.c (do_clear_parser_state): New function.
6012 (make_cleanup_clear_parser_state): Likewise.
6013 * utils.h (make_cleanup_clear_parser_state): New function
6015 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6016 Update calls to write_exp* in order to pass the parser state.
6017 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6018 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6019 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6020 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6021 * stap-probe.c (stap_parse_register_operand): Likewise.
6022 (stap_parse_single_operand): Likewise.
6023 (stap_parse_argument_1): Likewise.
6024 (stap_parse_argument): Use parser state.
6025 * stap-probe.h: Include "parser-defs.h".
6026 (struct stap_parse_info) <pstate>: New field.
6027 * c-exp.y (parse_type): Rewrite to use parser state.
6028 (yyparse): Redefine to c_parse_internal.
6029 (pstate): New global variable.
6030 (parse_number): Add "struct parser_state" argument.
6031 (write_destructor_name): Likewise.
6032 (type_exp): Update calls to write_exp* and similars in order to
6034 (exp1, exp, variable, qualified_name, space_identifier,
6035 typename, typebase): Likewise.
6036 (write_destructor_name, parse_number, lex_one_token,
6037 classify_name, classify_inner_name, c_parse): Add "struct
6038 parser_state" argument. Update function to use parser state.
6039 * c-lang.h: Forward declare "struct parser_state".
6040 (c_parse): Add "struct parser_state" argument.
6041 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6042 (yyparse): Redefine macro to ada_parse_internal.
6043 (pstate): New variable.
6044 (write_int, write_object_renaming, write_var_or_type,
6045 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6046 type_int, type_long, type_long_long, type_float, type_double,
6047 type_long_double, type_char, type_boolean, type_system_address):
6048 Add "struct parser_state" argument.
6049 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6050 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6051 var_or_type, aggregate, aggregate_component_list,
6052 positional_list, others, component_group,
6053 component_associations): Update calls to write_exp* and similar
6054 functions in order to use parser state.
6055 (ada_parse, write_var_from_sym, write_int,
6056 write_exp_op_with_string, write_object_renaming,
6057 find_primitive_type, write_selectors, write_ambiguous_var,
6058 write_var_or_type, write_name_assoc, type_int, type_long,
6059 type_long_long, type_float, type_double, type_long_double,
6060 type_char, type_boolean, type_system_address): Add "struct
6061 parser_state" argument. Adjust function to use parser state.
6062 * ada-lang.c (parse): Likewise.
6063 * ada-lang.h: Forward declare "struct parser_state".
6064 (ada_parse): Add "struct parser_state" argument.
6065 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6066 calls to both functions.
6067 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6069 (yyparse): Redefine macro to f_parse_internal.
6070 (pstate): New variable.
6071 (parse_number): Add "struct parser_state" argument.
6072 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6073 and similars in order to use parser state.
6074 (parse_number): Adjust code to use parser state.
6076 (f_parse): New function.
6077 * f-lang.h: Forward declare "struct parser_state".
6078 (f_parse): Add "struct parser_state" argument.
6079 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6081 (yyparse): Redefine macro for java_parse_internal.
6082 (pstate): New variable.
6083 (push_expression_name, push_expression_name, insert_exp): Add
6084 "struct parser_state" argument.
6085 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6086 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6087 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6088 PostIncrementExpression, PostDecrementExpression,
6089 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6090 UnaryExpressionNotPlusMinus, CastExpression,
6091 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6092 RelationalExpression, EqualityExpression, AndExpression,
6093 ExclusiveOrExpression, InclusiveOrExpression,
6094 ConditionalAndExpression, ConditionalOrExpression,
6095 ConditionalExpression, Assignment, LeftHandSide): Update
6096 calls to write_exp* and similars in order to use parser state.
6097 (parse_number): Ajust code to use parser state.
6099 (java_parse): New function.
6100 (push_variable): Add "struct parser_state" argument. Adjust
6101 code to user parser state.
6102 (push_fieldnames, push_qualified_expression_name,
6103 push_expression_name, insert_exp): Likewise.
6104 * jv-lang.h: Forward declare "struct parser_state".
6105 (java_parse): Add "struct parser_state" argument.
6106 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6108 (yyparse): Redefine macro to m2_parse_internal.
6109 (pstate): New variable.
6110 (type_exp, exp, fblock, variable, type): Update calls to
6111 write_exp* and similars to use parser state.
6113 (m2_parse): New function.
6114 * m2-lang.h: Forward declare "struct parser_state".
6115 (m2_parse): Add "struct parser_state" argument.
6116 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6117 * objc-lang.h: Forward declare "struct parser_state".
6118 (end_msglist): Add "struct parser_state" argument.
6119 * p-exp.y (parse_type): Rewrite macro to use parser state.
6120 (yyparse): Redefine macro to pascal_parse_internal.
6121 (pstate): New variable.
6122 (parse_number): Add "struct parser_state" argument.
6123 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6124 write_exp* and similars in order to use parser state.
6125 (parse_number, yylex): Adjust code to use parser state.
6126 (pascal_parse): New function.
6127 * p-lang.h: Forward declare "struct parser_state".
6128 (pascal_parse): Add "struct parser_state" argument.
6129 * go-exp.y (parse_type): Rewrite macro to use parser state.
6130 (yyparse): Redefine macro to go_parse_internal.
6131 (pstate): New variable.
6132 (parse_number): Add "struct parser_state" argument.
6133 (type_exp, exp1, exp, variable, type): Update calls to
6134 write_exp* and similars in order to use parser state.
6135 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6136 to use parser state.
6137 (go_parse): Likewise.
6138 * go-lang.h: Forward declare "struct parser_state".
6139 (go_parse): Add "struct parser_state" argument.
6141 2014-03-27 Doug Evans <dje@google.com>
6143 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6145 2014-03-27 Doug Evans <dje@google.com>
6147 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6148 Remove argument abbrev_section. All callers updated.
6150 2014-03-27 Doug Evans <dje@google.com>
6152 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6153 addr_base, ranges_base.
6155 2014-03-26 Keith Seitz <keiths@redhat.com>
6157 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6158 types, not VAR_DOMAIN.
6160 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6162 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6164 * features/nios2-linux.c: Regenerated.
6165 * features/nios2.c: Regenerated.
6167 2014-03-25 Pedro Alves <palves@redhat.com>
6169 * cli/cli-script.c (script_from_file): Force the interpreter to
6172 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6174 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6175 small stack allocation.
6177 2014-03-24 Tristan Gingold <gingold@adacore.com>
6179 * darwin-nat.c (exc_server): Remove unused prototype.
6180 (darwin_dump_message): Correctly display data on x86_64.
6181 (darwin_encode_reply): Fix style.
6182 Add comments and fix indentation.
6184 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6186 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6188 2014-03-22 Doug Evans <xdje42@gmail.com>
6190 * infcmd.c: Whitespace fixes.
6191 (interrupt_command): Merge two function comments into one.
6193 2014-03-22 Doug Evans <xdje42@gmail.com>
6195 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6198 2014-03-22 Yao Qi <yao@codesourcery.com>
6200 * remote.c (target_read_live_memory): Remove.
6201 (memory_xfer_live_readonly_partial): Rename it to
6202 remote_xfer_live_readonly_partial. Remove argument 'object'.
6203 All callers updated. Call remote_read_bytes_1
6204 instead of target_read_live_memory.
6205 * tracepoint.c (set_traceframe_number): Remove.
6206 (make_cleanup_restore_traceframe_number): Likewise .
6207 * tracepoint.h (set_traceframe_number): Remove declaration.
6208 (make_cleanup_restore_traceframe_number): Likewise.
6210 2014-03-22 Yao Qi <yao@codesourcery.com>
6212 * remote.c (remote_read_bytes): Move code on reading from the
6214 (remote_read_bytes_1): ... here. New function.
6216 2014-03-22 Yao Qi <yao@codesourcery.com>
6218 * ctf.c (ctf_xfer_partial): Check the return value of
6219 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6220 return TARGET_XFER_UNAVAILABLE.
6221 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6222 * target.c (target_read_live_memory): Move it to remote.c.
6223 (memory_xfer_live_readonly_partial): Likewise.
6224 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6225 * remote.c (target_read_live_memory): Moved from target.c.
6226 (memory_xfer_live_readonly_partial): Likewise.
6227 (remote_read_bytes): Factored out from
6228 memory_xfer_partial_1.
6230 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6232 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6235 2014-03-21 Pedro Alves <palves@redhat.com>
6237 * infrun.c (normal_stop): Extend comment.
6239 2014-03-21 Hui Zhu <hui@codesourcery.com>
6240 Pedro Alves <palves@redhat.com>
6242 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6244 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6245 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6246 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6248 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6250 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6251 `z' formatted output modifier.
6253 2014-03-20 Tom Tromey <tromey@redhat.com>
6254 Sergio Durigan Junior <sergiodj@redhat.com>
6256 * probe.c (parse_probes): Turn assert into an ordinary error.
6257 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6258 exceptions when parsing probes. Rearrange the code for clarity.
6260 2014-03-20 Tom Tromey <tromey@redhat.com>
6263 * top.c (execute_command): Only dispatch events if the command
6266 2014-03-20 Tom Tromey <tromey@redhat.com>
6269 * infcall.c: Include event-top.h.
6270 (run_inferior_call): Call async_disable_stdin if needed.
6272 2014-03-20 Pedro Alves <palves@redhat.com>
6274 * infrun.c (prepare_to_proceed): Delete.
6275 (thread_still_needs_step_over): New function.
6276 (find_thread_needs_step_over): New function.
6277 (proceed): If the current thread needs a step-over, set its
6278 steping_over_breakpoint flag. Adjust to use
6279 find_thread_needs_step_over instead of prepare_to_proceed.
6280 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6281 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6283 (switch_back_to_stepped_thread): Step over breakpoints of all
6284 threads not the stepping thread, before switching back to the
6287 2014-03-20 Pedro Alves <palves@redhat.com>
6289 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6291 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6292 * infrun.c (saved_singlestep_ptid)
6293 (stepping_past_singlestep_breakpoint): Delete.
6294 (resume): Remove stepping_past_singlestep_breakpoint handling.
6295 (proceed): Store the prev_pc of the stepping thread too.
6296 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6298 (enum infwait_states): Delete infwait_thread_hop_state.
6299 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6301 (handle_inferior_event): Adjust.
6302 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6303 handling and the thread-hop code. Before removing single-step
6304 breakpoints, check whether the thread hit a single-step breakpoint
6305 of another thread. If it did, the trap is not a random signal.
6306 (switch_back_to_stepped_thread): If the event thread hit a
6307 single-step breakpoint, unblock it before switching to the
6308 stepping thread. Handle the case of the stepped thread having
6310 (keep_going): Handle the case of the current thread moving past a
6311 single-step breakpoint.
6313 2014-03-20 Pedro Alves <palves@redhat.com>
6316 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6317 are being stepped over.
6318 (breakpoint_address_match): Make extern.
6319 * breakpoint.h (breakpoint_address_match): New declaration.
6320 * inferior.h (stepping_past_instruction_at): New declaration.
6321 * infrun.c (struct step_over_info): New type.
6322 (step_over_info): New global.
6323 (set_step_over_info, clear_step_over_info)
6324 (stepping_past_instruction_at): New functions.
6325 (handle_inferior_event): Clear the step-over info when
6326 trap_expected is cleared.
6327 (resume): Remove now stale comment.
6328 (clear_proceed_status): Clear step-over info.
6329 (proceed): Adjust step-over handling to set or clear the step-over
6330 info instead of removing all breakpoints.
6331 (handle_signal_stop): When setting up a thread-hop, don't remove
6333 (stop_stepping): Clear step-over info.
6334 (keep_going): Adjust step-over handling to set or clear step-over
6335 info and then always inserting breakpoints, instead of removing
6336 all breakpoints when stepping over one.
6338 2014-03-20 Pedro Alves <palves@redhat.com>
6340 * infrun.c (previous_inferior_ptid): Adjust comment.
6341 (deferred_step_ptid): Delete.
6342 (infrun_thread_ptid_changed, prepare_to_proceed)
6343 (init_wait_for_inferior): Adjust.
6344 (handle_signal_stop): Delete deferred_step_ptid handling.
6346 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6349 * defs.h (sync_quit_force_run): New declaration.
6350 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6351 * event-top.c (async_sigterm_handler): New declaration.
6352 (async_sigterm_token): New variable.
6353 (async_init_signals): Create also async_sigterm_token.
6354 (async_sigterm_handler): New function.
6355 (sync_quit_force_run): New variable.
6356 (handle_sigterm): Replace quit_force call by other calls.
6357 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6359 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6361 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6362 offset into SPE pseudo registers.
6364 2014-03-18 Pedro Alves <palves@redhat.com>
6367 * inferior.h (print_stop_event): Declare.
6368 * infrun.c (print_stop_event): New, factored out from ...
6369 (normal_stop): ... this.
6370 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6371 of bpstat_print/print_stack_frame.
6373 2014-03-17 Tom Tromey <tromey@redhat.com>
6375 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6377 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6379 * ada-lang.c (decode_constrained_packed_array): Perform a
6380 minimal coercion for reference with coerce_ref instead of
6383 2014-03-17 Tristan Gingold <gingold@adacore.com>
6385 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6386 (darwin_solib_create_inferior_hook): Emit a warning if version
6389 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6391 * python/py-value.c (get_field_flag): Cast flag_name argument to
6392 PyObject_GetAttrString to support Python 2.4.
6394 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6396 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6397 (Global Maintainers): Remove Jan Kratochvil.
6399 2014-03-14 Pedro Alves <palves@redhat.com>
6401 * inferior.h (terminal_ours_for_output): Rename to ...
6402 (child_terminal_ours_for_output): ... this.
6403 (terminal_save_ours): Rename to ...
6404 (child_terminal_save_ours): ... this.
6405 (terminal_ours): Rename to ...
6406 (child_terminal_ours): ... this.
6407 (terminal_inferior): Rename to ...
6408 (child_terminal_inferior): ... this.
6409 (terminal_init_inferior): Rename to ...
6410 (child_terminal_init_inferior): ... this.
6411 (terminal_init_inferior_with_pgrp): Rename to ...
6412 (child_terminal_init_inferior_with_pgrp): ... this.
6413 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6414 (child_terminal_init_with_pgrp): ... this.
6415 (terminal_save_ours): Rename to ...
6416 (child_terminal_save_ours): ... this.
6417 (terminal_init_inferior): Rename to ...
6418 (child_terminal_init): ... this. Adjust.
6419 (terminal_inferior): Rename to ...
6420 (child_terminal_inferior): ... this.
6421 (terminal_ours_for_output): Rename to ...
6422 (child_terminal_ours_for_output): ... this. Adjust.
6423 (terminal_ours): Rename to ...
6424 (child_terminal_ours): ... this.
6425 (terminal_ours_1): Rename to ...
6426 (child_terminal_ours_1): ... this. Adjust.
6427 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6428 * windows-nat.c (do_initial_windows_stuff): Adjust.
6429 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6430 (gnu_terminal_init): ... this. Adjust.
6431 (gnu_target): Adjust.
6432 * inf-child.c (inf_child_target): Adjust.
6434 2014-03-13 Doug Evans <xdje42@gmail.com>
6437 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6440 2014-03-13 Doug Evans <xdje42@gmail.com>
6442 * value.c (record_latest_value): Call release_value_or_incref
6443 instead of release_value.
6445 2014-03-13 Pedro Alves <palves@redhat.com>
6447 * procfs.c (procfs_target): Don't override to_shortname,
6448 to_longname or to_doc.
6450 2014-03-13 Pedro Alves <palves@redhat.com>
6452 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6453 Unix in user visible strings.
6455 2014-03-12 Stan Shebs <stan@codesourcery.com>
6457 * gdbtypes.h: Annotate comments for Doxygen, add a page
6458 block comment with some general info.
6460 2014-03-12 Pedro Alves <palves@redhat.com>
6462 * infcmd.c (prepare_execution_command): New function, factored out
6463 from several execution commands.
6464 (run_command_1, continue_command, step_1, jump_command)
6465 (signal_command, until_command, advance_command, finish_command)
6466 (attach_command): Use prepare_execution_command.
6468 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6470 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6473 (struct arm_linux_thread_points): Removed.
6474 (struct arm_linux_process_info): New.
6475 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6476 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6477 (arm_linux_find_breakpoints_by_tid): Removed.
6478 (struct arch_lwp_info): New.
6479 (arm_linux_find_process_pid): New functions.
6480 (arm_linux_add_process): New functions.
6481 (arm_linux_process_info_get): New functions.
6482 (arm_linux_forget_process): New function.
6483 (arm_linux_get_debug_reg_state): New function.
6484 (struct update_registers_data): New.
6485 (update_registers_callback): New function.
6486 (arm_linux_insert_hw_breakpoint1): Updated.
6487 (arm_linux_remove_hw_breakpoint1): Updated.
6488 (arm_linux_insert_hw_breakpoint): Updated.
6489 (arm_linux_remove_hw_breakpoint): Updated.
6490 (arm_linux_insert_watchpoint): Updated.
6491 (arm_linux_remove_watchpoint): Updated.
6492 (arm_linux_new_thread): Updated.
6493 (arm_linux_prepare_to_resume): New function.
6494 (arm_linux_new_fork): New function.
6495 (_initialize_arm_linux_nat): Updated.
6497 2014-03-12 Pedro Alves <palves@redhat.com>
6499 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6501 2014-03-12 Tom Tromey <tromey@redhat.com>
6503 * inf-child.c (return_zero): New function.
6504 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6505 * aix-thread.c (aix_thread_inferior_created): New function.
6506 (aix_thread_attach): Remove.
6507 (init_aix_thread_ops): Don't set to_attach.
6508 (_initialize_aix_thread): Register inferior_created observer.
6509 * corelow.c (init_core_ops): Don't set to_attach or
6511 * exec.c (init_exec_ops): Don't set to_attach or
6513 * infcmd.c (run_command_1): Use find_run_target. Make direct
6515 (attach_command): Use find_attach_target. Make direct target
6517 * record-btrace.c (init_record_btrace_ops): Don't set
6519 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6521 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6522 set to_create_inferior.
6523 * target.c (complete_target_initialization): Add assertion.
6524 (target_create_inferior): Remove.
6525 (find_default_attach, find_default_create_inferior): Remove.
6526 (find_attach_target, find_run_target): New functions.
6527 (find_default_is_async_p, find_default_can_async_p)
6528 (target_supports_non_stop, target_attach): Remove.
6529 (init_dummy_target): Don't set to_create_inferior or
6530 to_supports_non_stop.
6531 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6532 TARGET_DEFAULT_FUNC.
6533 <to_create_inferior>: Add comment.
6534 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6535 TARGET_DEFAULT_RETURN.
6536 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6537 (find_attach_target, find_run_target): Declare.
6538 (target_create_inferior): Remove.
6539 (target_has_execution_1): Update comment.
6540 (target_supports_non_stop): Remove.
6541 * target-delegates.c: Rebuild.
6543 2014-03-12 Pedro Alves <palves@redhat.com>
6545 * inf-child.h: Update comment to not mention Unix.
6547 2014-03-12 Pedro Alves <palves@redhat.com>
6549 * inf-child.c: Update top comment to not mention Unix. Add
6550 generic comment describing how this target is meant to be used.
6551 (inf_child_post_attach, inf_child_post_startup_inferior)
6552 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6555 2014-03-12 Pedro Alves <palves@redhat.com>
6557 * nto-procfs.c: Include inf-child.h.
6558 (procfs_ops): Delete global.
6559 (procfs_can_run): Delete method.
6560 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6561 target pointer instead of referencing procfs_ops.
6562 (procfs_prepare_to_store): Delete.
6563 (init_procfs_ops): Delete function.
6564 (procfs_target): New function, based on init_procfs_ops, but
6565 inherit inf_child_target.
6566 (_initialize_procfs): Use procfs_target.
6568 2014-03-12 Pedro Alves <palves@redhat.com>
6570 * windows-nat.c: Include inf-child.h.
6571 (windows_ops): Delete global.
6572 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6574 (init_windows_ops): Delete function.
6575 (windows_target): New function, based on init_windows_ops, but
6576 inherit inf_child_target.
6577 (_initialize_windows_nat): Use windows_target. Install x86
6578 specific target methods here.
6580 2014-03-10 Doug Evans <xdje42@gmail.com>
6582 * guile/guile.c (call_initialize_gdb_module): New function.
6583 (initialize_guile): Replace call to scm_init_guile with call to
6586 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6588 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6589 in call to TYPE_CODE macro.
6591 2014-03-10 Jerome Guitton <guitton@adacore.com>
6593 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6594 Resolve tagged types to full view.
6596 2014-03-10 Hui Zhu <hui@codesourcery.com>
6598 * target.h (target_insert_breakpoint): Remove "hardware" from its
6601 2014-03-07 Doug Evans <dje@google.com>
6603 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6605 2014-03-07 Doug Evans <dje@google.com>
6607 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6608 Remove unused local comp_dir_attr. Assert exactly one of
6609 stub_comp_unit_die, stub_comp_dir is non-NULL.
6611 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6613 * target.h (complete_target_initialization, add_target):
6616 2014-03-07 Pedro Alves <palves@redhat.com>
6618 * go32-nat.c: Include inf-child.h.
6619 (go32_ops): Delete global.
6620 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6622 (go32_create_inferior): Push the passed in target pointer instead
6623 of referencing go32_ops.
6624 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6625 (go32_target): New function, based on init_go32_ops, but inherit
6627 (_initialize_go32_nat): Use go32_target. Move parts of
6630 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6632 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6633 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6634 SYMBOL_VALUE_ADDRESS.
6635 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6637 2014-03-06 Yao Qi <yao@codesourcery.com>
6639 * breakpoint.c (get_tracepoint_by_number): Remove argument
6640 optional_p. All callers updated. Adjust comments. Update
6642 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6644 2014-03-06 Yao Qi <yao@codesourcery.com>
6646 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6647 early if get_number returns zero. Use 'p' instead of 'args'.
6649 2014-03-06 Yao Qi <yao@codesourcery.com>
6651 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6654 2014-03-06 Yao Qi <yao@codesourcery.com>
6656 PR breakpoints/16508
6657 * tracepoint.c (check_trace_running): New function.
6658 (trace_find_command): Move code to check_trace_running and
6659 call check_trace_running.
6660 (trace_find_pc_command): Likewise.
6661 (trace_find_tracepoint_command): Likewise.
6662 (trace_find_line_command): Likewise.
6663 (trace_find_range_command): Likewise.
6664 * tracepoint.h (check_trace_running): Likewise.
6665 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6667 2014-03-06 Yao Qi <yao@codesourcery.com>
6669 * target.h (struct target_ops) <to_traceframe_info>: Use
6670 TARGET_DEFAULT_NORETURN (tcomplain ()).
6671 * target-delegates.c: Regenerated.
6673 2014-03-05 Pedro Alves <palves@redhat.com>
6676 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6677 void. Update comment.
6678 (dcache_xfer_memory): Delete.
6679 (dcache_read_memory_partial): New, based on the read bits of
6681 (dcache_update): Add status parameter. Use ULONGEST for len, and
6682 adjust. Discard cache lines if the reason for the update was
6684 * dcache.h (dcache_xfer_memory): Delete declaration.
6685 (dcache_read_memory_partial): New declaration.
6686 (dcache_update): Update prototype.
6687 * target.c (raw_memory_xfer_partial): Update the dcache here.
6688 (memory_xfer_partial_1): Don't handle dcache writes here.
6690 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6692 * remote-sim.c (gdbsim_load): Add const to prog.
6694 2014-03-03 Tom Tromey <tromey@redhat.com>
6696 * elfread.c (probe_key): Change to bfd_data.
6697 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6698 now per-BFD, not per-objfile.
6699 * stap-probe.c (stap_probe_destroy): Update comment.
6700 (handle_stap_probe): Allocate on the per-BFD obstack.
6702 2014-03-03 Tom Tromey <tromey@redhat.com>
6704 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6705 * breakpoint.c (create_longjmp_master_breakpoint): Use
6707 (add_location_to_breakpoint, bkpt_probe_insert_location)
6708 (bkpt_probe_remove_location): Update.
6709 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6710 * elfread.c (elf_symfile_relocate_probe): Remove.
6711 (elf_probe_fns): Update.
6712 (insert_exception_resume_breakpoint): Change type of "probe"
6713 parameter to bound_probe.
6714 (check_exception_resume): Update.
6715 * objfiles.c (objfile_relocate1): Don't relocate probes.
6716 * probe.c (bound_probe_s): New typedef.
6717 (parse_probes): Use get_probe_address. Set sal's objfile.
6718 (find_probe_by_pc): Return a bound_probe.
6719 (collect_probes): Return a VEC(bound_probe_s).
6720 (compare_probes): Update.
6721 (gen_ui_out_table_header_info): Change type of "probes"
6723 (info_probes_for_ops): Update.
6724 (get_probe_address): New function.
6725 (probe_safe_evaluate_at_pc): Update.
6726 * probe.h (struct probe_ops) <get_probe_address>: New field.
6727 <set_semaphore, clear_semaphore>: Add objfile parameter.
6728 (struct probe) <objfile>: Remove field.
6730 <address>: Update comment.
6731 (struct bound_probe): New.
6732 (find_probe_by_pc): Return a bound_probe.
6733 (get_probe_address): Declare.
6734 * solib-svr4.c (struct probe_and_action) <address>: New field.
6735 (hash_probe_and_action, equal_probe_and_action): Update.
6736 (register_solib_event_probe): Add address parameter.
6737 (solib_event_probe_at): Update.
6738 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6740 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6741 (stap_get_probe_address): New function.
6742 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6743 (compile_probe_arg): Update.
6744 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6746 (handle_stap_probe): Don't relocate the probe.
6747 (stap_relocate): Remove.
6748 (stap_gen_info_probes_table_values): Update.
6749 (stap_probe_ops): Remove stap_relocate.
6750 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6751 (debug_sym_probe_fns): Update.
6752 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6753 * symtab.c (init_sal): Use memset.
6754 * symtab.h (struct symtab_and_line) <objfile>: New field.
6755 * tracepoint.c (start_tracing, stop_tracing): Update.
6757 2014-03-03 Tom Tromey <tromey@redhat.com>
6759 * probe.h (parse_probes, find_probe_by_pc)
6760 (find_probes_in_objfile): Fix comments.
6762 2014-03-02 Doug Evans <xdje42@gmail.com>
6764 * infrun.c (handle_signal_stop): Replace test for
6765 TARGET_WAITKIND_STOPPED with an assert.
6767 2014-03-02 Doug Evans <xdje42@gmail.com>
6769 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6771 2014-03-02 Doug Evans <xdje42@gmail.com>
6773 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6775 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6777 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6779 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6781 * i386obsd-nat.c: Include "obsd-nat.h".
6782 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6784 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6786 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6788 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6790 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6792 * mips64obsd-nat.c: Include "obsd-nath".
6793 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6795 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6797 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6799 * amd64obsd-nat.c: Include "obsd-nat,h.
6800 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6802 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6804 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6806 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6807 (find_overload_match): Update call to find_oload_champ.
6808 (find_oload_champ_namespace_loop): Likewise
6810 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6812 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6814 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6815 * config/sparc/obsd64.mh: New file.
6816 * sparc64obsd-nat.c: New file.
6818 * obsd-nat.h: New file.
6819 * obsd-nat.c: New file.
6820 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6821 (ALLDEPFILES): Add obsd-nat.c.
6823 2014-02-28 Tom Tromey <tromey@redhat.com>
6825 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6826 * cli-out.h (cli_ui_out_impl): Now const.
6827 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6828 * ui-out.c (struct ui_out) <impl>: Now const.
6829 (default_ui_out_impl): Now const.
6830 (ui_out_new): Make 'impl' parameter const.
6831 * ui-out.h (ui_out_new): Update.
6833 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6835 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6837 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6839 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6841 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6843 Additional PR 8882 fix.
6844 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6846 2014-02-27 Pedro Alves <palves@redhat.com>
6848 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6851 2014-02-27 Pedro Alves <palves@redhat.com>
6854 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6855 * nat/linux-waitpid.c: Include string.h.
6856 (status_to_str): Moved here and made extern.
6857 * nat/linux-waitpid.h (status_to_str): New declaration.
6859 2014-02-27 Hui Zhu <hui@codesourcery.com>
6862 * infrun.c (ptid_match): Move ...
6863 * common/ptid.c (ptid_match): ... here.
6864 * inferior.h (ptid_match): Move ...
6865 * common/ptid.h (ptid_match): ... here.
6867 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6869 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6870 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6873 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6875 * obsd-tdep.c (obsd_auxv_parse): New function.
6876 (obsd_init_abi): Set auxv_parse.
6878 * gdbarch.sh (auxv_parse): New.
6879 * gdbarch.h: Regenerated.
6880 * gdbarch.c: Regenerated.
6881 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6883 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6885 * guile/scm-value.c (gdbscm_history_append_x): New function.
6886 (value_functions): Add it.
6888 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6890 * dwarf2read.c (attr_value_as_address): New function.
6891 (dwarf2_find_base_address, read_call_site_scope): Use
6892 attr_value_as_address in place of DW_ADDR.
6893 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6894 the low and high addresses. Slight rework of the handling
6895 of the high pc being a constant form, and limit it to
6896 DWARF verson 4 or higher.
6897 (dwarf2_record_block_ranges): Likewise.
6898 (read_partial_die): Likewise.
6899 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6901 2014-02-26 Tom Tromey <tromey@redhat.com>
6903 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6905 2014-02-26 Tom Tromey <tromey@redhat.com>
6907 * elfread.c (elf_read_minimal_symbols): Return early if
6908 minimal symbols have already been read. Add "ei" parameter.
6909 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6910 * minsyms.c (prim_record_minimal_symbol_full): Update.
6911 * objfiles.h (struct objstats) <n_minsyms>: Move...
6912 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6913 * symmisc.c (print_objfile_statistics): Update.
6915 2014-02-26 Tom Tromey <tromey@redhat.com>
6917 * elfread.c (elf_read_minimal_symbols): New function, from
6919 (elf_symfile_read): Call it.
6921 2014-02-26 Tom Tromey <tromey@redhat.com>
6923 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6924 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6925 (lookup_minimal_symbol_solib_trampoline)
6926 (lookup_minimal_symbol_by_pc_section_1)
6927 (lookup_minimal_symbol_and_objfile): Update.
6928 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6929 Don't allocate a minimal symbol if minsyms have already been read.
6930 (build_minimal_symbol_hash_tables): Update.
6931 (install_minimal_symbols): Do nothing if minsyms already read.
6932 Use the per-BFD obstack.
6933 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6934 * objfiles.c (allocate_objfile): Call
6935 terminate_minimal_symbol_table later.
6936 (have_minimal_symbols): Update.
6937 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6938 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6939 Move from struct objfile.
6940 <minsyms_read>: New field.
6941 (struct objfile) <msymbols, minimal_symbol_count,
6942 msymbol_hash, msymbol_demangled_hash>: Move.
6943 (ALL_OBJFILE_MSYMBOLS): Update.
6944 * symfile.c (read_symbols): Set minsyms_read.
6945 (reread_symbols): Update.
6946 * symmisc.c (dump_objfile, dump_msymbols): Update.
6948 2014-02-26 Tom Tromey <tromey@redhat.com>
6950 * minsyms.c (msymbols_sort): Remove.
6951 * minsyms.h (msymbols_sort): Remove.
6952 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6953 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6954 * elfread.c (elf_symtab_read): Don't add section offsets.
6955 * xcoffread.c (record_minimal_symbol): Don't add section offset
6956 to minimal symbol address.
6957 * somread.c (text_offset, data_offset): Remove.
6958 (som_symtab_read): Don't add section offsets to minimal symbol
6960 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6961 Don't add section offsets to minimal symbols.
6962 * coffread.c (coff_symtab_read): Don't add section offsets
6963 to minimal symbol addresses.
6964 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6965 to minimal symbol addresses.
6966 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6967 section offset to minimal symbol addresses.
6968 * mdebugread.c (parse_partial_symbols): Don't add section
6969 offset to minimal symbol addresses.
6970 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6971 offset to minimal symbol addresses.
6973 2014-02-26 Tom Tromey <tromey@redhat.com>
6975 * ada-lang.c (ada_main_name): Update.
6976 (ada_add_standard_exceptions): Update.
6977 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6978 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6979 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6980 * auxv.c (ld_so_xfer_auxv): Update.
6981 * avr-tdep.c (avr_scan_prologue): Update.
6982 * ax-gdb.c (gen_var_ref): Update.
6983 * blockframe.c (get_pc_function_start)
6984 (find_pc_partial_function_gnu_ifunc): Update.
6985 * breakpoint.c (create_overlay_event_breakpoint)
6986 (create_longjmp_master_breakpoint)
6987 (create_std_terminate_master_breakpoint)
6988 (create_exception_master_breakpoint): Update.
6989 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6990 * c-valprint.c (c_val_print): Update.
6991 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6992 * common/agent.c (agent_look_up_symbols): Update.
6993 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6994 * dwarf2loc.c (call_site_to_target_addr): Update.
6995 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6996 * elfread.c (elf_gnu_ifunc_record_cache)
6997 (elf_gnu_ifunc_resolve_by_got): Update.
6998 * findvar.c (default_read_var_value): Update.
6999 * frame.c (inside_main_func): Update.
7000 * frv-tdep.c (frv_frame_this_id): Update.
7001 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7002 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7004 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7005 (hppa_hpux_find_dummy_bpaddr): Update.
7006 * hppa-tdep.c (hppa_symbol_address): Update.
7007 * infcmd.c (until_next_command): Update.
7008 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7010 * linespec.c (minsym_found, add_minsym): Update.
7011 * linux-nat.c (get_signo): Update.
7012 * linux-thread-db.c (inferior_has_bug): Update.
7013 * m32c-tdep.c (m32c_return_value)
7014 (m32c_m16c_address_to_pointer): Update.
7015 * m32r-tdep.c (m32r_frame_this_id): Update.
7016 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7017 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7018 * maint.c (maintenance_translate_address): Update.
7019 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7020 (frob_address): New function.
7021 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7022 frob_address. Rename parameter to "pc_in".
7023 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7025 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7027 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7028 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7029 * objc-lang.c (find_objc_msgsend): Update.
7030 * objfiles.c (objfile_relocate1): Update.
7031 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7032 * p-valprint.c (pascal_val_print): Update.
7033 * parse.c (write_exp_msymbol): Update.
7034 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7035 (ppc_elfv2_skip_entrypoint): Update.
7036 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7037 * printcmd.c (build_address_symbolic, msym_info)
7038 (address_info): Update.
7039 * proc-service.c (ps_pglobal_lookup): Update.
7040 * psymtab.c (find_pc_sect_psymtab_closer)
7041 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7042 Change msymbol parameter to bound_minimal_symbol.
7043 * ravenscar-thread.c (get_running_thread_id): Update.
7044 * remote.c (remote_check_symbols): Update.
7045 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7047 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7048 * solib-dsbt.c (lm_base): Update.
7049 * solib-frv.c (lm_base, main_got): Update.
7050 * solib-irix.c (locate_base): Update.
7051 * solib-som.c (som_solib_create_inferior_hook)
7052 (link_map_start): Update.
7053 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7054 * solib-svr4.c (elf_locate_base, enable_break): Update.
7055 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7056 (flush_ea_cache): Update.
7057 * stabsread.c (define_symbol, scan_file_globals): Update.
7058 * stack.c (find_frame_funname): Update.
7059 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7060 (debug_qf_find_pc_sect_symtab): Update.
7061 * symfile.c (simple_read_overlay_table)
7062 (simple_overlay_update): Update.
7063 * symfile.h (struct quick_symbol_functions)
7064 <find_pc_sect_symtab>: Change type of msymbol to
7065 bound_minimal_symbol.
7066 * symmisc.c (dump_msymbols): Update.
7067 * symtab.c (find_pc_sect_symtab_via_partial)
7068 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7069 (search_symbols, print_msymbol_info): Update.
7070 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7071 (MSYMBOL_VALUE_ADDRESS): Redefine.
7072 (BMSYMBOL_VALUE_ADDRESS): New macro.
7073 * tracepoint.c (scope_info): Update.
7074 * tui/tui-disasm.c (tui_find_disassembly_address)
7075 (tui_get_begin_asm_address): Update.
7076 * valops.c (find_function_in_inferior): Update.
7077 * value.c (value_static_field, value_fn_field): Update.
7079 2014-02-26 Tom Tromey <tromey@redhat.com>
7081 * ada-lang.c (ada_update_initial_language): Update.
7082 (ada_main_name, ada_has_this_exception_support): Update.
7083 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7084 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7085 * arm-tdep.c (arm_skip_stub): Update.
7086 * auxv.c (ld_so_xfer_auxv): Update.
7087 * avr-tdep.c (avr_scan_prologue): Update.
7088 * ax-gdb.c (gen_var_ref): Update.
7089 * breakpoint.c (struct breakpoint_objfile_data)
7090 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7091 type to bound_minimal_symbol.
7092 (create_overlay_event_breakpoint)
7093 (create_longjmp_master_breakpoint)
7094 (create_std_terminate_master_breakpoint)
7095 (create_exception_master_breakpoint): Update.
7096 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7097 * c-exp.y (classify_name): Update.
7098 * coffread.c (coff_symfile_read): Update.
7099 * common/agent.c (agent_look_up_symbols): Update.
7100 * d-lang.c (d_main_name): Update.
7101 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7102 * dec-thread.c (enable_dec_thread): Update.
7103 * dwarf2loc.c (call_site_to_target_addr): Update.
7104 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7105 * eval.c (evaluate_subexp_standard): Update.
7106 * findvar.c (struct minsym_lookup_data) <result>: Change type
7107 to bound_minimal_symbol.
7109 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7110 * frame.c (inside_main_func): Update.
7111 * frv-tdep.c (frv_frame_this_id): Update.
7112 * gcore.c (call_target_sbrk): Update.
7113 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7114 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7116 * go-lang.c (go_main_name): Update.
7117 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7118 (hppa_hpux_find_import_stub_for_addr): Update.
7119 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7120 Update. Change return type.
7121 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7123 * jit.c (jit_breakpoint_re_set_internal): Update.
7124 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7126 * linux-nat.c (get_signo): Update.
7127 * linux-thread-db.c (inferior_has_bug): Update
7128 * m32c-tdep.c (m32c_return_value)
7129 (m32c_m16c_address_to_pointer): Update.
7130 * m32r-tdep.c (m32r_frame_this_id): Update.
7131 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7132 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7133 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7134 lookup_minimal_symbol. Change return type.
7135 (lookup_minimal_symbol): Remove.
7136 (lookup_bound_minimal_symbol): Update.
7137 (lookup_minimal_symbol_text): Change return type.
7138 (lookup_minimal_symbol_solib_trampoline): Change return type.
7139 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7140 (lookup_minimal_symbol_solib_trampoline): Change return type.
7141 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7142 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7143 (value_nsstring, find_imps): Update.
7144 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7145 * p-lang.c (pascal_main_name): Update.
7146 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7147 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7148 * proc-service.c (ps_pglobal_lookup): Update.
7149 * ravenscar-thread.c (get_running_thread_msymbol): Change
7151 (has_ravenscar_runtime, get_running_thread_id): Update.
7152 * remote.c (remote_check_symbols): Update.
7153 * sol-thread.c (ps_pglobal_lookup): Update.
7154 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7155 * solib-dsbt.c (lm_base): Update.
7156 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7158 * solib-irix.c (locate_base): Update.
7159 * solib-som.c (som_solib_create_inferior_hook)
7160 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7162 * solib-spu.c (spu_enable_break): Update.
7163 * solib-svr4.c (elf_locate_base, enable_break): Update.
7164 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7165 (flush_ea_cache): Update.
7166 * stabsread.c (define_symbol): Update.
7167 * symfile.c (simple_read_overlay_table): Update.
7168 * symtab.c (find_pc_sect_line): Update.
7169 * tracepoint.c (scope_info): Update.
7170 * tui-disasm.c (tui_get_begin_asm_address): Update.
7171 * value.c (value_static_field): Update.
7173 2014-02-26 Tom Tromey <tromey@redhat.com>
7175 * minsyms.c (prim_record_minimal_symbol_full): Use
7176 SET_MSYMBOL_VALUE_ADDRESS.
7177 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7178 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7179 SET_MSYMBOL_VALUE_ADDRESS.
7180 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7181 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7183 2014-02-26 Tom Tromey <tromey@redhat.com>
7185 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7186 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7187 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7188 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7189 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7190 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7191 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7192 * ada-lang.c (ada_main_name): Update.
7193 (ada_lookup_simple_minsym): Update.
7194 (ada_make_symbol_completion_list): Update.
7195 (ada_add_standard_exceptions): Update.
7196 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7197 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7198 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7199 * arm-tdep.c (skip_prologue_function): Update.
7200 (arm_skip_stack_protector, arm_skip_stub): Update.
7201 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7202 (arm_wince_skip_main_prologue): Update.
7203 * auxv.c (ld_so_xfer_auxv): Update.
7204 * avr-tdep.c (avr_scan_prologue): Update.
7205 * ax-gdb.c (gen_var_ref): Update.
7206 * block.c (call_site_for_pc): Update.
7207 * blockframe.c (get_pc_function_start): Update.
7208 (find_pc_partial_function_gnu_ifunc): Update.
7209 * breakpoint.c (create_overlay_event_breakpoint): Update.
7210 (create_longjmp_master_breakpoint): Update.
7211 (create_std_terminate_master_breakpoint): Update.
7212 (create_exception_master_breakpoint): Update.
7213 (resolve_sal_pc): Update.
7214 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7215 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7217 * c-valprint.c (c_val_print): Update.
7218 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7219 * coffread.c (coff_symfile_read): Update.
7220 * common/agent.c (agent_look_up_symbols): Update.
7221 * dbxread.c (find_stab_function_addr): Update.
7222 (end_psymtab): Update.
7223 * dwarf2loc.c (call_site_to_target_addr): Update.
7224 (func_verify_no_selftailcall): Update.
7225 (tailcall_dump): Update.
7226 (call_site_find_chain_1): Update.
7227 (dwarf_expr_reg_to_entry_parameter): Update.
7228 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7229 (elf_gnu_ifunc_resolve_by_got): Update.
7230 * f-valprint.c (info_common_command): Update.
7231 * findvar.c (read_var_value): Update.
7232 * frame.c (get_prev_frame_1): Update.
7233 (inside_main_func): Update.
7234 * frv-tdep.c (frv_skip_main_prologue): Update.
7235 (frv_frame_this_id): Update.
7236 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7237 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7238 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7239 (gnuv3_skip_trampoline): Update.
7240 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7241 (hppa64_hpux_in_solib_call_trampoline): Update.
7242 (hppa_hpux_skip_trampoline_code): Update.
7243 (hppa64_hpux_search_dummy_call_sequence): Update.
7244 (hppa_hpux_find_import_stub_for_addr): Update.
7245 (hppa_hpux_find_dummy_bpaddr): Update.
7246 * hppa-tdep.c (hppa_symbol_address)
7247 (hppa_lookup_stub_minimal_symbol): Update.
7248 * i386-tdep.c (i386_skip_main_prologue): Update.
7249 (i386_pe_skip_trampoline_code): Update.
7250 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7251 * infcall.c (get_function_name): Update.
7252 * infcmd.c (until_next_command): Update.
7253 * jit.c (jit_breakpoint_re_set_internal): Update.
7254 (jit_inferior_init): Update.
7255 * linespec.c (minsym_found): Update.
7256 (add_minsym): Update.
7257 * linux-fork.c (info_checkpoints_command): Update.
7258 * linux-nat.c (get_signo): Update.
7259 * linux-thread-db.c (inferior_has_bug): Update.
7260 * m32c-tdep.c (m32c_return_value): Update.
7261 (m32c_m16c_address_to_pointer): Update.
7262 (m32c_m16c_pointer_to_address): Update.
7263 * m32r-tdep.c (m32r_frame_this_id): Update.
7264 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7265 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7266 * maint.c (maintenance_translate_address): Update.
7267 * minsyms.c (add_minsym_to_hash_table): Update.
7268 (add_minsym_to_demangled_hash_table): Update.
7269 (msymbol_objfile): Update.
7270 (lookup_minimal_symbol): Update.
7271 (iterate_over_minimal_symbols): Update.
7272 (lookup_minimal_symbol_text): Update.
7273 (lookup_minimal_symbol_by_pc_name): Update.
7274 (lookup_minimal_symbol_solib_trampoline): Update.
7275 (lookup_minimal_symbol_by_pc_section_1): Update.
7276 (lookup_minimal_symbol_and_objfile): Update.
7277 (prim_record_minimal_symbol_full): Update.
7278 (compare_minimal_symbols): Update.
7279 (compact_minimal_symbols): Update.
7280 (build_minimal_symbol_hash_tables): Update.
7281 (install_minimal_symbols): Update.
7282 (terminate_minimal_symbol_table): Update.
7283 (find_solib_trampoline_target): Update.
7284 (minimal_symbol_upper_bound): Update.
7285 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7286 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7287 (mips_skip_pic_trampoline_code): Update.
7288 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7289 * objc-lang.c (selectors_info): Update.
7290 (classes_info): Update.
7291 (find_methods): Update.
7292 (find_imps): Update.
7293 (find_objc_msgsend): Update.
7294 * objfiles.c (objfile_relocate1): Update.
7295 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7296 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7297 * p-valprint.c (pascal_val_print): Update.
7298 * parse.c (write_exp_msymbol): Update.
7299 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7300 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7301 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7302 * printcmd.c (build_address_symbolic): Update.
7304 (address_info): Update.
7305 * proc-service.c (ps_pglobal_lookup): Update.
7306 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7307 (find_pc_sect_psymtab): Update.
7308 * python/py-framefilter.c (py_print_frame): Update.
7309 * ravenscar-thread.c (get_running_thread_id): Update.
7310 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7312 * remote.c (remote_check_symbols): Update.
7313 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7314 (rs6000_skip_trampoline_code): Update.
7315 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7316 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7317 * solib-dsbt.c (lm_base): Update.
7318 * solib-frv.c (lm_base): Update.
7320 * solib-irix.c (locate_base): Update.
7321 * solib-som.c (som_solib_create_inferior_hook): Update.
7322 (som_solib_desire_dynamic_linker_symbols): Update.
7323 (link_map_start): Update.
7324 * solib-spu.c (spu_enable_break): Update.
7325 (ocl_enable_break): Update.
7326 * solib-svr4.c (elf_locate_base): Update.
7327 (enable_break): Update.
7328 * spu-tdep.c (spu_get_overlay_table): Update.
7329 (spu_catch_start): Update.
7330 (flush_ea_cache): Update.
7331 * stabsread.c (define_symbol): Update.
7332 (scan_file_globals): Update.
7333 * stack.c (find_frame_funname): Update.
7334 (frame_info): Update.
7335 * symfile.c (simple_read_overlay_table): Update.
7336 (simple_overlay_update): Update.
7337 * symmisc.c (dump_msymbols): Update.
7338 * symtab.c (fixup_section): Update.
7339 (find_pc_sect_line): Update.
7340 (skip_prologue_sal): Update.
7341 (search_symbols): Update.
7342 (print_msymbol_info): Update.
7343 (rbreak_command): Update.
7344 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7345 (completion_list_objc_symbol): Update.
7346 (default_make_symbol_completion_list_break_on): Update.
7347 * tracepoint.c (scope_info): Update.
7348 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7349 (tui_get_begin_asm_address): Update.
7350 * valops.c (find_function_in_inferior): Update.
7351 * value.c (value_static_field): Update.
7352 (value_fn_field): Update.
7354 2014-02-26 Tom Tromey <tromey@redhat.com>
7356 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7357 bound minimal symbols. Move code that knows about minsym
7359 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7361 * minsyms.h (minimal_symbol_upper_bound): Declare.
7362 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7363 minimal_symbol_upper_bound.
7365 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7367 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7368 Use the type's name if its basic type does not have a tag.
7370 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7372 * dwarf2read.c (read_subrange_type): Add comment.
7374 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7376 * dwarf2read.c (update_enumeration_type_from_children): New
7377 function, mostly extracted from process_structure_scope.
7378 (read_enumeration_type): Call update_enumeration_type_from_children.
7379 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7380 and flag_flag_enum fields.
7382 2014-02-26 Pedro Alves <palves@redhat.com>
7384 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7385 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7386 to_xfer_partial method.
7388 2014-02-26 Pedro Alves <palves@redhat.com>
7390 * target.c (complete_target_initialization): Don't install
7391 default_xfer_partial as to_xfer_partial hook.
7393 (update_current_target): Don't INHERIT nor de_fault
7394 deprecated_xfer_memory. Delete de_fault macro.
7395 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7396 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7397 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7400 2014-02-26 Pedro Alves <palves@redhat.com>
7402 * go32-nat.c (my_write_child): New function.
7403 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7404 (go32_xfer_partial): New function.
7405 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7406 Instead install a to_xfer_partial hook.
7408 2014-02-26 Pedro Alves <palves@redhat.com>
7410 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7411 to_xfer_partial helper. Rewrite.
7412 (procfs_xfer_partial): New function.
7413 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7414 Install a to_xfer_partial hook.
7416 2014-02-26 Pedro Alves <palves@redhat.com>
7418 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7419 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7420 (m32r_xfer_partial): New function.
7421 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7422 Install a to_xfer_partial hook.
7424 2014-02-26 Pedro Alves <palves@redhat.com>
7426 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7428 (mips_xfer_partial): New function.
7429 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7430 hook. Install a to_xfer_partial hook.
7432 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7434 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7435 * gdbtypes.c (create_array_type_with_stride): New function,
7436 renaming create_array_type, but with an added parameter
7437 called "bit_stride".
7438 (create_array_type): Re-implement using
7439 create_array_type_with_stride.
7440 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7441 and DW_AT_bit_stride attributes.
7443 2014-02-26 Pedro Alves <palves@redhat.com>
7445 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7446 task-specific breakpoints.
7448 2014-02-25 Pedro Alves <palves@redhat.com>
7450 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7451 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7453 2014-02-25 Stan Shebs <stan@codesourcery.com>
7455 * defs.h: Annotate comments for Doxygen.
7457 2014-02-25 Tom Tromey <tromey@redhat.com>
7459 * target.h (target_ignore): Don't declare.
7460 * target.c (target_ignore): Remove.
7462 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7465 * auto-load.c (auto_load_objfile_script_1): Change filename to
7468 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7470 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7471 documentation. Adjust prototype to match the target_ops
7472 to_xfer_partial method. Adjust implementation accordingly.
7474 2014-02-25 Hui Zhu <hui@codesourcery.com>
7476 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7479 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7481 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7482 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7483 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7484 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7485 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7486 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7487 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7488 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7490 (rl78_register_type): Use a data pointer type for SP and
7491 new pseudo registers mentioned above. Use a 16 bit integer
7492 type for all other register pairs.
7493 (rl78_register_name, rl78_g10_register_name): Update for
7494 new pseudo registers.
7495 (rl78_pseudo_register_read): Likewise.
7496 (rl78_pseudo_register_write): Likewise.
7497 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7498 to the newly added pseudo registers.
7500 2014-02-24 Doug Evans <dje@google.com>
7502 * value.c (record_latest_value): Fix comment.
7503 * printcmd.c (print_command_1): Remove code to handle -1 return from
7504 record_latest_value.
7506 2014-02-24 Pedro Alves <palves@redhat.com>
7508 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7509 deprecated_xfer_memory hook.
7510 (procfs_xfer_partial): Call procfs_xfer_memory instead
7511 of the deprecated_xfer_memory target hook.
7512 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7515 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7517 * windows-nat.c (windows_xfer_shared_libraries): Return
7518 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7519 requested object is TARGET_OBJECT_LIBRARIES.
7521 2014-02-24 Yao Qi <yao@codesourcery.com>
7523 * target.h (enum target_xfer_status)
7524 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7525 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7527 * corefile.c (memory_error_message): User updated.
7528 * exec.c (section_table_read_available_memory): Likewise.
7529 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7530 * target.c (target_xfer_status_to_string): Likewise.
7531 (raw_memory_xfer_partial): Likewise.
7532 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7533 * valops.c (read_value_memory): Likewise.
7534 * exec.h: Update comments.
7536 2014-02-24 Yao Qi <yao@codesourcery.com>
7538 * target.c (target_xfer_status_to_string): Rename argument err
7540 * target.h (target_xfer_status_to_string): Update declaration.
7541 Replace target_xfer_error_to_string with
7542 target_xfer_status_to_string in comment.
7544 2014-02-24 Yao Qi <yao@codesourcery.com>
7546 * mips-linux-nat.c (super_close): Update its type.
7547 (mips_linux_close): Pass 'self' to super_close.
7549 2014-02-24 Yao Qi <yao@codesourcery.com>
7551 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7552 * corefile.c (read_memory): Adjusted.
7553 * target.c (target_write_with_progress): Adjusted.
7555 2014-02-23 Yao Qi <yao@codesourcery.com>
7559 2013-10-25 Yao Qi <yao@codesourcery.com>
7561 * remote.c (remote_traceframe_info): Return early if
7562 traceframe is not selected.
7564 2013-07-19 Yao Qi <yao@codesourcery.com>
7566 * target.c (update_current_target): Change the default action
7567 of 'to_traceframe_info' from tcomplain to return_zero.
7568 * target.h (struct target_ops) <to_traceframe_info>: Add more
7571 2014-02-23 Yao Qi <yao@codesourcery.com>
7573 * valops.c (read_value_memory): Rewrite it. Call
7574 target_xfer_partial in a loop.
7575 * exec.h (section_table_available_memory): Remove declaration.
7576 Move comments to ...
7577 * exec.c (section_table_available_memory): ... here. Make it
7580 2014-02-23 Yao Qi <yao@codesourcery.com>
7582 * exec.c (section_table_read_available_memory): New function.
7583 * exec.h (section_table_read_available_memory): Declare.
7584 * ctf.c (ctf_xfer_partial): Call
7585 section_table_read_available_memory.
7586 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7588 2014-02-23 Yao Qi <yao@codesourcery.com>
7590 * ctf.c (ctf_xfer_partial): Move code to ...
7591 * exec.c (exec_read_partial_read_only): ... it. New function.
7592 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7593 * tracefile.c: Include "exec.h".
7594 * exec.h (exec_read_partial_read_only): Declare.
7596 2014-02-23 Yao Qi <yao@codesourcery.com>
7598 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7599 (tfile_has_memory): Remove.
7600 (init_tfile_ops): Don't set fields to_has_all_memory and
7601 to_has_memory of tfile_ops.
7602 * tracefile.c (tracefile_has_all_memory): New function.
7603 (tracefile_has_memory): New function.
7604 (init_tracefile_ops): Initialize fields to_has_all_memory and
7605 to_has_memory of 'ops'.
7607 2014-02-23 Yao Qi <yao@codesourcery.com>
7609 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7610 (ctf_thread_alive, ctf_get_trace_status): Remove.
7611 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7613 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7614 (tfile_has_stack, tfile_has_registers): Remove.
7615 (tfile_thread_alive): Remove.
7616 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7618 * tracefile.c (tracefile_has_stack): New function.
7619 (tracefile_has_registers): New function.
7620 (tracefile_thread_alive): New function.
7621 (tracefile_get_trace_status): New function.
7622 (init_tracefile_ops): New function.
7623 * tracefile.h (init_tracefile_ops): Declare.
7625 2014-02-23 Yao Qi <yao@codesourcery.com>
7627 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7628 (O_LARGEFILE): Likewise.
7629 (tfile_ops): Likewise.
7630 (TRACE_HEADER_SIZE): Likewise.
7631 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7632 (cur_data_size): Likewise.
7633 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7634 (tfile_close, tfile_files_info): Likewise.
7635 (tfile_get_trace_status): Likewise.
7636 (tfile_get_tracepoint_status): Likewise.
7637 (tfile_get_traceframe_address): Likewise.
7638 (tfile_trace_find, match_blocktype): Likewise.
7639 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7640 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7641 (tfile_get_trace_state_variable_value): Likewise.
7642 (tfile_has_all_memory, tfile_has_memory): Likewise.
7643 (tfile_has_stack, tfile_has_registers): Likewise.
7644 (tfile_thread_alive, build_traceframe_info): Likewise.
7645 (tfile_traceframe_info, init_tfile_ops): Likewise.
7646 (_initialize_tracepoint): Don't call init_tfile_ops
7647 and add_target_with_completer.
7648 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7649 exec.h, completer.h and filenames.h.
7650 (_initialize_tracefile_tfile): New function.
7652 2014-02-23 Yao Qi <yao@codesourcery.com>
7654 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7656 (HFILES_NO_SRCDIR): Add tracefile.h.
7657 * ctf.c: Include "tracefile.h".
7658 * tracefile.h: New file.
7659 * tracefile.c: New file
7660 * tracefile-tfile.c: New file.
7661 * tracepoint.c: Include "tracefile.h".
7662 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7663 (stop_reason_names): Add const.
7664 (trace_file_writer_xfree): Move it to tracefile.c.
7665 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7666 (trace_save_ctf): Likewise.
7667 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7668 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7669 (tfile_write_header, tfile_write_regblock_type): Likewise.
7670 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7671 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7672 (tfile_write_raw_data, tfile_end): Likewise.
7673 (tfile_trace_file_writer_new): Likewise.
7674 (free_uploaded_tp): Make it extern.
7675 (free_uploaded_tsv): Make it extern.
7676 (_initialize_tracepoint): Move code to register command 'tsave'
7678 * tracepoint.h (stop_reason_names): Declare.
7679 (struct trace_frame_write_ops): Move it to tracefile.h.
7680 (struct trace_file_write_ops): Likewise.
7681 (struct trace_file_writer): Likewise.
7682 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7684 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7687 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7689 (get_cores_used_by_process): New parameter num_cores, use it.
7690 (linux_xfer_osdata_processes): Pass num_cores to it.
7691 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7694 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7696 * target.c (memory_xfer_partial): Fix length arg in call to
7697 breakpoint_xfer_memory.
7699 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7702 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7703 number comes after the + or - signs. Adjust length of register
7704 name to be extracted.
7706 2014-02-20 Tom Tromey <tromey@redhat.com>
7708 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7709 (ada_varobj_ops): Mark "extern".
7711 2014-02-20 Tom Tromey <tromey@redhat.com>
7713 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7715 2014-02-20 Doug Evans <xdje42@gmail.com>
7717 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7718 All callers updated.
7719 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7720 All callers updated.
7721 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7722 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7724 2014-02-20 lin zuojian <manjian2006@gmail.com>
7725 Joel Brobecker <brobecker@adacore.com>
7726 Doug Evans <xdje42@gmail.com>
7729 * dwarf2read.c (struct die_info): New member in_process.
7730 (reset_die_in_process): New function.
7731 (process_die): Set it at the start, reset when returning.
7732 (inherit_abstract_dies): Only call process_die if origin_child_die
7733 not already being processed.
7735 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7737 * windows-nat.c (handle_unload_dll): Add function documentation.
7738 (do_initial_windows_stuff): Add comment explaining why we wait
7739 until after inferior initialization has finished before
7740 processing all DLLs.
7742 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7744 * windows-nat.c (get_module_name): Delete.
7745 (windows_get_exec_module_filename): New function, mostly
7746 inspired from get_module_name.
7747 (windows_pid_to_exec_file): Replace call to get_module_name
7748 by call to windows_get_exec_module_filename.
7750 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7752 * windows-nat.c (handle_load_dll): Rewrite this function's
7753 introductory comment. Remove code using get_module_name
7754 to get the DLL's name.
7756 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7758 * windows-nat.c (get_windows_debug_event): Ignore
7759 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7760 if windows_initialization_done == 0.
7761 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7762 Adjust implementation to always load all DLLs.
7763 (do_initial_windows_stuff): Replace call to
7764 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7766 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7768 * windows-nat.c (_initialize_windows_nat): Deprecate the
7769 "dll-symbols" command. Turn the "add-shared-symbol-files"
7770 and "assf" aliases into commands, and deprecate them as well.
7771 * NEWS: Add entry explaining that "dll-symbols" and its two
7772 aliases are now deprecated.
7774 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7776 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7777 new-line in debug string. Remove trailing spaces.
7779 2014-02-19 Stan Shebs <stan@codesourcery.com>
7781 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7783 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7785 * NEWS: Add entry for the new feature
7786 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7789 2014-02-19 Stan Shebs <stan@codesourcery.com>
7791 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7793 2014-02-19 Pedro Alves <palves@redhat.com>
7795 * common/ptid.h (struct ptid): Mention that process_stratum
7796 targets should prefer ptid.lwp.
7798 2014-02-19 Pedro Alves <palves@redhat.com>
7800 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7801 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7802 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7803 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7804 store remote thread ids rather than ptid.tid.
7805 (_initialize_remote): Adjust.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target.c (target_get_unwinder): Rewrite.
7810 (target_get_tailcall_unwinder): Rewrite.
7811 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7812 (record_btrace_to_get_tailcall_unwinder): New function.
7813 (init_record_btrace_ops): Update.
7814 * target.h (struct target_ops) <to_get_unwinder,
7815 to_get_tailcall_unwinder>: Now function pointers. Use
7816 TARGET_DEFAULT_RETURN.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7822 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7826 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7828 * target-delegates.c: Rebuild.
7829 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7830 TARGET_DEFAULT_FUNC.
7831 * target.c (default_target_decr_pc_after_break): Rename from
7832 forward_target_decr_pc_after_break. Simplify.
7833 (target_decr_pc_after_break): Rely on delegation.
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7837 * target.c (update_current_target): Do not INHERIT to_doc or
7838 to_magic. Do not de_fault to_open or to_close.
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7842 * gcore.h (objfile_find_memory_regions): Declare.
7843 * gcore.c (objfile_find_memory_regions): No longer static. Add
7845 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7846 * exec.c: Include gcore.h.
7847 (exec_set_find_memory_regions): Remove.
7848 (exec_find_memory_regions): Remove.
7849 (exec_do_find_memory_regions): Remove.
7850 (init_exec_ops): Update.
7851 * defs.h (exec_set_find_memory_regions): Remove.
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7855 * target-delegates.c: Rebuild.
7856 * target.h (struct target_ops) <to_extra_thread_info,
7857 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7858 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7859 not 0, in TARGET_DEFAULT_RETURN.
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target.c (complete_target_initialization): Remove casts. Use
7864 return_zero_has_execution.
7865 (return_zero): Add "ignore" argument.
7866 (return_zero_has_execution): New function.
7867 (init_dummy_target): Remove casts. Use
7868 return_zero_has_execution.
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7872 * target.c (update_current_target): Update comments. Do not
7875 2014-02-19 Tom Tromey <tromey@redhat.com>
7877 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7879 * corelow.c (core_read_description): Delegate when needed.
7880 * remote.c (remote_read_description): Delegate when needed.
7881 * target-delegates.c: Rebuild.
7882 * target.c (target_read_description): Rewrite.
7883 * target.h (struct target_ops) <to_read_description>: Update
7884 comment. Use TARGET_DEFAULT_RETURN.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target-delegates.c: Rebuild.
7889 * target.c (update_current_target): Don't inherit or default
7891 (find_default_run_target): Check against delegate_can_run.
7892 * target.h (struct target_ops) <to_can_run>: Use
7893 TARGET_DEFAULT_RETURN.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target-delegates.c: Rebuild.
7898 * target.c (target_disconnect): Unconditionally delegate.
7899 * target.h (struct target_ops) <to_disconnect>: Use
7900 TARGET_DEFAULT_NORETURN.
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7904 * record.c (record_stop): Unconditionally delegate.
7905 * target-delegates.c: Rebuild.
7906 * target.c (target_stop_recording): Unconditionally delegate.
7907 * target.h (struct target_ops) <to_stop_recording>: Use
7908 TARGET_DEFAULT_IGNORE.
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7912 * target-delegates.c: Rebuild.
7913 * target.c (target_enable_btrace): Unconditionally delegate.
7914 * target.h (struct target_ops) <to_enable_btrace>: Use
7915 TARGET_DEFAULT_NORETURN.
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7919 * target-delegates.c: Rebuild.
7920 * target.c (target_read_btrace): Unconditionally delegate.
7921 * target.h (struct target_ops) <to_read_btrace>: Use
7922 TARGET_DEFAULT_NORETURN.
7924 2014-02-19 Tom Tromey <tromey@redhat.com>
7926 * target-delegates.c: Rebuild.
7927 * target.c (target_teardown_btrace): Unconditionally delegate.
7928 * target.h (struct target_ops) <to_teardown_btrace>: Use
7929 TARGET_DEFAULT_NORETURN.
7931 2014-02-19 Tom Tromey <tromey@redhat.com>
7933 * target-delegates.c: Rebuild.
7934 * target.c (target_disable_btrace): Unconditionally delegate.
7935 * target.h (struct target_ops) <to_disable_btrace>: Use
7936 TARGET_DEFAULT_NORETURN.
7938 2014-02-19 Tom Tromey <tromey@redhat.com>
7940 * target-delegates.c: Rebuild.
7941 * target.c (default_search_memory): New function.
7942 (simple_search_memory): Update comment.
7943 (target_search_memory): Unconditionally delegate.
7944 * target.h (struct target_ops) <to_search_memory>: Use
7945 TARGET_DEFAULT_FUNC.
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7949 * auxv.c (default_auxv_parse): No longer static.
7950 (target_auxv_parse): Unconditionally delegate.
7951 * auxv.h (default_auxv_parse): Declare.
7952 * target-delegates.c: Rebuild.
7953 * target.c: Include auxv.h.
7954 * target.h (struct target_ops) <to_auxv_parse>: Use
7955 TARGET_DEFAULT_FUNC.
7957 2014-02-19 Tom Tromey <tromey@redhat.com>
7959 * target-delegates.c: Rebuild.
7960 * target.c (target_memory_map): Unconditionally delegate.
7961 * target.h (struct target_ops) <to_memory_map>: Use
7962 TARGET_DEFAULT_RETURN.
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7966 * target-delegates.c: Rebuild.
7967 * target.c (target_thread_alive): Unconditionally delegate.
7968 * target.h (struct target_ops) <to_thread_alive>: Use
7969 TARGET_DEFAULT_RETURN.
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7973 * target-delegates.c: Rebuild.
7974 * target.c (target_save_record): Unconditionally delegate.
7975 * target.h (struct target_ops) <to_save_record>: Use
7976 TARGET_DEFAULT_NORETURN.
7978 2014-02-19 Tom Tromey <tromey@redhat.com>
7980 * target-delegates.c: Rebuild.
7981 * target.c (target_delete_record): Unconditionally delegate.
7982 * target.h (struct target_ops) <to_delete_record>: Use
7983 TARGET_DEFAULT_NORETURN.
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7987 * target-delegates.c: Rebuild.
7988 * target.c (target_record_is_replaying): Unconditionally
7990 * target.h (struct target_ops) <to_record_is_replaying>: Use
7991 TARGET_DEFAULT_RETURN.
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7995 * target-delegates.c: Rebuild.
7996 * target.c (target_goto_record_begin): Unconditionally delegate.
7997 * target.h (struct target_ops) <to_goto_record_begin>: Use
7998 TARGET_DEFAULT_NORETURN.
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8002 * target-delegates.c: Rebuild.
8003 * target.c (target_goto_record_end): Unconditionally delegate.
8004 * target.h (struct target_ops) <to_goto_record_end>: Use
8005 TARGET_DEFAULT_NORETURN.
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8009 * target-delegates.c: Rebuild.
8010 * target.c (target_goto_record): Unconditionally delegate.
8011 * target.h (struct target_ops) <to_goto_record>: Use
8012 TARGET_DEFAULT_NORETURN.
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8016 * target-delegates.c: Rebuild.
8017 * target.c (target_insn_history): Unconditionally delegate.
8018 * target.h (struct target_ops) <to_insn_history>: Use
8019 TARGET_DEFAULT_NORETURN.
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8023 * target-delegates.c: Rebuild.
8024 * target.c (target_insn_history_from): Unconditionally delegate.
8025 * target.h (struct target_ops) <to_insn_history_from>: Use
8026 TARGET_DEFAULT_NORETURN.
8028 2014-02-19 Tom Tromey <tromey@redhat.com>
8030 * target-delegates.c: Rebuild.
8031 * target.c (target_insn_history_range): Unconditionally delegate.
8032 * target.h (struct target_ops) <to_insn_history_range>: Use
8033 TARGET_DEFAULT_NORETURN.
8035 2014-02-19 Tom Tromey <tromey@redhat.com>
8037 * target-delegates.c: Rebuild.
8038 * target.c (target_call_history): Unconditionally delegate.
8039 * target.h (struct target_ops) <to_call_history>: Use
8040 TARGET_DEFAULT_NORETURN.
8042 2014-02-19 Tom Tromey <tromey@redhat.com>
8044 * target-delegates.c: Rebuild.
8045 * target.c (target_call_history_from): Unconditionally delegate.
8046 * target.h (struct target_ops) <to_call_history_from>: Use
8047 TARGET_DEFAULT_NORETURN.
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target-delegates.c: Rebuild.
8052 * target.c (target_call_history_range): Unconditionally delegate.
8053 * target.h (struct target_ops) <to_call_history_range>: Use
8054 TARGET_DEFAULT_NORETURN.
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: Rebuild.
8059 * target.c (target_verify_memory): Unconditionally delegate.
8060 * target.h (struct target_ops) <to_verify_memory>: Use
8061 TARGET_DEFAULT_NORETURN.
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8065 * target-delegates.c: Rebuild.
8066 * target.c (target_core_of_thread): Unconditionally delegate.
8067 * target.h (struct target_ops) <to_core_of_thread>: Use
8068 TARGET_DEFAULT_RETURN.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (target_flash_done): Unconditionally delegate.
8074 * target.h (struct target_ops) <to_flash_done>: Use
8075 TARGET_DEFAULT_NORETURN.
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_flash_erase): Unconditionally delegate.
8081 * target.h (struct target_ops) <to_flash_erase>: Use
8082 TARGET_DEFAULT_NORETURN.
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8086 * target-delegates.c: Rebuild.
8087 * target.c (target_get_section_table): Unconditionally delegate.
8088 * target.h (struct target_ops) <to_get_section_table>: Use
8089 TARGET_DEFAULT_RETURN.
8091 2014-02-19 Tom Tromey <tromey@redhat.com>
8093 * target-delegates.c: Rebuild.
8094 * target.c (target_pid_to_str): Unconditionally delegate.
8095 (init_dummy_target): Don't initialize to_pid_to_str.
8096 (default_pid_to_str): Rename from dummy_pid_to_str.
8097 * target.h (struct target_ops) <to_pid_to_str>: Use
8098 TARGET_DEFAULT_FUNC.
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8102 * target-delegates.c: Rebuild.
8103 * target.c (target_find_new_threads): Unconditionally delegate.
8104 * target.h (struct target_ops) <to_find_new_threads>: Use
8105 TARGET_DEFAULT_RETURN.
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8109 * target-delegates.c: Rebuild.
8110 * target.c (target_program_signals): Unconditionally delegate.
8111 * target.h (struct target_ops) <to_program_signals>: Use
8112 TARGET_DEFAULT_IGNORE.
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target-delegates.c: Rebuild.
8117 * target.c (target_pass_signals): Unconditionally delegate.
8118 * target.h (struct target_ops) <to_pass_signals>: Use
8119 TARGET_DEFAULT_IGNORE.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target-delegates.c: Rebuild.
8124 * target.c (default_mourn_inferior): New function.
8125 (target_mourn_inferior): Unconditionally delegate.
8126 * target.h (struct target_ops) <to_mourn_inferior>: Use
8127 TARGET_DEFAULT_FUNC.
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8131 * target-delegates.c: Rebuild.
8132 * target.c (default_follow_fork): New function.
8133 (target_follow_fork): Unconditionally delegate.
8134 * target.h (struct target_ops) <to_follow_fork>: Use
8135 TARGET_DEFAULT_FUNC.
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8139 * target-delegates.c: Rebuild.
8140 * target.c (target_kill): Unconditionally delegate.
8141 * target.h (struct target_ops) <to_kill>: Use
8142 TARGET_DEFAULT_NORETURN.
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target-delegates.c: Rebuild.
8147 * target.c (target_masked_watch_num_registers): Unconditionally
8149 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8150 Use TARGET_DEFAULT_RETURN.
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8154 * target-delegates.c: Rebuild.
8155 * target.c (target_remove_mask_watchpoint): Unconditionally
8157 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8158 TARGET_DEFAULT_RETURN.
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8162 * target-delegates.c: Rebuild.
8163 * target.c (target_insert_mask_watchpoint): Unconditionally
8165 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8166 TARGET_DEFAULT_RETURN.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_ranged_break_num_registers): Unconditionally
8173 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8174 Use TARGET_DEFAULT_RETURN.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_fetch_registers): Unconditionally delegate.
8180 * target.h (struct target_ops) <to_fetch_registers>: Use
8181 TARGET_DEFAULT_NORETURN.
8183 2014-02-19 Tom Tromey <tromey@redhat.com>
8185 * target-delegates.c: Rebuild.
8186 * target.c (update_current_target): Don't inherit or default
8188 * target.h (struct target_ops) <to_stop>: Use
8189 TARGET_DEFAULT_IGNORE.
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8193 * target-delegates.c: Rebuild.
8194 * target.c (update_current_target): Don't inherit or default
8195 to_can_run_breakpoint_commands.
8196 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8197 Use TARGET_DEFAULT_RETURN.
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * target-delegates.c: Rebuild.
8202 * target.c (update_current_target): Don't inherit or default
8203 to_supports_evaluation_of_breakpoint_conditions.
8204 * target.h (struct target_ops)
8205 <to_supports_evaluation_of_breakpoint_conditions>: Use
8206 TARGET_DEFAULT_RETURN.
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8212 to_augmented_libraries_svr4_read.
8213 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8214 Use TARGET_DEFAULT_RETURN.
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8221 * target.h (struct target_ops) <to_can_use_agent>: Use
8222 TARGET_DEFAULT_RETURN.
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8229 * target.h (struct target_ops) <to_use_agent>: Use
8230 TARGET_DEFAULT_NORETURN.
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8237 (return_null): Remove.
8238 * target.h (struct target_ops) <to_traceframe_info>: Use
8239 TARGET_DEFAULT_RETURN.
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8243 * target-delegates.c: Rebuild.
8244 * target.c (update_current_target): Don't inherit or default
8245 to_static_tracepoint_markers_by_strid.
8246 * target.h (struct target_ops)
8247 <to_static_tracepoint_markers_by_strid>: Use
8248 TARGET_DEFAULT_NORETURN.
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8252 * target-delegates.c: Rebuild.
8253 * target.c (update_current_target): Don't inherit or default
8254 to_static_tracepoint_marker_at.
8255 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8256 Use TARGET_DEFAULT_RETURN.
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target-delegates.c: Rebuild.
8261 * target.c (update_current_target): Don't inherit or default
8263 * target.h (struct target_ops) <to_set_permissions>: Use
8264 TARGET_DEFAULT_IGNORE.
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8271 * target.h (struct target_ops) <to_get_tib_address>: Use
8272 TARGET_DEFAULT_NORETURN.
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8276 * target-delegates.c: Rebuild.
8277 * target.c (update_current_target): Don't inherit or default
8279 * target.h (struct target_ops) <to_set_trace_notes>: Use
8280 TARGET_DEFAULT_RETURN.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't initialize
8286 to_set_trace_buffer_size.
8287 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8288 TARGET_DEFAULT_IGNORE.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8294 to_set_circular_trace_buffer.
8295 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8296 TARGET_DEFAULT_IGNORE.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8302 to_set_disconnected_tracing.
8303 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8304 TARGET_DEFAULT_IGNORE.
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't inherit or default
8310 to_get_min_fast_tracepoint_insn_len.
8311 (return_minus_one): Remove.
8312 * target.h (struct target_ops)
8313 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_get_raw_trace_data.
8320 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8321 TARGET_DEFAULT_NORETURN.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_upload_trace_state_variables.
8328 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8329 Use TARGET_DEFAULT_RETURN.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8335 to_upload_tracepoints.
8336 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8337 TARGET_DEFAULT_RETURN.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8344 * target.h (struct target_ops) <to_save_trace_data>: Use
8345 TARGET_DEFAULT_NORETURN.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_get_trace_state_variable_value.
8352 * target.h (struct target_ops)
8353 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8360 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8367 * target.h (struct target_ops) <to_trace_stop>: Use
8368 TARGET_DEFAULT_NORETURN.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8374 to_get_tracepoint_status.
8375 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8376 TARGET_DEFAULT_NORETURN.
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_get_trace_status.
8383 * target.h (struct target_ops) <to_get_trace_status>: Use
8384 TARGET_DEFAULT_RETURN.
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8391 * target.h (struct target_ops) <to_trace_start>: Use
8392 TARGET_DEFAULT_NORETURN.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_trace_set_readonly_regions.
8399 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8400 Use TARGET_DEFAULT_NORETURN.
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_disable_tracepoint.
8407 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8408 TARGET_DEFAULT_NORETURN.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_enable_tracepoint.
8415 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8416 TARGET_DEFAULT_NORETURN.
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_download_trace_state_variable.
8423 * target.h (struct target_ops) <to_download_trace_state_variable>:
8424 Use TARGET_DEFAULT_NORETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_can_download_tracepoint.
8431 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8432 TARGET_DEFAULT_RETURN.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_download_tracepoint.
8439 * target.h (struct target_ops) <to_download_tracepoint>: Use
8440 TARGET_DEFAULT_NORETURN.
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8447 * target.h (struct target_ops) <to_trace_init>: Use
8448 TARGET_DEFAULT_RETURN.
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_supports_string_tracing.
8455 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8456 TARGET_DEFAULT_RETURN.
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8462 to_supports_enable_disable_tracepoint.
8463 * target.h (struct target_ops)
8464 <to_supports_enable_disable_tracepoint>: Use
8465 TARGET_DEFAULT_RETURN.
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8471 to_supports_multi_process.
8472 * target.h (struct target_ops) <to_supports_multi_process>: Use
8473 TARGET_DEFAULT_RETURN.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_get_ada_task_ptid.
8480 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8481 TARGET_DEFAULT_FUNC.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_thread_architecture.
8488 * target.h (struct target_ops) <to_thread_architecture>: Use
8489 TARGET_DEFAULT_FUNC.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_execution_direction.
8496 * target.h (struct target_ops) <to_execution_direction>: Use
8497 TARGET_DEFAULT_FUNC.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_can_execute_reverse.
8504 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8505 TARGET_DEFAULT_RETURN.
8506 (target_can_execute_reverse): Unconditionally delegate.
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8513 (dummy_goto_bookmark): Remove.
8514 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8515 * target.h (struct target_ops) <to_goto_bookmark>: Use
8516 TARGET_DEFAULT_NORETURN.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * target-delegates.c: Rebuild.
8521 * target.c (update_current_target): Don't inherit or default
8523 (dummy_get_bookmark): Remove.
8524 (init_dummy_target): Don't inherit or default to_get_bookmark.
8525 * target.h (struct target_ops) <to_get_bookmark>: Use
8526 TARGET_DEFAULT_NORETURN
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8530 * target-delegates.c: Rebuild.
8531 * target.c (update_current_target): Don't inherit or default
8532 to_make_corefile_notes.
8533 (init_dummy_target): Don't initialize to_make_corefile_notes.
8534 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8535 TARGET_DEFAULT_FUNC.
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_find_memory_regions.
8542 (init_dummy_target): Don't initialize to_find_memory_regions.
8543 * target.h (struct target_ops) <to_find_memory_regions>: Use
8544 TARGET_DEFAULT_FUNC.
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8548 * target-delegates.c: Rebuild.
8549 * target.c (update_current_target): Don't inherit or default
8551 * target.h (struct target_ops) <to_log_command>: Use
8552 TARGET_DEFAULT_IGNORE.
8553 (target_log_command): Unconditionally delegate.
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8557 * target-delegates.c: Rebuild.
8558 * target.c (update_current_target): Don't inherit or default
8559 to_pid_to_exec_file.
8560 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8561 TARGET_DEFAULT_RETURN.
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8565 * target-delegates.c: Rebuild.
8566 * target.c (update_current_target): Don't inherit or default
8568 (target_thread_name): Unconditionally delegate.
8569 * target.h (struct target_ops) <to_thread_name>: Use
8570 TARGET_DEFAULT_RETURN.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_extra_thread_info.
8577 * target.h (struct target_ops) <to_extra_thread_info>: Use
8578 TARGET_DEFAULT_RETURN.
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8585 * target.h (struct target_ops) <to_has_exited>: Use
8586 TARGET_DEFAULT_RETURN..
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_set_syscall_catchpoint.
8593 (return_one): Remove.
8594 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8595 TARGET_DEFAULT_RETURN.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_insert_exec_catchpoint.
8602 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8603 TARGET_DEFAULT_RETURN.
8605 2014-01-08 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_insert_exec_catchpoint.
8610 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8611 TARGET_DEFAULT_RETURN.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_remove_vfork_catchpoint.
8618 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8619 TARGET_DEFAULT_RETURN.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_insert_vfork_catchpoint.
8626 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8627 TARGET_DEFAULT_RETURN.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_remove_fork_catchpoint.
8634 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8635 TARGET_DEFAULT_RETURN.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_insert_fork_catchpoint.
8642 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8643 TARGET_DEFAULT_RETURN.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8649 to_post_startup_inferior.
8650 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8651 TARGET_DEFAULT_IGNORE.
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8658 * target.h (struct target_ops) <to_load>: Use
8659 TARGET_DEFAULT_NORETURN.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8666 * target.h (struct target_ops) <to_terminal_info>: Use
8667 TARGET_DEFAULT_FUNC.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_terminal_save_ours.
8674 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8675 TARGET_DEFAULT_IGNORE.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8682 * target.h (struct target_ops) <to_terminal_ours>: Use
8683 TARGET_DEFAULT_IGNORE.
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_terminal_ours_for_output.
8690 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8691 TARGET_DEFAULT_IGNORE.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_terminal_inferior.
8698 * target.h (struct target_ops) <to_terminal_inferior>: Use
8699 TARGET_DEFAULT_IGNORE.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8706 * target.h (struct target_ops) <to_terminal_init>: Use
8707 TARGET_DEFAULT_IGNORE.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_can_accel_watchpoint_condition.
8714 * target.h (struct target_ops)
8715 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_region_ok_for_hw_watchpoint.
8722 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8723 Use TARGET_DEFAULT_FUNC.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_watchpoint_addr_within_range.
8730 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8731 Use TARGET_DEFAULT_FUNC.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_remove_watchpoint.
8738 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8739 TARGET_DEFAULT_NORETURN.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_insert_watchpoint.
8746 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8747 TARGET_DEFAULT_RETURN.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_remove_hw_breakpoint.
8754 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8755 TARGET_DEFAULT_RETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_insert_hw_breakpoint.
8762 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8763 TARGET_DEFAULT_RETURN.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_can_use_hw_breakpoint.
8770 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8771 TARGET_DEFAULT_RETURN.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8778 * target.h (struct target_ops) <to_files_info>: Use
8779 TARGET_DEFAULT_IGNORE.
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8786 * target.h (struct target_ops) <to_store>: Use
8787 TARGET_DEFAULT_NORETURN.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8794 * target.h (struct target_ops) <to_post_attach>: Use
8795 TARGET_DEFAULT_IGNORE.
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8802 (default_rcmd): New function.
8803 (do_monitor_command): Unconditionally delegate.
8804 * target.h (struct target_ops) <to_rmcd>: Use
8805 TARGET_DEFAULT_FUNC.
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8809 * target-delegates.c: Rebuild.
8810 * target.c (init_dummy_target): Don't initialize to_attach.
8811 (target_attach): Unconditionally delegate.
8812 * target.h (struct target_ops) <to_attach>: Use
8813 TARGET_DEFAULT_FUNC.
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8817 * target-delegates.c: Rebuild.
8818 * target.c (target_detach): Unconditionally delegate.
8819 (init_dummy_target): Don't initialize to_detach.
8820 * target.h (struct target_ops) <to_detach>: Use
8821 TARGET_DEFAULT_IGNORE.
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8827 (target_augmented_libraries_svr4_read): Add argument.
8828 * target.c (update_current_target): Update.
8829 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8834 * target.h (struct target_ops) <to_call_history_range>: Add
8836 * target.c (target_call_history_range): Add argument.
8837 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8839 (record_btrace_call_history_from): Update.
8841 2014-02-19 Tom Tromey <tromey@redhat.com>
8843 * target.h (struct target_ops) <to_call_history_from>: Add
8845 * target.c (target_call_history_from): Add argument.
8846 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8851 * target.h (struct target_ops) <to_call_history>: Add argument.
8852 * target.c (target_call_history): Add argument.
8853 * record-btrace.c (record_btrace_call_history): Add 'self'
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8858 * target.h (struct target_ops) <to_insn_history_range>: Add
8860 * target.c (target_insn_history_range): Add argument.
8861 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8863 (record_btrace_insn_history_from): Update.
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8867 * target.h (struct target_ops) <to_insn_history_from>: Add
8869 * target.c (target_insn_history_from): Add argument.
8870 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8875 * target.h (struct target_ops) <to_insn_history>: Add argument.
8876 * target.c (target_insn_history): Add argument.
8877 * record-btrace.c (record_btrace_insn_history): Add 'self'
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target.h (struct target_ops) <to_goto_record>: Add argument.
8883 * target.c (target_goto_record): Add argument.
8884 * record-full.c (record_full_goto): Add 'self' argument.
8885 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8889 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8890 * target.c (target_goto_record_end): Add argument.
8891 * record-full.c (record_full_goto_end): Add 'self' argument.
8892 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8894 2014-02-19 Tom Tromey <tromey@redhat.com>
8896 * target.h (struct target_ops) <to_goto_record_begin>: Add
8898 * target.c (target_goto_record_begin): Add argument.
8899 * record-full.c (record_full_goto_begin): Add 'self' argument.
8900 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target.h (struct target_ops) <to_record_is_replaying>: Add
8907 * target.c (target_record_is_replaying): Add argument.
8908 * record-full.c (record_full_is_replaying): Add 'self' argument.
8909 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8911 (record_btrace_xfer_partial, record_btrace_store_registers)
8912 (record_btrace_prepare_to_store, record_btrace_resume)
8913 (record_btrace_wait, record_btrace_decr_pc_after_break)
8914 (record_btrace_find_new_threads, record_btrace_thread_alive):
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8919 * target.h (struct target_ops) <to_delete_record>: Add argument.
8920 * target.c (target_delete_record): Add argument.
8921 * record-full.c (record_full_delete): Add 'self' argument.
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8925 * target.h (struct target_ops) <to_save_record>: Add argument.
8926 * target.c (target_save_record): Add argument.
8927 * record-full.c (record_full_save): Add 'self' argument.
8928 (record_full_save): Add 'self' argument.
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8932 * target.h (struct target_ops) <to_info_record>: Add argument.
8933 * target.c (target_info_record): Add argument.
8934 * record.c (info_record_command): Add argument.
8935 * record-full.c (record_full_info): Add 'self' argument.
8936 * record-btrace.c (record_btrace_info): Add 'self' argument.
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8940 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8941 * target.c (target_stop_recording): Add argument.
8942 * record.c (record_stop): Add argument.
8943 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8949 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8950 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8952 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8953 (_initialize_amd64_linux_nat): Use it.
8954 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8955 (_initialize_i386_linux_nat): Use it.
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8959 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8960 * target.c (target_teardown_btrace): Add argument.
8961 * remote.c (remote_teardown_btrace): Add 'self' argument.
8962 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8964 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8969 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8970 * target.c (target_disable_btrace): Add argument.
8971 * remote.c (remote_disable_btrace): Add 'self' argument.
8972 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8974 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8979 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8980 * target.c (target_enable_btrace): Add argument.
8981 * remote.c (remote_enable_btrace): Add 'self' argument.
8982 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8984 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8990 (target_can_use_agent): Add argument.
8991 * target.c (update_current_target): Update.
8992 * remote.c (remote_can_use_agent): Add 'self' argument.
8993 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target.h (struct target_ops) <to_use_agent>: Add argument.
8998 (target_use_agent): Add argument.
8999 * target.c (update_current_target): Update.
9000 * remote.c (remote_use_agent): Add 'self' argument.
9001 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9006 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9007 (target_traceframe_info): Add argument.
9008 * target.c (update_current_target): Update.
9009 * remote.c (remote_traceframe_info): Add 'self' argument.
9010 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9014 * target.h (target_static_tracepoint_markers_by_strid): Add
9016 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9018 * target.c (update_current_target): Update.
9019 * remote.c (struct target_ops)
9020 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9021 * linux-nat.c (struct target_ops)
9022 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9026 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9028 (target_static_tracepoint_marker_at): Add argument.
9029 * target.c (update_current_target): Update.
9030 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9035 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9036 (target_set_permissions): Add argument.
9037 * target.c (update_current_target): Update.
9038 * remote.c (remote_set_permissions): Add 'self' argument.
9039 (remote_start_remote): Update.
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9043 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9044 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9045 (target_get_tib_address): Add argument.
9046 * target.c (update_current_target): Update.
9047 * remote.c (remote_get_tib_address): Add 'self' argument.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9052 (target_set_trace_notes): Add argument.
9053 * target.c (update_current_target): Update.
9054 * remote.c (remote_set_trace_notes): Add 'self' argument.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9060 (target_set_trace_buffer_size): Add argument.
9061 * target.c (update_current_target): Update.
9062 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9068 (target_set_circular_trace_buffer): Add argument.
9069 * target.c (update_current_target): Update.
9070 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9073 2014-02-19 Tom Tromey <tromey@redhat.com>
9075 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9077 (target_set_disconnected_tracing): Add argument.
9078 * target.c (update_current_target): Update.
9079 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9083 * target.h (struct target_ops)
9084 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9085 (target_get_min_fast_tracepoint_insn_len): Add argument.
9086 * target.c (update_current_target): Update.
9087 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9092 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9094 (target_get_raw_trace_data): Add argument.
9095 * target.c (update_current_target): Update.
9096 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9102 (target_upload_trace_state_variables): Add argument.
9103 * target.c (update_current_target): Update.
9104 * remote.c (remote_upload_trace_state_variables): Add 'self'
9106 (remote_start_remote): Update.
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9110 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9112 (target_upload_tracepoints): Add argument.
9113 * target.c (update_current_target): Update.
9114 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9115 (remote_start_remote): Update.
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9119 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9120 (target_save_trace_data): Add argument.
9121 * target.c (update_current_target): Update.
9122 * remote.c (remote_save_trace_data): Add 'self' argument.
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9126 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9128 * target.h (struct target_ops)
9129 <to_get_trace_state_variable_value>: Add argument.
9130 (target_get_trace_state_variable_value): Add argument.
9131 * target.c (update_current_target): Update.
9132 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9134 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9139 * target.h (struct target_ops) <to_trace_find>: Add argument.
9140 (target_trace_find): Add argument.
9141 * target.c (update_current_target): Update.
9142 * remote.c (remote_trace_find): Add 'self' argument.
9143 * ctf.c (ctf_trace_find): Add 'self' argument.
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9147 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9148 (target_trace_stop): Add argument.
9149 * target.c (update_current_target): Update.
9150 * remote.c (remote_trace_stop): Add 'self' argument.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9155 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9157 (target_get_tracepoint_status): Add argument.
9158 * target.c (update_current_target): Update.
9159 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9164 * target.h (struct target_ops) <to_get_trace_status>: Add
9166 (target_get_trace_status): Add argument.
9167 * target.c (update_current_target): Update.
9168 * remote.c (remote_get_trace_status): Add 'self' argument.
9169 (remote_start_remote, remote_can_download_tracepoint): Update.
9170 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * target.h (struct target_ops) <to_trace_start>: Add argument.
9175 (target_trace_start): Add argument.
9176 * target.c (update_current_target): Update.
9177 * remote.c (remote_trace_start): Add 'self' argument.
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9181 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9183 (target_trace_set_readonly_regions): Add argument.
9184 * target.c (update_current_target): Update.
9185 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9190 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9192 (target_disable_tracepoint): Add argument.
9193 * target.c (update_current_target): Update.
9194 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9200 (target_enable_tracepoint): Add argument.
9201 * target.c (update_current_target): Update.
9202 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_download_trace_state_variable>:
9208 (target_download_trace_state_variable): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_download_trace_state_variable): Add 'self'
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9217 (target_can_download_tracepoint): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9223 * target.h (struct target_ops) <to_download_tracepoint>: Add
9225 (target_download_tracepoint): Add argument.
9226 * target.c (update_current_target): Update.
9227 * remote.c (remote_download_tracepoint): Add 'self' argument.
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target.h (struct target_ops) <to_trace_init>: Add argument.
9232 (target_trace_init): Add argument.
9233 * target.c (update_current_target): Update.
9234 * remote.c (remote_trace_init): Add 'self' argument.
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9239 * target.c (target_fileio_readlink): Add argument.
9240 * remote.c (remote_hostio_readlink): Add 'self' argument.
9241 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9246 * target.c (target_fileio_unlink): Add argument.
9247 * remote.c (remote_hostio_unlink): Add 'self' argument.
9248 (remote_file_delete): Update.
9249 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9253 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9254 * target.c (target_fileio_close): Add argument.
9255 * remote.c (remote_hostio_close): Add 'self' argument.
9256 (remote_hostio_close_cleanup): Update.
9257 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9259 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9264 * target.c (target_fileio_pread): Add argument.
9265 * remote.c (remote_hostio_pread): Add 'self' argument.
9266 (remote_bfd_iovec_pread, remote_file_get): Update.
9267 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9272 * target.c (target_fileio_pwrite): Add argument.
9273 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9274 (remote_file_put): Update.
9275 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9280 * target.c (target_fileio_open): Add argument.
9281 * remote.c (remote_hostio_open): Add 'self' argument.
9282 (remote_bfd_iovec_open): Add 'self' argument.
9283 (remote_file_put): Add 'self' argument.
9284 (remote_file_get): Add 'self' argument.
9285 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9291 (target_can_run_breakpoint_commands): Add argument.
9292 * target.c (update_current_target): Update.
9293 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9295 (remote_insert_breakpoint): Add 'self' argument.
9296 (remote_insert_hw_breakpoint): Add 'self' argument.
9297 (remote_can_run_breakpoint_commands): Add 'self' argument.
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9301 * target.h (struct target_ops)
9302 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9303 (target_supports_evaluation_of_breakpoint_conditions): Add
9305 * target.c (update_current_target): Update.
9306 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9308 (remote_insert_breakpoint): Add 'self' argument.
9309 (remote_insert_hw_breakpoint): Add 'self' argument.
9310 (remote_supports_cond_breakpoints): Add 'self' argument.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9316 (target_supports_string_tracing): Add argument.
9317 * target.c (update_current_target): Update.
9318 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target.h (struct target_ops)
9323 <to_supports_disable_randomization>: Add argument.
9324 * target.c (find_default_supports_disable_randomization): Add
9326 (target_supports_disable_randomization): Add argument.
9327 (find_default_supports_disable_randomization): Add 'self'
9329 * remote.c (extended_remote_supports_disable_randomization): Add
9331 (remote_supports_disable_randomization): Add 'self' argument.
9332 (extended_remote_create_inferior): Update.
9333 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target.h (struct target_ops)
9339 <to_supports_enable_disable_tracepoint>: Add argument.
9340 (target_supports_enable_disable_tracepoint): Add argument.
9341 * target.c (update_current_target): Update.
9342 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9347 * target.h (struct target_ops) <to_supports_multi_process>: Add
9349 (target_supports_multi_process): Add argument.
9350 * target.c (update_current_target): Update.
9351 * remote.c (remote_supports_multi_process): Add 'self' argument.
9352 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9354 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target.h (struct target_ops) <to_execution_direction>: Add
9361 (target_execution_direction): Add argument.
9362 * target.c (default_execution_direction): Add 'self' argument.
9363 * record-full.c (record_full_execution_direction): Add 'self'
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9370 (target_can_execute_reverse): Add argument.
9371 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9372 * record-full.c (record_full_can_execute_reverse): Add 'self'
9374 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9379 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9380 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9382 (target_get_ada_task_ptid): Add argument.
9383 * target.c (update_current_target): Update.
9384 (default_get_ada_task_ptid): Add 'self' argument.
9385 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9386 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9387 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9389 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9391 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9393 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9395 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9396 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9401 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9402 (target_goto_bookmark): Add argument.
9403 * target.c (dummy_goto_bookmark): Add 'self' argument.
9404 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9409 (target_get_bookmark): Add argument.
9410 * target.c (dummy_get_bookmark): Add 'self' argument.
9411 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9417 (target_make_corefile_notes): Add argument.
9418 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9419 * procfs.c (procfs_make_note_section): Add 'self' argument.
9420 (procfs_make_note_section): Add 'self' argument.
9421 (procfs_make_note_section): Add 'self' argument.
9422 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9424 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9425 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9426 * exec.c (exec_make_note_section): Add 'self' argument.
9427 (exec_make_note_section): Add 'self' argument.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target.h (struct target_ops) <to_find_memory_regions>: Add
9433 (target_find_memory_regions): Add argument.
9434 * target.c (dummy_find_memory_regions): Add 'self' argument.
9435 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9436 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9437 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9438 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9439 * exec. (exec_do_find_memory_regions): New global.
9440 (exec_set_find_memory_regions): Rewrite.
9441 (exec_find_memory_regions): New function.
9442 (init_exec_ops): Use exec_find_memory_regions.
9444 2014-02-19 Tom Tromey <tromey@redhat.com>
9446 * target.h (struct target_ops) <to_supports_non_stop>: Add
9448 * target.c (find_default_supports_non_stop): Add argument.
9449 (target_supports_non_stop): Add argument.
9450 (find_default_supports_non_stop): Add 'self' argument.
9451 * remote.c (remote_supports_non_stop): Add 'self' argument.
9452 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target.h (struct target_ops) <to_log_command>: Add argument.
9457 (target_log_command): Add argument.
9458 * serial.h (serial_log_command): Add 'self' argument.
9459 * serial.c (serial_log_command): Add 'self' argument.
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9464 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9466 (target_pid_to_exec_file): Add argument.
9467 * target.c (debug_to_pid_to_exec_file): Add argument.
9468 (update_current_target): Update.
9469 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9470 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9471 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9472 (linux_handle_extended_wait): Update.
9473 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9474 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9475 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9476 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target.h (struct target_ops) <to_rcmd>: Add argument.
9481 (target_rcmd): Add argument.
9482 * target.c (debug_to_rcmd): Add argument.
9483 (update_current_target, do_monitor_command): Update.
9484 * remote.c (remote_rcmd): Add 'self' argument.
9485 * monitor.c (monitor_rcmd): Add 'self' argument.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * windows-nat.c (windows_stop): Add 'self' argument.
9490 * target.h (struct target_ops) <to_stop>: Add argument.
9491 * target.c (target_stop): Add argument.
9492 (debug_to_stop): Add argument.
9493 (update_current_target): Update.
9494 * remote.c (remote_stop): Add 'self' argument.
9495 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9496 (gdbsim_cntrl_c): Update.
9497 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9498 * procfs.c (procfs_stop): Add 'self' argument.
9499 * nto-procfs.c (procfs_stop): Add 'self' argument.
9500 * monitor.c (monitor_stop): Add 'self' argument.
9501 (monitor_open): Update.
9502 * linux-nat.c (linux_nat_stop): Add argument.
9503 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9504 * gnu-nat.c (gnu_stop): Add 'self' argument.
9505 * darwin-nat.c (darwin_stop): Add 'self' argument.
9507 2014-02-19 Tom Tromey <tromey@redhat.com>
9509 * target.h (struct target_ops) <to_thread_name>: Add argument.
9510 * target.c (target_thread_name): Add argument.
9511 (update_current_target): Update.
9512 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9516 * target.h (struct target_ops) <to_extra_thread_info>: Add
9518 (target_extra_thread_info): Add argument.
9519 * target.c (update_current_target): Update.
9520 * remote.c (remote_threads_extra_info): Add 'self' argument.
9521 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9523 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9524 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9525 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9527 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9529 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9531 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9536 * target.h (struct target_ops) <to_program_signals>: Add argument.
9537 * target.c (target_program_signals): Add argument.
9538 * remote.c (remote_program_signals): Add 'self' argument.
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9543 * target.c (target_pass_signals): Add argument.
9544 * remote.c (remote_pass_signals): Add 'self' argument.
9545 (remote_start_remote): Update.
9546 * procfs.c (procfs_pass_signals): Add 'self' argument.
9547 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9548 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9549 (linux_nat_create_inferior, linux_nat_attach): Update.
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * windows-nat.c (windows_can_run): Add 'self' argument.
9554 * target.h (struct target_ops) <to_can_run>: Add argument.
9555 (target_can_run): Add argument.
9556 * target.c (debug_to_can_run): Add argument.
9557 (update_current_target): Update.
9558 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9559 * inf-child.c (inf_child_can_run): Add 'self' argument.
9560 * go32-nat.c (go32_can_run): Add 'self' argument.
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9564 * target.h (struct target_ops) <to_has_exited>: Add argument.
9565 (target_has_exited): Add argument.
9566 * target.c (debug_to_has_exited): Add argument.
9567 (update_current_target): Update.
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9573 (target_set_syscall_catchpoint): Add argument.
9574 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9576 * target.c (update_current_target): Update.
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9582 (target_remove_exec_catchpoint): Add argument.
9583 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9584 (update_current_target): Update.
9585 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9588 2014-02-19 Tom Tromey <tromey@redhat.com>
9590 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9592 (target_insert_exec_catchpoint): Add argument.
9593 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9594 (update_current_target): Update.
9595 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9598 2014-02-19 Tom Tromey <tromey@redhat.com>
9600 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9602 (target_remove_vfork_catchpoint): Add argument.
9603 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9604 (update_current_target): Update.
9605 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9612 (target_insert_vfork_catchpoint): Add argument.
9613 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9614 (update_current_target): Update.
9615 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9622 (target_remove_fork_catchpoint): Add argument.
9623 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9624 (update_current_target): Update.
9625 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9632 (target_insert_fork_catchpoint): Add argument.
9633 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9634 (update_current_target): Update.
9635 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9640 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9642 (target_post_startup_inferior): Add argument.
9643 * target.c (debug_to_post_startup_inferior): Add argument.
9644 (update_current_target): Update.
9645 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9647 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9649 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9651 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9653 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9655 (super_post_startup_inferior): Likewise.
9656 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9658 (super_post_startup_inferior): Likewise.
9659 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9660 Add 'self' argument.
9661 (super_post_startup_inferior): Likewise.
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target.h (struct target_ops) <to_load>: Add argument.
9666 * target.c (target_load): Add argument.
9667 (debug_to_load): Add argument.
9668 (update_current_target): Update.
9669 * remote.c (remote_load): Add 'self' argument.
9670 * remote-sim.c (gdbsim_load): Add 'self' argument.
9671 * remote-mips.c (mips_load): Add 'self' argument.
9672 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9673 * monitor.c (monitor_load): Add 'self' argument.
9674 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9679 (target_terminal_info): Add argument.
9680 * target.c (debug_to_terminal_info): Add argument.
9681 (default_terminal_info): Likewise.
9682 * inflow.c (child_terminal_info): Add 'self' argument.
9683 * inferior.h (child_terminal_info): Add 'self' argument.
9684 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9688 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9690 (target_terminal_save_ours): Add argument.
9691 * target.c (debug_to_terminal_save_ours): Add argument.
9692 (update_current_target): Update.
9693 * inflow.c (terminal_save_ours): Add 'self' argument.
9694 * inferior.h (terminal_save_ours): Add 'self' argument.
9696 2014-02-19 Tom Tromey <tromey@redhat.com>
9698 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9699 (target_terminal_ours): Add argument.
9700 * target.c (debug_to_terminal_ours): Add argument.
9701 (update_current_target): Update.
9702 * remote.c (remote_terminal_ours): Add 'self' argument.
9703 (remote_close): Update.
9704 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9705 * inflow.c (terminal_ours): Add 'self' argument.
9706 * inferior.h (terminal_ours): Add 'self' argument.
9707 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9709 2014-02-19 Pedro Alves <palves@redhat.com>
9710 Tom Tromey <tromey@redhat.com>
9712 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9714 (target_terminal_ours_for_output): Add argument.
9715 * target.c (debug_to_terminal_ours_for_output): Add argument.
9716 (update_current_target): Update.
9717 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9718 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9719 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target.h (struct target_ops) <to_terminal_inferior>: Add
9725 * target.c (target_terminal_inferior): Add argument.
9726 (update_current_target): Update.
9727 * remote.c (remote_terminal_inferior): Add 'self' argument.
9728 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9729 * inflow.c (terminal_inferior): Add 'self' argument.
9730 * inferior.h (terminal_inferior): Add 'self' argument.
9731 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9732 (go32_terminal_inferior): Add 'self' argument.
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9736 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9737 (target_terminal_init): Add argument.
9738 * target.c (debug_to_terminal_init): Add argument.
9739 (update_current_target): Update.
9740 * inflow.c (terminal_init_inferior): Add 'self' argument.
9741 * inferior.h (terminal_init_inferior): Add 'self' argument.
9742 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9743 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target.h (struct target_ops)
9748 <to_can_accel_watchpoint_condition>: Add argument.
9749 (target_can_accel_watchpoint_condition): Add argument.
9750 * target.c (debug_to_can_accel_watchpoint_condition): Add
9752 (update_current_target): Update.
9753 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9760 (target_region_ok_for_hw_watchpoint): Add argument.
9761 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9762 (default_region_ok_for_hw_watchpoint): Add argument.
9763 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9764 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9766 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9768 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9770 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9772 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9774 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9776 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9777 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9779 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9780 Add 'self' argument.
9782 2014-02-19 Tom Tromey <tromey@redhat.com>
9784 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9786 (target_insert_watchpoint): Add argument.
9787 * target.c (debug_to_insert_watchpoint): Add argument.
9788 (update_current_target): Update.
9789 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9790 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9791 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9792 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9793 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9794 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9796 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9797 (procfs_insert_hw_watchpoint): Add 'self' argument.
9798 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9800 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9802 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9804 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9805 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9807 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9812 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9814 (target_remove_watchpoint): Add argument.
9815 * target.c (debug_to_remove_watchpoint): Add argument.
9816 (update_current_target): Update.
9817 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9818 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9819 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9820 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9821 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9822 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9824 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9825 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9827 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9829 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9831 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9832 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9834 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9837 2014-02-19 Tom Tromey <tromey@redhat.com>
9839 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9841 (target_remove_hw_breakpoint): Add argument.
9842 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9843 (update_current_target): Update.
9844 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9845 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9847 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9848 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9850 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9855 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9857 (target_insert_hw_breakpoint): Add argument.
9858 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9859 (update_current_target): Update.
9860 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9861 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9863 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9864 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9865 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9867 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9874 (target_can_use_hardware_watchpoint): Add argument.
9875 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9876 (update_current_target): Update.
9877 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9879 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9881 * remote.c (remote_check_watch_resources): Add 'self' argument.
9882 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9883 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9885 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9886 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9888 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9890 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9892 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9894 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9896 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9898 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9899 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9901 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9904 2014-02-19 Tom Tromey <tromey@redhat.com>
9906 * target.h (struct target_ops) <to_post_attach>: Add argument.
9907 (target_post_attach): Add argument.
9908 * target.c (debug_to_post_attach): Add argument.
9909 (update_current_target): Update.
9910 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9911 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9912 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9913 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9914 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * windows-nat.c (windows_close): Add 'self' argument.
9919 * tracepoint.c (tfile_close): Add 'self' argument.
9920 * target.h (struct target_ops) <to_close>: Add argument.
9921 * target.c (target_close): Add argument.
9922 (update_current_target): Update.
9923 * remote.c (remote_close): Add 'self' argument.
9924 * remote-sim.c (gdbsim_close): Add 'self' argument.
9925 * remote-mips.c (mips_close): Add 'self' argument.
9926 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9927 * record-full.c (record_full_close): Add 'self' argument.
9928 * record-btrace.c (record_btrace_close): Add 'self' argument.
9929 * monitor.h (monitor_close): Add 'self' argument.
9930 * monitor.c (monitor_close): Add 'self' argument.
9931 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9932 * linux-nat.c (linux_nat_close): Add argument.
9933 * go32-nat.c (go32_close): Add 'self' argument.
9934 * exec.c (exec_close_1): Add 'self' argument.
9935 * ctf.c (ctf_close): Add 'self' argument.
9936 * corelow.c (core_close): Add 'self' argument.
9937 (core_close_cleanup): Update.
9938 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9939 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9943 * remote.c (remote_load): New function.
9944 (init_remote_ops): Use it.
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9948 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9950 * common/linux-btrace.h (linux_supports_btrace): Update.
9951 * remote.c (remote_supports_btrace): Add "self" argument.
9952 * target-delegates.c: Rebuild.
9953 * target.c (target_supports_btrace): Remove.
9954 * target.h (struct target_ops) <to_supports_btrace>: Add
9955 target_ops argument.
9956 (target_supports_btrace): New define.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * record-full.c (record_full_beneath_to_resume_ops)
9961 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9962 (record_full_beneath_to_wait)
9963 (record_full_beneath_to_store_registers_ops)
9964 (record_full_beneath_to_store_registers)
9965 (record_full_beneath_to_xfer_partial_ops)
9966 (record_full_beneath_to_xfer_partial)
9967 (record_full_beneath_to_insert_breakpoint_ops)
9968 (record_full_beneath_to_insert_breakpoint)
9969 (record_full_beneath_to_remove_breakpoint_ops)
9970 (record_full_beneath_to_remove_breakpoint)
9971 (record_full_beneath_to_stopped_by_watchpoint)
9972 (record_full_beneath_to_stopped_data_address)
9973 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9974 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9975 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9976 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9977 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9978 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9979 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9980 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9981 (record_full_resume, record_full_wait_1)
9982 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9983 (record_full_store_registers, record_full_xfer_partial)
9984 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9985 (record_full_async, record_full_core_xfer_partial): Use target
9987 * target-delegates.c: Rebuild.
9988 * target.c (current_xfer_partial): Remove.
9989 (update_current_target): Do not INHERIT or de_fault
9990 to_insert_breakpoint, to_remove_breakpoint,
9991 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9992 to_is_async_p, to_async. Do not set to_xfer_partial field.
9993 (default_xfer_partial): Simplify.
9994 (current_xfer_partial): Remove.
9995 (target_wait, target_resume): Simplify.
9996 (find_default_can_async_p, find_default_is_async_p): Update.
9997 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9998 to_xfer_partial, to_stopped_by_watchpoint,
9999 to_stopped_data_address.
10000 (target_store_registers): Simplify.
10001 (forward_target_remove_breakpoint)
10002 (forward_target_insert_breakpoint): Remove.
10003 (target_remove_breakpoint, target_insert_breakpoint)
10004 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10005 * target.h (struct target_ops) <to_resume, to_wait,
10006 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10007 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10008 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10010 (forward_target_remove_breakpoint)
10011 (forward_target_insert_breakpoint): Remove.
10012 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10014 (record_btrace_insert_breakpoint): Delegate directly.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10019 * target-delegates.c: New file.
10020 * target.c: Include target-delegates.c.
10021 (init_dummy_target): Call install_dummy_methods.
10022 (complete_target_initialization): Call install_delegators.
10023 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10024 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10025 * make-target-delegates: New file.
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * record.c (find_record_target): Use find_target_at.
10030 * target.c (find_target_at): New function.
10031 * target.h (find_target_at): Declare.
10033 2014-02-19 Tom Tromey <tromey@redhat.com>
10035 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10036 Add 'ops' argument.
10037 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10039 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10040 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10042 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10044 * linux-nat.c (save_sigtrap): Update.
10045 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10046 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10047 (linux_nat_close): Update.
10048 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10050 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10052 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10053 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10054 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10055 (tmp_to_async): Add 'ops' argument.
10056 (record_full_stopped_by_watchpoint, record_full_async)
10057 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10059 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10060 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10061 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10062 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10063 (remote_is_async_p, remote_async): Add 'ops' argument.
10064 (remote_stopped_data_address): Update.
10065 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10066 * target.c (update_current_target)
10067 (find_default_can_async_p, find_default_is_async_p): Update.
10068 (init_dummy_target): Update.
10069 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10070 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10071 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10072 (target_can_async_p, target_is_async_p, target_async)
10073 (target_stopped_by_watchpoint): Update.
10075 2014-02-19 Yao Qi <yao@codesourcery.com>
10078 * gdbarch.sh: Remove startup_gdbarch.
10079 * gdbarch.c: Regenerated.
10080 * gdbarch.h: Likewise.
10082 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10084 * rl78-tdep.c (rl78_g10_register_name): New function.
10085 (rl78_return_value): Add g10 support.
10086 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10089 2014-02-17 Doug Evans <xdje42@gmail.com>
10091 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10092 (SUBDIR_GUILE_SRCS): Ditto.
10093 (scm-gsmob.o): Ditto.
10095 2014-02-17 Yao Qi <yao@codesourcery.com>
10097 * gnu-nat.c (ILL_RPC): Declare defined function.
10099 2014-02-17 Yao Qi <yao@codesourcery.com>
10101 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10102 mach_msg_type_number_t.
10103 (gnu_write_inferior): Likewise.
10105 2014-02-17 Yao Qi <yao@codesourcery.com>
10107 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10109 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10110 (inf_validate_procs, inf_signal): Likewise.
10111 (S_exception_raise_request): Likewise.
10112 (do_mach_notify_dead_name): Likewise.
10113 (steal_exc_port): Likewise.
10114 (gnu_read_inferior): Change 'copy_count''s type to
10115 mach_msg_type_number_t.
10116 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10119 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10121 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10122 flag. Adjust all users; in particular...
10123 (gnu_wait): ..., don't decrement its value in here...
10124 (gnu_create_inferior): ..., and instead set the flag in here,
10125 around the startup_inferior call, and call that one with
10126 START_INFERIOR_TRAPS_EXPECTED.
10128 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10129 (ILL_RPC): ... new macro.
10130 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10131 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10132 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10133 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10134 functions with ILL_RPC macro.
10135 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10136 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10137 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10138 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10139 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10140 (S_proc_getlogin_reply, S_proc_getsid_reply)
10141 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10142 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10143 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10144 (S_proc_getnports_reply, S_proc_is_important_reply)
10145 (S_proc_get_code_reply): New stub functions, generated with
10148 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10149 collected the type check structures.
10151 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10153 2014-02-14 Doug Evans <dje@google.com>
10155 * target.c (target_write_partial): Fix result type.
10157 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10159 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10160 the proper offsets to access fpregset_t.
10162 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10164 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10165 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10166 * h8300-tdep.c (setmachinelist): Remove global.
10167 * hppa-tdep.c (hppa_sigtramp): Remove global.
10168 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10169 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10170 * ravenscar-thread.c (update_target_observer): Remove global.
10171 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10173 2014-02-12 Tom Tromey <tromey@redhat.com>
10175 * common/rsp-low.c: Update comments.
10176 * common/rsp-low.h: Update comments.
10178 2014-02-12 Tom Tromey <tromey@redhat.com>
10180 * common/rsp-low.c (convert_ascii_to_int): Remove.
10181 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10183 2014-02-12 Tom Tromey <tromey@redhat.com>
10185 * common/rsp-low.h (unhexify): Don't declare.
10186 * common/rsp-low.c (unhexify): Remove.
10188 2014-02-12 Tom Tromey <tromey@redhat.com>
10190 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10191 * common/rsp-low.c (convert_int_to_ascii): Remove.
10193 2014-02-12 Tom Tromey <tromey@redhat.com>
10195 * common/rsp-low.h (hexify): Don't declare.
10196 * common/rsp-low.c (hexify): Remove.
10198 2014-02-12 Tom Tromey <tromey@redhat.com>
10200 * common/rsp-low.c (hexify): Never take strlen of argument.
10202 2014-02-12 Tom Tromey <tromey@redhat.com>
10204 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10205 * remote.c (extended_remote_run, remote_rcmd)
10206 (remote_download_trace_state_variable, remote_save_trace_data)
10207 (remote_set_trace_notes): Update.
10208 * tracepoint.c (encode_source_string, tfile_write_status)
10209 (tfile_write_uploaded_tsv): Update.
10211 2014-02-12 Tom Tromey <tromey@redhat.com>
10213 * tracepoint.c: Include rsp-low.h.
10214 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10215 * remote.c: Include rsp-low.h.
10216 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10217 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10218 (remote_unescape_input): Move to common/rsp-low.c.
10219 * common/rsp-low.h: New file.
10220 * common/rsp-low.c: New file.
10221 * Makefile.in (SFILES): Add common/rsp-low.c.
10222 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10223 (COMMON_OBS): Add rsp-low.o.
10224 (rsp-low.o): New target.
10226 2014-02-12 Tom Tromey <tromey@redhat.com>
10228 * utils.h: Include print-utils.h.
10229 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10230 (int_string, core_addr_to_string, core_addr_to_string_nz)
10231 (hex_string, hex_string_custom): Don't declare.
10232 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10233 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10234 (hex_string_custom, int_string, core_addr_to_string)
10235 (core_addr_to_string_nz, host_address_to_string): Move to
10236 common/print-utils.c.
10237 * common/print-utils.h: New file.
10238 * common/print-utils.c: New file
10239 * Makefile.in (SFILES): Add common/print-utils.c.
10240 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10241 (COMMON_OBS): Add print-utils.o.
10242 (print-utils.o): New target.
10244 2014-02-12 Tom Tromey <tromey@redhat.com>
10246 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10248 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10250 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10252 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10254 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10255 if a PT_IO ptrace request returns sucessfully but indicates that 0
10256 bytes were transferred.
10258 2014-02-12 Pedro Alves <palves@redhat.com>
10259 Kevin Buettner <kevinb@redhat.com>
10261 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10262 TYPE_INSTANCE_FLAG_CODE_SPACE.
10264 2014-02-12 Pedro Alves <palves@redhat.com>
10266 * h8300-tdep.c (pseudo_from_raw_register)
10267 (raw_from_pseudo_register): New functions.
10268 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10271 2014-02-12 Pedro Alves <palves@redhat.com>
10273 * h8300-tdep.c (h8300_register_sim_regno): New function.
10274 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10275 gdbarch_register_sim_regno hook.
10277 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10279 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10281 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10283 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10285 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10287 * obsd-tdep.h (obsd_init_abi): New prototype.
10288 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10289 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10290 (obsd_init_abi): New functions.
10291 * i386obsd-tdep.c: Include "obsd-tdep.h".
10292 (i386obsd_init_abi): Call obsd_init_abi.
10293 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10294 (amd64obsd_init_abi): Call obsd_init_abi.
10295 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10296 obsd-tdep.c to gdb_target_obs.
10298 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10300 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10301 double float arguments to 16-byte in the argument slots.
10303 2014-02-11 Doug Evans <xdje42@gmail.com>
10305 * configure.ac: Don't crash if pkg-config is not found and guile
10306 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10308 * configure: Regenerate.
10310 2014-02-11 Yao Qi <yao@codesourcery.com>
10312 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10313 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10314 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10315 * gnu-nat.c (gnu_xfer_memory): Likewise.
10316 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10317 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10318 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10319 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10321 2014-02-11 Yao Qi <yao@codesourcery.com>
10323 * target.h (enum target_xfer_error): Rename to ...
10324 (enum target_xfer_status): ... it. New. All users updated.
10325 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10327 (TARGET_XFER_STATUS_ERROR_P): New macro.
10328 (target_xfer_error_to_string): Remove declaration.
10329 (target_xfer_status_to_string): Declare.
10330 (target_xfer_partial_ftype): Adjust it.
10331 (struct target_ops) <to_xfer_partial>: Return
10332 target_xfer_status. Add argument xfered_len. Update
10334 * target.c (target_xfer_error_to_string): Rename to ...
10335 (target_xfer_status_to_string): ... it. New. All callers
10337 (target_read_live_memory): Likewise. Call target_xfer_partial
10338 instead of target_read.
10339 (memory_xfer_live_readonly_partial): Return
10340 target_xfer_status. Add argument xfered_len.
10341 (raw_memory_xfer_partial): Likewise.
10342 (memory_xfer_partial_1): Likewise.
10343 (memory_xfer_partial): Likewise.
10344 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10345 properly. Update debug message.
10346 (default_xfer_partial, current_xfer_partial): Likewise.
10347 (target_write_partial): Likewise.
10348 (target_read_partial): Likewise. All callers updated.
10349 (read_whatever_is_readable): Likewise.
10350 (target_write_with_progress): Likewise.
10351 (target_read_alloc_1): Likewise.
10353 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10354 * auxv.c (procfs_xfer_auxv): Likewise.
10355 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10356 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10357 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10358 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10359 * corefile.c (read_memory): Adjust.
10360 * corelow.c (core_xfer_partial): Likewise.
10361 * ctf.c (ctf_xfer_partial): Likewise.
10362 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10364 (darwin_xfer_partial): Likewise.
10365 * exec.c (section_table_xfer_memory_partial): Likewise. All
10367 (exec_xfer_partial): Likewise.
10368 * exec.h (section_table_xfer_memory_partial): Update
10370 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10372 (gnu_xfer_partial): Likewise.
10373 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10374 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10375 (ia64_hpux_xfer_solib_got): Likewise.
10376 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10377 type of 'partial_len' to ULONGEST.
10378 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10379 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10380 (linux_nat_xfer_partial): Likewise.
10381 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10382 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10383 * monitor.c (monitor_xfer_memory): Likewise.
10384 (monitor_xfer_partial): Likewise.
10385 * procfs.c (procfs_xfer_partial): Likewise.
10386 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10387 * record-full.c (record_full_xfer_partial): Likewise.
10388 (record_full_core_xfer_partial): Likewise.
10389 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10390 (gdbsim_xfer_partial): Likewise.
10391 * remote.c (remote_write_bytes_aux): Likewise. All callers
10393 (remote_write_bytes, remote_read_bytes): Likewise. All
10395 (remote_flash_erase): Likewise. All callers updated.
10396 (remote_write_qxfer): Likewise. All callers updated.
10397 (remote_read_qxfer): Likewise. All callers updated.
10398 (remote_xfer_partial): Likewise.
10399 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10400 (rs6000_xfer_shared_libraries): Likewise.
10401 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10402 (sol_thread_xfer_partial): Likewise.
10403 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10404 (sparc_xfer_partial): Likewise.
10405 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10407 (spu_xfer_partial): Likewise.
10408 * spu-multiarch.c (spu_xfer_partial): Likewise.
10409 * tracepoint.c (tfile_xfer_partial): Likewise.
10410 * windows-nat.c (windows_xfer_memory): Likewise.
10411 (windows_xfer_shared_libraries): Likewise.
10412 (windows_xfer_partial): Likewise.
10413 * valprint.c: Replace 'target_xfer_error' with
10414 'target_xfer_status' in comments.
10416 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10418 Checked in by Joel Brobecker <brobecker@adacore.com>.
10419 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10421 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10423 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10424 function parameters.
10426 2014-02-10 Will Newton <will.newton@linaro.org>
10428 * elfread.c (elf_rel_plt_read): Look for a .got section if
10429 looking up .got.plt fails.
10430 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10431 on address passed to elf_gnu_ifunc_record_cache.
10432 (elf_gnu_ifunc_resolve_addr): Likewise.
10433 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10435 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10437 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10438 (X_RETTURN): New macro.
10439 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10441 * sparc64-tdep.c (sparc64_init_abi): Hook
10442 sparc_in_function_epilogue_p.
10444 2014-02-10 Gary Benson <gbenson@redhat.com>
10446 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10447 Rename name_matcher to symbol_matcher.
10449 2014-02-10 Gary Benson <gbenson@redhat.com>
10451 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10452 Use expand_symtabs_file_matcher_ftype and
10453 expand_symtabs_symbol_matcher_ftype.
10455 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10457 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10458 (struct ada_symbol_cache): New.
10459 (ada_free_symbol_cache): Forward declare.
10460 (struct ada_pspace_data): New.
10461 (ada_pspace_data_handle): New static global.
10462 (get_ada_pspace_data, ada_pspace_data_cleanup)
10463 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10464 (cache_space, cache): Delete, now folded inside struct
10466 (ada_get_symbol_cache): New function.
10467 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10469 (_initialize_ada_language): Remove initialization of cache_space.
10470 Move call to observer_attach_inferior_exit up, grouping it
10471 with the other observer registrations inside this function.
10472 Rename command to be more general. Add call to
10473 register_program_space_data_with_cleanup.
10475 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10477 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10478 ada_new_objfile_observer.
10479 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10480 (_initialize_tasks): Update uses of ada_new_objfile_observer
10481 and ada_tasks_normal_stop_observer.
10483 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10485 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10486 returned by the 'Length attribute to integer.
10488 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10490 * ada-lang.c (_initialize_ada_language): Initialize
10491 cache_space obstack.
10493 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10495 * ada-lang.c (HASH_SIZE): New macro.
10496 (struct cache_entry): New type.
10497 (cache_space, cache): New static globals.
10498 (ada_clear_symbol_cache, find_entry): New functions.
10499 (lookup_cached_symbol, cache_symbol): Implement.
10500 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10501 (_initialize_ada_language): Attach ada_new_objfile_observer
10502 and ada_free_objfile_observer.
10504 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10506 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10507 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10508 struct block * parameter.
10509 (ada_lookup_symbol_list_worker): Constify local variable "block".
10510 Remove cast which is no longer necessary.
10512 2014-02-10 Doug Evans <xdje42@gmail.com>
10514 Add Guile as an extension language.
10515 * NEWS: Mention Guile scripting.
10516 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10517 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10518 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10519 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10520 (CLIBS): Add GUILE_LIBS.
10521 (install-guile): New rule.
10522 (guile.o): New rule.
10523 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10524 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10525 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10526 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10527 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10528 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10529 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10530 * configure.ac: New option --with-guile.
10531 * configure: Regenerate.
10532 * config.in: Regenerate.
10533 * auto-load.c: Remove #include "python/python.h". Add #include
10534 "gdb/section-scripts.h".
10535 (source_section_scripts): Handle Guile scripts.
10536 (_initialize_auto_load): Add name of Guile objfile script to
10537 scripts-directory help text.
10538 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10539 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10540 (struct breakpoint): New member scm_bp_object.
10541 * defs.h (enum command_control_type): New value guile_control.
10542 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10544 (show_user): Update comment.
10545 (_initialize_cli_cmds): Update help text for "show user". Update help
10546 text for max-user-call-depth.
10547 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10549 (multi_line_command_p): Add guile_control.
10550 (print_command_lines): Handle guile_control.
10551 (execute_control_command, recurse_read_control_structure): Ditto.
10552 (process_next_line): Recognize "guile" commands.
10553 * disasm.c (gdb_disassemble_info): Make non-static.
10554 * disasm.h: #include "dis-asm.h".
10555 (struct gdbarch): Add forward decl.
10556 (gdb_disassemble_info): Declare.
10557 * extension.c: #include "guile/guile.h".
10558 (extension_languages): Add guile.
10559 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10560 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10561 * gdbtypes.c (get_unsigned_type_max): New function.
10562 (get_signed_type_minmax): New function.
10563 * gdbtypes.h (get_unsigned_type_max): Declare.
10564 (get_signed_type_minmax): Declare.
10565 * guile/README: New file.
10566 * guile/guile-internal.h: New file.
10567 * guile/guile.c: New file.
10568 * guile/guile.h: New file.
10569 * guile/scm-arch.c: New file.
10570 * guile/scm-auto-load.c: New file.
10571 * guile/scm-block.c: New file.
10572 * guile/scm-breakpoint.c: New file.
10573 * guile/scm-disasm.c: New file.
10574 * guile/scm-exception.c: New file.
10575 * guile/scm-frame.c: New file.
10576 * guile/scm-gsmob.c: New file.
10577 * guile/scm-iterator.c: New file.
10578 * guile/scm-lazy-string.c: New file.
10579 * guile/scm-math.c: New file.
10580 * guile/scm-objfile.c: New file.
10581 * guile/scm-ports.c: New file.
10582 * guile/scm-pretty-print.c: New file.
10583 * guile/scm-safe-call.c: New file.
10584 * guile/scm-string.c: New file.
10585 * guile/scm-symbol.c: New file.
10586 * guile/scm-symtab.c: New file.
10587 * guile/scm-type.c: New file.
10588 * guile/scm-utils.c: New file.
10589 * guile/scm-value.c: New file.
10590 * guile/lib/gdb.scm: New file.
10591 * guile/lib/gdb/boot.scm: New file.
10592 * guile/lib/gdb/experimental.scm: New file.
10593 * guile/lib/gdb/init.scm: New file.
10594 * guile/lib/gdb/iterator.scm: New file.
10595 * guile/lib/gdb/printing.scm: New file.
10596 * guile/lib/gdb/types.scm: New file.
10597 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10598 (VPATH): Add $(GUILE_SRCDIR).
10599 (GUILE_DIR): New variable.
10600 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10601 (all): Add stamp-guile dependency.
10602 (stamp-guile): New rule.
10603 (clean-guile, install-guile, uninstall-guile): New rules.
10604 (install-only): Add install-guile dependency.
10605 (uninstall): Add uninstall-guile dependency.
10606 (clean): Add clean-guile dependency.
10608 2014-02-09 Doug Evans <xdje42@gmail.com>
10610 Revert this patch (which I approved, mea culpa).
10612 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10614 * Makefile.in (all-lib): Remove.
10615 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10617 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10619 Fix Python stack corruption.
10620 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10623 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10625 * Makefile.in (all-lib): Remove.
10626 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10628 2014-02-07 Doug Evans <dje@google.com>
10630 * extension-priv.h (extension_language_script_ops): Add comment.
10631 (extension_language_ops): Add comment.
10632 (active_ext_lang_state): Fix typo in comment.
10634 2014-02-07 Pedro Alves <palves@redhat.com>
10636 PR breakpoints/16292
10637 * infrun.c (handle_signal_stop) <signal arrives while stepping
10638 over a breakpoint>: Switch back to the stepping thread.
10640 2014-02-07 Yao Qi <yao@codesourcery.com>
10642 * target.c (target_xfer_partial): Return zero if LEN is zero.
10644 2014-02-07 Yao Qi <yao@codesourcery.com>
10646 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10647 (ld_so_xfer_auxv): Likewise.
10648 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10649 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10650 * corelow.c (core_xfer_partial): Likewise.
10651 * ctf.c (ctf_xfer_partial): Likewise.
10652 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10653 (darwin_xfer_partial): Likewise.
10654 * exec.c (exec_xfer_partial): Likewise.
10655 * gnu-nat.c (gnu_xfer_partial): Likewise.
10656 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10657 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10658 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10659 * linux-nat.c (linux_xfer_siginfo): Likewise.
10660 (linux_proc_xfer_spu): Likewise.
10661 * procfs.c (procfs_xfer_partial): Likewise.
10662 * record-full.c (record_full_xfer_partial): Likewise.
10663 (record_full_core_xfer_partial): Likewise.
10664 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10665 * remote.c (remote_write_qxfer): Likewise.
10666 (remote_write_qxfer, remote_read_qxfer): Likewise.
10667 (remote_xfer_partial): Likewise.
10668 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10669 (rs6000_xfer_shared_libraries): Likewise.
10670 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10671 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10672 (spu_xfer_partial): Likewise.
10673 * target.c (memory_xfer_partial_1): Likewise.
10674 * tracepoint.c (tfile_xfer_partial): Likewise.
10675 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10676 (windows_xfer_partial): Likewise.
10678 2014-02-07 Yao Qi <yao@codesourcery.com>
10680 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10682 (core_xfer_shared_libraries_aix): Likewise.
10683 * gdbarch.c, gdbarch.h: Regenerated.
10684 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10685 ULONGEST. Change 'len_avail' type to ULONGEST.
10686 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10687 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10689 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10691 2014-02-07 Yao Qi <yao@codesourcery.com>
10693 * corefile.c (memory_error): Get 'exception' from ERR and pass
10694 'exception' to throw_error.
10696 2014-02-06 Doug Evans <xdje42@gmail.com>
10698 * configure.ac (libpython checking): Remove all but python.o from
10699 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10700 * configure: Regenerate.
10702 * Makefile.in (SFILES): Add extension.c.
10703 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10704 (COMMON_OBS): Add extension.o.
10705 * extension.h: New file.
10706 * extension-priv.h: New file.
10707 * extension.c: New file.
10709 * python/python-internal.h: #include "extension.h".
10710 (gdbpy_auto_load_enabled): Declare.
10711 (gdbpy_apply_val_pretty_printer): Declare.
10712 (gdbpy_apply_frame_filter): Declare.
10713 (gdbpy_preserve_values): Declare.
10714 (gdbpy_breakpoint_cond_says_stop): Declare.
10715 (gdbpy_breakpoint_has_cond): Declare.
10716 (void source_python_script_for_objfile): Delete.
10717 * python/python.c: #include "extension-priv.h".
10718 Delete inclusion of "observer.h".
10719 (extension_language_python): Moved here and renamed from
10720 script_language_python in py-auto-load.c.
10721 Redefined to be of type extension_language_defn.
10722 (python_extension_script_ops): New global.
10723 (python_extension_ops): New global.
10724 (struct python_env): New member previous_active.
10725 (restore_python_env): Call restore_active_ext_lang.
10726 (ensure_python_env): Call set_active_ext_lang.
10727 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10729 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10731 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10733 (gdbpy_eval_from_control_command): Renamed from
10734 eval_python_from_control_command, made static. New arg extlang.
10735 (gdbpy_source_script) Renamed from source_python_script, made static.
10737 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10738 result to int. New arg extlang.
10739 (gdbpy_source_objfile_script): Renamed from
10740 source_python_script_for_objfile, made static. New arg extlang.
10741 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10742 static. New args extlang, extlang_printers. Change result type to
10744 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10745 static. New arg extlang. Rename arg printers to extlang_printers
10746 and change type to ext_lang_type_printers *.
10747 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10748 static. Replace argument arg with extlang, extlang_printers.
10749 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10750 (!HAVE_PYTHON, source_python_script): Delete.
10751 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10752 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10753 (!HAVE_PYTHON, start_type_printers): Delete.
10754 (!HAVE_PYTHON, apply_type_printers): Delete.
10755 (!HAVE_PYTHON, free_type_printers): Delete.
10756 (_initialize_python): Delete call to observer_attach_before_prompt.
10757 (finalize_python): Set/restore active extension language.
10758 (gdbpy_finish_initialization) Renamed from
10759 finish_python_initialization, made static. New arg extlang.
10760 (gdbpy_initialized): New function.
10761 * python/python.h: #include "extension.h". Delete #include
10762 "value.h", "mi/mi-cmds.h".
10763 (extension_language_python): Declare.
10764 (GDBPY_AUTO_FILE_NAME): Delete.
10765 (enum py_bt_status): Moved to extension.h and renamed to
10766 ext_lang_bt_status.
10767 (enum frame_filter_flags): Moved to extension.h.
10768 (enum py_frame_args): Moved to extension.h and renamed to
10769 ext_lang_frame_args.
10770 (finish_python_initialization): Delete.
10771 (eval_python_from_control_command): Delete.
10772 (source_python_script): Delete.
10773 (apply_val_pretty_printer): Delete.
10774 (apply_frame_filter): Delete.
10775 (preserve_python_values): Delete.
10776 (gdbpy_script_language_defn): Delete.
10777 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10778 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10780 * auto-load.c: #include "extension.h".
10781 (GDB_AUTO_FILE_NAME): Delete.
10782 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10783 (script_language_gdb): Delete, moved to extension.c and renamed to
10784 extension_language_gdb.
10785 (source_gdb_script_for_objfile): Delete.
10786 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10787 (loaded_script): Change type of language member to
10788 struct extension_language_defn *.
10789 (init_loaded_scripts_info): Initialize
10790 unsupported_script_warning_printed.
10791 (maybe_add_script): Make static. Change type of language arg to
10792 struct extension_language_defn *.
10793 (clear_section_scripts): Reset unsupported_script_warning_printed.
10794 (auto_load_objfile_script_1): Rewrite to use extension language API.
10795 (auto_load_objfile_script): Make public. Remove support-compiled-in
10796 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10797 (source_section_scripts): Rewrite to use extension language API.
10798 (load_auto_scripts_for_objfile): Rewrite to use
10799 auto_load_scripts_for_objfile.
10800 (collect_matching_scripts_data): Change type of language member to
10801 struct extension_language_defn *.
10802 (auto_load_info_scripts): Change type of language arg to
10803 struct extension_language_defn *.
10804 (unsupported_script_warning_print): New function.
10805 (script_not_found_warning_print): Make static.
10806 (_initialize_auto_load): Rewrite construction of scripts-directory
10808 * auto-load.h (struct objfile): Add forward decl.
10809 (struct script_language): Delete.
10810 (struct auto_load_pspace_info): Add forward decl.
10811 (struct extension_language_defn): Add forward decl.
10812 (maybe_add_script): Delete.
10813 (auto_load_objfile_script): Declare.
10814 (script_not_found_warning_print): Delete.
10815 (auto_load_info_scripts): Update prototype.
10816 (auto_load_gdb_scripts_enabled): Declare.
10817 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10818 auto_load_python_scripts_enabled and made public.
10819 (script_language_python): Delete, moved to python.c.
10820 (gdbpy_script_language_defn): Delete.
10821 (info_auto_load_python_scripts): Update to use
10822 extension_language_python.
10824 * breakpoint.c (condition_command): Replace call to
10825 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10826 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10827 with call to breakpoint_ext_lang_cond_says_stop.
10828 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10829 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10830 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10831 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10833 (local_setattro): Print name of extension language with existing
10836 * valprint.c (val_print, value_print): Update to call
10837 apply_ext_lang_val_pretty_printer.
10838 * cp-valprint.c (cp_print_value): Update call to
10839 apply_ext_lang_val_pretty_printer.
10840 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10841 (gdbpy_apply_val_pretty_printer): Renamed from
10842 apply_val_pretty_printer. New arg extlang.
10843 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10845 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10846 extension language API.
10847 * cli/cli-script.c (execute_control_command): Update to call
10848 eval_ext_lang_from_control_command.
10850 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10851 enum ext_lang_bt_status values. Update call to
10852 apply_ext_lang_frame_filter.
10853 (mi_cmd_stack_list_locals): Ditto.
10854 (mi_cmd_stack_list_args): Ditto.
10855 (mi_cmd_stack_list_variables): Ditto.
10856 * mi/mi-main.c: Delete #include "python/python-internal.h".
10857 Add #include "extension.h".
10858 (mi_cmd_list_features): Replace reference to python internal variable
10859 gdb_python_initialized with call to ext_lang_initialized_p.
10861 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10862 Update to use enum ext_lang_frame_args. Update to call
10863 apply_ext_lang_frame_filter.
10864 * python/py-framefilter.c (extract_sym): Update to use enum
10865 ext_lang_bt_status.
10866 (extract_value, py_print_type, py_print_value): Ditto.
10867 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10868 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10869 (py_print_frame): Ditto.
10870 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10871 New arg extlang. Update to use enum ext_lang_bt_status.
10873 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10874 finish_python_initialization. Replace with call to
10875 finish_ext_lang_initialization.
10877 * typeprint.c (do_free_global_table): Update to call
10878 free_ext_lang_type_printers.
10879 (create_global_typedef_table): Update to call
10880 start_ext_lang_type_printers.
10881 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10882 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10883 (type_print_options): Change type of global_printers from "void *"
10884 to "struct ext_lang_type_printers *".
10886 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10887 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10888 (gdbpy_preserve_values): Renamed from preserve_python_values.
10890 (!HAVE_PYTHON, preserve_python_values): Delete.
10892 * utils.c (quit_flag): Delete, moved to extension.c.
10893 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10896 * eval.c: Delete #include "python/python.h".
10897 * main.c: Delete #include "python/python.h".
10899 * defs.h: Update comment.
10901 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10905 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10907 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10910 2014-02-05 Yao Qi <yao@codesourcery.com>
10912 * remote.c (remote_pass_signals): Remove local 'buf' and use
10914 (remote_program_signals): Likewise.
10916 2014-02-05 Yao Qi <yao@codesourcery.com>
10918 * ctf.c: Include "inferior.h" and "gdbthread.h".
10919 (CTF_PID): A new macro.
10920 (ctf_open): Call inferior_appeared and add_thread_silent.
10921 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10922 (ctf_thread_alive): New function.
10923 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10925 2014-02-05 Yao Qi <yao@codesourcery.com>
10929 2013-05-24 Yao Qi <yao@codesourcery.com>
10931 * tracepoint.c (TFILE_PID): Remove.
10932 (tfile_open): Don't add thread and inferior.
10933 (tfile_close): Don't set 'inferior_ptid'. Don't call
10934 exit_inferior_silent.
10935 (tfile_thread_alive): Remove.
10936 (init_tfile_ops): Don't set field 'to_thread_alive' of
10939 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10941 * remote.c (remote_start_remote): Call remote_check_symbols even
10942 if only symbol-file (not file) has been given.
10944 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10946 * gdbarch.sh (skip_entrypoint): New callback.
10947 * gdbarch.c, gdbarch.h: Regenerate.
10948 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10949 * infrun.c (fill_in_stop_func): Likewise.
10950 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10951 (ppc_elfv2_elf_make_msymbol_special): New function.
10952 (ppc_elfv2_skip_entrypoint): Likewise.
10953 (ppc_linux_init_abi): Install them for ELFv2.
10955 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10957 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10958 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10959 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10960 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10961 structures returned in GPRs.
10963 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10965 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10966 offset to the stack parameter list for the ELFv2 ABI.
10968 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10970 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10971 set_gdbarch_convert_from_func_ptr_addr and
10972 set_gdbarch_elf_make_msymbol_special for ELFv1.
10973 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10974 function descriptors on ELFv1.
10975 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10976 set up r12 at function entry.
10978 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10980 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10981 (struct gdbarch_tdep): New member elf_abi.
10983 * rs6000-tdep.c: Include "elf/ppc64.h".
10984 (rs6000_gdbarch_init): Detect ELF ABI version.
10986 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10988 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10989 within a register pair holding a DFP 128-bit value on little-endian.
10990 (ppc64_sysv_abi_return_value_base): Likewise.
10991 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10992 (dfp_pseudo_register_write): Likewise.
10994 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10996 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10997 offset on little-endian when passing _Decimal32.
10998 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11000 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11002 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11003 of the overlapped FP register within the VSX register on little-
11005 (efpr_pseudo_register_write): Likewise.
11007 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11009 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11010 offset on little-endian when passing small structures.
11012 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11014 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11015 (struct ppc64_sysv_argpos): New data structure.
11016 (ppc64_sysv_abi_push_float): Remove.
11017 (ppc64_sysv_abi_push_val): New function.
11018 (ppc64_sysv_abi_push_integer): Likewise.
11019 (ppc64_sysv_abi_push_freg): Likewise.
11020 (ppc64_sysv_abi_push_vreg): Likewise.
11021 (ppc64_sysv_abi_push_param): Likewise.
11022 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11023 (ppc64_sysv_abi_return_value_base): New function.
11024 (ppc64_sysv_abi_return_value): Refactor to use it.
11026 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11028 * NEWS: Document new target powerpc64le-*-linux*.
11030 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11032 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11033 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11035 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11036 register set used in ELF core dumps. Add floating-point register set.
11038 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11040 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11041 dwarf2_to_gdb[] table using symbolic constants. Adjust
11042 penultimate entry from number representing the PC register
11043 to symbolic constant representing the MDR register. Add
11044 constant for the PC register to the end of the table.
11046 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11048 * bsd-kvm.c: Include <sys/param.h>
11050 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11052 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11054 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11056 * ada-lang.h (clear_ada_sym_cache): Delete.
11058 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11060 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11062 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11064 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11065 the sigreturn register save area only if the syscall is
11068 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11070 * valops.c (value_slice): Minor reformatting.
11072 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11074 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11076 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11078 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11079 New static globals.
11080 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11081 (ada_ignore_descriptive_types_p): New static global.
11082 (find_parallel_type_by_descriptive_type): Return immediately
11083 if ada_ignore_descriptive_types_p is set.
11084 (_initialize_ada_language): Register new commands "maintenance
11085 set ada", "maintenance show ada", "maintenance set ada
11086 ignore-descriptive-types" and "maintenance show ada
11087 ignore-descriptive-types".
11088 * NEWS: Add entry for new "maint ada set/show
11089 ignore-descriptive-types" commands.
11091 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11093 * record-btrace.c (record_btrace_close): Call btrace_teardown
11096 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11098 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11101 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11103 * ada-typeprint (type_is_full_subrange_of_target_type):
11105 (print_range): Add parameter bounds_prefered_p. If not set,
11106 try printing range types using the name of their base type.
11107 (print_range_type): Add parameter bounds_prefered_p.
11108 Use it in call to print_range.
11109 (print_array_type, ada_print_type): Update calls to print_range
11110 and print_range_type.
11112 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11114 * ada-typeprint.c (print_array_type, print_choices, print_range)
11115 (print_range_bound, print_dynamic_range_bound, print_range_type):
11116 Remove declaration.
11118 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11120 * ada-typeprint.c (print_range): Add missing empty line
11121 after local declaration.
11123 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11125 * ada-valprint.c (print_optional_low_bound): Get index_type's
11126 target type for as long as it is a TYPE_CODE_RANGE.
11128 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11130 * procfs.c (procfs_make_note_section): Remove assertion and
11131 associated comment.
11133 2014-01-24 Yao Qi <yao@codesourcery.com>
11135 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11136 * corelow.c (get_core_siginfo): Likewise.
11138 2014-01-24 Yao Qi <yao@codesourcery.com>
11140 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11141 ULONGEST. Don't check 'len' is negative.
11142 (remote_write_bytes): Change type of 'len' to ULONGEST.
11144 2014-01-23 Tom Tromey <tromey@redhat.com>
11147 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11148 Handle exception from frame.block.
11149 (FrameVars.fetch_frame_locals): Likewise.
11151 2014-01-23 Tom Tromey <tromey@redhat.com>
11154 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11155 on a NULL pointer. Move "goto error" to correct place.
11157 2014-01-23 Tom Tromey <tromey@redhat.com>
11160 * python/py-framefilter.c (apply_frame_filter): Call
11161 ensure_python_env after computing gdbarch.
11163 2014-01-23 Yao Qi <yao@codesourcery.com>
11165 * target.c (raw_memory_xfer_partial): Change argument type
11166 from void * to gdb_byte *.
11167 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11169 2014-01-22 Doug Evans <dje@google.com>
11171 New gdbserver option --debug-format=timestamp.
11172 * NEWS: Mention it.
11174 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11176 * syscalls/s390x-linux.xml: New file.
11177 * syscalls/s390-linux.xml: New file.
11178 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11179 (XML_SYSCALL_FILENAME_S390X): Likewise.
11180 (op_svc): New enum value for SVC opcode.
11181 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11182 (s390_linux_get_syscall_number): New function.
11183 (s390_gdbarch_init): Register '*get_syscall_number' and the
11184 syscall xml file name.
11185 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11186 "s390-linux.xml" and "s390x-linux.xml".
11187 * NEWS: Announce new feature.
11189 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11191 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11193 2014-01-22 Pedro Alves <palves@redhat.com>
11195 * xtensa-config.c: Include defs.h.
11197 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11199 * common/common-utils.h: Add "ARI:" comment beside __func__
11202 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11204 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11205 documentation a bit.
11207 2014-01-21 Roland McGrath <mcgrathr@google.com>
11209 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11210 * configure: Regenerate.
11211 * aclocal.m4: Regenerate.
11212 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11213 New substituted variables.
11214 (install-strip): New target.
11215 (INSTALL_SCRIPT): New substituted variable.
11216 (FLAGS_TO_PASS): Add it.
11217 (install-only): Use $(INSTALL_SCRIPT) rather than
11218 $(INSTALL_PROGRAM) for gcore.
11220 2014-01-20 Tom Tromey <tromey@redhat.com>
11222 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11225 2014-01-20 Tom Tromey <tromey@redhat.com>
11227 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11228 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11229 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11230 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11231 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11232 (struct cmd_list_element) <flags>: Remove.
11233 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11234 doc_allocated>: New fields.
11235 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11237 * maint.c (maintenance_do_deprecate): Update.
11238 * top.c (execute_command): Update.
11240 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11242 * xtensa-linux-nat.c: Include asm/ptrace.h.
11244 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11246 * Makefile.in (SFILES): Add d-support.c.
11247 (COMMON_OBS): Add d-support.o.
11248 * d-lang.h (d_parse_symbol): Add comment, now defined in
11250 * d-lang.c (parse_call_convention)
11251 (parse_attributes, parse_function_types)
11252 (parse_function_args, parse_type, parse_identifier)
11253 (call_convention_p, d_parse_symbol): Move functions to ...
11254 * d-support.c: ... New file.
11256 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11258 * d-lang.h (d_parse_symbol): Add declaration.
11259 * d-lang.c (extract_identifiers)
11260 (extract_type_info): Remove functions.
11261 (parse_call_convention, parse_attributes)
11262 (parse_function_types, parse_function_args)
11263 (parse_type, parse_identifier, call_convention_p)
11264 (d_parse_symbol): New functions.
11265 (d_demangle): Use d_parse_symbol to demangle D symbols.
11267 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11269 * d-lang.h (struct builtin_d_type): New data type.
11270 (builtin_d_type): Add declaration.
11271 * d-lang.c (d_language_arch_info, build_d_types)
11272 (builtin_d_type): New functions.
11273 (enum d_primitive_types): New data type.
11274 (d_language_defn): Change c_language_arch_info to
11275 d_language_arch_info.
11276 (d_type_data): New static variable.
11277 (_initialize_d_language): Initialize d_type_data.
11279 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11281 * d-lang.h (d_main_name): Add declaration.
11282 * d-lang.c (d_main_name): New function.
11283 * symtab.c (find_main_name): Add call to d_main_name.
11285 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11287 * d-lang.c (d_language_defn): Change macro_expansion_c to
11288 macro_expansion_no.
11290 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11292 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11294 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11296 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11297 gdb_exception" declaration.
11298 * remote.c (getpkt_or_notif_sane): Likewise.
11300 2014-01-17 Doug Evans <dje@google.com>
11302 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11303 function, contents of dirnames_to_char_ptr_vec_append moved here.
11304 (delim_string_to_char_ptr_vec): New function.
11305 (dirnames_to_char_ptr_vec_append): Rewrite.
11306 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11308 2014-01-17 Doug Evans <dje@google.com>
11310 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11312 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11313 #include "common-utils.h".
11314 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11315 * common/vec.h (VEC_ASSERT_PASS): Update.
11316 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11317 (MACH_CHECK_ERROR): Update.
11319 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11321 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11323 * gdbarch.h: Regenerate.
11325 2014-01-16 Tom Tromey <tromey@redhat.com>
11327 * value.c (struct value) <regnum>: Move earlier.
11329 2014-01-16 Tom Tromey <tromey@redhat.com>
11331 * remote.c (extended_remote_create_inferior): Rename from
11332 extended_remote_create_inferior_1. Add "ops" argument. Remove
11333 old implementation.
11335 2014-01-16 Pedro Alves <palves@redhat.com>
11337 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11338 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11341 2014-01-16 Doug Evans <dje@google.com>
11343 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11345 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11347 * btrace.h (btrace_thread_flag): New.
11348 (struct btrace_thread_info) <flags>: New.
11349 * record-btrace.c (record_btrace_resume_thread)
11350 (record_btrace_find_thread_to_move, btrace_step_no_history)
11351 (btrace_step_stopped, record_btrace_start_replaying)
11352 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11353 (record_btrace_find_resume_thread): New.
11354 (record_btrace_resume, record_btrace_wait): Extend.
11355 (record_btrace_can_execute_reverse): New.
11356 (record_btrace_open): Fail in non-stop mode.
11357 (record_btrace_set_replay): Split into this, ...
11358 (record_btrace_stop_replaying): ... this, ...
11359 (record_btrace_clear_histories): ... and this.
11360 (init_record_btrace_ops): Init to_can_execute_reverse.
11361 * NEWS: Announce it.
11363 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11365 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11366 (forward_target_decr_pc_after_break)
11367 (target_decr_pc_after_break): New.
11368 * target.c (forward_target_decr_pc_after_break)
11369 (target_decr_pc_after_break): New.
11370 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11371 instead of gdbarch_decr_pc_after_break.
11372 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11373 instead of gdbarch_decr_pc_after_break.
11374 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11375 instead of gdbarch_decr_pc_after_break.
11376 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11377 instead of gdbarch_decr_pc_after_break.
11378 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11379 instead of gdbarch_decr_pc_after_break.
11380 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11381 instead of gdbarch_decr_pc_after_break.
11383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11385 * btrace.c: Include regcache.h.
11386 (btrace_add_pc): New.
11387 (btrace_enable): Call btrace_add_pc.
11388 (btrace_is_empty): New.
11389 * btrace.h (btrace_is_empty): New.
11390 * record-btrace.c (require_btrace, record_btrace_info): Call
11393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11395 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11396 Support delta reads.
11397 (linux_disable_btrace): Change return type.
11398 * common/linux-btrace.h (linux_read_btrace): Change parameters
11399 and return type to allow error reporting. Update users.
11400 (linux_disable_btrace): Change return type. Update users.
11401 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11403 (btrace_error): New.
11404 (btrace_block) <begin>: Comment on BEGIN == 0.
11405 * btrace.c (btrace_compute_ftrace): Start from the end of
11407 (btrace_stitch_trace, btrace_clear_history): New.
11408 (btrace_fetch): Read delta trace, return if replaying.
11409 (btrace_clear): Move clear history code to btrace_clear_history.
11410 (parse_xml_btrace): Throw an error if parsing failed.
11411 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11412 and return type to allow error reporting.
11413 (target_read_btrace): Change parameters and return type to allow
11415 * target.c (target_read_btrace): Update.
11416 * remote.c (remote_read_btrace): Support delta reads. Pass
11418 * NEWS: Announce it.
11420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11422 * record.h (record_btrace_frame_unwind)
11423 (record_btrace_tailcall_frame_unwind): New declarations.
11424 * dwarf2-frame: Include record.h
11425 (dwarf2_frame_cfa): Throw an error for btrace frames.
11426 * record-btrace.c: Include hashtab.h.
11427 (btrace_get_bfun_name): New.
11428 (btrace_call_history): Call btrace_get_bfun_name.
11429 (struct btrace_frame_cache): New.
11431 (bfcache_hash, bfcache_eq, bfcache_new): New.
11432 (btrace_get_frame_function): New.
11433 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11434 (record_btrace_frame_this_id): Compute own id.
11435 (record_btrace_frame_prev_register): Provide PC, throw_error
11436 for all other registers.
11437 (record_btrace_frame_sniffer): Detect btrace frames.
11438 (record_btrace_tailcall_frame_sniffer): New.
11439 (record_btrace_frame_dealloc_cache): New.
11440 (record_btrace_frame_unwind): Add new functions.
11441 (record_btrace_tailcall_frame_unwind): New.
11442 (_initialize_record_btrace): Allocate cache.
11443 * btrace.c (btrace_clear): Call reinit_frame_cache.
11444 * NEWS: Announce it.
11446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11448 * record-btrace.c (record_btrace_set_replay)
11449 (record_btrace_goto_begin, record_btrace_goto_end)
11450 (record_btrace_goto): New.
11451 (init_record_btrace_ops): Initialize them.
11452 * NEWS: Announce it.
11454 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11456 * record-btrace.c (record_btrace_find_new_threads)
11457 (record_btrace_thread_alive): New.
11458 (init_record_btrace_ops): Initialize to_find_new_threads and
11461 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11463 * record-btrace.c (record_btrace_resume): New.
11464 (record_btrace_wait): New.
11465 (init_record_btrace_ops): Initialize to_wait and to_resume.
11467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11469 * record-btrace.c (record_btrace_xfer_partial)
11470 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11471 (record_btrace_allow_memory_access): New.
11472 (init_record_btrace_ops): Initialize new methods.
11473 * target.c (raw_memory_xfer_partial): Bail out if target reports
11474 that this memory is not available.
11476 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11478 * target.h (target_ops) <to_insert_breakpoint>
11479 <to_remove_breakpoint>: Add target_ops parameter.
11480 (forward_target_insert_breakpoint): New.
11481 (forward_target_remove_breakpoint): New.
11482 (memory_remove_breakpoint, memory_insert_breakpoint):
11483 Add target_ops parameter.
11484 * target.c (target_insert_breakpoint): Split into this and ...
11485 (forward_target_insert_breakpoint): ... this.
11486 (target_remove_breakpoint): Split into this and ...
11487 (forward_target_remove_breakpoint): ... this.
11488 (debug_to_insert_breakpoint): Add target_ops parameter.
11489 Call forward_target_insert_breakpoint.
11490 (debug_to_remove_breakpoint): Add target_ops parameter.
11491 Call forward_target_remove_breakpoint.
11492 (update_current_target): Do not inherit or default to_insert_breakpoint
11493 and to_remove_breakpoint.
11494 * corelow.c (ignore): Add target_ops parameter.
11495 * exec.c (ignore): Add target_ops parameter.
11496 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11497 Add target_ops parameter.
11498 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11499 Add target_ops parameter.
11500 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11501 Add target_ops parameter.
11502 * record-full.c (record_full_beneath_to_insert_breakpoint)
11503 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11504 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11505 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11506 (record_full_core_remove_breakpoint): Add target_ops parameter.
11508 (record_full_beneath_to_insert_breakpoint_ops)
11509 (record_full_beneath_to_remove_breakpoint_ops)
11510 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11511 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11512 tmp_to_remove_breakpoint_ops,
11513 record_full_beneath_to_insert_breakpoint_ops, and
11514 record_full_beneath_to_remove_breakpoint_ops.
11515 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11516 (m32r_remove_breakpoint): Add target_ops parameter.
11517 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11518 Add target_ops parameter.
11519 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11520 Add target_ops parameter.
11522 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11523 Markus Metzger <markus.t.metzger@intel.com>
11525 * record-btrace.c: Include frame-unwind.h.
11526 (record_btrace_frame_unwind_stop_reason)
11527 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11528 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11530 (init_record_btrace_ops): Install it.
11532 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11534 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11537 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11539 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11542 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11544 * frame-unwind.c: Include target.h.
11545 (frame_unwind_try_unwinder): New function with code from ...
11546 (frame_unwind_find_by_frame): ... here. New variable
11547 unwinder_from_target, call also target_get_unwinder)
11548 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11549 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11550 * target.h (struct target_ops): New fields to_get_unwinder and
11551 to_get_tailcall_unwinder.
11552 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11556 * record-btrace.c (record_btrace_fetch_registers)
11557 (record_btrace_store_registers)
11558 (record_btrace_to_prepare_to_store): New.
11559 (init_record_btrace_ops): Add the above.
11561 2014-01-16 Tom Tromey <tromey@redhat.com>
11563 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11564 * target.h (struct target_ops) <to_prepare_to_store>: Add
11566 (target_prepare_to_store): Add argument.
11567 * target.c (debug_to_prepare_to_store): Add argument.
11568 (update_current_target): Update.
11569 * remote.c (remote_prepare_to_store): Add 'self' argument.
11570 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11571 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11572 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11573 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11575 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11576 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11577 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11578 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11579 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11583 * btrace.h (replay) <replay>: New.
11584 (btrace_is_replaying): New.
11585 * btrace.c (btrace_clear): Free replay iterator.
11586 (btrace_is_replaying): New.
11587 * record-btrace.c (record_btrace_is_replaying): New.
11588 (record_btrace_info): Print insn number if replaying.
11589 (record_btrace_insn_history): Start at replay position.
11590 (record_btrace_call_history): Start at replay position.
11591 (init_record_btrace_ops): Init to_record_is_replaying.
11593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11595 * record-btrace.c (record_btrace_insn_history_range): Include
11597 (record_btrace_insn_history_from): Adjust range.
11598 (record_btrace_call_history_range): Include
11600 (record_btrace_call_history_from): Adjust range.
11601 * NEWS: Announce changes.
11603 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11605 * record.h (enum record_print_flag)
11606 <record_print_indent_calls>: New.
11607 * record.c (get_call_history_modifiers): Recognize /c modifier.
11608 (_initialize_record): Document /c modifier.
11609 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11610 Reorder fields. Optionally indent the function name. Update
11612 * NEWS: Announce changes.
11614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11616 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11620 * btrace.c (ftrace_new_function): Start counting at one.
11621 * record-btrace.c (record_btrace_info): Adjust number of calls
11623 * NEWS: Announce it.
11625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11627 * record-btrace.c (btrace_call_history_insn_range): Print
11628 insn range as [begin, end].
11630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11632 * btrace.h (struct btrace_func_link): New.
11633 (enum btrace_function_flag): New.
11634 (struct btrace_inst): Rename to ...
11635 (struct btrace_insn): ...this. Update all users.
11636 (struct btrace_func) <ibegin, iend>: Remove.
11637 (struct btrace_func_link): New.
11638 (struct btrace_func): Rename to ...
11639 (struct btrace_function): ...this. Update all users.
11640 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11641 (number, level, flags>: New.
11642 (struct btrace_insn_iterator): Rename to ...
11643 (struct btrace_insn_history): ...this.
11645 (struct btrace_insn_iterator, btrace_call_iterator): New.
11646 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11647 (struct btrace_target_info) <begin, end, level>
11648 <insn_history, call_history>: New.
11649 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11650 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11651 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11652 (btrace_call_number, btrace_call_begin, btrace_call_end)
11653 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11654 (btrace_find_function_by_number, btrace_set_insn_history)
11655 (btrace_set_call_history): New.
11656 * btrace.c (btrace_init_insn_iterator)
11657 (btrace_init_func_iterator, compute_itrace): Remove.
11658 (ftrace_print_function_name, ftrace_print_filename)
11659 (ftrace_skip_file): Change
11660 parameter to const.
11661 (ftrace_init_func): Remove.
11662 (ftrace_debug): Use new btrace_function fields.
11663 (ftrace_function_switched): Also consider gaining and
11664 losing symbol information).
11665 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11666 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11667 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11669 (ftrace_new_function): Move. Remove debug print.
11670 (ftrace_update_lines, ftrace_update_insns): New.
11671 (ftrace_update_function): Check for call, ret, and jump.
11672 (compute_ftrace): Renamed to ...
11673 (btrace_compute_ftrace): ...this. Rewritten to compute call
11675 (btrace_fetch, btrace_clear): Updated.
11676 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11677 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11678 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11679 (btrace_call_number, btrace_call_begin, btrace_call_end)
11680 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11681 (btrace_find_function_by_number, btrace_set_insn_history)
11682 (btrace_set_call_history): New.
11683 * record-btrace.c (require_btrace): Use new btrace thread
11685 (record_btrace_info, btrace_insn_history)
11686 (record_btrace_insn_history, record_btrace_insn_history_range):
11687 Use new btrace thread info fields and new iterator.
11688 (btrace_func_history_src_line): Rename to ...
11689 (btrace_call_history_src_line): ...this. Use new btrace
11690 thread info fields.
11691 (btrace_func_history): Rename to ...
11692 (btrace_call_history): ...this. Use new btrace thread info
11693 fields and new iterator.
11694 (record_btrace_call_history, record_btrace_call_history_range):
11695 Use new btrace thread info fields and new iterator.
11697 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11699 * frame.h (frame_id_build_unavailable_stack_special): New.
11700 * frame.c (frame_id_build_unavailable_stack_special): New.
11702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11704 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11705 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11706 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11708 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11709 (i386_insn_is_jump, i386_jmp_p): New.
11710 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11711 insn_is_jump to gdbarch.
11712 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11713 * gdbarch.h: Regenerated.
11714 * gdbarch.c: Regenerated.
11715 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11716 (default_insn_is_jump): New.
11717 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11718 (default_insn_is_jump): New.
11720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11722 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11724 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11725 (btrace_read_type) <btrace_read_new>: Change to ...
11726 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11730 * common/linux-btrace.c (linux_read_btrace): Free trace from
11731 previous iteration.
11733 2014-01-15 Doug Evans <dje@google.com>
11735 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11738 2014-01-15 Tom Tromey <tromey@redhat.com>
11740 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11741 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11742 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11743 (set_objfile_main_name): New function.
11744 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11745 language_of_main>: New fields.
11746 (set_objfile_main_name): Declare.
11747 * symtab.c (find_main_name): Loop over objfiles to find the main
11749 (set_main_name): Now static.
11750 (get_main_info): Add comment.
11751 * symtab.h (set_main_name): Don't declare.
11753 2014-01-15 Tom Tromey <tromey@redhat.com>
11755 * symtab.c (main_progspace_key): New global.
11756 (struct main_info): New.
11757 (name_of_main, language_of_main): Remove.
11758 (get_main_info, main_info_cleanup): New function.
11759 (set_main_name, main_name, main_language): Use get_main_info.
11760 (_initialize_symtab): Initialize main_progspace_key.
11762 2014-01-15 Tom Tromey <tromey@redhat.com>
11764 * dbxread.c (process_one_symbol): Update.
11765 * dwarf2read.c (read_partial_die): Update.
11766 * symfile.c (set_initial_language): Call main_language.
11767 * symtab.c (language_of_main): Now static.
11768 (set_main_name): Add 'lang' parameter.
11769 (find_main_name): Update.
11770 (main_language): New function.
11771 (symtab_observer_executable_changed): Update.
11772 * symtab.h (set_main_name): Update.
11773 (language_of_main): Remove.
11774 (main_language): Declare.
11776 2014-01-15 Tom Tromey <tromey@redhat.com>
11778 * symfile.c (init_entry_point_info): Use new "initialized" field.
11780 * objfiles.h (struct entry_point) <initialized>: New field.
11781 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11782 (struct objfile) <ei>: ...here. Remove.
11783 * objfiles.c (entry_point_address_query): Update.
11785 2014-01-15 Tom Tromey <tromey@redhat.com>
11787 * objfiles.c (entry_point_address_query): Relocate entry point
11789 (objfile_relocate1): Do not relocate entry point address.
11790 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11791 <the_bfd_section_index>: New field.
11792 * symfile.c (init_entry_point_info): Find the entry point's
11795 2014-01-15 Tom Tromey <tromey@redhat.com>
11797 * solib-frv.c (enable_break): Use entry_point_address_query.
11799 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11801 * NEWS: Add note on improved process record-replay on
11802 arm*-linux* targets.
11804 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11806 * arm-tdep.c (enum arm_record_result): New enum.
11807 (arm_record_unsupported_insn): New function.
11808 (arm_record_coproc_data_proc): Removed.
11809 (thumb2_record_ld_st_multiple): New function.
11810 (thumb2_record_ld_st_dual_ex_tbb): New function.
11811 (thumb2_record_data_proc_sreg_mimm): New function.
11812 (thumb2_record_ps_dest_generic): New function.
11813 (thumb2_record_branch_misc_cntrl): New function.
11814 (thumb2_record_str_single_data): New function.
11815 (thumb2_record_ld_mem_hints): New function.
11816 (thumb2_record_ld_word): New function.
11817 (thumb2_record_lmul_lmla_div): New function.
11818 (thumb2_record_decode_insn_handler): New function.
11819 (decode_insn): Add thumb32 instruction handlers.
11821 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11823 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11824 (struct arm_linux_record_tdep): Declare.
11825 (arm_canonicalize_syscall): New function.
11826 (arm_all_but_pc_registers_record): New function.
11827 (arm_linux_syscall_record): New function.
11828 (arm_linux_init_abi): Add syscall recording constructs.
11829 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11830 decoding. (arm_record_coproc_data_proc): Update arm syscall
11832 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11833 <arm_syscall_record>: New field.
11834 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11837 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11839 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11840 register for push instruction recording.
11842 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11844 * arm-tdep.c (thumb_record_misc): Update to correct logical
11845 error while recording ldm, ldmia and pop instructions.
11847 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11849 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11851 2014-01-15 Pedro Alves <palves@redhat.com>
11853 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11854 (go32_resume, go32_fetch_registers, store_register)
11855 (go32_store_registers, go32_prepare_to_store)
11856 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11857 (go32_create_inferior, go32_can_run, go32_terminal_init)
11858 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11861 2014-01-15 Tom Tromey <tromey@redhat.com>
11863 * target.h (async_callback_ftype): New typedef.
11864 (struct target_ops) <to_async>: Use it.
11866 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11868 * python/py-value.c (get_field_type): Remove unnecessary curly
11869 braces for single-statement if block.
11871 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11873 * python/py-type.c (convert_field): Add missing empty line
11874 after declarations.
11876 2014-01-14 Doug Evans <dje@google.com>
11878 * symfile.h (expand_symtabs_matching): Renamed from
11879 expand_partial_symbol_names. Update prototype.
11880 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11881 * symfile.c (expand_symtabs_matching): Renamed from
11882 expand_partial_symbol_names. New args file_matcher, kind.
11883 Rename arg fun to symbol_matcher.
11884 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11885 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11886 ada_expand_partial_symbol_name.
11887 (ada_make_symbol_completion_list): Update to call
11888 expand_symtabs_matching.
11889 (ada_add_global_exceptions): Call expand_symtabs_matching.
11890 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11891 call map_symbol_filenames.
11892 * symtab.c (sources_info): Update to call map_symbol_filenames.
11893 (search_symbols): Call expand_symtabs_matching.
11894 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11895 (default_make_symbol_completion_list_break_on): Update to call
11896 expand_symtabs_matching.
11897 (make_source_files_completion_list): Update to call
11898 map_symbol_filenames.
11900 2014-01-14 Doug Evans <dje@google.com>
11902 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11903 (expand_symtabs_symbol_matcher_ftype): New typedef.
11904 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11905 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11906 * symfile.c (expand_partial_symbol_names): Update to use
11907 expand_symtabs_symbol_matcher_ftype.
11908 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11909 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11910 Arg name_matcher renamed to symbol_matcher.
11911 * psymtab.c (recursively_search_psymtabs): Update to use
11912 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11914 (expand_symtabs_matching_via_partial): Update to use
11915 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11916 Arg name_matcher renamed to symbol_matcher.
11918 2014-01-14 Doug Evans <dje@google.com>
11920 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11921 (map_partial_symbol_filenames): Ditto.
11922 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11923 (map_partial_symbol_filenames): Ditto.
11924 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11925 (map_partial_symbol_filenames): Ditto.
11926 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11927 (map_partial_symbol_filenames): Ditto.
11928 * symtab.c: Delete #include "psymtab.h".
11930 2014-01-14 Pedro Alves <palves@redhat.com>
11931 Tom Tromey <tromey@redhat.com>
11933 * infrun.c (use_displaced_stepping): Use find_record_target
11934 instead of RECORD_IS_USED.
11935 (adjust_pc_after_break): Use record_full_is_used instead of
11937 * record-btrace.c (record_btrace_open): Call record_preopen
11938 instead of checking RECORD_IS_USED.
11939 * record-full.c (record_full_shortname)
11940 (record_full_core_shortname): New globals.
11941 (record_full_is_used): New function.
11942 (find_full_open): Call record_preopen instead of checking
11944 (init_record_full_ops): Set the target's shortname to
11945 record_full_shortname.
11946 (init_record_full_core_ops): Set the target's shortname to
11947 record_full_core_shortname.
11948 * record-full.h (record_full_is_used): Declare.
11949 * record.c (find_record_target): Make extern.
11950 (record_preopen): New function.
11951 * record.h (RECORD_IS_USED): Delete macro.
11952 (find_record_target, record_preopen): Declare functions.
11954 2014-01-14 Yao Qi <yao@codesourcery.com>
11956 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11957 'len''s type to ULONGEST.
11958 (core_xfer_shared_libraries_aix): Likewise.
11959 * gdbarch.c, gdbarch.h: Regenerated.
11960 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11961 Change type of 'len' to ULONGEST.
11962 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11963 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11965 2014-01-14 Yao Qi <yao@codesourcery.com>
11967 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11968 type of 'len' to ULONGEST.
11969 (linux_xfer_osdata_processgroups): Likewise.
11970 (linux_xfer_osdata_threads): Likewise.
11971 (linux_xfer_osdata_fds): Likewise.
11972 (linux_xfer_osdata_isockets): Likewise.
11973 (linux_xfer_osdata_shm): Likewise.
11974 (linux_xfer_osdata_sem): Likewise.
11975 (linux_xfer_osdata_msg): Likewise.
11976 (linux_common_xfer_osdata): Likewise.
11977 (struct osdata_type) <getter>: Likewise.
11978 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11981 2014-01-14 Yao Qi <yao@codesourcery.com>
11983 * target.h (target_xfer_partial_ftype): Update.
11984 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11986 * aix-thread.c (aix_thread_xfer_partial): Change type of
11987 argument 'len' to ULONGEST.
11988 * auxv.c (procfs_xfer_auxv): Likewise.
11989 (ld_so_xfer_auxv): Likewise.
11990 (memory_xfer_auxv): Likewise.
11991 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11992 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11993 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11994 * corelow.c (core_xfer_partial): Likewise.
11995 * ctf.c (ctf_xfer_partial): Likewise.
11996 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11998 (darwin_read_dyld_info): Likewise.
11999 (darwin_xfer_partial): Likewise.
12000 * exec.c (section_table_xfer_memory_partial): Likewise.
12001 (exec_xfer_partial): Likewise.
12002 * exec.h (section_table_xfer_memory_partial): Update
12004 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12005 instead of plongest.
12006 (gnu_xfer_partial): Likewise.
12007 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12008 (ia64_hpux_xfer_solib_got): Likewise.
12009 (ia64_hpux_xfer_partial): Likewise.
12010 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12011 * inf-ptrace.c (inf_ptrace_xfer_partial):
12012 * inf-ttrace.c (inf_ttrace_xfer_partial):
12013 * linux-nat.c (linux_xfer_siginfo): Likewise.
12014 (linux_nat_xfer_partial): Likewise.
12015 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12016 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12017 * monitor.c (monitor_xfer_memory): Likewise.
12018 (monitor_xfer_partial): Likewise.
12019 * procfs.c (procfs_xfer_partial): Likewise.
12020 * record-full.c (record_full_xfer_partial): Likewise.
12021 (record_full_core_xfer_partial): Likewise.
12022 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12023 instead of plongest.
12024 (gdbsim_xfer_partial): Likewise.
12025 * remote.c (remote_xfer_partial): Likewise.
12026 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12027 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12029 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12030 (rs6000_xfer_shared_libraries): Likewise.
12031 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12032 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12033 (sparc_xfer_partial): Likewise.
12034 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12035 (spu_xfer_partial): Likewise.
12036 * spu-multiarch.c (spu_xfer_partial): Likewise.
12037 * target.c (target_read_live_memory): Likewise.
12038 (memory_xfer_live_readonly_partial): Likewise.
12039 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12040 (target_xfer_partial, default_xfer_partial): Likewise.
12041 (current_xfer_partial): Likewise.
12042 * tracepoint.c (tfile_xfer_partial): Likewise.
12043 * windows-nat.c (windows_xfer_memory): Likewise. Call
12044 pulongest instead of plongest.
12045 (windows_xfer_partial): Likewise.
12046 (windows_xfer_shared_libraries): Likewise.
12048 2014-01-14 Yao Qi <yao@codesourcery.com>
12050 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12051 target_xfer_partial_ftype.
12053 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12057 * valops.c (value_struct_elt_bitpos): New function
12058 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12059 object to 'None' if the field name is an empty string ("").
12060 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12061 attribute to look for a field when 'name' is 'None'.
12062 (get_field_type): New function
12064 2014-01-13 Doug Evans <dje@google.com>
12067 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12068 (try_open_dwop_file): Ditto.
12069 * gdb_bfd.c: #include "vec.h".
12070 (bfdp): New typedef.
12071 (struct gdb_bfd_data): New member included_bfds.
12072 (gdb_bfd_unref): Unref all included bfds.
12073 (gdb_bfd_record_inclusion): New function.
12074 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12076 2014-01-13 Tom Tromey <tromey@redhat.com>
12078 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12080 2014-01-13 Tom Tromey <tromey@redhat.com>
12082 * defs.h (use_windows): Remove.
12083 * gdb.c (main): Update.
12084 * main.c (captured_main, gdb_main): Update.
12085 * main.h (struct captured_main_args) <use_windows>: Remove.
12086 * top.c (use_windows): Remove.
12088 2014-01-13 Tom Tromey <tromey@redhat.com>
12090 * defs.h (deprecated_flush_hook): Remove.
12092 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12095 * linux-thread-db.c (try_thread_db_load): Add parameter
12096 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12097 (try_thread_db_load_from_pdir_1): Move it there from here.
12098 (try_thread_db_load_from_sdir): Update caller.
12099 (try_thread_db_load_from_dir): Move it there from here.
12101 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12103 * regformats/regdat.sh: Always rewrite the register file.
12105 2014-01-13 Pedro Alves <palves@redhat.com>
12107 * Makefile.in (CHECK_HEADERS): New variable.
12108 (check-headers:): New rule.
12110 2014-01-13 Tom Tromey <tromey@redhat.com>
12112 * cli/cli-setshow.c (do_set_command): Update.
12113 * defs.h (deprecated_set_hook): Remove.
12114 * top.c (deprecated_set_hook): Remove.
12116 2014-01-13 Pedro Alves <palves@redhat.com>
12118 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12119 the tracepoint if the PC is a pseudo-register.
12121 2014-01-13 Tom Tromey <tromey@redhat.com>
12123 * defs.h (XCALLOC): Remove.
12124 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12125 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12126 * dwarf2loc.c (allocate_piece_closure): Likewise.
12127 * elfread.c (elf_symfile_segments): Likewise.
12128 (elf_symfile_segments): Likewise.
12129 * gdbtypes.c (copy_type_recursive): Likewise.
12130 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12131 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12132 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12134 * mt-tdep.c (mt_gdbarch_init): Likewise.
12135 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12137 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12138 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12139 * registry.c (registry_alloc_data): Likewise.
12140 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12141 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12142 * serial.c (serial_fdopen_ops): Likewise.
12143 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12145 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12146 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12149 2014-01-13 Tom Tromey <tromey@redhat.com>
12151 * defs.h (XMALLOC): Remove.
12152 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12153 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12154 * cli-out.c (struct ui_out *): Likewise.
12155 * cli/cli-dump.c (add_dump_command): Likewise.
12156 (add_dump_command): Likewise.
12157 * complaints.c (get_complaints): Likewise.
12158 (find_complaint): Likewise.
12159 * dwarf2-frame.c (execute_cfa_program): Likewise.
12160 * dwarf2read.c (abbrev_table_read_table): Likewise.
12161 * gdbarch.sh: Likewise.
12162 * gdbarch.c: Rebuild.
12163 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12164 * interps.c (interp_new): Likewise.
12165 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12166 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12167 * mi/mi-console.c (mi_console_file_new): Likewise.
12168 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12169 * mi/mi-out.c (mi_out_new): Likewise.
12170 * mi/mi-parse.c (mi_parse): Likewise.
12171 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12172 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12173 * observer.c (xalloc_observer_list_node): Likewise.
12174 * regcache.c (regcache_xmalloc_1): Likewise.
12175 * reggroups.c (reggroup_new): Likewise.
12176 (_initialize_reggroup): Likewise.
12177 * registry.c (register_data_with_cleanup): Likewise.
12178 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12179 * ser-base.c (serial_ttystate): Likewise.
12180 * ser-mingw.c (make_pipe_state): Likewise.
12181 * ser-pipe.c (pipe_open): Likewise.
12182 * serial.c (serial_open): Likewise.
12183 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12184 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12185 (tui_alloc_win_info): Likewise.
12186 (tui_add_content_elements): Likewise.
12187 * tui/tui-file.c (tui_file_new): Likewise.
12188 * tui/tui-out.c (tui_out_new): Likewise.
12189 * ui-file.c (mem_file_new): Likewise.
12190 * ui-out.c (push_level): Likewise.
12191 (make_cleanup_ui_out_end): Likewise.
12192 (append_header_to_list): Likewise.
12193 (ui_out_new): Likewise.
12194 * user-regs.c (user_reg_add_builtin): Likewise.
12196 2014-01-13 Tom Tromey <tromey@redhat.com>
12198 * defs.h (XZALLOC): Remove.
12199 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12200 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12201 (get_ada_tasks_inferior_data): Likewise.
12202 * auto-load.c (get_auto_load_pspace_data): Likewise.
12203 * auxv.c (get_auxv_inferior_data): Likewise.
12204 * bfd-target.c (target_bfd_reopen): Likewise.
12205 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12206 (deprecated_insert_raw_breakpoint): Likewise.
12207 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12208 * corelow.c (core_open): Likewise.
12209 * darwin-nat.c (darwin_check_new_threads): Likewise.
12210 (darwin_attach_pid): Likewise.
12211 * dummy-frame.c (dummy_frame_push): Likewise.
12212 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12213 * dwarf2loc.c (allocate_piece_closure): Likewise.
12214 * elfread.c (elf_symfile_segments): Likewise.
12215 * eval.c (ptrmath_type_p): Likewise.
12216 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12217 * gdbtypes.c (alloc_type_arch): Likewise.
12218 (alloc_type_instance): Likewise.
12219 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12220 * inf-child.c (inf_child_can_use_agent): Likewise.
12221 * inflow.c (get_inflow_inferior_data): Likewise.
12222 * infrun.c (save_infcall_suspend_state): Likewise.
12223 * jit.c (jit_reader_load): Likewise.
12224 (get_jit_objfile_data): Likewise.
12225 (get_jit_program_space_data): Likewise.
12226 (jit_object_open_impl): Likewise.
12227 (jit_symtab_open_impl): Likewise.
12228 (jit_block_open_impl): Likewise.
12229 (jit_frame_sniffer): Likewise.
12230 * linux-fork.c (add_fork): Likewise.
12231 * maint.c (make_command_stats_cleanup): Likewise.
12232 * objfiles.c (get_objfile_pspace_data): Likewise.
12233 * opencl-lang.c (struct lval_closure): Likewise.
12234 * osdata.c (osdata_start_osdata): Likewise.
12235 * progspace.c (new_address_space): Likewise.
12236 (add_program_space): Likewise.
12237 * remote-sim.c (get_sim_inferior_data): Likewise.
12238 * sh-tdep.c (sh_gdbarch_init): Likewise.
12239 * skip.c (Ignore): Likewise.
12240 (skip_delete_command): Likewise.
12241 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12242 (library_list_start_library): Likewise.
12243 (solib_aix_current_sos): Likewise.
12244 * solib-darwin.c (get_darwin_info): Likewise.
12245 (darwin_current_sos): Likewise.
12246 * solib-dsbt.c (get_dsbt_info): Likewise.
12247 * solib-ia64-hpux.c (new_so_list): Likewise.
12248 (ia64_hpux_get_solib_linkage_addr): Likewise.
12249 * solib-spu.c (append_ocl_sos): Likewise.
12250 (spu_current_sos): Likewise.
12251 * solib-svr4.c (get_svr4_info): Likewise.
12252 (svr4_keep_data_in_core): Likewise.
12253 (library_list_start_library): Likewise.
12254 (svr4_default_sos): Likewise.
12255 (svr4_read_so_list): Likewise.
12256 * solib-target.c (library_list_start_library): Likewise.
12257 (solib_target_current_sos): Likewise.
12258 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12259 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12260 * symfile.c (default_symfile_segments): Likewise.
12261 * target-descriptions.c (tdesc_data_init): Likewise.
12262 (tdesc_create_reg): Likewise.
12263 (struct tdesc_type *): Likewise.
12264 (tdesc_create_vector): Likewise.
12265 (tdesc_set_struct_size): Likewise.
12266 (struct tdesc_type *): Likewise.
12267 (tdesc_free_feature): Likewise.
12268 (tdesc_create_feature): Likewise.
12269 * windows-nat.c (windows_add_thread): Likewise.
12270 (windows_make_so): Likewise.
12271 * xml-support.c (gdb_xml_body_text): Likewise.
12272 (gdb_xml_create_parser_and_cleanup): Likewise.
12273 (xml_process_xincludes): Likewise.
12274 * xml-syscall.c (allocate_syscalls_info): Likewise.
12275 (syscall_create_syscall_desc): Likewise.
12277 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12279 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12280 function, with code from i386_stap_parse_special_token.
12281 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12282 (i386_stap_parse_special_token): Move code to the two functions
12283 above; simplify it.
12285 2014-01-09 Pedro Alves <palves@redhat.com>
12286 Hui Zhu <hui@codesourcery.com>
12289 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12290 bp_err_string. Don't mark the location shlib_disabled if the
12291 error thrown wasn't a generic or memory error. Catch errors
12292 thrown while inserting breakpoints in overlayed code. Output
12293 error message of software breakpoints.
12294 * remote.c (remote_insert_breakpoint): If this breakpoint has
12295 target-side commands but this stub doesn't support Z0 packets,
12296 throw NOT_SUPPORTED_ERROR error.
12297 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12298 * target.h (target_insert_breakpoint): Extend comment.
12299 (target_insert_hw_breakpoint): Add comment.
12301 2014-01-08 Pedro Alves <palves@redhat.com>
12303 * remote.c (remote_add_thread): Add threads silently if starting
12305 (remote_notice_new_inferior): If in all-stop, and starting up,
12306 don't call notice_new_inferior.
12307 (get_current_thread): New function, factored out from ...
12308 (add_current_inferior_and_thread): ... this. Adjust.
12309 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12310 found any thread, then select the remote's current thread as GDB's
12311 current thread too.
12313 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12315 * NEWS: Create a new section for the next release branch.
12316 Rename the section of the current branch, now that it has
12319 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12321 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12322 * version.in: Bump version to 7.7.50.DATE-cvs.
12324 2014-01-08 Yao Qi <yao@codesourcery.com>
12326 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12327 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12328 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12330 2014-01-08 Yao Qi <yao@codesourcery.com>
12332 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12333 return value of bfd_get_filename to symbol_file_add_from_bfd.
12335 2014-01-08 Pierre Muller <muller@sourceware.org>
12338 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12339 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12340 to prim_record_mininal_symbol_and_info.
12341 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12342 in call to prim_record_minimal_symbol_and_info.
12343 (read_pe_exported_syms): Set index field of section_data.
12345 2014-01-07 Andrew Pinski <apinski@cavium.com>
12347 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12348 * features/aarch64.c: Regenerate.
12350 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12352 * target.c (return_null): Define.
12353 (update_current_target): Use it instead of return_zero for
12354 functions that return a pointer.
12356 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12358 * source.c (add_path): Fix check for duplicated paths in the previously
12361 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12363 * ada-lang.c: Remove duplicated include statements.
12364 * alphabsd-nat.c: Ditto.
12365 * amd64-darwin-tdep.c: Ditto.
12366 * amd64fbsd-nat.c: Ditto.
12367 * auto-load.c: Ditto.
12369 * breakpoint.c: Ditto.
12370 * dbxread.c: Ditto.
12371 * fork-child.c: Ditto.
12372 * gdb_usleep.c: Ditto.
12373 * i386-darwin-tdep.c: Ditto.
12374 * i386fbsd-nat.c: Ditto.
12376 * inferior.c: Ditto.
12377 * jv-lang.c: Ditto.
12378 * linux-nat.c: Ditto.
12379 * linux-tdep.c: Ditto.
12380 * m68kbsd-nat.c: Ditto.
12381 * m68klinux-nat.c: Ditto.
12382 * microblaze-tdep.c: Ditto.
12383 * mips-linux-tdep.c: Ditto.
12384 * mn10300-tdep.c: Ditto.
12385 * nto-tdep.c: Ditto.
12386 * opencl-lang.c: Ditto.
12388 * printcmd.c: Ditto.
12389 * regcache.c: Ditto.
12390 * remote-m32r-sdi.c: Ditto.
12392 * symfile.c: Ditto.
12394 * tilegx-linux-nat.c: Ditto.
12395 * tilegx-tdep.c: Ditto.
12396 * tracepoint.c: Ditto.
12398 * vaxbsd-nat.c: Ditto.
12399 * windows-nat.c: Ditto.
12400 * xtensa-tdep.c: Ditto.
12402 2014-01-07 Yao Qi <yao@codesourcery.com>
12404 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12406 2014-01-07 Yao Qi <yao@codesourcery.com>
12407 Joel Brobecker <brobecker@adacore.com>
12409 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12410 (pdc_write_regs): Likewise.
12411 (fetch_regs_kernel_thread): Likewise.
12412 (store_regs_kernel_thread): Likewise.
12414 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12416 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12417 tagged type objects to their actual type.
12419 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12421 * ada-valprint.c (print_field_values): Add "language" parameter.
12422 Update calls to print_field_values and print_variant_part.
12423 Pass new parameter "language" in call to val_print instead
12424 of "current_language". Replace call to ada_val_print by call
12426 (print_variant_part): Add "language" parameter.
12427 (ada_val_print_struct_union): Update call to print_field_values.
12429 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12431 * ada-valprint.c (ui_memcpy): Delete.
12432 (ada_print_floating): Update documentation. Add empty line
12433 between between function documentation and implementation.
12434 Delete variable "buffer". Use ui_file_xstrdup in place of
12435 ui_file_put. Minor adjustments following this change.
12437 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12439 * ada-valprint.c (ada_val_print_string): New function,
12440 extracted from ada_val_print_array.
12441 (ada_val_print_array): Replace extracted code by call
12442 to ada_val_print_string followed by a return. Move
12443 "else" branch to the function's top block.
12445 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12447 * ada-valprint.c (ada_val_print_array): Move implementation
12448 down. Rename parameter "offset" and "val" into "offset_aligned"
12449 and "original_value" respectively. Add parameter "offset".
12451 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12453 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12454 re-organizing the code. Change the "???" message printed
12455 when target type is a TYPE_CODE_UNDEF into
12456 "<ref to undefined type>".
12458 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12460 * ada-valprint.c (print_record): Delete, implementation inlined...
12461 (ada_val_print_struct_union): ... here. Remove call to
12462 ada_check_typedef in inlined implementation.
12464 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12466 * ada-valprint.c (ada_val_print_gnat_array): New function,
12467 extracted from ada_val_print_1;
12468 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12469 (ada_val_print_flt, ada_val_print_struct_union)
12470 (ada_val_print_ref): Likewise.
12471 (ada_val_print_1): Delete variables i and elttype.
12472 Replace extracted-out code by call to corresponding
12475 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12477 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12479 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12481 * ada-valprint.c (ada_val_print_1): Replace calls to
12482 ada_val_print_1 by calls to val_print.
12484 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12486 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12487 Update calls to self accordingly. Replace calls to c_val_print
12488 by calls to val_print.
12490 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12492 * ada-valprint.c (print_record): Delete declaration.
12493 (adjust_type_signedness, ada_val_print_1): Likewise.
12494 (ada_val_print): Move function implementation down.
12495 (print_variant_part, print_field_values, print_record):
12496 Move function implementation up.
12498 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12500 * python/py-type.c (typy_get_name): New function.
12501 (type_object_getset): Add entry for attribute "name".
12502 * NEWS: Add entry mentioning this new attribute.
12504 2014-01-07 Yao Qi <yao@codesourcery.com>
12506 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12509 2014-01-07 Yao Qi <yao@codesourcery.com>
12511 * gnu-nat.c (info_port_rights): Add qualifier const to
12514 2014-01-07 Yao Qi <yao@codesourcery.com>
12516 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12518 2014-01-07 Yao Qi <yao@codesourcery.com>
12520 * gnu-nat.c (make_inf) Update declaration.
12521 (make_inf): Make it static.
12522 (inf_set_traced): Likewise.
12523 (inf_port_to_thread, inf_task_died_status): Likewise.
12525 2014-01-07 Yao Qi <yao@codesourcery.com>
12527 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12529 2014-01-07 Yao Qi <yao@codesourcery.com>
12531 * gnu-nat.c (_initialize_gnu_nat): Declare.
12533 2014-01-07 Yao Qi <yao@codesourcery.com>
12535 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12537 (struct gdbarch_info) <byte_order>: Change type to
12539 <byte_order_for_code>: Likewise.
12540 * gdbarch.c, gdbarch.h: Regenerated.
12542 2014-01-06 Sasha Smundak <asmundak@google.com>
12544 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12546 2014-01-06 Tom Tromey <tromey@redhat.com>
12548 * doublest.c (convert_doublest_to_floatformat): Use const, not
12550 * somread.c (som_symtab_read): Likewise.
12552 2014-01-07 Hui Zhu <hui@codesourcery.com>
12554 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12555 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12556 (gdb_bfd_fopen): Ditto.
12557 (gdb_bfd_openr): Ditto.
12558 (gdb_bfd_openw): Ditto.
12559 (gdb_bfd_openr_iovec): Ditto.
12560 (gdb_bfd_fdopenr): Ditto.
12561 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12562 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12564 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12566 * symfile-mem.c (symbol_file_add_from_memory): Removed
12567 gdb_bfd_stash_filename.
12569 2014-01-03 Doug Evans <dje@google.com>
12571 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12574 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12576 Update year range in copyright notice of all files.
12578 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12580 * top.c (print_gdb_version): Set copyright year to 2014.
12582 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12584 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12586 For older changes see ChangeLog-2013.
12592 version-control: never