1 2014-09-06 Doug Evans <xdje42@gmail.com>
3 * infcmd.c (program_info): Fix typo.
5 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
8 * stap-probe.c (stap_parse_single_operand): Delete unused variable
9 'number'. New variable 'has_digit'. Rewrite code to deal with
10 subexpressions on SDT probes.
12 2014-09-04 Pedro Alves <palves@redhat.com>
14 * c-exp.y (parse_number): Skip handling base-switching prefixes if
15 the input is only one character long.
17 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
20 * f-valprint.c (f_val_print): Specify the correct print option to
21 use when printing integer values.
23 2014-09-04 Gary Benson <gbenson@redhat.com>
25 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
26 Remove code to cope with LWPs wrapped as PIDs.
27 Add assertions to ensure no wrapped LWPs are passed.
29 2014-09-04 Pedro Alves <palves@redhat.com>
31 * value.c (value_ranges_copy_adjusted): New function, factored out
33 (value_contents_copy_raw): ... here.
34 (unpack_value_bits_as_long_1): Rename back to ...
35 (unpack_bits_as_long): ... this. Remove 'original_value' and
36 'result' parameters. Change return type to LONGEST.
37 (unpack_value_bits_as_long): Delete.
38 (unpack_value_field_as_long_1): Delete.
39 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
40 (unpack_value_bitfield): New function.
41 (value_field_bitfield): Reimplement using unpack_value_bitfield.
42 (value_fetch_lazy): Use unpack_value_bitfield.
43 * value.h (unpack_value_bits_as_long): Delete declaration.
45 2014-09-03 Sasha Smundak <asmundak@google.com>
47 * python/py-frame.c (frapy_read_register): New function.
49 2014-09-03 James Hogan <james.hogan@imgtec.com>
51 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
52 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
54 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
57 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
59 (add_cmd): Set "completer_handle_brkchars" to NULL.
60 * cli/cli-decode.h (struct cmd_list_element)
61 <completer_handle_brkchars>: New field.
62 * command.h (completer_ftype_void): New typedef.
63 (set_cmd_completer_handle_brkchars): New prototype.
64 * completer.c (set_gdb_completion_word_break_characters): New
66 (complete_line_internal): Call "completer_handle_brkchars"
67 callback from command.
68 * completer.h: Include "command.h".
69 (set_gdb_completion_word_break_characters): New prototype.
70 * python/py-cmd.c (cmdpy_completer_helper): New function.
71 (cmdpy_completer_handle_brkchars): New function.
72 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
73 (cmdpy_init): Set completer_handle_brkchars to
74 cmdpy_completer_handle_brkchars.
76 2014-09-03 Gary Benson <gbenson@redhat.com>
78 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
79 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
80 Loop conditions changed to equivalent form.
81 (struct x86_debug_reg_state): Updated dr_ref_count comment.
82 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
83 ALL_DEBUG_ADDRESS_REGISTERS.
85 2014-09-03 Joel Brobecker <brobecker@adacore.com>
87 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
90 2014-09-02 Doug Evans <dje@google.com>
92 * typeprint.c (find_global_typedef): Fix comment.
94 2014-09-02 Gary Benson <gbenson@redhat.com>
96 * i386-nat.h: Renamed as...
97 * x86-nat.h: New file. All type, function and variable name
98 prefixes changed from "i386_" to "x86_". All references updated.
99 * i386-nat.c: Renamed as...
100 * x86-nat.c: New file. All type, function and variable name
101 prefixes changed from "i386_" to "x86_". All references updated.
102 * common/i386-xstate.h: Renamed as...
103 * common/x86-xstate.h: New file. All type, function and variable
104 name prefixes changed from "i386_" to "x86_". All references
106 * nat/i386-cpuid.h: Renamed as...
107 * nat/x86-cpuid.h: New file. All type, function and variable name
108 prefixes changed from "i386_" to "x86_". All references updated.
109 * nat/i386-gcc-cpuid.h: Renamed as...
110 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
111 name prefixes changed from "i386_" to "x86_". All references
113 * nat/i386-dregs.h: Renamed as...
114 * nat/x86-dregs.h: New file. All type, function and variable name
115 prefixes changed from "i386_" to "x86_". All references updated.
116 * nat/i386-dregs.c: Renamed as...
117 * nat/x86-dregs.c: New file. All type, function and variable name
118 prefixes changed from "i386_" to "x86_". All references updated.
120 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
122 * varobj.c (_initialize_varobj): Move to the end of file.
124 2014-08-29 Gary Benson <gbenson@redhat.com>
126 * common/common-exceptions.h: New file.
127 * common/common-exceptions.c: Likewise.
128 * Makefile.in (SFILES): Add common/common-exceptions.c.
129 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
130 (COMMON_OBS): Add common-exceptions.o.
131 (common-exceptions.o): New rule.
132 * exceptions.h (common-exceptions.h): Include.
133 (gdb_setjmp.h): Do not include.
134 (return_reason): Moved to common-exceptions.h.
135 (enum return_reason): Likewise.
136 (RETURN_MASK): Likewise.
137 (typedef return_mask): Likewise.
138 (enum errors): Likewise.
139 (struct gdb_exception): Likewise.
140 (exceptions_state_mc_init): Likewise.
141 (exceptions_state_mc_action_iter): Likewise.
142 (exceptions_state_mc_action_iter_1): Likewise.
143 (TRY_CATCH): Likewise.
144 (throw_exception): Likewise.
145 (throw_verror): Likewise.
146 (throw_vquit): Likewise.
147 (throw_error): Likewise.
148 (throw_quit): Likewise.
149 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
150 (enum catcher_action): Likewise.
151 (struct catcher): Likewise.
152 (current_catcher): Likewise.
153 (catcher_list_size): Likewise.
154 (exceptions_state_mc_init): Likewise.
155 (catcher_pop): Likewise.
156 (exceptions_state_mc): Likewise.
157 (exceptions_state_mc_action_iter): Likewise.
158 (exceptions_state_mc_action_iter_1): Likewise.
159 (throw_exception): Likewise.
160 (exception_messages): Likewise.
161 (exception_messages_size): Likewise.
162 (throw_it): Likewise.
163 (throw_verror): Likewise.
164 (throw_vquit): Likewise.
165 (throw_error): Likewise.
166 (throw_quit): Likewise.
167 (prepare_to_throw_exception): New function.
169 2014-08-29 Gary Benson <gbenson@redhat.com>
171 * common/gdb_setjmp.h: New file.
172 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
173 * configure.ac: Move sigsetjmp check...
174 * common/common.m4: ...here.
175 * configure: Regenerate.
176 * cp-support.c (SIGJMP_BUF): Delete.
177 (SIGSETJMP): Likewise.
178 (SIGLONGJMP): Likewise.
179 * exceptions.h (gdb_setjmp.h): Include.
180 (setjmp.h): Do not include.
181 (EXCEPTIONS_SIGJMP_BUF): Delete.
182 (EXCEPTIONS_SIGSETJMP): Likewise.
183 (EXCEPTIONS_SIGLONGJMP): Likewise.
184 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
186 * exceptions.c: Likewise.
188 2014-08-29 Gary Benson <gbenson@redhat.com>
190 * cleanups.h: Moved to...
191 * common/cleanups.h: New file.
192 * cleanups.c: Moved to...
193 * common/cleanups.c: New file. Include common-defs.h and
194 cleanups.h. Do not include defs.h.
195 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
196 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
197 (cleanups.o): New rule.
199 2014-08-29 Gary Benson <gbenson@redhat.com>
201 * common/errors.h (internal_warning): New declaration.
202 (internal_vwarning): Likewise.
203 * common/errors.c (internal_warning): New function.
204 * utils.h (internal_warning): Don't declare.
205 (internal_vwarning): Likewise.
206 * utils.c (internal_warning): Removed.
208 2014-08-29 Gary Benson <gbenson@redhat.com>
210 * main.c (captured_main): Use warning during startup.
211 Prefix startup warning messages with command name.
213 2014-08-29 Gary Benson <gbenson@redhat.com>
215 * main.c (captured_main): Handle usage errors with error.
217 2014-08-29 Gary Benson <gbenson@redhat.com>
219 * go32-nat.c (go32_create_inferior): Replace a fprintf/
220 exit pair with a call to error. Wrap the message with _().
222 2014-08-29 Gary Benson <gbenson@redhat.com>
224 * main.c (captured_main): Replace a fprintf/exit
225 pair with a call to error. Wrap the message with _().
227 2014-08-29 Gary Benson <gbenson@redhat.com>
229 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
230 pairs with calls to error. Wrap the message with _().
232 2014-08-29 Gary Benson <gbenson@redhat.com>
234 * utils.c (vwarning): Protect calls to target_terminal_ours
237 2014-08-29 Gary Benson <gbenson@redhat.com>
239 * exceptions.c (print_flush): Protect calls to
240 target_terminal_ours and wrap_here.
242 2014-08-29 Gary Benson <gbenson@redhat.com>
244 * utils.h (filtered_printing_initialized): New declaration.
245 * utils.c (abort_with_message): New function.
246 (internal_vproblem): Use abort_with_message for first level
247 recursive internal problems, and if gdb_stderr is not set up.
248 Protect calls to target_terminal_ours, begin_line and query.
250 2014-08-28 Doug Evans <dje@google.com>
252 * symtab.c (in_prologue): Move definition to better spot.
253 (skip_prologue_using_sal): Ditto.
255 2014-08-28 Doug Evans <dje@google.com>
257 * symtab.c (find_function_start_sal): Move definition to better spot.
259 2014-08-28 Yao Qi <yao@codesourcery.com>
261 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
262 found_stack_adjust in forward scan. Remove condition check
263 on found_stack_adjust which is always true. Indent the code.
265 2014-08-28 Yao Qi <yao@codesourcery.com>
267 * dwarf2read.c (dwarf_decode_lines): Update declaration.
268 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
269 (dwarf_decode_lines): Remove argument
270 want_line_info. Remove condition check on want_line_info.
273 2014-08-27 Doug Evans <dje@google.com>
275 * dwarf2read.c (dwarf_record_line): Fix typo.
277 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
279 * target.h (struct target_ops::to_terminal_save_ours): Remove
281 (target_terminal_save_ours): Remove macro.
282 * target-delegates.c: Regenerate.
283 * inf-child.c (inf_child_target): Don't set the nonexistent
284 field to_terminal_save_ours.
285 * inferior.h (child_terminal_save_ours): Remove declaration.
286 * terminal.h (gdb_save_tty_state): New declaration.
287 * inflow.c (child_terminal_save_ours): Rename to ...
288 (gdb_save_tty_state): ... this.
289 * tui/tui.c: Include terminal.h.
290 (tui_enable): Use gdb_save_tty_state instead of
291 target_terminal_save_ours.
292 (tui_disable): Likewise.
294 2014-08-25 Doug Evans <dje@google.com>
296 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
297 Pass NULL instead of 0 for context pointer.
299 2014-08-25 Yao Qi <yao@codesourcery.com>
301 * dwarf2read.c: Fix grammatical error.
303 2014-08-24 Yao Qi <yao@codesourcery.com>
305 * dwarf2read.c (scan_partial_symbols): Update comments.
306 Rename argument 'need_pc' with 'set_addrmap'.
307 (add_partial_namespace): Rename argument 'need_pc' with
309 (add_partial_module): Likewise.
310 (add_partial_subprogram): Likewise. Update comments.
311 (dwarf2_name): Fix typo.
313 2014-08-22 Doug Evans <dje@google.com>
316 * dwarf2read.c (dwarf_record_line_p): New function.
317 (dwarf_decode_lines_1): Ignore subsequent line number entries
318 for the same line if any entry had a non-zero discriminator.
320 2014-08-22 Doug Evans <dje@google.com>
322 * buildsym.h (record_line_ftype): New typedef.
323 (record_line): Use it.
324 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
325 (dwarf_decode_lines_1): Call them.
327 2014-08-22 Yao Qi <yao@codesourcery.com>
329 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
330 (ctf_end): Remove code.
332 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
334 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
335 (linux_make_corefile_notes): call update_thread_list, protected against
338 2014-08-21 Pedro Alves <palves@redhat.com>
340 * infcmd.c (attach_command): Remove comment.
342 2014-08-21 Bin Cheng <bin.cheng@arm.com>
344 * aarch64-linux-nat.c (dr_changed_t): Change the type from
345 unsigned LONGEST to ULONGEST.
347 2014-08-20 Pedro Alves <palves@redhat.com>
349 * Makefile.in (check-read1): New rule.
351 2014-08-20 Joel Brobecker <brobecker@adacore.com>
353 * value.c (value_from_contents_and_address): Strip resolved_type's
354 typedef layers before checking its TYPE_DATA_LOCATION.
356 2014-08-20 Pedro Alves <palves@redhat.com>
358 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
360 2014-08-20 Yao Qi <yao@codesourcery.com>
362 * amd64-tdep.c (amd64_classify): Add a blank line after the
363 example. Move "*/" to a new line.
364 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
365 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
366 * dwarf2read.c (psymtab_include_file_name): Likewise.
368 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
369 Pedro Alves <palves@redhat.com>
373 * ada-lang.c (coerce_unspec_val_to_type): Use
374 value_contents_copy_raw.
375 * ada-valprint.c (val_print_packed_array_elements): Adjust.
376 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
377 * cp-valprint.c (cp_print_value_fields): Let the common printing
378 code handle optimized out values.
379 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
380 * d-valprint.c (dynamic_array_type): Use
381 value_bits_any_optimized_out.
382 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
383 check_any_valid fields.
384 (check_pieced_value_bits): Delete and inline ...
385 (check_pieced_synthetic_pointer): ... here.
386 (check_pieced_value_validity): Delete.
387 (check_pieced_value_invalid): Delete.
388 (pieced_value_funcs): Remove check_validity and check_any_valid
390 (read_pieced_value): Use mark_value_bits_optimized_out.
391 (write_pieced_value): Switch to use
392 mark_value_bytes_optimized_out.
393 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
394 of assuming the whole value is optimized out.
395 * findvar.c (read_frame_register_value): Remove special handling
396 of optimized out registers.
397 (value_from_register): Use mark_value_bytes_optimized_out.
398 * frame-unwind.c (frame_unwind_got_optimized): Use
399 mark_value_bytes_optimized_out.
400 * jv-valprint.c (java_value_print): Adjust.
401 (java_print_value_fields): Let the common printing code handle
402 optimized out values.
403 * mips-tdep.c (mips_print_register): Remove special handling of
404 optimized out registers.
405 * opencl-lang.c (lval_func_check_validity): Delete.
406 (lval_func_check_any_valid): Delete.
407 (opencl_value_funcs): Remove check_validity and check_any_valid
409 * p-valprint.c (pascal_object_print_value_fields): Let the common
410 printing code handle optimized out values.
411 * stack.c (read_frame_arg): Remove special handling of optimized
412 out values. Fetch both VAL and ENTRYVAL before comparing
413 contents. Adjust to value_available_contents_eq rename.
414 * valprint.c (valprint_check_validity)
415 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
416 (val_print_array_elements): Adjust.
417 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
418 (value_bits_any_optimized_out): New function.
419 (value_entirely_covered_by_range_vector): New function, factored
420 out from value_entirely_unavailable.
421 (value_entirely_unavailable): Reimplement.
422 (value_entirely_optimized_out): New function.
423 (insert_into_bit_range_vector): New function, factored out from
424 mark_value_bits_unavailable.
425 (mark_value_bits_unavailable): Reimplement.
426 (struct ranges_and_idx): New struct.
427 (find_first_range_overlap_and_match): New function, factored out
428 from value_available_contents_bits_eq.
429 (value_available_contents_bits_eq): Rename to ...
430 (value_contents_bits_eq): ... this. Check both unavailable
431 contents and optimized out contents.
432 (value_available_contents_eq): Rename to ...
433 (value_contents_eq): ... this.
434 (allocate_value_lazy): Remove reference to the old optimized_out
436 (allocate_optimized_out_value): Use
437 mark_value_bytes_optimized_out.
438 (require_not_optimized_out): Adjust to check whether the
439 optimized_out vec is empty.
440 (ranges_copy_adjusted): New function, factored out from
441 value_contents_copy_raw.
442 (value_contents_copy_raw): Also copy the optimized out ranges.
443 Assert the destination ranges aren't optimized out.
444 (value_contents_copy): Update comment, remove call to
445 require_not_optimized_out.
446 (value_contents_equal): Adjust to check whether the optimized_out
448 (set_value_optimized_out, value_optimized_out_const): Delete.
449 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
451 (value_entirely_optimized_out, value_bits_valid): Delete.
452 (value_copy): Take a VEC copy of the 'optimized_out' field.
453 (value_primitive_field): Remove special handling of optimized out.
454 (value_fetch_lazy): Assert that lazy values have no unavailable
455 regions. Use value_bits_any_optimized_out. Remove some special
456 handling for optimized out values.
457 * value.h: Add intro comment about <optimized out> and
459 (struct lval_funcs): Remove check_validity and check_any_valid
461 (set_value_optimized_out, value_optimized_out_const): Remove.
462 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
464 (value_bits_any_optimized_out): New declaration.
465 (value_bits_valid): Delete declaration.
466 (value_available_contents_eq): Rename to ...
467 (value_contents_eq): ... this, and extend comments.
469 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
471 Fix -fsanitize=address on unreadable inferior strings.
472 * valprint.c (val_print_string): Fix access before BUFFER.
474 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
476 * target.c (target_struct_size): Remove.
477 (target_struct_allocsize): Remove.
478 (DEFAULT_ALLOCSIZE): Remove.
479 (target_ops_p): New typedef.
480 (DEF_VEC_P (target_ops_p)): New vector type.
481 (target_structs): Change type to VEC (target_ops_p).
482 (add_target_with_completer): Replace "push" code by VEC_safe_push.
483 (find_default_run_target): Rewrite for loop following changes to
486 2014-08-19 Joel Brobecker <brobecker@adacore.com>
488 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
489 Adjust code accordingly. Adjust function description comment.
491 2014-08-19 Yao Qi <yao@codesourcery.com>
493 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
496 2014-08-19 Alan Modra <amodra@gmail.com>
498 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
499 * config.in: Regenerate.
500 * configure: Regenerate.
502 2014-08-19 Tom Tromey <tromey@redhat.com>
503 Gary Benson <gbenson@redhat.com>
505 * common/common-debug.h: New file.
506 * common/common-debug.c: Likewise.
508 * Makefile.in (SFILES): Add common/common-debug.c.
509 (HFILES_NO_SRCDIR): Add common/common-debug.h.
510 (COMMON_OBS): Add common-debug.o and debug.o.
511 (common-debug.o): New rule.
512 * common/common-defs.h: Include common-debug.h.
513 * common/agent.c (debug_agent_printf): New function.
514 (DEBUG_AGENT): Redefine.
515 * nat/i386-dregs.c (debug_printf): Undefine.
517 2014-08-19 Gary Benson <gbenson@redhat.com>
519 * common/common-defs.h: Include print-utils.h.
520 * utils.h: Do not include print-utils.h.
522 2014-08-19 Tom Tromey <tromey@redhat.com>
523 Gary Benson <gbenson@redhat.com>
525 * common/common-types.h: New file.
526 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
527 * common/common-defs.h: Include common-types.h.
528 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
531 2014-08-19 Tom Tromey <tromey@redhat.com>
532 Gary Benson <gbenson@redhat.com>
534 * common/errors.h: New file.
535 * common/errors.c: Likewise.
536 * Makefile.in (SFILES): Add common/errors.c.
537 (HFILES_NO_SRCDIR): Add common/errors.h.
538 (COMMON_OBS): Add errors.o.
539 (errors.o): New rule.
540 * common/common-defs.h: Include errors.h.
541 * utils.h (perror_with_name, error, verror, warning, vwarning):
543 * common/common-utils.h: (malloc_failure, internal_error):
546 2014-08-19 Gary Benson <gbenson@redhat.com>
548 * utils.c (internal_vproblem): Always print the message.
550 2014-08-18 Doug Evans <dje@google.com>
552 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
554 2014-08-18 Joel Brobecker <brobecker@adacore.com>
556 * ada-typeprint.c (type_is_full_subrange_of_target_type):
557 Return 0 if TYPE is dynamic.
558 (print_range): Add handling of dynamic ranges.
560 2014-08-18 Keven Boell <keven.boell@intel.com>
561 Joel Brobecker <brobecker@adacore.com>
563 * gdbtypes.h (struct main_type): Add field "data_location".
564 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
565 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
566 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
567 a dynamic data location.
568 (resolve_dynamic_type): Add DW_AT_data_location handling.
569 (copy_recursive, copy_type): Copy the data_location information
571 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
572 * value.c (value_from_contents_and_address): Add
573 DW_AT_data_location handling.
575 2014-08-18 Keven Boell <keven.boell@intel.com>
576 Joel Brobecker <brobecker@adacore.com>
578 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
579 field "get_object_address".
580 * dwarf2expr.c (execute_stack_op): Add handling for
581 DW_OP_push_object_address.
582 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
583 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
584 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
585 (dwarf_expr_get_obj_addr): New function.
586 (dwarf_expr_ctx_funcs): Add get_object_address field.
587 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
588 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
589 (dwarf2_evaluate_property): Add parameter "address". Use it.
590 (needs_get_obj_addr): New function.
591 (needs_frame_ctx_funcs): Add get_object_address field.
592 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
593 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
594 (resolve_dynamic_array): Likewise.
596 2014-08-18 Joel Brobecker <brobecker@adacore.com>
598 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
599 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
600 fixed value for records and unions for which some GNAT encodings
603 2014-08-18 Joel Brobecker <brobecker@adacore.com>
605 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
606 rewrite to avoid "else if" and "else" constructs. Should be
609 2014-08-18 Joel Brobecker <brobecker@adacore.com>
611 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
614 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
617 * eval.c: Update all calls to find_overload_match.
618 * valarith.c: Likewise.
619 (value_user_defined_cpp_op, value_user_defined_op): New
620 argument NOSIDE. Update all callers.
621 * valops.c (find_overload_match): New argument NOSIDE.
622 * value.h (find_overload_match): Update signature.
624 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
626 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
627 'items' methods instead of 'iteritems' method on dictionaries.
629 2014-08-15 Doug Evans <dje@google.com>
631 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
634 2014-08-15 Doug Evans <dje@google.com>
636 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
638 2014-08-15 Doug Evans <dje@google.com>
640 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
642 2014-08-15 Doug Evans <dje@google.com>
644 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
647 2014-08-15 Eli Zaretskii <eliz@gnu.org>
649 * dcache.h: Include target.h, to avoid compile time warnings.
651 2014-08-15 Joel Brobecker <brobecker@adacore.com>
653 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
654 frame_info" partial declaration.
655 * gdbarch.h: Regenerate.
657 2014-08-15 Yao Qi <yao@codesourcery.com>
659 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
660 Add parameter 'decode_for_pst_p'. Callers update.
662 2014-08-13 Yao Qi <yao@codesourcery.com>
665 * configure.ac: Use local variable 'pos'.
666 * configure: Regenerated.
668 2014-08-11 Doug Evans <dje@google.com>
670 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
671 message, it is redundant with "Reading symbols from ..." message.
673 2014-08-10 Doug Evans <xdje42@gmail.com>
675 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
677 2014-08-09 Yao Qi <yao@codesourcery.com>
680 * remote.c (remote_xfer_partial): Remove dead code.
682 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
684 * ia64-linux-tdep.c: Include "regset.h".
685 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
686 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
687 (ia64_linux_supply_fpregset): New function.
688 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
689 (ia64_linux_regset_from_core_section): New function.
690 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
693 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
695 * m68klinux-tdep.c: Include "regset.h".
696 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
697 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
698 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
699 (m68k_linux_regset_from_core_section): New function.
700 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
703 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
705 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
706 function. Move logic to...
707 (tilegx_linux_regmap): ... this new register map.
708 (tilegx_linux_regset): Refer to register map, replace supply
709 method by regcache_supply_regset, and add collect method.
710 * tilegx-tdep.h (enum tilegx_regnum): New enum value
711 TILEGX_FIRST_EASY_REGNUM.
713 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
715 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
716 that calls regcache_supply_regset and handles the EPC register
717 separately. Move main logic to...
718 (score7_linux_gregmap): ... this new register map.
719 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
720 (score7_linux_gregset): Refer to register map. Add collect method.
721 (score7_linux_regset_from_core_section): Replace
722 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
723 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
724 (struct regset): Delete unused forward declaraction.
725 (struct pt_regs): Delete structure definition.
726 (elf_gregset_t): Delete typedef.
728 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
730 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
731 (nios2_core_regset): Add collect method.
733 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
735 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
736 platform-independent and don't write to read-only input buffer.
737 (m32r_linux_collect_gregset): New function.
738 (m32r_linux_gregset): Add collect method.
740 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
742 * hppa-linux-tdep.c (greg_map): Rename to...
743 (hppa_linux_gregmap): ... this. Also convert to
744 regcache_map_entry format.
745 (hppa_linux_supply_regset): Delete function.
746 (hppa_linux_supply_fpregset): Delete function. Move logic to...
747 (hppa_linux_fpregmap): ... this new register map.
748 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
749 register map, replace supply method by regcache_supply_regset, and
750 add collect method regcache_collect_regset.
752 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
754 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
755 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
756 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
757 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
758 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
759 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
760 (frv_linux_supply_gregset): Replace main logic by call to
761 regcache_supply_regset, but keep clearing gr32-gr63.
762 (frv_linux_supply_fpregset): Delete function.
763 (frv_linux_gregset): Refer to appropriate register map and add
764 regcache_collect_regset as the collect method.
765 (frv_linux_fpregset): Likewise. Also exchange the supply method
766 by regcache_supply_regset.
768 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
770 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
771 by call to alpha_supply_int_regs.
772 (alpha_linux_collect_gregset): New function.
773 (alpha_linux_supply_fpregset): Replace logic by call to
774 alpha_supply_fp_regs.
775 (alpha_linux_collect_fpregset): New function.
776 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
778 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
780 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
781 by call to regcache_collect_regset.
782 (supply_gregset, supply_fpregset): Call regcache_supply_regset
783 instead of aarch64_linux_supply_gregset/_fpregset.
784 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
785 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
787 (aarch64_linux_supply_gregset, supply_gregset_from_core)
788 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
789 functions. Move logic to ...
790 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
792 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
793 refer to new register maps, replace *_regset_from_core by
794 regcache_supply_regset, and also use regcache_collect_regset.
795 * aarch64-linux-tdep.h: Include "regset.h".
796 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
798 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
799 macros, moved from C source file.
800 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
801 variable declarations.
803 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
805 * s390-linux-nat.c: Include "regset.h".
806 (regmap_gregset): Delete macro.
807 (s390_64_regmap_gregset): New register map for
808 regcache_supply/_collect_regset.
809 (s390_64_gregset): New regset.
810 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
811 (regmap_fpregset): Delete macro.
812 (s390_native_supply, s390_native_collect): Delete functions.
813 (supply_gregset, fill_gregset): Replace s390-specific regmap
814 handling by a call to regcache_supply/_collect_regset.
815 (supply_fpregset, fill_fpregset): Call regcache_supply/
816 _collect_regset instead of s390_native_supply/_collect.
817 (fetch_regset, store_regset): Likewise. Also change the last
818 parameter to a regset instead of a regmap.
819 (s390_linux_fetch_inferior_registers)
820 (390_linux_store_inferior_registers): Adjust last parameter in
821 calls to fetch_regset and store_regset.
822 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
823 (s390_gregmap): ... this. Also make static const and convert to
824 regcache_map_entry format.
825 (s390x_regmap_gregset): Delete.
826 (s390_regmap_fpregset): Rename to...
827 (s390_fpregmap): ... this. Make static const and convert to
828 regcache_map_entry format.
829 (s390_regmap_upper, s390_regmap_last_break)
830 (s390x_regmap_last_break, s390_regmap_system_call)
831 (s390_regmap_tdb): Likewise.
832 (s390_supply_regset, s390_collect_regset): Remove functions.
833 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
835 (s390_gregset, s390_fpregset, s390_upper_regset)
836 (s390_last_break_regset, s390x_last_break_regset)
837 (s390_system_call_regset, s390_tdb_regset): Make global and
838 replace s390_supply/_collect_regset by regcache_supply/
840 (s390x_gregset): Delete.
841 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
842 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
843 (s390_regmap_fpregset, s390_regmap_last_break)
844 (s390x_regmap_last_break, s390_regmap_system_call)
845 (s390_regmap_tdb): Delete global variable declarations.
846 (s390_gregset, s390_fpregset, s390_last_break_regset)
847 (s390x_last_break_regset, s390_system_call_regset)
848 (s390_tdb_regset): New global variable declarations.
850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
852 * regcache.c: Include "regset.h".
853 (regcache_transfer_regset): New local function.
854 (regcache_supply_regset, regcache_collect_regset): New functions.
855 * regcache.h (struct regcache_map_entry): New structure.
856 (REGCACHE_MAP_SKIP): New enum value.
857 (regcache_supply_regset, regcache_collect_regset): New prototypes.
859 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
861 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
862 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
863 (ppc_linux_collect_gregset ): Likewise.
864 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
865 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
866 (ppc_collect_vrregset): Likewise.
867 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
870 2014-08-07 Yao Qi <yao@codesourcery.com>
872 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
873 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
874 * remote.c (remote_read_bytes): Likewise.
876 2014-08-07 Yao Qi <yao@codesourcery.com>
878 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
880 2014-08-07 Yao Qi <yao@codesourcery.com>
883 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
884 TARGET_XFER_OK instead of 0.
886 2014-08-07 Gary Benson <gbenson@redhat.com>
888 * common/common-defs.h: Include errno.h.
889 * defs.h: Do not include errno.h.
890 * ada-typeprint.c: Likewise.
891 * c-typeprint.c: Likewise.
892 * core-regset.c: Likewise.
893 * corefile.c: Likewise.
894 * corelow.c: Likewise.
895 * event-loop.c: Likewise.
896 * f-typeprint.c: Likewise.
897 * gnu-nat.c: Likewise.
898 * go32-nat.c: Likewise.
899 * i386gnu-nat.c: Likewise.
900 * m2-typeprint.c: Likewise.
901 * nat/linux-btrace.c: Likewise.
902 * p-typeprint.c: Likewise.
903 * procfs.c: Likewise.
904 * remote-sim.c: Likewise.
905 * rs6000-nat.c: Likewise.
906 * target.c: Likewise.
907 * typeprint.c: Likewise.
908 * ui-file.c: Likewise.
909 * valops.c: Likewise.
910 * valprint.c: Likewise.
912 2014-08-07 Gary Benson <gbenson@redhat.com>
914 * common/common-defs.h: Include string.h.
915 * aarch64-tdep.c: Do not include string.h.
916 * ada-exp.y: Likewise.
917 * ada-lang.c: Likewise.
918 * ada-lex.l: Likewise.
919 * ada-typeprint.c: Likewise.
920 * ada-valprint.c: Likewise.
921 * aix-thread.c: Likewise.
922 * alpha-linux-tdep.c: Likewise.
923 * alpha-mdebug-tdep.c: Likewise.
924 * alpha-nat.c: Likewise.
925 * alpha-osf1-tdep.c: Likewise.
926 * alpha-tdep.c: Likewise.
927 * alphanbsd-tdep.c: Likewise.
928 * amd64-dicos-tdep.c: Likewise.
929 * amd64-linux-tdep.c: Likewise.
930 * amd64-nat.c: Likewise.
931 * amd64-sol2-tdep.c: Likewise.
932 * amd64fbsd-tdep.c: Likewise.
933 * amd64obsd-tdep.c: Likewise.
934 * arch-utils.c: Likewise.
935 * arm-linux-nat.c: Likewise.
936 * arm-linux-tdep.c: Likewise.
937 * arm-tdep.c: Likewise.
938 * arm-wince-tdep.c: Likewise.
939 * armbsd-tdep.c: Likewise.
940 * armnbsd-nat.c: Likewise.
941 * armnbsd-tdep.c: Likewise.
942 * armobsd-tdep.c: Likewise.
943 * avr-tdep.c: Likewise.
944 * ax-gdb.c: Likewise.
945 * ax-general.c: Likewise.
946 * bcache.c: Likewise.
947 * bfin-tdep.c: Likewise.
948 * breakpoint.c: Likewise.
949 * build-id.c: Likewise.
950 * buildsym.c: Likewise.
952 * c-lang.c: Likewise.
953 * c-typeprint.c: Likewise.
954 * c-valprint.c: Likewise.
955 * charset.c: Likewise.
956 * cli-out.c: Likewise.
957 * cli/cli-cmds.c: Likewise.
958 * cli/cli-decode.c: Likewise.
959 * cli/cli-dump.c: Likewise.
960 * cli/cli-interp.c: Likewise.
961 * cli/cli-logging.c: Likewise.
962 * cli/cli-script.c: Likewise.
963 * cli/cli-setshow.c: Likewise.
964 * cli/cli-utils.c: Likewise.
965 * coffread.c: Likewise.
966 * common/agent.c: Likewise.
967 * common/buffer.c: Likewise.
968 * common/buffer.h: Likewise.
969 * common/common-utils.c: Likewise.
970 * common/filestuff.c: Likewise.
971 * common/filestuff.c: Likewise.
972 * common/format.c: Likewise.
973 * common/print-utils.c: Likewise.
974 * common/rsp-low.c: Likewise.
975 * common/signals.c: Likewise.
976 * common/vec.h: Likewise.
977 * common/xml-utils.c: Likewise.
978 * core-regset.c: Likewise.
979 * corefile.c: Likewise.
980 * corelow.c: Likewise.
981 * cp-abi.c: Likewise.
982 * cp-name-parser.y: Likewise.
983 * cp-support.c: Likewise.
984 * cp-valprint.c: Likewise.
985 * cris-tdep.c: Likewise.
987 * darwin-nat.c: Likewise.
988 * dbxread.c: Likewise.
989 * dcache.c: Likewise.
990 * demangle.c: Likewise.
991 * dicos-tdep.c: Likewise.
992 * disasm.c: Likewise.
993 * doublest.c: Likewise.
995 * dummy-frame.c: Likewise.
996 * dwarf2-frame.c: Likewise.
997 * dwarf2loc.c: Likewise.
998 * dwarf2read.c: Likewise.
999 * elfread.c: Likewise.
1000 * environ.c: Likewise.
1002 * event-loop.c: Likewise.
1003 * exceptions.c: Likewise.
1005 * expprint.c: Likewise.
1006 * f-exp.y: Likewise.
1007 * f-lang.c: Likewise.
1008 * f-typeprint.c: Likewise.
1009 * f-valprint.c: Likewise.
1010 * fbsd-nat.c: Likewise.
1011 * findcmd.c: Likewise.
1012 * findvar.c: Likewise.
1013 * fork-child.c: Likewise.
1014 * frame.c: Likewise.
1015 * frv-linux-tdep.c: Likewise.
1016 * frv-tdep.c: Likewise.
1018 * gdb_bfd.c: Likewise.
1019 * gdbarch.c: Likewise.
1020 * gdbarch.sh: Likewise.
1021 * gdbtypes.c: Likewise.
1022 * gnu-nat.c: Likewise.
1023 * gnu-v2-abi.c: Likewise.
1024 * gnu-v3-abi.c: Likewise.
1025 * go-exp.y: Likewise.
1026 * go-lang.c: Likewise.
1027 * go32-nat.c: Likewise.
1028 * guile/guile.c: Likewise.
1029 * guile/scm-auto-load.c: Likewise.
1030 * hppa-hpux-tdep.c: Likewise.
1031 * hppa-linux-nat.c: Likewise.
1032 * hppanbsd-tdep.c: Likewise.
1033 * hppaobsd-tdep.c: Likewise.
1034 * i386-cygwin-tdep.c: Likewise.
1035 * i386-dicos-tdep.c: Likewise.
1036 * i386-linux-tdep.c: Likewise.
1037 * i386-nto-tdep.c: Likewise.
1038 * i386-sol2-tdep.c: Likewise.
1039 * i386-tdep.c: Likewise.
1040 * i386bsd-tdep.c: Likewise.
1041 * i386gnu-nat.c: Likewise.
1042 * i386nbsd-tdep.c: Likewise.
1043 * i386obsd-tdep.c: Likewise.
1044 * i387-tdep.c: Likewise.
1045 * ia64-libunwind-tdep.c: Likewise.
1046 * ia64-linux-nat.c: Likewise.
1047 * inf-child.c: Likewise.
1048 * inf-ptrace.c: Likewise.
1049 * inf-ttrace.c: Likewise.
1050 * infcall.c: Likewise.
1051 * infcmd.c: Likewise.
1052 * inflow.c: Likewise.
1053 * infrun.c: Likewise.
1054 * interps.c: Likewise.
1055 * iq2000-tdep.c: Likewise.
1056 * irix5-nat.c: Likewise.
1057 * jv-exp.y: Likewise.
1058 * jv-lang.c: Likewise.
1059 * jv-typeprint.c: Likewise.
1060 * jv-valprint.c: Likewise.
1061 * language.c: Likewise.
1062 * linux-fork.c: Likewise.
1063 * linux-nat.c: Likewise.
1064 * lm32-tdep.c: Likewise.
1065 * m2-exp.y: Likewise.
1066 * m2-typeprint.c: Likewise.
1067 * m32c-tdep.c: Likewise.
1068 * m32r-linux-nat.c: Likewise.
1069 * m32r-linux-tdep.c: Likewise.
1070 * m32r-rom.c: Likewise.
1071 * m32r-tdep.c: Likewise.
1072 * m68hc11-tdep.c: Likewise.
1073 * m68k-tdep.c: Likewise.
1074 * m68kbsd-tdep.c: Likewise.
1075 * m68klinux-nat.c: Likewise.
1076 * m68klinux-tdep.c: Likewise.
1077 * m88k-tdep.c: Likewise.
1078 * machoread.c: Likewise.
1079 * macrocmd.c: Likewise.
1081 * mdebugread.c: Likewise.
1082 * mem-break.c: Likewise.
1083 * memattr.c: Likewise.
1084 * memory-map.c: Likewise.
1085 * mep-tdep.c: Likewise.
1086 * mi/mi-cmd-break.c: Likewise.
1087 * mi/mi-cmd-disas.c: Likewise.
1088 * mi/mi-cmd-env.c: Likewise.
1089 * mi/mi-cmd-stack.c: Likewise.
1090 * mi/mi-cmd-var.c: Likewise.
1091 * mi/mi-cmds.c: Likewise.
1092 * mi/mi-console.c: Likewise.
1093 * mi/mi-getopt.c: Likewise.
1094 * mi/mi-interp.c: Likewise.
1095 * mi/mi-main.c: Likewise.
1096 * mi/mi-parse.c: Likewise.
1097 * microblaze-rom.c: Likewise.
1098 * microblaze-tdep.c: Likewise.
1099 * mingw-hdep.c: Likewise.
1100 * minidebug.c: Likewise.
1101 * minsyms.c: Likewise.
1102 * mips-irix-tdep.c: Likewise.
1103 * mips-linux-tdep.c: Likewise.
1104 * mips-tdep.c: Likewise.
1105 * mips64obsd-tdep.c: Likewise.
1106 * mipsnbsd-tdep.c: Likewise.
1107 * mipsread.c: Likewise.
1108 * mn10300-linux-tdep.c: Likewise.
1109 * mn10300-tdep.c: Likewise.
1110 * monitor.c: Likewise.
1111 * moxie-tdep.c: Likewise.
1112 * mt-tdep.c: Likewise.
1113 * nat/linux-btrace.c: Likewise.
1114 * nat/linux-osdata.c: Likewise.
1115 * nat/linux-procfs.c: Likewise.
1116 * nat/linux-ptrace.c: Likewise.
1117 * nat/linux-waitpid.c: Likewise.
1118 * nbsd-tdep.c: Likewise.
1119 * nios2-linux-tdep.c: Likewise.
1120 * nto-procfs.c: Likewise.
1121 * nto-tdep.c: Likewise.
1122 * objc-lang.c: Likewise.
1123 * objfiles.c: Likewise.
1124 * opencl-lang.c: Likewise.
1125 * osabi.c: Likewise.
1126 * osdata.c: Likewise.
1127 * p-exp.y: Likewise.
1128 * p-lang.c: Likewise.
1129 * p-typeprint.c: Likewise.
1130 * parse.c: Likewise.
1131 * posix-hdep.c: Likewise.
1132 * ppc-linux-nat.c: Likewise.
1133 * ppc-sysv-tdep.c: Likewise.
1134 * ppcfbsd-tdep.c: Likewise.
1135 * ppcnbsd-tdep.c: Likewise.
1136 * ppcobsd-tdep.c: Likewise.
1137 * printcmd.c: Likewise.
1138 * procfs.c: Likewise.
1139 * prologue-value.c: Likewise.
1140 * python/py-auto-load.c: Likewise.
1141 * python/py-gdb-readline.c: Likewise.
1142 * ravenscar-thread.c: Likewise.
1143 * regcache.c: Likewise.
1144 * registry.c: Likewise.
1145 * remote-fileio.c: Likewise.
1146 * remote-m32r-sdi.c: Likewise.
1147 * remote-mips.c: Likewise.
1148 * remote-notif.c: Likewise.
1149 * remote-sim.c: Likewise.
1150 * remote.c: Likewise.
1151 * reverse.c: Likewise.
1152 * rs6000-aix-tdep.c: Likewise.
1153 * ser-base.c: Likewise.
1154 * ser-go32.c: Likewise.
1155 * ser-mingw.c: Likewise.
1156 * ser-pipe.c: Likewise.
1157 * ser-tcp.c: Likewise.
1158 * ser-unix.c: Likewise.
1159 * serial.c: Likewise.
1160 * sh-tdep.c: Likewise.
1161 * sh64-tdep.c: Likewise.
1162 * shnbsd-tdep.c: Likewise.
1164 * sol-thread.c: Likewise.
1165 * solib-dsbt.c: Likewise.
1166 * solib-frv.c: Likewise.
1167 * solib-osf.c: Likewise.
1168 * solib-som.c: Likewise.
1169 * solib-spu.c: Likewise.
1170 * solib-target.c: Likewise.
1171 * solib.c: Likewise.
1172 * somread.c: Likewise.
1173 * source.c: Likewise.
1174 * sparc-nat.c: Likewise.
1175 * sparc-sol2-tdep.c: Likewise.
1176 * sparc-tdep.c: Likewise.
1177 * sparc64-tdep.c: Likewise.
1178 * sparc64fbsd-tdep.c: Likewise.
1179 * sparc64nbsd-tdep.c: Likewise.
1180 * sparcnbsd-tdep.c: Likewise.
1181 * spu-linux-nat.c: Likewise.
1182 * spu-multiarch.c: Likewise.
1183 * spu-tdep.c: Likewise.
1184 * stabsread.c: Likewise.
1185 * stack.c: Likewise.
1186 * std-regs.c: Likewise.
1187 * symfile.c: Likewise.
1188 * symmisc.c: Likewise.
1189 * symtab.c: Likewise.
1190 * target.c: Likewise.
1191 * thread.c: Likewise.
1192 * tilegx-linux-nat.c: Likewise.
1193 * tilegx-tdep.c: Likewise.
1195 * tracepoint.c: Likewise.
1196 * tui/tui-command.c: Likewise.
1197 * tui/tui-data.c: Likewise.
1198 * tui/tui-disasm.c: Likewise.
1199 * tui/tui-file.c: Likewise.
1200 * tui/tui-layout.c: Likewise.
1201 * tui/tui-out.c: Likewise.
1202 * tui/tui-regs.c: Likewise.
1203 * tui/tui-source.c: Likewise.
1204 * tui/tui-stack.c: Likewise.
1205 * tui/tui-win.c: Likewise.
1206 * tui/tui-windata.c: Likewise.
1207 * tui/tui-winsource.c: Likewise.
1208 * typeprint.c: Likewise.
1209 * ui-file.c: Likewise.
1210 * ui-out.c: Likewise.
1211 * user-regs.c: Likewise.
1212 * utils.c: Likewise.
1213 * v850-tdep.c: Likewise.
1214 * valarith.c: Likewise.
1215 * valops.c: Likewise.
1216 * valprint.c: Likewise.
1217 * value.c: Likewise.
1218 * varobj.c: Likewise.
1219 * vax-tdep.c: Likewise.
1220 * vaxnbsd-tdep.c: Likewise.
1221 * vaxobsd-tdep.c: Likewise.
1222 * windows-nat.c: Likewise.
1223 * xcoffread.c: Likewise.
1224 * xml-support.c: Likewise.
1225 * xstormy16-tdep.c: Likewise.
1226 * xtensa-linux-nat.c: Likewise.
1228 2014-08-07 Gary Benson <gbenson@redhat.com>
1230 * common/common-defs.h: Include gdb_assert.h.
1231 * aarch64-tdep.c: Do not include gdb_assert.h.
1232 * addrmap.c: Likewise.
1233 * aix-thread.c: Likewise.
1234 * alpha-linux-tdep.c: Likewise.
1235 * alpha-mdebug-tdep.c: Likewise.
1236 * alphanbsd-tdep.c: Likewise.
1237 * amd64-nat.c: Likewise.
1238 * amd64-tdep.c: Likewise.
1239 * amd64bsd-nat.c: Likewise.
1240 * amd64fbsd-nat.c: Likewise.
1241 * amd64fbsd-tdep.c: Likewise.
1242 * amd64nbsd-nat.c: Likewise.
1243 * amd64nbsd-tdep.c: Likewise.
1244 * amd64obsd-nat.c: Likewise.
1245 * amd64obsd-tdep.c: Likewise.
1246 * arch-utils.c: Likewise.
1247 * arm-tdep.c: Likewise.
1248 * armbsd-tdep.c: Likewise.
1250 * bcache.c: Likewise.
1251 * bfin-tdep.c: Likewise.
1252 * blockframe.c: Likewise.
1253 * breakpoint.c: Likewise.
1254 * bsd-kvm.c: Likewise.
1255 * bsd-uthread.c: Likewise.
1256 * buildsym.c: Likewise.
1257 * c-exp.y: Likewise.
1258 * c-lang.c: Likewise.
1259 * charset.c: Likewise.
1260 * cleanups.c: Likewise.
1261 * cli-out.c: Likewise.
1262 * cli/cli-decode.c: Likewise.
1263 * cli/cli-dump.c: Likewise.
1264 * cli/cli-logging.c: Likewise.
1265 * cli/cli-script.c: Likewise.
1266 * cli/cli-utils.c: Likewise.
1267 * coffread.c: Likewise.
1268 * common/common-utils.c: Likewise.
1269 * common/queue.h: Likewise.
1270 * common/signals.c: Likewise.
1271 * common/vec.h: Likewise.
1272 * complaints.c: Likewise.
1273 * completer.c: Likewise.
1274 * corelow.c: Likewise.
1275 * cp-abi.c: Likewise.
1276 * cp-name-parser.y: Likewise.
1277 * cp-namespace.c: Likewise.
1278 * cp-support.c: Likewise.
1279 * cris-tdep.c: Likewise.
1280 * dbxread.c: Likewise.
1281 * dictionary.c: Likewise.
1282 * doublest.c: Likewise.
1283 * dsrec.c: Likewise.
1284 * dummy-frame.c: Likewise.
1285 * dwarf2-frame-tailcall.c: Likewise.
1286 * dwarf2-frame.c: Likewise.
1287 * dwarf2expr.c: Likewise.
1288 * dwarf2loc.c: Likewise.
1289 * dwarf2read.c: Likewise.
1291 * event-loop.c: Likewise.
1292 * exceptions.c: Likewise.
1293 * expprint.c: Likewise.
1294 * f-valprint.c: Likewise.
1295 * fbsd-nat.c: Likewise.
1296 * findvar.c: Likewise.
1297 * frame-unwind.c: Likewise.
1298 * frame.c: Likewise.
1299 * frv-tdep.c: Likewise.
1300 * gcore.c: Likewise.
1301 * gdb-dlfcn.c: Likewise.
1302 * gdb_bfd.c: Likewise.
1303 * gdbarch.c: Likewise.
1304 * gdbarch.sh: Likewise.
1305 * gdbtypes.c: Likewise.
1306 * gnu-nat.c: Likewise.
1307 * gnu-v3-abi.c: Likewise.
1308 * go-lang.c: Likewise.
1309 * guile/scm-exception.c: Likewise.
1310 * guile/scm-gsmob.c: Likewise.
1311 * guile/scm-lazy-string.c: Likewise.
1312 * guile/scm-math.c: Likewise.
1313 * guile/scm-pretty-print.c: Likewise.
1314 * guile/scm-safe-call.c: Likewise.
1315 * guile/scm-utils.c: Likewise.
1316 * guile/scm-value.c: Likewise.
1317 * h8300-tdep.c: Likewise.
1318 * hppa-hpux-nat.c: Likewise.
1319 * hppa-tdep.c: Likewise.
1320 * hppanbsd-tdep.c: Likewise.
1321 * hppaobsd-tdep.c: Likewise.
1322 * i386-darwin-nat.c: Likewise.
1323 * i386-darwin-tdep.c: Likewise.
1324 * i386-nto-tdep.c: Likewise.
1325 * i386-tdep.c: Likewise.
1326 * i386bsd-nat.c: Likewise.
1327 * i386fbsd-tdep.c: Likewise.
1328 * i386gnu-nat.c: Likewise.
1329 * i386nbsd-tdep.c: Likewise.
1330 * i386obsd-tdep.c: Likewise.
1331 * i387-tdep.c: Likewise.
1332 * ia64-libunwind-tdep.c: Likewise.
1333 * ia64-tdep.c: Likewise.
1334 * inf-ptrace.c: Likewise.
1335 * inf-ttrace.c: Likewise.
1336 * infcall.c: Likewise.
1337 * infcmd.c: Likewise.
1338 * infrun.c: Likewise.
1339 * inline-frame.c: Likewise.
1340 * interps.c: Likewise.
1341 * jv-lang.c: Likewise.
1342 * jv-typeprint.c: Likewise.
1343 * linux-fork.c: Likewise.
1344 * linux-nat.c: Likewise.
1345 * linux-thread-db.c: Likewise.
1346 * m32c-tdep.c: Likewise.
1347 * m32r-linux-nat.c: Likewise.
1348 * m32r-tdep.c: Likewise.
1349 * m68k-tdep.c: Likewise.
1350 * m68kbsd-nat.c: Likewise.
1351 * m68kbsd-tdep.c: Likewise.
1352 * m88k-tdep.c: Likewise.
1353 * machoread.c: Likewise.
1354 * macroexp.c: Likewise.
1355 * macrotab.c: Likewise.
1356 * maint.c: Likewise.
1357 * mdebugread.c: Likewise.
1358 * memory-map.c: Likewise.
1359 * mep-tdep.c: Likewise.
1360 * mi/mi-common.c: Likewise.
1361 * microblaze-tdep.c: Likewise.
1362 * mingw-hdep.c: Likewise.
1363 * mips-linux-nat.c: Likewise.
1364 * mips-linux-tdep.c: Likewise.
1365 * mips-tdep.c: Likewise.
1366 * mips64obsd-tdep.c: Likewise.
1367 * mipsnbsd-tdep.c: Likewise.
1368 * mn10300-linux-tdep.c: Likewise.
1369 * mn10300-tdep.c: Likewise.
1370 * moxie-tdep.c: Likewise.
1371 * mt-tdep.c: Likewise.
1372 * nat/linux-btrace.c: Likewise.
1373 * nat/linux-osdata.c: Likewise.
1374 * nat/linux-ptrace.c: Likewise.
1375 * nat/mips-linux-watch.c: Likewise.
1376 * nios2-linux-tdep.c: Likewise.
1377 * nios2-tdep.c: Likewise.
1378 * objc-lang.c: Likewise.
1379 * objfiles.c: Likewise.
1380 * obsd-nat.c: Likewise.
1381 * opencl-lang.c: Likewise.
1382 * osabi.c: Likewise.
1383 * parse.c: Likewise.
1384 * ppc-linux-nat.c: Likewise.
1385 * ppc-sysv-tdep.c: Likewise.
1386 * ppcfbsd-nat.c: Likewise.
1387 * ppcfbsd-tdep.c: Likewise.
1388 * ppcnbsd-nat.c: Likewise.
1389 * ppcnbsd-tdep.c: Likewise.
1390 * ppcobsd-nat.c: Likewise.
1391 * ppcobsd-tdep.c: Likewise.
1392 * printcmd.c: Likewise.
1393 * procfs.c: Likewise.
1394 * prologue-value.c: Likewise.
1395 * psymtab.c: Likewise.
1396 * python/py-lazy-string.c: Likewise.
1397 * python/py-value.c: Likewise.
1398 * regcache.c: Likewise.
1399 * reggroups.c: Likewise.
1400 * registry.c: Likewise.
1401 * remote-sim.c: Likewise.
1402 * remote.c: Likewise.
1403 * rs6000-aix-tdep.c: Likewise.
1404 * rs6000-tdep.c: Likewise.
1405 * s390-linux-tdep.c: Likewise.
1406 * score-tdep.c: Likewise.
1407 * ser-base.c: Likewise.
1408 * ser-mingw.c: Likewise.
1409 * sh-tdep.c: Likewise.
1410 * sh64-tdep.c: Likewise.
1411 * solib-darwin.c: Likewise.
1412 * solib-spu.c: Likewise.
1413 * solib-svr4.c: Likewise.
1414 * source.c: Likewise.
1415 * sparc-nat.c: Likewise.
1416 * sparc-sol2-tdep.c: Likewise.
1417 * sparc-tdep.c: Likewise.
1418 * sparc64-sol2-tdep.c: Likewise.
1419 * sparc64-tdep.c: Likewise.
1420 * sparc64fbsd-tdep.c: Likewise.
1421 * sparc64nbsd-tdep.c: Likewise.
1422 * sparc64obsd-tdep.c: Likewise.
1423 * sparcnbsd-tdep.c: Likewise.
1424 * sparcobsd-tdep.c: Likewise.
1425 * spu-multiarch.c: Likewise.
1426 * spu-tdep.c: Likewise.
1427 * stabsread.c: Likewise.
1428 * stack.c: Likewise.
1429 * symfile.c: Likewise.
1430 * symtab.c: Likewise.
1431 * target-descriptions.c: Likewise.
1432 * target-memory.c: Likewise.
1433 * target.c: Likewise.
1434 * tic6x-linux-tdep.c: Likewise.
1435 * tic6x-tdep.c: Likewise.
1436 * tilegx-linux-nat.c: Likewise.
1437 * tilegx-tdep.c: Likewise.
1439 * tramp-frame.c: Likewise.
1440 * tui/tui-out.c: Likewise.
1441 * tui/tui-winsource.c: Likewise.
1442 * ui-out.c: Likewise.
1443 * user-regs.c: Likewise.
1444 * utils.c: Likewise.
1445 * v850-tdep.c: Likewise.
1446 * valops.c: Likewise.
1447 * value.c: Likewise.
1448 * varobj.c: Likewise.
1449 * vax-nat.c: Likewise.
1450 * xml-syscall.c: Likewise.
1451 * xml-tdesc.c: Likewise.
1452 * xstormy16-tdep.c: Likewise.
1453 * xtensa-linux-nat.c: Likewise.
1454 * xtensa-tdep.c: Likewise.
1456 2014-08-07 Gary Benson <gbenson@redhat.com>
1458 * common/common-defs.h: Include common-utils.h.
1459 * defs.h: Do not include common-utils.h.
1460 * common/gdb_assert.h: Likewise.
1461 * darwin-nat.h: Likewise.
1462 * nat/linux-btrace.c: Likewise.
1463 * target/waitstatus.h: Likewise.
1465 2014-08-07 Gary Benson <gbenson@redhat.com>
1467 * common/common-defs.h: Include ptid.h.
1468 * defs.h: Do not include ptid.h.
1469 * inferior.h: Likewise.
1470 * infrun.h: Likewise.
1471 * nat/linux-btrace.h: Likewise.
1472 * nat/linux-osdata.h: Likewise.
1473 * target/waitstatus.h: Likewise.
1475 2014-08-07 Gary Benson <gbenson@redhat.com>
1477 * common/common-defs.h: Include gdb_locale.h.
1478 * defs.h: Do not include gdb_locale.h.
1480 2014-08-07 Gary Benson <gbenson@redhat.com>
1482 * common/common-defs.h: Include gdb/signals.h.
1483 * defs.h: Do not include gdb/signals.h.
1485 2014-08-07 Gary Benson <gbenson@redhat.com>
1487 * common/common-defs.h: Include pathmax.h.
1488 * defs.h: Do not include pathmax.h.
1490 2014-08-07 Gary Benson <gbenson@redhat.com>
1492 * common/common-defs.h: Include libiberty.h.
1493 * defs.h: Do not include libiberty.h.
1494 * common/queue.h: Likewise.
1495 * cp-name-parser.y: Likewise.
1496 * mi/mi-cmd-catch.c: Likewise.
1497 * python/python.c: Likewise.
1499 2014-08-07 Gary Benson <gbenson@redhat.com>
1501 * common/common-defs.h: Include ansidecl.h.
1502 * defs.h: Do not include ansidecl.h.
1503 * common/buffer.h: Likewise.
1504 * common/common-utils.h: Likewise.
1506 2014-08-07 Gary Benson <gbenson@redhat.com>
1508 * common/common-defs.h: Include stddef.h.
1509 * defs.h: Do not include stddef.h.
1510 * common/common-utils.h: Likewise.
1511 * amd64fbsd-nat.c: Likewise.
1512 * bcache.c: Likewise.
1513 * charset.c: Likewise.
1514 * common/buffer.h: Likewise.
1515 * common/vec.h: Likewise.
1516 * i386bsd-nat.c: Likewise.
1517 * nat/linux-btrace.h: Likewise.
1518 * ppcfbsd-nat.c: Likewise.
1519 * ppcnbsd-tdep.h: Likewise.
1520 * ppcobsd-nat.c: Likewise.
1521 * ppcobsd-tdep.h: Likewise.
1522 * python/py-gdb-readline.c: Likewise.
1524 2014-08-07 Gary Benson <gbenson@redhat.com>
1526 * common/common-defs.h: Include stdarg.h.
1527 * defs.h: Do not include stdarg.h.
1528 * ada-lang.c: Likewise.
1529 * common/common-utils.h: Likewise.
1530 * guile/scm-string.c: Likewise.
1531 * guile/scm-utils.c: Likewise.
1532 * m32c-tdep.c: Likewise.
1534 2014-08-07 Gary Benson <gbenson@redhat.com>
1536 * common/common-defs.h: Include stdlib.h.
1537 * defs.h: Do not include stdlib.h.
1538 * addrmap.c: Likewise.
1539 * bcache.c: Likewise.
1540 * common/buffer.c: Likewise.
1541 * common/common-utils.c: Likewise.
1542 * cp-name-parser.y: Likewise.
1543 * go32-nat.c: Likewise.
1544 * mn10300-linux-tdep.c: Likewise.
1545 * nat/linux-osdata.c: Likewise.
1546 * tui/tui.c: Likewise.
1547 * windows-nat.c: Likewise.
1549 2014-08-07 Gary Benson <gbenson@redhat.com>
1551 * common/common-defs.h: Include stdio.h.
1552 * defs.h: Do not include stdio.h.
1553 * ada-lang.c: Likewise.
1554 * common/buffer.c: Likewise.
1555 * common/common-utils.c: Likewise.
1556 * cp-name-parser.y: Likewise.
1557 * gnu-nat.c: Likewise.
1558 * go32-nat.c: Likewise.
1559 * i386gnu-nat.c: Likewise.
1560 * proc-api.c: Likewise.
1561 * proc-events.c: Likewise.
1562 * proc-flags.c: Likewise.
1563 * proc-why.c: Likewise.
1564 * python/python-internal.h: Likewise.
1565 * target-memory.c: Likewise.
1566 * tui/tui-io.c: Likewise.
1567 * tui/tui.c: Likewise.
1569 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1571 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1572 (scan_dyntag_auxv): Same.
1574 2014-08-06 Yao Qi <yao@codesourcery.com>
1576 * amd64-linux-nat.c: Remove duplicated include
1578 * i386-linux-nat.c: Likewise.
1580 2014-08-06 Yao Qi <yao@codesourcery.com>
1582 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1583 operand" with "Special opcode" in comments.
1585 2014-08-05 Gary Benson <gbenson@redhat.com>
1587 * interps.c (initialize_interps): Remove prototype.
1588 (interpreter_initialized): Remove static global.
1589 (interp_add): Do not call initialize_interps.
1590 (initialize_interps): Remove function.
1592 2014-08-05 Gary Benson <gbenson@redhat.com>
1594 * utils.c (vwarning): Remove spurious va_end.
1596 2014-08-05 Alan Modra <amodra@gmail.com>
1598 * charset.c (convert_between_encodings): Cast result of obstack_base.
1599 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1600 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1601 (read_unwind_info): Use size_t for some locals.
1602 * jit.c (finalize_symtab): Likewise.
1603 * utils.c (hashtab_obstack_allocate): Likewise.
1604 * symmisc.c (print_objfile_statistics): Update format strings.
1606 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1608 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1609 (Changes in GDB 7.8): ... here.
1611 2014-08-04 Tom Tromey <tromey@redhat.com>
1613 * target.c (set_targetdebug): New function.
1614 (initialize_targets): Pass set_targetdebug when creating "set
1617 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1619 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1620 if detecting a variable-sized field that is not the last field.
1621 Fix struct type length computation.
1623 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1625 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1628 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1630 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1631 Remove "+ 8" offset in computation of CHAIN_VMA.
1633 2014-07-31 Doug Evans <dje@google.com>
1635 * inflow.c (child_terminal_inferior): Add comment.
1636 (child_terminal_ours_for_output): Add comment.
1637 (child_terminal_ours): Add comment.
1638 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1639 (linux_nat_terminal_ours): Add comment.
1641 2014-07-31 Gary Benson <gbenson@redhat.com>
1643 * common/btrace-common.h: Do not include defs.h or server.h.
1644 * nat/mips-linux-watch.h: Likewise.
1645 * gdb-dlfcn.h: Do not include defs.h.
1646 * tracefile.h: Likewise.
1648 2014-07-30 Roland McGrath <mcgrathr@google.com>
1650 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1652 2014-07-30 Tom Tromey <tromey@redhat.com>
1654 * bsd-kvm.c (bsd_kvm_open): Constify.
1655 * corelow.c (core_open): Constify.
1656 * ctf.c (ctf_open): Constify.
1657 * dbug-rom.c (dbug_open): Constify.
1658 * exec.c (exec_open): Constify.
1659 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1660 * microblaze-rom.c (picobug_open): Constify.
1661 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1663 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1664 * record-btrace.c (record_btrace_open): Constify.
1665 * record-full.c (record_full_core_open_1, record_full_open_1)
1666 (record_full_open): Constify.
1667 * remote-m32r-sdi.c (m32r_open): Constify.
1668 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1669 (rockhopper_open, lsi_open): Constify.
1670 * remote-sim.c (gdbsim_open): Constify.
1671 * remote.c (remote_open, extended_remote_open, remote_open_1):
1673 * target.h (struct target_ops) <to_open>: Make "arg" const.
1674 * tracefile-tfile.c (tfile_open): Constify.
1676 2014-07-30 Tom Tromey <tromey@redhat.com>
1678 * breakpoint.c (map_breakpoint_numbers): Update.
1679 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1680 (get_number_const): New function.
1681 (get_number): Rewrite using get_number_const.
1682 (init_number_or_range): Make "string" const.
1683 (number_is_in_list): Make "list" const.
1684 * cli/cli-utils.h (get_number_const): Declare.
1685 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1686 (init_number_or_range, number_is_in_list): Update.
1687 * printcmd.c (map_display_numbers): Update.
1688 * value.c (value_from_history_ref): Constify.
1689 * value.h (value_from_history_ref): Update.
1691 2014-07-30 Tom Tromey <tromey@redhat.com>
1693 * corefile.c (hook_type, call_extra_exec_file_hooks)
1694 (specify_exec_file_hook): Constify.
1695 * exec.c (exec_file_attach): Make "filename" const.
1696 * gdbcore.h (deprecated_exec_file_display_hook)
1697 (specify_exec_file_hook, exec_file_attach): Constify.
1698 * main.c (captured_main): Use catch_command_errors_const.
1700 2014-07-30 Tom Tromey <tromey@redhat.com>
1702 * target.c (open_target): New function.
1703 (add_target_with_completer, add_deprecated_target_alias): Use
1704 set_cmd_sfunc, set_cmd_context.
1705 (debug_to_open): Remove.
1706 (setup_target_debug): Update.
1708 2014-07-30 Yao Qi <yao@codesourcery.com>
1710 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1712 * parse.c (exp_iterate): Update comments.
1714 2014-07-30 Gary Benson <gbenson@redhat.com>
1716 * common/common-defs.h: New file.
1717 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1718 * defs.h: Include common-defs.h.
1719 Do not include config.h or build-gnulib/config.h.
1721 2014-07-30 Gary Benson <gbenson@redhat.com>
1723 * common/common-utils.h: Do not include config.h.
1724 * nat/linux-btrace.h: Likewise.
1726 2014-07-30 Gary Benson <gbenson@redhat.com>
1728 * btrace.c: Include defs.h.
1729 * common/ptid.c: Include defs.h or server.h as appropriate.
1730 * nat/mips-linux-watch.c: Likewise.
1732 2014-07-29 Tom Tromey <tromey@redhat.com>
1734 * target.c (target_is_pushed): Simplify.
1736 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1740 2014-07-29 Yao Qi <yao@codesourcery.com>
1743 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1745 2014-07-28 Doug Evans <xdje42@gmail.com>
1748 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1749 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1752 2014-07-28 Will Newton <will.newton@linaro.org>
1754 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1755 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1756 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1757 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1758 (THUMB2_EABI_SYSCALL): Likewise.
1759 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1761 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1762 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1764 2014-07-27 Doug Evans <xdje42@gmail.com>
1766 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1768 2014-07-27 Doug Evans <xdje42@gmail.com>
1770 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1772 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1773 Doug Evans <xdje42@gmail.com>
1776 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1777 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1778 * configure.ac: Try to use guild to compile an scm file, if it fails
1779 then disable guile support.
1780 * configure: Regenerate.
1781 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1783 (GUILE_COMPILED_FILES): New variable.
1784 (GUILE_FILES) Update.
1785 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1786 (stamp-guile): Compile scm files.
1787 * guile/guile.c (boot_guile_support): New function.
1788 (standard_throw_args_p): New function.
1789 (print_standard_throw_error, print_throw_error): New functions.
1790 (handle_boot_error): New function.
1791 (initialize_scheme_side): Rewrite to call boot_guile_support.
1792 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1793 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1795 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1796 Doug Evans <xdje42@gmail.com>
1799 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1800 * guile/lib/gdb/support.scm: New file.
1801 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1802 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1804 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1806 (%assert-type): Ditto, and renamed to assert-type.
1807 (%exception-print-style): Delete.
1809 2014-07-26 Doug Evans <xdje42@gmail.com>
1812 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1813 * configure: Regenerate.
1814 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1816 (PYTHON_FILES): New variable.
1817 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1818 (GUILE_FILES): New variable.
1819 (stamp-python, install-python, uninstall-python): Handle empty
1821 (stamp-guile, install-guile, uninstall-guile): Ditto.
1823 2014-07-26 Doug Evans <xdje42@gmail.com>
1826 * guile/lib/gdb.scm (pretty-printers): Export.
1827 (set-pretty-printers!): Export.
1828 * guile/lib/gdb/printing.scm (gdb module): Update.
1829 (prepend-pretty-printer!, append-pretty-printer!): Update.
1830 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1831 (pretty_printer_list_var): Delete.
1832 (pretty_printer_list): New static global.
1833 (gdbscm_pretty_printers): New function.
1834 (gdbscm_set_pretty_printers_x): New function.
1835 (ppscm_find_pretty_printer_from_gdb): Update.
1836 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1837 (gdbscm_initialize_pretty_printers): Update.
1839 2014-07-26 Doug Evans <xdje42@gmail.com>
1842 * configure.ac: Add check for header gc/gc.h.
1843 Add check for function setenv.
1844 * configure: Regenerate.
1845 * config.in: Regenerate.
1846 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1848 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1850 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1851 variation in gdbarch matching.
1853 2014-07-25 Tom Tromey <tromey@redhat.com>
1855 * exec.c (using_exec_ops): Remove.
1856 (exec_close_1): Update. Remove extraneous block, reindent.
1857 (add_target_sections): Use target_is_pushed.
1859 2014-07-25 Pedro Alves <palves@redhat.com>
1861 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1862 * monitor.c (monitor_create_inferior): Likewise.
1863 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1864 * remote-sim.c (gdbsim_create_inferior): Likewise.
1865 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1866 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1867 * windows-nat.c (do_initial_windows_stuff): Likewise.
1869 2014-07-25 Pedro Alves <palves@redhat.com>
1871 * NEWS: Mention signal passing and "signal" command changes.
1872 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1874 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1876 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1877 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1878 (jump_command): Adjust clear_proceed_status call.
1879 (signal_command): Warn if other thread that are resumed have
1880 signals that will be delivered. Adjust clear_proceed_status call.
1881 (until_next_command, finish_command)
1882 (proceed_after_attach_callback, attach_command_post_wait)
1883 (attach_command): Adjust clear_proceed_status call.
1884 * infrun.c (proceed_after_vfork_done): Likewise.
1885 (proceed_after_attach_callback): Adjust comment.
1886 (clear_proceed_status_thread): Clear stop_signal if not in pass
1888 (clear_proceed_status_callback): Delete.
1889 (clear_proceed_status): New 'step' parameter. Only clear the
1890 proceed status of threads the command being prepared is about to
1892 (proceed): If passed in an explicit signal, override stop_signal
1893 with it. Don't pass the last stop signal to the thread we're
1895 (init_wait_for_inferior): Adjust clear_proceed_status call.
1896 (switch_back_to_stepped_thread): Clear the signal if it should not
1898 * infrun.h (clear_proceed_status): New 'step' parameter.
1899 (user_visible_resume_ptid): Add comment.
1900 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1901 signal is in pass state.
1902 * remote.c (append_pending_thread_resumptions): Likewise.
1903 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1905 2014-07-25 Tom Tromey <tromey@redhat.com>
1907 * target.h (target_stopped_data_address)
1908 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1911 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1913 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1915 (avr_pointer_to_address): Likewise.
1917 2014-07-24 Tom Tromey <tromey@redhat.com>
1919 * monitor.c (compile_pattern): Update.
1920 * target.h (struct target_ops) <to_shortname, to_longname,
1923 2014-07-24 Tom Tromey <tromey@redhat.com>
1925 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1926 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1927 (add_info_alias, add_com): Make "doc" const.
1928 (print_doc_line): Make "str" const.
1929 (delete_cmd): Update.
1930 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1931 (print_doc_line): Update.
1932 * cli/cli-script.c (document_command): Update.
1933 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1934 (add_com, add_info, add_info_alias): Update.
1935 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1936 * python/py-cmd.c (cmdpy_destroyer): Update.
1938 2014-07-24 Tom Tromey <tromey@redhat.com>
1940 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1941 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1942 (help_cmd_list): Constify.
1943 (lookup_cmd): Update.
1944 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1946 (help_cmd_list, apropos_cmd): Update.
1947 * cli/cli-script.c (show_user): Update.
1948 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1949 * cli/cli-setshow.h (cmd_show_list): Update.
1950 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1951 (cmd_show_list): Update.
1952 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1953 * python/py-cmd.c (cmdpy_destroyer): Update.
1955 2014-07-24 Tom Tromey <tromey@redhat.com>
1957 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1958 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1960 * command.h (deprecate_cmd): Update.
1961 * maint.c (maintenance_do_deprecate): Add casts.
1963 2014-07-24 Tom Tromey <tromey@redhat.com>
1965 * cli/cli-decode.c (help_cmd): Make parameter "const".
1966 * cli/cli-decode.h (help_cmd): Update.
1968 2014-07-24 Tom Tromey <tromey@redhat.com>
1970 * stack.c (up_silently_base, down_silently_base): Make argument
1973 2014-07-24 Tom Tromey <tromey@redhat.com>
1975 * solib.c (solib_add): Make "pattern" const.
1976 * solib.h (solib_add): Update.
1978 2014-07-24 Tom Tromey <tromey@redhat.com>
1980 * remote.c (remote_serial_open, print_packet, putpkt)
1981 (putpkt_binary): Constify.
1982 * remote.h (putpkt): Update.
1984 2014-07-24 Tom Tromey <tromey@redhat.com>
1986 * monitor.c (monitor_open): Make "args" const.
1987 * monitor.h (monitor_open): Update.
1989 2014-07-24 Tom Tromey <tromey@redhat.com>
1991 * maint.c (match_bfd_flags): Make "string" const.
1992 (print_bfd_section_info): Remove casts.
1993 (print_objfile_section_info): Make "string" const.
1995 2014-07-24 Tom Tromey <tromey@redhat.com>
1997 * inf-child.c (inf_child_open_target): Make "arg" const.
1998 * inf-child.h (inf_child_open_target): Update.
2000 2014-07-24 Tom Tromey <tromey@redhat.com>
2002 * environ.c (unset_in_environ): Make "var" const.
2003 * environ.h (unset_in_environ): Update.
2005 2014-07-24 Tom Tromey <tromey@redhat.com>
2007 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2009 (scan_filename_with_cleanup): Likewise.
2010 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2011 Make arguments const.
2012 (restore_command): Update.
2014 2014-07-24 Pedro Alves <palves@redhat.com>
2016 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2018 2014-07-24 Tom Tromey <tromey@redhat.com>
2019 Gary Benson <gbenson@redhat.com>
2021 * nat/linux-ptrace.c (additional_flags): New global.
2022 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2023 additional_flags; don't check GDBSERVER.
2024 (linux_ptrace_set_additional_flags): New function.
2025 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2027 * linux-nat.c (_initialize_linux_nat): Call
2028 linux_ptrace_set_additional_flags.
2030 2014-07-24 Tom Tromey <tromey@redhat.com>
2032 * make-target-delegates (munge_type, write_debugmethod): New
2034 (debug_names): New global.
2035 ($TARGET_DEBUG_PRINTER): New global.
2036 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2038 Write debug methods. Generate init_debug_target.
2039 * target-debug.h: New file.
2040 * target-delegates.c: Rebuild.
2041 * target.c: Include target-debug.h.
2042 (debug_target): Hoist definition.
2043 (target_kill, target_get_section_table, target_memory_map)
2044 (target_flash_erase, target_flash_done, target_detach)
2045 (target_disconnect, target_wait, target_resume)
2046 (target_pass_signals, target_program_signals, target_follow_fork)
2047 (target_mourn_inferior, target_search_memory)
2048 (target_thread_address_space, target_close)
2049 (target_find_new_threads, target_core_of_thread)
2050 (target_verify_memory, target_insert_mask_watchpoint)
2051 (target_remove_mask_watchpoint): Remove targetdebug code.
2052 (debug_to_post_attach, debug_to_prepare_to_store)
2053 (debug_to_files_info, debug_to_insert_breakpoint)
2054 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2055 (debug_to_region_ok_for_hw_watchpoint)
2056 (debug_to_can_accel_watchpoint_condition)
2057 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2058 (debug_to_watchpoint_addr_within_range)
2059 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2060 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2061 (debug_to_terminal_init, debug_to_terminal_inferior)
2062 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2063 (debug_to_terminal_save_ours, debug_to_terminal_info)
2064 (debug_to_load, debug_to_post_startup_inferior)
2065 (debug_to_insert_fork_catchpoint)
2066 (debug_to_remove_fork_catchpoint)
2067 (debug_to_insert_vfork_catchpoint)
2068 (debug_to_remove_vfork_catchpoint)
2069 (debug_to_insert_exec_catchpoint)
2070 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2071 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2072 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2073 (setup_target_debug): Call init_debug_target.
2074 * target.h (TARGET_DEBUG_PRINTER): New macro.
2075 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2076 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2078 2014-07-24 Gary Benson <gbenson@redhat.com>
2080 * exceptions.h (throw_vfatal): Renamed to...
2081 (throw_vquit): New declaration.
2082 (throw_quit): Likewise.
2083 * exceptions.c (throw_vfatal): Renamed to...
2084 (throw_vquit): New function.
2085 (throw_quit): Likewise.
2086 (throw_error): Call throw_verror rather than throw_it.
2087 * utils.h (vfatal): Removed.
2089 * utils.c (vfatal): Removed.
2091 (internal_verror): Replaced call to fatal with call to throw_quit.
2092 (quit): Replaced calls to fatal with calls to throw_quit.
2094 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2096 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2099 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2101 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2102 less than zero in conditional expression.
2104 2014-07-23 Tom Tromey <tromey@redhat.com>
2106 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2107 ($INTRO_PART): Don't match whitespace.
2108 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2110 ($METHOD): Add $METHOD_TRAILER.
2112 (scan_target_h): New sub.
2113 Change main loop not to collect state.
2114 * target-delegates.c: Rebuild.
2116 2014-07-23 Gary Benson <gbenson@redhat.com>
2118 * cp-support.c (gdb_demangle): Fix build on systems without
2121 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2123 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2124 for reference entry value target data value.
2126 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2129 value_available_contents_eq.
2131 2014-07-22 Pedro Alves <palves@redhat.com>
2133 * value.c (allocate_optimized_out_value): Don't mark value as
2136 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2138 * MAINTAINERS (Write After Approval): Update my email address.
2140 2014-07-20 Doug Evans <dje@google.com>
2143 * remote.c (putpkt_binary): Add text to error message.
2145 2014-07-20 Yao Qi <yao@codesourcery.com>
2147 * eval.c: Remove "Chill" from comments.
2148 * gdbtypes.h: Likewise.
2149 * symtab.h: Likewise.
2151 2014-07-20 Yao Qi <yao@codesourcery.com>
2153 * std-operator.def: Update comments to TERNOP_SLICE.
2155 2014-07-20 Yao Qi <yao@codesourcery.com>
2157 * std-operator.def: Remove BINOP_RANGE.
2158 * breakpoint.c (watchpoint_exp_is_const): Update.
2159 * expprint.c (dump_subexp_body_standard): Likewise.
2160 * eval.c (init_array_element): Remove dead code.
2161 (evaluate_subexp_standard): Likewise.
2163 2014-07-20 Yao Qi <yao@codesourcery.com>
2165 * std-operator.def: Remove BINOP_IN.
2166 * breakpoint.c (watchpoint_exp_is_const): Update.
2167 * eval.c (evaluate_subexp_standard): Likewise.
2168 * expprint.c (dump_subexp_body_standard): Likewise.
2170 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2172 * microblaze-tdep.c (microblaze_register_names): Add
2173 the rshr and rslr register names.
2174 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2175 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2176 Use of tdesc_numbered_register. Use of
2177 microblaze_register_g_packet_guesses. Use of
2178 tdesc_use_registers. Use of set_gdbarch_register_type.
2179 (microblaze_register_g_packet_guesses): New.
2180 * microblaze-tdep.h (microblaze_reg_num): Add
2181 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2182 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2183 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2184 * features/microblaze-core.xml: New file.
2185 * features/microblaze-stack-protect.xml: New file.
2186 * features/microblaze-with-stack-protect.c: New file.
2187 * features/microblaze-with-stack-protect.xml: New file.
2188 * features/microblaze.xml: New file.
2189 * features/microblaze.c: New file.
2190 * features/Makefile (microblaze-with-stack-protect): Add
2191 microblaze-with-stack-protect microblaze and microblaze-expedite.
2192 * regformats/microblaze-with-stack-protect.dat: New file.
2193 * regformats/microblaze.dat: New file.
2194 * doc/gdb.texinfo (MicroBlaze Features): Added.
2196 2014-07-18 Tom Tromey <tromey@redhat.com>
2198 * exec.c (exec_ops): Now static.
2199 * exec.h (exec_ops): Don't declare.
2201 2014-07-18 Tom Tromey <tromey@redhat.com>
2203 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2204 to find_target_beneath.
2205 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2206 find_target_beneath.
2207 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2209 2014-07-18 Tom Tromey <tromey@redhat.com>
2212 * utils.c (quit): Use target_supports_terminal_ours.
2213 * target.h (target_supports_terminal_ours): Declare.
2214 * target.c (target_supports_delete_record): Don't check
2215 to_delete_record against NULL.
2216 (target_supports_terminal_ours): New function.
2218 2014-07-18 Tom Tromey <tromey@redhat.com>
2221 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2222 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2223 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2224 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2225 * windows-nat.c (windows_xfer_partial): Always delegate.
2226 * record-btrace.c (record_btrace_xfer_partial): Simplify
2228 (record_btrace_fetch_registers, record_btrace_store_registers)
2229 (record_btrace_prepare_to_store, record_btrace_resume)
2230 (record_btrace_wait, record_btrace_find_new_threads)
2231 (record_btrace_thread_alive): Likewise.
2232 * procfs.c (procfs_xfer_partial): Always delegate.
2233 * corelow.c (core_xfer_partial): Always delegate.
2234 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2236 2014-07-18 Tom Tromey <tromey@redhat.com>
2238 * exec.c (exec_make_note_section): Move earlier.
2240 2014-07-17 Doug Evans <dje@google.com>
2243 * maint.c (count_symtabs_and_blocks): Handle NULL
2244 current_program_space.
2245 (report_command_stats): Check global enabled flag in addition to
2246 recorded enabled flag.
2247 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2249 2014-07-16 Pedro Alves <palves@redhat.com>
2251 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2253 2014-07-16 Tom Tromey <tromey@redhat.com>
2255 * target.h (struct target_ops) <to_delete_record>: Reformat
2258 2014-07-16 Tom Tromey <tromey@redhat.com>
2260 * target-delegates.c: Rebuild.
2262 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2264 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2265 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2266 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2267 (avr_pointer_to_address): Likewise.
2268 (avr_address_class_type_flags): New function.
2269 (avr_address_class_type_flags_to_name): Likewise.
2270 (avr_address_class_name_to_type_flags): Likewise.
2271 (avr_gdbarch_init): Set address_class_type_flags,
2272 address_class_type_flags_to_name and
2273 address_class_name_to_type_flags.
2275 2014-07-15 Pedro Alves <palves@redhat.com>
2277 * linux-nat.c (kill_callback): Save errno and work with saved
2280 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2282 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2284 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2286 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2287 breakpoint support correctly.
2289 2014-07-14 Pedro Alves <palves@redhat.com>
2291 * utils.c (prompt_for_continue): Call target_terminal_ours.
2293 2014-07-14 Pedro Alves <palves@redhat.com>
2295 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2296 catch_errors. Don't re-enable stdin or notify observers where,
2298 (fetch_inferior_event_wrapper): Delete.
2300 2014-07-14 Pedro Alves <palves@redhat.com>
2303 * top.c: Include "inf-loop.h".
2304 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2306 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2308 (gdb_readline_wrapper): Store whether the target is async, and
2311 2014-07-14 Pedro Alves <palves@redhat.com>
2314 * top.c (gdb_readline_wrapper_line): Tweak comment.
2315 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2316 the input handler callback.
2318 2014-07-14 Pedro Alves <palves@redhat.com>
2321 * main.c: Include event-top.h.
2322 (handle_command_errors): New function.
2323 (catch_command_errors, catch_command_errors_const): Use it.
2325 2014-07-14 Pedro Alves <palves@redhat.com>
2327 * exceptions.c (catch_command_errors, catch_command_errors_const):
2329 * exceptions.h (catch_command_errors_ftype)
2330 (catch_command_errors_const_ftype): Moved to main.c.
2331 (catch_command_errors, catch_command_errors_const): Delete
2333 * main.c (catch_command_errors_ftype)
2334 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2335 (catch_command_errors, catch_command_errors_const)): Moved here
2336 from exceptions.c and make static.
2338 2014-07-14 Pedro Alves <palves@redhat.com>
2340 * exceptions.c (print_any_exception): Delete.
2341 (catch_exceptions_with_msg): Use exception_print instead of
2342 print_any_exception.
2343 (catch_errors): Use exception_fprintf instead of
2344 print_any_exception.
2345 (catch_command_errors, catch_command_errors_const): Use
2346 exception_print instead of print_any_exception.
2348 2014-07-14 Pedro Alves <palves@redhat.com>
2350 * infcall.c (run_inferior_call): Set 'sync_execution' while
2351 running the inferior call.
2353 2014-07-14 Pedro Alves <palves@redhat.com>
2355 * value.c (value_contents_equal): Delete function.
2356 * value.h (value_contents_equal): Delete declaration.
2358 2014-07-14 Tom Tromey <tromey@redhat.com>
2361 * gdbtypes.c (is_dynamic_type_internal): New function, from
2363 (is_dynamic_type): Rewrite.
2364 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2365 (resolve_dynamic_struct): Likewise.
2366 (resolve_dynamic_type_internal): New function, from
2367 resolve_dynamic_type.
2368 (resolve_dynamic_type): Rewrite.
2370 2014-07-14 Tom Tromey <tromey@redhat.com>
2372 * target.c (target_require_runnable): Also check record_stratum.
2375 2014-07-11 Yao Qi <yao@codesourcery.com>
2377 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2378 thumb_instruction_restores_sp return true.
2380 2014-07-11 Yao Qi <yao@codesourcery.com>
2382 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2383 (thumb_in_function_epilogue_p): Call
2384 thumb_instruction_restores_sp.
2386 2014-07-11 Yao Qi <yao@codesourcery.com>
2388 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2390 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2392 2014-07-11 Gary Benson <gbenson@redhat.com>
2394 * amd64-linux-nat.c (gdbcore.h): Remove include.
2395 (regset.h): Likewise.
2396 (nat/linux-btrace.h): Likewise.
2397 (btrace.h): Likewise.
2398 (gdb_assert.h): Likewise.
2399 (string.h): Likewise.
2400 (sys/uio.h): Likewise.
2401 (sys/debugreg.h): Likewise.
2402 (sys/syscall.h): Likewise.
2403 (sys/procfs.h): Likewise.
2404 (sys/user.h): Likewise.
2405 (asm/ptrace.h): Likewise.
2406 (i386-nat.h): Likewise.
2407 * i386-linux-nat.c (i386-nat.h): Likewise.
2408 (regset.h): Likewise.
2409 (target.h): Likewise.
2410 (linux-nat.h): Likewise.
2411 (nat/linux-btrace.h): Likewise.
2412 (btrace.h): Likewise.
2413 (gdb_assert.h): Likewise.
2414 (string.h): Likewise.
2415 (sys/uio.h): Likewise.
2416 (sys/user.h): Likewise.
2417 (sys/procfs.h): Likewise.
2418 (sys/reg.h): Likewise.
2419 (sys/debugreg.h): Likewise.
2420 (ORIG_EAX): Remove definition.
2422 2014-07-11 Gary Benson <gbenson@redhat.com>
2424 * i386-linux-nat.h: New file.
2425 * x86-linux-nat.h: Likewise.
2426 * x86-linux-nat.c: Likewise.
2427 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2428 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2429 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2430 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2431 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2432 (PTRACE_SETREGSET): Likewise.
2433 (arch_lwp_info): Now in x86-linux-nat.c.
2434 (have_ptrace_getregset): Now in x86-linux-nat.h.
2435 (x86_linux_dr_get): Now in x86-linux-nat.c.
2436 (x86_linux_dr_set): Likewise.
2437 (x86_linux_dr_get_addr): Likewise.
2438 (x86_linux_dr_get_control): Likewise.
2439 (x86_linux_dr_get_status): Likewise.
2440 (update_debug_registers_callback): Likewise.
2441 (x86_linux_dr_set_control): Likewise.
2442 (x86_linux_dr_set_addr): Likewise.
2443 (x86_linux_prepare_to_resume): Likewise.
2444 (x86_linux_new_thread): Likewise.
2445 (x86_linux_new_fork): Likewise.
2446 (x86_linux_get_thread_area): Likewise.
2447 (super_post_startup_inferior): Likewise.
2448 (x86_linux_child_post_startup_inferior): Likewise.
2449 (AMD64_LINUX_USER64_CS): Likewise.
2450 (AMD64_LINUX_X32_DS): Likewise.
2451 (x86_linux_read_description): Likewise.
2452 (x86_linux_enable_btrace): Likewise.
2453 (x86_linux_disable_btrace): Likewise.
2454 (x86_linux_teardown_btrace): Likewise.
2455 (x86_linux_read_btrace): Likewise.
2456 (x86_linux_create_target): Likewise.
2457 (x86_linux_add_target): Likewise.
2458 * i386-linux-nat.c (x86-linux-nat.h): New include.
2459 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2460 (PTRACE_SETREGSET): Likewise.
2461 (arch_lwp_info): Now in x86-linux-nat.c.
2462 (have_ptrace_getregset): Now in x86-linux-nat.h.
2463 (x86_linux_dr_get): Now in x86-linux-nat.c.
2464 (x86_linux_dr_set): Likewise.
2465 (x86_linux_dr_get_addr): Likewise.
2466 (x86_linux_dr_get_control): Likewise.
2467 (x86_linux_dr_get_status): Likewise.
2468 (update_debug_registers_callback): Likewise.
2469 (x86_linux_dr_set_control): Likewise.
2470 (x86_linux_dr_set_addr): Likewise.
2471 (x86_linux_prepare_to_resume): Likewise.
2472 (x86_linux_new_thread): Likewise.
2473 (x86_linux_new_fork): Likewise.
2474 (x86_linux_get_thread_area): Likewise.
2475 (super_post_startup_inferior): Likewise.
2476 (x86_linux_child_post_startup_inferior): Likewise.
2477 (AMD64_LINUX_USER64_CS): Likewise.
2478 (AMD64_LINUX_X32_DS): Likewise.
2479 (x86_linux_read_description): Likewise.
2480 (x86_linux_enable_btrace): Likewise.
2481 (x86_linux_disable_btrace): Likewise.
2482 (x86_linux_teardown_btrace): Likewise.
2483 (x86_linux_read_btrace): Likewise.
2484 (x86_linux_create_target): Likewise.
2485 (x86_linux_add_target): Likewise.
2487 2014-07-11 Gary Benson <gbenson@redhat.com>
2489 * amd64-linux-nat.c: Comment and whitespace changes.
2490 * i386-linux-nat.c: Comment and whitespace changes.
2492 2014-07-11 Gary Benson <gbenson@redhat.com>
2494 * amd64-linux-nat.c (x86_linux_create_target): New function.
2495 (x86_linux_add_target): Likewise.
2496 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2497 * i386-linux-nat.c (x86_linux_create_target): New function.
2498 (x86_linux_add_target): Likewise.
2499 (_initialize_i386_linux_nat): Delegate to the above new functions.
2501 2014-07-11 Gary Benson <gbenson@redhat.com>
2503 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2504 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2505 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2506 (ps_get_thread_area): Delegate to the above.
2508 2014-07-11 Gary Benson <gbenson@redhat.com>
2510 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2511 x86_linux_read_description. All uses updated. amd64-specific
2512 code conditionalized. Conditionalized i386-specific code added.
2513 Redundant cast removed.
2514 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2515 x86_linux_read_description. All uses updated. i386-specific
2516 code conditionalized. Conditionalized amd64-specific code added.
2517 One sizeof replaced with the actual type it is describing.
2519 2014-07-11 Gary Benson <gbenson@redhat.com>
2521 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2522 x86_linux_dr_get. All uses updated.
2523 (amd64_linux_dr_set): Renamed to
2524 x86_linux_dr_set. All uses updated.
2525 (amd64_linux_dr_get_addr): Renamed to
2526 x86_linux_dr_get_addr. All uses updated.
2527 (amd64_linux_dr_get_control): Renamed to
2528 x86_linux_dr_get_control. All uses updated.
2529 (amd64_linux_dr_get_status): Renamed to
2530 x86_linux_dr_get_status. All uses updated.
2531 (amd64_linux_dr_set_control): Renamed to
2532 x86_linux_dr_set_control. All uses updated.
2533 (amd64_linux_dr_set_addr): Renamed to
2534 x86_linux_dr_set_addr. All uses updated.
2535 (amd64_linux_prepare_to_resume): Renamed to
2536 x86_linux_prepare_to_resume. All uses updated.
2537 (amd64_linux_new_thread): Renamed to
2538 x86_linux_new_thread. All uses updated.
2539 (amd64_linux_new_fork): Renamed to
2540 x86_linux_new_fork. All uses updated.
2541 (amd64_linux_child_post_startup_inferior): Renamed to
2542 x86_linux_child_post_startup_inferior. All uses updated.
2543 (amd64_linux_enable_btrace): Renamed to
2544 x86_linux_enable_btrace. All uses updated.
2545 (amd64_linux_disable_btrace): Renamed to
2546 x86_linux_disable_btrace. All uses updated.
2547 (amd64_linux_teardown_btrace): Renamed to
2548 x86_linux_teardown_btrace. All uses updated.
2549 (amd64_linux_read_btrace): Renamed to
2550 x86_linux_read_btrace. All uses updated.
2551 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2552 x86_linux_dr_get. All uses updated.
2553 (i386_linux_dr_set): Renamed to
2554 x86_linux_dr_set. All uses updated.
2555 (i386_linux_dr_get_addr): Renamed to
2556 x86_linux_dr_get_addr. All uses updated.
2557 (i386_linux_dr_get_control): Renamed to
2558 x86_linux_dr_get_control. All uses updated.
2559 (i386_linux_dr_get_status): Renamed to
2560 x86_linux_dr_get_status. All uses updated.
2561 (i386_linux_dr_set_control): Renamed to
2562 x86_linux_dr_set_control. All uses updated.
2563 (i386_linux_dr_set_addr): Renamed to
2564 x86_linux_dr_set_addr. All uses updated.
2565 (i386_linux_prepare_to_resume): Renamed to
2566 x86_linux_prepare_to_resume. All uses updated.
2567 (i386_linux_new_thread): Renamed to
2568 x86_linux_new_thread. All uses updated.
2569 (i386_linux_new_fork): Renamed to
2570 x86_linux_new_fork. All uses updated.
2571 (i386_linux_child_post_startup_inferior): Renamed to
2572 x86_linux_child_post_startup_inferior. All uses updated.
2573 (i386_linux_enable_btrace): Renamed to
2574 x86_linux_enable_btrace. All uses updated.
2575 (i386_linux_disable_btrace): Renamed to
2576 x86_linux_disable_btrace. All uses updated.
2577 (i386_linux_teardown_btrace): Renamed to
2578 x86_linux_teardown_btrace. All uses updated.
2579 (i386_linux_read_btrace): Renamed to
2580 x86_linux_read_btrace. All uses updated.
2582 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2584 * remote.c (extended_remote_post_attach): New function.
2585 (init_extended_remote_ops): Install it as to_post_attach method.
2587 2014-07-09 Pedro Alves <palves@redhat.com>
2589 * infcmd.c (attach_command_post_wait): Don't call
2590 target_terminal_inferior here.
2591 (attach_command): Call it here instead.
2593 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2595 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2597 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2598 from varobj.c, with additional checks.
2599 (c_varobj_ops): Fill in is_path_expr_parent field.
2600 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2601 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2603 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2605 (varobj_default_is_path_expr_parent): New function.
2606 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2607 (varobj_default_is_path_expr_parent): Declare new function.
2609 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2611 * infcmd.c (finish_backward): Turn internal error into normal error.
2613 2014-07-07 Pedro Alves <palves@redhat.com>
2616 * remote.c (async_handle_remote_sigint)
2617 (async_handle_remote_sigint_twice): Call
2618 gdb_call_async_signal_handler instead of
2619 mark_async_signal_handler.
2621 2014-07-07 Tom Tromey <tromey@redhat.com>
2623 * target-delegates.c: Rebuild.
2624 * target.c (target_info_record): Remove.
2625 * record.c (info_record_command): Unconditionally call
2627 * target.h (struct target_ops) <to_info_record>: Use
2628 TARGET_DEFAULT_IGNORE.
2629 (target_info_record): Remove.
2631 2014-07-07 Tom Tromey <tromey@redhat.com>
2633 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2634 TARGET_DEFAULT_NORETURN.
2635 * target.c (generic_tls_error): New function.
2636 (target_translate_tls_address): Don't search target stack.
2637 * target-delegates.c: Rebuild.
2638 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2640 * linux-thread-db.c (thread_db_get_thread_local_address):
2641 Unconditionally call beneath target.
2643 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2645 * cli/cli-logging.c (pop_output_files): Assign targerr to
2648 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2650 * MAINTAINERS (Write After Approval): Update my email address.
2652 2014-07-02 Gary Benson <gbenson@redhat.com>
2654 * proc-service.c (ps_xfer_memory): Update comment.
2655 (ps_pstop): Remove unused function.
2656 (ps_pcontinue): Likewise.
2657 (ps_lstop): Likewise.
2658 (ps_lcontinue): Likewise.
2659 (ps_lgetxregsize): Likewise.
2660 (ps_lgetxregs): Likewise.
2661 (ps_lsetxregs): Likewise.
2662 (ps_plog): Likewise.
2663 (ps_ptread): Likewise.
2664 (ps_ptwrite): Likewise.
2666 2014-07-01 Mark Wielaard <mjw@redhat.com>
2668 * dwarf2read.c (add_array_cv_type): New function.
2669 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2670 (read_tag_volatile_type): Likewise.
2672 2014-07-01 Tom Tromey <tromey@redhat.com>
2674 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2675 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2676 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2677 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2678 * command.h (cmd_cfunc_ftype): Move earlier.
2679 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2680 (add_com, add_info): Use cmd_cfunc_ftype.
2682 2014-06-30 Tom Tromey <tromey@redhat.com>
2684 * symtab.c (operator_chars): Make parameters and return type
2686 (file_matches): Make "files" const.
2687 (struct search_symbols_data) <files>: Now const.
2688 (search_symbols): Make "regexp" and "files" parameters const.
2690 (symtab_symbol_info): Remove cast.
2691 (rbreak_command): Update.
2692 * symtab.h (search_symbols): Update.
2694 2014-06-27 Yao Qi <yao@codesourcery.com>
2696 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2697 Change parameter type to 'struct thread_info *'. Caller
2699 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2701 * dummy-frame.c (struct dummy_frame_id): New.
2702 (dummy_frame_id_eq): New function.
2703 (struct dummy_frame) <id>: Change its type to 'struct
2705 (dummy_frame_push): Add parameter ptid and save it in
2707 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2709 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2711 (lookup_dummy_frame): Change parameter type to 'struct
2712 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2713 instead of frame_id_eq.
2714 (dummy_frame_pop): Add parameter ptid. Callers updated.
2715 Update comments. Compose dummy_frame_id and pass it to
2717 (dummy_frame_discard): Add parameter ptid.
2718 (dummy_frame_sniffer): Compose dummy_frame_id and call
2719 dummy_frame_id_eq instead of frame_id_eq.
2720 (fprint_dummy_frames): Print ptid.
2721 * dummy-frame.h: Remove comments.
2722 (dummy_frame_push): Add ptid in declaration.
2723 (dummy_frame_pop, dummy_frame_discard): Likewise.
2725 2014-06-26 Tom Tromey <tromey@redhat.com>
2727 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2728 * command.h (error_no_arg): Update.
2730 2014-06-26 Tom Tromey <tromey@redhat.com>
2732 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2733 (do_show_command): Make "arg" const.
2734 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2736 2014-06-26 Tom Tromey <tromey@redhat.com>
2738 * record-full.c (record_full_get_bookmark): Make "args" const.
2739 (record_full_goto_bookmark): Make "raw_bookmark" const.
2740 * record.c (record_goto): New function.
2741 (cmd_record_goto): Use it. Now static.
2742 * record.h (record_goto): Declare.
2743 (cmd_record_goto): Remove declaration.
2744 * target-delegates.c: Rebuild.
2745 * target.h (struct target_ops) <to_get_bookmark,
2746 to_goto_bookmark>: Make parameter const.
2748 2014-06-26 Tom Tromey <tromey@redhat.com>
2750 * defs.h (generic_load): Update.
2751 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2752 * monitor.c (monitor_load): Make "args" const.
2753 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2754 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2756 (mips_load): Make "file" const.
2757 * remote-sim.c (gdbsim_load): Make "args" const.
2758 * remote.c (remote_load): Make "name" const.
2759 * symfile.c (generic_load): Make "args" const.
2760 * target-delegates.c: Rebuild.
2761 * target.c (target_load): Make "arg" const.
2762 (debug_to_load): Make "args" const.
2763 * target.h (struct target_ops) <to_load>: Make parameter const.
2764 (target_load): Update.
2766 2014-06-26 Tom Tromey <tromey@redhat.com>
2769 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2770 (dwarf2_physname, read_partial_die)
2771 (guess_partial_die_structure_name, fixup_partial_die)
2772 (guess_full_die_structure_name, anonymous_struct_prefix)
2773 (dwarf2_name): Use per-BFD obstack.
2775 2014-06-26 Yao Qi <yao@codesourcery.com>
2777 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2778 dummyframe and this_id into inner block below.
2780 2014-06-26 Yao Qi <yao@codesourcery.com>
2782 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2783 with "signal_pass[0]" in the initialization of signal_pass.
2785 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2787 * record-btrace.c (record_btrace_generating_corefile)
2788 (record_btrace_prepare_to_generate_core)
2789 (record_btrace_done_generating_core): New.
2790 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2791 (record_btrace_store_registers, record_btrace_prepare_to_store):
2792 Forward request when generating a core file.
2793 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2794 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2795 to_done_generating_core.
2797 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2799 * target.h (target_ops) <to_prepare_to_generate_core>
2800 <to_done_generating_core>: New.
2801 (target_prepare_to_generate_core, target_done_generating_core): New.
2802 * target.c (target_prepare_to_generate_core)
2803 (target_done_generating_core): New.
2804 * target-delegates.c: Regenerate.
2805 * gcore.c: (write_gcore_file): Rename to ...
2806 (write_gcore_file_1): ...this.
2807 (write_gcore_file): Call target_prepare_to_generate_core
2808 and target_done_generating_core.
2810 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2812 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2813 * gcore.c (write_gcore_file): Free memory returned from
2814 make_corefile_notes.
2815 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2816 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2818 2014-06-24 Yao Qi <yao@codesourcery.com>
2820 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2821 (arm_linux_init_abi): Set skip_trampoline_code with
2822 gdbarch_skip_trampoline_code instead of
2823 find_solib_trampoline_target.
2825 2014-06-24 Yao Qi <yao@codesourcery.com>
2827 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2828 arm_skip_bx_reg returns non-zero.
2830 2014-06-24 Yao Qi <yao@codesourcery.com>
2832 * arm-tdep.c (arm_skip_bx_reg): New function.
2833 (arm_skip_stub): Call arm_skip_bx_reg.
2835 2014-06-23 Don Breazeal <donb@codesourcery.com>
2837 * MAINTAINERS: Add myself as write-after-approval maintainer.
2839 2014-06-23 Pedro Alves <palves@redhat.com>
2841 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2842 DR_CONTROL before setting DR0..DR3.
2843 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2844 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2845 bits of DR_CONTROL related to the debug register slot being
2846 disabled. If all slots are vacant, clear local slowdown as well,
2847 and assert DR_CONTROL is 0.
2849 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2851 * python/lib/gdb/command/xmethods.py
2852 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2853 current progspace only if the string "progspace" matches LOCUS_RE.
2855 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2857 Fix --with-system-readline with readline-6.3 patch 5.
2858 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2859 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2862 2014-06-20 Tom Tromey <tromey@redhat.com>
2864 * dwarf2read.c (dw2_get_real_path): Use correct type in
2866 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2868 2014-06-20 Gary Benson <gbenson@redhat.com>
2870 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2871 * common/glibc_thread_db.h: Likewise.
2872 * common/i386-cpuid.h: Likewise.
2873 * common/i386-gcc-cpuid.h: Likewise.
2874 * common/linux-btrace.h: Likewise.
2875 * common/linux-osdata.h: Likewise.
2876 * common/linux-procfs.h: Likewise.
2877 * common/linux-ptrace.h: Likewise.
2878 * common/mips-linux-watch.h: Likewise.
2879 * common/linux-btrace.c: Moved to nat.
2880 * common/linux-osdata.c: Likewise.
2881 * common/linux-procfs.c: Likewise.
2882 * common/linux-ptrace.c: Likewise.
2883 * common/mips-linux-watch.c: Likewise.
2884 * nat/gdb_thread_db.h: Moved from common.
2885 * nat/glibc_thread_db.h: Likewise.
2886 * nat/i386-cpuid.h: Likewise.
2887 * nat/i386-gcc-cpuid.h: Likewise.
2888 * nat/linux-btrace.c: Likewise.
2889 * nat/linux-btrace.h: Likewise.
2890 * nat/linux-osdata.c: Likewise.
2891 * nat/linux-osdata.h: Likewise.
2892 * nat/linux-procfs.c: Likewise.
2893 * nat/linux-procfs.h: Likewise.
2894 * nat/linux-ptrace.c: Likewise.
2895 * nat/linux-ptrace.h: Likewise.
2896 * nat/mips-linux-watch.c: Likewise.
2897 * nat/mips-linux-watch.h: Likewise.
2898 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2899 (object file files): Reordered.
2900 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2901 of glibc_thread_db.h.
2903 2014-06-20 Gary Benson <gbenson@redhat.com>
2905 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2906 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2907 (i386_dr_low): Likewise.
2908 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2909 (i386_dr_low_set_addr): Likewise.
2910 (i386_dr_low_get_addr): Likewise.
2911 (i386_dr_low_can_set_control): Likewise.
2912 (i386_dr_low_set_control): Likewise.
2913 (i386_dr_low_get_control): Likewise.
2914 (i386_dr_low_get_status): Likewise.
2915 (i386_get_debug_register_length): Likewise.
2916 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2917 (i386_dr_low): Likewise.
2918 * nat/i386-dregs.c (i386-low.h): Remove include.
2919 (i386-nat.h): Likewise.
2920 (nat/i386-dregs.h): New include.
2921 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2922 (i386_dr_low_set_addr): Likewise.
2923 (i386_dr_low_get_addr): Likewise.
2924 (i386_dr_low_can_set_control): Likewise.
2925 (i386_dr_low_set_control): Likewise.
2926 (i386_dr_low_get_control): Likewise.
2927 (i386_dr_low_get_status): Likewise.
2928 (i386_get_debug_register_length): Likewise.
2929 (debug_hw_points): Likewise.
2931 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2933 * Makefile.in (SFILES): Add d-exp.y.
2934 (YYFILES): Add d-exp.c.
2935 (YYOBJ): Add d-exp.o.
2936 (local-maintainer-clean): Delete d-exp.c.
2937 * d-exp.y: New file.
2938 * d-lang.h (d_parse): New declaration.
2939 (d_error): New declaration.
2940 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2941 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2942 PREC_ORDER operators.
2943 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2945 2014-06-19 Yao Qi <yao@codesourcery.com>
2947 * gdbthread.h (any_running): Remove the declaration.
2948 * thread.c (any_running): Remove.
2950 2014-06-19 Yao Qi <yao@codesourcery.com>
2952 * gdbthread.h (struct thread_info) <state>: Change its type to
2953 'enum thread_state'. Update comments.
2955 2014-06-19 Pedro Alves <palves@redhat.com>
2957 * gdbthread.h (ALL_THREADS): Delete.
2958 (ALL_NON_EXITED_THREADS): New macro.
2959 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2960 instead of ALL_THREADS.
2961 * infrun.c (find_thread_needs_step_over)
2962 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2963 instead of ALL_THREADS.
2964 * record-btrace.c (record_btrace_open)
2965 (record_btrace_stop_recording, record_btrace_close)
2966 (record_btrace_is_replaying, record_btrace_resume)
2967 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2968 * remote.c (append_pending_thread_resumptions): Likewise.
2969 * thread.c (thread_apply_all_command): Likewise.
2971 2014-06-19 Gary Benson <gbenson@redhat.com>
2973 * i386-nat.c (i386_stopped_by_watchpoint):
2974 Use i386_dr_stopped_by_watchpoint.
2975 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2976 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2978 2014-06-19 Gary Benson <gbenson@redhat.com>
2980 * nat/i386-dregs.c: New file.
2981 * Makefile.in (i386-dregs.o): New rule.
2982 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2983 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2984 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2985 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2986 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2987 * config/i386/go32.mh (NATDEPFILES): Likewise.
2988 * config/i386/linux.mh (NATDEPFILES): Likewise.
2989 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2990 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2991 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2992 * i386-nat.h (debug_hw_points): New declaration.
2993 * i386-nat.c (breakpoint.h): Remove include.
2994 (command.h): Likewise.
2995 (target.h): Likewise.
2996 (gdb_assert.h): Likewise.
2997 (debug_hw_points): Made nonstatic.
2998 (debug_printf): Now in i386-dregs.c.
2999 (TARGET_HAS_DR_LEN_8): Likewise.
3000 (DR_CONTROL_SHIFT): Likewise.
3001 (DR_CONTROL_SIZE): Likewise.
3002 (DR_RW_EXECUTE): Likewise.
3003 (DR_RW_WRITE): Likewise.
3004 (DR_RW_READ): Likewise.
3005 (DR_RW_IORW): Likewise.
3006 (DR_LEN_1): Likewise.
3007 (DR_LEN_2): Likewise.
3008 (DR_LEN_4): Likewise.
3009 (DR_LEN_8): Likewise.
3010 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3011 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3012 (DR_ENABLE_SIZE): Likewise.
3013 (DR_LOCAL_SLOWDOWN): Likewise.
3014 (DR_GLOBAL_SLOWDOWN): Likewise.
3015 (DR_CONTROL_RESERVED): Likewise.
3016 (I386_DR_CONTROL_MASK): Likewise.
3017 (I386_DR_VACANT): Likewise.
3018 (I386_DR_LOCAL_ENABLE): Likewise.
3019 (I386_DR_GLOBAL_ENABLE): Likewise.
3020 (I386_DR_DISABLE): Likewise.
3021 (I386_DR_SET_RW_LEN): Likewise.
3022 (I386_DR_GET_RW_LEN): Likewise.
3023 (I386_DR_WATCH_HIT): Likewise.
3024 (i386_wp_op_t): Likewise.
3025 (i386_show_dr): Likewise.
3026 (i386_length_and_rw_bits): Likewise.
3027 (i386_insert_aligned_watchpoint): Likewise.
3028 (i386_remove_aligned_watchpoint): Likewise.
3029 (i386_handle_nonaligned_watchpoint): Likewise.
3030 (i386_update_inferior_debug_regs): Likewise.
3031 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3032 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3033 (i386_region_ok_for_watchpoint):
3034 Use i386_dr_region_ok_for_watchpoint.
3035 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3037 2014-06-19 Gary Benson <gbenson@redhat.com>
3039 * i386-nat.c (i386_insert_hw_breakpoint): Use
3040 i386_insert_watchpoint.
3041 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3043 2014-06-19 Gary Benson <gbenson@redhat.com>
3045 * i386-nat.c (i386_dr_show): Renamed to
3046 i386_show_dr and made static. All uses updated.
3047 (i386_dr_length_and_rw_bits): Renamed to
3048 i386_length_and_rw_bits and made static.
3050 (i386_dr_insert_aligned_watchpoint): Renamed to
3051 i386_insert_aligned_watchpoint and made static.
3053 (i386_dr_remove_aligned_watchpoint): Renamed to
3054 i386_remove_aligned_watchpoint and made static.
3056 (i386_dr_update_inferior_debug_regs): Renamed to
3057 i386_update_inferior_debug_regs and made static.
3059 * nat/i386-dregs.h (i386_dr_show): Removed.
3060 (i386_dr_length_and_rw_bits): Likewise.
3061 (i386_dr_insert_aligned_watchpoint): Likewise.
3062 (i386_dr_remove_aligned_watchpoint): Likewise.
3063 (i386_dr_update_inferior_debug_regs): Likewise.
3065 2014-06-19 Gary Benson <gbenson@redhat.com>
3067 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3068 * configure: Regenerate.
3069 * config.in: Likewise.
3070 * main.c (signal.h): New include.
3071 (setup_alternate_signal_stack): New function.
3072 (captured_main): Call the above.
3073 * cp-support.c (signal.h): New include.
3074 (catch_demangler_crashes): New flag.
3075 (SIGJMP_BUF): New define.
3076 (SIGSETJMP): Likewise.
3077 (SIGLONGJMP): Likewise.
3078 (gdb_demangle_jmp_buf): New static global.
3079 (gdb_demangle_attempt_core_dump): Likewise.
3080 (gdb_demangle_signal_handler): New function.
3081 (gdb_demangle): If catch_demangler_crashes is set, install the
3082 above signal handler before calling bfd_demangle, and restore
3083 the original signal handler afterwards. Display the offending
3084 symbol and call demangler_warning the first time a segmentation
3086 (_initialize_cp_support): New maint set/show command.
3088 2014-06-19 Gary Benson <gbenson@redhat.com>
3090 * utils.h (resource_limit_kind): New enum.
3091 (can_dump_core): New declaration.
3092 (warn_cant_dump_core): Likewise.
3093 (dump_core): Likewise.
3094 * utils.c (dump_core): Made nonstatic. Added new
3095 parameter "limit_kind".
3096 (can_dump_core): Made nonstatic. Moved printing code to...
3097 (warn_cant_dump_core): New function.
3098 (can_dump_core_warn): Likewise.
3099 (internal_vproblem): Replace calls to can_dump_core with
3100 calls to can_dump_core_warn. Supply new argument to each.
3102 2014-06-19 Gary Benson <gbenson@redhat.com>
3104 * utils.h (demangler_vwarning): New declaration.
3105 (demangler_warning): Likewise.
3106 * utils.c (struct internal_problem)
3107 <user_settable_should_quit>: New field.
3108 <user_settable_should_dump_core>: Likewise
3109 (internal_error_problem): Add values for above new fields.
3110 (internal_warning_problem): Likewise.
3111 (demangler_warning_problem): New static global.
3112 (demangler_vwarning): New function.
3113 (demangler_warning): Likewise.
3114 (add_internal_problem_command): Selectively add commands.
3115 (_initialize_utils): New internal problem command.
3116 * maint.c (maintenance_demangler_warning): New function.
3117 (_initialize_maint_cmds): New command.
3119 2014-06-18 Tom Tromey <tromey@redhat.com>
3121 * f-valprint.c (info_common_command_for_block): Update.
3122 * symtab.h (struct general_symbol_info) <common_block>: Now
3125 2014-06-18 Tom Tromey <tromey@redhat.com>
3127 * symtab.h (struct symtab) <blockvector>: Now const.
3128 * ada-lang.c (ada_add_global_exceptions): Update.
3129 * buildsym.c (augment_type_symtab): Update.
3130 * dwarf2read.c (dw2_lookup_symbol): Update.
3131 * jit.c (finalize_symtab): Update.
3132 * jv-lang.c (add_class_symtab_symbol): Update.
3133 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3135 * objfiles.c (objfile_relocate1): Update.
3136 * psymtab.c (lookup_symbol_aux_psymtabs)
3137 (maintenance_check_psymtabs): Update.
3138 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3140 * spu-tdep.c (spu_catch_start): Update.
3141 * symmisc.c (dump_symtab_1): Update.
3142 * symtab.c (lookup_global_symbol_from_objfile)
3143 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3144 (basic_lookup_transparent_type_quick)
3145 (basic_lookup_transparent_type, find_pc_sect_symtab)
3146 (find_pc_sect_line, search_symbols): Update.
3147 * block.c (find_block_in_blockvector): Make "bl" const.
3148 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3150 (blockvector_contains_pc): Make "bv" const.
3151 (block_for_pc_sect): Update.
3152 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3153 (blockvector_contains_pc): Update.
3154 * breakpoint.c (resolve_sal_pc): Update.
3155 * inline-frame.c (block_starting_point_at): Update.
3157 2014-06-18 Tom Tromey <tromey@redhat.com>
3159 * completer.c (complete_line): Make "line_buffer" const.
3160 * completer.h (complete_line): Update.
3162 2014-06-18 Tom Tromey <tromey@redhat.com>
3164 * symtab.c (add_macro_name): Remove unneeded cast.
3166 2014-06-18 Tom Tromey <tromey@redhat.com>
3168 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3169 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3171 2014-06-18 Tom Tromey <tromey@redhat.com>
3173 * probe.c (info_probes_for_ops): Make "arg" const.
3174 * probe.h (info_probes_for_ops): Update.
3176 2014-06-18 Tom Tromey <tromey@redhat.com>
3178 * varobj.c (varobj_create): Update.
3179 * valops.c (value_of_this): Update.
3180 * tracepoint.c (add_local_symbols, scope_info): Update.
3181 * symtab.h (struct general_symbol_info) <block>: Now const.
3182 * symtab.c (skip_prologue_sal)
3183 (default_make_symbol_completion_list_break_on)
3184 (skip_prologue_using_sal): Update.
3185 * stack.h (iterate_over_block_locals)
3186 (iterate_over_block_local_vars): Update.
3187 * stack.c (print_frame_args): Update.
3188 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3190 (get_selected_block): Make return type const.
3191 * python/py-frame.c (frapy_block): Update.
3192 * python/py-block.c (gdbpy_block_for_pc): Update.
3193 * p-exp.y (%union) <bval>: Now const.
3194 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3195 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3196 * m2-exp.y (%union) <bval>: Now const.
3197 * linespec.c (get_current_search_block): Make return type const.
3198 (create_sals_line_offset, find_label_symbols): Update.
3199 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3201 (block_starting_point_at): Make "block" const.
3202 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3203 (check_exception_resume): Update.
3204 * guile/scm-frame.c (gdbscm_frame_block): Update.
3205 * guile/scm-block.c (gdbscm_lookup_block): Update.
3206 * frame.h (get_frame_block): Update.
3207 (get_selected_block): Make return type const.
3208 * frame.c (frame_id_inner): Update.
3209 * f-valprint.c (info_common_command_for_block)
3210 (info_common_command): Update.
3211 * dwarf2loc.c (dwarf2_find_location_expression)
3212 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3213 (locexpr_describe_location_piece): Update.
3214 * c-exp.y (%union) <bval>: Now const.
3215 * breakpoint.c (resolve_sal_pc): Update.
3216 * blockframe.c (get_frame_block):Make return type const.
3217 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3218 (block_innermost_frame): Update.
3219 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3220 (block_for_pc, block_for_pc_sect): Update.
3221 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3223 (block_for_pc_sect, block_for_pc): Make return type const.
3224 * ax-gdb.c (gen_expr): Update.
3225 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3226 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3227 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3228 (ada_read_var_value): Update.
3229 * ada-exp.y (struct name_info) <block>: Now const.
3231 (block_lookup): Constify.
3233 2014-06-18 Gary Benson <gbenson@redhat.com>
3235 * nat/i386-dregs.h: New file.
3236 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3237 * i386-nat.h (i386-dregs.h): New include.
3238 (DR_FIRSTADDR): Now in i386-dregs.h.
3239 (DR_LASTADDR): Likewise.
3240 (DR_NADDR): Likewise.
3241 (DR_STATUS): Likewise.
3242 (DR_CONTROL): Likewise.
3243 (i386_debug_reg_state): Likewise.
3244 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3246 2014-06-18 Don Breazeal <donb@codesourcery.com>
3248 * breakpoint.c (set_longjmp_breakpoint): Call
3249 momentary_breakpoint_from_master with additional argument.
3250 (set_longjmp_breakpoint_for_call_dummy): Call
3251 momentary_breakpoint_from_master with additional argument.
3252 (set_std_terminate_breakpoint): Call
3253 momentary_breakpoint_from_master with additional argument.
3254 (momentary_breakpoint_from_master): Add argument to function
3255 definition and use it to initialize structure member flag.
3256 (clone_momentary_breakpoint): Call
3257 momentary_breakpoint_from_master with additional argument.
3258 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3259 member flags set in momentary_breakpoint_from_master.
3261 2014-06-18 Gary Benson <gbenson@redhat.com>
3263 * i386-nat.c (i386_show_dr): Renamed to
3264 i386_dr_show and made nonstatic. All uses updated.
3265 (i386_length_and_rw_bits): Renamed to
3266 i386_dr_length_and_rw_bits and made nonstatic.
3268 (i386_insert_aligned_watchpoint): Renamed to
3269 i386_dr_insert_aligned_watchpoint and made nonstatic.
3271 (i386_remove_aligned_watchpoint): Renamed to
3272 i386_dr_remove_aligned_watchpoint and made nonstatic.
3274 (i386_update_inferior_debug_regs): Renamed to
3275 i386_dr_update_inferior_debug_regs and made nonstatic.
3278 2014-06-18 Gary Benson <gbenson@redhat.com>
3280 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3281 (i386_dr_low_can_set_control): Likewise.
3282 (i386_dr_low_set_addr): Likewise.
3283 (i386_dr_low_set_control): Likewise.
3284 (i386_dr_low_get_addr): Likewise.
3285 (i386_dr_low_get_status): Likewise.
3286 (i386_dr_low_get_control): Likewise.
3287 (i386_insert_aligned_watchpoint): Use new macros.
3288 (i386_update_inferior_debug_regs): Likewise.
3289 (i386_stopped_data_address): Likewise.
3291 2014-06-18 Gary Benson <gbenson@redhat.com>
3293 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3294 New parameter. All uses updated.
3296 2014-06-18 Gary Benson <gbenson@redhat.com>
3298 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3301 2014-06-18 Gary Benson <gbenson@redhat.com>
3303 * i386-nat.c (debug_printf): New macro.
3304 (i386_get_debug_register_length): Likewise.
3305 (TARGET_HAS_DR_LEN_8): Use above macro.
3306 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3307 and printf_unfiltered. Use phex to format values.
3309 2014-06-18 Gary Benson <gbenson@redhat.com>
3311 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3314 2014-06-18 Gary Benson <gbenson@redhat.com>
3316 * i386-nat.c: Comment changes.
3318 2014-06-18 Gary Benson <gbenson@redhat.com>
3320 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3322 2014-06-18 Gary Benson <gbenson@redhat.com>
3324 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3325 (i386_insert_aligned_watchpoint): Likewise.
3326 (i386_remove_aligned_watchpoint): Likewise.
3327 (i386_handle_nonaligned_watchpoint): Likewise.
3329 2014-06-18 Gary Benson <gbenson@redhat.com>
3331 * i386-nat.c: Whitespace changes.
3333 2014-06-17 Samuel Bronson <naesten@gmail.com>
3335 * MAINTAINERS: Update Roland McGrath's email address.
3336 Thanks to Sergio Durigan Junior for pointing out that he left
3337 Red Hat a while ago, and giving me a current address.
3339 2014-06-17 Tom Tromey <tromey@redhat.com>
3341 * utils.h (savestring): Remove declaration.
3343 2014-06-17 Tom Tromey <tromey@redhat.com>
3345 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3347 2014-06-16 Keith Seitz <keiths@redhat.com>
3350 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3351 to update the varobj if inferior_ptid is null_ptid.
3353 2014-06-16 Tom Tromey <tromey@redhat.com>
3355 * target.h (struct target_ops) <to_info_proc>: Make parameter
3357 (target_info_proc): Update.
3358 * target.c (target_info_proc): Make "args" const.
3359 * procfs.c (procfs_info_proc): Update.
3360 * linux-tdep.c (linux_info_proc): Update.
3361 (linux_core_info_proc_mappings): Make "args" const.
3362 (linux_core_info_proc): Update.
3363 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3364 * gdbarch.c: Rebuild.
3365 * gdbarch.h: Rebuild.
3366 * corelow.c (core_info_proc): Update.
3368 2014-06-16 Tom Tromey <tromey@redhat.com>
3370 * target.h (struct target_ops) <to_disconnect>: Make parameter
3372 (target_disconnect): Update.
3373 * target.c (target_disconnect): Make "args" const.
3374 * target-delegates.c: Rebuild.
3375 * remote.c (remote_disconnect): Update.
3376 * record.h (record_disconnect): Update.
3377 * record.c (record_disconnect): Update.
3378 * inf-child.c (inf_child_disconnect): Update.
3380 2014-06-16 Tom Tromey <tromey@redhat.com>
3382 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3383 * target.c (debug_to_rcmd, default_rcmd): Update.
3384 * target-delegates.c: Rebuild.
3385 * remote.c (remote_rcmd): Update.
3386 * monitor.c (monitor_rcmd): Update.
3388 2014-06-16 Pedro Alves <palves@redhat.com>
3390 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3391 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3392 have OBJF_SHARED set.
3393 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3394 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3395 instead of OBJF_USERLOADED.
3396 * objfiles.h (OBJF_SHARED): Update comment.
3397 (userloaded_objfile_contains_address_p): Rename to ...
3398 (shared_objfile_contains_address_p): ... this, and update
3400 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3402 (remove_symbol_file_command): Skip objfiles that don't have
3405 2014-06-16 Tom Tromey <tromey@redhat.com>
3407 * minsyms.h (prim_record_minimal_symbol)
3408 (prim_record_minimal_symbol_and_info): Update comments.
3410 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3412 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3413 or --without-guile, according to how GDB was built.
3415 2014-06-13 Tom Tromey <tromey@redhat.com>
3417 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3419 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3421 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3423 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3424 help_list.Pass all_commands, not -1, to help_list.
3425 * cli/cli-dump.c (dump_command, append_command)
3426 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3427 (binary_dump_command, binary_append_command): Pass all_commands,
3428 not -1, to help_list.
3429 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3431 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3433 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3435 * top.c (set_history): Pass all_commands, not -1, to help_list.
3436 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3437 all_commands, not -1, to help_list.
3438 * symfile.c (overlay_command): Pass all_commands, not -1, to
3440 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3442 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3444 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3446 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3447 not -1, to help_list.
3448 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3449 not -1, to help_list.
3450 * maint.c (maintenance_command, maintenance_info_command)
3451 (maintenance_print_command, maintenance_set_cmd): Pass
3452 all_commands, not -1, to help_list.
3453 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3455 * language.c (set_check): Pass all_commands, not -1, to help_list.
3456 * infcmd.c (unset_command): Pass all_commands, not -1, to
3458 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3460 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3462 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3464 * breakpoint.c (save_command): Pass all_commands, not -1, to
3466 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3467 all_commands, not -1, to help_list.
3469 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3471 * regcache.c (struct register_to_invalidate): New structure.
3472 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3474 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3476 2014-06-12 Yao Qi <yao@codesourcery.com>
3478 * varobj.c (varobj_get_num_children): Call
3479 varobj_is_dynamic_p.
3480 (varobj_list_children): Likewise.
3481 (varobj_update): Likewise. Update comments.
3483 2014-06-12 Yao Qi <yao@codesourcery.com>
3485 * varobj.c (varobj_pretty_printed_p): Rename to ...
3486 (varobj_is_dynamic_p): ... this. New function.
3487 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3488 (varobj_is_dynamic_p): Declare.
3489 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3490 (mi_print_value_p, varobj_update_one): Likewise.
3492 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3493 Yao Qi <yao@codesourcery.com>
3495 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3496 (varobj_get_iterator): Wrap up code for pretty-printer by
3497 "#if HAVE_PYTHON" and "#endif".
3498 (update_dynamic_varobj_children): Likewise.
3500 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3501 Yao Qi <yao@codesourcery.com>
3503 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3504 gdb_python_initialized is false. Move some code from varobj.c.
3505 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3506 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3507 (struct varobj_item): Moved to varobj-iter.h".
3508 (varobj_clear_saved_item): New function.
3509 (update_dynamic_varobj_children): Move python-related code to
3511 (free_variable): Call varobj_clear_saved_item and
3514 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3515 Yao Qi <yao@codesourcery.com>
3517 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3518 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3519 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3520 (py-varobj.o): New rule.
3521 * python/py-varobj.c: New file.
3522 * python/python-internal.h (py_varobj_get_iterator): Declare.
3523 * varobj-iter.h: New file.
3524 * varobj.c: Include "varobj-iter.h"
3525 (struct varobj) <child_iter>: Change its type from "PyObject *"
3526 to "struct varobj_iter *".
3527 <saved_item>: Likewise.
3528 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3529 [HAVE_PYTHON] (varobj_get_iterator): New function.
3530 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3531 python-specific code to python/py-varobj.c.
3532 (install_visualizer): Call varobj_iter_delete instead of
3534 * varobj.h (varobj_ensure_python_env): Declare.
3536 2014-06-12 Yao Qi <yao@codesourcery.com>
3538 * varobj.c (struct varobj_item): New structure.
3539 (create_child_with_value): Update declaration.
3540 (varobj_add_child): Replace arguments 'name' and 'value' with
3541 'item'. All callers updated.
3542 (install_dynamic_child): Likewise.
3543 (update_dynamic_varobj_children): Likewise.
3544 (varobj_add_child): Likewise.
3545 (create_child_with_value): Likewise.
3547 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3549 * NEWS: Create a new section for the next release branch.
3550 Rename the section of the current branch, now that it has
3553 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3555 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3556 * version.in: Bump version to 7.8.50.DATE-cvs.
3558 2014-06-11 Pedro Alves <palves@redhat.com>
3561 * ser-mingw.c (net_windows_socket_check_pending): New function.
3562 (net_windows_select_thread): Ignore spurious wakeups. Use
3563 net_windows_socket_check_pending.
3564 (net_windows_wait_handle): Check for pending events with
3565 ioctlsocket, through net_windows_socket_check_pending, instead of
3566 checking the socket's event.
3568 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3570 * python/python-internal.h (gdb_PyObject_GetAttrString)
3571 (gdb_PyObject_HasAttrString): New inline function definitions.
3572 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3573 char * of the second argument to PyObject_GetAttrString.
3575 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3577 * serial.c (serial_write): Fix index of character to be printed
3578 in call to serial_logchar when serial debug traces are enabled.
3580 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3582 * gdbtypes (resolve_dynamic_range): Add function description.
3584 2014-06-09 Pedro Alves <palves@redhat.com>
3586 * linux-nat.c (linux_child_follow_fork): Initialize status with
3587 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3588 inner block. Only pass the signal to PTRACE_DETACH if in pass
3591 2014-06-09 Gary Benson <gbenson@redhat.com>
3593 * common/signals.c (gdb_signal_from_host): Reorder to separate
3594 the always-available ANSI-standard signals from the signals that
3596 (do_gdb_signal_to_host): Likewise.
3597 * proc-events.c (signal_table): Likewise.
3599 2014-06-08 Hui Zhu <hui@codesourcery.com>
3601 * common/linux-ptrace.c (linux_disable_event_reporting): New
3603 * common/linux-ptrace.h (linux_disable_event_reporting): New
3605 * linux-nat.c (linux_child_follow_fork): Do a single step before
3608 2014-06-07 Keith Seitz <keiths@redhat.com>
3612 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3613 from symbol_matches_domain in symtab.c. All local callers
3614 of symbol_matches_domain updated.
3615 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3616 search STRUCT_DOMAIN.
3617 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3618 independently. standard_lookup will do that automatically.
3619 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3620 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3621 (cp_lookup_symbol_in_namespace): Likewise.
3622 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3623 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3624 may return a STRUCT_DOMAIN match.
3625 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3626 * cp-support.c: Include language.h.
3627 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3629 * psymtab.c (match_partial_symbol): Compare the requested
3630 domain with the symbol's domain directly.
3631 (lookup_partial_symbol): Likewise.
3632 * symtab.c (lookup_symbol_in_language): Explain when/why
3633 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3634 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3635 appropriate languages.
3636 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3637 and moved to ada-lang.c
3638 (lookup_block_symbol): Explain that this function only returns
3639 symbol matching the requested DOMAIN.
3640 Compare the requested domain with the symbol's domain directly.
3641 (iterate_over_symbols): Compare the requested domain with the
3642 symbol's domain directly.
3643 * symtab.h (symbol_matches_domain): Remove.
3645 2014-06-06 Doug Evans <xdje42@gmail.com>
3647 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3648 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3649 (gdbscm_guile_version_is_at_least): Declare.
3650 (gdbscm_scm_string_to_int): Declare.
3651 * guile/guile.c (gdbscm_guile_major_version): New global.
3652 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3653 (guile_datadir): New static global.
3654 (gdbscm_guile_data_directory): New function.
3655 (initialize_scheme_side): Update.
3656 (misc_guile_functions): Add guile-data-directory.
3657 (initialize_gdb_module): Fetch guile version number.
3658 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3659 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3660 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3661 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3663 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3664 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3665 * guile/scm-value.c (gdbscm_value_to_string): Only call
3666 scm_port_conversion_strategy if Guile version >= 2.0.6.
3668 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3670 * main.c (print_gdb_help): Add -q and --silent.
3672 2014-06-06 Gary Benson <gbenson@redhat.com>
3674 * common/signals.c: Remove preprocessor conditionals for
3675 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3676 SIGSEGV and SIGTERM.
3677 * proc-events.c: Likewise.
3679 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3681 * symfile.c (symfile_free_objfile): Remove restriction to
3683 * symfile-mem.c (symbol_file_add_from_memory): Call
3684 add_target_sections_of_objfile.
3686 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3688 * guile/scm-value.c (gdbscm_history_append_x): Use
3689 'vlscm_get_value_smob_arg_unsafe' instead of
3690 'vlscm_scm_to_value'.
3692 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3695 * utils.c (printchar): Don't escape at all if quoter is NUL.
3696 Update function documentation to clarify effect of parameter
3698 * remote.c (escape_buffer): Pass '\\' as the quoter to
3699 fputstrn_unfiltered.
3700 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3701 generate the output.
3702 (mi_solib_unloaded): Same.
3704 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3706 * development.sh: Delete.
3707 * Makefile.in (config.status): Adjust dependency on development.sh.
3708 * configure.ac: Adjust development.sh source call.
3709 * configure: Regenerate.
3711 2014-06-04 Doug Evans <xdje42@gmail.com>
3713 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3714 is_scheme_bkpt, spec.
3715 (bpscm_make_breakpoint_smob): Initialize new members.
3716 (gdbscm_create_breakpoint_x): Split into two ...
3717 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3718 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3719 (scheme_function breakpoint_functions): Update.
3720 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3721 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3722 register-breakpoint!.
3724 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3727 * mem-break.c (z_type_supported): Return zero if
3728 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3730 2014-06-04 Tom Tromey <tromey@redhat.com>
3732 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3733 value_from_contents_and_address_unresolved.
3734 (ada_template_to_fixed_record_type_1): Likewise.
3735 (ada_which_variant_applies): Likewise.
3736 * value.h (value_from_contents_and_address_unresolved): Declare.
3737 * value.c (value_from_contents_and_address_unresolved): New
3739 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3740 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3741 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3743 2014-06-04 Tom Tromey <tromey@redhat.com>
3745 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3747 2014-06-04 Tom Tromey <tromey@redhat.com>
3749 * procfs.c (procfs_attach): Make "args" const.
3750 * windows-nat.c (windows_attach): Make "args" const.
3751 * nto-procfs.c (procfs_attach): Make "args" const.
3752 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3753 * go32-nat.c (go32_attach): Make "args" const.
3754 * gnu-nat.c (gnu_attach): Make "args" const.
3755 * darwin-nat.c (darwin_attach): Make "args" const.
3756 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3757 * linux-nat.c (linux_nat_attach): Make "args" const.
3758 * remote.c (extended_remote_attach_1, extended_remote_attach):
3760 * target.h (struct target_ops) <to_attach>: Make "args" const.
3761 (find_default_attach): Likewise.
3762 * utils.c (parse_pid_to_attach): Make "args" const.
3763 * utils.h (parse_pid_to_attach): Update.
3765 2014-06-04 Tom Tromey <tromey@redhat.com>
3767 * target-delegates.c: Rebuild.
3768 * target.c (default_thread_address_space): New function.
3769 (target_thread_address_space): Simplify.
3770 * target.h (struct target_ops) <to_thread_address_space>: Add
3771 TARGET_DEFAULT_FUNC.
3773 2014-06-04 Doug Evans <xdje42@gmail.com>
3775 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3777 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3779 * record-btrace.c: Include event-loop.h and inf-loop.h.
3780 (record_btrace_resume_exec_dir)
3781 (record_btrace_async_inferior_event_handler)
3782 (record_btrace_handle_async_inferior_event): New.
3783 (record_btrace_open): Create async event handler.
3784 (record_btrace_close): Delete async event handler.
3785 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3786 Mark async event handler.
3787 (record_btrace_execution_direction): New.
3788 (init_record_btrace_ops): Initialize to_execution_direction.
3790 2014-06-03 Doug Evans <xdje42@gmail.com>
3792 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3793 (gdbscm_make_parameter): Ditto.
3795 2014-06-03 Doug Evans <dje@google.com>
3797 * exec.c (exec_close_1): Call clear_section_table instead of
3798 resize_section_table.
3799 (clear_section_table): New function.
3800 (resize_section_table): Make static. Rename arg num_added to
3802 * exec.h (clear_section_table): Declare.
3803 (resize_section_table): Delete.
3804 * progspace.c (release_program_space): Call clear_section_table
3805 instead of resize_section_table.
3807 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3809 * NEWS (Python Scripting): Add entry about the new xmethods
3812 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3814 * python/py-xmethods.c: New file.
3815 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3816 (objfpy_dealloc): XDECREF on the new xmethods field.
3817 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3819 (objfpy_get_xmethods): New function.
3820 (objfile_getset): New entry 'xmethods'.
3821 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3822 (pspy_dealloc): XDECREF on the new xmethods field.
3823 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3825 (pspy_get_xmethods): New function.
3826 (pspace_getset): New entry 'xmethods'.
3827 * python/python-internal.h: Add declarations for new functions.
3828 * python/python.c (_initialize_python): Invoke
3829 gdbpy_initialize_xmethods.
3830 * python/lib/gdb/__init__.py (xmethods): New
3832 * python/lib/gdb/xmethod.py: New file.
3833 * python/lib/gdb/command/xmethods.py: New file.
3835 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3837 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3838 best match method returned by find_overload_match is an xmethod.
3839 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3840 the best matching operator returned by find_overload_match is an
3842 * valops.c: #include "extension.h".
3843 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3844 Return void. The list of matching source methods is returned in
3845 "fn_list" and a vector of matching debug method workers is
3846 returned in "xm_worker_vec". Update all callers.
3847 (value_find_oload_method_list): Likewise.
3848 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3849 non-NULL, then the index of the best matching method in this
3850 vector is returned. Update all callers.
3851 (find_overload_match): Include xmethods while performing overload
3854 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3856 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3857 * extension-priv.h (struct extension_language_ops): Add the
3859 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3860 get_matching_xmethod_workers, get_xmethod_argtypes,
3861 invoke_xmethod, free_xmethod_worker,
3862 free_xmethod_worker_vec): New functions.
3863 * extension.h: #include "common/vec.h".
3864 New function declarations.
3865 (struct xmethod_worker): New struct.
3866 (VEC (xmethod_worker_ptr)): New vector type.
3867 (xmethod_worker_ptr): New typedef.
3868 (xmethod_worker_vec): Likewise.
3869 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3871 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3872 (struct builtin_type): New field "xmethod".
3873 * valarith.c (value_ptradd): Assert that the value argument is not
3875 * valops.c (value_must_coerce_to_target): Return 0 for
3876 lval_xcallable values.
3877 * value.c (struct value): New field XM_WORKER in the field
3879 (value_address, value_raw_address): Return 0 for lval_xcallable
3881 (set_value_address): Assert that the value is not an
3883 (value_free): Free the associated xmethod worker when freeing
3884 lval_xcallable values.
3885 (set_value_component_location): Assert that the WHOLE value is not
3887 (value_of_xmethod, call_xmethod): New functions.
3888 * value.h: Declare "struct xmethod_worker".
3889 Declare new functions value_of_xmethod, call_xmethod.
3891 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3892 Pedro Alves <palves@redhat.com>
3894 PR breakpoints/17000
3895 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3896 New function, extracted from software_breakpoint_inserted_here_p.
3897 (software_breakpoint_inserted_here_p): Replace factored out code
3898 by call to find_non_raw_software_breakpoint_inserted_here.
3899 (bp_target_info_copy_insertion_state): New function.
3900 (bkpt_insert_location): Handle the case of a single-step
3901 breakpoint already inserted at the same address.
3902 (bkpt_remove_location): Handle the case of a single-step
3903 breakpoint still inserted at the same address.
3904 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3905 breakpoint already inserted at the same address.
3906 (deprecated_remove_raw_breakpoint): Handle the case of a
3907 non-raw breakpoint still inserted at the same address.
3908 (find_single_step_breakpoint): New function, extracted from
3909 single_step_breakpoint_inserted_here_p.
3910 (find_single_step_breakpoint): New function,
3911 factored out from single_step_breakpoint_inserted_here_p.
3912 (single_step_breakpoint_inserted_here_p): Reimplement.
3914 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3916 Pushed by Joel Brobecker <brobecker@adacore.com>
3917 * source.c (show_substitute_path_command): Fix display of matching
3920 2014-06-03 Gary Benson <gbenson@redhat.com>
3922 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3924 2014-06-02 Doug Evans <xdje42@gmail.com>
3926 Add parameter support for Guile.
3927 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3928 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3929 (scm-param.o): New rule.
3930 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3931 (gdbscm_misc_error): Declare.
3932 (gdbscm_canonicalize_command_name): Declare.
3933 (gdbscm_scm_to_host_string): Declare.
3934 (gdbscm_scm_from_host_string): Declare.
3935 (gdbscm_initialize_parameters): Declare.
3936 * guile/guile.c (initialize_gdb_module): Call
3937 gdbscm_initialize_parameters.
3938 * guile/lib/gdb.scm: Export parameter symbols.
3939 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3940 cmdscm_canonicalize_name and made public. All callers updated.
3941 * guile/scm-exception.c (gdbscm_misc_error): New function.
3942 * guile/scm-param.c: New file.
3943 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3944 (gdbscm_scm_to_host_string): New function.
3945 (gdbscm_scm_from_host_string): New function.
3946 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3948 2014-06-02 Doug Evans <xdje42@gmail.com>
3950 Add command support for Guile.
3951 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3952 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3953 (scm-cmd.o): New rule.
3954 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3955 (gdbscm_user_error_p): Declare.
3956 (gdbscm_parse_command_name): Declare.
3957 (gdbscm_valid_command_class_p): Declare.
3958 (gdbscm_initialize_commands): Declare.
3959 * guile/guile.c (initialize_gdb_module): Call
3960 gdbscm_initialize_commands.
3961 * guile/lib/gdb.scm: Export command symbols.
3962 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3963 (throw-user-error): New function.
3964 * guile/scm-cmd.c: New file.
3965 * guile/scm-exception.c (user_error_symbol): New static global.
3966 (gdbscm_user_error_p): New function.
3967 (gdbscm_initialize_exceptions): Set user_error_symbol.
3968 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3970 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3972 * top.c (command_loop): Handle comments here...
3973 (command_line_input): ... not here.
3975 2014-06-02 Doug Evans <xdje42@gmail.com>
3977 Add progspace support for Guile.
3978 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3979 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3980 (scm-progspace.o): New rule.
3981 * guile/guile-internal.h (pspace_smob): New typedef.
3982 (psscm_pspace_smob_pretty_printers): Declare.
3983 (psscm_pspace_smob_from_pspace): Declare.
3984 (psscm_scm_from_pspace): Declare.
3985 * guile/guile.c (initialize_gdb_module): Call
3986 gdbscm_initialize_pspaces.
3987 * guile/lib/gdb.scm: Export progspace symbols.
3988 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3990 (append-pretty-printer!): Ditto.
3991 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3993 * guile/scm-progspace.c: New file.
3995 2014-06-03 Alan Modra <amodra@gmail.com>
3997 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3998 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4000 2014-06-02 Doug Evans <dje@google.com>
4002 Add support for skeletonless type units.
4003 * dwarf2read.c (struct dwarf2_per_objfile): New member
4004 n_allocated_type_units.
4005 (struct dwarf2_per_objfile) <tu_stats>: New member
4006 nr_all_type_units_reallocs.
4007 (create_signatured_type_table_from_index): Initialize
4008 n_allocated_type_units
4009 (create_all_type_units): Ditto.
4010 (add_type_unit): Move up in file. New arg slot.
4011 All callers updated. Increase space for all_type_units more
4013 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4014 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4015 (lookup_dwp_signatured_type): Ditto.
4016 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4017 All callers updated.
4018 (build_type_psymtabs_1): Leave type_unit_groups as
4019 NULL if no TUs present.
4020 (print_tu_stats): New function.
4021 (process_skeletonless_type_unit): New function.
4022 (process_dwo_file_for_skeletonless_type_units): New
4024 (process_skeletonless_type_units): New function.
4025 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4026 Call print tu_stats if debugging enabled.
4028 2014-06-02 Pedro Alves <palves@redhat.com>
4030 * breakpoint.c (build_target_command_list): Don't build a command
4031 list if we have any duplicate location that isn't a dprintf.
4033 2014-06-02 Pedro Alves <palves@redhat.com>
4035 * breakpoint.c (dprintf_breakpoint_hit): New function.
4036 (initialize_breakpoint_ops): Install it as dprintf's
4037 breakpoint_hit method.
4039 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4041 * source.c (substitute_path_rule_matches): Simplify using
4042 filename_ncmp instead of FILENAME_CMP.
4044 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4046 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4048 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4050 * configure.ac: When Guile is available, check for the
4051 availability of 'scm_new_smob'.
4052 * configure, config.h.in: Regenerate.
4053 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4056 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4058 * frame.c (struct frame_info): Add stop_string field.
4059 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4060 (get_prev_frame_always): Old content moved into
4061 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4062 TRY_CATCH, handle MEMORY_ERROR exceptions.
4063 (frame_stop_reason_string): New function definition.
4064 * frame.h (unwind_stop_reason_to_string): Extend comment to
4065 mention frame_stop_reason_string.
4066 (frame_stop_reason_string): New function declaration.
4067 * stack.c (frame_info): Switch to frame_stop_reason_string.
4068 (backtrace_command_1): Switch to frame_stop_reason_string.
4069 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4070 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4071 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4073 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4075 * frame.c (frame_stop_reason_string): Rename to ...
4076 (unwind_stop_reason_to_string): this.
4077 * frame.h (frame_stop_reason_string): Rename to ...
4078 (unwind_stop_reason_to_string): this.
4079 * stack.c (frame_info): Update call to frame_stop_reason_string.
4080 (backtrace_command_1): Likewise.
4081 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4082 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4084 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4086 * frame.c (remove_prev_frame): New function.
4087 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4090 2014-05-29 Pedro Alves <palves@redhat.com>
4092 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4093 and make it const. When a single-step decays to a continue,
4094 clear 'step', not 'hw_step'. Pass whether the caller wanted
4095 to step to user_visible_resume_ptid, not what we ask the
4098 2014-05-29 Pedro Alves <palves@redhat.com>
4100 * infrun.c (process_event_stop_test, handle_step_into_function)
4101 (handle_step_into_function_backward): Adjust.
4102 Don't set the even thread's stop_step and call stop_waiting before
4103 calling end_stepping_range. Instead do that ...
4104 (end_stepping_range): ... here. Take an ecs pointer parameter.
4106 2014-05-29 Pedro Alves <palves@redhat.com>
4108 * infrun.c (stop_stepping): Rename to ...
4109 (stop_waiting): ... this.
4110 (proceed): Update comment.
4111 (process_event_stop_test, handle_inferior_event)
4112 (handle_signal_stop, handle_step_into_function)
4113 (handle_step_into_function_backward): Update.
4115 2014-05-29 Pedro Alves <palves@redhat.com>
4117 * infcall.c (run_inferior_call): Don't check whether the current
4118 thread is running after the proceed call.
4120 2014-05-29 Pedro Alves <palves@redhat.com>
4121 Tom Tromey <tromey@redhat.com>
4123 * NEWS: Mention "maint set target-async", "set mi-async", and that
4124 background execution commands are now always available.
4125 * target.h (target_async_permitted): Update comment.
4126 * target.c (target_async_permitted, target_async_permitted_1):
4128 (set_target_async_command): Rename to ...
4129 (maint_set_target_async_command): ... this.
4130 (show_target_async_command): Rename to ...
4131 (maint_show_target_async_command): ... this.
4132 (_initialize_target): Adjust.
4133 * infcmd.c (prepare_execution_command): Make extern.
4134 * inferior.h (prepare_execution_command): Declare.
4135 * infrun.c (set_observer_mode): Leave target async alone.
4136 * mi/mi-interp.c (mi_interpreter_init): Install
4137 mi_on_sync_execution_done as sync_execution_done observer.
4138 (mi_on_sync_execution_done): New function.
4139 (mi_execute_command_input_handler): Don't print the prompt if we
4140 just started a synchronous command with an async target.
4141 (mi_on_resume): Check sync_execution before printing prompt.
4142 * mi/mi-main.h (mi_async_p): Declare.
4143 * mi/mi-main.c: Include gdbcmd.h.
4144 (mi_async_p): New function.
4145 (mi_async, mi_async_1): New globals.
4146 (set_mi_async_command, show_mi_async_command, mi_async): New
4148 (exec_continue): Call prepare_execution_command.
4149 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4150 (mi_execute_async_cli_command): Use mi_async_p.
4151 (_initialize_mi_main): Install "set mi-async". Make
4152 "target-async" a deprecated alias.
4154 2014-05-29 Pedro Alves <palves@redhat.com>
4156 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4157 (_initialize_cli_interp): Adjust.
4158 * event-loop.c: Include "observer.h".
4159 (start_event_loop): Notify 'command_error' observers instead of
4160 calling display_gdb_prompt. Remove FIXME comment.
4161 * event-top.c (display_gdb_prompt): Remove call into the
4163 * inf-loop.c: Include "observer.h".
4164 (inferior_event_handler): Notify 'command_error' observers instead
4165 of calling display_gdb_prompt.
4166 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4167 observers instead of calling display_gdb_prompt.
4168 * interps.c (interp_set): Don't call display_gdb_prompt.
4169 (current_interp_display_prompt_p): Delete.
4170 * interps.h (interp_prompt_p): Delete declaration.
4171 (interp_prompt_p_ftype): Delete.
4172 (struct interp_procs) <prompt_proc_p>: Delete field.
4173 (current_interp_display_prompt_p): Delete declaration.
4174 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4175 (_initialize_mi_interp): Adjust.
4176 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4177 'command_error' observers.
4178 (tui_on_sync_execution_done, tui_on_command_error): New
4180 (tui_display_prompt_p): Delete.
4181 (_initialize_tui_interp): Adjust.
4183 2014-05-29 Pedro Alves <palves@redhat.com>
4186 * cli/cli-interp.c: Include infrun.h and observer.h.
4187 (cli_uiout, cli_interp): New globals.
4188 (cli_on_signal_received, cli_on_end_stepping_range)
4189 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4191 (cli_interpreter_init): Install them as 'end_stepping_range',
4192 'signal_received' 'signal_exited', 'exited' and 'no_history'
4194 (_initialize_cli_interp): Remove cli_interp local.
4195 * infrun.c (handle_inferior_event): Call the several stop reason
4196 observers instead of printing the stop reason directly.
4197 (end_stepping_range): New function.
4198 (print_end_stepping_range_reason, print_signal_exited_reason)
4199 (print_exited_reason, print_signal_received_reason)
4200 (print_no_history_reason): Make static, and add an uiout
4201 parameter. Print to that instead of to CURRENT_UIOUT.
4202 * infrun.h (print_end_stepping_range_reason)
4203 (print_signal_exited_reason, print_exited_reason)
4204 (print_signal_received_reason print_no_history_reason): New
4206 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4208 <cli_uiout>: New field.
4209 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4210 uiout for CLI output. Install 'signal_received',
4211 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4213 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4214 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4215 (mi_on_no_history): New functions.
4216 (ui_out_free_cleanup): Delete function.
4217 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4218 instead use the one already stored in the MI interpreter data.
4219 (mi_ui_out): Adjust.
4220 * tui/tui-interp.c: Include infrun.h and observer.h.
4221 (tui_interp): New global.
4222 (tui_on_signal_received, tui_on_end_stepping_range)
4223 (tui_on_signal_exited, tui_on_exited)
4224 (tui_on_no_history): New functions.
4225 (tui_init): Install them as 'end_stepping_range',
4226 'signal_received' 'signal_exited', 'exited' and 'no_history'
4228 (_initialize_tui_interp): Delete tui_interp local.
4230 2014-05-29 Pedro Alves <palves@redhat.com>
4233 * linux-nat.c (linux_nat_resume_callback): Rename the second
4234 parameter to 'except'. Skip LP if it points to EXCEPT.
4235 (linux_nat_resume): Don't mark the event lwp as not stopped
4236 before resuming sibling lwps. Instead ask
4237 linux_nat_resume_callback to skip the event lwp. Mark it as not
4238 stopped after actually resuming it.
4239 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4241 (wait_lwp): Mark the lwp as stopped here.
4242 (stop_wait_callback): Mark the lwp as not stopped right after
4243 resuming it. Don't mark lwps as stopped here.
4244 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4245 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4247 2014-05-29 Pedro Alves <palves@redhat.com>
4250 * infrun.c (resume): Determine how much to resume depending on
4251 whether the caller wanted a step, not whether we can hardware step
4252 the target. Mark all threads that we intend to run as running,
4253 unless we're calling an inferior function.
4254 (normal_stop): If the thread is running an infcall, don't finish
4256 * target.c (target_resume): Don't mark threads as running here.
4258 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4260 * serial.c (_initialize_serial): Remove support for
4261 the "set remotebaud" and "show remotebaud" commands.
4262 * NEWS: Add entry documenting the removal of that command.
4264 2014-05-28 Yao Qi <yao@codesourcery.com>
4266 * charset.c: Fix typo in comments.
4268 2014-05-27 Gary Benson <gbenson@redhat.com>
4270 * utils.c (internal_vproblem): Prompt for a bug report.
4272 2014-05-26 Andy Wingo <wingo@igalia.com>
4274 * guile/scm-arch.c (arscm_mark_arch_smob):
4275 * guile/scm-block.c (bkscm_mark_block_smob)
4276 (bkscm_mark_block_syms_progress_smob):
4277 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4278 * guile/scm-exception.c (exscm_mark_exception_smob):
4279 * guile/scm-frame.c (frscm_mark_frame_smob):
4280 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4281 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4282 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4283 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4284 (ppscm_mark_pretty_printer_worker_smob):
4285 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4286 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4287 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4288 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4290 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4293 2014-05-26 Andy Wingo <wingo@igalia.com>
4294 Doug Evans <xdje42@gmail.com>
4296 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4297 empty_base_class. All uses updated.
4298 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4299 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4301 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4302 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4303 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4304 (gdbscm_gsmob_has_property_p, add_property_name)
4305 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4306 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4307 (gdb-object-has-property?, gdb-object-properties): Remove.
4308 (gdb-object-kind): Renamed from gsmob-kind.
4310 2014-05-26 Andy Wingo <wingo@igalia.com>
4312 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4313 * configure: Regenerate.
4315 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4317 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4319 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4321 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4322 (replay_memory_access_read_only, replay_memory_access_read_write)
4323 (replay_memory_access_types, replay_memory_access)
4324 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4325 (cmd_set_record_btrace, cmd_show_record_btrace)
4326 (cmd_show_replay_memory_access): New.
4327 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4328 (record_btrace_remove_breakpoint): Replace
4329 record_btrace_allow_memory_access with replay_memory_access.
4330 (_initialize_record_btrace): Add commands.
4331 * NEWS: Announce it.
4333 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4335 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4337 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4339 * MAINTAINERS (Write After Approval): Move self back from
4342 2014-05-22 Pedro Alves <palves@redhat.com>
4344 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4345 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4346 (disable_randomization, enum exec_direction_kind)
4347 (execution_direction, stop_registers, start_remote)
4348 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4349 (wait_for_inferior, normal_stop, get_last_target_status)
4350 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4351 (insert_step_resume_breakpoint_at_sal)
4352 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4353 (set_step_info, print_stop_event, signal_stop_state)
4354 (signal_print_state, signal_pass_state, signal_stop_update)
4355 (signal_print_update, signal_pass_update)
4356 (update_signals_program_target, clear_exit_convenience_vars)
4357 (displaced_step_dump_bytes, update_observer_mode)
4358 (signal_catch_update, gdb_signal_from_command): Move
4360 * infrun.h: ... to this new file.
4361 * amd64-tdep.c: Include infrun.h.
4362 * annotate.c: Include infrun.h.
4363 * arch-utils.c: Include infrun.h.
4364 * arm-linux-tdep.c: Include infrun.h.
4365 * arm-tdep.c: Include infrun.h.
4366 * break-catch-sig.c: Include infrun.h.
4367 * breakpoint.c: Include infrun.h.
4368 * common/agent.c: Include infrun.h instead of inferior.h.
4369 * corelow.c: Include infrun.h.
4370 * event-top.c: Include infrun.h.
4371 * go32-nat.c: Include infrun.h.
4372 * i386-tdep.c: Include infrun.h.
4373 * inf-loop.c: Include infrun.h.
4374 * infcall.c: Include infrun.h.
4375 * infcmd.c: Include infrun.h.
4376 * infrun.c: Include infrun.h.
4377 * linux-fork.c: Include infrun.h.
4378 * linux-nat.c: Include infrun.h.
4379 * linux-thread-db.c: Include infrun.h.
4380 * monitor.c: Include infrun.h.
4381 * nto-tdep.c: Include infrun.h.
4382 * procfs.c: Include infrun.h.
4383 * record-btrace.c: Include infrun.h.
4384 * record-full.c: Include infrun.h.
4385 * remote-m32r-sdi.c: Include infrun.h.
4386 * remote-mips.c: Include infrun.h.
4387 * remote-notif.c: Include infrun.h.
4388 * remote-sim.c: Include infrun.h.
4389 * remote.c: Include infrun.h.
4390 * reverse.c: Include infrun.h.
4391 * rs6000-tdep.c: Include infrun.h.
4392 * s390-linux-tdep.c: Include infrun.h.
4393 * solib-irix.c: Include infrun.h.
4394 * solib-osf.c: Include infrun.h.
4395 * solib-svr4.c: Include infrun.h.
4396 * target.c: Include infrun.h.
4397 * top.c: Include infrun.h.
4398 * windows-nat.c: Include infrun.h.
4399 * mi/mi-interp.c: Include infrun.h.
4400 * mi/mi-main.c: Include infrun.h.
4401 * python/py-threadevent.c: Include infrun.h.
4403 2014-05-22 Pedro Alves <palves@redhat.com>
4405 * infrun.c (handle_inferior_event): Store the exit code for
4406 --return-child-result here, instead of ...
4407 (print_exited_reason): ... here.
4409 2014-05-21 Pedro Alves <palves@redhat.com>
4412 * gdbthread.h (struct thread_control_state): New field
4414 * infrun.c (follow_fork): Copy the new thread control field to the
4416 (clear_proceed_status_thread): Clear the new thread control field.
4417 (proceed): Set the new thread control field.
4418 * interps.h (command_interp): Declare.
4419 * interps.c (command_interpreter): New global.
4420 (command_interp): New function.
4421 (interp_exec): Set `command_interpreter' while here.
4422 * cli-out.c (cli_uiout_dtor): New function.
4423 (cli_ui_out_impl): Install it.
4424 * mi/mi-interp.c: Include cli-out.h.
4425 (mi_cmd_interpreter_exec): Add comment.
4426 (restore_current_uiout_cleanup): New function.
4427 (ui_out_free_cleanup): New function.
4428 (mi_on_normal_stop): If finishing an execution command started by
4429 a CLI command, or any kind of breakpoint-like event triggered,
4430 print the stop event to the output (CLI) stream.
4431 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4433 2014-05-21 Pedro Alves <palves@redhat.com>
4435 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4436 current source line having changed.
4437 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4438 * infrun.c (normal_stop): Adjust call to
4439 set_current_sal_from_frame.
4440 * source.c (clear_lines_listed_range): New function.
4441 (set_current_source_symtab_and_line, identify_source_line): Clear
4442 the lines listed range.
4443 (line_info): Handle the first "info line" after the current source
4444 line having changed.
4445 * stack.c (print_stack_frame): Remove center handling.
4446 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4449 2014-05-21 Pedro Alves <palves@redhat.com>
4451 * inf-child.c (inf_child_mourn_inferior): New function.
4452 * inf-child.h (inf_child_mourn_inferior): New declaration.
4453 * darwin-nat.c (darwin_mourn_inferior): Use
4454 inf_child_mourn_inferior.
4455 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4456 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4457 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4458 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4459 * windows-nat.c (windows_mourn_inferior): Likewise.
4461 2014-05-21 Doug Evans <xdje42@gmail.com>
4463 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4465 2014-05-21 Doug Evans <xdje42@gmail.com>
4467 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4468 (gdbscm_out_of_range_error): Ditto.
4469 (gdbscm_memory_error): Ditto.
4470 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4471 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4472 (gdbscm_out_of_range_error): Update.
4473 (gdbscm_memory_error): Update.
4474 (gdbscm_scm_to_target_string_unsafe): Delete.
4476 2014-05-21 Pedro Alves <palves@redhat.com>
4478 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4480 (inf_child_open_target): New function.
4481 (inf_child_open): Use inf_child_open_target to push the target
4482 instead of erroring out.
4483 (inf_child_disconnect, inf_child_close)
4484 (inf_child_maybe_unpush_target): New functions.
4485 (inf_child_target): Install inf_child_disconnect and
4486 inf_child_close. Store a pointer to the returned object.
4487 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4489 * target.c (auto_connect_native_target): New global.
4490 (show_default_run_target): New function.
4491 (find_default_run_target): Return NULL if automatically connecting
4492 to the native target is disabled.
4493 (_initialize_target): Install set/show auto-connect-native-target.
4494 * NEWS: Mention "set auto-connect-native-target", and "target
4496 * linux-nat.c (super_close): New global.
4497 (linux_nat_close): Call super_close.
4498 (linux_nat_add_target): Store a pointer to the base class's
4500 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4501 inf_child_maybe_unpush.
4502 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4504 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4505 the inferior. Use inf_child_maybe_unpush_target.
4506 (inf_ttrace_attach): Don't push the target if it is already
4508 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4509 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4510 after mourning the inferior. Use inf_child_maybe_unpush_target.
4511 (darwin_attach_pid): Don't push the target if it is already
4513 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4514 mourning the inferior. Use inf_child_maybe_unpush_target.
4515 (gnu_detach): Use inf_child_maybe_unpush_target.
4516 * go32-nat.c (go32_create_inferior): Don't push the target if it
4518 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4519 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4520 (procfs_open): Rename to ...
4521 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4522 comments. Can target_preopen before changing node. Call
4523 inf_child_open_target to push the target explicitly.
4524 (procfs_attach): Don't push the target if it is already pushed.
4525 (procfs_detach): Use inf_child_maybe_unpush_target.
4526 (procfs_create_inferior): Don't push the target if it is already
4528 (nto_native_ops): New global.
4529 (procfs_open): Reimplement.
4530 (procfs_native_open): New function.
4531 (init_procfs_targets): Install procfs_native_open as to_open of
4532 "target native". Store a pointer to the "native" target in
4534 * procfs.c (procfs_attach): Don't push the target if it is already
4536 (procfs_detach): Use inf_child_maybe_unpush_target.
4537 (procfs_mourn_inferior): Only unpush the target after mourning the
4538 inferior. Use inf_child_maybe_unpush_target.
4539 (procfs_init_inferior): Don't push the target if it is already
4541 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4542 if it is already pushed.
4544 2014-05-21 Pedro Alves <palves@redhat.com>
4546 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4547 and "procfs" targets are now called "native" instead.
4549 2014-05-21 Pedro Alves <palves@redhat.com>
4551 * go32-nat.c (go32_open): Delete.
4552 (go32_target): Don't override the to_open method.
4554 2014-05-21 Pedro Alves <palves@redhat.com>
4556 * nto-procfs.c (procfs_can_run): New function.
4557 (nto_procfs_ops): New global.
4558 (init_procfs_targets): New, based on procfs_target. Install
4559 "target native" in addition to "target procfs".
4560 (_initialize_procfs): Call init_procfs_targets instead of adding
4563 2014-05-21 Pedro Alves <palves@redhat.com>
4565 * windows-nat.c (windows_target): Don't override to_shortname,
4566 to_longname or to_doc.
4568 2014-05-21 Pedro Alves <palves@redhat.com>
4570 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4573 2014-05-21 Pedro Alves <palves@redhat.com>
4575 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4576 to_shortname, to_longname or to_doc.
4578 2014-05-21 Pedro Alves <palves@redhat.com>
4580 * go32-nat.c (go32_target): Don't override to_shortname,
4581 to_longname or to_doc.
4583 2014-05-21 Pedro Alves <palves@redhat.com>
4585 * inf-child.c (inf_child_open): Remove mention of "child".
4586 (inf_child_target): Rename target to "native" instead of "child".
4588 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4590 * Makefile.in (SFILES): Delete "regset.c".
4591 (COMMON_OBS): Delete "regset.o".
4593 * regset.h (regset_alloc): Delete prototype.
4595 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4597 * sparc-linux-tdep.c (sparc32_linux_gregset)
4598 (sparc32_linux_fpregset): New static regset structures.
4599 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4600 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4602 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4603 (sparc64_linux_fpregset): New static regset structures.
4604 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4605 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4606 New static regset structures.
4607 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4608 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4609 New static regset structures.
4610 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4611 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4612 New static regset structures.
4613 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4614 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4615 New static regset structures.
4616 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4620 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4621 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4622 register maps ("regmaps") from "*regset" to "*regmap". Do this
4623 for all regmap types and variables.
4624 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4625 (sparc32_linux_supply_core_gregset)
4626 (sparc32_linux_collect_core_gregset)
4627 (sparc32_linux_supply_core_fpregset)
4628 (sparc32_linux_collect_core_fpregset): Likewise.
4629 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4630 (sparc_gregmap, sparc_fpregmap): ... these.
4631 (sparc_supply_gregset, sparc_collect_gregset)
4632 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4633 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4634 (_initialize_sparc_nat): Rename regmaps.
4635 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4636 (sparc_gregmap, sparc_fpregmap): ... these.
4637 (sparc_supply_gregset, sparc_collect_gregset)
4638 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4639 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4641 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4642 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4644 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4646 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4647 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4648 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4650 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4651 (sparc32_bsd_fpregset): Rename to...
4652 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4653 (sparc32_bsd_fpregmap): ... these.
4654 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4655 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4656 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4657 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4658 (struct sparc_gregmap, struct sparc_fpregmap)
4659 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4660 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4661 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4662 (sparc32_supply_regset, sparc32_collect_gregset)
4663 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4665 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4666 (sparc64_linux_ptrace_gregmap): ... this.
4667 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4668 (_initialize_sparc64_linux_nat): Rename regmaps.
4669 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4670 (sparc64_linux_core_gregmap): ... this.
4671 (sparc64_linux_supply_core_gregset)
4672 (sparc64_linux_collect_core_gregset)
4673 (sparc64_linux_supply_core_fpregset)
4674 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4675 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4676 (sparc64_sol2_fpregset): Rename to...
4677 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4678 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4679 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4681 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4682 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4683 (sparc64_bsd_fpregset): Rename to...
4684 (struct sparc_gregmap, sparc64_sol2_gregmap)
4685 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4686 (sparc64_bsd_fpregmap): ... these.
4687 (sparc64_supply_gregset, sparc64_collect_gregset)
4688 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4690 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4691 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4692 (sparc64fbsd_gregmap): ... this.
4693 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4694 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4696 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4697 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4698 (sparc64nbsd_collect_fpregset): Likewise.
4699 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4700 (sparc64nbsd_gregmap): ... this.
4701 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4703 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4704 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4705 (sparc64obsd_gregmap): ... this.
4706 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4708 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4709 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4710 (sparc32nbsd_gregmap): ... this.
4711 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4714 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4716 * score-tdep.c (score7_linux_gregset): New static regset
4718 (score7_linux_regset_from_core_section): Remove dynamic regset
4720 (score_gdbarch_init): Drop allocation of tdep structure.
4721 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4723 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4725 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4727 (am33_regset_from_core_section): Remove dynamic regset
4730 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4732 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4733 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4735 (mips_linux_regset_from_core_section): Remove dynamic regset
4737 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4738 'gregset64', 'fpregset', and 'fpregset64'.
4739 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4740 deleted tdep fields.
4742 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4744 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4746 (amd64_regset_from_core_section): Remove dynamic regset
4748 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4750 (amd64obsd_regset_from_core_section): Remove dynamic regset
4752 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4754 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4755 x86-common regset supply function.
4756 * i386-tdep.c (i386_collect_gregset): Make static.
4757 (i386_gregset): New global regset structure.
4758 (i386_fpregset, i386_xstateregset): New static regset structures.
4759 (i386_regset_from_core_section): Remove dynamic regset
4761 (i386_gdbarch_init): Remove initialization of tdep fields
4762 'gregset', 'fpregset', and 'xstateregset'.
4763 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4764 'fpregset', and 'xstateregset'.
4765 (i386_collect_gregset): Remove prototype.
4766 (i386_gregset): New declaration.
4767 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4769 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4772 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4774 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4775 (arm_linux_vfpregset): New static regset structures.
4776 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4778 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4779 and 'vfpregset' fields.
4781 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4783 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4784 (aarch64_linux_fpregset): New static regset structures.
4785 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4786 of regset structures.
4787 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4790 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4792 * regset.h (struct regset): Remove gdbarch field.
4793 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4794 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4795 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4797 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4798 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4799 (ppc32_linux_vsxregset): Likewise.
4800 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4801 via the regcache instead of the regset.
4802 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4803 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4804 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4805 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4808 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4810 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4811 Constify structures.
4812 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4813 (alphanbsd_aout_gregset): Likewise.
4814 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4815 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4817 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4818 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4820 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4821 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4822 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4823 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4824 * m88k-tdep.c (m88k_gregset): Likewise.
4825 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4826 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4827 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4828 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4829 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4830 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4831 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4832 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4833 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4835 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4836 * sh-tdep.h (sh_corefile_gregset): Likewise.
4837 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4838 * vax-tdep.c (vax_gregset): Likewise.
4840 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4842 Fix TLS access for -static -pthread.
4843 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4844 (try_thread_db_load_1): Initialize it.
4845 (thread_db_get_thread_local_address): Call it if LM is zero.
4846 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4847 * target.h (struct target_ops) (to_get_thread_local_address): Add
4848 load_module_addr comment.
4850 2014-05-21 Pedro Alves <palves@redhat.com>
4852 * dcache.c (dcache_read_memory_partial): If reading the cache line
4853 fails, fallback to reading just the memory the caller wanted.
4855 2014-05-20 Doug Evans <dje@google.com>
4857 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4858 instead of get_current_arch.
4860 2014-05-20 Pedro Alves <palves@redhat.com>
4862 * NEWS: Mention that compare-sections now works with all targets.
4864 * remote.c (PACKET_qCRC): New enum value.
4865 (remote_verify_memory): Don't send qCRC if the target has no
4866 execution. Use packet_support/packet_ok. If the target doesn't
4867 support the qCRC packet, fallback to a deep memory copy.
4868 (compare_sections_command): Say "target image" instead of "remote
4870 (_initialize_remote): Add PACKET_qCRC to the list of config
4871 packets that have no associated command. Extend comment.
4872 * target.c (simple_verify_memory, default_verify_memory): New
4874 * target.h (struct target_ops) <to_verify_memory>: Default to
4875 default_verify_memory.
4876 (simple_verify_memory): New declaration.
4877 * target-delegates.c: Regenerate.
4879 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4881 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4883 2014-05-20 Hui Zhu <hui@codesourcery.com>
4884 Yao Qi <yao@codesourcery.com>
4887 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4888 and change address of sp and pc.
4890 2014-05-19 Tom Tromey <tromey@redhat.com>
4892 * gdbtypes.c (rank_function): Use XNEWVEC.
4893 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4895 2014-05-19 Doug Evans <dje@google.com>
4897 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4898 build_type_unit_groups and moved closer to only caller. Remove
4899 arguments. All references updated. Remove outdated .gdb_index
4901 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4902 build_type_psymtabs_1.
4904 2014-05-19 Doug Evans <dje@google.com>
4906 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4907 n_type_unit_groups, all_type_unit_groups. All uses removed.
4908 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4909 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4910 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4911 (add_type_unit_group_to_table): Delete.
4913 2014-05-19 Doug Evans <dje@google.com>
4915 * eval.c (evaluate_subexp_standard): Add some comments.
4917 2014-05-17 Doug Evans <xdje42@gmail.com>
4919 * progspace.c (remove_program_space): Delete, unused.
4920 * progspace.h (remove_program_space): Ditto.
4922 2014-05-17 Doug Evans <xdje42@gmail.com>
4924 * inferior.c (prune_inferiors): Fix comment.
4925 (remove_inferior_command): Call prune_program_spaces.
4927 2014-05-16 Doug Evans <dje@google.com>
4929 New command line option -D.
4931 * main.c (set_gdb_data_directory): New function.
4932 (captured_main): Recognize -D. Flag error for --data-directory "".
4933 Call set_gdb_data_directory.
4934 (print_gdb_help): Print --data-directory, -D.
4935 * main.h (set_gdb_data_directory): Declare.
4936 * top.c (staged_gdb_datadir): New static global.
4937 (set_gdb_datadir): Call set_gdb_data_directory
4938 (show_gdb_datadir): New function.
4939 (init_main): Update init of data-directory parameter.
4941 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4943 Import the "dirfd" gnulib module.
4944 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4945 * gnulib/aclocal.m4: Update.
4946 * gnulib/config.in: Update.
4947 * gnulib/configure: Update.
4948 * gnulib/import/Makefile.am: Update.
4949 * gnulib/import/Makefile.in: Update.
4950 * gnulib/import/dirfd.c: New.
4951 * gnulib/import/m4/dirfd.m4: New.
4952 * gnulib/import/m4/gnulib-cache.m4: Update.
4953 * gnulib/import/m4/gnulib-comp.m4: Update.
4955 2014-05-16 Pierre Muller <muller@sourceware.org>
4956 Yao Qi <yao@codesourcery.com>
4958 * valprint.c (print_wchar): Move the code on checking whether
4959 W is a printable wide char to the default branch of switch
4960 statement below. Call wchar_printable instead of gdb_iswprint.
4962 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4964 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4965 ldr.w and ldrd instructions.
4967 2014-05-15 Doug Evans <dje@google.com>
4969 * dwarf2read.c (read_structure_type): Delete outdated comments.
4971 2014-05-14 Tom Tromey <tromey@redhat.com>
4973 * macrocmd.c (print_macro_definition): Reindent.
4975 2014-05-13 Doug Evans <xdje42@gmail.com>
4977 * python/py-cmd.c (cmdpy_completer): Add comment.
4978 (completers): Make const.
4980 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4982 * infrun.c (resume): Remove should_resume (unused). Move up
4983 declaration of resume_ptid.
4985 2014-05-13 Tom Tromey <tromey@redhat.com>
4987 * language.h (unop_type_check): Remove.
4988 (binop_type_check): Don't declare.
4990 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4992 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4993 call to regcache_raw_collect.
4995 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4997 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4998 mi_console->quote as the quoting character.
5000 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5002 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5004 2014-04-29 Tom Tromey <tromey@redhat.com>
5006 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5007 "show debug varobj".
5009 2014-05-07 Kyle McMartin <kyle@redhat.com>
5011 Pushed by Joel Brobecker <brobecker@adacore.com>.
5012 * aarch64-tdep.c (aarch64_software_single_step): New function.
5013 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5014 with aarch64_software_single_step.
5016 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5020 2014-05-05 Keith Seitz <keiths@redhat.com>
5022 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5023 variable or history value is successfully parsed.
5025 2014-05-05 Yao Qi <yao@codesourcery.com>
5026 Pedro Alves <palves@redhat.com>
5028 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5029 address of blocks that intersects the requested range. Trim
5030 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5032 * ctf.c (ctf_xfer_partial): Likewise.
5034 2014-05-05 Yao Qi <yao@codesourcery.com>
5036 * printcmd.c (display_command): Remove the check to
5037 target_has_execution.
5039 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5041 * ppcobsd-nat.c: Include "obsd-nat.h".
5042 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5044 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5046 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5048 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5049 and 16-bit signed and unsigned arguments. Update comment.
5050 (stap_parse_probe_arguments): Extend code to handle such
5051 arguments. Use warning instead of complaint to notify about
5052 unrecognized bitness.
5054 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5056 PR breakpoints/16889
5057 * stap-probe.c (stap_parse_probe_arguments): Simplify
5058 check for non-prefixed probes (i.e., probes whose
5059 arguments do not start with "N@"). Always set the
5060 argument type to a sane value.
5062 2014-05-01 David Taylor <dtaylor@emc.com>
5064 * remote.c (compare_sections_command): Add -r option to compare
5065 all loadable read-only sections.
5067 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5069 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5070 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5072 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5073 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5074 Remove unused CORE_ADDR argument. Update all callers.
5076 2014-04-29 Pedro Alves <palves@redhat.com>
5078 * remote.c (struct packet_config) <detect>: Extend comment.
5079 (add_packet_config_cmd): Don't set the config's detect or support
5081 (init_all_packet_configs): Also initialize the config's 'detect'
5083 (reset_all_packet_configs_support): New function.
5084 (remote_open_1): Call reset_all_packet_configs_support instead of
5085 init_all_packet_configs.
5086 (_initialize_remote): Initialize all packet configs. Assert that
5087 all packets have an associated command, except a few known
5090 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5092 * dwarf2read.c (read_subrange_type): Handle dynamic
5093 DW_AT_lower_bound attributes.
5095 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5097 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5098 dynamic bounds before computing its upper bound.
5099 (ada_discrete_type_low_bound): Same as above with the lower bound.
5101 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5103 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5104 range types. Adjust the array handling implementation to
5105 take advantage of this change.
5106 (resolve_dynamic_range): New function, mostly extracted from
5107 resolve_dynamic_bounds.
5108 (resolve_dynamic_array): New function, mostly extracted from
5109 resolve_dynamic_bounds.
5110 (resolve_dynamic_bounds): Delete.
5111 (resolve_dynamic_type): Reimplement. Add handling of
5112 TYPE_CODE_RANGE types.
5114 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5116 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5117 handling of parallel ___XA types.
5119 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5121 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5122 unnecessary second call to static_unwrap_type.
5124 2014-04-27 Hui Zhu <hui@codesourcery.com>
5126 * stack.c (print_frame_info): Call do_gdb_disassembly with
5127 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5129 2014-04-26 Doug Evans <xdje42@gmail.com>
5131 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5133 2014-04-25 Pedro Alves <palves@redhat.com>
5136 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5137 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5138 and newline from built string.
5139 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5140 (linux_ptrace_attach_fail_reason): ... this.
5141 * linux-nat.c (linux_nat_attach): Adjust to use
5142 linux_ptrace_attach_fail_reason.
5144 2014-04-25 Pedro Alves <palves@redhat.com>
5146 * remote.c (struct remote_state): Remove multi_process_aware,
5147 non_stop_aware, cond_tracepoints, cond_breakpoints,
5148 breakpoint_commands, fast_tracepoints, static_tracepoints,
5149 install_in_trace, disconnected_tracing,
5150 enable_disable_tracepoints, string_tracing, and
5151 augmented_libraries_svr4_read fields.
5152 (remote_multi_process_p): Move further below in the file.
5153 (struct packet_config): Add comments.
5154 (update_packet_config): Delete function.
5155 (show_packet_config_cmd): Use packet_config_support.
5156 (add_packet_config_cmd): Use NULL as set callback.
5157 (packet_ok): "set remote foo-packet"-style commands no longer
5158 change config->supported -- adjust.
5159 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5160 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5161 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5162 (PACKET_QNonStop, PACKET_multiprocess_feature)
5163 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5164 (PACKET_DisconnectedTracing_feature)
5165 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5166 (set_remote_protocol_packet_cmd): Delete function.
5167 (packet_config_support, packet_support): New functions.
5168 (set_remote_protocol_Z_packet_cmd): Don't call
5169 update_packet_config.
5170 (remote_query_attached, remote_pass_signals)
5171 (remote_program_signals, remote_threads_info)
5172 (remote_threads_extra_info, remote_start_remote): Use
5174 (remote_start_remote): Use packet_config_support and
5176 (init_all_packet_configs): Set all packets to unknown support,
5177 instead of calling update_packet_config.
5178 (remote_check_symbols): Use packet_support.
5179 (remote_supported_packet): Unconditionally set the packet config's
5181 (remote_multi_process_feature, remote_non_stop_feature)
5182 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5183 (remote_breakpoint_commands_feature)
5184 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5185 (remote_install_in_trace_feature)
5186 (remote_disconnected_tracing_feature)
5187 (remote_enable_disable_tracepoint_feature)
5188 (remote_string_tracing_feature)
5189 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5190 (remote_protocol_features): Adjust to use remote_supported_packet
5191 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5192 "ConditionalTracepoints", "ConditionalBreakpoints",
5193 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5194 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5195 "EnableDisableTracepoints", and "tracenz".
5196 (remote_query_supported): Use packet_support.
5197 (remote_open_1): Adjust.
5198 (extended_remote_attach_1): Use packet_support. Switch on the
5199 result of packet_ok instead of checking whether the packet ended
5201 (remote_vcont_resume): Use packet_support.
5202 (remote_resume, remote_stop_ns, fetch_register_using_p)
5203 (remote_prepare_to_store, store_register_using_P)
5204 (check_binary_download, remote_write_bytes): Use packet_support.
5205 (remote_vkill): Use packet_support. Switch on the result of
5206 packet_ok instead of checking whether the packet ended up
5208 (extended_remote_supports_disable_randomization): Use
5210 (extended_remote_run): Switch on the result of packet_ok instead
5211 of checking whether the packet ended up disabled.
5212 (remote_insert_breakpoint, remote_remove_breakpoint)
5213 (remote_insert_watchpoint, remote_remove_watchpoint)
5214 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5216 (remote_search_memory): Use packet_config_support.
5217 (remote_get_thread_local_address, remote_get_tib_address)
5218 (remote_hostio_send_command, remote_can_execute_reverse): Use
5220 (remote_supports_cond_tracepoints)
5221 (remote_supports_cond_breakpoints)
5222 (remote_supports_fast_tracepoints)
5223 (remote_supports_static_tracepoints)
5224 (remote_supports_install_in_trace)
5225 (remote_supports_enable_disable_tracepoint)
5226 (remote_supports_string_tracing)
5227 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5228 the packet config says the feature is enabled or disabled.
5229 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5230 (remote_get_trace_status): Use packet_support.
5231 (remote_set_disconnected_tracing): Adjust to check whether the
5232 feature is enabled with packet_support.
5233 (remote_set_trace_buffer_size, remote_use_agent)
5234 (remote_can_use_agent, remote_supports_btrace): Use
5236 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5237 Use packet_config_support.
5238 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5239 the packet config says the feature is enabled or disabled.
5240 (set_range_stepping): Use packet_support.
5242 2014-04-25 Tom Tromey <tromey@redhat.com>
5244 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5247 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5249 * NEWS: Mention support for C99 variable length arrays.
5251 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5253 * ada-lang.c (standard_exc): Expand introductory comment.
5255 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5256 Walfred Tedeschi <walfred.tedeschi@intel.com>
5258 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5260 (amd64_linux_read_description): Add code to handle AVX512 xstate
5261 mask and return respective tdesc.
5262 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5263 and features/i386/x32-avx512-linux.c.
5264 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5265 (amd64_linux_core_read_description): Add code to handle AVX512
5266 xstate mask and return respective tdesc.
5267 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5268 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5270 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5271 (tdesc_amd64_avx512_linux): New prototype.
5272 (tdesc_x32_avx512_linux): Likewise.
5273 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5274 features/i386/x32-avx512.c.
5275 (amd64_ymm_avx512_names): New register names for pseudo
5277 (amd64_ymmh_avx512_names): New register names for raw registers
5279 (amd64_k_names): New register names for K registers.
5280 (amd64_zmmh_names): New register names for ZMM raw registers.
5281 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5282 (amd64_xmm_avx512_names): New register names for XMM16-31
5284 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5286 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5287 if feature is present.
5288 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5289 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5290 (AMD64_NUM_REGS): Adjust to new number of registers.
5291 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5292 registers supplied via XSTATE by AVX512 registers.
5293 (i386_linux_read_description): Add case for AVX512.
5294 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5295 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5296 (i386_linux_core_read_description): Add case for AVX512.
5297 (i386_linux_init_abi): Install supported register note section
5299 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5301 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5302 registers to be number of zmm7h + 1.
5303 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5304 * i386-tdep.c: Include features/i386/i386-avx512.c.
5305 (i386_zmm_names): Add ZMM pseudo register names array.
5306 (i386_zmmh_names): Add ZMM raw register names array.
5307 (i386_k_names): Add K raw register names array.
5308 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5309 registers. AVX512 has 16 more ZMM registers than there are YMM
5311 (i386_zmmh_regnum_p): Add function to look up register number of
5313 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5314 (i386_k_regnum_p): Likewise for K raw registers.
5315 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5316 registers added by AVX512.
5317 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5318 registers added by AVX512.
5319 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5321 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5322 (i386_pseudo_register_name): Add ZMM pseudo registers.
5323 (i386_zmm_type): Construct and return vector registers type for ZMM
5325 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5326 ZMM0-31 pseudo registers and K registers.
5327 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5328 and YMM16-31 registers from register cache.
5329 (i386_pseudo_register_write): Add code to write K, ZMM and
5331 (i386_register_reggroup_p): Add code to include/exclude AVX512
5332 registers in/from respective register groups.
5333 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5334 registers if feature is present in xcr0.
5335 (i386_gdbarch_init): Add code to initialize AVX512 feature
5336 variables in tdep structure, wire in pseudo registers and call
5337 initialize_tdesc_i386_avx512.
5338 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5340 (i386_regnum): Add AVX512 registers.
5341 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5342 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5343 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5344 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5346 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5347 (i386_ymm_avx512_regnum_p): Likewise.
5348 (i386_k_regnum_p): Likewise.
5349 (i386_zmm_regnum_p): Likewise.
5350 (i386_zmmh_regnum_p): Likewise.
5351 * i387-tdep.c : Update year in copyright notice.
5352 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5354 (XSAVE_YMM_AVX512_ADDR): New macro.
5355 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5357 (XSAVE_XMM_AVX512_ADDR): New macro.
5358 (xsave_avx512_k_offset): New table for K register offsets in
5360 (XSAVE_AVX512_K_ADDR): New macro.
5361 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5363 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5364 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5366 (i387_collect_xsave): Add code to collect AVX512 registers from
5368 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5369 of XMM16-31 registers.
5370 (I387_NUM_K_REGS): New define for number of K registers.
5371 (I387_K0_REGNUM): New define for K0 register number.
5372 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5373 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5374 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5376 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5377 (I387_XMM16_REGNUM): New define for XMM16 register number.
5378 (I387_YMM0_REGNUM): New define for YMM0 register number.
5379 (I387_KEND_REGNUM): New define for last K register number.
5380 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5381 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5383 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5385 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5387 * features/Makefile: Add AVX512 related files.
5388 * features/i386/32bit-avx512.xml: New file.
5389 * features/i386/64bit-avx512.xml: Likewise.
5390 * features/i386/amd64-avx512-linux.c: Likewise.
5391 * features/i386/amd64-avx512-linux.xml: Likewise.
5392 * features/i386/amd64-avx512.c: Likewise.
5393 * features/i386/amd64-avx512.xml: Likewise.
5394 * features/i386/i386-avx512-linux.c: Likewise.
5395 * features/i386/i386-avx512-linux.xml: Likewise.
5396 * features/i386/i386-avx512.c: Likewise.
5397 * features/i386/i386-avx512.xml: Likewise.
5398 * features/i386/x32-avx512-linux.c: Likewise.
5399 * features/i386/x32-avx512-linux.xml: Likewise.
5400 * features/i386/x32-avx512.c: Likewise.
5401 * features/i386/x32-avx512.xml: Likewise.
5402 * regformats/i386/amd64-avx512-linux.dat: New file.
5403 * regformats/i386/amd64-avx512.dat: Likewise.
5404 * regformats/i386/i386-avx512-linux.dat: Likewise.
5405 * regformats/i386/i386-avx512.dat: Likewise.
5406 * regformats/i386/x32-avx512-linux.dat: Likewise.
5407 * regformats/i386/x32-avx512.dat: Likewise.
5408 * NEWS: Add note about new support for AVX512.
5411 2014-04-23 Pedro Alves <palves@redhat.com>
5413 * breakpoint.c (insert_bp_location): Tolerate errors if the
5414 breakpoint is set in a user-loaded objfile.
5415 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5416 location is marked shlib_disabled. If the breakpoint is set in a
5417 user-loaded objfile is a GDB-side memory breakpoint, validate it
5418 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5419 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5421 * mem-break.c (memory_validate_breakpoint): New function.
5422 * objfiles.c (userloaded_objfile_contains_address_p): New
5424 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5425 * target.h (memory_validate_breakpoint): New declaration.
5427 2014-04-23 Pedro Alves <palves@redhat.com>
5429 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5430 the breakpoint is set in a shared library, only suppress
5431 errors for software breakpoints, not hardware breakpoints.
5433 2014-04-22 Pedro Alves <palves@redhat.com>
5435 * infrun.c (schedlock_applies): New function, factored out from
5436 find_thread_needs_step_over.
5437 (find_thread_needs_step_over): Use it.
5438 (switch_back_to_stepped_thread): Always clear trap_expected if the
5439 step over is finished. Return early if scheduler locking applies.
5440 Look for the stepping thread and a potential step-over thread with
5442 (currently_stepping_or_nexting_callback): Delete.
5444 2014-04-22 Nick Clifton <nickc@redhat.com>
5446 * NEWS: Mention that ARM sim now supports tracing.
5448 2014-04-22 Yao Qi <yao@codesourcery.com>
5450 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5452 * tracefile.c (tracefile_fetch_registers): ... it. New
5454 * tracefile.h (tracefile_fetch_registers): Declare.
5455 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5456 tracefile_fetch_registers.
5458 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5461 * windows-nat.c (thread_rec): Don't display a warning when
5462 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5463 fails for any reason, set th->suspended to -1, so that we don't
5464 try to resume such a thread. Also, don't return NULL in these
5465 cases, to avoid completely ruin the session due to "PC register is
5466 not available" error.
5467 (do_windows_fetch_inferior_registers): Check errors in
5468 GetThreadContext call.
5469 (windows_continue): Accept an additional argument KILLED; if not
5470 zero, ignore errors in the SetThreadContext call, since the
5471 inferior was killed and is shutting down.
5472 (windows_resume, get_windows_debug_event)
5473 (windows_create_inferior, windows_mourn_inferior)
5474 (windows_kill_inferior): All callers of windows_continue changed
5475 to adjust to its new calling sequence.
5477 2014-04-19 Yao Qi <yao@codesourcery.com>
5479 * ctf.c (ctf_open): Call post_create_inferior.
5481 2014-04-19 Yao Qi <yao@codesourcery.com>
5483 * ctf.c (handle_id): New static variable.
5484 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5485 value. Get the declaration of event "register" and get length
5486 of field "contents".
5488 2014-04-19 Yao Qi <yao@codesourcery.com>
5490 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5492 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5494 * valops.c (oload_method_static): Remove unnecessary argument
5495 METHOD. Update all callers.
5497 2014-04-18 Pedro alves <palves@redhat.com>
5498 Tom Tromey <tromey@redhat.com>
5501 * frame.c (get_prev_frame_1): Rename to ...
5502 (get_prev_frame_always): ... this, and make extern. Adjust.
5503 (skip_artificial_frames): Use get_prev_frame_always.
5504 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5505 (get_frame_unwind_stop_reason): Adjust to rename.
5506 * frame.h (get_prev_frame_always): Declare.
5507 * inline-frame.c: Include frame.h.
5508 (inline_frame_this_id): Use get_prev_frame_always.
5510 2014-04-18 Tristan Gingold <gingold@adacore.com>
5512 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5513 code by using bfd_mach_o_get_base_address.
5515 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5517 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5518 (spu_ax_pseudo_register_collect): New function.
5519 (spu_ax_pseudo_register_push_stack): Likewise.
5520 (spu_dwarf_reg_to_regnum): Likewise.
5521 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5523 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5525 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5526 Replace FRAME argument with FRAME_ID.
5527 * gdbarch.c, gdbarch.h: Regenerate.
5528 * findvar.c (default_value_from_register): Add GDBARCH argument;
5529 replace FRAME by FRAME_ID. No longer call get_frame_id.
5530 (value_from_register): Update call to gdbarch_value_from_register.
5531 * value.h (default_value_from_register): Update prototype.
5532 * s390-linux-tdep.c (s390_value_from_register): Update interface
5533 and call to default_value_from_register.
5534 * spu-tdep.c (spu_value_from_register): Likewise.
5536 * findvar.c (address_from_register): Remove TYPE argument.
5537 Do not call value_from_register; use gdbarch_value_from_register
5538 with null_frame_id instead.
5539 * value.h (address_from_register): Update prototype.
5540 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5541 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5542 address_from_register interface change.
5544 2014-04-17 Yao Qi <yao@codesourcery.com>
5546 * gdbtypes.h: Update comments to link to types and macros'
5549 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5551 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5553 2014-04-16 Keith Seitz <keiths@redhat.com>
5556 * dwarf2read.c (skip_one_die): Check that all relative-offset
5557 sibling DIEs fall within range of the current reader's buffer.
5558 (read_partial_die): Likewise.
5560 2014-04-16 Keith Seitz <keiths@redhat.com>
5563 * cp-namespace.c (lookup_symbol_file): If the type name of
5564 `this' is NULL, return immediately.
5566 2014-04-14 Keith Seitz <keiths@redhat.com>
5569 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5570 from symbol_matches_domain in symtab.c. All local callers
5571 of symbol_matches_domain updated.
5572 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5573 search STRUCT_DOMAIN.
5574 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5575 independently. standard_lookup will do that automatically.
5576 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5577 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5578 (cp_lookup_symbol_in_namespace): Likewise.
5579 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5580 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5581 may return a STRUCT_DOMAIN match.
5582 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5583 * cp-support.c: Include language.h.
5584 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5586 * psymtab.c (match_partial_symbol): Compare the requested
5587 domain with the symbol's domain directly.
5588 (lookup_partial_symbol): Likewise.
5589 * symtab.c (lookup_symbol_in_language): Explain when/why
5590 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5591 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5592 appropriate languages.
5593 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5594 and moved to ada-lang.c
5595 (lookup_block_symbol): Explain that this function only returns
5596 symbol matching the requested DOMAIN.
5597 Compare the requested domain with the symbol's domain directly.
5598 (iterate_over_symbols): Compare the requested domain with the
5599 symbol's domain directly.
5600 * symtab.h (symbol_matches_domain): Remove.
5602 2014-04-14 Tom Tromey <tromey@redhat.com>
5605 * c-exp.y (type_aggregate_p): New function.
5606 (qualified_name, classify_inner_name): Use it.
5607 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5608 and TYPE_TARGET_TYPE of an enum type.
5609 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5611 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5612 handle TYPE_DECLARED_CLASS.
5613 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5615 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5616 * valops.c (enum_constant_from_type): New function.
5617 (value_aggregate_elt): Use it.
5618 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5621 2014-04-14 Tom Tromey <tromey@redhat.com>
5623 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5624 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5626 * value.h (value_aggregate_elt): Update.
5628 2014-04-14 Tom Tromey <tromey@redhat.com>
5630 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5632 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5634 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5635 (evaluate_subexp_standard): Pass noside argument.
5636 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5637 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5638 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5639 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5640 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5642 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5644 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5645 points to a constant blob.
5647 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5649 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5650 property and store it as the high bound and flag the range accordingly.
5651 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5652 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5653 * gdbtypes.h (enum range_flags): New enum.
5654 (struct range_bounds): Add flags member.
5656 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5658 * c-typeprint.c (c_type_print_varspec_suffix): Added
5659 check for not yet resolved high bound. If unresolved, print
5660 "variable length" string to the console instead of random
5663 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5665 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5667 (ada_template_to_fixed_record_type_1): Likewise.
5668 (ada_to_fixed_type_1): Likewise.
5669 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5670 (cp_print_value): Likewise.
5671 * d-valprint.c (dynamic_array_type): Likewise.
5672 * findvar.c (address_of_variable): Likewise.
5673 * jv-valprint.c (java_value_print): Likewise.
5674 * valops.c (value_ind): Likewise.
5675 * value.c (coerce_ref): Likewise.
5677 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5679 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5680 value and retrieve the dynamic type size.
5682 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5684 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5685 passed to sizeof is dynamic evaluate the argument to compute the length.
5687 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5688 Joel Brobecker <brobecker@adacore.com>
5690 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5691 (dwarf2_evaluate_property): New function.
5692 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5693 * dwarf2read.c (attr_to_dynamic_prop): New function.
5694 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5696 * gdbtypes.c: Include dwarf2loc.h.
5697 (is_dynamic_type): New function.
5698 (resolve_dynamic_type): New function.
5699 (resolve_dynamic_bounds): New function.
5700 (get_type_length): New function.
5701 (check_typedef): Use get_type_length to compute type length.
5702 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5703 (TYPE_LOW_BOUND_KIND): New macro.
5704 (is_dynamic_type): New function prototype.
5705 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5706 to resolve dynamic properties of the type. Update comment.
5707 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5709 2014-04-14 Richard Henderson <rth@redhat.com>
5711 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5713 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5714 Doug Evans <xdje42@gmail.com>
5716 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5717 dereference TYPE_CODE_REF values.
5719 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5721 Revert the following changes due to regressions:
5723 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5724 (dwarf2_evaluate_property): New function.
5725 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5726 * dwarf2read.c (attr_to_dynamic_prop): New function.
5727 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5729 * gdbtypes.c: Include dwarf2loc.h.
5730 (is_dynamic_type): New function.
5731 (resolve_dynamic_type): New function.
5732 (resolve_dynamic_bounds): New function.
5733 (get_type_length): New function.
5734 (check_typedef): Use get_type_length to compute type length.
5735 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5736 (TYPE_LOW_BOUND_KIND): New macro.
5737 (is_dynamic_type): New function prototype.
5738 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5739 to resolve dynamic properties of the type. Update comment.
5740 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5742 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5743 passed to sizeof is dynamic evaluate the argument to compute the length.
5745 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5746 value and retrieve the dynamic type size.
5748 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5749 (ada_template_to_fixed_record_type_1): Likewise.
5750 (ada_to_fixed_type_1): Likewise.
5751 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5752 (cp_print_value): Likewise.
5753 * d-valprint.c (dynamic_array_type): Likewise.
5754 * eval.c (evaluate_subexp_with_coercion): Likewise.
5755 * findvar.c (address_of_variable): Likewise.
5756 * jv-valprint.c (java_value_print): Likewise.
5757 * valops.c (value_ind): Likewise.
5758 * value.c (coerce_ref): Likewise.
5760 * c-typeprint.c (c_type_print_varspec_suffix): Added
5761 check for not yet resolved high bound. If unresolved, print
5762 "variable length" string to the console instead of random
5765 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5766 property and store it as the high bound and flag the range accordingly.
5767 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5768 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5769 * gdbtypes.h (enum range_flags): New enum.
5770 (struct range_bounds): Add flags member.
5772 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5773 points to a constant blob.
5775 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5776 (evaluate_subexp_standard): Pass noside argument.
5777 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5778 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5779 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5780 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5781 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5783 2014-04-11 Keith Seitz <keiths@redhat.com>
5786 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5787 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5790 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5792 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5793 (evaluate_subexp_standard): Pass noside argument.
5794 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5795 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5796 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5797 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5798 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5800 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5802 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5803 points to a constant blob.
5805 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5807 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5808 property and store it as the high bound and flag the range accordingly.
5809 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5810 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5811 * gdbtypes.h (enum range_flags): New enum.
5812 (struct range_bounds): Add flags member.
5814 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5816 * c-typeprint.c (c_type_print_varspec_suffix): Added
5817 check for not yet resolved high bound. If unresolved, print
5818 "variable length" string to the console instead of random
5821 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5823 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5824 (ada_template_to_fixed_record_type_1): Likewise.
5825 (ada_to_fixed_type_1): Likewise.
5826 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5827 (cp_print_value): Likewise.
5828 * d-valprint.c (dynamic_array_type): Likewise.
5829 * eval.c (evaluate_subexp_with_coercion): Likewise.
5830 * findvar.c (address_of_variable): Likewise.
5831 * jv-valprint.c (java_value_print): Likewise.
5832 * valops.c (value_ind): Likewise.
5833 * value.c (coerce_ref): Likewise.
5835 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5837 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5838 value and retrieve the dynamic type size.
5840 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5842 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5843 passed to sizeof is dynamic evaluate the argument to compute the length.
5845 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5847 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5848 (dwarf2_evaluate_property): New function.
5849 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5850 * dwarf2read.c (attr_to_dynamic_prop): New function.
5851 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5853 * gdbtypes.c: Include dwarf2loc.h.
5854 (is_dynamic_type): New function.
5855 (resolve_dynamic_type): New function.
5856 (resolve_dynamic_bounds): New function.
5857 (get_type_length): New function.
5858 (check_typedef): Use get_type_length to compute type length.
5859 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5860 (TYPE_LOW_BOUND_KIND): New macro.
5861 (is_dynamic_type): New function prototype.
5862 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5863 to resolve dynamic properties of the type. Update comment.
5864 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5868 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5869 declaring high/low bounds and change uses accordingly. Call
5870 create_range_type instead of create_static_range_type.
5871 * gdbtypes.c (create_range_type): New function.
5872 (create_range_type): Convert bounds into struct bound_prop and pass
5873 them to create_range_type.
5874 * gdbtypes.h (struct bound_prop): New struct.
5875 (create_range_type): New function prototype.
5876 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5877 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5878 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5880 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5882 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5884 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5885 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5886 * ada-lang.c: All uses of create_range_type updated.
5887 * coffread.c: All uses of create_range_type updated.
5888 * dwarf2read.c: All uses of create_range_type updated.
5889 * f-exp.y: All uses of create_range_type updated.
5890 * m2-valprint.c: All uses of create_range_type updated.
5891 * mdebugread.c: All uses of create_range_type updated.
5892 * stabsread.c: All uses of create_range_type updated.
5893 * valops.c: All uses of create_range_type updated.
5894 * valprint.c: All uses of create_range_type updated.
5896 2014-04-10 Pedro Alves <palves@redhat.com>
5898 * breakpoint.c (single_step_breakpoints)
5899 (single_step_gdbarch): Move up in the file.
5900 (one_breakpoint_xfer_memory): New function, factored out from ...
5901 (breakpoint_xfer_memory): ... here. Also process single-step
5904 2014-04-09 Tristan Gingold <gingold@adacore.com>
5906 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5908 (darwin_decode_exception_message): Free port only after use.
5910 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5912 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5913 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5914 when setting the size of call_length.
5916 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5918 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5919 dereference TYPE_CODE_REF values.
5921 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5923 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5924 end of warning message.
5926 2014-04-03 Doug Evans <dje@google.com>
5928 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5929 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5931 2014-04-02 Alan Modra <amodra@gmail.com>
5933 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5934 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5935 (struct symbol_file_add_from_memory_args): Add size field.
5936 (find_vdso_size): New function.
5937 (add_vsyscall_page): Attempt to find vdso size.
5939 2014-04-01 Doug Evans <dje@google.com>
5941 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5943 2014-04-01 Tristan Gingold <gingold@adacore.com>
5945 * darwin-nat.c (darwin_encode_reply): Add prototype.
5946 (darwin_decode_exception_message): Reply to unknown inferiors.
5947 (darwin_decode_message): Handle message by id. Ignore message
5948 to unknown inferior.
5949 (darwin_wait): Discard unknown messages, add debug trace.
5951 2014-03-31 Doug Evans <dje@google.com>
5953 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5956 2014-03-31 Doug Evans <dje@google.com>
5958 New option "set print symbol-loading".
5960 * solib.c (solib_read_symbols): Only print symbol loading messages
5962 (solib_add): If symbol loading is in "brief" mode, notify user
5963 symbols are being loaded.
5964 (reload_shared_libraries_1): Ditto.
5965 * symfile.c (print_symbol_loading_off): New static global.
5966 (print_symbol_loading_brief): New static global.
5967 (print_symbol_loading_full): New static global.
5968 (print_symbol_loading_enums): New static global.
5969 (print_symbol_loading): New static global.
5970 (print_symbol_loading_p): New function.
5971 (symbol_file_add_with_addrs): Only print symbol loading messages
5973 (_initialize_symfile): Register "print symbol-loading" set/show
5975 * symfile.h (print_symbol_loading_p): Declare.
5977 2014-03-30 Doug Evans <xdje42@gmail.com>
5979 * infrun.c (set_last_target_status): New function.
5980 (handle_inferior_event): Call it.
5982 2014-03-30 Doug Evans <xdje42@gmail.com>
5984 * inferior.h (enum stop_kind): Improve comment.
5986 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5988 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5989 a reference, strip the reference layer before calling
5990 the lang_ops value_has_mutated callback.
5992 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5994 Remove some globals from our parser.
5995 * language.c (unk_lang_parser): Add "struct parser_state"
5997 * language.h (struct language_defn) <la_parser>: Likewise.
5998 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5999 (initialize_expout): Add "struct parser_state" argument.
6000 Rewrite function to use the parser state.
6001 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6002 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6003 write_exp_elt_longcst, write_exp_elt_dblcst,
6004 write_exp_elt_decfloatcst, write_exp_elt_type,
6005 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6006 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6007 write_dollar_variable): Likewise.
6008 (parse_exp_in_context_1): Use parser state.
6009 (insert_type_address_space): Add "struct parser_state" argument.
6011 (increase_expout_size): New function.
6012 * parser-defs.h: Forward declare "struct language_defn" and
6013 "struct parser_state".
6014 (expout, expout_size, expout_ptr): Remove extern declarations.
6015 (parse_gdbarch, parse_language): Rewrite macro declarations to
6016 accept the parser state.
6017 (struct parser_state): New struct.
6018 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6019 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6020 write_exp_elt_decfloatcst, write_exp_elt_type,
6021 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6022 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6023 write_exp_msymbol, write_dollar_variable,
6024 mark_struct_expression, insert_type_address_space): Add "struct
6025 parser_state" argument.
6026 (increase_expout_size): New function.
6027 * utils.c (do_clear_parser_state): New function.
6028 (make_cleanup_clear_parser_state): Likewise.
6029 * utils.h (make_cleanup_clear_parser_state): New function
6031 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6032 Update calls to write_exp* in order to pass the parser state.
6033 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6034 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6035 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6036 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6037 * stap-probe.c (stap_parse_register_operand): Likewise.
6038 (stap_parse_single_operand): Likewise.
6039 (stap_parse_argument_1): Likewise.
6040 (stap_parse_argument): Use parser state.
6041 * stap-probe.h: Include "parser-defs.h".
6042 (struct stap_parse_info) <pstate>: New field.
6043 * c-exp.y (parse_type): Rewrite to use parser state.
6044 (yyparse): Redefine to c_parse_internal.
6045 (pstate): New global variable.
6046 (parse_number): Add "struct parser_state" argument.
6047 (write_destructor_name): Likewise.
6048 (type_exp): Update calls to write_exp* and similars in order to
6050 (exp1, exp, variable, qualified_name, space_identifier,
6051 typename, typebase): Likewise.
6052 (write_destructor_name, parse_number, lex_one_token,
6053 classify_name, classify_inner_name, c_parse): Add "struct
6054 parser_state" argument. Update function to use parser state.
6055 * c-lang.h: Forward declare "struct parser_state".
6056 (c_parse): Add "struct parser_state" argument.
6057 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6058 (yyparse): Redefine macro to ada_parse_internal.
6059 (pstate): New variable.
6060 (write_int, write_object_renaming, write_var_or_type,
6061 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6062 type_int, type_long, type_long_long, type_float, type_double,
6063 type_long_double, type_char, type_boolean, type_system_address):
6064 Add "struct parser_state" argument.
6065 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6066 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6067 var_or_type, aggregate, aggregate_component_list,
6068 positional_list, others, component_group,
6069 component_associations): Update calls to write_exp* and similar
6070 functions in order to use parser state.
6071 (ada_parse, write_var_from_sym, write_int,
6072 write_exp_op_with_string, write_object_renaming,
6073 find_primitive_type, write_selectors, write_ambiguous_var,
6074 write_var_or_type, write_name_assoc, type_int, type_long,
6075 type_long_long, type_float, type_double, type_long_double,
6076 type_char, type_boolean, type_system_address): Add "struct
6077 parser_state" argument. Adjust function to use parser state.
6078 * ada-lang.c (parse): Likewise.
6079 * ada-lang.h: Forward declare "struct parser_state".
6080 (ada_parse): Add "struct parser_state" argument.
6081 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6082 calls to both functions.
6083 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6085 (yyparse): Redefine macro to f_parse_internal.
6086 (pstate): New variable.
6087 (parse_number): Add "struct parser_state" argument.
6088 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6089 and similars in order to use parser state.
6090 (parse_number): Adjust code to use parser state.
6092 (f_parse): New function.
6093 * f-lang.h: Forward declare "struct parser_state".
6094 (f_parse): Add "struct parser_state" argument.
6095 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6097 (yyparse): Redefine macro for java_parse_internal.
6098 (pstate): New variable.
6099 (push_expression_name, push_expression_name, insert_exp): Add
6100 "struct parser_state" argument.
6101 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6102 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6103 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6104 PostIncrementExpression, PostDecrementExpression,
6105 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6106 UnaryExpressionNotPlusMinus, CastExpression,
6107 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6108 RelationalExpression, EqualityExpression, AndExpression,
6109 ExclusiveOrExpression, InclusiveOrExpression,
6110 ConditionalAndExpression, ConditionalOrExpression,
6111 ConditionalExpression, Assignment, LeftHandSide): Update
6112 calls to write_exp* and similars in order to use parser state.
6113 (parse_number): Ajust code to use parser state.
6115 (java_parse): New function.
6116 (push_variable): Add "struct parser_state" argument. Adjust
6117 code to user parser state.
6118 (push_fieldnames, push_qualified_expression_name,
6119 push_expression_name, insert_exp): Likewise.
6120 * jv-lang.h: Forward declare "struct parser_state".
6121 (java_parse): Add "struct parser_state" argument.
6122 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6124 (yyparse): Redefine macro to m2_parse_internal.
6125 (pstate): New variable.
6126 (type_exp, exp, fblock, variable, type): Update calls to
6127 write_exp* and similars to use parser state.
6129 (m2_parse): New function.
6130 * m2-lang.h: Forward declare "struct parser_state".
6131 (m2_parse): Add "struct parser_state" argument.
6132 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6133 * objc-lang.h: Forward declare "struct parser_state".
6134 (end_msglist): Add "struct parser_state" argument.
6135 * p-exp.y (parse_type): Rewrite macro to use parser state.
6136 (yyparse): Redefine macro to pascal_parse_internal.
6137 (pstate): New variable.
6138 (parse_number): Add "struct parser_state" argument.
6139 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6140 write_exp* and similars in order to use parser state.
6141 (parse_number, yylex): Adjust code to use parser state.
6142 (pascal_parse): New function.
6143 * p-lang.h: Forward declare "struct parser_state".
6144 (pascal_parse): Add "struct parser_state" argument.
6145 * go-exp.y (parse_type): Rewrite macro to use parser state.
6146 (yyparse): Redefine macro to go_parse_internal.
6147 (pstate): New variable.
6148 (parse_number): Add "struct parser_state" argument.
6149 (type_exp, exp1, exp, variable, type): Update calls to
6150 write_exp* and similars in order to use parser state.
6151 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6152 to use parser state.
6153 (go_parse): Likewise.
6154 * go-lang.h: Forward declare "struct parser_state".
6155 (go_parse): Add "struct parser_state" argument.
6157 2014-03-27 Doug Evans <dje@google.com>
6159 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6161 2014-03-27 Doug Evans <dje@google.com>
6163 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6164 Remove argument abbrev_section. All callers updated.
6166 2014-03-27 Doug Evans <dje@google.com>
6168 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6169 addr_base, ranges_base.
6171 2014-03-26 Keith Seitz <keiths@redhat.com>
6173 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6174 types, not VAR_DOMAIN.
6176 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6178 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6180 * features/nios2-linux.c: Regenerated.
6181 * features/nios2.c: Regenerated.
6183 2014-03-25 Pedro Alves <palves@redhat.com>
6185 * cli/cli-script.c (script_from_file): Force the interpreter to
6188 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6190 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6191 small stack allocation.
6193 2014-03-24 Tristan Gingold <gingold@adacore.com>
6195 * darwin-nat.c (exc_server): Remove unused prototype.
6196 (darwin_dump_message): Correctly display data on x86_64.
6197 (darwin_encode_reply): Fix style.
6198 Add comments and fix indentation.
6200 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6202 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6204 2014-03-22 Doug Evans <xdje42@gmail.com>
6206 * infcmd.c: Whitespace fixes.
6207 (interrupt_command): Merge two function comments into one.
6209 2014-03-22 Doug Evans <xdje42@gmail.com>
6211 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6214 2014-03-22 Yao Qi <yao@codesourcery.com>
6216 * remote.c (target_read_live_memory): Remove.
6217 (memory_xfer_live_readonly_partial): Rename it to
6218 remote_xfer_live_readonly_partial. Remove argument 'object'.
6219 All callers updated. Call remote_read_bytes_1
6220 instead of target_read_live_memory.
6221 * tracepoint.c (set_traceframe_number): Remove.
6222 (make_cleanup_restore_traceframe_number): Likewise .
6223 * tracepoint.h (set_traceframe_number): Remove declaration.
6224 (make_cleanup_restore_traceframe_number): Likewise.
6226 2014-03-22 Yao Qi <yao@codesourcery.com>
6228 * remote.c (remote_read_bytes): Move code on reading from the
6230 (remote_read_bytes_1): ... here. New function.
6232 2014-03-22 Yao Qi <yao@codesourcery.com>
6234 * ctf.c (ctf_xfer_partial): Check the return value of
6235 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6236 return TARGET_XFER_UNAVAILABLE.
6237 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6238 * target.c (target_read_live_memory): Move it to remote.c.
6239 (memory_xfer_live_readonly_partial): Likewise.
6240 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6241 * remote.c (target_read_live_memory): Moved from target.c.
6242 (memory_xfer_live_readonly_partial): Likewise.
6243 (remote_read_bytes): Factored out from
6244 memory_xfer_partial_1.
6246 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6248 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6251 2014-03-21 Pedro Alves <palves@redhat.com>
6253 * infrun.c (normal_stop): Extend comment.
6255 2014-03-21 Hui Zhu <hui@codesourcery.com>
6256 Pedro Alves <palves@redhat.com>
6258 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6260 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6261 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6262 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6264 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6266 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6267 `z' formatted output modifier.
6269 2014-03-20 Tom Tromey <tromey@redhat.com>
6270 Sergio Durigan Junior <sergiodj@redhat.com>
6272 * probe.c (parse_probes): Turn assert into an ordinary error.
6273 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6274 exceptions when parsing probes. Rearrange the code for clarity.
6276 2014-03-20 Tom Tromey <tromey@redhat.com>
6279 * top.c (execute_command): Only dispatch events if the command
6282 2014-03-20 Tom Tromey <tromey@redhat.com>
6285 * infcall.c: Include event-top.h.
6286 (run_inferior_call): Call async_disable_stdin if needed.
6288 2014-03-20 Pedro Alves <palves@redhat.com>
6290 * infrun.c (prepare_to_proceed): Delete.
6291 (thread_still_needs_step_over): New function.
6292 (find_thread_needs_step_over): New function.
6293 (proceed): If the current thread needs a step-over, set its
6294 steping_over_breakpoint flag. Adjust to use
6295 find_thread_needs_step_over instead of prepare_to_proceed.
6296 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6297 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6299 (switch_back_to_stepped_thread): Step over breakpoints of all
6300 threads not the stepping thread, before switching back to the
6303 2014-03-20 Pedro Alves <palves@redhat.com>
6305 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6307 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6308 * infrun.c (saved_singlestep_ptid)
6309 (stepping_past_singlestep_breakpoint): Delete.
6310 (resume): Remove stepping_past_singlestep_breakpoint handling.
6311 (proceed): Store the prev_pc of the stepping thread too.
6312 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6314 (enum infwait_states): Delete infwait_thread_hop_state.
6315 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6317 (handle_inferior_event): Adjust.
6318 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6319 handling and the thread-hop code. Before removing single-step
6320 breakpoints, check whether the thread hit a single-step breakpoint
6321 of another thread. If it did, the trap is not a random signal.
6322 (switch_back_to_stepped_thread): If the event thread hit a
6323 single-step breakpoint, unblock it before switching to the
6324 stepping thread. Handle the case of the stepped thread having
6326 (keep_going): Handle the case of the current thread moving past a
6327 single-step breakpoint.
6329 2014-03-20 Pedro Alves <palves@redhat.com>
6332 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6333 are being stepped over.
6334 (breakpoint_address_match): Make extern.
6335 * breakpoint.h (breakpoint_address_match): New declaration.
6336 * inferior.h (stepping_past_instruction_at): New declaration.
6337 * infrun.c (struct step_over_info): New type.
6338 (step_over_info): New global.
6339 (set_step_over_info, clear_step_over_info)
6340 (stepping_past_instruction_at): New functions.
6341 (handle_inferior_event): Clear the step-over info when
6342 trap_expected is cleared.
6343 (resume): Remove now stale comment.
6344 (clear_proceed_status): Clear step-over info.
6345 (proceed): Adjust step-over handling to set or clear the step-over
6346 info instead of removing all breakpoints.
6347 (handle_signal_stop): When setting up a thread-hop, don't remove
6349 (stop_stepping): Clear step-over info.
6350 (keep_going): Adjust step-over handling to set or clear step-over
6351 info and then always inserting breakpoints, instead of removing
6352 all breakpoints when stepping over one.
6354 2014-03-20 Pedro Alves <palves@redhat.com>
6356 * infrun.c (previous_inferior_ptid): Adjust comment.
6357 (deferred_step_ptid): Delete.
6358 (infrun_thread_ptid_changed, prepare_to_proceed)
6359 (init_wait_for_inferior): Adjust.
6360 (handle_signal_stop): Delete deferred_step_ptid handling.
6362 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6365 * defs.h (sync_quit_force_run): New declaration.
6366 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6367 * event-top.c (async_sigterm_handler): New declaration.
6368 (async_sigterm_token): New variable.
6369 (async_init_signals): Create also async_sigterm_token.
6370 (async_sigterm_handler): New function.
6371 (sync_quit_force_run): New variable.
6372 (handle_sigterm): Replace quit_force call by other calls.
6373 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6375 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6377 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6378 offset into SPE pseudo registers.
6380 2014-03-18 Pedro Alves <palves@redhat.com>
6383 * inferior.h (print_stop_event): Declare.
6384 * infrun.c (print_stop_event): New, factored out from ...
6385 (normal_stop): ... this.
6386 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6387 of bpstat_print/print_stack_frame.
6389 2014-03-17 Tom Tromey <tromey@redhat.com>
6391 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6393 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6395 * ada-lang.c (decode_constrained_packed_array): Perform a
6396 minimal coercion for reference with coerce_ref instead of
6399 2014-03-17 Tristan Gingold <gingold@adacore.com>
6401 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6402 (darwin_solib_create_inferior_hook): Emit a warning if version
6405 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6407 * python/py-value.c (get_field_flag): Cast flag_name argument to
6408 PyObject_GetAttrString to support Python 2.4.
6410 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6412 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6413 (Global Maintainers): Remove Jan Kratochvil.
6415 2014-03-14 Pedro Alves <palves@redhat.com>
6417 * inferior.h (terminal_ours_for_output): Rename to ...
6418 (child_terminal_ours_for_output): ... this.
6419 (terminal_save_ours): Rename to ...
6420 (child_terminal_save_ours): ... this.
6421 (terminal_ours): Rename to ...
6422 (child_terminal_ours): ... this.
6423 (terminal_inferior): Rename to ...
6424 (child_terminal_inferior): ... this.
6425 (terminal_init_inferior): Rename to ...
6426 (child_terminal_init_inferior): ... this.
6427 (terminal_init_inferior_with_pgrp): Rename to ...
6428 (child_terminal_init_inferior_with_pgrp): ... this.
6429 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6430 (child_terminal_init_with_pgrp): ... this.
6431 (terminal_save_ours): Rename to ...
6432 (child_terminal_save_ours): ... this.
6433 (terminal_init_inferior): Rename to ...
6434 (child_terminal_init): ... this. Adjust.
6435 (terminal_inferior): Rename to ...
6436 (child_terminal_inferior): ... this.
6437 (terminal_ours_for_output): Rename to ...
6438 (child_terminal_ours_for_output): ... this. Adjust.
6439 (terminal_ours): Rename to ...
6440 (child_terminal_ours): ... this.
6441 (terminal_ours_1): Rename to ...
6442 (child_terminal_ours_1): ... this. Adjust.
6443 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6444 * windows-nat.c (do_initial_windows_stuff): Adjust.
6445 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6446 (gnu_terminal_init): ... this. Adjust.
6447 (gnu_target): Adjust.
6448 * inf-child.c (inf_child_target): Adjust.
6450 2014-03-13 Doug Evans <xdje42@gmail.com>
6453 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6456 2014-03-13 Doug Evans <xdje42@gmail.com>
6458 * value.c (record_latest_value): Call release_value_or_incref
6459 instead of release_value.
6461 2014-03-13 Pedro Alves <palves@redhat.com>
6463 * procfs.c (procfs_target): Don't override to_shortname,
6464 to_longname or to_doc.
6466 2014-03-13 Pedro Alves <palves@redhat.com>
6468 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6469 Unix in user visible strings.
6471 2014-03-12 Stan Shebs <stan@codesourcery.com>
6473 * gdbtypes.h: Annotate comments for Doxygen, add a page
6474 block comment with some general info.
6476 2014-03-12 Pedro Alves <palves@redhat.com>
6478 * infcmd.c (prepare_execution_command): New function, factored out
6479 from several execution commands.
6480 (run_command_1, continue_command, step_1, jump_command)
6481 (signal_command, until_command, advance_command, finish_command)
6482 (attach_command): Use prepare_execution_command.
6484 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6486 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6489 (struct arm_linux_thread_points): Removed.
6490 (struct arm_linux_process_info): New.
6491 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6492 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6493 (arm_linux_find_breakpoints_by_tid): Removed.
6494 (struct arch_lwp_info): New.
6495 (arm_linux_find_process_pid): New functions.
6496 (arm_linux_add_process): New functions.
6497 (arm_linux_process_info_get): New functions.
6498 (arm_linux_forget_process): New function.
6499 (arm_linux_get_debug_reg_state): New function.
6500 (struct update_registers_data): New.
6501 (update_registers_callback): New function.
6502 (arm_linux_insert_hw_breakpoint1): Updated.
6503 (arm_linux_remove_hw_breakpoint1): Updated.
6504 (arm_linux_insert_hw_breakpoint): Updated.
6505 (arm_linux_remove_hw_breakpoint): Updated.
6506 (arm_linux_insert_watchpoint): Updated.
6507 (arm_linux_remove_watchpoint): Updated.
6508 (arm_linux_new_thread): Updated.
6509 (arm_linux_prepare_to_resume): New function.
6510 (arm_linux_new_fork): New function.
6511 (_initialize_arm_linux_nat): Updated.
6513 2014-03-12 Pedro Alves <palves@redhat.com>
6515 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6517 2014-03-12 Tom Tromey <tromey@redhat.com>
6519 * inf-child.c (return_zero): New function.
6520 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6521 * aix-thread.c (aix_thread_inferior_created): New function.
6522 (aix_thread_attach): Remove.
6523 (init_aix_thread_ops): Don't set to_attach.
6524 (_initialize_aix_thread): Register inferior_created observer.
6525 * corelow.c (init_core_ops): Don't set to_attach or
6527 * exec.c (init_exec_ops): Don't set to_attach or
6529 * infcmd.c (run_command_1): Use find_run_target. Make direct
6531 (attach_command): Use find_attach_target. Make direct target
6533 * record-btrace.c (init_record_btrace_ops): Don't set
6535 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6537 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6538 set to_create_inferior.
6539 * target.c (complete_target_initialization): Add assertion.
6540 (target_create_inferior): Remove.
6541 (find_default_attach, find_default_create_inferior): Remove.
6542 (find_attach_target, find_run_target): New functions.
6543 (find_default_is_async_p, find_default_can_async_p)
6544 (target_supports_non_stop, target_attach): Remove.
6545 (init_dummy_target): Don't set to_create_inferior or
6546 to_supports_non_stop.
6547 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6548 TARGET_DEFAULT_FUNC.
6549 <to_create_inferior>: Add comment.
6550 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6551 TARGET_DEFAULT_RETURN.
6552 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6553 (find_attach_target, find_run_target): Declare.
6554 (target_create_inferior): Remove.
6555 (target_has_execution_1): Update comment.
6556 (target_supports_non_stop): Remove.
6557 * target-delegates.c: Rebuild.
6559 2014-03-12 Pedro Alves <palves@redhat.com>
6561 * inf-child.h: Update comment to not mention Unix.
6563 2014-03-12 Pedro Alves <palves@redhat.com>
6565 * inf-child.c: Update top comment to not mention Unix. Add
6566 generic comment describing how this target is meant to be used.
6567 (inf_child_post_attach, inf_child_post_startup_inferior)
6568 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6571 2014-03-12 Pedro Alves <palves@redhat.com>
6573 * nto-procfs.c: Include inf-child.h.
6574 (procfs_ops): Delete global.
6575 (procfs_can_run): Delete method.
6576 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6577 target pointer instead of referencing procfs_ops.
6578 (procfs_prepare_to_store): Delete.
6579 (init_procfs_ops): Delete function.
6580 (procfs_target): New function, based on init_procfs_ops, but
6581 inherit inf_child_target.
6582 (_initialize_procfs): Use procfs_target.
6584 2014-03-12 Pedro Alves <palves@redhat.com>
6586 * windows-nat.c: Include inf-child.h.
6587 (windows_ops): Delete global.
6588 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6590 (init_windows_ops): Delete function.
6591 (windows_target): New function, based on init_windows_ops, but
6592 inherit inf_child_target.
6593 (_initialize_windows_nat): Use windows_target. Install x86
6594 specific target methods here.
6596 2014-03-10 Doug Evans <xdje42@gmail.com>
6598 * guile/guile.c (call_initialize_gdb_module): New function.
6599 (initialize_guile): Replace call to scm_init_guile with call to
6602 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6604 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6605 in call to TYPE_CODE macro.
6607 2014-03-10 Jerome Guitton <guitton@adacore.com>
6609 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6610 Resolve tagged types to full view.
6612 2014-03-10 Hui Zhu <hui@codesourcery.com>
6614 * target.h (target_insert_breakpoint): Remove "hardware" from its
6617 2014-03-07 Doug Evans <dje@google.com>
6619 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6621 2014-03-07 Doug Evans <dje@google.com>
6623 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6624 Remove unused local comp_dir_attr. Assert exactly one of
6625 stub_comp_unit_die, stub_comp_dir is non-NULL.
6627 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6629 * target.h (complete_target_initialization, add_target):
6632 2014-03-07 Pedro Alves <palves@redhat.com>
6634 * go32-nat.c: Include inf-child.h.
6635 (go32_ops): Delete global.
6636 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6638 (go32_create_inferior): Push the passed in target pointer instead
6639 of referencing go32_ops.
6640 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6641 (go32_target): New function, based on init_go32_ops, but inherit
6643 (_initialize_go32_nat): Use go32_target. Move parts of
6646 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6648 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6649 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6650 SYMBOL_VALUE_ADDRESS.
6651 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6653 2014-03-06 Yao Qi <yao@codesourcery.com>
6655 * breakpoint.c (get_tracepoint_by_number): Remove argument
6656 optional_p. All callers updated. Adjust comments. Update
6658 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6660 2014-03-06 Yao Qi <yao@codesourcery.com>
6662 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6663 early if get_number returns zero. Use 'p' instead of 'args'.
6665 2014-03-06 Yao Qi <yao@codesourcery.com>
6667 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6670 2014-03-06 Yao Qi <yao@codesourcery.com>
6672 PR breakpoints/16508
6673 * tracepoint.c (check_trace_running): New function.
6674 (trace_find_command): Move code to check_trace_running and
6675 call check_trace_running.
6676 (trace_find_pc_command): Likewise.
6677 (trace_find_tracepoint_command): Likewise.
6678 (trace_find_line_command): Likewise.
6679 (trace_find_range_command): Likewise.
6680 * tracepoint.h (check_trace_running): Likewise.
6681 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6683 2014-03-06 Yao Qi <yao@codesourcery.com>
6685 * target.h (struct target_ops) <to_traceframe_info>: Use
6686 TARGET_DEFAULT_NORETURN (tcomplain ()).
6687 * target-delegates.c: Regenerated.
6689 2014-03-05 Pedro Alves <palves@redhat.com>
6692 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6693 void. Update comment.
6694 (dcache_xfer_memory): Delete.
6695 (dcache_read_memory_partial): New, based on the read bits of
6697 (dcache_update): Add status parameter. Use ULONGEST for len, and
6698 adjust. Discard cache lines if the reason for the update was
6700 * dcache.h (dcache_xfer_memory): Delete declaration.
6701 (dcache_read_memory_partial): New declaration.
6702 (dcache_update): Update prototype.
6703 * target.c (raw_memory_xfer_partial): Update the dcache here.
6704 (memory_xfer_partial_1): Don't handle dcache writes here.
6706 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6708 * remote-sim.c (gdbsim_load): Add const to prog.
6710 2014-03-03 Tom Tromey <tromey@redhat.com>
6712 * elfread.c (probe_key): Change to bfd_data.
6713 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6714 now per-BFD, not per-objfile.
6715 * stap-probe.c (stap_probe_destroy): Update comment.
6716 (handle_stap_probe): Allocate on the per-BFD obstack.
6718 2014-03-03 Tom Tromey <tromey@redhat.com>
6720 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6721 * breakpoint.c (create_longjmp_master_breakpoint): Use
6723 (add_location_to_breakpoint, bkpt_probe_insert_location)
6724 (bkpt_probe_remove_location): Update.
6725 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6726 * elfread.c (elf_symfile_relocate_probe): Remove.
6727 (elf_probe_fns): Update.
6728 (insert_exception_resume_breakpoint): Change type of "probe"
6729 parameter to bound_probe.
6730 (check_exception_resume): Update.
6731 * objfiles.c (objfile_relocate1): Don't relocate probes.
6732 * probe.c (bound_probe_s): New typedef.
6733 (parse_probes): Use get_probe_address. Set sal's objfile.
6734 (find_probe_by_pc): Return a bound_probe.
6735 (collect_probes): Return a VEC(bound_probe_s).
6736 (compare_probes): Update.
6737 (gen_ui_out_table_header_info): Change type of "probes"
6739 (info_probes_for_ops): Update.
6740 (get_probe_address): New function.
6741 (probe_safe_evaluate_at_pc): Update.
6742 * probe.h (struct probe_ops) <get_probe_address>: New field.
6743 <set_semaphore, clear_semaphore>: Add objfile parameter.
6744 (struct probe) <objfile>: Remove field.
6746 <address>: Update comment.
6747 (struct bound_probe): New.
6748 (find_probe_by_pc): Return a bound_probe.
6749 (get_probe_address): Declare.
6750 * solib-svr4.c (struct probe_and_action) <address>: New field.
6751 (hash_probe_and_action, equal_probe_and_action): Update.
6752 (register_solib_event_probe): Add address parameter.
6753 (solib_event_probe_at): Update.
6754 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6756 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6757 (stap_get_probe_address): New function.
6758 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6759 (compile_probe_arg): Update.
6760 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6762 (handle_stap_probe): Don't relocate the probe.
6763 (stap_relocate): Remove.
6764 (stap_gen_info_probes_table_values): Update.
6765 (stap_probe_ops): Remove stap_relocate.
6766 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6767 (debug_sym_probe_fns): Update.
6768 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6769 * symtab.c (init_sal): Use memset.
6770 * symtab.h (struct symtab_and_line) <objfile>: New field.
6771 * tracepoint.c (start_tracing, stop_tracing): Update.
6773 2014-03-03 Tom Tromey <tromey@redhat.com>
6775 * probe.h (parse_probes, find_probe_by_pc)
6776 (find_probes_in_objfile): Fix comments.
6778 2014-03-02 Doug Evans <xdje42@gmail.com>
6780 * infrun.c (handle_signal_stop): Replace test for
6781 TARGET_WAITKIND_STOPPED with an assert.
6783 2014-03-02 Doug Evans <xdje42@gmail.com>
6785 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6787 2014-03-02 Doug Evans <xdje42@gmail.com>
6789 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6791 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6793 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6795 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6797 * i386obsd-nat.c: Include "obsd-nat.h".
6798 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6800 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6802 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6804 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6806 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6808 * mips64obsd-nat.c: Include "obsd-nath".
6809 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6811 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6813 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6815 * amd64obsd-nat.c: Include "obsd-nat,h.
6816 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6818 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6820 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6822 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6823 (find_overload_match): Update call to find_oload_champ.
6824 (find_oload_champ_namespace_loop): Likewise
6826 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6828 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6830 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6831 * config/sparc/obsd64.mh: New file.
6832 * sparc64obsd-nat.c: New file.
6834 * obsd-nat.h: New file.
6835 * obsd-nat.c: New file.
6836 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6837 (ALLDEPFILES): Add obsd-nat.c.
6839 2014-02-28 Tom Tromey <tromey@redhat.com>
6841 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6842 * cli-out.h (cli_ui_out_impl): Now const.
6843 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6844 * ui-out.c (struct ui_out) <impl>: Now const.
6845 (default_ui_out_impl): Now const.
6846 (ui_out_new): Make 'impl' parameter const.
6847 * ui-out.h (ui_out_new): Update.
6849 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6851 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6853 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6855 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6857 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6859 Additional PR 8882 fix.
6860 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6862 2014-02-27 Pedro Alves <palves@redhat.com>
6864 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6867 2014-02-27 Pedro Alves <palves@redhat.com>
6870 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6871 * nat/linux-waitpid.c: Include string.h.
6872 (status_to_str): Moved here and made extern.
6873 * nat/linux-waitpid.h (status_to_str): New declaration.
6875 2014-02-27 Hui Zhu <hui@codesourcery.com>
6878 * infrun.c (ptid_match): Move ...
6879 * common/ptid.c (ptid_match): ... here.
6880 * inferior.h (ptid_match): Move ...
6881 * common/ptid.h (ptid_match): ... here.
6883 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6885 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6886 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6889 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6891 * obsd-tdep.c (obsd_auxv_parse): New function.
6892 (obsd_init_abi): Set auxv_parse.
6894 * gdbarch.sh (auxv_parse): New.
6895 * gdbarch.h: Regenerated.
6896 * gdbarch.c: Regenerated.
6897 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6899 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6901 * guile/scm-value.c (gdbscm_history_append_x): New function.
6902 (value_functions): Add it.
6904 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6906 * dwarf2read.c (attr_value_as_address): New function.
6907 (dwarf2_find_base_address, read_call_site_scope): Use
6908 attr_value_as_address in place of DW_ADDR.
6909 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6910 the low and high addresses. Slight rework of the handling
6911 of the high pc being a constant form, and limit it to
6912 DWARF verson 4 or higher.
6913 (dwarf2_record_block_ranges): Likewise.
6914 (read_partial_die): Likewise.
6915 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6917 2014-02-26 Tom Tromey <tromey@redhat.com>
6919 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6921 2014-02-26 Tom Tromey <tromey@redhat.com>
6923 * elfread.c (elf_read_minimal_symbols): Return early if
6924 minimal symbols have already been read. Add "ei" parameter.
6925 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6926 * minsyms.c (prim_record_minimal_symbol_full): Update.
6927 * objfiles.h (struct objstats) <n_minsyms>: Move...
6928 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6929 * symmisc.c (print_objfile_statistics): Update.
6931 2014-02-26 Tom Tromey <tromey@redhat.com>
6933 * elfread.c (elf_read_minimal_symbols): New function, from
6935 (elf_symfile_read): Call it.
6937 2014-02-26 Tom Tromey <tromey@redhat.com>
6939 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6940 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6941 (lookup_minimal_symbol_solib_trampoline)
6942 (lookup_minimal_symbol_by_pc_section_1)
6943 (lookup_minimal_symbol_and_objfile): Update.
6944 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6945 Don't allocate a minimal symbol if minsyms have already been read.
6946 (build_minimal_symbol_hash_tables): Update.
6947 (install_minimal_symbols): Do nothing if minsyms already read.
6948 Use the per-BFD obstack.
6949 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6950 * objfiles.c (allocate_objfile): Call
6951 terminate_minimal_symbol_table later.
6952 (have_minimal_symbols): Update.
6953 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6954 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6955 Move from struct objfile.
6956 <minsyms_read>: New field.
6957 (struct objfile) <msymbols, minimal_symbol_count,
6958 msymbol_hash, msymbol_demangled_hash>: Move.
6959 (ALL_OBJFILE_MSYMBOLS): Update.
6960 * symfile.c (read_symbols): Set minsyms_read.
6961 (reread_symbols): Update.
6962 * symmisc.c (dump_objfile, dump_msymbols): Update.
6964 2014-02-26 Tom Tromey <tromey@redhat.com>
6966 * minsyms.c (msymbols_sort): Remove.
6967 * minsyms.h (msymbols_sort): Remove.
6968 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6969 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6970 * elfread.c (elf_symtab_read): Don't add section offsets.
6971 * xcoffread.c (record_minimal_symbol): Don't add section offset
6972 to minimal symbol address.
6973 * somread.c (text_offset, data_offset): Remove.
6974 (som_symtab_read): Don't add section offsets to minimal symbol
6976 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6977 Don't add section offsets to minimal symbols.
6978 * coffread.c (coff_symtab_read): Don't add section offsets
6979 to minimal symbol addresses.
6980 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6981 to minimal symbol addresses.
6982 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6983 section offset to minimal symbol addresses.
6984 * mdebugread.c (parse_partial_symbols): Don't add section
6985 offset to minimal symbol addresses.
6986 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6987 offset to minimal symbol addresses.
6989 2014-02-26 Tom Tromey <tromey@redhat.com>
6991 * ada-lang.c (ada_main_name): Update.
6992 (ada_add_standard_exceptions): Update.
6993 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6994 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6995 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6996 * auxv.c (ld_so_xfer_auxv): Update.
6997 * avr-tdep.c (avr_scan_prologue): Update.
6998 * ax-gdb.c (gen_var_ref): Update.
6999 * blockframe.c (get_pc_function_start)
7000 (find_pc_partial_function_gnu_ifunc): Update.
7001 * breakpoint.c (create_overlay_event_breakpoint)
7002 (create_longjmp_master_breakpoint)
7003 (create_std_terminate_master_breakpoint)
7004 (create_exception_master_breakpoint): Update.
7005 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7006 * c-valprint.c (c_val_print): Update.
7007 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7008 * common/agent.c (agent_look_up_symbols): Update.
7009 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7010 * dwarf2loc.c (call_site_to_target_addr): Update.
7011 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7012 * elfread.c (elf_gnu_ifunc_record_cache)
7013 (elf_gnu_ifunc_resolve_by_got): Update.
7014 * findvar.c (default_read_var_value): Update.
7015 * frame.c (inside_main_func): Update.
7016 * frv-tdep.c (frv_frame_this_id): Update.
7017 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7018 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7020 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7021 (hppa_hpux_find_dummy_bpaddr): Update.
7022 * hppa-tdep.c (hppa_symbol_address): Update.
7023 * infcmd.c (until_next_command): Update.
7024 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7026 * linespec.c (minsym_found, add_minsym): Update.
7027 * linux-nat.c (get_signo): Update.
7028 * linux-thread-db.c (inferior_has_bug): Update.
7029 * m32c-tdep.c (m32c_return_value)
7030 (m32c_m16c_address_to_pointer): Update.
7031 * m32r-tdep.c (m32r_frame_this_id): Update.
7032 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7033 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7034 * maint.c (maintenance_translate_address): Update.
7035 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7036 (frob_address): New function.
7037 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7038 frob_address. Rename parameter to "pc_in".
7039 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7041 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7043 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7044 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7045 * objc-lang.c (find_objc_msgsend): Update.
7046 * objfiles.c (objfile_relocate1): Update.
7047 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7048 * p-valprint.c (pascal_val_print): Update.
7049 * parse.c (write_exp_msymbol): Update.
7050 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7051 (ppc_elfv2_skip_entrypoint): Update.
7052 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7053 * printcmd.c (build_address_symbolic, msym_info)
7054 (address_info): Update.
7055 * proc-service.c (ps_pglobal_lookup): Update.
7056 * psymtab.c (find_pc_sect_psymtab_closer)
7057 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7058 Change msymbol parameter to bound_minimal_symbol.
7059 * ravenscar-thread.c (get_running_thread_id): Update.
7060 * remote.c (remote_check_symbols): Update.
7061 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7063 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7064 * solib-dsbt.c (lm_base): Update.
7065 * solib-frv.c (lm_base, main_got): Update.
7066 * solib-irix.c (locate_base): Update.
7067 * solib-som.c (som_solib_create_inferior_hook)
7068 (link_map_start): Update.
7069 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7070 * solib-svr4.c (elf_locate_base, enable_break): Update.
7071 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7072 (flush_ea_cache): Update.
7073 * stabsread.c (define_symbol, scan_file_globals): Update.
7074 * stack.c (find_frame_funname): Update.
7075 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7076 (debug_qf_find_pc_sect_symtab): Update.
7077 * symfile.c (simple_read_overlay_table)
7078 (simple_overlay_update): Update.
7079 * symfile.h (struct quick_symbol_functions)
7080 <find_pc_sect_symtab>: Change type of msymbol to
7081 bound_minimal_symbol.
7082 * symmisc.c (dump_msymbols): Update.
7083 * symtab.c (find_pc_sect_symtab_via_partial)
7084 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7085 (search_symbols, print_msymbol_info): Update.
7086 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7087 (MSYMBOL_VALUE_ADDRESS): Redefine.
7088 (BMSYMBOL_VALUE_ADDRESS): New macro.
7089 * tracepoint.c (scope_info): Update.
7090 * tui/tui-disasm.c (tui_find_disassembly_address)
7091 (tui_get_begin_asm_address): Update.
7092 * valops.c (find_function_in_inferior): Update.
7093 * value.c (value_static_field, value_fn_field): Update.
7095 2014-02-26 Tom Tromey <tromey@redhat.com>
7097 * ada-lang.c (ada_update_initial_language): Update.
7098 (ada_main_name, ada_has_this_exception_support): Update.
7099 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7100 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7101 * arm-tdep.c (arm_skip_stub): Update.
7102 * auxv.c (ld_so_xfer_auxv): Update.
7103 * avr-tdep.c (avr_scan_prologue): Update.
7104 * ax-gdb.c (gen_var_ref): Update.
7105 * breakpoint.c (struct breakpoint_objfile_data)
7106 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7107 type to bound_minimal_symbol.
7108 (create_overlay_event_breakpoint)
7109 (create_longjmp_master_breakpoint)
7110 (create_std_terminate_master_breakpoint)
7111 (create_exception_master_breakpoint): Update.
7112 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7113 * c-exp.y (classify_name): Update.
7114 * coffread.c (coff_symfile_read): Update.
7115 * common/agent.c (agent_look_up_symbols): Update.
7116 * d-lang.c (d_main_name): Update.
7117 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7118 * dec-thread.c (enable_dec_thread): Update.
7119 * dwarf2loc.c (call_site_to_target_addr): Update.
7120 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7121 * eval.c (evaluate_subexp_standard): Update.
7122 * findvar.c (struct minsym_lookup_data) <result>: Change type
7123 to bound_minimal_symbol.
7125 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7126 * frame.c (inside_main_func): Update.
7127 * frv-tdep.c (frv_frame_this_id): Update.
7128 * gcore.c (call_target_sbrk): Update.
7129 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7130 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7132 * go-lang.c (go_main_name): Update.
7133 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7134 (hppa_hpux_find_import_stub_for_addr): Update.
7135 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7136 Update. Change return type.
7137 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7139 * jit.c (jit_breakpoint_re_set_internal): Update.
7140 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7142 * linux-nat.c (get_signo): Update.
7143 * linux-thread-db.c (inferior_has_bug): Update
7144 * m32c-tdep.c (m32c_return_value)
7145 (m32c_m16c_address_to_pointer): Update.
7146 * m32r-tdep.c (m32r_frame_this_id): Update.
7147 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7148 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7149 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7150 lookup_minimal_symbol. Change return type.
7151 (lookup_minimal_symbol): Remove.
7152 (lookup_bound_minimal_symbol): Update.
7153 (lookup_minimal_symbol_text): Change return type.
7154 (lookup_minimal_symbol_solib_trampoline): Change return type.
7155 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7156 (lookup_minimal_symbol_solib_trampoline): Change return type.
7157 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7158 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7159 (value_nsstring, find_imps): Update.
7160 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7161 * p-lang.c (pascal_main_name): Update.
7162 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7163 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7164 * proc-service.c (ps_pglobal_lookup): Update.
7165 * ravenscar-thread.c (get_running_thread_msymbol): Change
7167 (has_ravenscar_runtime, get_running_thread_id): Update.
7168 * remote.c (remote_check_symbols): Update.
7169 * sol-thread.c (ps_pglobal_lookup): Update.
7170 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7171 * solib-dsbt.c (lm_base): Update.
7172 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7174 * solib-irix.c (locate_base): Update.
7175 * solib-som.c (som_solib_create_inferior_hook)
7176 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7178 * solib-spu.c (spu_enable_break): Update.
7179 * solib-svr4.c (elf_locate_base, enable_break): Update.
7180 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7181 (flush_ea_cache): Update.
7182 * stabsread.c (define_symbol): Update.
7183 * symfile.c (simple_read_overlay_table): Update.
7184 * symtab.c (find_pc_sect_line): Update.
7185 * tracepoint.c (scope_info): Update.
7186 * tui-disasm.c (tui_get_begin_asm_address): Update.
7187 * value.c (value_static_field): Update.
7189 2014-02-26 Tom Tromey <tromey@redhat.com>
7191 * minsyms.c (prim_record_minimal_symbol_full): Use
7192 SET_MSYMBOL_VALUE_ADDRESS.
7193 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7194 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7195 SET_MSYMBOL_VALUE_ADDRESS.
7196 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7197 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7199 2014-02-26 Tom Tromey <tromey@redhat.com>
7201 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7202 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7203 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7204 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7205 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7206 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7207 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7208 * ada-lang.c (ada_main_name): Update.
7209 (ada_lookup_simple_minsym): Update.
7210 (ada_make_symbol_completion_list): Update.
7211 (ada_add_standard_exceptions): Update.
7212 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7213 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7214 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7215 * arm-tdep.c (skip_prologue_function): Update.
7216 (arm_skip_stack_protector, arm_skip_stub): Update.
7217 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7218 (arm_wince_skip_main_prologue): Update.
7219 * auxv.c (ld_so_xfer_auxv): Update.
7220 * avr-tdep.c (avr_scan_prologue): Update.
7221 * ax-gdb.c (gen_var_ref): Update.
7222 * block.c (call_site_for_pc): Update.
7223 * blockframe.c (get_pc_function_start): Update.
7224 (find_pc_partial_function_gnu_ifunc): Update.
7225 * breakpoint.c (create_overlay_event_breakpoint): Update.
7226 (create_longjmp_master_breakpoint): Update.
7227 (create_std_terminate_master_breakpoint): Update.
7228 (create_exception_master_breakpoint): Update.
7229 (resolve_sal_pc): Update.
7230 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7231 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7233 * c-valprint.c (c_val_print): Update.
7234 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7235 * coffread.c (coff_symfile_read): Update.
7236 * common/agent.c (agent_look_up_symbols): Update.
7237 * dbxread.c (find_stab_function_addr): Update.
7238 (end_psymtab): Update.
7239 * dwarf2loc.c (call_site_to_target_addr): Update.
7240 (func_verify_no_selftailcall): Update.
7241 (tailcall_dump): Update.
7242 (call_site_find_chain_1): Update.
7243 (dwarf_expr_reg_to_entry_parameter): Update.
7244 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7245 (elf_gnu_ifunc_resolve_by_got): Update.
7246 * f-valprint.c (info_common_command): Update.
7247 * findvar.c (read_var_value): Update.
7248 * frame.c (get_prev_frame_1): Update.
7249 (inside_main_func): Update.
7250 * frv-tdep.c (frv_skip_main_prologue): Update.
7251 (frv_frame_this_id): Update.
7252 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7253 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7254 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7255 (gnuv3_skip_trampoline): Update.
7256 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7257 (hppa64_hpux_in_solib_call_trampoline): Update.
7258 (hppa_hpux_skip_trampoline_code): Update.
7259 (hppa64_hpux_search_dummy_call_sequence): Update.
7260 (hppa_hpux_find_import_stub_for_addr): Update.
7261 (hppa_hpux_find_dummy_bpaddr): Update.
7262 * hppa-tdep.c (hppa_symbol_address)
7263 (hppa_lookup_stub_minimal_symbol): Update.
7264 * i386-tdep.c (i386_skip_main_prologue): Update.
7265 (i386_pe_skip_trampoline_code): Update.
7266 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7267 * infcall.c (get_function_name): Update.
7268 * infcmd.c (until_next_command): Update.
7269 * jit.c (jit_breakpoint_re_set_internal): Update.
7270 (jit_inferior_init): Update.
7271 * linespec.c (minsym_found): Update.
7272 (add_minsym): Update.
7273 * linux-fork.c (info_checkpoints_command): Update.
7274 * linux-nat.c (get_signo): Update.
7275 * linux-thread-db.c (inferior_has_bug): Update.
7276 * m32c-tdep.c (m32c_return_value): Update.
7277 (m32c_m16c_address_to_pointer): Update.
7278 (m32c_m16c_pointer_to_address): Update.
7279 * m32r-tdep.c (m32r_frame_this_id): Update.
7280 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7281 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7282 * maint.c (maintenance_translate_address): Update.
7283 * minsyms.c (add_minsym_to_hash_table): Update.
7284 (add_minsym_to_demangled_hash_table): Update.
7285 (msymbol_objfile): Update.
7286 (lookup_minimal_symbol): Update.
7287 (iterate_over_minimal_symbols): Update.
7288 (lookup_minimal_symbol_text): Update.
7289 (lookup_minimal_symbol_by_pc_name): Update.
7290 (lookup_minimal_symbol_solib_trampoline): Update.
7291 (lookup_minimal_symbol_by_pc_section_1): Update.
7292 (lookup_minimal_symbol_and_objfile): Update.
7293 (prim_record_minimal_symbol_full): Update.
7294 (compare_minimal_symbols): Update.
7295 (compact_minimal_symbols): Update.
7296 (build_minimal_symbol_hash_tables): Update.
7297 (install_minimal_symbols): Update.
7298 (terminate_minimal_symbol_table): Update.
7299 (find_solib_trampoline_target): Update.
7300 (minimal_symbol_upper_bound): Update.
7301 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7302 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7303 (mips_skip_pic_trampoline_code): Update.
7304 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7305 * objc-lang.c (selectors_info): Update.
7306 (classes_info): Update.
7307 (find_methods): Update.
7308 (find_imps): Update.
7309 (find_objc_msgsend): Update.
7310 * objfiles.c (objfile_relocate1): Update.
7311 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7312 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7313 * p-valprint.c (pascal_val_print): Update.
7314 * parse.c (write_exp_msymbol): Update.
7315 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7316 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7317 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7318 * printcmd.c (build_address_symbolic): Update.
7320 (address_info): Update.
7321 * proc-service.c (ps_pglobal_lookup): Update.
7322 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7323 (find_pc_sect_psymtab): Update.
7324 * python/py-framefilter.c (py_print_frame): Update.
7325 * ravenscar-thread.c (get_running_thread_id): Update.
7326 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7328 * remote.c (remote_check_symbols): Update.
7329 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7330 (rs6000_skip_trampoline_code): Update.
7331 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7332 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7333 * solib-dsbt.c (lm_base): Update.
7334 * solib-frv.c (lm_base): Update.
7336 * solib-irix.c (locate_base): Update.
7337 * solib-som.c (som_solib_create_inferior_hook): Update.
7338 (som_solib_desire_dynamic_linker_symbols): Update.
7339 (link_map_start): Update.
7340 * solib-spu.c (spu_enable_break): Update.
7341 (ocl_enable_break): Update.
7342 * solib-svr4.c (elf_locate_base): Update.
7343 (enable_break): Update.
7344 * spu-tdep.c (spu_get_overlay_table): Update.
7345 (spu_catch_start): Update.
7346 (flush_ea_cache): Update.
7347 * stabsread.c (define_symbol): Update.
7348 (scan_file_globals): Update.
7349 * stack.c (find_frame_funname): Update.
7350 (frame_info): Update.
7351 * symfile.c (simple_read_overlay_table): Update.
7352 (simple_overlay_update): Update.
7353 * symmisc.c (dump_msymbols): Update.
7354 * symtab.c (fixup_section): Update.
7355 (find_pc_sect_line): Update.
7356 (skip_prologue_sal): Update.
7357 (search_symbols): Update.
7358 (print_msymbol_info): Update.
7359 (rbreak_command): Update.
7360 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7361 (completion_list_objc_symbol): Update.
7362 (default_make_symbol_completion_list_break_on): Update.
7363 * tracepoint.c (scope_info): Update.
7364 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7365 (tui_get_begin_asm_address): Update.
7366 * valops.c (find_function_in_inferior): Update.
7367 * value.c (value_static_field): Update.
7368 (value_fn_field): Update.
7370 2014-02-26 Tom Tromey <tromey@redhat.com>
7372 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7373 bound minimal symbols. Move code that knows about minsym
7375 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7377 * minsyms.h (minimal_symbol_upper_bound): Declare.
7378 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7379 minimal_symbol_upper_bound.
7381 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7383 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7384 Use the type's name if its basic type does not have a tag.
7386 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7388 * dwarf2read.c (read_subrange_type): Add comment.
7390 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7392 * dwarf2read.c (update_enumeration_type_from_children): New
7393 function, mostly extracted from process_structure_scope.
7394 (read_enumeration_type): Call update_enumeration_type_from_children.
7395 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7396 and flag_flag_enum fields.
7398 2014-02-26 Pedro Alves <palves@redhat.com>
7400 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7401 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7402 to_xfer_partial method.
7404 2014-02-26 Pedro Alves <palves@redhat.com>
7406 * target.c (complete_target_initialization): Don't install
7407 default_xfer_partial as to_xfer_partial hook.
7409 (update_current_target): Don't INHERIT nor de_fault
7410 deprecated_xfer_memory. Delete de_fault macro.
7411 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7412 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7413 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7416 2014-02-26 Pedro Alves <palves@redhat.com>
7418 * go32-nat.c (my_write_child): New function.
7419 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7420 (go32_xfer_partial): New function.
7421 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7422 Instead install a to_xfer_partial hook.
7424 2014-02-26 Pedro Alves <palves@redhat.com>
7426 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7427 to_xfer_partial helper. Rewrite.
7428 (procfs_xfer_partial): New function.
7429 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7430 Install a to_xfer_partial hook.
7432 2014-02-26 Pedro Alves <palves@redhat.com>
7434 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7435 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7436 (m32r_xfer_partial): New function.
7437 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7438 Install a to_xfer_partial hook.
7440 2014-02-26 Pedro Alves <palves@redhat.com>
7442 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7444 (mips_xfer_partial): New function.
7445 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7446 hook. Install a to_xfer_partial hook.
7448 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7450 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7451 * gdbtypes.c (create_array_type_with_stride): New function,
7452 renaming create_array_type, but with an added parameter
7453 called "bit_stride".
7454 (create_array_type): Re-implement using
7455 create_array_type_with_stride.
7456 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7457 and DW_AT_bit_stride attributes.
7459 2014-02-26 Pedro Alves <palves@redhat.com>
7461 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7462 task-specific breakpoints.
7464 2014-02-25 Pedro Alves <palves@redhat.com>
7466 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7467 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7469 2014-02-25 Stan Shebs <stan@codesourcery.com>
7471 * defs.h: Annotate comments for Doxygen.
7473 2014-02-25 Tom Tromey <tromey@redhat.com>
7475 * target.h (target_ignore): Don't declare.
7476 * target.c (target_ignore): Remove.
7478 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7481 * auto-load.c (auto_load_objfile_script_1): Change filename to
7484 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7486 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7487 documentation. Adjust prototype to match the target_ops
7488 to_xfer_partial method. Adjust implementation accordingly.
7490 2014-02-25 Hui Zhu <hui@codesourcery.com>
7492 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7495 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7497 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7498 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7499 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7500 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7501 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7502 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7503 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7504 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7506 (rl78_register_type): Use a data pointer type for SP and
7507 new pseudo registers mentioned above. Use a 16 bit integer
7508 type for all other register pairs.
7509 (rl78_register_name, rl78_g10_register_name): Update for
7510 new pseudo registers.
7511 (rl78_pseudo_register_read): Likewise.
7512 (rl78_pseudo_register_write): Likewise.
7513 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7514 to the newly added pseudo registers.
7516 2014-02-24 Doug Evans <dje@google.com>
7518 * value.c (record_latest_value): Fix comment.
7519 * printcmd.c (print_command_1): Remove code to handle -1 return from
7520 record_latest_value.
7522 2014-02-24 Pedro Alves <palves@redhat.com>
7524 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7525 deprecated_xfer_memory hook.
7526 (procfs_xfer_partial): Call procfs_xfer_memory instead
7527 of the deprecated_xfer_memory target hook.
7528 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7531 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7533 * windows-nat.c (windows_xfer_shared_libraries): Return
7534 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7535 requested object is TARGET_OBJECT_LIBRARIES.
7537 2014-02-24 Yao Qi <yao@codesourcery.com>
7539 * target.h (enum target_xfer_status)
7540 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7541 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7543 * corefile.c (memory_error_message): User updated.
7544 * exec.c (section_table_read_available_memory): Likewise.
7545 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7546 * target.c (target_xfer_status_to_string): Likewise.
7547 (raw_memory_xfer_partial): Likewise.
7548 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7549 * valops.c (read_value_memory): Likewise.
7550 * exec.h: Update comments.
7552 2014-02-24 Yao Qi <yao@codesourcery.com>
7554 * target.c (target_xfer_status_to_string): Rename argument err
7556 * target.h (target_xfer_status_to_string): Update declaration.
7557 Replace target_xfer_error_to_string with
7558 target_xfer_status_to_string in comment.
7560 2014-02-24 Yao Qi <yao@codesourcery.com>
7562 * mips-linux-nat.c (super_close): Update its type.
7563 (mips_linux_close): Pass 'self' to super_close.
7565 2014-02-24 Yao Qi <yao@codesourcery.com>
7567 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7568 * corefile.c (read_memory): Adjusted.
7569 * target.c (target_write_with_progress): Adjusted.
7571 2014-02-23 Yao Qi <yao@codesourcery.com>
7575 2013-10-25 Yao Qi <yao@codesourcery.com>
7577 * remote.c (remote_traceframe_info): Return early if
7578 traceframe is not selected.
7580 2013-07-19 Yao Qi <yao@codesourcery.com>
7582 * target.c (update_current_target): Change the default action
7583 of 'to_traceframe_info' from tcomplain to return_zero.
7584 * target.h (struct target_ops) <to_traceframe_info>: Add more
7587 2014-02-23 Yao Qi <yao@codesourcery.com>
7589 * valops.c (read_value_memory): Rewrite it. Call
7590 target_xfer_partial in a loop.
7591 * exec.h (section_table_available_memory): Remove declaration.
7592 Move comments to ...
7593 * exec.c (section_table_available_memory): ... here. Make it
7596 2014-02-23 Yao Qi <yao@codesourcery.com>
7598 * exec.c (section_table_read_available_memory): New function.
7599 * exec.h (section_table_read_available_memory): Declare.
7600 * ctf.c (ctf_xfer_partial): Call
7601 section_table_read_available_memory.
7602 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7604 2014-02-23 Yao Qi <yao@codesourcery.com>
7606 * ctf.c (ctf_xfer_partial): Move code to ...
7607 * exec.c (exec_read_partial_read_only): ... it. New function.
7608 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7609 * tracefile.c: Include "exec.h".
7610 * exec.h (exec_read_partial_read_only): Declare.
7612 2014-02-23 Yao Qi <yao@codesourcery.com>
7614 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7615 (tfile_has_memory): Remove.
7616 (init_tfile_ops): Don't set fields to_has_all_memory and
7617 to_has_memory of tfile_ops.
7618 * tracefile.c (tracefile_has_all_memory): New function.
7619 (tracefile_has_memory): New function.
7620 (init_tracefile_ops): Initialize fields to_has_all_memory and
7621 to_has_memory of 'ops'.
7623 2014-02-23 Yao Qi <yao@codesourcery.com>
7625 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7626 (ctf_thread_alive, ctf_get_trace_status): Remove.
7627 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7629 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7630 (tfile_has_stack, tfile_has_registers): Remove.
7631 (tfile_thread_alive): Remove.
7632 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7634 * tracefile.c (tracefile_has_stack): New function.
7635 (tracefile_has_registers): New function.
7636 (tracefile_thread_alive): New function.
7637 (tracefile_get_trace_status): New function.
7638 (init_tracefile_ops): New function.
7639 * tracefile.h (init_tracefile_ops): Declare.
7641 2014-02-23 Yao Qi <yao@codesourcery.com>
7643 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7644 (O_LARGEFILE): Likewise.
7645 (tfile_ops): Likewise.
7646 (TRACE_HEADER_SIZE): Likewise.
7647 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7648 (cur_data_size): Likewise.
7649 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7650 (tfile_close, tfile_files_info): Likewise.
7651 (tfile_get_trace_status): Likewise.
7652 (tfile_get_tracepoint_status): Likewise.
7653 (tfile_get_traceframe_address): Likewise.
7654 (tfile_trace_find, match_blocktype): Likewise.
7655 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7656 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7657 (tfile_get_trace_state_variable_value): Likewise.
7658 (tfile_has_all_memory, tfile_has_memory): Likewise.
7659 (tfile_has_stack, tfile_has_registers): Likewise.
7660 (tfile_thread_alive, build_traceframe_info): Likewise.
7661 (tfile_traceframe_info, init_tfile_ops): Likewise.
7662 (_initialize_tracepoint): Don't call init_tfile_ops
7663 and add_target_with_completer.
7664 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7665 exec.h, completer.h and filenames.h.
7666 (_initialize_tracefile_tfile): New function.
7668 2014-02-23 Yao Qi <yao@codesourcery.com>
7670 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7672 (HFILES_NO_SRCDIR): Add tracefile.h.
7673 * ctf.c: Include "tracefile.h".
7674 * tracefile.h: New file.
7675 * tracefile.c: New file
7676 * tracefile-tfile.c: New file.
7677 * tracepoint.c: Include "tracefile.h".
7678 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7679 (stop_reason_names): Add const.
7680 (trace_file_writer_xfree): Move it to tracefile.c.
7681 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7682 (trace_save_ctf): Likewise.
7683 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7684 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7685 (tfile_write_header, tfile_write_regblock_type): Likewise.
7686 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7687 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7688 (tfile_write_raw_data, tfile_end): Likewise.
7689 (tfile_trace_file_writer_new): Likewise.
7690 (free_uploaded_tp): Make it extern.
7691 (free_uploaded_tsv): Make it extern.
7692 (_initialize_tracepoint): Move code to register command 'tsave'
7694 * tracepoint.h (stop_reason_names): Declare.
7695 (struct trace_frame_write_ops): Move it to tracefile.h.
7696 (struct trace_file_write_ops): Likewise.
7697 (struct trace_file_writer): Likewise.
7698 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7700 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7703 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7705 (get_cores_used_by_process): New parameter num_cores, use it.
7706 (linux_xfer_osdata_processes): Pass num_cores to it.
7707 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7710 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7712 * target.c (memory_xfer_partial): Fix length arg in call to
7713 breakpoint_xfer_memory.
7715 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7718 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7719 number comes after the + or - signs. Adjust length of register
7720 name to be extracted.
7722 2014-02-20 Tom Tromey <tromey@redhat.com>
7724 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7725 (ada_varobj_ops): Mark "extern".
7727 2014-02-20 Tom Tromey <tromey@redhat.com>
7729 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7731 2014-02-20 Doug Evans <xdje42@gmail.com>
7733 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7734 All callers updated.
7735 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7736 All callers updated.
7737 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7738 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7740 2014-02-20 lin zuojian <manjian2006@gmail.com>
7741 Joel Brobecker <brobecker@adacore.com>
7742 Doug Evans <xdje42@gmail.com>
7745 * dwarf2read.c (struct die_info): New member in_process.
7746 (reset_die_in_process): New function.
7747 (process_die): Set it at the start, reset when returning.
7748 (inherit_abstract_dies): Only call process_die if origin_child_die
7749 not already being processed.
7751 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7753 * windows-nat.c (handle_unload_dll): Add function documentation.
7754 (do_initial_windows_stuff): Add comment explaining why we wait
7755 until after inferior initialization has finished before
7756 processing all DLLs.
7758 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7760 * windows-nat.c (get_module_name): Delete.
7761 (windows_get_exec_module_filename): New function, mostly
7762 inspired from get_module_name.
7763 (windows_pid_to_exec_file): Replace call to get_module_name
7764 by call to windows_get_exec_module_filename.
7766 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7768 * windows-nat.c (handle_load_dll): Rewrite this function's
7769 introductory comment. Remove code using get_module_name
7770 to get the DLL's name.
7772 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7774 * windows-nat.c (get_windows_debug_event): Ignore
7775 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7776 if windows_initialization_done == 0.
7777 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7778 Adjust implementation to always load all DLLs.
7779 (do_initial_windows_stuff): Replace call to
7780 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7782 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7784 * windows-nat.c (_initialize_windows_nat): Deprecate the
7785 "dll-symbols" command. Turn the "add-shared-symbol-files"
7786 and "assf" aliases into commands, and deprecate them as well.
7787 * NEWS: Add entry explaining that "dll-symbols" and its two
7788 aliases are now deprecated.
7790 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7792 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7793 new-line in debug string. Remove trailing spaces.
7795 2014-02-19 Stan Shebs <stan@codesourcery.com>
7797 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7799 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7801 * NEWS: Add entry for the new feature
7802 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7805 2014-02-19 Stan Shebs <stan@codesourcery.com>
7807 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7809 2014-02-19 Pedro Alves <palves@redhat.com>
7811 * common/ptid.h (struct ptid): Mention that process_stratum
7812 targets should prefer ptid.lwp.
7814 2014-02-19 Pedro Alves <palves@redhat.com>
7816 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7817 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7818 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7819 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7820 store remote thread ids rather than ptid.tid.
7821 (_initialize_remote): Adjust.
7823 2014-02-19 Tom Tromey <tromey@redhat.com>
7825 * target.c (target_get_unwinder): Rewrite.
7826 (target_get_tailcall_unwinder): Rewrite.
7827 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7828 (record_btrace_to_get_tailcall_unwinder): New function.
7829 (init_record_btrace_ops): Update.
7830 * target.h (struct target_ops) <to_get_unwinder,
7831 to_get_tailcall_unwinder>: Now function pointers. Use
7832 TARGET_DEFAULT_RETURN.
7834 2014-02-19 Tom Tromey <tromey@redhat.com>
7836 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7838 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7842 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7844 * target-delegates.c: Rebuild.
7845 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7846 TARGET_DEFAULT_FUNC.
7847 * target.c (default_target_decr_pc_after_break): Rename from
7848 forward_target_decr_pc_after_break. Simplify.
7849 (target_decr_pc_after_break): Rely on delegation.
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target.c (update_current_target): Do not INHERIT to_doc or
7854 to_magic. Do not de_fault to_open or to_close.
7856 2014-02-19 Tom Tromey <tromey@redhat.com>
7858 * gcore.h (objfile_find_memory_regions): Declare.
7859 * gcore.c (objfile_find_memory_regions): No longer static. Add
7861 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7862 * exec.c: Include gcore.h.
7863 (exec_set_find_memory_regions): Remove.
7864 (exec_find_memory_regions): Remove.
7865 (exec_do_find_memory_regions): Remove.
7866 (init_exec_ops): Update.
7867 * defs.h (exec_set_find_memory_regions): Remove.
7869 2014-02-19 Tom Tromey <tromey@redhat.com>
7871 * target-delegates.c: Rebuild.
7872 * target.h (struct target_ops) <to_extra_thread_info,
7873 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7874 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7875 not 0, in TARGET_DEFAULT_RETURN.
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7879 * target.c (complete_target_initialization): Remove casts. Use
7880 return_zero_has_execution.
7881 (return_zero): Add "ignore" argument.
7882 (return_zero_has_execution): New function.
7883 (init_dummy_target): Remove casts. Use
7884 return_zero_has_execution.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target.c (update_current_target): Update comments. Do not
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7893 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7895 * corelow.c (core_read_description): Delegate when needed.
7896 * remote.c (remote_read_description): Delegate when needed.
7897 * target-delegates.c: Rebuild.
7898 * target.c (target_read_description): Rewrite.
7899 * target.h (struct target_ops) <to_read_description>: Update
7900 comment. Use TARGET_DEFAULT_RETURN.
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7904 * target-delegates.c: Rebuild.
7905 * target.c (update_current_target): Don't inherit or default
7907 (find_default_run_target): Check against delegate_can_run.
7908 * target.h (struct target_ops) <to_can_run>: Use
7909 TARGET_DEFAULT_RETURN.
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7913 * target-delegates.c: Rebuild.
7914 * target.c (target_disconnect): Unconditionally delegate.
7915 * target.h (struct target_ops) <to_disconnect>: Use
7916 TARGET_DEFAULT_NORETURN.
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * record.c (record_stop): Unconditionally delegate.
7921 * target-delegates.c: Rebuild.
7922 * target.c (target_stop_recording): Unconditionally delegate.
7923 * target.h (struct target_ops) <to_stop_recording>: Use
7924 TARGET_DEFAULT_IGNORE.
7926 2014-02-19 Tom Tromey <tromey@redhat.com>
7928 * target-delegates.c: Rebuild.
7929 * target.c (target_enable_btrace): Unconditionally delegate.
7930 * target.h (struct target_ops) <to_enable_btrace>: Use
7931 TARGET_DEFAULT_NORETURN.
7933 2014-02-19 Tom Tromey <tromey@redhat.com>
7935 * target-delegates.c: Rebuild.
7936 * target.c (target_read_btrace): Unconditionally delegate.
7937 * target.h (struct target_ops) <to_read_btrace>: Use
7938 TARGET_DEFAULT_NORETURN.
7940 2014-02-19 Tom Tromey <tromey@redhat.com>
7942 * target-delegates.c: Rebuild.
7943 * target.c (target_teardown_btrace): Unconditionally delegate.
7944 * target.h (struct target_ops) <to_teardown_btrace>: Use
7945 TARGET_DEFAULT_NORETURN.
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7949 * target-delegates.c: Rebuild.
7950 * target.c (target_disable_btrace): Unconditionally delegate.
7951 * target.h (struct target_ops) <to_disable_btrace>: Use
7952 TARGET_DEFAULT_NORETURN.
7954 2014-02-19 Tom Tromey <tromey@redhat.com>
7956 * target-delegates.c: Rebuild.
7957 * target.c (default_search_memory): New function.
7958 (simple_search_memory): Update comment.
7959 (target_search_memory): Unconditionally delegate.
7960 * target.h (struct target_ops) <to_search_memory>: Use
7961 TARGET_DEFAULT_FUNC.
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7965 * auxv.c (default_auxv_parse): No longer static.
7966 (target_auxv_parse): Unconditionally delegate.
7967 * auxv.h (default_auxv_parse): Declare.
7968 * target-delegates.c: Rebuild.
7969 * target.c: Include auxv.h.
7970 * target.h (struct target_ops) <to_auxv_parse>: Use
7971 TARGET_DEFAULT_FUNC.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target-delegates.c: Rebuild.
7976 * target.c (target_memory_map): Unconditionally delegate.
7977 * target.h (struct target_ops) <to_memory_map>: Use
7978 TARGET_DEFAULT_RETURN.
7980 2014-02-19 Tom Tromey <tromey@redhat.com>
7982 * target-delegates.c: Rebuild.
7983 * target.c (target_thread_alive): Unconditionally delegate.
7984 * target.h (struct target_ops) <to_thread_alive>: Use
7985 TARGET_DEFAULT_RETURN.
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7989 * target-delegates.c: Rebuild.
7990 * target.c (target_save_record): Unconditionally delegate.
7991 * target.h (struct target_ops) <to_save_record>: Use
7992 TARGET_DEFAULT_NORETURN.
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7996 * target-delegates.c: Rebuild.
7997 * target.c (target_delete_record): Unconditionally delegate.
7998 * target.h (struct target_ops) <to_delete_record>: Use
7999 TARGET_DEFAULT_NORETURN.
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8003 * target-delegates.c: Rebuild.
8004 * target.c (target_record_is_replaying): Unconditionally
8006 * target.h (struct target_ops) <to_record_is_replaying>: Use
8007 TARGET_DEFAULT_RETURN.
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_goto_record_begin): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_goto_record_begin>: Use
8014 TARGET_DEFAULT_NORETURN.
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * target-delegates.c: Rebuild.
8019 * target.c (target_goto_record_end): Unconditionally delegate.
8020 * target.h (struct target_ops) <to_goto_record_end>: Use
8021 TARGET_DEFAULT_NORETURN.
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8025 * target-delegates.c: Rebuild.
8026 * target.c (target_goto_record): Unconditionally delegate.
8027 * target.h (struct target_ops) <to_goto_record>: Use
8028 TARGET_DEFAULT_NORETURN.
8030 2014-02-19 Tom Tromey <tromey@redhat.com>
8032 * target-delegates.c: Rebuild.
8033 * target.c (target_insn_history): Unconditionally delegate.
8034 * target.h (struct target_ops) <to_insn_history>: Use
8035 TARGET_DEFAULT_NORETURN.
8037 2014-02-19 Tom Tromey <tromey@redhat.com>
8039 * target-delegates.c: Rebuild.
8040 * target.c (target_insn_history_from): Unconditionally delegate.
8041 * target.h (struct target_ops) <to_insn_history_from>: Use
8042 TARGET_DEFAULT_NORETURN.
8044 2014-02-19 Tom Tromey <tromey@redhat.com>
8046 * target-delegates.c: Rebuild.
8047 * target.c (target_insn_history_range): Unconditionally delegate.
8048 * target.h (struct target_ops) <to_insn_history_range>: Use
8049 TARGET_DEFAULT_NORETURN.
8051 2014-02-19 Tom Tromey <tromey@redhat.com>
8053 * target-delegates.c: Rebuild.
8054 * target.c (target_call_history): Unconditionally delegate.
8055 * target.h (struct target_ops) <to_call_history>: Use
8056 TARGET_DEFAULT_NORETURN.
8058 2014-02-19 Tom Tromey <tromey@redhat.com>
8060 * target-delegates.c: Rebuild.
8061 * target.c (target_call_history_from): Unconditionally delegate.
8062 * target.h (struct target_ops) <to_call_history_from>: Use
8063 TARGET_DEFAULT_NORETURN.
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8067 * target-delegates.c: Rebuild.
8068 * target.c (target_call_history_range): Unconditionally delegate.
8069 * target.h (struct target_ops) <to_call_history_range>: Use
8070 TARGET_DEFAULT_NORETURN.
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8074 * target-delegates.c: Rebuild.
8075 * target.c (target_verify_memory): Unconditionally delegate.
8076 * target.h (struct target_ops) <to_verify_memory>: Use
8077 TARGET_DEFAULT_NORETURN.
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8081 * target-delegates.c: Rebuild.
8082 * target.c (target_core_of_thread): Unconditionally delegate.
8083 * target.h (struct target_ops) <to_core_of_thread>: Use
8084 TARGET_DEFAULT_RETURN.
8086 2014-02-19 Tom Tromey <tromey@redhat.com>
8088 * target-delegates.c: Rebuild.
8089 * target.c (target_flash_done): Unconditionally delegate.
8090 * target.h (struct target_ops) <to_flash_done>: Use
8091 TARGET_DEFAULT_NORETURN.
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8095 * target-delegates.c: Rebuild.
8096 * target.c (target_flash_erase): Unconditionally delegate.
8097 * target.h (struct target_ops) <to_flash_erase>: Use
8098 TARGET_DEFAULT_NORETURN.
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8102 * target-delegates.c: Rebuild.
8103 * target.c (target_get_section_table): Unconditionally delegate.
8104 * target.h (struct target_ops) <to_get_section_table>: Use
8105 TARGET_DEFAULT_RETURN.
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8109 * target-delegates.c: Rebuild.
8110 * target.c (target_pid_to_str): Unconditionally delegate.
8111 (init_dummy_target): Don't initialize to_pid_to_str.
8112 (default_pid_to_str): Rename from dummy_pid_to_str.
8113 * target.h (struct target_ops) <to_pid_to_str>: Use
8114 TARGET_DEFAULT_FUNC.
8116 2014-02-19 Tom Tromey <tromey@redhat.com>
8118 * target-delegates.c: Rebuild.
8119 * target.c (target_find_new_threads): Unconditionally delegate.
8120 * target.h (struct target_ops) <to_find_new_threads>: Use
8121 TARGET_DEFAULT_RETURN.
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8125 * target-delegates.c: Rebuild.
8126 * target.c (target_program_signals): Unconditionally delegate.
8127 * target.h (struct target_ops) <to_program_signals>: Use
8128 TARGET_DEFAULT_IGNORE.
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8132 * target-delegates.c: Rebuild.
8133 * target.c (target_pass_signals): Unconditionally delegate.
8134 * target.h (struct target_ops) <to_pass_signals>: Use
8135 TARGET_DEFAULT_IGNORE.
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8139 * target-delegates.c: Rebuild.
8140 * target.c (default_mourn_inferior): New function.
8141 (target_mourn_inferior): Unconditionally delegate.
8142 * target.h (struct target_ops) <to_mourn_inferior>: Use
8143 TARGET_DEFAULT_FUNC.
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * target-delegates.c: Rebuild.
8148 * target.c (default_follow_fork): New function.
8149 (target_follow_fork): Unconditionally delegate.
8150 * target.h (struct target_ops) <to_follow_fork>: Use
8151 TARGET_DEFAULT_FUNC.
8153 2014-02-19 Tom Tromey <tromey@redhat.com>
8155 * target-delegates.c: Rebuild.
8156 * target.c (target_kill): Unconditionally delegate.
8157 * target.h (struct target_ops) <to_kill>: Use
8158 TARGET_DEFAULT_NORETURN.
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8162 * target-delegates.c: Rebuild.
8163 * target.c (target_masked_watch_num_registers): Unconditionally
8165 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8166 Use TARGET_DEFAULT_RETURN.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_remove_mask_watchpoint): Unconditionally
8173 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8174 TARGET_DEFAULT_RETURN.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_insert_mask_watchpoint): Unconditionally
8181 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8182 TARGET_DEFAULT_RETURN.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_ranged_break_num_registers): Unconditionally
8189 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8190 Use TARGET_DEFAULT_RETURN.
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8194 * target-delegates.c: Rebuild.
8195 * target.c (target_fetch_registers): Unconditionally delegate.
8196 * target.h (struct target_ops) <to_fetch_registers>: Use
8197 TARGET_DEFAULT_NORETURN.
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * target-delegates.c: Rebuild.
8202 * target.c (update_current_target): Don't inherit or default
8204 * target.h (struct target_ops) <to_stop>: Use
8205 TARGET_DEFAULT_IGNORE.
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8209 * target-delegates.c: Rebuild.
8210 * target.c (update_current_target): Don't inherit or default
8211 to_can_run_breakpoint_commands.
8212 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8213 Use TARGET_DEFAULT_RETURN.
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8217 * target-delegates.c: Rebuild.
8218 * target.c (update_current_target): Don't inherit or default
8219 to_supports_evaluation_of_breakpoint_conditions.
8220 * target.h (struct target_ops)
8221 <to_supports_evaluation_of_breakpoint_conditions>: Use
8222 TARGET_DEFAULT_RETURN.
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8228 to_augmented_libraries_svr4_read.
8229 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8230 Use TARGET_DEFAULT_RETURN.
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8237 * target.h (struct target_ops) <to_can_use_agent>: Use
8238 TARGET_DEFAULT_RETURN.
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8245 * target.h (struct target_ops) <to_use_agent>: Use
8246 TARGET_DEFAULT_NORETURN.
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8253 (return_null): Remove.
8254 * target.h (struct target_ops) <to_traceframe_info>: Use
8255 TARGET_DEFAULT_RETURN.
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8259 * target-delegates.c: Rebuild.
8260 * target.c (update_current_target): Don't inherit or default
8261 to_static_tracepoint_markers_by_strid.
8262 * target.h (struct target_ops)
8263 <to_static_tracepoint_markers_by_strid>: Use
8264 TARGET_DEFAULT_NORETURN.
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8270 to_static_tracepoint_marker_at.
8271 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8272 Use TARGET_DEFAULT_RETURN.
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8276 * target-delegates.c: Rebuild.
8277 * target.c (update_current_target): Don't inherit or default
8279 * target.h (struct target_ops) <to_set_permissions>: Use
8280 TARGET_DEFAULT_IGNORE.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't inherit or default
8287 * target.h (struct target_ops) <to_get_tib_address>: Use
8288 TARGET_DEFAULT_NORETURN.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8295 * target.h (struct target_ops) <to_set_trace_notes>: Use
8296 TARGET_DEFAULT_RETURN.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't initialize
8302 to_set_trace_buffer_size.
8303 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8304 TARGET_DEFAULT_IGNORE.
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't inherit or default
8310 to_set_circular_trace_buffer.
8311 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8312 TARGET_DEFAULT_IGNORE.
8314 2014-02-19 Tom Tromey <tromey@redhat.com>
8316 * target-delegates.c: Rebuild.
8317 * target.c (update_current_target): Don't inherit or default
8318 to_set_disconnected_tracing.
8319 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8320 TARGET_DEFAULT_IGNORE.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_get_min_fast_tracepoint_insn_len.
8327 (return_minus_one): Remove.
8328 * target.h (struct target_ops)
8329 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8335 to_get_raw_trace_data.
8336 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8337 TARGET_DEFAULT_NORETURN.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8343 to_upload_trace_state_variables.
8344 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8345 Use TARGET_DEFAULT_RETURN.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_upload_tracepoints.
8352 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8353 TARGET_DEFAULT_RETURN.
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8360 * target.h (struct target_ops) <to_save_trace_data>: Use
8361 TARGET_DEFAULT_NORETURN.
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8365 * target-delegates.c: Rebuild.
8366 * target.c (update_current_target): Don't inherit or default
8367 to_get_trace_state_variable_value.
8368 * target.h (struct target_ops)
8369 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8376 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8383 * target.h (struct target_ops) <to_trace_stop>: Use
8384 TARGET_DEFAULT_NORETURN.
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8390 to_get_tracepoint_status.
8391 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8392 TARGET_DEFAULT_NORETURN.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_get_trace_status.
8399 * target.h (struct target_ops) <to_get_trace_status>: Use
8400 TARGET_DEFAULT_RETURN.
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8407 * target.h (struct target_ops) <to_trace_start>: Use
8408 TARGET_DEFAULT_NORETURN.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_trace_set_readonly_regions.
8415 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8416 Use TARGET_DEFAULT_NORETURN.
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_disable_tracepoint.
8423 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8424 TARGET_DEFAULT_NORETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_enable_tracepoint.
8431 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8432 TARGET_DEFAULT_NORETURN.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_download_trace_state_variable.
8439 * target.h (struct target_ops) <to_download_trace_state_variable>:
8440 Use TARGET_DEFAULT_NORETURN.
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8446 to_can_download_tracepoint.
8447 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8448 TARGET_DEFAULT_RETURN.
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_download_tracepoint.
8455 * target.h (struct target_ops) <to_download_tracepoint>: Use
8456 TARGET_DEFAULT_NORETURN.
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8463 * target.h (struct target_ops) <to_trace_init>: Use
8464 TARGET_DEFAULT_RETURN.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8470 to_supports_string_tracing.
8471 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8472 TARGET_DEFAULT_RETURN.
8474 2014-02-19 Tom Tromey <tromey@redhat.com>
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_supports_enable_disable_tracepoint.
8479 * target.h (struct target_ops)
8480 <to_supports_enable_disable_tracepoint>: Use
8481 TARGET_DEFAULT_RETURN.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_supports_multi_process.
8488 * target.h (struct target_ops) <to_supports_multi_process>: Use
8489 TARGET_DEFAULT_RETURN.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_get_ada_task_ptid.
8496 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8497 TARGET_DEFAULT_FUNC.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_thread_architecture.
8504 * target.h (struct target_ops) <to_thread_architecture>: Use
8505 TARGET_DEFAULT_FUNC.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8511 to_execution_direction.
8512 * target.h (struct target_ops) <to_execution_direction>: Use
8513 TARGET_DEFAULT_FUNC.
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_can_execute_reverse.
8520 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8521 TARGET_DEFAULT_RETURN.
8522 (target_can_execute_reverse): Unconditionally delegate.
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8529 (dummy_goto_bookmark): Remove.
8530 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8531 * target.h (struct target_ops) <to_goto_bookmark>: Use
8532 TARGET_DEFAULT_NORETURN.
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8536 * target-delegates.c: Rebuild.
8537 * target.c (update_current_target): Don't inherit or default
8539 (dummy_get_bookmark): Remove.
8540 (init_dummy_target): Don't inherit or default to_get_bookmark.
8541 * target.h (struct target_ops) <to_get_bookmark>: Use
8542 TARGET_DEFAULT_NORETURN
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_make_corefile_notes.
8549 (init_dummy_target): Don't initialize to_make_corefile_notes.
8550 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8551 TARGET_DEFAULT_FUNC.
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target-delegates.c: Rebuild.
8556 * target.c (update_current_target): Don't inherit or default
8557 to_find_memory_regions.
8558 (init_dummy_target): Don't initialize to_find_memory_regions.
8559 * target.h (struct target_ops) <to_find_memory_regions>: Use
8560 TARGET_DEFAULT_FUNC.
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8564 * target-delegates.c: Rebuild.
8565 * target.c (update_current_target): Don't inherit or default
8567 * target.h (struct target_ops) <to_log_command>: Use
8568 TARGET_DEFAULT_IGNORE.
8569 (target_log_command): Unconditionally delegate.
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8575 to_pid_to_exec_file.
8576 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8577 TARGET_DEFAULT_RETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8584 (target_thread_name): Unconditionally delegate.
8585 * target.h (struct target_ops) <to_thread_name>: Use
8586 TARGET_DEFAULT_RETURN.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_extra_thread_info.
8593 * target.h (struct target_ops) <to_extra_thread_info>: Use
8594 TARGET_DEFAULT_RETURN.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8601 * target.h (struct target_ops) <to_has_exited>: Use
8602 TARGET_DEFAULT_RETURN..
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_set_syscall_catchpoint.
8609 (return_one): Remove.
8610 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8611 TARGET_DEFAULT_RETURN.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_insert_exec_catchpoint.
8618 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8619 TARGET_DEFAULT_RETURN.
8621 2014-01-08 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_insert_exec_catchpoint.
8626 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8627 TARGET_DEFAULT_RETURN.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_remove_vfork_catchpoint.
8634 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8635 TARGET_DEFAULT_RETURN.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_insert_vfork_catchpoint.
8642 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8643 TARGET_DEFAULT_RETURN.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8649 to_remove_fork_catchpoint.
8650 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8651 TARGET_DEFAULT_RETURN.
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_insert_fork_catchpoint.
8658 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8659 TARGET_DEFAULT_RETURN.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_post_startup_inferior.
8666 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8667 TARGET_DEFAULT_IGNORE.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8674 * target.h (struct target_ops) <to_load>: Use
8675 TARGET_DEFAULT_NORETURN.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8682 * target.h (struct target_ops) <to_terminal_info>: Use
8683 TARGET_DEFAULT_FUNC.
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_terminal_save_ours.
8690 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8691 TARGET_DEFAULT_IGNORE.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8698 * target.h (struct target_ops) <to_terminal_ours>: Use
8699 TARGET_DEFAULT_IGNORE.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_terminal_ours_for_output.
8706 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8707 TARGET_DEFAULT_IGNORE.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_terminal_inferior.
8714 * target.h (struct target_ops) <to_terminal_inferior>: Use
8715 TARGET_DEFAULT_IGNORE.
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8722 * target.h (struct target_ops) <to_terminal_init>: Use
8723 TARGET_DEFAULT_IGNORE.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_can_accel_watchpoint_condition.
8730 * target.h (struct target_ops)
8731 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_region_ok_for_hw_watchpoint.
8738 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8739 Use TARGET_DEFAULT_FUNC.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_watchpoint_addr_within_range.
8746 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8747 Use TARGET_DEFAULT_FUNC.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_remove_watchpoint.
8754 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8755 TARGET_DEFAULT_NORETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_insert_watchpoint.
8762 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8763 TARGET_DEFAULT_RETURN.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_remove_hw_breakpoint.
8770 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8771 TARGET_DEFAULT_RETURN.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_insert_hw_breakpoint.
8778 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8779 TARGET_DEFAULT_RETURN.
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_can_use_hw_breakpoint.
8786 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8787 TARGET_DEFAULT_RETURN.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8794 * target.h (struct target_ops) <to_files_info>: Use
8795 TARGET_DEFAULT_IGNORE.
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8802 * target.h (struct target_ops) <to_store>: Use
8803 TARGET_DEFAULT_NORETURN.
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8810 * target.h (struct target_ops) <to_post_attach>: Use
8811 TARGET_DEFAULT_IGNORE.
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8818 (default_rcmd): New function.
8819 (do_monitor_command): Unconditionally delegate.
8820 * target.h (struct target_ops) <to_rmcd>: Use
8821 TARGET_DEFAULT_FUNC.
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target-delegates.c: Rebuild.
8826 * target.c (init_dummy_target): Don't initialize to_attach.
8827 (target_attach): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_attach>: Use
8829 TARGET_DEFAULT_FUNC.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_detach): Unconditionally delegate.
8835 (init_dummy_target): Don't initialize to_detach.
8836 * target.h (struct target_ops) <to_detach>: Use
8837 TARGET_DEFAULT_IGNORE.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8843 (target_augmented_libraries_svr4_read): Add argument.
8844 * target.c (update_current_target): Update.
8845 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8850 * target.h (struct target_ops) <to_call_history_range>: Add
8852 * target.c (target_call_history_range): Add argument.
8853 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8855 (record_btrace_call_history_from): Update.
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target.h (struct target_ops) <to_call_history_from>: Add
8861 * target.c (target_call_history_from): Add argument.
8862 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8867 * target.h (struct target_ops) <to_call_history>: Add argument.
8868 * target.c (target_call_history): Add argument.
8869 * record-btrace.c (record_btrace_call_history): Add 'self'
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8874 * target.h (struct target_ops) <to_insn_history_range>: Add
8876 * target.c (target_insn_history_range): Add argument.
8877 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8879 (record_btrace_insn_history_from): Update.
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8883 * target.h (struct target_ops) <to_insn_history_from>: Add
8885 * target.c (target_insn_history_from): Add argument.
8886 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target.h (struct target_ops) <to_insn_history>: Add argument.
8892 * target.c (target_insn_history): Add argument.
8893 * record-btrace.c (record_btrace_insn_history): Add 'self'
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8898 * target.h (struct target_ops) <to_goto_record>: Add argument.
8899 * target.c (target_goto_record): Add argument.
8900 * record-full.c (record_full_goto): Add 'self' argument.
8901 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8906 * target.c (target_goto_record_end): Add argument.
8907 * record-full.c (record_full_goto_end): Add 'self' argument.
8908 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8912 * target.h (struct target_ops) <to_goto_record_begin>: Add
8914 * target.c (target_goto_record_begin): Add argument.
8915 * record-full.c (record_full_goto_begin): Add 'self' argument.
8916 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target.h (struct target_ops) <to_record_is_replaying>: Add
8923 * target.c (target_record_is_replaying): Add argument.
8924 * record-full.c (record_full_is_replaying): Add 'self' argument.
8925 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8927 (record_btrace_xfer_partial, record_btrace_store_registers)
8928 (record_btrace_prepare_to_store, record_btrace_resume)
8929 (record_btrace_wait, record_btrace_decr_pc_after_break)
8930 (record_btrace_find_new_threads, record_btrace_thread_alive):
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8935 * target.h (struct target_ops) <to_delete_record>: Add argument.
8936 * target.c (target_delete_record): Add argument.
8937 * record-full.c (record_full_delete): Add 'self' argument.
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8941 * target.h (struct target_ops) <to_save_record>: Add argument.
8942 * target.c (target_save_record): Add argument.
8943 * record-full.c (record_full_save): Add 'self' argument.
8944 (record_full_save): Add 'self' argument.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target.h (struct target_ops) <to_info_record>: Add argument.
8949 * target.c (target_info_record): Add argument.
8950 * record.c (info_record_command): Add argument.
8951 * record-full.c (record_full_info): Add 'self' argument.
8952 * record-btrace.c (record_btrace_info): Add 'self' argument.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8957 * target.c (target_stop_recording): Add argument.
8958 * record.c (record_stop): Add argument.
8959 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8964 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8965 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8966 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8968 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8969 (_initialize_amd64_linux_nat): Use it.
8970 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8971 (_initialize_i386_linux_nat): Use it.
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8975 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8976 * target.c (target_teardown_btrace): Add argument.
8977 * remote.c (remote_teardown_btrace): Add 'self' argument.
8978 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8980 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8986 * target.c (target_disable_btrace): Add argument.
8987 * remote.c (remote_disable_btrace): Add 'self' argument.
8988 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8990 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8995 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8996 * target.c (target_enable_btrace): Add argument.
8997 * remote.c (remote_enable_btrace): Add 'self' argument.
8998 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9000 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9006 (target_can_use_agent): Add argument.
9007 * target.c (update_current_target): Update.
9008 * remote.c (remote_can_use_agent): Add 'self' argument.
9009 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target.h (struct target_ops) <to_use_agent>: Add argument.
9014 (target_use_agent): Add argument.
9015 * target.c (update_current_target): Update.
9016 * remote.c (remote_use_agent): Add 'self' argument.
9017 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9021 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9022 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9023 (target_traceframe_info): Add argument.
9024 * target.c (update_current_target): Update.
9025 * remote.c (remote_traceframe_info): Add 'self' argument.
9026 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * target.h (target_static_tracepoint_markers_by_strid): Add
9032 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9034 * target.c (update_current_target): Update.
9035 * remote.c (struct target_ops)
9036 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9037 * linux-nat.c (struct target_ops)
9038 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9042 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9044 (target_static_tracepoint_marker_at): Add argument.
9045 * target.c (update_current_target): Update.
9046 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9052 (target_set_permissions): Add argument.
9053 * target.c (update_current_target): Update.
9054 * remote.c (remote_set_permissions): Add 'self' argument.
9055 (remote_start_remote): Update.
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9059 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9060 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9061 (target_get_tib_address): Add argument.
9062 * target.c (update_current_target): Update.
9063 * remote.c (remote_get_tib_address): Add 'self' argument.
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9068 (target_set_trace_notes): Add argument.
9069 * target.c (update_current_target): Update.
9070 * remote.c (remote_set_trace_notes): Add 'self' argument.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9076 (target_set_trace_buffer_size): Add argument.
9077 * target.c (update_current_target): Update.
9078 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9084 (target_set_circular_trace_buffer): Add argument.
9085 * target.c (update_current_target): Update.
9086 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9093 (target_set_disconnected_tracing): Add argument.
9094 * target.c (update_current_target): Update.
9095 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9099 * target.h (struct target_ops)
9100 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9101 (target_get_min_fast_tracepoint_insn_len): Add argument.
9102 * target.c (update_current_target): Update.
9103 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9110 (target_get_raw_trace_data): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9116 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9118 (target_upload_trace_state_variables): Add argument.
9119 * target.c (update_current_target): Update.
9120 * remote.c (remote_upload_trace_state_variables): Add 'self'
9122 (remote_start_remote): Update.
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9126 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9128 (target_upload_tracepoints): Add argument.
9129 * target.c (update_current_target): Update.
9130 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9131 (remote_start_remote): Update.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9136 (target_save_trace_data): Add argument.
9137 * target.c (update_current_target): Update.
9138 * remote.c (remote_save_trace_data): Add 'self' argument.
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9144 * target.h (struct target_ops)
9145 <to_get_trace_state_variable_value>: Add argument.
9146 (target_get_trace_state_variable_value): Add argument.
9147 * target.c (update_current_target): Update.
9148 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9150 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9155 * target.h (struct target_ops) <to_trace_find>: Add argument.
9156 (target_trace_find): Add argument.
9157 * target.c (update_current_target): Update.
9158 * remote.c (remote_trace_find): Add 'self' argument.
9159 * ctf.c (ctf_trace_find): Add 'self' argument.
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9164 (target_trace_stop): Add argument.
9165 * target.c (update_current_target): Update.
9166 * remote.c (remote_trace_stop): Add 'self' argument.
9168 2014-02-19 Tom Tromey <tromey@redhat.com>
9170 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9171 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9173 (target_get_tracepoint_status): Add argument.
9174 * target.c (update_current_target): Update.
9175 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9180 * target.h (struct target_ops) <to_get_trace_status>: Add
9182 (target_get_trace_status): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_get_trace_status): Add 'self' argument.
9185 (remote_start_remote, remote_can_download_tracepoint): Update.
9186 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9190 * target.h (struct target_ops) <to_trace_start>: Add argument.
9191 (target_trace_start): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_trace_start): Add 'self' argument.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9199 (target_trace_set_readonly_regions): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9208 (target_disable_tracepoint): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9216 (target_enable_tracepoint): Add argument.
9217 * target.c (update_current_target): Update.
9218 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * target.h (struct target_ops) <to_download_trace_state_variable>:
9224 (target_download_trace_state_variable): Add argument.
9225 * target.c (update_current_target): Update.
9226 * remote.c (remote_download_trace_state_variable): Add 'self'
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9233 (target_can_download_tracepoint): Add argument.
9234 * target.c (update_current_target): Update.
9235 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9239 * target.h (struct target_ops) <to_download_tracepoint>: Add
9241 (target_download_tracepoint): Add argument.
9242 * target.c (update_current_target): Update.
9243 * remote.c (remote_download_tracepoint): Add 'self' argument.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target.h (struct target_ops) <to_trace_init>: Add argument.
9248 (target_trace_init): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_trace_init): Add 'self' argument.
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9255 * target.c (target_fileio_readlink): Add argument.
9256 * remote.c (remote_hostio_readlink): Add 'self' argument.
9257 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9261 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9262 * target.c (target_fileio_unlink): Add argument.
9263 * remote.c (remote_hostio_unlink): Add 'self' argument.
9264 (remote_file_delete): Update.
9265 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9269 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9270 * target.c (target_fileio_close): Add argument.
9271 * remote.c (remote_hostio_close): Add 'self' argument.
9272 (remote_hostio_close_cleanup): Update.
9273 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9275 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9280 * target.c (target_fileio_pread): Add argument.
9281 * remote.c (remote_hostio_pread): Add 'self' argument.
9282 (remote_bfd_iovec_pread, remote_file_get): Update.
9283 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9287 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9288 * target.c (target_fileio_pwrite): Add argument.
9289 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9290 (remote_file_put): Update.
9291 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9296 * target.c (target_fileio_open): Add argument.
9297 * remote.c (remote_hostio_open): Add 'self' argument.
9298 (remote_bfd_iovec_open): Add 'self' argument.
9299 (remote_file_put): Add 'self' argument.
9300 (remote_file_get): Add 'self' argument.
9301 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9305 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9307 (target_can_run_breakpoint_commands): Add argument.
9308 * target.c (update_current_target): Update.
9309 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9311 (remote_insert_breakpoint): Add 'self' argument.
9312 (remote_insert_hw_breakpoint): Add 'self' argument.
9313 (remote_can_run_breakpoint_commands): Add 'self' argument.
9315 2014-02-19 Tom Tromey <tromey@redhat.com>
9317 * target.h (struct target_ops)
9318 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9319 (target_supports_evaluation_of_breakpoint_conditions): Add
9321 * target.c (update_current_target): Update.
9322 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9324 (remote_insert_breakpoint): Add 'self' argument.
9325 (remote_insert_hw_breakpoint): Add 'self' argument.
9326 (remote_supports_cond_breakpoints): Add 'self' argument.
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9330 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9332 (target_supports_string_tracing): Add argument.
9333 * target.c (update_current_target): Update.
9334 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target.h (struct target_ops)
9339 <to_supports_disable_randomization>: Add argument.
9340 * target.c (find_default_supports_disable_randomization): Add
9342 (target_supports_disable_randomization): Add argument.
9343 (find_default_supports_disable_randomization): Add 'self'
9345 * remote.c (extended_remote_supports_disable_randomization): Add
9347 (remote_supports_disable_randomization): Add 'self' argument.
9348 (extended_remote_create_inferior): Update.
9349 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target.h (struct target_ops)
9355 <to_supports_enable_disable_tracepoint>: Add argument.
9356 (target_supports_enable_disable_tracepoint): Add argument.
9357 * target.c (update_current_target): Update.
9358 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target.h (struct target_ops) <to_supports_multi_process>: Add
9365 (target_supports_multi_process): Add argument.
9366 * target.c (update_current_target): Update.
9367 * remote.c (remote_supports_multi_process): Add 'self' argument.
9368 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9370 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * target.h (struct target_ops) <to_execution_direction>: Add
9377 (target_execution_direction): Add argument.
9378 * target.c (default_execution_direction): Add 'self' argument.
9379 * record-full.c (record_full_execution_direction): Add 'self'
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9386 (target_can_execute_reverse): Add argument.
9387 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9388 * record-full.c (record_full_can_execute_reverse): Add 'self'
9390 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9393 2014-02-19 Tom Tromey <tromey@redhat.com>
9395 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9396 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9398 (target_get_ada_task_ptid): Add argument.
9399 * target.c (update_current_target): Update.
9400 (default_get_ada_task_ptid): Add 'self' argument.
9401 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9402 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9403 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9405 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9407 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9409 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9411 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9412 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9417 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9418 (target_goto_bookmark): Add argument.
9419 * target.c (dummy_goto_bookmark): Add 'self' argument.
9420 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9425 (target_get_bookmark): Add argument.
9426 * target.c (dummy_get_bookmark): Add 'self' argument.
9427 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9433 (target_make_corefile_notes): Add argument.
9434 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9435 * procfs.c (procfs_make_note_section): Add 'self' argument.
9436 (procfs_make_note_section): Add 'self' argument.
9437 (procfs_make_note_section): Add 'self' argument.
9438 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9440 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9441 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9442 * exec.c (exec_make_note_section): Add 'self' argument.
9443 (exec_make_note_section): Add 'self' argument.
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9447 * target.h (struct target_ops) <to_find_memory_regions>: Add
9449 (target_find_memory_regions): Add argument.
9450 * target.c (dummy_find_memory_regions): Add 'self' argument.
9451 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9452 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9453 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9454 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9455 * exec. (exec_do_find_memory_regions): New global.
9456 (exec_set_find_memory_regions): Rewrite.
9457 (exec_find_memory_regions): New function.
9458 (init_exec_ops): Use exec_find_memory_regions.
9460 2014-02-19 Tom Tromey <tromey@redhat.com>
9462 * target.h (struct target_ops) <to_supports_non_stop>: Add
9464 * target.c (find_default_supports_non_stop): Add argument.
9465 (target_supports_non_stop): Add argument.
9466 (find_default_supports_non_stop): Add 'self' argument.
9467 * remote.c (remote_supports_non_stop): Add 'self' argument.
9468 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9472 * target.h (struct target_ops) <to_log_command>: Add argument.
9473 (target_log_command): Add argument.
9474 * serial.h (serial_log_command): Add 'self' argument.
9475 * serial.c (serial_log_command): Add 'self' argument.
9477 2014-02-19 Tom Tromey <tromey@redhat.com>
9479 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9480 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9482 (target_pid_to_exec_file): Add argument.
9483 * target.c (debug_to_pid_to_exec_file): Add argument.
9484 (update_current_target): Update.
9485 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9486 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9487 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9488 (linux_handle_extended_wait): Update.
9489 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9490 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9491 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9492 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target.h (struct target_ops) <to_rcmd>: Add argument.
9497 (target_rcmd): Add argument.
9498 * target.c (debug_to_rcmd): Add argument.
9499 (update_current_target, do_monitor_command): Update.
9500 * remote.c (remote_rcmd): Add 'self' argument.
9501 * monitor.c (monitor_rcmd): Add 'self' argument.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * windows-nat.c (windows_stop): Add 'self' argument.
9506 * target.h (struct target_ops) <to_stop>: Add argument.
9507 * target.c (target_stop): Add argument.
9508 (debug_to_stop): Add argument.
9509 (update_current_target): Update.
9510 * remote.c (remote_stop): Add 'self' argument.
9511 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9512 (gdbsim_cntrl_c): Update.
9513 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9514 * procfs.c (procfs_stop): Add 'self' argument.
9515 * nto-procfs.c (procfs_stop): Add 'self' argument.
9516 * monitor.c (monitor_stop): Add 'self' argument.
9517 (monitor_open): Update.
9518 * linux-nat.c (linux_nat_stop): Add argument.
9519 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9520 * gnu-nat.c (gnu_stop): Add 'self' argument.
9521 * darwin-nat.c (darwin_stop): Add 'self' argument.
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9525 * target.h (struct target_ops) <to_thread_name>: Add argument.
9526 * target.c (target_thread_name): Add argument.
9527 (update_current_target): Update.
9528 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target.h (struct target_ops) <to_extra_thread_info>: Add
9534 (target_extra_thread_info): Add argument.
9535 * target.c (update_current_target): Update.
9536 * remote.c (remote_threads_extra_info): Add 'self' argument.
9537 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9539 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9540 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9541 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9543 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9545 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9547 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9552 * target.h (struct target_ops) <to_program_signals>: Add argument.
9553 * target.c (target_program_signals): Add argument.
9554 * remote.c (remote_program_signals): Add 'self' argument.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9559 * target.c (target_pass_signals): Add argument.
9560 * remote.c (remote_pass_signals): Add 'self' argument.
9561 (remote_start_remote): Update.
9562 * procfs.c (procfs_pass_signals): Add 'self' argument.
9563 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9564 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9565 (linux_nat_create_inferior, linux_nat_attach): Update.
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9569 * windows-nat.c (windows_can_run): Add 'self' argument.
9570 * target.h (struct target_ops) <to_can_run>: Add argument.
9571 (target_can_run): Add argument.
9572 * target.c (debug_to_can_run): Add argument.
9573 (update_current_target): Update.
9574 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9575 * inf-child.c (inf_child_can_run): Add 'self' argument.
9576 * go32-nat.c (go32_can_run): Add 'self' argument.
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target.h (struct target_ops) <to_has_exited>: Add argument.
9581 (target_has_exited): Add argument.
9582 * target.c (debug_to_has_exited): Add argument.
9583 (update_current_target): Update.
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9587 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9589 (target_set_syscall_catchpoint): Add argument.
9590 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9592 * target.c (update_current_target): Update.
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9596 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9598 (target_remove_exec_catchpoint): Add argument.
9599 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9600 (update_current_target): Update.
9601 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9608 (target_insert_exec_catchpoint): Add argument.
9609 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9610 (update_current_target): Update.
9611 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9616 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9618 (target_remove_vfork_catchpoint): Add argument.
9619 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9620 (update_current_target): Update.
9621 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9626 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9628 (target_insert_vfork_catchpoint): Add argument.
9629 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9630 (update_current_target): Update.
9631 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9636 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9638 (target_remove_fork_catchpoint): Add argument.
9639 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9640 (update_current_target): Update.
9641 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9648 (target_insert_fork_catchpoint): Add argument.
9649 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9650 (update_current_target): Update.
9651 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9656 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9658 (target_post_startup_inferior): Add argument.
9659 * target.c (debug_to_post_startup_inferior): Add argument.
9660 (update_current_target): Update.
9661 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9663 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9665 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9667 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9669 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9671 (super_post_startup_inferior): Likewise.
9672 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9674 (super_post_startup_inferior): Likewise.
9675 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9676 Add 'self' argument.
9677 (super_post_startup_inferior): Likewise.
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9681 * target.h (struct target_ops) <to_load>: Add argument.
9682 * target.c (target_load): Add argument.
9683 (debug_to_load): Add argument.
9684 (update_current_target): Update.
9685 * remote.c (remote_load): Add 'self' argument.
9686 * remote-sim.c (gdbsim_load): Add 'self' argument.
9687 * remote-mips.c (mips_load): Add 'self' argument.
9688 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9689 * monitor.c (monitor_load): Add 'self' argument.
9690 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9694 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9695 (target_terminal_info): Add argument.
9696 * target.c (debug_to_terminal_info): Add argument.
9697 (default_terminal_info): Likewise.
9698 * inflow.c (child_terminal_info): Add 'self' argument.
9699 * inferior.h (child_terminal_info): Add 'self' argument.
9700 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9706 (target_terminal_save_ours): Add argument.
9707 * target.c (debug_to_terminal_save_ours): Add argument.
9708 (update_current_target): Update.
9709 * inflow.c (terminal_save_ours): Add 'self' argument.
9710 * inferior.h (terminal_save_ours): Add 'self' argument.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9715 (target_terminal_ours): Add argument.
9716 * target.c (debug_to_terminal_ours): Add argument.
9717 (update_current_target): Update.
9718 * remote.c (remote_terminal_ours): Add 'self' argument.
9719 (remote_close): Update.
9720 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9721 * inflow.c (terminal_ours): Add 'self' argument.
9722 * inferior.h (terminal_ours): Add 'self' argument.
9723 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9725 2014-02-19 Pedro Alves <palves@redhat.com>
9726 Tom Tromey <tromey@redhat.com>
9728 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9730 (target_terminal_ours_for_output): Add argument.
9731 * target.c (debug_to_terminal_ours_for_output): Add argument.
9732 (update_current_target): Update.
9733 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9734 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9735 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9739 * target.h (struct target_ops) <to_terminal_inferior>: Add
9741 * target.c (target_terminal_inferior): Add argument.
9742 (update_current_target): Update.
9743 * remote.c (remote_terminal_inferior): Add 'self' argument.
9744 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9745 * inflow.c (terminal_inferior): Add 'self' argument.
9746 * inferior.h (terminal_inferior): Add 'self' argument.
9747 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9748 (go32_terminal_inferior): Add 'self' argument.
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9752 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9753 (target_terminal_init): Add argument.
9754 * target.c (debug_to_terminal_init): Add argument.
9755 (update_current_target): Update.
9756 * inflow.c (terminal_init_inferior): Add 'self' argument.
9757 * inferior.h (terminal_init_inferior): Add 'self' argument.
9758 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9759 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target.h (struct target_ops)
9764 <to_can_accel_watchpoint_condition>: Add argument.
9765 (target_can_accel_watchpoint_condition): Add argument.
9766 * target.c (debug_to_can_accel_watchpoint_condition): Add
9768 (update_current_target): Update.
9769 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9774 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9776 (target_region_ok_for_hw_watchpoint): Add argument.
9777 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9778 (default_region_ok_for_hw_watchpoint): Add argument.
9779 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9780 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9782 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9784 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9786 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9788 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9790 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9792 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9793 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9795 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9796 Add 'self' argument.
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9800 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9802 (target_insert_watchpoint): Add argument.
9803 * target.c (debug_to_insert_watchpoint): Add argument.
9804 (update_current_target): Update.
9805 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9806 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9807 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9808 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9809 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9810 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9812 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9813 (procfs_insert_hw_watchpoint): Add 'self' argument.
9814 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9816 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9818 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9820 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9821 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9823 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9828 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9830 (target_remove_watchpoint): Add argument.
9831 * target.c (debug_to_remove_watchpoint): Add argument.
9832 (update_current_target): Update.
9833 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9834 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9835 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9836 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9837 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9838 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9840 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9841 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9843 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9845 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9847 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9848 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9850 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9855 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9857 (target_remove_hw_breakpoint): Add argument.
9858 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9859 (update_current_target): Update.
9860 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9861 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9863 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9864 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9866 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9871 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9873 (target_insert_hw_breakpoint): Add argument.
9874 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9875 (update_current_target): Update.
9876 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9877 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9879 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9880 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9881 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9883 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9888 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9890 (target_can_use_hardware_watchpoint): Add argument.
9891 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9892 (update_current_target): Update.
9893 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9895 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9897 * remote.c (remote_check_watch_resources): Add 'self' argument.
9898 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9899 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9901 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9902 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9904 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9906 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9908 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9910 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9912 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9914 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9915 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9917 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9920 2014-02-19 Tom Tromey <tromey@redhat.com>
9922 * target.h (struct target_ops) <to_post_attach>: Add argument.
9923 (target_post_attach): Add argument.
9924 * target.c (debug_to_post_attach): Add argument.
9925 (update_current_target): Update.
9926 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9927 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9928 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9929 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9930 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * windows-nat.c (windows_close): Add 'self' argument.
9935 * tracepoint.c (tfile_close): Add 'self' argument.
9936 * target.h (struct target_ops) <to_close>: Add argument.
9937 * target.c (target_close): Add argument.
9938 (update_current_target): Update.
9939 * remote.c (remote_close): Add 'self' argument.
9940 * remote-sim.c (gdbsim_close): Add 'self' argument.
9941 * remote-mips.c (mips_close): Add 'self' argument.
9942 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9943 * record-full.c (record_full_close): Add 'self' argument.
9944 * record-btrace.c (record_btrace_close): Add 'self' argument.
9945 * monitor.h (monitor_close): Add 'self' argument.
9946 * monitor.c (monitor_close): Add 'self' argument.
9947 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9948 * linux-nat.c (linux_nat_close): Add argument.
9949 * go32-nat.c (go32_close): Add 'self' argument.
9950 * exec.c (exec_close_1): Add 'self' argument.
9951 * ctf.c (ctf_close): Add 'self' argument.
9952 * corelow.c (core_close): Add 'self' argument.
9953 (core_close_cleanup): Update.
9954 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9955 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9959 * remote.c (remote_load): New function.
9960 (init_remote_ops): Use it.
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9964 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9966 * common/linux-btrace.h (linux_supports_btrace): Update.
9967 * remote.c (remote_supports_btrace): Add "self" argument.
9968 * target-delegates.c: Rebuild.
9969 * target.c (target_supports_btrace): Remove.
9970 * target.h (struct target_ops) <to_supports_btrace>: Add
9971 target_ops argument.
9972 (target_supports_btrace): New define.
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * record-full.c (record_full_beneath_to_resume_ops)
9977 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9978 (record_full_beneath_to_wait)
9979 (record_full_beneath_to_store_registers_ops)
9980 (record_full_beneath_to_store_registers)
9981 (record_full_beneath_to_xfer_partial_ops)
9982 (record_full_beneath_to_xfer_partial)
9983 (record_full_beneath_to_insert_breakpoint_ops)
9984 (record_full_beneath_to_insert_breakpoint)
9985 (record_full_beneath_to_remove_breakpoint_ops)
9986 (record_full_beneath_to_remove_breakpoint)
9987 (record_full_beneath_to_stopped_by_watchpoint)
9988 (record_full_beneath_to_stopped_data_address)
9989 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9990 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9991 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9992 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9993 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9994 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9995 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9996 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9997 (record_full_resume, record_full_wait_1)
9998 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9999 (record_full_store_registers, record_full_xfer_partial)
10000 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10001 (record_full_async, record_full_core_xfer_partial): Use target
10003 * target-delegates.c: Rebuild.
10004 * target.c (current_xfer_partial): Remove.
10005 (update_current_target): Do not INHERIT or de_fault
10006 to_insert_breakpoint, to_remove_breakpoint,
10007 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10008 to_is_async_p, to_async. Do not set to_xfer_partial field.
10009 (default_xfer_partial): Simplify.
10010 (current_xfer_partial): Remove.
10011 (target_wait, target_resume): Simplify.
10012 (find_default_can_async_p, find_default_is_async_p): Update.
10013 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10014 to_xfer_partial, to_stopped_by_watchpoint,
10015 to_stopped_data_address.
10016 (target_store_registers): Simplify.
10017 (forward_target_remove_breakpoint)
10018 (forward_target_insert_breakpoint): Remove.
10019 (target_remove_breakpoint, target_insert_breakpoint)
10020 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10021 * target.h (struct target_ops) <to_resume, to_wait,
10022 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10023 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10024 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10026 (forward_target_remove_breakpoint)
10027 (forward_target_insert_breakpoint): Remove.
10028 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10030 (record_btrace_insert_breakpoint): Delegate directly.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10035 * target-delegates.c: New file.
10036 * target.c: Include target-delegates.c.
10037 (init_dummy_target): Call install_dummy_methods.
10038 (complete_target_initialization): Call install_delegators.
10039 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10040 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10041 * make-target-delegates: New file.
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10045 * record.c (find_record_target): Use find_target_at.
10046 * target.c (find_target_at): New function.
10047 * target.h (find_target_at): Declare.
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10051 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10052 Add 'ops' argument.
10053 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10055 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10056 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10058 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10060 * linux-nat.c (save_sigtrap): Update.
10061 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10062 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10063 (linux_nat_close): Update.
10064 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10066 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10068 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10069 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10070 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10071 (tmp_to_async): Add 'ops' argument.
10072 (record_full_stopped_by_watchpoint, record_full_async)
10073 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10075 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10076 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10077 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10078 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10079 (remote_is_async_p, remote_async): Add 'ops' argument.
10080 (remote_stopped_data_address): Update.
10081 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10082 * target.c (update_current_target)
10083 (find_default_can_async_p, find_default_is_async_p): Update.
10084 (init_dummy_target): Update.
10085 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10086 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10087 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10088 (target_can_async_p, target_is_async_p, target_async)
10089 (target_stopped_by_watchpoint): Update.
10091 2014-02-19 Yao Qi <yao@codesourcery.com>
10094 * gdbarch.sh: Remove startup_gdbarch.
10095 * gdbarch.c: Regenerated.
10096 * gdbarch.h: Likewise.
10098 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10100 * rl78-tdep.c (rl78_g10_register_name): New function.
10101 (rl78_return_value): Add g10 support.
10102 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10105 2014-02-17 Doug Evans <xdje42@gmail.com>
10107 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10108 (SUBDIR_GUILE_SRCS): Ditto.
10109 (scm-gsmob.o): Ditto.
10111 2014-02-17 Yao Qi <yao@codesourcery.com>
10113 * gnu-nat.c (ILL_RPC): Declare defined function.
10115 2014-02-17 Yao Qi <yao@codesourcery.com>
10117 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10118 mach_msg_type_number_t.
10119 (gnu_write_inferior): Likewise.
10121 2014-02-17 Yao Qi <yao@codesourcery.com>
10123 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10125 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10126 (inf_validate_procs, inf_signal): Likewise.
10127 (S_exception_raise_request): Likewise.
10128 (do_mach_notify_dead_name): Likewise.
10129 (steal_exc_port): Likewise.
10130 (gnu_read_inferior): Change 'copy_count''s type to
10131 mach_msg_type_number_t.
10132 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10135 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10137 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10138 flag. Adjust all users; in particular...
10139 (gnu_wait): ..., don't decrement its value in here...
10140 (gnu_create_inferior): ..., and instead set the flag in here,
10141 around the startup_inferior call, and call that one with
10142 START_INFERIOR_TRAPS_EXPECTED.
10144 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10145 (ILL_RPC): ... new macro.
10146 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10147 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10148 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10149 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10150 functions with ILL_RPC macro.
10151 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10152 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10153 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10154 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10155 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10156 (S_proc_getlogin_reply, S_proc_getsid_reply)
10157 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10158 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10159 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10160 (S_proc_getnports_reply, S_proc_is_important_reply)
10161 (S_proc_get_code_reply): New stub functions, generated with
10164 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10165 collected the type check structures.
10167 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10169 2014-02-14 Doug Evans <dje@google.com>
10171 * target.c (target_write_partial): Fix result type.
10173 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10175 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10176 the proper offsets to access fpregset_t.
10178 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10180 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10181 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10182 * h8300-tdep.c (setmachinelist): Remove global.
10183 * hppa-tdep.c (hppa_sigtramp): Remove global.
10184 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10185 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10186 * ravenscar-thread.c (update_target_observer): Remove global.
10187 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10189 2014-02-12 Tom Tromey <tromey@redhat.com>
10191 * common/rsp-low.c: Update comments.
10192 * common/rsp-low.h: Update comments.
10194 2014-02-12 Tom Tromey <tromey@redhat.com>
10196 * common/rsp-low.c (convert_ascii_to_int): Remove.
10197 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10199 2014-02-12 Tom Tromey <tromey@redhat.com>
10201 * common/rsp-low.h (unhexify): Don't declare.
10202 * common/rsp-low.c (unhexify): Remove.
10204 2014-02-12 Tom Tromey <tromey@redhat.com>
10206 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10207 * common/rsp-low.c (convert_int_to_ascii): Remove.
10209 2014-02-12 Tom Tromey <tromey@redhat.com>
10211 * common/rsp-low.h (hexify): Don't declare.
10212 * common/rsp-low.c (hexify): Remove.
10214 2014-02-12 Tom Tromey <tromey@redhat.com>
10216 * common/rsp-low.c (hexify): Never take strlen of argument.
10218 2014-02-12 Tom Tromey <tromey@redhat.com>
10220 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10221 * remote.c (extended_remote_run, remote_rcmd)
10222 (remote_download_trace_state_variable, remote_save_trace_data)
10223 (remote_set_trace_notes): Update.
10224 * tracepoint.c (encode_source_string, tfile_write_status)
10225 (tfile_write_uploaded_tsv): Update.
10227 2014-02-12 Tom Tromey <tromey@redhat.com>
10229 * tracepoint.c: Include rsp-low.h.
10230 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10231 * remote.c: Include rsp-low.h.
10232 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10233 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10234 (remote_unescape_input): Move to common/rsp-low.c.
10235 * common/rsp-low.h: New file.
10236 * common/rsp-low.c: New file.
10237 * Makefile.in (SFILES): Add common/rsp-low.c.
10238 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10239 (COMMON_OBS): Add rsp-low.o.
10240 (rsp-low.o): New target.
10242 2014-02-12 Tom Tromey <tromey@redhat.com>
10244 * utils.h: Include print-utils.h.
10245 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10246 (int_string, core_addr_to_string, core_addr_to_string_nz)
10247 (hex_string, hex_string_custom): Don't declare.
10248 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10249 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10250 (hex_string_custom, int_string, core_addr_to_string)
10251 (core_addr_to_string_nz, host_address_to_string): Move to
10252 common/print-utils.c.
10253 * common/print-utils.h: New file.
10254 * common/print-utils.c: New file
10255 * Makefile.in (SFILES): Add common/print-utils.c.
10256 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10257 (COMMON_OBS): Add print-utils.o.
10258 (print-utils.o): New target.
10260 2014-02-12 Tom Tromey <tromey@redhat.com>
10262 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10264 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10266 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10268 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10270 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10271 if a PT_IO ptrace request returns sucessfully but indicates that 0
10272 bytes were transferred.
10274 2014-02-12 Pedro Alves <palves@redhat.com>
10275 Kevin Buettner <kevinb@redhat.com>
10277 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10278 TYPE_INSTANCE_FLAG_CODE_SPACE.
10280 2014-02-12 Pedro Alves <palves@redhat.com>
10282 * h8300-tdep.c (pseudo_from_raw_register)
10283 (raw_from_pseudo_register): New functions.
10284 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10287 2014-02-12 Pedro Alves <palves@redhat.com>
10289 * h8300-tdep.c (h8300_register_sim_regno): New function.
10290 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10291 gdbarch_register_sim_regno hook.
10293 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10295 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10297 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10299 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10301 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10303 * obsd-tdep.h (obsd_init_abi): New prototype.
10304 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10305 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10306 (obsd_init_abi): New functions.
10307 * i386obsd-tdep.c: Include "obsd-tdep.h".
10308 (i386obsd_init_abi): Call obsd_init_abi.
10309 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10310 (amd64obsd_init_abi): Call obsd_init_abi.
10311 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10312 obsd-tdep.c to gdb_target_obs.
10314 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10316 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10317 double float arguments to 16-byte in the argument slots.
10319 2014-02-11 Doug Evans <xdje42@gmail.com>
10321 * configure.ac: Don't crash if pkg-config is not found and guile
10322 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10324 * configure: Regenerate.
10326 2014-02-11 Yao Qi <yao@codesourcery.com>
10328 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10329 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10330 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10331 * gnu-nat.c (gnu_xfer_memory): Likewise.
10332 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10333 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10334 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10335 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10337 2014-02-11 Yao Qi <yao@codesourcery.com>
10339 * target.h (enum target_xfer_error): Rename to ...
10340 (enum target_xfer_status): ... it. New. All users updated.
10341 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10343 (TARGET_XFER_STATUS_ERROR_P): New macro.
10344 (target_xfer_error_to_string): Remove declaration.
10345 (target_xfer_status_to_string): Declare.
10346 (target_xfer_partial_ftype): Adjust it.
10347 (struct target_ops) <to_xfer_partial>: Return
10348 target_xfer_status. Add argument xfered_len. Update
10350 * target.c (target_xfer_error_to_string): Rename to ...
10351 (target_xfer_status_to_string): ... it. New. All callers
10353 (target_read_live_memory): Likewise. Call target_xfer_partial
10354 instead of target_read.
10355 (memory_xfer_live_readonly_partial): Return
10356 target_xfer_status. Add argument xfered_len.
10357 (raw_memory_xfer_partial): Likewise.
10358 (memory_xfer_partial_1): Likewise.
10359 (memory_xfer_partial): Likewise.
10360 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10361 properly. Update debug message.
10362 (default_xfer_partial, current_xfer_partial): Likewise.
10363 (target_write_partial): Likewise.
10364 (target_read_partial): Likewise. All callers updated.
10365 (read_whatever_is_readable): Likewise.
10366 (target_write_with_progress): Likewise.
10367 (target_read_alloc_1): Likewise.
10369 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10370 * auxv.c (procfs_xfer_auxv): Likewise.
10371 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10372 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10373 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10374 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10375 * corefile.c (read_memory): Adjust.
10376 * corelow.c (core_xfer_partial): Likewise.
10377 * ctf.c (ctf_xfer_partial): Likewise.
10378 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10380 (darwin_xfer_partial): Likewise.
10381 * exec.c (section_table_xfer_memory_partial): Likewise. All
10383 (exec_xfer_partial): Likewise.
10384 * exec.h (section_table_xfer_memory_partial): Update
10386 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10388 (gnu_xfer_partial): Likewise.
10389 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10390 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10391 (ia64_hpux_xfer_solib_got): Likewise.
10392 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10393 type of 'partial_len' to ULONGEST.
10394 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10395 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10396 (linux_nat_xfer_partial): Likewise.
10397 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10398 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10399 * monitor.c (monitor_xfer_memory): Likewise.
10400 (monitor_xfer_partial): Likewise.
10401 * procfs.c (procfs_xfer_partial): Likewise.
10402 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10403 * record-full.c (record_full_xfer_partial): Likewise.
10404 (record_full_core_xfer_partial): Likewise.
10405 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10406 (gdbsim_xfer_partial): Likewise.
10407 * remote.c (remote_write_bytes_aux): Likewise. All callers
10409 (remote_write_bytes, remote_read_bytes): Likewise. All
10411 (remote_flash_erase): Likewise. All callers updated.
10412 (remote_write_qxfer): Likewise. All callers updated.
10413 (remote_read_qxfer): Likewise. All callers updated.
10414 (remote_xfer_partial): Likewise.
10415 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10416 (rs6000_xfer_shared_libraries): Likewise.
10417 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10418 (sol_thread_xfer_partial): Likewise.
10419 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10420 (sparc_xfer_partial): Likewise.
10421 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10423 (spu_xfer_partial): Likewise.
10424 * spu-multiarch.c (spu_xfer_partial): Likewise.
10425 * tracepoint.c (tfile_xfer_partial): Likewise.
10426 * windows-nat.c (windows_xfer_memory): Likewise.
10427 (windows_xfer_shared_libraries): Likewise.
10428 (windows_xfer_partial): Likewise.
10429 * valprint.c: Replace 'target_xfer_error' with
10430 'target_xfer_status' in comments.
10432 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10434 Checked in by Joel Brobecker <brobecker@adacore.com>.
10435 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10437 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10439 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10440 function parameters.
10442 2014-02-10 Will Newton <will.newton@linaro.org>
10444 * elfread.c (elf_rel_plt_read): Look for a .got section if
10445 looking up .got.plt fails.
10446 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10447 on address passed to elf_gnu_ifunc_record_cache.
10448 (elf_gnu_ifunc_resolve_addr): Likewise.
10449 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10451 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10453 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10454 (X_RETTURN): New macro.
10455 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10457 * sparc64-tdep.c (sparc64_init_abi): Hook
10458 sparc_in_function_epilogue_p.
10460 2014-02-10 Gary Benson <gbenson@redhat.com>
10462 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10463 Rename name_matcher to symbol_matcher.
10465 2014-02-10 Gary Benson <gbenson@redhat.com>
10467 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10468 Use expand_symtabs_file_matcher_ftype and
10469 expand_symtabs_symbol_matcher_ftype.
10471 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10473 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10474 (struct ada_symbol_cache): New.
10475 (ada_free_symbol_cache): Forward declare.
10476 (struct ada_pspace_data): New.
10477 (ada_pspace_data_handle): New static global.
10478 (get_ada_pspace_data, ada_pspace_data_cleanup)
10479 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10480 (cache_space, cache): Delete, now folded inside struct
10482 (ada_get_symbol_cache): New function.
10483 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10485 (_initialize_ada_language): Remove initialization of cache_space.
10486 Move call to observer_attach_inferior_exit up, grouping it
10487 with the other observer registrations inside this function.
10488 Rename command to be more general. Add call to
10489 register_program_space_data_with_cleanup.
10491 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10493 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10494 ada_new_objfile_observer.
10495 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10496 (_initialize_tasks): Update uses of ada_new_objfile_observer
10497 and ada_tasks_normal_stop_observer.
10499 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10501 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10502 returned by the 'Length attribute to integer.
10504 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10506 * ada-lang.c (_initialize_ada_language): Initialize
10507 cache_space obstack.
10509 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10511 * ada-lang.c (HASH_SIZE): New macro.
10512 (struct cache_entry): New type.
10513 (cache_space, cache): New static globals.
10514 (ada_clear_symbol_cache, find_entry): New functions.
10515 (lookup_cached_symbol, cache_symbol): Implement.
10516 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10517 (_initialize_ada_language): Attach ada_new_objfile_observer
10518 and ada_free_objfile_observer.
10520 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10522 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10523 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10524 struct block * parameter.
10525 (ada_lookup_symbol_list_worker): Constify local variable "block".
10526 Remove cast which is no longer necessary.
10528 2014-02-10 Doug Evans <xdje42@gmail.com>
10530 Add Guile as an extension language.
10531 * NEWS: Mention Guile scripting.
10532 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10533 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10534 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10535 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10536 (CLIBS): Add GUILE_LIBS.
10537 (install-guile): New rule.
10538 (guile.o): New rule.
10539 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10540 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10541 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10542 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10543 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10544 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10545 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10546 * configure.ac: New option --with-guile.
10547 * configure: Regenerate.
10548 * config.in: Regenerate.
10549 * auto-load.c: Remove #include "python/python.h". Add #include
10550 "gdb/section-scripts.h".
10551 (source_section_scripts): Handle Guile scripts.
10552 (_initialize_auto_load): Add name of Guile objfile script to
10553 scripts-directory help text.
10554 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10555 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10556 (struct breakpoint): New member scm_bp_object.
10557 * defs.h (enum command_control_type): New value guile_control.
10558 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10560 (show_user): Update comment.
10561 (_initialize_cli_cmds): Update help text for "show user". Update help
10562 text for max-user-call-depth.
10563 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10565 (multi_line_command_p): Add guile_control.
10566 (print_command_lines): Handle guile_control.
10567 (execute_control_command, recurse_read_control_structure): Ditto.
10568 (process_next_line): Recognize "guile" commands.
10569 * disasm.c (gdb_disassemble_info): Make non-static.
10570 * disasm.h: #include "dis-asm.h".
10571 (struct gdbarch): Add forward decl.
10572 (gdb_disassemble_info): Declare.
10573 * extension.c: #include "guile/guile.h".
10574 (extension_languages): Add guile.
10575 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10576 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10577 * gdbtypes.c (get_unsigned_type_max): New function.
10578 (get_signed_type_minmax): New function.
10579 * gdbtypes.h (get_unsigned_type_max): Declare.
10580 (get_signed_type_minmax): Declare.
10581 * guile/README: New file.
10582 * guile/guile-internal.h: New file.
10583 * guile/guile.c: New file.
10584 * guile/guile.h: New file.
10585 * guile/scm-arch.c: New file.
10586 * guile/scm-auto-load.c: New file.
10587 * guile/scm-block.c: New file.
10588 * guile/scm-breakpoint.c: New file.
10589 * guile/scm-disasm.c: New file.
10590 * guile/scm-exception.c: New file.
10591 * guile/scm-frame.c: New file.
10592 * guile/scm-gsmob.c: New file.
10593 * guile/scm-iterator.c: New file.
10594 * guile/scm-lazy-string.c: New file.
10595 * guile/scm-math.c: New file.
10596 * guile/scm-objfile.c: New file.
10597 * guile/scm-ports.c: New file.
10598 * guile/scm-pretty-print.c: New file.
10599 * guile/scm-safe-call.c: New file.
10600 * guile/scm-string.c: New file.
10601 * guile/scm-symbol.c: New file.
10602 * guile/scm-symtab.c: New file.
10603 * guile/scm-type.c: New file.
10604 * guile/scm-utils.c: New file.
10605 * guile/scm-value.c: New file.
10606 * guile/lib/gdb.scm: New file.
10607 * guile/lib/gdb/boot.scm: New file.
10608 * guile/lib/gdb/experimental.scm: New file.
10609 * guile/lib/gdb/init.scm: New file.
10610 * guile/lib/gdb/iterator.scm: New file.
10611 * guile/lib/gdb/printing.scm: New file.
10612 * guile/lib/gdb/types.scm: New file.
10613 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10614 (VPATH): Add $(GUILE_SRCDIR).
10615 (GUILE_DIR): New variable.
10616 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10617 (all): Add stamp-guile dependency.
10618 (stamp-guile): New rule.
10619 (clean-guile, install-guile, uninstall-guile): New rules.
10620 (install-only): Add install-guile dependency.
10621 (uninstall): Add uninstall-guile dependency.
10622 (clean): Add clean-guile dependency.
10624 2014-02-09 Doug Evans <xdje42@gmail.com>
10626 Revert this patch (which I approved, mea culpa).
10628 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10630 * Makefile.in (all-lib): Remove.
10631 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10633 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10635 Fix Python stack corruption.
10636 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10639 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10641 * Makefile.in (all-lib): Remove.
10642 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10644 2014-02-07 Doug Evans <dje@google.com>
10646 * extension-priv.h (extension_language_script_ops): Add comment.
10647 (extension_language_ops): Add comment.
10648 (active_ext_lang_state): Fix typo in comment.
10650 2014-02-07 Pedro Alves <palves@redhat.com>
10652 PR breakpoints/16292
10653 * infrun.c (handle_signal_stop) <signal arrives while stepping
10654 over a breakpoint>: Switch back to the stepping thread.
10656 2014-02-07 Yao Qi <yao@codesourcery.com>
10658 * target.c (target_xfer_partial): Return zero if LEN is zero.
10660 2014-02-07 Yao Qi <yao@codesourcery.com>
10662 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10663 (ld_so_xfer_auxv): Likewise.
10664 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10665 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10666 * corelow.c (core_xfer_partial): Likewise.
10667 * ctf.c (ctf_xfer_partial): Likewise.
10668 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10669 (darwin_xfer_partial): Likewise.
10670 * exec.c (exec_xfer_partial): Likewise.
10671 * gnu-nat.c (gnu_xfer_partial): Likewise.
10672 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10673 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10674 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10675 * linux-nat.c (linux_xfer_siginfo): Likewise.
10676 (linux_proc_xfer_spu): Likewise.
10677 * procfs.c (procfs_xfer_partial): Likewise.
10678 * record-full.c (record_full_xfer_partial): Likewise.
10679 (record_full_core_xfer_partial): Likewise.
10680 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10681 * remote.c (remote_write_qxfer): Likewise.
10682 (remote_write_qxfer, remote_read_qxfer): Likewise.
10683 (remote_xfer_partial): Likewise.
10684 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10685 (rs6000_xfer_shared_libraries): Likewise.
10686 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10687 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10688 (spu_xfer_partial): Likewise.
10689 * target.c (memory_xfer_partial_1): Likewise.
10690 * tracepoint.c (tfile_xfer_partial): Likewise.
10691 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10692 (windows_xfer_partial): Likewise.
10694 2014-02-07 Yao Qi <yao@codesourcery.com>
10696 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10698 (core_xfer_shared_libraries_aix): Likewise.
10699 * gdbarch.c, gdbarch.h: Regenerated.
10700 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10701 ULONGEST. Change 'len_avail' type to ULONGEST.
10702 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10703 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10705 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10707 2014-02-07 Yao Qi <yao@codesourcery.com>
10709 * corefile.c (memory_error): Get 'exception' from ERR and pass
10710 'exception' to throw_error.
10712 2014-02-06 Doug Evans <xdje42@gmail.com>
10714 * configure.ac (libpython checking): Remove all but python.o from
10715 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10716 * configure: Regenerate.
10718 * Makefile.in (SFILES): Add extension.c.
10719 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10720 (COMMON_OBS): Add extension.o.
10721 * extension.h: New file.
10722 * extension-priv.h: New file.
10723 * extension.c: New file.
10725 * python/python-internal.h: #include "extension.h".
10726 (gdbpy_auto_load_enabled): Declare.
10727 (gdbpy_apply_val_pretty_printer): Declare.
10728 (gdbpy_apply_frame_filter): Declare.
10729 (gdbpy_preserve_values): Declare.
10730 (gdbpy_breakpoint_cond_says_stop): Declare.
10731 (gdbpy_breakpoint_has_cond): Declare.
10732 (void source_python_script_for_objfile): Delete.
10733 * python/python.c: #include "extension-priv.h".
10734 Delete inclusion of "observer.h".
10735 (extension_language_python): Moved here and renamed from
10736 script_language_python in py-auto-load.c.
10737 Redefined to be of type extension_language_defn.
10738 (python_extension_script_ops): New global.
10739 (python_extension_ops): New global.
10740 (struct python_env): New member previous_active.
10741 (restore_python_env): Call restore_active_ext_lang.
10742 (ensure_python_env): Call set_active_ext_lang.
10743 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10745 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10747 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10749 (gdbpy_eval_from_control_command): Renamed from
10750 eval_python_from_control_command, made static. New arg extlang.
10751 (gdbpy_source_script) Renamed from source_python_script, made static.
10753 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10754 result to int. New arg extlang.
10755 (gdbpy_source_objfile_script): Renamed from
10756 source_python_script_for_objfile, made static. New arg extlang.
10757 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10758 static. New args extlang, extlang_printers. Change result type to
10760 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10761 static. New arg extlang. Rename arg printers to extlang_printers
10762 and change type to ext_lang_type_printers *.
10763 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10764 static. Replace argument arg with extlang, extlang_printers.
10765 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10766 (!HAVE_PYTHON, source_python_script): Delete.
10767 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10768 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10769 (!HAVE_PYTHON, start_type_printers): Delete.
10770 (!HAVE_PYTHON, apply_type_printers): Delete.
10771 (!HAVE_PYTHON, free_type_printers): Delete.
10772 (_initialize_python): Delete call to observer_attach_before_prompt.
10773 (finalize_python): Set/restore active extension language.
10774 (gdbpy_finish_initialization) Renamed from
10775 finish_python_initialization, made static. New arg extlang.
10776 (gdbpy_initialized): New function.
10777 * python/python.h: #include "extension.h". Delete #include
10778 "value.h", "mi/mi-cmds.h".
10779 (extension_language_python): Declare.
10780 (GDBPY_AUTO_FILE_NAME): Delete.
10781 (enum py_bt_status): Moved to extension.h and renamed to
10782 ext_lang_bt_status.
10783 (enum frame_filter_flags): Moved to extension.h.
10784 (enum py_frame_args): Moved to extension.h and renamed to
10785 ext_lang_frame_args.
10786 (finish_python_initialization): Delete.
10787 (eval_python_from_control_command): Delete.
10788 (source_python_script): Delete.
10789 (apply_val_pretty_printer): Delete.
10790 (apply_frame_filter): Delete.
10791 (preserve_python_values): Delete.
10792 (gdbpy_script_language_defn): Delete.
10793 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10794 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10796 * auto-load.c: #include "extension.h".
10797 (GDB_AUTO_FILE_NAME): Delete.
10798 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10799 (script_language_gdb): Delete, moved to extension.c and renamed to
10800 extension_language_gdb.
10801 (source_gdb_script_for_objfile): Delete.
10802 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10803 (loaded_script): Change type of language member to
10804 struct extension_language_defn *.
10805 (init_loaded_scripts_info): Initialize
10806 unsupported_script_warning_printed.
10807 (maybe_add_script): Make static. Change type of language arg to
10808 struct extension_language_defn *.
10809 (clear_section_scripts): Reset unsupported_script_warning_printed.
10810 (auto_load_objfile_script_1): Rewrite to use extension language API.
10811 (auto_load_objfile_script): Make public. Remove support-compiled-in
10812 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10813 (source_section_scripts): Rewrite to use extension language API.
10814 (load_auto_scripts_for_objfile): Rewrite to use
10815 auto_load_scripts_for_objfile.
10816 (collect_matching_scripts_data): Change type of language member to
10817 struct extension_language_defn *.
10818 (auto_load_info_scripts): Change type of language arg to
10819 struct extension_language_defn *.
10820 (unsupported_script_warning_print): New function.
10821 (script_not_found_warning_print): Make static.
10822 (_initialize_auto_load): Rewrite construction of scripts-directory
10824 * auto-load.h (struct objfile): Add forward decl.
10825 (struct script_language): Delete.
10826 (struct auto_load_pspace_info): Add forward decl.
10827 (struct extension_language_defn): Add forward decl.
10828 (maybe_add_script): Delete.
10829 (auto_load_objfile_script): Declare.
10830 (script_not_found_warning_print): Delete.
10831 (auto_load_info_scripts): Update prototype.
10832 (auto_load_gdb_scripts_enabled): Declare.
10833 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10834 auto_load_python_scripts_enabled and made public.
10835 (script_language_python): Delete, moved to python.c.
10836 (gdbpy_script_language_defn): Delete.
10837 (info_auto_load_python_scripts): Update to use
10838 extension_language_python.
10840 * breakpoint.c (condition_command): Replace call to
10841 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10842 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10843 with call to breakpoint_ext_lang_cond_says_stop.
10844 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10845 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10846 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10847 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10849 (local_setattro): Print name of extension language with existing
10852 * valprint.c (val_print, value_print): Update to call
10853 apply_ext_lang_val_pretty_printer.
10854 * cp-valprint.c (cp_print_value): Update call to
10855 apply_ext_lang_val_pretty_printer.
10856 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10857 (gdbpy_apply_val_pretty_printer): Renamed from
10858 apply_val_pretty_printer. New arg extlang.
10859 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10861 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10862 extension language API.
10863 * cli/cli-script.c (execute_control_command): Update to call
10864 eval_ext_lang_from_control_command.
10866 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10867 enum ext_lang_bt_status values. Update call to
10868 apply_ext_lang_frame_filter.
10869 (mi_cmd_stack_list_locals): Ditto.
10870 (mi_cmd_stack_list_args): Ditto.
10871 (mi_cmd_stack_list_variables): Ditto.
10872 * mi/mi-main.c: Delete #include "python/python-internal.h".
10873 Add #include "extension.h".
10874 (mi_cmd_list_features): Replace reference to python internal variable
10875 gdb_python_initialized with call to ext_lang_initialized_p.
10877 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10878 Update to use enum ext_lang_frame_args. Update to call
10879 apply_ext_lang_frame_filter.
10880 * python/py-framefilter.c (extract_sym): Update to use enum
10881 ext_lang_bt_status.
10882 (extract_value, py_print_type, py_print_value): Ditto.
10883 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10884 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10885 (py_print_frame): Ditto.
10886 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10887 New arg extlang. Update to use enum ext_lang_bt_status.
10889 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10890 finish_python_initialization. Replace with call to
10891 finish_ext_lang_initialization.
10893 * typeprint.c (do_free_global_table): Update to call
10894 free_ext_lang_type_printers.
10895 (create_global_typedef_table): Update to call
10896 start_ext_lang_type_printers.
10897 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10898 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10899 (type_print_options): Change type of global_printers from "void *"
10900 to "struct ext_lang_type_printers *".
10902 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10903 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10904 (gdbpy_preserve_values): Renamed from preserve_python_values.
10906 (!HAVE_PYTHON, preserve_python_values): Delete.
10908 * utils.c (quit_flag): Delete, moved to extension.c.
10909 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10912 * eval.c: Delete #include "python/python.h".
10913 * main.c: Delete #include "python/python.h".
10915 * defs.h: Update comment.
10917 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10921 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10923 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10926 2014-02-05 Yao Qi <yao@codesourcery.com>
10928 * remote.c (remote_pass_signals): Remove local 'buf' and use
10930 (remote_program_signals): Likewise.
10932 2014-02-05 Yao Qi <yao@codesourcery.com>
10934 * ctf.c: Include "inferior.h" and "gdbthread.h".
10935 (CTF_PID): A new macro.
10936 (ctf_open): Call inferior_appeared and add_thread_silent.
10937 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10938 (ctf_thread_alive): New function.
10939 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10941 2014-02-05 Yao Qi <yao@codesourcery.com>
10945 2013-05-24 Yao Qi <yao@codesourcery.com>
10947 * tracepoint.c (TFILE_PID): Remove.
10948 (tfile_open): Don't add thread and inferior.
10949 (tfile_close): Don't set 'inferior_ptid'. Don't call
10950 exit_inferior_silent.
10951 (tfile_thread_alive): Remove.
10952 (init_tfile_ops): Don't set field 'to_thread_alive' of
10955 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10957 * remote.c (remote_start_remote): Call remote_check_symbols even
10958 if only symbol-file (not file) has been given.
10960 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10962 * gdbarch.sh (skip_entrypoint): New callback.
10963 * gdbarch.c, gdbarch.h: Regenerate.
10964 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10965 * infrun.c (fill_in_stop_func): Likewise.
10966 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10967 (ppc_elfv2_elf_make_msymbol_special): New function.
10968 (ppc_elfv2_skip_entrypoint): Likewise.
10969 (ppc_linux_init_abi): Install them for ELFv2.
10971 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10973 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10974 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10975 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10976 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10977 structures returned in GPRs.
10979 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10981 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10982 offset to the stack parameter list for the ELFv2 ABI.
10984 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10986 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10987 set_gdbarch_convert_from_func_ptr_addr and
10988 set_gdbarch_elf_make_msymbol_special for ELFv1.
10989 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10990 function descriptors on ELFv1.
10991 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10992 set up r12 at function entry.
10994 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10996 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10997 (struct gdbarch_tdep): New member elf_abi.
10999 * rs6000-tdep.c: Include "elf/ppc64.h".
11000 (rs6000_gdbarch_init): Detect ELF ABI version.
11002 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11004 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11005 within a register pair holding a DFP 128-bit value on little-endian.
11006 (ppc64_sysv_abi_return_value_base): Likewise.
11007 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11008 (dfp_pseudo_register_write): Likewise.
11010 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11012 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11013 offset on little-endian when passing _Decimal32.
11014 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11016 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11018 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11019 of the overlapped FP register within the VSX register on little-
11021 (efpr_pseudo_register_write): Likewise.
11023 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11025 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11026 offset on little-endian when passing small structures.
11028 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11030 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11031 (struct ppc64_sysv_argpos): New data structure.
11032 (ppc64_sysv_abi_push_float): Remove.
11033 (ppc64_sysv_abi_push_val): New function.
11034 (ppc64_sysv_abi_push_integer): Likewise.
11035 (ppc64_sysv_abi_push_freg): Likewise.
11036 (ppc64_sysv_abi_push_vreg): Likewise.
11037 (ppc64_sysv_abi_push_param): Likewise.
11038 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11039 (ppc64_sysv_abi_return_value_base): New function.
11040 (ppc64_sysv_abi_return_value): Refactor to use it.
11042 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11044 * NEWS: Document new target powerpc64le-*-linux*.
11046 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11048 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11049 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11051 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11052 register set used in ELF core dumps. Add floating-point register set.
11054 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11056 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11057 dwarf2_to_gdb[] table using symbolic constants. Adjust
11058 penultimate entry from number representing the PC register
11059 to symbolic constant representing the MDR register. Add
11060 constant for the PC register to the end of the table.
11062 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11064 * bsd-kvm.c: Include <sys/param.h>
11066 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11068 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11070 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11072 * ada-lang.h (clear_ada_sym_cache): Delete.
11074 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11076 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11078 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11080 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11081 the sigreturn register save area only if the syscall is
11084 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11086 * valops.c (value_slice): Minor reformatting.
11088 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11090 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11092 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11094 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11095 New static globals.
11096 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11097 (ada_ignore_descriptive_types_p): New static global.
11098 (find_parallel_type_by_descriptive_type): Return immediately
11099 if ada_ignore_descriptive_types_p is set.
11100 (_initialize_ada_language): Register new commands "maintenance
11101 set ada", "maintenance show ada", "maintenance set ada
11102 ignore-descriptive-types" and "maintenance show ada
11103 ignore-descriptive-types".
11104 * NEWS: Add entry for new "maint ada set/show
11105 ignore-descriptive-types" commands.
11107 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11109 * record-btrace.c (record_btrace_close): Call btrace_teardown
11112 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11114 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11117 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11119 * ada-typeprint (type_is_full_subrange_of_target_type):
11121 (print_range): Add parameter bounds_prefered_p. If not set,
11122 try printing range types using the name of their base type.
11123 (print_range_type): Add parameter bounds_prefered_p.
11124 Use it in call to print_range.
11125 (print_array_type, ada_print_type): Update calls to print_range
11126 and print_range_type.
11128 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11130 * ada-typeprint.c (print_array_type, print_choices, print_range)
11131 (print_range_bound, print_dynamic_range_bound, print_range_type):
11132 Remove declaration.
11134 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11136 * ada-typeprint.c (print_range): Add missing empty line
11137 after local declaration.
11139 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11141 * ada-valprint.c (print_optional_low_bound): Get index_type's
11142 target type for as long as it is a TYPE_CODE_RANGE.
11144 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11146 * procfs.c (procfs_make_note_section): Remove assertion and
11147 associated comment.
11149 2014-01-24 Yao Qi <yao@codesourcery.com>
11151 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11152 * corelow.c (get_core_siginfo): Likewise.
11154 2014-01-24 Yao Qi <yao@codesourcery.com>
11156 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11157 ULONGEST. Don't check 'len' is negative.
11158 (remote_write_bytes): Change type of 'len' to ULONGEST.
11160 2014-01-23 Tom Tromey <tromey@redhat.com>
11163 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11164 Handle exception from frame.block.
11165 (FrameVars.fetch_frame_locals): Likewise.
11167 2014-01-23 Tom Tromey <tromey@redhat.com>
11170 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11171 on a NULL pointer. Move "goto error" to correct place.
11173 2014-01-23 Tom Tromey <tromey@redhat.com>
11176 * python/py-framefilter.c (apply_frame_filter): Call
11177 ensure_python_env after computing gdbarch.
11179 2014-01-23 Yao Qi <yao@codesourcery.com>
11181 * target.c (raw_memory_xfer_partial): Change argument type
11182 from void * to gdb_byte *.
11183 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11185 2014-01-22 Doug Evans <dje@google.com>
11187 New gdbserver option --debug-format=timestamp.
11188 * NEWS: Mention it.
11190 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11192 * syscalls/s390x-linux.xml: New file.
11193 * syscalls/s390-linux.xml: New file.
11194 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11195 (XML_SYSCALL_FILENAME_S390X): Likewise.
11196 (op_svc): New enum value for SVC opcode.
11197 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11198 (s390_linux_get_syscall_number): New function.
11199 (s390_gdbarch_init): Register '*get_syscall_number' and the
11200 syscall xml file name.
11201 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11202 "s390-linux.xml" and "s390x-linux.xml".
11203 * NEWS: Announce new feature.
11205 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11207 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11209 2014-01-22 Pedro Alves <palves@redhat.com>
11211 * xtensa-config.c: Include defs.h.
11213 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11215 * common/common-utils.h: Add "ARI:" comment beside __func__
11218 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11220 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11221 documentation a bit.
11223 2014-01-21 Roland McGrath <mcgrathr@google.com>
11225 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11226 * configure: Regenerate.
11227 * aclocal.m4: Regenerate.
11228 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11229 New substituted variables.
11230 (install-strip): New target.
11231 (INSTALL_SCRIPT): New substituted variable.
11232 (FLAGS_TO_PASS): Add it.
11233 (install-only): Use $(INSTALL_SCRIPT) rather than
11234 $(INSTALL_PROGRAM) for gcore.
11236 2014-01-20 Tom Tromey <tromey@redhat.com>
11238 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11241 2014-01-20 Tom Tromey <tromey@redhat.com>
11243 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11244 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11245 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11246 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11247 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11248 (struct cmd_list_element) <flags>: Remove.
11249 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11250 doc_allocated>: New fields.
11251 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11253 * maint.c (maintenance_do_deprecate): Update.
11254 * top.c (execute_command): Update.
11256 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11258 * xtensa-linux-nat.c: Include asm/ptrace.h.
11260 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11262 * Makefile.in (SFILES): Add d-support.c.
11263 (COMMON_OBS): Add d-support.o.
11264 * d-lang.h (d_parse_symbol): Add comment, now defined in
11266 * d-lang.c (parse_call_convention)
11267 (parse_attributes, parse_function_types)
11268 (parse_function_args, parse_type, parse_identifier)
11269 (call_convention_p, d_parse_symbol): Move functions to ...
11270 * d-support.c: ... New file.
11272 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11274 * d-lang.h (d_parse_symbol): Add declaration.
11275 * d-lang.c (extract_identifiers)
11276 (extract_type_info): Remove functions.
11277 (parse_call_convention, parse_attributes)
11278 (parse_function_types, parse_function_args)
11279 (parse_type, parse_identifier, call_convention_p)
11280 (d_parse_symbol): New functions.
11281 (d_demangle): Use d_parse_symbol to demangle D symbols.
11283 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11285 * d-lang.h (struct builtin_d_type): New data type.
11286 (builtin_d_type): Add declaration.
11287 * d-lang.c (d_language_arch_info, build_d_types)
11288 (builtin_d_type): New functions.
11289 (enum d_primitive_types): New data type.
11290 (d_language_defn): Change c_language_arch_info to
11291 d_language_arch_info.
11292 (d_type_data): New static variable.
11293 (_initialize_d_language): Initialize d_type_data.
11295 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11297 * d-lang.h (d_main_name): Add declaration.
11298 * d-lang.c (d_main_name): New function.
11299 * symtab.c (find_main_name): Add call to d_main_name.
11301 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11303 * d-lang.c (d_language_defn): Change macro_expansion_c to
11304 macro_expansion_no.
11306 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11308 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11310 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11312 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11313 gdb_exception" declaration.
11314 * remote.c (getpkt_or_notif_sane): Likewise.
11316 2014-01-17 Doug Evans <dje@google.com>
11318 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11319 function, contents of dirnames_to_char_ptr_vec_append moved here.
11320 (delim_string_to_char_ptr_vec): New function.
11321 (dirnames_to_char_ptr_vec_append): Rewrite.
11322 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11324 2014-01-17 Doug Evans <dje@google.com>
11326 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11328 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11329 #include "common-utils.h".
11330 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11331 * common/vec.h (VEC_ASSERT_PASS): Update.
11332 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11333 (MACH_CHECK_ERROR): Update.
11335 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11337 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11339 * gdbarch.h: Regenerate.
11341 2014-01-16 Tom Tromey <tromey@redhat.com>
11343 * value.c (struct value) <regnum>: Move earlier.
11345 2014-01-16 Tom Tromey <tromey@redhat.com>
11347 * remote.c (extended_remote_create_inferior): Rename from
11348 extended_remote_create_inferior_1. Add "ops" argument. Remove
11349 old implementation.
11351 2014-01-16 Pedro Alves <palves@redhat.com>
11353 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11354 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11357 2014-01-16 Doug Evans <dje@google.com>
11359 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11363 * btrace.h (btrace_thread_flag): New.
11364 (struct btrace_thread_info) <flags>: New.
11365 * record-btrace.c (record_btrace_resume_thread)
11366 (record_btrace_find_thread_to_move, btrace_step_no_history)
11367 (btrace_step_stopped, record_btrace_start_replaying)
11368 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11369 (record_btrace_find_resume_thread): New.
11370 (record_btrace_resume, record_btrace_wait): Extend.
11371 (record_btrace_can_execute_reverse): New.
11372 (record_btrace_open): Fail in non-stop mode.
11373 (record_btrace_set_replay): Split into this, ...
11374 (record_btrace_stop_replaying): ... this, ...
11375 (record_btrace_clear_histories): ... and this.
11376 (init_record_btrace_ops): Init to_can_execute_reverse.
11377 * NEWS: Announce it.
11379 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11381 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11382 (forward_target_decr_pc_after_break)
11383 (target_decr_pc_after_break): New.
11384 * target.c (forward_target_decr_pc_after_break)
11385 (target_decr_pc_after_break): New.
11386 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11387 instead of gdbarch_decr_pc_after_break.
11388 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11389 instead of gdbarch_decr_pc_after_break.
11390 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11391 instead of gdbarch_decr_pc_after_break.
11392 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11393 instead of gdbarch_decr_pc_after_break.
11394 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11395 instead of gdbarch_decr_pc_after_break.
11396 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11397 instead of gdbarch_decr_pc_after_break.
11399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11401 * btrace.c: Include regcache.h.
11402 (btrace_add_pc): New.
11403 (btrace_enable): Call btrace_add_pc.
11404 (btrace_is_empty): New.
11405 * btrace.h (btrace_is_empty): New.
11406 * record-btrace.c (require_btrace, record_btrace_info): Call
11409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11411 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11412 Support delta reads.
11413 (linux_disable_btrace): Change return type.
11414 * common/linux-btrace.h (linux_read_btrace): Change parameters
11415 and return type to allow error reporting. Update users.
11416 (linux_disable_btrace): Change return type. Update users.
11417 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11419 (btrace_error): New.
11420 (btrace_block) <begin>: Comment on BEGIN == 0.
11421 * btrace.c (btrace_compute_ftrace): Start from the end of
11423 (btrace_stitch_trace, btrace_clear_history): New.
11424 (btrace_fetch): Read delta trace, return if replaying.
11425 (btrace_clear): Move clear history code to btrace_clear_history.
11426 (parse_xml_btrace): Throw an error if parsing failed.
11427 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11428 and return type to allow error reporting.
11429 (target_read_btrace): Change parameters and return type to allow
11431 * target.c (target_read_btrace): Update.
11432 * remote.c (remote_read_btrace): Support delta reads. Pass
11434 * NEWS: Announce it.
11436 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11438 * record.h (record_btrace_frame_unwind)
11439 (record_btrace_tailcall_frame_unwind): New declarations.
11440 * dwarf2-frame: Include record.h
11441 (dwarf2_frame_cfa): Throw an error for btrace frames.
11442 * record-btrace.c: Include hashtab.h.
11443 (btrace_get_bfun_name): New.
11444 (btrace_call_history): Call btrace_get_bfun_name.
11445 (struct btrace_frame_cache): New.
11447 (bfcache_hash, bfcache_eq, bfcache_new): New.
11448 (btrace_get_frame_function): New.
11449 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11450 (record_btrace_frame_this_id): Compute own id.
11451 (record_btrace_frame_prev_register): Provide PC, throw_error
11452 for all other registers.
11453 (record_btrace_frame_sniffer): Detect btrace frames.
11454 (record_btrace_tailcall_frame_sniffer): New.
11455 (record_btrace_frame_dealloc_cache): New.
11456 (record_btrace_frame_unwind): Add new functions.
11457 (record_btrace_tailcall_frame_unwind): New.
11458 (_initialize_record_btrace): Allocate cache.
11459 * btrace.c (btrace_clear): Call reinit_frame_cache.
11460 * NEWS: Announce it.
11462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11464 * record-btrace.c (record_btrace_set_replay)
11465 (record_btrace_goto_begin, record_btrace_goto_end)
11466 (record_btrace_goto): New.
11467 (init_record_btrace_ops): Initialize them.
11468 * NEWS: Announce it.
11470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11472 * record-btrace.c (record_btrace_find_new_threads)
11473 (record_btrace_thread_alive): New.
11474 (init_record_btrace_ops): Initialize to_find_new_threads and
11477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11479 * record-btrace.c (record_btrace_resume): New.
11480 (record_btrace_wait): New.
11481 (init_record_btrace_ops): Initialize to_wait and to_resume.
11483 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11485 * record-btrace.c (record_btrace_xfer_partial)
11486 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11487 (record_btrace_allow_memory_access): New.
11488 (init_record_btrace_ops): Initialize new methods.
11489 * target.c (raw_memory_xfer_partial): Bail out if target reports
11490 that this memory is not available.
11492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11494 * target.h (target_ops) <to_insert_breakpoint>
11495 <to_remove_breakpoint>: Add target_ops parameter.
11496 (forward_target_insert_breakpoint): New.
11497 (forward_target_remove_breakpoint): New.
11498 (memory_remove_breakpoint, memory_insert_breakpoint):
11499 Add target_ops parameter.
11500 * target.c (target_insert_breakpoint): Split into this and ...
11501 (forward_target_insert_breakpoint): ... this.
11502 (target_remove_breakpoint): Split into this and ...
11503 (forward_target_remove_breakpoint): ... this.
11504 (debug_to_insert_breakpoint): Add target_ops parameter.
11505 Call forward_target_insert_breakpoint.
11506 (debug_to_remove_breakpoint): Add target_ops parameter.
11507 Call forward_target_remove_breakpoint.
11508 (update_current_target): Do not inherit or default to_insert_breakpoint
11509 and to_remove_breakpoint.
11510 * corelow.c (ignore): Add target_ops parameter.
11511 * exec.c (ignore): Add target_ops parameter.
11512 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11513 Add target_ops parameter.
11514 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11515 Add target_ops parameter.
11516 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11517 Add target_ops parameter.
11518 * record-full.c (record_full_beneath_to_insert_breakpoint)
11519 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11520 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11521 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11522 (record_full_core_remove_breakpoint): Add target_ops parameter.
11524 (record_full_beneath_to_insert_breakpoint_ops)
11525 (record_full_beneath_to_remove_breakpoint_ops)
11526 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11527 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11528 tmp_to_remove_breakpoint_ops,
11529 record_full_beneath_to_insert_breakpoint_ops, and
11530 record_full_beneath_to_remove_breakpoint_ops.
11531 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11532 (m32r_remove_breakpoint): Add target_ops parameter.
11533 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11534 Add target_ops parameter.
11535 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11536 Add target_ops parameter.
11538 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11539 Markus Metzger <markus.t.metzger@intel.com>
11541 * record-btrace.c: Include frame-unwind.h.
11542 (record_btrace_frame_unwind_stop_reason)
11543 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11544 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11546 (init_record_btrace_ops): Install it.
11548 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11550 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11553 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11555 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11558 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11560 * frame-unwind.c: Include target.h.
11561 (frame_unwind_try_unwinder): New function with code from ...
11562 (frame_unwind_find_by_frame): ... here. New variable
11563 unwinder_from_target, call also target_get_unwinder)
11564 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11565 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11566 * target.h (struct target_ops): New fields to_get_unwinder and
11567 to_get_tailcall_unwinder.
11568 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11570 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11572 * record-btrace.c (record_btrace_fetch_registers)
11573 (record_btrace_store_registers)
11574 (record_btrace_to_prepare_to_store): New.
11575 (init_record_btrace_ops): Add the above.
11577 2014-01-16 Tom Tromey <tromey@redhat.com>
11579 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11580 * target.h (struct target_ops) <to_prepare_to_store>: Add
11582 (target_prepare_to_store): Add argument.
11583 * target.c (debug_to_prepare_to_store): Add argument.
11584 (update_current_target): Update.
11585 * remote.c (remote_prepare_to_store): Add 'self' argument.
11586 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11587 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11588 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11589 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11591 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11592 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11593 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11594 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11595 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11599 * btrace.h (replay) <replay>: New.
11600 (btrace_is_replaying): New.
11601 * btrace.c (btrace_clear): Free replay iterator.
11602 (btrace_is_replaying): New.
11603 * record-btrace.c (record_btrace_is_replaying): New.
11604 (record_btrace_info): Print insn number if replaying.
11605 (record_btrace_insn_history): Start at replay position.
11606 (record_btrace_call_history): Start at replay position.
11607 (init_record_btrace_ops): Init to_record_is_replaying.
11609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11611 * record-btrace.c (record_btrace_insn_history_range): Include
11613 (record_btrace_insn_history_from): Adjust range.
11614 (record_btrace_call_history_range): Include
11616 (record_btrace_call_history_from): Adjust range.
11617 * NEWS: Announce changes.
11619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11621 * record.h (enum record_print_flag)
11622 <record_print_indent_calls>: New.
11623 * record.c (get_call_history_modifiers): Recognize /c modifier.
11624 (_initialize_record): Document /c modifier.
11625 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11626 Reorder fields. Optionally indent the function name. Update
11628 * NEWS: Announce changes.
11630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11632 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11636 * btrace.c (ftrace_new_function): Start counting at one.
11637 * record-btrace.c (record_btrace_info): Adjust number of calls
11639 * NEWS: Announce it.
11641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11643 * record-btrace.c (btrace_call_history_insn_range): Print
11644 insn range as [begin, end].
11646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11648 * btrace.h (struct btrace_func_link): New.
11649 (enum btrace_function_flag): New.
11650 (struct btrace_inst): Rename to ...
11651 (struct btrace_insn): ...this. Update all users.
11652 (struct btrace_func) <ibegin, iend>: Remove.
11653 (struct btrace_func_link): New.
11654 (struct btrace_func): Rename to ...
11655 (struct btrace_function): ...this. Update all users.
11656 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11657 (number, level, flags>: New.
11658 (struct btrace_insn_iterator): Rename to ...
11659 (struct btrace_insn_history): ...this.
11661 (struct btrace_insn_iterator, btrace_call_iterator): New.
11662 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11663 (struct btrace_target_info) <begin, end, level>
11664 <insn_history, call_history>: New.
11665 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11666 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11667 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11668 (btrace_call_number, btrace_call_begin, btrace_call_end)
11669 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11670 (btrace_find_function_by_number, btrace_set_insn_history)
11671 (btrace_set_call_history): New.
11672 * btrace.c (btrace_init_insn_iterator)
11673 (btrace_init_func_iterator, compute_itrace): Remove.
11674 (ftrace_print_function_name, ftrace_print_filename)
11675 (ftrace_skip_file): Change
11676 parameter to const.
11677 (ftrace_init_func): Remove.
11678 (ftrace_debug): Use new btrace_function fields.
11679 (ftrace_function_switched): Also consider gaining and
11680 losing symbol information).
11681 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11682 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11683 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11685 (ftrace_new_function): Move. Remove debug print.
11686 (ftrace_update_lines, ftrace_update_insns): New.
11687 (ftrace_update_function): Check for call, ret, and jump.
11688 (compute_ftrace): Renamed to ...
11689 (btrace_compute_ftrace): ...this. Rewritten to compute call
11691 (btrace_fetch, btrace_clear): Updated.
11692 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11693 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11694 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11695 (btrace_call_number, btrace_call_begin, btrace_call_end)
11696 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11697 (btrace_find_function_by_number, btrace_set_insn_history)
11698 (btrace_set_call_history): New.
11699 * record-btrace.c (require_btrace): Use new btrace thread
11701 (record_btrace_info, btrace_insn_history)
11702 (record_btrace_insn_history, record_btrace_insn_history_range):
11703 Use new btrace thread info fields and new iterator.
11704 (btrace_func_history_src_line): Rename to ...
11705 (btrace_call_history_src_line): ...this. Use new btrace
11706 thread info fields.
11707 (btrace_func_history): Rename to ...
11708 (btrace_call_history): ...this. Use new btrace thread info
11709 fields and new iterator.
11710 (record_btrace_call_history, record_btrace_call_history_range):
11711 Use new btrace thread info fields and new iterator.
11713 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11715 * frame.h (frame_id_build_unavailable_stack_special): New.
11716 * frame.c (frame_id_build_unavailable_stack_special): New.
11718 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11720 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11721 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11722 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11724 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11725 (i386_insn_is_jump, i386_jmp_p): New.
11726 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11727 insn_is_jump to gdbarch.
11728 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11729 * gdbarch.h: Regenerated.
11730 * gdbarch.c: Regenerated.
11731 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11732 (default_insn_is_jump): New.
11733 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11734 (default_insn_is_jump): New.
11736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11738 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11740 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11741 (btrace_read_type) <btrace_read_new>: Change to ...
11742 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11746 * common/linux-btrace.c (linux_read_btrace): Free trace from
11747 previous iteration.
11749 2014-01-15 Doug Evans <dje@google.com>
11751 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11754 2014-01-15 Tom Tromey <tromey@redhat.com>
11756 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11757 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11758 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11759 (set_objfile_main_name): New function.
11760 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11761 language_of_main>: New fields.
11762 (set_objfile_main_name): Declare.
11763 * symtab.c (find_main_name): Loop over objfiles to find the main
11765 (set_main_name): Now static.
11766 (get_main_info): Add comment.
11767 * symtab.h (set_main_name): Don't declare.
11769 2014-01-15 Tom Tromey <tromey@redhat.com>
11771 * symtab.c (main_progspace_key): New global.
11772 (struct main_info): New.
11773 (name_of_main, language_of_main): Remove.
11774 (get_main_info, main_info_cleanup): New function.
11775 (set_main_name, main_name, main_language): Use get_main_info.
11776 (_initialize_symtab): Initialize main_progspace_key.
11778 2014-01-15 Tom Tromey <tromey@redhat.com>
11780 * dbxread.c (process_one_symbol): Update.
11781 * dwarf2read.c (read_partial_die): Update.
11782 * symfile.c (set_initial_language): Call main_language.
11783 * symtab.c (language_of_main): Now static.
11784 (set_main_name): Add 'lang' parameter.
11785 (find_main_name): Update.
11786 (main_language): New function.
11787 (symtab_observer_executable_changed): Update.
11788 * symtab.h (set_main_name): Update.
11789 (language_of_main): Remove.
11790 (main_language): Declare.
11792 2014-01-15 Tom Tromey <tromey@redhat.com>
11794 * symfile.c (init_entry_point_info): Use new "initialized" field.
11796 * objfiles.h (struct entry_point) <initialized>: New field.
11797 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11798 (struct objfile) <ei>: ...here. Remove.
11799 * objfiles.c (entry_point_address_query): Update.
11801 2014-01-15 Tom Tromey <tromey@redhat.com>
11803 * objfiles.c (entry_point_address_query): Relocate entry point
11805 (objfile_relocate1): Do not relocate entry point address.
11806 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11807 <the_bfd_section_index>: New field.
11808 * symfile.c (init_entry_point_info): Find the entry point's
11811 2014-01-15 Tom Tromey <tromey@redhat.com>
11813 * solib-frv.c (enable_break): Use entry_point_address_query.
11815 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11817 * NEWS: Add note on improved process record-replay on
11818 arm*-linux* targets.
11820 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11822 * arm-tdep.c (enum arm_record_result): New enum.
11823 (arm_record_unsupported_insn): New function.
11824 (arm_record_coproc_data_proc): Removed.
11825 (thumb2_record_ld_st_multiple): New function.
11826 (thumb2_record_ld_st_dual_ex_tbb): New function.
11827 (thumb2_record_data_proc_sreg_mimm): New function.
11828 (thumb2_record_ps_dest_generic): New function.
11829 (thumb2_record_branch_misc_cntrl): New function.
11830 (thumb2_record_str_single_data): New function.
11831 (thumb2_record_ld_mem_hints): New function.
11832 (thumb2_record_ld_word): New function.
11833 (thumb2_record_lmul_lmla_div): New function.
11834 (thumb2_record_decode_insn_handler): New function.
11835 (decode_insn): Add thumb32 instruction handlers.
11837 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11839 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11840 (struct arm_linux_record_tdep): Declare.
11841 (arm_canonicalize_syscall): New function.
11842 (arm_all_but_pc_registers_record): New function.
11843 (arm_linux_syscall_record): New function.
11844 (arm_linux_init_abi): Add syscall recording constructs.
11845 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11846 decoding. (arm_record_coproc_data_proc): Update arm syscall
11848 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11849 <arm_syscall_record>: New field.
11850 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11853 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11855 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11856 register for push instruction recording.
11858 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11860 * arm-tdep.c (thumb_record_misc): Update to correct logical
11861 error while recording ldm, ldmia and pop instructions.
11863 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11865 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11867 2014-01-15 Pedro Alves <palves@redhat.com>
11869 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11870 (go32_resume, go32_fetch_registers, store_register)
11871 (go32_store_registers, go32_prepare_to_store)
11872 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11873 (go32_create_inferior, go32_can_run, go32_terminal_init)
11874 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11877 2014-01-15 Tom Tromey <tromey@redhat.com>
11879 * target.h (async_callback_ftype): New typedef.
11880 (struct target_ops) <to_async>: Use it.
11882 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11884 * python/py-value.c (get_field_type): Remove unnecessary curly
11885 braces for single-statement if block.
11887 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11889 * python/py-type.c (convert_field): Add missing empty line
11890 after declarations.
11892 2014-01-14 Doug Evans <dje@google.com>
11894 * symfile.h (expand_symtabs_matching): Renamed from
11895 expand_partial_symbol_names. Update prototype.
11896 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11897 * symfile.c (expand_symtabs_matching): Renamed from
11898 expand_partial_symbol_names. New args file_matcher, kind.
11899 Rename arg fun to symbol_matcher.
11900 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11901 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11902 ada_expand_partial_symbol_name.
11903 (ada_make_symbol_completion_list): Update to call
11904 expand_symtabs_matching.
11905 (ada_add_global_exceptions): Call expand_symtabs_matching.
11906 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11907 call map_symbol_filenames.
11908 * symtab.c (sources_info): Update to call map_symbol_filenames.
11909 (search_symbols): Call expand_symtabs_matching.
11910 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11911 (default_make_symbol_completion_list_break_on): Update to call
11912 expand_symtabs_matching.
11913 (make_source_files_completion_list): Update to call
11914 map_symbol_filenames.
11916 2014-01-14 Doug Evans <dje@google.com>
11918 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11919 (expand_symtabs_symbol_matcher_ftype): New typedef.
11920 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11921 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11922 * symfile.c (expand_partial_symbol_names): Update to use
11923 expand_symtabs_symbol_matcher_ftype.
11924 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11925 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11926 Arg name_matcher renamed to symbol_matcher.
11927 * psymtab.c (recursively_search_psymtabs): Update to use
11928 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11930 (expand_symtabs_matching_via_partial): Update to use
11931 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11932 Arg name_matcher renamed to symbol_matcher.
11934 2014-01-14 Doug Evans <dje@google.com>
11936 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11937 (map_partial_symbol_filenames): Ditto.
11938 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11939 (map_partial_symbol_filenames): Ditto.
11940 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11941 (map_partial_symbol_filenames): Ditto.
11942 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11943 (map_partial_symbol_filenames): Ditto.
11944 * symtab.c: Delete #include "psymtab.h".
11946 2014-01-14 Pedro Alves <palves@redhat.com>
11947 Tom Tromey <tromey@redhat.com>
11949 * infrun.c (use_displaced_stepping): Use find_record_target
11950 instead of RECORD_IS_USED.
11951 (adjust_pc_after_break): Use record_full_is_used instead of
11953 * record-btrace.c (record_btrace_open): Call record_preopen
11954 instead of checking RECORD_IS_USED.
11955 * record-full.c (record_full_shortname)
11956 (record_full_core_shortname): New globals.
11957 (record_full_is_used): New function.
11958 (find_full_open): Call record_preopen instead of checking
11960 (init_record_full_ops): Set the target's shortname to
11961 record_full_shortname.
11962 (init_record_full_core_ops): Set the target's shortname to
11963 record_full_core_shortname.
11964 * record-full.h (record_full_is_used): Declare.
11965 * record.c (find_record_target): Make extern.
11966 (record_preopen): New function.
11967 * record.h (RECORD_IS_USED): Delete macro.
11968 (find_record_target, record_preopen): Declare functions.
11970 2014-01-14 Yao Qi <yao@codesourcery.com>
11972 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11973 'len''s type to ULONGEST.
11974 (core_xfer_shared_libraries_aix): Likewise.
11975 * gdbarch.c, gdbarch.h: Regenerated.
11976 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11977 Change type of 'len' to ULONGEST.
11978 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11979 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11981 2014-01-14 Yao Qi <yao@codesourcery.com>
11983 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11984 type of 'len' to ULONGEST.
11985 (linux_xfer_osdata_processgroups): Likewise.
11986 (linux_xfer_osdata_threads): Likewise.
11987 (linux_xfer_osdata_fds): Likewise.
11988 (linux_xfer_osdata_isockets): Likewise.
11989 (linux_xfer_osdata_shm): Likewise.
11990 (linux_xfer_osdata_sem): Likewise.
11991 (linux_xfer_osdata_msg): Likewise.
11992 (linux_common_xfer_osdata): Likewise.
11993 (struct osdata_type) <getter>: Likewise.
11994 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11997 2014-01-14 Yao Qi <yao@codesourcery.com>
11999 * target.h (target_xfer_partial_ftype): Update.
12000 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12002 * aix-thread.c (aix_thread_xfer_partial): Change type of
12003 argument 'len' to ULONGEST.
12004 * auxv.c (procfs_xfer_auxv): Likewise.
12005 (ld_so_xfer_auxv): Likewise.
12006 (memory_xfer_auxv): Likewise.
12007 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12008 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12009 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12010 * corelow.c (core_xfer_partial): Likewise.
12011 * ctf.c (ctf_xfer_partial): Likewise.
12012 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12014 (darwin_read_dyld_info): Likewise.
12015 (darwin_xfer_partial): Likewise.
12016 * exec.c (section_table_xfer_memory_partial): Likewise.
12017 (exec_xfer_partial): Likewise.
12018 * exec.h (section_table_xfer_memory_partial): Update
12020 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12021 instead of plongest.
12022 (gnu_xfer_partial): Likewise.
12023 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12024 (ia64_hpux_xfer_solib_got): Likewise.
12025 (ia64_hpux_xfer_partial): Likewise.
12026 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12027 * inf-ptrace.c (inf_ptrace_xfer_partial):
12028 * inf-ttrace.c (inf_ttrace_xfer_partial):
12029 * linux-nat.c (linux_xfer_siginfo): Likewise.
12030 (linux_nat_xfer_partial): Likewise.
12031 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12032 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12033 * monitor.c (monitor_xfer_memory): Likewise.
12034 (monitor_xfer_partial): Likewise.
12035 * procfs.c (procfs_xfer_partial): Likewise.
12036 * record-full.c (record_full_xfer_partial): Likewise.
12037 (record_full_core_xfer_partial): Likewise.
12038 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12039 instead of plongest.
12040 (gdbsim_xfer_partial): Likewise.
12041 * remote.c (remote_xfer_partial): Likewise.
12042 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12043 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12045 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12046 (rs6000_xfer_shared_libraries): Likewise.
12047 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12048 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12049 (sparc_xfer_partial): Likewise.
12050 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12051 (spu_xfer_partial): Likewise.
12052 * spu-multiarch.c (spu_xfer_partial): Likewise.
12053 * target.c (target_read_live_memory): Likewise.
12054 (memory_xfer_live_readonly_partial): Likewise.
12055 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12056 (target_xfer_partial, default_xfer_partial): Likewise.
12057 (current_xfer_partial): Likewise.
12058 * tracepoint.c (tfile_xfer_partial): Likewise.
12059 * windows-nat.c (windows_xfer_memory): Likewise. Call
12060 pulongest instead of plongest.
12061 (windows_xfer_partial): Likewise.
12062 (windows_xfer_shared_libraries): Likewise.
12064 2014-01-14 Yao Qi <yao@codesourcery.com>
12066 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12067 target_xfer_partial_ftype.
12069 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12073 * valops.c (value_struct_elt_bitpos): New function
12074 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12075 object to 'None' if the field name is an empty string ("").
12076 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12077 attribute to look for a field when 'name' is 'None'.
12078 (get_field_type): New function
12080 2014-01-13 Doug Evans <dje@google.com>
12083 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12084 (try_open_dwop_file): Ditto.
12085 * gdb_bfd.c: #include "vec.h".
12086 (bfdp): New typedef.
12087 (struct gdb_bfd_data): New member included_bfds.
12088 (gdb_bfd_unref): Unref all included bfds.
12089 (gdb_bfd_record_inclusion): New function.
12090 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12092 2014-01-13 Tom Tromey <tromey@redhat.com>
12094 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12096 2014-01-13 Tom Tromey <tromey@redhat.com>
12098 * defs.h (use_windows): Remove.
12099 * gdb.c (main): Update.
12100 * main.c (captured_main, gdb_main): Update.
12101 * main.h (struct captured_main_args) <use_windows>: Remove.
12102 * top.c (use_windows): Remove.
12104 2014-01-13 Tom Tromey <tromey@redhat.com>
12106 * defs.h (deprecated_flush_hook): Remove.
12108 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12111 * linux-thread-db.c (try_thread_db_load): Add parameter
12112 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12113 (try_thread_db_load_from_pdir_1): Move it there from here.
12114 (try_thread_db_load_from_sdir): Update caller.
12115 (try_thread_db_load_from_dir): Move it there from here.
12117 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12119 * regformats/regdat.sh: Always rewrite the register file.
12121 2014-01-13 Pedro Alves <palves@redhat.com>
12123 * Makefile.in (CHECK_HEADERS): New variable.
12124 (check-headers:): New rule.
12126 2014-01-13 Tom Tromey <tromey@redhat.com>
12128 * cli/cli-setshow.c (do_set_command): Update.
12129 * defs.h (deprecated_set_hook): Remove.
12130 * top.c (deprecated_set_hook): Remove.
12132 2014-01-13 Pedro Alves <palves@redhat.com>
12134 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12135 the tracepoint if the PC is a pseudo-register.
12137 2014-01-13 Tom Tromey <tromey@redhat.com>
12139 * defs.h (XCALLOC): Remove.
12140 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12141 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12142 * dwarf2loc.c (allocate_piece_closure): Likewise.
12143 * elfread.c (elf_symfile_segments): Likewise.
12144 (elf_symfile_segments): Likewise.
12145 * gdbtypes.c (copy_type_recursive): Likewise.
12146 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12147 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12148 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12150 * mt-tdep.c (mt_gdbarch_init): Likewise.
12151 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12153 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12154 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12155 * registry.c (registry_alloc_data): Likewise.
12156 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12157 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12158 * serial.c (serial_fdopen_ops): Likewise.
12159 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12161 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12162 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12165 2014-01-13 Tom Tromey <tromey@redhat.com>
12167 * defs.h (XMALLOC): Remove.
12168 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12169 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12170 * cli-out.c (struct ui_out *): Likewise.
12171 * cli/cli-dump.c (add_dump_command): Likewise.
12172 (add_dump_command): Likewise.
12173 * complaints.c (get_complaints): Likewise.
12174 (find_complaint): Likewise.
12175 * dwarf2-frame.c (execute_cfa_program): Likewise.
12176 * dwarf2read.c (abbrev_table_read_table): Likewise.
12177 * gdbarch.sh: Likewise.
12178 * gdbarch.c: Rebuild.
12179 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12180 * interps.c (interp_new): Likewise.
12181 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12182 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12183 * mi/mi-console.c (mi_console_file_new): Likewise.
12184 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12185 * mi/mi-out.c (mi_out_new): Likewise.
12186 * mi/mi-parse.c (mi_parse): Likewise.
12187 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12188 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12189 * observer.c (xalloc_observer_list_node): Likewise.
12190 * regcache.c (regcache_xmalloc_1): Likewise.
12191 * reggroups.c (reggroup_new): Likewise.
12192 (_initialize_reggroup): Likewise.
12193 * registry.c (register_data_with_cleanup): Likewise.
12194 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12195 * ser-base.c (serial_ttystate): Likewise.
12196 * ser-mingw.c (make_pipe_state): Likewise.
12197 * ser-pipe.c (pipe_open): Likewise.
12198 * serial.c (serial_open): Likewise.
12199 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12200 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12201 (tui_alloc_win_info): Likewise.
12202 (tui_add_content_elements): Likewise.
12203 * tui/tui-file.c (tui_file_new): Likewise.
12204 * tui/tui-out.c (tui_out_new): Likewise.
12205 * ui-file.c (mem_file_new): Likewise.
12206 * ui-out.c (push_level): Likewise.
12207 (make_cleanup_ui_out_end): Likewise.
12208 (append_header_to_list): Likewise.
12209 (ui_out_new): Likewise.
12210 * user-regs.c (user_reg_add_builtin): Likewise.
12212 2014-01-13 Tom Tromey <tromey@redhat.com>
12214 * defs.h (XZALLOC): Remove.
12215 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12216 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12217 (get_ada_tasks_inferior_data): Likewise.
12218 * auto-load.c (get_auto_load_pspace_data): Likewise.
12219 * auxv.c (get_auxv_inferior_data): Likewise.
12220 * bfd-target.c (target_bfd_reopen): Likewise.
12221 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12222 (deprecated_insert_raw_breakpoint): Likewise.
12223 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12224 * corelow.c (core_open): Likewise.
12225 * darwin-nat.c (darwin_check_new_threads): Likewise.
12226 (darwin_attach_pid): Likewise.
12227 * dummy-frame.c (dummy_frame_push): Likewise.
12228 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12229 * dwarf2loc.c (allocate_piece_closure): Likewise.
12230 * elfread.c (elf_symfile_segments): Likewise.
12231 * eval.c (ptrmath_type_p): Likewise.
12232 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12233 * gdbtypes.c (alloc_type_arch): Likewise.
12234 (alloc_type_instance): Likewise.
12235 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12236 * inf-child.c (inf_child_can_use_agent): Likewise.
12237 * inflow.c (get_inflow_inferior_data): Likewise.
12238 * infrun.c (save_infcall_suspend_state): Likewise.
12239 * jit.c (jit_reader_load): Likewise.
12240 (get_jit_objfile_data): Likewise.
12241 (get_jit_program_space_data): Likewise.
12242 (jit_object_open_impl): Likewise.
12243 (jit_symtab_open_impl): Likewise.
12244 (jit_block_open_impl): Likewise.
12245 (jit_frame_sniffer): Likewise.
12246 * linux-fork.c (add_fork): Likewise.
12247 * maint.c (make_command_stats_cleanup): Likewise.
12248 * objfiles.c (get_objfile_pspace_data): Likewise.
12249 * opencl-lang.c (struct lval_closure): Likewise.
12250 * osdata.c (osdata_start_osdata): Likewise.
12251 * progspace.c (new_address_space): Likewise.
12252 (add_program_space): Likewise.
12253 * remote-sim.c (get_sim_inferior_data): Likewise.
12254 * sh-tdep.c (sh_gdbarch_init): Likewise.
12255 * skip.c (Ignore): Likewise.
12256 (skip_delete_command): Likewise.
12257 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12258 (library_list_start_library): Likewise.
12259 (solib_aix_current_sos): Likewise.
12260 * solib-darwin.c (get_darwin_info): Likewise.
12261 (darwin_current_sos): Likewise.
12262 * solib-dsbt.c (get_dsbt_info): Likewise.
12263 * solib-ia64-hpux.c (new_so_list): Likewise.
12264 (ia64_hpux_get_solib_linkage_addr): Likewise.
12265 * solib-spu.c (append_ocl_sos): Likewise.
12266 (spu_current_sos): Likewise.
12267 * solib-svr4.c (get_svr4_info): Likewise.
12268 (svr4_keep_data_in_core): Likewise.
12269 (library_list_start_library): Likewise.
12270 (svr4_default_sos): Likewise.
12271 (svr4_read_so_list): Likewise.
12272 * solib-target.c (library_list_start_library): Likewise.
12273 (solib_target_current_sos): Likewise.
12274 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12275 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12276 * symfile.c (default_symfile_segments): Likewise.
12277 * target-descriptions.c (tdesc_data_init): Likewise.
12278 (tdesc_create_reg): Likewise.
12279 (struct tdesc_type *): Likewise.
12280 (tdesc_create_vector): Likewise.
12281 (tdesc_set_struct_size): Likewise.
12282 (struct tdesc_type *): Likewise.
12283 (tdesc_free_feature): Likewise.
12284 (tdesc_create_feature): Likewise.
12285 * windows-nat.c (windows_add_thread): Likewise.
12286 (windows_make_so): Likewise.
12287 * xml-support.c (gdb_xml_body_text): Likewise.
12288 (gdb_xml_create_parser_and_cleanup): Likewise.
12289 (xml_process_xincludes): Likewise.
12290 * xml-syscall.c (allocate_syscalls_info): Likewise.
12291 (syscall_create_syscall_desc): Likewise.
12293 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12295 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12296 function, with code from i386_stap_parse_special_token.
12297 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12298 (i386_stap_parse_special_token): Move code to the two functions
12299 above; simplify it.
12301 2014-01-09 Pedro Alves <palves@redhat.com>
12302 Hui Zhu <hui@codesourcery.com>
12305 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12306 bp_err_string. Don't mark the location shlib_disabled if the
12307 error thrown wasn't a generic or memory error. Catch errors
12308 thrown while inserting breakpoints in overlayed code. Output
12309 error message of software breakpoints.
12310 * remote.c (remote_insert_breakpoint): If this breakpoint has
12311 target-side commands but this stub doesn't support Z0 packets,
12312 throw NOT_SUPPORTED_ERROR error.
12313 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12314 * target.h (target_insert_breakpoint): Extend comment.
12315 (target_insert_hw_breakpoint): Add comment.
12317 2014-01-08 Pedro Alves <palves@redhat.com>
12319 * remote.c (remote_add_thread): Add threads silently if starting
12321 (remote_notice_new_inferior): If in all-stop, and starting up,
12322 don't call notice_new_inferior.
12323 (get_current_thread): New function, factored out from ...
12324 (add_current_inferior_and_thread): ... this. Adjust.
12325 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12326 found any thread, then select the remote's current thread as GDB's
12327 current thread too.
12329 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12331 * NEWS: Create a new section for the next release branch.
12332 Rename the section of the current branch, now that it has
12335 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12337 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12338 * version.in: Bump version to 7.7.50.DATE-cvs.
12340 2014-01-08 Yao Qi <yao@codesourcery.com>
12342 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12343 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12344 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12346 2014-01-08 Yao Qi <yao@codesourcery.com>
12348 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12349 return value of bfd_get_filename to symbol_file_add_from_bfd.
12351 2014-01-08 Pierre Muller <muller@sourceware.org>
12354 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12355 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12356 to prim_record_mininal_symbol_and_info.
12357 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12358 in call to prim_record_minimal_symbol_and_info.
12359 (read_pe_exported_syms): Set index field of section_data.
12361 2014-01-07 Andrew Pinski <apinski@cavium.com>
12363 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12364 * features/aarch64.c: Regenerate.
12366 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12368 * target.c (return_null): Define.
12369 (update_current_target): Use it instead of return_zero for
12370 functions that return a pointer.
12372 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12374 * source.c (add_path): Fix check for duplicated paths in the previously
12377 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12379 * ada-lang.c: Remove duplicated include statements.
12380 * alphabsd-nat.c: Ditto.
12381 * amd64-darwin-tdep.c: Ditto.
12382 * amd64fbsd-nat.c: Ditto.
12383 * auto-load.c: Ditto.
12385 * breakpoint.c: Ditto.
12386 * dbxread.c: Ditto.
12387 * fork-child.c: Ditto.
12388 * gdb_usleep.c: Ditto.
12389 * i386-darwin-tdep.c: Ditto.
12390 * i386fbsd-nat.c: Ditto.
12392 * inferior.c: Ditto.
12393 * jv-lang.c: Ditto.
12394 * linux-nat.c: Ditto.
12395 * linux-tdep.c: Ditto.
12396 * m68kbsd-nat.c: Ditto.
12397 * m68klinux-nat.c: Ditto.
12398 * microblaze-tdep.c: Ditto.
12399 * mips-linux-tdep.c: Ditto.
12400 * mn10300-tdep.c: Ditto.
12401 * nto-tdep.c: Ditto.
12402 * opencl-lang.c: Ditto.
12404 * printcmd.c: Ditto.
12405 * regcache.c: Ditto.
12406 * remote-m32r-sdi.c: Ditto.
12408 * symfile.c: Ditto.
12410 * tilegx-linux-nat.c: Ditto.
12411 * tilegx-tdep.c: Ditto.
12412 * tracepoint.c: Ditto.
12414 * vaxbsd-nat.c: Ditto.
12415 * windows-nat.c: Ditto.
12416 * xtensa-tdep.c: Ditto.
12418 2014-01-07 Yao Qi <yao@codesourcery.com>
12420 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12422 2014-01-07 Yao Qi <yao@codesourcery.com>
12423 Joel Brobecker <brobecker@adacore.com>
12425 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12426 (pdc_write_regs): Likewise.
12427 (fetch_regs_kernel_thread): Likewise.
12428 (store_regs_kernel_thread): Likewise.
12430 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12432 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12433 tagged type objects to their actual type.
12435 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12437 * ada-valprint.c (print_field_values): Add "language" parameter.
12438 Update calls to print_field_values and print_variant_part.
12439 Pass new parameter "language" in call to val_print instead
12440 of "current_language". Replace call to ada_val_print by call
12442 (print_variant_part): Add "language" parameter.
12443 (ada_val_print_struct_union): Update call to print_field_values.
12445 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12447 * ada-valprint.c (ui_memcpy): Delete.
12448 (ada_print_floating): Update documentation. Add empty line
12449 between between function documentation and implementation.
12450 Delete variable "buffer". Use ui_file_xstrdup in place of
12451 ui_file_put. Minor adjustments following this change.
12453 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12455 * ada-valprint.c (ada_val_print_string): New function,
12456 extracted from ada_val_print_array.
12457 (ada_val_print_array): Replace extracted code by call
12458 to ada_val_print_string followed by a return. Move
12459 "else" branch to the function's top block.
12461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12463 * ada-valprint.c (ada_val_print_array): Move implementation
12464 down. Rename parameter "offset" and "val" into "offset_aligned"
12465 and "original_value" respectively. Add parameter "offset".
12467 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12469 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12470 re-organizing the code. Change the "???" message printed
12471 when target type is a TYPE_CODE_UNDEF into
12472 "<ref to undefined type>".
12474 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12476 * ada-valprint.c (print_record): Delete, implementation inlined...
12477 (ada_val_print_struct_union): ... here. Remove call to
12478 ada_check_typedef in inlined implementation.
12480 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12482 * ada-valprint.c (ada_val_print_gnat_array): New function,
12483 extracted from ada_val_print_1;
12484 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12485 (ada_val_print_flt, ada_val_print_struct_union)
12486 (ada_val_print_ref): Likewise.
12487 (ada_val_print_1): Delete variables i and elttype.
12488 Replace extracted-out code by call to corresponding
12491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12493 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12495 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12497 * ada-valprint.c (ada_val_print_1): Replace calls to
12498 ada_val_print_1 by calls to val_print.
12500 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12502 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12503 Update calls to self accordingly. Replace calls to c_val_print
12504 by calls to val_print.
12506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12508 * ada-valprint.c (print_record): Delete declaration.
12509 (adjust_type_signedness, ada_val_print_1): Likewise.
12510 (ada_val_print): Move function implementation down.
12511 (print_variant_part, print_field_values, print_record):
12512 Move function implementation up.
12514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12516 * python/py-type.c (typy_get_name): New function.
12517 (type_object_getset): Add entry for attribute "name".
12518 * NEWS: Add entry mentioning this new attribute.
12520 2014-01-07 Yao Qi <yao@codesourcery.com>
12522 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12525 2014-01-07 Yao Qi <yao@codesourcery.com>
12527 * gnu-nat.c (info_port_rights): Add qualifier const to
12530 2014-01-07 Yao Qi <yao@codesourcery.com>
12532 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12534 2014-01-07 Yao Qi <yao@codesourcery.com>
12536 * gnu-nat.c (make_inf) Update declaration.
12537 (make_inf): Make it static.
12538 (inf_set_traced): Likewise.
12539 (inf_port_to_thread, inf_task_died_status): Likewise.
12541 2014-01-07 Yao Qi <yao@codesourcery.com>
12543 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12545 2014-01-07 Yao Qi <yao@codesourcery.com>
12547 * gnu-nat.c (_initialize_gnu_nat): Declare.
12549 2014-01-07 Yao Qi <yao@codesourcery.com>
12551 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12553 (struct gdbarch_info) <byte_order>: Change type to
12555 <byte_order_for_code>: Likewise.
12556 * gdbarch.c, gdbarch.h: Regenerated.
12558 2014-01-06 Sasha Smundak <asmundak@google.com>
12560 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12562 2014-01-06 Tom Tromey <tromey@redhat.com>
12564 * doublest.c (convert_doublest_to_floatformat): Use const, not
12566 * somread.c (som_symtab_read): Likewise.
12568 2014-01-07 Hui Zhu <hui@codesourcery.com>
12570 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12571 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12572 (gdb_bfd_fopen): Ditto.
12573 (gdb_bfd_openr): Ditto.
12574 (gdb_bfd_openw): Ditto.
12575 (gdb_bfd_openr_iovec): Ditto.
12576 (gdb_bfd_fdopenr): Ditto.
12577 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12578 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12580 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12582 * symfile-mem.c (symbol_file_add_from_memory): Removed
12583 gdb_bfd_stash_filename.
12585 2014-01-03 Doug Evans <dje@google.com>
12587 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12590 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12592 Update year range in copyright notice of all files.
12594 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12596 * top.c (print_gdb_version): Set copyright year to 2014.
12598 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12600 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12602 For older changes see ChangeLog-2013.
12608 version-control: never