1 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4 * stap-probe.c (stap_parse_single_operand): Delete unused variable
5 'number'. New variable 'has_digit'. Rewrite code to deal with
6 subexpressions on SDT probes.
8 2014-09-04 Pedro Alves <palves@redhat.com>
10 * c-exp.y (parse_number): Skip handling base-switching prefixes if
11 the input is only one character long.
13 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
16 * f-valprint.c (f_val_print): Specify the correct print option to
17 use when printing integer values.
19 2014-09-04 Gary Benson <gbenson@redhat.com>
21 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
22 Remove code to cope with LWPs wrapped as PIDs.
23 Add assertions to ensure no wrapped LWPs are passed.
25 2014-09-04 Pedro Alves <palves@redhat.com>
27 * value.c (value_ranges_copy_adjusted): New function, factored out
29 (value_contents_copy_raw): ... here.
30 (unpack_value_bits_as_long_1): Rename back to ...
31 (unpack_bits_as_long): ... this. Remove 'original_value' and
32 'result' parameters. Change return type to LONGEST.
33 (unpack_value_bits_as_long): Delete.
34 (unpack_value_field_as_long_1): Delete.
35 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
36 (unpack_value_bitfield): New function.
37 (value_field_bitfield): Reimplement using unpack_value_bitfield.
38 (value_fetch_lazy): Use unpack_value_bitfield.
39 * value.h (unpack_value_bits_as_long): Delete declaration.
41 2014-09-03 Sasha Smundak <asmundak@google.com>
43 * python/py-frame.c (frapy_read_register): New function.
45 2014-09-03 James Hogan <james.hogan@imgtec.com>
47 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
48 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
50 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
53 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
55 (add_cmd): Set "completer_handle_brkchars" to NULL.
56 * cli/cli-decode.h (struct cmd_list_element)
57 <completer_handle_brkchars>: New field.
58 * command.h (completer_ftype_void): New typedef.
59 (set_cmd_completer_handle_brkchars): New prototype.
60 * completer.c (set_gdb_completion_word_break_characters): New
62 (complete_line_internal): Call "completer_handle_brkchars"
63 callback from command.
64 * completer.h: Include "command.h".
65 (set_gdb_completion_word_break_characters): New prototype.
66 * python/py-cmd.c (cmdpy_completer_helper): New function.
67 (cmdpy_completer_handle_brkchars): New function.
68 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
69 (cmdpy_init): Set completer_handle_brkchars to
70 cmdpy_completer_handle_brkchars.
72 2014-09-03 Gary Benson <gbenson@redhat.com>
74 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
75 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
76 Loop conditions changed to equivalent form.
77 (struct x86_debug_reg_state): Updated dr_ref_count comment.
78 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
79 ALL_DEBUG_ADDRESS_REGISTERS.
81 2014-09-03 Joel Brobecker <brobecker@adacore.com>
83 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
86 2014-09-02 Doug Evans <dje@google.com>
88 * typeprint.c (find_global_typedef): Fix comment.
90 2014-09-02 Gary Benson <gbenson@redhat.com>
92 * i386-nat.h: Renamed as...
93 * x86-nat.h: New file. All type, function and variable name
94 prefixes changed from "i386_" to "x86_". All references updated.
95 * i386-nat.c: Renamed as...
96 * x86-nat.c: New file. All type, function and variable name
97 prefixes changed from "i386_" to "x86_". All references updated.
98 * common/i386-xstate.h: Renamed as...
99 * common/x86-xstate.h: New file. All type, function and variable
100 name prefixes changed from "i386_" to "x86_". All references
102 * nat/i386-cpuid.h: Renamed as...
103 * nat/x86-cpuid.h: New file. All type, function and variable name
104 prefixes changed from "i386_" to "x86_". All references updated.
105 * nat/i386-gcc-cpuid.h: Renamed as...
106 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
107 name prefixes changed from "i386_" to "x86_". All references
109 * nat/i386-dregs.h: Renamed as...
110 * nat/x86-dregs.h: New file. All type, function and variable name
111 prefixes changed from "i386_" to "x86_". All references updated.
112 * nat/i386-dregs.c: Renamed as...
113 * nat/x86-dregs.c: New file. All type, function and variable name
114 prefixes changed from "i386_" to "x86_". All references updated.
116 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
118 * varobj.c (_initialize_varobj): Move to the end of file.
120 2014-08-29 Gary Benson <gbenson@redhat.com>
122 * common/common-exceptions.h: New file.
123 * common/common-exceptions.c: Likewise.
124 * Makefile.in (SFILES): Add common/common-exceptions.c.
125 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
126 (COMMON_OBS): Add common-exceptions.o.
127 (common-exceptions.o): New rule.
128 * exceptions.h (common-exceptions.h): Include.
129 (gdb_setjmp.h): Do not include.
130 (return_reason): Moved to common-exceptions.h.
131 (enum return_reason): Likewise.
132 (RETURN_MASK): Likewise.
133 (typedef return_mask): Likewise.
134 (enum errors): Likewise.
135 (struct gdb_exception): Likewise.
136 (exceptions_state_mc_init): Likewise.
137 (exceptions_state_mc_action_iter): Likewise.
138 (exceptions_state_mc_action_iter_1): Likewise.
139 (TRY_CATCH): Likewise.
140 (throw_exception): Likewise.
141 (throw_verror): Likewise.
142 (throw_vquit): Likewise.
143 (throw_error): Likewise.
144 (throw_quit): Likewise.
145 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
146 (enum catcher_action): Likewise.
147 (struct catcher): Likewise.
148 (current_catcher): Likewise.
149 (catcher_list_size): Likewise.
150 (exceptions_state_mc_init): Likewise.
151 (catcher_pop): Likewise.
152 (exceptions_state_mc): Likewise.
153 (exceptions_state_mc_action_iter): Likewise.
154 (exceptions_state_mc_action_iter_1): Likewise.
155 (throw_exception): Likewise.
156 (exception_messages): Likewise.
157 (exception_messages_size): Likewise.
158 (throw_it): Likewise.
159 (throw_verror): Likewise.
160 (throw_vquit): Likewise.
161 (throw_error): Likewise.
162 (throw_quit): Likewise.
163 (prepare_to_throw_exception): New function.
165 2014-08-29 Gary Benson <gbenson@redhat.com>
167 * common/gdb_setjmp.h: New file.
168 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
169 * configure.ac: Move sigsetjmp check...
170 * common/common.m4: ...here.
171 * configure: Regenerate.
172 * cp-support.c (SIGJMP_BUF): Delete.
173 (SIGSETJMP): Likewise.
174 (SIGLONGJMP): Likewise.
175 * exceptions.h (gdb_setjmp.h): Include.
176 (setjmp.h): Do not include.
177 (EXCEPTIONS_SIGJMP_BUF): Delete.
178 (EXCEPTIONS_SIGSETJMP): Likewise.
179 (EXCEPTIONS_SIGLONGJMP): Likewise.
180 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
182 * exceptions.c: Likewise.
184 2014-08-29 Gary Benson <gbenson@redhat.com>
186 * cleanups.h: Moved to...
187 * common/cleanups.h: New file.
188 * cleanups.c: Moved to...
189 * common/cleanups.c: New file. Include common-defs.h and
190 cleanups.h. Do not include defs.h.
191 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
192 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
193 (cleanups.o): New rule.
195 2014-08-29 Gary Benson <gbenson@redhat.com>
197 * common/errors.h (internal_warning): New declaration.
198 (internal_vwarning): Likewise.
199 * common/errors.c (internal_warning): New function.
200 * utils.h (internal_warning): Don't declare.
201 (internal_vwarning): Likewise.
202 * utils.c (internal_warning): Removed.
204 2014-08-29 Gary Benson <gbenson@redhat.com>
206 * main.c (captured_main): Use warning during startup.
207 Prefix startup warning messages with command name.
209 2014-08-29 Gary Benson <gbenson@redhat.com>
211 * main.c (captured_main): Handle usage errors with error.
213 2014-08-29 Gary Benson <gbenson@redhat.com>
215 * go32-nat.c (go32_create_inferior): Replace a fprintf/
216 exit pair with a call to error. Wrap the message with _().
218 2014-08-29 Gary Benson <gbenson@redhat.com>
220 * main.c (captured_main): Replace a fprintf/exit
221 pair with a call to error. Wrap the message with _().
223 2014-08-29 Gary Benson <gbenson@redhat.com>
225 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
226 pairs with calls to error. Wrap the message with _().
228 2014-08-29 Gary Benson <gbenson@redhat.com>
230 * utils.c (vwarning): Protect calls to target_terminal_ours
233 2014-08-29 Gary Benson <gbenson@redhat.com>
235 * exceptions.c (print_flush): Protect calls to
236 target_terminal_ours and wrap_here.
238 2014-08-29 Gary Benson <gbenson@redhat.com>
240 * utils.h (filtered_printing_initialized): New declaration.
241 * utils.c (abort_with_message): New function.
242 (internal_vproblem): Use abort_with_message for first level
243 recursive internal problems, and if gdb_stderr is not set up.
244 Protect calls to target_terminal_ours, begin_line and query.
246 2014-08-28 Doug Evans <dje@google.com>
248 * symtab.c (in_prologue): Move definition to better spot.
249 (skip_prologue_using_sal): Ditto.
251 2014-08-28 Doug Evans <dje@google.com>
253 * symtab.c (find_function_start_sal): Move definition to better spot.
255 2014-08-28 Yao Qi <yao@codesourcery.com>
257 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
258 found_stack_adjust in forward scan. Remove condition check
259 on found_stack_adjust which is always true. Indent the code.
261 2014-08-28 Yao Qi <yao@codesourcery.com>
263 * dwarf2read.c (dwarf_decode_lines): Update declaration.
264 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
265 (dwarf_decode_lines): Remove argument
266 want_line_info. Remove condition check on want_line_info.
269 2014-08-27 Doug Evans <dje@google.com>
271 * dwarf2read.c (dwarf_record_line): Fix typo.
273 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
275 * target.h (struct target_ops::to_terminal_save_ours): Remove
277 (target_terminal_save_ours): Remove macro.
278 * target-delegates.c: Regenerate.
279 * inf-child.c (inf_child_target): Don't set the nonexistent
280 field to_terminal_save_ours.
281 * inferior.h (child_terminal_save_ours): Remove declaration.
282 * terminal.h (gdb_save_tty_state): New declaration.
283 * inflow.c (child_terminal_save_ours): Rename to ...
284 (gdb_save_tty_state): ... this.
285 * tui/tui.c: Include terminal.h.
286 (tui_enable): Use gdb_save_tty_state instead of
287 target_terminal_save_ours.
288 (tui_disable): Likewise.
290 2014-08-25 Doug Evans <dje@google.com>
292 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
293 Pass NULL instead of 0 for context pointer.
295 2014-08-25 Yao Qi <yao@codesourcery.com>
297 * dwarf2read.c: Fix grammatical error.
299 2014-08-24 Yao Qi <yao@codesourcery.com>
301 * dwarf2read.c (scan_partial_symbols): Update comments.
302 Rename argument 'need_pc' with 'set_addrmap'.
303 (add_partial_namespace): Rename argument 'need_pc' with
305 (add_partial_module): Likewise.
306 (add_partial_subprogram): Likewise. Update comments.
307 (dwarf2_name): Fix typo.
309 2014-08-22 Doug Evans <dje@google.com>
312 * dwarf2read.c (dwarf_record_line_p): New function.
313 (dwarf_decode_lines_1): Ignore subsequent line number entries
314 for the same line if any entry had a non-zero discriminator.
316 2014-08-22 Doug Evans <dje@google.com>
318 * buildsym.h (record_line_ftype): New typedef.
319 (record_line): Use it.
320 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
321 (dwarf_decode_lines_1): Call them.
323 2014-08-22 Yao Qi <yao@codesourcery.com>
325 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
326 (ctf_end): Remove code.
328 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
330 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
331 (linux_make_corefile_notes): call update_thread_list, protected against
334 2014-08-21 Pedro Alves <palves@redhat.com>
336 * infcmd.c (attach_command): Remove comment.
338 2014-08-21 Bin Cheng <bin.cheng@arm.com>
340 * aarch64-linux-nat.c (dr_changed_t): Change the type from
341 unsigned LONGEST to ULONGEST.
343 2014-08-20 Pedro Alves <palves@redhat.com>
345 * Makefile.in (check-read1): New rule.
347 2014-08-20 Joel Brobecker <brobecker@adacore.com>
349 * value.c (value_from_contents_and_address): Strip resolved_type's
350 typedef layers before checking its TYPE_DATA_LOCATION.
352 2014-08-20 Pedro Alves <palves@redhat.com>
354 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
356 2014-08-20 Yao Qi <yao@codesourcery.com>
358 * amd64-tdep.c (amd64_classify): Add a blank line after the
359 example. Move "*/" to a new line.
360 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
361 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
362 * dwarf2read.c (psymtab_include_file_name): Likewise.
364 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
365 Pedro Alves <palves@redhat.com>
369 * ada-lang.c (coerce_unspec_val_to_type): Use
370 value_contents_copy_raw.
371 * ada-valprint.c (val_print_packed_array_elements): Adjust.
372 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
373 * cp-valprint.c (cp_print_value_fields): Let the common printing
374 code handle optimized out values.
375 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
376 * d-valprint.c (dynamic_array_type): Use
377 value_bits_any_optimized_out.
378 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
379 check_any_valid fields.
380 (check_pieced_value_bits): Delete and inline ...
381 (check_pieced_synthetic_pointer): ... here.
382 (check_pieced_value_validity): Delete.
383 (check_pieced_value_invalid): Delete.
384 (pieced_value_funcs): Remove check_validity and check_any_valid
386 (read_pieced_value): Use mark_value_bits_optimized_out.
387 (write_pieced_value): Switch to use
388 mark_value_bytes_optimized_out.
389 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
390 of assuming the whole value is optimized out.
391 * findvar.c (read_frame_register_value): Remove special handling
392 of optimized out registers.
393 (value_from_register): Use mark_value_bytes_optimized_out.
394 * frame-unwind.c (frame_unwind_got_optimized): Use
395 mark_value_bytes_optimized_out.
396 * jv-valprint.c (java_value_print): Adjust.
397 (java_print_value_fields): Let the common printing code handle
398 optimized out values.
399 * mips-tdep.c (mips_print_register): Remove special handling of
400 optimized out registers.
401 * opencl-lang.c (lval_func_check_validity): Delete.
402 (lval_func_check_any_valid): Delete.
403 (opencl_value_funcs): Remove check_validity and check_any_valid
405 * p-valprint.c (pascal_object_print_value_fields): Let the common
406 printing code handle optimized out values.
407 * stack.c (read_frame_arg): Remove special handling of optimized
408 out values. Fetch both VAL and ENTRYVAL before comparing
409 contents. Adjust to value_available_contents_eq rename.
410 * valprint.c (valprint_check_validity)
411 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
412 (val_print_array_elements): Adjust.
413 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
414 (value_bits_any_optimized_out): New function.
415 (value_entirely_covered_by_range_vector): New function, factored
416 out from value_entirely_unavailable.
417 (value_entirely_unavailable): Reimplement.
418 (value_entirely_optimized_out): New function.
419 (insert_into_bit_range_vector): New function, factored out from
420 mark_value_bits_unavailable.
421 (mark_value_bits_unavailable): Reimplement.
422 (struct ranges_and_idx): New struct.
423 (find_first_range_overlap_and_match): New function, factored out
424 from value_available_contents_bits_eq.
425 (value_available_contents_bits_eq): Rename to ...
426 (value_contents_bits_eq): ... this. Check both unavailable
427 contents and optimized out contents.
428 (value_available_contents_eq): Rename to ...
429 (value_contents_eq): ... this.
430 (allocate_value_lazy): Remove reference to the old optimized_out
432 (allocate_optimized_out_value): Use
433 mark_value_bytes_optimized_out.
434 (require_not_optimized_out): Adjust to check whether the
435 optimized_out vec is empty.
436 (ranges_copy_adjusted): New function, factored out from
437 value_contents_copy_raw.
438 (value_contents_copy_raw): Also copy the optimized out ranges.
439 Assert the destination ranges aren't optimized out.
440 (value_contents_copy): Update comment, remove call to
441 require_not_optimized_out.
442 (value_contents_equal): Adjust to check whether the optimized_out
444 (set_value_optimized_out, value_optimized_out_const): Delete.
445 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
447 (value_entirely_optimized_out, value_bits_valid): Delete.
448 (value_copy): Take a VEC copy of the 'optimized_out' field.
449 (value_primitive_field): Remove special handling of optimized out.
450 (value_fetch_lazy): Assert that lazy values have no unavailable
451 regions. Use value_bits_any_optimized_out. Remove some special
452 handling for optimized out values.
453 * value.h: Add intro comment about <optimized out> and
455 (struct lval_funcs): Remove check_validity and check_any_valid
457 (set_value_optimized_out, value_optimized_out_const): Remove.
458 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
460 (value_bits_any_optimized_out): New declaration.
461 (value_bits_valid): Delete declaration.
462 (value_available_contents_eq): Rename to ...
463 (value_contents_eq): ... this, and extend comments.
465 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
467 Fix -fsanitize=address on unreadable inferior strings.
468 * valprint.c (val_print_string): Fix access before BUFFER.
470 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
472 * target.c (target_struct_size): Remove.
473 (target_struct_allocsize): Remove.
474 (DEFAULT_ALLOCSIZE): Remove.
475 (target_ops_p): New typedef.
476 (DEF_VEC_P (target_ops_p)): New vector type.
477 (target_structs): Change type to VEC (target_ops_p).
478 (add_target_with_completer): Replace "push" code by VEC_safe_push.
479 (find_default_run_target): Rewrite for loop following changes to
482 2014-08-19 Joel Brobecker <brobecker@adacore.com>
484 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
485 Adjust code accordingly. Adjust function description comment.
487 2014-08-19 Yao Qi <yao@codesourcery.com>
489 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
492 2014-08-19 Alan Modra <amodra@gmail.com>
494 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
495 * config.in: Regenerate.
496 * configure: Regenerate.
498 2014-08-19 Tom Tromey <tromey@redhat.com>
499 Gary Benson <gbenson@redhat.com>
501 * common/common-debug.h: New file.
502 * common/common-debug.c: Likewise.
504 * Makefile.in (SFILES): Add common/common-debug.c.
505 (HFILES_NO_SRCDIR): Add common/common-debug.h.
506 (COMMON_OBS): Add common-debug.o and debug.o.
507 (common-debug.o): New rule.
508 * common/common-defs.h: Include common-debug.h.
509 * common/agent.c (debug_agent_printf): New function.
510 (DEBUG_AGENT): Redefine.
511 * nat/i386-dregs.c (debug_printf): Undefine.
513 2014-08-19 Gary Benson <gbenson@redhat.com>
515 * common/common-defs.h: Include print-utils.h.
516 * utils.h: Do not include print-utils.h.
518 2014-08-19 Tom Tromey <tromey@redhat.com>
519 Gary Benson <gbenson@redhat.com>
521 * common/common-types.h: New file.
522 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
523 * common/common-defs.h: Include common-types.h.
524 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
527 2014-08-19 Tom Tromey <tromey@redhat.com>
528 Gary Benson <gbenson@redhat.com>
530 * common/errors.h: New file.
531 * common/errors.c: Likewise.
532 * Makefile.in (SFILES): Add common/errors.c.
533 (HFILES_NO_SRCDIR): Add common/errors.h.
534 (COMMON_OBS): Add errors.o.
535 (errors.o): New rule.
536 * common/common-defs.h: Include errors.h.
537 * utils.h (perror_with_name, error, verror, warning, vwarning):
539 * common/common-utils.h: (malloc_failure, internal_error):
542 2014-08-19 Gary Benson <gbenson@redhat.com>
544 * utils.c (internal_vproblem): Always print the message.
546 2014-08-18 Doug Evans <dje@google.com>
548 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
550 2014-08-18 Joel Brobecker <brobecker@adacore.com>
552 * ada-typeprint.c (type_is_full_subrange_of_target_type):
553 Return 0 if TYPE is dynamic.
554 (print_range): Add handling of dynamic ranges.
556 2014-08-18 Keven Boell <keven.boell@intel.com>
557 Joel Brobecker <brobecker@adacore.com>
559 * gdbtypes.h (struct main_type): Add field "data_location".
560 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
561 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
562 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
563 a dynamic data location.
564 (resolve_dynamic_type): Add DW_AT_data_location handling.
565 (copy_recursive, copy_type): Copy the data_location information
567 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
568 * value.c (value_from_contents_and_address): Add
569 DW_AT_data_location handling.
571 2014-08-18 Keven Boell <keven.boell@intel.com>
572 Joel Brobecker <brobecker@adacore.com>
574 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
575 field "get_object_address".
576 * dwarf2expr.c (execute_stack_op): Add handling for
577 DW_OP_push_object_address.
578 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
579 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
580 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
581 (dwarf_expr_get_obj_addr): New function.
582 (dwarf_expr_ctx_funcs): Add get_object_address field.
583 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
584 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
585 (dwarf2_evaluate_property): Add parameter "address". Use it.
586 (needs_get_obj_addr): New function.
587 (needs_frame_ctx_funcs): Add get_object_address field.
588 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
589 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
590 (resolve_dynamic_array): Likewise.
592 2014-08-18 Joel Brobecker <brobecker@adacore.com>
594 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
595 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
596 fixed value for records and unions for which some GNAT encodings
599 2014-08-18 Joel Brobecker <brobecker@adacore.com>
601 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
602 rewrite to avoid "else if" and "else" constructs. Should be
605 2014-08-18 Joel Brobecker <brobecker@adacore.com>
607 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
610 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
613 * eval.c: Update all calls to find_overload_match.
614 * valarith.c: Likewise.
615 (value_user_defined_cpp_op, value_user_defined_op): New
616 argument NOSIDE. Update all callers.
617 * valops.c (find_overload_match): New argument NOSIDE.
618 * value.h (find_overload_match): Update signature.
620 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
622 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
623 'items' methods instead of 'iteritems' method on dictionaries.
625 2014-08-15 Doug Evans <dje@google.com>
627 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
630 2014-08-15 Doug Evans <dje@google.com>
632 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
634 2014-08-15 Doug Evans <dje@google.com>
636 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
638 2014-08-15 Doug Evans <dje@google.com>
640 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
643 2014-08-15 Eli Zaretskii <eliz@gnu.org>
645 * dcache.h: Include target.h, to avoid compile time warnings.
647 2014-08-15 Joel Brobecker <brobecker@adacore.com>
649 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
650 frame_info" partial declaration.
651 * gdbarch.h: Regenerate.
653 2014-08-15 Yao Qi <yao@codesourcery.com>
655 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
656 Add parameter 'decode_for_pst_p'. Callers update.
658 2014-08-13 Yao Qi <yao@codesourcery.com>
661 * configure.ac: Use local variable 'pos'.
662 * configure: Regenerated.
664 2014-08-11 Doug Evans <dje@google.com>
666 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
667 message, it is redundant with "Reading symbols from ..." message.
669 2014-08-10 Doug Evans <xdje42@gmail.com>
671 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
673 2014-08-09 Yao Qi <yao@codesourcery.com>
676 * remote.c (remote_xfer_partial): Remove dead code.
678 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
680 * ia64-linux-tdep.c: Include "regset.h".
681 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
682 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
683 (ia64_linux_supply_fpregset): New function.
684 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
685 (ia64_linux_regset_from_core_section): New function.
686 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
689 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
691 * m68klinux-tdep.c: Include "regset.h".
692 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
693 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
694 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
695 (m68k_linux_regset_from_core_section): New function.
696 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
699 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
701 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
702 function. Move logic to...
703 (tilegx_linux_regmap): ... this new register map.
704 (tilegx_linux_regset): Refer to register map, replace supply
705 method by regcache_supply_regset, and add collect method.
706 * tilegx-tdep.h (enum tilegx_regnum): New enum value
707 TILEGX_FIRST_EASY_REGNUM.
709 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
711 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
712 that calls regcache_supply_regset and handles the EPC register
713 separately. Move main logic to...
714 (score7_linux_gregmap): ... this new register map.
715 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
716 (score7_linux_gregset): Refer to register map. Add collect method.
717 (score7_linux_regset_from_core_section): Replace
718 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
719 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
720 (struct regset): Delete unused forward declaraction.
721 (struct pt_regs): Delete structure definition.
722 (elf_gregset_t): Delete typedef.
724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
726 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
727 (nios2_core_regset): Add collect method.
729 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
731 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
732 platform-independent and don't write to read-only input buffer.
733 (m32r_linux_collect_gregset): New function.
734 (m32r_linux_gregset): Add collect method.
736 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
738 * hppa-linux-tdep.c (greg_map): Rename to...
739 (hppa_linux_gregmap): ... this. Also convert to
740 regcache_map_entry format.
741 (hppa_linux_supply_regset): Delete function.
742 (hppa_linux_supply_fpregset): Delete function. Move logic to...
743 (hppa_linux_fpregmap): ... this new register map.
744 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
745 register map, replace supply method by regcache_supply_regset, and
746 add collect method regcache_collect_regset.
748 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
750 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
751 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
752 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
753 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
754 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
755 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
756 (frv_linux_supply_gregset): Replace main logic by call to
757 regcache_supply_regset, but keep clearing gr32-gr63.
758 (frv_linux_supply_fpregset): Delete function.
759 (frv_linux_gregset): Refer to appropriate register map and add
760 regcache_collect_regset as the collect method.
761 (frv_linux_fpregset): Likewise. Also exchange the supply method
762 by regcache_supply_regset.
764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
766 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
767 by call to alpha_supply_int_regs.
768 (alpha_linux_collect_gregset): New function.
769 (alpha_linux_supply_fpregset): Replace logic by call to
770 alpha_supply_fp_regs.
771 (alpha_linux_collect_fpregset): New function.
772 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
774 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
776 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
777 by call to regcache_collect_regset.
778 (supply_gregset, supply_fpregset): Call regcache_supply_regset
779 instead of aarch64_linux_supply_gregset/_fpregset.
780 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
781 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
783 (aarch64_linux_supply_gregset, supply_gregset_from_core)
784 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
785 functions. Move logic to ...
786 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
788 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
789 refer to new register maps, replace *_regset_from_core by
790 regcache_supply_regset, and also use regcache_collect_regset.
791 * aarch64-linux-tdep.h: Include "regset.h".
792 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
794 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
795 macros, moved from C source file.
796 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
797 variable declarations.
799 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
801 * s390-linux-nat.c: Include "regset.h".
802 (regmap_gregset): Delete macro.
803 (s390_64_regmap_gregset): New register map for
804 regcache_supply/_collect_regset.
805 (s390_64_gregset): New regset.
806 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
807 (regmap_fpregset): Delete macro.
808 (s390_native_supply, s390_native_collect): Delete functions.
809 (supply_gregset, fill_gregset): Replace s390-specific regmap
810 handling by a call to regcache_supply/_collect_regset.
811 (supply_fpregset, fill_fpregset): Call regcache_supply/
812 _collect_regset instead of s390_native_supply/_collect.
813 (fetch_regset, store_regset): Likewise. Also change the last
814 parameter to a regset instead of a regmap.
815 (s390_linux_fetch_inferior_registers)
816 (390_linux_store_inferior_registers): Adjust last parameter in
817 calls to fetch_regset and store_regset.
818 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
819 (s390_gregmap): ... this. Also make static const and convert to
820 regcache_map_entry format.
821 (s390x_regmap_gregset): Delete.
822 (s390_regmap_fpregset): Rename to...
823 (s390_fpregmap): ... this. Make static const and convert to
824 regcache_map_entry format.
825 (s390_regmap_upper, s390_regmap_last_break)
826 (s390x_regmap_last_break, s390_regmap_system_call)
827 (s390_regmap_tdb): Likewise.
828 (s390_supply_regset, s390_collect_regset): Remove functions.
829 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
831 (s390_gregset, s390_fpregset, s390_upper_regset)
832 (s390_last_break_regset, s390x_last_break_regset)
833 (s390_system_call_regset, s390_tdb_regset): Make global and
834 replace s390_supply/_collect_regset by regcache_supply/
836 (s390x_gregset): Delete.
837 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
838 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
839 (s390_regmap_fpregset, s390_regmap_last_break)
840 (s390x_regmap_last_break, s390_regmap_system_call)
841 (s390_regmap_tdb): Delete global variable declarations.
842 (s390_gregset, s390_fpregset, s390_last_break_regset)
843 (s390x_last_break_regset, s390_system_call_regset)
844 (s390_tdb_regset): New global variable declarations.
846 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
848 * regcache.c: Include "regset.h".
849 (regcache_transfer_regset): New local function.
850 (regcache_supply_regset, regcache_collect_regset): New functions.
851 * regcache.h (struct regcache_map_entry): New structure.
852 (REGCACHE_MAP_SKIP): New enum value.
853 (regcache_supply_regset, regcache_collect_regset): New prototypes.
855 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
857 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
858 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
859 (ppc_linux_collect_gregset ): Likewise.
860 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
861 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
862 (ppc_collect_vrregset): Likewise.
863 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
866 2014-08-07 Yao Qi <yao@codesourcery.com>
868 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
869 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
870 * remote.c (remote_read_bytes): Likewise.
872 2014-08-07 Yao Qi <yao@codesourcery.com>
874 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
876 2014-08-07 Yao Qi <yao@codesourcery.com>
879 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
880 TARGET_XFER_OK instead of 0.
882 2014-08-07 Gary Benson <gbenson@redhat.com>
884 * common/common-defs.h: Include errno.h.
885 * defs.h: Do not include errno.h.
886 * ada-typeprint.c: Likewise.
887 * c-typeprint.c: Likewise.
888 * core-regset.c: Likewise.
889 * corefile.c: Likewise.
890 * corelow.c: Likewise.
891 * event-loop.c: Likewise.
892 * f-typeprint.c: Likewise.
893 * gnu-nat.c: Likewise.
894 * go32-nat.c: Likewise.
895 * i386gnu-nat.c: Likewise.
896 * m2-typeprint.c: Likewise.
897 * nat/linux-btrace.c: Likewise.
898 * p-typeprint.c: Likewise.
899 * procfs.c: Likewise.
900 * remote-sim.c: Likewise.
901 * rs6000-nat.c: Likewise.
902 * target.c: Likewise.
903 * typeprint.c: Likewise.
904 * ui-file.c: Likewise.
905 * valops.c: Likewise.
906 * valprint.c: Likewise.
908 2014-08-07 Gary Benson <gbenson@redhat.com>
910 * common/common-defs.h: Include string.h.
911 * aarch64-tdep.c: Do not include string.h.
912 * ada-exp.y: Likewise.
913 * ada-lang.c: Likewise.
914 * ada-lex.l: Likewise.
915 * ada-typeprint.c: Likewise.
916 * ada-valprint.c: Likewise.
917 * aix-thread.c: Likewise.
918 * alpha-linux-tdep.c: Likewise.
919 * alpha-mdebug-tdep.c: Likewise.
920 * alpha-nat.c: Likewise.
921 * alpha-osf1-tdep.c: Likewise.
922 * alpha-tdep.c: Likewise.
923 * alphanbsd-tdep.c: Likewise.
924 * amd64-dicos-tdep.c: Likewise.
925 * amd64-linux-tdep.c: Likewise.
926 * amd64-nat.c: Likewise.
927 * amd64-sol2-tdep.c: Likewise.
928 * amd64fbsd-tdep.c: Likewise.
929 * amd64obsd-tdep.c: Likewise.
930 * arch-utils.c: Likewise.
931 * arm-linux-nat.c: Likewise.
932 * arm-linux-tdep.c: Likewise.
933 * arm-tdep.c: Likewise.
934 * arm-wince-tdep.c: Likewise.
935 * armbsd-tdep.c: Likewise.
936 * armnbsd-nat.c: Likewise.
937 * armnbsd-tdep.c: Likewise.
938 * armobsd-tdep.c: Likewise.
939 * avr-tdep.c: Likewise.
940 * ax-gdb.c: Likewise.
941 * ax-general.c: Likewise.
942 * bcache.c: Likewise.
943 * bfin-tdep.c: Likewise.
944 * breakpoint.c: Likewise.
945 * build-id.c: Likewise.
946 * buildsym.c: Likewise.
948 * c-lang.c: Likewise.
949 * c-typeprint.c: Likewise.
950 * c-valprint.c: Likewise.
951 * charset.c: Likewise.
952 * cli-out.c: Likewise.
953 * cli/cli-cmds.c: Likewise.
954 * cli/cli-decode.c: Likewise.
955 * cli/cli-dump.c: Likewise.
956 * cli/cli-interp.c: Likewise.
957 * cli/cli-logging.c: Likewise.
958 * cli/cli-script.c: Likewise.
959 * cli/cli-setshow.c: Likewise.
960 * cli/cli-utils.c: Likewise.
961 * coffread.c: Likewise.
962 * common/agent.c: Likewise.
963 * common/buffer.c: Likewise.
964 * common/buffer.h: Likewise.
965 * common/common-utils.c: Likewise.
966 * common/filestuff.c: Likewise.
967 * common/filestuff.c: Likewise.
968 * common/format.c: Likewise.
969 * common/print-utils.c: Likewise.
970 * common/rsp-low.c: Likewise.
971 * common/signals.c: Likewise.
972 * common/vec.h: Likewise.
973 * common/xml-utils.c: Likewise.
974 * core-regset.c: Likewise.
975 * corefile.c: Likewise.
976 * corelow.c: Likewise.
977 * cp-abi.c: Likewise.
978 * cp-name-parser.y: Likewise.
979 * cp-support.c: Likewise.
980 * cp-valprint.c: Likewise.
981 * cris-tdep.c: Likewise.
983 * darwin-nat.c: Likewise.
984 * dbxread.c: Likewise.
985 * dcache.c: Likewise.
986 * demangle.c: Likewise.
987 * dicos-tdep.c: Likewise.
988 * disasm.c: Likewise.
989 * doublest.c: Likewise.
991 * dummy-frame.c: Likewise.
992 * dwarf2-frame.c: Likewise.
993 * dwarf2loc.c: Likewise.
994 * dwarf2read.c: Likewise.
995 * elfread.c: Likewise.
996 * environ.c: Likewise.
998 * event-loop.c: Likewise.
999 * exceptions.c: Likewise.
1001 * expprint.c: Likewise.
1002 * f-exp.y: Likewise.
1003 * f-lang.c: Likewise.
1004 * f-typeprint.c: Likewise.
1005 * f-valprint.c: Likewise.
1006 * fbsd-nat.c: Likewise.
1007 * findcmd.c: Likewise.
1008 * findvar.c: Likewise.
1009 * fork-child.c: Likewise.
1010 * frame.c: Likewise.
1011 * frv-linux-tdep.c: Likewise.
1012 * frv-tdep.c: Likewise.
1014 * gdb_bfd.c: Likewise.
1015 * gdbarch.c: Likewise.
1016 * gdbarch.sh: Likewise.
1017 * gdbtypes.c: Likewise.
1018 * gnu-nat.c: Likewise.
1019 * gnu-v2-abi.c: Likewise.
1020 * gnu-v3-abi.c: Likewise.
1021 * go-exp.y: Likewise.
1022 * go-lang.c: Likewise.
1023 * go32-nat.c: Likewise.
1024 * guile/guile.c: Likewise.
1025 * guile/scm-auto-load.c: Likewise.
1026 * hppa-hpux-tdep.c: Likewise.
1027 * hppa-linux-nat.c: Likewise.
1028 * hppanbsd-tdep.c: Likewise.
1029 * hppaobsd-tdep.c: Likewise.
1030 * i386-cygwin-tdep.c: Likewise.
1031 * i386-dicos-tdep.c: Likewise.
1032 * i386-linux-tdep.c: Likewise.
1033 * i386-nto-tdep.c: Likewise.
1034 * i386-sol2-tdep.c: Likewise.
1035 * i386-tdep.c: Likewise.
1036 * i386bsd-tdep.c: Likewise.
1037 * i386gnu-nat.c: Likewise.
1038 * i386nbsd-tdep.c: Likewise.
1039 * i386obsd-tdep.c: Likewise.
1040 * i387-tdep.c: Likewise.
1041 * ia64-libunwind-tdep.c: Likewise.
1042 * ia64-linux-nat.c: Likewise.
1043 * inf-child.c: Likewise.
1044 * inf-ptrace.c: Likewise.
1045 * inf-ttrace.c: Likewise.
1046 * infcall.c: Likewise.
1047 * infcmd.c: Likewise.
1048 * inflow.c: Likewise.
1049 * infrun.c: Likewise.
1050 * interps.c: Likewise.
1051 * iq2000-tdep.c: Likewise.
1052 * irix5-nat.c: Likewise.
1053 * jv-exp.y: Likewise.
1054 * jv-lang.c: Likewise.
1055 * jv-typeprint.c: Likewise.
1056 * jv-valprint.c: Likewise.
1057 * language.c: Likewise.
1058 * linux-fork.c: Likewise.
1059 * linux-nat.c: Likewise.
1060 * lm32-tdep.c: Likewise.
1061 * m2-exp.y: Likewise.
1062 * m2-typeprint.c: Likewise.
1063 * m32c-tdep.c: Likewise.
1064 * m32r-linux-nat.c: Likewise.
1065 * m32r-linux-tdep.c: Likewise.
1066 * m32r-rom.c: Likewise.
1067 * m32r-tdep.c: Likewise.
1068 * m68hc11-tdep.c: Likewise.
1069 * m68k-tdep.c: Likewise.
1070 * m68kbsd-tdep.c: Likewise.
1071 * m68klinux-nat.c: Likewise.
1072 * m68klinux-tdep.c: Likewise.
1073 * m88k-tdep.c: Likewise.
1074 * machoread.c: Likewise.
1075 * macrocmd.c: Likewise.
1077 * mdebugread.c: Likewise.
1078 * mem-break.c: Likewise.
1079 * memattr.c: Likewise.
1080 * memory-map.c: Likewise.
1081 * mep-tdep.c: Likewise.
1082 * mi/mi-cmd-break.c: Likewise.
1083 * mi/mi-cmd-disas.c: Likewise.
1084 * mi/mi-cmd-env.c: Likewise.
1085 * mi/mi-cmd-stack.c: Likewise.
1086 * mi/mi-cmd-var.c: Likewise.
1087 * mi/mi-cmds.c: Likewise.
1088 * mi/mi-console.c: Likewise.
1089 * mi/mi-getopt.c: Likewise.
1090 * mi/mi-interp.c: Likewise.
1091 * mi/mi-main.c: Likewise.
1092 * mi/mi-parse.c: Likewise.
1093 * microblaze-rom.c: Likewise.
1094 * microblaze-tdep.c: Likewise.
1095 * mingw-hdep.c: Likewise.
1096 * minidebug.c: Likewise.
1097 * minsyms.c: Likewise.
1098 * mips-irix-tdep.c: Likewise.
1099 * mips-linux-tdep.c: Likewise.
1100 * mips-tdep.c: Likewise.
1101 * mips64obsd-tdep.c: Likewise.
1102 * mipsnbsd-tdep.c: Likewise.
1103 * mipsread.c: Likewise.
1104 * mn10300-linux-tdep.c: Likewise.
1105 * mn10300-tdep.c: Likewise.
1106 * monitor.c: Likewise.
1107 * moxie-tdep.c: Likewise.
1108 * mt-tdep.c: Likewise.
1109 * nat/linux-btrace.c: Likewise.
1110 * nat/linux-osdata.c: Likewise.
1111 * nat/linux-procfs.c: Likewise.
1112 * nat/linux-ptrace.c: Likewise.
1113 * nat/linux-waitpid.c: Likewise.
1114 * nbsd-tdep.c: Likewise.
1115 * nios2-linux-tdep.c: Likewise.
1116 * nto-procfs.c: Likewise.
1117 * nto-tdep.c: Likewise.
1118 * objc-lang.c: Likewise.
1119 * objfiles.c: Likewise.
1120 * opencl-lang.c: Likewise.
1121 * osabi.c: Likewise.
1122 * osdata.c: Likewise.
1123 * p-exp.y: Likewise.
1124 * p-lang.c: Likewise.
1125 * p-typeprint.c: Likewise.
1126 * parse.c: Likewise.
1127 * posix-hdep.c: Likewise.
1128 * ppc-linux-nat.c: Likewise.
1129 * ppc-sysv-tdep.c: Likewise.
1130 * ppcfbsd-tdep.c: Likewise.
1131 * ppcnbsd-tdep.c: Likewise.
1132 * ppcobsd-tdep.c: Likewise.
1133 * printcmd.c: Likewise.
1134 * procfs.c: Likewise.
1135 * prologue-value.c: Likewise.
1136 * python/py-auto-load.c: Likewise.
1137 * python/py-gdb-readline.c: Likewise.
1138 * ravenscar-thread.c: Likewise.
1139 * regcache.c: Likewise.
1140 * registry.c: Likewise.
1141 * remote-fileio.c: Likewise.
1142 * remote-m32r-sdi.c: Likewise.
1143 * remote-mips.c: Likewise.
1144 * remote-notif.c: Likewise.
1145 * remote-sim.c: Likewise.
1146 * remote.c: Likewise.
1147 * reverse.c: Likewise.
1148 * rs6000-aix-tdep.c: Likewise.
1149 * ser-base.c: Likewise.
1150 * ser-go32.c: Likewise.
1151 * ser-mingw.c: Likewise.
1152 * ser-pipe.c: Likewise.
1153 * ser-tcp.c: Likewise.
1154 * ser-unix.c: Likewise.
1155 * serial.c: Likewise.
1156 * sh-tdep.c: Likewise.
1157 * sh64-tdep.c: Likewise.
1158 * shnbsd-tdep.c: Likewise.
1160 * sol-thread.c: Likewise.
1161 * solib-dsbt.c: Likewise.
1162 * solib-frv.c: Likewise.
1163 * solib-osf.c: Likewise.
1164 * solib-som.c: Likewise.
1165 * solib-spu.c: Likewise.
1166 * solib-target.c: Likewise.
1167 * solib.c: Likewise.
1168 * somread.c: Likewise.
1169 * source.c: Likewise.
1170 * sparc-nat.c: Likewise.
1171 * sparc-sol2-tdep.c: Likewise.
1172 * sparc-tdep.c: Likewise.
1173 * sparc64-tdep.c: Likewise.
1174 * sparc64fbsd-tdep.c: Likewise.
1175 * sparc64nbsd-tdep.c: Likewise.
1176 * sparcnbsd-tdep.c: Likewise.
1177 * spu-linux-nat.c: Likewise.
1178 * spu-multiarch.c: Likewise.
1179 * spu-tdep.c: Likewise.
1180 * stabsread.c: Likewise.
1181 * stack.c: Likewise.
1182 * std-regs.c: Likewise.
1183 * symfile.c: Likewise.
1184 * symmisc.c: Likewise.
1185 * symtab.c: Likewise.
1186 * target.c: Likewise.
1187 * thread.c: Likewise.
1188 * tilegx-linux-nat.c: Likewise.
1189 * tilegx-tdep.c: Likewise.
1191 * tracepoint.c: Likewise.
1192 * tui/tui-command.c: Likewise.
1193 * tui/tui-data.c: Likewise.
1194 * tui/tui-disasm.c: Likewise.
1195 * tui/tui-file.c: Likewise.
1196 * tui/tui-layout.c: Likewise.
1197 * tui/tui-out.c: Likewise.
1198 * tui/tui-regs.c: Likewise.
1199 * tui/tui-source.c: Likewise.
1200 * tui/tui-stack.c: Likewise.
1201 * tui/tui-win.c: Likewise.
1202 * tui/tui-windata.c: Likewise.
1203 * tui/tui-winsource.c: Likewise.
1204 * typeprint.c: Likewise.
1205 * ui-file.c: Likewise.
1206 * ui-out.c: Likewise.
1207 * user-regs.c: Likewise.
1208 * utils.c: Likewise.
1209 * v850-tdep.c: Likewise.
1210 * valarith.c: Likewise.
1211 * valops.c: Likewise.
1212 * valprint.c: Likewise.
1213 * value.c: Likewise.
1214 * varobj.c: Likewise.
1215 * vax-tdep.c: Likewise.
1216 * vaxnbsd-tdep.c: Likewise.
1217 * vaxobsd-tdep.c: Likewise.
1218 * windows-nat.c: Likewise.
1219 * xcoffread.c: Likewise.
1220 * xml-support.c: Likewise.
1221 * xstormy16-tdep.c: Likewise.
1222 * xtensa-linux-nat.c: Likewise.
1224 2014-08-07 Gary Benson <gbenson@redhat.com>
1226 * common/common-defs.h: Include gdb_assert.h.
1227 * aarch64-tdep.c: Do not include gdb_assert.h.
1228 * addrmap.c: Likewise.
1229 * aix-thread.c: Likewise.
1230 * alpha-linux-tdep.c: Likewise.
1231 * alpha-mdebug-tdep.c: Likewise.
1232 * alphanbsd-tdep.c: Likewise.
1233 * amd64-nat.c: Likewise.
1234 * amd64-tdep.c: Likewise.
1235 * amd64bsd-nat.c: Likewise.
1236 * amd64fbsd-nat.c: Likewise.
1237 * amd64fbsd-tdep.c: Likewise.
1238 * amd64nbsd-nat.c: Likewise.
1239 * amd64nbsd-tdep.c: Likewise.
1240 * amd64obsd-nat.c: Likewise.
1241 * amd64obsd-tdep.c: Likewise.
1242 * arch-utils.c: Likewise.
1243 * arm-tdep.c: Likewise.
1244 * armbsd-tdep.c: Likewise.
1246 * bcache.c: Likewise.
1247 * bfin-tdep.c: Likewise.
1248 * blockframe.c: Likewise.
1249 * breakpoint.c: Likewise.
1250 * bsd-kvm.c: Likewise.
1251 * bsd-uthread.c: Likewise.
1252 * buildsym.c: Likewise.
1253 * c-exp.y: Likewise.
1254 * c-lang.c: Likewise.
1255 * charset.c: Likewise.
1256 * cleanups.c: Likewise.
1257 * cli-out.c: Likewise.
1258 * cli/cli-decode.c: Likewise.
1259 * cli/cli-dump.c: Likewise.
1260 * cli/cli-logging.c: Likewise.
1261 * cli/cli-script.c: Likewise.
1262 * cli/cli-utils.c: Likewise.
1263 * coffread.c: Likewise.
1264 * common/common-utils.c: Likewise.
1265 * common/queue.h: Likewise.
1266 * common/signals.c: Likewise.
1267 * common/vec.h: Likewise.
1268 * complaints.c: Likewise.
1269 * completer.c: Likewise.
1270 * corelow.c: Likewise.
1271 * cp-abi.c: Likewise.
1272 * cp-name-parser.y: Likewise.
1273 * cp-namespace.c: Likewise.
1274 * cp-support.c: Likewise.
1275 * cris-tdep.c: Likewise.
1276 * dbxread.c: Likewise.
1277 * dictionary.c: Likewise.
1278 * doublest.c: Likewise.
1279 * dsrec.c: Likewise.
1280 * dummy-frame.c: Likewise.
1281 * dwarf2-frame-tailcall.c: Likewise.
1282 * dwarf2-frame.c: Likewise.
1283 * dwarf2expr.c: Likewise.
1284 * dwarf2loc.c: Likewise.
1285 * dwarf2read.c: Likewise.
1287 * event-loop.c: Likewise.
1288 * exceptions.c: Likewise.
1289 * expprint.c: Likewise.
1290 * f-valprint.c: Likewise.
1291 * fbsd-nat.c: Likewise.
1292 * findvar.c: Likewise.
1293 * frame-unwind.c: Likewise.
1294 * frame.c: Likewise.
1295 * frv-tdep.c: Likewise.
1296 * gcore.c: Likewise.
1297 * gdb-dlfcn.c: Likewise.
1298 * gdb_bfd.c: Likewise.
1299 * gdbarch.c: Likewise.
1300 * gdbarch.sh: Likewise.
1301 * gdbtypes.c: Likewise.
1302 * gnu-nat.c: Likewise.
1303 * gnu-v3-abi.c: Likewise.
1304 * go-lang.c: Likewise.
1305 * guile/scm-exception.c: Likewise.
1306 * guile/scm-gsmob.c: Likewise.
1307 * guile/scm-lazy-string.c: Likewise.
1308 * guile/scm-math.c: Likewise.
1309 * guile/scm-pretty-print.c: Likewise.
1310 * guile/scm-safe-call.c: Likewise.
1311 * guile/scm-utils.c: Likewise.
1312 * guile/scm-value.c: Likewise.
1313 * h8300-tdep.c: Likewise.
1314 * hppa-hpux-nat.c: Likewise.
1315 * hppa-tdep.c: Likewise.
1316 * hppanbsd-tdep.c: Likewise.
1317 * hppaobsd-tdep.c: Likewise.
1318 * i386-darwin-nat.c: Likewise.
1319 * i386-darwin-tdep.c: Likewise.
1320 * i386-nto-tdep.c: Likewise.
1321 * i386-tdep.c: Likewise.
1322 * i386bsd-nat.c: Likewise.
1323 * i386fbsd-tdep.c: Likewise.
1324 * i386gnu-nat.c: Likewise.
1325 * i386nbsd-tdep.c: Likewise.
1326 * i386obsd-tdep.c: Likewise.
1327 * i387-tdep.c: Likewise.
1328 * ia64-libunwind-tdep.c: Likewise.
1329 * ia64-tdep.c: Likewise.
1330 * inf-ptrace.c: Likewise.
1331 * inf-ttrace.c: Likewise.
1332 * infcall.c: Likewise.
1333 * infcmd.c: Likewise.
1334 * infrun.c: Likewise.
1335 * inline-frame.c: Likewise.
1336 * interps.c: Likewise.
1337 * jv-lang.c: Likewise.
1338 * jv-typeprint.c: Likewise.
1339 * linux-fork.c: Likewise.
1340 * linux-nat.c: Likewise.
1341 * linux-thread-db.c: Likewise.
1342 * m32c-tdep.c: Likewise.
1343 * m32r-linux-nat.c: Likewise.
1344 * m32r-tdep.c: Likewise.
1345 * m68k-tdep.c: Likewise.
1346 * m68kbsd-nat.c: Likewise.
1347 * m68kbsd-tdep.c: Likewise.
1348 * m88k-tdep.c: Likewise.
1349 * machoread.c: Likewise.
1350 * macroexp.c: Likewise.
1351 * macrotab.c: Likewise.
1352 * maint.c: Likewise.
1353 * mdebugread.c: Likewise.
1354 * memory-map.c: Likewise.
1355 * mep-tdep.c: Likewise.
1356 * mi/mi-common.c: Likewise.
1357 * microblaze-tdep.c: Likewise.
1358 * mingw-hdep.c: Likewise.
1359 * mips-linux-nat.c: Likewise.
1360 * mips-linux-tdep.c: Likewise.
1361 * mips-tdep.c: Likewise.
1362 * mips64obsd-tdep.c: Likewise.
1363 * mipsnbsd-tdep.c: Likewise.
1364 * mn10300-linux-tdep.c: Likewise.
1365 * mn10300-tdep.c: Likewise.
1366 * moxie-tdep.c: Likewise.
1367 * mt-tdep.c: Likewise.
1368 * nat/linux-btrace.c: Likewise.
1369 * nat/linux-osdata.c: Likewise.
1370 * nat/linux-ptrace.c: Likewise.
1371 * nat/mips-linux-watch.c: Likewise.
1372 * nios2-linux-tdep.c: Likewise.
1373 * nios2-tdep.c: Likewise.
1374 * objc-lang.c: Likewise.
1375 * objfiles.c: Likewise.
1376 * obsd-nat.c: Likewise.
1377 * opencl-lang.c: Likewise.
1378 * osabi.c: Likewise.
1379 * parse.c: Likewise.
1380 * ppc-linux-nat.c: Likewise.
1381 * ppc-sysv-tdep.c: Likewise.
1382 * ppcfbsd-nat.c: Likewise.
1383 * ppcfbsd-tdep.c: Likewise.
1384 * ppcnbsd-nat.c: Likewise.
1385 * ppcnbsd-tdep.c: Likewise.
1386 * ppcobsd-nat.c: Likewise.
1387 * ppcobsd-tdep.c: Likewise.
1388 * printcmd.c: Likewise.
1389 * procfs.c: Likewise.
1390 * prologue-value.c: Likewise.
1391 * psymtab.c: Likewise.
1392 * python/py-lazy-string.c: Likewise.
1393 * python/py-value.c: Likewise.
1394 * regcache.c: Likewise.
1395 * reggroups.c: Likewise.
1396 * registry.c: Likewise.
1397 * remote-sim.c: Likewise.
1398 * remote.c: Likewise.
1399 * rs6000-aix-tdep.c: Likewise.
1400 * rs6000-tdep.c: Likewise.
1401 * s390-linux-tdep.c: Likewise.
1402 * score-tdep.c: Likewise.
1403 * ser-base.c: Likewise.
1404 * ser-mingw.c: Likewise.
1405 * sh-tdep.c: Likewise.
1406 * sh64-tdep.c: Likewise.
1407 * solib-darwin.c: Likewise.
1408 * solib-spu.c: Likewise.
1409 * solib-svr4.c: Likewise.
1410 * source.c: Likewise.
1411 * sparc-nat.c: Likewise.
1412 * sparc-sol2-tdep.c: Likewise.
1413 * sparc-tdep.c: Likewise.
1414 * sparc64-sol2-tdep.c: Likewise.
1415 * sparc64-tdep.c: Likewise.
1416 * sparc64fbsd-tdep.c: Likewise.
1417 * sparc64nbsd-tdep.c: Likewise.
1418 * sparc64obsd-tdep.c: Likewise.
1419 * sparcnbsd-tdep.c: Likewise.
1420 * sparcobsd-tdep.c: Likewise.
1421 * spu-multiarch.c: Likewise.
1422 * spu-tdep.c: Likewise.
1423 * stabsread.c: Likewise.
1424 * stack.c: Likewise.
1425 * symfile.c: Likewise.
1426 * symtab.c: Likewise.
1427 * target-descriptions.c: Likewise.
1428 * target-memory.c: Likewise.
1429 * target.c: Likewise.
1430 * tic6x-linux-tdep.c: Likewise.
1431 * tic6x-tdep.c: Likewise.
1432 * tilegx-linux-nat.c: Likewise.
1433 * tilegx-tdep.c: Likewise.
1435 * tramp-frame.c: Likewise.
1436 * tui/tui-out.c: Likewise.
1437 * tui/tui-winsource.c: Likewise.
1438 * ui-out.c: Likewise.
1439 * user-regs.c: Likewise.
1440 * utils.c: Likewise.
1441 * v850-tdep.c: Likewise.
1442 * valops.c: Likewise.
1443 * value.c: Likewise.
1444 * varobj.c: Likewise.
1445 * vax-nat.c: Likewise.
1446 * xml-syscall.c: Likewise.
1447 * xml-tdesc.c: Likewise.
1448 * xstormy16-tdep.c: Likewise.
1449 * xtensa-linux-nat.c: Likewise.
1450 * xtensa-tdep.c: Likewise.
1452 2014-08-07 Gary Benson <gbenson@redhat.com>
1454 * common/common-defs.h: Include common-utils.h.
1455 * defs.h: Do not include common-utils.h.
1456 * common/gdb_assert.h: Likewise.
1457 * darwin-nat.h: Likewise.
1458 * nat/linux-btrace.c: Likewise.
1459 * target/waitstatus.h: Likewise.
1461 2014-08-07 Gary Benson <gbenson@redhat.com>
1463 * common/common-defs.h: Include ptid.h.
1464 * defs.h: Do not include ptid.h.
1465 * inferior.h: Likewise.
1466 * infrun.h: Likewise.
1467 * nat/linux-btrace.h: Likewise.
1468 * nat/linux-osdata.h: Likewise.
1469 * target/waitstatus.h: Likewise.
1471 2014-08-07 Gary Benson <gbenson@redhat.com>
1473 * common/common-defs.h: Include gdb_locale.h.
1474 * defs.h: Do not include gdb_locale.h.
1476 2014-08-07 Gary Benson <gbenson@redhat.com>
1478 * common/common-defs.h: Include gdb/signals.h.
1479 * defs.h: Do not include gdb/signals.h.
1481 2014-08-07 Gary Benson <gbenson@redhat.com>
1483 * common/common-defs.h: Include pathmax.h.
1484 * defs.h: Do not include pathmax.h.
1486 2014-08-07 Gary Benson <gbenson@redhat.com>
1488 * common/common-defs.h: Include libiberty.h.
1489 * defs.h: Do not include libiberty.h.
1490 * common/queue.h: Likewise.
1491 * cp-name-parser.y: Likewise.
1492 * mi/mi-cmd-catch.c: Likewise.
1493 * python/python.c: Likewise.
1495 2014-08-07 Gary Benson <gbenson@redhat.com>
1497 * common/common-defs.h: Include ansidecl.h.
1498 * defs.h: Do not include ansidecl.h.
1499 * common/buffer.h: Likewise.
1500 * common/common-utils.h: Likewise.
1502 2014-08-07 Gary Benson <gbenson@redhat.com>
1504 * common/common-defs.h: Include stddef.h.
1505 * defs.h: Do not include stddef.h.
1506 * common/common-utils.h: Likewise.
1507 * amd64fbsd-nat.c: Likewise.
1508 * bcache.c: Likewise.
1509 * charset.c: Likewise.
1510 * common/buffer.h: Likewise.
1511 * common/vec.h: Likewise.
1512 * i386bsd-nat.c: Likewise.
1513 * nat/linux-btrace.h: Likewise.
1514 * ppcfbsd-nat.c: Likewise.
1515 * ppcnbsd-tdep.h: Likewise.
1516 * ppcobsd-nat.c: Likewise.
1517 * ppcobsd-tdep.h: Likewise.
1518 * python/py-gdb-readline.c: Likewise.
1520 2014-08-07 Gary Benson <gbenson@redhat.com>
1522 * common/common-defs.h: Include stdarg.h.
1523 * defs.h: Do not include stdarg.h.
1524 * ada-lang.c: Likewise.
1525 * common/common-utils.h: Likewise.
1526 * guile/scm-string.c: Likewise.
1527 * guile/scm-utils.c: Likewise.
1528 * m32c-tdep.c: Likewise.
1530 2014-08-07 Gary Benson <gbenson@redhat.com>
1532 * common/common-defs.h: Include stdlib.h.
1533 * defs.h: Do not include stdlib.h.
1534 * addrmap.c: Likewise.
1535 * bcache.c: Likewise.
1536 * common/buffer.c: Likewise.
1537 * common/common-utils.c: Likewise.
1538 * cp-name-parser.y: Likewise.
1539 * go32-nat.c: Likewise.
1540 * mn10300-linux-tdep.c: Likewise.
1541 * nat/linux-osdata.c: Likewise.
1542 * tui/tui.c: Likewise.
1543 * windows-nat.c: Likewise.
1545 2014-08-07 Gary Benson <gbenson@redhat.com>
1547 * common/common-defs.h: Include stdio.h.
1548 * defs.h: Do not include stdio.h.
1549 * ada-lang.c: Likewise.
1550 * common/buffer.c: Likewise.
1551 * common/common-utils.c: Likewise.
1552 * cp-name-parser.y: Likewise.
1553 * gnu-nat.c: Likewise.
1554 * go32-nat.c: Likewise.
1555 * i386gnu-nat.c: Likewise.
1556 * proc-api.c: Likewise.
1557 * proc-events.c: Likewise.
1558 * proc-flags.c: Likewise.
1559 * proc-why.c: Likewise.
1560 * python/python-internal.h: Likewise.
1561 * target-memory.c: Likewise.
1562 * tui/tui-io.c: Likewise.
1563 * tui/tui.c: Likewise.
1565 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1567 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1568 (scan_dyntag_auxv): Same.
1570 2014-08-06 Yao Qi <yao@codesourcery.com>
1572 * amd64-linux-nat.c: Remove duplicated include
1574 * i386-linux-nat.c: Likewise.
1576 2014-08-06 Yao Qi <yao@codesourcery.com>
1578 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1579 operand" with "Special opcode" in comments.
1581 2014-08-05 Gary Benson <gbenson@redhat.com>
1583 * interps.c (initialize_interps): Remove prototype.
1584 (interpreter_initialized): Remove static global.
1585 (interp_add): Do not call initialize_interps.
1586 (initialize_interps): Remove function.
1588 2014-08-05 Gary Benson <gbenson@redhat.com>
1590 * utils.c (vwarning): Remove spurious va_end.
1592 2014-08-05 Alan Modra <amodra@gmail.com>
1594 * charset.c (convert_between_encodings): Cast result of obstack_base.
1595 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1596 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1597 (read_unwind_info): Use size_t for some locals.
1598 * jit.c (finalize_symtab): Likewise.
1599 * utils.c (hashtab_obstack_allocate): Likewise.
1600 * symmisc.c (print_objfile_statistics): Update format strings.
1602 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1604 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1605 (Changes in GDB 7.8): ... here.
1607 2014-08-04 Tom Tromey <tromey@redhat.com>
1609 * target.c (set_targetdebug): New function.
1610 (initialize_targets): Pass set_targetdebug when creating "set
1613 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1615 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1616 if detecting a variable-sized field that is not the last field.
1617 Fix struct type length computation.
1619 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1621 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1624 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1626 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1627 Remove "+ 8" offset in computation of CHAIN_VMA.
1629 2014-07-31 Doug Evans <dje@google.com>
1631 * inflow.c (child_terminal_inferior): Add comment.
1632 (child_terminal_ours_for_output): Add comment.
1633 (child_terminal_ours): Add comment.
1634 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1635 (linux_nat_terminal_ours): Add comment.
1637 2014-07-31 Gary Benson <gbenson@redhat.com>
1639 * common/btrace-common.h: Do not include defs.h or server.h.
1640 * nat/mips-linux-watch.h: Likewise.
1641 * gdb-dlfcn.h: Do not include defs.h.
1642 * tracefile.h: Likewise.
1644 2014-07-30 Roland McGrath <mcgrathr@google.com>
1646 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1648 2014-07-30 Tom Tromey <tromey@redhat.com>
1650 * bsd-kvm.c (bsd_kvm_open): Constify.
1651 * corelow.c (core_open): Constify.
1652 * ctf.c (ctf_open): Constify.
1653 * dbug-rom.c (dbug_open): Constify.
1654 * exec.c (exec_open): Constify.
1655 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1656 * microblaze-rom.c (picobug_open): Constify.
1657 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1659 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1660 * record-btrace.c (record_btrace_open): Constify.
1661 * record-full.c (record_full_core_open_1, record_full_open_1)
1662 (record_full_open): Constify.
1663 * remote-m32r-sdi.c (m32r_open): Constify.
1664 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1665 (rockhopper_open, lsi_open): Constify.
1666 * remote-sim.c (gdbsim_open): Constify.
1667 * remote.c (remote_open, extended_remote_open, remote_open_1):
1669 * target.h (struct target_ops) <to_open>: Make "arg" const.
1670 * tracefile-tfile.c (tfile_open): Constify.
1672 2014-07-30 Tom Tromey <tromey@redhat.com>
1674 * breakpoint.c (map_breakpoint_numbers): Update.
1675 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1676 (get_number_const): New function.
1677 (get_number): Rewrite using get_number_const.
1678 (init_number_or_range): Make "string" const.
1679 (number_is_in_list): Make "list" const.
1680 * cli/cli-utils.h (get_number_const): Declare.
1681 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1682 (init_number_or_range, number_is_in_list): Update.
1683 * printcmd.c (map_display_numbers): Update.
1684 * value.c (value_from_history_ref): Constify.
1685 * value.h (value_from_history_ref): Update.
1687 2014-07-30 Tom Tromey <tromey@redhat.com>
1689 * corefile.c (hook_type, call_extra_exec_file_hooks)
1690 (specify_exec_file_hook): Constify.
1691 * exec.c (exec_file_attach): Make "filename" const.
1692 * gdbcore.h (deprecated_exec_file_display_hook)
1693 (specify_exec_file_hook, exec_file_attach): Constify.
1694 * main.c (captured_main): Use catch_command_errors_const.
1696 2014-07-30 Tom Tromey <tromey@redhat.com>
1698 * target.c (open_target): New function.
1699 (add_target_with_completer, add_deprecated_target_alias): Use
1700 set_cmd_sfunc, set_cmd_context.
1701 (debug_to_open): Remove.
1702 (setup_target_debug): Update.
1704 2014-07-30 Yao Qi <yao@codesourcery.com>
1706 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1708 * parse.c (exp_iterate): Update comments.
1710 2014-07-30 Gary Benson <gbenson@redhat.com>
1712 * common/common-defs.h: New file.
1713 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1714 * defs.h: Include common-defs.h.
1715 Do not include config.h or build-gnulib/config.h.
1717 2014-07-30 Gary Benson <gbenson@redhat.com>
1719 * common/common-utils.h: Do not include config.h.
1720 * nat/linux-btrace.h: Likewise.
1722 2014-07-30 Gary Benson <gbenson@redhat.com>
1724 * btrace.c: Include defs.h.
1725 * common/ptid.c: Include defs.h or server.h as appropriate.
1726 * nat/mips-linux-watch.c: Likewise.
1728 2014-07-29 Tom Tromey <tromey@redhat.com>
1730 * target.c (target_is_pushed): Simplify.
1732 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1736 2014-07-29 Yao Qi <yao@codesourcery.com>
1739 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1741 2014-07-28 Doug Evans <xdje42@gmail.com>
1744 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1745 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1748 2014-07-28 Will Newton <will.newton@linaro.org>
1750 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1751 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1752 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1753 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1754 (THUMB2_EABI_SYSCALL): Likewise.
1755 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1757 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1758 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1760 2014-07-27 Doug Evans <xdje42@gmail.com>
1762 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1764 2014-07-27 Doug Evans <xdje42@gmail.com>
1766 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1768 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1769 Doug Evans <xdje42@gmail.com>
1772 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1773 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1774 * configure.ac: Try to use guild to compile an scm file, if it fails
1775 then disable guile support.
1776 * configure: Regenerate.
1777 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1779 (GUILE_COMPILED_FILES): New variable.
1780 (GUILE_FILES) Update.
1781 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1782 (stamp-guile): Compile scm files.
1783 * guile/guile.c (boot_guile_support): New function.
1784 (standard_throw_args_p): New function.
1785 (print_standard_throw_error, print_throw_error): New functions.
1786 (handle_boot_error): New function.
1787 (initialize_scheme_side): Rewrite to call boot_guile_support.
1788 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1789 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1791 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1792 Doug Evans <xdje42@gmail.com>
1795 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1796 * guile/lib/gdb/support.scm: New file.
1797 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1798 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1800 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1802 (%assert-type): Ditto, and renamed to assert-type.
1803 (%exception-print-style): Delete.
1805 2014-07-26 Doug Evans <xdje42@gmail.com>
1808 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1809 * configure: Regenerate.
1810 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1812 (PYTHON_FILES): New variable.
1813 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1814 (GUILE_FILES): New variable.
1815 (stamp-python, install-python, uninstall-python): Handle empty
1817 (stamp-guile, install-guile, uninstall-guile): Ditto.
1819 2014-07-26 Doug Evans <xdje42@gmail.com>
1822 * guile/lib/gdb.scm (pretty-printers): Export.
1823 (set-pretty-printers!): Export.
1824 * guile/lib/gdb/printing.scm (gdb module): Update.
1825 (prepend-pretty-printer!, append-pretty-printer!): Update.
1826 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1827 (pretty_printer_list_var): Delete.
1828 (pretty_printer_list): New static global.
1829 (gdbscm_pretty_printers): New function.
1830 (gdbscm_set_pretty_printers_x): New function.
1831 (ppscm_find_pretty_printer_from_gdb): Update.
1832 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1833 (gdbscm_initialize_pretty_printers): Update.
1835 2014-07-26 Doug Evans <xdje42@gmail.com>
1838 * configure.ac: Add check for header gc/gc.h.
1839 Add check for function setenv.
1840 * configure: Regenerate.
1841 * config.in: Regenerate.
1842 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1844 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1846 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1847 variation in gdbarch matching.
1849 2014-07-25 Tom Tromey <tromey@redhat.com>
1851 * exec.c (using_exec_ops): Remove.
1852 (exec_close_1): Update. Remove extraneous block, reindent.
1853 (add_target_sections): Use target_is_pushed.
1855 2014-07-25 Pedro Alves <palves@redhat.com>
1857 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1858 * monitor.c (monitor_create_inferior): Likewise.
1859 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1860 * remote-sim.c (gdbsim_create_inferior): Likewise.
1861 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1862 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1863 * windows-nat.c (do_initial_windows_stuff): Likewise.
1865 2014-07-25 Pedro Alves <palves@redhat.com>
1867 * NEWS: Mention signal passing and "signal" command changes.
1868 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1870 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1872 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1873 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1874 (jump_command): Adjust clear_proceed_status call.
1875 (signal_command): Warn if other thread that are resumed have
1876 signals that will be delivered. Adjust clear_proceed_status call.
1877 (until_next_command, finish_command)
1878 (proceed_after_attach_callback, attach_command_post_wait)
1879 (attach_command): Adjust clear_proceed_status call.
1880 * infrun.c (proceed_after_vfork_done): Likewise.
1881 (proceed_after_attach_callback): Adjust comment.
1882 (clear_proceed_status_thread): Clear stop_signal if not in pass
1884 (clear_proceed_status_callback): Delete.
1885 (clear_proceed_status): New 'step' parameter. Only clear the
1886 proceed status of threads the command being prepared is about to
1888 (proceed): If passed in an explicit signal, override stop_signal
1889 with it. Don't pass the last stop signal to the thread we're
1891 (init_wait_for_inferior): Adjust clear_proceed_status call.
1892 (switch_back_to_stepped_thread): Clear the signal if it should not
1894 * infrun.h (clear_proceed_status): New 'step' parameter.
1895 (user_visible_resume_ptid): Add comment.
1896 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1897 signal is in pass state.
1898 * remote.c (append_pending_thread_resumptions): Likewise.
1899 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1901 2014-07-25 Tom Tromey <tromey@redhat.com>
1903 * target.h (target_stopped_data_address)
1904 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1907 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1909 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1911 (avr_pointer_to_address): Likewise.
1913 2014-07-24 Tom Tromey <tromey@redhat.com>
1915 * monitor.c (compile_pattern): Update.
1916 * target.h (struct target_ops) <to_shortname, to_longname,
1919 2014-07-24 Tom Tromey <tromey@redhat.com>
1921 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1922 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1923 (add_info_alias, add_com): Make "doc" const.
1924 (print_doc_line): Make "str" const.
1925 (delete_cmd): Update.
1926 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1927 (print_doc_line): Update.
1928 * cli/cli-script.c (document_command): Update.
1929 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1930 (add_com, add_info, add_info_alias): Update.
1931 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1932 * python/py-cmd.c (cmdpy_destroyer): Update.
1934 2014-07-24 Tom Tromey <tromey@redhat.com>
1936 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1937 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1938 (help_cmd_list): Constify.
1939 (lookup_cmd): Update.
1940 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1942 (help_cmd_list, apropos_cmd): Update.
1943 * cli/cli-script.c (show_user): Update.
1944 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1945 * cli/cli-setshow.h (cmd_show_list): Update.
1946 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1947 (cmd_show_list): Update.
1948 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1949 * python/py-cmd.c (cmdpy_destroyer): Update.
1951 2014-07-24 Tom Tromey <tromey@redhat.com>
1953 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1954 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1956 * command.h (deprecate_cmd): Update.
1957 * maint.c (maintenance_do_deprecate): Add casts.
1959 2014-07-24 Tom Tromey <tromey@redhat.com>
1961 * cli/cli-decode.c (help_cmd): Make parameter "const".
1962 * cli/cli-decode.h (help_cmd): Update.
1964 2014-07-24 Tom Tromey <tromey@redhat.com>
1966 * stack.c (up_silently_base, down_silently_base): Make argument
1969 2014-07-24 Tom Tromey <tromey@redhat.com>
1971 * solib.c (solib_add): Make "pattern" const.
1972 * solib.h (solib_add): Update.
1974 2014-07-24 Tom Tromey <tromey@redhat.com>
1976 * remote.c (remote_serial_open, print_packet, putpkt)
1977 (putpkt_binary): Constify.
1978 * remote.h (putpkt): Update.
1980 2014-07-24 Tom Tromey <tromey@redhat.com>
1982 * monitor.c (monitor_open): Make "args" const.
1983 * monitor.h (monitor_open): Update.
1985 2014-07-24 Tom Tromey <tromey@redhat.com>
1987 * maint.c (match_bfd_flags): Make "string" const.
1988 (print_bfd_section_info): Remove casts.
1989 (print_objfile_section_info): Make "string" const.
1991 2014-07-24 Tom Tromey <tromey@redhat.com>
1993 * inf-child.c (inf_child_open_target): Make "arg" const.
1994 * inf-child.h (inf_child_open_target): Update.
1996 2014-07-24 Tom Tromey <tromey@redhat.com>
1998 * environ.c (unset_in_environ): Make "var" const.
1999 * environ.h (unset_in_environ): Update.
2001 2014-07-24 Tom Tromey <tromey@redhat.com>
2003 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2005 (scan_filename_with_cleanup): Likewise.
2006 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2007 Make arguments const.
2008 (restore_command): Update.
2010 2014-07-24 Pedro Alves <palves@redhat.com>
2012 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2014 2014-07-24 Tom Tromey <tromey@redhat.com>
2015 Gary Benson <gbenson@redhat.com>
2017 * nat/linux-ptrace.c (additional_flags): New global.
2018 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2019 additional_flags; don't check GDBSERVER.
2020 (linux_ptrace_set_additional_flags): New function.
2021 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2023 * linux-nat.c (_initialize_linux_nat): Call
2024 linux_ptrace_set_additional_flags.
2026 2014-07-24 Tom Tromey <tromey@redhat.com>
2028 * make-target-delegates (munge_type, write_debugmethod): New
2030 (debug_names): New global.
2031 ($TARGET_DEBUG_PRINTER): New global.
2032 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2034 Write debug methods. Generate init_debug_target.
2035 * target-debug.h: New file.
2036 * target-delegates.c: Rebuild.
2037 * target.c: Include target-debug.h.
2038 (debug_target): Hoist definition.
2039 (target_kill, target_get_section_table, target_memory_map)
2040 (target_flash_erase, target_flash_done, target_detach)
2041 (target_disconnect, target_wait, target_resume)
2042 (target_pass_signals, target_program_signals, target_follow_fork)
2043 (target_mourn_inferior, target_search_memory)
2044 (target_thread_address_space, target_close)
2045 (target_find_new_threads, target_core_of_thread)
2046 (target_verify_memory, target_insert_mask_watchpoint)
2047 (target_remove_mask_watchpoint): Remove targetdebug code.
2048 (debug_to_post_attach, debug_to_prepare_to_store)
2049 (debug_to_files_info, debug_to_insert_breakpoint)
2050 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2051 (debug_to_region_ok_for_hw_watchpoint)
2052 (debug_to_can_accel_watchpoint_condition)
2053 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2054 (debug_to_watchpoint_addr_within_range)
2055 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2056 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2057 (debug_to_terminal_init, debug_to_terminal_inferior)
2058 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2059 (debug_to_terminal_save_ours, debug_to_terminal_info)
2060 (debug_to_load, debug_to_post_startup_inferior)
2061 (debug_to_insert_fork_catchpoint)
2062 (debug_to_remove_fork_catchpoint)
2063 (debug_to_insert_vfork_catchpoint)
2064 (debug_to_remove_vfork_catchpoint)
2065 (debug_to_insert_exec_catchpoint)
2066 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2067 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2068 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2069 (setup_target_debug): Call init_debug_target.
2070 * target.h (TARGET_DEBUG_PRINTER): New macro.
2071 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2072 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2074 2014-07-24 Gary Benson <gbenson@redhat.com>
2076 * exceptions.h (throw_vfatal): Renamed to...
2077 (throw_vquit): New declaration.
2078 (throw_quit): Likewise.
2079 * exceptions.c (throw_vfatal): Renamed to...
2080 (throw_vquit): New function.
2081 (throw_quit): Likewise.
2082 (throw_error): Call throw_verror rather than throw_it.
2083 * utils.h (vfatal): Removed.
2085 * utils.c (vfatal): Removed.
2087 (internal_verror): Replaced call to fatal with call to throw_quit.
2088 (quit): Replaced calls to fatal with calls to throw_quit.
2090 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2092 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2095 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2097 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2098 less than zero in conditional expression.
2100 2014-07-23 Tom Tromey <tromey@redhat.com>
2102 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2103 ($INTRO_PART): Don't match whitespace.
2104 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2106 ($METHOD): Add $METHOD_TRAILER.
2108 (scan_target_h): New sub.
2109 Change main loop not to collect state.
2110 * target-delegates.c: Rebuild.
2112 2014-07-23 Gary Benson <gbenson@redhat.com>
2114 * cp-support.c (gdb_demangle): Fix build on systems without
2117 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2119 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2120 for reference entry value target data value.
2122 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2124 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2125 value_available_contents_eq.
2127 2014-07-22 Pedro Alves <palves@redhat.com>
2129 * value.c (allocate_optimized_out_value): Don't mark value as
2132 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2134 * MAINTAINERS (Write After Approval): Update my email address.
2136 2014-07-20 Doug Evans <dje@google.com>
2139 * remote.c (putpkt_binary): Add text to error message.
2141 2014-07-20 Yao Qi <yao@codesourcery.com>
2143 * eval.c: Remove "Chill" from comments.
2144 * gdbtypes.h: Likewise.
2145 * symtab.h: Likewise.
2147 2014-07-20 Yao Qi <yao@codesourcery.com>
2149 * std-operator.def: Update comments to TERNOP_SLICE.
2151 2014-07-20 Yao Qi <yao@codesourcery.com>
2153 * std-operator.def: Remove BINOP_RANGE.
2154 * breakpoint.c (watchpoint_exp_is_const): Update.
2155 * expprint.c (dump_subexp_body_standard): Likewise.
2156 * eval.c (init_array_element): Remove dead code.
2157 (evaluate_subexp_standard): Likewise.
2159 2014-07-20 Yao Qi <yao@codesourcery.com>
2161 * std-operator.def: Remove BINOP_IN.
2162 * breakpoint.c (watchpoint_exp_is_const): Update.
2163 * eval.c (evaluate_subexp_standard): Likewise.
2164 * expprint.c (dump_subexp_body_standard): Likewise.
2166 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2168 * microblaze-tdep.c (microblaze_register_names): Add
2169 the rshr and rslr register names.
2170 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2171 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2172 Use of tdesc_numbered_register. Use of
2173 microblaze_register_g_packet_guesses. Use of
2174 tdesc_use_registers. Use of set_gdbarch_register_type.
2175 (microblaze_register_g_packet_guesses): New.
2176 * microblaze-tdep.h (microblaze_reg_num): Add
2177 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2178 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2179 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2180 * features/microblaze-core.xml: New file.
2181 * features/microblaze-stack-protect.xml: New file.
2182 * features/microblaze-with-stack-protect.c: New file.
2183 * features/microblaze-with-stack-protect.xml: New file.
2184 * features/microblaze.xml: New file.
2185 * features/microblaze.c: New file.
2186 * features/Makefile (microblaze-with-stack-protect): Add
2187 microblaze-with-stack-protect microblaze and microblaze-expedite.
2188 * regformats/microblaze-with-stack-protect.dat: New file.
2189 * regformats/microblaze.dat: New file.
2190 * doc/gdb.texinfo (MicroBlaze Features): Added.
2192 2014-07-18 Tom Tromey <tromey@redhat.com>
2194 * exec.c (exec_ops): Now static.
2195 * exec.h (exec_ops): Don't declare.
2197 2014-07-18 Tom Tromey <tromey@redhat.com>
2199 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2200 to find_target_beneath.
2201 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2202 find_target_beneath.
2203 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2205 2014-07-18 Tom Tromey <tromey@redhat.com>
2208 * utils.c (quit): Use target_supports_terminal_ours.
2209 * target.h (target_supports_terminal_ours): Declare.
2210 * target.c (target_supports_delete_record): Don't check
2211 to_delete_record against NULL.
2212 (target_supports_terminal_ours): New function.
2214 2014-07-18 Tom Tromey <tromey@redhat.com>
2217 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2218 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2219 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2220 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2221 * windows-nat.c (windows_xfer_partial): Always delegate.
2222 * record-btrace.c (record_btrace_xfer_partial): Simplify
2224 (record_btrace_fetch_registers, record_btrace_store_registers)
2225 (record_btrace_prepare_to_store, record_btrace_resume)
2226 (record_btrace_wait, record_btrace_find_new_threads)
2227 (record_btrace_thread_alive): Likewise.
2228 * procfs.c (procfs_xfer_partial): Always delegate.
2229 * corelow.c (core_xfer_partial): Always delegate.
2230 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2232 2014-07-18 Tom Tromey <tromey@redhat.com>
2234 * exec.c (exec_make_note_section): Move earlier.
2236 2014-07-17 Doug Evans <dje@google.com>
2239 * maint.c (count_symtabs_and_blocks): Handle NULL
2240 current_program_space.
2241 (report_command_stats): Check global enabled flag in addition to
2242 recorded enabled flag.
2243 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2245 2014-07-16 Pedro Alves <palves@redhat.com>
2247 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2249 2014-07-16 Tom Tromey <tromey@redhat.com>
2251 * target.h (struct target_ops) <to_delete_record>: Reformat
2254 2014-07-16 Tom Tromey <tromey@redhat.com>
2256 * target-delegates.c: Rebuild.
2258 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2260 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2261 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2262 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2263 (avr_pointer_to_address): Likewise.
2264 (avr_address_class_type_flags): New function.
2265 (avr_address_class_type_flags_to_name): Likewise.
2266 (avr_address_class_name_to_type_flags): Likewise.
2267 (avr_gdbarch_init): Set address_class_type_flags,
2268 address_class_type_flags_to_name and
2269 address_class_name_to_type_flags.
2271 2014-07-15 Pedro Alves <palves@redhat.com>
2273 * linux-nat.c (kill_callback): Save errno and work with saved
2276 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2278 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2280 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2282 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2283 breakpoint support correctly.
2285 2014-07-14 Pedro Alves <palves@redhat.com>
2287 * utils.c (prompt_for_continue): Call target_terminal_ours.
2289 2014-07-14 Pedro Alves <palves@redhat.com>
2291 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2292 catch_errors. Don't re-enable stdin or notify observers where,
2294 (fetch_inferior_event_wrapper): Delete.
2296 2014-07-14 Pedro Alves <palves@redhat.com>
2299 * top.c: Include "inf-loop.h".
2300 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2302 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2304 (gdb_readline_wrapper): Store whether the target is async, and
2307 2014-07-14 Pedro Alves <palves@redhat.com>
2310 * top.c (gdb_readline_wrapper_line): Tweak comment.
2311 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2312 the input handler callback.
2314 2014-07-14 Pedro Alves <palves@redhat.com>
2317 * main.c: Include event-top.h.
2318 (handle_command_errors): New function.
2319 (catch_command_errors, catch_command_errors_const): Use it.
2321 2014-07-14 Pedro Alves <palves@redhat.com>
2323 * exceptions.c (catch_command_errors, catch_command_errors_const):
2325 * exceptions.h (catch_command_errors_ftype)
2326 (catch_command_errors_const_ftype): Moved to main.c.
2327 (catch_command_errors, catch_command_errors_const): Delete
2329 * main.c (catch_command_errors_ftype)
2330 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2331 (catch_command_errors, catch_command_errors_const)): Moved here
2332 from exceptions.c and make static.
2334 2014-07-14 Pedro Alves <palves@redhat.com>
2336 * exceptions.c (print_any_exception): Delete.
2337 (catch_exceptions_with_msg): Use exception_print instead of
2338 print_any_exception.
2339 (catch_errors): Use exception_fprintf instead of
2340 print_any_exception.
2341 (catch_command_errors, catch_command_errors_const): Use
2342 exception_print instead of print_any_exception.
2344 2014-07-14 Pedro Alves <palves@redhat.com>
2346 * infcall.c (run_inferior_call): Set 'sync_execution' while
2347 running the inferior call.
2349 2014-07-14 Pedro Alves <palves@redhat.com>
2351 * value.c (value_contents_equal): Delete function.
2352 * value.h (value_contents_equal): Delete declaration.
2354 2014-07-14 Tom Tromey <tromey@redhat.com>
2357 * gdbtypes.c (is_dynamic_type_internal): New function, from
2359 (is_dynamic_type): Rewrite.
2360 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2361 (resolve_dynamic_struct): Likewise.
2362 (resolve_dynamic_type_internal): New function, from
2363 resolve_dynamic_type.
2364 (resolve_dynamic_type): Rewrite.
2366 2014-07-14 Tom Tromey <tromey@redhat.com>
2368 * target.c (target_require_runnable): Also check record_stratum.
2371 2014-07-11 Yao Qi <yao@codesourcery.com>
2373 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2374 thumb_instruction_restores_sp return true.
2376 2014-07-11 Yao Qi <yao@codesourcery.com>
2378 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2379 (thumb_in_function_epilogue_p): Call
2380 thumb_instruction_restores_sp.
2382 2014-07-11 Yao Qi <yao@codesourcery.com>
2384 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2386 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2388 2014-07-11 Gary Benson <gbenson@redhat.com>
2390 * amd64-linux-nat.c (gdbcore.h): Remove include.
2391 (regset.h): Likewise.
2392 (nat/linux-btrace.h): Likewise.
2393 (btrace.h): Likewise.
2394 (gdb_assert.h): Likewise.
2395 (string.h): Likewise.
2396 (sys/uio.h): Likewise.
2397 (sys/debugreg.h): Likewise.
2398 (sys/syscall.h): Likewise.
2399 (sys/procfs.h): Likewise.
2400 (sys/user.h): Likewise.
2401 (asm/ptrace.h): Likewise.
2402 (i386-nat.h): Likewise.
2403 * i386-linux-nat.c (i386-nat.h): Likewise.
2404 (regset.h): Likewise.
2405 (target.h): Likewise.
2406 (linux-nat.h): Likewise.
2407 (nat/linux-btrace.h): Likewise.
2408 (btrace.h): Likewise.
2409 (gdb_assert.h): Likewise.
2410 (string.h): Likewise.
2411 (sys/uio.h): Likewise.
2412 (sys/user.h): Likewise.
2413 (sys/procfs.h): Likewise.
2414 (sys/reg.h): Likewise.
2415 (sys/debugreg.h): Likewise.
2416 (ORIG_EAX): Remove definition.
2418 2014-07-11 Gary Benson <gbenson@redhat.com>
2420 * i386-linux-nat.h: New file.
2421 * x86-linux-nat.h: Likewise.
2422 * x86-linux-nat.c: Likewise.
2423 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2424 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2425 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2426 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2427 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2428 (PTRACE_SETREGSET): Likewise.
2429 (arch_lwp_info): Now in x86-linux-nat.c.
2430 (have_ptrace_getregset): Now in x86-linux-nat.h.
2431 (x86_linux_dr_get): Now in x86-linux-nat.c.
2432 (x86_linux_dr_set): Likewise.
2433 (x86_linux_dr_get_addr): Likewise.
2434 (x86_linux_dr_get_control): Likewise.
2435 (x86_linux_dr_get_status): Likewise.
2436 (update_debug_registers_callback): Likewise.
2437 (x86_linux_dr_set_control): Likewise.
2438 (x86_linux_dr_set_addr): Likewise.
2439 (x86_linux_prepare_to_resume): Likewise.
2440 (x86_linux_new_thread): Likewise.
2441 (x86_linux_new_fork): Likewise.
2442 (x86_linux_get_thread_area): Likewise.
2443 (super_post_startup_inferior): Likewise.
2444 (x86_linux_child_post_startup_inferior): Likewise.
2445 (AMD64_LINUX_USER64_CS): Likewise.
2446 (AMD64_LINUX_X32_DS): Likewise.
2447 (x86_linux_read_description): Likewise.
2448 (x86_linux_enable_btrace): Likewise.
2449 (x86_linux_disable_btrace): Likewise.
2450 (x86_linux_teardown_btrace): Likewise.
2451 (x86_linux_read_btrace): Likewise.
2452 (x86_linux_create_target): Likewise.
2453 (x86_linux_add_target): Likewise.
2454 * i386-linux-nat.c (x86-linux-nat.h): New include.
2455 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2456 (PTRACE_SETREGSET): Likewise.
2457 (arch_lwp_info): Now in x86-linux-nat.c.
2458 (have_ptrace_getregset): Now in x86-linux-nat.h.
2459 (x86_linux_dr_get): Now in x86-linux-nat.c.
2460 (x86_linux_dr_set): Likewise.
2461 (x86_linux_dr_get_addr): Likewise.
2462 (x86_linux_dr_get_control): Likewise.
2463 (x86_linux_dr_get_status): Likewise.
2464 (update_debug_registers_callback): Likewise.
2465 (x86_linux_dr_set_control): Likewise.
2466 (x86_linux_dr_set_addr): Likewise.
2467 (x86_linux_prepare_to_resume): Likewise.
2468 (x86_linux_new_thread): Likewise.
2469 (x86_linux_new_fork): Likewise.
2470 (x86_linux_get_thread_area): Likewise.
2471 (super_post_startup_inferior): Likewise.
2472 (x86_linux_child_post_startup_inferior): Likewise.
2473 (AMD64_LINUX_USER64_CS): Likewise.
2474 (AMD64_LINUX_X32_DS): Likewise.
2475 (x86_linux_read_description): Likewise.
2476 (x86_linux_enable_btrace): Likewise.
2477 (x86_linux_disable_btrace): Likewise.
2478 (x86_linux_teardown_btrace): Likewise.
2479 (x86_linux_read_btrace): Likewise.
2480 (x86_linux_create_target): Likewise.
2481 (x86_linux_add_target): Likewise.
2483 2014-07-11 Gary Benson <gbenson@redhat.com>
2485 * amd64-linux-nat.c: Comment and whitespace changes.
2486 * i386-linux-nat.c: Comment and whitespace changes.
2488 2014-07-11 Gary Benson <gbenson@redhat.com>
2490 * amd64-linux-nat.c (x86_linux_create_target): New function.
2491 (x86_linux_add_target): Likewise.
2492 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2493 * i386-linux-nat.c (x86_linux_create_target): New function.
2494 (x86_linux_add_target): Likewise.
2495 (_initialize_i386_linux_nat): Delegate to the above new functions.
2497 2014-07-11 Gary Benson <gbenson@redhat.com>
2499 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2500 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2501 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2502 (ps_get_thread_area): Delegate to the above.
2504 2014-07-11 Gary Benson <gbenson@redhat.com>
2506 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2507 x86_linux_read_description. All uses updated. amd64-specific
2508 code conditionalized. Conditionalized i386-specific code added.
2509 Redundant cast removed.
2510 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2511 x86_linux_read_description. All uses updated. i386-specific
2512 code conditionalized. Conditionalized amd64-specific code added.
2513 One sizeof replaced with the actual type it is describing.
2515 2014-07-11 Gary Benson <gbenson@redhat.com>
2517 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2518 x86_linux_dr_get. All uses updated.
2519 (amd64_linux_dr_set): Renamed to
2520 x86_linux_dr_set. All uses updated.
2521 (amd64_linux_dr_get_addr): Renamed to
2522 x86_linux_dr_get_addr. All uses updated.
2523 (amd64_linux_dr_get_control): Renamed to
2524 x86_linux_dr_get_control. All uses updated.
2525 (amd64_linux_dr_get_status): Renamed to
2526 x86_linux_dr_get_status. All uses updated.
2527 (amd64_linux_dr_set_control): Renamed to
2528 x86_linux_dr_set_control. All uses updated.
2529 (amd64_linux_dr_set_addr): Renamed to
2530 x86_linux_dr_set_addr. All uses updated.
2531 (amd64_linux_prepare_to_resume): Renamed to
2532 x86_linux_prepare_to_resume. All uses updated.
2533 (amd64_linux_new_thread): Renamed to
2534 x86_linux_new_thread. All uses updated.
2535 (amd64_linux_new_fork): Renamed to
2536 x86_linux_new_fork. All uses updated.
2537 (amd64_linux_child_post_startup_inferior): Renamed to
2538 x86_linux_child_post_startup_inferior. All uses updated.
2539 (amd64_linux_enable_btrace): Renamed to
2540 x86_linux_enable_btrace. All uses updated.
2541 (amd64_linux_disable_btrace): Renamed to
2542 x86_linux_disable_btrace. All uses updated.
2543 (amd64_linux_teardown_btrace): Renamed to
2544 x86_linux_teardown_btrace. All uses updated.
2545 (amd64_linux_read_btrace): Renamed to
2546 x86_linux_read_btrace. All uses updated.
2547 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2548 x86_linux_dr_get. All uses updated.
2549 (i386_linux_dr_set): Renamed to
2550 x86_linux_dr_set. All uses updated.
2551 (i386_linux_dr_get_addr): Renamed to
2552 x86_linux_dr_get_addr. All uses updated.
2553 (i386_linux_dr_get_control): Renamed to
2554 x86_linux_dr_get_control. All uses updated.
2555 (i386_linux_dr_get_status): Renamed to
2556 x86_linux_dr_get_status. All uses updated.
2557 (i386_linux_dr_set_control): Renamed to
2558 x86_linux_dr_set_control. All uses updated.
2559 (i386_linux_dr_set_addr): Renamed to
2560 x86_linux_dr_set_addr. All uses updated.
2561 (i386_linux_prepare_to_resume): Renamed to
2562 x86_linux_prepare_to_resume. All uses updated.
2563 (i386_linux_new_thread): Renamed to
2564 x86_linux_new_thread. All uses updated.
2565 (i386_linux_new_fork): Renamed to
2566 x86_linux_new_fork. All uses updated.
2567 (i386_linux_child_post_startup_inferior): Renamed to
2568 x86_linux_child_post_startup_inferior. All uses updated.
2569 (i386_linux_enable_btrace): Renamed to
2570 x86_linux_enable_btrace. All uses updated.
2571 (i386_linux_disable_btrace): Renamed to
2572 x86_linux_disable_btrace. All uses updated.
2573 (i386_linux_teardown_btrace): Renamed to
2574 x86_linux_teardown_btrace. All uses updated.
2575 (i386_linux_read_btrace): Renamed to
2576 x86_linux_read_btrace. All uses updated.
2578 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2580 * remote.c (extended_remote_post_attach): New function.
2581 (init_extended_remote_ops): Install it as to_post_attach method.
2583 2014-07-09 Pedro Alves <palves@redhat.com>
2585 * infcmd.c (attach_command_post_wait): Don't call
2586 target_terminal_inferior here.
2587 (attach_command): Call it here instead.
2589 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2591 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2593 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2594 from varobj.c, with additional checks.
2595 (c_varobj_ops): Fill in is_path_expr_parent field.
2596 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2597 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2599 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2601 (varobj_default_is_path_expr_parent): New function.
2602 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2603 (varobj_default_is_path_expr_parent): Declare new function.
2605 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2607 * infcmd.c (finish_backward): Turn internal error into normal error.
2609 2014-07-07 Pedro Alves <palves@redhat.com>
2612 * remote.c (async_handle_remote_sigint)
2613 (async_handle_remote_sigint_twice): Call
2614 gdb_call_async_signal_handler instead of
2615 mark_async_signal_handler.
2617 2014-07-07 Tom Tromey <tromey@redhat.com>
2619 * target-delegates.c: Rebuild.
2620 * target.c (target_info_record): Remove.
2621 * record.c (info_record_command): Unconditionally call
2623 * target.h (struct target_ops) <to_info_record>: Use
2624 TARGET_DEFAULT_IGNORE.
2625 (target_info_record): Remove.
2627 2014-07-07 Tom Tromey <tromey@redhat.com>
2629 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2630 TARGET_DEFAULT_NORETURN.
2631 * target.c (generic_tls_error): New function.
2632 (target_translate_tls_address): Don't search target stack.
2633 * target-delegates.c: Rebuild.
2634 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2636 * linux-thread-db.c (thread_db_get_thread_local_address):
2637 Unconditionally call beneath target.
2639 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2641 * cli/cli-logging.c (pop_output_files): Assign targerr to
2644 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2646 * MAINTAINERS (Write After Approval): Update my email address.
2648 2014-07-02 Gary Benson <gbenson@redhat.com>
2650 * proc-service.c (ps_xfer_memory): Update comment.
2651 (ps_pstop): Remove unused function.
2652 (ps_pcontinue): Likewise.
2653 (ps_lstop): Likewise.
2654 (ps_lcontinue): Likewise.
2655 (ps_lgetxregsize): Likewise.
2656 (ps_lgetxregs): Likewise.
2657 (ps_lsetxregs): Likewise.
2658 (ps_plog): Likewise.
2659 (ps_ptread): Likewise.
2660 (ps_ptwrite): Likewise.
2662 2014-07-01 Mark Wielaard <mjw@redhat.com>
2664 * dwarf2read.c (add_array_cv_type): New function.
2665 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2666 (read_tag_volatile_type): Likewise.
2668 2014-07-01 Tom Tromey <tromey@redhat.com>
2670 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2671 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2672 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2673 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2674 * command.h (cmd_cfunc_ftype): Move earlier.
2675 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2676 (add_com, add_info): Use cmd_cfunc_ftype.
2678 2014-06-30 Tom Tromey <tromey@redhat.com>
2680 * symtab.c (operator_chars): Make parameters and return type
2682 (file_matches): Make "files" const.
2683 (struct search_symbols_data) <files>: Now const.
2684 (search_symbols): Make "regexp" and "files" parameters const.
2686 (symtab_symbol_info): Remove cast.
2687 (rbreak_command): Update.
2688 * symtab.h (search_symbols): Update.
2690 2014-06-27 Yao Qi <yao@codesourcery.com>
2692 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2693 Change parameter type to 'struct thread_info *'. Caller
2695 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2697 * dummy-frame.c (struct dummy_frame_id): New.
2698 (dummy_frame_id_eq): New function.
2699 (struct dummy_frame) <id>: Change its type to 'struct
2701 (dummy_frame_push): Add parameter ptid and save it in
2703 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2705 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2707 (lookup_dummy_frame): Change parameter type to 'struct
2708 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2709 instead of frame_id_eq.
2710 (dummy_frame_pop): Add parameter ptid. Callers updated.
2711 Update comments. Compose dummy_frame_id and pass it to
2713 (dummy_frame_discard): Add parameter ptid.
2714 (dummy_frame_sniffer): Compose dummy_frame_id and call
2715 dummy_frame_id_eq instead of frame_id_eq.
2716 (fprint_dummy_frames): Print ptid.
2717 * dummy-frame.h: Remove comments.
2718 (dummy_frame_push): Add ptid in declaration.
2719 (dummy_frame_pop, dummy_frame_discard): Likewise.
2721 2014-06-26 Tom Tromey <tromey@redhat.com>
2723 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2724 * command.h (error_no_arg): Update.
2726 2014-06-26 Tom Tromey <tromey@redhat.com>
2728 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2729 (do_show_command): Make "arg" const.
2730 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2732 2014-06-26 Tom Tromey <tromey@redhat.com>
2734 * record-full.c (record_full_get_bookmark): Make "args" const.
2735 (record_full_goto_bookmark): Make "raw_bookmark" const.
2736 * record.c (record_goto): New function.
2737 (cmd_record_goto): Use it. Now static.
2738 * record.h (record_goto): Declare.
2739 (cmd_record_goto): Remove declaration.
2740 * target-delegates.c: Rebuild.
2741 * target.h (struct target_ops) <to_get_bookmark,
2742 to_goto_bookmark>: Make parameter const.
2744 2014-06-26 Tom Tromey <tromey@redhat.com>
2746 * defs.h (generic_load): Update.
2747 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2748 * monitor.c (monitor_load): Make "args" const.
2749 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2750 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2752 (mips_load): Make "file" const.
2753 * remote-sim.c (gdbsim_load): Make "args" const.
2754 * remote.c (remote_load): Make "name" const.
2755 * symfile.c (generic_load): Make "args" const.
2756 * target-delegates.c: Rebuild.
2757 * target.c (target_load): Make "arg" const.
2758 (debug_to_load): Make "args" const.
2759 * target.h (struct target_ops) <to_load>: Make parameter const.
2760 (target_load): Update.
2762 2014-06-26 Tom Tromey <tromey@redhat.com>
2765 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2766 (dwarf2_physname, read_partial_die)
2767 (guess_partial_die_structure_name, fixup_partial_die)
2768 (guess_full_die_structure_name, anonymous_struct_prefix)
2769 (dwarf2_name): Use per-BFD obstack.
2771 2014-06-26 Yao Qi <yao@codesourcery.com>
2773 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2774 dummyframe and this_id into inner block below.
2776 2014-06-26 Yao Qi <yao@codesourcery.com>
2778 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2779 with "signal_pass[0]" in the initialization of signal_pass.
2781 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2783 * record-btrace.c (record_btrace_generating_corefile)
2784 (record_btrace_prepare_to_generate_core)
2785 (record_btrace_done_generating_core): New.
2786 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2787 (record_btrace_store_registers, record_btrace_prepare_to_store):
2788 Forward request when generating a core file.
2789 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2790 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2791 to_done_generating_core.
2793 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2795 * target.h (target_ops) <to_prepare_to_generate_core>
2796 <to_done_generating_core>: New.
2797 (target_prepare_to_generate_core, target_done_generating_core): New.
2798 * target.c (target_prepare_to_generate_core)
2799 (target_done_generating_core): New.
2800 * target-delegates.c: Regenerate.
2801 * gcore.c: (write_gcore_file): Rename to ...
2802 (write_gcore_file_1): ...this.
2803 (write_gcore_file): Call target_prepare_to_generate_core
2804 and target_done_generating_core.
2806 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2808 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2809 * gcore.c (write_gcore_file): Free memory returned from
2810 make_corefile_notes.
2811 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2812 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2814 2014-06-24 Yao Qi <yao@codesourcery.com>
2816 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2817 (arm_linux_init_abi): Set skip_trampoline_code with
2818 gdbarch_skip_trampoline_code instead of
2819 find_solib_trampoline_target.
2821 2014-06-24 Yao Qi <yao@codesourcery.com>
2823 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2824 arm_skip_bx_reg returns non-zero.
2826 2014-06-24 Yao Qi <yao@codesourcery.com>
2828 * arm-tdep.c (arm_skip_bx_reg): New function.
2829 (arm_skip_stub): Call arm_skip_bx_reg.
2831 2014-06-23 Don Breazeal <donb@codesourcery.com>
2833 * MAINTAINERS: Add myself as write-after-approval maintainer.
2835 2014-06-23 Pedro Alves <palves@redhat.com>
2837 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2838 DR_CONTROL before setting DR0..DR3.
2839 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2840 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2841 bits of DR_CONTROL related to the debug register slot being
2842 disabled. If all slots are vacant, clear local slowdown as well,
2843 and assert DR_CONTROL is 0.
2845 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2847 * python/lib/gdb/command/xmethods.py
2848 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2849 current progspace only if the string "progspace" matches LOCUS_RE.
2851 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2853 Fix --with-system-readline with readline-6.3 patch 5.
2854 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2855 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2858 2014-06-20 Tom Tromey <tromey@redhat.com>
2860 * dwarf2read.c (dw2_get_real_path): Use correct type in
2862 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2864 2014-06-20 Gary Benson <gbenson@redhat.com>
2866 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2867 * common/glibc_thread_db.h: Likewise.
2868 * common/i386-cpuid.h: Likewise.
2869 * common/i386-gcc-cpuid.h: Likewise.
2870 * common/linux-btrace.h: Likewise.
2871 * common/linux-osdata.h: Likewise.
2872 * common/linux-procfs.h: Likewise.
2873 * common/linux-ptrace.h: Likewise.
2874 * common/mips-linux-watch.h: Likewise.
2875 * common/linux-btrace.c: Moved to nat.
2876 * common/linux-osdata.c: Likewise.
2877 * common/linux-procfs.c: Likewise.
2878 * common/linux-ptrace.c: Likewise.
2879 * common/mips-linux-watch.c: Likewise.
2880 * nat/gdb_thread_db.h: Moved from common.
2881 * nat/glibc_thread_db.h: Likewise.
2882 * nat/i386-cpuid.h: Likewise.
2883 * nat/i386-gcc-cpuid.h: Likewise.
2884 * nat/linux-btrace.c: Likewise.
2885 * nat/linux-btrace.h: Likewise.
2886 * nat/linux-osdata.c: Likewise.
2887 * nat/linux-osdata.h: Likewise.
2888 * nat/linux-procfs.c: Likewise.
2889 * nat/linux-procfs.h: Likewise.
2890 * nat/linux-ptrace.c: Likewise.
2891 * nat/linux-ptrace.h: Likewise.
2892 * nat/mips-linux-watch.c: Likewise.
2893 * nat/mips-linux-watch.h: Likewise.
2894 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2895 (object file files): Reordered.
2896 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2897 of glibc_thread_db.h.
2899 2014-06-20 Gary Benson <gbenson@redhat.com>
2901 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2902 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2903 (i386_dr_low): Likewise.
2904 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2905 (i386_dr_low_set_addr): Likewise.
2906 (i386_dr_low_get_addr): Likewise.
2907 (i386_dr_low_can_set_control): Likewise.
2908 (i386_dr_low_set_control): Likewise.
2909 (i386_dr_low_get_control): Likewise.
2910 (i386_dr_low_get_status): Likewise.
2911 (i386_get_debug_register_length): Likewise.
2912 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2913 (i386_dr_low): Likewise.
2914 * nat/i386-dregs.c (i386-low.h): Remove include.
2915 (i386-nat.h): Likewise.
2916 (nat/i386-dregs.h): New include.
2917 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2918 (i386_dr_low_set_addr): Likewise.
2919 (i386_dr_low_get_addr): Likewise.
2920 (i386_dr_low_can_set_control): Likewise.
2921 (i386_dr_low_set_control): Likewise.
2922 (i386_dr_low_get_control): Likewise.
2923 (i386_dr_low_get_status): Likewise.
2924 (i386_get_debug_register_length): Likewise.
2925 (debug_hw_points): Likewise.
2927 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2929 * Makefile.in (SFILES): Add d-exp.y.
2930 (YYFILES): Add d-exp.c.
2931 (YYOBJ): Add d-exp.o.
2932 (local-maintainer-clean): Delete d-exp.c.
2933 * d-exp.y: New file.
2934 * d-lang.h (d_parse): New declaration.
2935 (d_error): New declaration.
2936 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2937 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2938 PREC_ORDER operators.
2939 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2941 2014-06-19 Yao Qi <yao@codesourcery.com>
2943 * gdbthread.h (any_running): Remove the declaration.
2944 * thread.c (any_running): Remove.
2946 2014-06-19 Yao Qi <yao@codesourcery.com>
2948 * gdbthread.h (struct thread_info) <state>: Change its type to
2949 'enum thread_state'. Update comments.
2951 2014-06-19 Pedro Alves <palves@redhat.com>
2953 * gdbthread.h (ALL_THREADS): Delete.
2954 (ALL_NON_EXITED_THREADS): New macro.
2955 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2956 instead of ALL_THREADS.
2957 * infrun.c (find_thread_needs_step_over)
2958 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2959 instead of ALL_THREADS.
2960 * record-btrace.c (record_btrace_open)
2961 (record_btrace_stop_recording, record_btrace_close)
2962 (record_btrace_is_replaying, record_btrace_resume)
2963 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2964 * remote.c (append_pending_thread_resumptions): Likewise.
2965 * thread.c (thread_apply_all_command): Likewise.
2967 2014-06-19 Gary Benson <gbenson@redhat.com>
2969 * i386-nat.c (i386_stopped_by_watchpoint):
2970 Use i386_dr_stopped_by_watchpoint.
2971 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2972 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2974 2014-06-19 Gary Benson <gbenson@redhat.com>
2976 * nat/i386-dregs.c: New file.
2977 * Makefile.in (i386-dregs.o): New rule.
2978 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2979 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2980 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2981 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2982 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2983 * config/i386/go32.mh (NATDEPFILES): Likewise.
2984 * config/i386/linux.mh (NATDEPFILES): Likewise.
2985 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2986 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2987 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2988 * i386-nat.h (debug_hw_points): New declaration.
2989 * i386-nat.c (breakpoint.h): Remove include.
2990 (command.h): Likewise.
2991 (target.h): Likewise.
2992 (gdb_assert.h): Likewise.
2993 (debug_hw_points): Made nonstatic.
2994 (debug_printf): Now in i386-dregs.c.
2995 (TARGET_HAS_DR_LEN_8): Likewise.
2996 (DR_CONTROL_SHIFT): Likewise.
2997 (DR_CONTROL_SIZE): Likewise.
2998 (DR_RW_EXECUTE): Likewise.
2999 (DR_RW_WRITE): Likewise.
3000 (DR_RW_READ): Likewise.
3001 (DR_RW_IORW): Likewise.
3002 (DR_LEN_1): Likewise.
3003 (DR_LEN_2): Likewise.
3004 (DR_LEN_4): Likewise.
3005 (DR_LEN_8): Likewise.
3006 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3007 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3008 (DR_ENABLE_SIZE): Likewise.
3009 (DR_LOCAL_SLOWDOWN): Likewise.
3010 (DR_GLOBAL_SLOWDOWN): Likewise.
3011 (DR_CONTROL_RESERVED): Likewise.
3012 (I386_DR_CONTROL_MASK): Likewise.
3013 (I386_DR_VACANT): Likewise.
3014 (I386_DR_LOCAL_ENABLE): Likewise.
3015 (I386_DR_GLOBAL_ENABLE): Likewise.
3016 (I386_DR_DISABLE): Likewise.
3017 (I386_DR_SET_RW_LEN): Likewise.
3018 (I386_DR_GET_RW_LEN): Likewise.
3019 (I386_DR_WATCH_HIT): Likewise.
3020 (i386_wp_op_t): Likewise.
3021 (i386_show_dr): Likewise.
3022 (i386_length_and_rw_bits): Likewise.
3023 (i386_insert_aligned_watchpoint): Likewise.
3024 (i386_remove_aligned_watchpoint): Likewise.
3025 (i386_handle_nonaligned_watchpoint): Likewise.
3026 (i386_update_inferior_debug_regs): Likewise.
3027 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3028 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3029 (i386_region_ok_for_watchpoint):
3030 Use i386_dr_region_ok_for_watchpoint.
3031 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3033 2014-06-19 Gary Benson <gbenson@redhat.com>
3035 * i386-nat.c (i386_insert_hw_breakpoint): Use
3036 i386_insert_watchpoint.
3037 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3039 2014-06-19 Gary Benson <gbenson@redhat.com>
3041 * i386-nat.c (i386_dr_show): Renamed to
3042 i386_show_dr and made static. All uses updated.
3043 (i386_dr_length_and_rw_bits): Renamed to
3044 i386_length_and_rw_bits and made static.
3046 (i386_dr_insert_aligned_watchpoint): Renamed to
3047 i386_insert_aligned_watchpoint and made static.
3049 (i386_dr_remove_aligned_watchpoint): Renamed to
3050 i386_remove_aligned_watchpoint and made static.
3052 (i386_dr_update_inferior_debug_regs): Renamed to
3053 i386_update_inferior_debug_regs and made static.
3055 * nat/i386-dregs.h (i386_dr_show): Removed.
3056 (i386_dr_length_and_rw_bits): Likewise.
3057 (i386_dr_insert_aligned_watchpoint): Likewise.
3058 (i386_dr_remove_aligned_watchpoint): Likewise.
3059 (i386_dr_update_inferior_debug_regs): Likewise.
3061 2014-06-19 Gary Benson <gbenson@redhat.com>
3063 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3064 * configure: Regenerate.
3065 * config.in: Likewise.
3066 * main.c (signal.h): New include.
3067 (setup_alternate_signal_stack): New function.
3068 (captured_main): Call the above.
3069 * cp-support.c (signal.h): New include.
3070 (catch_demangler_crashes): New flag.
3071 (SIGJMP_BUF): New define.
3072 (SIGSETJMP): Likewise.
3073 (SIGLONGJMP): Likewise.
3074 (gdb_demangle_jmp_buf): New static global.
3075 (gdb_demangle_attempt_core_dump): Likewise.
3076 (gdb_demangle_signal_handler): New function.
3077 (gdb_demangle): If catch_demangler_crashes is set, install the
3078 above signal handler before calling bfd_demangle, and restore
3079 the original signal handler afterwards. Display the offending
3080 symbol and call demangler_warning the first time a segmentation
3082 (_initialize_cp_support): New maint set/show command.
3084 2014-06-19 Gary Benson <gbenson@redhat.com>
3086 * utils.h (resource_limit_kind): New enum.
3087 (can_dump_core): New declaration.
3088 (warn_cant_dump_core): Likewise.
3089 (dump_core): Likewise.
3090 * utils.c (dump_core): Made nonstatic. Added new
3091 parameter "limit_kind".
3092 (can_dump_core): Made nonstatic. Moved printing code to...
3093 (warn_cant_dump_core): New function.
3094 (can_dump_core_warn): Likewise.
3095 (internal_vproblem): Replace calls to can_dump_core with
3096 calls to can_dump_core_warn. Supply new argument to each.
3098 2014-06-19 Gary Benson <gbenson@redhat.com>
3100 * utils.h (demangler_vwarning): New declaration.
3101 (demangler_warning): Likewise.
3102 * utils.c (struct internal_problem)
3103 <user_settable_should_quit>: New field.
3104 <user_settable_should_dump_core>: Likewise
3105 (internal_error_problem): Add values for above new fields.
3106 (internal_warning_problem): Likewise.
3107 (demangler_warning_problem): New static global.
3108 (demangler_vwarning): New function.
3109 (demangler_warning): Likewise.
3110 (add_internal_problem_command): Selectively add commands.
3111 (_initialize_utils): New internal problem command.
3112 * maint.c (maintenance_demangler_warning): New function.
3113 (_initialize_maint_cmds): New command.
3115 2014-06-18 Tom Tromey <tromey@redhat.com>
3117 * f-valprint.c (info_common_command_for_block): Update.
3118 * symtab.h (struct general_symbol_info) <common_block>: Now
3121 2014-06-18 Tom Tromey <tromey@redhat.com>
3123 * symtab.h (struct symtab) <blockvector>: Now const.
3124 * ada-lang.c (ada_add_global_exceptions): Update.
3125 * buildsym.c (augment_type_symtab): Update.
3126 * dwarf2read.c (dw2_lookup_symbol): Update.
3127 * jit.c (finalize_symtab): Update.
3128 * jv-lang.c (add_class_symtab_symbol): Update.
3129 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3131 * objfiles.c (objfile_relocate1): Update.
3132 * psymtab.c (lookup_symbol_aux_psymtabs)
3133 (maintenance_check_psymtabs): Update.
3134 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3136 * spu-tdep.c (spu_catch_start): Update.
3137 * symmisc.c (dump_symtab_1): Update.
3138 * symtab.c (lookup_global_symbol_from_objfile)
3139 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3140 (basic_lookup_transparent_type_quick)
3141 (basic_lookup_transparent_type, find_pc_sect_symtab)
3142 (find_pc_sect_line, search_symbols): Update.
3143 * block.c (find_block_in_blockvector): Make "bl" const.
3144 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3146 (blockvector_contains_pc): Make "bv" const.
3147 (block_for_pc_sect): Update.
3148 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3149 (blockvector_contains_pc): Update.
3150 * breakpoint.c (resolve_sal_pc): Update.
3151 * inline-frame.c (block_starting_point_at): Update.
3153 2014-06-18 Tom Tromey <tromey@redhat.com>
3155 * completer.c (complete_line): Make "line_buffer" const.
3156 * completer.h (complete_line): Update.
3158 2014-06-18 Tom Tromey <tromey@redhat.com>
3160 * symtab.c (add_macro_name): Remove unneeded cast.
3162 2014-06-18 Tom Tromey <tromey@redhat.com>
3164 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3165 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3167 2014-06-18 Tom Tromey <tromey@redhat.com>
3169 * probe.c (info_probes_for_ops): Make "arg" const.
3170 * probe.h (info_probes_for_ops): Update.
3172 2014-06-18 Tom Tromey <tromey@redhat.com>
3174 * varobj.c (varobj_create): Update.
3175 * valops.c (value_of_this): Update.
3176 * tracepoint.c (add_local_symbols, scope_info): Update.
3177 * symtab.h (struct general_symbol_info) <block>: Now const.
3178 * symtab.c (skip_prologue_sal)
3179 (default_make_symbol_completion_list_break_on)
3180 (skip_prologue_using_sal): Update.
3181 * stack.h (iterate_over_block_locals)
3182 (iterate_over_block_local_vars): Update.
3183 * stack.c (print_frame_args): Update.
3184 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3186 (get_selected_block): Make return type const.
3187 * python/py-frame.c (frapy_block): Update.
3188 * python/py-block.c (gdbpy_block_for_pc): Update.
3189 * p-exp.y (%union) <bval>: Now const.
3190 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3191 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3192 * m2-exp.y (%union) <bval>: Now const.
3193 * linespec.c (get_current_search_block): Make return type const.
3194 (create_sals_line_offset, find_label_symbols): Update.
3195 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3197 (block_starting_point_at): Make "block" const.
3198 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3199 (check_exception_resume): Update.
3200 * guile/scm-frame.c (gdbscm_frame_block): Update.
3201 * guile/scm-block.c (gdbscm_lookup_block): Update.
3202 * frame.h (get_frame_block): Update.
3203 (get_selected_block): Make return type const.
3204 * frame.c (frame_id_inner): Update.
3205 * f-valprint.c (info_common_command_for_block)
3206 (info_common_command): Update.
3207 * dwarf2loc.c (dwarf2_find_location_expression)
3208 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3209 (locexpr_describe_location_piece): Update.
3210 * c-exp.y (%union) <bval>: Now const.
3211 * breakpoint.c (resolve_sal_pc): Update.
3212 * blockframe.c (get_frame_block):Make return type const.
3213 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3214 (block_innermost_frame): Update.
3215 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3216 (block_for_pc, block_for_pc_sect): Update.
3217 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3219 (block_for_pc_sect, block_for_pc): Make return type const.
3220 * ax-gdb.c (gen_expr): Update.
3221 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3222 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3223 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3224 (ada_read_var_value): Update.
3225 * ada-exp.y (struct name_info) <block>: Now const.
3227 (block_lookup): Constify.
3229 2014-06-18 Gary Benson <gbenson@redhat.com>
3231 * nat/i386-dregs.h: New file.
3232 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3233 * i386-nat.h (i386-dregs.h): New include.
3234 (DR_FIRSTADDR): Now in i386-dregs.h.
3235 (DR_LASTADDR): Likewise.
3236 (DR_NADDR): Likewise.
3237 (DR_STATUS): Likewise.
3238 (DR_CONTROL): Likewise.
3239 (i386_debug_reg_state): Likewise.
3240 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3242 2014-06-18 Don Breazeal <donb@codesourcery.com>
3244 * breakpoint.c (set_longjmp_breakpoint): Call
3245 momentary_breakpoint_from_master with additional argument.
3246 (set_longjmp_breakpoint_for_call_dummy): Call
3247 momentary_breakpoint_from_master with additional argument.
3248 (set_std_terminate_breakpoint): Call
3249 momentary_breakpoint_from_master with additional argument.
3250 (momentary_breakpoint_from_master): Add argument to function
3251 definition and use it to initialize structure member flag.
3252 (clone_momentary_breakpoint): Call
3253 momentary_breakpoint_from_master with additional argument.
3254 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3255 member flags set in momentary_breakpoint_from_master.
3257 2014-06-18 Gary Benson <gbenson@redhat.com>
3259 * i386-nat.c (i386_show_dr): Renamed to
3260 i386_dr_show and made nonstatic. All uses updated.
3261 (i386_length_and_rw_bits): Renamed to
3262 i386_dr_length_and_rw_bits and made nonstatic.
3264 (i386_insert_aligned_watchpoint): Renamed to
3265 i386_dr_insert_aligned_watchpoint and made nonstatic.
3267 (i386_remove_aligned_watchpoint): Renamed to
3268 i386_dr_remove_aligned_watchpoint and made nonstatic.
3270 (i386_update_inferior_debug_regs): Renamed to
3271 i386_dr_update_inferior_debug_regs and made nonstatic.
3274 2014-06-18 Gary Benson <gbenson@redhat.com>
3276 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3277 (i386_dr_low_can_set_control): Likewise.
3278 (i386_dr_low_set_addr): Likewise.
3279 (i386_dr_low_set_control): Likewise.
3280 (i386_dr_low_get_addr): Likewise.
3281 (i386_dr_low_get_status): Likewise.
3282 (i386_dr_low_get_control): Likewise.
3283 (i386_insert_aligned_watchpoint): Use new macros.
3284 (i386_update_inferior_debug_regs): Likewise.
3285 (i386_stopped_data_address): Likewise.
3287 2014-06-18 Gary Benson <gbenson@redhat.com>
3289 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3290 New parameter. All uses updated.
3292 2014-06-18 Gary Benson <gbenson@redhat.com>
3294 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3297 2014-06-18 Gary Benson <gbenson@redhat.com>
3299 * i386-nat.c (debug_printf): New macro.
3300 (i386_get_debug_register_length): Likewise.
3301 (TARGET_HAS_DR_LEN_8): Use above macro.
3302 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3303 and printf_unfiltered. Use phex to format values.
3305 2014-06-18 Gary Benson <gbenson@redhat.com>
3307 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3310 2014-06-18 Gary Benson <gbenson@redhat.com>
3312 * i386-nat.c: Comment changes.
3314 2014-06-18 Gary Benson <gbenson@redhat.com>
3316 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3318 2014-06-18 Gary Benson <gbenson@redhat.com>
3320 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3321 (i386_insert_aligned_watchpoint): Likewise.
3322 (i386_remove_aligned_watchpoint): Likewise.
3323 (i386_handle_nonaligned_watchpoint): Likewise.
3325 2014-06-18 Gary Benson <gbenson@redhat.com>
3327 * i386-nat.c: Whitespace changes.
3329 2014-06-17 Samuel Bronson <naesten@gmail.com>
3331 * MAINTAINERS: Update Roland McGrath's email address.
3332 Thanks to Sergio Durigan Junior for pointing out that he left
3333 Red Hat a while ago, and giving me a current address.
3335 2014-06-17 Tom Tromey <tromey@redhat.com>
3337 * utils.h (savestring): Remove declaration.
3339 2014-06-17 Tom Tromey <tromey@redhat.com>
3341 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3343 2014-06-16 Keith Seitz <keiths@redhat.com>
3346 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3347 to update the varobj if inferior_ptid is null_ptid.
3349 2014-06-16 Tom Tromey <tromey@redhat.com>
3351 * target.h (struct target_ops) <to_info_proc>: Make parameter
3353 (target_info_proc): Update.
3354 * target.c (target_info_proc): Make "args" const.
3355 * procfs.c (procfs_info_proc): Update.
3356 * linux-tdep.c (linux_info_proc): Update.
3357 (linux_core_info_proc_mappings): Make "args" const.
3358 (linux_core_info_proc): Update.
3359 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3360 * gdbarch.c: Rebuild.
3361 * gdbarch.h: Rebuild.
3362 * corelow.c (core_info_proc): Update.
3364 2014-06-16 Tom Tromey <tromey@redhat.com>
3366 * target.h (struct target_ops) <to_disconnect>: Make parameter
3368 (target_disconnect): Update.
3369 * target.c (target_disconnect): Make "args" const.
3370 * target-delegates.c: Rebuild.
3371 * remote.c (remote_disconnect): Update.
3372 * record.h (record_disconnect): Update.
3373 * record.c (record_disconnect): Update.
3374 * inf-child.c (inf_child_disconnect): Update.
3376 2014-06-16 Tom Tromey <tromey@redhat.com>
3378 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3379 * target.c (debug_to_rcmd, default_rcmd): Update.
3380 * target-delegates.c: Rebuild.
3381 * remote.c (remote_rcmd): Update.
3382 * monitor.c (monitor_rcmd): Update.
3384 2014-06-16 Pedro Alves <palves@redhat.com>
3386 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3387 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3388 have OBJF_SHARED set.
3389 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3390 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3391 instead of OBJF_USERLOADED.
3392 * objfiles.h (OBJF_SHARED): Update comment.
3393 (userloaded_objfile_contains_address_p): Rename to ...
3394 (shared_objfile_contains_address_p): ... this, and update
3396 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3398 (remove_symbol_file_command): Skip objfiles that don't have
3401 2014-06-16 Tom Tromey <tromey@redhat.com>
3403 * minsyms.h (prim_record_minimal_symbol)
3404 (prim_record_minimal_symbol_and_info): Update comments.
3406 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3408 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3409 or --without-guile, according to how GDB was built.
3411 2014-06-13 Tom Tromey <tromey@redhat.com>
3413 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3415 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3417 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3419 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3420 help_list.Pass all_commands, not -1, to help_list.
3421 * cli/cli-dump.c (dump_command, append_command)
3422 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3423 (binary_dump_command, binary_append_command): Pass all_commands,
3424 not -1, to help_list.
3425 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3427 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3429 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3431 * top.c (set_history): Pass all_commands, not -1, to help_list.
3432 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3433 all_commands, not -1, to help_list.
3434 * symfile.c (overlay_command): Pass all_commands, not -1, to
3436 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3438 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3440 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3442 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3443 not -1, to help_list.
3444 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3445 not -1, to help_list.
3446 * maint.c (maintenance_command, maintenance_info_command)
3447 (maintenance_print_command, maintenance_set_cmd): Pass
3448 all_commands, not -1, to help_list.
3449 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3451 * language.c (set_check): Pass all_commands, not -1, to help_list.
3452 * infcmd.c (unset_command): Pass all_commands, not -1, to
3454 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3456 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3458 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3460 * breakpoint.c (save_command): Pass all_commands, not -1, to
3462 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3463 all_commands, not -1, to help_list.
3465 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3467 * regcache.c (struct register_to_invalidate): New structure.
3468 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3470 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3472 2014-06-12 Yao Qi <yao@codesourcery.com>
3474 * varobj.c (varobj_get_num_children): Call
3475 varobj_is_dynamic_p.
3476 (varobj_list_children): Likewise.
3477 (varobj_update): Likewise. Update comments.
3479 2014-06-12 Yao Qi <yao@codesourcery.com>
3481 * varobj.c (varobj_pretty_printed_p): Rename to ...
3482 (varobj_is_dynamic_p): ... this. New function.
3483 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3484 (varobj_is_dynamic_p): Declare.
3485 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3486 (mi_print_value_p, varobj_update_one): Likewise.
3488 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3489 Yao Qi <yao@codesourcery.com>
3491 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3492 (varobj_get_iterator): Wrap up code for pretty-printer by
3493 "#if HAVE_PYTHON" and "#endif".
3494 (update_dynamic_varobj_children): Likewise.
3496 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3497 Yao Qi <yao@codesourcery.com>
3499 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3500 gdb_python_initialized is false. Move some code from varobj.c.
3501 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3502 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3503 (struct varobj_item): Moved to varobj-iter.h".
3504 (varobj_clear_saved_item): New function.
3505 (update_dynamic_varobj_children): Move python-related code to
3507 (free_variable): Call varobj_clear_saved_item and
3510 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3511 Yao Qi <yao@codesourcery.com>
3513 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3514 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3515 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3516 (py-varobj.o): New rule.
3517 * python/py-varobj.c: New file.
3518 * python/python-internal.h (py_varobj_get_iterator): Declare.
3519 * varobj-iter.h: New file.
3520 * varobj.c: Include "varobj-iter.h"
3521 (struct varobj) <child_iter>: Change its type from "PyObject *"
3522 to "struct varobj_iter *".
3523 <saved_item>: Likewise.
3524 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3525 [HAVE_PYTHON] (varobj_get_iterator): New function.
3526 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3527 python-specific code to python/py-varobj.c.
3528 (install_visualizer): Call varobj_iter_delete instead of
3530 * varobj.h (varobj_ensure_python_env): Declare.
3532 2014-06-12 Yao Qi <yao@codesourcery.com>
3534 * varobj.c (struct varobj_item): New structure.
3535 (create_child_with_value): Update declaration.
3536 (varobj_add_child): Replace arguments 'name' and 'value' with
3537 'item'. All callers updated.
3538 (install_dynamic_child): Likewise.
3539 (update_dynamic_varobj_children): Likewise.
3540 (varobj_add_child): Likewise.
3541 (create_child_with_value): Likewise.
3543 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3545 * NEWS: Create a new section for the next release branch.
3546 Rename the section of the current branch, now that it has
3549 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3551 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3552 * version.in: Bump version to 7.8.50.DATE-cvs.
3554 2014-06-11 Pedro Alves <palves@redhat.com>
3557 * ser-mingw.c (net_windows_socket_check_pending): New function.
3558 (net_windows_select_thread): Ignore spurious wakeups. Use
3559 net_windows_socket_check_pending.
3560 (net_windows_wait_handle): Check for pending events with
3561 ioctlsocket, through net_windows_socket_check_pending, instead of
3562 checking the socket's event.
3564 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3566 * python/python-internal.h (gdb_PyObject_GetAttrString)
3567 (gdb_PyObject_HasAttrString): New inline function definitions.
3568 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3569 char * of the second argument to PyObject_GetAttrString.
3571 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3573 * serial.c (serial_write): Fix index of character to be printed
3574 in call to serial_logchar when serial debug traces are enabled.
3576 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3578 * gdbtypes (resolve_dynamic_range): Add function description.
3580 2014-06-09 Pedro Alves <palves@redhat.com>
3582 * linux-nat.c (linux_child_follow_fork): Initialize status with
3583 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3584 inner block. Only pass the signal to PTRACE_DETACH if in pass
3587 2014-06-09 Gary Benson <gbenson@redhat.com>
3589 * common/signals.c (gdb_signal_from_host): Reorder to separate
3590 the always-available ANSI-standard signals from the signals that
3592 (do_gdb_signal_to_host): Likewise.
3593 * proc-events.c (signal_table): Likewise.
3595 2014-06-08 Hui Zhu <hui@codesourcery.com>
3597 * common/linux-ptrace.c (linux_disable_event_reporting): New
3599 * common/linux-ptrace.h (linux_disable_event_reporting): New
3601 * linux-nat.c (linux_child_follow_fork): Do a single step before
3604 2014-06-07 Keith Seitz <keiths@redhat.com>
3608 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3609 from symbol_matches_domain in symtab.c. All local callers
3610 of symbol_matches_domain updated.
3611 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3612 search STRUCT_DOMAIN.
3613 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3614 independently. standard_lookup will do that automatically.
3615 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3616 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3617 (cp_lookup_symbol_in_namespace): Likewise.
3618 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3619 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3620 may return a STRUCT_DOMAIN match.
3621 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3622 * cp-support.c: Include language.h.
3623 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3625 * psymtab.c (match_partial_symbol): Compare the requested
3626 domain with the symbol's domain directly.
3627 (lookup_partial_symbol): Likewise.
3628 * symtab.c (lookup_symbol_in_language): Explain when/why
3629 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3630 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3631 appropriate languages.
3632 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3633 and moved to ada-lang.c
3634 (lookup_block_symbol): Explain that this function only returns
3635 symbol matching the requested DOMAIN.
3636 Compare the requested domain with the symbol's domain directly.
3637 (iterate_over_symbols): Compare the requested domain with the
3638 symbol's domain directly.
3639 * symtab.h (symbol_matches_domain): Remove.
3641 2014-06-06 Doug Evans <xdje42@gmail.com>
3643 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3644 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3645 (gdbscm_guile_version_is_at_least): Declare.
3646 (gdbscm_scm_string_to_int): Declare.
3647 * guile/guile.c (gdbscm_guile_major_version): New global.
3648 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3649 (guile_datadir): New static global.
3650 (gdbscm_guile_data_directory): New function.
3651 (initialize_scheme_side): Update.
3652 (misc_guile_functions): Add guile-data-directory.
3653 (initialize_gdb_module): Fetch guile version number.
3654 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3655 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3656 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3657 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3659 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3660 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3661 * guile/scm-value.c (gdbscm_value_to_string): Only call
3662 scm_port_conversion_strategy if Guile version >= 2.0.6.
3664 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3666 * main.c (print_gdb_help): Add -q and --silent.
3668 2014-06-06 Gary Benson <gbenson@redhat.com>
3670 * common/signals.c: Remove preprocessor conditionals for
3671 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3672 SIGSEGV and SIGTERM.
3673 * proc-events.c: Likewise.
3675 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3677 * symfile.c (symfile_free_objfile): Remove restriction to
3679 * symfile-mem.c (symbol_file_add_from_memory): Call
3680 add_target_sections_of_objfile.
3682 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3684 * guile/scm-value.c (gdbscm_history_append_x): Use
3685 'vlscm_get_value_smob_arg_unsafe' instead of
3686 'vlscm_scm_to_value'.
3688 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3691 * utils.c (printchar): Don't escape at all if quoter is NUL.
3692 Update function documentation to clarify effect of parameter
3694 * remote.c (escape_buffer): Pass '\\' as the quoter to
3695 fputstrn_unfiltered.
3696 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3697 generate the output.
3698 (mi_solib_unloaded): Same.
3700 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3702 * development.sh: Delete.
3703 * Makefile.in (config.status): Adjust dependency on development.sh.
3704 * configure.ac: Adjust development.sh source call.
3705 * configure: Regenerate.
3707 2014-06-04 Doug Evans <xdje42@gmail.com>
3709 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3710 is_scheme_bkpt, spec.
3711 (bpscm_make_breakpoint_smob): Initialize new members.
3712 (gdbscm_create_breakpoint_x): Split into two ...
3713 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3714 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3715 (scheme_function breakpoint_functions): Update.
3716 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3717 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3718 register-breakpoint!.
3720 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3723 * mem-break.c (z_type_supported): Return zero if
3724 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3726 2014-06-04 Tom Tromey <tromey@redhat.com>
3728 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3729 value_from_contents_and_address_unresolved.
3730 (ada_template_to_fixed_record_type_1): Likewise.
3731 (ada_which_variant_applies): Likewise.
3732 * value.h (value_from_contents_and_address_unresolved): Declare.
3733 * value.c (value_from_contents_and_address_unresolved): New
3735 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3736 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3737 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3739 2014-06-04 Tom Tromey <tromey@redhat.com>
3741 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3743 2014-06-04 Tom Tromey <tromey@redhat.com>
3745 * procfs.c (procfs_attach): Make "args" const.
3746 * windows-nat.c (windows_attach): Make "args" const.
3747 * nto-procfs.c (procfs_attach): Make "args" const.
3748 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3749 * go32-nat.c (go32_attach): Make "args" const.
3750 * gnu-nat.c (gnu_attach): Make "args" const.
3751 * darwin-nat.c (darwin_attach): Make "args" const.
3752 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3753 * linux-nat.c (linux_nat_attach): Make "args" const.
3754 * remote.c (extended_remote_attach_1, extended_remote_attach):
3756 * target.h (struct target_ops) <to_attach>: Make "args" const.
3757 (find_default_attach): Likewise.
3758 * utils.c (parse_pid_to_attach): Make "args" const.
3759 * utils.h (parse_pid_to_attach): Update.
3761 2014-06-04 Tom Tromey <tromey@redhat.com>
3763 * target-delegates.c: Rebuild.
3764 * target.c (default_thread_address_space): New function.
3765 (target_thread_address_space): Simplify.
3766 * target.h (struct target_ops) <to_thread_address_space>: Add
3767 TARGET_DEFAULT_FUNC.
3769 2014-06-04 Doug Evans <xdje42@gmail.com>
3771 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3773 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3775 * record-btrace.c: Include event-loop.h and inf-loop.h.
3776 (record_btrace_resume_exec_dir)
3777 (record_btrace_async_inferior_event_handler)
3778 (record_btrace_handle_async_inferior_event): New.
3779 (record_btrace_open): Create async event handler.
3780 (record_btrace_close): Delete async event handler.
3781 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3782 Mark async event handler.
3783 (record_btrace_execution_direction): New.
3784 (init_record_btrace_ops): Initialize to_execution_direction.
3786 2014-06-03 Doug Evans <xdje42@gmail.com>
3788 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3789 (gdbscm_make_parameter): Ditto.
3791 2014-06-03 Doug Evans <dje@google.com>
3793 * exec.c (exec_close_1): Call clear_section_table instead of
3794 resize_section_table.
3795 (clear_section_table): New function.
3796 (resize_section_table): Make static. Rename arg num_added to
3798 * exec.h (clear_section_table): Declare.
3799 (resize_section_table): Delete.
3800 * progspace.c (release_program_space): Call clear_section_table
3801 instead of resize_section_table.
3803 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3805 * NEWS (Python Scripting): Add entry about the new xmethods
3808 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3810 * python/py-xmethods.c: New file.
3811 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3812 (objfpy_dealloc): XDECREF on the new xmethods field.
3813 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3815 (objfpy_get_xmethods): New function.
3816 (objfile_getset): New entry 'xmethods'.
3817 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3818 (pspy_dealloc): XDECREF on the new xmethods field.
3819 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3821 (pspy_get_xmethods): New function.
3822 (pspace_getset): New entry 'xmethods'.
3823 * python/python-internal.h: Add declarations for new functions.
3824 * python/python.c (_initialize_python): Invoke
3825 gdbpy_initialize_xmethods.
3826 * python/lib/gdb/__init__.py (xmethods): New
3828 * python/lib/gdb/xmethod.py: New file.
3829 * python/lib/gdb/command/xmethods.py: New file.
3831 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3833 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3834 best match method returned by find_overload_match is an xmethod.
3835 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3836 the best matching operator returned by find_overload_match is an
3838 * valops.c: #include "extension.h".
3839 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3840 Return void. The list of matching source methods is returned in
3841 "fn_list" and a vector of matching debug method workers is
3842 returned in "xm_worker_vec". Update all callers.
3843 (value_find_oload_method_list): Likewise.
3844 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3845 non-NULL, then the index of the best matching method in this
3846 vector is returned. Update all callers.
3847 (find_overload_match): Include xmethods while performing overload
3850 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3852 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3853 * extension-priv.h (struct extension_language_ops): Add the
3855 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3856 get_matching_xmethod_workers, get_xmethod_argtypes,
3857 invoke_xmethod, free_xmethod_worker,
3858 free_xmethod_worker_vec): New functions.
3859 * extension.h: #include "common/vec.h".
3860 New function declarations.
3861 (struct xmethod_worker): New struct.
3862 (VEC (xmethod_worker_ptr)): New vector type.
3863 (xmethod_worker_ptr): New typedef.
3864 (xmethod_worker_vec): Likewise.
3865 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3867 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3868 (struct builtin_type): New field "xmethod".
3869 * valarith.c (value_ptradd): Assert that the value argument is not
3871 * valops.c (value_must_coerce_to_target): Return 0 for
3872 lval_xcallable values.
3873 * value.c (struct value): New field XM_WORKER in the field
3875 (value_address, value_raw_address): Return 0 for lval_xcallable
3877 (set_value_address): Assert that the value is not an
3879 (value_free): Free the associated xmethod worker when freeing
3880 lval_xcallable values.
3881 (set_value_component_location): Assert that the WHOLE value is not
3883 (value_of_xmethod, call_xmethod): New functions.
3884 * value.h: Declare "struct xmethod_worker".
3885 Declare new functions value_of_xmethod, call_xmethod.
3887 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3888 Pedro Alves <palves@redhat.com>
3890 PR breakpoints/17000
3891 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3892 New function, extracted from software_breakpoint_inserted_here_p.
3893 (software_breakpoint_inserted_here_p): Replace factored out code
3894 by call to find_non_raw_software_breakpoint_inserted_here.
3895 (bp_target_info_copy_insertion_state): New function.
3896 (bkpt_insert_location): Handle the case of a single-step
3897 breakpoint already inserted at the same address.
3898 (bkpt_remove_location): Handle the case of a single-step
3899 breakpoint still inserted at the same address.
3900 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3901 breakpoint already inserted at the same address.
3902 (deprecated_remove_raw_breakpoint): Handle the case of a
3903 non-raw breakpoint still inserted at the same address.
3904 (find_single_step_breakpoint): New function, extracted from
3905 single_step_breakpoint_inserted_here_p.
3906 (find_single_step_breakpoint): New function,
3907 factored out from single_step_breakpoint_inserted_here_p.
3908 (single_step_breakpoint_inserted_here_p): Reimplement.
3910 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3912 Pushed by Joel Brobecker <brobecker@adacore.com>
3913 * source.c (show_substitute_path_command): Fix display of matching
3916 2014-06-03 Gary Benson <gbenson@redhat.com>
3918 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3920 2014-06-02 Doug Evans <xdje42@gmail.com>
3922 Add parameter support for Guile.
3923 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3924 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3925 (scm-param.o): New rule.
3926 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3927 (gdbscm_misc_error): Declare.
3928 (gdbscm_canonicalize_command_name): Declare.
3929 (gdbscm_scm_to_host_string): Declare.
3930 (gdbscm_scm_from_host_string): Declare.
3931 (gdbscm_initialize_parameters): Declare.
3932 * guile/guile.c (initialize_gdb_module): Call
3933 gdbscm_initialize_parameters.
3934 * guile/lib/gdb.scm: Export parameter symbols.
3935 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3936 cmdscm_canonicalize_name and made public. All callers updated.
3937 * guile/scm-exception.c (gdbscm_misc_error): New function.
3938 * guile/scm-param.c: New file.
3939 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3940 (gdbscm_scm_to_host_string): New function.
3941 (gdbscm_scm_from_host_string): New function.
3942 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3944 2014-06-02 Doug Evans <xdje42@gmail.com>
3946 Add command support for Guile.
3947 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3948 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3949 (scm-cmd.o): New rule.
3950 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3951 (gdbscm_user_error_p): Declare.
3952 (gdbscm_parse_command_name): Declare.
3953 (gdbscm_valid_command_class_p): Declare.
3954 (gdbscm_initialize_commands): Declare.
3955 * guile/guile.c (initialize_gdb_module): Call
3956 gdbscm_initialize_commands.
3957 * guile/lib/gdb.scm: Export command symbols.
3958 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3959 (throw-user-error): New function.
3960 * guile/scm-cmd.c: New file.
3961 * guile/scm-exception.c (user_error_symbol): New static global.
3962 (gdbscm_user_error_p): New function.
3963 (gdbscm_initialize_exceptions): Set user_error_symbol.
3964 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3966 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3968 * top.c (command_loop): Handle comments here...
3969 (command_line_input): ... not here.
3971 2014-06-02 Doug Evans <xdje42@gmail.com>
3973 Add progspace support for Guile.
3974 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3975 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3976 (scm-progspace.o): New rule.
3977 * guile/guile-internal.h (pspace_smob): New typedef.
3978 (psscm_pspace_smob_pretty_printers): Declare.
3979 (psscm_pspace_smob_from_pspace): Declare.
3980 (psscm_scm_from_pspace): Declare.
3981 * guile/guile.c (initialize_gdb_module): Call
3982 gdbscm_initialize_pspaces.
3983 * guile/lib/gdb.scm: Export progspace symbols.
3984 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3986 (append-pretty-printer!): Ditto.
3987 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3989 * guile/scm-progspace.c: New file.
3991 2014-06-03 Alan Modra <amodra@gmail.com>
3993 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3994 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3996 2014-06-02 Doug Evans <dje@google.com>
3998 Add support for skeletonless type units.
3999 * dwarf2read.c (struct dwarf2_per_objfile): New member
4000 n_allocated_type_units.
4001 (struct dwarf2_per_objfile) <tu_stats>: New member
4002 nr_all_type_units_reallocs.
4003 (create_signatured_type_table_from_index): Initialize
4004 n_allocated_type_units
4005 (create_all_type_units): Ditto.
4006 (add_type_unit): Move up in file. New arg slot.
4007 All callers updated. Increase space for all_type_units more
4009 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4010 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4011 (lookup_dwp_signatured_type): Ditto.
4012 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4013 All callers updated.
4014 (build_type_psymtabs_1): Leave type_unit_groups as
4015 NULL if no TUs present.
4016 (print_tu_stats): New function.
4017 (process_skeletonless_type_unit): New function.
4018 (process_dwo_file_for_skeletonless_type_units): New
4020 (process_skeletonless_type_units): New function.
4021 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4022 Call print tu_stats if debugging enabled.
4024 2014-06-02 Pedro Alves <palves@redhat.com>
4026 * breakpoint.c (build_target_command_list): Don't build a command
4027 list if we have any duplicate location that isn't a dprintf.
4029 2014-06-02 Pedro Alves <palves@redhat.com>
4031 * breakpoint.c (dprintf_breakpoint_hit): New function.
4032 (initialize_breakpoint_ops): Install it as dprintf's
4033 breakpoint_hit method.
4035 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4037 * source.c (substitute_path_rule_matches): Simplify using
4038 filename_ncmp instead of FILENAME_CMP.
4040 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4042 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4044 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4046 * configure.ac: When Guile is available, check for the
4047 availability of 'scm_new_smob'.
4048 * configure, config.h.in: Regenerate.
4049 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4052 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4054 * frame.c (struct frame_info): Add stop_string field.
4055 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4056 (get_prev_frame_always): Old content moved into
4057 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4058 TRY_CATCH, handle MEMORY_ERROR exceptions.
4059 (frame_stop_reason_string): New function definition.
4060 * frame.h (unwind_stop_reason_to_string): Extend comment to
4061 mention frame_stop_reason_string.
4062 (frame_stop_reason_string): New function declaration.
4063 * stack.c (frame_info): Switch to frame_stop_reason_string.
4064 (backtrace_command_1): Switch to frame_stop_reason_string.
4065 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4066 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4067 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4069 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4071 * frame.c (frame_stop_reason_string): Rename to ...
4072 (unwind_stop_reason_to_string): this.
4073 * frame.h (frame_stop_reason_string): Rename to ...
4074 (unwind_stop_reason_to_string): this.
4075 * stack.c (frame_info): Update call to frame_stop_reason_string.
4076 (backtrace_command_1): Likewise.
4077 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4078 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4080 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4082 * frame.c (remove_prev_frame): New function.
4083 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4086 2014-05-29 Pedro Alves <palves@redhat.com>
4088 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4089 and make it const. When a single-step decays to a continue,
4090 clear 'step', not 'hw_step'. Pass whether the caller wanted
4091 to step to user_visible_resume_ptid, not what we ask the
4094 2014-05-29 Pedro Alves <palves@redhat.com>
4096 * infrun.c (process_event_stop_test, handle_step_into_function)
4097 (handle_step_into_function_backward): Adjust.
4098 Don't set the even thread's stop_step and call stop_waiting before
4099 calling end_stepping_range. Instead do that ...
4100 (end_stepping_range): ... here. Take an ecs pointer parameter.
4102 2014-05-29 Pedro Alves <palves@redhat.com>
4104 * infrun.c (stop_stepping): Rename to ...
4105 (stop_waiting): ... this.
4106 (proceed): Update comment.
4107 (process_event_stop_test, handle_inferior_event)
4108 (handle_signal_stop, handle_step_into_function)
4109 (handle_step_into_function_backward): Update.
4111 2014-05-29 Pedro Alves <palves@redhat.com>
4113 * infcall.c (run_inferior_call): Don't check whether the current
4114 thread is running after the proceed call.
4116 2014-05-29 Pedro Alves <palves@redhat.com>
4117 Tom Tromey <tromey@redhat.com>
4119 * NEWS: Mention "maint set target-async", "set mi-async", and that
4120 background execution commands are now always available.
4121 * target.h (target_async_permitted): Update comment.
4122 * target.c (target_async_permitted, target_async_permitted_1):
4124 (set_target_async_command): Rename to ...
4125 (maint_set_target_async_command): ... this.
4126 (show_target_async_command): Rename to ...
4127 (maint_show_target_async_command): ... this.
4128 (_initialize_target): Adjust.
4129 * infcmd.c (prepare_execution_command): Make extern.
4130 * inferior.h (prepare_execution_command): Declare.
4131 * infrun.c (set_observer_mode): Leave target async alone.
4132 * mi/mi-interp.c (mi_interpreter_init): Install
4133 mi_on_sync_execution_done as sync_execution_done observer.
4134 (mi_on_sync_execution_done): New function.
4135 (mi_execute_command_input_handler): Don't print the prompt if we
4136 just started a synchronous command with an async target.
4137 (mi_on_resume): Check sync_execution before printing prompt.
4138 * mi/mi-main.h (mi_async_p): Declare.
4139 * mi/mi-main.c: Include gdbcmd.h.
4140 (mi_async_p): New function.
4141 (mi_async, mi_async_1): New globals.
4142 (set_mi_async_command, show_mi_async_command, mi_async): New
4144 (exec_continue): Call prepare_execution_command.
4145 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4146 (mi_execute_async_cli_command): Use mi_async_p.
4147 (_initialize_mi_main): Install "set mi-async". Make
4148 "target-async" a deprecated alias.
4150 2014-05-29 Pedro Alves <palves@redhat.com>
4152 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4153 (_initialize_cli_interp): Adjust.
4154 * event-loop.c: Include "observer.h".
4155 (start_event_loop): Notify 'command_error' observers instead of
4156 calling display_gdb_prompt. Remove FIXME comment.
4157 * event-top.c (display_gdb_prompt): Remove call into the
4159 * inf-loop.c: Include "observer.h".
4160 (inferior_event_handler): Notify 'command_error' observers instead
4161 of calling display_gdb_prompt.
4162 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4163 observers instead of calling display_gdb_prompt.
4164 * interps.c (interp_set): Don't call display_gdb_prompt.
4165 (current_interp_display_prompt_p): Delete.
4166 * interps.h (interp_prompt_p): Delete declaration.
4167 (interp_prompt_p_ftype): Delete.
4168 (struct interp_procs) <prompt_proc_p>: Delete field.
4169 (current_interp_display_prompt_p): Delete declaration.
4170 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4171 (_initialize_mi_interp): Adjust.
4172 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4173 'command_error' observers.
4174 (tui_on_sync_execution_done, tui_on_command_error): New
4176 (tui_display_prompt_p): Delete.
4177 (_initialize_tui_interp): Adjust.
4179 2014-05-29 Pedro Alves <palves@redhat.com>
4182 * cli/cli-interp.c: Include infrun.h and observer.h.
4183 (cli_uiout, cli_interp): New globals.
4184 (cli_on_signal_received, cli_on_end_stepping_range)
4185 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4187 (cli_interpreter_init): Install them as 'end_stepping_range',
4188 'signal_received' 'signal_exited', 'exited' and 'no_history'
4190 (_initialize_cli_interp): Remove cli_interp local.
4191 * infrun.c (handle_inferior_event): Call the several stop reason
4192 observers instead of printing the stop reason directly.
4193 (end_stepping_range): New function.
4194 (print_end_stepping_range_reason, print_signal_exited_reason)
4195 (print_exited_reason, print_signal_received_reason)
4196 (print_no_history_reason): Make static, and add an uiout
4197 parameter. Print to that instead of to CURRENT_UIOUT.
4198 * infrun.h (print_end_stepping_range_reason)
4199 (print_signal_exited_reason, print_exited_reason)
4200 (print_signal_received_reason print_no_history_reason): New
4202 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4204 <cli_uiout>: New field.
4205 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4206 uiout for CLI output. Install 'signal_received',
4207 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4209 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4210 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4211 (mi_on_no_history): New functions.
4212 (ui_out_free_cleanup): Delete function.
4213 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4214 instead use the one already stored in the MI interpreter data.
4215 (mi_ui_out): Adjust.
4216 * tui/tui-interp.c: Include infrun.h and observer.h.
4217 (tui_interp): New global.
4218 (tui_on_signal_received, tui_on_end_stepping_range)
4219 (tui_on_signal_exited, tui_on_exited)
4220 (tui_on_no_history): New functions.
4221 (tui_init): Install them as 'end_stepping_range',
4222 'signal_received' 'signal_exited', 'exited' and 'no_history'
4224 (_initialize_tui_interp): Delete tui_interp local.
4226 2014-05-29 Pedro Alves <palves@redhat.com>
4229 * linux-nat.c (linux_nat_resume_callback): Rename the second
4230 parameter to 'except'. Skip LP if it points to EXCEPT.
4231 (linux_nat_resume): Don't mark the event lwp as not stopped
4232 before resuming sibling lwps. Instead ask
4233 linux_nat_resume_callback to skip the event lwp. Mark it as not
4234 stopped after actually resuming it.
4235 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4237 (wait_lwp): Mark the lwp as stopped here.
4238 (stop_wait_callback): Mark the lwp as not stopped right after
4239 resuming it. Don't mark lwps as stopped here.
4240 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4241 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4243 2014-05-29 Pedro Alves <palves@redhat.com>
4246 * infrun.c (resume): Determine how much to resume depending on
4247 whether the caller wanted a step, not whether we can hardware step
4248 the target. Mark all threads that we intend to run as running,
4249 unless we're calling an inferior function.
4250 (normal_stop): If the thread is running an infcall, don't finish
4252 * target.c (target_resume): Don't mark threads as running here.
4254 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4256 * serial.c (_initialize_serial): Remove support for
4257 the "set remotebaud" and "show remotebaud" commands.
4258 * NEWS: Add entry documenting the removal of that command.
4260 2014-05-28 Yao Qi <yao@codesourcery.com>
4262 * charset.c: Fix typo in comments.
4264 2014-05-27 Gary Benson <gbenson@redhat.com>
4266 * utils.c (internal_vproblem): Prompt for a bug report.
4268 2014-05-26 Andy Wingo <wingo@igalia.com>
4270 * guile/scm-arch.c (arscm_mark_arch_smob):
4271 * guile/scm-block.c (bkscm_mark_block_smob)
4272 (bkscm_mark_block_syms_progress_smob):
4273 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4274 * guile/scm-exception.c (exscm_mark_exception_smob):
4275 * guile/scm-frame.c (frscm_mark_frame_smob):
4276 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4277 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4278 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4279 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4280 (ppscm_mark_pretty_printer_worker_smob):
4281 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4282 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4283 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4284 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4286 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4289 2014-05-26 Andy Wingo <wingo@igalia.com>
4290 Doug Evans <xdje42@gmail.com>
4292 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4293 empty_base_class. All uses updated.
4294 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4295 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4297 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4298 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4299 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4300 (gdbscm_gsmob_has_property_p, add_property_name)
4301 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4302 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4303 (gdb-object-has-property?, gdb-object-properties): Remove.
4304 (gdb-object-kind): Renamed from gsmob-kind.
4306 2014-05-26 Andy Wingo <wingo@igalia.com>
4308 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4309 * configure: Regenerate.
4311 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4313 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4315 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4317 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4318 (replay_memory_access_read_only, replay_memory_access_read_write)
4319 (replay_memory_access_types, replay_memory_access)
4320 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4321 (cmd_set_record_btrace, cmd_show_record_btrace)
4322 (cmd_show_replay_memory_access): New.
4323 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4324 (record_btrace_remove_breakpoint): Replace
4325 record_btrace_allow_memory_access with replay_memory_access.
4326 (_initialize_record_btrace): Add commands.
4327 * NEWS: Announce it.
4329 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4331 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4333 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4335 * MAINTAINERS (Write After Approval): Move self back from
4338 2014-05-22 Pedro Alves <palves@redhat.com>
4340 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4341 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4342 (disable_randomization, enum exec_direction_kind)
4343 (execution_direction, stop_registers, start_remote)
4344 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4345 (wait_for_inferior, normal_stop, get_last_target_status)
4346 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4347 (insert_step_resume_breakpoint_at_sal)
4348 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4349 (set_step_info, print_stop_event, signal_stop_state)
4350 (signal_print_state, signal_pass_state, signal_stop_update)
4351 (signal_print_update, signal_pass_update)
4352 (update_signals_program_target, clear_exit_convenience_vars)
4353 (displaced_step_dump_bytes, update_observer_mode)
4354 (signal_catch_update, gdb_signal_from_command): Move
4356 * infrun.h: ... to this new file.
4357 * amd64-tdep.c: Include infrun.h.
4358 * annotate.c: Include infrun.h.
4359 * arch-utils.c: Include infrun.h.
4360 * arm-linux-tdep.c: Include infrun.h.
4361 * arm-tdep.c: Include infrun.h.
4362 * break-catch-sig.c: Include infrun.h.
4363 * breakpoint.c: Include infrun.h.
4364 * common/agent.c: Include infrun.h instead of inferior.h.
4365 * corelow.c: Include infrun.h.
4366 * event-top.c: Include infrun.h.
4367 * go32-nat.c: Include infrun.h.
4368 * i386-tdep.c: Include infrun.h.
4369 * inf-loop.c: Include infrun.h.
4370 * infcall.c: Include infrun.h.
4371 * infcmd.c: Include infrun.h.
4372 * infrun.c: Include infrun.h.
4373 * linux-fork.c: Include infrun.h.
4374 * linux-nat.c: Include infrun.h.
4375 * linux-thread-db.c: Include infrun.h.
4376 * monitor.c: Include infrun.h.
4377 * nto-tdep.c: Include infrun.h.
4378 * procfs.c: Include infrun.h.
4379 * record-btrace.c: Include infrun.h.
4380 * record-full.c: Include infrun.h.
4381 * remote-m32r-sdi.c: Include infrun.h.
4382 * remote-mips.c: Include infrun.h.
4383 * remote-notif.c: Include infrun.h.
4384 * remote-sim.c: Include infrun.h.
4385 * remote.c: Include infrun.h.
4386 * reverse.c: Include infrun.h.
4387 * rs6000-tdep.c: Include infrun.h.
4388 * s390-linux-tdep.c: Include infrun.h.
4389 * solib-irix.c: Include infrun.h.
4390 * solib-osf.c: Include infrun.h.
4391 * solib-svr4.c: Include infrun.h.
4392 * target.c: Include infrun.h.
4393 * top.c: Include infrun.h.
4394 * windows-nat.c: Include infrun.h.
4395 * mi/mi-interp.c: Include infrun.h.
4396 * mi/mi-main.c: Include infrun.h.
4397 * python/py-threadevent.c: Include infrun.h.
4399 2014-05-22 Pedro Alves <palves@redhat.com>
4401 * infrun.c (handle_inferior_event): Store the exit code for
4402 --return-child-result here, instead of ...
4403 (print_exited_reason): ... here.
4405 2014-05-21 Pedro Alves <palves@redhat.com>
4408 * gdbthread.h (struct thread_control_state): New field
4410 * infrun.c (follow_fork): Copy the new thread control field to the
4412 (clear_proceed_status_thread): Clear the new thread control field.
4413 (proceed): Set the new thread control field.
4414 * interps.h (command_interp): Declare.
4415 * interps.c (command_interpreter): New global.
4416 (command_interp): New function.
4417 (interp_exec): Set `command_interpreter' while here.
4418 * cli-out.c (cli_uiout_dtor): New function.
4419 (cli_ui_out_impl): Install it.
4420 * mi/mi-interp.c: Include cli-out.h.
4421 (mi_cmd_interpreter_exec): Add comment.
4422 (restore_current_uiout_cleanup): New function.
4423 (ui_out_free_cleanup): New function.
4424 (mi_on_normal_stop): If finishing an execution command started by
4425 a CLI command, or any kind of breakpoint-like event triggered,
4426 print the stop event to the output (CLI) stream.
4427 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4429 2014-05-21 Pedro Alves <palves@redhat.com>
4431 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4432 current source line having changed.
4433 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4434 * infrun.c (normal_stop): Adjust call to
4435 set_current_sal_from_frame.
4436 * source.c (clear_lines_listed_range): New function.
4437 (set_current_source_symtab_and_line, identify_source_line): Clear
4438 the lines listed range.
4439 (line_info): Handle the first "info line" after the current source
4440 line having changed.
4441 * stack.c (print_stack_frame): Remove center handling.
4442 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4445 2014-05-21 Pedro Alves <palves@redhat.com>
4447 * inf-child.c (inf_child_mourn_inferior): New function.
4448 * inf-child.h (inf_child_mourn_inferior): New declaration.
4449 * darwin-nat.c (darwin_mourn_inferior): Use
4450 inf_child_mourn_inferior.
4451 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4452 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4453 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4454 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4455 * windows-nat.c (windows_mourn_inferior): Likewise.
4457 2014-05-21 Doug Evans <xdje42@gmail.com>
4459 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4461 2014-05-21 Doug Evans <xdje42@gmail.com>
4463 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4464 (gdbscm_out_of_range_error): Ditto.
4465 (gdbscm_memory_error): Ditto.
4466 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4467 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4468 (gdbscm_out_of_range_error): Update.
4469 (gdbscm_memory_error): Update.
4470 (gdbscm_scm_to_target_string_unsafe): Delete.
4472 2014-05-21 Pedro Alves <palves@redhat.com>
4474 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4476 (inf_child_open_target): New function.
4477 (inf_child_open): Use inf_child_open_target to push the target
4478 instead of erroring out.
4479 (inf_child_disconnect, inf_child_close)
4480 (inf_child_maybe_unpush_target): New functions.
4481 (inf_child_target): Install inf_child_disconnect and
4482 inf_child_close. Store a pointer to the returned object.
4483 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4485 * target.c (auto_connect_native_target): New global.
4486 (show_default_run_target): New function.
4487 (find_default_run_target): Return NULL if automatically connecting
4488 to the native target is disabled.
4489 (_initialize_target): Install set/show auto-connect-native-target.
4490 * NEWS: Mention "set auto-connect-native-target", and "target
4492 * linux-nat.c (super_close): New global.
4493 (linux_nat_close): Call super_close.
4494 (linux_nat_add_target): Store a pointer to the base class's
4496 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4497 inf_child_maybe_unpush.
4498 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4500 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4501 the inferior. Use inf_child_maybe_unpush_target.
4502 (inf_ttrace_attach): Don't push the target if it is already
4504 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4505 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4506 after mourning the inferior. Use inf_child_maybe_unpush_target.
4507 (darwin_attach_pid): Don't push the target if it is already
4509 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4510 mourning the inferior. Use inf_child_maybe_unpush_target.
4511 (gnu_detach): Use inf_child_maybe_unpush_target.
4512 * go32-nat.c (go32_create_inferior): Don't push the target if it
4514 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4515 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4516 (procfs_open): Rename to ...
4517 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4518 comments. Can target_preopen before changing node. Call
4519 inf_child_open_target to push the target explicitly.
4520 (procfs_attach): Don't push the target if it is already pushed.
4521 (procfs_detach): Use inf_child_maybe_unpush_target.
4522 (procfs_create_inferior): Don't push the target if it is already
4524 (nto_native_ops): New global.
4525 (procfs_open): Reimplement.
4526 (procfs_native_open): New function.
4527 (init_procfs_targets): Install procfs_native_open as to_open of
4528 "target native". Store a pointer to the "native" target in
4530 * procfs.c (procfs_attach): Don't push the target if it is already
4532 (procfs_detach): Use inf_child_maybe_unpush_target.
4533 (procfs_mourn_inferior): Only unpush the target after mourning the
4534 inferior. Use inf_child_maybe_unpush_target.
4535 (procfs_init_inferior): Don't push the target if it is already
4537 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4538 if it is already pushed.
4540 2014-05-21 Pedro Alves <palves@redhat.com>
4542 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4543 and "procfs" targets are now called "native" instead.
4545 2014-05-21 Pedro Alves <palves@redhat.com>
4547 * go32-nat.c (go32_open): Delete.
4548 (go32_target): Don't override the to_open method.
4550 2014-05-21 Pedro Alves <palves@redhat.com>
4552 * nto-procfs.c (procfs_can_run): New function.
4553 (nto_procfs_ops): New global.
4554 (init_procfs_targets): New, based on procfs_target. Install
4555 "target native" in addition to "target procfs".
4556 (_initialize_procfs): Call init_procfs_targets instead of adding
4559 2014-05-21 Pedro Alves <palves@redhat.com>
4561 * windows-nat.c (windows_target): Don't override to_shortname,
4562 to_longname or to_doc.
4564 2014-05-21 Pedro Alves <palves@redhat.com>
4566 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4569 2014-05-21 Pedro Alves <palves@redhat.com>
4571 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4572 to_shortname, to_longname or to_doc.
4574 2014-05-21 Pedro Alves <palves@redhat.com>
4576 * go32-nat.c (go32_target): Don't override to_shortname,
4577 to_longname or to_doc.
4579 2014-05-21 Pedro Alves <palves@redhat.com>
4581 * inf-child.c (inf_child_open): Remove mention of "child".
4582 (inf_child_target): Rename target to "native" instead of "child".
4584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4586 * Makefile.in (SFILES): Delete "regset.c".
4587 (COMMON_OBS): Delete "regset.o".
4589 * regset.h (regset_alloc): Delete prototype.
4591 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4593 * sparc-linux-tdep.c (sparc32_linux_gregset)
4594 (sparc32_linux_fpregset): New static regset structures.
4595 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4596 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4598 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4599 (sparc64_linux_fpregset): New static regset structures.
4600 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4601 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4602 New static regset structures.
4603 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4604 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4605 New static regset structures.
4606 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4607 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4608 New static regset structures.
4609 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4610 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4611 New static regset structures.
4612 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4614 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4616 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4617 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4618 register maps ("regmaps") from "*regset" to "*regmap". Do this
4619 for all regmap types and variables.
4620 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4621 (sparc32_linux_supply_core_gregset)
4622 (sparc32_linux_collect_core_gregset)
4623 (sparc32_linux_supply_core_fpregset)
4624 (sparc32_linux_collect_core_fpregset): Likewise.
4625 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4626 (sparc_gregmap, sparc_fpregmap): ... these.
4627 (sparc_supply_gregset, sparc_collect_gregset)
4628 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4629 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4630 (_initialize_sparc_nat): Rename regmaps.
4631 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4632 (sparc_gregmap, sparc_fpregmap): ... these.
4633 (sparc_supply_gregset, sparc_collect_gregset)
4634 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4635 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4637 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4638 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4640 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4642 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4643 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4644 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4646 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4647 (sparc32_bsd_fpregset): Rename to...
4648 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4649 (sparc32_bsd_fpregmap): ... these.
4650 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4651 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4652 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4653 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4654 (struct sparc_gregmap, struct sparc_fpregmap)
4655 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4656 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4657 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4658 (sparc32_supply_regset, sparc32_collect_gregset)
4659 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4661 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4662 (sparc64_linux_ptrace_gregmap): ... this.
4663 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4664 (_initialize_sparc64_linux_nat): Rename regmaps.
4665 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4666 (sparc64_linux_core_gregmap): ... this.
4667 (sparc64_linux_supply_core_gregset)
4668 (sparc64_linux_collect_core_gregset)
4669 (sparc64_linux_supply_core_fpregset)
4670 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4671 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4672 (sparc64_sol2_fpregset): Rename to...
4673 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4674 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4675 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4677 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4678 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4679 (sparc64_bsd_fpregset): Rename to...
4680 (struct sparc_gregmap, sparc64_sol2_gregmap)
4681 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4682 (sparc64_bsd_fpregmap): ... these.
4683 (sparc64_supply_gregset, sparc64_collect_gregset)
4684 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4686 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4687 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4688 (sparc64fbsd_gregmap): ... this.
4689 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4690 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4692 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4693 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4694 (sparc64nbsd_collect_fpregset): Likewise.
4695 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4696 (sparc64nbsd_gregmap): ... this.
4697 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4699 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4700 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4701 (sparc64obsd_gregmap): ... this.
4702 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4704 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4705 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4706 (sparc32nbsd_gregmap): ... this.
4707 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4710 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4712 * score-tdep.c (score7_linux_gregset): New static regset
4714 (score7_linux_regset_from_core_section): Remove dynamic regset
4716 (score_gdbarch_init): Drop allocation of tdep structure.
4717 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4719 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4721 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4723 (am33_regset_from_core_section): Remove dynamic regset
4726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4728 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4729 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4731 (mips_linux_regset_from_core_section): Remove dynamic regset
4733 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4734 'gregset64', 'fpregset', and 'fpregset64'.
4735 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4736 deleted tdep fields.
4738 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4740 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4742 (amd64_regset_from_core_section): Remove dynamic regset
4744 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4746 (amd64obsd_regset_from_core_section): Remove dynamic regset
4748 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4750 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4751 x86-common regset supply function.
4752 * i386-tdep.c (i386_collect_gregset): Make static.
4753 (i386_gregset): New global regset structure.
4754 (i386_fpregset, i386_xstateregset): New static regset structures.
4755 (i386_regset_from_core_section): Remove dynamic regset
4757 (i386_gdbarch_init): Remove initialization of tdep fields
4758 'gregset', 'fpregset', and 'xstateregset'.
4759 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4760 'fpregset', and 'xstateregset'.
4761 (i386_collect_gregset): Remove prototype.
4762 (i386_gregset): New declaration.
4763 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4765 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4768 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4770 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4771 (arm_linux_vfpregset): New static regset structures.
4772 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4774 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4775 and 'vfpregset' fields.
4777 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4779 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4780 (aarch64_linux_fpregset): New static regset structures.
4781 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4782 of regset structures.
4783 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4786 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4788 * regset.h (struct regset): Remove gdbarch field.
4789 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4790 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4791 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4793 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4794 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4795 (ppc32_linux_vsxregset): Likewise.
4796 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4797 via the regcache instead of the regset.
4798 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4799 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4800 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4801 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4804 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4806 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4807 Constify structures.
4808 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4809 (alphanbsd_aout_gregset): Likewise.
4810 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4811 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4813 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4814 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4816 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4817 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4818 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4819 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4820 * m88k-tdep.c (m88k_gregset): Likewise.
4821 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4822 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4823 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4824 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4825 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4826 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4827 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4828 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4829 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4831 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4832 * sh-tdep.h (sh_corefile_gregset): Likewise.
4833 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4834 * vax-tdep.c (vax_gregset): Likewise.
4836 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 Fix TLS access for -static -pthread.
4839 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4840 (try_thread_db_load_1): Initialize it.
4841 (thread_db_get_thread_local_address): Call it if LM is zero.
4842 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4843 * target.h (struct target_ops) (to_get_thread_local_address): Add
4844 load_module_addr comment.
4846 2014-05-21 Pedro Alves <palves@redhat.com>
4848 * dcache.c (dcache_read_memory_partial): If reading the cache line
4849 fails, fallback to reading just the memory the caller wanted.
4851 2014-05-20 Doug Evans <dje@google.com>
4853 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4854 instead of get_current_arch.
4856 2014-05-20 Pedro Alves <palves@redhat.com>
4858 * NEWS: Mention that compare-sections now works with all targets.
4860 * remote.c (PACKET_qCRC): New enum value.
4861 (remote_verify_memory): Don't send qCRC if the target has no
4862 execution. Use packet_support/packet_ok. If the target doesn't
4863 support the qCRC packet, fallback to a deep memory copy.
4864 (compare_sections_command): Say "target image" instead of "remote
4866 (_initialize_remote): Add PACKET_qCRC to the list of config
4867 packets that have no associated command. Extend comment.
4868 * target.c (simple_verify_memory, default_verify_memory): New
4870 * target.h (struct target_ops) <to_verify_memory>: Default to
4871 default_verify_memory.
4872 (simple_verify_memory): New declaration.
4873 * target-delegates.c: Regenerate.
4875 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4877 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4879 2014-05-20 Hui Zhu <hui@codesourcery.com>
4880 Yao Qi <yao@codesourcery.com>
4883 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4884 and change address of sp and pc.
4886 2014-05-19 Tom Tromey <tromey@redhat.com>
4888 * gdbtypes.c (rank_function): Use XNEWVEC.
4889 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4891 2014-05-19 Doug Evans <dje@google.com>
4893 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4894 build_type_unit_groups and moved closer to only caller. Remove
4895 arguments. All references updated. Remove outdated .gdb_index
4897 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4898 build_type_psymtabs_1.
4900 2014-05-19 Doug Evans <dje@google.com>
4902 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4903 n_type_unit_groups, all_type_unit_groups. All uses removed.
4904 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4905 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4906 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4907 (add_type_unit_group_to_table): Delete.
4909 2014-05-19 Doug Evans <dje@google.com>
4911 * eval.c (evaluate_subexp_standard): Add some comments.
4913 2014-05-17 Doug Evans <xdje42@gmail.com>
4915 * progspace.c (remove_program_space): Delete, unused.
4916 * progspace.h (remove_program_space): Ditto.
4918 2014-05-17 Doug Evans <xdje42@gmail.com>
4920 * inferior.c (prune_inferiors): Fix comment.
4921 (remove_inferior_command): Call prune_program_spaces.
4923 2014-05-16 Doug Evans <dje@google.com>
4925 New command line option -D.
4927 * main.c (set_gdb_data_directory): New function.
4928 (captured_main): Recognize -D. Flag error for --data-directory "".
4929 Call set_gdb_data_directory.
4930 (print_gdb_help): Print --data-directory, -D.
4931 * main.h (set_gdb_data_directory): Declare.
4932 * top.c (staged_gdb_datadir): New static global.
4933 (set_gdb_datadir): Call set_gdb_data_directory
4934 (show_gdb_datadir): New function.
4935 (init_main): Update init of data-directory parameter.
4937 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4939 Import the "dirfd" gnulib module.
4940 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4941 * gnulib/aclocal.m4: Update.
4942 * gnulib/config.in: Update.
4943 * gnulib/configure: Update.
4944 * gnulib/import/Makefile.am: Update.
4945 * gnulib/import/Makefile.in: Update.
4946 * gnulib/import/dirfd.c: New.
4947 * gnulib/import/m4/dirfd.m4: New.
4948 * gnulib/import/m4/gnulib-cache.m4: Update.
4949 * gnulib/import/m4/gnulib-comp.m4: Update.
4951 2014-05-16 Pierre Muller <muller@sourceware.org>
4952 Yao Qi <yao@codesourcery.com>
4954 * valprint.c (print_wchar): Move the code on checking whether
4955 W is a printable wide char to the default branch of switch
4956 statement below. Call wchar_printable instead of gdb_iswprint.
4958 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4960 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4961 ldr.w and ldrd instructions.
4963 2014-05-15 Doug Evans <dje@google.com>
4965 * dwarf2read.c (read_structure_type): Delete outdated comments.
4967 2014-05-14 Tom Tromey <tromey@redhat.com>
4969 * macrocmd.c (print_macro_definition): Reindent.
4971 2014-05-13 Doug Evans <xdje42@gmail.com>
4973 * python/py-cmd.c (cmdpy_completer): Add comment.
4974 (completers): Make const.
4976 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4978 * infrun.c (resume): Remove should_resume (unused). Move up
4979 declaration of resume_ptid.
4981 2014-05-13 Tom Tromey <tromey@redhat.com>
4983 * language.h (unop_type_check): Remove.
4984 (binop_type_check): Don't declare.
4986 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4988 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4989 call to regcache_raw_collect.
4991 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4993 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4994 mi_console->quote as the quoting character.
4996 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4998 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5000 2014-04-29 Tom Tromey <tromey@redhat.com>
5002 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5003 "show debug varobj".
5005 2014-05-07 Kyle McMartin <kyle@redhat.com>
5007 Pushed by Joel Brobecker <brobecker@adacore.com>.
5008 * aarch64-tdep.c (aarch64_software_single_step): New function.
5009 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5010 with aarch64_software_single_step.
5012 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5016 2014-05-05 Keith Seitz <keiths@redhat.com>
5018 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5019 variable or history value is successfully parsed.
5021 2014-05-05 Yao Qi <yao@codesourcery.com>
5022 Pedro Alves <palves@redhat.com>
5024 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5025 address of blocks that intersects the requested range. Trim
5026 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5028 * ctf.c (ctf_xfer_partial): Likewise.
5030 2014-05-05 Yao Qi <yao@codesourcery.com>
5032 * printcmd.c (display_command): Remove the check to
5033 target_has_execution.
5035 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5037 * ppcobsd-nat.c: Include "obsd-nat.h".
5038 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5040 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5042 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5044 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5045 and 16-bit signed and unsigned arguments. Update comment.
5046 (stap_parse_probe_arguments): Extend code to handle such
5047 arguments. Use warning instead of complaint to notify about
5048 unrecognized bitness.
5050 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5052 PR breakpoints/16889
5053 * stap-probe.c (stap_parse_probe_arguments): Simplify
5054 check for non-prefixed probes (i.e., probes whose
5055 arguments do not start with "N@"). Always set the
5056 argument type to a sane value.
5058 2014-05-01 David Taylor <dtaylor@emc.com>
5060 * remote.c (compare_sections_command): Add -r option to compare
5061 all loadable read-only sections.
5063 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5065 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5066 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5068 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5069 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5070 Remove unused CORE_ADDR argument. Update all callers.
5072 2014-04-29 Pedro Alves <palves@redhat.com>
5074 * remote.c (struct packet_config) <detect>: Extend comment.
5075 (add_packet_config_cmd): Don't set the config's detect or support
5077 (init_all_packet_configs): Also initialize the config's 'detect'
5079 (reset_all_packet_configs_support): New function.
5080 (remote_open_1): Call reset_all_packet_configs_support instead of
5081 init_all_packet_configs.
5082 (_initialize_remote): Initialize all packet configs. Assert that
5083 all packets have an associated command, except a few known
5086 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5088 * dwarf2read.c (read_subrange_type): Handle dynamic
5089 DW_AT_lower_bound attributes.
5091 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5093 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5094 dynamic bounds before computing its upper bound.
5095 (ada_discrete_type_low_bound): Same as above with the lower bound.
5097 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5099 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5100 range types. Adjust the array handling implementation to
5101 take advantage of this change.
5102 (resolve_dynamic_range): New function, mostly extracted from
5103 resolve_dynamic_bounds.
5104 (resolve_dynamic_array): New function, mostly extracted from
5105 resolve_dynamic_bounds.
5106 (resolve_dynamic_bounds): Delete.
5107 (resolve_dynamic_type): Reimplement. Add handling of
5108 TYPE_CODE_RANGE types.
5110 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5112 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5113 handling of parallel ___XA types.
5115 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5117 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5118 unnecessary second call to static_unwrap_type.
5120 2014-04-27 Hui Zhu <hui@codesourcery.com>
5122 * stack.c (print_frame_info): Call do_gdb_disassembly with
5123 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5125 2014-04-26 Doug Evans <xdje42@gmail.com>
5127 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5129 2014-04-25 Pedro Alves <palves@redhat.com>
5132 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5133 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5134 and newline from built string.
5135 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5136 (linux_ptrace_attach_fail_reason): ... this.
5137 * linux-nat.c (linux_nat_attach): Adjust to use
5138 linux_ptrace_attach_fail_reason.
5140 2014-04-25 Pedro Alves <palves@redhat.com>
5142 * remote.c (struct remote_state): Remove multi_process_aware,
5143 non_stop_aware, cond_tracepoints, cond_breakpoints,
5144 breakpoint_commands, fast_tracepoints, static_tracepoints,
5145 install_in_trace, disconnected_tracing,
5146 enable_disable_tracepoints, string_tracing, and
5147 augmented_libraries_svr4_read fields.
5148 (remote_multi_process_p): Move further below in the file.
5149 (struct packet_config): Add comments.
5150 (update_packet_config): Delete function.
5151 (show_packet_config_cmd): Use packet_config_support.
5152 (add_packet_config_cmd): Use NULL as set callback.
5153 (packet_ok): "set remote foo-packet"-style commands no longer
5154 change config->supported -- adjust.
5155 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5156 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5157 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5158 (PACKET_QNonStop, PACKET_multiprocess_feature)
5159 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5160 (PACKET_DisconnectedTracing_feature)
5161 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5162 (set_remote_protocol_packet_cmd): Delete function.
5163 (packet_config_support, packet_support): New functions.
5164 (set_remote_protocol_Z_packet_cmd): Don't call
5165 update_packet_config.
5166 (remote_query_attached, remote_pass_signals)
5167 (remote_program_signals, remote_threads_info)
5168 (remote_threads_extra_info, remote_start_remote): Use
5170 (remote_start_remote): Use packet_config_support and
5172 (init_all_packet_configs): Set all packets to unknown support,
5173 instead of calling update_packet_config.
5174 (remote_check_symbols): Use packet_support.
5175 (remote_supported_packet): Unconditionally set the packet config's
5177 (remote_multi_process_feature, remote_non_stop_feature)
5178 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5179 (remote_breakpoint_commands_feature)
5180 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5181 (remote_install_in_trace_feature)
5182 (remote_disconnected_tracing_feature)
5183 (remote_enable_disable_tracepoint_feature)
5184 (remote_string_tracing_feature)
5185 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5186 (remote_protocol_features): Adjust to use remote_supported_packet
5187 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5188 "ConditionalTracepoints", "ConditionalBreakpoints",
5189 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5190 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5191 "EnableDisableTracepoints", and "tracenz".
5192 (remote_query_supported): Use packet_support.
5193 (remote_open_1): Adjust.
5194 (extended_remote_attach_1): Use packet_support. Switch on the
5195 result of packet_ok instead of checking whether the packet ended
5197 (remote_vcont_resume): Use packet_support.
5198 (remote_resume, remote_stop_ns, fetch_register_using_p)
5199 (remote_prepare_to_store, store_register_using_P)
5200 (check_binary_download, remote_write_bytes): Use packet_support.
5201 (remote_vkill): Use packet_support. Switch on the result of
5202 packet_ok instead of checking whether the packet ended up
5204 (extended_remote_supports_disable_randomization): Use
5206 (extended_remote_run): Switch on the result of packet_ok instead
5207 of checking whether the packet ended up disabled.
5208 (remote_insert_breakpoint, remote_remove_breakpoint)
5209 (remote_insert_watchpoint, remote_remove_watchpoint)
5210 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5212 (remote_search_memory): Use packet_config_support.
5213 (remote_get_thread_local_address, remote_get_tib_address)
5214 (remote_hostio_send_command, remote_can_execute_reverse): Use
5216 (remote_supports_cond_tracepoints)
5217 (remote_supports_cond_breakpoints)
5218 (remote_supports_fast_tracepoints)
5219 (remote_supports_static_tracepoints)
5220 (remote_supports_install_in_trace)
5221 (remote_supports_enable_disable_tracepoint)
5222 (remote_supports_string_tracing)
5223 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5224 the packet config says the feature is enabled or disabled.
5225 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5226 (remote_get_trace_status): Use packet_support.
5227 (remote_set_disconnected_tracing): Adjust to check whether the
5228 feature is enabled with packet_support.
5229 (remote_set_trace_buffer_size, remote_use_agent)
5230 (remote_can_use_agent, remote_supports_btrace): Use
5232 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5233 Use packet_config_support.
5234 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5235 the packet config says the feature is enabled or disabled.
5236 (set_range_stepping): Use packet_support.
5238 2014-04-25 Tom Tromey <tromey@redhat.com>
5240 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5243 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5245 * NEWS: Mention support for C99 variable length arrays.
5247 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5249 * ada-lang.c (standard_exc): Expand introductory comment.
5251 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5252 Walfred Tedeschi <walfred.tedeschi@intel.com>
5254 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5256 (amd64_linux_read_description): Add code to handle AVX512 xstate
5257 mask and return respective tdesc.
5258 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5259 and features/i386/x32-avx512-linux.c.
5260 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5261 (amd64_linux_core_read_description): Add code to handle AVX512
5262 xstate mask and return respective tdesc.
5263 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5264 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5266 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5267 (tdesc_amd64_avx512_linux): New prototype.
5268 (tdesc_x32_avx512_linux): Likewise.
5269 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5270 features/i386/x32-avx512.c.
5271 (amd64_ymm_avx512_names): New register names for pseudo
5273 (amd64_ymmh_avx512_names): New register names for raw registers
5275 (amd64_k_names): New register names for K registers.
5276 (amd64_zmmh_names): New register names for ZMM raw registers.
5277 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5278 (amd64_xmm_avx512_names): New register names for XMM16-31
5280 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5282 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5283 if feature is present.
5284 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5285 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5286 (AMD64_NUM_REGS): Adjust to new number of registers.
5287 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5288 registers supplied via XSTATE by AVX512 registers.
5289 (i386_linux_read_description): Add case for AVX512.
5290 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5291 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5292 (i386_linux_core_read_description): Add case for AVX512.
5293 (i386_linux_init_abi): Install supported register note section
5295 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5297 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5298 registers to be number of zmm7h + 1.
5299 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5300 * i386-tdep.c: Include features/i386/i386-avx512.c.
5301 (i386_zmm_names): Add ZMM pseudo register names array.
5302 (i386_zmmh_names): Add ZMM raw register names array.
5303 (i386_k_names): Add K raw register names array.
5304 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5305 registers. AVX512 has 16 more ZMM registers than there are YMM
5307 (i386_zmmh_regnum_p): Add function to look up register number of
5309 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5310 (i386_k_regnum_p): Likewise for K raw registers.
5311 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5312 registers added by AVX512.
5313 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5314 registers added by AVX512.
5315 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5317 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5318 (i386_pseudo_register_name): Add ZMM pseudo registers.
5319 (i386_zmm_type): Construct and return vector registers type for ZMM
5321 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5322 ZMM0-31 pseudo registers and K registers.
5323 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5324 and YMM16-31 registers from register cache.
5325 (i386_pseudo_register_write): Add code to write K, ZMM and
5327 (i386_register_reggroup_p): Add code to include/exclude AVX512
5328 registers in/from respective register groups.
5329 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5330 registers if feature is present in xcr0.
5331 (i386_gdbarch_init): Add code to initialize AVX512 feature
5332 variables in tdep structure, wire in pseudo registers and call
5333 initialize_tdesc_i386_avx512.
5334 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5336 (i386_regnum): Add AVX512 registers.
5337 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5338 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5339 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5340 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5342 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5343 (i386_ymm_avx512_regnum_p): Likewise.
5344 (i386_k_regnum_p): Likewise.
5345 (i386_zmm_regnum_p): Likewise.
5346 (i386_zmmh_regnum_p): Likewise.
5347 * i387-tdep.c : Update year in copyright notice.
5348 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5350 (XSAVE_YMM_AVX512_ADDR): New macro.
5351 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5353 (XSAVE_XMM_AVX512_ADDR): New macro.
5354 (xsave_avx512_k_offset): New table for K register offsets in
5356 (XSAVE_AVX512_K_ADDR): New macro.
5357 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5359 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5360 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5362 (i387_collect_xsave): Add code to collect AVX512 registers from
5364 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5365 of XMM16-31 registers.
5366 (I387_NUM_K_REGS): New define for number of K registers.
5367 (I387_K0_REGNUM): New define for K0 register number.
5368 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5369 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5370 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5372 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5373 (I387_XMM16_REGNUM): New define for XMM16 register number.
5374 (I387_YMM0_REGNUM): New define for YMM0 register number.
5375 (I387_KEND_REGNUM): New define for last K register number.
5376 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5377 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5379 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5381 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5383 * features/Makefile: Add AVX512 related files.
5384 * features/i386/32bit-avx512.xml: New file.
5385 * features/i386/64bit-avx512.xml: Likewise.
5386 * features/i386/amd64-avx512-linux.c: Likewise.
5387 * features/i386/amd64-avx512-linux.xml: Likewise.
5388 * features/i386/amd64-avx512.c: Likewise.
5389 * features/i386/amd64-avx512.xml: Likewise.
5390 * features/i386/i386-avx512-linux.c: Likewise.
5391 * features/i386/i386-avx512-linux.xml: Likewise.
5392 * features/i386/i386-avx512.c: Likewise.
5393 * features/i386/i386-avx512.xml: Likewise.
5394 * features/i386/x32-avx512-linux.c: Likewise.
5395 * features/i386/x32-avx512-linux.xml: Likewise.
5396 * features/i386/x32-avx512.c: Likewise.
5397 * features/i386/x32-avx512.xml: Likewise.
5398 * regformats/i386/amd64-avx512-linux.dat: New file.
5399 * regformats/i386/amd64-avx512.dat: Likewise.
5400 * regformats/i386/i386-avx512-linux.dat: Likewise.
5401 * regformats/i386/i386-avx512.dat: Likewise.
5402 * regformats/i386/x32-avx512-linux.dat: Likewise.
5403 * regformats/i386/x32-avx512.dat: Likewise.
5404 * NEWS: Add note about new support for AVX512.
5407 2014-04-23 Pedro Alves <palves@redhat.com>
5409 * breakpoint.c (insert_bp_location): Tolerate errors if the
5410 breakpoint is set in a user-loaded objfile.
5411 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5412 location is marked shlib_disabled. If the breakpoint is set in a
5413 user-loaded objfile is a GDB-side memory breakpoint, validate it
5414 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5415 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5417 * mem-break.c (memory_validate_breakpoint): New function.
5418 * objfiles.c (userloaded_objfile_contains_address_p): New
5420 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5421 * target.h (memory_validate_breakpoint): New declaration.
5423 2014-04-23 Pedro Alves <palves@redhat.com>
5425 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5426 the breakpoint is set in a shared library, only suppress
5427 errors for software breakpoints, not hardware breakpoints.
5429 2014-04-22 Pedro Alves <palves@redhat.com>
5431 * infrun.c (schedlock_applies): New function, factored out from
5432 find_thread_needs_step_over.
5433 (find_thread_needs_step_over): Use it.
5434 (switch_back_to_stepped_thread): Always clear trap_expected if the
5435 step over is finished. Return early if scheduler locking applies.
5436 Look for the stepping thread and a potential step-over thread with
5438 (currently_stepping_or_nexting_callback): Delete.
5440 2014-04-22 Nick Clifton <nickc@redhat.com>
5442 * NEWS: Mention that ARM sim now supports tracing.
5444 2014-04-22 Yao Qi <yao@codesourcery.com>
5446 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5448 * tracefile.c (tracefile_fetch_registers): ... it. New
5450 * tracefile.h (tracefile_fetch_registers): Declare.
5451 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5452 tracefile_fetch_registers.
5454 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5457 * windows-nat.c (thread_rec): Don't display a warning when
5458 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5459 fails for any reason, set th->suspended to -1, so that we don't
5460 try to resume such a thread. Also, don't return NULL in these
5461 cases, to avoid completely ruin the session due to "PC register is
5462 not available" error.
5463 (do_windows_fetch_inferior_registers): Check errors in
5464 GetThreadContext call.
5465 (windows_continue): Accept an additional argument KILLED; if not
5466 zero, ignore errors in the SetThreadContext call, since the
5467 inferior was killed and is shutting down.
5468 (windows_resume, get_windows_debug_event)
5469 (windows_create_inferior, windows_mourn_inferior)
5470 (windows_kill_inferior): All callers of windows_continue changed
5471 to adjust to its new calling sequence.
5473 2014-04-19 Yao Qi <yao@codesourcery.com>
5475 * ctf.c (ctf_open): Call post_create_inferior.
5477 2014-04-19 Yao Qi <yao@codesourcery.com>
5479 * ctf.c (handle_id): New static variable.
5480 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5481 value. Get the declaration of event "register" and get length
5482 of field "contents".
5484 2014-04-19 Yao Qi <yao@codesourcery.com>
5486 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5488 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5490 * valops.c (oload_method_static): Remove unnecessary argument
5491 METHOD. Update all callers.
5493 2014-04-18 Pedro alves <palves@redhat.com>
5494 Tom Tromey <tromey@redhat.com>
5497 * frame.c (get_prev_frame_1): Rename to ...
5498 (get_prev_frame_always): ... this, and make extern. Adjust.
5499 (skip_artificial_frames): Use get_prev_frame_always.
5500 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5501 (get_frame_unwind_stop_reason): Adjust to rename.
5502 * frame.h (get_prev_frame_always): Declare.
5503 * inline-frame.c: Include frame.h.
5504 (inline_frame_this_id): Use get_prev_frame_always.
5506 2014-04-18 Tristan Gingold <gingold@adacore.com>
5508 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5509 code by using bfd_mach_o_get_base_address.
5511 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5513 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5514 (spu_ax_pseudo_register_collect): New function.
5515 (spu_ax_pseudo_register_push_stack): Likewise.
5516 (spu_dwarf_reg_to_regnum): Likewise.
5517 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5519 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5521 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5522 Replace FRAME argument with FRAME_ID.
5523 * gdbarch.c, gdbarch.h: Regenerate.
5524 * findvar.c (default_value_from_register): Add GDBARCH argument;
5525 replace FRAME by FRAME_ID. No longer call get_frame_id.
5526 (value_from_register): Update call to gdbarch_value_from_register.
5527 * value.h (default_value_from_register): Update prototype.
5528 * s390-linux-tdep.c (s390_value_from_register): Update interface
5529 and call to default_value_from_register.
5530 * spu-tdep.c (spu_value_from_register): Likewise.
5532 * findvar.c (address_from_register): Remove TYPE argument.
5533 Do not call value_from_register; use gdbarch_value_from_register
5534 with null_frame_id instead.
5535 * value.h (address_from_register): Update prototype.
5536 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5537 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5538 address_from_register interface change.
5540 2014-04-17 Yao Qi <yao@codesourcery.com>
5542 * gdbtypes.h: Update comments to link to types and macros'
5545 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5547 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5549 2014-04-16 Keith Seitz <keiths@redhat.com>
5552 * dwarf2read.c (skip_one_die): Check that all relative-offset
5553 sibling DIEs fall within range of the current reader's buffer.
5554 (read_partial_die): Likewise.
5556 2014-04-16 Keith Seitz <keiths@redhat.com>
5559 * cp-namespace.c (lookup_symbol_file): If the type name of
5560 `this' is NULL, return immediately.
5562 2014-04-14 Keith Seitz <keiths@redhat.com>
5565 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5566 from symbol_matches_domain in symtab.c. All local callers
5567 of symbol_matches_domain updated.
5568 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5569 search STRUCT_DOMAIN.
5570 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5571 independently. standard_lookup will do that automatically.
5572 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5573 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5574 (cp_lookup_symbol_in_namespace): Likewise.
5575 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5576 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5577 may return a STRUCT_DOMAIN match.
5578 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5579 * cp-support.c: Include language.h.
5580 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5582 * psymtab.c (match_partial_symbol): Compare the requested
5583 domain with the symbol's domain directly.
5584 (lookup_partial_symbol): Likewise.
5585 * symtab.c (lookup_symbol_in_language): Explain when/why
5586 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5587 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5588 appropriate languages.
5589 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5590 and moved to ada-lang.c
5591 (lookup_block_symbol): Explain that this function only returns
5592 symbol matching the requested DOMAIN.
5593 Compare the requested domain with the symbol's domain directly.
5594 (iterate_over_symbols): Compare the requested domain with the
5595 symbol's domain directly.
5596 * symtab.h (symbol_matches_domain): Remove.
5598 2014-04-14 Tom Tromey <tromey@redhat.com>
5601 * c-exp.y (type_aggregate_p): New function.
5602 (qualified_name, classify_inner_name): Use it.
5603 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5604 and TYPE_TARGET_TYPE of an enum type.
5605 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5607 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5608 handle TYPE_DECLARED_CLASS.
5609 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5611 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5612 * valops.c (enum_constant_from_type): New function.
5613 (value_aggregate_elt): Use it.
5614 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5617 2014-04-14 Tom Tromey <tromey@redhat.com>
5619 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5620 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5622 * value.h (value_aggregate_elt): Update.
5624 2014-04-14 Tom Tromey <tromey@redhat.com>
5626 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5628 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5630 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5631 (evaluate_subexp_standard): Pass noside argument.
5632 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5633 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5634 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5635 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5636 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5638 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5640 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5641 points to a constant blob.
5643 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5645 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5646 property and store it as the high bound and flag the range accordingly.
5647 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5648 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5649 * gdbtypes.h (enum range_flags): New enum.
5650 (struct range_bounds): Add flags member.
5652 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5654 * c-typeprint.c (c_type_print_varspec_suffix): Added
5655 check for not yet resolved high bound. If unresolved, print
5656 "variable length" string to the console instead of random
5659 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5661 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5663 (ada_template_to_fixed_record_type_1): Likewise.
5664 (ada_to_fixed_type_1): Likewise.
5665 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5666 (cp_print_value): Likewise.
5667 * d-valprint.c (dynamic_array_type): Likewise.
5668 * findvar.c (address_of_variable): Likewise.
5669 * jv-valprint.c (java_value_print): Likewise.
5670 * valops.c (value_ind): Likewise.
5671 * value.c (coerce_ref): Likewise.
5673 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5675 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5676 value and retrieve the dynamic type size.
5678 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5680 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5681 passed to sizeof is dynamic evaluate the argument to compute the length.
5683 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5684 Joel Brobecker <brobecker@adacore.com>
5686 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5687 (dwarf2_evaluate_property): New function.
5688 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5689 * dwarf2read.c (attr_to_dynamic_prop): New function.
5690 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5692 * gdbtypes.c: Include dwarf2loc.h.
5693 (is_dynamic_type): New function.
5694 (resolve_dynamic_type): New function.
5695 (resolve_dynamic_bounds): New function.
5696 (get_type_length): New function.
5697 (check_typedef): Use get_type_length to compute type length.
5698 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5699 (TYPE_LOW_BOUND_KIND): New macro.
5700 (is_dynamic_type): New function prototype.
5701 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5702 to resolve dynamic properties of the type. Update comment.
5703 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5705 2014-04-14 Richard Henderson <rth@redhat.com>
5707 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5709 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5710 Doug Evans <xdje42@gmail.com>
5712 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5713 dereference TYPE_CODE_REF values.
5715 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5717 Revert the following changes due to regressions:
5719 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5720 (dwarf2_evaluate_property): New function.
5721 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5722 * dwarf2read.c (attr_to_dynamic_prop): New function.
5723 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5725 * gdbtypes.c: Include dwarf2loc.h.
5726 (is_dynamic_type): New function.
5727 (resolve_dynamic_type): New function.
5728 (resolve_dynamic_bounds): New function.
5729 (get_type_length): New function.
5730 (check_typedef): Use get_type_length to compute type length.
5731 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5732 (TYPE_LOW_BOUND_KIND): New macro.
5733 (is_dynamic_type): New function prototype.
5734 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5735 to resolve dynamic properties of the type. Update comment.
5736 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5738 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5739 passed to sizeof is dynamic evaluate the argument to compute the length.
5741 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5742 value and retrieve the dynamic type size.
5744 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5745 (ada_template_to_fixed_record_type_1): Likewise.
5746 (ada_to_fixed_type_1): Likewise.
5747 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5748 (cp_print_value): Likewise.
5749 * d-valprint.c (dynamic_array_type): Likewise.
5750 * eval.c (evaluate_subexp_with_coercion): Likewise.
5751 * findvar.c (address_of_variable): Likewise.
5752 * jv-valprint.c (java_value_print): Likewise.
5753 * valops.c (value_ind): Likewise.
5754 * value.c (coerce_ref): Likewise.
5756 * c-typeprint.c (c_type_print_varspec_suffix): Added
5757 check for not yet resolved high bound. If unresolved, print
5758 "variable length" string to the console instead of random
5761 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5762 property and store it as the high bound and flag the range accordingly.
5763 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5764 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5765 * gdbtypes.h (enum range_flags): New enum.
5766 (struct range_bounds): Add flags member.
5768 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5769 points to a constant blob.
5771 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5772 (evaluate_subexp_standard): Pass noside argument.
5773 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5774 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5775 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5776 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5777 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5779 2014-04-11 Keith Seitz <keiths@redhat.com>
5782 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5783 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5786 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5788 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5789 (evaluate_subexp_standard): Pass noside argument.
5790 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5791 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5792 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5793 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5794 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5796 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5798 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5799 points to a constant blob.
5801 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5803 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5804 property and store it as the high bound and flag the range accordingly.
5805 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5806 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5807 * gdbtypes.h (enum range_flags): New enum.
5808 (struct range_bounds): Add flags member.
5810 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5812 * c-typeprint.c (c_type_print_varspec_suffix): Added
5813 check for not yet resolved high bound. If unresolved, print
5814 "variable length" string to the console instead of random
5817 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5819 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5820 (ada_template_to_fixed_record_type_1): Likewise.
5821 (ada_to_fixed_type_1): Likewise.
5822 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5823 (cp_print_value): Likewise.
5824 * d-valprint.c (dynamic_array_type): Likewise.
5825 * eval.c (evaluate_subexp_with_coercion): Likewise.
5826 * findvar.c (address_of_variable): Likewise.
5827 * jv-valprint.c (java_value_print): Likewise.
5828 * valops.c (value_ind): Likewise.
5829 * value.c (coerce_ref): Likewise.
5831 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5833 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5834 value and retrieve the dynamic type size.
5836 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5838 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5839 passed to sizeof is dynamic evaluate the argument to compute the length.
5841 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5843 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5844 (dwarf2_evaluate_property): New function.
5845 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5846 * dwarf2read.c (attr_to_dynamic_prop): New function.
5847 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5849 * gdbtypes.c: Include dwarf2loc.h.
5850 (is_dynamic_type): New function.
5851 (resolve_dynamic_type): New function.
5852 (resolve_dynamic_bounds): New function.
5853 (get_type_length): New function.
5854 (check_typedef): Use get_type_length to compute type length.
5855 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5856 (TYPE_LOW_BOUND_KIND): New macro.
5857 (is_dynamic_type): New function prototype.
5858 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5859 to resolve dynamic properties of the type. Update comment.
5860 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5862 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5864 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5865 declaring high/low bounds and change uses accordingly. Call
5866 create_range_type instead of create_static_range_type.
5867 * gdbtypes.c (create_range_type): New function.
5868 (create_range_type): Convert bounds into struct bound_prop and pass
5869 them to create_range_type.
5870 * gdbtypes.h (struct bound_prop): New struct.
5871 (create_range_type): New function prototype.
5872 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5873 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5874 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5876 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5878 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5880 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5881 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5882 * ada-lang.c: All uses of create_range_type updated.
5883 * coffread.c: All uses of create_range_type updated.
5884 * dwarf2read.c: All uses of create_range_type updated.
5885 * f-exp.y: All uses of create_range_type updated.
5886 * m2-valprint.c: All uses of create_range_type updated.
5887 * mdebugread.c: All uses of create_range_type updated.
5888 * stabsread.c: All uses of create_range_type updated.
5889 * valops.c: All uses of create_range_type updated.
5890 * valprint.c: All uses of create_range_type updated.
5892 2014-04-10 Pedro Alves <palves@redhat.com>
5894 * breakpoint.c (single_step_breakpoints)
5895 (single_step_gdbarch): Move up in the file.
5896 (one_breakpoint_xfer_memory): New function, factored out from ...
5897 (breakpoint_xfer_memory): ... here. Also process single-step
5900 2014-04-09 Tristan Gingold <gingold@adacore.com>
5902 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5904 (darwin_decode_exception_message): Free port only after use.
5906 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5908 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5909 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5910 when setting the size of call_length.
5912 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5914 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5915 dereference TYPE_CODE_REF values.
5917 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5919 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5920 end of warning message.
5922 2014-04-03 Doug Evans <dje@google.com>
5924 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5925 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5927 2014-04-02 Alan Modra <amodra@gmail.com>
5929 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5930 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5931 (struct symbol_file_add_from_memory_args): Add size field.
5932 (find_vdso_size): New function.
5933 (add_vsyscall_page): Attempt to find vdso size.
5935 2014-04-01 Doug Evans <dje@google.com>
5937 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5939 2014-04-01 Tristan Gingold <gingold@adacore.com>
5941 * darwin-nat.c (darwin_encode_reply): Add prototype.
5942 (darwin_decode_exception_message): Reply to unknown inferiors.
5943 (darwin_decode_message): Handle message by id. Ignore message
5944 to unknown inferior.
5945 (darwin_wait): Discard unknown messages, add debug trace.
5947 2014-03-31 Doug Evans <dje@google.com>
5949 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5952 2014-03-31 Doug Evans <dje@google.com>
5954 New option "set print symbol-loading".
5956 * solib.c (solib_read_symbols): Only print symbol loading messages
5958 (solib_add): If symbol loading is in "brief" mode, notify user
5959 symbols are being loaded.
5960 (reload_shared_libraries_1): Ditto.
5961 * symfile.c (print_symbol_loading_off): New static global.
5962 (print_symbol_loading_brief): New static global.
5963 (print_symbol_loading_full): New static global.
5964 (print_symbol_loading_enums): New static global.
5965 (print_symbol_loading): New static global.
5966 (print_symbol_loading_p): New function.
5967 (symbol_file_add_with_addrs): Only print symbol loading messages
5969 (_initialize_symfile): Register "print symbol-loading" set/show
5971 * symfile.h (print_symbol_loading_p): Declare.
5973 2014-03-30 Doug Evans <xdje42@gmail.com>
5975 * infrun.c (set_last_target_status): New function.
5976 (handle_inferior_event): Call it.
5978 2014-03-30 Doug Evans <xdje42@gmail.com>
5980 * inferior.h (enum stop_kind): Improve comment.
5982 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5984 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5985 a reference, strip the reference layer before calling
5986 the lang_ops value_has_mutated callback.
5988 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5990 Remove some globals from our parser.
5991 * language.c (unk_lang_parser): Add "struct parser_state"
5993 * language.h (struct language_defn) <la_parser>: Likewise.
5994 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5995 (initialize_expout): Add "struct parser_state" argument.
5996 Rewrite function to use the parser state.
5997 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5998 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5999 write_exp_elt_longcst, write_exp_elt_dblcst,
6000 write_exp_elt_decfloatcst, write_exp_elt_type,
6001 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6002 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6003 write_dollar_variable): Likewise.
6004 (parse_exp_in_context_1): Use parser state.
6005 (insert_type_address_space): Add "struct parser_state" argument.
6007 (increase_expout_size): New function.
6008 * parser-defs.h: Forward declare "struct language_defn" and
6009 "struct parser_state".
6010 (expout, expout_size, expout_ptr): Remove extern declarations.
6011 (parse_gdbarch, parse_language): Rewrite macro declarations to
6012 accept the parser state.
6013 (struct parser_state): New struct.
6014 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6015 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6016 write_exp_elt_decfloatcst, write_exp_elt_type,
6017 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6018 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6019 write_exp_msymbol, write_dollar_variable,
6020 mark_struct_expression, insert_type_address_space): Add "struct
6021 parser_state" argument.
6022 (increase_expout_size): New function.
6023 * utils.c (do_clear_parser_state): New function.
6024 (make_cleanup_clear_parser_state): Likewise.
6025 * utils.h (make_cleanup_clear_parser_state): New function
6027 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6028 Update calls to write_exp* in order to pass the parser state.
6029 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6030 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6031 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6032 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6033 * stap-probe.c (stap_parse_register_operand): Likewise.
6034 (stap_parse_single_operand): Likewise.
6035 (stap_parse_argument_1): Likewise.
6036 (stap_parse_argument): Use parser state.
6037 * stap-probe.h: Include "parser-defs.h".
6038 (struct stap_parse_info) <pstate>: New field.
6039 * c-exp.y (parse_type): Rewrite to use parser state.
6040 (yyparse): Redefine to c_parse_internal.
6041 (pstate): New global variable.
6042 (parse_number): Add "struct parser_state" argument.
6043 (write_destructor_name): Likewise.
6044 (type_exp): Update calls to write_exp* and similars in order to
6046 (exp1, exp, variable, qualified_name, space_identifier,
6047 typename, typebase): Likewise.
6048 (write_destructor_name, parse_number, lex_one_token,
6049 classify_name, classify_inner_name, c_parse): Add "struct
6050 parser_state" argument. Update function to use parser state.
6051 * c-lang.h: Forward declare "struct parser_state".
6052 (c_parse): Add "struct parser_state" argument.
6053 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6054 (yyparse): Redefine macro to ada_parse_internal.
6055 (pstate): New variable.
6056 (write_int, write_object_renaming, write_var_or_type,
6057 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6058 type_int, type_long, type_long_long, type_float, type_double,
6059 type_long_double, type_char, type_boolean, type_system_address):
6060 Add "struct parser_state" argument.
6061 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6062 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6063 var_or_type, aggregate, aggregate_component_list,
6064 positional_list, others, component_group,
6065 component_associations): Update calls to write_exp* and similar
6066 functions in order to use parser state.
6067 (ada_parse, write_var_from_sym, write_int,
6068 write_exp_op_with_string, write_object_renaming,
6069 find_primitive_type, write_selectors, write_ambiguous_var,
6070 write_var_or_type, write_name_assoc, type_int, type_long,
6071 type_long_long, type_float, type_double, type_long_double,
6072 type_char, type_boolean, type_system_address): Add "struct
6073 parser_state" argument. Adjust function to use parser state.
6074 * ada-lang.c (parse): Likewise.
6075 * ada-lang.h: Forward declare "struct parser_state".
6076 (ada_parse): Add "struct parser_state" argument.
6077 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6078 calls to both functions.
6079 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6081 (yyparse): Redefine macro to f_parse_internal.
6082 (pstate): New variable.
6083 (parse_number): Add "struct parser_state" argument.
6084 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6085 and similars in order to use parser state.
6086 (parse_number): Adjust code to use parser state.
6088 (f_parse): New function.
6089 * f-lang.h: Forward declare "struct parser_state".
6090 (f_parse): Add "struct parser_state" argument.
6091 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6093 (yyparse): Redefine macro for java_parse_internal.
6094 (pstate): New variable.
6095 (push_expression_name, push_expression_name, insert_exp): Add
6096 "struct parser_state" argument.
6097 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6098 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6099 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6100 PostIncrementExpression, PostDecrementExpression,
6101 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6102 UnaryExpressionNotPlusMinus, CastExpression,
6103 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6104 RelationalExpression, EqualityExpression, AndExpression,
6105 ExclusiveOrExpression, InclusiveOrExpression,
6106 ConditionalAndExpression, ConditionalOrExpression,
6107 ConditionalExpression, Assignment, LeftHandSide): Update
6108 calls to write_exp* and similars in order to use parser state.
6109 (parse_number): Ajust code to use parser state.
6111 (java_parse): New function.
6112 (push_variable): Add "struct parser_state" argument. Adjust
6113 code to user parser state.
6114 (push_fieldnames, push_qualified_expression_name,
6115 push_expression_name, insert_exp): Likewise.
6116 * jv-lang.h: Forward declare "struct parser_state".
6117 (java_parse): Add "struct parser_state" argument.
6118 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6120 (yyparse): Redefine macro to m2_parse_internal.
6121 (pstate): New variable.
6122 (type_exp, exp, fblock, variable, type): Update calls to
6123 write_exp* and similars to use parser state.
6125 (m2_parse): New function.
6126 * m2-lang.h: Forward declare "struct parser_state".
6127 (m2_parse): Add "struct parser_state" argument.
6128 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6129 * objc-lang.h: Forward declare "struct parser_state".
6130 (end_msglist): Add "struct parser_state" argument.
6131 * p-exp.y (parse_type): Rewrite macro to use parser state.
6132 (yyparse): Redefine macro to pascal_parse_internal.
6133 (pstate): New variable.
6134 (parse_number): Add "struct parser_state" argument.
6135 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6136 write_exp* and similars in order to use parser state.
6137 (parse_number, yylex): Adjust code to use parser state.
6138 (pascal_parse): New function.
6139 * p-lang.h: Forward declare "struct parser_state".
6140 (pascal_parse): Add "struct parser_state" argument.
6141 * go-exp.y (parse_type): Rewrite macro to use parser state.
6142 (yyparse): Redefine macro to go_parse_internal.
6143 (pstate): New variable.
6144 (parse_number): Add "struct parser_state" argument.
6145 (type_exp, exp1, exp, variable, type): Update calls to
6146 write_exp* and similars in order to use parser state.
6147 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6148 to use parser state.
6149 (go_parse): Likewise.
6150 * go-lang.h: Forward declare "struct parser_state".
6151 (go_parse): Add "struct parser_state" argument.
6153 2014-03-27 Doug Evans <dje@google.com>
6155 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6157 2014-03-27 Doug Evans <dje@google.com>
6159 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6160 Remove argument abbrev_section. All callers updated.
6162 2014-03-27 Doug Evans <dje@google.com>
6164 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6165 addr_base, ranges_base.
6167 2014-03-26 Keith Seitz <keiths@redhat.com>
6169 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6170 types, not VAR_DOMAIN.
6172 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6174 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6176 * features/nios2-linux.c: Regenerated.
6177 * features/nios2.c: Regenerated.
6179 2014-03-25 Pedro Alves <palves@redhat.com>
6181 * cli/cli-script.c (script_from_file): Force the interpreter to
6184 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6186 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6187 small stack allocation.
6189 2014-03-24 Tristan Gingold <gingold@adacore.com>
6191 * darwin-nat.c (exc_server): Remove unused prototype.
6192 (darwin_dump_message): Correctly display data on x86_64.
6193 (darwin_encode_reply): Fix style.
6194 Add comments and fix indentation.
6196 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6198 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6200 2014-03-22 Doug Evans <xdje42@gmail.com>
6202 * infcmd.c: Whitespace fixes.
6203 (interrupt_command): Merge two function comments into one.
6205 2014-03-22 Doug Evans <xdje42@gmail.com>
6207 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6210 2014-03-22 Yao Qi <yao@codesourcery.com>
6212 * remote.c (target_read_live_memory): Remove.
6213 (memory_xfer_live_readonly_partial): Rename it to
6214 remote_xfer_live_readonly_partial. Remove argument 'object'.
6215 All callers updated. Call remote_read_bytes_1
6216 instead of target_read_live_memory.
6217 * tracepoint.c (set_traceframe_number): Remove.
6218 (make_cleanup_restore_traceframe_number): Likewise .
6219 * tracepoint.h (set_traceframe_number): Remove declaration.
6220 (make_cleanup_restore_traceframe_number): Likewise.
6222 2014-03-22 Yao Qi <yao@codesourcery.com>
6224 * remote.c (remote_read_bytes): Move code on reading from the
6226 (remote_read_bytes_1): ... here. New function.
6228 2014-03-22 Yao Qi <yao@codesourcery.com>
6230 * ctf.c (ctf_xfer_partial): Check the return value of
6231 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6232 return TARGET_XFER_UNAVAILABLE.
6233 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6234 * target.c (target_read_live_memory): Move it to remote.c.
6235 (memory_xfer_live_readonly_partial): Likewise.
6236 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6237 * remote.c (target_read_live_memory): Moved from target.c.
6238 (memory_xfer_live_readonly_partial): Likewise.
6239 (remote_read_bytes): Factored out from
6240 memory_xfer_partial_1.
6242 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6244 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6247 2014-03-21 Pedro Alves <palves@redhat.com>
6249 * infrun.c (normal_stop): Extend comment.
6251 2014-03-21 Hui Zhu <hui@codesourcery.com>
6252 Pedro Alves <palves@redhat.com>
6254 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6256 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6257 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6258 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6260 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6262 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6263 `z' formatted output modifier.
6265 2014-03-20 Tom Tromey <tromey@redhat.com>
6266 Sergio Durigan Junior <sergiodj@redhat.com>
6268 * probe.c (parse_probes): Turn assert into an ordinary error.
6269 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6270 exceptions when parsing probes. Rearrange the code for clarity.
6272 2014-03-20 Tom Tromey <tromey@redhat.com>
6275 * top.c (execute_command): Only dispatch events if the command
6278 2014-03-20 Tom Tromey <tromey@redhat.com>
6281 * infcall.c: Include event-top.h.
6282 (run_inferior_call): Call async_disable_stdin if needed.
6284 2014-03-20 Pedro Alves <palves@redhat.com>
6286 * infrun.c (prepare_to_proceed): Delete.
6287 (thread_still_needs_step_over): New function.
6288 (find_thread_needs_step_over): New function.
6289 (proceed): If the current thread needs a step-over, set its
6290 steping_over_breakpoint flag. Adjust to use
6291 find_thread_needs_step_over instead of prepare_to_proceed.
6292 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6293 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6295 (switch_back_to_stepped_thread): Step over breakpoints of all
6296 threads not the stepping thread, before switching back to the
6299 2014-03-20 Pedro Alves <palves@redhat.com>
6301 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6303 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6304 * infrun.c (saved_singlestep_ptid)
6305 (stepping_past_singlestep_breakpoint): Delete.
6306 (resume): Remove stepping_past_singlestep_breakpoint handling.
6307 (proceed): Store the prev_pc of the stepping thread too.
6308 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6310 (enum infwait_states): Delete infwait_thread_hop_state.
6311 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6313 (handle_inferior_event): Adjust.
6314 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6315 handling and the thread-hop code. Before removing single-step
6316 breakpoints, check whether the thread hit a single-step breakpoint
6317 of another thread. If it did, the trap is not a random signal.
6318 (switch_back_to_stepped_thread): If the event thread hit a
6319 single-step breakpoint, unblock it before switching to the
6320 stepping thread. Handle the case of the stepped thread having
6322 (keep_going): Handle the case of the current thread moving past a
6323 single-step breakpoint.
6325 2014-03-20 Pedro Alves <palves@redhat.com>
6328 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6329 are being stepped over.
6330 (breakpoint_address_match): Make extern.
6331 * breakpoint.h (breakpoint_address_match): New declaration.
6332 * inferior.h (stepping_past_instruction_at): New declaration.
6333 * infrun.c (struct step_over_info): New type.
6334 (step_over_info): New global.
6335 (set_step_over_info, clear_step_over_info)
6336 (stepping_past_instruction_at): New functions.
6337 (handle_inferior_event): Clear the step-over info when
6338 trap_expected is cleared.
6339 (resume): Remove now stale comment.
6340 (clear_proceed_status): Clear step-over info.
6341 (proceed): Adjust step-over handling to set or clear the step-over
6342 info instead of removing all breakpoints.
6343 (handle_signal_stop): When setting up a thread-hop, don't remove
6345 (stop_stepping): Clear step-over info.
6346 (keep_going): Adjust step-over handling to set or clear step-over
6347 info and then always inserting breakpoints, instead of removing
6348 all breakpoints when stepping over one.
6350 2014-03-20 Pedro Alves <palves@redhat.com>
6352 * infrun.c (previous_inferior_ptid): Adjust comment.
6353 (deferred_step_ptid): Delete.
6354 (infrun_thread_ptid_changed, prepare_to_proceed)
6355 (init_wait_for_inferior): Adjust.
6356 (handle_signal_stop): Delete deferred_step_ptid handling.
6358 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6361 * defs.h (sync_quit_force_run): New declaration.
6362 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6363 * event-top.c (async_sigterm_handler): New declaration.
6364 (async_sigterm_token): New variable.
6365 (async_init_signals): Create also async_sigterm_token.
6366 (async_sigterm_handler): New function.
6367 (sync_quit_force_run): New variable.
6368 (handle_sigterm): Replace quit_force call by other calls.
6369 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6371 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6373 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6374 offset into SPE pseudo registers.
6376 2014-03-18 Pedro Alves <palves@redhat.com>
6379 * inferior.h (print_stop_event): Declare.
6380 * infrun.c (print_stop_event): New, factored out from ...
6381 (normal_stop): ... this.
6382 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6383 of bpstat_print/print_stack_frame.
6385 2014-03-17 Tom Tromey <tromey@redhat.com>
6387 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6389 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6391 * ada-lang.c (decode_constrained_packed_array): Perform a
6392 minimal coercion for reference with coerce_ref instead of
6395 2014-03-17 Tristan Gingold <gingold@adacore.com>
6397 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6398 (darwin_solib_create_inferior_hook): Emit a warning if version
6401 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6403 * python/py-value.c (get_field_flag): Cast flag_name argument to
6404 PyObject_GetAttrString to support Python 2.4.
6406 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6408 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6409 (Global Maintainers): Remove Jan Kratochvil.
6411 2014-03-14 Pedro Alves <palves@redhat.com>
6413 * inferior.h (terminal_ours_for_output): Rename to ...
6414 (child_terminal_ours_for_output): ... this.
6415 (terminal_save_ours): Rename to ...
6416 (child_terminal_save_ours): ... this.
6417 (terminal_ours): Rename to ...
6418 (child_terminal_ours): ... this.
6419 (terminal_inferior): Rename to ...
6420 (child_terminal_inferior): ... this.
6421 (terminal_init_inferior): Rename to ...
6422 (child_terminal_init_inferior): ... this.
6423 (terminal_init_inferior_with_pgrp): Rename to ...
6424 (child_terminal_init_inferior_with_pgrp): ... this.
6425 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6426 (child_terminal_init_with_pgrp): ... this.
6427 (terminal_save_ours): Rename to ...
6428 (child_terminal_save_ours): ... this.
6429 (terminal_init_inferior): Rename to ...
6430 (child_terminal_init): ... this. Adjust.
6431 (terminal_inferior): Rename to ...
6432 (child_terminal_inferior): ... this.
6433 (terminal_ours_for_output): Rename to ...
6434 (child_terminal_ours_for_output): ... this. Adjust.
6435 (terminal_ours): Rename to ...
6436 (child_terminal_ours): ... this.
6437 (terminal_ours_1): Rename to ...
6438 (child_terminal_ours_1): ... this. Adjust.
6439 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6440 * windows-nat.c (do_initial_windows_stuff): Adjust.
6441 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6442 (gnu_terminal_init): ... this. Adjust.
6443 (gnu_target): Adjust.
6444 * inf-child.c (inf_child_target): Adjust.
6446 2014-03-13 Doug Evans <xdje42@gmail.com>
6449 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6452 2014-03-13 Doug Evans <xdje42@gmail.com>
6454 * value.c (record_latest_value): Call release_value_or_incref
6455 instead of release_value.
6457 2014-03-13 Pedro Alves <palves@redhat.com>
6459 * procfs.c (procfs_target): Don't override to_shortname,
6460 to_longname or to_doc.
6462 2014-03-13 Pedro Alves <palves@redhat.com>
6464 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6465 Unix in user visible strings.
6467 2014-03-12 Stan Shebs <stan@codesourcery.com>
6469 * gdbtypes.h: Annotate comments for Doxygen, add a page
6470 block comment with some general info.
6472 2014-03-12 Pedro Alves <palves@redhat.com>
6474 * infcmd.c (prepare_execution_command): New function, factored out
6475 from several execution commands.
6476 (run_command_1, continue_command, step_1, jump_command)
6477 (signal_command, until_command, advance_command, finish_command)
6478 (attach_command): Use prepare_execution_command.
6480 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6482 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6485 (struct arm_linux_thread_points): Removed.
6486 (struct arm_linux_process_info): New.
6487 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6488 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6489 (arm_linux_find_breakpoints_by_tid): Removed.
6490 (struct arch_lwp_info): New.
6491 (arm_linux_find_process_pid): New functions.
6492 (arm_linux_add_process): New functions.
6493 (arm_linux_process_info_get): New functions.
6494 (arm_linux_forget_process): New function.
6495 (arm_linux_get_debug_reg_state): New function.
6496 (struct update_registers_data): New.
6497 (update_registers_callback): New function.
6498 (arm_linux_insert_hw_breakpoint1): Updated.
6499 (arm_linux_remove_hw_breakpoint1): Updated.
6500 (arm_linux_insert_hw_breakpoint): Updated.
6501 (arm_linux_remove_hw_breakpoint): Updated.
6502 (arm_linux_insert_watchpoint): Updated.
6503 (arm_linux_remove_watchpoint): Updated.
6504 (arm_linux_new_thread): Updated.
6505 (arm_linux_prepare_to_resume): New function.
6506 (arm_linux_new_fork): New function.
6507 (_initialize_arm_linux_nat): Updated.
6509 2014-03-12 Pedro Alves <palves@redhat.com>
6511 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6513 2014-03-12 Tom Tromey <tromey@redhat.com>
6515 * inf-child.c (return_zero): New function.
6516 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6517 * aix-thread.c (aix_thread_inferior_created): New function.
6518 (aix_thread_attach): Remove.
6519 (init_aix_thread_ops): Don't set to_attach.
6520 (_initialize_aix_thread): Register inferior_created observer.
6521 * corelow.c (init_core_ops): Don't set to_attach or
6523 * exec.c (init_exec_ops): Don't set to_attach or
6525 * infcmd.c (run_command_1): Use find_run_target. Make direct
6527 (attach_command): Use find_attach_target. Make direct target
6529 * record-btrace.c (init_record_btrace_ops): Don't set
6531 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6533 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6534 set to_create_inferior.
6535 * target.c (complete_target_initialization): Add assertion.
6536 (target_create_inferior): Remove.
6537 (find_default_attach, find_default_create_inferior): Remove.
6538 (find_attach_target, find_run_target): New functions.
6539 (find_default_is_async_p, find_default_can_async_p)
6540 (target_supports_non_stop, target_attach): Remove.
6541 (init_dummy_target): Don't set to_create_inferior or
6542 to_supports_non_stop.
6543 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6544 TARGET_DEFAULT_FUNC.
6545 <to_create_inferior>: Add comment.
6546 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6547 TARGET_DEFAULT_RETURN.
6548 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6549 (find_attach_target, find_run_target): Declare.
6550 (target_create_inferior): Remove.
6551 (target_has_execution_1): Update comment.
6552 (target_supports_non_stop): Remove.
6553 * target-delegates.c: Rebuild.
6555 2014-03-12 Pedro Alves <palves@redhat.com>
6557 * inf-child.h: Update comment to not mention Unix.
6559 2014-03-12 Pedro Alves <palves@redhat.com>
6561 * inf-child.c: Update top comment to not mention Unix. Add
6562 generic comment describing how this target is meant to be used.
6563 (inf_child_post_attach, inf_child_post_startup_inferior)
6564 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6567 2014-03-12 Pedro Alves <palves@redhat.com>
6569 * nto-procfs.c: Include inf-child.h.
6570 (procfs_ops): Delete global.
6571 (procfs_can_run): Delete method.
6572 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6573 target pointer instead of referencing procfs_ops.
6574 (procfs_prepare_to_store): Delete.
6575 (init_procfs_ops): Delete function.
6576 (procfs_target): New function, based on init_procfs_ops, but
6577 inherit inf_child_target.
6578 (_initialize_procfs): Use procfs_target.
6580 2014-03-12 Pedro Alves <palves@redhat.com>
6582 * windows-nat.c: Include inf-child.h.
6583 (windows_ops): Delete global.
6584 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6586 (init_windows_ops): Delete function.
6587 (windows_target): New function, based on init_windows_ops, but
6588 inherit inf_child_target.
6589 (_initialize_windows_nat): Use windows_target. Install x86
6590 specific target methods here.
6592 2014-03-10 Doug Evans <xdje42@gmail.com>
6594 * guile/guile.c (call_initialize_gdb_module): New function.
6595 (initialize_guile): Replace call to scm_init_guile with call to
6598 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6600 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6601 in call to TYPE_CODE macro.
6603 2014-03-10 Jerome Guitton <guitton@adacore.com>
6605 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6606 Resolve tagged types to full view.
6608 2014-03-10 Hui Zhu <hui@codesourcery.com>
6610 * target.h (target_insert_breakpoint): Remove "hardware" from its
6613 2014-03-07 Doug Evans <dje@google.com>
6615 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6617 2014-03-07 Doug Evans <dje@google.com>
6619 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6620 Remove unused local comp_dir_attr. Assert exactly one of
6621 stub_comp_unit_die, stub_comp_dir is non-NULL.
6623 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6625 * target.h (complete_target_initialization, add_target):
6628 2014-03-07 Pedro Alves <palves@redhat.com>
6630 * go32-nat.c: Include inf-child.h.
6631 (go32_ops): Delete global.
6632 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6634 (go32_create_inferior): Push the passed in target pointer instead
6635 of referencing go32_ops.
6636 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6637 (go32_target): New function, based on init_go32_ops, but inherit
6639 (_initialize_go32_nat): Use go32_target. Move parts of
6642 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6644 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6645 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6646 SYMBOL_VALUE_ADDRESS.
6647 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6649 2014-03-06 Yao Qi <yao@codesourcery.com>
6651 * breakpoint.c (get_tracepoint_by_number): Remove argument
6652 optional_p. All callers updated. Adjust comments. Update
6654 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6656 2014-03-06 Yao Qi <yao@codesourcery.com>
6658 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6659 early if get_number returns zero. Use 'p' instead of 'args'.
6661 2014-03-06 Yao Qi <yao@codesourcery.com>
6663 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6666 2014-03-06 Yao Qi <yao@codesourcery.com>
6668 PR breakpoints/16508
6669 * tracepoint.c (check_trace_running): New function.
6670 (trace_find_command): Move code to check_trace_running and
6671 call check_trace_running.
6672 (trace_find_pc_command): Likewise.
6673 (trace_find_tracepoint_command): Likewise.
6674 (trace_find_line_command): Likewise.
6675 (trace_find_range_command): Likewise.
6676 * tracepoint.h (check_trace_running): Likewise.
6677 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6679 2014-03-06 Yao Qi <yao@codesourcery.com>
6681 * target.h (struct target_ops) <to_traceframe_info>: Use
6682 TARGET_DEFAULT_NORETURN (tcomplain ()).
6683 * target-delegates.c: Regenerated.
6685 2014-03-05 Pedro Alves <palves@redhat.com>
6688 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6689 void. Update comment.
6690 (dcache_xfer_memory): Delete.
6691 (dcache_read_memory_partial): New, based on the read bits of
6693 (dcache_update): Add status parameter. Use ULONGEST for len, and
6694 adjust. Discard cache lines if the reason for the update was
6696 * dcache.h (dcache_xfer_memory): Delete declaration.
6697 (dcache_read_memory_partial): New declaration.
6698 (dcache_update): Update prototype.
6699 * target.c (raw_memory_xfer_partial): Update the dcache here.
6700 (memory_xfer_partial_1): Don't handle dcache writes here.
6702 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6704 * remote-sim.c (gdbsim_load): Add const to prog.
6706 2014-03-03 Tom Tromey <tromey@redhat.com>
6708 * elfread.c (probe_key): Change to bfd_data.
6709 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6710 now per-BFD, not per-objfile.
6711 * stap-probe.c (stap_probe_destroy): Update comment.
6712 (handle_stap_probe): Allocate on the per-BFD obstack.
6714 2014-03-03 Tom Tromey <tromey@redhat.com>
6716 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6717 * breakpoint.c (create_longjmp_master_breakpoint): Use
6719 (add_location_to_breakpoint, bkpt_probe_insert_location)
6720 (bkpt_probe_remove_location): Update.
6721 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6722 * elfread.c (elf_symfile_relocate_probe): Remove.
6723 (elf_probe_fns): Update.
6724 (insert_exception_resume_breakpoint): Change type of "probe"
6725 parameter to bound_probe.
6726 (check_exception_resume): Update.
6727 * objfiles.c (objfile_relocate1): Don't relocate probes.
6728 * probe.c (bound_probe_s): New typedef.
6729 (parse_probes): Use get_probe_address. Set sal's objfile.
6730 (find_probe_by_pc): Return a bound_probe.
6731 (collect_probes): Return a VEC(bound_probe_s).
6732 (compare_probes): Update.
6733 (gen_ui_out_table_header_info): Change type of "probes"
6735 (info_probes_for_ops): Update.
6736 (get_probe_address): New function.
6737 (probe_safe_evaluate_at_pc): Update.
6738 * probe.h (struct probe_ops) <get_probe_address>: New field.
6739 <set_semaphore, clear_semaphore>: Add objfile parameter.
6740 (struct probe) <objfile>: Remove field.
6742 <address>: Update comment.
6743 (struct bound_probe): New.
6744 (find_probe_by_pc): Return a bound_probe.
6745 (get_probe_address): Declare.
6746 * solib-svr4.c (struct probe_and_action) <address>: New field.
6747 (hash_probe_and_action, equal_probe_and_action): Update.
6748 (register_solib_event_probe): Add address parameter.
6749 (solib_event_probe_at): Update.
6750 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6752 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6753 (stap_get_probe_address): New function.
6754 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6755 (compile_probe_arg): Update.
6756 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6758 (handle_stap_probe): Don't relocate the probe.
6759 (stap_relocate): Remove.
6760 (stap_gen_info_probes_table_values): Update.
6761 (stap_probe_ops): Remove stap_relocate.
6762 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6763 (debug_sym_probe_fns): Update.
6764 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6765 * symtab.c (init_sal): Use memset.
6766 * symtab.h (struct symtab_and_line) <objfile>: New field.
6767 * tracepoint.c (start_tracing, stop_tracing): Update.
6769 2014-03-03 Tom Tromey <tromey@redhat.com>
6771 * probe.h (parse_probes, find_probe_by_pc)
6772 (find_probes_in_objfile): Fix comments.
6774 2014-03-02 Doug Evans <xdje42@gmail.com>
6776 * infrun.c (handle_signal_stop): Replace test for
6777 TARGET_WAITKIND_STOPPED with an assert.
6779 2014-03-02 Doug Evans <xdje42@gmail.com>
6781 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6783 2014-03-02 Doug Evans <xdje42@gmail.com>
6785 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6787 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6789 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6791 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6793 * i386obsd-nat.c: Include "obsd-nat.h".
6794 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6796 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6798 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6800 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6802 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6804 * mips64obsd-nat.c: Include "obsd-nath".
6805 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6807 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6809 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6811 * amd64obsd-nat.c: Include "obsd-nat,h.
6812 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6814 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6816 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6818 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6819 (find_overload_match): Update call to find_oload_champ.
6820 (find_oload_champ_namespace_loop): Likewise
6822 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6824 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6826 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6827 * config/sparc/obsd64.mh: New file.
6828 * sparc64obsd-nat.c: New file.
6830 * obsd-nat.h: New file.
6831 * obsd-nat.c: New file.
6832 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6833 (ALLDEPFILES): Add obsd-nat.c.
6835 2014-02-28 Tom Tromey <tromey@redhat.com>
6837 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6838 * cli-out.h (cli_ui_out_impl): Now const.
6839 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6840 * ui-out.c (struct ui_out) <impl>: Now const.
6841 (default_ui_out_impl): Now const.
6842 (ui_out_new): Make 'impl' parameter const.
6843 * ui-out.h (ui_out_new): Update.
6845 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6847 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6849 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6851 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6853 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6855 Additional PR 8882 fix.
6856 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6858 2014-02-27 Pedro Alves <palves@redhat.com>
6860 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6863 2014-02-27 Pedro Alves <palves@redhat.com>
6866 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6867 * nat/linux-waitpid.c: Include string.h.
6868 (status_to_str): Moved here and made extern.
6869 * nat/linux-waitpid.h (status_to_str): New declaration.
6871 2014-02-27 Hui Zhu <hui@codesourcery.com>
6874 * infrun.c (ptid_match): Move ...
6875 * common/ptid.c (ptid_match): ... here.
6876 * inferior.h (ptid_match): Move ...
6877 * common/ptid.h (ptid_match): ... here.
6879 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6881 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6882 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6885 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6887 * obsd-tdep.c (obsd_auxv_parse): New function.
6888 (obsd_init_abi): Set auxv_parse.
6890 * gdbarch.sh (auxv_parse): New.
6891 * gdbarch.h: Regenerated.
6892 * gdbarch.c: Regenerated.
6893 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6895 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6897 * guile/scm-value.c (gdbscm_history_append_x): New function.
6898 (value_functions): Add it.
6900 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6902 * dwarf2read.c (attr_value_as_address): New function.
6903 (dwarf2_find_base_address, read_call_site_scope): Use
6904 attr_value_as_address in place of DW_ADDR.
6905 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6906 the low and high addresses. Slight rework of the handling
6907 of the high pc being a constant form, and limit it to
6908 DWARF verson 4 or higher.
6909 (dwarf2_record_block_ranges): Likewise.
6910 (read_partial_die): Likewise.
6911 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6913 2014-02-26 Tom Tromey <tromey@redhat.com>
6915 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6917 2014-02-26 Tom Tromey <tromey@redhat.com>
6919 * elfread.c (elf_read_minimal_symbols): Return early if
6920 minimal symbols have already been read. Add "ei" parameter.
6921 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6922 * minsyms.c (prim_record_minimal_symbol_full): Update.
6923 * objfiles.h (struct objstats) <n_minsyms>: Move...
6924 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6925 * symmisc.c (print_objfile_statistics): Update.
6927 2014-02-26 Tom Tromey <tromey@redhat.com>
6929 * elfread.c (elf_read_minimal_symbols): New function, from
6931 (elf_symfile_read): Call it.
6933 2014-02-26 Tom Tromey <tromey@redhat.com>
6935 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6936 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6937 (lookup_minimal_symbol_solib_trampoline)
6938 (lookup_minimal_symbol_by_pc_section_1)
6939 (lookup_minimal_symbol_and_objfile): Update.
6940 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6941 Don't allocate a minimal symbol if minsyms have already been read.
6942 (build_minimal_symbol_hash_tables): Update.
6943 (install_minimal_symbols): Do nothing if minsyms already read.
6944 Use the per-BFD obstack.
6945 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6946 * objfiles.c (allocate_objfile): Call
6947 terminate_minimal_symbol_table later.
6948 (have_minimal_symbols): Update.
6949 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6950 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6951 Move from struct objfile.
6952 <minsyms_read>: New field.
6953 (struct objfile) <msymbols, minimal_symbol_count,
6954 msymbol_hash, msymbol_demangled_hash>: Move.
6955 (ALL_OBJFILE_MSYMBOLS): Update.
6956 * symfile.c (read_symbols): Set minsyms_read.
6957 (reread_symbols): Update.
6958 * symmisc.c (dump_objfile, dump_msymbols): Update.
6960 2014-02-26 Tom Tromey <tromey@redhat.com>
6962 * minsyms.c (msymbols_sort): Remove.
6963 * minsyms.h (msymbols_sort): Remove.
6964 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6965 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6966 * elfread.c (elf_symtab_read): Don't add section offsets.
6967 * xcoffread.c (record_minimal_symbol): Don't add section offset
6968 to minimal symbol address.
6969 * somread.c (text_offset, data_offset): Remove.
6970 (som_symtab_read): Don't add section offsets to minimal symbol
6972 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6973 Don't add section offsets to minimal symbols.
6974 * coffread.c (coff_symtab_read): Don't add section offsets
6975 to minimal symbol addresses.
6976 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6977 to minimal symbol addresses.
6978 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6979 section offset to minimal symbol addresses.
6980 * mdebugread.c (parse_partial_symbols): Don't add section
6981 offset to minimal symbol addresses.
6982 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6983 offset to minimal symbol addresses.
6985 2014-02-26 Tom Tromey <tromey@redhat.com>
6987 * ada-lang.c (ada_main_name): Update.
6988 (ada_add_standard_exceptions): Update.
6989 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6990 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6991 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6992 * auxv.c (ld_so_xfer_auxv): Update.
6993 * avr-tdep.c (avr_scan_prologue): Update.
6994 * ax-gdb.c (gen_var_ref): Update.
6995 * blockframe.c (get_pc_function_start)
6996 (find_pc_partial_function_gnu_ifunc): Update.
6997 * breakpoint.c (create_overlay_event_breakpoint)
6998 (create_longjmp_master_breakpoint)
6999 (create_std_terminate_master_breakpoint)
7000 (create_exception_master_breakpoint): Update.
7001 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7002 * c-valprint.c (c_val_print): Update.
7003 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7004 * common/agent.c (agent_look_up_symbols): Update.
7005 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7006 * dwarf2loc.c (call_site_to_target_addr): Update.
7007 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7008 * elfread.c (elf_gnu_ifunc_record_cache)
7009 (elf_gnu_ifunc_resolve_by_got): Update.
7010 * findvar.c (default_read_var_value): Update.
7011 * frame.c (inside_main_func): Update.
7012 * frv-tdep.c (frv_frame_this_id): Update.
7013 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7014 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7016 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7017 (hppa_hpux_find_dummy_bpaddr): Update.
7018 * hppa-tdep.c (hppa_symbol_address): Update.
7019 * infcmd.c (until_next_command): Update.
7020 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7022 * linespec.c (minsym_found, add_minsym): Update.
7023 * linux-nat.c (get_signo): Update.
7024 * linux-thread-db.c (inferior_has_bug): Update.
7025 * m32c-tdep.c (m32c_return_value)
7026 (m32c_m16c_address_to_pointer): Update.
7027 * m32r-tdep.c (m32r_frame_this_id): Update.
7028 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7029 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7030 * maint.c (maintenance_translate_address): Update.
7031 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7032 (frob_address): New function.
7033 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7034 frob_address. Rename parameter to "pc_in".
7035 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7037 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7039 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7040 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7041 * objc-lang.c (find_objc_msgsend): Update.
7042 * objfiles.c (objfile_relocate1): Update.
7043 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7044 * p-valprint.c (pascal_val_print): Update.
7045 * parse.c (write_exp_msymbol): Update.
7046 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7047 (ppc_elfv2_skip_entrypoint): Update.
7048 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7049 * printcmd.c (build_address_symbolic, msym_info)
7050 (address_info): Update.
7051 * proc-service.c (ps_pglobal_lookup): Update.
7052 * psymtab.c (find_pc_sect_psymtab_closer)
7053 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7054 Change msymbol parameter to bound_minimal_symbol.
7055 * ravenscar-thread.c (get_running_thread_id): Update.
7056 * remote.c (remote_check_symbols): Update.
7057 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7059 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7060 * solib-dsbt.c (lm_base): Update.
7061 * solib-frv.c (lm_base, main_got): Update.
7062 * solib-irix.c (locate_base): Update.
7063 * solib-som.c (som_solib_create_inferior_hook)
7064 (link_map_start): Update.
7065 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7066 * solib-svr4.c (elf_locate_base, enable_break): Update.
7067 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7068 (flush_ea_cache): Update.
7069 * stabsread.c (define_symbol, scan_file_globals): Update.
7070 * stack.c (find_frame_funname): Update.
7071 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7072 (debug_qf_find_pc_sect_symtab): Update.
7073 * symfile.c (simple_read_overlay_table)
7074 (simple_overlay_update): Update.
7075 * symfile.h (struct quick_symbol_functions)
7076 <find_pc_sect_symtab>: Change type of msymbol to
7077 bound_minimal_symbol.
7078 * symmisc.c (dump_msymbols): Update.
7079 * symtab.c (find_pc_sect_symtab_via_partial)
7080 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7081 (search_symbols, print_msymbol_info): Update.
7082 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7083 (MSYMBOL_VALUE_ADDRESS): Redefine.
7084 (BMSYMBOL_VALUE_ADDRESS): New macro.
7085 * tracepoint.c (scope_info): Update.
7086 * tui/tui-disasm.c (tui_find_disassembly_address)
7087 (tui_get_begin_asm_address): Update.
7088 * valops.c (find_function_in_inferior): Update.
7089 * value.c (value_static_field, value_fn_field): Update.
7091 2014-02-26 Tom Tromey <tromey@redhat.com>
7093 * ada-lang.c (ada_update_initial_language): Update.
7094 (ada_main_name, ada_has_this_exception_support): Update.
7095 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7096 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7097 * arm-tdep.c (arm_skip_stub): Update.
7098 * auxv.c (ld_so_xfer_auxv): Update.
7099 * avr-tdep.c (avr_scan_prologue): Update.
7100 * ax-gdb.c (gen_var_ref): Update.
7101 * breakpoint.c (struct breakpoint_objfile_data)
7102 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7103 type to bound_minimal_symbol.
7104 (create_overlay_event_breakpoint)
7105 (create_longjmp_master_breakpoint)
7106 (create_std_terminate_master_breakpoint)
7107 (create_exception_master_breakpoint): Update.
7108 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7109 * c-exp.y (classify_name): Update.
7110 * coffread.c (coff_symfile_read): Update.
7111 * common/agent.c (agent_look_up_symbols): Update.
7112 * d-lang.c (d_main_name): Update.
7113 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7114 * dec-thread.c (enable_dec_thread): Update.
7115 * dwarf2loc.c (call_site_to_target_addr): Update.
7116 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7117 * eval.c (evaluate_subexp_standard): Update.
7118 * findvar.c (struct minsym_lookup_data) <result>: Change type
7119 to bound_minimal_symbol.
7121 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7122 * frame.c (inside_main_func): Update.
7123 * frv-tdep.c (frv_frame_this_id): Update.
7124 * gcore.c (call_target_sbrk): Update.
7125 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7126 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7128 * go-lang.c (go_main_name): Update.
7129 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7130 (hppa_hpux_find_import_stub_for_addr): Update.
7131 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7132 Update. Change return type.
7133 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7135 * jit.c (jit_breakpoint_re_set_internal): Update.
7136 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7138 * linux-nat.c (get_signo): Update.
7139 * linux-thread-db.c (inferior_has_bug): Update
7140 * m32c-tdep.c (m32c_return_value)
7141 (m32c_m16c_address_to_pointer): Update.
7142 * m32r-tdep.c (m32r_frame_this_id): Update.
7143 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7144 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7145 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7146 lookup_minimal_symbol. Change return type.
7147 (lookup_minimal_symbol): Remove.
7148 (lookup_bound_minimal_symbol): Update.
7149 (lookup_minimal_symbol_text): Change return type.
7150 (lookup_minimal_symbol_solib_trampoline): Change return type.
7151 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7152 (lookup_minimal_symbol_solib_trampoline): Change return type.
7153 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7154 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7155 (value_nsstring, find_imps): Update.
7156 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7157 * p-lang.c (pascal_main_name): Update.
7158 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7159 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7160 * proc-service.c (ps_pglobal_lookup): Update.
7161 * ravenscar-thread.c (get_running_thread_msymbol): Change
7163 (has_ravenscar_runtime, get_running_thread_id): Update.
7164 * remote.c (remote_check_symbols): Update.
7165 * sol-thread.c (ps_pglobal_lookup): Update.
7166 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7167 * solib-dsbt.c (lm_base): Update.
7168 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7170 * solib-irix.c (locate_base): Update.
7171 * solib-som.c (som_solib_create_inferior_hook)
7172 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7174 * solib-spu.c (spu_enable_break): Update.
7175 * solib-svr4.c (elf_locate_base, enable_break): Update.
7176 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7177 (flush_ea_cache): Update.
7178 * stabsread.c (define_symbol): Update.
7179 * symfile.c (simple_read_overlay_table): Update.
7180 * symtab.c (find_pc_sect_line): Update.
7181 * tracepoint.c (scope_info): Update.
7182 * tui-disasm.c (tui_get_begin_asm_address): Update.
7183 * value.c (value_static_field): Update.
7185 2014-02-26 Tom Tromey <tromey@redhat.com>
7187 * minsyms.c (prim_record_minimal_symbol_full): Use
7188 SET_MSYMBOL_VALUE_ADDRESS.
7189 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7190 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7191 SET_MSYMBOL_VALUE_ADDRESS.
7192 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7193 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7195 2014-02-26 Tom Tromey <tromey@redhat.com>
7197 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7198 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7199 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7200 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7201 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7202 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7203 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7204 * ada-lang.c (ada_main_name): Update.
7205 (ada_lookup_simple_minsym): Update.
7206 (ada_make_symbol_completion_list): Update.
7207 (ada_add_standard_exceptions): Update.
7208 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7209 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7210 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7211 * arm-tdep.c (skip_prologue_function): Update.
7212 (arm_skip_stack_protector, arm_skip_stub): Update.
7213 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7214 (arm_wince_skip_main_prologue): Update.
7215 * auxv.c (ld_so_xfer_auxv): Update.
7216 * avr-tdep.c (avr_scan_prologue): Update.
7217 * ax-gdb.c (gen_var_ref): Update.
7218 * block.c (call_site_for_pc): Update.
7219 * blockframe.c (get_pc_function_start): Update.
7220 (find_pc_partial_function_gnu_ifunc): Update.
7221 * breakpoint.c (create_overlay_event_breakpoint): Update.
7222 (create_longjmp_master_breakpoint): Update.
7223 (create_std_terminate_master_breakpoint): Update.
7224 (create_exception_master_breakpoint): Update.
7225 (resolve_sal_pc): Update.
7226 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7227 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7229 * c-valprint.c (c_val_print): Update.
7230 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7231 * coffread.c (coff_symfile_read): Update.
7232 * common/agent.c (agent_look_up_symbols): Update.
7233 * dbxread.c (find_stab_function_addr): Update.
7234 (end_psymtab): Update.
7235 * dwarf2loc.c (call_site_to_target_addr): Update.
7236 (func_verify_no_selftailcall): Update.
7237 (tailcall_dump): Update.
7238 (call_site_find_chain_1): Update.
7239 (dwarf_expr_reg_to_entry_parameter): Update.
7240 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7241 (elf_gnu_ifunc_resolve_by_got): Update.
7242 * f-valprint.c (info_common_command): Update.
7243 * findvar.c (read_var_value): Update.
7244 * frame.c (get_prev_frame_1): Update.
7245 (inside_main_func): Update.
7246 * frv-tdep.c (frv_skip_main_prologue): Update.
7247 (frv_frame_this_id): Update.
7248 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7249 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7250 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7251 (gnuv3_skip_trampoline): Update.
7252 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7253 (hppa64_hpux_in_solib_call_trampoline): Update.
7254 (hppa_hpux_skip_trampoline_code): Update.
7255 (hppa64_hpux_search_dummy_call_sequence): Update.
7256 (hppa_hpux_find_import_stub_for_addr): Update.
7257 (hppa_hpux_find_dummy_bpaddr): Update.
7258 * hppa-tdep.c (hppa_symbol_address)
7259 (hppa_lookup_stub_minimal_symbol): Update.
7260 * i386-tdep.c (i386_skip_main_prologue): Update.
7261 (i386_pe_skip_trampoline_code): Update.
7262 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7263 * infcall.c (get_function_name): Update.
7264 * infcmd.c (until_next_command): Update.
7265 * jit.c (jit_breakpoint_re_set_internal): Update.
7266 (jit_inferior_init): Update.
7267 * linespec.c (minsym_found): Update.
7268 (add_minsym): Update.
7269 * linux-fork.c (info_checkpoints_command): Update.
7270 * linux-nat.c (get_signo): Update.
7271 * linux-thread-db.c (inferior_has_bug): Update.
7272 * m32c-tdep.c (m32c_return_value): Update.
7273 (m32c_m16c_address_to_pointer): Update.
7274 (m32c_m16c_pointer_to_address): Update.
7275 * m32r-tdep.c (m32r_frame_this_id): Update.
7276 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7277 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7278 * maint.c (maintenance_translate_address): Update.
7279 * minsyms.c (add_minsym_to_hash_table): Update.
7280 (add_minsym_to_demangled_hash_table): Update.
7281 (msymbol_objfile): Update.
7282 (lookup_minimal_symbol): Update.
7283 (iterate_over_minimal_symbols): Update.
7284 (lookup_minimal_symbol_text): Update.
7285 (lookup_minimal_symbol_by_pc_name): Update.
7286 (lookup_minimal_symbol_solib_trampoline): Update.
7287 (lookup_minimal_symbol_by_pc_section_1): Update.
7288 (lookup_minimal_symbol_and_objfile): Update.
7289 (prim_record_minimal_symbol_full): Update.
7290 (compare_minimal_symbols): Update.
7291 (compact_minimal_symbols): Update.
7292 (build_minimal_symbol_hash_tables): Update.
7293 (install_minimal_symbols): Update.
7294 (terminate_minimal_symbol_table): Update.
7295 (find_solib_trampoline_target): Update.
7296 (minimal_symbol_upper_bound): Update.
7297 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7298 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7299 (mips_skip_pic_trampoline_code): Update.
7300 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7301 * objc-lang.c (selectors_info): Update.
7302 (classes_info): Update.
7303 (find_methods): Update.
7304 (find_imps): Update.
7305 (find_objc_msgsend): Update.
7306 * objfiles.c (objfile_relocate1): Update.
7307 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7308 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7309 * p-valprint.c (pascal_val_print): Update.
7310 * parse.c (write_exp_msymbol): Update.
7311 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7312 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7313 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7314 * printcmd.c (build_address_symbolic): Update.
7316 (address_info): Update.
7317 * proc-service.c (ps_pglobal_lookup): Update.
7318 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7319 (find_pc_sect_psymtab): Update.
7320 * python/py-framefilter.c (py_print_frame): Update.
7321 * ravenscar-thread.c (get_running_thread_id): Update.
7322 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7324 * remote.c (remote_check_symbols): Update.
7325 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7326 (rs6000_skip_trampoline_code): Update.
7327 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7328 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7329 * solib-dsbt.c (lm_base): Update.
7330 * solib-frv.c (lm_base): Update.
7332 * solib-irix.c (locate_base): Update.
7333 * solib-som.c (som_solib_create_inferior_hook): Update.
7334 (som_solib_desire_dynamic_linker_symbols): Update.
7335 (link_map_start): Update.
7336 * solib-spu.c (spu_enable_break): Update.
7337 (ocl_enable_break): Update.
7338 * solib-svr4.c (elf_locate_base): Update.
7339 (enable_break): Update.
7340 * spu-tdep.c (spu_get_overlay_table): Update.
7341 (spu_catch_start): Update.
7342 (flush_ea_cache): Update.
7343 * stabsread.c (define_symbol): Update.
7344 (scan_file_globals): Update.
7345 * stack.c (find_frame_funname): Update.
7346 (frame_info): Update.
7347 * symfile.c (simple_read_overlay_table): Update.
7348 (simple_overlay_update): Update.
7349 * symmisc.c (dump_msymbols): Update.
7350 * symtab.c (fixup_section): Update.
7351 (find_pc_sect_line): Update.
7352 (skip_prologue_sal): Update.
7353 (search_symbols): Update.
7354 (print_msymbol_info): Update.
7355 (rbreak_command): Update.
7356 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7357 (completion_list_objc_symbol): Update.
7358 (default_make_symbol_completion_list_break_on): Update.
7359 * tracepoint.c (scope_info): Update.
7360 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7361 (tui_get_begin_asm_address): Update.
7362 * valops.c (find_function_in_inferior): Update.
7363 * value.c (value_static_field): Update.
7364 (value_fn_field): Update.
7366 2014-02-26 Tom Tromey <tromey@redhat.com>
7368 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7369 bound minimal symbols. Move code that knows about minsym
7371 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7373 * minsyms.h (minimal_symbol_upper_bound): Declare.
7374 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7375 minimal_symbol_upper_bound.
7377 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7379 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7380 Use the type's name if its basic type does not have a tag.
7382 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7384 * dwarf2read.c (read_subrange_type): Add comment.
7386 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7388 * dwarf2read.c (update_enumeration_type_from_children): New
7389 function, mostly extracted from process_structure_scope.
7390 (read_enumeration_type): Call update_enumeration_type_from_children.
7391 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7392 and flag_flag_enum fields.
7394 2014-02-26 Pedro Alves <palves@redhat.com>
7396 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7397 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7398 to_xfer_partial method.
7400 2014-02-26 Pedro Alves <palves@redhat.com>
7402 * target.c (complete_target_initialization): Don't install
7403 default_xfer_partial as to_xfer_partial hook.
7405 (update_current_target): Don't INHERIT nor de_fault
7406 deprecated_xfer_memory. Delete de_fault macro.
7407 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7408 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7409 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7412 2014-02-26 Pedro Alves <palves@redhat.com>
7414 * go32-nat.c (my_write_child): New function.
7415 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7416 (go32_xfer_partial): New function.
7417 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7418 Instead install a to_xfer_partial hook.
7420 2014-02-26 Pedro Alves <palves@redhat.com>
7422 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7423 to_xfer_partial helper. Rewrite.
7424 (procfs_xfer_partial): New function.
7425 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7426 Install a to_xfer_partial hook.
7428 2014-02-26 Pedro Alves <palves@redhat.com>
7430 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7431 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7432 (m32r_xfer_partial): New function.
7433 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7434 Install a to_xfer_partial hook.
7436 2014-02-26 Pedro Alves <palves@redhat.com>
7438 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7440 (mips_xfer_partial): New function.
7441 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7442 hook. Install a to_xfer_partial hook.
7444 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7446 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7447 * gdbtypes.c (create_array_type_with_stride): New function,
7448 renaming create_array_type, but with an added parameter
7449 called "bit_stride".
7450 (create_array_type): Re-implement using
7451 create_array_type_with_stride.
7452 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7453 and DW_AT_bit_stride attributes.
7455 2014-02-26 Pedro Alves <palves@redhat.com>
7457 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7458 task-specific breakpoints.
7460 2014-02-25 Pedro Alves <palves@redhat.com>
7462 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7463 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7465 2014-02-25 Stan Shebs <stan@codesourcery.com>
7467 * defs.h: Annotate comments for Doxygen.
7469 2014-02-25 Tom Tromey <tromey@redhat.com>
7471 * target.h (target_ignore): Don't declare.
7472 * target.c (target_ignore): Remove.
7474 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7477 * auto-load.c (auto_load_objfile_script_1): Change filename to
7480 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7482 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7483 documentation. Adjust prototype to match the target_ops
7484 to_xfer_partial method. Adjust implementation accordingly.
7486 2014-02-25 Hui Zhu <hui@codesourcery.com>
7488 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7491 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7493 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7494 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7495 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7496 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7497 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7498 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7499 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7500 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7502 (rl78_register_type): Use a data pointer type for SP and
7503 new pseudo registers mentioned above. Use a 16 bit integer
7504 type for all other register pairs.
7505 (rl78_register_name, rl78_g10_register_name): Update for
7506 new pseudo registers.
7507 (rl78_pseudo_register_read): Likewise.
7508 (rl78_pseudo_register_write): Likewise.
7509 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7510 to the newly added pseudo registers.
7512 2014-02-24 Doug Evans <dje@google.com>
7514 * value.c (record_latest_value): Fix comment.
7515 * printcmd.c (print_command_1): Remove code to handle -1 return from
7516 record_latest_value.
7518 2014-02-24 Pedro Alves <palves@redhat.com>
7520 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7521 deprecated_xfer_memory hook.
7522 (procfs_xfer_partial): Call procfs_xfer_memory instead
7523 of the deprecated_xfer_memory target hook.
7524 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7527 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7529 * windows-nat.c (windows_xfer_shared_libraries): Return
7530 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7531 requested object is TARGET_OBJECT_LIBRARIES.
7533 2014-02-24 Yao Qi <yao@codesourcery.com>
7535 * target.h (enum target_xfer_status)
7536 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7537 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7539 * corefile.c (memory_error_message): User updated.
7540 * exec.c (section_table_read_available_memory): Likewise.
7541 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7542 * target.c (target_xfer_status_to_string): Likewise.
7543 (raw_memory_xfer_partial): Likewise.
7544 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7545 * valops.c (read_value_memory): Likewise.
7546 * exec.h: Update comments.
7548 2014-02-24 Yao Qi <yao@codesourcery.com>
7550 * target.c (target_xfer_status_to_string): Rename argument err
7552 * target.h (target_xfer_status_to_string): Update declaration.
7553 Replace target_xfer_error_to_string with
7554 target_xfer_status_to_string in comment.
7556 2014-02-24 Yao Qi <yao@codesourcery.com>
7558 * mips-linux-nat.c (super_close): Update its type.
7559 (mips_linux_close): Pass 'self' to super_close.
7561 2014-02-24 Yao Qi <yao@codesourcery.com>
7563 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7564 * corefile.c (read_memory): Adjusted.
7565 * target.c (target_write_with_progress): Adjusted.
7567 2014-02-23 Yao Qi <yao@codesourcery.com>
7571 2013-10-25 Yao Qi <yao@codesourcery.com>
7573 * remote.c (remote_traceframe_info): Return early if
7574 traceframe is not selected.
7576 2013-07-19 Yao Qi <yao@codesourcery.com>
7578 * target.c (update_current_target): Change the default action
7579 of 'to_traceframe_info' from tcomplain to return_zero.
7580 * target.h (struct target_ops) <to_traceframe_info>: Add more
7583 2014-02-23 Yao Qi <yao@codesourcery.com>
7585 * valops.c (read_value_memory): Rewrite it. Call
7586 target_xfer_partial in a loop.
7587 * exec.h (section_table_available_memory): Remove declaration.
7588 Move comments to ...
7589 * exec.c (section_table_available_memory): ... here. Make it
7592 2014-02-23 Yao Qi <yao@codesourcery.com>
7594 * exec.c (section_table_read_available_memory): New function.
7595 * exec.h (section_table_read_available_memory): Declare.
7596 * ctf.c (ctf_xfer_partial): Call
7597 section_table_read_available_memory.
7598 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7600 2014-02-23 Yao Qi <yao@codesourcery.com>
7602 * ctf.c (ctf_xfer_partial): Move code to ...
7603 * exec.c (exec_read_partial_read_only): ... it. New function.
7604 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7605 * tracefile.c: Include "exec.h".
7606 * exec.h (exec_read_partial_read_only): Declare.
7608 2014-02-23 Yao Qi <yao@codesourcery.com>
7610 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7611 (tfile_has_memory): Remove.
7612 (init_tfile_ops): Don't set fields to_has_all_memory and
7613 to_has_memory of tfile_ops.
7614 * tracefile.c (tracefile_has_all_memory): New function.
7615 (tracefile_has_memory): New function.
7616 (init_tracefile_ops): Initialize fields to_has_all_memory and
7617 to_has_memory of 'ops'.
7619 2014-02-23 Yao Qi <yao@codesourcery.com>
7621 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7622 (ctf_thread_alive, ctf_get_trace_status): Remove.
7623 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7625 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7626 (tfile_has_stack, tfile_has_registers): Remove.
7627 (tfile_thread_alive): Remove.
7628 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7630 * tracefile.c (tracefile_has_stack): New function.
7631 (tracefile_has_registers): New function.
7632 (tracefile_thread_alive): New function.
7633 (tracefile_get_trace_status): New function.
7634 (init_tracefile_ops): New function.
7635 * tracefile.h (init_tracefile_ops): Declare.
7637 2014-02-23 Yao Qi <yao@codesourcery.com>
7639 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7640 (O_LARGEFILE): Likewise.
7641 (tfile_ops): Likewise.
7642 (TRACE_HEADER_SIZE): Likewise.
7643 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7644 (cur_data_size): Likewise.
7645 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7646 (tfile_close, tfile_files_info): Likewise.
7647 (tfile_get_trace_status): Likewise.
7648 (tfile_get_tracepoint_status): Likewise.
7649 (tfile_get_traceframe_address): Likewise.
7650 (tfile_trace_find, match_blocktype): Likewise.
7651 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7652 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7653 (tfile_get_trace_state_variable_value): Likewise.
7654 (tfile_has_all_memory, tfile_has_memory): Likewise.
7655 (tfile_has_stack, tfile_has_registers): Likewise.
7656 (tfile_thread_alive, build_traceframe_info): Likewise.
7657 (tfile_traceframe_info, init_tfile_ops): Likewise.
7658 (_initialize_tracepoint): Don't call init_tfile_ops
7659 and add_target_with_completer.
7660 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7661 exec.h, completer.h and filenames.h.
7662 (_initialize_tracefile_tfile): New function.
7664 2014-02-23 Yao Qi <yao@codesourcery.com>
7666 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7668 (HFILES_NO_SRCDIR): Add tracefile.h.
7669 * ctf.c: Include "tracefile.h".
7670 * tracefile.h: New file.
7671 * tracefile.c: New file
7672 * tracefile-tfile.c: New file.
7673 * tracepoint.c: Include "tracefile.h".
7674 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7675 (stop_reason_names): Add const.
7676 (trace_file_writer_xfree): Move it to tracefile.c.
7677 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7678 (trace_save_ctf): Likewise.
7679 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7680 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7681 (tfile_write_header, tfile_write_regblock_type): Likewise.
7682 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7683 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7684 (tfile_write_raw_data, tfile_end): Likewise.
7685 (tfile_trace_file_writer_new): Likewise.
7686 (free_uploaded_tp): Make it extern.
7687 (free_uploaded_tsv): Make it extern.
7688 (_initialize_tracepoint): Move code to register command 'tsave'
7690 * tracepoint.h (stop_reason_names): Declare.
7691 (struct trace_frame_write_ops): Move it to tracefile.h.
7692 (struct trace_file_write_ops): Likewise.
7693 (struct trace_file_writer): Likewise.
7694 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7696 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7699 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7701 (get_cores_used_by_process): New parameter num_cores, use it.
7702 (linux_xfer_osdata_processes): Pass num_cores to it.
7703 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7706 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7708 * target.c (memory_xfer_partial): Fix length arg in call to
7709 breakpoint_xfer_memory.
7711 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7714 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7715 number comes after the + or - signs. Adjust length of register
7716 name to be extracted.
7718 2014-02-20 Tom Tromey <tromey@redhat.com>
7720 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7721 (ada_varobj_ops): Mark "extern".
7723 2014-02-20 Tom Tromey <tromey@redhat.com>
7725 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7727 2014-02-20 Doug Evans <xdje42@gmail.com>
7729 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7730 All callers updated.
7731 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7732 All callers updated.
7733 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7734 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7736 2014-02-20 lin zuojian <manjian2006@gmail.com>
7737 Joel Brobecker <brobecker@adacore.com>
7738 Doug Evans <xdje42@gmail.com>
7741 * dwarf2read.c (struct die_info): New member in_process.
7742 (reset_die_in_process): New function.
7743 (process_die): Set it at the start, reset when returning.
7744 (inherit_abstract_dies): Only call process_die if origin_child_die
7745 not already being processed.
7747 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7749 * windows-nat.c (handle_unload_dll): Add function documentation.
7750 (do_initial_windows_stuff): Add comment explaining why we wait
7751 until after inferior initialization has finished before
7752 processing all DLLs.
7754 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7756 * windows-nat.c (get_module_name): Delete.
7757 (windows_get_exec_module_filename): New function, mostly
7758 inspired from get_module_name.
7759 (windows_pid_to_exec_file): Replace call to get_module_name
7760 by call to windows_get_exec_module_filename.
7762 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7764 * windows-nat.c (handle_load_dll): Rewrite this function's
7765 introductory comment. Remove code using get_module_name
7766 to get the DLL's name.
7768 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7770 * windows-nat.c (get_windows_debug_event): Ignore
7771 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7772 if windows_initialization_done == 0.
7773 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7774 Adjust implementation to always load all DLLs.
7775 (do_initial_windows_stuff): Replace call to
7776 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7778 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7780 * windows-nat.c (_initialize_windows_nat): Deprecate the
7781 "dll-symbols" command. Turn the "add-shared-symbol-files"
7782 and "assf" aliases into commands, and deprecate them as well.
7783 * NEWS: Add entry explaining that "dll-symbols" and its two
7784 aliases are now deprecated.
7786 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7788 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7789 new-line in debug string. Remove trailing spaces.
7791 2014-02-19 Stan Shebs <stan@codesourcery.com>
7793 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7795 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7797 * NEWS: Add entry for the new feature
7798 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7801 2014-02-19 Stan Shebs <stan@codesourcery.com>
7803 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7805 2014-02-19 Pedro Alves <palves@redhat.com>
7807 * common/ptid.h (struct ptid): Mention that process_stratum
7808 targets should prefer ptid.lwp.
7810 2014-02-19 Pedro Alves <palves@redhat.com>
7812 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7813 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7814 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7815 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7816 store remote thread ids rather than ptid.tid.
7817 (_initialize_remote): Adjust.
7819 2014-02-19 Tom Tromey <tromey@redhat.com>
7821 * target.c (target_get_unwinder): Rewrite.
7822 (target_get_tailcall_unwinder): Rewrite.
7823 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7824 (record_btrace_to_get_tailcall_unwinder): New function.
7825 (init_record_btrace_ops): Update.
7826 * target.h (struct target_ops) <to_get_unwinder,
7827 to_get_tailcall_unwinder>: Now function pointers. Use
7828 TARGET_DEFAULT_RETURN.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7834 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7840 * target-delegates.c: Rebuild.
7841 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7842 TARGET_DEFAULT_FUNC.
7843 * target.c (default_target_decr_pc_after_break): Rename from
7844 forward_target_decr_pc_after_break. Simplify.
7845 (target_decr_pc_after_break): Rely on delegation.
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7849 * target.c (update_current_target): Do not INHERIT to_doc or
7850 to_magic. Do not de_fault to_open or to_close.
7852 2014-02-19 Tom Tromey <tromey@redhat.com>
7854 * gcore.h (objfile_find_memory_regions): Declare.
7855 * gcore.c (objfile_find_memory_regions): No longer static. Add
7857 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7858 * exec.c: Include gcore.h.
7859 (exec_set_find_memory_regions): Remove.
7860 (exec_find_memory_regions): Remove.
7861 (exec_do_find_memory_regions): Remove.
7862 (init_exec_ops): Update.
7863 * defs.h (exec_set_find_memory_regions): Remove.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target-delegates.c: Rebuild.
7868 * target.h (struct target_ops) <to_extra_thread_info,
7869 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7870 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7871 not 0, in TARGET_DEFAULT_RETURN.
7873 2014-02-19 Tom Tromey <tromey@redhat.com>
7875 * target.c (complete_target_initialization): Remove casts. Use
7876 return_zero_has_execution.
7877 (return_zero): Add "ignore" argument.
7878 (return_zero_has_execution): New function.
7879 (init_dummy_target): Remove casts. Use
7880 return_zero_has_execution.
7882 2014-02-19 Tom Tromey <tromey@redhat.com>
7884 * target.c (update_current_target): Update comments. Do not
7887 2014-02-19 Tom Tromey <tromey@redhat.com>
7889 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7891 * corelow.c (core_read_description): Delegate when needed.
7892 * remote.c (remote_read_description): Delegate when needed.
7893 * target-delegates.c: Rebuild.
7894 * target.c (target_read_description): Rewrite.
7895 * target.h (struct target_ops) <to_read_description>: Update
7896 comment. Use TARGET_DEFAULT_RETURN.
7898 2014-02-19 Tom Tromey <tromey@redhat.com>
7900 * target-delegates.c: Rebuild.
7901 * target.c (update_current_target): Don't inherit or default
7903 (find_default_run_target): Check against delegate_can_run.
7904 * target.h (struct target_ops) <to_can_run>: Use
7905 TARGET_DEFAULT_RETURN.
7907 2014-02-19 Tom Tromey <tromey@redhat.com>
7909 * target-delegates.c: Rebuild.
7910 * target.c (target_disconnect): Unconditionally delegate.
7911 * target.h (struct target_ops) <to_disconnect>: Use
7912 TARGET_DEFAULT_NORETURN.
7914 2014-02-19 Tom Tromey <tromey@redhat.com>
7916 * record.c (record_stop): Unconditionally delegate.
7917 * target-delegates.c: Rebuild.
7918 * target.c (target_stop_recording): Unconditionally delegate.
7919 * target.h (struct target_ops) <to_stop_recording>: Use
7920 TARGET_DEFAULT_IGNORE.
7922 2014-02-19 Tom Tromey <tromey@redhat.com>
7924 * target-delegates.c: Rebuild.
7925 * target.c (target_enable_btrace): Unconditionally delegate.
7926 * target.h (struct target_ops) <to_enable_btrace>: Use
7927 TARGET_DEFAULT_NORETURN.
7929 2014-02-19 Tom Tromey <tromey@redhat.com>
7931 * target-delegates.c: Rebuild.
7932 * target.c (target_read_btrace): Unconditionally delegate.
7933 * target.h (struct target_ops) <to_read_btrace>: Use
7934 TARGET_DEFAULT_NORETURN.
7936 2014-02-19 Tom Tromey <tromey@redhat.com>
7938 * target-delegates.c: Rebuild.
7939 * target.c (target_teardown_btrace): Unconditionally delegate.
7940 * target.h (struct target_ops) <to_teardown_btrace>: Use
7941 TARGET_DEFAULT_NORETURN.
7943 2014-02-19 Tom Tromey <tromey@redhat.com>
7945 * target-delegates.c: Rebuild.
7946 * target.c (target_disable_btrace): Unconditionally delegate.
7947 * target.h (struct target_ops) <to_disable_btrace>: Use
7948 TARGET_DEFAULT_NORETURN.
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7952 * target-delegates.c: Rebuild.
7953 * target.c (default_search_memory): New function.
7954 (simple_search_memory): Update comment.
7955 (target_search_memory): Unconditionally delegate.
7956 * target.h (struct target_ops) <to_search_memory>: Use
7957 TARGET_DEFAULT_FUNC.
7959 2014-02-19 Tom Tromey <tromey@redhat.com>
7961 * auxv.c (default_auxv_parse): No longer static.
7962 (target_auxv_parse): Unconditionally delegate.
7963 * auxv.h (default_auxv_parse): Declare.
7964 * target-delegates.c: Rebuild.
7965 * target.c: Include auxv.h.
7966 * target.h (struct target_ops) <to_auxv_parse>: Use
7967 TARGET_DEFAULT_FUNC.
7969 2014-02-19 Tom Tromey <tromey@redhat.com>
7971 * target-delegates.c: Rebuild.
7972 * target.c (target_memory_map): Unconditionally delegate.
7973 * target.h (struct target_ops) <to_memory_map>: Use
7974 TARGET_DEFAULT_RETURN.
7976 2014-02-19 Tom Tromey <tromey@redhat.com>
7978 * target-delegates.c: Rebuild.
7979 * target.c (target_thread_alive): Unconditionally delegate.
7980 * target.h (struct target_ops) <to_thread_alive>: Use
7981 TARGET_DEFAULT_RETURN.
7983 2014-02-19 Tom Tromey <tromey@redhat.com>
7985 * target-delegates.c: Rebuild.
7986 * target.c (target_save_record): Unconditionally delegate.
7987 * target.h (struct target_ops) <to_save_record>: Use
7988 TARGET_DEFAULT_NORETURN.
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7992 * target-delegates.c: Rebuild.
7993 * target.c (target_delete_record): Unconditionally delegate.
7994 * target.h (struct target_ops) <to_delete_record>: Use
7995 TARGET_DEFAULT_NORETURN.
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7999 * target-delegates.c: Rebuild.
8000 * target.c (target_record_is_replaying): Unconditionally
8002 * target.h (struct target_ops) <to_record_is_replaying>: Use
8003 TARGET_DEFAULT_RETURN.
8005 2014-02-19 Tom Tromey <tromey@redhat.com>
8007 * target-delegates.c: Rebuild.
8008 * target.c (target_goto_record_begin): Unconditionally delegate.
8009 * target.h (struct target_ops) <to_goto_record_begin>: Use
8010 TARGET_DEFAULT_NORETURN.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * target-delegates.c: Rebuild.
8015 * target.c (target_goto_record_end): Unconditionally delegate.
8016 * target.h (struct target_ops) <to_goto_record_end>: Use
8017 TARGET_DEFAULT_NORETURN.
8019 2014-02-19 Tom Tromey <tromey@redhat.com>
8021 * target-delegates.c: Rebuild.
8022 * target.c (target_goto_record): Unconditionally delegate.
8023 * target.h (struct target_ops) <to_goto_record>: Use
8024 TARGET_DEFAULT_NORETURN.
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8028 * target-delegates.c: Rebuild.
8029 * target.c (target_insn_history): Unconditionally delegate.
8030 * target.h (struct target_ops) <to_insn_history>: Use
8031 TARGET_DEFAULT_NORETURN.
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target-delegates.c: Rebuild.
8036 * target.c (target_insn_history_from): Unconditionally delegate.
8037 * target.h (struct target_ops) <to_insn_history_from>: Use
8038 TARGET_DEFAULT_NORETURN.
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8042 * target-delegates.c: Rebuild.
8043 * target.c (target_insn_history_range): Unconditionally delegate.
8044 * target.h (struct target_ops) <to_insn_history_range>: Use
8045 TARGET_DEFAULT_NORETURN.
8047 2014-02-19 Tom Tromey <tromey@redhat.com>
8049 * target-delegates.c: Rebuild.
8050 * target.c (target_call_history): Unconditionally delegate.
8051 * target.h (struct target_ops) <to_call_history>: Use
8052 TARGET_DEFAULT_NORETURN.
8054 2014-02-19 Tom Tromey <tromey@redhat.com>
8056 * target-delegates.c: Rebuild.
8057 * target.c (target_call_history_from): Unconditionally delegate.
8058 * target.h (struct target_ops) <to_call_history_from>: Use
8059 TARGET_DEFAULT_NORETURN.
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * target-delegates.c: Rebuild.
8064 * target.c (target_call_history_range): Unconditionally delegate.
8065 * target.h (struct target_ops) <to_call_history_range>: Use
8066 TARGET_DEFAULT_NORETURN.
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8070 * target-delegates.c: Rebuild.
8071 * target.c (target_verify_memory): Unconditionally delegate.
8072 * target.h (struct target_ops) <to_verify_memory>: Use
8073 TARGET_DEFAULT_NORETURN.
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8077 * target-delegates.c: Rebuild.
8078 * target.c (target_core_of_thread): Unconditionally delegate.
8079 * target.h (struct target_ops) <to_core_of_thread>: Use
8080 TARGET_DEFAULT_RETURN.
8082 2014-02-19 Tom Tromey <tromey@redhat.com>
8084 * target-delegates.c: Rebuild.
8085 * target.c (target_flash_done): Unconditionally delegate.
8086 * target.h (struct target_ops) <to_flash_done>: Use
8087 TARGET_DEFAULT_NORETURN.
8089 2014-02-19 Tom Tromey <tromey@redhat.com>
8091 * target-delegates.c: Rebuild.
8092 * target.c (target_flash_erase): Unconditionally delegate.
8093 * target.h (struct target_ops) <to_flash_erase>: Use
8094 TARGET_DEFAULT_NORETURN.
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8098 * target-delegates.c: Rebuild.
8099 * target.c (target_get_section_table): Unconditionally delegate.
8100 * target.h (struct target_ops) <to_get_section_table>: Use
8101 TARGET_DEFAULT_RETURN.
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target-delegates.c: Rebuild.
8106 * target.c (target_pid_to_str): Unconditionally delegate.
8107 (init_dummy_target): Don't initialize to_pid_to_str.
8108 (default_pid_to_str): Rename from dummy_pid_to_str.
8109 * target.h (struct target_ops) <to_pid_to_str>: Use
8110 TARGET_DEFAULT_FUNC.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target-delegates.c: Rebuild.
8115 * target.c (target_find_new_threads): Unconditionally delegate.
8116 * target.h (struct target_ops) <to_find_new_threads>: Use
8117 TARGET_DEFAULT_RETURN.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target-delegates.c: Rebuild.
8122 * target.c (target_program_signals): Unconditionally delegate.
8123 * target.h (struct target_ops) <to_program_signals>: Use
8124 TARGET_DEFAULT_IGNORE.
8126 2014-02-19 Tom Tromey <tromey@redhat.com>
8128 * target-delegates.c: Rebuild.
8129 * target.c (target_pass_signals): Unconditionally delegate.
8130 * target.h (struct target_ops) <to_pass_signals>: Use
8131 TARGET_DEFAULT_IGNORE.
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8135 * target-delegates.c: Rebuild.
8136 * target.c (default_mourn_inferior): New function.
8137 (target_mourn_inferior): Unconditionally delegate.
8138 * target.h (struct target_ops) <to_mourn_inferior>: Use
8139 TARGET_DEFAULT_FUNC.
8141 2014-02-19 Tom Tromey <tromey@redhat.com>
8143 * target-delegates.c: Rebuild.
8144 * target.c (default_follow_fork): New function.
8145 (target_follow_fork): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_follow_fork>: Use
8147 TARGET_DEFAULT_FUNC.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_kill): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_kill>: Use
8154 TARGET_DEFAULT_NORETURN.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_masked_watch_num_registers): Unconditionally
8161 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8162 Use TARGET_DEFAULT_RETURN.
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8166 * target-delegates.c: Rebuild.
8167 * target.c (target_remove_mask_watchpoint): Unconditionally
8169 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8170 TARGET_DEFAULT_RETURN.
8172 2014-02-19 Tom Tromey <tromey@redhat.com>
8174 * target-delegates.c: Rebuild.
8175 * target.c (target_insert_mask_watchpoint): Unconditionally
8177 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8178 TARGET_DEFAULT_RETURN.
8180 2014-02-19 Tom Tromey <tromey@redhat.com>
8182 * target-delegates.c: Rebuild.
8183 * target.c (target_ranged_break_num_registers): Unconditionally
8185 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8186 Use TARGET_DEFAULT_RETURN.
8188 2014-02-19 Tom Tromey <tromey@redhat.com>
8190 * target-delegates.c: Rebuild.
8191 * target.c (target_fetch_registers): Unconditionally delegate.
8192 * target.h (struct target_ops) <to_fetch_registers>: Use
8193 TARGET_DEFAULT_NORETURN.
8195 2014-02-19 Tom Tromey <tromey@redhat.com>
8197 * target-delegates.c: Rebuild.
8198 * target.c (update_current_target): Don't inherit or default
8200 * target.h (struct target_ops) <to_stop>: Use
8201 TARGET_DEFAULT_IGNORE.
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8205 * target-delegates.c: Rebuild.
8206 * target.c (update_current_target): Don't inherit or default
8207 to_can_run_breakpoint_commands.
8208 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8209 Use TARGET_DEFAULT_RETURN.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target-delegates.c: Rebuild.
8214 * target.c (update_current_target): Don't inherit or default
8215 to_supports_evaluation_of_breakpoint_conditions.
8216 * target.h (struct target_ops)
8217 <to_supports_evaluation_of_breakpoint_conditions>: Use
8218 TARGET_DEFAULT_RETURN.
8220 2014-02-19 Tom Tromey <tromey@redhat.com>
8222 * target-delegates.c: Rebuild.
8223 * target.c (update_current_target): Don't inherit or default
8224 to_augmented_libraries_svr4_read.
8225 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8226 Use TARGET_DEFAULT_RETURN.
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8230 * target-delegates.c: Rebuild.
8231 * target.c (update_current_target): Don't inherit or default
8233 * target.h (struct target_ops) <to_can_use_agent>: Use
8234 TARGET_DEFAULT_RETURN.
8236 2014-02-19 Tom Tromey <tromey@redhat.com>
8238 * target-delegates.c: Rebuild.
8239 * target.c (update_current_target): Don't inherit or default
8241 * target.h (struct target_ops) <to_use_agent>: Use
8242 TARGET_DEFAULT_NORETURN.
8244 2014-02-19 Tom Tromey <tromey@redhat.com>
8246 * target-delegates.c: Rebuild.
8247 * target.c (update_current_target): Don't inherit or default
8249 (return_null): Remove.
8250 * target.h (struct target_ops) <to_traceframe_info>: Use
8251 TARGET_DEFAULT_RETURN.
8253 2014-02-19 Tom Tromey <tromey@redhat.com>
8255 * target-delegates.c: Rebuild.
8256 * target.c (update_current_target): Don't inherit or default
8257 to_static_tracepoint_markers_by_strid.
8258 * target.h (struct target_ops)
8259 <to_static_tracepoint_markers_by_strid>: Use
8260 TARGET_DEFAULT_NORETURN.
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8264 * target-delegates.c: Rebuild.
8265 * target.c (update_current_target): Don't inherit or default
8266 to_static_tracepoint_marker_at.
8267 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8268 Use TARGET_DEFAULT_RETURN.
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target-delegates.c: Rebuild.
8273 * target.c (update_current_target): Don't inherit or default
8275 * target.h (struct target_ops) <to_set_permissions>: Use
8276 TARGET_DEFAULT_IGNORE.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * target-delegates.c: Rebuild.
8281 * target.c (update_current_target): Don't inherit or default
8283 * target.h (struct target_ops) <to_get_tib_address>: Use
8284 TARGET_DEFAULT_NORETURN.
8286 2014-02-19 Tom Tromey <tromey@redhat.com>
8288 * target-delegates.c: Rebuild.
8289 * target.c (update_current_target): Don't inherit or default
8291 * target.h (struct target_ops) <to_set_trace_notes>: Use
8292 TARGET_DEFAULT_RETURN.
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * target-delegates.c: Rebuild.
8297 * target.c (update_current_target): Don't initialize
8298 to_set_trace_buffer_size.
8299 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8300 TARGET_DEFAULT_IGNORE.
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * target-delegates.c: Rebuild.
8305 * target.c (update_current_target): Don't inherit or default
8306 to_set_circular_trace_buffer.
8307 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8308 TARGET_DEFAULT_IGNORE.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * target-delegates.c: Rebuild.
8313 * target.c (update_current_target): Don't inherit or default
8314 to_set_disconnected_tracing.
8315 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8316 TARGET_DEFAULT_IGNORE.
8318 2014-02-19 Tom Tromey <tromey@redhat.com>
8320 * target-delegates.c: Rebuild.
8321 * target.c (update_current_target): Don't inherit or default
8322 to_get_min_fast_tracepoint_insn_len.
8323 (return_minus_one): Remove.
8324 * target.h (struct target_ops)
8325 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8331 to_get_raw_trace_data.
8332 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8333 TARGET_DEFAULT_NORETURN.
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8337 * target-delegates.c: Rebuild.
8338 * target.c (update_current_target): Don't inherit or default
8339 to_upload_trace_state_variables.
8340 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8341 Use TARGET_DEFAULT_RETURN.
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8345 * target-delegates.c: Rebuild.
8346 * target.c (update_current_target): Don't inherit or default
8347 to_upload_tracepoints.
8348 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8349 TARGET_DEFAULT_RETURN.
8351 2014-02-19 Tom Tromey <tromey@redhat.com>
8353 * target-delegates.c: Rebuild.
8354 * target.c (update_current_target): Don't inherit or default
8356 * target.h (struct target_ops) <to_save_trace_data>: Use
8357 TARGET_DEFAULT_NORETURN.
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8361 * target-delegates.c: Rebuild.
8362 * target.c (update_current_target): Don't inherit or default
8363 to_get_trace_state_variable_value.
8364 * target.h (struct target_ops)
8365 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8367 2014-02-19 Tom Tromey <tromey@redhat.com>
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8372 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8374 2014-02-19 Tom Tromey <tromey@redhat.com>
8376 * target-delegates.c: Rebuild.
8377 * target.c (update_current_target): Don't inherit or default
8379 * target.h (struct target_ops) <to_trace_stop>: Use
8380 TARGET_DEFAULT_NORETURN.
8382 2014-02-19 Tom Tromey <tromey@redhat.com>
8384 * target-delegates.c: Rebuild.
8385 * target.c (update_current_target): Don't inherit or default
8386 to_get_tracepoint_status.
8387 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8388 TARGET_DEFAULT_NORETURN.
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8392 * target-delegates.c: Rebuild.
8393 * target.c (update_current_target): Don't inherit or default
8394 to_get_trace_status.
8395 * target.h (struct target_ops) <to_get_trace_status>: Use
8396 TARGET_DEFAULT_RETURN.
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8400 * target-delegates.c: Rebuild.
8401 * target.c (update_current_target): Don't inherit or default
8403 * target.h (struct target_ops) <to_trace_start>: Use
8404 TARGET_DEFAULT_NORETURN.
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * target-delegates.c: Rebuild.
8409 * target.c (update_current_target): Don't inherit or default
8410 to_trace_set_readonly_regions.
8411 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8412 Use TARGET_DEFAULT_NORETURN.
8414 2014-02-19 Tom Tromey <tromey@redhat.com>
8416 * target-delegates.c: Rebuild.
8417 * target.c (update_current_target): Don't inherit or default
8418 to_disable_tracepoint.
8419 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8420 TARGET_DEFAULT_NORETURN.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * target-delegates.c: Rebuild.
8425 * target.c (update_current_target): Don't inherit or default
8426 to_enable_tracepoint.
8427 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8428 TARGET_DEFAULT_NORETURN.
8430 2014-02-19 Tom Tromey <tromey@redhat.com>
8432 * target-delegates.c: Rebuild.
8433 * target.c (update_current_target): Don't inherit or default
8434 to_download_trace_state_variable.
8435 * target.h (struct target_ops) <to_download_trace_state_variable>:
8436 Use TARGET_DEFAULT_NORETURN.
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * target-delegates.c: Rebuild.
8441 * target.c (update_current_target): Don't inherit or default
8442 to_can_download_tracepoint.
8443 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8444 TARGET_DEFAULT_RETURN.
8446 2014-02-19 Tom Tromey <tromey@redhat.com>
8448 * target-delegates.c: Rebuild.
8449 * target.c (update_current_target): Don't inherit or default
8450 to_download_tracepoint.
8451 * target.h (struct target_ops) <to_download_tracepoint>: Use
8452 TARGET_DEFAULT_NORETURN.
8454 2014-02-19 Tom Tromey <tromey@redhat.com>
8456 * target-delegates.c: Rebuild.
8457 * target.c (update_current_target): Don't inherit or default
8459 * target.h (struct target_ops) <to_trace_init>: Use
8460 TARGET_DEFAULT_RETURN.
8462 2014-02-19 Tom Tromey <tromey@redhat.com>
8464 * target-delegates.c: Rebuild.
8465 * target.c (update_current_target): Don't inherit or default
8466 to_supports_string_tracing.
8467 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8468 TARGET_DEFAULT_RETURN.
8470 2014-02-19 Tom Tromey <tromey@redhat.com>
8472 * target-delegates.c: Rebuild.
8473 * target.c (update_current_target): Don't inherit or default
8474 to_supports_enable_disable_tracepoint.
8475 * target.h (struct target_ops)
8476 <to_supports_enable_disable_tracepoint>: Use
8477 TARGET_DEFAULT_RETURN.
8479 2014-02-19 Tom Tromey <tromey@redhat.com>
8481 * target-delegates.c: Rebuild.
8482 * target.c (update_current_target): Don't inherit or default
8483 to_supports_multi_process.
8484 * target.h (struct target_ops) <to_supports_multi_process>: Use
8485 TARGET_DEFAULT_RETURN.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_get_ada_task_ptid.
8492 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8493 TARGET_DEFAULT_FUNC.
8495 2014-02-19 Tom Tromey <tromey@redhat.com>
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_thread_architecture.
8500 * target.h (struct target_ops) <to_thread_architecture>: Use
8501 TARGET_DEFAULT_FUNC.
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8507 to_execution_direction.
8508 * target.h (struct target_ops) <to_execution_direction>: Use
8509 TARGET_DEFAULT_FUNC.
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8515 to_can_execute_reverse.
8516 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8517 TARGET_DEFAULT_RETURN.
8518 (target_can_execute_reverse): Unconditionally delegate.
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8525 (dummy_goto_bookmark): Remove.
8526 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8527 * target.h (struct target_ops) <to_goto_bookmark>: Use
8528 TARGET_DEFAULT_NORETURN.
8530 2014-02-19 Tom Tromey <tromey@redhat.com>
8532 * target-delegates.c: Rebuild.
8533 * target.c (update_current_target): Don't inherit or default
8535 (dummy_get_bookmark): Remove.
8536 (init_dummy_target): Don't inherit or default to_get_bookmark.
8537 * target.h (struct target_ops) <to_get_bookmark>: Use
8538 TARGET_DEFAULT_NORETURN
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_make_corefile_notes.
8545 (init_dummy_target): Don't initialize to_make_corefile_notes.
8546 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8547 TARGET_DEFAULT_FUNC.
8549 2014-02-19 Tom Tromey <tromey@redhat.com>
8551 * target-delegates.c: Rebuild.
8552 * target.c (update_current_target): Don't inherit or default
8553 to_find_memory_regions.
8554 (init_dummy_target): Don't initialize to_find_memory_regions.
8555 * target.h (struct target_ops) <to_find_memory_regions>: Use
8556 TARGET_DEFAULT_FUNC.
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target-delegates.c: Rebuild.
8561 * target.c (update_current_target): Don't inherit or default
8563 * target.h (struct target_ops) <to_log_command>: Use
8564 TARGET_DEFAULT_IGNORE.
8565 (target_log_command): Unconditionally delegate.
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8569 * target-delegates.c: Rebuild.
8570 * target.c (update_current_target): Don't inherit or default
8571 to_pid_to_exec_file.
8572 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8573 TARGET_DEFAULT_RETURN.
8575 2014-02-19 Tom Tromey <tromey@redhat.com>
8577 * target-delegates.c: Rebuild.
8578 * target.c (update_current_target): Don't inherit or default
8580 (target_thread_name): Unconditionally delegate.
8581 * target.h (struct target_ops) <to_thread_name>: Use
8582 TARGET_DEFAULT_RETURN.
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8586 * target-delegates.c: Rebuild.
8587 * target.c (update_current_target): Don't inherit or default
8588 to_extra_thread_info.
8589 * target.h (struct target_ops) <to_extra_thread_info>: Use
8590 TARGET_DEFAULT_RETURN.
8592 2014-02-19 Tom Tromey <tromey@redhat.com>
8594 * target-delegates.c: Rebuild.
8595 * target.c (update_current_target): Don't inherit or default
8597 * target.h (struct target_ops) <to_has_exited>: Use
8598 TARGET_DEFAULT_RETURN..
8600 2014-02-19 Tom Tromey <tromey@redhat.com>
8602 * target-delegates.c: Rebuild.
8603 * target.c (update_current_target): Don't inherit or default
8604 to_set_syscall_catchpoint.
8605 (return_one): Remove.
8606 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8607 TARGET_DEFAULT_RETURN.
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8611 * target-delegates.c: Rebuild.
8612 * target.c (update_current_target): Don't inherit or default
8613 to_insert_exec_catchpoint.
8614 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8615 TARGET_DEFAULT_RETURN.
8617 2014-01-08 Tom Tromey <tromey@redhat.com>
8619 * target-delegates.c: Rebuild.
8620 * target.c (update_current_target): Don't inherit or default
8621 to_insert_exec_catchpoint.
8622 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8623 TARGET_DEFAULT_RETURN.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target-delegates.c: Rebuild.
8628 * target.c (update_current_target): Don't inherit or default
8629 to_remove_vfork_catchpoint.
8630 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8631 TARGET_DEFAULT_RETURN.
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8635 * target-delegates.c: Rebuild.
8636 * target.c (update_current_target): Don't inherit or default
8637 to_insert_vfork_catchpoint.
8638 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8639 TARGET_DEFAULT_RETURN.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_remove_fork_catchpoint.
8646 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8647 TARGET_DEFAULT_RETURN.
8649 2014-02-19 Tom Tromey <tromey@redhat.com>
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_insert_fork_catchpoint.
8654 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8655 TARGET_DEFAULT_RETURN.
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_post_startup_inferior.
8662 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8663 TARGET_DEFAULT_IGNORE.
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8670 * target.h (struct target_ops) <to_load>: Use
8671 TARGET_DEFAULT_NORETURN.
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8678 * target.h (struct target_ops) <to_terminal_info>: Use
8679 TARGET_DEFAULT_FUNC.
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_terminal_save_ours.
8686 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8687 TARGET_DEFAULT_IGNORE.
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8694 * target.h (struct target_ops) <to_terminal_ours>: Use
8695 TARGET_DEFAULT_IGNORE.
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target-delegates.c: Rebuild.
8700 * target.c (update_current_target): Don't inherit or default
8701 to_terminal_ours_for_output.
8702 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8703 TARGET_DEFAULT_IGNORE.
8705 2014-02-19 Tom Tromey <tromey@redhat.com>
8707 * target-delegates.c: Rebuild.
8708 * target.c (update_current_target): Don't inherit or default
8709 to_terminal_inferior.
8710 * target.h (struct target_ops) <to_terminal_inferior>: Use
8711 TARGET_DEFAULT_IGNORE.
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8715 * target-delegates.c: Rebuild.
8716 * target.c (update_current_target): Don't inherit or default
8718 * target.h (struct target_ops) <to_terminal_init>: Use
8719 TARGET_DEFAULT_IGNORE.
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8723 * target-delegates.c: Rebuild.
8724 * target.c (update_current_target): Don't inherit or default
8725 to_can_accel_watchpoint_condition.
8726 * target.h (struct target_ops)
8727 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8731 * target-delegates.c: Rebuild.
8732 * target.c (update_current_target): Don't inherit or default
8733 to_region_ok_for_hw_watchpoint.
8734 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8735 Use TARGET_DEFAULT_FUNC.
8737 2014-02-19 Tom Tromey <tromey@redhat.com>
8739 * target-delegates.c: Rebuild.
8740 * target.c (update_current_target): Don't inherit or default
8741 to_watchpoint_addr_within_range.
8742 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8743 Use TARGET_DEFAULT_FUNC.
8745 2014-02-19 Tom Tromey <tromey@redhat.com>
8747 * target-delegates.c: Rebuild.
8748 * target.c (update_current_target): Don't inherit or default
8749 to_remove_watchpoint.
8750 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8751 TARGET_DEFAULT_NORETURN.
8753 2014-02-19 Tom Tromey <tromey@redhat.com>
8755 * target-delegates.c: Rebuild.
8756 * target.c (update_current_target): Don't inherit or default
8757 to_insert_watchpoint.
8758 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8759 TARGET_DEFAULT_RETURN.
8761 2014-02-19 Tom Tromey <tromey@redhat.com>
8763 * target-delegates.c: Rebuild.
8764 * target.c (update_current_target): Don't inherit or default
8765 to_remove_hw_breakpoint.
8766 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8767 TARGET_DEFAULT_RETURN.
8769 2014-02-19 Tom Tromey <tromey@redhat.com>
8771 * target-delegates.c: Rebuild.
8772 * target.c (update_current_target): Don't inherit or default
8773 to_insert_hw_breakpoint.
8774 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8775 TARGET_DEFAULT_RETURN.
8777 2014-02-19 Tom Tromey <tromey@redhat.com>
8779 * target-delegates.c: Rebuild.
8780 * target.c (update_current_target): Don't inherit or default
8781 to_can_use_hw_breakpoint.
8782 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8783 TARGET_DEFAULT_RETURN.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target-delegates.c: Rebuild.
8788 * target.c (update_current_target): Don't inherit or default
8790 * target.h (struct target_ops) <to_files_info>: Use
8791 TARGET_DEFAULT_IGNORE.
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8795 * target-delegates.c: Rebuild.
8796 * target.c (update_current_target): Don't inherit or default
8798 * target.h (struct target_ops) <to_store>: Use
8799 TARGET_DEFAULT_NORETURN.
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8803 * target-delegates.c: Rebuild.
8804 * target.c (update_current_target): Don't inherit or default
8806 * target.h (struct target_ops) <to_post_attach>: Use
8807 TARGET_DEFAULT_IGNORE.
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8811 * target-delegates.c: Rebuild.
8812 * target.c (update_current_target): Don't inherit or default
8814 (default_rcmd): New function.
8815 (do_monitor_command): Unconditionally delegate.
8816 * target.h (struct target_ops) <to_rmcd>: Use
8817 TARGET_DEFAULT_FUNC.
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8821 * target-delegates.c: Rebuild.
8822 * target.c (init_dummy_target): Don't initialize to_attach.
8823 (target_attach): Unconditionally delegate.
8824 * target.h (struct target_ops) <to_attach>: Use
8825 TARGET_DEFAULT_FUNC.
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * target-delegates.c: Rebuild.
8830 * target.c (target_detach): Unconditionally delegate.
8831 (init_dummy_target): Don't initialize to_detach.
8832 * target.h (struct target_ops) <to_detach>: Use
8833 TARGET_DEFAULT_IGNORE.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8839 (target_augmented_libraries_svr4_read): Add argument.
8840 * target.c (update_current_target): Update.
8841 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8846 * target.h (struct target_ops) <to_call_history_range>: Add
8848 * target.c (target_call_history_range): Add argument.
8849 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8851 (record_btrace_call_history_from): Update.
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8855 * target.h (struct target_ops) <to_call_history_from>: Add
8857 * target.c (target_call_history_from): Add argument.
8858 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8863 * target.h (struct target_ops) <to_call_history>: Add argument.
8864 * target.c (target_call_history): Add argument.
8865 * record-btrace.c (record_btrace_call_history): Add 'self'
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * target.h (struct target_ops) <to_insn_history_range>: Add
8872 * target.c (target_insn_history_range): Add argument.
8873 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8875 (record_btrace_insn_history_from): Update.
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8879 * target.h (struct target_ops) <to_insn_history_from>: Add
8881 * target.c (target_insn_history_from): Add argument.
8882 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8887 * target.h (struct target_ops) <to_insn_history>: Add argument.
8888 * target.c (target_insn_history): Add argument.
8889 * record-btrace.c (record_btrace_insn_history): Add 'self'
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8894 * target.h (struct target_ops) <to_goto_record>: Add argument.
8895 * target.c (target_goto_record): Add argument.
8896 * record-full.c (record_full_goto): Add 'self' argument.
8897 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8902 * target.c (target_goto_record_end): Add argument.
8903 * record-full.c (record_full_goto_end): Add 'self' argument.
8904 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target.h (struct target_ops) <to_goto_record_begin>: Add
8910 * target.c (target_goto_record_begin): Add argument.
8911 * record-full.c (record_full_goto_begin): Add 'self' argument.
8912 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8917 * target.h (struct target_ops) <to_record_is_replaying>: Add
8919 * target.c (target_record_is_replaying): Add argument.
8920 * record-full.c (record_full_is_replaying): Add 'self' argument.
8921 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8923 (record_btrace_xfer_partial, record_btrace_store_registers)
8924 (record_btrace_prepare_to_store, record_btrace_resume)
8925 (record_btrace_wait, record_btrace_decr_pc_after_break)
8926 (record_btrace_find_new_threads, record_btrace_thread_alive):
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8931 * target.h (struct target_ops) <to_delete_record>: Add argument.
8932 * target.c (target_delete_record): Add argument.
8933 * record-full.c (record_full_delete): Add 'self' argument.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target.h (struct target_ops) <to_save_record>: Add argument.
8938 * target.c (target_save_record): Add argument.
8939 * record-full.c (record_full_save): Add 'self' argument.
8940 (record_full_save): Add 'self' argument.
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * target.h (struct target_ops) <to_info_record>: Add argument.
8945 * target.c (target_info_record): Add argument.
8946 * record.c (info_record_command): Add argument.
8947 * record-full.c (record_full_info): Add 'self' argument.
8948 * record-btrace.c (record_btrace_info): Add 'self' argument.
8950 2014-02-19 Tom Tromey <tromey@redhat.com>
8952 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8953 * target.c (target_stop_recording): Add argument.
8954 * record.c (record_stop): Add argument.
8955 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8961 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8962 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8964 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8965 (_initialize_amd64_linux_nat): Use it.
8966 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8967 (_initialize_i386_linux_nat): Use it.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8972 * target.c (target_teardown_btrace): Add argument.
8973 * remote.c (remote_teardown_btrace): Add 'self' argument.
8974 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8976 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8982 * target.c (target_disable_btrace): Add argument.
8983 * remote.c (remote_disable_btrace): Add 'self' argument.
8984 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8986 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8989 2014-02-19 Tom Tromey <tromey@redhat.com>
8991 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8992 * target.c (target_enable_btrace): Add argument.
8993 * remote.c (remote_enable_btrace): Add 'self' argument.
8994 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8996 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9002 (target_can_use_agent): Add argument.
9003 * target.c (update_current_target): Update.
9004 * remote.c (remote_can_use_agent): Add 'self' argument.
9005 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9007 2014-02-19 Tom Tromey <tromey@redhat.com>
9009 * target.h (struct target_ops) <to_use_agent>: Add argument.
9010 (target_use_agent): Add argument.
9011 * target.c (update_current_target): Update.
9012 * remote.c (remote_use_agent): Add 'self' argument.
9013 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9017 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9018 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9019 (target_traceframe_info): Add argument.
9020 * target.c (update_current_target): Update.
9021 * remote.c (remote_traceframe_info): Add 'self' argument.
9022 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9026 * target.h (target_static_tracepoint_markers_by_strid): Add
9028 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9030 * target.c (update_current_target): Update.
9031 * remote.c (struct target_ops)
9032 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9033 * linux-nat.c (struct target_ops)
9034 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9040 (target_static_tracepoint_marker_at): Add argument.
9041 * target.c (update_current_target): Update.
9042 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9047 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9048 (target_set_permissions): Add argument.
9049 * target.c (update_current_target): Update.
9050 * remote.c (remote_set_permissions): Add 'self' argument.
9051 (remote_start_remote): Update.
9053 2014-02-19 Tom Tromey <tromey@redhat.com>
9055 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9056 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9057 (target_get_tib_address): Add argument.
9058 * target.c (update_current_target): Update.
9059 * remote.c (remote_get_tib_address): Add 'self' argument.
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9063 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9064 (target_set_trace_notes): Add argument.
9065 * target.c (update_current_target): Update.
9066 * remote.c (remote_set_trace_notes): Add 'self' argument.
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9070 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9072 (target_set_trace_buffer_size): Add argument.
9073 * target.c (update_current_target): Update.
9074 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9080 (target_set_circular_trace_buffer): Add argument.
9081 * target.c (update_current_target): Update.
9082 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9087 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9089 (target_set_disconnected_tracing): Add argument.
9090 * target.c (update_current_target): Update.
9091 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * target.h (struct target_ops)
9096 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9097 (target_get_min_fast_tracepoint_insn_len): Add argument.
9098 * target.c (update_current_target): Update.
9099 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9106 (target_get_raw_trace_data): Add argument.
9107 * target.c (update_current_target): Update.
9108 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9110 2014-02-19 Tom Tromey <tromey@redhat.com>
9112 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9114 (target_upload_trace_state_variables): Add argument.
9115 * target.c (update_current_target): Update.
9116 * remote.c (remote_upload_trace_state_variables): Add 'self'
9118 (remote_start_remote): Update.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9124 (target_upload_tracepoints): Add argument.
9125 * target.c (update_current_target): Update.
9126 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9127 (remote_start_remote): Update.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9132 (target_save_trace_data): Add argument.
9133 * target.c (update_current_target): Update.
9134 * remote.c (remote_save_trace_data): Add 'self' argument.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9140 * target.h (struct target_ops)
9141 <to_get_trace_state_variable_value>: Add argument.
9142 (target_get_trace_state_variable_value): Add argument.
9143 * target.c (update_current_target): Update.
9144 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9146 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9151 * target.h (struct target_ops) <to_trace_find>: Add argument.
9152 (target_trace_find): Add argument.
9153 * target.c (update_current_target): Update.
9154 * remote.c (remote_trace_find): Add 'self' argument.
9155 * ctf.c (ctf_trace_find): Add 'self' argument.
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9159 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9160 (target_trace_stop): Add argument.
9161 * target.c (update_current_target): Update.
9162 * remote.c (remote_trace_stop): Add 'self' argument.
9164 2014-02-19 Tom Tromey <tromey@redhat.com>
9166 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9167 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9169 (target_get_tracepoint_status): Add argument.
9170 * target.c (update_current_target): Update.
9171 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9175 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9176 * target.h (struct target_ops) <to_get_trace_status>: Add
9178 (target_get_trace_status): Add argument.
9179 * target.c (update_current_target): Update.
9180 * remote.c (remote_get_trace_status): Add 'self' argument.
9181 (remote_start_remote, remote_can_download_tracepoint): Update.
9182 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target.h (struct target_ops) <to_trace_start>: Add argument.
9187 (target_trace_start): Add argument.
9188 * target.c (update_current_target): Update.
9189 * remote.c (remote_trace_start): Add 'self' argument.
9191 2014-02-19 Tom Tromey <tromey@redhat.com>
9193 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9195 (target_trace_set_readonly_regions): Add argument.
9196 * target.c (update_current_target): Update.
9197 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9202 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9204 (target_disable_tracepoint): Add argument.
9205 * target.c (update_current_target): Update.
9206 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9208 2014-02-19 Tom Tromey <tromey@redhat.com>
9210 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9212 (target_enable_tracepoint): Add argument.
9213 * target.c (update_current_target): Update.
9214 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9216 2014-02-19 Tom Tromey <tromey@redhat.com>
9218 * target.h (struct target_ops) <to_download_trace_state_variable>:
9220 (target_download_trace_state_variable): Add argument.
9221 * target.c (update_current_target): Update.
9222 * remote.c (remote_download_trace_state_variable): Add 'self'
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9229 (target_can_download_tracepoint): Add argument.
9230 * target.c (update_current_target): Update.
9231 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9235 * target.h (struct target_ops) <to_download_tracepoint>: Add
9237 (target_download_tracepoint): Add argument.
9238 * target.c (update_current_target): Update.
9239 * remote.c (remote_download_tracepoint): Add 'self' argument.
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9243 * target.h (struct target_ops) <to_trace_init>: Add argument.
9244 (target_trace_init): Add argument.
9245 * target.c (update_current_target): Update.
9246 * remote.c (remote_trace_init): Add 'self' argument.
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9250 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9251 * target.c (target_fileio_readlink): Add argument.
9252 * remote.c (remote_hostio_readlink): Add 'self' argument.
9253 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9257 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9258 * target.c (target_fileio_unlink): Add argument.
9259 * remote.c (remote_hostio_unlink): Add 'self' argument.
9260 (remote_file_delete): Update.
9261 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9266 * target.c (target_fileio_close): Add argument.
9267 * remote.c (remote_hostio_close): Add 'self' argument.
9268 (remote_hostio_close_cleanup): Update.
9269 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9271 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9276 * target.c (target_fileio_pread): Add argument.
9277 * remote.c (remote_hostio_pread): Add 'self' argument.
9278 (remote_bfd_iovec_pread, remote_file_get): Update.
9279 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9281 2014-02-19 Tom Tromey <tromey@redhat.com>
9283 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9284 * target.c (target_fileio_pwrite): Add argument.
9285 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9286 (remote_file_put): Update.
9287 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9291 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9292 * target.c (target_fileio_open): Add argument.
9293 * remote.c (remote_hostio_open): Add 'self' argument.
9294 (remote_bfd_iovec_open): Add 'self' argument.
9295 (remote_file_put): Add 'self' argument.
9296 (remote_file_get): Add 'self' argument.
9297 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9301 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9303 (target_can_run_breakpoint_commands): Add argument.
9304 * target.c (update_current_target): Update.
9305 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9307 (remote_insert_breakpoint): Add 'self' argument.
9308 (remote_insert_hw_breakpoint): Add 'self' argument.
9309 (remote_can_run_breakpoint_commands): Add 'self' argument.
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9313 * target.h (struct target_ops)
9314 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9315 (target_supports_evaluation_of_breakpoint_conditions): Add
9317 * target.c (update_current_target): Update.
9318 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9320 (remote_insert_breakpoint): Add 'self' argument.
9321 (remote_insert_hw_breakpoint): Add 'self' argument.
9322 (remote_supports_cond_breakpoints): Add 'self' argument.
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9328 (target_supports_string_tracing): Add argument.
9329 * target.c (update_current_target): Update.
9330 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9332 2014-02-19 Tom Tromey <tromey@redhat.com>
9334 * target.h (struct target_ops)
9335 <to_supports_disable_randomization>: Add argument.
9336 * target.c (find_default_supports_disable_randomization): Add
9338 (target_supports_disable_randomization): Add argument.
9339 (find_default_supports_disable_randomization): Add 'self'
9341 * remote.c (extended_remote_supports_disable_randomization): Add
9343 (remote_supports_disable_randomization): Add 'self' argument.
9344 (extended_remote_create_inferior): Update.
9345 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9348 2014-02-19 Tom Tromey <tromey@redhat.com>
9350 * target.h (struct target_ops)
9351 <to_supports_enable_disable_tracepoint>: Add argument.
9352 (target_supports_enable_disable_tracepoint): Add argument.
9353 * target.c (update_current_target): Update.
9354 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target.h (struct target_ops) <to_supports_multi_process>: Add
9361 (target_supports_multi_process): Add argument.
9362 * target.c (update_current_target): Update.
9363 * remote.c (remote_supports_multi_process): Add 'self' argument.
9364 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9366 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target.h (struct target_ops) <to_execution_direction>: Add
9373 (target_execution_direction): Add argument.
9374 * target.c (default_execution_direction): Add 'self' argument.
9375 * record-full.c (record_full_execution_direction): Add 'self'
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9382 (target_can_execute_reverse): Add argument.
9383 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9384 * record-full.c (record_full_can_execute_reverse): Add 'self'
9386 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9391 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9392 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9394 (target_get_ada_task_ptid): Add argument.
9395 * target.c (update_current_target): Update.
9396 (default_get_ada_task_ptid): Add 'self' argument.
9397 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9398 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9399 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9401 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9403 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9405 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9407 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9408 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9413 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9414 (target_goto_bookmark): Add argument.
9415 * target.c (dummy_goto_bookmark): Add 'self' argument.
9416 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9420 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9421 (target_get_bookmark): Add argument.
9422 * target.c (dummy_get_bookmark): Add 'self' argument.
9423 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9425 2014-02-19 Tom Tromey <tromey@redhat.com>
9427 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9429 (target_make_corefile_notes): Add argument.
9430 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9431 * procfs.c (procfs_make_note_section): Add 'self' argument.
9432 (procfs_make_note_section): Add 'self' argument.
9433 (procfs_make_note_section): Add 'self' argument.
9434 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9436 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9437 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9438 * exec.c (exec_make_note_section): Add 'self' argument.
9439 (exec_make_note_section): Add 'self' argument.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target.h (struct target_ops) <to_find_memory_regions>: Add
9445 (target_find_memory_regions): Add argument.
9446 * target.c (dummy_find_memory_regions): Add 'self' argument.
9447 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9448 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9449 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9450 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9451 * exec. (exec_do_find_memory_regions): New global.
9452 (exec_set_find_memory_regions): Rewrite.
9453 (exec_find_memory_regions): New function.
9454 (init_exec_ops): Use exec_find_memory_regions.
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * target.h (struct target_ops) <to_supports_non_stop>: Add
9460 * target.c (find_default_supports_non_stop): Add argument.
9461 (target_supports_non_stop): Add argument.
9462 (find_default_supports_non_stop): Add 'self' argument.
9463 * remote.c (remote_supports_non_stop): Add 'self' argument.
9464 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target.h (struct target_ops) <to_log_command>: Add argument.
9469 (target_log_command): Add argument.
9470 * serial.h (serial_log_command): Add 'self' argument.
9471 * serial.c (serial_log_command): Add 'self' argument.
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9475 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9476 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9478 (target_pid_to_exec_file): Add argument.
9479 * target.c (debug_to_pid_to_exec_file): Add argument.
9480 (update_current_target): Update.
9481 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9482 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9483 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9484 (linux_handle_extended_wait): Update.
9485 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9486 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9487 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9488 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9490 2014-02-19 Tom Tromey <tromey@redhat.com>
9492 * target.h (struct target_ops) <to_rcmd>: Add argument.
9493 (target_rcmd): Add argument.
9494 * target.c (debug_to_rcmd): Add argument.
9495 (update_current_target, do_monitor_command): Update.
9496 * remote.c (remote_rcmd): Add 'self' argument.
9497 * monitor.c (monitor_rcmd): Add 'self' argument.
9499 2014-02-19 Tom Tromey <tromey@redhat.com>
9501 * windows-nat.c (windows_stop): Add 'self' argument.
9502 * target.h (struct target_ops) <to_stop>: Add argument.
9503 * target.c (target_stop): Add argument.
9504 (debug_to_stop): Add argument.
9505 (update_current_target): Update.
9506 * remote.c (remote_stop): Add 'self' argument.
9507 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9508 (gdbsim_cntrl_c): Update.
9509 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9510 * procfs.c (procfs_stop): Add 'self' argument.
9511 * nto-procfs.c (procfs_stop): Add 'self' argument.
9512 * monitor.c (monitor_stop): Add 'self' argument.
9513 (monitor_open): Update.
9514 * linux-nat.c (linux_nat_stop): Add argument.
9515 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9516 * gnu-nat.c (gnu_stop): Add 'self' argument.
9517 * darwin-nat.c (darwin_stop): Add 'self' argument.
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target.h (struct target_ops) <to_thread_name>: Add argument.
9522 * target.c (target_thread_name): Add argument.
9523 (update_current_target): Update.
9524 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * target.h (struct target_ops) <to_extra_thread_info>: Add
9530 (target_extra_thread_info): Add argument.
9531 * target.c (update_current_target): Update.
9532 * remote.c (remote_threads_extra_info): Add 'self' argument.
9533 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9535 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9536 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9537 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9539 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9541 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9543 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * target.h (struct target_ops) <to_program_signals>: Add argument.
9549 * target.c (target_program_signals): Add argument.
9550 * remote.c (remote_program_signals): Add 'self' argument.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9555 * target.c (target_pass_signals): Add argument.
9556 * remote.c (remote_pass_signals): Add 'self' argument.
9557 (remote_start_remote): Update.
9558 * procfs.c (procfs_pass_signals): Add 'self' argument.
9559 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9560 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9561 (linux_nat_create_inferior, linux_nat_attach): Update.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * windows-nat.c (windows_can_run): Add 'self' argument.
9566 * target.h (struct target_ops) <to_can_run>: Add argument.
9567 (target_can_run): Add argument.
9568 * target.c (debug_to_can_run): Add argument.
9569 (update_current_target): Update.
9570 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9571 * inf-child.c (inf_child_can_run): Add 'self' argument.
9572 * go32-nat.c (go32_can_run): Add 'self' argument.
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_has_exited>: Add argument.
9577 (target_has_exited): Add argument.
9578 * target.c (debug_to_has_exited): Add argument.
9579 (update_current_target): Update.
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9583 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9585 (target_set_syscall_catchpoint): Add argument.
9586 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9588 * target.c (update_current_target): Update.
9590 2014-02-19 Tom Tromey <tromey@redhat.com>
9592 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9594 (target_remove_exec_catchpoint): Add argument.
9595 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9596 (update_current_target): Update.
9597 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9604 (target_insert_exec_catchpoint): Add argument.
9605 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9606 (update_current_target): Update.
9607 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9612 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9614 (target_remove_vfork_catchpoint): Add argument.
9615 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9616 (update_current_target): Update.
9617 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9622 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9624 (target_insert_vfork_catchpoint): Add argument.
9625 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9626 (update_current_target): Update.
9627 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9630 2014-02-19 Tom Tromey <tromey@redhat.com>
9632 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9634 (target_remove_fork_catchpoint): Add argument.
9635 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9636 (update_current_target): Update.
9637 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9642 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9644 (target_insert_fork_catchpoint): Add argument.
9645 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9646 (update_current_target): Update.
9647 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9654 (target_post_startup_inferior): Add argument.
9655 * target.c (debug_to_post_startup_inferior): Add argument.
9656 (update_current_target): Update.
9657 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9659 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9661 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9663 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9665 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9667 (super_post_startup_inferior): Likewise.
9668 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9670 (super_post_startup_inferior): Likewise.
9671 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9672 Add 'self' argument.
9673 (super_post_startup_inferior): Likewise.
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9677 * target.h (struct target_ops) <to_load>: Add argument.
9678 * target.c (target_load): Add argument.
9679 (debug_to_load): Add argument.
9680 (update_current_target): Update.
9681 * remote.c (remote_load): Add 'self' argument.
9682 * remote-sim.c (gdbsim_load): Add 'self' argument.
9683 * remote-mips.c (mips_load): Add 'self' argument.
9684 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9685 * monitor.c (monitor_load): Add 'self' argument.
9686 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9691 (target_terminal_info): Add argument.
9692 * target.c (debug_to_terminal_info): Add argument.
9693 (default_terminal_info): Likewise.
9694 * inflow.c (child_terminal_info): Add 'self' argument.
9695 * inferior.h (child_terminal_info): Add 'self' argument.
9696 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9700 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9702 (target_terminal_save_ours): Add argument.
9703 * target.c (debug_to_terminal_save_ours): Add argument.
9704 (update_current_target): Update.
9705 * inflow.c (terminal_save_ours): Add 'self' argument.
9706 * inferior.h (terminal_save_ours): Add 'self' argument.
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9710 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9711 (target_terminal_ours): Add argument.
9712 * target.c (debug_to_terminal_ours): Add argument.
9713 (update_current_target): Update.
9714 * remote.c (remote_terminal_ours): Add 'self' argument.
9715 (remote_close): Update.
9716 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9717 * inflow.c (terminal_ours): Add 'self' argument.
9718 * inferior.h (terminal_ours): Add 'self' argument.
9719 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9721 2014-02-19 Pedro Alves <palves@redhat.com>
9722 Tom Tromey <tromey@redhat.com>
9724 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9726 (target_terminal_ours_for_output): Add argument.
9727 * target.c (debug_to_terminal_ours_for_output): Add argument.
9728 (update_current_target): Update.
9729 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9730 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9731 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9733 2014-02-19 Tom Tromey <tromey@redhat.com>
9735 * target.h (struct target_ops) <to_terminal_inferior>: Add
9737 * target.c (target_terminal_inferior): Add argument.
9738 (update_current_target): Update.
9739 * remote.c (remote_terminal_inferior): Add 'self' argument.
9740 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9741 * inflow.c (terminal_inferior): Add 'self' argument.
9742 * inferior.h (terminal_inferior): Add 'self' argument.
9743 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9744 (go32_terminal_inferior): Add 'self' argument.
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9748 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9749 (target_terminal_init): Add argument.
9750 * target.c (debug_to_terminal_init): Add argument.
9751 (update_current_target): Update.
9752 * inflow.c (terminal_init_inferior): Add 'self' argument.
9753 * inferior.h (terminal_init_inferior): Add 'self' argument.
9754 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9755 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9757 2014-02-19 Tom Tromey <tromey@redhat.com>
9759 * target.h (struct target_ops)
9760 <to_can_accel_watchpoint_condition>: Add argument.
9761 (target_can_accel_watchpoint_condition): Add argument.
9762 * target.c (debug_to_can_accel_watchpoint_condition): Add
9764 (update_current_target): Update.
9765 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9768 2014-02-19 Tom Tromey <tromey@redhat.com>
9770 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9772 (target_region_ok_for_hw_watchpoint): Add argument.
9773 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9774 (default_region_ok_for_hw_watchpoint): Add argument.
9775 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9776 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9778 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9780 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9782 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9784 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9786 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9788 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9789 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9791 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9792 Add 'self' argument.
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9798 (target_insert_watchpoint): Add argument.
9799 * target.c (debug_to_insert_watchpoint): Add argument.
9800 (update_current_target): Update.
9801 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9802 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9803 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9804 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9805 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9806 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9808 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9809 (procfs_insert_hw_watchpoint): Add 'self' argument.
9810 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9812 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9814 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9816 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9817 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9819 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9826 (target_remove_watchpoint): Add argument.
9827 * target.c (debug_to_remove_watchpoint): Add argument.
9828 (update_current_target): Update.
9829 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9830 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9831 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9832 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9833 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9834 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9836 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9837 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9839 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9841 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9843 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9844 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9846 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9853 (target_remove_hw_breakpoint): Add argument.
9854 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9855 (update_current_target): Update.
9856 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9857 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9859 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9860 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9862 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9869 (target_insert_hw_breakpoint): Add argument.
9870 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9871 (update_current_target): Update.
9872 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9873 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9875 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9876 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9877 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9879 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9884 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9886 (target_can_use_hardware_watchpoint): Add argument.
9887 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9888 (update_current_target): Update.
9889 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9891 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9893 * remote.c (remote_check_watch_resources): Add 'self' argument.
9894 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9895 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9897 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9898 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9900 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9902 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9904 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9906 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9908 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9910 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9911 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9913 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * target.h (struct target_ops) <to_post_attach>: Add argument.
9919 (target_post_attach): Add argument.
9920 * target.c (debug_to_post_attach): Add argument.
9921 (update_current_target): Update.
9922 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9923 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9924 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9925 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9926 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * windows-nat.c (windows_close): Add 'self' argument.
9931 * tracepoint.c (tfile_close): Add 'self' argument.
9932 * target.h (struct target_ops) <to_close>: Add argument.
9933 * target.c (target_close): Add argument.
9934 (update_current_target): Update.
9935 * remote.c (remote_close): Add 'self' argument.
9936 * remote-sim.c (gdbsim_close): Add 'self' argument.
9937 * remote-mips.c (mips_close): Add 'self' argument.
9938 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9939 * record-full.c (record_full_close): Add 'self' argument.
9940 * record-btrace.c (record_btrace_close): Add 'self' argument.
9941 * monitor.h (monitor_close): Add 'self' argument.
9942 * monitor.c (monitor_close): Add 'self' argument.
9943 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9944 * linux-nat.c (linux_nat_close): Add argument.
9945 * go32-nat.c (go32_close): Add 'self' argument.
9946 * exec.c (exec_close_1): Add 'self' argument.
9947 * ctf.c (ctf_close): Add 'self' argument.
9948 * corelow.c (core_close): Add 'self' argument.
9949 (core_close_cleanup): Update.
9950 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9951 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9955 * remote.c (remote_load): New function.
9956 (init_remote_ops): Use it.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9962 * common/linux-btrace.h (linux_supports_btrace): Update.
9963 * remote.c (remote_supports_btrace): Add "self" argument.
9964 * target-delegates.c: Rebuild.
9965 * target.c (target_supports_btrace): Remove.
9966 * target.h (struct target_ops) <to_supports_btrace>: Add
9967 target_ops argument.
9968 (target_supports_btrace): New define.
9970 2014-02-19 Tom Tromey <tromey@redhat.com>
9972 * record-full.c (record_full_beneath_to_resume_ops)
9973 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9974 (record_full_beneath_to_wait)
9975 (record_full_beneath_to_store_registers_ops)
9976 (record_full_beneath_to_store_registers)
9977 (record_full_beneath_to_xfer_partial_ops)
9978 (record_full_beneath_to_xfer_partial)
9979 (record_full_beneath_to_insert_breakpoint_ops)
9980 (record_full_beneath_to_insert_breakpoint)
9981 (record_full_beneath_to_remove_breakpoint_ops)
9982 (record_full_beneath_to_remove_breakpoint)
9983 (record_full_beneath_to_stopped_by_watchpoint)
9984 (record_full_beneath_to_stopped_data_address)
9985 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9986 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9987 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9988 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9989 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9990 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9991 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9992 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9993 (record_full_resume, record_full_wait_1)
9994 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9995 (record_full_store_registers, record_full_xfer_partial)
9996 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9997 (record_full_async, record_full_core_xfer_partial): Use target
9999 * target-delegates.c: Rebuild.
10000 * target.c (current_xfer_partial): Remove.
10001 (update_current_target): Do not INHERIT or de_fault
10002 to_insert_breakpoint, to_remove_breakpoint,
10003 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10004 to_is_async_p, to_async. Do not set to_xfer_partial field.
10005 (default_xfer_partial): Simplify.
10006 (current_xfer_partial): Remove.
10007 (target_wait, target_resume): Simplify.
10008 (find_default_can_async_p, find_default_is_async_p): Update.
10009 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10010 to_xfer_partial, to_stopped_by_watchpoint,
10011 to_stopped_data_address.
10012 (target_store_registers): Simplify.
10013 (forward_target_remove_breakpoint)
10014 (forward_target_insert_breakpoint): Remove.
10015 (target_remove_breakpoint, target_insert_breakpoint)
10016 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10017 * target.h (struct target_ops) <to_resume, to_wait,
10018 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10019 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10020 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10022 (forward_target_remove_breakpoint)
10023 (forward_target_insert_breakpoint): Remove.
10024 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10026 (record_btrace_insert_breakpoint): Delegate directly.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10031 * target-delegates.c: New file.
10032 * target.c: Include target-delegates.c.
10033 (init_dummy_target): Call install_dummy_methods.
10034 (complete_target_initialization): Call install_delegators.
10035 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10036 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10037 * make-target-delegates: New file.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * record.c (find_record_target): Use find_target_at.
10042 * target.c (find_target_at): New function.
10043 * target.h (find_target_at): Declare.
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10047 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10048 Add 'ops' argument.
10049 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10051 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10052 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10054 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10056 * linux-nat.c (save_sigtrap): Update.
10057 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10058 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10059 (linux_nat_close): Update.
10060 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10062 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10064 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10065 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10066 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10067 (tmp_to_async): Add 'ops' argument.
10068 (record_full_stopped_by_watchpoint, record_full_async)
10069 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10071 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10072 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10073 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10074 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10075 (remote_is_async_p, remote_async): Add 'ops' argument.
10076 (remote_stopped_data_address): Update.
10077 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10078 * target.c (update_current_target)
10079 (find_default_can_async_p, find_default_is_async_p): Update.
10080 (init_dummy_target): Update.
10081 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10082 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10083 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10084 (target_can_async_p, target_is_async_p, target_async)
10085 (target_stopped_by_watchpoint): Update.
10087 2014-02-19 Yao Qi <yao@codesourcery.com>
10090 * gdbarch.sh: Remove startup_gdbarch.
10091 * gdbarch.c: Regenerated.
10092 * gdbarch.h: Likewise.
10094 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10096 * rl78-tdep.c (rl78_g10_register_name): New function.
10097 (rl78_return_value): Add g10 support.
10098 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10101 2014-02-17 Doug Evans <xdje42@gmail.com>
10103 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10104 (SUBDIR_GUILE_SRCS): Ditto.
10105 (scm-gsmob.o): Ditto.
10107 2014-02-17 Yao Qi <yao@codesourcery.com>
10109 * gnu-nat.c (ILL_RPC): Declare defined function.
10111 2014-02-17 Yao Qi <yao@codesourcery.com>
10113 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10114 mach_msg_type_number_t.
10115 (gnu_write_inferior): Likewise.
10117 2014-02-17 Yao Qi <yao@codesourcery.com>
10119 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10121 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10122 (inf_validate_procs, inf_signal): Likewise.
10123 (S_exception_raise_request): Likewise.
10124 (do_mach_notify_dead_name): Likewise.
10125 (steal_exc_port): Likewise.
10126 (gnu_read_inferior): Change 'copy_count''s type to
10127 mach_msg_type_number_t.
10128 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10131 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10133 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10134 flag. Adjust all users; in particular...
10135 (gnu_wait): ..., don't decrement its value in here...
10136 (gnu_create_inferior): ..., and instead set the flag in here,
10137 around the startup_inferior call, and call that one with
10138 START_INFERIOR_TRAPS_EXPECTED.
10140 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10141 (ILL_RPC): ... new macro.
10142 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10143 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10144 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10145 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10146 functions with ILL_RPC macro.
10147 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10148 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10149 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10150 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10151 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10152 (S_proc_getlogin_reply, S_proc_getsid_reply)
10153 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10154 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10155 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10156 (S_proc_getnports_reply, S_proc_is_important_reply)
10157 (S_proc_get_code_reply): New stub functions, generated with
10160 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10161 collected the type check structures.
10163 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10165 2014-02-14 Doug Evans <dje@google.com>
10167 * target.c (target_write_partial): Fix result type.
10169 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10171 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10172 the proper offsets to access fpregset_t.
10174 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10176 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10177 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10178 * h8300-tdep.c (setmachinelist): Remove global.
10179 * hppa-tdep.c (hppa_sigtramp): Remove global.
10180 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10181 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10182 * ravenscar-thread.c (update_target_observer): Remove global.
10183 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10185 2014-02-12 Tom Tromey <tromey@redhat.com>
10187 * common/rsp-low.c: Update comments.
10188 * common/rsp-low.h: Update comments.
10190 2014-02-12 Tom Tromey <tromey@redhat.com>
10192 * common/rsp-low.c (convert_ascii_to_int): Remove.
10193 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10195 2014-02-12 Tom Tromey <tromey@redhat.com>
10197 * common/rsp-low.h (unhexify): Don't declare.
10198 * common/rsp-low.c (unhexify): Remove.
10200 2014-02-12 Tom Tromey <tromey@redhat.com>
10202 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10203 * common/rsp-low.c (convert_int_to_ascii): Remove.
10205 2014-02-12 Tom Tromey <tromey@redhat.com>
10207 * common/rsp-low.h (hexify): Don't declare.
10208 * common/rsp-low.c (hexify): Remove.
10210 2014-02-12 Tom Tromey <tromey@redhat.com>
10212 * common/rsp-low.c (hexify): Never take strlen of argument.
10214 2014-02-12 Tom Tromey <tromey@redhat.com>
10216 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10217 * remote.c (extended_remote_run, remote_rcmd)
10218 (remote_download_trace_state_variable, remote_save_trace_data)
10219 (remote_set_trace_notes): Update.
10220 * tracepoint.c (encode_source_string, tfile_write_status)
10221 (tfile_write_uploaded_tsv): Update.
10223 2014-02-12 Tom Tromey <tromey@redhat.com>
10225 * tracepoint.c: Include rsp-low.h.
10226 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10227 * remote.c: Include rsp-low.h.
10228 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10229 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10230 (remote_unescape_input): Move to common/rsp-low.c.
10231 * common/rsp-low.h: New file.
10232 * common/rsp-low.c: New file.
10233 * Makefile.in (SFILES): Add common/rsp-low.c.
10234 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10235 (COMMON_OBS): Add rsp-low.o.
10236 (rsp-low.o): New target.
10238 2014-02-12 Tom Tromey <tromey@redhat.com>
10240 * utils.h: Include print-utils.h.
10241 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10242 (int_string, core_addr_to_string, core_addr_to_string_nz)
10243 (hex_string, hex_string_custom): Don't declare.
10244 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10245 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10246 (hex_string_custom, int_string, core_addr_to_string)
10247 (core_addr_to_string_nz, host_address_to_string): Move to
10248 common/print-utils.c.
10249 * common/print-utils.h: New file.
10250 * common/print-utils.c: New file
10251 * Makefile.in (SFILES): Add common/print-utils.c.
10252 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10253 (COMMON_OBS): Add print-utils.o.
10254 (print-utils.o): New target.
10256 2014-02-12 Tom Tromey <tromey@redhat.com>
10258 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10260 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10262 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10264 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10266 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10267 if a PT_IO ptrace request returns sucessfully but indicates that 0
10268 bytes were transferred.
10270 2014-02-12 Pedro Alves <palves@redhat.com>
10271 Kevin Buettner <kevinb@redhat.com>
10273 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10274 TYPE_INSTANCE_FLAG_CODE_SPACE.
10276 2014-02-12 Pedro Alves <palves@redhat.com>
10278 * h8300-tdep.c (pseudo_from_raw_register)
10279 (raw_from_pseudo_register): New functions.
10280 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10283 2014-02-12 Pedro Alves <palves@redhat.com>
10285 * h8300-tdep.c (h8300_register_sim_regno): New function.
10286 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10287 gdbarch_register_sim_regno hook.
10289 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10291 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10293 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10295 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10297 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10299 * obsd-tdep.h (obsd_init_abi): New prototype.
10300 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10301 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10302 (obsd_init_abi): New functions.
10303 * i386obsd-tdep.c: Include "obsd-tdep.h".
10304 (i386obsd_init_abi): Call obsd_init_abi.
10305 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10306 (amd64obsd_init_abi): Call obsd_init_abi.
10307 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10308 obsd-tdep.c to gdb_target_obs.
10310 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10312 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10313 double float arguments to 16-byte in the argument slots.
10315 2014-02-11 Doug Evans <xdje42@gmail.com>
10317 * configure.ac: Don't crash if pkg-config is not found and guile
10318 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10320 * configure: Regenerate.
10322 2014-02-11 Yao Qi <yao@codesourcery.com>
10324 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10325 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10326 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10327 * gnu-nat.c (gnu_xfer_memory): Likewise.
10328 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10329 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10330 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10331 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10333 2014-02-11 Yao Qi <yao@codesourcery.com>
10335 * target.h (enum target_xfer_error): Rename to ...
10336 (enum target_xfer_status): ... it. New. All users updated.
10337 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10339 (TARGET_XFER_STATUS_ERROR_P): New macro.
10340 (target_xfer_error_to_string): Remove declaration.
10341 (target_xfer_status_to_string): Declare.
10342 (target_xfer_partial_ftype): Adjust it.
10343 (struct target_ops) <to_xfer_partial>: Return
10344 target_xfer_status. Add argument xfered_len. Update
10346 * target.c (target_xfer_error_to_string): Rename to ...
10347 (target_xfer_status_to_string): ... it. New. All callers
10349 (target_read_live_memory): Likewise. Call target_xfer_partial
10350 instead of target_read.
10351 (memory_xfer_live_readonly_partial): Return
10352 target_xfer_status. Add argument xfered_len.
10353 (raw_memory_xfer_partial): Likewise.
10354 (memory_xfer_partial_1): Likewise.
10355 (memory_xfer_partial): Likewise.
10356 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10357 properly. Update debug message.
10358 (default_xfer_partial, current_xfer_partial): Likewise.
10359 (target_write_partial): Likewise.
10360 (target_read_partial): Likewise. All callers updated.
10361 (read_whatever_is_readable): Likewise.
10362 (target_write_with_progress): Likewise.
10363 (target_read_alloc_1): Likewise.
10365 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10366 * auxv.c (procfs_xfer_auxv): Likewise.
10367 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10368 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10369 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10370 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10371 * corefile.c (read_memory): Adjust.
10372 * corelow.c (core_xfer_partial): Likewise.
10373 * ctf.c (ctf_xfer_partial): Likewise.
10374 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10376 (darwin_xfer_partial): Likewise.
10377 * exec.c (section_table_xfer_memory_partial): Likewise. All
10379 (exec_xfer_partial): Likewise.
10380 * exec.h (section_table_xfer_memory_partial): Update
10382 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10384 (gnu_xfer_partial): Likewise.
10385 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10386 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10387 (ia64_hpux_xfer_solib_got): Likewise.
10388 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10389 type of 'partial_len' to ULONGEST.
10390 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10391 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10392 (linux_nat_xfer_partial): Likewise.
10393 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10394 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10395 * monitor.c (monitor_xfer_memory): Likewise.
10396 (monitor_xfer_partial): Likewise.
10397 * procfs.c (procfs_xfer_partial): Likewise.
10398 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10399 * record-full.c (record_full_xfer_partial): Likewise.
10400 (record_full_core_xfer_partial): Likewise.
10401 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10402 (gdbsim_xfer_partial): Likewise.
10403 * remote.c (remote_write_bytes_aux): Likewise. All callers
10405 (remote_write_bytes, remote_read_bytes): Likewise. All
10407 (remote_flash_erase): Likewise. All callers updated.
10408 (remote_write_qxfer): Likewise. All callers updated.
10409 (remote_read_qxfer): Likewise. All callers updated.
10410 (remote_xfer_partial): Likewise.
10411 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10412 (rs6000_xfer_shared_libraries): Likewise.
10413 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10414 (sol_thread_xfer_partial): Likewise.
10415 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10416 (sparc_xfer_partial): Likewise.
10417 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10419 (spu_xfer_partial): Likewise.
10420 * spu-multiarch.c (spu_xfer_partial): Likewise.
10421 * tracepoint.c (tfile_xfer_partial): Likewise.
10422 * windows-nat.c (windows_xfer_memory): Likewise.
10423 (windows_xfer_shared_libraries): Likewise.
10424 (windows_xfer_partial): Likewise.
10425 * valprint.c: Replace 'target_xfer_error' with
10426 'target_xfer_status' in comments.
10428 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10430 Checked in by Joel Brobecker <brobecker@adacore.com>.
10431 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10433 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10435 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10436 function parameters.
10438 2014-02-10 Will Newton <will.newton@linaro.org>
10440 * elfread.c (elf_rel_plt_read): Look for a .got section if
10441 looking up .got.plt fails.
10442 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10443 on address passed to elf_gnu_ifunc_record_cache.
10444 (elf_gnu_ifunc_resolve_addr): Likewise.
10445 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10447 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10449 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10450 (X_RETTURN): New macro.
10451 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10453 * sparc64-tdep.c (sparc64_init_abi): Hook
10454 sparc_in_function_epilogue_p.
10456 2014-02-10 Gary Benson <gbenson@redhat.com>
10458 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10459 Rename name_matcher to symbol_matcher.
10461 2014-02-10 Gary Benson <gbenson@redhat.com>
10463 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10464 Use expand_symtabs_file_matcher_ftype and
10465 expand_symtabs_symbol_matcher_ftype.
10467 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10469 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10470 (struct ada_symbol_cache): New.
10471 (ada_free_symbol_cache): Forward declare.
10472 (struct ada_pspace_data): New.
10473 (ada_pspace_data_handle): New static global.
10474 (get_ada_pspace_data, ada_pspace_data_cleanup)
10475 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10476 (cache_space, cache): Delete, now folded inside struct
10478 (ada_get_symbol_cache): New function.
10479 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10481 (_initialize_ada_language): Remove initialization of cache_space.
10482 Move call to observer_attach_inferior_exit up, grouping it
10483 with the other observer registrations inside this function.
10484 Rename command to be more general. Add call to
10485 register_program_space_data_with_cleanup.
10487 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10489 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10490 ada_new_objfile_observer.
10491 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10492 (_initialize_tasks): Update uses of ada_new_objfile_observer
10493 and ada_tasks_normal_stop_observer.
10495 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10497 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10498 returned by the 'Length attribute to integer.
10500 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10502 * ada-lang.c (_initialize_ada_language): Initialize
10503 cache_space obstack.
10505 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10507 * ada-lang.c (HASH_SIZE): New macro.
10508 (struct cache_entry): New type.
10509 (cache_space, cache): New static globals.
10510 (ada_clear_symbol_cache, find_entry): New functions.
10511 (lookup_cached_symbol, cache_symbol): Implement.
10512 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10513 (_initialize_ada_language): Attach ada_new_objfile_observer
10514 and ada_free_objfile_observer.
10516 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10518 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10519 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10520 struct block * parameter.
10521 (ada_lookup_symbol_list_worker): Constify local variable "block".
10522 Remove cast which is no longer necessary.
10524 2014-02-10 Doug Evans <xdje42@gmail.com>
10526 Add Guile as an extension language.
10527 * NEWS: Mention Guile scripting.
10528 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10529 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10530 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10531 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10532 (CLIBS): Add GUILE_LIBS.
10533 (install-guile): New rule.
10534 (guile.o): New rule.
10535 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10536 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10537 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10538 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10539 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10540 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10541 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10542 * configure.ac: New option --with-guile.
10543 * configure: Regenerate.
10544 * config.in: Regenerate.
10545 * auto-load.c: Remove #include "python/python.h". Add #include
10546 "gdb/section-scripts.h".
10547 (source_section_scripts): Handle Guile scripts.
10548 (_initialize_auto_load): Add name of Guile objfile script to
10549 scripts-directory help text.
10550 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10551 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10552 (struct breakpoint): New member scm_bp_object.
10553 * defs.h (enum command_control_type): New value guile_control.
10554 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10556 (show_user): Update comment.
10557 (_initialize_cli_cmds): Update help text for "show user". Update help
10558 text for max-user-call-depth.
10559 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10561 (multi_line_command_p): Add guile_control.
10562 (print_command_lines): Handle guile_control.
10563 (execute_control_command, recurse_read_control_structure): Ditto.
10564 (process_next_line): Recognize "guile" commands.
10565 * disasm.c (gdb_disassemble_info): Make non-static.
10566 * disasm.h: #include "dis-asm.h".
10567 (struct gdbarch): Add forward decl.
10568 (gdb_disassemble_info): Declare.
10569 * extension.c: #include "guile/guile.h".
10570 (extension_languages): Add guile.
10571 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10572 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10573 * gdbtypes.c (get_unsigned_type_max): New function.
10574 (get_signed_type_minmax): New function.
10575 * gdbtypes.h (get_unsigned_type_max): Declare.
10576 (get_signed_type_minmax): Declare.
10577 * guile/README: New file.
10578 * guile/guile-internal.h: New file.
10579 * guile/guile.c: New file.
10580 * guile/guile.h: New file.
10581 * guile/scm-arch.c: New file.
10582 * guile/scm-auto-load.c: New file.
10583 * guile/scm-block.c: New file.
10584 * guile/scm-breakpoint.c: New file.
10585 * guile/scm-disasm.c: New file.
10586 * guile/scm-exception.c: New file.
10587 * guile/scm-frame.c: New file.
10588 * guile/scm-gsmob.c: New file.
10589 * guile/scm-iterator.c: New file.
10590 * guile/scm-lazy-string.c: New file.
10591 * guile/scm-math.c: New file.
10592 * guile/scm-objfile.c: New file.
10593 * guile/scm-ports.c: New file.
10594 * guile/scm-pretty-print.c: New file.
10595 * guile/scm-safe-call.c: New file.
10596 * guile/scm-string.c: New file.
10597 * guile/scm-symbol.c: New file.
10598 * guile/scm-symtab.c: New file.
10599 * guile/scm-type.c: New file.
10600 * guile/scm-utils.c: New file.
10601 * guile/scm-value.c: New file.
10602 * guile/lib/gdb.scm: New file.
10603 * guile/lib/gdb/boot.scm: New file.
10604 * guile/lib/gdb/experimental.scm: New file.
10605 * guile/lib/gdb/init.scm: New file.
10606 * guile/lib/gdb/iterator.scm: New file.
10607 * guile/lib/gdb/printing.scm: New file.
10608 * guile/lib/gdb/types.scm: New file.
10609 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10610 (VPATH): Add $(GUILE_SRCDIR).
10611 (GUILE_DIR): New variable.
10612 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10613 (all): Add stamp-guile dependency.
10614 (stamp-guile): New rule.
10615 (clean-guile, install-guile, uninstall-guile): New rules.
10616 (install-only): Add install-guile dependency.
10617 (uninstall): Add uninstall-guile dependency.
10618 (clean): Add clean-guile dependency.
10620 2014-02-09 Doug Evans <xdje42@gmail.com>
10622 Revert this patch (which I approved, mea culpa).
10624 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10626 * Makefile.in (all-lib): Remove.
10627 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10629 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10631 Fix Python stack corruption.
10632 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10635 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10637 * Makefile.in (all-lib): Remove.
10638 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10640 2014-02-07 Doug Evans <dje@google.com>
10642 * extension-priv.h (extension_language_script_ops): Add comment.
10643 (extension_language_ops): Add comment.
10644 (active_ext_lang_state): Fix typo in comment.
10646 2014-02-07 Pedro Alves <palves@redhat.com>
10648 PR breakpoints/16292
10649 * infrun.c (handle_signal_stop) <signal arrives while stepping
10650 over a breakpoint>: Switch back to the stepping thread.
10652 2014-02-07 Yao Qi <yao@codesourcery.com>
10654 * target.c (target_xfer_partial): Return zero if LEN is zero.
10656 2014-02-07 Yao Qi <yao@codesourcery.com>
10658 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10659 (ld_so_xfer_auxv): Likewise.
10660 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10661 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10662 * corelow.c (core_xfer_partial): Likewise.
10663 * ctf.c (ctf_xfer_partial): Likewise.
10664 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10665 (darwin_xfer_partial): Likewise.
10666 * exec.c (exec_xfer_partial): Likewise.
10667 * gnu-nat.c (gnu_xfer_partial): Likewise.
10668 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10669 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10670 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10671 * linux-nat.c (linux_xfer_siginfo): Likewise.
10672 (linux_proc_xfer_spu): Likewise.
10673 * procfs.c (procfs_xfer_partial): Likewise.
10674 * record-full.c (record_full_xfer_partial): Likewise.
10675 (record_full_core_xfer_partial): Likewise.
10676 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10677 * remote.c (remote_write_qxfer): Likewise.
10678 (remote_write_qxfer, remote_read_qxfer): Likewise.
10679 (remote_xfer_partial): Likewise.
10680 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10681 (rs6000_xfer_shared_libraries): Likewise.
10682 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10683 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10684 (spu_xfer_partial): Likewise.
10685 * target.c (memory_xfer_partial_1): Likewise.
10686 * tracepoint.c (tfile_xfer_partial): Likewise.
10687 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10688 (windows_xfer_partial): Likewise.
10690 2014-02-07 Yao Qi <yao@codesourcery.com>
10692 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10694 (core_xfer_shared_libraries_aix): Likewise.
10695 * gdbarch.c, gdbarch.h: Regenerated.
10696 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10697 ULONGEST. Change 'len_avail' type to ULONGEST.
10698 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10699 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10701 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10703 2014-02-07 Yao Qi <yao@codesourcery.com>
10705 * corefile.c (memory_error): Get 'exception' from ERR and pass
10706 'exception' to throw_error.
10708 2014-02-06 Doug Evans <xdje42@gmail.com>
10710 * configure.ac (libpython checking): Remove all but python.o from
10711 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10712 * configure: Regenerate.
10714 * Makefile.in (SFILES): Add extension.c.
10715 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10716 (COMMON_OBS): Add extension.o.
10717 * extension.h: New file.
10718 * extension-priv.h: New file.
10719 * extension.c: New file.
10721 * python/python-internal.h: #include "extension.h".
10722 (gdbpy_auto_load_enabled): Declare.
10723 (gdbpy_apply_val_pretty_printer): Declare.
10724 (gdbpy_apply_frame_filter): Declare.
10725 (gdbpy_preserve_values): Declare.
10726 (gdbpy_breakpoint_cond_says_stop): Declare.
10727 (gdbpy_breakpoint_has_cond): Declare.
10728 (void source_python_script_for_objfile): Delete.
10729 * python/python.c: #include "extension-priv.h".
10730 Delete inclusion of "observer.h".
10731 (extension_language_python): Moved here and renamed from
10732 script_language_python in py-auto-load.c.
10733 Redefined to be of type extension_language_defn.
10734 (python_extension_script_ops): New global.
10735 (python_extension_ops): New global.
10736 (struct python_env): New member previous_active.
10737 (restore_python_env): Call restore_active_ext_lang.
10738 (ensure_python_env): Call set_active_ext_lang.
10739 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10741 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10743 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10745 (gdbpy_eval_from_control_command): Renamed from
10746 eval_python_from_control_command, made static. New arg extlang.
10747 (gdbpy_source_script) Renamed from source_python_script, made static.
10749 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10750 result to int. New arg extlang.
10751 (gdbpy_source_objfile_script): Renamed from
10752 source_python_script_for_objfile, made static. New arg extlang.
10753 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10754 static. New args extlang, extlang_printers. Change result type to
10756 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10757 static. New arg extlang. Rename arg printers to extlang_printers
10758 and change type to ext_lang_type_printers *.
10759 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10760 static. Replace argument arg with extlang, extlang_printers.
10761 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10762 (!HAVE_PYTHON, source_python_script): Delete.
10763 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10764 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10765 (!HAVE_PYTHON, start_type_printers): Delete.
10766 (!HAVE_PYTHON, apply_type_printers): Delete.
10767 (!HAVE_PYTHON, free_type_printers): Delete.
10768 (_initialize_python): Delete call to observer_attach_before_prompt.
10769 (finalize_python): Set/restore active extension language.
10770 (gdbpy_finish_initialization) Renamed from
10771 finish_python_initialization, made static. New arg extlang.
10772 (gdbpy_initialized): New function.
10773 * python/python.h: #include "extension.h". Delete #include
10774 "value.h", "mi/mi-cmds.h".
10775 (extension_language_python): Declare.
10776 (GDBPY_AUTO_FILE_NAME): Delete.
10777 (enum py_bt_status): Moved to extension.h and renamed to
10778 ext_lang_bt_status.
10779 (enum frame_filter_flags): Moved to extension.h.
10780 (enum py_frame_args): Moved to extension.h and renamed to
10781 ext_lang_frame_args.
10782 (finish_python_initialization): Delete.
10783 (eval_python_from_control_command): Delete.
10784 (source_python_script): Delete.
10785 (apply_val_pretty_printer): Delete.
10786 (apply_frame_filter): Delete.
10787 (preserve_python_values): Delete.
10788 (gdbpy_script_language_defn): Delete.
10789 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10790 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10792 * auto-load.c: #include "extension.h".
10793 (GDB_AUTO_FILE_NAME): Delete.
10794 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10795 (script_language_gdb): Delete, moved to extension.c and renamed to
10796 extension_language_gdb.
10797 (source_gdb_script_for_objfile): Delete.
10798 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10799 (loaded_script): Change type of language member to
10800 struct extension_language_defn *.
10801 (init_loaded_scripts_info): Initialize
10802 unsupported_script_warning_printed.
10803 (maybe_add_script): Make static. Change type of language arg to
10804 struct extension_language_defn *.
10805 (clear_section_scripts): Reset unsupported_script_warning_printed.
10806 (auto_load_objfile_script_1): Rewrite to use extension language API.
10807 (auto_load_objfile_script): Make public. Remove support-compiled-in
10808 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10809 (source_section_scripts): Rewrite to use extension language API.
10810 (load_auto_scripts_for_objfile): Rewrite to use
10811 auto_load_scripts_for_objfile.
10812 (collect_matching_scripts_data): Change type of language member to
10813 struct extension_language_defn *.
10814 (auto_load_info_scripts): Change type of language arg to
10815 struct extension_language_defn *.
10816 (unsupported_script_warning_print): New function.
10817 (script_not_found_warning_print): Make static.
10818 (_initialize_auto_load): Rewrite construction of scripts-directory
10820 * auto-load.h (struct objfile): Add forward decl.
10821 (struct script_language): Delete.
10822 (struct auto_load_pspace_info): Add forward decl.
10823 (struct extension_language_defn): Add forward decl.
10824 (maybe_add_script): Delete.
10825 (auto_load_objfile_script): Declare.
10826 (script_not_found_warning_print): Delete.
10827 (auto_load_info_scripts): Update prototype.
10828 (auto_load_gdb_scripts_enabled): Declare.
10829 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10830 auto_load_python_scripts_enabled and made public.
10831 (script_language_python): Delete, moved to python.c.
10832 (gdbpy_script_language_defn): Delete.
10833 (info_auto_load_python_scripts): Update to use
10834 extension_language_python.
10836 * breakpoint.c (condition_command): Replace call to
10837 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10838 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10839 with call to breakpoint_ext_lang_cond_says_stop.
10840 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10841 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10842 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10843 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10845 (local_setattro): Print name of extension language with existing
10848 * valprint.c (val_print, value_print): Update to call
10849 apply_ext_lang_val_pretty_printer.
10850 * cp-valprint.c (cp_print_value): Update call to
10851 apply_ext_lang_val_pretty_printer.
10852 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10853 (gdbpy_apply_val_pretty_printer): Renamed from
10854 apply_val_pretty_printer. New arg extlang.
10855 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10857 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10858 extension language API.
10859 * cli/cli-script.c (execute_control_command): Update to call
10860 eval_ext_lang_from_control_command.
10862 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10863 enum ext_lang_bt_status values. Update call to
10864 apply_ext_lang_frame_filter.
10865 (mi_cmd_stack_list_locals): Ditto.
10866 (mi_cmd_stack_list_args): Ditto.
10867 (mi_cmd_stack_list_variables): Ditto.
10868 * mi/mi-main.c: Delete #include "python/python-internal.h".
10869 Add #include "extension.h".
10870 (mi_cmd_list_features): Replace reference to python internal variable
10871 gdb_python_initialized with call to ext_lang_initialized_p.
10873 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10874 Update to use enum ext_lang_frame_args. Update to call
10875 apply_ext_lang_frame_filter.
10876 * python/py-framefilter.c (extract_sym): Update to use enum
10877 ext_lang_bt_status.
10878 (extract_value, py_print_type, py_print_value): Ditto.
10879 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10880 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10881 (py_print_frame): Ditto.
10882 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10883 New arg extlang. Update to use enum ext_lang_bt_status.
10885 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10886 finish_python_initialization. Replace with call to
10887 finish_ext_lang_initialization.
10889 * typeprint.c (do_free_global_table): Update to call
10890 free_ext_lang_type_printers.
10891 (create_global_typedef_table): Update to call
10892 start_ext_lang_type_printers.
10893 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10894 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10895 (type_print_options): Change type of global_printers from "void *"
10896 to "struct ext_lang_type_printers *".
10898 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10899 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10900 (gdbpy_preserve_values): Renamed from preserve_python_values.
10902 (!HAVE_PYTHON, preserve_python_values): Delete.
10904 * utils.c (quit_flag): Delete, moved to extension.c.
10905 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10908 * eval.c: Delete #include "python/python.h".
10909 * main.c: Delete #include "python/python.h".
10911 * defs.h: Update comment.
10913 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10917 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10919 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10922 2014-02-05 Yao Qi <yao@codesourcery.com>
10924 * remote.c (remote_pass_signals): Remove local 'buf' and use
10926 (remote_program_signals): Likewise.
10928 2014-02-05 Yao Qi <yao@codesourcery.com>
10930 * ctf.c: Include "inferior.h" and "gdbthread.h".
10931 (CTF_PID): A new macro.
10932 (ctf_open): Call inferior_appeared and add_thread_silent.
10933 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10934 (ctf_thread_alive): New function.
10935 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10937 2014-02-05 Yao Qi <yao@codesourcery.com>
10941 2013-05-24 Yao Qi <yao@codesourcery.com>
10943 * tracepoint.c (TFILE_PID): Remove.
10944 (tfile_open): Don't add thread and inferior.
10945 (tfile_close): Don't set 'inferior_ptid'. Don't call
10946 exit_inferior_silent.
10947 (tfile_thread_alive): Remove.
10948 (init_tfile_ops): Don't set field 'to_thread_alive' of
10951 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10953 * remote.c (remote_start_remote): Call remote_check_symbols even
10954 if only symbol-file (not file) has been given.
10956 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10958 * gdbarch.sh (skip_entrypoint): New callback.
10959 * gdbarch.c, gdbarch.h: Regenerate.
10960 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10961 * infrun.c (fill_in_stop_func): Likewise.
10962 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10963 (ppc_elfv2_elf_make_msymbol_special): New function.
10964 (ppc_elfv2_skip_entrypoint): Likewise.
10965 (ppc_linux_init_abi): Install them for ELFv2.
10967 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10969 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10970 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10971 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10972 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10973 structures returned in GPRs.
10975 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10977 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10978 offset to the stack parameter list for the ELFv2 ABI.
10980 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10982 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10983 set_gdbarch_convert_from_func_ptr_addr and
10984 set_gdbarch_elf_make_msymbol_special for ELFv1.
10985 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10986 function descriptors on ELFv1.
10987 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10988 set up r12 at function entry.
10990 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10992 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10993 (struct gdbarch_tdep): New member elf_abi.
10995 * rs6000-tdep.c: Include "elf/ppc64.h".
10996 (rs6000_gdbarch_init): Detect ELF ABI version.
10998 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11000 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11001 within a register pair holding a DFP 128-bit value on little-endian.
11002 (ppc64_sysv_abi_return_value_base): Likewise.
11003 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11004 (dfp_pseudo_register_write): Likewise.
11006 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11008 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11009 offset on little-endian when passing _Decimal32.
11010 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11012 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11014 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11015 of the overlapped FP register within the VSX register on little-
11017 (efpr_pseudo_register_write): Likewise.
11019 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11021 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11022 offset on little-endian when passing small structures.
11024 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11026 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11027 (struct ppc64_sysv_argpos): New data structure.
11028 (ppc64_sysv_abi_push_float): Remove.
11029 (ppc64_sysv_abi_push_val): New function.
11030 (ppc64_sysv_abi_push_integer): Likewise.
11031 (ppc64_sysv_abi_push_freg): Likewise.
11032 (ppc64_sysv_abi_push_vreg): Likewise.
11033 (ppc64_sysv_abi_push_param): Likewise.
11034 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11035 (ppc64_sysv_abi_return_value_base): New function.
11036 (ppc64_sysv_abi_return_value): Refactor to use it.
11038 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11040 * NEWS: Document new target powerpc64le-*-linux*.
11042 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11044 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11045 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11047 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11048 register set used in ELF core dumps. Add floating-point register set.
11050 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11052 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11053 dwarf2_to_gdb[] table using symbolic constants. Adjust
11054 penultimate entry from number representing the PC register
11055 to symbolic constant representing the MDR register. Add
11056 constant for the PC register to the end of the table.
11058 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11060 * bsd-kvm.c: Include <sys/param.h>
11062 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11064 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11066 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11068 * ada-lang.h (clear_ada_sym_cache): Delete.
11070 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11072 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11074 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11076 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11077 the sigreturn register save area only if the syscall is
11080 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11082 * valops.c (value_slice): Minor reformatting.
11084 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11086 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11088 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11090 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11091 New static globals.
11092 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11093 (ada_ignore_descriptive_types_p): New static global.
11094 (find_parallel_type_by_descriptive_type): Return immediately
11095 if ada_ignore_descriptive_types_p is set.
11096 (_initialize_ada_language): Register new commands "maintenance
11097 set ada", "maintenance show ada", "maintenance set ada
11098 ignore-descriptive-types" and "maintenance show ada
11099 ignore-descriptive-types".
11100 * NEWS: Add entry for new "maint ada set/show
11101 ignore-descriptive-types" commands.
11103 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11105 * record-btrace.c (record_btrace_close): Call btrace_teardown
11108 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11110 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11113 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11115 * ada-typeprint (type_is_full_subrange_of_target_type):
11117 (print_range): Add parameter bounds_prefered_p. If not set,
11118 try printing range types using the name of their base type.
11119 (print_range_type): Add parameter bounds_prefered_p.
11120 Use it in call to print_range.
11121 (print_array_type, ada_print_type): Update calls to print_range
11122 and print_range_type.
11124 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11126 * ada-typeprint.c (print_array_type, print_choices, print_range)
11127 (print_range_bound, print_dynamic_range_bound, print_range_type):
11128 Remove declaration.
11130 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11132 * ada-typeprint.c (print_range): Add missing empty line
11133 after local declaration.
11135 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11137 * ada-valprint.c (print_optional_low_bound): Get index_type's
11138 target type for as long as it is a TYPE_CODE_RANGE.
11140 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11142 * procfs.c (procfs_make_note_section): Remove assertion and
11143 associated comment.
11145 2014-01-24 Yao Qi <yao@codesourcery.com>
11147 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11148 * corelow.c (get_core_siginfo): Likewise.
11150 2014-01-24 Yao Qi <yao@codesourcery.com>
11152 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11153 ULONGEST. Don't check 'len' is negative.
11154 (remote_write_bytes): Change type of 'len' to ULONGEST.
11156 2014-01-23 Tom Tromey <tromey@redhat.com>
11159 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11160 Handle exception from frame.block.
11161 (FrameVars.fetch_frame_locals): Likewise.
11163 2014-01-23 Tom Tromey <tromey@redhat.com>
11166 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11167 on a NULL pointer. Move "goto error" to correct place.
11169 2014-01-23 Tom Tromey <tromey@redhat.com>
11172 * python/py-framefilter.c (apply_frame_filter): Call
11173 ensure_python_env after computing gdbarch.
11175 2014-01-23 Yao Qi <yao@codesourcery.com>
11177 * target.c (raw_memory_xfer_partial): Change argument type
11178 from void * to gdb_byte *.
11179 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11181 2014-01-22 Doug Evans <dje@google.com>
11183 New gdbserver option --debug-format=timestamp.
11184 * NEWS: Mention it.
11186 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11188 * syscalls/s390x-linux.xml: New file.
11189 * syscalls/s390-linux.xml: New file.
11190 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11191 (XML_SYSCALL_FILENAME_S390X): Likewise.
11192 (op_svc): New enum value for SVC opcode.
11193 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11194 (s390_linux_get_syscall_number): New function.
11195 (s390_gdbarch_init): Register '*get_syscall_number' and the
11196 syscall xml file name.
11197 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11198 "s390-linux.xml" and "s390x-linux.xml".
11199 * NEWS: Announce new feature.
11201 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11203 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11205 2014-01-22 Pedro Alves <palves@redhat.com>
11207 * xtensa-config.c: Include defs.h.
11209 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11211 * common/common-utils.h: Add "ARI:" comment beside __func__
11214 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11216 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11217 documentation a bit.
11219 2014-01-21 Roland McGrath <mcgrathr@google.com>
11221 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11222 * configure: Regenerate.
11223 * aclocal.m4: Regenerate.
11224 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11225 New substituted variables.
11226 (install-strip): New target.
11227 (INSTALL_SCRIPT): New substituted variable.
11228 (FLAGS_TO_PASS): Add it.
11229 (install-only): Use $(INSTALL_SCRIPT) rather than
11230 $(INSTALL_PROGRAM) for gcore.
11232 2014-01-20 Tom Tromey <tromey@redhat.com>
11234 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11237 2014-01-20 Tom Tromey <tromey@redhat.com>
11239 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11240 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11241 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11242 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11243 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11244 (struct cmd_list_element) <flags>: Remove.
11245 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11246 doc_allocated>: New fields.
11247 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11249 * maint.c (maintenance_do_deprecate): Update.
11250 * top.c (execute_command): Update.
11252 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11254 * xtensa-linux-nat.c: Include asm/ptrace.h.
11256 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11258 * Makefile.in (SFILES): Add d-support.c.
11259 (COMMON_OBS): Add d-support.o.
11260 * d-lang.h (d_parse_symbol): Add comment, now defined in
11262 * d-lang.c (parse_call_convention)
11263 (parse_attributes, parse_function_types)
11264 (parse_function_args, parse_type, parse_identifier)
11265 (call_convention_p, d_parse_symbol): Move functions to ...
11266 * d-support.c: ... New file.
11268 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11270 * d-lang.h (d_parse_symbol): Add declaration.
11271 * d-lang.c (extract_identifiers)
11272 (extract_type_info): Remove functions.
11273 (parse_call_convention, parse_attributes)
11274 (parse_function_types, parse_function_args)
11275 (parse_type, parse_identifier, call_convention_p)
11276 (d_parse_symbol): New functions.
11277 (d_demangle): Use d_parse_symbol to demangle D symbols.
11279 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11281 * d-lang.h (struct builtin_d_type): New data type.
11282 (builtin_d_type): Add declaration.
11283 * d-lang.c (d_language_arch_info, build_d_types)
11284 (builtin_d_type): New functions.
11285 (enum d_primitive_types): New data type.
11286 (d_language_defn): Change c_language_arch_info to
11287 d_language_arch_info.
11288 (d_type_data): New static variable.
11289 (_initialize_d_language): Initialize d_type_data.
11291 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11293 * d-lang.h (d_main_name): Add declaration.
11294 * d-lang.c (d_main_name): New function.
11295 * symtab.c (find_main_name): Add call to d_main_name.
11297 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11299 * d-lang.c (d_language_defn): Change macro_expansion_c to
11300 macro_expansion_no.
11302 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11304 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11306 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11308 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11309 gdb_exception" declaration.
11310 * remote.c (getpkt_or_notif_sane): Likewise.
11312 2014-01-17 Doug Evans <dje@google.com>
11314 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11315 function, contents of dirnames_to_char_ptr_vec_append moved here.
11316 (delim_string_to_char_ptr_vec): New function.
11317 (dirnames_to_char_ptr_vec_append): Rewrite.
11318 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11320 2014-01-17 Doug Evans <dje@google.com>
11322 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11324 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11325 #include "common-utils.h".
11326 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11327 * common/vec.h (VEC_ASSERT_PASS): Update.
11328 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11329 (MACH_CHECK_ERROR): Update.
11331 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11333 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11335 * gdbarch.h: Regenerate.
11337 2014-01-16 Tom Tromey <tromey@redhat.com>
11339 * value.c (struct value) <regnum>: Move earlier.
11341 2014-01-16 Tom Tromey <tromey@redhat.com>
11343 * remote.c (extended_remote_create_inferior): Rename from
11344 extended_remote_create_inferior_1. Add "ops" argument. Remove
11345 old implementation.
11347 2014-01-16 Pedro Alves <palves@redhat.com>
11349 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11350 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11353 2014-01-16 Doug Evans <dje@google.com>
11355 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11359 * btrace.h (btrace_thread_flag): New.
11360 (struct btrace_thread_info) <flags>: New.
11361 * record-btrace.c (record_btrace_resume_thread)
11362 (record_btrace_find_thread_to_move, btrace_step_no_history)
11363 (btrace_step_stopped, record_btrace_start_replaying)
11364 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11365 (record_btrace_find_resume_thread): New.
11366 (record_btrace_resume, record_btrace_wait): Extend.
11367 (record_btrace_can_execute_reverse): New.
11368 (record_btrace_open): Fail in non-stop mode.
11369 (record_btrace_set_replay): Split into this, ...
11370 (record_btrace_stop_replaying): ... this, ...
11371 (record_btrace_clear_histories): ... and this.
11372 (init_record_btrace_ops): Init to_can_execute_reverse.
11373 * NEWS: Announce it.
11375 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11377 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11378 (forward_target_decr_pc_after_break)
11379 (target_decr_pc_after_break): New.
11380 * target.c (forward_target_decr_pc_after_break)
11381 (target_decr_pc_after_break): New.
11382 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11383 instead of gdbarch_decr_pc_after_break.
11384 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11385 instead of gdbarch_decr_pc_after_break.
11386 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11387 instead of gdbarch_decr_pc_after_break.
11388 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11389 instead of gdbarch_decr_pc_after_break.
11390 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11391 instead of gdbarch_decr_pc_after_break.
11392 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11393 instead of gdbarch_decr_pc_after_break.
11395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11397 * btrace.c: Include regcache.h.
11398 (btrace_add_pc): New.
11399 (btrace_enable): Call btrace_add_pc.
11400 (btrace_is_empty): New.
11401 * btrace.h (btrace_is_empty): New.
11402 * record-btrace.c (require_btrace, record_btrace_info): Call
11405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11407 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11408 Support delta reads.
11409 (linux_disable_btrace): Change return type.
11410 * common/linux-btrace.h (linux_read_btrace): Change parameters
11411 and return type to allow error reporting. Update users.
11412 (linux_disable_btrace): Change return type. Update users.
11413 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11415 (btrace_error): New.
11416 (btrace_block) <begin>: Comment on BEGIN == 0.
11417 * btrace.c (btrace_compute_ftrace): Start from the end of
11419 (btrace_stitch_trace, btrace_clear_history): New.
11420 (btrace_fetch): Read delta trace, return if replaying.
11421 (btrace_clear): Move clear history code to btrace_clear_history.
11422 (parse_xml_btrace): Throw an error if parsing failed.
11423 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11424 and return type to allow error reporting.
11425 (target_read_btrace): Change parameters and return type to allow
11427 * target.c (target_read_btrace): Update.
11428 * remote.c (remote_read_btrace): Support delta reads. Pass
11430 * NEWS: Announce it.
11432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11434 * record.h (record_btrace_frame_unwind)
11435 (record_btrace_tailcall_frame_unwind): New declarations.
11436 * dwarf2-frame: Include record.h
11437 (dwarf2_frame_cfa): Throw an error for btrace frames.
11438 * record-btrace.c: Include hashtab.h.
11439 (btrace_get_bfun_name): New.
11440 (btrace_call_history): Call btrace_get_bfun_name.
11441 (struct btrace_frame_cache): New.
11443 (bfcache_hash, bfcache_eq, bfcache_new): New.
11444 (btrace_get_frame_function): New.
11445 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11446 (record_btrace_frame_this_id): Compute own id.
11447 (record_btrace_frame_prev_register): Provide PC, throw_error
11448 for all other registers.
11449 (record_btrace_frame_sniffer): Detect btrace frames.
11450 (record_btrace_tailcall_frame_sniffer): New.
11451 (record_btrace_frame_dealloc_cache): New.
11452 (record_btrace_frame_unwind): Add new functions.
11453 (record_btrace_tailcall_frame_unwind): New.
11454 (_initialize_record_btrace): Allocate cache.
11455 * btrace.c (btrace_clear): Call reinit_frame_cache.
11456 * NEWS: Announce it.
11458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11460 * record-btrace.c (record_btrace_set_replay)
11461 (record_btrace_goto_begin, record_btrace_goto_end)
11462 (record_btrace_goto): New.
11463 (init_record_btrace_ops): Initialize them.
11464 * NEWS: Announce it.
11466 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11468 * record-btrace.c (record_btrace_find_new_threads)
11469 (record_btrace_thread_alive): New.
11470 (init_record_btrace_ops): Initialize to_find_new_threads and
11473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11475 * record-btrace.c (record_btrace_resume): New.
11476 (record_btrace_wait): New.
11477 (init_record_btrace_ops): Initialize to_wait and to_resume.
11479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11481 * record-btrace.c (record_btrace_xfer_partial)
11482 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11483 (record_btrace_allow_memory_access): New.
11484 (init_record_btrace_ops): Initialize new methods.
11485 * target.c (raw_memory_xfer_partial): Bail out if target reports
11486 that this memory is not available.
11488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11490 * target.h (target_ops) <to_insert_breakpoint>
11491 <to_remove_breakpoint>: Add target_ops parameter.
11492 (forward_target_insert_breakpoint): New.
11493 (forward_target_remove_breakpoint): New.
11494 (memory_remove_breakpoint, memory_insert_breakpoint):
11495 Add target_ops parameter.
11496 * target.c (target_insert_breakpoint): Split into this and ...
11497 (forward_target_insert_breakpoint): ... this.
11498 (target_remove_breakpoint): Split into this and ...
11499 (forward_target_remove_breakpoint): ... this.
11500 (debug_to_insert_breakpoint): Add target_ops parameter.
11501 Call forward_target_insert_breakpoint.
11502 (debug_to_remove_breakpoint): Add target_ops parameter.
11503 Call forward_target_remove_breakpoint.
11504 (update_current_target): Do not inherit or default to_insert_breakpoint
11505 and to_remove_breakpoint.
11506 * corelow.c (ignore): Add target_ops parameter.
11507 * exec.c (ignore): Add target_ops parameter.
11508 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11509 Add target_ops parameter.
11510 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11511 Add target_ops parameter.
11512 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11513 Add target_ops parameter.
11514 * record-full.c (record_full_beneath_to_insert_breakpoint)
11515 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11516 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11517 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11518 (record_full_core_remove_breakpoint): Add target_ops parameter.
11520 (record_full_beneath_to_insert_breakpoint_ops)
11521 (record_full_beneath_to_remove_breakpoint_ops)
11522 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11523 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11524 tmp_to_remove_breakpoint_ops,
11525 record_full_beneath_to_insert_breakpoint_ops, and
11526 record_full_beneath_to_remove_breakpoint_ops.
11527 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11528 (m32r_remove_breakpoint): Add target_ops parameter.
11529 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11530 Add target_ops parameter.
11531 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11532 Add target_ops parameter.
11534 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11535 Markus Metzger <markus.t.metzger@intel.com>
11537 * record-btrace.c: Include frame-unwind.h.
11538 (record_btrace_frame_unwind_stop_reason)
11539 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11540 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11542 (init_record_btrace_ops): Install it.
11544 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11546 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11549 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11551 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11554 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11556 * frame-unwind.c: Include target.h.
11557 (frame_unwind_try_unwinder): New function with code from ...
11558 (frame_unwind_find_by_frame): ... here. New variable
11559 unwinder_from_target, call also target_get_unwinder)
11560 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11561 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11562 * target.h (struct target_ops): New fields to_get_unwinder and
11563 to_get_tailcall_unwinder.
11564 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11568 * record-btrace.c (record_btrace_fetch_registers)
11569 (record_btrace_store_registers)
11570 (record_btrace_to_prepare_to_store): New.
11571 (init_record_btrace_ops): Add the above.
11573 2014-01-16 Tom Tromey <tromey@redhat.com>
11575 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11576 * target.h (struct target_ops) <to_prepare_to_store>: Add
11578 (target_prepare_to_store): Add argument.
11579 * target.c (debug_to_prepare_to_store): Add argument.
11580 (update_current_target): Update.
11581 * remote.c (remote_prepare_to_store): Add 'self' argument.
11582 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11583 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11584 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11585 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11587 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11588 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11589 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11590 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11591 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11595 * btrace.h (replay) <replay>: New.
11596 (btrace_is_replaying): New.
11597 * btrace.c (btrace_clear): Free replay iterator.
11598 (btrace_is_replaying): New.
11599 * record-btrace.c (record_btrace_is_replaying): New.
11600 (record_btrace_info): Print insn number if replaying.
11601 (record_btrace_insn_history): Start at replay position.
11602 (record_btrace_call_history): Start at replay position.
11603 (init_record_btrace_ops): Init to_record_is_replaying.
11605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11607 * record-btrace.c (record_btrace_insn_history_range): Include
11609 (record_btrace_insn_history_from): Adjust range.
11610 (record_btrace_call_history_range): Include
11612 (record_btrace_call_history_from): Adjust range.
11613 * NEWS: Announce changes.
11615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11617 * record.h (enum record_print_flag)
11618 <record_print_indent_calls>: New.
11619 * record.c (get_call_history_modifiers): Recognize /c modifier.
11620 (_initialize_record): Document /c modifier.
11621 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11622 Reorder fields. Optionally indent the function name. Update
11624 * NEWS: Announce changes.
11626 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11628 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11632 * btrace.c (ftrace_new_function): Start counting at one.
11633 * record-btrace.c (record_btrace_info): Adjust number of calls
11635 * NEWS: Announce it.
11637 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11639 * record-btrace.c (btrace_call_history_insn_range): Print
11640 insn range as [begin, end].
11642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11644 * btrace.h (struct btrace_func_link): New.
11645 (enum btrace_function_flag): New.
11646 (struct btrace_inst): Rename to ...
11647 (struct btrace_insn): ...this. Update all users.
11648 (struct btrace_func) <ibegin, iend>: Remove.
11649 (struct btrace_func_link): New.
11650 (struct btrace_func): Rename to ...
11651 (struct btrace_function): ...this. Update all users.
11652 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11653 (number, level, flags>: New.
11654 (struct btrace_insn_iterator): Rename to ...
11655 (struct btrace_insn_history): ...this.
11657 (struct btrace_insn_iterator, btrace_call_iterator): New.
11658 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11659 (struct btrace_target_info) <begin, end, level>
11660 <insn_history, call_history>: New.
11661 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11662 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11663 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11664 (btrace_call_number, btrace_call_begin, btrace_call_end)
11665 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11666 (btrace_find_function_by_number, btrace_set_insn_history)
11667 (btrace_set_call_history): New.
11668 * btrace.c (btrace_init_insn_iterator)
11669 (btrace_init_func_iterator, compute_itrace): Remove.
11670 (ftrace_print_function_name, ftrace_print_filename)
11671 (ftrace_skip_file): Change
11672 parameter to const.
11673 (ftrace_init_func): Remove.
11674 (ftrace_debug): Use new btrace_function fields.
11675 (ftrace_function_switched): Also consider gaining and
11676 losing symbol information).
11677 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11678 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11679 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11681 (ftrace_new_function): Move. Remove debug print.
11682 (ftrace_update_lines, ftrace_update_insns): New.
11683 (ftrace_update_function): Check for call, ret, and jump.
11684 (compute_ftrace): Renamed to ...
11685 (btrace_compute_ftrace): ...this. Rewritten to compute call
11687 (btrace_fetch, btrace_clear): Updated.
11688 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11689 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11690 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11691 (btrace_call_number, btrace_call_begin, btrace_call_end)
11692 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11693 (btrace_find_function_by_number, btrace_set_insn_history)
11694 (btrace_set_call_history): New.
11695 * record-btrace.c (require_btrace): Use new btrace thread
11697 (record_btrace_info, btrace_insn_history)
11698 (record_btrace_insn_history, record_btrace_insn_history_range):
11699 Use new btrace thread info fields and new iterator.
11700 (btrace_func_history_src_line): Rename to ...
11701 (btrace_call_history_src_line): ...this. Use new btrace
11702 thread info fields.
11703 (btrace_func_history): Rename to ...
11704 (btrace_call_history): ...this. Use new btrace thread info
11705 fields and new iterator.
11706 (record_btrace_call_history, record_btrace_call_history_range):
11707 Use new btrace thread info fields and new iterator.
11709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11711 * frame.h (frame_id_build_unavailable_stack_special): New.
11712 * frame.c (frame_id_build_unavailable_stack_special): New.
11714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11716 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11717 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11718 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11720 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11721 (i386_insn_is_jump, i386_jmp_p): New.
11722 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11723 insn_is_jump to gdbarch.
11724 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11725 * gdbarch.h: Regenerated.
11726 * gdbarch.c: Regenerated.
11727 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11728 (default_insn_is_jump): New.
11729 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11730 (default_insn_is_jump): New.
11732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11734 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11736 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11737 (btrace_read_type) <btrace_read_new>: Change to ...
11738 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11742 * common/linux-btrace.c (linux_read_btrace): Free trace from
11743 previous iteration.
11745 2014-01-15 Doug Evans <dje@google.com>
11747 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11750 2014-01-15 Tom Tromey <tromey@redhat.com>
11752 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11753 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11754 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11755 (set_objfile_main_name): New function.
11756 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11757 language_of_main>: New fields.
11758 (set_objfile_main_name): Declare.
11759 * symtab.c (find_main_name): Loop over objfiles to find the main
11761 (set_main_name): Now static.
11762 (get_main_info): Add comment.
11763 * symtab.h (set_main_name): Don't declare.
11765 2014-01-15 Tom Tromey <tromey@redhat.com>
11767 * symtab.c (main_progspace_key): New global.
11768 (struct main_info): New.
11769 (name_of_main, language_of_main): Remove.
11770 (get_main_info, main_info_cleanup): New function.
11771 (set_main_name, main_name, main_language): Use get_main_info.
11772 (_initialize_symtab): Initialize main_progspace_key.
11774 2014-01-15 Tom Tromey <tromey@redhat.com>
11776 * dbxread.c (process_one_symbol): Update.
11777 * dwarf2read.c (read_partial_die): Update.
11778 * symfile.c (set_initial_language): Call main_language.
11779 * symtab.c (language_of_main): Now static.
11780 (set_main_name): Add 'lang' parameter.
11781 (find_main_name): Update.
11782 (main_language): New function.
11783 (symtab_observer_executable_changed): Update.
11784 * symtab.h (set_main_name): Update.
11785 (language_of_main): Remove.
11786 (main_language): Declare.
11788 2014-01-15 Tom Tromey <tromey@redhat.com>
11790 * symfile.c (init_entry_point_info): Use new "initialized" field.
11792 * objfiles.h (struct entry_point) <initialized>: New field.
11793 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11794 (struct objfile) <ei>: ...here. Remove.
11795 * objfiles.c (entry_point_address_query): Update.
11797 2014-01-15 Tom Tromey <tromey@redhat.com>
11799 * objfiles.c (entry_point_address_query): Relocate entry point
11801 (objfile_relocate1): Do not relocate entry point address.
11802 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11803 <the_bfd_section_index>: New field.
11804 * symfile.c (init_entry_point_info): Find the entry point's
11807 2014-01-15 Tom Tromey <tromey@redhat.com>
11809 * solib-frv.c (enable_break): Use entry_point_address_query.
11811 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11813 * NEWS: Add note on improved process record-replay on
11814 arm*-linux* targets.
11816 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11818 * arm-tdep.c (enum arm_record_result): New enum.
11819 (arm_record_unsupported_insn): New function.
11820 (arm_record_coproc_data_proc): Removed.
11821 (thumb2_record_ld_st_multiple): New function.
11822 (thumb2_record_ld_st_dual_ex_tbb): New function.
11823 (thumb2_record_data_proc_sreg_mimm): New function.
11824 (thumb2_record_ps_dest_generic): New function.
11825 (thumb2_record_branch_misc_cntrl): New function.
11826 (thumb2_record_str_single_data): New function.
11827 (thumb2_record_ld_mem_hints): New function.
11828 (thumb2_record_ld_word): New function.
11829 (thumb2_record_lmul_lmla_div): New function.
11830 (thumb2_record_decode_insn_handler): New function.
11831 (decode_insn): Add thumb32 instruction handlers.
11833 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11835 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11836 (struct arm_linux_record_tdep): Declare.
11837 (arm_canonicalize_syscall): New function.
11838 (arm_all_but_pc_registers_record): New function.
11839 (arm_linux_syscall_record): New function.
11840 (arm_linux_init_abi): Add syscall recording constructs.
11841 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11842 decoding. (arm_record_coproc_data_proc): Update arm syscall
11844 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11845 <arm_syscall_record>: New field.
11846 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11849 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11851 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11852 register for push instruction recording.
11854 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11856 * arm-tdep.c (thumb_record_misc): Update to correct logical
11857 error while recording ldm, ldmia and pop instructions.
11859 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11861 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11863 2014-01-15 Pedro Alves <palves@redhat.com>
11865 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11866 (go32_resume, go32_fetch_registers, store_register)
11867 (go32_store_registers, go32_prepare_to_store)
11868 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11869 (go32_create_inferior, go32_can_run, go32_terminal_init)
11870 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11873 2014-01-15 Tom Tromey <tromey@redhat.com>
11875 * target.h (async_callback_ftype): New typedef.
11876 (struct target_ops) <to_async>: Use it.
11878 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11880 * python/py-value.c (get_field_type): Remove unnecessary curly
11881 braces for single-statement if block.
11883 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11885 * python/py-type.c (convert_field): Add missing empty line
11886 after declarations.
11888 2014-01-14 Doug Evans <dje@google.com>
11890 * symfile.h (expand_symtabs_matching): Renamed from
11891 expand_partial_symbol_names. Update prototype.
11892 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11893 * symfile.c (expand_symtabs_matching): Renamed from
11894 expand_partial_symbol_names. New args file_matcher, kind.
11895 Rename arg fun to symbol_matcher.
11896 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11897 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11898 ada_expand_partial_symbol_name.
11899 (ada_make_symbol_completion_list): Update to call
11900 expand_symtabs_matching.
11901 (ada_add_global_exceptions): Call expand_symtabs_matching.
11902 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11903 call map_symbol_filenames.
11904 * symtab.c (sources_info): Update to call map_symbol_filenames.
11905 (search_symbols): Call expand_symtabs_matching.
11906 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11907 (default_make_symbol_completion_list_break_on): Update to call
11908 expand_symtabs_matching.
11909 (make_source_files_completion_list): Update to call
11910 map_symbol_filenames.
11912 2014-01-14 Doug Evans <dje@google.com>
11914 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11915 (expand_symtabs_symbol_matcher_ftype): New typedef.
11916 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11917 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11918 * symfile.c (expand_partial_symbol_names): Update to use
11919 expand_symtabs_symbol_matcher_ftype.
11920 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11921 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11922 Arg name_matcher renamed to symbol_matcher.
11923 * psymtab.c (recursively_search_psymtabs): Update to use
11924 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11926 (expand_symtabs_matching_via_partial): Update to use
11927 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11928 Arg name_matcher renamed to symbol_matcher.
11930 2014-01-14 Doug Evans <dje@google.com>
11932 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11933 (map_partial_symbol_filenames): Ditto.
11934 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11935 (map_partial_symbol_filenames): Ditto.
11936 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11937 (map_partial_symbol_filenames): Ditto.
11938 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11939 (map_partial_symbol_filenames): Ditto.
11940 * symtab.c: Delete #include "psymtab.h".
11942 2014-01-14 Pedro Alves <palves@redhat.com>
11943 Tom Tromey <tromey@redhat.com>
11945 * infrun.c (use_displaced_stepping): Use find_record_target
11946 instead of RECORD_IS_USED.
11947 (adjust_pc_after_break): Use record_full_is_used instead of
11949 * record-btrace.c (record_btrace_open): Call record_preopen
11950 instead of checking RECORD_IS_USED.
11951 * record-full.c (record_full_shortname)
11952 (record_full_core_shortname): New globals.
11953 (record_full_is_used): New function.
11954 (find_full_open): Call record_preopen instead of checking
11956 (init_record_full_ops): Set the target's shortname to
11957 record_full_shortname.
11958 (init_record_full_core_ops): Set the target's shortname to
11959 record_full_core_shortname.
11960 * record-full.h (record_full_is_used): Declare.
11961 * record.c (find_record_target): Make extern.
11962 (record_preopen): New function.
11963 * record.h (RECORD_IS_USED): Delete macro.
11964 (find_record_target, record_preopen): Declare functions.
11966 2014-01-14 Yao Qi <yao@codesourcery.com>
11968 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11969 'len''s type to ULONGEST.
11970 (core_xfer_shared_libraries_aix): Likewise.
11971 * gdbarch.c, gdbarch.h: Regenerated.
11972 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11973 Change type of 'len' to ULONGEST.
11974 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11975 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11977 2014-01-14 Yao Qi <yao@codesourcery.com>
11979 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11980 type of 'len' to ULONGEST.
11981 (linux_xfer_osdata_processgroups): Likewise.
11982 (linux_xfer_osdata_threads): Likewise.
11983 (linux_xfer_osdata_fds): Likewise.
11984 (linux_xfer_osdata_isockets): Likewise.
11985 (linux_xfer_osdata_shm): Likewise.
11986 (linux_xfer_osdata_sem): Likewise.
11987 (linux_xfer_osdata_msg): Likewise.
11988 (linux_common_xfer_osdata): Likewise.
11989 (struct osdata_type) <getter>: Likewise.
11990 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11993 2014-01-14 Yao Qi <yao@codesourcery.com>
11995 * target.h (target_xfer_partial_ftype): Update.
11996 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11998 * aix-thread.c (aix_thread_xfer_partial): Change type of
11999 argument 'len' to ULONGEST.
12000 * auxv.c (procfs_xfer_auxv): Likewise.
12001 (ld_so_xfer_auxv): Likewise.
12002 (memory_xfer_auxv): Likewise.
12003 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12004 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12005 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12006 * corelow.c (core_xfer_partial): Likewise.
12007 * ctf.c (ctf_xfer_partial): Likewise.
12008 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12010 (darwin_read_dyld_info): Likewise.
12011 (darwin_xfer_partial): Likewise.
12012 * exec.c (section_table_xfer_memory_partial): Likewise.
12013 (exec_xfer_partial): Likewise.
12014 * exec.h (section_table_xfer_memory_partial): Update
12016 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12017 instead of plongest.
12018 (gnu_xfer_partial): Likewise.
12019 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12020 (ia64_hpux_xfer_solib_got): Likewise.
12021 (ia64_hpux_xfer_partial): Likewise.
12022 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12023 * inf-ptrace.c (inf_ptrace_xfer_partial):
12024 * inf-ttrace.c (inf_ttrace_xfer_partial):
12025 * linux-nat.c (linux_xfer_siginfo): Likewise.
12026 (linux_nat_xfer_partial): Likewise.
12027 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12028 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12029 * monitor.c (monitor_xfer_memory): Likewise.
12030 (monitor_xfer_partial): Likewise.
12031 * procfs.c (procfs_xfer_partial): Likewise.
12032 * record-full.c (record_full_xfer_partial): Likewise.
12033 (record_full_core_xfer_partial): Likewise.
12034 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12035 instead of plongest.
12036 (gdbsim_xfer_partial): Likewise.
12037 * remote.c (remote_xfer_partial): Likewise.
12038 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12039 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12041 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12042 (rs6000_xfer_shared_libraries): Likewise.
12043 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12044 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12045 (sparc_xfer_partial): Likewise.
12046 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12047 (spu_xfer_partial): Likewise.
12048 * spu-multiarch.c (spu_xfer_partial): Likewise.
12049 * target.c (target_read_live_memory): Likewise.
12050 (memory_xfer_live_readonly_partial): Likewise.
12051 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12052 (target_xfer_partial, default_xfer_partial): Likewise.
12053 (current_xfer_partial): Likewise.
12054 * tracepoint.c (tfile_xfer_partial): Likewise.
12055 * windows-nat.c (windows_xfer_memory): Likewise. Call
12056 pulongest instead of plongest.
12057 (windows_xfer_partial): Likewise.
12058 (windows_xfer_shared_libraries): Likewise.
12060 2014-01-14 Yao Qi <yao@codesourcery.com>
12062 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12063 target_xfer_partial_ftype.
12065 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12069 * valops.c (value_struct_elt_bitpos): New function
12070 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12071 object to 'None' if the field name is an empty string ("").
12072 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12073 attribute to look for a field when 'name' is 'None'.
12074 (get_field_type): New function
12076 2014-01-13 Doug Evans <dje@google.com>
12079 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12080 (try_open_dwop_file): Ditto.
12081 * gdb_bfd.c: #include "vec.h".
12082 (bfdp): New typedef.
12083 (struct gdb_bfd_data): New member included_bfds.
12084 (gdb_bfd_unref): Unref all included bfds.
12085 (gdb_bfd_record_inclusion): New function.
12086 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12088 2014-01-13 Tom Tromey <tromey@redhat.com>
12090 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12092 2014-01-13 Tom Tromey <tromey@redhat.com>
12094 * defs.h (use_windows): Remove.
12095 * gdb.c (main): Update.
12096 * main.c (captured_main, gdb_main): Update.
12097 * main.h (struct captured_main_args) <use_windows>: Remove.
12098 * top.c (use_windows): Remove.
12100 2014-01-13 Tom Tromey <tromey@redhat.com>
12102 * defs.h (deprecated_flush_hook): Remove.
12104 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12107 * linux-thread-db.c (try_thread_db_load): Add parameter
12108 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12109 (try_thread_db_load_from_pdir_1): Move it there from here.
12110 (try_thread_db_load_from_sdir): Update caller.
12111 (try_thread_db_load_from_dir): Move it there from here.
12113 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12115 * regformats/regdat.sh: Always rewrite the register file.
12117 2014-01-13 Pedro Alves <palves@redhat.com>
12119 * Makefile.in (CHECK_HEADERS): New variable.
12120 (check-headers:): New rule.
12122 2014-01-13 Tom Tromey <tromey@redhat.com>
12124 * cli/cli-setshow.c (do_set_command): Update.
12125 * defs.h (deprecated_set_hook): Remove.
12126 * top.c (deprecated_set_hook): Remove.
12128 2014-01-13 Pedro Alves <palves@redhat.com>
12130 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12131 the tracepoint if the PC is a pseudo-register.
12133 2014-01-13 Tom Tromey <tromey@redhat.com>
12135 * defs.h (XCALLOC): Remove.
12136 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12137 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12138 * dwarf2loc.c (allocate_piece_closure): Likewise.
12139 * elfread.c (elf_symfile_segments): Likewise.
12140 (elf_symfile_segments): Likewise.
12141 * gdbtypes.c (copy_type_recursive): Likewise.
12142 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12143 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12144 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12146 * mt-tdep.c (mt_gdbarch_init): Likewise.
12147 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12149 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12150 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12151 * registry.c (registry_alloc_data): Likewise.
12152 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12153 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12154 * serial.c (serial_fdopen_ops): Likewise.
12155 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12157 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12158 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12161 2014-01-13 Tom Tromey <tromey@redhat.com>
12163 * defs.h (XMALLOC): Remove.
12164 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12165 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12166 * cli-out.c (struct ui_out *): Likewise.
12167 * cli/cli-dump.c (add_dump_command): Likewise.
12168 (add_dump_command): Likewise.
12169 * complaints.c (get_complaints): Likewise.
12170 (find_complaint): Likewise.
12171 * dwarf2-frame.c (execute_cfa_program): Likewise.
12172 * dwarf2read.c (abbrev_table_read_table): Likewise.
12173 * gdbarch.sh: Likewise.
12174 * gdbarch.c: Rebuild.
12175 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12176 * interps.c (interp_new): Likewise.
12177 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12178 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12179 * mi/mi-console.c (mi_console_file_new): Likewise.
12180 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12181 * mi/mi-out.c (mi_out_new): Likewise.
12182 * mi/mi-parse.c (mi_parse): Likewise.
12183 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12184 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12185 * observer.c (xalloc_observer_list_node): Likewise.
12186 * regcache.c (regcache_xmalloc_1): Likewise.
12187 * reggroups.c (reggroup_new): Likewise.
12188 (_initialize_reggroup): Likewise.
12189 * registry.c (register_data_with_cleanup): Likewise.
12190 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12191 * ser-base.c (serial_ttystate): Likewise.
12192 * ser-mingw.c (make_pipe_state): Likewise.
12193 * ser-pipe.c (pipe_open): Likewise.
12194 * serial.c (serial_open): Likewise.
12195 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12196 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12197 (tui_alloc_win_info): Likewise.
12198 (tui_add_content_elements): Likewise.
12199 * tui/tui-file.c (tui_file_new): Likewise.
12200 * tui/tui-out.c (tui_out_new): Likewise.
12201 * ui-file.c (mem_file_new): Likewise.
12202 * ui-out.c (push_level): Likewise.
12203 (make_cleanup_ui_out_end): Likewise.
12204 (append_header_to_list): Likewise.
12205 (ui_out_new): Likewise.
12206 * user-regs.c (user_reg_add_builtin): Likewise.
12208 2014-01-13 Tom Tromey <tromey@redhat.com>
12210 * defs.h (XZALLOC): Remove.
12211 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12212 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12213 (get_ada_tasks_inferior_data): Likewise.
12214 * auto-load.c (get_auto_load_pspace_data): Likewise.
12215 * auxv.c (get_auxv_inferior_data): Likewise.
12216 * bfd-target.c (target_bfd_reopen): Likewise.
12217 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12218 (deprecated_insert_raw_breakpoint): Likewise.
12219 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12220 * corelow.c (core_open): Likewise.
12221 * darwin-nat.c (darwin_check_new_threads): Likewise.
12222 (darwin_attach_pid): Likewise.
12223 * dummy-frame.c (dummy_frame_push): Likewise.
12224 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12225 * dwarf2loc.c (allocate_piece_closure): Likewise.
12226 * elfread.c (elf_symfile_segments): Likewise.
12227 * eval.c (ptrmath_type_p): Likewise.
12228 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12229 * gdbtypes.c (alloc_type_arch): Likewise.
12230 (alloc_type_instance): Likewise.
12231 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12232 * inf-child.c (inf_child_can_use_agent): Likewise.
12233 * inflow.c (get_inflow_inferior_data): Likewise.
12234 * infrun.c (save_infcall_suspend_state): Likewise.
12235 * jit.c (jit_reader_load): Likewise.
12236 (get_jit_objfile_data): Likewise.
12237 (get_jit_program_space_data): Likewise.
12238 (jit_object_open_impl): Likewise.
12239 (jit_symtab_open_impl): Likewise.
12240 (jit_block_open_impl): Likewise.
12241 (jit_frame_sniffer): Likewise.
12242 * linux-fork.c (add_fork): Likewise.
12243 * maint.c (make_command_stats_cleanup): Likewise.
12244 * objfiles.c (get_objfile_pspace_data): Likewise.
12245 * opencl-lang.c (struct lval_closure): Likewise.
12246 * osdata.c (osdata_start_osdata): Likewise.
12247 * progspace.c (new_address_space): Likewise.
12248 (add_program_space): Likewise.
12249 * remote-sim.c (get_sim_inferior_data): Likewise.
12250 * sh-tdep.c (sh_gdbarch_init): Likewise.
12251 * skip.c (Ignore): Likewise.
12252 (skip_delete_command): Likewise.
12253 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12254 (library_list_start_library): Likewise.
12255 (solib_aix_current_sos): Likewise.
12256 * solib-darwin.c (get_darwin_info): Likewise.
12257 (darwin_current_sos): Likewise.
12258 * solib-dsbt.c (get_dsbt_info): Likewise.
12259 * solib-ia64-hpux.c (new_so_list): Likewise.
12260 (ia64_hpux_get_solib_linkage_addr): Likewise.
12261 * solib-spu.c (append_ocl_sos): Likewise.
12262 (spu_current_sos): Likewise.
12263 * solib-svr4.c (get_svr4_info): Likewise.
12264 (svr4_keep_data_in_core): Likewise.
12265 (library_list_start_library): Likewise.
12266 (svr4_default_sos): Likewise.
12267 (svr4_read_so_list): Likewise.
12268 * solib-target.c (library_list_start_library): Likewise.
12269 (solib_target_current_sos): Likewise.
12270 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12271 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12272 * symfile.c (default_symfile_segments): Likewise.
12273 * target-descriptions.c (tdesc_data_init): Likewise.
12274 (tdesc_create_reg): Likewise.
12275 (struct tdesc_type *): Likewise.
12276 (tdesc_create_vector): Likewise.
12277 (tdesc_set_struct_size): Likewise.
12278 (struct tdesc_type *): Likewise.
12279 (tdesc_free_feature): Likewise.
12280 (tdesc_create_feature): Likewise.
12281 * windows-nat.c (windows_add_thread): Likewise.
12282 (windows_make_so): Likewise.
12283 * xml-support.c (gdb_xml_body_text): Likewise.
12284 (gdb_xml_create_parser_and_cleanup): Likewise.
12285 (xml_process_xincludes): Likewise.
12286 * xml-syscall.c (allocate_syscalls_info): Likewise.
12287 (syscall_create_syscall_desc): Likewise.
12289 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12291 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12292 function, with code from i386_stap_parse_special_token.
12293 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12294 (i386_stap_parse_special_token): Move code to the two functions
12295 above; simplify it.
12297 2014-01-09 Pedro Alves <palves@redhat.com>
12298 Hui Zhu <hui@codesourcery.com>
12301 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12302 bp_err_string. Don't mark the location shlib_disabled if the
12303 error thrown wasn't a generic or memory error. Catch errors
12304 thrown while inserting breakpoints in overlayed code. Output
12305 error message of software breakpoints.
12306 * remote.c (remote_insert_breakpoint): If this breakpoint has
12307 target-side commands but this stub doesn't support Z0 packets,
12308 throw NOT_SUPPORTED_ERROR error.
12309 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12310 * target.h (target_insert_breakpoint): Extend comment.
12311 (target_insert_hw_breakpoint): Add comment.
12313 2014-01-08 Pedro Alves <palves@redhat.com>
12315 * remote.c (remote_add_thread): Add threads silently if starting
12317 (remote_notice_new_inferior): If in all-stop, and starting up,
12318 don't call notice_new_inferior.
12319 (get_current_thread): New function, factored out from ...
12320 (add_current_inferior_and_thread): ... this. Adjust.
12321 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12322 found any thread, then select the remote's current thread as GDB's
12323 current thread too.
12325 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12327 * NEWS: Create a new section for the next release branch.
12328 Rename the section of the current branch, now that it has
12331 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12333 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12334 * version.in: Bump version to 7.7.50.DATE-cvs.
12336 2014-01-08 Yao Qi <yao@codesourcery.com>
12338 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12339 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12340 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12342 2014-01-08 Yao Qi <yao@codesourcery.com>
12344 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12345 return value of bfd_get_filename to symbol_file_add_from_bfd.
12347 2014-01-08 Pierre Muller <muller@sourceware.org>
12350 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12351 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12352 to prim_record_mininal_symbol_and_info.
12353 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12354 in call to prim_record_minimal_symbol_and_info.
12355 (read_pe_exported_syms): Set index field of section_data.
12357 2014-01-07 Andrew Pinski <apinski@cavium.com>
12359 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12360 * features/aarch64.c: Regenerate.
12362 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12364 * target.c (return_null): Define.
12365 (update_current_target): Use it instead of return_zero for
12366 functions that return a pointer.
12368 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12370 * source.c (add_path): Fix check for duplicated paths in the previously
12373 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12375 * ada-lang.c: Remove duplicated include statements.
12376 * alphabsd-nat.c: Ditto.
12377 * amd64-darwin-tdep.c: Ditto.
12378 * amd64fbsd-nat.c: Ditto.
12379 * auto-load.c: Ditto.
12381 * breakpoint.c: Ditto.
12382 * dbxread.c: Ditto.
12383 * fork-child.c: Ditto.
12384 * gdb_usleep.c: Ditto.
12385 * i386-darwin-tdep.c: Ditto.
12386 * i386fbsd-nat.c: Ditto.
12388 * inferior.c: Ditto.
12389 * jv-lang.c: Ditto.
12390 * linux-nat.c: Ditto.
12391 * linux-tdep.c: Ditto.
12392 * m68kbsd-nat.c: Ditto.
12393 * m68klinux-nat.c: Ditto.
12394 * microblaze-tdep.c: Ditto.
12395 * mips-linux-tdep.c: Ditto.
12396 * mn10300-tdep.c: Ditto.
12397 * nto-tdep.c: Ditto.
12398 * opencl-lang.c: Ditto.
12400 * printcmd.c: Ditto.
12401 * regcache.c: Ditto.
12402 * remote-m32r-sdi.c: Ditto.
12404 * symfile.c: Ditto.
12406 * tilegx-linux-nat.c: Ditto.
12407 * tilegx-tdep.c: Ditto.
12408 * tracepoint.c: Ditto.
12410 * vaxbsd-nat.c: Ditto.
12411 * windows-nat.c: Ditto.
12412 * xtensa-tdep.c: Ditto.
12414 2014-01-07 Yao Qi <yao@codesourcery.com>
12416 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12418 2014-01-07 Yao Qi <yao@codesourcery.com>
12419 Joel Brobecker <brobecker@adacore.com>
12421 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12422 (pdc_write_regs): Likewise.
12423 (fetch_regs_kernel_thread): Likewise.
12424 (store_regs_kernel_thread): Likewise.
12426 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12428 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12429 tagged type objects to their actual type.
12431 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12433 * ada-valprint.c (print_field_values): Add "language" parameter.
12434 Update calls to print_field_values and print_variant_part.
12435 Pass new parameter "language" in call to val_print instead
12436 of "current_language". Replace call to ada_val_print by call
12438 (print_variant_part): Add "language" parameter.
12439 (ada_val_print_struct_union): Update call to print_field_values.
12441 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12443 * ada-valprint.c (ui_memcpy): Delete.
12444 (ada_print_floating): Update documentation. Add empty line
12445 between between function documentation and implementation.
12446 Delete variable "buffer". Use ui_file_xstrdup in place of
12447 ui_file_put. Minor adjustments following this change.
12449 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12451 * ada-valprint.c (ada_val_print_string): New function,
12452 extracted from ada_val_print_array.
12453 (ada_val_print_array): Replace extracted code by call
12454 to ada_val_print_string followed by a return. Move
12455 "else" branch to the function's top block.
12457 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12459 * ada-valprint.c (ada_val_print_array): Move implementation
12460 down. Rename parameter "offset" and "val" into "offset_aligned"
12461 and "original_value" respectively. Add parameter "offset".
12463 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12465 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12466 re-organizing the code. Change the "???" message printed
12467 when target type is a TYPE_CODE_UNDEF into
12468 "<ref to undefined type>".
12470 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12472 * ada-valprint.c (print_record): Delete, implementation inlined...
12473 (ada_val_print_struct_union): ... here. Remove call to
12474 ada_check_typedef in inlined implementation.
12476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12478 * ada-valprint.c (ada_val_print_gnat_array): New function,
12479 extracted from ada_val_print_1;
12480 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12481 (ada_val_print_flt, ada_val_print_struct_union)
12482 (ada_val_print_ref): Likewise.
12483 (ada_val_print_1): Delete variables i and elttype.
12484 Replace extracted-out code by call to corresponding
12487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12489 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12493 * ada-valprint.c (ada_val_print_1): Replace calls to
12494 ada_val_print_1 by calls to val_print.
12496 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12498 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12499 Update calls to self accordingly. Replace calls to c_val_print
12500 by calls to val_print.
12502 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12504 * ada-valprint.c (print_record): Delete declaration.
12505 (adjust_type_signedness, ada_val_print_1): Likewise.
12506 (ada_val_print): Move function implementation down.
12507 (print_variant_part, print_field_values, print_record):
12508 Move function implementation up.
12510 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12512 * python/py-type.c (typy_get_name): New function.
12513 (type_object_getset): Add entry for attribute "name".
12514 * NEWS: Add entry mentioning this new attribute.
12516 2014-01-07 Yao Qi <yao@codesourcery.com>
12518 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12521 2014-01-07 Yao Qi <yao@codesourcery.com>
12523 * gnu-nat.c (info_port_rights): Add qualifier const to
12526 2014-01-07 Yao Qi <yao@codesourcery.com>
12528 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12530 2014-01-07 Yao Qi <yao@codesourcery.com>
12532 * gnu-nat.c (make_inf) Update declaration.
12533 (make_inf): Make it static.
12534 (inf_set_traced): Likewise.
12535 (inf_port_to_thread, inf_task_died_status): Likewise.
12537 2014-01-07 Yao Qi <yao@codesourcery.com>
12539 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12541 2014-01-07 Yao Qi <yao@codesourcery.com>
12543 * gnu-nat.c (_initialize_gnu_nat): Declare.
12545 2014-01-07 Yao Qi <yao@codesourcery.com>
12547 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12549 (struct gdbarch_info) <byte_order>: Change type to
12551 <byte_order_for_code>: Likewise.
12552 * gdbarch.c, gdbarch.h: Regenerated.
12554 2014-01-06 Sasha Smundak <asmundak@google.com>
12556 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12558 2014-01-06 Tom Tromey <tromey@redhat.com>
12560 * doublest.c (convert_doublest_to_floatformat): Use const, not
12562 * somread.c (som_symtab_read): Likewise.
12564 2014-01-07 Hui Zhu <hui@codesourcery.com>
12566 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12567 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12568 (gdb_bfd_fopen): Ditto.
12569 (gdb_bfd_openr): Ditto.
12570 (gdb_bfd_openw): Ditto.
12571 (gdb_bfd_openr_iovec): Ditto.
12572 (gdb_bfd_fdopenr): Ditto.
12573 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12574 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12576 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12578 * symfile-mem.c (symbol_file_add_from_memory): Removed
12579 gdb_bfd_stash_filename.
12581 2014-01-03 Doug Evans <dje@google.com>
12583 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12586 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12588 Update year range in copyright notice of all files.
12590 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12592 * top.c (print_gdb_version): Set copyright year to 2014.
12594 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12596 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12598 For older changes see ChangeLog-2013.
12604 version-control: never